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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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

Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
/*


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Lh1,Z1_,SG0,i1x,uwA,TPf,Sf,O1x,MfL,uH,OG,gt_,GBB,n1,kt,FhL,$LF,DLB,y_,ot1,RAh,ef,Kht,ULt,I0f,a0G,jFA,Et_,psP,JxB,CHw,QFG,NI,Wl,Vq,H1F,bt,BPh,xL1,MI,cl,LMG,Z0G,hs,sY,SYG,O0x,WMs,p0,Mt0,gLs,mM,GVL,FMG,$IA,Js,VtL,C0,lNH,RQf,kVw,Gg,ysH,wlA,gy,nLx,Vs,KMG,fNt,sOA,ELw,Pth,cw,mIB,zQh,Js_,Ct_,rsG,XlG,Asf,xIs,qYh,Ny0,i8f,TyG,b8B,g5w,MYA,Ev,GgA,o5G,zg,c0B,kgB,Kkx,y0w,fPA,mk,QOH,J0,C8,ry,wwh,Qs,ev1,Ucx,Yv1,x5,IPt,dc1,aPx,hvP,jQB,sQA,E5f,Pqw,pwF,Hw,mcP,Cqw,QQx,A0_,u9,Byx,LYt,tf,Sn_,TwL,qvF,tnP,WYw,VnL,DqF,
gVw,vVt,RMB,cfF,KYH,fM0,Uqx,YnA,dq1,hML,EVB,p6A,zMt,JfB,Q7t,qnx,ww,ZsP,S30,iss,hf,sn,En,Q8,Af,xV,MoA,ig,Fwf,lSx,oSw,R1s,cUB,bg,nSP,g7,GE,Fg,$S,fS0,kEx,yUB,wd0,UZF,e1F,ISt,dZ0,aSA,sSG,oS,vd,jSs,ES_,PgH,z11,pdG,mZB,JUA,Cg1,YS,eo,IS,d7,jo,QSH,E3,AUt,LtG,ps,Zx_,NFf,SNH,mw,ixP,ur_,TFP,Cs,WtP,Xg,MNL,ghs,AU,Ftw,GFF,$8H,D8t,lDH,vhB,xS,ohB,R2G,qZ,cjH,nhf,Lx,N8,SN,iG,KtH,kFG,fDG,uG,wyw,U8s,YNs,tj,Wy,VC,M8,gF,GF,e2H,IDw,aDf,h2h,jmw,EhA,PGH,py1,z2A,m81,DD,Jjt,CGB,QmA,Xyf,AjA,HxP,BF1,x8_,qNs,Rm,LmA,nx,Kx,Zyh,
iyL,uUL,TZ_,Oys,Wmh,Vbw,G3F,Fmh,$G0,DGh,lGG,v$w,o$f,Km0,yC,fGh,k3P,yrw,w4P,UGF,Y_P,IGG,CXw,rrs,QgL,Hyf,BZw,hj,xG_,Zh1,ihF,u51,TJB,tUw,OhP,W8P,VUh,bh0,gRB,Gsf,NJx,F8f,$$t,D$P,l4_,vRG,oR1,R0L,cW_,nR1,yWA,f4t,YK_,wEA,U$f,d$h,a4_,h0s,e0F,jY0,I4h,PIF,ZG,pEF,NG,iX,z0L,JWL,CIs,XEB,inG,HhG,AWw,x$s,L0x,BJ1,VuB,tu0,bnt,MuF,g_w,GpB,F0A,DTt,$TB,l81,v_0,o_w,Rah,n__,f8F,kpL,yhx,UTG,w8F,zax,O_,mTF,CTG,rhA,QlG,X8t,Ah_,Bjf,xTP,qMA,FU,$$,L5h,TvH,v4,og,VZx,MZ0,c3w,k$,fxw,kRh,YrP,wW_,Uuw,eb,el_,Ixt,ax_,hlx,se0,jeH,Ess,
PQP,pWA,muF,J3x,r3s,CQF,A3_,py,Jr,Bv1,xuL,qrG,LzL,ZQ1,NoF,iQt,Tox,uWP,iI,Ts,$Os,VX,ca1,nj0,bI,fkG,KzF,akP,hGG,sZH,Ejs,mO1,CpA,raf,QZw,Xx1,HQG,xOx,q6H,F5,ZAw,vE,SIs,iAG,uvA,t2w,NYt,LS0,TYx,D4,WSF,gEG,bAF,$Cx,DCw,sWB,jWh,EEs,PRB,kR,pKP,mCL,z9w,JVG,rVG,UK,xCH,ioA,tSt,Tx1,VSw,dJ,gbf,sK,PE,jU,D4x,MSA,lbh,obH,R5_,m8,Kdt,rJ,QX,y2B,YVh,Ib1,d4w,abh,X5,h5_,AW,s6t,Ebt,PeA,pMH,z5t,J2G,xR,Cef,r2H,NT,uT,A2P,Hoh,Bxf,x4_,ZHB,Ndh,iHx,u$P,Mjs,gd1,W_F,F_f,$7L,D7L,$_,lT,ol,RCf,cQw,nn,ndA,K_t,fff,kcw,wXA,U7h,YU_,eCf,
yQ0,Iff,k_,af1,PNf,yc,Edx,pXP,d7H,zCG,UM,JQ0,CNH,rQf,QMf,AQx,XXw,HHB,qUH,Bd1,Zvw,t9w,Wgt,bv_,GoA,gPH,M9B,FgB,D2s,vP_,lF_,RbH,P8,nPf,KgH,fFL,koP,U2L,ebP,YoF,IFG,d2w,Jh,aFB,hb_,jHx,PcP,m2L,Ccw,JdB,bQ,rdP,EPF,qot,Zqh,NR0,STP,Dx,iq1,TR1,W2G,Mzx,bqf,$js,Djt,lW1,v6h,RZw,k6G,cqH,K2f,fWA,yq0,wBH,YTf,UjG,IW0,eZ1,Ys,djP,hZP,sqf,pBH,Er,PW,zZ_,mj1,pZ,QqA,CZ,rv,QZ,BRL,X2,L3H,BW,ZkB,Nnx,S9B,iks,LQ,u8B,TnL,tMw,W3s,bkx,Gaf,$ef,VH,DeB,lT_,vQF,oQt,RRP,cNB,nQG,K3f,go,yNf,wvw,Ue_,Y9h,eRs,IT1,deH,aTt,hR_,siP,jif,EQA,
P21,cx,xeP,q90,nQ,KQ,fQ,Llt,ZXw,Nrw,SxL,iXh,uBx,TrG,bX1,MD_,gew,G7f,FlH,U6,eX,IZ,aZ,jX,E6,Px,DJG,zT,veL,mz,oe1,R3B,Ja,czH,neh,Klx,dJf,h3_,pq1,CvH,JzF,aC_,rzG,Azh,WLP,ZdP,GXf,Sk1,gDH,FLf,Hx,Ddh,xj,vD0,oDB,cJs,nD_,KLs,kXs,Zl,whf,UdF,Ykh,edh,IUG,ddh,aUA,yJh,j_f,ED_,PAA,S2,rJB,Q_0,CAB,AJx,HdH,xdw,qkP,BD_,T$B,OY_,ViB,MiL,gY,vN1,DgF,lhP,KWf,klB,yCw,w9_,Ugt,YRG,eEL,nA,p9H,mgw,ENH,jXF,zEB,dgG,CnL,N9F,X9f,ACf,HYH,Mww,G0_,bVL,o0x,VwA,Ihh,v00,QXh,ZVx,g0w,JCw,hEh,aht,sXG,Pn0,WRH,pA,a9P,sVs,jV0,E0w,P4A,ASH,Zlx,
Nm1,BK,ilx,tCw,bls,VCt,g9x,GqA,$rA,l7P,Drs,v9t,be,o9_,RsH,n9G,cuH,M4,UrG,wTH,yux,drA,YSB,a71,I7t,hsG,sbP,pTw,E9B,Pjf,mr_,ruL,QbG,HlF,Bm_,xr1,qSG,Zmw,Siw,le,uTx,Omt,T3w,W4f,gow,GnG,D30,vo_,no,Ko,noP,K4x,fo,kb,f2_,yb,wx,knP,UV,yZw,Yb,wtB,U31,I6,Yi_,eUf,I2s,d3_,a2t,sLB,hUL,EoL,zUw,ptt,m3G,JZP,jL_,CFs,Xtf,QLx,PFw,AZs,Hmh,jS,B3H,qiH,x3B,LXP,ZM_,Sc1,NcA,iMH,PM,Tcx,tWG,uQw,WXw,VWH,bMP,FXt,lKP,nMG,y91,po,Yc0,exH,zD,IKt,rx,Qb,EMA,J2,xb,Pmf,pVA,mH0,J9B,r9h,XV0,A9h,HM1,Bc0,LaH,uEG,SWw,qcf,TKG,td_,N7,i5w,O51,
uN,WaG,Vd1,b51,Md_,$QH,gTF,FaA,oT_,RHx,k5s,fiH,UQL,hHh,sA0,ET_,paA,zHx,J5B,Cys,r5H,Xah,A5H,H5H,qWf,SyP,i7F,LQt,TIw,O70,tsA,ui_,WQ0,b7L,MsF,gpG,Gwf,FQB,Df,lN,RM,nH,lIB,vp_,Rm_,KQt,KH,fH,fI1,kd,wzP,UYw,YyL,wd,hmh,P30,zmP,mYG,JYB,rYP,Qnw,Xzw,BI_,Yd,xYB,ZcP,ej,NgG,Tgx,IM,WFh,dd,sU,jj,VJL,MJL,bch,GkL,FFL,$bs,Db_,gBP,c4f,nBF,fw_,y4t,e$H,Y8t,IwH,awh,h$h,s8P,j8t,EBF,PlB,pnH,J4P,z$h,m_,r4t,JQ,Q8H,rd,Qe,XnF,A4H,Hc1,BgP,xb_,X$,q8F,LBf,ZLP,StA,uGB,TpB,t7h,OL1,WB_,bLh,V7h,AQ,gW1,FBf,$6w,D6H,l3t,RXP,nWt,q7,f3G,
yL0,wFs,U6F,YtP,eXs,I3P,d6P,a3G,cLL,KBA,hXG,sTB,pFx,zXw,m6G,JLG,uDH,O21,WC0,V5w,t5L,$X0,vFA,DXt,oFs,nFh,fQw,yvh,ek1,Y4F,hkt,W2,syP,jyB,VT,EFB,bc,PYf,pcP,zkf,Jvs,mXB,CYx,rvw,Qyf,XcA,Z6_,Se0,uOt,i6w,xXF,H2P,tRB,WVP,Gbx,FVf,lXP,KV_,kb1,FJ,ypB,U9h,Yex,IX0,s1P,PO1,m9H,Jpf,CO_,rp1,BS0,Q1G,ZO0,NEP,Sb0,uds,lc,TEt,OO1,WPF,VQs,bOF,MQG,gat,G_P,$Rx,DRs,nv,lcP,vat,RYG,fv,oa1,na_,ywh,w0,wDL,URs,Ybt,dR_,acF,eYL,sNs,pD_,zYx,mRP,aH,JwL,XDL,Awf,Eo,xRh,HOP,BEB,ZTf,Nfx,SF0,tcx,Vc0,WZA,OTB,bTG,gZP,GK1,vZA,FZ0,oZw,ccs,
Roh,wbh,eo0,dft,hoB,PkF,QwL,vB,Acs,qFL,ZF1,DW,UT,thA,bF_,Vhf,g3f,GWB,$UA,Fi_,DUx,ljw,Y6,z31,OFF,MhF,Wis,ya,RTw,cKA,n3t,Ki_,fjw,yKF,w$B,UUB,Y$F,eTw,z6,Ijx,dUP,ajA,hTh,sBH,rR,jBx,p$f,mUG,JK_,BMs,q$t,Lc1,ZfG,SOt,ifF,ZT,TH0,t3F,Of1,WcP,V3_,bfH,gvG,FcB,Dvx,lah,Kcw,ceB,fax,w3L,Uvt,O9,YOH,eVf,Iat,hVF,juh,suF,Ph_,zVL,Me,Je0,Ch0,mv_,reh,Qu_,Ae1,BHw,HfH,xvf,X3h,qOL,LAs,ZKs,Net,Sjf,iKf,ufA,TeB,tKA,VKP,WAB,bKs,gXf,MK_,gn,Gx1,DN0,Ru1,FAG,KAL,fA1,kxw,yyH,Yjs,j3P,EXw,pSh,zuH,kQ,ryF,HKx,qjw,yE,Sww,Lyx,ZDA,NV0,iDh,
Wy_,Ii,p0B,zKB,JEB,Cox,rEh,QUs,AEL,HDw,uXB,Zbw,SBt,tG1,TXA,Ob0,Wjs,bbs,guF,Fj_,Dot,leh,out,YBL,doB,hhB,s2G,j2s,Eu1,Pzh,zhx,moF,rlt,Q2x,XoB,Als,Hbh,BX1,xoh,qBx,Nih,Tit,Ck,rn,QE,tVA,OSG,Hv,VVw,vCh,fRt,nCG,z6G,mkw,JOG,MVw,lRF,Fx0,rOw,Qf0,Xpw,AOA,R6H,HSF,xk1,LbG,SqA,iNH,T7,gg0,FbB,D11,lHw,RBB,ngw,cI_,k9x,wAL,hBh,d1t,Yq_,aHf,eB1,s9F,pA1,cq,nX,HNs,Q9B,x1f,qqs,ZJL,NaB,fX,SL_,TaH,tq1,OJt,WUs,DP0,$PP,dr,n1s,Pq,fpx,keH,z7,ykP,w7P,UPs,YL_,ec_,IpF,dPH,apH,hcB,svt,jvA,E1_,P_x,p7t,zcA,ml,mPt,JkF,C_0,rk_,Qvx,X7h,
AkA,HJs,BaL,xPt,qLG,LnL,CX,NC1,iPh,TCP,WnG,MTH,g2_,Gus,$l_,lLw,v2F,o2_,ZU,fLA,n2G,kuH,ytw,wNt,e4G,ILL,dls,h4_,gD,jdH,bA,PKt,pN1,GX,z4G,mlL,Jt_,CKf,$D,AtA,BC0,NAt,ZWh,iWh,uA1,nd,TA0,tBP,WOA,bWs,MBG,Gy1,FO1,VB_,$w_,Rjf,f$P,kyf,Kd,yP_,wit,dw1,UwB,ejG,I$G,PuF,hj1,pis,mwP,CuG,rPw,QaH,Xix,APt,HW1,xwt,q0B,LEP,Z$x,NUf,i$h,TUf,WEL,g7H,$tA,lOA,Rif,eA,c8h,n7h,KEw,fOt,kN_,wef,UtA,YE_,ei1,IOG,dt0,aO0,hiP,jpx,E7F,PVG,ziF,pef,CVs,Qpf,a_,Xe_,BUP,H$w,LHP,ZzL,NGG,izh,taF,VaH,WHh,TGw,g4_,MaG,ltB,GU0,Ph,$0B,fts,RL1,
cbs,n41,KHh,kUx,wUA,ybG,pd,zX,hLs,YhL,at1,d0B,eLw,ItL,E4B,pU_,m0A,zLs,JbH,XUh,Qrw,Hzx,x0F,qhh,BGA,LG0,NQx,Zts,itH,tHw,X4,OtL,WGx,MHs,Dxh,nYF,Hh,fJf,Ux_,dxL,IJf,YmF,eN1,Zh,jzs,aJG,hN1,EY0,pZG,PZw,J$f,CZw,Qz0,XZH,A$L,Htf,BQG,qm_,LNF,Dh,N4w,SXG,t6F,OI_,c9,WNf,bIf,o8H,yV,FNH,v8s,$_A,D_G,KN1,n8t,wuH,fn_,U_H,YXA,UR,InF,d_A,anL,er0,IX,hrt,YN,P6h,QhG,Xu_,AAh,HIh,B4f,x_F,NOt,LIF,Z3x,qXh,i3s,tgw,VgL,b3A,gAL,$aP,Gds,FI0,DaP,vA_,oA1,RJF,cGA,nAH,KI0,kdf,pY,w1h,eJw,Yfx,da1,I1x,a1f,hJ1,jK0,EAF,AGw,QKH,xax,qfh,u9f,
TBH,tpB,OuP,W61,VpF,gIt,GSG,F6w,DK_,lyt,vIB,oIH,Rnx,cXF,K6w,fyf,kS_,NV,YA0,UKH,wI0,yXA,IyG,hnf,dKB,j5L,EIG,Pi0,pIt,zn1,mKA,JXh,CiB,HuB,rXF,Q5P,XIs,BB1,xK0,qA1,AXH,tS,N2h,iwh,Sss,WQ,T2P,tl0,OwP,upt,Wsh,Vlf,bwF,Mlw,grF,Fsw,$MB,DMP,l_s,R8F,orP,khh,vrh,b4,yMh,cM0,f_H,UMG,YsA,e8G,I_G,dM1,h8A,s0P,j0H,Prx,z8t,JMt,rM0,B2_,AMH,HwB,XCh,Q0h,xMf,qsf,Lp_,ZRH,fV,ueF,t_w,ORf,WpH,V_t,bRG,M_G,yB,w9,DA0,GCt,gy0,Fpw,wJH,kCH,$A1,f6w,hS0,sRf,jRs,Eyt,P1H,mAh,C1s,QRA,ATs,HRP,B_F,Zrh,Lef,NzP,irf,AS,tFH,OrH,We0,VFh,brA,MFH,
gc1,BQ,x0,$yh,Dyx,vch,c6s,wmP,dyL,IEA,aEG,sCw,jCw,EcA,PSt,pmw,zW0,ij,myA,Hr_,Bzx,QCL,r6G,A6_,Xm1,NWw,S1A,iEF,uFt,TWt,t$B,V$_,WDF,OEP,vmx,Ds_,omA,RwL,cnt,fVA,kHP,nmw,KD0,aVA,soB,EmH,pP_,mss,CEA,An_,HE_,BW_,LfH,q1f,xsw,ZgA,NtA,SaA,ig1,uVP,Ttx,tvx,Ogt,Wfh,Vv1,gH1,Gr0,FfF,$SF,DSL,lo_,oHs,Rgf,cos,nHH,KfA,fox,USw,Yaf,IoB,aof,dS1,hgh,$9,skG,jkw,EHw,Pft,Jo0,mSL,Cf0,roP,QkB,XjH,BtL,qaf,Lr0,Z_F,NNG,SQA,i_B,u01,TNF,t8w,O_P,V8h,Wrw,b_F,M8G,glw,Gj0,FrA,$D0,DDs,lBP,Kl,olG,RfF,nl0,KrB,fBf,kjA,ygG,wk1,YQ_,efx,dDB,
wm,sPt,pkw,Elx,jPF,PW0,zfx,mDw,JgG,QPh,XkB,AgF,H_f,xDs,qQ_,L9H,Nh0,ZCG,SHL,iCP,uS1,OCA,W9s,VI_,bCL,MIH,gqs,$5P,D5f,sS,nqA,K9P,kvA,U5s,wrh,YHL,ett,jC,PT,d5G,amP,mK,Ju,Eqw,htx,sc_,ztH,m5_,J7L,CLL,A7H,Bhw,x5P,qH0,LqF,Zjw,SJs,ijF,ukw,Tlx,tx_,Ojx,WqH,Qm,VxB,bjP,Au,Mxh,gzA,Gff,FqA,$pH,DpB,x9,qr,ldB,vzH,Lm,ozA,RFA,cFs,nzB,fdB,kfG,wOs,dp_,Idt,eFf,ad0,hF_,mp_,Ezx,P8G,pOL,jE1,zFx,N3,rF1,QEG,XOB,AFs,Hjx,xpG,L7x,S7_,tOs,uCh,Sy,iiH,MOL,G8w,iF,F7L,$Bx,DBL,vnA,onP,R7f,cRB,K7L,fzF,k8L,wgA,UBB,e7B,IzB,j$H,s$t,Pbf,
pgF,z7f,JR0,Cb1,rRx,Q$t,Xgw,q7B,L1B,ZB_,N6G,uLt,OBA,M3,Gn,g3,FT,W1x,VLA,bBH,MLB,gJ0,F1G,$zt,Dz0,lYw,oJf,RzG,cif,$o,nJx,K1f,yi1,w5h,D2,lF,ezG,UzH,IYx,hz_,dzx,sxP,EJA,ct,PsA,p5G,Jis,riB,nm,X5w,AiP,HBG,B6w,xzP,qdF,Loh,ZeG,unf,TkG,Wow,tPf,OeL,VPf,Gm_,beP,gi1,FoH,$hw,DhH,oiH,RIA,cDG,Kof,fgs,eI1,YZ0,jGs,pYs,IL,zIL,JhP,mhG,JDf,rDs,ADF,Hef,S2B,i9H,uHA,T8w,tEH,O9_,VEt,b9t,gx1,FvH,MEG,GJL,DFH,$Ft,vxH,cBL,oxw,nxL,KvH,f5H,kJL,yB_,wft,Y2h,UFw,a5P,jDt,hP_,Exx,PaH,pfF,zn,zPf,mFP,JZ,Caf,JB1,rBP,Xfh,QDh,xFH,q2F,ZUP,
NqF,iU1,uzH,Tqs,tes,VeG,Mef,F$H,G$_,$E1,DEH,oKL,YpG,K$_,Ivw,dEt,hph,sIA,pR1,zpx,mEG,J1s,Cwf,r1P,XRh,A10,HUx,xEG,BqP,qpF,uuB,Ts1,t1f,O4F,WJh,V1f,b41,gfs,$iH,DiH,lrt,vf1,ofh,RD_,KJH,nfH,yHP,UiG,YzL,eDB,IrB,dif,hD0,arH,j4s,mi0,Q4P,rHx,XHG,AHh,H41,xiA,FQ,Lu0,vV,NuF,ipP,uyL,MmF,GGH,DnA,vkG,okt,c_s,nkP,Ku_,kGw,wG0,Unw,eq0,aqt,dnh,Iq_,fM,sJw,hqw,jJs,Ek1,P$F,pG0,zqG,mnw,J_t,r__,QJG,XGf,A_P,Hpx,Bu_,xn_,qPL,LTB,NbB,SDh,bah,M00,gOF,FT1,$m0,DmF,oOH,Ij,kMA,ymL,UmH,YDs,eOP,IZB,dmw,aj,uI,h9,jW,JmH,CJx,X_h,HaH,Am1,
PV,Bbw,xmt,qDh;Lh1=function(){var L,Z;return typeof CSS!=="undefined"&&((Z=(L=CSS).supports)==null?void 0:Z.call(L,"selector(:has(*))"))};
Z1_=function(L){return L.visibility!=="hidden"&&L.display!=="none"};
SG0=function(L){if(Lh1()||L.tagName!=="DETAILS"?!L.matches(NPt):L.querySelector("summary")!==null)return-1;L=L.getAttribute("tabindex")||"0";return Number(L)};
i1x=function(L){return L.some(function(Z){return SG0(Z)>0})};
uwA=function(L){if(L.textContent||L.ariaLabel)return!0;if(L instanceof HTMLInputElement){if(!L.labels)return!1;L=_.O(L.labels);for(var Z=L.next();!Z.done;Z=L.next())if(Z.value.textContent)return!0}return!1};
TPf=function(L){return L.sort(function(Z,N){return SG0(N)-SG0(Z)})};
_.tfL=function(L){L=Array.from(L.querySelectorAll(NPt)).filter(function(Z){return(Z1_(Z.style)?Z1_(window.getComputedStyle(Z)):!1)&&uwA(Z)});
return i1x(L)?TPf(L):L};
_.NL=function(L,Z){if(Error.captureStackTrace)Error.captureStackTrace(this,_.NL);else{var N=Error().stack;N&&(this.stack=N)}L&&(this.message=String(L));Z!==void 0&&(this.cause=Z)};
Sf=function(){throw Error("E");};
O1x=function(L,Z){Z=String.fromCharCode.apply(null,Z);return L==null?Z:L+Z};
MfL=function(L){var Z=!1;Z=Z===void 0?!1:Z;if(Whs){if(Z&&(Vfx?!L.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(L)))throw Error("F");L=(b1B||(b1B=new TextEncoder)).encode(L)}else{for(var N=0,S=new Uint8Array(3*L.length),u=0;u<L.length;u++){var T=L.charCodeAt(u);if(T<128)S[N++]=T;else{if(T<2048)S[N++]=T>>6|192;else{if(T>=55296&&T<=57343){if(T<=56319&&u<L.length){var W=L.charCodeAt(++u);if(W>=56320&&W<=57343){T=(T-55296)*1024+W-56320+65536;S[N++]=T>>18|
240;S[N++]=T>>12&63|128;S[N++]=T>>6&63|128;S[N++]=T&63|128;continue}else u--}if(Z)throw Error("F");T=65533}S[N++]=T>>12|224;S[N++]=T>>6&63|128}S[N++]=T&63|128}}L=N===S.length?S:S.subarray(0,N)}return L};
uH=function(L){_.iH.setTimeout(function(){throw L;},0)};
_.TB=function(L,Z){return L.lastIndexOf(Z,0)==0};
OG=function(L,Z){var N=L.length-Z.length;return N>=0&&L.indexOf(Z,N)==N};
_.V_=function(L){return/^[\s\xa0]*$/.test(L)};
_.bH=function(L,Z){return L.indexOf(Z)!=-1};
_.ML=function(L,Z){return _.bH(L.toLowerCase(),Z.toLowerCase())};
_.$t=function(L,Z){var N=0;L=gP(String(L)).split(".");Z=gP(String(Z)).split(".");for(var S=Math.max(L.length,Z.length),u=0;N==0&&u<S;u++){var T=L[u]||"",W=Z[u]||"";do{T=/(\d*)(\D*)(.*)/.exec(T)||["","","",""];W=/(\d*)(\D*)(.*)/.exec(W)||["","","",""];if(T[0].length==0&&W[0].length==0)break;N=gt_(T[1].length==0?0:parseInt(T[1],10),W[1].length==0?0:parseInt(W[1],10))||gt_(T[2].length==0,W[2].length==0)||gt_(T[2],W[2]);T=T[3];W=W[3]}while(N==0)}return N};
gt_=function(L,Z){return L<Z?-1:L>Z?1:0};
_.vs=function(){var L=_.iH.navigator;return L&&(L=L.userAgent)?L:""};
GBB=function(L){if(!oF||!cs)return!1;for(var Z=0;Z<cs.brands.length;Z++){var N=cs.brands[Z].brand;if(N&&_.bH(N,L))return!0}return!1};
n1=function(L){return _.bH(_.vs(),L)};
kt=function(){return oF?!!cs&&cs.brands.length>0:!1};
FhL=function(){return kt()?!1:n1("Opera")};
$LF=function(){return kt()?!1:n1("Trident")||n1("MSIE")};
DLB=function(){return kt()?GBB("Microsoft Edge"):n1("Edg/")};
y_=function(){return n1("Firefox")||n1("FxiOS")};
_.l0w=function(){return n1("Safari")&&!(_.UG()||(kt()?0:n1("Coast"))||FhL()||(kt()?0:n1("Edge"))||DLB()||(kt()?GBB("Opera"):n1("OPR"))||y_()||n1("Silk")||n1("Android"))};
_.UG=function(){return kt()?GBB("Chromium"):(n1("Chrome")||n1("CriOS"))&&!(kt()?0:n1("Edge"))||n1("Silk")};
_.vtF=function(){return n1("Android")&&!(_.UG()||y_()||FhL()||n1("Silk"))};
ot1=function(L){var Z={};L.forEach(function(N){Z[N[0]]=N[1]});
return function(N){return Z[N.find(function(S){return S in Z})]||""}};
RAh=function(L){var Z=_.vs();if(L==="Internet Explorer"){if($LF())if((L=/rv: *([\d\.]*)/.exec(Z))&&L[1])Z=L[1];else{L="";var N=/MSIE +([\d\.]+)/.exec(Z);if(N&&N[1])if(Z=/Trident\/(\d.\d)/.exec(Z),N[1]=="7.0")if(Z&&Z[1])switch(Z[1]){case "4.0":L="8.0";break;case "5.0":L="9.0";break;case "6.0":L="10.0";break;case "7.0":L="11.0"}else L="7.0";else L=N[1];Z=L}else Z="";return Z}var S=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");N=[];for(var u;u=S.exec(Z);)N.push([u[1],u[2],u[3]||void 0]);
Z=ot1(N);switch(L){case "Opera":if(FhL())return Z(["Version","Opera"]);if(kt()?GBB("Opera"):n1("OPR"))return Z(["OPR"]);break;case "Microsoft Edge":if(kt()?0:n1("Edge"))return Z(["Edge"]);if(DLB())return Z(["Edg"]);break;case "Chromium":if(_.UG())return Z(["Chrome","CriOS","HeadlessChrome"])}return L==="Firefox"&&y_()||L==="Safari"&&_.l0w()||L==="Android Browser"&&_.vtF()||L==="Silk"&&n1("Silk")?(Z=N[2])&&Z[1]||"":""};
_.cxA=function(L){if(kt()&&L!=="Silk"){var Z=cs.brands.find(function(N){return N.brand===L});
if(!Z||!Z.version)return NaN;Z=Z.version.split(".")}else{Z=RAh(L);if(Z==="")return NaN;Z=Z.split(".")}return Z.length===0?NaN:Number(Z[0])};
ef=function(){return oF?!!cs&&!!cs.platform:!1};
_.ntt=function(){return ef()?cs.platform==="Android":n1("Android")};
Kht=function(){return n1("iPhone")&&!n1("iPod")&&!n1("iPad")};
_.IF=function(){return Kht()||n1("iPad")||n1("iPod")};
_.f0A=function(){return ef()?cs.platform==="macOS":n1("Macintosh")};
_.kBw=function(){return ef()?cs.platform==="Windows":n1("Windows")};
_.yxw=function(){return ef()?cs.platform==="Chrome OS":n1("CrOS")};
_.aF=function(L){return L[L.length-1]};
_.hx=function(L,Z,N){Z=_.wsx(L,Z,N);return Z<0?null:typeof L==="string"?L.charAt(Z):L[Z]};
_.wsx=function(L,Z,N){for(var S=L.length,u=typeof L==="string"?L.split(""):L,T=0;T<S;T++)if(T in u&&Z.call(N,u[T],T,L))return T;return-1};
ULt=function(L){for(var Z=_.sG,N=typeof L==="string"?L.split(""):L,S=L.length-1;S>=0;S--)if(S in N&&Z.call(void 0,N[S],S,L))return S;return-1};
_.p1=function(L,Z){return _.EG(L,Z)>=0};
_.YGt=function(L,Z){_.p1(L,Z)||L.push(Z)};
_.zB=function(L,Z){Z=_.EG(L,Z);var N;(N=Z>=0)&&_.eAs(L,Z);return N};
_.eAs=function(L,Z){Array.prototype.splice.call(L,Z,1)};
_.mh=function(L){var Z=L.length;if(Z>0){for(var N=Array(Z),S=0;S<Z;S++)N[S]=L[S];return N}return[]};
_.C1=function(L,Z){for(var N=1;N<arguments.length;N++){var S=arguments[N];if(_.Jx(S)){var u=L.length||0,T=S.length||0;L.length=u+T;for(var W=0;W<T;W++)L[u+W]=S[W]}else L.push(S)}};
_.dLx=function(L,Z,N,S){Array.prototype.splice.apply(L,I0f(arguments,1))};
I0f=function(L,Z,N){return arguments.length<=2?Array.prototype.slice.call(L,Z):Array.prototype.slice.call(L,Z,N)};
a0G=function(L,Z){Z=Z||L;for(var N=0,S=0,u={};S<L.length;){var T=L[S++],W=_.Q_(T)?"o"+_.Hs(T):(typeof T).charAt(0)+T;Object.prototype.hasOwnProperty.call(u,W)||(u[W]=!0,Z[N++]=T)}Z.length=N};
_.sFA=function(L,Z,N){N=N||_.hAL;for(var S=0,u=L.length,T;S<u;){var W=S+(u-S>>>1);var V=N(Z,L[W]);V>0?S=W+1:(u=W,T=!V)}return T?S:-S-1};
_.Bs=function(L,Z,N){if(!_.Jx(L)||!_.Jx(Z)||L.length!=Z.length)return!1;var S=L.length;N=N||jFA;for(var u=0;u<S;u++)if(!N(L[u],Z[u]))return!1;return!0};
_.hAL=function(L,Z){return L>Z?1:L<Z?-1:0};
jFA=function(L,Z){return L===Z};
Et_=function(L,Z,N){Z=Array.prototype.splice.call(L,Z,1);Array.prototype.splice.call(L,N,0,Z[0])};
psP=function(L){return PH_[L]||""};
JxB=function(L){if(!zAt)return _.xt(L);L=mLt.test(L)?L.replace(mLt,psP):L;L=atob(L);for(var Z=new Uint8Array(L.length),N=0;N<L.length;N++)Z[N]=L.charCodeAt(N);return Z};
CHw=function(L,Z){L.__closure__error__context__984382||(L.__closure__error__context__984382={});L.__closure__error__context__984382.severity=Z};
_.L0=function(L){L=Error(L);CHw(L,"warning");return L};
QFG=function(L,Z){if(L!=null){var N;var S=(N=rxt)!=null?N:rxt={};N=S[L]||0;N>=Z||(S[L]=N+1,L=Error(),CHw(L,"incident"),uH(L))}};
NI=function(L,Z,N){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(N===void 0?0:N)&&Symbol.for&&L?Symbol.for(L):L!=null?Symbol(L):Symbol():Z};
Wl=function(L,Z){St||_.ts in L||XsL(L,Axf);L[_.ts]|=Z};
Vq=function(L,Z){St||_.ts in L||XsL(L,Axf);L[_.ts]=Z};
H1F=function(L){if(4&L)return 512&L?512:1024&L?1024:0};
bt=function(L){Wl(L,34);return L};
BPh=function(L){Wl(L,8192);return L};
xL1=function(L){Wl(L,32);return L};
MI=function(){return typeof BigInt==="function"};
cl=function(L,Z){return Z===void 0?L.copyOnWrite!==DN&&!!(2&(L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.ts]|0)):!!(2&Z)&&L.copyOnWrite!==DN};
_.et=function(L,Z){if(L!=null)if(typeof L==="string")L=L?new w5(L,UY):_.YL();else if(L.constructor!==w5)if(qGf&&L!=null&&L instanceof Uint8Array)L=L.length?new w5(new Uint8Array(L),UY):_.YL();else{if(!Z)throw Error();L=void 0}return L};
LMG=function(L,Z){if(typeof Z!=="number"||Z<0||Z>=L.length)throw Error();};
Z0G=function(L,Z,N){var S=Z&128?0:-1,u=L.length,T;if(T=!!u)T=L[u-1],T=T!=null&&typeof T==="object"&&T.constructor===Object;var W=u+(T?-1:0);for(Z=Z&128?1:0;Z<W;Z++)N(Z-S,L[Z]);if(T){L=L[u-1];for(var V in L)!isNaN(V)&&N(+V,L[V])}};
hs=function(L){return L&128?aO:void 0};
sY=function(L){L.isGuard_doNotManuallySetPrettyPlease=!0;return L};
SYG=function(){var L=N5F;return sY(function(Z){for(var N in L)if(Z===L[N]&&!/^[0-9]+$/.test(N))return!0;return!1})};
_.jt=function(L){var Z=L;if(i0B(Z)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(Z))throw Error(String(Z));}else if(uhw(Z)&&!Number.isSafeInteger(Z))throw Error(String(Z));return T5_?BigInt(L):L=ttG(L)?L?"1":"0":i0B(L)?L.trim()||"0":String(L)};
O0x=function(L,Z){if(L.length>Z.length)return!1;if(L.length<Z.length||L===Z)return!0;for(var N=0;N<L.length;N++){var S=L[N],u=Z[N];if(S>u)return!1;if(S<u)return!0}};
WMs=function(L){var Z=L>>>0;EY=Z;Pl=(L-Z)/4294967296>>>0};
p0=function(L){if(L<0){WMs(-L);var Z=_.O(VtL(EY,Pl));L=Z.next().value;Z=Z.next().value;EY=L>>>0;Pl=Z>>>0}else WMs(L)};
Mt0=function(L){var Z=b0H||(b0H=new DataView(new ArrayBuffer(8)));Z.setFloat32(0,+L,!0);Pl=0;EY=Z.getUint32(0,!0)};
gLs=function(L,Z){var N=Z*4294967296+(L>>>0);return Number.isSafeInteger(N)?N:_.zV(L,Z)};
mM=function(L,Z){var N=Z&2147483648;N&&(L=~L+1>>>0,Z=~Z>>>0,L==0&&(Z=Z+1>>>0));L=gLs(L,Z);return typeof L==="number"?N?-L:L:N?"-"+L:L};
GVL=function(L){var Z=EY,N=Pl,S=N>>31;N=(N<<1|Z>>>31)^S;L(Z<<1^S,N)};
FMG=function(L,Z){var N=-(L&1);L=(L>>>1|Z<<31)^N;return mM(L,Z>>>1^N)};
_.zV=function(L,Z){Z>>>=0;L>>>=0;if(Z<=2097151)var N=""+(4294967296*Z+L);else MI()?N=""+(BigInt(Z)<<BigInt(32)|BigInt(L)):(N=(L>>>24|Z<<8)&16777215,Z=Z>>16&65535,L=(L&16777215)+N*6777216+Z*6710656,N+=Z*8147497,Z*=2,L>=1E7&&(N+=L/1E7>>>0,L%=1E7),N>=1E7&&(Z+=N/1E7>>>0,N%=1E7),N=Z+$IA(N)+$IA(L));return N};
$IA=function(L){L=String(L);return"0000000".slice(L.length)+L};
_.DI0=function(L,Z){Z&2147483648?MI()?L=""+(BigInt(Z|0)<<BigInt(32)|BigInt(L>>>0)):(Z=_.O(VtL(L,Z)),L=Z.next().value,Z=Z.next().value,L="-"+_.zV(L,Z)):L=_.zV(L,Z);return L};
Js=function(L){if(L.length<16)p0(Number(L));else if(MI())L=BigInt(L),EY=Number(L&BigInt(4294967295))>>>0,Pl=Number(L>>BigInt(32)&BigInt(4294967295));else{var Z=+(L[0]==="-");Pl=EY=0;for(var N=L.length,S=Z,u=(N-Z)%6+Z;u<=N;S=u,u+=6)S=Number(L.slice(S,u)),Pl*=1E6,EY=EY*1E6+S,EY>=4294967296&&(Pl+=Math.trunc(EY/4294967296),Pl>>>=0,EY>>>=0);Z&&(Z=_.O(VtL(EY,Pl)),L=Z.next().value,Z=Z.next().value,EY=L,Pl=Z)}};
VtL=function(L,Z){Z=~Z;L?L=~L+1:Z+=1;return[L,Z]};
C0=function(L){return Array.prototype.slice.call(L)};
_.Xh=function(L,Z){throw Error(Z===void 0?"unexpected value "+L+"!":Z);};
_.Bl=function(L){if(L!=null&&typeof L!=="number")throw Error("L`"+typeof L+"`"+L);return L};
_.xL=function(L){if(L==null||typeof L==="number")return L;if(L==="NaN"||L==="Infinity"||L==="-Infinity")return Number(L)};
lNH=function(L){if(L!=null&&typeof L!=="boolean")throw Error("M`"+_.qI(L)+"`"+L);return L};
_.vLh=function(L){if(L==null||typeof L==="boolean")return L;if(typeof L==="number")return!!L};
_.ZP=function(L){switch(typeof L){case "bigint":return!0;case "number":return L8(L);case "string":return oLF.test(L);default:return!1}};
_.Nc=function(L){if(!L8(L))throw _.L0("enum");return L|0};
_.t0=function(L){return L==null?L:L8(L)?L|0:void 0};
RQf=function(L){if(typeof L!=="number")throw _.L0("int32");if(!L8(L))throw _.L0("int32");return L|0};
_.Ov=function(L){return L==null?L:RQf(L)};
_.Ww=function(L){if(L==null)return L;if(typeof L==="string"&&L)L=+L;else if(typeof L!=="number")return;return L8(L)?L|0:void 0};
_.csP=function(L){if(L==null)return L;if(typeof L==="string"&&L)L=+L;else if(typeof L!=="number")return;return L8(L)?L>>>0:void 0};
kVw=function(L){var Z=0;Z=Z===void 0?0:Z;if(!_.ZP(L))throw _.L0("int64");var N=typeof L;switch(Z){case 512:switch(N){case "string":return Vs(L);case "bigint":return String(Mc(64,L));default:return nLx(L)}case 1024:switch(N){case "string":return KMG(L);case "bigint":return _.jt(Mc(64,L));default:return fNt(L)}case 0:switch(N){case "string":return Vs(L);case "bigint":return _.jt(Mc(64,L));default:return gy(L)}default:return _.Xh(Z,"Unknown format requested type for int64")}};
Gg=function(L){return L==null?L:kVw(L)};
ysH=function(L){var Z=L.length;if(L[0]==="-"?Z<20||Z===20&&L<="-9223372036854775808":Z<19||Z===19&&L<="9223372036854775807")return L;Js(L);return _.DI0(EY,Pl)};
wlA=function(L){if(L[0]==="-")var Z=!1;else Z=L.length,Z=Z<20?!0:Z===20&&L<="18446744073709551615";if(Z)return L;Js(L);return _.zV(EY,Pl)};
gy=function(L){L=Fm(L);$5(L)||(p0(L),L=mM(EY,Pl));return L};
_.UIs=function(L){L=Fm(L);L>=0&&$5(L)||(p0(L),L=gLs(EY,Pl));return L};
nLx=function(L){L=Fm(L);$5(L)?L=String(L):(p0(L),L=_.DI0(EY,Pl));return L};
_.YYP=function(L){L=Fm(L);L>=0&&$5(L)?L=String(L):(p0(L),L=_.zV(EY,Pl));return L};
Vs=function(L){var Z=Fm(Number(L));if($5(Z))return String(Z);Z=L.indexOf(".");Z!==-1&&(L=L.substring(0,Z));return ysH(L)};
KMG=function(L){var Z=Fm(Number(L));if($5(Z))return _.jt(Z);Z=L.indexOf(".");Z!==-1&&(L=L.substring(0,Z));return MI()?_.jt(Mc(64,BigInt(L))):_.jt(ysH(L))};
fNt=function(L){return $5(L)?_.jt(gy(L)):_.jt(nLx(L))};
_.eQ_=function(L){return $5(L)?_.jt(_.UIs(L)):_.jt(_.YYP(L))};
_.INh=function(L){var Z=Fm(Number(L));if($5(Z)&&Z>=0)return String(Z);Z=L.indexOf(".");Z!==-1&&(L=L.substring(0,Z));return wlA(L)};
_.dIH=function(L){var Z=Fm(Number(L));if($5(Z)&&Z>=0)return _.jt(Z);Z=L.indexOf(".");Z!==-1&&(L=L.substring(0,Z));return MI()?_.jt((0,_.DP)(64,BigInt(L))):_.jt(wlA(L))};
_.hQH=function(L){if(L==null)return L;if(typeof L==="bigint")return aNs(L)?L=Number(L):(L=Mc(64,L),L=aNs(L)?Number(L):String(L)),L;if(_.ZP(L))return typeof L==="number"?gy(L):Vs(L)};
sOA=function(L,Z){Z=Z===void 0?!1:Z;var N=typeof L;if(L==null)return L;if(N==="bigint")return String(Mc(64,L));if(_.ZP(L))return N==="string"?Vs(L):Z?nLx(L):gy(L)};
_.jOx=function(L){var Z=typeof L;if(L==null)return L;if(Z==="bigint")return _.jt(Mc(64,L));if(_.ZP(L))return Z==="string"?KMG(L):fNt(L)};
ELw=function(L){if(L==null)return L;var Z=typeof L;if(Z==="bigint")return String(Mc(64,L));if(_.ZP(L)){if(Z==="string")return Vs(L);if(Z==="number")return gy(L)}};
Pth=function(L){if(L==null)return L;var Z=typeof L;if(Z==="bigint")return String((0,_.DP)(64,L));if(_.ZP(L)){if(Z==="string")return _.INh(L);if(Z==="number")return _.UIs(L)}};
_.vw=function(L){if(typeof L!=="string")throw Error();return L};
cw=function(L){if(L!=null&&typeof L!=="string")throw Error();return L};
_.K8=function(L){return L==null||typeof L==="string"?L:void 0};
mIB=function(L,Z,N,S){if(L!=null&&L[f8]===wy)return L;if(!Array.isArray(L))return N?S&2?Z[plL]||(Z[plL]=zQh(Z)):new Z:void 0;N=L[_.ts]|0;S=N|S&32|S&2;S!==N&&Vq(L,S);return new Z(L)};
zQh=function(L){L=new L;bt(L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return L};
Js_=function(L,Z,N){L=Z?RQf(L):_.Ww(L);return L==null?N?0:void 0:L|0};
Ct_=function(L){return L};
rsG=function(L){return L};
XlG=function(L,Z,N,S,u,T){L=mIB(L,S,N,T);u&&(L=QOH(L));return L};
Asf=function(L){return[L,this.get(L)]};
xIs=function(){return H0x||(H0x=new Uv(bt([]),void 0,void 0,void 0,B5h))};
qYh=function(L){var Z=eY(h0);return Z?L[Z]:void 0};
Ny0=function(L,Z){var N=N===void 0?!1:N;if(eY(LkF)&&eY(h0)&&void 0===LkF){var S=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=S[h0];if(!u)return;if(u=u.reviveUnknownFields)try{u(S,Z,Z80);return}catch(T){uH(T)}}N&&(L=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(N=eY(h0))&&N in L&&(L=L[N])&&delete L[Z])};
i8f=function(L,Z){var N=eY(h0),S;St&&N&&((S=L[N])==null?void 0:S[Z])!=null&&QFG(Svs,3)};
TyG=function(L,Z){Z<100||QFG(um1,1)};
b8B=function(L,Z,N,S){var u=S!==void 0;S=!!S;var T=eY(h0),W;!u&&St&&T&&(W=L[T])&&tYx(W,TyG);T=[];var V=L.length;W=4294967295;var M=!1,G=!!(Z&64),D=G?Z&128?0:-1:void 0;if(!(Z&1)){var l=V&&L[V-1];l!=null&&typeof l==="object"&&l.constructor===Object?(V--,W=V):l=void 0;if(G&&!(Z&128)&&!u){M=!0;var v;W=((v=O8A)!=null?v:Ct_)(W-D,D,L,l,void 0)+D}}Z=void 0;for(v=0;v<V;v++){var R=L[v];if(R!=null&&(R=N(R,S))!=null)if(G&&v>=W){var K=v-D,U=void 0;((U=Z)!=null?U:Z={})[K]=R}else T[v]=R}if(l)for(var d in l)V=l[d],
V!=null&&(V=N(V,S))!=null&&(v=+d,R=void 0,G&&!Number.isNaN(v)&&(R=v+D)<W?T[R]=V:(v=void 0,((v=Z)!=null?v:Z={})[d]=V));Z&&(M?T.push(Z):T[W]=Z);u&&eY(h0)&&(L=qYh(L))&&L instanceof Wk1&&(T[h0]=VYH(L));return T};
g5w=function(L){L[0]=MYA(L[0]);L[1]=MYA(L[1]);return L};
MYA=function(L){switch(typeof L){case "number":return Number.isFinite(L)?L:""+L;case "bigint":return aNs(L)?Number(L):""+L;case "boolean":return L?1:0;case "object":if(Array.isArray(L)){var Z=L[_.ts]|0;return L.length===0&&Z&1?void 0:b8B(L,Z,MYA)}if(L!=null&&L[f8]===wy)return GgA(L);if(L instanceof w5){Z=L.JSC$8819_value_;if(Z==null)L="";else if(typeof Z==="string")L=Z;else{if(zAt){for(var N="",S=0,u=Z.length-10240;S<u;)N+=String.fromCharCode.apply(null,Z.subarray(S,S+=10240));N+=String.fromCharCode.apply(null,
S?Z.subarray(S):Z);Z=btoa(N)}else Z=_.jY(Z);L=L.JSC$8819_value_=Z}return L}if(L instanceof Uv)return L=L.size!==0?Fk_(L,g5w):void 0,L;return}return L};
Ev=function(L,Z){if(Z){O8A=Z==null||Z===Ct_||Z[$cH]!==Dc0?Ct_:Z;try{return GgA(L)}finally{O8A=void 0}}return GgA(L)};
GgA=function(L){L=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return b8B(L,L[_.ts]|0,MYA)};
o5G=function(L){switch(typeof L){case "boolean":return lPF||(lPF=[0,void 0,!0]);case "number":return L>0?void 0:L===0?v5L||(v5L=[0,void 0]):[-L,void 0];case "string":return[0,L];case "object":return L}};
zg=function(L,Z,N){return L=_.p8(L,Z[0],Z[1],N?1:2)};
_.p8=function(L,Z,N,S){S=S===void 0?0:S;if(L==null){var u=32;N?(L=[N],u|=128):L=[];Z&&(u=u&-16760833|(Z&1023)<<14)}else{if(!Array.isArray(L))throw Error("O");u=L[_.ts]|0;if(Rvs&&1&u)throw Error("P");2048&u&&!(2&u)&&c0B();if(u&256)throw Error("Q");if(u&64)return S!==0||u&2048||Vq(L,u|2048),L;if(N&&(u|=128,N!==L[0]))throw Error("R");a:{N=L;u|=64;var T=N.length;if(T){var W=T-1,V=N[W];if(V!=null&&typeof V==="object"&&V.constructor===Object){Z=u&128?0:-1;W-=Z;if(W>=1024)throw Error("T");for(var M in V)T=
+M,T<W&&(N[T+Z]=V[M],delete V[M]);u=u&-16760833|(W&1023)<<14;break a}}if(Z){M=Math.max(Z,T-(u&128?0:-1));if(M>1024)throw Error("U");u=u&-16760833|(M&1023)<<14}}}u|=64;S===0&&(u|=2048);Vq(L,u);return L};
c0B=function(){if(Rvs)throw Error("S");QFG(n5_,5)};
kgB=function(L,Z){if(typeof L!=="object")return L;if(Array.isArray(L)){var N=L[_.ts]|0;return L.length===0&&N&1?void 0:Kkx(L,N,Z)}if(L!=null&&L[f8]===wy)return fPA(L);if(L instanceof Uv){Z=L.arrayState;if(Z&2)return L;if(!L.size)return;N=bt(Fk_(L));if(L.valueCtor)for(L=0;L<N.length;L++){var S=N[L],u=S[1];u==null||typeof u!=="object"?u=void 0:u!=null&&u[f8]===wy?u=fPA(u):Array.isArray(u)?u=Kkx(u,u[_.ts]|0,!!(Z&32)):u=void 0;S[1]=u}return N}if(L instanceof w5)return L};
Kkx=function(L,Z,N){if(Z&2)return L;!N||4096&Z||16&Z?L=mk(L,Z,!1,N&&!(Z&16)):(Wl(L,34),Z&4&&Object.freeze(L));return L};
y0w=function(L,Z,N){L=new L.constructor(Z);N&&(L.copyOnWrite=DN);L.noLegacyNull=DN;return L};
fPA=function(L){var Z=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=Z[_.ts]|0;return cl(L,N)?L:wwh(L,Z,N)?y0w(L,Z):mk(Z,N)};
mk=function(L,Z,N,S){S!=null||(S=!!(34&Z));L=b8B(L,Z,kgB,S);S=32;N&&(S|=2);Z=Z&16769217|S;Vq(L,Z);return L};
QOH=function(L){var Z=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=Z[_.ts]|0;return cl(L,N)?wwh(L,Z,N)?y0w(L,Z,!0):new L.constructor(mk(Z,N,!1)):L};
J0=function(L){if(L.copyOnWrite!==DN)return!1;var Z=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Z=mk(Z,Z[_.ts]|0);Wl(Z,2048);L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=Z;L.copyOnWrite=void 0;L.noLegacyNull=void 0;return!0};
C8=function(L){if(!J0(L)&&cl(L,L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.ts]|0))throw Error();};
ry=function(L,Z){Z===void 0&&(Z=L[_.ts]|0);Z&32&&!(Z&4096)&&Vq(L,Z|4096)};
wwh=function(L,Z,N){return N&2?!0:N&32&&!(N&4096)?(Vq(Z,N|2),L.copyOnWrite=DN,!0):!1};
Qs=function(L,Z,N,S,u){var T=N+(u?0:-1),W=L.length-1;if(W>=1+(u?0:-1)&&T>=W){var V=L[W];if(V!=null&&typeof V==="object"&&V.constructor===Object)return V[N]=S,Z}if(T<=W)return L[T]=S,Z;if(S!==void 0){var M;W=((M=Z)!=null?M:Z=L[_.ts]|0)>>14&1023||536870912;N>=W?S!=null&&(T={},L[W+(u?0:-1)]=(T[N]=S,T)):L[T]=S}return Z};
_.Bw=function(L,Z,N,S,u){var T=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=T[_.ts]|0;S=cl(L,W)?1:S;u=!!u||S===3;S===2&&J0(L)&&(T=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=T[_.ts]|0);L=Ucx(T,Z);var V=L===A0?7:L[_.ts]|0,M=Yv1(V,W);var G=4&M?!1:!0;if(G){4&M&&(L=C0(L),V=0,M=Hw(M,W),W=Qs(T,W,Z,L));for(var D=0,l=0;D<L.length;D++){var v=N(L[D]);v!=null&&(L[l++]=v)}l<D&&(L.length=l);N=(M|4)&-513;M=N&=-1025;M&=-4097}M!==V&&(Vq(L,M),2&M&&Object.freeze(L));return L=ev1(L,M,T,
W,Z,S,G,u)};
ev1=function(L,Z,N,S,u,T,W,V){var M=Z;T===1||(T!==4?0:2&Z||!(16&Z)&&32&S)?x5(Z)||(Z|=!L.length||W&&!(4096&Z)||32&S&&!(4096&Z||16&Z)?2:256,Z!==M&&Vq(L,Z),Object.freeze(L)):(T===2&&x5(Z)&&(L=C0(L),M=0,Z=Hw(Z,S),S=Qs(N,S,u,L)),x5(Z)||(V||(Z|=16),Z!==M&&Vq(L,Z)));2&Z||!(4096&Z||16&Z)||ry(N,S);return L};
Ucx=function(L,Z,N){L=qc(L,Z,N);return Array.isArray(L)?L:A0};
Yv1=function(L,Z){2&Z&&(L|=2);return L|1};
x5=function(L){return!!(2&L)&&!!(4&L)||!!(256&L)};
IPt=function(L){return _.et(L,!0)};
dc1=function(L){L=C0(L);for(var Z=0;Z<L.length;Z++){var N=L[Z]=C0(L[Z]);Array.isArray(N[1])&&(N[1]=bt(N[1]))}return BPh(L)};
aPx=function(L,Z){var N=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=N[_.ts]|0;a:{var u=S;S=cl(L,S);!S&&J0(L)&&(N=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=N[_.ts]|0);var T=qc(N,Z);L=!1;if(T==null){if(S){Z=xIs();break a}T=[]}else if(T.constructor===Uv)if(T.arrayState&2&&!S)T=Fk_(T);else{Z=T;break a}else Array.isArray(T)?L=!!((T[_.ts]|0)&2):T=[];if(S){if(!T.length){Z=xIs();break a}L||(L=!0,bt(T))}else L&&(L=!1,BPh(T),T=dc1(T));!L&&u&32&&xL1(T);S=new Uv(T,void 0,Js_,Js_);
u=Qs(N,u,Z,S);L||ry(N,u);Z=S}return Z};
_.LG=function(L,Z,N,S){C8(L);var u=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=u[_.ts]|0;if(N==null)return Qs(u,T,Z),L;var W=N===A0?7:N[_.ts]|0,V=W,M=x5(W),G=M||Object.isFrozen(N);M||(W=0);G||(N=C0(N),V=0,W=Hw(W,T),G=!1);W|=5;var D;M=(D=H1F(W))!=null?D:0;for(D=0;D<N.length;D++){var l=N[D],v=S(l,M);Object.is(l,v)||(G&&(N=C0(N),V=0,W=Hw(W,T),G=!1),N[D]=v)}W!==V&&(G&&(N=C0(N),W=Hw(W,T)),Vq(N,W));Qs(u,T,Z,N);return L};
_.ZM=function(L,Z,N,S,u){C8(L);var T=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Qs(T,T[_.ts]|0,Z,(S==="0"?Number(N)===0:N===S)?void 0:N,u);return L};
_.Nq=function(L,Z,N){if(Z&2)throw Error();var S=hs(Z),u=Ucx(L,N,S),T=u===A0?7:u[_.ts]|0,W=Yv1(T,Z);if(2&W||x5(W)||16&W)u=C0(u),T=0,W=Hw(W,Z),Qs(L,Z,N,u,S);W&=-13;W!==T&&Vq(u,W);return u};
hvP=function(L){if(St){var Z;return(Z=L[Sn])!=null?Z:L[Sn]=new Map}if(Sn in L)return L[Sn];Z=new Map;Object.defineProperty(L,Sn,{value:Z});return Z};
jQB=function(L,Z,N,S,u){var T=hvP(L),W=sQA(T,L,Z,N,u);W!==S&&(W&&(Z=Qs(L,Z,W,void 0,u)),T.set(N,S));return Z};
sQA=function(L,Z,N,S,u){var T=L.get(S);if(T!=null)return T;for(var W=T=0;W<S.length;W++){var V=S[W];qc(Z,V,u)!=null&&(T!==0&&(N=Qs(Z,N,T,void 0,u)),T=V)}L.set(S,T);return T};
E5f=function(L,Z,N,S,u){var T=!1;S=qc(L,S,u,function(W){var V=mIB(W,N,!1,Z);T=V!==W&&V!=null;return V});
if(S!=null)return T&&!cl(S)&&ry(L,Z),S};
Pqw=function(L,Z,N,S,u,T,W,V){var M=cl(L,N);T=M?1:T;W=!!W||T===3;M=V&&!M;(T===2||M)&&J0(L)&&(Z=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=Z[_.ts]|0);L=Ucx(Z,u);var G=L===A0?7:L[_.ts]|0,D=Yv1(G,N);if(V=!(4&D)){var l=L,v=N,R=!!(2&D);R&&(v|=2);for(var K=!R,U=!0,d=0,h=0;d<l.length;d++){var E=mIB(l[d],S,!1,v);if(E instanceof S){if(!R){var A=cl(E);K&&(K=!A);U&&(U=A)}l[h++]=E}}h<d&&(l.length=h);D|=4;D=U?D&-4097:D|4096;D=K?D|8:D&-9}D!==G&&(Vq(L,D),2&D&&Object.freeze(L));if(M&&!(8&D||!L.length&&
(T===1||(T!==4?0:2&D||!(16&D)&&32&N)))){x5(D)&&(L=C0(L),D=Hw(D,N),N=Qs(Z,N,u,L));S=L;M=D;for(G=0;G<S.length;G++)l=S[G],D=QOH(l),l!==D&&(S[G]=D);M|=8;D=M=S.length?M|4096:M&-4097;Vq(L,D)}return L=ev1(L,D,Z,N,u,T,V,W)};
pwF=function(L){L==null&&(L=void 0);return L};
Hw=function(L,Z){return L=(2&Z?L|2:L&-3)&-273};
_.zvt=function(L,Z,N,S,u){C8(L);Z=_.Bw(L,Z,u,2,!0);var T;u=(T=H1F(Z===A0?7:Z[_.ts]|0))!=null?T:0;Z.push(N(S,u));return L};
mcP=function(L,Z,N,S,u,T,W){C8(L);var V=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;L=Pqw(L,V,V[_.ts]|0,N,Z,2,!0);if(T&&W)u!=null||(u=L.length-1),LMG(L,u),L.splice(u,T),L.length||(L[_.ts]&=-4097);else{if(T){if(typeof u!=="number"||u<0||u>L.length)throw Error();}else S=S!=null?S:new N;u!=void 0?L.splice(u,T,S):L.push(S);u=N=L===A0?7:L[_.ts]|0;(S=cl(S))?(N&=-9,L.length===1&&(N&=-4097)):N|=4096;N!==u&&Vq(L,N);S||ry(V)}};
Cqw=function(L,Z){if(typeof L==="string")return new i9(JxB(L),Z);if(Array.isArray(L))return new i9(new Uint8Array(L),Z);if(L.constructor===Uint8Array)return new i9(L,!1);if(L.constructor===ArrayBuffer)return L=new Uint8Array(L),new i9(L,!1);if(L.constructor===w5)return Z=J0F(L)||new Uint8Array(0),new i9(Z,!0,L);if(L instanceof Uint8Array)return L=L.constructor===Uint8Array?L:new Uint8Array(L.buffer,L.byteOffset,L.byteLength),new i9(L,!1);throw Error();};
QQx=function(L){switch(typeof L){case "string":r0t(L)}};
A0_=function(L){switch(typeof L){case "string":Xwf(L)}};
u9=function(){var L=function(){throw Error();};
Object.setPrototypeOf(L,L.prototype);return L};
Byx=function(L,Z){var N=N===void 0?H8P:N;return new Ti(L,Z,N)};
LYt=function(L,Z,N,S,u){xcB(L,N,qvF(Z,S),u)};
tf=function(L,Z,N,S){var u=S[L];if(u)return u;u={};u.binaryFields=S;u.messageMetadata=o5G(S[0]);var T=S[1],W=1;T&&T.constructor===Object&&(u.extensions=T,T=S[++W],typeof T==="function"&&(u.isMessageSet=!0,ZGs!=null||(ZGs=T),Nw_!=null||(Nw_=S[W+1]),T=S[W+=2]));for(var V={};T&&Sn_(T);){for(var M=0;M<T.length;M++)V[T[M]]=T;T=S[++W]}for(M=1;T!==void 0;){typeof T==="number"&&(M+=T,T=S[++W]);var G=void 0;if(T instanceof Ti)var D=T;else D=iG_,W--;T=void 0;if((T=D)==null?0:T.$$isMsg){T=S[++W];G=S;var l=W;
typeof T==="function"&&(T=T(),G[l]=T);G=T}T=S[++W];l=M+1;typeof T==="number"&&T<0&&(l-=T,T=S[++W]);for(;M<l;M++){var v=V[M];G?N(u,M,D,G,v):Z(u,M,D,v)}}return S[L]=u};
Sn_=function(L){return Array.isArray(L)&&!!L.length&&typeof L[0]==="number"&&L[0]>0};
TwL=function(L){return Array.isArray(L)?L[0]instanceof Ti?L:[utt,L]:[L,void 0]};
qvF=function(L,Z){if(L instanceof _.On)return L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(L))return zg(L,Z,!1)};
tnP=function(L,Z,N,S){var u=N.$$binaryReaderFn;L[Z]=S?function(T,W,V){return u(T,W,V,S)}:u};
WYw=function(L,Z,N,S,u){var T=N.$$binaryReaderFn,W,V;L[Z]=function(M,G,D){return T(M,G,D,V||(V=tf(OGH,tnP,WYw,S).messageMetadata),W||(W=VnL(S)),u)}};
VnL=function(L){var Z=L[bGF];if(Z!=null)return Z;var N=tf(OGH,tnP,WYw,L);Z=N.isMessageSet?function(S,u){return ZGs(S,u,N)}:function(S,u){for(;Mnw(u)&&u.nextWireType_!=4;){var T=u.nextField_,W=N[T];
if(W==null){var V=N.extensions;V&&(V=V[T])&&(V=gVw(V),V!=null&&(W=N[T]=V))}if(W==null||!W(u,S,T)){V=u;W=V.fieldCursor_;GiA(V);if(V.discardUnknownFields)var M=void 0;else{var G=V.decoder_.cursor_-W;V.decoder_.cursor_=W;M=FYF(V.decoder_,G)}G=V=W=void 0;var D=S;M&&((W=(V=(G=D[h0])!=null?G:D[h0]=new Wk1)[T])!=null?W:V[T]=[]).push(M)}}if(S=qYh(S))S.reviveUnknownFields=N.binaryFields[$qf];return!0};
L[bGF]=Z;L[$qf]=DqF.bind(L);return Z};
DqF=function(L,Z,N,S){var u=this[OGH],T=this[bGF],W=zg(void 0,u.messageMetadata,!1),V=qYh(L);if(V){var M=!1,G=u.extensions;if(G){u=function(K,U,d){if(d.length!==0)if(G[U])for(K=_.O(d),U=K.next();!U.done;U=K.next()){U=lMf(U.value);try{M=!0,T(W,U)}finally{U.free()}}else S==null||S(L,U,d)};
if(Z==null)tYx(V,u);else if(V!=null){var D=V[Z];D&&u(V,Z,D)}if(M){var l=L[_.ts]|0;if(l&2&&l&2048&&(N==null||!N.reviveIntoImmutable))throw Error();var v=hs(l),R=function(K,U){if(qc(L,K,v)!=null)switch(N==null?void 0:N.resolutionBehavior){case 1:return;default:throw Error();}U!=null&&(l=Qs(L,l,K,U,v));delete V[K]};
Z==null?Z0G(W,W[_.ts]|0,function(K,U){R(K,U)}):R(Z,qc(W,Z,v))}}}};
gVw=function(L){L=TwL(L);var Z=L[0].$$binaryReaderFn;if(L=L[1]){var N=VnL(L),S=tf(OGH,tnP,WYw,L).messageMetadata;return function(u,T,W){return Z(u,T,W,S,N)}}return Z};
vVt=function(L,Z,N){L[Z]=N.$$binaryWriterFn};
RMB=function(L,Z,N,S){var u,T,W=N.$$binaryWriterFn;L[Z]=function(V,M,G){return W(V,M,G,T||(T=tf(oVt,vVt,RMB,S).messageMetadata),u||(u=cfF(S)))}};
cfF=function(L){var Z=L[nVP];if(!Z){var N=tf(oVt,vVt,RMB,L);Z=function(S,u){return KYH(S,u,N)};
L[nVP]=Z}return Z};
KYH=function(L,Z,N){Z0G(L,L[_.ts]|0,function(S,u){if(u!=null){var T=fM0(N,S);T?T(Z,u,S):S<500||QFG(kiG,3)}});
(L=qYh(L))&&tYx(L,function(S,u,T){W6(Z,Z.encoder_.end());for(S=0;S<T.length;S++)W6(Z,J0F(T[S])||new Uint8Array(0))})};
fM0=function(L,Z){var N=L[Z];if(N)return N;if(N=L.extensions)if(N=N[Z]){N=TwL(N);var S=N[0].$$binaryWriterFn;if(N=N[1]){var u=cfF(N),T=tf(oVt,vVt,RMB,N).messageMetadata;N=L.isMessageSet?Nw_(T,u):function(W,V,M){return S(W,V,M,T,u)}}else N=S;
return L[Z]=N}};
_.yf1=function(L,Z,N){if(Array.isArray(Z)){var S=Z[_.ts]|0;if(S&4)return Z;for(var u=0,T=0;u<Z.length;u++){var W=L(Z[u]);W!=null&&(Z[T++]=W)}T<u&&(Z.length=T);N&&(Vq(Z,(S|5)&-1537),S&2&&Object.freeze(Z));return Z}};
_.V8=function(L,Z,N){return new Ti(L,Z,N)};
_.w61=function(L,Z,N){return new Ti(L,Z,N)};
_.Mq=function(L,Z,N){Qs(L,L[_.ts]|0,Z,N,hs(L[_.ts]|0))};
Uqx=function(L,Z,N){Z=_.xL(Z);Z!=null&&(_.gw(L,N,1),L=L.encoder_,N=b0H||(b0H=new DataView(new ArrayBuffer(8))),N.setFloat64(0,+Z,!0),EY=N.getUint32(0,!0),Pl=N.getUint32(4,!0),_.Gi(L,EY),_.Gi(L,Pl))};
YnA=function(L,Z,N){Z=_.xL(Z);Z!=null&&(_.gw(L,N,5),L=L.encoder_,Mt0(Z),_.Gi(L,EY))};
_.$V=function(L,Z,N){Z=ELw(Z);if(Z!=null&&(QQx(Z),Z!=null))switch(_.gw(L,N,0),typeof Z){case "number":L=L.encoder_;p0(Z);Ft(L,EY,Pl);break;case "bigint":N=BigInt.asUintN(64,Z);N=new eMP(Number(N&BigInt(4294967295)),Number(N>>BigInt(32)));Ft(L.encoder_,N.JSC$8862_lo,N.JSC$8862_hi);break;default:N=r0t(Z),Ft(L.encoder_,N.JSC$8862_lo,N.JSC$8862_hi)}};
dq1=function(L,Z,N){Z=Pth(Z);if(Z!=null&&(A0_(Z),Z!=null))switch(_.gw(L,N,0),typeof Z){case "number":L=L.encoder_;p0(Z);Ft(L,EY,Pl);break;case "bigint":N=IMt(Z);Ft(L.encoder_,N.JSC$8860_lo,N.JSC$8860_hi);break;default:N=Xwf(Z),Ft(L.encoder_,N.JSC$8860_lo,N.JSC$8860_hi)}};
hML=function(L,Z,N){Z=_.Ww(Z);Z!=null&&Z!=null&&(_.gw(L,N,0),_.aMf(L.encoder_,Z))};
_.j7_=function(L,Z,N){s7P(L,N,Pth(Z))};
EVB=function(L,Z,N){Z=_.vLh(Z);Z!=null&&(_.gw(L,N,0),L.encoder_.JSC$8864_buffer_.push(Z?1:0))};
p6A=function(L,Z,N){Z=_.K8(Z);Z!=null&&P9f(L,N,MfL(Z))};
zMt=function(L,Z,N,S,u){xcB(L,N,qvF(Z,S),u)};
_.mqt=function(L,Z,N){Z=Z==null||typeof Z=="string"||Z instanceof w5?Z:void 0;Z!=null&&P9f(L,N,Cqw(Z,!0).buffer)};
JfB=function(L,Z,N){Z=_.csP(Z);Z!=null&&Z!=null&&(_.gw(L,N,0),DM(L.encoder_,Z))};
_.C9H=function(L,Z,N){Z=_.Ww(Z);Z!=null&&(Z=parseInt(Z,10),_.gw(L,N,0),_.aMf(L.encoder_,Z))};
_.l9=function(L,Z){return function(N,S){var u={treatNewDataAsImmutable:!0};S&&Object.assign(u,S);N=lMf(N,void 0,void 0,u);try{var T=new L,W=T.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;VnL(Z)(W,N);var V=T}finally{N.free()}return V}};
_.v6=function(L){return function(Z){return rfH(Z,L)}};
Q7t=function(L){return function(){return rfH(this,L)}};
_.X6A=function(L){return sY(function(Z){return Z instanceof L&&!cl(Z)})};
_.R7=function(L){return function(Z){return Afh(L,Z)}};
qnx=function(L,Z){return HG1({child:L,origin:Z||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:BwF,getPayloadCase:function(N){return N.getPayloadCase()},
createInitMessage:function(N){var S=new KG,u=new xqx;N=_.fG(u,1,N);return _.kV(S,5,y8,N)}})};
ww=function(L){return{valueOf:L}.valueOf()};
ZsP=function(){var L=null;if(!Lws)return L;try{var Z=function(N){return N};
L=Lws.createPolicy("goog#html",{createHTML:Z,createScript:Z,createScriptURL:Z})}catch(N){}return L};
S30=function(){N7h===void 0&&(N7h=ZsP());return N7h};
_.YV=function(L){var Z=S30();L=Z?Z.createScriptURL(L):L;return new Un(L)};
_.en=function(L){if(L instanceof Un)return L.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.dw=function(L){return Object.isFrozen(L)&&Object.isFrozen(L.raw)};
iss=function(L){return L.toString().indexOf("`")===-1};
hf=function(L){return new _.a7(ugA,L)};
sn=function(L){return L instanceof _.a7};
_.jn=function(L){if(sn(L))return L.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
En=function(L){return new T7B(function(Z){return Z.substr(0,L.length+1).toLowerCase()===L+":"})};
_.P6=function(L,Z){Z=Z===void 0?tos:Z;if(sn(L))return L;for(var N=0;N<Z.length;++N){var S=Z[N];if(S instanceof T7B&&S.isValid(L))return hf(L)}};
_.mY=function(L,Z){Z=Z===void 0?tos:Z;return _.P6(L,Z)||zi};
_.Jf=function(L){var Z=window;if(typeof MediaSource!=="undefined"&&L instanceof MediaSource||typeof Z.ManagedMediaSource!=="undefined"&&L instanceof Z.ManagedMediaSource)return hf(URL.createObjectURL(L));Z=L.type;Z.toLowerCase()==="application/octet-stream"?Z=!0:(Z=Z.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),Z=(Z==null?void 0:Z.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(Z[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(Z[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(Z[1])||/^font\/[\w-]+$/i.test(Z[1])));if(!Z)throw Error("Z");return hf(URL.createObjectURL(L))};
_.Osx=function(L){for(var Z=_.CG.apply(1,arguments),N=[L[0]],S=0;S<Z.length;S++)N.push(String(Z[S])),N.push(L[S+1]);return hf(N.join(""))};
_.Voh=function(L){if(!Ww0){a:{var Z=document.createElement("a");try{Z.href=L}catch(N){L=void 0;break a}L=Z.protocol;L=L===":"||L===""?"https:":L}return L}try{Z=new URL(L)}catch(N){return"https:"}return Z.protocol};
_.rw=function(L){L instanceof _.a7?L=_.jn(L):L=bs1.test(L)?L:void 0;return L};
Q8=function(L,Z){Z=_.rw(Z);Z!==void 0&&(L.href=Z)};
Af=function(L){var Z=S30();L=Z?Z.createHTML(L):L;return new Xt(L)};
xV=function(L){if(L instanceof Xt)return L.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.qq=function(L,Z){L.src=_.en(Z).toString()};
MoA=function(L,Z){L.setAttribute("sandbox","");for(var N=0;N<Z.length;N++)L.sandbox.supports&&!L.sandbox.supports(Z[N])||L.sandbox.add(Z[N])};
_.GEt=function(L,Z,N){L.removeAttribute("srcdoc");switch(Z){case 0:if(N instanceof Un)throw new gSG("TrustedResourceUrl",0);MoA(L,[]);Z=_.rw(N);Z!==void 0&&(L.src=Z);break;case 1:if(!(N instanceof Un))throw new gSG(typeof N,1);MoA(L,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.qq(L,N);break;case 2:if(N instanceof Un)throw new gSG("TrustedResourceUrl",2);MoA(L,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
Z=_.rw(N);Z!==void 0&&(L.src=Z);break;default:_.Xh(Z)}};
_.Ls=function(L,Z,N,S){Z=_.rw(Z);return Z!==void 0?L.open(Z,N,S):null};
_.ZS=function(L){L=L===void 0?document:L;var Z,N;L=(N=(Z=L).querySelector)==null?void 0:N.call(Z,"script[nonce]");return L==null?"":L.nonce||L.getAttribute("nonce")||""};
_.So=function(L){var Z=S30();L=Z?Z.createScript(L):L;return new _.NZ(L)};
ig=function(L){if(L instanceof _.NZ)return L.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
Fwf=function(L){var Z=_.ZS(L.ownerDocument);Z&&L.setAttribute("nonce",Z)};
_.ug=function(L,Z){L.textContent=ig(Z);Fwf(L)};
_.TE=function(L,Z){L.src=_.en(Z);Fwf(L)};
_.tU=function(L,Z){if(L.nodeType===1&&/^(script|style)$/i.test(L.tagName))throw Error("Z");L.innerHTML=xV(Z)};
_.O3=function(L,Z,N,S){if(L.length===0)throw Error("Z");L=L.map(function(T){if(T instanceof $ZA)T=T.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return T});
var u=N.toLowerCase();if(L.every(function(T){return u.indexOf(T)!==0}))throw Error("aa`"+N);
Z.setAttribute(N,S)};
_.Wd=function(L,Z,N){if(Z instanceof Un)L.href=_.en(Z).toString(),L.rel=N;else{if(DZF.indexOf(N)===-1)throw Error("ba`"+N);Z=_.rw(Z);Z!==void 0&&(L.href=Z,L.rel=N)}};
lSx=function(L){if(L instanceof Vd)return L.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.vS1=function(L,Z){Z=_.rw(Z);Z!==void 0&&(L.href=Z)};
oSw=function(L){return new Worker(_.en(L),void 0)};
R1s=function(L){return _.YV(L)};
cUB=function(L,Z){L&&(Z=L.indexOf(Z),0<=Z&&L.splice(Z,1))};
bg=function(L){return typeof L==="function"};
nSP=function(L){return L instanceof MZ||L&&"closed"in L&&bg(L.remove)&&bg(L.add)&&bg(L.unsubscribe)};
g7=function(){};
GE=function(L){KwG(function(){throw L;})};
Fg=function(L){return L};
$S=function(){return fS0(_.CG.apply(0,arguments))};
fS0=function(L){return L.length===0?Fg:L.length===1?L[0]:function(Z){return L.reduce(function(N,S){return S(N)},Z)}};
kEx=function(L){var Z;return(Z=L!=null?L:void 0)!=null?Z:Promise};
yUB=function(L,Z){return new DS(function(N){var S=0;return Z.schedule(function(){S===L.length?N.complete():(N.next(L[S++]),N.closed||this.schedule())})})};
wd0=function(L,Z){if(!L)throw Error("ca");return new DS(function(N){var S=new MZ;S.add(Z.schedule(function(){var u=L[Symbol.asyncIterator]();S.add(Z.schedule(function(){var T=this;u.next().then(function(W){W.done?N.complete():(N.next(W.value),T.schedule())})}))}));
return S})};
UZF=function(L,Z,N){Z=Z.schedule(function(){try{N.call(this)}catch(S){L.error(S)}},0);
L.add(Z)};
e1F=function(L,Z){return new DS(function(N){var S;N.add(Z.schedule(function(){S=L[Y3F]();UZF(N,Z,function(){var u=S.next(),T=u.value;u.done?N.complete():(N.next(T),this.schedule())})}));
return function(){var u;return bg((u=S)==null?void 0:u.return)&&S.return()}})};
ISt=function(L,Z){return new DS(function(N){var S=new MZ;S.add(Z.schedule(function(){var u=L[lg]();S.add(u.subscribe({next:function(T){S.add(Z.schedule(function(){return N.next(T)}))},
error:function(T){S.add(Z.schedule(function(){return N.error(T)}))},
complete:function(){S.add(Z.schedule(function(){return N.complete()}))}}))}));
return S})};
dZ0=function(L,Z){return new DS(function(N){return Z.schedule(function(){return L.then(function(S){N.add(Z.schedule(function(){N.next(S);N.add(Z.schedule(function(){return N.complete()}))}))},function(S){N.add(Z.schedule(function(){return N.error(S)}))})})})};
aSA=function(L){return new TypeError("da`"+(L!==null&&typeof L==="object"?"an invalid object":"'"+L+"'"))};
sSG=function(L,Z){if(L!=null){if(bg(L[lg]))return ISt(L,Z);if(h1H(L))return yUB(L,Z);if(bg(L==null?void 0:L.then))return dZ0(L,Z);if(Symbol.asyncIterator&&bg(L==null?void 0:L[Symbol.asyncIterator]))return wd0(L,Z);if(bg(L==null?void 0:L[Y3F]))return e1F(L,Z)}throw aSA(L);};
oS=function(L,Z){return Z?sSG(L,Z):vd(L)};
vd=function(L){if(L instanceof DS)return L;if(L!=null){if(bg(L[lg]))return jSs(L);if(h1H(L))return ES_(L);if(bg(L==null?void 0:L.then))return PgH(L);if(Symbol.asyncIterator&&bg(L==null?void 0:L[Symbol.asyncIterator]))return pdG(L);if(bg(L==null?void 0:L[Y3F]))return z11(L)}throw aSA(L);};
jSs=function(L){return new DS(function(Z){var N=L[lg]();if(bg(N.subscribe))return N.subscribe(Z);throw new TypeError("ea");})};
ES_=function(L){return new DS(function(Z){for(var N=0;N<L.length&&!Z.closed;N++)Z.next(L[N]);Z.complete()})};
PgH=function(L){return new DS(function(Z){L.then(function(N){Z.closed||(Z.next(N),Z.complete())},function(N){return Z.error(N)}).then(null,GE)})};
z11=function(L){return new DS(function(Z){for(var N=L[Y3F]();!Z.closed;){var S=N.next(),u=S.value;S.done?Z.complete():Z.next(u)}return function(){return bg(N==null?void 0:N.return)&&N.return()}})};
pdG=function(L){return new DS(function(Z){mZB(L,Z).catch(function(N){return Z.error(N)})})};
mZB=function(L,Z){var N,S,u,T,W,V;return _.b(function(M){switch(M.nextAddress){case 1:_.RS(M,2,3),T=_.cd(L);case 5:return M.yield(T.next(),8);case 8:S=M.yieldResult;if(S.done){M.jumpTo(3);break}W=S.value;Z.next(W);M.jumpTo(5);break;case 3:_.ns(M);_.Ks(M,9);if(!S||S.done||!(u=T.return)){M.jumpTo(9);break}return M.yield(u.call(T),9);case 9:_.ns(M,0,0,1);if(N)throw N.error;_.kS(M,10,1);break;case 10:_.kS(M,4);break;case 2:V=_.yd(M);N={error:V};M.jumpTo(3);break;case 4:Z.complete(),_.w7(M)}})};
JUA=function(L,Z){return Z?yUB(L,Z):ES_(L)};
Cg1=function(L){return bg(L[L.length-1])?L.pop():void 0};
YS=function(L){var Z=L[L.length-1];return Z&&bg(Z.schedule)?L.pop():void 0};
eo=function(){var L=_.CG.apply(0,arguments),Z=YS(L);return Z?yUB(L,Z):JUA(L)};
IS=function(L){var Z=bg(L)?L:function(){return L};
return new DS(function(N){return N.error(Z())})};
d7=function(L){return function(Z){if(bg(Z==null?void 0:Z.lift))return Z.lift(function(N){try{return L(N,this)}catch(S){this.error(S)}});
throw new TypeError("fa");}};
jo=function(){return d7(function(L,Z){var N=null;L._refCount++;var S=new aS(Z,void 0,void 0,void 0,function(){if(!L||L._refCount<=0||0<--L._refCount)N=null;else{var u=L._connection,T=N;N=null;!u||T&&u!==T||u.unsubscribe();Z.unsubscribe()}});
L.subscribe(S);S.closed||(N=L.connect())})};
QSH=function(){var L=rUH;var Z=Z===void 0?0:Z;return d7(function(N,S){S.add(L.schedule(function(){return N.subscribe(S)},Z))})};
E3=function(L){return d7(function(Z,N){var S=0;Z.subscribe(new aS(N,function(u){N.next(L.call(void 0,u,S++))}))})};
AUt=function(L){return E3(function(Z){return Xdt(Z)?L.apply(null,_.Pd(Z)):L(Z)})};
LtG=function(L){if(L.length===1){var Z=L[0];if(Hsw(Z))return{args:Z,keys:null};if(Z&&typeof Z==="object"&&B7B(Z)===xZ_)return L=q3s(Z),{args:L.map(function(N){return Z[N]}),
keys:L}}return{args:L,keys:null}};
ps=function(){var L=_.CG.apply(0,arguments),Z=YS(L),N=Cg1(L);L=LtG(L);var S=L.args,u=L.keys;if(S.length===0)return oS([],Z);Z=new DS(Zx_(S,Z,u?function(T){for(var W={},V=0;V<T.length;V++)W[u[V]]=T[V];return W}:Fg));
return N?Z.pipe(AUt(N)):Z};
Zx_=function(L,Z,N){N=N===void 0?Fg:N;return function(S){NFf(Z,function(){for(var u=L.length,T=Array(u),W=u,V=L.map(function(){return!1}),M=!0,G={i$jscomp$217:0};G.i$jscomp$217<u;G={i$jscomp$217:G.i$jscomp$217},G.i$jscomp$217++)NFf(Z,function(D){return function(){oS(L[D.i$jscomp$217],Z).subscribe(new zE(S,function(l){T[D.i$jscomp$217]=l;
M&&(V[D.i$jscomp$217]=!0,M=!V.every(Fg));M||S.next(N(T.slice()))},function(){return--W===0}))}}(G),S)},S)}};
NFf=function(L,Z,N){L?N.add(L.schedule(Z)):Z()};
SNH=function(L,Z,N,S){var u=[],T=0,W=0,V=!1,M=function(G){T++;vd(N(G,W++)).subscribe(new aS(Z,function(D){Z.next(D)},void 0,function(){T--;
for(var D={};u.length&&T<S;D={bufferedValue:void 0})D.bufferedValue=u.shift(),M(D.bufferedValue);!V||u.length||T||Z.complete()}))};
L.subscribe(new aS(Z,function(G){return T<S?M(G):u.push(G)},void 0,function(){V=!0;
!V||u.length||T||Z.complete()}));
return function(){u=null}};
mw=function(L,Z){var N=N===void 0?Infinity:N;if(bg(Z))return mw(function(S,u){return E3(function(T,W){return Z(S,T,u,W)})(vd(L(S,u)))},N);
typeof Z==="number"&&(N=Z);return d7(function(S,u){return SNH(S,u,L,N)})};
ixP=function(L){L=L===void 0?Infinity:L;return mw(Fg,L)};
ur_=function(){var L=_.CG.apply(0,arguments);return ixP(1)(JUA(L,YS(L)))};
TFP=function(L){return new DS(function(Z){vd(L()).subscribe(Z)})};
Cs=function(L,Z,N){if(bg(N)){var S=N;N=void 0}if(S)return Cs(L,Z,N).pipe(AUt(S));S=_.O(bg(L.addEventListener)&&bg(L.removeEventListener)?tN_.map(function(W){return function(V){return L[W](Z,V,N)}}):bg(L.addListener)&&bg(L.removeListener)?OxB.map(WtP(L,Z)):bg(L.on)&&bg(L.off)?VNs.map(WtP(L,Z)):[]);
var u=S.next().value,T=S.next().value;return!u&&h1H(L)?mw(function(W){return Cs(W,Z,N)})(JUA(L)):new DS(function(W){if(!u)throw new TypeError("ga");
var V=function(){var M=_.CG.apply(0,arguments);return W.next(1<M.length?M:M[0])};
u(V);return function(){return T(V)}})};
WtP=function(L,Z){return function(N){return function(S){return L[N](Z,S)}}};
Xg=function(){var L=_.CG.apply(0,arguments),Z=YS(L);var N=typeof L[L.length-1]==="number"?L.pop():Infinity;return L.length?L.length===1?vd(L[0]):ixP(N)(JUA(L,Z)):r7};
MNL=function(L){return L.length===1&&bxh(L[0])?L[0]:L};
ghs=function(){var L=MNL(_.CG.apply(0,arguments));return d7(function(Z,N){var S=[Z].concat(_.Pd(L)),u=function(){if(!N.closed)if(S.length>0){try{var T=vd(S.shift())}catch(V){u();return}var W=new aS(N,void 0,g7,g7);N.add(T.subscribe(W));W.add(u)}else N.complete()};
u()})};
AU=function(L){return d7(function(Z,N){var S=0;Z.subscribe(new aS(N,function(u){return L.call(void 0,u,S++)&&N.next(u)}))})};
Ftw=function(){var L=_.CG.apply(0,arguments);L=MNL(L);return L.length===1?vd(L[0]):new DS(GFF(L))};
GFF=function(L){return function(Z){for(var N=[],S={i$jscomp$220:0};N&&!Z.closed&&S.i$jscomp$220<L.length;S={i$jscomp$220:S.i$jscomp$220},S.i$jscomp$220++)N.push(vd(L[S.i$jscomp$220]).subscribe(new aS(Z,function(u){return function(T){if(N){for(var W=0;W<N.length;W++)W!==u.i$jscomp$220&&N[W].unsubscribe();N=null}Z.next(T)}}(S))))}};
$8H=function(){var L=_.CG.apply(0,arguments),Z=Cg1(L),N=MNL(L);return N.length?new DS(function(S){var u=N.map(function(){return[]}),T=N.map(function(){return!1});
S.add(function(){u=T=null});
for(var W={sourceIndex$jscomp$1:0};!S.closed&&W.sourceIndex$jscomp$1<N.length;W={sourceIndex$jscomp$1:W.sourceIndex$jscomp$1},W.sourceIndex$jscomp$1++)vd(N[W.sourceIndex$jscomp$1]).subscribe(new aS(S,function(V){return function(M){u[V.sourceIndex$jscomp$1].push(M);u.every(function(G){return G.length})&&(M=u.map(function(G){return G.shift()}),S.next(Z?Z.apply(null,_.Pd(M)):M),u.some(function(G,D){return!G.length&&T[D]})&&S.complete())}}(W),void 0,function(V){return function(){T[V.sourceIndex$jscomp$1]=
!0;
!u[V.sourceIndex$jscomp$1].length&&S.complete()}}(W)));
return function(){u=T=null}}):r7};
D8t=function(L){var Z,N,S;return!!L&&typeof L.active==="boolean"&&typeof((Z=L.clock)==null?void 0:Z.now)==="function"&&((N=L.clock)==null?void 0:N.timeline)!==void 0&&!((S=L.lastMeasurement)==null||!S.timestamp)&&typeof L.equivalentTo==="function"&&typeof L.extrapolateToNow==="function"&&typeof L.extrapolateToTime==="function"&&typeof L.map==="function"&&typeof L.joinWith==="function"};
lDH=function(L){function Z(N){return typeof N==="boolean"||typeof N==="string"||typeof N==="number"||N===void 0||N===null}
return Z(L)?!0:Array.isArray(L)?L.every(Z):typeof L==="object"?Object.keys(L).every(function(N){return typeof N==="string"})&&Object.values(L).every(function(N){return Array.isArray(N)?N.every(Z):Z(N)}):!1};
vhB=function(L){if(lDH(L))return L;if(D8t(L))return{lastMeasurement:{value:vhB(L.lastMeasurement.value),timestamp:Hd(L.lastMeasurement.timestamp,new Bd(0,L.lastMeasurement.timestamp.timeline))},active:L.active};try{return JSON.parse(JSON.stringify(L))}catch(Z){}return String(L)};
xS=function(L,Z){return function(N){return new DS(function(S){return N.subscribe(function(u){L.timeExecution(Z,function(){S.next(u)})()},function(u){L.timeExecution(Z,function(){S.error(u)})()},function(){L.timeExecution(Z,function(){S.complete()})()})})}};
ohB=function(L,Z){var N=!1;return new DS(function(S){var u=L.setTimeout(function(){N=!0;S.next(!0);S.complete()},Z);
return function(){N||L.clearTimeout(u)}})};
R2G=function(L){L=L.global;if(L.fetchLater)return L.fetchLater.bind(L)};
qZ=function(L){return d7(function(Z,N){var S=null,u=!1,T;S=Z.subscribe(new aS(N,void 0,function(W){T=vd(L(W,qZ(L)(Z)));S?(S.unsubscribe(),S=null,T.subscribe(N)):u=!0}));
u&&(S.unsubscribe(),S=null,T.subscribe(N))})};
cjH=function(L,Z,N){return function(S,u){var T=N,W=Z,V=0;S.subscribe(new aS(u,function(M){var G=V++;W=T?L(W,M,G):(T=!0,M);u.next(W)},void 0,void 0))}};
nhf=function(L){L=L===void 0?null:L;return d7(function(Z,N){var S=!1;Z.subscribe(new aS(N,function(u){S=!0;N.next(u)},void 0,function(){S||N.next(L);
N.complete()}))})};
Lx=function(){return d7(function(L,Z){L.subscribe(new aS(Z,g7))})};
N8=function(L){return d7(function(Z,N){Z.subscribe(new aS(N,function(){return N.next(L)}))})};
SN=function(L){return L<=0?function(){return r7}:d7(function(Z,N){var S=0;
Z.subscribe(new aS(N,function(u){++S<=L&&(N.next(u),L<=S&&N.complete())}))})};
iG=function(L){var Z=Z===void 0?Fg:Z;var N;L=(N=L)!=null?N:KtH;return d7(function(S,u){var T,W=!0;S.subscribe(new aS(u,function(V){var M=Z(V);if(W||!L(T,M))W=!1,T=M,u.next(V)}))})};
KtH=function(L,Z){return L===Z};
kFG=function(L){L=L===void 0?fDG:L;return d7(function(Z,N){var S=!1;Z.subscribe(new aS(N,function(u){S=!0;N.next(u)},void 0,function(){return S?N.complete():N.error(L())}))})};
fDG=function(){return new yj_};
uG=function(){var L=_.CG.apply(0,arguments);return function(Z){return ur_(Z,eo.apply(null,_.Pd(L)))}};
wyw=function(L){return d7(function(Z,N){var S=0;Z.subscribe(new aS(N,function(u){L.call(void 0,u,S++,Z)||(N.next(!1),N.complete())},void 0,function(){N.next(!0);
N.complete()}))})};
U8s=function(){return d7(function(L,Z){var N=[];L.subscribe(new aS(Z,function(S){N.push(S);1<N.length&&N.shift()},void 0,function(){for(var S=_.O(N),u=S.next();!u.done;u=S.next())Z.next(u.value);
Z.complete()},function(){N=null}))})};
YNs=function(L,Z){var N=arguments.length>=2;return function(S){return S.pipe(L?AU(function(u,T){return L(u,T,S)}):Fg,U8s(),N?nhf(Z):kFG(function(){return new yj_}))}};
tj=function(L){var Z=bg(L)?L:function(){return L};
return bg()?d7(function(N,S){var u=Z();(void 0)(u).subscribe(S).add(N.subscribe(u))}):function(N){var S=new TF(N,Z);
bg(N==null?void 0:N.lift)&&(S.lift=N.lift);S.source=N;S.subjectFactory=Z;return S}};
Wy=function(L){var Z=new ON(L,void 0,void 0);return function(N){return tj(function(){return Z})(N)}};
VC=function(L,Z){return d7(cjH(L,Z,arguments.length>=2))};
M8=function(){var L=_.CG.apply(0,arguments),Z=YS(L);return d7(function(N,S){(Z?ur_(L,N,Z):ur_(L,N)).subscribe(S)})};
gF=function(L){return d7(function(Z,N){var S=null,u=0,T=!1;Z.subscribe(new aS(N,function(W){var V;(V=S)==null||V.unsubscribe();V=u++;vd(L(W,V)).subscribe(S=new aS(N,function(M){return N.next(M)},void 0,function(){S=null;
T&&!S&&N.complete()}))},void 0,function(){(T=!0,!S)&&N.complete()}))})};
GF=function(L,Z){Z=Z===void 0?!1:Z;return d7(function(N,S){var u=0;N.subscribe(new aS(S,function(T){var W=L(T,u++);(W||Z)&&S.next(T);!W&&S.complete()}))})};
e2H=function(L,Z,N){var S=bg(L)||Z||N?{next:L,error:Z,complete:N}:L;return S?d7(function(u,T){u.subscribe(new aS(T,function(W){var V;(V=S.next)==null||V.call(S,W);T.next(W)},function(W){var V;
(V=S.error)==null||V.call(S,W);T.error(W)},function(){var W;
(W=S.complete)==null||W.call(S);T.complete()}))}):Fg};
IDw=function(){var L=_.CG.apply(0,arguments),Z=Cg1(L);return d7(function(N,S){for(var u=L.length,T=Array(u),W=L.map(function(){return!1}),V=!1,M={i$jscomp$230:0};M.i$jscomp$230<u;M={i$jscomp$230:M.i$jscomp$230},M.i$jscomp$230++)vd(L[M.i$jscomp$230]).subscribe(new aS(S,function(G){return function(D){T[G.i$jscomp$230]=D;
V||W[G.i$jscomp$230]||(W[G.i$jscomp$230]=!0,(V=W.every(Fg))&&(W=null))}}(M),void 0,g7));
N.subscribe(new aS(S,function(G){V&&(G=[G].concat(_.Pd(T)),S.next(Z?Z.apply(null,_.Pd(G)):G))}))})};
aDf=function(L){var Z=d8x;if(Z)for(var N in Z)Object.prototype.hasOwnProperty.call(Z,N)&&L(Z[N],N,Z)};
h2h=function(){var L=[];aDf(function(Z){L.push(Z)});
return L};
jmw=function(L){try{return!!L&&L.location.href!=null&&smH(L,"foo")}catch(Z){return!1}};
_.Fr=function(L){return new $ZA(L[0].toLowerCase())};
EhA=function(L){for(var Z=_.CG.apply(1,arguments),N=L[0],S=0;S<L.length-1;S++)N+=String(Z[S]),N+=L[S+1];Z=document.implementation.createHTMLDocument("");S=Z.createElement("style");Z.head.appendChild(S);Z=S.sheet;Z.insertRule(N,0);if(Z.cssRules.length===1&&(N=Z.cssRules[0],N instanceof CSSStyleRule))return new Vd(N.cssText.replace(/</g,"\\3C "))};
PGH=function(L){try{return new URL(L,window.document.baseURI)}catch(Z){return new URL("about:invalid")}};
py1=function(L,Z){var N=Z.createRange();N.selectNode(Z.body);L=Af(L);return N.createContextualFragment(xV(L))};
z2A=function(L){L=L.nodeName;return typeof L==="string"?L:"FORM"};
m81=function(L){L=L.nodeType;return L===1||typeof L!=="number"};
DD=function(L,Z,N){L.setAttribute(Z,N)};
Jjt=function(L){return L.parts.map(function(Z){var N=Z.descriptor;return""+Z.url+(N?" "+N:"")}).join(" , ")};
_.vy=function(L){var Z=_.CG.apply(1,arguments);if(Z.length===0)return _.YV(L[0]);for(var N=L[0],S=0;S<Z.length;S++)N+=encodeURIComponent(Z[S])+L[S+1];return _.YV(N)};
_.om=function(L,Z){L=_.en(L).toString();var N=L.split(/[?#]/),S=/[?]/.test(L)?"?"+N[1]:"";return CGB(N[0],S,/[#]/.test(L)?"#"+(S?N[2]:N[1]):"",Z)};
CGB=function(L,Z,N,S){function u(W,V){W!=null&&(Array.isArray(W)?W.forEach(function(M){return u(M,V)}):(Z+=T+encodeURIComponent(V)+"="+encodeURIComponent(W),T="&"))}
var T=Z.length?"&":"?";S.constructor===Object&&(S=Object.entries(S));Array.isArray(S)?S.forEach(function(W){return u(W[1],W[0])}):S.forEach(u);
return _.YV(L+Z+N)};
QmA=function(){var L=ig(rj_).toString();return _.YV(URL.createObjectURL(new Blob([L],{type:"text/javascript"})))};
Xyf=function(L){var Z=[],N=0,S;for(S in L)Z[N++]=S;return Z};
AjA=function(L,Z){for(var N in L)if(L[N]==Z)return!0;return!1};
HxP=function(L,Z,N){for(var S in L)if(Z.call(N,L[S],S,L))return S};
BF1=function(L){if(!L||typeof L!=="object")return L;if(typeof L.clone==="function")return L.clone();if(typeof Map!=="undefined"&&L instanceof Map)return new Map(L);if(typeof Set!=="undefined"&&L instanceof Set)return new Set(L);if(L instanceof Date)return new Date(L.getTime());var Z=Array.isArray(L)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(L)||L instanceof DataView?{}:new L.constructor(L.length),N;for(N in L)Z[N]=BF1(L[N]);return Z};
x8_=function(L){var Z=arguments.length;if(Z==1&&Array.isArray(arguments[0]))return x8_.apply(null,arguments[0]);if(Z%2)throw Error("ma");for(var N={},S=0;S<Z;S+=2)N[arguments[S]]=arguments[S+1];return N};
qNs=function(L){var Z=arguments.length;if(Z==1&&Array.isArray(arguments[0]))return qNs.apply(null,arguments[0]);for(var N={},S=0;S<Z;S++)N[arguments[S]]=!0;return N};
Rm=function(L,Z,N,S){this.top=L;this.right=Z;this.bottom=N;this.left=S};
LmA=function(L){L=L.global;if(L.PendingGetBeacon)return L.PendingGetBeacon};
nx=function(L){return function(Z){return Z.pipe(Zyh(L,tj(new cy)))}};
Kx=function(L){return function(Z){return Z.pipe(Zyh(L,Wy(1)))}};
Zyh=function(L,Z){function N(S){return new DS(function(u){return S.subscribe(function(T){fx(L,function(){return void u.next(T)},3)},function(T){fx(L,function(){return void u.error(T)},3)},function(){fx(L,function(){return void u.complete()},3)})})}
return $S(N,QSH(),Z,jo(),N)};
iyL=function(L){var Z=NZx(L);return Z===null?new kh(null):Z.pipe(E3(function(N){N=N.serialize();if(S_s)N=_.iH.btoa(N);else{for(var S=[],u=0,T=0;T<N.length;T++){var W=N.charCodeAt(T);W>255&&(S[u++]=W&255,W>>=8);S[u++]=W}N=_.jY(S)}return N}),SN(1),Kx(L.queue))};
uUL=function(L){var Z=Z===void 0?{}:Z;if(typeof Event==="function")return new Event(L,Z);if(typeof document!=="undefined"){var N=document.createEvent("CustomEvent");N.initCustomEvent(L,Z.bubbles||!1,Z.cancelable||!1,Z.detail);return N}throw Error();};
TZ_=function(L){return typeof L==="string"?document.getElementById(L):L};
Oys=function(L){var Z=!1;Z=Z===void 0?!1:Z;if(L.tagName==="IMG"){if(L.complete&&(!L.naturalWidth||!L.naturalHeight))return!0;var N;if(Z&&((N=L.style)==null?void 0:N.display)==="none")return!0}var S,u;return tbs.test((S=L.getAttribute("width"))!=null?S:"")&&tbs.test((u=L.getAttribute("height"))!=null?u:"")};
Wmh=function(L,Z){if(L.tagName==="IMG")return L.naturalWidth&&L.naturalHeight?!0:!1;try{if(L.readyState)var N=L.readyState;else{var S,u;N=(S=L.contentWindow)==null?void 0:(u=S.document)==null?void 0:u.readyState}return N==="complete"}catch(T){return Z===void 0?!1:Z}};
Vbw=function(L){L||(L=function(Z,N,S){Z.addEventListener(N,S)});
return L};
G3F=function(L,Z){var N=bys();N=N===void 0?new Mbf:N;if(L=TZ_(L)){var S=Vbw(S);for(var u=!1,T=function(d){u||(u=!0,Z(d))},W,V=2,M=0;M<g$h.length;++M)if(g$h[M]===L.tagName){V=3;
W=[L];break}W||(W=L.querySelectorAll(g$h.join(",")));var G=0,D=0,l=!0,v=L=!1;M={};for(var R=0;R<W.length;M={isImg:void 0},R++){var K=W[R];if(!Oys(K))if(M.isImg=K.tagName==="IMG",Wmh(K,N.crossDomainLoadedDefault))L=!0,M.isImg&&(l=!0);else{G++;var U=function(d){return function(h){G--;!G&&l&&T(V);d.isImg&&(h=h&&h.type==="error",D--,h||(l=!0),!D&&v&&l&&T(V))}}(M);
S(K,"load",U);M.isImg&&(D++,S(K,"error",U))}}D===0&&(l=!0);W=null;W=_.iH.document.readyState==="complete";if(G===0&&!L&&W)V=5;else if(G||!L){S(_.iH,"load",function(){!N.pendingImagesBlockLoad||!D&&l?T(4):v=!0});
return}T(V)}};
Fmh=function(L,Z,N){if(L)for(var S=0;L!=null&&S<500&&!N(L);++S)L=Z(L)};
$G0=function(L,Z){Fmh(L,function(N){try{return N===N.parent?null:N.parent}catch(S){}return null},Z)};
DGh=function(L,Z){if(L.tagName=="IFRAME")Z(L);else{L=L.querySelectorAll("IFRAME");for(var N=0;N<L.length&&!Z(L[N]);++N);}};
lGG=function(L){return(L=L.ownerDocument)&&(L.parentWindow||L.defaultView)||null};
v$w=function(L,Z,N){try{var S=JSON.parse(N.data)}catch(W){}if(typeof S==="object"&&S&&S.type==="creativeLoad"){var u=lGG(L);if(N.source&&u){var T;$G0(N.source,function(W){try{if(W.parent===u)return T=W,!0}catch(V){}});
T&&DGh(L,function(W){if(W.contentWindow===T)return Z(S),!0})}}};
o$f=function(L){return typeof L==="string"?document.getElementById(L):L};
Km0=function(){var L={};return L[0]=_.vy(Rew,"current"),L[1]=_.vy(crw),L[2]=_.vy(n$A),L};
yC=function(L,Z){return L.left===Z.left&&L.top===Z.top&&L.width===Z.width&&L.height===Z.height};
fGh=function(L,Z){return{left:Math.max(L.left,Z.left),top:Math.max(L.top,Z.top),width:Math.max(0,Math.min(L.left+L.width,Z.left+Z.width)-Math.max(L.left,Z.left)),height:Math.max(0,Math.min(L.top+L.height,Z.top+Z.height)-Math.max(L.top,Z.top))}};
k3P=function(L,Z){return{left:Math.round(L.left+Z.x),top:Math.round(L.top+Z.y),width:L.width,height:L.height}};
yrw=function(L,Z,N){if(L&&Z!==null&&Z!=Z.top){if(!Z.top)return new _.wF(-12245933,-12245933);Z=Z.top}try{return(N===void 0?0:N)?(new _.wF(Z.innerWidth,Z.innerHeight)).round():_.UN(Z).round()}catch(S){return new _.wF(-12245933,-12245933)}};
w4P=function(L,Z,N){try{if(L){if(!Z.top)return new Rm(-12245933,-12245933,-12245933,-12245933);Z=Z.top}var S=yrw(L,Z,N),u=S.height,T=S.width;if(T===-12245933)return new Rm(T,T,T,T);var W=eN(Im(Z.document)),V=W.x,M=W.y;return new Rm(M,V+T,M+u,V)}catch(G){return new Rm(-12245933,-12245933,-12245933,-12245933)}};
UGF=function(L){var Z;return(Z=L.google_tag_data)!=null?Z:L.google_tag_data={}};
Y_P=function(L){var Z,N;return typeof((Z=L.navigator)==null?void 0:(N=Z.userAgentData)==null?void 0:N.getHighEntropyValues)==="function"};
IGG=function(L){if(!Y_P(L))return null;var Z=UGF(L);if(Z.uach_promise)return Z.uach_promise;L=L.navigator.userAgentData.getHighEntropyValues(eeF).then(function(N){Z.uach!=null||(Z.uach=N);return N});
return Z.uach_promise=L};
CXw=function(L){var Z;return dG1(aG0(heF(sgG(jgw(E$A(PXG(p4x(zeH(new mGs,L.architecture||""),L.bitness||""),L.mobile||!1),L.model||""),L.platform||""),L.platformVersion||""),L.uaFullVersion||""),((Z=L.fullVersionList)==null?void 0:Z.map(function(N){var S=new JrG;S=_.dF(S,1,N.brand);return _.dF(S,2,N.version)}))||[]),L.wow64||!1)};
rrs=function(L){var Z,N;return(N=(Z=IGG(L))==null?void 0:Z.then(function(S){return CXw(S)}))!=null?N:null};
QgL=function(L,Z){return new DS(function(N){var S=!1,u=Array(Z.length);u.fill(void 0);var T=new Set,W=new Set,V=function(l,v){L.running?(u[v]=l,T.add(v),S||(S=!0,fx(L,function(){S=!1;N.next(_.mh(u))},1))):N.error(new am(v))},M=function(l,v){W.add(v);
T.add(v);fx(L,function(){N.error(l)},1)},G=function(l){W.add(l);
fx(L,function(){W.size===Z.length&&N.complete()},1)},D=Z.map(function(l,v){return l.subscribe(function(R){return void V(R,v)},function(R){return void M(R,v)},function(){return void G(v)})});
return function(){D.forEach(function(l){return void l.unsubscribe()})}})};
Hyf=function(L,Z,N){function S(){if(Z.debugChannel){var d=Z.debugChannel,h=d.next;var E={creativeId:Z.debugNames.getName(N),requiredSignals:u,signals:Object.assign({},T),hasPrematurelyCompleted:W,errorMessage:V,erroredSignalKey:M};E={specMajor:2,specMinor:0,specPatch:0,timestamp:Hd(Z.timeProvider.now(),new Bd(0,Z.timeProvider.timeline)),instanceId:Z.debugNames.getName(Z.symbol),creativeState:E};h.call(d,E)}}
for(var u=Object.keys(L),T={},W=!1,V=null,M=null,G={},D=new Set,l=[],v=[],R=_.O(u),K=R.next(),U={};!K.done;U={key$jscomp$394:void 0},K=R.next())U.key$jscomp$394=K.value,K=L[U.key$jscomp$394],K instanceof kh?(G[U.key$jscomp$394]=K.value,D.add(U.key$jscomp$394),Z.debugChannel&&(T[String(U.key$jscomp$394)]=vhB(K.value))):(K=K.pipe(iG(function(d,h){return D8t(d)||D8t(h)?!1:d===h}),E3(function(d){return function(h){Z.debugChannel&&(T[String(d.key$jscomp$394)]=vhB(h),S());
var E={};return E[d.key$jscomp$394]=h,E}}(U)),qZ(function(d){return function(h){if(h instanceof am)throw new X4s(String(d.key$jscomp$394));
throw h;}}(U)),e2H(function(d){return function(){D.add(d.key$jscomp$394)}}(U),function(d){return function(h){M=String(d.key$jscomp$394);
V=String(h);S()}}(U),function(d){return function(){D.has(d.key$jscomp$394)||(W=!0,S())}}(U))),v.push(U.key$jscomp$394),l.push(K));
(L=Object.keys(T).length>0)&&S();R=QgL(Z.queue,l).pipe(qZ(function(d){if(d instanceof am)throw new ArB(String(v[d.inputObservableIndex]));throw d;}),E3(function(d){return Object.freeze(Object.assign.apply(Object,[{},
G].concat(_.Pd(d))))}));
return(l=l.length>0)&&L?Xg(eo(Object.freeze(G)),R):l?R:eo(Object.freeze(G))};
BZw=function(L,Z,N,S,u){return L.performanceMonitor.timeExecution.bind(L.performanceMonitor)(733,function(){var T={};try{return Z.pipe(qZ(function(W){S(Object.assign({},T,{error:W}));return r7}),mw(function(W){try{var V=N(L,W)}catch(G){return S(Object.assign({},T,{error:G instanceof Error?G:String(G)})),r7}var M={};
return Hyf(V,L,W.symbol).pipe(e2H(function(G){M=G}),Wy(1),jo()).pipe(u,qZ(function(G){S(Object.assign({},M,{error:G}));
return r7}),uG(void 0),E3(function(){return!0}))})).pipe(VC(function(W){return W+1},0),qZ(function(W){S(Object.assign({},T,{error:W}));
return r7}))}catch(W){return S(Object.assign({},T,{error:W})),r7}})()};
hj=function(L){var Z=new Map;if(typeof L!=="object"||L===null)return Z;Object.values(L).forEach(function(N){N&&typeof N.extrapolateToNow==="function"&&(Z.has(N.clock.timeline)||Z.set(N.clock.timeline,N.clock.now()))});
return Z};
xG_=function(L,Z){return typeof L==="string"?encodeURIComponent(L):typeof L==="number"?String(L):Array.isArray(L)?L.map(function(N){return xG_(N,Z)}).join(","):L instanceof Bd?L.toString():L&&typeof L.extrapolateToNow==="function"?xG_(L.extrapolateUsingTimestampMap(Z).value,Z):L===!0?"1":L===!1?"0":L===void 0||L===null?null:L instanceof q_t?L8t(L):[L.top,
L.left,L.top+L.height,L.left+L.width].join()};
Zh1=function(L,Z){L=Object.entries(L).map(function(N){var S=_.O(N);N=S.next().value;S=S.next().value;S=xG_(S,Z);return S===null?"":N+"="+S}).filter(function(N){return N!==""});
return L.length?L.join("&"):""};
ihF=function(L,Z){var N=NJx,S=SKF;Z=Z===void 0?.01:Z;return function(u){Z>0&&Math.random()<=Z&&(L.global.HTMLFencedFrameElement&&L.global.fence&&typeof L.global.fence.reportEvent==="function"&&L.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),u=Object.assign({},u,{errorMessage:u.error instanceof Error&&u.error.message?u.error.message:String(u.error),errorStack:u.error instanceof Error&&u.error.stack?String(u.error.stack):null,errorName:u.error instanceof
Error&&u.error.name?String(u.error.name):null,errorContext:String(L.performanceMonitor.timedFunctionContext),errorEscapedQueryId:u.escapedQueryId}),N(Object.assign({},u,{payloadMapper:function(){return function(T){try{return S(Object.assign({},T))}catch(W){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),hj(u)).forEach(function(T){L.beaconFactory.makeBeacon(T).sendNow()}))}};
u51=function(){var L=_.CG.apply(0,arguments);return function(Z){var N=Z.pipe(Wy(1),jo());Z=L.map(function(S){return N.pipe(S,uG(!0))});
return ps(Z).pipe(SN(1),Lx())}};
TJB=function(){var L=_.CG.apply(0,arguments);return function(Z){var N=Z.pipe(Wy(1),jo());Z=L.map(function(S){return N.pipe(S,uG(!0))});
return Xg.apply(null,_.Pd(Z)).pipe(SN(1),Lx())}};
tUw=function(L,Z){return function(N){var S=N.pipe(Wy(1),jo());N=S.pipe(L,uG(!0));S=S.pipe($S(Z,Wy(),jo()),uG(!0));N=ps([N,S]);return Ftw(N,S).pipe(SN(1),Lx())}};
OhP=function(L,Z,N){N(!0)};
W8P=function(L,Z){return $S(gF(function(N){var S=L(N),u=Z(N),T={};return S&&u&&T?new DS(function(W){u(S,T,function(V){W.next(Object.assign({},N,{canEmit:V}));W.complete()});
return function(){}}):sN}),AU(function(N){return N.canEmit}))};
VUh=function(L){var Z={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(N){return N.pipe(gF(function(S){return new DS(function(u){function T(){V.disconnect();M.unsubscribe()}
var W=L.MutationObserver;if(W&&S.ref!==void 0){var V=new W(function(G){u.next(G)});
V.observe(S.ref,Z);var M=S.JSC$9359_released.subscribe(T);return T}})}))}};
bh0=function(L){if(L.measurementDeferralState===3)return null;if(L.timeOnScreenReason!==void 0){var Z=L.creativeFound===!1?"n":null;if(Z!==null)return Z}return L.geometricMeasurementErrors instanceof jN?"msf":L.contextValidationErrors instanceof EN?"c":L.contextVisibilityKnown===!1?"pv":L.geometricMeasurementErrors||L.contextValidationErrors?"x":null};
gRB=function(L,Z){return L.replace(MUL,function(N,S){try{var u=_.Py.get(Z,S);if(u==null||u.toString()==null)return N;u=u.toString();if(u==""||!_.V_(u==null?"":String(u)))return encodeURIComponent(u).replace(/%2C/g,",")}catch(T){}return N})};
Gsf=function(L,Z){var N=Object.assign({},L),S=L.userAgentClientHints;N=(delete N.userAgentClientHints,N);N=L.payloadMapper(N);var u=Zh1(N,Z);return _.px(L.urlPrefixes,function(T){var W="";typeof S==="string"&&(W="&"+Zh1({uach:S},Z));var V={};return gRB(T,(V.VIEWABILITY=u,V))+W})};
NJx=function(L,Z){var N=L.payloadMapper(L),S=Zh1(N,Z);return S?_.px(L.urlPrefixes,function(u){u=u.indexOf("?")>=0?u:u+"?";u="?&".indexOf(u.slice(-1))>=0?u:u+"&";return u+S}):L.urlPrefixes};
F8f=function(){return $S(AU(function(L){return L!==void 0}),E3(function(L){return L}))};
$$t=function(L){return $S(E3(function(){return!0}),M8(!1),Kx(L))};
D$P=function(L){return L.length<=0?r7:ps(L.map(function(Z){var N=0;return Z.pipe(E3(function(S){return{index:N++,value:S}}))})).pipe(AU(function(Z){return Z.every(function(N){return N.index===Z[0].index})}),E3(function(Z){return Z.map(function(N){return N.value})}))};
l4_=function(L,Z){L.currentState&&(L.previousState=L.currentState);L.currentState=Z;L.previousState&&L.previousState.value?(Z=Math.max(0,Hd(Z.timestamp,L.previousState.timestamp)),L.totalTime+=Z,L.consecutiveTime+=Z):L.consecutiveTime=0;return L};
vRG=function(){return $S(VC(l4_,{totalTime:0,consecutiveTime:0}),E3(function(L){return L.totalTime}))};
oR1=function(){return $S(VC(l4_,{totalTime:0,consecutiveTime:0}),E3(function(L){return L.consecutiveTime}))};
R0L=function(L,Z){return function(N){return D$P(Z.map(function(S){return N.pipe(L(S))}))}};
cW_=function(){var L;return $S(e2H(function(Z){return void(L=Z.timestamp)}),oR1(),E3(function(Z){return{timestamp:L,
value:Math.round(Z)}}))};
nR1=function(L,Z){return yC(L.topWindowViewportExternalGeometry,Z.topWindowViewportExternalGeometry)&&yC(L.elementGeometry,Z.elementGeometry)&&yC(L.exposedViewportLocalGeometry,Z.exposedViewportLocalGeometry)&&yC(L.intersectionGeometry,Z.intersectionGeometry)&&L.elementGeometrySourceName===Z.elementGeometrySourceName&&L.measurementRequests===Z.measurementRequests&&L.viewportGeometrySourceName===Z.viewportGeometrySourceName&&L.viewportLocalAppOffset.x===Z.viewportLocalAppOffset.x&&L.viewportLocalAppOffset.y===
Z.viewportLocalAppOffset.y};
yWA=function(L,Z){return function(N){return function(S){var u=S.pipe(tj(new cy),jo());S=N.element.pipe(iG());u=u.pipe(E3(function(T){return T.value}));
return ps([S,u,Z]).pipe(E3(function(T){var W=_.O(T);T=W.next().value;var V=W.next().value;W=W.next().value;if(T.ref===void 0)var M={top:0,left:0,width:0,height:0};else{M=T.ref.getBoundingClientRect();var G=T.ref,D=L.global,l=new _.zF(0,0),v=mt(_.Jj(G));if(smH(v,"parent")){do{if(v==D)var R=_.Cx(G);else R=K8G(G),R=new _.zF(R.left,R.top);l.x+=R.x;l.y+=R.y}while(v&&v!=D&&v!=v.parent&&(G=v.frameElement)&&(v=v.parent))}M={top:l.y,left:l.x,width:M.width,height:M.height}}M=k3P(M,V.viewportLocalAppOffset);
D=fGh(M,V.exposedViewportLocalGeometry);l=L.timeProvider.now();v=Object;G=v.assign;if(W!==2||L.inCrossDomainIframe||D.width<=0||D.height<=0)var K=!1;else try{var U=L.document.elementFromPoint(D.left+D.width/2,D.top+D.height/2);K=U?!f4t(U,T):!1}catch(d){K=!1}return{timestamp:l,value:G.call(v,{},V,{elementGeometrySourceName:"geo",intersectionGeometry:K?ksL.intersectionGeometry:D,elementGeometry:M})}}),nx(L.queue))}}};
f4t=function(L,Z,N){N=N===void 0?0:N;return L.ref===void 0||Z.ref===void 0?!1:L.ref===Z.ref||_.rF(Z.ref,function(S){return S===L.ref})?!0:Z.ref.ownerDocument&&Z.ref.ownerDocument.defaultView&&Z.ref.ownerDocument.defaultView===Z.ref.ownerDocument.defaultView.top?!1:N<10&&Z.ref.ownerDocument&&Z.ref.ownerDocument.defaultView&&Z.ref.ownerDocument.defaultView.frameElement?f4t(L,new QC(Z.ref.ownerDocument.defaultView.frameElement),N+1):!0};
YK_=function(L){return function(Z){return Z.pipe(L.ResizeObserver?wEA(L):U$f(L),Wy(1),jo())}};
wEA=function(L){return function(Z){return Z.pipe(gF(function(N){var S=L.ResizeObserver;if(!S||N.ref===void 0)return eo(ksL.elementGeometry);var u=(new DS(function(T){function W(){N.ref!==void 0&&V.unobserve(N.ref);V.disconnect();M.unsubscribe()}
if(N.ref===void 0)return T.complete(),function(){};
var V=new S(function(G){G.forEach(function(D){T.next(D)})});
V.observe(N.ref);var M=N.JSC$9359_released.subscribe(W);return W})).pipe(xS(L.performanceMonitor,736),E3(function(T){return T.contentRect}));
return Xg(eo(N.ref.getBoundingClientRect()),u)}),iG(yC))}};
U$f=function(L){return function(Z){var N=Z.pipe(VUh(L)),S=L.onResize;N=Xg(Z.pipe(E3(function(){return uUL("resize")})),N,S);
return ps(Z,N).pipe(xS(L.performanceMonitor,737),E3(function(u){u=_.O(u).next().value;return u.ref===void 0?void 0:u.ref.getBoundingClientRect()}),F8f(),iG(yC))}};
d$h=function(L,Z){var N=e0F(L,Z).pipe(Wy(1),jo());return function(S){return function(u){u=u.pipe(gF(function(T){return T.element}),iG());
return ps([N,u]).pipe(gF(function(T){var W=_.O(T);T=W.next().value;W=W.next().value;return I4h(L,T.intersectionObserver,YK_(L),T.observations,S,T.flushRecords,W)}),nx(L.queue))}}};
a4_=function(L){return E3(function(Z){return Z.value.viewportGeometrySourceName!=="nio"?Z:Object.assign({},Z,{value:Object.assign({},Z.value,{exposedViewportLocalGeometry:Xr(L,!0),topWindowViewportExternalGeometry:Xr(L,!0)})})})};
h0s=function(L,Z){return eo(Z).pipe(L,E3(function(){return Z}))};
e0F=function(L,Z){return L.timeProvider.timeline!==sYf?IS(new jN(2)):L.MutationObserver?typeof IntersectionObserver==="undefined"?IS(new jN(0)):(new DS(function(N){var S=new cy,u=new xh(S.next.bind(S),{threshold:[].concat(_.Pd(Z))});N.next({observations:S.pipe(xS(L.performanceMonitor,735)),intersectionObserver:u,flushRecords:function(T){T=u.takeRecords(T);T.length>0&&S.next(T)}})})).pipe(SN(1),Wy(1),jo()):IS(new jN(1))};
jY0=function(L){return sSG(L.sort(function(Z,N){return Z.time-N.time}),rUH)};
I4h=function(L,Z,N,S,u,T,W){return new DS(function(V){function M(){K||(K=!0,W.ref!==void 0&&Z.unobserve(u,W.ref),D.unsubscribe(),R.unsubscribe(),v.unsubscribe(),U.unsubscribe())}
if(W.ref!==void 0){ERh(Z,u);Z.observe(u,W.ref);var G=new q8({timestamp:L.timeProvider.now(),value:Object.assign({},ksL,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),D=S.pipe(mw(function(d){return jY0(d)}),AU(function(d){return d.target===W.ref}),E3(function(d){return{timestamp:new Bd(d.time,sYf),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:d.rootBounds||Ly,topWindowViewportExternalGeometry:d.rootBounds||Xr(L,!0),measurementRequests:l,elementGeometrySourceName:"nio",intersectionGeometry:d.intersectionRect,elementGeometry:d.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:d.isIntersecting,isV2Visible:d.isVisible}}}),tj(G),jo()).subscribe(V),l=new cy,v=l.subscribe(function(){T(u);
V.next({timestamp:L.timeProvider.now(),value:G.value.value});W.ref!==void 0&&(Z.unobserve(u,W.ref),Z.observe(u,W.ref))}),R=h0s(N,W).subscribe(function(){l.next()}),K=!1,U=W.JSC$9359_released.subscribe(function(){return M()});
return M}})};
PIF=function(L,Z){var N=L.getOnBackgrounded().pipe(E3(function(){return"b"}));
return Ftw(Z,N).pipe(SN(1),Kx(L.queue))};
ZG=function(L){return function(Z){var N;return Z.pipe(e2H(function(S){return void(N=S.timestamp)}),E3(function(S){return S.value}),L,E3(function(S){return{timestamp:N,
value:S}}))}};
pEF=function(L){return L.intersectionGeometry.width*L.intersectionGeometry.height/(L.elementGeometry.width*L.elementGeometry.height)};
NG=function(L,Z,N){N=N===void 0?function(S,u){return S===u}:N;
return L.timestamp.equals(Z.timestamp)&&N(L.value,Z.value)};
iX=function(L,Z){return Z.pipe(E3(function(N){return new Sb(L.timeProvider,{timestamp:L.timeProvider.now(),value:N})}))};
z0L=function(L){return function(Z){return Z.pipe(IDw(L),E3(function(N){var S=_.O(N);N=S.next().value;S=S.next().value;var u=N.value;return{timestamp:N.timestamp,value:u>=1?!0:u<=0?!1:u>=S}}))}};
JWL=function(){return $S(AU(function(L,Z){return Z>0}),m$h,M8(-1),iG())};
CIs=function(L,Z,N){return L?ps([Z,N]).pipe(AU(function(S){var u=_.O(S);S=u.next().value;u=u.next().value;return S.timestamp.equals(u.timestamp)}),E3(function(S){var u=_.O(S);
S=u.next().value;u=u.next().value;return S.value>u.value?S:u})):Z};
XEB=function(L){return function(Z){var N=Z.pipe(rWh),S=Z.pipe(QYA);return L instanceof DS?L.pipe(gF(function(u){return CIs(u,N,S)})):CIs(L.value,N,S)}};
inG=function(L,Z,N,S){var u=S.geometryIsOccluded,T=S.exposureThreshold,W=S.wasLargeAdAtRender,V=S.allowLargeAdThreshold,M=S.largeAdExposureThreshold,G=S.mayUseViewportShareExposure,D=S.hasMeasurementStarted;S=S.useIntersectionObserverV2;Z=AWw(L,N,Z);N=HhG(L,N);S=BJ1(Z,S);var l=x$s(L,u,G,Z),v=l.pipe(E3(function(C){return C.value}),iG(),Kx(L),VC(function(C,X){return Math.max(C,X)},0)),R=l.pipe(E3(function(C){return C.value}),JWL(),Kx(L)),K=Z.pipe(qKG,E3(function(C){return C.value}),SN(2),iG(),Kx(L));
W=L0x(L,Z,W,V);var U=W.pipe(M8(!1),iG(),E3(function(C){return C?M:T}));
V=l.pipe(z0L(U),iG(),Kx(L));var d=ps([V,Z]).pipe(AU(function(C){var X=_.O(C);C=X.next().value;X=X.next().value;return C.timestamp.equals(X.timestamp)}),E3(function(C){var X=_.O(C);
C=X.next().value;X=X.next().value;return{visible:C.value,geometry:X.value.elementGeometry}}),VC(function(C,X){return!X.visible&&C.visible?C:X},{visible:!1,
geometry:Ly}),E3(function(C){return C.geometry}),M8(Ly),Kx(L),iG(yC));
G=G instanceof DS?G.pipe(iG(),N8()):sN;U=ps([G,U]).pipe(N8());var h=Z.pipe(AU(function(C){return C.value.viewportGeometrySourceName!=="ns"&&C.value.elementGeometrySourceName!=="ns"}),VC(function(C){return C+1},0),M8(0),Kx(L)),E=N.pipe(N8(!0),M8(!1),Kx(L));
E=ps([D,E]).pipe(E3(function(C){var X=_.O(C);C=X.next().value;X=X.next().value;return C&&!X}),Kx(L));
var A=Z.pipe(ZnL,iG()),J=A.pipe(E3(function(C){return C.value}),VC(function(C,X){return Math.max(C,X)},0),iG(),Kx(L));
L=A.pipe(E3(function(C){return C.value}),JWL(),Kx(L));
return{shouldResetExposureSignals:G,shouldResetViewabilitySignals:U,geometrySignals:{readyGeometryWithDefault:Z,measurementStrategy:Z.pipe(Nj1),creativePosition:d.pipe(iG(yC)),visible:V.pipe(iG(NG)),timestampedExposure:l.pipe(iG(NG)),maximumExposure:v,minimumExposure:R,browserSize:Z.pipe(SMh,iG(_.Bs)),timestampedScreenShare:A,maxScreenShare:J,minScreenShare:L,geometricMeasurementErrors:N,measurementRequests:Z.pipe(E3(function(C){return C.value.measurementRequests})),
isLargeAd:W,geometryIsOccluded:u,hasMeasurementStarted:D,geometryMeasurable:E,validMeasurementCount:h,loadTimeExposure:K,v2VisibilityBitVector:S}}};
HhG=function(L,Z){return Z.pipe(AU(function(){return!1}),E3(function(N){return N}),qZ(function(N){return uX(new kh(N),L)}))};
AWw=function(L,Z,N){return Z.pipe(ghs(sN),Kx(L)).pipe(iG(function(S,u){return NG(S,u,nR1)}),M8({timestamp:N.now(),
value:ksL}),Kx(L))};
x$s=function(L,Z,N,S){N=S.pipe(XEB(N),ZG(E3(function(u){return Math.round(u*100)/100})),Kx(L));
return Z instanceof kh?N:ps([N,Z]).pipe(E3(function(u){var T=_.O(u);u=T.next().value;T=T.next().value;return{timestamp:T.timestamp.maximum(u.timestamp),value:T.value?0:u.value}}),iG(NG),Kx(L))};
L0x=function(L,Z,N,S){Z=[Z.pipe(E3(function(u){return u.value.elementGeometry.width*u.value.elementGeometry.height>=242500}))];
N instanceof DS&&Z.push(N.pipe(E3(function(u){return!!u})));
N=ps(Z);return S?N.pipe(E3(function(u){return u.some(function(T){return T})}),M8(!1),iG(),Kx(L)):uX(new kh(!1),L)};
BJ1=function(L,Z){L=ps([L,Z]).pipe(E3(function(u){var T=_.O(u);u=T.next().value;if(T.next().value&&u.value.isIntersecting)return u.value.isV2Visible}),iG());
var N=L.pipe(E3(function(u){return u===void 0?!0:u}),VC(function(u,T){return u||!T},!1)),S=L.pipe(VC(function(u,T){return T===void 0?u:T?!1:u!=null?u:!0},void 0),E3(function(u){return!!u}));
return ps([Z,$8H(L,N,S)]).pipe(E3(function(u){var T=_.O(u);u=T.next().value;var W=_.O(T.next().value);T=W.next().value;var V=W.next().value;W=W.next().value;var M=0;if(!u)return 0;if(T===void 0)return 16;T&&(M|=1);T||(M|=2);V&&(M|=4);W&&(M|=8);return M}))};
VuB=function(L,Z,N,S,u){var T=u71.timeThresholdMs;var W=W===void 0?new TjF(Z,S):W;return(new DS(function(V){var M=N.pipe(M8(void 0),gF(function(){return tu0(u)})).pipe(E3(function(G){var D=G.value;
G=G.timestamp;var l=D.visible;D=D.consecutiveViewTime;var v=D>=T;v||!l?On1(W):(G=Math.max(0,Hd(Z.now(),G)),W00(W,Math.max(0,T-D-G)));return v}),VC(function(G,D){return D||G},!1),iG()).subscribe(V);
return function(){W.dispose();M.unsubscribe()}})).pipe(GF(function(V){return!V},!0),Kx(L))};
tu0=function(L){return D$P([L,L.pipe(cW_())]).pipe(E3(function(Z){var N=_.O(Z);Z=N.next().value;N=N.next().value;return{timestamp:Z.timestamp,value:{visible:Z.value,consecutiveViewTime:N.value}}}),iG(function(Z,N){return NG(Z,N,function(S,u){return S.consecutiveViewTime===u.consecutiveViewTime&&S.visible===u.visible})}))};
bnt=function(){return $S(oR1(),VC(function(L,Z){return Math.max(L,Z)},0),E3(function(L){return Math.round(L)}))};
MuF=function(L){return $S(z0L(eo(L)),bnt())};
g_w=function(L,Z){return Z instanceof DS?Z.pipe(gF(function(N){return(N=N?15:null)?IS(new jN(N)):L})):(Z=Z.value?15:null)?IS(new jN(Z)):L};
GpB=function(L){var Z=new jN(13);if(L.length<1)return{chain:r7,capturedErrors:r7};var N=new cy,S=L[0];return{chain:L.slice(1).reduce(function(u,T){return u.pipe(qZ(function(W){N.next(W);return T}))},S).pipe(qZ(function(u){N.next(u);
return IS(Z)}),tj(new cy),jo()),
capturedErrors:N}};
F0A=function(L,Z){var N=L.pipe(tj(new cy),jo());return gF(function(S){return N.pipe(Z(S))})};
DTt=function(L,Z){if(L.inCrossDomainIframe)return IS(new jN(6));var N=new cy;return Xg(eo({}),Z,N).pipe(E3(function(){return{timestamp:L.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:$TB(L),topWindowViewportExternalGeometry:Xr(L,!0),measurementRequests:N,viewportLocalAppOffset:{x:0,y:0}}}}),nx(L.queue))};
$TB=function(L){var Z=Xr(L,!1);if(!L.inIframe||!jmw(L.global.parent)||L.global.parent===L.global)return Z;var N=new T3(L.global.parent,L.debugChannel);N.beaconFactory=L.beaconFactory;N=$TB(N);L=L.global.frameElement.getBoundingClientRect();return fGh(k3P(fGh(N,L),{x:Z.left-L.left,y:Z.top-L.top}),Z)};
l81=function(L){if(L.prerendering)return 3;var Z;return(Z={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[L.visibilityState||L.webkitVisibilityState||L.mozVisibilityState||""])!=null?Z:0};
v_0=function(L){return L.document.JSC$9370_onVisibilityChange.pipe(E3(function(Z){return Z==="visible"}),iG(),Kx(L.queue))};
o_w=function(L,Z,N){var S;return Z.pipe(iG(),gF(function(u){return N.pipe(E3(function(){if(!S){S=!0;try{u.next()}finally{S=!1}}return!0}))}),M8(!1),Kx(L.queue))};
Rah=function(L){return $S(ZG(E3(function(Z){return Z>=1?!0:Z<=0?!1:Z>=L})),vRG(),E3(function(Z){return Math.round(Z)}))};
n__=function(L,Z,N,S,u){var T=chx;if(T.length>1)for(var W=0;W<T.length-1;W++)if(T[W]<T[W+1])throw Error();W=u.pipe(M8(void 0),gF(function(){return N.pipe(cW_())}),iG(),Kx(L));
u=u.pipe(M8(void 0),gF(function(){return N.pipe(bnt())}),iG(),Kx(L));
return{totalMeasurementTime:S.pipe(M8(void 0),gF(function(){return Z.pipe(E3(function(V){return{timestamp:V.timestamp,value:!0}}),vRG())}),iG(),Kx(L)),
totalUnviewedTime:S.pipe(M8(void 0),gF(function(){return Z.pipe(E3(function(V){return{timestamp:V.timestamp,value:V.value===0}}),vRG())}),iG(),Kx(L)),
maxTimeOnScreen:S.pipe(M8(void 0),gF(function(){return Z.pipe(R0L(MuF,T))}),iG(_.Bs),Kx(L)),
timeOnScreen:S.pipe(M8(void 0),gF(function(){return Z.pipe(R0L(Rah,T),E3(function(V){return V.map(function(M,G){return G>0?M-V[G-1]:M})}))}),iG(_.Bs),Kx(L)),
maxConsecutiveViewTime:u,consecutiveViewTime:W.pipe(iG(NG),Kx(L))}};
f8F=function(L){var Z=!0;Z=Z===void 0?!1:Z;return $S(gF(function(N){return K0P(L.document,N,Z)}),Kx(L.queue))};
kpL=function(L,Z,N){var S=N.pipe(E3(function(u){return{value:u,timestamp:L.timeProvider.now()}}),iG(NG));
return Z instanceof DS?Z.pipe(iG(),gF(function(u){return u?uX(new kh({value:!1,timestamp:L.timeProvider.now()}),L.queue):S})):Z.value===!1?S:new kh(!1)};
yhx=function(L,Z,N,S,u,T,W){var V=u71;Z=Z instanceof DS?Z.pipe(M8(!1),iG()):Z;var M=!L.isMobile();N=kpL(L,N,S);L=W.measurableCreative.pipe($$t(L.queue));return Object.assign({},V,{geometryIsOccluded:N,wasLargeAdAtRender:u,allowLargeAdThreshold:M,mayUseViewportShareExposure:Z,hasMeasurementStarted:L,useIntersectionObserverV2:T})};
UTG=function(L,Z,N,S,u,T){var W=1;T=T===void 0?!0:T;W=W===void 0?.01:W;var V=V===void 0?L.timeProvider.intervalObservable(100).pipe(Kx(L.queue)):V;return L.performanceMonitor.timeExecution(916,function(){return w8F(L,Z.pipe(nx(L.queue)),N.pipe(nx(L.queue)),S,u,T,W,V)})()};
w8F=function(L,Z,N,S,u,T,W,V){var M=v_0(L).pipe(E3(function(D){return!D})),G=new YMH(L,[new eaf(L,chx),
new I8_(L,V)]);V=u51(dTH,a8t);return BZw(L,Z,function(D,l){var v=uX(new kh(l.element),D.queue).pipe(f8F(D),Kx(D.queue)),R={loadedElement:v,shouldMeasure:v.pipe(N8(!0)),measurableCreative:v.pipe(E3(function(C){var X=X===void 0?Symbol():X;return Object.freeze({symbol:X,element:uX(new kh(C),D.queue)})})),
creativeSearchResult:uX(new kh("mue"),D.queue)},K=new kh(!1),U=new kh(!1),d=new kh(17),h=new kh(!1),E=new kh(!1),A=uX(tr,D.queue);K=G.buildGeometrySource(R,{inApp:K,useV2:!1,requestSource:uX(d,D.queue)}).geometrySource;R=yhx(D,h,U,M,E,A,R);U=inG(D.queue,D.timeProvider,K,R);R=U.geometrySignals;h=U.shouldResetViewabilitySignals;U=n__(D.queue,R.timestampedExposure,R.visible,U.shouldResetExposureSignals,h);h=VuB(D.queue,D.timeProvider,h,R.measurementRequests,R.visible);E=N.pipe(AU(function(C){return C===
l.element.ref}),E3(function(){return"ur"}));
A=ohB(D.timeProvider,u).pipe(N8("t"));E=PIF(D,Xg(E,A));A=o_w(D,R.measurementRequests,E.pipe(AU(function(C){return C!==null})));
K=E.pipe(AU(function(C){return C!==null}),E3(function(){return l81(D.global.document)===1}));
var J=haG(D.document);return Object.assign({},{beaconFactory:new kh(D.beaconFactory),context:new kh(D),inferredPingId:new kh("lidar2"),timeOnScreenPingId:new kh("lidartos"),binaryContext:new kh(17),binaryVersion:new kh(S),requestSource:d,contextValidationErrors:new kh(D.validate()?null:new EN),contextVisibilityKnown:new kh(J),payloadMapper:new kh(SKF),endOfSessionReason:E,timeOnScreenReason:E,requestMeasurementOnEndOfSession:A,hasImpressionFired:slt,crossDomainIframeState:new kh(D.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:tr,inFetchLaterBeaconExperiment:tr,isTurtlex:tr,turtlexReportEventData:new kh(""),reportFencedFrameEvent:sN,isViewableAttributionEnabled:tr,inViewableAttributionExperiment:new kh(0),fetchBeaconFactory:sN,supportsPendingBeacon:tr,supportsFetchLater:tr,emit:new kh(OhP),beginToRenderEvent:new kh(Symbol()),activeViewUnmeasurableEvent:new kh(Symbol()),activeViewViewableEvent:new kh(Symbol()),creativeFound:slt,immediateUrlPrefixes:new kh(l.immediateUrls),timeOnScreenUrlPrefixes:new kh(l.timeOnScreenUrls),
cpmavUrls:sN,viewableRelayUrls:sN,measurementDeferralState:new kh(2),urlSerializer:new kh(Gsf),viewUrlSerializer:new kh(jl1),isCreativeLoaded:v.pipe($$t(D.queue)),pageVisible:M.pipe(E3(function(C){return!C})),
eosPageVisible:K,timestampedExposureHistory:R.timestampedExposure.pipe(VC(function(C,X){C.push(X);return C},[]))},R,{viewable:iX(D,h),
maxTimeOnScreen:iX(D,U.maxTimeOnScreen),timeOnScreen:iX(D,U.timeOnScreen),maxConsecutiveViewTime:iX(D,U.maxConsecutiveViewTime),consecutiveViewTime:U.consecutiveViewTime.pipe(E3(function(C){return new Sb(D.timeProvider,C)})),
totalMeasurementTime:iX(D,U.totalMeasurementTime),totalUnviewedTime:iX(D,U.totalUnviewedTime),userAgentClientHints:iyL(D),clientOrderPingCounter:new kh(new q_t)})},ihF(L,W),TJB(T?tUw(V,E_f):tUw(V,PTH),p8G))};
zax=function(L){var Z=_.CG.apply(1,arguments).filter(Boolean).join("&");if(!Z)return L;var N=L.match(/[?&]adurl=/);return N?L.slice(0,N.index+1)+Z+"&"+L.slice(N.index+1):L+(L.indexOf("?")<0?"?":"&")+Z};
O_=function(L,Z){return Z?"&"+L+"="+encodeURIComponent(Z):""};
mTF=function(){try{var L,Z;return!!((L=window)==null?0:(Z=L.top)==null?0:Z.location.href)&&!1}catch(N){return!0}};
_.W4=function(L){L&&typeof L.dispose=="function"&&L.dispose()};
_.VL=function(L){for(var Z=0,N=arguments.length;Z<N;++Z){var S=arguments[Z];_.Jx(S)?_.VL.apply(null,S):_.W4(S)}};
CTG=function(){var L=JhP();L=L===void 0?"bevasrsg":L;return new Promise(function(Z){var N=window===window.top?window:mTF()?window:window.top,S=N[L],u;((u=S)==null?0:u.bevasrs)?Z(new bX(S.bevasrs)):(S||(S={},S=(S.nqfbel=[],S),N[L]=S),S.nqfbel.push(function(T){Z(new bX(T))}))})};
rhA=function(L){var Z={c:L.oL,e:L.ysC,mc:L.vUo,me:L.tfB};L.jT&&(Z.co={c:L.jT.dLo,a:L.jT.jRv,s:L.jT.oUB});return Z};
QlG=function(L){var Z,N,S={oL:L.c,ysC:L.e,vUo:(Z=L.mc)!=null?Z:!1,tfB:(N=L.me)!=null?N:!1};L.co&&(S.jT={dLo:L.co.c,jRv:L.co.a,oUB:L.co.s});return S};
X8t=function(L){return function(){var Z;return _.b(function(N){if(N.nextAddress==1)return N.yield(L(),2);Z=N.yieldResult;return N.return({f:function(){return Z.mXe()},
c:function(S){return Z.xRm(S)},
m:function(S){return Z.ma(QlG(S))},
mws:function(S){return Z.qsC(QlG(S))}})})}};
Ah_=function(L,Z){var N=JhP();N=N===void 0?"bevasrsg":N;Z={s:function(T){var W;return L.snapshot(Object.assign({},T.c&&{oL:T.c},T.s&&{fWx:T.s},{foe:(W=T.p)!=null?W:!0}))},
e:function(T){var W;return void((W=L.uea)==null?void 0:W.call(L,T))},
c:function(T,W){return L.mFH(T,W)},
p:L.mXG,l:function(){return L.wFA()},
wpc:Z?X8t(Z):void 0};var S=window===window.top?window:mTF()?window:window.top,u=S[N];if(u){u.bevasrs=Z;if(u.nqfbel!==void 0)for(N=_.O(u.nqfbel),S=N.next();!S.done;S=N.next())S=S.value,S(Z);u.nqfbel=void 0}else u={},u=(u.bevasrs=Z,u.nqfbel=void 0,u),S[N]=u};
Bjf=function(L){var Z=Z===void 0?51:Z;var N=[];_.MG(L,HnP,6,_.gZ()).forEach(function(S){_.G3(S,2)<=Z&&N.push(_.G3(S,1))});
return N};
xTP=function(L){var Z=Z===void 0?51:Z;var N=[];_.MG(L,HnP,6,_.gZ()).forEach(function(S){_.G3(S,2)>Z&&N.push(_.G3(S,1))});
return N};
qMA=function(L){L.then(function(){},function(){})};
FU=function(L){return{fieldType:1,fieldName:L}};
$$=function(L){return{fieldType:2,fieldName:L}};
_.DG=function(L){return{fieldType:3,fieldName:L}};
L5h=function(){function L(){u[0]=1732584193;u[1]=4023233417;u[2]=2562383102;u[3]=271733878;u[4]=3285377520;D=G=0}
function Z(l){for(var v=W,R=0;R<64;R+=4)v[R/4]=l[R]<<24|l[R+1]<<16|l[R+2]<<8|l[R+3];for(R=16;R<80;R++)l=v[R-3]^v[R-8]^v[R-14]^v[R-16],v[R]=(l<<1|l>>>31)&4294967295;l=u[0];var K=u[1],U=u[2],d=u[3],h=u[4];for(R=0;R<80;R++){if(R<40)if(R<20){var E=d^K&(U^d);var A=1518500249}else E=K^U^d,A=1859775393;else R<60?(E=K&U|d&(K|U),A=2400959708):(E=K^U^d,A=3395469782);E=((l<<5|l>>>27)&4294967295)+E+h+A+v[R]&4294967295;h=d;d=U;U=(K<<30|K>>>2)&4294967295;K=l;l=E}u[0]=u[0]+l&4294967295;u[1]=u[1]+K&4294967295;u[2]=
u[2]+U&4294967295;u[3]=u[3]+d&4294967295;u[4]=u[4]+h&4294967295}
function N(l,v){if(typeof l==="string"){l=unescape(encodeURIComponent(l));for(var R=[],K=0,U=l.length;K<U;++K)R.push(l.charCodeAt(K));l=R}v||(v=l.length);R=0;if(G==0)for(;R+64<v;)Z(l.slice(R,R+64)),R+=64,D+=64;for(;R<v;)if(T[G++]=l[R++],D++,G==64)for(G=0,Z(T);R+64<v;)Z(l.slice(R,R+64)),R+=64,D+=64}
function S(){var l=[],v=D*8;G<56?N(V,56-G):N(V,64-(G-56));for(var R=63;R>=56;R--)T[R]=v&255,v>>>=8;Z(T);for(R=v=0;R<5;R++)for(var K=24;K>=0;K-=8)l[v++]=u[R]>>K&255;return l}
for(var u=[],T=[],W=[],V=[128],M=1;M<64;++M)V[M]=0;var G,D;L();return{reset:L,update:N,digest:S,digestString:function(){for(var l=S(),v="",R=0;R<l.length;R++)v+="0123456789ABCDEF".charAt(Math.floor(l[R]/16))+"0123456789ABCDEF".charAt(l[R]%16);return v}}};
TvH=function(L,Z){Z=Z===void 0?ZZP:Z;if(!Nv0){var N;L=(N=L.navigator)==null?void 0:N.userAgentData;if(!L||typeof L.getHighEntropyValues!=="function"||L.brands&&typeof L.brands.map!=="function")return Promise.reject(Error("ua"));Srh((L.brands||[]).map(function(u){var T=new iZH;T=_.dF(T,1,u.brand);return _.dF(T,2,u.version)}));
typeof L.mobile==="boolean"&&_.lX(u2s,2,L.mobile);Nv0=L.getHighEntropyValues(Z)}var S=new Set(Z);return Nv0.then(function(u){var T=u2s.clone();S.has("platform")&&_.dF(T,3,u.platform);S.has("platformVersion")&&_.dF(T,4,u.platformVersion);S.has("architecture")&&_.dF(T,5,u.architecture);S.has("model")&&_.dF(T,6,u.model);S.has("uaFullVersion")&&_.dF(T,7,u.uaFullVersion);return T.serialize()}).catch(function(){return u2s.serialize()})};
v4=function(L,Z,N,S){this.initialValue_=L;this.maxValue_=Z;this.currBaseValue_=this.currValue_=L;this.randomFactor_=N||0;this.backoffFactor_=S||2};
og=function(L){this.src=L;this.listeners={};this.typeCount_=0};
VZx=function(){for(var L;L=tZA.remove();){try{L.fn.call(L.scope)}catch(Z){uH(Z)}OZ_.put(L)}W50=!1};
_.bZG=function(L){switch(L){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}};
MZ0=function(L){switch(L){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""}};
_.gsh=function(){};
c3w=function(L,Z,N,S){L=GRF(F5x($uw(new _.Rg(1828,"0"),L),new Duw)).disableWithCredentials();Z.length&&lx_(L,vs_(new osx,Z));S!==void 0&&(L.destinationUrl=S);var u=new Rlx(1828,"","",!1,"",L.build());_.Ky(u,L);var T=new fy({flush:function(W){try{u.flush(W)}catch(V){N(V)}}});
T.addOnDisposeCallback(function(){setTimeout(function(){try{T.snapshotAndFlush()}finally{u.dispose()}})});
T.invocationLimit=1E5;T.flushInterval=3E4;T.JSC$9786_flushTimer.setInterval(3E4);return T};
k$=function(){var L,Z,N;return(N=(L=globalThis.performance)==null?void 0:(Z=L.now)==null?void 0:Z.call(L))!=null?N:Date.now()};
fxw=function(L,Z){if(L.disable)return new nsB;Z=Z?Bjf(Z):[];L={mh:L.mh,nLo:L.yhn,muD:L.pvP,destinationUrl:L.destinationUrl,zpo:L.zpo,zFo:L.zFo};Z=Z===void 0?[]:Z;return new K5f(L,Z)};
kRh=function(L){if(!L)return null;L=_.yL(L,2);return L===null||L===void 0?null:Af(L)};
_.y3P=function(L){if(!L)return null;L=_.yL(L,4);return L===null||L===void 0?null:_.YV(L)};
YrP=function(L,Z){return Z?wW_(Z):L?Uuw(L):Promise.resolve()};
wW_=function(L){return new Promise(function(Z,N){var S=_.wZ("SCRIPT"),u=_.y3P(L);_.TE(S,u);S.onload=function(){_.U_(S);Z()};
S.onerror=function(){_.U_(S);N(Error("Fa"))};
(Y$("HEAD")[0]||document.documentElement).appendChild(S)})};
Uuw=function(L){return new Promise(function(Z){var N=_.wZ("SCRIPT");if(L){var S=_.yL(L,6);S=S===null||S===void 0?null:_.So(S)}else S=null;_.ug(N,S);(Y$("HEAD")[0]||document.documentElement).appendChild(N);_.U_(N);Z()})};
eb=function(L,Z,N){var S,u=new Promise(function(T){S=setTimeout(T,Z)});
return Promise.race([L.finally(function(){return void clearTimeout(S)}),
u.then(N)])};
el_=function(L,Z){try{return globalThis.sessionStorage.setItem(L,Z),!0}catch(N){return!1}};
Ixt=function(L,Z,N,S){Z=Z===void 0?0:Z;N=N===void 0?L.length:N;var u=0;for(S&&(u=Ixt(S));Z<N;Z++)S=typeof L==="string"?L.charCodeAt(Z):L[Z],u=duH(31,u)+S|0;return u};
ax_=function(L,Z){return[Ixt(L,0,L.length>>1,Z),Ixt(L,L.length>>1)]};
hlx=function(L){var Z=_.O(ax_(L,Ig));L=Z.next().value;Z=Z.next().value;return L.toString(16)+Z.toString(16)};
se0=function(L,Z){var N=ax_(Z);L=new Uint32Array(L.buffer);Z=L[0];var S=_.O(N);N=S.next().value;S=S.next().value;for(var u=1;u<L.length;u+=2){for(var T=Z,W=u,V=N,M=S,G=0;G<22;G++)W=W>>>8|W<<24,W+=T|0,W^=V+38293,T=T<<3|T>>>29,T^=W,M=M>>>8|M<<24,M+=V|0,M^=G+38293,V=V<<3|V>>>29,V^=M;T=[T,W];L[u]^=T[0];u+1<L.length&&(L[u+1]^=T[1])}};
jeH=function(L,Z,N,S,u){var T=(4-(Ig.length+N.length)%4)%4,W=new Uint8Array(4+T+Ig.length+4+N.length),V=new DataView(W.buffer),M=0;V.setUint32(M,Math.random()*4294967295);M=M+4+T;W.set(Ig,M);M+=Ig.length;V.setUint32(M,u);W.set(N,M+4);se0(W,S);return L.insert(Z,function(G){return void globalThis.sessionStorage.removeItem(G)})?el_(Z,_.jY(W))?"s":"t":"i"};
Ess=function(L,Z){var N=globalThis.sessionStorage.getItem(L);if(!N)return["m"];try{var S=_.xt(N);se0(S,Z)}catch(u){return globalThis.sessionStorage.removeItem(L),["c"]}for(Z=4;Z<7&&S[Z]===0;)Z++;for(N=0;N<Ig.length;N++)if(S[Z++]!==Ig[N])return globalThis.sessionStorage.removeItem(L),["d"];N=(new DataView(S.buffer)).getUint32(Z);return Math.floor(Date.now()/1E3)>=N?(globalThis.sessionStorage.removeItem(L),["e"]):["a",new Uint8Array(S.buffer,Z+4)]};
PQP=function(L){return globalThis.TextEncoder?(new TextEncoder).encode(L):_.dZ(L)};
pWA=function(L){var Z=L,N;return function(){if(Z){var S=Z;Z=void 0;N=S.apply(this,arguments)}return N}};
muF=function(L){return sY(function(Z){if(Z instanceof L)return!0;var N,S,u=Z==null?void 0:(N=Z.ownerDocument)==null?void 0:(S=N.defaultView)==null?void 0:S[L.name];return zlP(u)&&Z instanceof u})};
_.s_=function(L,Z,N){_.ag.call(this);this.JSC$10000_listener_=L;this.JSC$10000_interval_=Z||0;this.handler_=N;this.callback_=(0,_.hr)(this.JSC$10002_doAction_,this)};
_.jb=function(L){L=J3x(L);return _.YV(L)};
J3x=function(L){return L===null?"null":L===void 0?"undefined":L};
r3s=function(L){if(L&&L.focus)if(L!==document.activeElement)L.focus();else return CQF(function(){return _.b(function(Z){document.activeElement&&document.activeElement.blur();return Z.return(CQF(function(){L.focus()}))})})};
_.QeL=function(L){var Z=Z===void 0?5:Z;setTimeout(function(){var N;return _.b(function(S){S.nextAddress==1&&(N=document.activeElement);if(S.nextAddress!=5)return(document.activeElement===N||document.activeElement===document.body)&&Z>=0&&L?S.yield(r3s(L),5):S.jumpTo(0);if(document.activeElement===L)return S.return();L=L.parentElement;--Z;return S.jumpTo(2)})},15)};
CQF=function(L){return new Promise(function(Z){requestAnimationFrame(function(){Z(L())})})};
A3_=function(L){if(_.E_)L(_.E_);else{var Z;((Z=XW_)!=null?Z:XW_=[]).push(L)}};
py=function(){!_.E_&&_.P4&&_.HZw(_.P4());return _.E_};
_.HZw=function(L){_.E_=L;var Z;(Z=XW_)==null||Z.forEach(A3_);XW_=void 0};
_.z3=function(L){_.E_&&_.E_.beforeLoadModuleCode(L)};
_.mm=function(){_.E_&&_.E_.JSC$11061_setLoaded()};
Jr=function(L){return aNs(L)?Number(L):String(L)};
Bv1=function(L){this.action=L;this.wfv=!1};
xuL=function(L,Z){Bv1.call(this,"set-drive-options");this.appId=L;this.appOrigin=Z};
qrG=function(L){Bv1.call(this,"visibility");this.visible=L};
LzL=function(L,Z,N){Cy.call(this,L,Z,N)};
ZQ1=function(L){rZ.call(this,L)};
NoF=function(L){L=L&&L.getWindow()||window;return L.gadgets&&L.gadgets.rpc};
iQt=function(L,Z){var N=Z&&Z.getWindow()||window;if(NoF(Z))L();else if(S6f)S6f.push(L);else var S=S6f=[L],u=N.setInterval(function(){if(NoF(Z)){N.clearInterval(u);for(var T=0;T<S.length;T++)S[T]();S6f=null}},100)};
Tox=function(L,Z){var N=new XU(L);_.Ky(Z,N);var S={passive:!1};Z.listen(N,"mousewheel",function(u){return void uWP(L,u)},S).listen(L,"scroll",function(u){return void uWP(L,u)},S)};
uWP=function(L,Z){var N;a:{for(N=Z.target;N;){if(N.nodeType==1){var S=_.Ar(N,"overflowY");if(S=="auto"||S=="scroll")break a}N=N.parentNode}N=null}if(!N||!_.H4(L,N)||N.scrollHeight==N.clientHeight||Z.deltaY>0&&Math.abs(N.scrollTop-(N.scrollHeight-N.clientHeight))<=1||Z.deltaY<0&&N.scrollTop==0)Z.preventDefault(),Z.stopPropagation()};
iI=function(L,Z,N,S,u,T,W,V,M){V=V===void 0?!1:V;M=M===void 0?!1:M;Cy.call(this,void 0,void 0,void 0);Cy.call(this,T?T+" picker modal-dialog":"picker modal-dialog",!0,N);_.B4(L,"protocol");this.iframeManager_=new tXf;this.targetId_=x$();this.rpcToken_=x$();L=_.qG(L);_.Lh(L,"hostId");N=_.Lh(L,"parent");this.useGapi_=!M&&!0||(N==null?void 0:N.includes("onepick.corp.google.com"));V&&_.Z4(L,"fv2","true");this.setUrl(L.toString());this.preferredDialogWidth_=S;this.preferredDialogHeight_=u;S!==void 0||
u!==void 0?S=!0:(S=_.Lh(_.qG(L.toString()),"hostId"),OQF||(OQF=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),S=!OQF.has(S));this.autoSizeDialog_=S;this.JSC$10190_gadgetsDomHelper_=W||this.JSC$10141_dom_;Z&&(W=this.JSC$10190_gadgetsDomHelper_,Z=_.Lh(_.qG(this.JSC$10192_url_),"grugl")=="true"?WzB:VXt,NoF(W)||(W=W||Im(document),S=W.createElement("SCRIPT"),_.TE(S,Z),S.type="text/javascript",W.JSC$9325_document_.body.appendChild(S)));
L=L.toString();Z=null;W=L.indexOf("/picker?");W>-1?Z=L.substring(0,W+8-1):OG(L,"/picker")&&(Z=L);Z&&this.setRelayUrl(Z+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(L=this.buttons_,L.JSC$10175_element_=this.buttonEl_,L.render()):_.tU(this.buttonEl_,bQL),_.N$(this.buttonEl_,!!this.buttons_))};
_.FzP=function(L){var Z=Z===void 0?MXh:Z;var N=_.Hs(L),S=function(T){T=_.O(T);T.next();T=uI(T);return Z(N,T)},u=function(T){var W=_.O(T);
T=W.next().value;W=uI(W);return L.apply(T,W)};
return function(){var T=_.CG.apply(0,arguments),W=this||_.iH,V=gj0.get(W);V||(V={},gj0.set(W,V));return GTh(V,[this].concat(_.Pd(T)),u,S)}};
Ts=function(L){var Z={};L=L.replace(/\r/g,"").split("\n");for(var N=0;N<L.length;N++){var S=L[N],u=S.indexOf(":");u<0||(Z[S.substring(0,u)]=S.substring(u+2,S.length))}return Z};
$Os=function(L,Z,N){N=N===void 0?function(){}:N;
return L?Z():N()};
_.lkt=function(L){var Z;return((Z=DOL.documentOverride)!=null?Z:L).__wizdispatcher};
_.OK=function(L){var Z=tW;tW=L;return Z};
_.ojG=function(L){return L===vjG||(L==null?void 0:L.name)==="\u0275NotFound"};
_.WE=function(L,Z){var N;if((N=L)==null?0:N.isDisposed)throw Error("jb`"+String(L.debugName));for(;L!==void 0;){N=L;if(N.retrieve)return N.retrieve(Z,{optional:!0});L=L.parent}return vjG};
VX=function(L){return{"\u0275prov":{providedIn:"root",token:Symbol(L),factory:void 0,value:void 0}}};
_.RGf=function(L){var Z=tW;if(!Z){switch(L===void 0?3:L){case 0:L=Error("ib");break;case 1:L=Error("kb");break;case 2:L=Error("lb");break;default:L=Error("mb")}throw L;}return Z};
ca1=function(L){var Z=_.OK(L);L={};return L[Symbol.dispose]=function(){_.OK(Z)},L};
nj0=function(L,Z){L.disposables||(L.disposables=[]);L.disposables.push(Z)};
bI=function(L){var Z=tW;Z&&!Z.isDisposed&&(nj0(Z,L),L.parent=Z)};
fkG=function(L){if(L.disposables){for(var Z=_.O(L.disposables),N=Z.next();!N.done;N=Z.next())N=N.value,typeof N==="function"?N():KzF(N);L.disposables.length=0}};
KzF=function(L){if(!L.isDisposed){L.isDisposed=!0;var Z;(Z=L[Symbol.dispose])==null||Z.call(L);delete L.parent;fkG(L)}};
akP=function(L){var Z={retrieve:function(N){switch(N.\u0275prov.token){case kTB.\u0275prov.token:var S=L.asyncDeps;break;case _.ya_.\u0275prov.token:S=L.rootElement;break;case wxs.\u0275prov.token:S=L.modelRootElement;break;case UOx.\u0275prov.token:S=L.appContext;break;case Y6t.\u0275prov.token:S=L.rendererData;break;case eGH.\u0275prov.token:S=L.injectingConstructor;break;case Ikt.\u0275prov.token:S=L.dispatcher}if(S)N=S;else a:{for(S=Z.parent;S;){var u=S;if(u.retrieve){N=u.retrieve(N);break a}S=
S.parent}S=N.\u0275prov.token;u=dO_[S];u!==void 0?N=u:(u=N.\u0275prov.providedIn,N.\u0275prov.factory?(N=N.\u0275prov.factory(),S&&u==="root"&&(dO_[S]=N)):N=vjG)}return N}};
bI(Z);return Z};
hGG=function(){var L=_.RGf(1),Z=_.WE(L,UOx);if(!_.ojG(Z))return Z;L=_.WE(L,Ikt);if(!_.ojG(L))return L.getOptionalAppContext()};
sZH=function(L){if(typeof document!=="undefined"&&document&&document.getElementById&&(L=document.getElementById(L))){var Z=L.tagName.toUpperCase();if(Z=="SCRIPT"||Z=="LINK")return L}return null};
Ejs=function(L,Z){if((L=L===void 0?"":L)&&Z)throw Error("sb");var N="";var S=_.iH._F_jsUrl;(L=Z||sZH(L))&&(N=L.src?L.src:L.getAttribute("href"));if(S&&N){if(S!=N)throw Error("tb`"+S+"`"+N);N=S}else N=S||N;if(!jZ_(N))throw Error("ub");return N};
mO1=function(){if(!Pp0){Pp0=!0;try{var L=Ejs(_.iH._F_jsUrl?"":"base-js")}catch(S){return}var Z=pxL(zGs(L)),N=Object.keys(Z);N.length!==0&&A3_(function(S){for(var u=_.O(N),T=u.next();!T.done;T=u.next()){T=T.value;for(var W=_.O(Object.keys(Z[T])),V=W.next();!V.done;V=W.next())S.addExtraEdge(T,V.value)}})}};
CpA=function(){var L=Object.assign({},Jax);Object.getOwnPropertyNames(Jax).forEach(function(Z){M$[Z]!==void 0&&(L[Z]=M$[Z])});
return L};
raf=function(L,Z){if(M$.enablePerformanceTiming){var N,S;(S=(N=performance).mark)==null||S.call(N,L+"Start__"+Z)}};
QZw=function(L,Z){if(M$.enablePerformanceTiming){var N,S;(S=(N=performance).measure)==null||S.call(N,L+"__"+Z,L+"Start__"+Z)}};
Xx1=function(L,Z,N){var S;return L&&Z?L+"__"+Z:(S=L!=null?L:Z)!=null?S:N};
HQG=function(L,Z){var N=Object.create(Aat);N.debugName=Z;!tW||bI(N);Z=_.OK(N);try{L(N)}finally{_.OK(Z)}return function(){return void KzF(N)}};
xOx=function(L){return gJ(L)&&Bo1 in L};
q6H=function(L,Z){return Object.is(L,Z)};
F5=function(L){var Z=Gs;Gs=L;return Z};
ZAw=function(L){if($R)throw Error("Z");if(Gs!==null){var Z=Gs.producersTail;if(Z===void 0||Z.producer!==L){var N=void 0,S=Gs.recomputing;if(S&&(N=Z!==void 0?Z.nextProducer:Gs.producers,N!==void 0&&N.producer===L)){Gs.producersTail=N;N.lastReadVersion=L.version;return}var u=L.consumersTail,T;if(!(T=u===void 0||u.consumer!==Gs)){if(S){a:{T=Gs;S=T.producersTail;if(S!==void 0){T=T.producers;do{if(T===u){S=!0;break a}if(T===S)break;T=T.nextProducer}while(T!==void 0)}S=!1}S=!S}T=S}T&&(S=D4(Gs),N={producer:L,
consumer:Gs,nextProducer:N,prevConsumer:u,lastReadVersion:L.version,nextConsumer:void 0},Gs.producersTail=N,Z!==void 0?Z.nextProducer=N:Gs.producers=N,S&&LS0(L,N))}}};
vE=function(L){if(!D4(L)||L.dirty)if(L.dirty||L.lastCleanEpoch!==lI)(L.producerMustRecompute(L)||NYt(L))&&L.producerRecomputeValue(L),L.dirty=!1,L.lastCleanEpoch=lI};
SIs=function(L){if(L.consumers!==void 0){var Z=$R;$R=!0;try{for(var N=L.consumers;N!==void 0;N=N.nextConsumer){var S=N.consumer;S.dirty||(L=void 0,S.dirty=!0,SIs(S),(L=S.consumerMarkedDirty)==null||L.call(S,S))}}finally{$R=Z}}};
iAG=function(){var L;return((L=Gs)==null?void 0:L.consumerAllowSignalWrites)!==!1};
uvA=function(L){L&&(L.producersTail=void 0,L.recomputing=!0);return F5(L)};
t2w=function(L){L.recomputing=!1;var Z=L.producersTail,N=Z!==void 0?Z.nextProducer:L.producers;if(N!==void 0){if(D4(L)){do N=TYx(N);while(N!==void 0)}Z!==void 0?Z.nextProducer=void 0:L.producers=void 0}};
NYt=function(L){for(L=L.producers;L!==void 0;L=L.nextProducer){var Z=L.producer,N=L.lastReadVersion;if(N!==Z.version)return!0;vE(Z);if(N!==Z.version)return!0}return!1};
LS0=function(L,Z){var N=L.consumersTail,S=D4(L);N!==void 0?(Z.nextConsumer=N.nextConsumer,N.nextConsumer=Z):(Z.nextConsumer=void 0,L.consumers=Z);Z.prevConsumer=N;L.consumersTail=Z;if(!S)for(L=L.producers;L!==void 0;L=L.nextProducer)LS0(L.producer,L)};
TYx=function(L){var Z=L.producer,N=L.nextProducer,S=L.nextConsumer,u=L.prevConsumer;L.nextConsumer=void 0;L.prevConsumer=void 0;S!==void 0?S.prevConsumer=u:Z.consumersTail=u;if(u!==void 0)u.nextConsumer=S;else if(Z.consumers=S,!D4(Z))for(L=Z.producers;L!==void 0;)L=TYx(L);return N};
D4=function(L){return L.consumerIsAlwaysLive||L.consumers!==void 0};
WSF=function(L){var Z=Object.create(OA_);Z.computation=L;L=function(){vE(Z);ZAw(Z);if(Z.value===oY)throw Z.error;return Z.value};
L[RY]=Z;return L};
gEG=function(L,Z){var N=Object.create(V2H);N.value=L;Z!==void 0&&(N.equal=Z);L=function(){ZAw(N);return N.value};
L[RY]=N;return[L,function(S){return bAF(N,S)},
function(S){iAG()||M2h(N);bAF(N,S(N.value))}]};
bAF=function(L,Z){iAG()||M2h(L);if(!L.equal(L.value,Z)){L.value=Z;L.version++;lI++;SIs(L);var N;(N=GIF)==null||N(L)}};
$Cx=function(L,Z,N){var S=Object.create(FSt);S.source=L;S.computation=Z;N!=void 0&&(S.equal=N);L=function(){vE(S);ZAw(S);if(S.value===oY)throw S.error;return S.value};
L[RY]=S;return L};
_.cE=function(L){var Z=F5(null);try{return L()}finally{F5(Z)}};
_.nh=function(L,Z,N){N=N===void 0?"":N;L=gEG(L,Z==null?void 0:Z.equals);var S=L[0],u=S[RY];u.debugName=Xx1(Z==null?void 0:Z.debugName,N,"[signal]");if(!M$.enablePerformanceTiming)return L;var T=L[1],W=L[2];return[S,function(V){DCw(function(){return void T(V)},u)},
function(V){DCw(function(){return void W(V)},u)}]};
DCw=function(L,Z){raf("signalSet",Z.debugName);try{L()}finally{QZw("signalSet",Z.debugName)}};
sWB=function(L,Z){var N=_.O(_.nh(L,void 0,"cPpJzc"));L=N.next().value;N=N.next().value;L[h9t]=N;L[Kh]=Z;return L};
jWh=function(L){return!!L&&typeof L==="object"&&Object.getPrototypeOf(L)===Object.prototype};
EEs=function(L){return typeof L==="function"&&h9t in L&&typeof L[h9t]==="function"};
PRB=function(L,Z){Object.defineProperty(L,Kh,{get:function(){return Z}})};
kR=function(L,Z){if(fh(L)){var N=L.map(function(T){return kR(T,Z)});
PRB(N,Z);return N}if(jWh(L)){N={};L=_.O(Object.entries(L));for(var S=L.next();!S.done;S=L.next()){var u=_.O(S.value);S=u.next().value;u=u.next().value;N[S]=kR(u,Z)}PRB(N,Z);return N}return sWB(L,Z)};
pKP=function(L){if(fh(L))return L.map(function(u){return pKP(u)});
if(jWh(L)){var Z={};L=_.O(Object.entries(L));for(var N=L.next();!N.done;N=L.next()){var S=_.O(N.value);N=S.next().value;S=S.next().value;Z[N]=pKP(S)}return Z}return EEs(L)?L():L};
mCL=function(){var L={height:0,width:0};if(!jWh(L))throw Error("Jb");var Z=Symbol("Kb");return[kR(L,Z),function(N,S){if(N[Kh]===Z)if(typeof S==="function"){var u=[].concat(_.Pd(pKP(N)));S=S(u)||u;z9w(N,[].concat(_.Pd(S)))}else z9w(N,S);else throw Error("Lb");}]};
z9w=function(L,Z){if(EEs(L))L[h9t](Z);else if(fh(L)&&fh(Z))Z=kR(Z,L[Kh]),L.length=0,L.push.apply(L,_.Pd(Z));else if((jWh(L)||fh(L))&&(fh(Z)||typeof Z==="object"&&Z!==null)){Z=_.O(Object.entries(Z));for(var N=Z.next();!N.done;N=Z.next()){var S=_.O(N.value);N=S.next().value;S=S.next().value;var u=L,T=u[N];Object.hasOwn(L,N)?z9w(T,S):u[N]=kR(S,L[Kh])}}else throw Error("Mb");};
JVG=function(L){return Object.create(Object.assign({},yX,L))};
rVG=function(){var L;return(L=CRx)!=null?L:CRx=JVG({consumerAllowSignalWrites:!0})};
_.wJ=function(L,Z,N){N=N===void 0?"":N;L=WSF(L);var S=L[RY];S.debugName=Xx1(Z==null?void 0:Z.debugName,N,"[computed]");(Z==null?void 0:Z.equals)!=null&&(S.equal=Z.equals);return L};
UK=function(L){var Z=F5(QWA);try{L()}finally{F5(Z)}};
xCH=function(L){switch(L.onInitType){case XKt:AVB.schedule(L);break;case HA1:BYL.schedule(L);break;default:_.Xh(L.onInitType)}};
ioA=function(L){if(!L.isDisposed)switch(L.effectType){case YR:qIG.schedule(L);break;case LdH:Zow.schedule(L);break;case NxH:SV0.schedule(L);break;default:_.Xh(L.effectType)}};
tSt=function(){if(eU>0)M$.flushRenderEffectsDuringRender&&qIG.flush();else{for(var L=_.O(ulF),Z=L.next();!Z.done;Z=L.next())Z.value.flush();Tx1()}};
Tx1=function(){_.b(function(L){if(L.nextAddress==1)return L.yield(Promise.resolve(),2);for(var Z=_.O(OoF),N=Z.next();!N.done;N=Z.next())N.value.flush();_.w7(L)})};
VSw=function(L){IY=!0;try{for(var Z=_.O(L),N=Z.next();!N.done;N=Z.next()){for(var S=N.value,u=[S],T=S;T.parent!==void 0;)T=T.parent,Wdx(T)&&L.has(T)&&u.push(T);for(;u.length>0;){var W=u.pop();L.delete(W);W.run()}}}finally{IY=!1}};
dJ=function(L){eU--;if(L){L=_.O(bow);for(var Z=L.next();!Z.done;Z=L.next())Z.value.clear()}else eU>0||IY&&!M$.flushRenderEffectsDuringRender||tSt()};
gbf=function(L,Z,N){var S=MSA(L);aY={name:N?S+" ("+N+")":S,isReactive:L.componentType!==hW,parent:aY};L=Z();aY=aY.parent;return L};
sK=function(){var L=aY;return L?L.isReactive:!1};
PE=function(L,Z,N){var S=aY;Z&&(aY=Z);try{return N==null?L():L.call(N)}catch(T){L=T;jU(L,aY);if(L!==GDB){Fds=aY;Z=[];for(N=tW;N;){var u=void 0;Z.push((u=N.debugName)!=null?u:"[context]");u=void 0;N=(u=N.parent)!=null?u:null}$4L=Z.reverse()}GDB=L;throw L;}finally{aY=S}};
jU=function(L,Z){try{var N=D4x(Z);if(N&&!L.componentStack&&(L.componentStack=N,M$.enableComponentStacksInErrorMessages)){var S=L.message+"\n\nComponent stack: "+N;L.stack&&(L.stack=L.stack.replace(L.message,S));L.message=S}}catch(u){}};
D4x=function(L){if(gJ(L)&&L.name!==void 0&&L.isReactive!==void 0&&L.parent!==void 0||L===null){for(var Z=0,N="";Z<20&&L;)N+=L.name+" > ",L=L.parent,Z++;L=N.slice(0,-3)}else if(M$.enableContextBasedComponentStacks){a:{for(L=L===void 0?tW:L;L;){if(xOx(L))break a;Z=void 0;L=(Z=L.parent)!=null?Z:null}L=null}L=L.getComponentStack().slice(0,20).join(" > ")}else L="";return L};
MSA=function(L){return L.debugName||L.name||"[component]"};
lbh=function(L,Z,N){Z=Object.create(Z);L&&(Z.effectFn=L);N&&(Z.debugName=N);bI(Z);Z.componentStack=aY;return Z};
_.ph=function(L,Z){L=lbh(L,vbx,Z);ioA(L)};
obH=function(L){return L};
R5_=function(L,Z){function N(){return u()}
var S=S===void 0?"":S;var u=typeof L==="function"?$Cx(L,obH,Z==null?void 0:Z.equals):$Cx(L.source,L.computation,Z==null?void 0:Z.equals);var T=u[RY];T.debugName=Xx1(Z==null?void 0:Z.debugName,S,"[linkedSignal]");N[RY]=T;return[N,function(W){DCw(function(){vE(T);bAF(T,W);T.dirty=!1;T.lastCleanEpoch=lI},T)},
function(W){DCw(function(){vE(T);iAG()||M2h(T);bAF(T,W(T.value));T.dirty=!1;T.lastCleanEpoch=lI},T)}]};
_.zs=function(L){var Z=tW;if(Z){var N=aY;nj0(Z,function(){var S=F5(rVG());try{PE(function(){return void L()},N)}catch(u){throw M$.enableContextBasedComponentStacks&&jU(u),u;
}finally{F5(S)}})}};
m8=function(L,Z){var N={};(Z===void 0||Z)&&bI(N);Z=_.OK(N);try{L(N)}finally{_.OK(Z)}return function(){return void KzF(N)}};
_.JW=function(L){return typeof L==="function"?L():(L==null?0:L[c2f])?L.get():L};
_.Ch=function(L,Z){L=lbh(L,nbH,Z);ioA(L)};
Kdt=function(L){if(tW)throw Error("nb");m8(L,!1)};
rJ=function(L,Z){L=_.OK(L);try{return _.cE(Z)}finally{_.OK(L)}};
QX=function(L,Z){var N=D4x(Fds),S,u;var T=(u=(S=$4L)==null?void 0:S.slice())!=null?u:[];Z={componentStack:N,contextTrace:T,errorSeverity:3,featureFlags:CpA(),tagName:Z};return[L,Z]};
y2B=function(L,Z,N){if(Object.hasOwnProperty.call(fbG,L)&&(L=fbG[L],Object.hasOwnProperty.call(L,Z)&&(L=L[Z],L instanceof Array))){for(var S=null,u=!1,T=0,W=L.length;T<W;++T){var V=L[T],M=V.contingentAttribute;if(!M)return V.contract;S===null&&(S={});M=Object.hasOwnProperty.call(S,M)?S[M]:S[M]=N(M);if(M===V.requiredValue)return V.contract;M==null&&(u=!0)}if(u)return null}Z=kDL[Z];return typeof Z==="number"?Z:null};
YVh=function(L,Z,N){var S=null;(L=wMh[L])&&(S=L[Z]);return typeof S!=="number"&&((L=wMh["*"])&&(S=L[Z]),typeof S!=="number")?!1:!0===U4H[S][String(N).toLowerCase()]};
Ib1=function(L,Z){Z=y2B(L.toLowerCase(),Z,function(){var S;(S=M$.handleError)==null||S.call.apply(S,[M$].concat(_.Pd(QX(Error("Tb"),L.toLowerCase()))))});
if(Z===null)return null;var N;return(N=e5F[Z])!=null?N:null};
d4w=function(L,Z,N){if(N===null||N===void 0)return N;Z=Z.toLowerCase();L=Ib1(L,Z);return L===null?N:L(Z,N)};
abh=function(){};
X5=function(L,Z){for(;L.length>Z;)L.pop()};
h5_=function(L){L=Array(L);X5(L,0);return L};
AW=function(L,Z,N){if(N==null)L.removeAttribute(Z);else{var S;(S=Z.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":Z.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?L.setAttributeNS(S,Z,N):L.setAttribute(Z,N)}};
s6t=function(L,Z,N){L[Z]=N};
Ebt=function(L,Z,N){L=L.style;if(typeof N==="string")L.cssText=N;else{L.cssText="";for(var S in N)if(j6H.call(N,S)){Z=L;var u=S,T=N[S];u.indexOf("-")>=0?Z.setProperty(u,T):Z[u]=T}}};
PeA=function(L,Z,N){var S=typeof N;S==="object"||S==="function"?L[Z]=N:AW(L,Z,N)};
pMH=function(){var L=new abh;L[HE.default]=PeA;L.style=Ebt;return L};
z5t=function(L,Z,N,S){(S[Z]||S[HE.default])(L,Z,N)};
J2G=function(L,Z,N){Z=new m4s(Z,N);return L.__incrementalDOMData=Z};
xR=function(L,Z){if(L.__incrementalDOMData)return L.__incrementalDOMData;var N=L.nodeType===1?L.localName:L.nodeName,S=L.nodeType===1?L.getAttribute("key"):null;Z=J2G(L,N,L.nodeType===1?S||Z:null);if(L.nodeType===1&&(L=L.attributes,N=L.length)){S=Z._attrsArr||(Z._attrsArr=h5_(N*2));for(var u=0,T=0;u<N;u+=1,T+=2){var W=L[u],V=W.value;S[T]=W.name;S[T+1]=V}}return Z};
Cef=function(L,Z,N,S,u){return Z==N&&S==u};
r2H=function(L){for(var Z=q$,N=NT();N!==L;){var S=N.nextSibling;Z.removeChild(N);Su.deleted.push(N);N=S}};
NT=function(){return iT?iT.nextSibling:q$.firstChild};
uT=function(){iT=NT()};
A2P=function(L,Z,N){uT();var S;a:{if(S=iT){do{var u=S,T=L,W=Z,V=xR(u,W);if(Q6h(u,T,V.nameOrCtor,W,V.key))break a}while(Z&&(S=S.nextSibling))}S=null}S||(L==="#text"?(N=Tp.createTextNode(""),J2G(N,"#text",null),L=N):(S=Tp,u=q$,typeof L==="function"?S=new L:S=(u=L==="svg"?"http://www.w3.org/2000/svg":L==="math"?"http://www.w3.org/1998/Math/MathML":u==null||xR(u).nameOrCtor==="foreignObject"?null:u.namespaceURI)?S.createElementNS(u,L):S.createElement(L),J2G(S,L,Z),L=S,N&&L.setAttribute("nonce",N)),Su.created.push(L),
S=L);N=S;if(N!==iT){if(XMx.indexOf(N)>=0)for(L=q$,Z=N.nextSibling,S=iT;S!==null&&S!==N;)u=S.nextSibling,L.insertBefore(S,Z),S=u;else q$.insertBefore(N,iT);iT=N}};
Hoh=function(L,Z,N){A2P(L,Z,N);q$=iT;iT=null;return q$};
Bxf=function(){r2H(null);iT=q$;q$=q$.parentNode};
x4_=function(){iT=q$.lastChild};
ZHB=function(L,Z){Z=Z===void 0?{}:Z;var N=Z.matches===void 0?Cef:Z.matches;return function(S,u,T){var W=Su,V=Tp,M=XMx,G=th,D=OM,l=iT,v=q$,R=Q6h;Tp=S.ownerDocument;Su=new qVs(S);Q6h=N;th=[];OM=[];iT=null;var K=q$=S.parentNode,U,d=L_L.call(S);if((U=d.nodeType===11||d.nodeType===9?d.activeElement:null)&&S.contains(U)){for(d=[];U!==K;)d.push(U),U=U.parentNode||(K?U.host:null);K=d}else K=[];XMx=K;try{return L(S,u,T)}finally{S=Su,W8&&S.deleted.length>0&&W8(S.deleted),Tp=V,Su=W,Q6h=R,th=G,OM=D,iT=l,q$=v,
XMx=M}}};
Ndh=function(L,Z,N,S){Vc.push(z5t);Vc.push(L);Vc.push(Z);Vc.push(N);Vc.push(S)};
iHx=function(L,Z,N){var S=OM;Z=Z._attrsArr||(Z._attrsArr=h5_(S.length));for(var u=!Z.length||!1,T=0;T<S.length;T+=2){var W=S[T];if(u)Z[T]=W;else if(Z[T]!==W)break;var V=S[T+1];if(u||Z[T+1]!==V)Z[T+1]=V,Ndh(L,W,V,N)}if(T<S.length||T<Z.length){for(T=u=T;T<Z.length;T+=2)bT[Z[T]]=Z[T+1];for(T=u;T<S.length;T+=2)u=S[T],W=S[T+1],bT[u]!==W&&Ndh(L,u,W,N),Z[T]=u,Z[T+1]=W,delete bT[u];X5(Z,S.length);for(var M in bT)Ndh(L,M,void 0,N),delete bT[M]}L=SUF;SUF=N=Vc.length;for(M=L;M<N;M+=5)(0,Vc[M])(Vc[M+1],Vc[M+
2],Vc[M+3],Vc[M+4]);SUF=L;X5(Vc,L);X5(S,0)};
u$P=function(L){A2P("#text",null);var Z=iT;var N=xR(Z);if(N.text!==L){N=N.text=L;for(var S=1;S<arguments.length;S+=1)N=(0,arguments[S])(N);Z.data!==N&&(Z.data=N)}};
Mjs=function(L,Z,N){if(N===!1&&Td_.has(Z))AW(L,Z,null);else if(Z!=="idomKey"&&Z!=="skip"&&Z!=="skipchildren"&&Z!=="children"&&Z!=="el")if(Z.startsWith("on")){if(Z[2]!==":")throw Error("Sb`"+Z);if(N===void 0||N===null){var S;(S=M$.handleError)==null||S.call.apply(S,[M$].concat(_.Pd(QX(Error("Xb`"+Z),L.tagName))));L[Z]=void 0}else{var u=Z.slice(3);S=sK();if(u==="jsaction"){N=Array.isArray(N)?N:[N];N=_.O(N);for(var T=N.next();!T.done;T=N.next()){T=T.value;if(typeof T!=="object"||T===null||typeof T.selfReg!==
"function")throw Error("$b`"+Z);T.selfReg(0,L,S?_.zs:function(){})}}else{if(typeof N!=="object"||N===null)throw Error("Yb`"+Z+"`"+typeof N);
if(typeof N.getFn!=="function")throw Error("Zb`"+Z+"`"+Object.keys(N));if(N.selfReg)N.selfReg(0,L,u,S?_.zs:function(){});
else if(S&&L["on"+u]===void 0){var W=N.getFn(0);L.addEventListener(u,W);_.zs(function(){return void L.removeEventListener(u,W)})}else if(S||!tjf.includes(u))L["on"+u]=N.getFn(0)}}}else{if(Z.startsWith("data-")&&typeof N==="string")try{N=OHG(N)}catch(V){N="zSoyz"}typeof N!=="function"||L._disposeEffects!=null?((S=Z.startsWith("prop:"))&&(Z=Z.slice(5)),M$.enableAttributeSanitization&&(S&&W_F(L.tagName)||(N=d4w(L.tagName,Z,N))),Z==="style"?("function"==typeof _.MT&&N instanceof _.MT&&(N=N.toString()),
Vj1(L,Z,N)):S?L[Z]=N:bHx(L,Z,N)):(L._signalProps||(L._signalProps=[]),L._signalValues||(L._signalValues=[]),L._signalProps.push(Z))}};
gd1=function(L,Z,N){N=(N===void 0?{}:N).isReactive;if(Z==null?0:Z.el){var S=Z.el,u;(u=S.onRender)==null||u.call(S,L);L._disposeRef||(L._disposeRef=function(){var T;(T=S.onUnmount)==null||T.call(S);delete L._disposeRef},N&&_.zs(function(){var T;
(T=L._disposeRef)==null||T.call(L)}))}};
W_F=function(L){return L.length>0&&L.includes("-")&&!GcF.includes(L.toLowerCase())};
F_f=function(L){return gJ(L)&&gj in L};
$7L=function(L){return F_f(L)?L[gj].flattened:L};
D7L=function(L,Z){var N=_.CG.apply(2,arguments),S;Z=(S=Z)!=null?S:{};S={};return S.type=L,S.props=Z,S.children=N,S[Gp]=!0,S};
_.F7=function(L){return L.children};
$_=function(L){var Z=lft!==D7L;lft=L?vdB:D7L;return Z};
_.D8=function(L){return _.Q_(L)?"nodeType"in L:!1};
lT=function(){return document.createTextNode("")};
ol=function(L){L=document.createTextNode(String(L));L._isSignalTextNode=!0;return L};
RCf=function(L){return L!=null&&L.contentKind===Rl||L instanceof Xt||ods(L)};
cQw=function(L){var Z=document.createElement("div");if(ods(L)&&kRh(L))_.tU(Z,kRh(L));else if(L instanceof Xt)_.tU(Z,L);else if(L!=null&&L.contentKind===Rl){if(L.contentKind!==Rl)throw Error("Wb");L=Af(L.toString());_.tU(Z,L)}L=_.O(Z.childNodes);for(var N=L.next();!N.done;N=L.next())N.value._isSafeOrSanitizedHtmlNode=!0;return Z};
nn=function(L){L=typeof L;return L==="string"||L==="number"||L==="boolean"};
ndA=function(L){return L instanceof Un||sn(L)||L instanceof Vd||"function"==typeof _.MT&&L instanceof _.MT};
K_t=function(L,Z){var N=L.parentElement;if(!N)return Z;N.replaceChild(Z,L);return Z};
fff=function(L,Z){var N=L[0].parentElement;if(N)if(L[0].previousSibling||L[L.length-1].nextSibling){N.insertBefore(Z,L[0]);for(var S=L.length-1;S>=0;S--)N.removeChild(L[S])}else N.textContent="",N.appendChild(Z);return Z};
kcw=function(L,Z){if(L[0].parentElement)for(var N=L[0].parentElement,S=Z.length,u=L.length,T=S,W=0,V=0,M=L[u-1].nextSibling,G=null;W<u||V<T;)if(L[W]===Z[V])W++,V++;else{for(;L[u-1]===Z[T-1];)u--,T--;if(u===W)for(var D=T<S?V?Z[V-1].nextSibling:Z[T-V]:M;V<T;){var l=Z[V++];N.insertBefore(l,D)}else if(T===V)for(;W<u;)D=L[W],G&&G.has(D)||N.removeChild(D),W++;else if(L[W]===Z[T-1]&&Z[V]===L[u-1])D=L[--u].nextSibling,N.insertBefore(Z[V++],L[W++].nextSibling),N.insertBefore(Z[--T],D),L[u]=Z[T];else{if(!G)for(G=
new Map,D=V;D<T;)G.set(Z[D],D++);D=G.get(L[W]);if(D==null)N.removeChild(L[W]),W++;else if(V<D&&D<T){l=W;for(var v=1,R=void 0;++l<u&&l<T&&(R=G.get(L[l]))!=null&&R===D+v;)v++;if(v>D-V)for(l=L[W];V<D;)N.insertBefore(Z[V++],l);else N.replaceChild(Z[V++],L[W++])}else W++}}return Z};
wXA=function(L){if(Array.isArray(L)){if(L.length>1)throw Error("jc`"+L.length+"`"+L.map(yQ0).join(", "));L=L[0]}if(L==null)return null;if(!(L instanceof _.NZ)){var Z,N;if((Z=window)==null?0:(N=Z.trustedTypes)==null?0:N.isScript(L))throw Error("ic");if(String(L).trim().length===0)return null;throw Error("kc`"+yQ0(L));}return L};
U7h=function(L,Z){Z=wXA(Z);Z!==null&&_.ug(L,Z)};
YU_=function(L){if(Array.isArray(L)){if(L.length>1)throw Error("lc`"+L.length+"`"+L.map(yQ0).join(", "));L=L[0]}if(L==null)return null;if(!(L instanceof Vd)){if(String(L).trim().length===0)return null;throw Error("mc`"+yQ0(L));}return L};
eCf=function(L,Z){Z=YU_(Z);Z!==null&&(L.textContent=lSx(Z))};
yQ0=function(L){return"("+typeof L+") "+(L!=null&&typeof L==="object"?L.constructor.name:typeof L)+" "+L};
Iff=function(){};
k_=function(L,Z){Z=Z===void 0?{}:Z;var N=d7H(),S=!0,u,T=!!M$.legacyTriggerSoyRendererEvents;T&&(u=hGG());_.Ch(function(){var W=!S&&Z.isControlFlowComponent&&T,V=W?N[gj].flattened[0].parentElement:void 0;S=!1;_.Kn.setUp();Z.isControlFlowComponent&&eU++;var M=N[0],G=N[gj].flattened,D=$_(!0);try{var l=L(),v=af1(M,l,N);Array.isArray(v)||(N[gj].flattened=[v]);var R=N[gj].flattened;if(G&&(!Array.isArray(G)||G.length!==0)){var K=Array.isArray(G)?G[0]:G,U=K[fn],d=K._disposeEffects;K._disposeEffects=void 0;
K=Array.isArray(R)?R[0]:R;K[fn]=U;K[fn]&&(K[fn].numNodes=K===R?1:R.length);K._disposeEffects=d}N[0]=v;Z.isControlFlowComponent&&dJ(!1)}catch(h){throw Z.isControlFlowComponent&&dJ(!0),h;}finally{$_(D),_.Kn.tearDown()}W&&(W=u,W!=null||(W=_.lkt(document).getAppContext()),W.get(hCH).JSC$29311_getEventTarget().dispatchEvent(new sMt(jMw,V,Rl)))},Z.debugName);
return N};
af1=function(L,Z,N){for(;typeof Z==="function";)Z=Z();if(Z!=null&&Z[Gp]){var S,u,T;(T=M$.handleError)==null||T.call.apply(T,[M$].concat(_.Pd(QX(Error("nc`"+((S=Z.type)==null?void 0:S.TAG_NAME)),(u=Z.type)==null?void 0:u.TAG_NAME))))}if(L==null)return Z==null?lT():nn(Z)?ol(Z):ndA(Z)?ol(Z.toString()):_.D8(Z)?Z:Z.length===0?lT():Edx(Z,N);if(_.D8(L)){if(Z==null)return K_t(L,lT());if(nn(Z))return PNf(L,Z);if(ndA(Z))return PNf(L,Z.toString());if(_.D8(Z))return K_t(L,Z);if(Z.length===0)return K_t(L,lT());
Z=Edx(Z,N);kcw([L],N[gj].flattened);return Z}L=yc(L);if(Z==null)return fff(L,lT());if(nn(Z))return fff(L,ol(Z));if(ndA(Z))return fff(L,ol(Z.toString()));if(_.D8(Z))return kcw(L,[Z])[0];if(Z.length===0)return fff(L,lT());Z=Edx(Z,N);kcw(L,N[gj].flattened);return Z};
PNf=function(L,Z){L.nodeType===Node.TEXT_NODE?L.textContent!==String(Z)&&(L.textContent=String(Z)):L=K_t(L,ol(Z));return L};
yc=function(L,Z,N){return pXP(L,Z!=null?Z:[],N===void 0?!1:N)};
Edx=function(L,Z){var N=yc(L,void 0,!0);if(N.length===0)return lT();Z[gj].flattened=N;return L};
pXP=function(L,Z,N,S,u){Z=Z===void 0?[]:Z;N=N===void 0?!1:N;u=u===void 0?-1:u;if(L==null)return Z;if(L instanceof wj){var T=L.render();return pXP(T,Z,N,S,u)}if(_.D8(Z)&&Z.nodeType===Node.ELEMENT_NODE)switch(Z.tagName){case "SCRIPT":U7h(Z,L);return;case "STYLE":eCf(Z,L);return}nn(L)&&(L=ol(L),S&&N&&(S[u]=L));if(RCf(L)){N=cQw(L);N=Array.from(N.childNodes);N=_.O(N);for(T=N.next();!T.done;T=N.next())zCG(Z,T.value);return Z}ndA(L)&&(L=ol(L.toString()),S&&N&&(S[u]=L));if(_.D8(L))return zCG(Z,L);if(Array.isArray(L)){for(T=
0;T<L.length;T++)pXP(L[T],Z,N,L,T);return Z}if(typeof L==="function"){T=k_(function(){var V=L();return V!=null&&!nn(V)&&RCf(V)?(V=cQw(V),Array.from(V.childNodes)):V},{debugName:"qmF2ne",
debugFn:L})[0];if(Array.isArray(T)){N=_.O(T);for(T=N.next();!T.done;T=N.next())zCG(Z,T.value);return Z}S&&N&&(S[u]=T);return zCG(Z,T)}if(L!=null&&L[Gp]){S=L;u=$_(!0);var W=lft;try{T=W.apply(null,[S.type,S.props].concat(_.Pd(S.children)))}finally{$_(u)}return pXP(T,Z,N)}(W=M$.handleError)==null||W.call.apply(W,[M$].concat(_.Pd(QX(Error("oc")))));return Z};
d7H=function(L){var Z={};Z=Object.assign([],(Z[gj]={flattened:[]},Z));if(!L)return Z;Z[0]=Edx(L,Z);return Z};
zCG=function(L,Z){Array.isArray(L)?L.push(Z):L.appendChild(Z);return L};
UM=function(L){if(!M$.enableLazyTsx)return L;if(Array.isArray(L)){for(var Z=0;Z<L.length;Z++)L[Z]=UM(L[Z]);return L}return L instanceof wj?(L=L.render(),UM(L)):L};
JQ0=function(L,Z){var N,S,u=MSA(L),T=function(R){S=R;R=$_(!0);var K=F5(Y_);raf("render",u);try{N=UM(L(Z))}finally{QZw("render",u),F5(K),$_(R)}};
T=M$.enableContextPerComponent?HQG(T,u):m8(T,M$.alwaysTrackContexts||!!tW);xOx(S);if(!Z.renderedFromIdom){var W=_.OK(S);try{return m7F(L,Z,N),N}finally{_.OK(W)}}!F_f(N)&&Array.isArray(N)&&(N=d7H(N));var V=$7L(N);W=Array.isArray(V)?V[0]:V;var M=!1;if(W){var G,D=(G=Z==null?void 0:Z.idomKey)!=null?G:L;G=V!==W;W._disposeEffects=T;var l=W[fn]||{},v=F_f(N)?N:l.sourceDynamicRange;Object.assign(l,{key:D,numNodes:G?V.length:1,context:S,higherOrder:!!W[fn],sourceDynamicRange:v});W[fn]=l}else M=!0;(function(){var R=
_.OK(S);try{m7F(L,Z,V)}finally{_.OK(R)}})();
M&&T();return N};
CNH=function(L){var Z={},N;for(N in L)Z={prev$jscomp$24:void 0,next$jscomp$33:void 0},Z.prev$jscomp$24=eu[N],Z.next$jscomp$33=L[N],eu[N]=function(S){return function(){var u=_.CG.apply(0,arguments);S.prev$jscomp$24.apply(null,_.Pd(u));S.next$jscomp$33.apply(null,_.Pd(u))}}(Z)};
rQf=function(){if(sK())throw Error("pc");return Il};
QMf=function(L,Z){if(!L.__unmounted&&Z){L.__unmounted=!0;try{L.didUnmount()}catch(u){var N,S;(S=M$.handleError)==null||S.call.apply(S,[M$].concat(_.Pd(QX(u,(N=L.__type)==null?void 0:N.TAG_NAME))))}eu.didUnmount(L);L.el=null;Z.__instance&&delete Z.__instance}};
AQx=function(L,Z,N){L._signalProps!=null&&L._disposeEffects==null&&((N===void 0?0:N)?L._disposeEffects=m8(function(){return void XXw(L,Z)},M$.alwaysTrackContexts||!!tW):XXw(L,Z))};
XXw=function(L,Z){_.Ch(function(){for(var N=L._signalProps,S=L._signalValues,u=0;u<N.length;u++){var T=N[u],W=Z[T]();S[u]!==W&&(S[u]=W,Mjs(L,T,W))}},"e3YVbb")};
HHB=function(L,Z,N){var S,u=[];L._disposeEffects=m8(function(){_.Ch(function(){var T=N();if(T===null||T===void 0)T="";if(nn(T)||T===null)S!=null||(S=document.createTextNode("")),S.parentNode!==L&&(S._isSignalTextNode=!0,L.insertBefore(S,Z)),S.textContent=String(T);else if(RCf(T)){for(var W=u.length>0?u[u.length-1].nextSibling:Z,V=_.O(u),M=V.next();!M.done;M=V.next())L.removeChild(M.value);T=cQw(T);u=Array.from(T.childNodes);T=_.O(u);for(V=T.next();!V.done;V=T.next())L.insertBefore(V.value,W)}else throw M=
(V=(W=aY)==null?void 0:W.name)!=null?V:"unknown",Error("ec`"+M+"`"+typeof T);},"VvDgC")},M$.alwaysTrackContexts||!!tW)};
qUH=function(L,Z){var N=_.CG.apply(2,arguments);Z!=null||(Z={});return!M$.enableLazyTsx||aY!=null&&!sK()?Bd1(L,Z,N):new x71(L,Z,N)};
Bd1=function(L,Z,N){if(L===_.F7)return N;if(typeof L==="function")return aY&&!sK()&&(Z.renderedFromIdom=!0),gbf(L,function(){var T=LgG(L,Z,N);if(T)return T;N.length>0&&(Z.children=N.length===1?N[0]:N);if(L.componentType===hW){var W;HQG(function(){var V=Z;if(L.componentType!==hW)W=!1;else{V||(V={});var M=new dj(V,L),G=F5(Y_);try{var D=M.render(V)}finally{F5(G)}D instanceof HTMLElement?(D.__instance=M,M.el=D,M.__type=L,L.TAG_NAME=D.tagName.toLowerCase(),eu.didPatch(M),W=D):W=D}},L.name);
if(W)return W}return JQ0(L,Z)},Z.debugInstance);
var S=Zvw(L,Z),u;for(u in Z)Mjs(S,u,Z[u]);AQx(S,Z);yc(N,S);gd1(S,Z,{isReactive:!0});N0h(S,Z);return S};
Zvw=function(L,Z){L=(Soh.has(L.toLowerCase())?0:iv0.has(L.startsWith("svg:")?L.replace("svg:",""):L))?document.createElementNS("http://www.w3.org/2000/svg",L.startsWith("svg:")?L.replace("svg:",""):L):uJP(L,Z)||document.createElement(L);L[T0f]=!0;return L};
t9w=function(L){if(L){var Z;(Z=L._disposeRef)==null||Z.call(L);var N;(N=L._disposeEffects)==null||N.call(L);L.__instance&&L.__instance instanceof al&&(Z=L.__instance,QMf(Z,L),Z instanceof dj&&Z.disposeEffects());for(Z=0;Z<L.childNodes.length;Z++)t9w(L.childNodes[Z])}};
Wgt=function(L){Ov_.push(L)===1&&requestAnimationFrame(function(){setTimeout(function(){var Z=[].concat(_.Pd(Ov_));Ov_=[];Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next()){N=N.value;try{for(var S=0;S<N.length;S++)t9w(N[S])}catch(u){S=N=void 0,(S=(N=M$).handleError)==null||S.call.apply(S,[N].concat(_.Pd(QX(u))))}}})})};
_.g=function(L,Z){return lft.apply(null,[L,Z].concat(_.Pd(_.CG.apply(2,arguments))))};
_.hh=function(L){return L};
_.sM=function(L){return{isDefault:!0,children:L.children}};
_.F=function(L){var Z=L.cond;if(Z===void 0)return L.else&&L.else();var N=_.wJ(function(){return!!Z()},void 0,"JHVi8"),S=function(){var u=Z();
if(!u){var T;(T=M$.handleError)==null||T.call.apply(T,[M$].concat(_.Pd(QX(V9x.nonNullableCondIsNull()))))}return u};
return k_(function(){var u=N(),T;m8(function(){var W=F5(Y_);try{T=UM(u?L.then(S):L.else&&L.else())}finally{F5(W)}},!0);
return T},{debugName:L.debugInstance,
debugFn:L.then,isControlFlowComponent:!0})};
bv_=function(L){return _.F(L)};
_.ju=function(L){return L.keyBy==="INDEX"?M9B(L):gPH(L)};
GoA=function(L){L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next()){var N=void 0;(N=Z.value)==null||N()}};
gPH=function(L){var Z=L.keyBy===void 0||L.keyBy==="REFERENCE",N=Z?function(D){return D}:L.keyBy,S=[],u=[],T=[],W=[],V=[],M=[],G=!0;
_.zs(function(){GoA(W)});
return k_(function(){var D=L.each(),l=D.length;if(l===0){if(S.length===0&&!G)return T;GoA(W);S=D;u=[];for(D=0;D<S.length;D++)u.push(N(S[D]));T=[];W=[];V=[];M=[];L.fallback&&(W[0]=FgB(function(){T[0]=UM(L.fallback())}));
G=!1;return T}for(var v=new $2x,R=S.length-1;R>=0;R--)v.push(u[R],R);R=Array(l);for(var K=Array(l),U=Array(l),d=Array(l),h=Array(Z?0:l),E={i$jscomp$450:0};E.i$jscomp$450<l;E={i$jscomp$450:E.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$562:void 0},E.i$jscomp$450++){E.item$jscomp$104=D[E.i$jscomp$450];E.key$jscomp$562=N(E.item$jscomp$104);var A=v.pop(E.key$jscomp$562);A!=null?(U[E.i$jscomp$450]=T[A],K[E.i$jscomp$450]=u[A],R[E.i$jscomp$450]=W[A],d[E.i$jscomp$450]=V[A],Z||(h[E.i$jscomp$450]=M[A]),UK(function(J){return function(){d[J.i$jscomp$450](J.i$jscomp$450);
if(!Z)h[J.i$jscomp$450](J.item$jscomp$104)}}(E)),delete W[A]):R[E.i$jscomp$450]=FgB(function(J){return function(){var C=_.O(_.nh(J.i$jscomp$450,void 0,"Fqk1zd")),X=C.next().value;
C=C.next().value;d[J.i$jscomp$450]=C;K[J.i$jscomp$450]=J.key$jscomp$562;if(Z)U[J.i$jscomp$450]=UM(L.children(J.item$jscomp$104,X));else{var L1=_.O(_.nh(J.item$jscomp$104,void 0,"GBj5de"));C=L1.next().value;L1=L1.next().value;h[J.i$jscomp$450]=L1;U[J.i$jscomp$450]=UM(L.children(C,X))}}}(E))}GoA(W);
S=D;u=K;T=U;W=R;V=d;M=h;G=!1;return U},{debugName:L.debugInstance,
debugFn:L.each,isControlFlowComponent:!0})};
M9B=function(L){var Z=[],N=[],S=[],u=[],T=!1;_.zs(function(){for(var W=_.O(u),V=W.next();!V.done;V=W.next())V=V.value,V()});
return k_(function(){var W=L.each();T&&W.length>0&&(u.pop()(),Z.pop(),T=!1);for(var V=Array(W.length),M={i$jscomp$451:0};M.i$jscomp$451<W.length;M={i$jscomp$451:M.i$jscomp$451},M.i$jscomp$451++)if(M.i$jscomp$451<Z.length)Z[M.i$jscomp$451]!==W[M.i$jscomp$451]&&(UK(function(D){return function(){return void N[D.i$jscomp$451](W[D.i$jscomp$451])}}(M)),Z[M.i$jscomp$451]=W[M.i$jscomp$451]),V[M.i$jscomp$451]=S[M.i$jscomp$451];
else{var G=FgB(function(D){return function(){Z[D.i$jscomp$451]=W[D.i$jscomp$451];var l=_.O(_.nh(W[D.i$jscomp$451],void 0,"JMMLmd")),v=l.next().value;l=l.next().value;N[D.i$jscomp$451]=l;V[D.i$jscomp$451]=UM(L.children(v,D.i$jscomp$451))}}(M));
u[M.i$jscomp$451]=G}for(;Z.length>W.length;)Z.pop(),u.pop()(),N.pop();W.length===0&&!T&&L.fallback&&(M=FgB(function(){V[0]=UM(L.fallback())}),u[0]=M,T=!0);
return S=V},{debugName:L.debugInstance,
isControlFlowComponent:!0})};
FgB=function(L){var Z=tW;return m8(function(N){var S=F5(Y_);try{N.parent=Z,L(N)}finally{F5(S)}},!1)};
_.EM=function(L){var Z=D2s(L),N=_.wJ(function(){return lF_(Z)},void 0,"F1PF4");
return k_(function(){var S=N(),u;m8(function(){var T=F5(Y_);try{u=UM(S())}finally{F5(T)}});
return u},{debugName:L.debugInstance,
isControlFlowComponent:!0})};
D2s=function(L){L=L.children;return Array.isArray(L)?L:[L]};
vP_=function(L){var Z=L.props;L=L.getChildren()[0];return Z.when?{when:Z.when,children:L}:{isDefault:!0,children:L}};
lF_=function(L){var Z=function(){return null};
L=_.O(L);for(var N=L.next();!N.done;N=L.next())if(N=N.value,N!=null&&N[Gp]&&(N=N.type===_.sM?{isDefault:!0,children:N.children[0]}:{when:N.props.when,children:N.children[0]}),N instanceof wj&&(N=vP_(N)),N.isDefault)Z=N.children;else if(N.when())return N.children;return Z};
RbH=function(L){var Z=null,N,S={get value(){var T,W;(W=(T=u).validateGetValue)==null||W.call(T);return u.__value},set value(T){var W,V;(V=(W=u).validateSetValue)==null||V.call(W,T);u.__value=T;u.__hasBeenSet=!0}},u=(S.__value=null,S.__hasBeenSet=!1,S.__hasErrored=!1,S.onRender=function(T){if(N&&T!==N){N._disposeRef=void 0;var W;(W=Z)==null||W()}N=T;Z=L(T)||null},S.onUnmount=function(){var T;
(T=Z)==null||T();Z=u.value=null},S[_.oP_]=!0,S);
return u};
P8=function(L){return typeof L==="symbol"};
nPf=function(L){var Z=rQf();if(Z==null)throw _.cdH.PRIMITIVE_INVALID_HOOK_CALL();var N=Z.hookCounter++;Z.hooks||(Z.hooks=[]);var S=Z.hooks;S[N]||(S[N]={key:L,host:Z});if(L!==S[N].key){if(Z.__type){var u;L=(u=Z.__type)==null?void 0:u.name}else L=Z instanceof dj?MSA(Z.functionComponent):"<"+Z.el.tagName.toLowerCase()+">";throw _.cdH.OUT_OF_ORDER_HOOK_CALL(L);}return S[N]};
KgH=function(L,Z){return!L||L.length!==(Z==null?void 0:Z.length)||L.some(function(N,S){return N!==Z[S]})};
fFL=function(L,Z){var N=nPf("onChange"),S=rQf();KgH(N.deps,Z)&&(N.deps=Z,N.pendingEffect=L,S.__syncEffects||(S.__syncEffects=[]),S.__syncEffects.push(N))};
_.pn=function(L,Z,N){N!=null||(N={});N=N.appContext;var S=!!M$.legacyTriggerSoyRendererEvents;_.Kn.setUp();try{var u=koP(L,Z,N);S&&(Z=N,Z!=null||(Z=_.lkt(document).getAppContext()),Z.get(hCH).JSC$29311_getEventTarget().dispatchEvent(new sMt(ydB,L,Rl)));_.Kn.log(L);return u}finally{_.Kn.tearDown()}};
koP=function(L,Z,N){var S=PE(function(){var u=F5(Y_);try{return m8(function(){var T=_.lkt(_.Jj(L)),W;var V=akP({rootElement:{value:L},appContext:N||(T==null?void 0:(W=T.getOptionalAppContext)==null?void 0:W.call(T)),dispatcher:T});T=_.OK(V);V=$_(!0);eU++;try{yc(Z(),L),dJ(!1)}catch(M){throw dJ(!0),M;}finally{$_(V),_.OK(T)}},!1)}catch(T){throw M$.enableContextBasedComponentStacks&&jU(T),T;
}finally{F5(u)}});
L[w2t]=!0;return function(){L.textContent="";S();L[w2t]=!1}};
_.zp=function(L){if(Wdx(Gs)){var Z;(Z=M$.handleError)==null||Z.call.apply(Z,[M$].concat(_.Pd(QX(Error("dc")))))}var N=tW,S=aY;xCH({onInitType:HA1,run:function(){if(N&&!N.isDisposed){var u=_.OK(N);try{PE(function(){return void L()},S)}catch(T){throw M$.enableContextBasedComponentStacks&&jU(T),T;
}finally{_.OK(u)}}}})};
U2L=function(L,Z){fFL(function(){return _.cE(L)},Z)};
_.m0=function(L){sK()?_.zp(function(){_.cE(L)}):fFL(function(){return _.cE(L)},[])};
ebP=function(L){var Z=[].concat(_.Pd(L));L.length=0;L=_.O(Z);for(Z=L.next();!Z.done;Z=L.next()){Z=Z.value;YoF(Z);var N=Z.pendingEffect;Z.pendingEffect=null;if(N=N==null?void 0:N())Z.pendingCleanup=N}};
YoF=function(L){var Z=L.pendingCleanup;L.pendingCleanup=null;Z==null||Z()};
IFG=function(L,Z){if(sK())return L();var N=nPf("useMemoInternal");KgH(N.deps,Z)&&(N.deps=Z,N.value=L());return N.value};
d2w=function(L,Z){return IFG(L,Z)};
Jh=function(L){return IFG(L,[])};
aFB=function(L){return Jh(function(){return{value:L}})};
_.Cn=function(L,Z){if(!L)return null;L=Object.keys(L);L=_.O(L);for(var N=L.next();!N.done;N=L.next()){N=N.value;var S=N.toLowerCase();if(S.indexOf(Z,S.length-Z.length)>-1)return N}return null};
_.Qc=function(){var L=arguments,Z=_.rj;L.length>1?Z[L[0]]=L[1]:L.length===1&&Object.assign(Z,L[0])};
_.X7=function(L,Z){return L in _.rj?_.rj[L]:Z};
_.Ah=function(L,Z){return!!_.X7(L,Z)};
hb_=function(L){var Z=_.rj.EXPERIMENT_FLAGS;return Z?Z[L]:void 0};
jHx=function(L){sHw.forEach(function(Z){return Z(L)})};
_.B8=function(L){return L&&window.yterr?function(){try{return L.apply(this,arguments)}catch(Z){_.H8(Z)}}:L};
_.H8=function(L){var Z=_.LZ("yt.logging.errors.log");Z?Z(L,"ERROR",void 0,void 0,void 0,void 0,void 0):(Z=_.X7("ERRORS",[]),Z.push([L,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Qc("ERRORS",Z));jHx(L)};
_.Zx=function(L,Z,N,S,u){var T=_.LZ("yt.logging.errors.log");T?T(L,"WARNING",Z,N,S,void 0,u):(T=_.X7("ERRORS",[]),T.push([L,"WARNING",Z,N,S,void 0,u]),_.Qc("ERRORS",T))};
PcP=function(L,Z){Z=L.split(Z);for(var N={},S=0,u=Z.length;S<u;S++){var T=Z[S].split("=");if(T.length===1&&T[0]||T.length===2)try{var W=EPF(T[0]||""),V=EPF(T[1]||"");if(W in N){var M=N[W];Array.isArray(M)?_.C1(M,V):N[W]=[M,V]}else N[W]=V}catch(v){var G=v,D=T[0],l=String(PcP);G.args=[{key:D,value:T[1],query:L,method:p2_===l?"unchanged":l}];zbP.hasOwnProperty(D)||_.Zx(G)}}return N};
m2L=function(L){var Z=[];_.Py.forEach(L,function(N,S){var u=_.Nu(S);N=Array.isArray(N)?N:[N];_.SZ(N,function(T){T==""?Z.push(u):Z.push(u+"="+_.Nu(T))})});
return Z.join("&")};
_.iQ=function(L){L.charAt(0)==="?"&&(L=L.substring(1));return PcP(L,"&")};
_.uQ=function(L){return L.indexOf("?")!==-1?(L=(L||"").split("#")[0],L=L.split("?",2),_.iQ(L.length>1?L[1]:L[0])):{}};
_.TR=function(L,Z){return JdB(L,Z||{},!0)};
Ccw=function(L,Z){return JdB(L,Z||{},!1)};
JdB=function(L,Z,N){var S=L.split("#",2);L=S[0];S=S.length>1?"#"+S[1]:"";var u=L.split("?",2);L=u[0];u=_.iQ(u[1]||"");for(var T in Z)if(N||!_.Py.containsKey(u,T))u[T]=Z[T];return _.t3(L,u)+S};
bQ=function(L){if(!Z)var Z=window.location.href;var N=_.Or(L)[1]||null,S=_.WW(L);return N&&S?VZ(L,Z):S?_.WW(Z)===S&&(Number(_.Or(Z)[4]||null)||null)===(Number(_.Or(L)[4]||null)||null):!0};
_.QHw=function(L){L=rdP(L);return L===null?!1:L[0]==="com"&&L[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
rdP=function(L){L=_.WW(L);return L!==null?L.split(".").reverse():null};
EPF=function(L){return L&&L.match(X2P)?L:Mu(L)};
_.gv=function(L){return new Adf(L)};
_.GR=function(){Hv0||(Hv0=new B0_);return Hv0};
qot=function(){var L=x2G;return function(){var Z=_.GR();if(!Z.resolve(_.gv(L))){var N={};Z.addProvider((N.provide=L,N.useClass=L,N[F2]=void 0,N))}return Z.resolve(L)}};
Zqh=function(L){var Z=_.$s,N,S;_.b(function(u){N=_.GR();return(S=N.resolve(_.gv(Z)))?(L(S),u.return(Promise.resolve(S))):u.return(N.resolve(new L2A(Z)).then(function(T){L(T);return T}))})};
_.c=function(L){L=Dx(L);return typeof L==="string"&&L==="false"?!1:!!L};
_.lQ=function(L,Z){L=Dx(L);return L===void 0&&Z!==void 0?Z:Number(L||0)};
NR0=function(L){L=Dx(L);return Array.isArray(L)?_.px(L,function(Z){return Number(Z||0)}):[Number(L||0)]};
_.vW=function(L){L=Dx(L);return L!==void 0?String(L):""};
_.oe=function(L){L=Dx(L);return Array.isArray(L)?_.px(L,function(Z){return String(Z||"")}):[String(L||"")]};
STP=function(){return _.X7("EXPERIMENTS_TOKEN","")};
Dx=function(L){return _.X7("EXPERIMENT_FLAGS",{})[L]};
iq1=function(){for(var L=[],Z=_.X7("EXPERIMENTS_FORCED_FLAGS",{}),N=_.O(Object.keys(Z)),S=N.next();!S.done;S=N.next())S=S.value,L.push({key:S,value:String(Z[S])});N=_.X7("EXPERIMENT_FLAGS",{});S=_.O(Object.keys(N));for(var u=S.next();!u.done;u=S.next())u=u.value,u.startsWith("force_")&&Z[u]===void 0&&L.push({key:u,value:String(N[u])});return L};
TR1=function(){if(!uKx)return null;var L=uKx();return"open"in L?L:null};
_.tz1=function(L){switch(_.Re(L)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Re=function(L){return L&&"status"in L?L.status:-1};
_.cW=function(L,Z){typeof L==="function"&&(L=_.B8(L));return window.setTimeout(L,Z)};
_.nZ=function(L,Z){typeof L==="function"&&(L=_.B8(L));return window.setInterval(L,Z)};
_.fZ=function(L){window.clearTimeout(L)};
W2G=function(L){L=_.uQ(L);for(var Z=_.O(OqH),N=Z.next();!N.done;N=Z.next())if(L[N.value]!==void 0)return!0;return!1};
Mzx=function(L,Z,N,S,u,T,W,V,M){N=N===void 0?"GET":N;S=S===void 0?"":S;V=V===void 0?!1:V;var G=TR1();if(!G)return null;var D=function(){(G&&"readyState"in G?G.readyState:0)===4&&Z&&_.B8(Z)(G)};
"onloadend"in G?G.addEventListener("loadend",D,!1):G.onreadystatechange=D;_.c("debug_forward_web_query_parameters")&&(L=Vzh(L,window.location.search));G.open(N,L,!0);T&&(G.responseType=T);W&&(G.withCredentials=!0);N=N==="POST"&&(window.FormData===void 0||!(S instanceof FormData));if(u=bqf(L,u))for(var l in u)G.setRequestHeader(l,u[l]),"content-type"===l.toLowerCase()&&(N=!1);N&&G.setRequestHeader("Content-Type","application/x-www-form-urlencoded");M&&"onprogress"in G&&(G.onprogress=function(){M(G.responseText)});
if(V&&"setAttributionReporting"in XMLHttpRequest.prototype){L={eventSourceEligible:!0,triggerEligible:!1};try{G.setAttributionReporting(L)}catch(v){_.Zx(v)}}G.send(S);return G};
bqf=function(L,Z){Z=Z===void 0?{}:Z;var N=bQ(L),S=_.X7("INNERTUBE_CLIENT_NAME"),u=_.c("web_ajax_ignore_global_headers_if_set"),T;for(T in g6f){var W=_.X7(g6f[T]),V=T==="X-Goog-AuthUser"||T==="X-Goog-PageId";T!=="X-Goog-Visitor-Id"||W||(W=_.X7("VISITOR_DATA"));var M;if(!(M=!W)){if(!(M=N||(_.WW(L)?!1:!0))){M=L;var G;if(G=_.c("add_auth_headers_to_remarketing_google_dot_com_ping")&&T==="Authorization"&&(S==="TVHTML5"||S==="TVHTML5_UNPLUGGED"||S==="TVHTML5_SIMPLY"))G=rdP(M),G=G===null?!1:G[1]==="google"?
!0:G[2]==="google"?G[0]==="au"&&G[1]==="com"?!0:G[0]==="uk"&&G[1]==="co"?!0:!1:!1;G&&(M=_.ks(M)||"",M=M.split("/"),M="/"+(M.length>1?M[1]:""),G=M==="/pagead");M=G?!0:!1}M=!M}M||u&&Z[T]!==void 0||S==="TVHTML5_UNPLUGGED"&&V||(Z[T]=W)}"X-Goog-EOM-Visitor-Id"in Z&&"X-Goog-Visitor-Id"in Z&&delete Z["X-Goog-Visitor-Id"];if(N||!_.WW(L))Z["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(N||!_.WW(L)){try{var D=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}D&&(Z["X-YouTube-Time-Zone"]=
D)}document.location.hostname.endsWith("youtubeeducation.com")||!N&&_.WW(L)||(Z["X-YouTube-Ad-Signals"]=m2L(G6t()));return Z};
_.F2s=function(L,Z){var N=_.WW(L);_.c("debug_handle_relative_url_for_query_forward_killswitch")||!N&&bQ(L)&&(N=document.location.hostname);var S=_.ks(L);S=(N=N&&(N.endsWith("youtube.com")||N.endsWith("youtube-nocookie.com")))&&S&&S.startsWith("/api/");if(!N||S)return L;var u=_.iQ(Z),T={};_.SZ(OqH,function(W){u[W]&&(T[W]=u[W])});
return Ccw(L,T)};
$js=function(L,Z){Z.method="POST";Z.postParams||(Z.postParams={});return _.yZ(L,Z)};
Djt=function(L,Z){var N=_.X7("XSRF_FIELD_NAME"),S;Z.headers&&(S=Z.headers["Content-Type"]);return!Z.excludeXsrf&&(!_.WW(L)||Z.withCredentials||_.WW(L)===document.location.hostname)&&Z.method==="POST"&&(!S||S==="application/x-www-form-urlencoded")&&!(Z.postParams&&Z.postParams[N])};
_.yZ=function(L,Z){var N=Z.format||"JSON";L=lW1(L,Z);var S=v6h(L,Z),u=!1,T=o6G(L,function(M){if(!u){u=!0;V&&_.fZ(V);var G=_.tz1(M),D=null,l=400<=M.status&&M.status<500,v=500<=M.status&&M.status<600;if(G||l||v)D=RZw(L,N,M,Z.convertToSafeHtml);G&&(G=cqH(N,M,D));D=D||{};l=Z.context||_.iH;G?Z.onSuccess&&Z.onSuccess.call(l,M,D):Z.onError&&Z.onError.call(l,M,D);Z.onFinish&&Z.onFinish.call(l,M,D)}},Z.method,S,Z.headers,Z.responseType,Z.withCredentials,!1,Z.onProgress);
S=Z.timeout||0;if(Z.onTimeout&&S>0){var W=Z.onTimeout;var V=_.cW(function(){u||(u=!0,T.abort(),_.fZ(V),W.call(Z.context||_.iH,T))},S)}return T};
lW1=function(L,Z){Z.includeDomain&&(L=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+L);var N=_.X7("XSRF_FIELD_NAME");if(Z=Z.urlParams)Z[N]&&delete Z[N],L=_.TR(L,Z);return L};
v6h=function(L,Z){var N=_.X7("XSRF_FIELD_NAME"),S=_.X7("XSRF_TOKEN"),u=Z.postBody||"",T=Z.postParams;Djt(L,Z)&&(T||(T={}),T[N]=S);(_.c("ajax_parse_query_data_only_when_filled")&&T&&Object.keys(T).length>0||T)&&typeof u==="string"&&(u=_.iQ(u),_.Py.extend(u,T),u=Z.postBodyFormat&&Z.postBodyFormat==="JSON"?JSON.stringify(u):_.wv(u));T=u||T&&!_.Py.isEmpty(T);!n6w&&T&&Z.method!=="POST"&&(n6w=!0,_.H8(Error("Kc")));return u};
RZw=function(L,Z,N,S){var u=null;switch(Z){case "JSON":try{var T=N.responseText}catch(W){throw S=Error("Lc"),S.params=L,_.Zx(S),W;}L=N.getResponseHeader("Content-Type")||"";T&&L.indexOf("json")>=0&&(T.substring(0,5)===")]}'\n"&&(T=T.substring(5)),u=JSON.parse(T));break;case "XML":if(L=(L=N.responseXML)?K2f(L):null)u={},_.SZ(L.getElementsByTagName("*"),function(W){u[W.tagName]=fWA(W)})}S&&k6G(u);
return u};
k6G=function(L){if(_.Q_(L))for(var Z in L)Z==="html_content"||OG(Z,"_html")?L[Z]=Af(L[Z]):k6G(L[Z])};
cqH=function(L,Z,N){if(Z&&Z.status===204)return!0;switch(L){case "JSON":return!!N;case "XML":return Number(N&&N.return_code)===0;case "RAW":return!0;default:return!!N}};
K2f=function(L){return L?(L=("responseXML"in L?L.responseXML:L).getElementsByTagName("root"))&&L.length>0?L[0]:null:null};
fWA=function(L){var Z="";_.SZ(L.childNodes,function(N){Z+=N.nodeValue});
return Z};
yq0=function(L){if(L.name==="JavaException")return!0;L=L.stack;return L.includes("chrome://")||L.includes("-extension://")||L.includes("webkit-masked-url://")};
wBH=function(L){if(!L.stack)return!0;var Z=!L.stack.includes("\n");return Z&&L.stack.includes("ErrorType: ")||Z&&L.stack.includes("Anonymous function (Unknown script")||L.stack.toLowerCase()==="not available"||L.fileName==="user-script"||L.fileName.startsWith("user-script:")?!0:!1};
_.Ur=function(L){_.ag.call(this);this.JSC$10525_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!L};
YTf=function(L,Z){var N=L.length,S=0,u=function(){return L.charCodeAt(S++)};
do{var T=UjG(u);if(T===Infinity)break;var W=T>>3;switch(T&7){case 0:T=UjG(u);if(W===Z)return T;break;case 1:if(W===Z)return;S+=8;break;case 2:T=UjG(u);if(W===Z)return L.substr(S,T);S+=T;break;case 5:if(W===Z)return;S+=4;break;default:return}}while(S<N)};
UjG=function(L){var Z=L(),N=Z&127;if(Z<128)return N;Z=L();N|=(Z&127)<<7;if(Z<128)return N;Z=L();N|=(Z&127)<<14;if(Z<128)return N;Z=L();return Z<128?N|(Z&127)<<21:Infinity};
IW0=function(L,Z,N,S){if(L)if(Array.isArray(L)){var u=S;for(S=0;S<L.length&&!(L[S]&&(u+=eZ1(S,L[S],Z,N),u>500));S++);S=u}else if(typeof L==="object")for(u in L){if(L[u]){var T=u;var W=L[u],V=Z,M=N;T=typeof W!=="string"||T!=="clickTrackingParams"&&T!=="trackingParams"?0:(W=YTf(atob(W.replace(/-/g,"+").replace(/_/g,"/")),2))?eZ1(T+".ve",W,V,M):0;S+=T;S+=eZ1(u,L[u],Z,N);if(S>500)break}}else N[Z]=Ys(L),S+=N[Z].length;else N[Z]=Ys(L),S+=N[Z].length;return S};
eZ1=function(L,Z,N,S){N+="."+L;L=Ys(Z);S[N]=L;return N.length+L.length};
Ys=function(L){try{return(typeof L==="string"?L:String(JSON.stringify(L))).substr(0,500)}catch(Z){return"unable to serialize "+typeof L+" ("+Z.message+")"}};
djP=function(L){switch(L){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}};
_.Ie=function(L,Z,N,S,u){_.eZ.set(L,Z,{maxAge:N,path:"/",domain:S===void 0?"youtube.com":S,secure:u===void 0?!1:u})};
_.aWP=function(L,Z,N){_.eZ.remove(L,Z===void 0?"/":Z,N===void 0?"youtube.com":N)};
_.dv=function(){if(_.c("embeds_web_enable_cookie_detection_fix")){if(!_.iH.navigator.cookieEnabled)return!1}else if(!_.eZ.isEnabled())return!1;if(!_.eZ.isEmpty())return!0;_.c("embeds_web_enable_cookie_detection_fix")?_.eZ.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.eZ.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.eZ.get("TESTCOOKIESENABLED")!=="1")return!1;_.eZ.remove("TESTCOOKIESENABLED");return!0};
hZP=function(){var L=_.iH.navigator;return L?L.connection:void 0};
sqf=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(L){}};
_.E6x=function(){var L=hZP();if(L){var Z=jqs[L.type||"unknown"]||"CONN_UNKNOWN";L=jqs[L.effectiveType||"unknown"]||"CONN_UNKNOWN";Z==="CONN_CELLULAR_UNKNOWN"&&L!=="CONN_UNKNOWN"&&(Z=L);if(Z!=="CONN_UNKNOWN")return Z;if(L!=="CONN_UNKNOWN")return L}};
pBH=function(){var L=hZP();if(L!=null&&L.effectiveType)return PBh.hasOwnProperty(L.effectiveType)?PBh[L.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.h3=function(){try{return _.ae(),!0}catch(L){return!1}};
_.ae=function(L){if(_.X7("DATASYNC_ID")!==void 0)return _.X7("DATASYNC_ID");throw new _.sr("Datasync ID not set",L===void 0?"unknown":L);};
_.jZ=function(L){this.mechanism=L};
Er=function(L){this.mechanism=L};
PW=function(L){this.storage_=L;this.cachedIsStorageAvailable_=null};
zZ_=function(){var L=null;try{L=_.iH.localStorage||null}catch(Z){}PW.call(this,L)};
mj1=function(){var L=null;try{L=_.iH.sessionStorage||null}catch(Z){}PW.call(this,L)};
pZ=function(L,Z){this.mechanism_=L;this.JSC$10627_prefix_=Z+"::"};
_.Jqs=function(L){var Z=new zZ_;return Z.isAvailable()?L?new pZ(Z,L):Z:null};
_.CBh=function(L){var Z=new mj1;return Z.isAvailable()?L?new pZ(Z,L):Z:null};
QqA=function(){var L;return(L=rqs())==null?void 0:L.get("LAST_RESULT_ENTRY_KEY",!0)};
_.J3=function(L){XBG||(_.zR?_.zR.logError(L):(_.m5.push({type:"ERROR",payload:L}),_.m5.length>10&&_.m5.shift()))};
CZ=function(L,Z){XBG||(_.zR?_.zR.logEvent(L,Z):(_.m5.push({type:"EVENT",eventType:L,payload:Z}),_.m5.length>10&&_.m5.shift()))};
rv=function(L){if(L.indexOf(":")>=0)throw Error("Sc");};
QZ=function(L){return L.substr(0,L.indexOf(":"))||L};
BRL=function(){return(Aq0||Hqw)&&X2("applewebkit")&&!X2("version")&&(!X2("safari")||X2("gsa/"))};
X2=function(L){var Z=_.vs();return Z?Z.toLowerCase().indexOf(L)>=0:!1};
L3H=function(L,Z,N,S){Z=QZ(Z);var u=L instanceof Error?L:Error("Tc`"+L);if(u instanceof A3)return u;L={objectStoreNames:N,dbName:Z,dbVersion:S};if(u.name==="QuotaExceededError")return new A3("QUOTA_EXCEEDED",L);if(_.HW&&u.name==="UnknownError")return new A3("QUOTA_MAYBE_EXCEEDED",L);if(u instanceof xj_)return new A3("MISSING_INDEX",Object.assign({},L,{objectStore:u.objectStore,index:u.index}));if(u.name==="InvalidStateError"&&qTh.some(function(T){return u.message.includes(T)}))return new A3("EXECUTE_TRANSACTION_ON_CLOSED_DB",
L);
if(u.name==="AbortError")return new A3("UNKNOWN_ABORT",L,u.message);u.args=[Object.assign({},L,{name:"IdbError",originalName:u.name})];u.level="WARNING";return u};
BW=function(L,Z,N){var S=QqA();return new A3("IDB_NOT_SUPPORTED",{context:{caller:L,publicName:Z,version:N,hasSucceededOnce:S==null?void 0:S.hasSucceededOnce}})};
ZkB=function(L){if(!L)throw Error();throw L;};
Nnx=function(L){return L};
S9B=function(L,Z,N){var S=function(){try{L.removeEventListener("success",u),L.removeEventListener("error",T)}catch(W){}},u=function(){Z(L.result);
S()},T=function(){N(L.error);
S()};
L.addEventListener("success",u);L.addEventListener("error",T)};
iks=function(L){return new Promise(function(Z,N){S9B(L,Z,N)})};
LQ=function(L){return new xs(new qu(function(Z,N){S9B(L,Z,N)}))};
u8B=function(L,Z){return new xs(new qu(function(N,S){var u=function(){var T=L?Z(L):null;T?T.then(function(W){L=W;u()},S):N()};
u()}))};
TnL=function(L,Z,N){return new Promise(function(S,u){var T=Z!==void 0?self.indexedDB.open(L,Z):self.indexedDB.open(L);var W=N.blocked,V=N.blocking,M=N.terminated,G=N.upgrade,D=N.closed,l,v=function(){l||(l=new Zk(T.result,{closed:D}));return l};
T.addEventListener("upgradeneeded",function(R){try{if(R.newVersion===null)throw Error("Yc");if(T.transaction===null)throw Error("Zc");R.dataLoss&&R.dataLoss!=="none"&&CZ("IDB_DATA_CORRUPTED",{reason:R.dataLossMessage||"unknown reason",dbName:QZ(L)});var K=v(),U=new NO(T.transaction);G&&G(K,function(d){return R.oldVersion<d&&R.newVersion>=d},U);
U.done.catch(function(d){u(d)})}catch(d){u(d)}});
T.addEventListener("success",function(){var R=T.result;V&&R.addEventListener("versionchange",function(){V(v())});
R.addEventListener("close",function(){CZ("IDB_UNEXPECTEDLY_CLOSED",{dbName:QZ(L),dbVersion:R.version});M&&M()});
S(v())});
T.addEventListener("error",function(){u(T.error)});
W&&T.addEventListener("blocked",function(){W()})})};
tMw=function(L,Z,N){N=N===void 0?{}:N;return TnL(L,Z,N)};
_.ip=function(L,Z){Z=Z===void 0?{}:Z;var N,S,u,T;return _.b(function(W){if(W.nextAddress==1)return _.RS(W,2),N=self.indexedDB.deleteDatabase(L),S=Z,(u=S.blocked)&&N.addEventListener("blocked",function(){u()}),W.yield(iks(N),4);
if(W.nextAddress!=2)return _.SX(W,0);T=_.yd(W);throw L3H(T,L,"",-1);})};
W3s=function(L,Z){var N;return _.b(function(S){if(S.nextAddress==1)return S.yield(_.up(Okf,Z),2);N=S.yieldResult;return S.return(_.TT(N,["databases"],{enableRetries:!0,mode:"readwrite"},function(u){var T=u.objectStore("databases");return T.get(L.actualName).then(function(W){if(W?L.actualName!==W.actualName||L.publicName!==W.publicName||L.userIdentifier!==W.userIdentifier:1)return T.put(L).then(function(){})})}))})};
_.ta=function(L,Z){var N;return _.b(function(S){if(S.nextAddress==1)return L?S.yield(_.up(Okf,Z),2):S.return();N=S.yieldResult;return S.return(N.delete("databases",L))})};
_.VMH=function(L,Z){var N,S;return _.b(function(u){return u.nextAddress==1?(N=[],u.yield(_.up(Okf,Z),2)):u.nextAddress!=3?(S=u.yieldResult,u.yield(_.TT(S,["databases"],{enableRetries:!0,mode:"readonly"},function(T){N.length=0;return O6(T.objectStore("databases"),{},function(W){L(W.getValue())&&N.push(W.getValue());return W.continue()})}),3)):u.return(N)})};
bkx=function(L,Z){return _.VMH(function(N){return N.publicName===L&&N.userIdentifier!==void 0},Z)};
Gaf=function(){var L,Z,N,S;return _.b(function(u){switch(u.nextAddress){case 1:L=QqA();if((Z=L)==null?0:Z.hasSucceededOnce)return u.return(!0);var T;if(T=MMP)T=/WebKit\/([0-9]+)/.exec(_.vs()),T=!!(T&&parseInt(T[1],10)>=600);T&&(T=/WebKit\/([0-9]+)/.exec(_.vs()),T=!(T&&parseInt(T[1],10)>=602));if(T||Wx)return u.return(!1);try{if(N=self,!(N.indexedDB&&N.IDBIndex&&N.IDBKeyRange&&N.IDBObjectStore))return u.return(!1)}catch(W){return u.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return u.return(!1);
_.RS(u,2);S={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return u.yield(W3s(S,gQG),4);case 4:return u.yield(_.ta("yt-idb-test-do-not-use",gQG),5);case 5:return u.return(!0);case 2:return _.yd(u),u.return(!1)}})};
$ef=function(){if(F3B!==void 0)return F3B;XBG=!0;return F3B=Gaf().then(function(L){XBG=!1;var Z;if((Z=rqs())!=null&&Z.hasLocalStorage()){var N;Z={hasSucceededOnce:((N=QqA())==null?void 0:N.hasSucceededOnce)||L};var S;(S=rqs())==null||S.set("LAST_RESULT_ENTRY_KEY",Z,2592E3,!0)}return L})};
VH=function(){return _.LZ("ytglobal.idbToken_")||void 0};
_.MO=function(){var L=VH();return L?Promise.resolve(L):$ef().then(function(Z){(Z=Z?gQG:void 0)&&_.bp("ytglobal.idbToken_",Z);return Z})};
DeB=function(L){if(!_.h3())throw L=new A3("AUTH_INVALID",{dbName:L}),_.J3(L),L;var Z=_.ae();return{actualName:L+":"+Z,publicName:L,userIdentifier:Z}};
lT_=function(L,Z,N,S){var u,T,W,V,M,G;return _.b(function(D){switch(D.nextAddress){case 1:return T=(u=Error().stack)!=null?u:"",D.yield(_.MO(),2);case 2:W=D.yieldResult;if(!W)throw V=BW("openDbImpl",L,Z),_.c("ytidb_async_stack_killswitch")||(V.stack=V.stack+"\n"+T.substring(T.indexOf("\n")+1)),_.J3(V),V;rv(L);M=N?{actualName:L,publicName:L,userIdentifier:void 0}:DeB(L);_.RS(D,3);return D.yield(W3s(M,W),5);case 5:return D.yield(tMw(M.actualName,Z,S),6);case 6:return D.return(D.yieldResult);case 3:return G=
_.yd(D),_.RS(D,7),D.yield(_.ta(M.actualName,W),9);case 9:_.SX(D,8);break;case 7:_.yd(D);case 8:throw G;}})};
vQF=function(L,Z,N){N=N===void 0?{}:N;return lT_(L,Z,!1,N)};
oQt=function(L,Z,N){N=N===void 0?{}:N;return lT_(L,Z,!0,N)};
RRP=function(L,Z){Z=Z===void 0?{}:Z;var N,S;return _.b(function(u){if(u.nextAddress==1)return u.yield(_.MO(),2);if(u.nextAddress!=3){N=u.yieldResult;if(!N)return u.return();rv(L);S=DeB(L);return u.yield(_.ip(S.actualName,Z),3)}return u.yield(_.ta(S.actualName,N),0)})};
cNB=function(L,Z,N){L=L.map(function(S){return _.b(function(u){return u.nextAddress==1?u.yield(_.ip(S.actualName,Z),2):u.yield(_.ta(S.actualName,N),0)})});
return Promise.all(L).then(function(){})};
nQG=function(L){var Z=Z===void 0?{}:Z;var N,S;return _.b(function(u){if(u.nextAddress==1)return u.yield(_.MO(),2);if(u.nextAddress!=3){N=u.yieldResult;if(!N)return u.return();rv(L);return u.yield(bkx(L,N),3)}S=u.yieldResult;return u.yield(cNB(S,Z,N),0)})};
K3f=function(L,Z){Z=Z===void 0?{}:Z;var N;return _.b(function(S){if(S.nextAddress==1)return S.yield(_.MO(),2);if(S.nextAddress!=3){N=S.yieldResult;if(!N)return S.return();rv(L);return S.yield(_.ip(L,Z),3)}return S.yield(_.ta(L,N),0)})};
go=function(L,Z){return fT1(L,Z)};
yNf=function(L){return _.up(kax(),L)};
wvw=function(L,Z,N,S){var u,T,W;return _.b(function(V){switch(V.nextAddress){case 1:return u={config:L,hashData:Z,timestamp:S!==void 0?S:(0,_.GT)()},V.yield(yNf(N),2);case 2:return T=V.yieldResult,V.yield(T.clear("hotConfigStore"),3);case 3:return V.yield(T.put("hotConfigStore",u),4);case 4:return W=V.yieldResult,V.return(W)}})};
Ue_=function(L,Z,N,S,u){var T,W,V;return _.b(function(M){switch(M.nextAddress){case 1:return T={config:L,hashData:Z,configData:N,timestamp:u!==void 0?u:(0,_.GT)()},M.yield(yNf(S),2);case 2:return W=M.yieldResult,M.yield(W.clear("coldConfigStore"),3);case 3:return M.yield(W.put("coldConfigStore",T),4);case 4:return V=M.yieldResult,M.return(V)}})};
Y9h=function(L){var Z,N;return _.b(function(S){return S.nextAddress==1?S.yield(yNf(L),2):S.nextAddress!=3?(Z=S.yieldResult,N=void 0,S.yield(_.TT(Z,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(u){return _.FW(u.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(T){N=T.getValue()})}),3)):S.return(N)})};
eRs=function(L){var Z,N;return _.b(function(S){return S.nextAddress==1?S.yield(yNf(L),2):S.nextAddress!=3?(Z=S.yieldResult,N=void 0,S.yield(_.TT(Z,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(u){return _.FW(u.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(T){N=T.getValue()})}),3)):S.return(N)})};
IT1=function(){return _.b(function(L){return L.yield(nQG("ytGcfConfig"),0)})};
deH=function(){return"INNERTUBE_API_KEY"in _.rj&&"INNERTUBE_API_VERSION"in _.rj};
_.Dk=function(){return{innertubeApiKey:_.X7("INNERTUBE_API_KEY"),innertubeApiVersion:_.X7("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.X7("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.X7("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.X7("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.X7("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.X7("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.X7("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.X7("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Ah("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Ah("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.X7("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.pvL=function(L){var Z={client:{hl:L.innertubeContextHostLanguage,gl:L.innertubeContextGeoLocation,clientName:L.innertubeContextClientName,clientVersion:L.innertubeContextClientVersion,configInfo:L.innertubeContextClientConfigInfo}};navigator.userAgent&&(Z.client.userAgent=String(navigator.userAgent));var N=_.iH.devicePixelRatio;N&&N!=1&&(Z.client.screenDensityFloat=String(N));N=STP();N!==""&&(Z.client.experimentsToken=N);N=iq1();N.length>0&&(Z.request={internalExperimentFlags:N});aTt(L,void 0,Z);
hR_(void 0,Z);siP(void 0,Z);jif(L,void 0,Z);EQA(void 0,Z);_.c("start_client_gcf")&&P21(void 0,Z);_.X7("DELEGATED_SESSION_ID")&&!_.c("pageid_as_header_web")&&(Z.user={onBehalfOfUser:_.X7("DELEGATED_SESSION_ID")});!_.c("fill_delegate_context_in_gel_killswitch")&&(L=_.X7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Z.user=Object.assign({},Z.user,{serializedDelegationContext:L}));L=_.X7("INNERTUBE_CONTEXT");var S;if(_.c("enable_persistent_device_token")&&(L==null?0:(S=L.client)==null?0:S.rolloutToken)){var u;
Z.client.rolloutToken=L==null?void 0:(u=L.client)==null?void 0:u.rolloutToken}S=Object;u=S.assign;L=Z.client;N={};for(var T=_.O(Object.entries(_.iQ(_.X7("DEVICE","")))),W=T.next();!W.done;W=T.next()){var V=_.O(W.value);W=V.next().value;V=V.next().value;W==="cbrand"?N.deviceMake=V:W==="cmodel"?N.deviceModel=V:W==="cbr"?N.browserName=V:W==="cbrver"?N.browserVersion=V:W==="cos"?N.osName=V:W==="cosver"?N.osVersion=V:W==="cplatform"&&(N.platform=V)}Z.client=u.call(S,L,N);return Z};
aTt=function(L,Z,N){L=L.innertubeContextClientName;if(L==="WEB"||L==="MWEB"||L===1||L===2)if(Z){N=_.lp(Z,zRt,96)||new zRt;var S=mef();S=Object.keys(JNH).indexOf(S);S=S===-1?null:S;S!==null&&_.vx(N,3,S);_.fG(Z,96,N)}else N&&(N.client.mainAppWebInfo=(S=N.client.mainAppWebInfo)!=null?S:{},N.client.mainAppWebInfo.webDisplayMode=mef())};
hR_=function(L,Z){var N=_.LZ("yt.embedded_player.embed_url");N&&(L?(Z=_.lp(L,C20,7)||new C20,_.dF(Z,4,N),_.fG(L,7,Z)):Z&&(Z.thirdParty={embedUrl:N}))};
siP=function(L,Z){var N;if(_.c("web_log_memory_total_kbytes")&&((N=_.iH.navigator)==null?0:N.deviceMemory)){var S;N=(S=_.iH.navigator)==null?void 0:S.deviceMemory;L?_.oZ(L,95,Gg(N*1E6)):Z&&(Z.client.memoryTotalKbytes=""+N*1E6)}};
jif=function(L,Z,N){if(L.appInstallData)if(Z){var S;N=(S=_.lp(Z,RZ,62))!=null?S:new RZ;_.dF(N,6,L.appInstallData);_.fG(Z,62,N)}else N&&(N.client.configInfo=N.client.configInfo||{},N.client.configInfo.appInstallData=L.appInstallData)};
EQA=function(L,Z){var N=_.E6x();N&&(L?_.vx(L,61,rNH[N]):Z&&(Z.client.connectionType=N));_.c("web_log_effective_connection_type")&&(N=pBH())&&(L?_.vx(L,94,Qit[N]):Z&&(Z.client.effectiveConnectionType=N))};
_.HkF=function(L,Z,N){N=N===void 0?{}:N;var S={};_.X7("EOM_VISITOR_DATA")?S={"X-Goog-EOM-Visitor-Id":_.X7("EOM_VISITOR_DATA")}:S={"X-Goog-Visitor-Id":N.visitorData||_.X7("VISITOR_DATA","")};if(Z&&Z.includes("www.youtube-nocookie.com"))return S;Z=N.authorization||_.X7("AUTHORIZATION");Z||(L?Z="Bearer "+_.LZ("gapi.auth.getToken")().access_token:(XvA.instance||(XvA.instance=new XvA),L=ANF(),_.c("pageid_as_header_web")||delete L["X-Goog-PageId"],S=Object.assign({},S,L)));Z&&(S.Authorization=Z);return S};
P21=function(L,Z){var N=Bnt();if(N){var S=N.coldConfigData,u=N.coldHashData;N=N.hotHashData;if(L){var T;Z=(T=_.lp(L,RZ,62))!=null?T:new RZ;S=_.dF(Z,1,S);_.dF(S,3,u).setHotHashData(N);_.fG(L,62,Z)}else Z&&(Z.client.configInfo=Z.client.configInfo||{},S&&(Z.client.configInfo.coldConfigData=S),u&&(Z.client.configInfo.coldHashData=u),N&&(Z.client.configInfo.hotHashData=N))}};
cx=function(L){for(var Z=L.length;--Z>=0;)L[Z]=0};
xeP=function(L,Z,N,S,u){this.static_tree=L;this.extra_bits=Z;this.extra_base=N;this.elems=S;this.max_length=u;this.has_stree=L&&L.length};
q90=function(L,Z){this.dyn_tree=L;this.max_code=0;this.stat_desc=Z};
nQ=function(L,Z){L.pending_buf[L.pending++]=Z&255;L.pending_buf[L.pending++]=Z>>>8&255};
KQ=function(L,Z,N){L.bi_valid>16-N?(L.bi_buf|=Z<<L.bi_valid&65535,nQ(L,L.bi_buf),L.bi_buf=Z>>16-L.bi_valid,L.bi_valid+=N-16):(L.bi_buf|=Z<<L.bi_valid&65535,L.bi_valid+=N)};
fQ=function(L,Z,N){KQ(L,N[Z*2],N[Z*2+1])};
Llt=function(L,Z){var N=0;do N|=L&1,L>>>=1,N<<=1;while(--Z>0);return N>>>1};
ZXw=function(L,Z,N){var S=Array(16),u=0,T;for(T=1;T<=15;T++)S[T]=u=u+N[T-1]<<1;for(N=0;N<=Z;N++)u=L[N*2+1],u!==0&&(L[N*2]=Llt(S[u]++,u))};
Nrw=function(L){var Z;for(Z=0;Z<286;Z++)L.dyn_ltree[Z*2]=0;for(Z=0;Z<30;Z++)L.dyn_dtree[Z*2]=0;for(Z=0;Z<19;Z++)L.bl_tree[Z*2]=0;L.dyn_ltree[512]=1;L.opt_len=L.static_len=0;L.last_lit=L.matches=0};
SxL=function(L){L.bi_valid>8?nQ(L,L.bi_buf):L.bi_valid>0&&(L.pending_buf[L.pending++]=L.bi_buf);L.bi_buf=0;L.bi_valid=0};
iXh=function(L,Z,N){SxL(L);nQ(L,N);nQ(L,~N);kj.arraySet(L.pending_buf,L.window,Z,N,L.pending);L.pending+=N};
uBx=function(L,Z,N,S){var u=Z*2,T=N*2;return L[u]<L[T]||L[u]===L[T]&&S[Z]<=S[N]};
TrG=function(L,Z,N){for(var S=L.heap[N],u=N<<1;u<=L.heap_len;){u<L.heap_len&&uBx(Z,L.heap[u+1],L.heap[u],L.depth)&&u++;if(uBx(Z,S,L.heap[u],L.depth))break;L.heap[N]=L.heap[u];N=u;u<<=1}L.heap[N]=S};
bX1=function(L,Z,N){var S=0;if(L.last_lit!==0){do{var u=L.pending_buf[L.d_buf+S*2]<<8|L.pending_buf[L.d_buf+S*2+1];var T=L.pending_buf[L.l_buf+S];S++;if(u===0)fQ(L,T,Z);else{var W=yH[T];fQ(L,W+256+1,Z);var V=tDA[W];V!==0&&(T-=OXt[W],KQ(L,T,V));u--;W=u<256?wo[u]:wo[256+(u>>>7)];fQ(L,W,N);V=Wl1[W];V!==0&&(u-=VDA[W],KQ(L,u,V))}}while(S<L.last_lit)}fQ(L,256,Z)};
MD_=function(L,Z){var N=Z.dyn_tree,S=Z.stat_desc.static_tree,u=Z.stat_desc.has_stree,T=Z.stat_desc.elems,W,V=-1;L.heap_len=0;L.heap_max=573;for(W=0;W<T;W++)N[W*2]!==0?(L.heap[++L.heap_len]=V=W,L.depth[W]=0):N[W*2+1]=0;for(;L.heap_len<2;){var M=L.heap[++L.heap_len]=V<2?++V:0;N[M*2]=1;L.depth[M]=0;L.opt_len--;u&&(L.static_len-=S[M*2+1])}Z.max_code=V;for(W=L.heap_len>>1;W>=1;W--)TrG(L,N,W);M=T;do W=L.heap[1],L.heap[1]=L.heap[L.heap_len--],TrG(L,N,1),S=L.heap[1],L.heap[--L.heap_max]=W,L.heap[--L.heap_max]=
S,N[M*2]=N[W*2]+N[S*2],L.depth[M]=(L.depth[W]>=L.depth[S]?L.depth[W]:L.depth[S])+1,N[W*2+1]=N[S*2+1]=M,L.heap[1]=M++,TrG(L,N,1);while(L.heap_len>=2);L.heap[--L.heap_max]=L.heap[1];W=Z.dyn_tree;M=Z.max_code;S=Z.stat_desc.static_tree;u=Z.stat_desc.has_stree;T=Z.stat_desc.extra_bits;var G=Z.stat_desc.extra_base,D=Z.stat_desc.max_length,l,v=0;for(l=0;l<=15;l++)L.bl_count[l]=0;W[L.heap[L.heap_max]*2+1]=0;for(Z=L.heap_max+1;Z<573;Z++){var R=L.heap[Z];l=W[W[R*2+1]*2+1]+1;l>D&&(l=D,v++);W[R*2+1]=l;if(!(R>
M)){L.bl_count[l]++;var K=0;R>=G&&(K=T[R-G]);var U=W[R*2];L.opt_len+=U*(l+K);u&&(L.static_len+=U*(S[R*2+1]+K))}}if(v!==0){do{for(l=D-1;L.bl_count[l]===0;)l--;L.bl_count[l]--;L.bl_count[l+1]+=2;L.bl_count[D]--;v-=2}while(v>0);for(l=D;l!==0;l--)for(R=L.bl_count[l];R!==0;)S=L.heap[--Z],S>M||(W[S*2+1]!==l&&(L.opt_len+=(l-W[S*2+1])*W[S*2],W[S*2+1]=l),R--)}ZXw(N,V,L.bl_count)};
gew=function(L,Z,N){var S,u=-1,T=Z[1],W=0,V=7,M=4;T===0&&(V=138,M=3);Z[(N+1)*2+1]=65535;for(S=0;S<=N;S++){var G=T;T=Z[(S+1)*2+1];++W<V&&G===T||(W<M?L.bl_tree[G*2]+=W:G!==0?(G!==u&&L.bl_tree[G*2]++,L.bl_tree[32]++):W<=10?L.bl_tree[34]++:L.bl_tree[36]++,W=0,u=G,T===0?(V=138,M=3):G===T?(V=6,M=3):(V=7,M=4))}};
G7f=function(L,Z,N){var S,u=-1,T=Z[1],W=0,V=7,M=4;T===0&&(V=138,M=3);for(S=0;S<=N;S++){var G=T;T=Z[(S+1)*2+1];if(!(++W<V&&G===T)){if(W<M){do fQ(L,G,L.bl_tree);while(--W!==0)}else G!==0?(G!==u&&(fQ(L,G,L.bl_tree),W--),fQ(L,16,L.bl_tree),KQ(L,W-3,2)):W<=10?(fQ(L,17,L.bl_tree),KQ(L,W-3,3)):(fQ(L,18,L.bl_tree),KQ(L,W-11,7));W=0;u=G;T===0?(V=138,M=3):G===T?(V=6,M=3):(V=7,M=4)}}};
FlH=function(L){var Z=4093624447,N;for(N=0;N<=31;N++,Z>>>=1)if(Z&1&&L.dyn_ltree[N*2]!==0)return 0;if(L.dyn_ltree[18]!==0||L.dyn_ltree[20]!==0||L.dyn_ltree[26]!==0)return 1;for(N=32;N<256;N++)if(L.dyn_ltree[N*2]!==0)return 1;return 0};
U6=function(L,Z,N){L.pending_buf[L.d_buf+L.last_lit*2]=Z>>>8&255;L.pending_buf[L.d_buf+L.last_lit*2+1]=Z&255;L.pending_buf[L.l_buf+L.last_lit]=N&255;L.last_lit++;Z===0?L.dyn_ltree[N*2]++:(L.matches++,Z--,L.dyn_ltree[(yH[N]+256+1)*2]++,L.dyn_dtree[(Z<256?wo[Z]:wo[256+(Z>>>7)])*2]++);return L.last_lit===L.lit_bufsize-1};
eX=function(L,Z){L.msg=Yj[Z];return Z};
IZ=function(L){for(var Z=L.length;--Z>=0;)L[Z]=0};
aZ=function(L){var Z=L.state,N=Z.pending;N>L.avail_out&&(N=L.avail_out);N!==0&&(kj.arraySet(L.output,Z.pending_buf,Z.pending_out,N,L.next_out),L.next_out+=N,Z.pending_out+=N,L.total_out+=N,L.avail_out-=N,Z.pending-=N,Z.pending===0&&(Z.pending_out=0))};
jX=function(L,Z){var N=L.block_start>=0?L.block_start:-1,S=L.strstart-L.block_start,u=0;if(L.level>0){L.strm.data_type===2&&(L.strm.data_type=FlH(L));MD_(L,L.l_desc);MD_(L,L.d_desc);gew(L,L.dyn_ltree,L.l_desc.max_code);gew(L,L.dyn_dtree,L.d_desc.max_code);MD_(L,L.bl_desc);for(u=18;u>=3&&L.bl_tree[$Jx[u]*2+1]===0;u--);L.opt_len+=3*(u+1)+5+5+4;var T=L.opt_len+3+7>>>3;var W=L.static_len+3+7>>>3;W<=T&&(T=W)}else T=W=S+5;if(S+4<=T&&N!==-1)KQ(L,Z?1:0,3),iXh(L,N,S);else if(L.strategy===4||W===T)KQ(L,2+(Z?
1:0),3),bX1(L,ha,s6);else{KQ(L,4+(Z?1:0),3);N=L.l_desc.max_code+1;S=L.d_desc.max_code+1;u+=1;KQ(L,N-257,5);KQ(L,S-1,5);KQ(L,u-4,4);for(T=0;T<u;T++)KQ(L,L.bl_tree[$Jx[T]*2+1],3);G7f(L,L.dyn_ltree,N-1);G7f(L,L.dyn_dtree,S-1);bX1(L,L.dyn_ltree,L.dyn_dtree)}Nrw(L);Z&&SxL(L);L.block_start=L.strstart;aZ(L.strm)};
E6=function(L,Z){L.pending_buf[L.pending++]=Z};
Px=function(L,Z){L.pending_buf[L.pending++]=Z>>>8&255;L.pending_buf[L.pending++]=Z&255};
DJG=function(L,Z){var N=L.max_chain_length,S=L.strstart,u=L.prev_length,T=L.nice_match,W=L.strstart>L.w_size-262?L.strstart-(L.w_size-262):0,V=L.window,M=L.w_mask,G=L.prev,D=L.strstart+258,l=V[S+u-1],v=V[S+u];L.prev_length>=L.good_match&&(N>>=2);T>L.lookahead&&(T=L.lookahead);do{var R=Z;if(V[R+u]===v&&V[R+u-1]===l&&V[R]===V[S]&&V[++R]===V[S+1]){S+=2;for(R++;V[++S]===V[++R]&&V[++S]===V[++R]&&V[++S]===V[++R]&&V[++S]===V[++R]&&V[++S]===V[++R]&&V[++S]===V[++R]&&V[++S]===V[++R]&&V[++S]===V[++R]&&S<D;);
R=258-(D-S);S=D-258;if(R>u){L.match_start=Z;u=R;if(R>=T)break;l=V[S+u-1];v=V[S+u]}}}while((Z=G[Z&M])>W&&--N!==0);return u<=L.lookahead?u:L.lookahead};
zT=function(L){var Z=L.w_size,N;do{var S=L.window_size-L.lookahead-L.strstart;if(L.strstart>=Z+(Z-262)){kj.arraySet(L.window,L.window,Z,Z,0);L.match_start-=Z;L.strstart-=Z;L.block_start-=Z;var u=N=L.hash_size;do{var T=L.head[--u];L.head[u]=T>=Z?T-Z:0}while(--N);u=N=Z;do T=L.prev[--u],L.prev[u]=T>=Z?T-Z:0;while(--N);S+=Z}if(L.strm.avail_in===0)break;u=L.strm;N=L.window;T=L.strstart+L.lookahead;var W=u.avail_in;W>S&&(W=S);W===0?N=0:(u.avail_in-=W,kj.arraySet(N,u.input,u.next_in,W,T),u.state.wrap===
1?u.adler=lCf(u.adler,N,W,T):u.state.wrap===2&&(u.adler=pQ(u.adler,N,W,T)),u.next_in+=W,u.total_in+=W,N=W);L.lookahead+=N;if(L.lookahead+L.insert>=3)for(S=L.strstart-L.insert,L.ins_h=L.window[S],L.ins_h=(L.ins_h<<L.hash_shift^L.window[S+1])&L.hash_mask;L.insert&&!(L.ins_h=(L.ins_h<<L.hash_shift^L.window[S+3-1])&L.hash_mask,L.prev[S&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=S,S++,L.insert--,L.lookahead+L.insert<3););}while(L.lookahead<262&&L.strm.avail_in!==0)};
veL=function(L,Z){for(var N;;){if(L.lookahead<262){zT(L);if(L.lookahead<262&&Z===0)return 1;if(L.lookahead===0)break}N=0;L.lookahead>=3&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+3-1])&L.hash_mask,N=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart);N!==0&&L.strstart-N<=L.w_size-262&&(L.match_length=DJG(L,N));if(L.match_length>=3)if(N=U6(L,L.strstart-L.match_start,L.match_length-3),L.lookahead-=L.match_length,L.match_length<=L.max_lazy_match&&L.lookahead>=3){L.match_length--;
do L.strstart++,L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+3-1])&L.hash_mask,L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart;while(--L.match_length!==0);L.strstart++}else L.strstart+=L.match_length,L.match_length=0,L.ins_h=L.window[L.strstart],L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+1])&L.hash_mask;else N=U6(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++;if(N&&(jX(L,!1),L.strm.avail_out===0))return 1}L.insert=L.strstart<2?L.strstart:2;return Z===4?(jX(L,
!0),L.strm.avail_out===0?3:4):L.last_lit&&(jX(L,!1),L.strm.avail_out===0)?1:2};
mz=function(L,Z){for(var N,S;;){if(L.lookahead<262){zT(L);if(L.lookahead<262&&Z===0)return 1;if(L.lookahead===0)break}N=0;L.lookahead>=3&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+3-1])&L.hash_mask,N=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart);L.prev_length=L.match_length;L.prev_match=L.match_start;L.match_length=2;N!==0&&L.prev_length<L.max_lazy_match&&L.strstart-N<=L.w_size-262&&(L.match_length=DJG(L,N),L.match_length<=5&&(L.strategy===1||L.match_length===3&&
L.strstart-L.match_start>4096)&&(L.match_length=2));if(L.prev_length>=3&&L.match_length<=L.prev_length){S=L.strstart+L.lookahead-3;N=U6(L,L.strstart-1-L.prev_match,L.prev_length-3);L.lookahead-=L.prev_length-1;L.prev_length-=2;do++L.strstart<=S&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+3-1])&L.hash_mask,L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart);while(--L.prev_length!==0);L.match_available=0;L.match_length=2;L.strstart++;if(N&&(jX(L,!1),L.strm.avail_out===0))return 1}else if(L.match_available){if((N=
U6(L,0,L.window[L.strstart-1]))&&jX(L,!1),L.strstart++,L.lookahead--,L.strm.avail_out===0)return 1}else L.match_available=1,L.strstart++,L.lookahead--}L.match_available&&(U6(L,0,L.window[L.strstart-1]),L.match_available=0);L.insert=L.strstart<2?L.strstart:2;return Z===4?(jX(L,!0),L.strm.avail_out===0?3:4):L.last_lit&&(jX(L,!1),L.strm.avail_out===0)?1:2};
oe1=function(L,Z){for(var N,S,u,T=L.window;;){if(L.lookahead<=258){zT(L);if(L.lookahead<=258&&Z===0)return 1;if(L.lookahead===0)break}L.match_length=0;if(L.lookahead>=3&&L.strstart>0&&(S=L.strstart-1,N=T[S],N===T[++S]&&N===T[++S]&&N===T[++S])){for(u=L.strstart+258;N===T[++S]&&N===T[++S]&&N===T[++S]&&N===T[++S]&&N===T[++S]&&N===T[++S]&&N===T[++S]&&N===T[++S]&&S<u;);L.match_length=258-(u-S);L.match_length>L.lookahead&&(L.match_length=L.lookahead)}L.match_length>=3?(N=U6(L,1,L.match_length-3),L.lookahead-=
L.match_length,L.strstart+=L.match_length,L.match_length=0):(N=U6(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++);if(N&&(jX(L,!1),L.strm.avail_out===0))return 1}L.insert=0;return Z===4?(jX(L,!0),L.strm.avail_out===0?3:4):L.last_lit&&(jX(L,!1),L.strm.avail_out===0)?1:2};
R3B=function(L,Z){for(var N;;){if(L.lookahead===0&&(zT(L),L.lookahead===0)){if(Z===0)return 1;break}L.match_length=0;N=U6(L,0,L.window[L.strstart]);L.lookahead--;L.strstart++;if(N&&(jX(L,!1),L.strm.avail_out===0))return 1}L.insert=0;return Z===4?(jX(L,!0),L.strm.avail_out===0?3:4):L.last_lit&&(jX(L,!1),L.strm.avail_out===0)?1:2};
Ja=function(L,Z,N,S,u){this.good_length=L;this.max_lazy=Z;this.nice_length=N;this.max_chain=S;this.func=u};
czH=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 kj.Buf16(1146);this.dyn_dtree=new kj.Buf16(122);this.bl_tree=new kj.Buf16(78);IZ(this.dyn_ltree);IZ(this.dyn_dtree);IZ(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new kj.Buf16(16);this.heap=new kj.Buf16(573);IZ(this.heap);this.heap_max=this.heap_len=0;this.depth=new kj.Buf16(573);IZ(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};
neh=function(L,Z){if(!L||!L.state||Z>5||Z<0)return L?eX(L,-2):-2;var N=L.state;if(!L.output||!L.input&&L.avail_in!==0||N.status===666&&Z!==4)return eX(L,L.avail_out===0?-5:-2);N.strm=L;var S=N.last_flush;N.last_flush=Z;if(N.status===42)if(N.wrap===2)L.adler=0,E6(N,31),E6(N,139),E6(N,8),N.gzhead?(E6(N,(N.gzhead.text?1:0)+(N.gzhead.hcrc?2:0)+(N.gzhead.extra?4:0)+(N.gzhead.name?8:0)+(N.gzhead.comment?16:0)),E6(N,N.gzhead.time&255),E6(N,N.gzhead.time>>8&255),E6(N,N.gzhead.time>>16&255),E6(N,N.gzhead.time>>
24&255),E6(N,N.level===9?2:N.strategy>=2||N.level<2?4:0),E6(N,N.gzhead.os&255),N.gzhead.extra&&N.gzhead.extra.length&&(E6(N,N.gzhead.extra.length&255),E6(N,N.gzhead.extra.length>>8&255)),N.gzhead.hcrc&&(L.adler=pQ(L.adler,N.pending_buf,N.pending,0)),N.gzindex=0,N.status=69):(E6(N,0),E6(N,0),E6(N,0),E6(N,0),E6(N,0),E6(N,N.level===9?2:N.strategy>=2||N.level<2?4:0),E6(N,3),N.status=113);else{var u=8+(N.w_bits-8<<4)<<8;u|=(N.strategy>=2||N.level<2?0:N.level<6?1:N.level===6?2:3)<<6;N.strstart!==0&&(u|=
32);N.status=113;Px(N,u+(31-u%31));N.strstart!==0&&(Px(N,L.adler>>>16),Px(N,L.adler&65535));L.adler=1}if(N.status===69)if(N.gzhead.extra){for(u=N.pending;N.gzindex<(N.gzhead.extra.length&65535)&&(N.pending!==N.pending_buf_size||(N.gzhead.hcrc&&N.pending>u&&(L.adler=pQ(L.adler,N.pending_buf,N.pending-u,u)),aZ(L),u=N.pending,N.pending!==N.pending_buf_size));)E6(N,N.gzhead.extra[N.gzindex]&255),N.gzindex++;N.gzhead.hcrc&&N.pending>u&&(L.adler=pQ(L.adler,N.pending_buf,N.pending-u,u));N.gzindex===N.gzhead.extra.length&&
(N.gzindex=0,N.status=73)}else N.status=73;if(N.status===73)if(N.gzhead.name){u=N.pending;do{if(N.pending===N.pending_buf_size&&(N.gzhead.hcrc&&N.pending>u&&(L.adler=pQ(L.adler,N.pending_buf,N.pending-u,u)),aZ(L),u=N.pending,N.pending===N.pending_buf_size)){var T=1;break}T=N.gzindex<N.gzhead.name.length?N.gzhead.name.charCodeAt(N.gzindex++)&255:0;E6(N,T)}while(T!==0);N.gzhead.hcrc&&N.pending>u&&(L.adler=pQ(L.adler,N.pending_buf,N.pending-u,u));T===0&&(N.gzindex=0,N.status=91)}else N.status=91;if(N.status===
91)if(N.gzhead.comment){u=N.pending;do{if(N.pending===N.pending_buf_size&&(N.gzhead.hcrc&&N.pending>u&&(L.adler=pQ(L.adler,N.pending_buf,N.pending-u,u)),aZ(L),u=N.pending,N.pending===N.pending_buf_size)){T=1;break}T=N.gzindex<N.gzhead.comment.length?N.gzhead.comment.charCodeAt(N.gzindex++)&255:0;E6(N,T)}while(T!==0);N.gzhead.hcrc&&N.pending>u&&(L.adler=pQ(L.adler,N.pending_buf,N.pending-u,u));T===0&&(N.status=103)}else N.status=103;N.status===103&&(N.gzhead.hcrc?(N.pending+2>N.pending_buf_size&&aZ(L),
N.pending+2<=N.pending_buf_size&&(E6(N,L.adler&255),E6(N,L.adler>>8&255),L.adler=0,N.status=113)):N.status=113);if(N.pending!==0){if(aZ(L),L.avail_out===0)return N.last_flush=-1,0}else if(L.avail_in===0&&(Z<<1)-(Z>4?9:0)<=(S<<1)-(S>4?9:0)&&Z!==4)return eX(L,-5);if(N.status===666&&L.avail_in!==0)return eX(L,-5);if(L.avail_in!==0||N.lookahead!==0||Z!==0&&N.status!==666){S=N.strategy===2?R3B(N,Z):N.strategy===3?oe1(N,Z):CQ[N.level].func(N,Z);if(S===3||S===4)N.status=666;if(S===1||S===3)return L.avail_out===
0&&(N.last_flush=-1),0;if(S===2&&(Z===1?(KQ(N,2,3),fQ(N,256,ha),N.bi_valid===16?(nQ(N,N.bi_buf),N.bi_buf=0,N.bi_valid=0):N.bi_valid>=8&&(N.pending_buf[N.pending++]=N.bi_buf&255,N.bi_buf>>=8,N.bi_valid-=8)):Z!==5&&(KQ(N,0,3),iXh(N,0,0),Z===3&&(IZ(N.head),N.lookahead===0&&(N.strstart=0,N.block_start=0,N.insert=0))),aZ(L),L.avail_out===0))return N.last_flush=-1,0}if(Z!==4)return 0;if(N.wrap<=0)return 1;N.wrap===2?(E6(N,L.adler&255),E6(N,L.adler>>8&255),E6(N,L.adler>>16&255),E6(N,L.adler>>24&255),E6(N,
L.total_in&255),E6(N,L.total_in>>8&255),E6(N,L.total_in>>16&255),E6(N,L.total_in>>24&255)):(Px(N,L.adler>>>16),Px(N,L.adler&65535));aZ(L);N.wrap>0&&(N.wrap=-N.wrap);return N.pending!==0?0:1};
Klx=function(L){if(!(this instanceof Klx))return new Klx(L);L=this.options=kj.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},L||{});L.raw&&L.windowBits>0?L.windowBits=-L.windowBits:L.gzip&&L.windowBits>0&&L.windowBits<16&&(L.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new fCG;this.strm.avail_out=0;var Z=this.strm;var N=L.level,S=L.method,u=L.windowBits,T=L.memLevel,W=L.strategy;if(Z){var V=1;N===-1&&(N=6);u<0?(V=0,u=-u):u>15&&
(V=2,u-=16);if(T<1||T>9||S!==8||u<8||u>15||N<0||N>9||W<0||W>4)Z=eX(Z,-2);else{u===8&&(u=9);var M=new czH;Z.state=M;M.strm=Z;M.wrap=V;M.gzhead=null;M.w_bits=u;M.w_size=1<<M.w_bits;M.w_mask=M.w_size-1;M.hash_bits=T+7;M.hash_size=1<<M.hash_bits;M.hash_mask=M.hash_size-1;M.hash_shift=~~((M.hash_bits+3-1)/3);M.window=new kj.Buf8(M.w_size*2);M.head=new kj.Buf16(M.hash_size);M.prev=new kj.Buf16(M.w_size);M.lit_bufsize=1<<T+6;M.pending_buf_size=M.lit_bufsize*4;M.pending_buf=new kj.Buf8(M.pending_buf_size);
M.d_buf=M.lit_bufsize;M.l_buf=3*M.lit_bufsize;M.level=N;M.strategy=W;M.method=S;if(Z&&Z.state){Z.total_in=Z.total_out=0;Z.data_type=2;N=Z.state;N.pending=0;N.pending_out=0;N.wrap<0&&(N.wrap=-N.wrap);N.status=N.wrap?42:113;Z.adler=N.wrap===2?0:1;N.last_flush=0;if(!k7P){S=Array(16);for(T=W=0;T<28;T++)for(OXt[T]=W,u=0;u<1<<tDA[T];u++)yH[W++]=T;yH[W-1]=T;for(T=W=0;T<16;T++)for(VDA[T]=W,u=0;u<1<<Wl1[T];u++)wo[W++]=T;for(W>>=7;T<30;T++)for(VDA[T]=W<<7,u=0;u<1<<Wl1[T]-7;u++)wo[256+W++]=T;for(u=0;u<=15;u++)S[u]=
0;for(u=0;u<=143;)ha[u*2+1]=8,u++,S[8]++;for(;u<=255;)ha[u*2+1]=9,u++,S[9]++;for(;u<=279;)ha[u*2+1]=7,u++,S[7]++;for(;u<=287;)ha[u*2+1]=8,u++,S[8]++;ZXw(ha,287,S);for(u=0;u<30;u++)s6[u*2+1]=5,s6[u*2]=Llt(u,5);yzB=new xeP(ha,tDA,257,286,15);wqH=new xeP(s6,Wl1,0,30,15);UJL=new xeP([],YxP,0,19,7);k7P=!0}N.l_desc=new q90(N.dyn_ltree,yzB);N.d_desc=new q90(N.dyn_dtree,wqH);N.bl_desc=new q90(N.bl_tree,UJL);N.bi_buf=0;N.bi_valid=0;Nrw(N);N=0}else N=eX(Z,-2);N===0&&(Z=Z.state,Z.window_size=2*Z.w_size,IZ(Z.head),
Z.max_lazy_match=CQ[Z.level].max_lazy,Z.good_match=CQ[Z.level].good_length,Z.nice_match=CQ[Z.level].nice_length,Z.max_chain_length=CQ[Z.level].max_chain,Z.strstart=0,Z.block_start=0,Z.lookahead=0,Z.insert=0,Z.match_length=Z.prev_length=2,Z.match_available=0,Z.ins_h=0);Z=N}}else Z=-2;if(Z!==0)throw Error(Yj[Z]);L.header&&(Z=this.strm)&&Z.state&&Z.state.wrap===2&&(Z.state.gzhead=L.header);if(L.dictionary){var G;typeof L.dictionary==="string"?G=e3P(L.dictionary):ICw.call(L.dictionary)==="[object ArrayBuffer]"?
G=new Uint8Array(L.dictionary):G=L.dictionary;L=this.strm;T=G;W=T.length;if(L&&L.state)if(G=L.state,Z=G.wrap,Z===2||Z===1&&G.status!==42||G.lookahead)Z=-2;else{Z===1&&(L.adler=lCf(L.adler,T,W,0));G.wrap=0;W>=G.w_size&&(Z===0&&(IZ(G.head),G.strstart=0,G.block_start=0,G.insert=0),N=new kj.Buf8(G.w_size),kj.arraySet(N,T,W-G.w_size,G.w_size,0),T=N,W=G.w_size);N=L.avail_in;S=L.next_in;u=L.input;L.avail_in=W;L.next_in=0;L.input=T;for(zT(G);G.lookahead>=3;){T=G.strstart;W=G.lookahead-2;do G.ins_h=(G.ins_h<<
G.hash_shift^G.window[T+3-1])&G.hash_mask,G.prev[T&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=T,T++;while(--W);G.strstart=T;G.lookahead=2;zT(G)}G.strstart+=G.lookahead;G.block_start=G.strstart;G.insert=G.lookahead;G.lookahead=0;G.match_length=G.prev_length=2;G.match_available=0;L.next_in=S;L.input=u;L.avail_in=N;G.wrap=Z;Z=0}else Z=-2;if(Z!==0)throw Error(Yj[Z]);this._dict_set=!0}};
dJf=function(L,Z){Z=Z||{};Z.gzip=!0;Z=new Klx(Z);Z.push(L,!0);if(Z.err)throw Z.msg||Yj[Z.err];return Z.result};
h3_=function(L,Z){var N=aC_();N&&N.publish.call(N,L.toString(),L,Z)};
pq1=function(L,Z,N){var S=aC_();if(!S)return 0;var u=S.subscribe(L.toString(),function(T,W){var V=_.LZ("ytPubsub2Pubsub2SkipSubKey");V&&V==u||(V=function(){if(ssF[u])try{if(W&&L instanceof jss&&L!=T)try{var M=L.dataClass,G=W;if(!G.args||!G.version)throw Error("ad");try{if(!M.version_){var D=new M;M.version_=D.version}var l=M.version_}catch(v){}if(!l||G.version!=l)throw Error("bd");try{W=Reflect.construct(M,_.mh(G.args))}catch(v){throw v.message="yt.pubsub2.Data.deserialize(): "+v.message,v;}}catch(v){throw v.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+L.toString()+": "+v.message,v;}Z.call(N||window,W)}catch(v){_.H8(v)}},Eex[L.toString()]?_.LZ("yt.scheduler.instance")?_.ro.addLowPriorityJob(V):_.cW(V,0):V())});
ssF[u]=!0;PvA[L.toString()]||(PvA[L.toString()]=[]);PvA[L.toString()].push(u);return u};
CvH=function(){var L=z31,Z=pq1(mJB,function(N){L.apply(void 0,arguments);JzF(Z)});
return Z};
JzF=function(L){var Z=aC_();Z&&(typeof L==="number"&&(L=[L]),_.SZ(L,function(N){Z.unsubscribeByKey(N);delete ssF[N]}))};
aC_=function(){return _.LZ("ytPubsub2Pubsub2Instance")};
rzG=function(L,Z,N){N=N===void 0?{sampleRate:.1}:N;Math.random()<Math.min(.02,N.sampleRate/100)&&h3_("meta_logging_csi_event",{timerName:L,timelineData:Z})};
_.Qsh=function(L){return L?(L=L.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.So(L):null:null};
_.QH=function(L){return L?(L=L.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.YV(L):null:null};
Azh=function(){Xqt||(Xqt=_.QH(_.X7("WORKER_SERIALIZATION_URL")));return Xqt||void 0};
_.Brw=function(){var L=Azh();HXt||L===void 0||(HXt=oSw(L));return HXt};
_.xJB=function(){return typeof Worker==="function"&&Azh()?!0:!1};
_.NDh=function(){if(_.xJB()&&!qxw){var L=function(N){N=N.data;if(N.op==="gzippedGelBatch"){var S=LLt.get(N.key);S&&(ZdP(N.gzippedBatch,S.latencyPayload,S.url,S.options,S.sendFn),LLt.delete(N.key))}},Z=_.Brw();
Z&&(Z.addEventListener("message",L),Z.onerror=function(){LLt.clear()},qxw=!0)}};
WLP=function(L,Z,N,S,u){u=u===void 0?!1:u;var T={startTime:(0,_.GT)(),ticks:{},infos:{}};if(XW)try{var W=Sk1(Z);if(W!=null&&(W>id1||W<u4B))S(L,N);else{if(_.c("gzip_gel_with_worker")&&(_.c("initial_gzip_use_main_thread")&&!TD0||!_.c("initial_gzip_use_main_thread"))){qxw||_.NDh();var V=_.Brw();if(V&&!u){LLt.set(tAF,{latencyPayload:T,url:L,options:N,sendFn:S});V.postMessage({op:"gelBatchToGzip",serializedBatch:Z,key:tAF});tAF++;return}}var M=dJf(Od0(Z));ZdP(M,T,L,N,S)}}catch(G){_.Zx(G),S(L,N)}else S(L,
N)};
ZdP=function(L,Z,N,S,u){TD0=!1;var T=(0,_.GT)();Z.ticks.gelc=T;Aa++;_.c("disable_compression_due_to_performance_degredation")&&T-Z.startTime>=VAh&&(bd_++,_.c("abandon_compression_after_N_slow_zips")?Aa===_.lQ("compression_disable_point")&&bd_>MAA&&(XW=!1):XW=!1);gDH(Z);S.headers||(S.headers={});S.headers["Content-Encoding"]="gzip";S.postBody=L;S.postParams=void 0;u(N,S)};
GXf=function(L){var Z=Z===void 0?!1:Z;var N=N===void 0?!1:N;var S=(0,_.GT)(),u={startTime:S,ticks:{},infos:{}},T=Z?_.LZ("yt.logging.gzipForFetch",!1):!0;if(XW&&T){if(!L.body)return L;try{var W=N?L.body:typeof L.body==="string"?L.body:JSON.stringify(L.body);T=W;if(!N&&typeof W==="string"){var V=Sk1(W);if(V!=null&&(V>id1||V<u4B))return L;N=Z?{level:1}:void 0;T=dJf(Od0(W),N);var M=(0,_.GT)();u.ticks.gelc=M;if(Z){Aa++;if((_.c("disable_compression_due_to_performance_degredation")||_.c("disable_compression_due_to_performance_degradation_lr"))&&
M-S>=VAh)if(bd_++,_.c("abandon_compression_after_N_slow_zips")||_.c("abandon_compression_after_N_slow_zips_lr")){Z=bd_/Aa;var G=MAA/_.lQ("compression_disable_point");Aa>0&&Aa%_.lQ("compression_disable_point")===0&&Z>=G&&(XW=!1)}else XW=!1;gDH(u)}}L.headers=Object.assign({},{"Content-Encoding":"gzip"},L.headers||{});L.body=T;return L}catch(D){return _.Zx(D),L}}else return L};
Sk1=function(L){try{return(new Blob(L.split(""))).size}catch(Z){return _.Zx(Z),null}};
gDH=function(L){_.c("gel_compression_csi_killswitch")||!_.c("log_gel_compression_latency")&&!_.c("log_gel_compression_latency_lr")||rzG("gel_compression",L,{sampleRate:.1})};
FLf=function(){this.blockSize=-1};
Hx=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var L=1;L<this.blockSize;++L)this.pad_[L]=0;this.total_=this.inbuf_=0;this.reset()};
Ddh=function(L){L=Object.assign({},L);delete L.Authorization;var Z=_.$dt();if(Z){var N=new Hx;N.update(_.X7("INNERTUBE_API_KEY"));N.update(Z);L.hash=_.jY(N.digest(),3)}return L};
xj=function(){lUP||(lUP=new _.Bx("yt.innertube"));return lUP};
vD0=function(L,Z,N,S){if(S)return null;S=xj().get("nextId",!0)||1;var u=xj().get("requests",!0)||{};u[S]={method:L,request:Z,authState:Ddh(N),requestTime:Math.round((0,_.GT)())};xj().set("nextId",S+1,86400,!0);xj().set("requests",u,86400,!0);return S};
oDB=function(L){var Z=xj().get("requests",!0)||{};delete Z[L];xj().set("requests",Z,86400,!0)};
cJs=function(L){var Z=xj().get("requests",!0);if(Z){for(var N in Z){var S=Z[N];if(!(Math.round((0,_.GT)())-S.requestTime<6E4)){var u=S.authState,T=Ddh(_.HkF(!1));_.Py.equals(u,T)&&(u=S.request,"requestTimeMs"in u&&(u.requestTimeMs=Math.round((0,_.GT)())),RdB(L,S.method,u,{}));delete Z[N]}}xj().set("requests",Z,86400,!0)}};
nD_=function(L){var Z;return(L=L==null?void 0:(Z=L.error)==null?void 0:Z.code)&&L>=400&&L<=599?!1:!0};
KLs=function(L){var Z;L=L==null?void 0:(Z=L.error)==null?void 0:Z.code;return!(L!==400&&L!==415)};
kXs=function(){if(fUB)return fUB();var L={};fUB=go("LogsDatabaseV2",{objectStores:(L.LogsRequestsStore={addedAtVersion:2},L),shared:!1,upgrade:function(Z,N,S){N(2)&&qO(Z,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});N(3);N(5)&&(S=S.objectStore("LogsRequestsStore"),S.JSC$10686_wrapped.indexNames.contains("newRequest")&&S.JSC$10686_wrapped.deleteIndex("newRequest"),LA(S,"newRequestV2",["status","interface","timestamp"]));N(7)&&Z.JSC$10671_wrapped.objectStoreNames.contains("sapisid")&&Z.JSC$10671_wrapped.deleteObjectStore("sapisid");
N(9)&&Z.JSC$10671_wrapped.objectStoreNames.contains("SWHealthLog")&&Z.JSC$10671_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return fUB()};
Zl=function(L){return _.up(kXs(),L)};
whf=function(L,Z){var N,S,u,T;return _.b(function(W){if(W.nextAddress==1)return N={startTime:(0,_.GT)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},W.yield(Zl(Z),2);if(W.nextAddress!=3)return S=W.yieldResult,u=Object.assign({},L,{options:JSON.parse(JSON.stringify(L.options)),interface:_.X7("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),W.yield(S.put("LogsRequestsStore",u),3);T=W.yieldResult;N.ticks.tc=(0,_.GT)();yJh(N);return W.return(T)})};
UdF=function(L,Z){var N,S,u,T,W,V,M,G,D;return _.b(function(l){if(l.nextAddress==1)return N={startTime:(0,_.GT)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},l.yield(Zl(Z),2);if(l.nextAddress!=3)return S=l.yieldResult,u=_.X7("INNERTUBE_CONTEXT_CLIENT_NAME",0),T=[L,u,0],W=[L,u,(0,_.GT)()],V=IDBKeyRange.bound(T,W),M="prev",_.c("use_fifo_for_networkless")&&(M="next"),G=void 0,D=L==="NEW"?"readwrite":"readonly",_.c("use_readonly_for_get_most_recent_by_status_killswitch")&&(D="readwrite"),
l.yield(_.TT(S,["LogsRequestsStore"],{mode:D,enableRetries:!0},function(v){return _.FW(v.objectStore("LogsRequestsStore").index("newRequestV2"),{query:V,direction:M},function(R){R.getValue()&&(G=R.getValue(),L==="NEW"&&(G.status="QUEUED",R.update(G)))})}),3);
N.ticks.tc=(0,_.GT)();yJh(N);return l.return(G)})};
Ykh=function(L,Z){var N;return _.b(function(S){if(S.nextAddress==1)return S.yield(Zl(Z),2);N=S.yieldResult;return S.return(_.TT(N,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(u){var T=u.objectStore("LogsRequestsStore");return T.get(L).then(function(W){if(W)return W.status="QUEUED",T.put(W).then(function(){return W})})}))})};
edh=function(L,Z,N,S){N=N===void 0?!0:N;var u;return _.b(function(T){if(T.nextAddress==1)return T.yield(Zl(Z),2);u=T.yieldResult;return T.return(_.TT(u,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(W){var V=W.objectStore("LogsRequestsStore");return V.get(L).then(function(M){return M?(M.status="NEW",N&&(M.sendCount+=1),S!==void 0&&(M.options.compress=S),V.put(M).then(function(){return M})):xs.resolve(void 0)})}))})};
IUG=function(L,Z){var N;return _.b(function(S){if(S.nextAddress==1)return S.yield(Zl(Z),2);N=S.yieldResult;return S.return(N.delete("LogsRequestsStore",L))})};
ddh=function(L){var Z,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(Zl(L),2);Z=S.yieldResult;N=(0,_.GT)()-2592E6;return S.yield(_.TT(Z,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(u){return O6(u.objectStore("LogsRequestsStore"),{},function(T){if(T.getValue().timestamp<=N)return T.delete().then(function(){return T.continue()})})}),0)})};
aUA=function(){_.b(function(L){return L.yield(nQG("LogsDatabaseV2"),0)})};
yJh=function(L){_.c("nwl_csi_killswitch")||rzG("networkless_performance",L,{sampleRate:1})};
_.s_t=function(L){return _.up(hd0(),L)};
j_f=function(L){var Z,N;_.b(function(S){if(S.nextAddress==1)return S.yield(_.s_t(L),2);Z=S.yieldResult;N=(0,_.GT)()-2592E6;return S.yield(_.TT(Z,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(u){return O6(u.objectStore("SWHealthLog"),{},function(T){if(T.getValue().timestamp<=N)return T.delete().then(function(){return T.continue()})})}),0)})};
ED_=function(L){var Z;return _.b(function(N){if(N.nextAddress==1)return N.yield(_.s_t(L),2);Z=N.yieldResult;return N.yield(Z.clear("SWHealthLog"),0)})};
_.NC=function(L,Z,N,S,u,T,W){u=u===void 0?"":u;T=T===void 0?!1:T;W=W===void 0?!1:W;if(L)if(N&&!X2("cobalt"))_.Zx(new _.sr("Legacy referrer-scrubbed ping detected")),L&&PAA(L,void 0,{scrubReferrer:!0});else if(u)Mzx(L,Z,"POST",u,S);else if(_.X7("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||S||W)Mzx(L,Z,"GET","",S,void 0,T,W);else{b:{try{c:{var V=new ph1({url:L});if(V.urlParamValues_.dsh==="1")var M=null;else{var G=V.urlParamValues_.ae;if(G==="1"){var D=V.urlParamValues_.adurl;if(D)try{M={version:3,directUrl:decodeURIComponent(D),
asyncUrl:zax(V.JSC$9475_url_,"act=1","ri=1",zdf(V))};break c}catch(K){}}M=G==="2"?{version:4,directUrl:zax(V.JSC$9475_url_,"dct=1","suid="+V.suid_,"ri=1"),asyncUrl:zax(V.JSC$9475_url_,"act=1","ri=1","suid="+V.suid_)}:null}}if(M){var l=_.ks(L);var v=!(!l||!l.endsWith("/aclk")||_.B4(L,"ri")!=="1");break b}}catch(K){}v=!1}if(v){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(L,"")){var R=!0;break b}}catch(K){}R=!1}R?(Z&&Z(),N=!0):N=!1}else N=!1;N||PAA(L,Z)}};
PAA=function(L,Z,N){N=N===void 0?{}:N;var S=new Image,u=""+mdG++;JJ0[u]=S;S.onload=S.onerror=function(){Z&&JJ0[u]&&Z();delete JJ0[u]};
N.scrubReferrer&&(S.referrerPolicy="no-referrer");S.src=L};
S2=function(L,Z){CAB(L,Z==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
rJB=function(L){var Z;return((Z=document.featurePolicy)==null?0:Z.allowedFeatures().includes("attribution-reporting"))?L+"&nis=6":L+"&nis=5"};
Q_0=function(L){if(!L)return!1;try{var Z;if(((Z=_.iQ(L))==null?void 0:Z.asm)==="4")return!0}catch(N){_.H8(N)}return!1};
CAB=function(L,Z){Z?(L=rJB(L),_.NC(L,void 0,void 0,void 0,"",!0,!0)):_.NC(L)};
AJx=function(){Xhh||(Xhh=new _.Bx("yt.offline"));return Xhh};
HdH=function(L){if(_.c("offline_error_handling")){var Z=AJx().get("errors",!0)||{};Z[L.message]={name:L.name,stack:L.stack};L.level&&(Z[L.message].level=L.level);AJx().set("errors",Z,2592E3,!0)}};
xdw=function(L,Z,N,S){S=S===void 0?!1:S;Z=_.c("web_fp_via_jspb")?Object.assign({},Z):Z;_.c("use_cfr_monitor")&&BD_(L,Z);if(_.c("use_request_time_ms_header"))Z.headers&&bQ(L)&&(Z.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.GT)())));else{var u;if((u=Z.postParams)==null?0:u.requestTimeMs)Z.postParams.requestTimeMs=Math.round((0,_.GT)())}N&&Object.keys(Z).length===0?_.NC(L):Z.compress?Z.postBody?(typeof Z.postBody!=="string"&&(Z.postBody=JSON.stringify(Z.postBody)),WLP(L,Z.postBody,
Z,_.yZ,S)):WLP(L,JSON.stringify(Z.postParams),Z,$js,S):_.yZ(L,Z)};
qkP=function(L,Z){_.c("use_event_time_ms_header")&&bQ(L)&&(Z.headers||(Z.headers={}),Z.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.GT)())));return Z};
_.ZYF=function(){LWt||(LWt=new _.iR({logOfflineErrors:!0,enablePolling:!0}));return LWt};
BD_=function(L,Z){var N=Z.onError?Z.onError:function(){};
Z.onError=function(u,T){uR().requestComplete(L,!1);N(u,T)};
var S=Z.onSuccess?Z.onSuccess:function(){};
Z.onSuccess=function(u,T){uR().requestComplete(L,!0);S(u,T)}};
_.N$G=function(){return _.WW(document.location.toString())!=="www.youtube-nocookie.com"};
_.uZB=function(){return _.LZ("ytNetworklessLoggingInitializationOptions")?_.SR1.isNwlInitialized:_.iYs};
T$B=function(L,Z){if(_.c("polymer_on_demand_shady_dom")){var N;var S=(N=L.__shady_native_firstElementChild)!=null?N:L.firstElementChild}else S=L.firstElementChild;for(;S;){if(L=Z(S)?S:T$B(S,Z))return L;S=S.nextElementSibling}return null};
OY_=function(){var L=document;if("visibilityState"in L)return L.visibilityState;var Z=tih+"VisibilityState";if(Z in L)return L[Z]};
_.WWP=function(L,Z){var N;TI(L,function(S){N=Z[S];return!!N});
return N};
_.OI=function(L){var Z=ViB(L);Z?Z.focus(void 0):_.tV(L)};
ViB=function(L){return(L=T$B(L,function(Z){return _.WK(Z)?bYP(Z)&&!!Z.offsetParent:!1}))?L:null};
_.tV=function(L,Z){L.hasAttribute("tabindex")||L.setAttribute("tabindex","-1");L.focus(Z)};
MiL=function(L,Z,N,S){S=S===void 0?{}:S;L.addEventListener&&(Z!="mouseenter"||"onmouseenter"in document?Z!="mouseleave"||"onmouseenter"in document?Z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Z="MozMousePixelScroll"):Z="mouseout":Z="mouseover");return _.Py.findKey(V7,function(u){var T=typeof u[4]==="boolean"&&u[4]==!!S,W=_.Q_(u[4])&&_.Q_(S)&&_.Py.equals(u[4],S);return!!u.length&&u[0]==L&&u[1]==Z&&u[2]==N&&(T||W)})};
_.MC=function(L,Z,N,S){S=S===void 0?{}:S;if(!L||!L.addEventListener&&!L.attachEvent)return"";var u=MiL(L,Z,N,S);if(u)return u;u=++gNP.count+"";var T=!(Z!="mouseenter"&&Z!="mouseleave"||!L.addEventListener||"onmouseenter"in document);var W=T?function(V){V=new bR(V);if(!_.rF(V.relatedTarget,function(M){return M==L},!0))return V.currentTarget=L,V.type=Z,N.call(L,V)}:function(V){V=new bR(V);
V.currentTarget=L;return N.call(L,V)};
W=_.B8(W);L.addEventListener?(Z=="mouseenter"&&T?Z="mouseover":Z=="mouseleave"&&T?Z="mouseout":Z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Z="MozMousePixelScroll"),Gl1()||typeof S==="boolean"?L.addEventListener(Z,W,S):L.addEventListener(Z,W,!!S.capture)):L.attachEvent("on"+Z,W);V7[u]=[L,Z,N,W,S];return u};
_.$gF=function(L,Z,N){var S=S===void 0?{}:S;var u=_.MC(L,Z,function(){_.FWs(u);N.apply(L,arguments)},S)};
_.FWs=function(L){L&&(typeof L=="string"&&(L=[L]),_.SZ(L,function(Z){if(Z in V7){var N=V7[Z],S=N[0],u=N[1],T=N[3];N=N[4];S.removeEventListener?Gl1()||typeof N==="boolean"?S.removeEventListener(u,T,N):S.removeEventListener(u,T,!!N.capture):S.detachEvent&&S.detachEvent("on"+u,T);delete V7[Z]}}))};
gY=function(L){this.callback_=L;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(L=0;L<4;L++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.MC(window,"mousemove",(0,_.hr)(this.onMouseMove_,this));this.timerId_=_.nZ((0,_.hr)(this.checkPosition_,this),25)};
vN1=function(){var L={};var Z=L.preferMobileEvents===void 0?!1:L.preferMobileEvents;L=L.enableScrollEventListener===void 0?!0:L.enableScrollEventListener;if(_.LZ("_lact",window)==null){var N=parseInt(_.X7("LACT"),10);N=isFinite(N)?Date.now()-Math.max(N,0):-1;_.bp("_lact",N,window);_.bp("_fact",N,window);N==-1&&_.GI();DgF(window,Z,L);new gY(function(){lhP("mouse",100)})}};
DgF=function(L,Z,N){Z=Z===void 0?!1:Z;N=N===void 0?!0:N;_.MC(L.document,"keydown",_.GI);_.MC(L.document,"keyup",_.GI);_.MC(L.document,"mousedown",_.GI);_.MC(L.document,"mouseup",_.GI);Z?_.MC(L,"touchmove",function(){lhP("touchmove",200)},{passive:!0}):(_.MC(L,"resize",function(){lhP("resize",200)}),N&&_.MC(L,"scroll",function(){lhP("scroll",200)}));
_.MC(L.document,"touchstart",_.GI,{passive:!0});_.MC(L.document,"touchend",_.GI,{passive:!0})};
lhP=function(L,Z){oNL[L]||(oNL[L]=!0,_.ro.addLowPriorityJob(function(){_.GI();oNL[L]=!1},Z))};
_.GI=function(){_.LZ("_lact",window)==null&&vN1();var L=Date.now();_.bp("_lact",L,window);_.LZ("_fact",window)==-1&&_.bp("_fact",L,window);(L=_.LZ("ytglobal.ytUtilActivityCallback_"))&&L()};
_.Fv=function(){var L=_.LZ("_lact",window);return L==null?-1:Math.max(Date.now()-L,0)};
_.vK=function(L,Z,N){var S=_.$E();if(S&&Z){var u=S.subscribe(L,function(){var T=arguments,W=function(){Dl[u]&&Z.apply&&typeof Z.apply=="function"&&Z.apply(N||window,T)};
try{_.REx[L]?W():_.cW(W,0)}catch(V){_.H8(V)}},N);
Dl[u]=!0;lR[L]||(lR[L]=[]);lR[L].push(u);return u}return 0};
_.cCh=function(L){var Z=_.$E();Z&&(typeof L==="number"?L=[L]:typeof L==="string"&&(L=[parseInt(L,10)]),_.SZ(L,function(N){Z.unsubscribeByKey(N);delete Dl[N]}))};
_.nNt=function(L,Z){var N=_.$E();N&&N.publish.apply(N,arguments)};
_.fhs=function(L){var Z=_.$E();if(Z)if(Z.clear(L),L)KWf(L);else for(var N in lR)KWf(N)};
_.$E=function(){return _.iH.ytPubsubPubsubInstance};
KWf=function(L){lR[L]&&(L=lR[L],_.SZ(L,function(Z){Dl[Z]&&delete Dl[Z]}),L.length=0)};
klB=function(){var L,Z;return"h5vcc"in oW&&((L=oW.h5vcc.traceEvent)==null?0:L.traceBegin)&&((Z=oW.h5vcc.traceEvent)==null?0:Z.traceEnd)?1:"performance"in oW&&oW.performance.mark&&oW.performance.measure?2:0};
yCw=function(L){var Z=klB();switch(Z){case 1:oW.h5vcc.traceEvent.traceBegin("YTLR",L);break;case 2:oW.performance.mark(L+"-start");break;case 0:break;default:_.Xh(Z,"unknown trace type")}};
w9_=function(L){var Z=klB();switch(Z){case 1:oW.h5vcc.traceEvent.traceEnd("YTLR",L);break;case 2:Z=L+"-start";var N=L+"-end";oW.performance.mark(N);oW.performance.measure(L,Z,N);break;case 0:break;default:_.Xh(Z,"unknown trace type")}};
Ugt=function(L){var Z,N;(N=(Z=window).onerror)==null||N.call(Z,L.message,"",0,0,L)};
YRG=function(L){if(_.c("web_lifecycle_error_handling_killswitch"))return L();try{return L()}catch(Z){Ugt(Z)}};
eEL=function(L){return[L.auth===void 0?"undefined":L.auth,L.isJspb===void 0?"undefined":L.isJspb,L.cttAuthInfo===void 0?"undefined":L.cttAuthInfo,L.tier===void 0?"undefined":L.tier].join("/")};
_.n=function(L,Z){if(L)return L[Z.name]};
nA=function(){var L=_.LZ("yt.logging.ims");L||(L=new cK,_.bp("yt.logging.ims",L));return L};
p9H=function(L,Z){if(L.endpoint==="log_event"){Ihh(L);var N=dgG(L),S=aht(L.payload)||"",u=hEh(S),T=200;if(u){if(u.enabled===!1&&!_.c("web_payload_policy_disabled_killswitch"))return;T=sXG(u.tier);if(T===400){jXF(L,Z);return}}KA[N]=!0;N={cttAuthInfo:N,isJspb:!1,tier:T};nA().storePayload(N,L.payload);ENH(Z,!1,N,Pn0(S))}};
mgw=function(L,Z,N){if(Z.endpoint==="log_event"){Ihh(void 0,Z);var S=dgG(Z,!0),u=hEh(L),T=200;if(u){if(u.enabled===!1&&!_.c("web_payload_policy_disabled_killswitch"))return;T=sXG(u.tier);if(T===400){zEB(L,Z,N);return}}KA[S]=!0;S={cttAuthInfo:S,isJspb:!0,tier:T};nA().storePayload(S,Ev(Z.payload));ENH(N,!0,S,Pn0(L))}};
ENH=function(L,Z,N,S){Z=Z===void 0?!1:Z;S=S===void 0?!1:S;L&&(fA=new L);L=_.lQ("tvhtml5_logging_max_batch_ads_fork")||_.lQ("tvhtml5_logging_max_batch")||_.lQ("web_logging_max_batch")||100;var u=(0,_.GT)(),T=JCw(Z,N.tier),W=T.lastDebounceQueueFromLogTimeMs;S&&(T.useVideoStatsEndPoint=!0);S=0;N&&(S=nA().getSequenceCount(N));var V=function(){CnL({writeThenSend:!0},Z,N.tier)};
S>=1E3?V():S>=L?rCh||(rCh=QXh(function(){V();rCh=void 0},0)):u-W>=10&&(X9f(Z,N.tier),T.lastDebounceQueueFromLogTimeMs=u)};
jXF=function(L,Z){if(L.endpoint==="log_event"){_.c("more_accurate_gel_parser")&&nA().storePayload({isJspb:!1},L.payload);Ihh(L);var N=dgG(L),S=new Map;S.set(N,[L.payload]);var u=aht(L.payload)||"";Z&&(fA=new Z);return new _.kE(function(T,W){fA&&fA.isReady()?ACf(S,fA,T,W,{bypassNetworkless:!0},!0,Pn0(u)):T()})}};
zEB=function(L,Z,N){if(Z.endpoint==="log_event"){Ihh(void 0,Z);var S=dgG(Z,!0),u=new Map;u.set(S,[Ev(Z.payload)]);N&&(fA=new N);return new _.kE(function(T){fA&&fA.isReady()?HYH(u,fA,T,{bypassNetworkless:!0},!0,Pn0(L)):T()})}};
dgG=function(L,Z){var N="";if(L.dangerousLogToVisitorSession)N="visitorOnlyApprovedKey";else if(L.cttAuthInfo){if(Z===void 0?0:Z){Z=L.cttAuthInfo.token;N=L.cttAuthInfo;var S=new B$H;N.videoId?S.setVideoId(N.videoId):N.playlistId&&y7(S,2,xgs,cw(N.playlistId));qRP[Z]=S}else Z=L.cttAuthInfo,N={},Z.videoId?N.videoId=Z.videoId:Z.playlistId&&(N.playlistId=Z.playlistId),LRt[L.cttAuthInfo.token]=N;N=L.cttAuthInfo.token}return N};
CnL=function(L,Z,N){L=L===void 0?{}:L;Z=Z===void 0?!1:Z;new _.kE(function(S,u){var T=JCw(Z,N),W=T.useVideoStatsEndPoint;T.useVideoStatsEndPoint=!1;ZVx(T.queueTimer);ZVx(T.queueMaxTimer);T.queueMaxTimer=0;fA&&fA.isReady()?N===void 0&&_.c("enable_web_tiered_gel")?N9F(S,u,L,Z,300,W):N9F(S,u,L,Z,N,W):(X9f(Z,N),S())})};
N9F=function(L,Z,N,S,u,T){var W=fA;N=N===void 0?{}:N;S=S===void 0?!1:S;u=u===void 0?200:u;T=T===void 0?!1:T;var V=new Map,M=new Map,G={isJspb:S,cttAuthInfo:void 0,tier:u},D={isJspb:S,cttAuthInfo:void 0};if(S){Z=_.O(Object.keys(KA));for(u=Z.next();!u.done;u=Z.next())u=u.value,M=_.c("enable_web_tiered_gel")?nA().smartExtractMatchingEntries({keys:[G,D],sizeLimit:1E3}):nA().extractMatchingEntries({isJspb:!0,cttAuthInfo:u}),M.length>0&&V.set(u,M),(_.c("web_fp_via_jspb_and_json")&&N.writeThenSend||!_.c("web_fp_via_jspb_and_json"))&&
delete KA[u];HYH(V,W,L,N,!1,T)}else{V=_.O(Object.keys(KA));for(G=V.next();!G.done;G=V.next())G=G.value,D=_.c("enable_web_tiered_gel")?nA().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:G,tier:u},{isJspb:!1,cttAuthInfo:G}],sizeLimit:1E3}):nA().extractMatchingEntries({isJspb:!1,cttAuthInfo:G}),D.length>0&&M.set(G,D),(_.c("web_fp_via_jspb_and_json")&&N.writeThenSend||!_.c("web_fp_via_jspb_and_json"))&&delete KA[G];ACf(M,W,L,Z,N,!1,T)}};
X9f=function(L,Z){L=L===void 0?!1:L;Z=Z===void 0?200:Z;var N=function(){CnL({writeThenSend:!0},L,Z)},S=JCw(L,Z),u=S===SCf||S===iVt?5E3:u6h;
_.c("web_gel_timeout_cap")&&!S.queueMaxTimer&&(u=QXh(function(){N()},u),S.queueMaxTimer=u);
ZVx(S.queueTimer);u=_.X7("LOGGING_BATCH_TIMEOUT",_.lQ("web_gel_debounce_ms",1E4));_.c("shorten_initial_gel_batch_timeout")&&T9G&&(u=twA);u=QXh(function(){_.lQ("gel_min_batch_size")>0?nA().getSequenceCount({cttAuthInfo:void 0,isJspb:L,tier:Z})>=OVH&&N():N()},u);
S.queueTimer=u};
ACf=function(L,Z,N,S,u,T,W){u=u===void 0?{}:u;var V=Math.round((0,_.GT)()),M=L.size,G=WRH(W);L=_.O(L);var D=L.next();for(W={};!D.done;W={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},D=L.next()){var l=_.O(D.value);D=l.next().value;l=l.next().value;W.batchRequest=_.Py.unsafeClone({context:_.pvL(Z.config_||_.Dk())});if(!_.Jx(l)&&!_.c("throw_err_when_logevent_malformed_killswitch")){S();break}W.batchRequest.events=l;
(l=LRt[D])&&VwA(W.batchRequest,D,l);delete LRt[D];W.dangerousLogToVisitorSession=D==="visitorOnlyApprovedKey";bVL(W.batchRequest,V,W.dangerousLogToVisitorSession);Mww(u);W.onSuccess$jscomp$3=function(v){_.c("start_client_gcf")&&_.ro.addLowPriorityJob(function(){return _.b(function(R){return R.yield(g0w(v),0)})});
M--;M||N()};
W.networkFailures=0;W.onError$jscomp$5=function(v){return function(){v.networkFailures++;if(u.bypassNetworkless&&v.networkFailures===1)try{RdB(Z,G,v.batchRequest,G0_({writeThenSend:!0},v.dangerousLogToVisitorSession,v.onSuccess$jscomp$3,v.onError$jscomp$5,T)),T9G=!1}catch(R){_.H8(R),S()}M--;M||N()}}(W);
try{RdB(Z,G,W.batchRequest,G0_(u,W.dangerousLogToVisitorSession,W.onSuccess$jscomp$3,W.onError$jscomp$5,T)),T9G=!1}catch(v){_.H8(v),S()}}};
HYH=function(L,Z,N,S,u,T){S=S===void 0?{}:S;var W=Math.round((0,_.GT)()),V={value:L.size},M=new Map([].concat(_.Pd(L)));M=_.O(M);for(var G=M.next();!G.done;G=M.next()){var D=_.O(G.value).next().value,l=L.get(D);G=new FRL;var v=Z.config_||_.Dk(),R=new wY,K=new $VA;_.dF(K,1,v.innertubeContextHostLanguage);_.dF(K,2,v.innertubeContextGeoLocation);_.vx(K,16,v.innertubeContextClientNameFieldNumber);_.dF(K,17,v.innertubeContextClientVersion);if(v.innertubeContextClientConfigInfo){var U=v.innertubeContextClientConfigInfo,
d=new RZ;U.coldConfigData&&_.dF(d,1,U.coldConfigData);U.appInstallData&&_.dF(d,6,U.appInstallData);U.coldHashData&&_.dF(d,3,U.coldHashData);U.hotHashData&&d.setHotHashData(U.hotHashData);_.fG(K,62,d)}(U=_.iH.devicePixelRatio)&&U!=1&&_.oZ(K,65,_.Bl(U));U=STP();U!==""&&_.dF(K,54,U);U=iq1();if(U.length>0){d=new DVL;for(var h=0;h<U.length;h++){var E=new UI;E.setKey(U[h].key);y7(E,2,l9L,cw(U[h].value));YE(d,15,UI,E)}_.fG(R,5,d)}aTt(v,K);hR_(R);siP(K);jif(v,K);EQA(K);_.c("start_client_gcf")&&P21(K);_.X7("DELEGATED_SESSION_ID")&&
!_.c("pageid_as_header_web")&&(v=new e2,_.dF(v,3,_.X7("DELEGATED_SESSION_ID")));!_.c("fill_delegate_context_in_gel_killswitch")&&(U=_.X7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(d=_.lp(R,e2,3)||new e2,v=R,U=_.dF(d,18,U),_.fG(v,3,U));v=K;U=_.O(Object.entries(_.iQ(_.X7("DEVICE",""))));for(d=U.next();!d.done;d=U.next())h=_.O(d.value),d=h.next().value,h=h.next().value,d==="cbrand"?_.dF(v,12,h):d==="cmodel"?_.dF(v,13,h):d==="cbr"?_.dF(v,87,h):d==="cbrver"?_.dF(v,88,h):d==="cos"?_.dF(v,18,
h):d==="cosver"?_.dF(v,19,h):d==="cplatform"&&_.vx(v,42,djP(h));R.setClient(K);_.fG(G,1,R);if(K=qRP[D])a:{if(_.yL(K,IW(K,xgs,1)))R=1;else if(K.getPlaylistId())R=2;else break a;_.fG(G,4,K);K=G.getContext()||new wY;v=_.lp(K,e2,3)||new e2;U=new dY;U.setToken(D);_.vx(U,1,R);YE(v,12,dY,U);_.fG(K,3,v)}delete qRP[D];D=D==="visitorOnlyApprovedKey";v00()||_.aW(G,2,W);!D&&(R=_.X7("EVENT_ID"))&&(K=o0x(),v=new R_A,_.dF(v,1,R),_.aW(v,2,K),_.fG(G,5,v));Mww(S);if(_.c("jspb_serialize_with_worker")&&(R=_.Brw())&&
S.writeThenSend){_.cSt.set(n0H,{client:Z,resolve:N,networklessOptions:S,isIsolated:u,useVSSEndpoint:T,dangerousLogToVisitorSession:D,requestsOutstanding:V});R.postMessage({op:"gelBatchToSerialize",batchRequest:Ev(G),clientEvents:l,key:n0H});n0H++;break}if(l){R=[];for(K=0;K<l.length;K++)try{R.push(new hV(l[K]))}catch(A){_.H8(new _.sr("Transport failed to deserialize "+String(l[K])))}l=R}else l=[];l=_.O(l);for(R=l.next();!R.done;R=l.next())YE(G,3,hV,R.value);l={startTime:(0,_.GT)(),ticks:{},infos:{}};
G=G.serialize();l.ticks.geljspc=(0,_.GT)();_.c("log_jspb_serialize_latency")&&rzG("gel_jspb_serialize",l,{sampleRate:.1});_.KRF(G,Z,N,S,u,T,D,V)}};
_.KRF=function(L,Z,N,S,u,T,W,V){S=S===void 0?{}:S;V=V===void 0?{value:0}:V;T=WRH(T);S=G0_(S,W,function(M){_.c("start_client_gcf")&&_.ro.addLowPriorityJob(function(){return _.b(function(G){return G.yield(g0w(M),0)})});
V.value--;V.value||N()},function(){V.value--;
V.value||N()},u);
S.headers["Content-Type"]="application/json+protobuf";S.postBodyFormat="JSPB";S.postBody=L;RdB(Z,T,"",S);T9G=!1};
Mww=function(L){_.c("always_send_and_write")&&(L.writeThenSend=!1)};
G0_=function(L,Z,N,S,u){L={retry:!0,onSuccess:N,onError:S,networklessOptions:L,dangerousLogToVisitorSession:Z,bypassMonitoring:!!u,headers:{},postBodyFormat:"",postBody:"",compress:_.c("compress_gel")||_.c("compress_gel_lr")};v00()&&(L.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.GT)())));return L};
bVL=function(L,Z,N){v00()||(L.requestTimeMs=String(Z));_.c("unsplit_gel_payloads_in_logs")&&(L.unsplitGelPayloadsInLogs=!0);!N&&(Z=_.X7("EVENT_ID"))&&(N=o0x(),L.serializedClientEventId={serializedEventId:Z,clientCounter:String(N)})};
o0x=function(){var L=_.X7("BATCH_CLIENT_COUNTER")||0;L||(L=Math.floor(Math.random()*65535/2));L++;L>65535&&(L=1);_.Qc("BATCH_CLIENT_COUNTER",L);return L};
VwA=function(L,Z,N){if(N.videoId)var S="VIDEO";else if(N.playlistId)S="PLAYLIST";else return;L.credentialTransferTokenTargetId=N;L.context=L.context||{};L.context.user=L.context.user||{};L.context.user.credentialTransferTokens=[{token:Z,scope:S}]};
Ihh=function(L,Z){var N=_.vW("il_payload_scraping")==="enable_il_payload_scraping";if(!_.LZ("yt.logging.transport.enableScrapingForTest"))if(N)f9x=[],_.bp("yt.logging.transport.enableScrapingForTest",!0),_.bp("yt.logging.transport.scrapedPayloadsForTesting",f9x),_.bp("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.bp("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.bp("yt.logging.transport.scrapeClientEvent",!0);else return;N=_.LZ("yt.logging.transport.scrapedPayloadsForTesting");var S=_.LZ("yt.logging.transport.payloadToScrape");Z&&(Z=_.LZ("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(Z.payload)())&&N.push(Z);Z=_.LZ("yt.logging.transport.scrapeClientEvent");if(S&&S.length>=1)for(var u=0;u<S.length;u++)if(L&&L.payload[S[u]])if(Z)N.push(L.payload);else{var T=void 0;N.push(((T=L)==null?void 0:T.payload)[S[u]])}_.bp("yt.logging.transport.scrapedPayloadsForTesting",
N)};
v00=function(){return _.c("use_request_time_ms_header")||_.c("lr_use_request_time_ms_header")};
QXh=function(L,Z){return _.c("transport_use_scheduler")===!1?_.cW(L,Z):_.c("logging_avoid_blocking_during_navigation")||_.c("lr_logging_avoid_blocking_during_navigation")?_.sI(_.ro,function(){if(_.k0_().currentState==="none")L();else{var N={};_.k0_().install((N.none={callback:L},N))}},Z):_.sI(_.ro,L,Z)};
ZVx=function(L){_.c("transport_use_scheduler")?_.ro.cancelJob(L):_.fZ(L)};
g0w=function(L){var Z,N,S,u,T,W,V,M,G,D;return _.b(function(l){return l.nextAddress==1?(S=(Z=L)==null?void 0:(N=Z.responseContext)==null?void 0:N.globalConfigGroup,u=_.n(S,ySw),W=(T=S)==null?void 0:T.hotHashData,V=_.n(S,wQP),G=(M=S)==null?void 0:M.coldHashData,(D=_.GR().resolve(_.gv(j2)))?W?u?l.yield(UVF(D,W,u),2):l.yield(UVF(D,W),2):l.jumpTo(2):l.return()):G?V?l.yield(YCG(D,G,V),0):l.yield(YCG(D,G),0):l.jumpTo(0)})};
JCw=function(L,Z){Z=Z===void 0?200:Z;return L?Z===300?SCf:e_G:Z===300?iVt:I9t};
hEh=function(L){if(_.c("enable_web_tiered_gel")){L=dVh[L||""];var Z,N,S,u=_.GR().resolve(_.gv(j2))==null?void 0:(Z=EI())==null?void 0:(N=Z.loggingHotConfig)==null?void 0:(S=N.eventLoggingConfig)==null?void 0:S.payloadPolicies;if(u)for(Z=0;Z<u.length;Z++)if(u[Z].payloadNumber===L)return u[Z]}};
aht=function(L){L=Object.keys(L);L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,dVh[Z])return Z};
sXG=function(L){switch(L){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}};
Pn0=function(L){return L==="gelDebuggingEvent"};
WRH=function(L){return(L===void 0?0:L)&&_.c("vss_through_gel_video_stats")?"video_stats":"log_event"};
pA=function(L,Z,N,S){S=S===void 0?{}:S;var u={},T=Math.round(S.timestamp||(0,_.GT)());u.eventTimeMs=T<Number.MAX_SAFE_INTEGER?T:0;u[L]=Z;L=_.Fv();u.context={lastActivityMs:String(S.timestamp||!isFinite(L)?-1:L)};S.sequenceGroup&&!_.c("web_gel_sequence_info_killswitch")&&(L=u.context,Z=S.sequenceGroup,Z={index:a9P(Z),groupKey:Z},L.sequence=Z,S.endOfSequence&&delete PK[S.sequenceGroup]);_.c("web_tag_automated_log_events")&&(u.context.automatedLogEventSource=S.automatedLogEventSource);(S.sendIsolatedPayload?
jXF:p9H)({endpoint:"log_event",payload:u,cttAuthInfo:S.cttAuthInfo,dangerousLogToVisitorSession:S.dangerousLogToVisitorSession},N)};
a9P=function(L){PK[L]=L in PK?PK[L]+1:0;return PK[L]};
_.mS=function(L,Z,N){N=N===void 0?{}:N;var S=zI;_.Ah("ytLoggingEventsDefaultDisabled",!1)&&zI===zI&&(S=null);pA(L,Z,S,N)};
_.JV=function(){if(_.c("web_fp_via_jspb")){var L=!0;L=L===void 0?!1:L;var Z=h_H;h_H=[];if(Z){Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())N=N.value,L?pA(N.payloadName,N.payload,zI,N.options):_.mS(N.payloadName,N.payload,N.options)}CnL(void 0,!0);if(!_.c("web_fp_via_jspb_and_json"))return}CnL(void 0,!1)};
sVs=function(L,Z){var N;if((N=Z)==null?0:N.componentStack)return Z;if(L=L.componentStack)Z||(Z={}),Z.componentStack=L;return Z};
jV0=function(){_.SZ(_.X7("ERRORS")||[],function(L){_.CA.apply(null,L)});
_.Qc("ERRORS",[])};
_.rY=function(L){_.CA(L)};
_.Q7=function(L){_.CA(L,"WARNING")};
E0w=function(L){L instanceof Error?_.CA(L):(L=_.Q_(L)?JSON.stringify(L):String(L),L=new _.sr(L),L.name="RejectedPromiseError",_.Q7(L))};
P4A=function(L,Z,N,S,u,T){Z=Z===void 0?"Unknown file":Z;N=N===void 0?0:N;var W=!1,V=hb_("log_window_onerror_fraction");if(V&&Math.random()<V)W=!0;else{V=document.getElementsByTagName("script");for(var M=0,G=V.length;M<G;M++)if(V[M].src.indexOf("/debug-")>0){W=!0;break}}W&&(W=!1,u?W=!0:(typeof L==="string"?V=L:ErrorEvent&&L instanceof ErrorEvent?(W=!0,V=L.message,Z=L.filename,N=L.lineno,S=L.colno):(V="Unknown error",Z="Unknown file",N=0),u=new _.sr(V),u.name="UnhandledWindowError",u.message=V,u.fileName=
Z,u.lineNumber=N,isNaN(S)?delete u.columnNumber:u.columnNumber=S),_.c("wiz_enable_component_stack_propagation_killswitch")||(T=sVs(u,T)),T&&_.Xv(u,T),W?_.CA(u):_.Q7(u))};
_.CA=function(L,Z,N,S,u,T,W,V){T=T===void 0?{}:T;T.name=N||_.X7("INNERTUBE_CONTEXT_CLIENT_NAME",1);T.version=S||_.X7("INNERTUBE_CONTEXT_CLIENT_VERSION");N=T;Z=Z===void 0?"ERROR":Z;W=W===void 0?!1:W;Z=Z===void 0?"ERROR":Z;W=W===void 0?!1:W;if(L&&(L.hasOwnProperty("level")&&L.level&&(Z=L.level),_.c("console_log_js_exceptions")&&(S=[],S.push("Name: "+L.name),S.push("Message: "+L.message),L.hasOwnProperty("params")&&S.push("Error Params: "+JSON.stringify(L.params)),L.hasOwnProperty("args")&&S.push("Error args: "+
JSON.stringify(L.args)),S.push("File name: "+L.fileName),S.push("Stacktrace: "+L.stack),S=S.join("\n"),window.console.log(S,L)),!(pQ_>=5))){S=[];u=_.O(z_1);for(T=u.next();!T.done;T=u.next()){T=T.value;try{T()&&S.push(T())}catch(d){}}S=[].concat(_.Pd(mVh),_.Pd(S));var M=JSP(L);u=M.message||"Unknown Error";T=M.name||"UnknownError";var G=M.stack||L.stacktrace||"Not available";if(G.startsWith(T+": "+u)){var D=G.split("\n");D.shift();G=D.join("\n")}D=M.lineNumber||"Not available";M=M.fileName||"Not available";
var l=0;if(L.hasOwnProperty("args")&&L.args&&L.args.length)for(var v=0;v<L.args.length&&!(l=IW0(L.args[v],"params."+v,N,l),l>=500);v++);else if(L.hasOwnProperty("params")&&L.params){var R=L.params;if(typeof L.params==="object")for(v in R){if(R[v]){var K="params."+v,U=Ys(R[v]);N[K]=U;l+=K.length+U.length;if(l>500)break}}else N.params=Ys(R)}if(S.length)for(v=0;v<S.length&&!(l=IW0(S[v],"params.context."+v,N,l),l>=500);v++);navigator.vendor&&!N.hasOwnProperty("vendor")&&(N["device.vendor"]=navigator.vendor);
v={message:u,name:T,lineNumber:D,fileName:M,stack:G,params:N,sampleWeight:1};N=Number(L.columnNumber);isNaN(N)||(v.lineNumber=v.lineNumber+":"+N);if(L.level==="IGNORED")L=0;else a:{L=C4G();N=_.O(L.messageWeights);for(S=N.next();!S.done;S=N.next())if(S=S.value,v.message&&v.message.match(S.messageRegExp)){L=S.weight;break a}L=_.O(L.callbackWeights);for(N=L.next();!N.done;N=L.next())if(N=N.value,N.callback(v)){L=N.weight;break a}L=1}v.sampleWeight=L;L=_.O(rSw);for(N=L.next();!N.done;N=L.next())if(N=
N.value,N.patternsForType[v.name])for(u=_.O(N.patternsForType[v.name]),S=u.next();!S.done;S=u.next())if(T=S.value,S=v.message.match(T.regexp)){v.params["params.error.original"]=S[0];u=T.groups;T={};for(D=0;D<u.length;D++)T[u[D]]=S[D+1],v.params["params.error."+u[D]]=S[D+1];v.message=N.messageFn(T);break}v.params||(v.params={});L=C4G();v.params["params.errorServiceSignature"]="msg="+L.messageWeights.length+"&cb="+L.callbackWeights.length;v.params["params.serviceWorker"]="false";_.iH.document&&_.iH.document.querySelectorAll&&
(v.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new AV(QVw,"sample")).constructor!==AV&&(v.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(v);if(v.sampleWeight!==0&&!XQH.has(v.message)){if(W&&_.c("web_enable_error_204"))ASH(Z===void 0?"ERROR":Z,v);else{Z=Z===void 0?"ERROR":Z;Z==="ERROR"?(HVH.publish("handleError",v),_.c("record_app_crashed_web")&&B9B===0&&v.sampleWeight===1&&(B9B++,W={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.c("report_client_error_with_app_crash_ks")||(W.systemHealth={crashData:{clientError:{logMessage:{message:v.message}}}}),_.mS("appCrashed",W)),xVx++):Z==="WARNING"&&HVH.publish("handleWarning",v);if(_.c("kevlar_gel_error_routing")){W=Z;V=V===void 0?{}:V;b:{L=_.O(qCP);for(N=L.next();!N.done;N=L.next())if(X2(N.value.toLowerCase())){L=!0;break b}L=!1}if(L)V=void 0;else{N={stackTrace:v.stack};v.fileName&&(N.filename=v.fileName);L=v.lineNumber&&v.lineNumber.split?v.lineNumber.split(":"):[];L.length!==
0&&(L.length!==1||isNaN(Number(L[0]))?L.length!==2||isNaN(Number(L[0]))||isNaN(Number(L[1]))||(N.lineNumber=Number(L[0]),N.columnNumber=Number(L[1])):N.lineNumber=Number(L[0]));L={level:"ERROR_LEVEL_UNKNOWN",message:v.message,errorClassName:v.name,sampleWeight:v.sampleWeight};W==="ERROR"?L.level="ERROR_LEVEL_ERROR":W==="WARNING"&&(L.level="ERROR_LEVEL_WARNNING");N={isObfuscated:!0,browserStackInfo:N};V.pageUrl=window.location.href;V.kvPairs=[];_.X7("FEXP_EXPERIMENTS")&&(V.experimentIds=_.X7("FEXP_EXPERIMENTS"));
S=_.X7("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!hb_("web_disable_gel_stp_ecatcher_killswitch")&&S)for(u=_.O(Object.keys(S)),T=u.next();!T.done;T=u.next())T=T.value,V.kvPairs.push({key:T,value:String(S[T])});if(S=v.params)for(u=_.O(Object.keys(S)),T=u.next();!T.done;T=u.next())T=T.value,V.kvPairs.push({key:"client."+T,value:String(S[T])});S=_.X7("SERVER_NAME");u=_.X7("SERVER_VERSION");S&&u&&(V.kvPairs.push({key:"server.name",value:S}),V.kvPairs.push({key:"server.version",value:u}));V={errorMetadata:V,
stackTrace:N,logMessage:L}}V&&(_.mS("clientError",V),(W==="ERROR"||_.c("errors_flush_gel_always_killswitch"))&&_.JV())}_.c("suppress_error_204_logging")||ASH(Z,v)}try{XQH.add(v.message)}catch(d){}pQ_++}}};
ASH=function(L,Z){var N=Z.params||{};L={urlParams:{a:"logerror",t:"jserror",type:Z.name,msg:Z.message.substr(0,250),line:Z.lineNumber,level:L,"client.name":N.name},postParams:{url:_.X7("PAGE_NAME",window.location.href),file:Z.fileName},method:"POST"};N.version&&(L["client.version"]=N.version);if(L.postParams){Z.stack&&(L.postParams.stack=Z.stack);Z=_.O(Object.keys(N));for(var S=Z.next();!S.done;S=Z.next())S=S.value,L.postParams["client."+S]=N[S];if(N=_.X7("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(Z=
_.O(Object.keys(N)),S=Z.next();!S.done;S=Z.next())S=S.value,L.postParams[S]=N[S];(N=_.X7("LAVA_VERSION"))&&(L.postParams["lava.version"]=N);N=_.X7("SERVER_NAME");Z=_.X7("SERVER_VERSION");N&&Z&&(L.postParams["server.name"]=N,L.postParams["server.version"]=Z)}_.yZ(_.X7("ECATCHER_REPORT_HOST","")+"/error_204",L)};
_.LKf=function(L,Z){Z=Z===void 0?"ERROR":Z;var N=N===void 0?{}:N;var S=_.LZ("ytbin.polymer.shared.lib.tampering.info");S&&(S=S())&&(N["params.tamperingInfo"]=S.sort().join(","));_.CA(L,Z,void 0,void 0,!0,N)};
_.Xv=function(L){var Z=_.CG.apply(1,arguments);L.args||(L.args=[]);Array.isArray(L.args)&&L.args.push.apply(L.args,_.Pd(Z))};
Zlx=function(L){L.level="IGNORED"};
Nm1=function(L,Z){mVh.push(L);Z();mVh.pop()};
BK=function(L,Z){for(var N in Z)Z.hasOwnProperty(N)&&(L=_.HK(L,N,Z[N]));return L};
_.SSw=function(L,Z,N){N=N===void 0?!1:N;if(!L)return null;if(L.adInfoDialogEndpoint||L.backstageImageUploadEndpoint||L.confirmDialogEndpoint||L.clientActionEndpoint||L.createBackstagePostDialogEndpoint||L.createCommentReplyDialogEndpoint||L.flowEndpoint||L.guideBuilderEndpoint||L.liveChatDialogEndpoint||L.modalEndpoint||L.openPopupAction||L.shareEndpoint||L.shareEntityEndpoint||L.showLiveChatItemEndpoint||L.subscriptionManagerEndpoint||L.unlimitedCreateFamilyEndpoint||L.unlimitedFamilyFlowEndpoint||
L.updateCommentDialogEndpoint||L.updateCommentReplyDialogEndpoint||L.userFeedbackEndpoint||L.videoEditorEndpoint||L.ypcCancelSurveyEndpoint)return Z=_.lQ("polymer_report_client_url_requested_rate"),!N&&Math.random()<Z&&_.Q7(new _.sr("urlForEndpoint used on client endpoint",L)),null;var S=_.lQ("polymer_report_missing_web_navigation_endpoint_rate");if(L.liveChatEndpoint||L.liveChatReplayEndpoint)S=0;if(!L.commandMetadata&&!L.clickTrackingParams&&Math.random()<S){var u={},T;for(T in L)u[T]="1";_.Q7(new _.sr("Missing navigation data",
u))}u="";if(L.commandMetadata&&L.commandMetadata.webCommandMetadata&&L.commandMetadata.webCommandMetadata.url)u=L.commandMetadata.webCommandMetadata.url;else if(L.searchEndpoint)Math.random()<S&&_.Q7(new _.sr("Should not manually handle search",L)),u="/results?search_query="+encodeURIComponent(L.searchEndpoint.query).replace(/%20/g,"+"),L.searchEndpoint.params&&(u+="&sp="+L.searchEndpoint.params);else if(L.watchEndpoint)Math.random()<S&&_.Q7(new _.sr("Should not manually handle watch",L)),u="/watch?v="+
L.watchEndpoint.videoId,L.watchEndpoint.playlistId&&(u+="&list="+L.watchEndpoint.playlistId),L.watchEndpoint.index&&(u+="&index="+L.watchEndpoint.index),L.watchEndpoint.startTimeSeconds&&(u+="&t="+L.watchEndpoint.startTimeSeconds);else if(L.browseEndpoint)S=L.browseEndpoint.browseId,(T=L.browseEndpoint.canonicalBaseUrl)?u=T:S&&(u=S.substr(0,2),u=u==="FE"?S==="FEwhat_to_watch"?"/":S==="FEmy_videos"?"/my_videos":"/feed/"+S.substr(2):u==="VL"?"/playlist?list="+S.substr(2):"/channel/"+S),u&&L.browseEndpoint.query&&
(u=BK(u+"/search",{query:L.browseEndpoint.query})),u&&L.browseEndpoint.params&&(u=BK(u,{params:L.browseEndpoint.params}));else{if(L.urlEndpoint)return L.urlEndpoint.url;L.signInEndpoint?(u="https://accounts.google.com/ServiceLogin",S={},_.Py.extend(S,Z||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),Z=S):L.uploadEndpoint?u="//www.youtube.com/upload":L.liveChatEndpoint?(u=L.liveChatEndpoint,S=_.Py.clone(u),_.Q_(u.continuation)&&(T=Object.keys(u.continuation)[0],
S.continuation=u.continuation[T].continuation),u=BK("/youtubei/v1/live_chat/get_live_chat",S)):L.liveChatReplayEndpoint?(u=_.Py.clone(L.liveChatReplayEndpoint),u.currentPlayerState&&(_.Py.extend(u,u.currentPlayerState),delete u.currentPlayerState),u=BK("/youtubei/v1/live_chat/get_live_chat_replay",u)):L.liveChatItemContextMenuEndpoint?u=BK("/youtubei/v1/live_chat/get_item_context_menu",L.liveChatItemContextMenuEndpoint):L.liveChatPurchaseMessageEndpoint?u=BK("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
L.liveChatPurchaseMessageEndpoint):L.openSuperStickerBuyFlowCommand?u=BK("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",L.openSuperStickerBuyFlowCommand):L.videoEditEndpoint?u=BK("/edit",{video_id:L.videoEditEndpoint.videoId}):L.liveDashboardEndpoint?u=L.liveDashboardEndpoint.videoId?BK("/live_dashboard",{v:L.liveDashboardEndpoint.videoId}):"/live_dashboard":L.signalNavigationEndpoint&&L.signalNavigationEndpoint.signal&&L.signalNavigationEndpoint.signal==="WEBCAM"?u="/webcam":L.getPdgBuyFlowCommand&&
(u=BK(L.getPdgBuyFlowCommand.buyflowApiPath,{params:L.getPdgBuyFlowCommand.params}))}return u||N?BK(u,Z||{}):(_.Q7(new _.sr("Error: Can't construct url for endpoint","keys:"+Object.keys(L).sort().join(","),L)),null)};
ilx=function(L){if(L){if(L.browseEndpoint)return!!L.browseEndpoint.nofollow;if(L.watchEndpoint)return!!L.watchEndpoint.nofollow;if(L.urlEndpoint)return!!L.urlEndpoint.nofollow}return!1};
_.TmP=function(L,Z){var N=Z+L,S=uMs.get(N);if(S)return S;L=Z+"-"+L.replace(/([A-Z])/g,"-$1").toLowerCase();uMs.set(N,L);return L};
tCw=function(L){var Z=_.Cn(L,"action")||_.Cn(L,"command")||_.Cn(L,"endpoint");if(!Z)return null;Z=_.TmP(Z,"yt");_.n(L,_.xE)&&(Z+="-"+_.n(L,_.xE).signal.toLowerCase().replace(/_/g,"-"));return Z};
bls=function(L){try{var Z=Object.keys(L)}catch(u){return[]}for(var N=0;N<Z.length;N++){var S=Z[N];if(OlA.test(S)||WKG.test(S))return VCt(L[S])}return[]};
VCt=function(L){return L.command?[L.command]:L.onExecutionAction?[L.onExecutionAction]:L.onResponseReceivedCommand?[L.onResponseReceivedCommand]:L.updateFlowCommand?[L.updateFlowCommand]:L.clientActions?L.clientActions:L.action?[L.action]:L.actions||L.commands||L.onResponseReceivedActions||L.onResponseReceivedCommands||L.onResponseReceivedEndpoints||[]};
g9x=function(L,Z){Z=Z===void 0?!1:Z;var N=_.GR().resolve(_.gv(qC));N||(N=new MCB,_.GR().addProvider({provide:qC,useValue:N}));return N&&L&&!_.Py.isEmpty(L)?N.getUrl(L,Z):""};
GqA=function(L,Z,N){N=N===void 0?"":N;if(Z){L.data=Z;var S=g9x(Z);S?(Q8(L,S),ilx(Z)||!bQ(S)?L.rel="nofollow":L.removeAttribute("rel"),_.n(Z,_.Lo)&&_.n(Z,_.Lo).target==="TARGET_NEW_WINDOW"?L.target="_blank":N?L.target=N:L.removeAttribute("target")):(L.removeAttribute("href"),L.removeAttribute("rel"),L.removeAttribute("target"))}};
_.TD=function(L,Z){var N=tW;if(sK())FKF(L,function(){var T=_.CG.apply(0,arguments);rJ(N,function(){Z.apply(null,_.Pd(T))})});
else{var S=_.SS.getInstance(),u=aFB(Z);fFL(function(){u.value=Z});
_.m0(function(){var T={},W=_.ie(S,(T[L]=function(){var V=_.CG.apply(0,arguments);rJ(N,function(){u.value.apply(u,_.Pd(V))})},T));
return function(){var V={};_.ue(S,(V[L]="",V),W)}})}};
_.t2=function(L,Z){return $rA(L,!1,Z)};
_.OV=function(L,Z){return $rA(L,!0,Z)};
$rA=function(L,Z,N){return sK()?Drs(L,Z,N):l7P(L,Z,N)};
l7P=function(L,Z,N){return Jh(function(){return Drs(L,Z,N)})};
Drs=function(L,Z,N){var S=RbH(function(u){S.value=u;var T=function(){var W=F5(null);try{return N==null?void 0:N(u)}finally{F5(W)}}();
return function(){T==null||T()}});
S.__expectedTagName=L;S.__optional=Z;S.isIdom=!sK();return S};
v9t=function(L){var Z=tW,N=aY;return{getFn:function(){return function(S){if(!Z.isDisposed){var u=function(){return L(S)};
PE(function(){return _.cE(u)},N)!==!0&&S.stopPropagation()}}}}};
be=function(L){if(typeof L.children==="function")return L.children(),null;L=_.O(L.children);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z();return null};
o9_=function(L){var Z;return((Z=L.prototype)==null?void 0:Z.render)===void 0};
RsH=function(L){return L.items.map(L.children)};
n9G=function(L,Z,N){N=N===void 0?!1:N;PE(function(){return cuH(L,Z,N)})};
cuH=function(L,Z,N){var S=null;eU++;N=(N===void 0?0:N)?KK1:f7H;try{S=N(L,function(){M4(Z)}),dJ(!1)}catch(u){throw dJ(!0),u;
}return S===null?L:S};
M4=function(L){if(L!==void 0&&L!==null)if(L instanceof wj)for(var Z=q$;NT()!=null&&T0f in NT()&&Z.contains(NT());)uT();else if(Array.isArray(L))for(Z=_.O(L),L=Z.next();!L.done;L=Z.next())M4(L.value);else if(L instanceof Un||L instanceof Vd||"function"==typeof _.MT&&L instanceof _.MT)u$P(L.toString());else if(_.D8(L)){if(NT()!==L){var N,S;Z=(S=(N=aY)==null?void 0:N.name)!=null?S:"unknown";throw Error("hc`"+L.tagName+"`"+Z);}uT()}else if(L!=null&&L.contentKind===Rl||L instanceof Xt||ods(L))for(Z=cQw(L),
Z=Array.from(Z.childNodes),Z=_.O(Z),L=Z.next();!L.done;L=Z.next())q$.appendChild(L.value),uT();else if(sn(L)&&(L=L.toString()),N=typeof L,N==="boolean"||N==="number"||N==="string")u$P(L);else if(typeof L==="function"){Z=q$;var u=NT();u&&(u._isSignalTextNode||u._isSafeOrSanitizedHtmlNode)||HHB(Z,u,L);uT()}else if(L.type===RsH)M4(L.type(Object.assign({},L.props,{children:L.children[0]})));else{eu.beforeVisit(L);if(typeof L.type==="string"){a:{L.__open||Hoh(L.type,L.props.idomKey);u=q$;for(Z in L.props)if(L.props[Z]!==
kqA){var T=L.props[Z];N=OM;N.push(Z);N.push(T)}Z=M$.attributes;Z=Z===void 0?gx:Z;T=q$;N=xR(T);iHx(T,N,Z);AQx(u,L.props,!0);if((L.props.skip||L.props.skipchildren)&&q$.hasChildNodes())x4_();else{if(L.type==="style"&&YU_(L.children)===null){x4_();Z=void 0;break a}M4(L.children)}Bxf();L.__open&&(L.__open=!1);gd1(u,L.props);Z=u}return Z}if(L.type===_.F7)M4(L.children);else if(!yux(L)){Z=L;try{wTH(Z)}catch(W){L=W,(T=M$.handleError)==null||T.call.apply(T,[M$].concat(_.Pd(QX(L,(u=Z.type)==null?void 0:u.TAG_NAME))))}Z.__open&&
(Bxf(),Z.__open=!1)}}};
UrG=function(L,Z){var N;o9_(L)?N=new dj(Z,L):N=new L(Z);N.__type=L;N.__updateContext={nextState:N.state,isForced:!1};return N};
wTH=function(L){var Z=L.type,N=Z.TAG_NAME;if(Z===be)L.props.children=L.children,Z(L.props);else{L.children.length>0&&(L.props.children=L.children);var S;(S=L.props).idomKey||(S.idomKey=Z);if(N){var u=Hoh(N,L.props.idomKey);L.__open=!0;var T=u.__instance}T||(T=UrG(Z,L.props),T.props=null,u&&(u.__instance=T,T.el=u));var W;N=((W=T.__updateContext)!=null?W:{nextState:T.state,isForced:!1}).nextState;T.__updateContext=void 0;Z.getDerivedStateFromProps&&(N=Z.getDerivedStateFromProps(L.props,N));T.props=
L.props;T.state=N;W=function(){var V=T;eu.beforeRender(V);var M=V.render(V.props);eu.afterRender(V,M);M?(V.props.idomKey&&(M.props.idomKey=V.props.idomKey),V=M):V=void 0;if(M=V)if(M.__open=L.__open,V=M4(M),L.__open=M.__open,!Z.TAG_NAME)if(V)Z.TAG_NAME=V.tagName.toLowerCase(),V.__instance=T,T.el=V;else{var G;if((G=T.hooks)==null?0:G.length){var D;(D=M$.handleError)==null||D.call.apply(D,[M$].concat(_.Pd(QX(Error("pd")))))}}T.didPatch();eu.didPatch(T)};
(N=T.functionComponent)?gbf(N,W,T.props.debugInstance):W()}};
yux=function(L){var Z=L.type;if(!o9_(Z)||Z===be||Z.componentType===hW)return!1;L.props.children=L.children.length>1?L.children:L.children[0];var N,S=(N=L.props.idomKey)!=null?N:L.type,u;if(NT()&&((u=NT()[fn])==null?void 0:u.key)===S){var T=NT(),W=T[fn];if(!W)throw Error("gc`"+T.tagName);var V;(V=W.updateSignalsFromIdomProps)==null||V.call(W,L.props);YSB(W);return!0}if(es_.has(Z.name))throw V=Z.name,Z=(W=(T=aY)==null?void 0:T.name)!=null?W:"unknown",Error("fc`"+V+"`"+Z);LgG(L.type,L.props,L.children);
L.props.renderedFromIdom=!0;(V=gbf(L.type,function(){return JQ0(L.type,L.props)},L.props.debugInstance))&&I7t(V);
return!0};
drA=function(L){for(var Z=0;Z<yc(L).length;Z++)uT()};
YSB=function(L){var Z=a71();if(Z)drA(Z);else for(var N=0;N<L.numNodes;N++)(Z=a71())?drA(Z):uT()};
a71=function(){var L;return(L=NT()[fn])==null?void 0:L.sourceDynamicRange};
I7t=function(L){L=$7L(L);L=Array.isArray(L)?L:[L];L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next())q$.insertBefore(Z.value,NT()),uT()};
hsG=function(){var L=rQf(),Z=Jh(function(){return{value:0}});
return[Z.value,function(N){if(Il!==null){var S;(S=M$.handleError)==null||S.call.apply(S,[M$].concat(_.Pd(QX(Error("qd")))))}Z.value=typeof N==="function"?N(Z.value):N;L.__updateContext={nextState:L.state,isForced:!0};N=_.OK(L.effectContext);S=$_(!1);try{if(L.el){var u,T={},W=(T.props=L.props,T.type=L.__type,T.children=(u=L.props.children)!=null?u:[],T[Gp]=!0,T);try{n9G(L.el,W,!0)}catch(G){var V,M;(M=M$.handleError)==null||M.call.apply(M,[M$].concat(_.Pd(QX(G,(V=L.__type)==null?void 0:V.TAG_NAME))))}}}finally{$_(S),
_.OK(N)}}]};
_.GD=function(L,Z){var N=tW,S=function(u){rJ(N,function(){Z(u)})};
window.addEventListener(L,S,void 0);_.zs(function(){window.removeEventListener(L,S,void 0)})};
_.$b=function(L){var Z=tW;return function(N){var S,u=(S=L.observer)!=null?S:_.GR().resolve(Fl);S=sbP(N);var T=[];L.showOption&&T.push(u.observe(N,function(){rJ(Z,function(){L.visibilityCallback(!0,N)})},L.showOption));
L.hideOption&&T.push(u.observe(N,function(){rJ(Z,function(){L.visibilityCallback(!1,N)})},L.hideOption));
L.prescanOption&&L.prescanCallback&&T.push(u.observe(N,function(){rJ(Z,function(){L.prescanCallback()})},L.prescanOption));
var W;S.visibilityMonitorKeys=((W=S.visibilityMonitorKeys)!=null?W:[]).concat(T)}};
sbP=function(L){var Z;return(Z=L.polymerController)!=null?Z:L};
pTw=function(L,Z){var N=jbt;return _.g(_.F7,null,$Os(M$.enableLazyTsx,function(){return _.g(E9B,{id:N,value:L,children:Z})},function(){var S=Pjf(N,L);
bI(S);S=_.OK(S);try{return Z()}finally{_.OK(S)}}))};
E9B=function(L){var Z=L.children;L=Pjf(L.id,L.value);bI(L);L=_.OK(L);try{return _.g(_.F7,null,UM(Z()))}finally{_.OK(L)}};
Pjf=function(L,Z){return Object.assign(Object.create(zs0),{id:L,contextValue:Z})};
mr_=function(L){var Z,N=tW;_.Ch(function(){var S=_.OK(N),u=$_(!Z);try{if(Z)n9G(Z,L.children(),!0);else if(Z=UM(L.children()),!(Z instanceof Element))throw Error("rd");}finally{$_(u),_.OK(S)}},"f");
return Z};
_.JuH=function(L,Z){var N;Z=m8(function(){var S=$_(!0);eU++;try{N=yc(L()),dJ(!1)}catch(u){throw dJ(!0),u;}finally{$_(S)}},Z===void 0?!1:Z);
return[N,Z]};
ruL=function(L){var Z=new Cjt;Z.abort(L);return Z.signal};
QbG=function(){if(this.aborted){var L;throw(L=this.reason)!=null?L:new DOMException("signal is aborted without reason","AbortError");}};
HlF=function(L){var Z=new Cjt;L=_.O(L);for(var N=L.next();!N.done;N=L.next())if(N=N.value,N.aborted){Z.abort(N.reason);break}else XTt.set(Z.signal,Z),Auh.add(N,Z.signal);return Z.signal};
Bm_=function(){for(var L=_.O(Auh.get(this)),Z=L.next();!Z.done;Z=L.next())XTt.get(Z.value).abort(this.reason)};
xr1=function(L){var Z=new Cjt;setTimeout(function(){Z.abort(new DOMException("signal timed out","TimeoutError"))},L);
return Z.signal};
qSG=function(){var L,Z;return{promise:new Promise(function(N,S){L=N;Z=S}),
resolve:L,reject:Z}};
Zmw=function(L){var Z=qSG(),N=Z.promise;L4s.set(L,{promise:N,resolve:Z.resolve,reject:Z.reject});Db||(Db=[],queueMicrotask(function(){var S=[].concat(_.Pd(Db));Db=null;var u=py().loadMultiple(S);S=_.O(S);for(var T=S.next();!T.done;T=S.next())T=T.value,u[T].then(L4s.get(T).resolve,L4s.get(T).reject)}));
Db.push(L);return N};
Siw=function(L){L=L.buf.charCodeAt(L.pos++);return N3F[L]};
le=function(L){var Z=0,N=0;do{var S=Siw(L);Z|=(S&31)<<N;N+=5}while(S&32);return Z<0?Z+4294967296:Z};
uTx=function(){var L=!0;L=L===void 0?!1:L;var Z=Z===void 0?!1:Z;var N=N===void 0?{}:N;var S=N.cssRowKey||"",u=N.combinedSignature||"";!S&&window&&window._F_cssRowKey&&(S=window._F_cssRowKey,!u&&window._F_combinedSignature&&(u=window._F_combinedSignature));if(S&&typeof window._F_installCss!=="function")throw Error("Bd");var T=N.loaderClass||_.vM,W=sZH("base-js");L=new T(R1s(Ejs("",W)),S,u,L,Z);Z=N.useCors||W&&W.hasAttribute("crossorigin");W=N.corsMode||W&&W.getAttribute("crossorigin");Z&&(L.useCors_=
Z);W&&(L.corsMode_=W);N.urlMaxLength&&(L.urlMaxLength=N.urlMaxLength);N.fetchPriority&&(L.fetchPriority=N.fetchPriority);var V=py();V.JSC$10053_loader_=L;V.setBatchModeEnabled(!0);_.imP=N.batchingStrategy==="BATCH"?Zmw:function(M){return Promise.resolve(V.load(M))}};
Omt=function(L,Z,N){T3w(L,Z);L[Z][tyt].unshift(N)};
T3w=function(L,Z){if(!L[Z]||!L[Z][tyt]){var N=L[Z],S=N?[N]:[];L[Z]=function(){for(var u=_.O(S),T=u.next();!T.done;T=u.next())T.value.apply(this,arguments)};
L[Z][tyt]=S}};
W4f=function(L){if(!L)return[];var Z=[];L=_.O(L);for(var N=L.next();!N.done;N=L.next())N=N.value,Array.isArray(N)?Z.push.apply(Z,_.Pd(W4f(N))):Z.push(N);return Z};
_.R6=function(L,Z){if(L&&Vyf.test(L)||L==="//")return L;if(bmw===void 0){bmw=!1;try{var N=new URL("b","http://a");N.pathname="c%20d";bmw=N.href==="http://a/c%20d"}catch(S){}}Z||(Z=document.baseURI||window.location.href);if(bmw)try{return(new URL(L,Z)).href}catch(S){return L}o6||(o6=document.implementation.createHTMLDocument("temp"),o6.base=o6.createElement("base"),o6.head.appendChild(o6.base),o6.anchor=o6.createElement("a"),o6.body.appendChild(o6.anchor));o6.base.href=Z;o6.anchor.href=L;return o6.anchor.href||
L};
gow=function(L,Z){return L.replace(MyH,function(N,S,u,T){return S+"'"+_.R6(u.replace(/["']/g,""),Z)+"'"+T})};
GnG=function(L){return L.substring(0,L.lastIndexOf("/")+1)};
D30=function(){F4B=!1;for(var L=cM.length,Z=0;Z<L;Z++){var N=cM[Z];if(N)try{N()}catch(S){setTimeout(function(){throw S;})}}cM.splice(0,L);
$3H+=L};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(L){console.log("["+L.is+"]: registered")};
vo_=function(L){l2_.push(L)};
no=function(L){return ooH[L]||(ooH[L]=L.indexOf("-")<0?L:L.replace(RUx,function(Z){return Z[1].toUpperCase()}))};
Ko=function(L){return ooH[L]||(ooH[L]=L.replace(cZh,"-$1").toLowerCase())};
noP=function(L,Z){var N=Z.parentInfo&&noP(L,Z.parentInfo);if(N)for(L=N.firstChild,N=0;L;L=L.nextSibling){if(Z.parentIndex===N++)return L}else return L};
K4x=function(L,Z){L=L._methodHost||L;return function(N){if(L[Z])L[Z](N,N.detail);else console.warn("listener method `"+Z+"` not defined")}};
fo=function(L){return L.indexOf(".")>=0};
kb=function(L){var Z=L.indexOf(".");return Z===-1?L:L.slice(0,Z)};
f2_=function(L,Z){return L.indexOf(Z+".")===0};
yb=function(L,Z){return Z.indexOf(L+".")===0};
wx=function(L,Z,N){return Z+N.slice(L.length)};
knP=function(L,Z){return L===Z||f2_(L,Z)||yb(L,Z)};
UV=function(L){if(Array.isArray(L)){for(var Z=[],N=0;N<L.length;N++)for(var S=L[N].toString().split("."),u=0;u<S.length;u++)Z.push(S[u]);return Z.join(".")}return L};
yZw=function(L){return Array.isArray(L)?UV(L).split("."):L.toString().split(".")};
Yb=function(L,Z,N){Z=yZw(Z);for(var S=0;S<Z.length;S++){if(!L)return;L=L[Z[S]]}N&&(N.path=Z.join("."));return L};
wtB=function(L,Z,N){var S=yZw(Z),u=S[S.length-1];if(S.length>1){for(Z=0;Z<S.length-1;Z++)if(L=L[S[Z]],!L)return;L[u]=N}else L[Z]=N;return S.join(".")};
U31=function(L,Z,N){var S=L[Z];if(!S)S=L[Z]={};else if(!L.hasOwnProperty(Z)&&(S=L[Z]=Object.create(L[Z]),N))for(var u in S)for(L=S[u],Z=S[u]=Array(L.length),N=0;N<L.length;N++)Z[N]=L[N];return S};
I6=function(L,Z,N,S,u,T){if(Z){var W=!1,V=eS++,M;for(M in N){var G=u?kb(M):M;if(G=Z[G])for(var D=0,l=G.length,v=void 0;D<l&&(v=G[D]);D++)v.info&&v.info.lastRun===V||u&&!Yi_(M,v.trigger)||(v.info&&(v.info.lastRun=V),v.fn(L,M,N,S,v.info,u,T),W=!0)}return W}return!1};
Yi_=function(L,Z){if(Z){var N=Z.name;return N==L||!(!Z.structured||!f2_(N,L))||!(!Z.wildcard||!yb(N,L))}return!0};
eUf=function(L,Z,N,S,u){Z=typeof u.method==="string"?L[u.method]:u.method;N=u.property;Z?Z.call(L,L.__data[N],S[N]):u.dynamicFn||console.warn("observer method `"+u.method+"` not defined")};
I2s=function(L,Z,N,S){N={value:N,queueProperty:!0};S&&(N.path=S);(0,_.dx)(L).dispatchEvent(new CustomEvent(Z,{detail:N}))};
d3_=function(L,Z,N,S,u,T){T=(S=(T?kb(Z):Z)!=Z?Z:null)?Yb(L,S):L.__data[Z];S&&T===void 0&&(T=N[Z]);I2s(L,u.eventName,T,S)};
a2t=function(L,Z,N,S,u){N=L.__data[Z];a6&&(N=a6(N,u.attrName,"attribute",L));L._propertyToAttribute(Z,u.attrName,N)};
sLB=function(L){var Z=L.constructor.__orderedComputedDeps;if(!Z){Z=new Map;for(var N=L.__computeEffects,S=hUL(L),u=S.counts,T=S.ready,W=S.total;S=T.shift();)Z.set(S,Z.size),(S=N[S])&&S.forEach(function(V){V=V.info.methodInfo;--W;--u[V]===0&&T.push(V)});
W!==0&&console.warn("Computed graph for "+L.localName+" incomplete; circular?");L.constructor.__orderedComputedDeps=Z}return Z};
hUL=function(L){var Z=L.__computeInfo,N={};L=L.__computeEffects;var S=[],u=0,T;for(T in Z){var W=Z[T];u+=N[T]=W.args.filter(function(M){return!M.literal}).length+(W.dynamicFn?1:0)}for(var V in L)Z[V]||S.push(V);
return{counts:N,ready:S,total:u}};
EoL=function(L,Z,N,S,u){Z=jL_(L,Z,N,S,u);if(Z===h2)return!1;u=u.methodInfo;if(L.__dataHasAccessor&&L.__dataHasAccessor[u])return L._setPendingProperty(u,Z,!0);L[u]=Z;return!1};
zUw=function(L,Z,N,S,u,T,W){N.bindings=N.bindings||[];S={kind:S,target:u,parts:T,literal:W,isCompound:T.length!==1};N.bindings.push(S);S.target&&S.kind!="attribute"&&S.kind!="text"&&!S.isCompound&&S.parts[0].mode==="{"&&(N=S.parts[0],T=N.negate,S.listenerEvent=N.event||Ko(u)+"-changed",S.listenerNegate=T);u=Z.nodeInfoList.length;for(N=0;N<S.parts.length;N++){var V=S.parts[N];V.compoundIndex=N;T=L;W=Z;var M=S,G=V,D=u;if(!G.literal)if(M.kind==="attribute"&&M.target[0]==="-")console.warn("Cannot set attribute "+
M.target+' because "-" is not a valid attribute starting character');else for(V=G.dependencies,M={index:D,binding:M,part:G,evaluator:T},G=0;G<V.length;G++)D=V[G],typeof D=="string"&&(D=PFw(D),D.wildcard=!0),T._addTemplatePropertyEffect(W,D.rootProperty,{fn:ptt,info:M,trigger:D})}};
ptt=function(L,Z,N,S,u,T,W){W=W[u.index];var V=u.binding,M=u.part;T&&M.source&&Z.length>M.source.length&&V.kind=="property"&&!V.isCompound&&W.__isPropertyEffectsClient&&W.__dataHasAccessor&&W.__dataHasAccessor[V.target]?(N=N[Z],Z=wx(M.source,V.target,Z),W._setPendingPropertyOrPath(Z,N,!1,!0)&&L._enqueueClient(W)):(Z=u.evaluator._evaluateBinding(L,M,Z,N,S,T),Z!==h2&&(V.isCompound&&(N=W.__dataCompoundStorage[V.target],N[M.compoundIndex]=Z,Z=N.join("")),V.kind==="attribute"||V.target!=="textContent"&&
(V.target!=="value"||W.localName!=="input"&&W.localName!=="textarea")||(Z=Z==void 0?"":Z),M=Z,a6&&(M=a6(M,V.target,V.kind,W)),V.kind=="attribute"?L._valueToNodeAttribute(W,M,V.target):(V=V.target,W.__isPropertyEffectsClient&&W.__dataHasAccessor&&W.__dataHasAccessor[V]?W.__readOnly&&W.__readOnly[V]||W._setPendingProperty(V,M)&&L._enqueueClient(W):L._setUnmanagedPropertyToNode(W,V,M))))};
m3G=function(L,Z,N){if(N.listenerEvent){var S=N.parts[0];L.addEventListener(N.listenerEvent,function(u){var T=N.target,W=S.source,V=S.negate,M=u.detail,G=M&&M.path;G?(W=wx(T,W,G),u=M&&M.value):u=u.currentTarget[T];Z.__readOnly&&Z.__readOnly[W]||!Z._setPendingPropertyOrPath(W,V?!u:u,!0,!!G)||M&&M.queueProperty||Z._invalidateProperties()})}};
JZP=function(L,Z,N,S,u,T){T=Z.static||T&&(typeof T!=="object"||T[Z.methodName]);u={methodName:Z.methodName,args:Z.args,methodInfo:u,dynamicFn:T};for(var W=0,V=void 0;W<Z.args.length&&(V=Z.args[W]);W++)V.literal||L._addPropertyEffect(V.rootProperty,N,{fn:S,info:u,trigger:V});T&&L._addPropertyEffect(Z.methodName,N,{fn:S,info:u});return u};
jL_=function(L,Z,N,S,u){S=L._methodHost||L;var T=S[u.methodName];if(T)return L=L._marshalArgs(u.args,Z,N),L===h2?h2:T.apply(S,L);u.dynamicFn||console.warn("method `"+u.methodName+"` not defined")};
CFs=function(L){for(var Z="",N=0;N<L.length;N++)Z+=L[N].literal||"";return Z};
Xtf=function(L){if(L=L.match(/([^\s]+?)\(([\s\S]*)\)/)){var Z={methodName:L[1],static:!0,args:rZw};return L[2].trim()?QLx(L[2].replace(/\\,/g,"&comma;").split(","),Z):Z}return null};
QLx=function(L,Z){Z.args=L.map(function(N){N=PFw(N);N.literal||(Z.static=!1);return N},this);
return Z};
PFw=function(L){L=L.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var Z={name:L,value:"",literal:!1},N=L[0];N==="-"&&(N=L[1]);N>="0"&&N<="9"&&(N="#");switch(N){case "'":case '"':Z.value=L.slice(1,-1);Z.literal=!0;break;case "#":Z.value=Number(L),Z.literal=!0}Z.literal||(Z.rootProperty=kb(L),Z.structured=fo(L),Z.structured&&(Z.wildcard=L.slice(-2)==".*",Z.wildcard&&(Z.name=L.slice(0,-2))));return Z};
AZs=function(L,Z,N){L=Yb(L,N);L===void 0&&(L=Z[N]);return L};
Hmh=function(L,Z,N,S){S={indexSplices:S};sV&&!L._overrideLegacyUndefined&&(Z.splices=S);L.notifyPath(N+".splices",S);L.notifyPath(N+".length",Z.length);sV&&!L._overrideLegacyUndefined&&(S.indexSplices=[])};
jS=function(L,Z,N,S,u,T){Hmh(L,Z,N,[{index:S,addedCount:u,removed:T,object:Z,type:"splice"}])};
B3H=function(L){L=gow((L.body?L.body:L).textContent,L.baseURI);var Z=document.createElement("style");Z.textContent=L;return Z};
qiH=function(L){L=L.trim().split(/\s+/);for(var Z=[],N=0;N<L.length;N++)Z.push.apply(Z,_.Pd(x3B(L[N])));return Z};
x3B=function(L){var Z=EV.import(L);if(!Z)return console.warn("Could not find style data in module named",L),[];if(Z._styles===void 0){L=[];L.push.apply(L,_.Pd(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Z)));var N=Z.querySelector("template");N&&L.push.apply(L,_.Pd(LXP(N,Z.assetpath)));Z._styles=L}return Z._styles};
LXP=function(L,Z){if(!L._styles){for(var N=[],S=L.content.querySelectorAll("style"),u=0;u<S.length;u++){var T=S[u],W=T.getAttribute("include");W&&N.push.apply(N,_.Pd(qiH(W).filter(function(V,M,G){return G.indexOf(V)===M})));
Z&&(T.textContent=gow(T.textContent,Z));N.push(T)}L._styles=N}return L._styles};
ZM_=function(L){return(L=EV.import(L))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(L):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(L){var Z=[];L=L.querySelectorAll("link[rel=import][type~=css]");for(var N=0;N<L.length;N++){var S=L[N];if(S.import){var u=S.import;if((S=S.hasAttribute("shady-unscoped"))&&!u._unscopedStyle){var T=B3H(u);T.setAttribute("shady-unscoped","");u._unscopedStyle=T}else u._style||(u._style=B3H(u));Z.push(S?u._unscopedStyle:u._style)}}return Z};
Sc1=function(L){L=L.trim().split(/\s+/);for(var Z="",N=0;N<L.length;N++)Z+=NcA(L[N]);return Z};
NcA=function(L){var Z=EV.import(L);if(Z&&Z._cssText===void 0){var N=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Z),S=Z.querySelector("template");S&&(N+=iMH(S,Z.assetpath));Z._cssText=N||null}Z||console.warn("Could not find style data in module named",L);return Z&&Z._cssText||""};
iMH=function(L,Z){var N="";L=LXP(L,Z);for(Z=0;Z<L.length;Z++){var S=L[Z];S.parentNode&&S.parentNode.removeChild(S);N+=S.textContent}return N};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(L){var Z="";L=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(L);for(var N=0;N<L.length;N++)Z+=L[N].textContent;return Z};
PM=function(L,Z){return{index:L,removed:[],addedCount:Z}};
Tcx=function(L,Z,N,S){var u=0,T=0,W=0,V=0,M=Math.min(Z-u,S-T);if(u==0&&T==0)a:{for(W=0;W<M;W++)if(L[W]!==N[W])break a;W=M}if(Z==L.length&&S==N.length){V=L.length;for(var G=N.length,D=0;D<M-W&&uQw(L[--V],N[--G]);)D++;V=D}u+=W;T+=W;Z-=V;S-=V;if(Z-u==0&&S-T==0)return[];if(u==Z){for(Z=PM(u,0);T<S;)Z.removed.push(N[T++]);return[Z]}if(T==S)return[PM(u,Z-u)];M=u;W=T;S=S-W+1;V=Z-M+1;Z=Array(S);for(G=0;G<S;G++)Z[G]=Array(V),Z[G][0]=G;for(G=0;G<V;G++)Z[0][G]=G;for(G=1;G<S;G++)for(D=1;D<V;D++)if(L[M+D-1]===
N[W+G-1])Z[G][D]=Z[G-1][D-1];else{var l=Z[G-1][D]+1,v=Z[G][D-1]+1;Z[G][D]=l<v?l:v}M=Z.length-1;W=Z[0].length-1;S=Z[M][W];for(L=[];M>0||W>0;)M==0?(L.push(2),W--):W==0?(L.push(3),M--):(V=Z[M-1][W-1],G=Z[M-1][W],D=Z[M][W-1],l=G<D?G<V?G:V:D<V?D:V,l==V?(V==S?L.push(0):(L.push(1),S=V),M--,W--):l==G?(L.push(3),M--,S=G):(L.push(2),W--,S=D));L.reverse();Z=void 0;M=[];for(W=0;W<L.length;W++)switch(L[W]){case 0:Z&&(M.push(Z),Z=void 0);u++;T++;break;case 1:Z||(Z=PM(u,0));Z.addedCount++;u++;Z.removed.push(N[T]);
T++;break;case 2:Z||(Z=PM(u,0));Z.addedCount++;u++;break;case 3:Z||(Z=PM(u,0)),Z.removed.push(N[T]),T++}Z&&M.push(Z);return M};
tWG=function(L,Z){return Tcx(L,L.length,Z,Z.length)};
uQw=function(L,Z){return L===Z};
WXw=function(L){if(L instanceof OM_)return L.value;throw Error("Jd`"+L);};
VWH=function(L,Z){for(var N in Z)N===null?L.style.removeProperty(N):L.style.setProperty(N,Z[N])};
bMP=function(L,Z){return(L=window.getComputedStyle(L).getPropertyValue(Z))?L.trim():""};
FXt=function(L){requestAnimationFrame(function(){MWG?MWG(L):(gMH||(gMH=new Promise(function(Z){G1h=Z}),document.readyState==="complete"?G1h():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&G1h()})),gMH.then(function(){L&&L()}))})};
lKP=function(L){$H1=L&&L.shimcssproperties?!1:DH1||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
nMG=function(L){if(!(vMh.indexOf(L)>-1)&&L!=="touchend"&&oMw&&Rx_&&c9A)return{passive:!0}};
y91=function(L){for(var Z=KXs?["click"]:vMh,N=0,S;N<Z.length;N++)S=Z[N],L?(fKL.length=0,document.addEventListener(S,k1x,!0)):document.removeEventListener(S,k1x,!0)};
po=function(L){var Z=L.type;return vMh.indexOf(Z)>-1?Z==="mousemove"?(Z=L.buttons===void 0?1:L.buttons,L instanceof window.MouseEvent&&!wVs&&(Z=UHA[L.which]||0),!!(Z&1)):(L.button===void 0?0:L.button)===0:!1};
Yc0=function(L){if(L.type==="click"){if(L.detail===0)return!0;var Z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L);if(!Z.nodeType||Z.nodeType!==Node.ELEMENT_NODE)return!0;Z=Z.getBoundingClientRect();var N=L.pageX;L=L.pageY;return!(N>=Z.left&&N<=Z.right&&L>=Z.top&&L<=Z.bottom)}return!1};
exH=function(L,Z,N){L.movefn=Z;L.upfn=N;document.addEventListener("mousemove",Z);document.addEventListener("mouseup",N)};
zD=function(L){document.removeEventListener("mousemove",L.movefn);document.removeEventListener("mouseup",L.upfn);L.movefn=null;L.upfn=null};
IKt=function(L,Z){for(var N=document.elementFromPoint(L,Z),S=N;S&&S.shadowRoot&&!window.ShadyDOM;){var u=S;S=S.shadowRoot.elementFromPoint(L,Z);if(u===S)break;S&&(N=S)}return N};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(L){var Z=dH_(L);return Z.length>0?Z[0]:L.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(L){var Z=L.type,N=L.currentTarget.__polymerGestures;if(N&&(N=N[Z])){if(!L.__polymerGesturesHandled&&(L.__polymerGesturesHandled={},Z.slice(0,5)==="touch")){var S=L.changedTouches[0];Z==="touchstart"&&L.touches.length===1&&(aKf=S.identifier);if(aKf!==S.identifier)return;oMw||(Z==="touchstart"||Z==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L)}S=
L.__polymerGesturesHandled;if(!S.skip){for(var u=0,T;u<md.length;u++)T=md[u],N[T.name]&&!S[T.name]&&T.flow&&T.flow.start.indexOf(L.type)>-1&&T.reset&&T.reset();for(u=0;u<md.length;u++)T=md[u],N[T.name]&&!S[T.name]&&(S[T.name]=!0,T[Z](L))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(L){var Z=L.changedTouches[0],N=L.type;if(N==="touchstart")hxG=Z.clientX,sjh=Z.clientY,jjH=!1;else if(N==="touchmove"&&!jjH){jjH=!0;N="auto";for(var S=dH_(L),u=0,T;u<S.length;u++)if(T=S[u],T.__polymerGesturesTouchAction){N=T.__polymerGesturesTouchAction;break}S=!1;u=Math.abs(hxG-Z.clientX);Z=Math.abs(sjh-Z.clientY);L.cancelable&&(N==="none"?S=!0:N==="pan-x"?S=Z>u:N==="pan-y"&&(S=u>Z));S?L.preventDefault():
J2("track")}};
rx=function(L,Z,N){return Co[Z]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L,Z,N),!0):!1};
Qb=function(L,Z,N){return Co[Z]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L,Z,N),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(L,Z,N){var S=Co[Z],u=S.deps,T=S.name,W=L.__polymerGestures;W||(L.__polymerGestures=W={});for(var V=0,M,G;V<u.length;V++)M=u[V],KXs&&vMh.indexOf(M)>-1&&M!=="click"||((G=W[M])||(W[M]=G={_count:0}),G._count===0&&L.addEventListener(M,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,nMG(M)),G[T]=(G[T]||0)+1,G._count=(G._count||0)+1);L.addEventListener(Z,N);S.touchAction&&_.Xl(L,S.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(L,Z,N){var S=Co[Z],u=S.deps;S=S.name;var T=L.__polymerGestures;if(T)for(var W=0,V,M;W<u.length;W++)V=u[W],(M=T[V])&&M[S]&&(M[S]=(M[S]||1)-1,M._count=(M._count||1)-1,M._count===0&&L.removeEventListener(V,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,nMG(V)));L.removeEventListener(Z,N)};
EMA=function(L){md.push(L);for(var Z=0;Z<L.emits.length;Z++)Co[L.emits[Z]]=L};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(L){for(var Z=0,N;Z<md.length;Z++){N=md[Z];for(var S=0,u;S<N.emits.length;S++)if(u=N.emits[S],u===L)return N}return null};
_.Xl=function(L,Z){oMw&&L instanceof HTMLElement&&A2.run(function(){L.style.touchAction=Z});
L.__polymerGesturesTouchAction=Z};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(L,Z,N){Z=new Event(Z,{bubbles:!0,cancelable:!0,composed:!0});Z.detail=N;(0,_.dx)(L).dispatchEvent(Z);Z.defaultPrevented&&(L=N.preventer||N.sourceEvent)&&L.preventDefault&&L.preventDefault()};
J2=function(L){L=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L);L.info&&(L.info.prevent=!0)};
xb=function(L,Z,N,S){Z&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Z,L,{x:N.clientX,y:N.clientY,sourceEvent:N,preventer:S,prevent:function(u){return J2(u)}})};
Pmf=function(L,Z,N){if(L.prevent)return!1;if(L.started)return!0;N=Math.abs(L.y-N);return Math.abs(L.x-Z)>=5||N>=5};
pVA=function(L,Z,N){if(Z){var S=L.moves[L.moves.length-2],u=L.moves[L.moves.length-1],T=u.x-L.x,W=u.y-L.y,V=0;if(S){var M=u.x-S.x;V=u.y-S.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Z,"track",{state:L.state,x:N.clientX,y:N.clientY,dx:T,dy:W,ddx:M,ddy:V,sourceEvent:N,hover:function(){return IKt(N.clientX,N.clientY)}})}};
mH0=function(L,Z,N){var S=Math.abs(Z.clientX-L.x),u=Math.abs(Z.clientY-L.y),T=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N||Z);!T||zxh[T.localName]&&T.hasAttribute("disabled")||!(isNaN(S)||isNaN(u)||S<=25&&u<=25||Yc0(Z))||L.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(T,"tap",{x:Z.clientX,y:Z.clientY,sourceEvent:Z,preventer:N})};
J9B=function(L,Z,N,S,u){var T;u&&(T=typeof N==="object"&&N!==null)&&(S=L.__dataTemp[Z]);S=S!==N&&(S===S||N===N);T&&S&&(L.__dataTemp[Z]=N);return S};
r9h=function(){if(q4&&!LH){if(!CmL){CmL=!0;var L=document.createElement("style");L.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(L)}return!0}return!1};
XV0=function(){return Qjs};
A9h=function(L,Z){Qjs=L;Object.setPrototypeOf(L,Z.prototype);new Z;Qjs=null};
HM1=function(L,Z){for(var N=0;N<Z.length;N++){var S=Z[N];if(!!L!=!!S.__hideTemplateChildren__)if(S.nodeType===Node.TEXT_NODE)L?(S.__polymerTextContent__=S.textContent,S.textContent=""):S.textContent=S.__polymerTextContent__;else if(S.localName==="slot")if(L)S.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.dx)((0,_.dx)(S).parentNode).replaceChild(S.__polymerReplaced__,S);else{var u=S.__polymerReplaced__;u&&(0,_.dx)((0,_.dx)(u).parentNode).replaceChild(S,u)}else S.style&&(L?(S.__polymerDisplay__=
S.style.display,S.style.display="none"):S.style.display=S.__polymerDisplay__);S.__hideTemplateChildren__=L;S._showHideChildren&&S._showHideChildren(L)}};
Bc0=function(L){return(L=L.__dataHost)&&L._methodHost||L};
LaH=function(L,Z,N){var S=N.mutableData?xHA:Zf;N7.mixin&&(S=N7.mixin(S));var u=function(){return S.apply(this,arguments)||this};
_.f(u,S);u.prototype.__templatizeOptions=N;u.prototype._bindTemplate(L);qcf(u,L,Z,N);return u};
uEG=function(L,Z,N,S){var u=N.forwardHostProp;if(u&&Z.hasHostProps){var T=L.localName=="template",W=Z.templatizeTemplateClass;if(!W){if(T){var V=N.mutableData?Z5F:NKH;W=function(){return V.apply(this,arguments)||this};
_.f(W,V);W=Z.templatizeTemplateClass=W}else{var M=L.constructor;W=function(){return M.apply(this,arguments)||this};
_.f(W,M);W=Z.templatizeTemplateClass=W}var G=Z.hostProps,D;for(D in G)W.prototype._addPropertyEffect("_host_"+D,W.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:SWw(u)}),W.prototype._createNotifyingProperty("_host_"+D);Sj&&S&&i5w(Z,N,S)}L.__dataProto&&Object.assign(L.__data,L.__dataProto);if(T)A9h(L,W),L.__dataTemp={},L.__dataPending=null,L.__dataOld=null,L._enableProperties();else{Object.setPrototypeOf(L,W.prototype);Z=Z.hostProps;for(var l in Z)l="_host_"+l,l in L&&(Z=L[l],delete L[l],L.__data[l]=
Z)}}};
SWw=function(L){return function(Z,N,S){L.call(Z.__templatizeOwner,N.substring(6),S[N])}};
qcf=function(L,Z,N,S){var u=N.hostProps||{},T;for(T in S.instanceProps){delete u[T];var W=S.notifyInstanceProp;W&&L.prototype._addPropertyEffect(T,L.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:TKG(W)})}if(S.forwardHostProp&&Z.__dataHost)for(var V in u)N.hasHostProps||(N.hasHostProps=!0),L.prototype._addPropertyEffect(V,L.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:td_()})};
TKG=function(L){return function(Z,N,S){L.call(Z.__templatizeOwner,Z,N,S[N])}};
td_=function(){return function(L,Z,N){L.__dataHost._setPendingPropertyOrPath("_host_"+Z,N[Z],!0,!0)}};
N7=function(L,Z,N){if(iN&&!Bc0(L))throw Error("Pd");N=N||{};if(L.__templatizeOwner)throw Error("Qd");L.__templatizeOwner=Z;var S=(Z?Z.constructor:Zf)._parseTemplate(L),u=S.templatizeInstanceClass;u||(u=LaH(L,S,N),S.templatizeInstanceClass=u);var T=Bc0(L);uEG(L,S,N,T);N=function(){return u.apply(this,arguments)||this};
_.f(N,u);N.prototype._methodHost=T;N.prototype.__dataHost=L;N.prototype.__templatizeOwner=Z;N.prototype.__hostProps=S.hostProps;return N};
i5w=function(L,Z,N){N=N.constructor._properties;L=L.propertyEffects;Z=Z.instanceProps;for(var S in L)if(!(N[S]||Z&&Z[S]))for(var u=L[S],T=0;T<u.length;T++){var W=u[T].info.part;if(!W.signature||!W.signature.static){console.warn("Property '"+S+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
O51=function(L,Z){for(var N;Z;)if(N=Z.__dataHost?Z:Z.__templatizeInstance)if(N.__dataHost!=L)Z=N.__dataHost;else return N;else Z=(0,_.dx)(Z).parentNode;return null};
uN=function(L){return L.localName==="slot"};
WaG=function(){for(var L=Tc.prototype,Z="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),N={},S=0;S<Z.length;N={method$jscomp$33:void 0},S++)N.method$jscomp$33=Z[S],L[N.method$jscomp$33]=function(u){return function(){return this.node[u.method$jscomp$33].apply(this.node,arguments)}}(N)};
Vd1=function(L,Z){for(var N={},S=0;S<Z.length;N={name$jscomp$448:void 0},S++)N.name$jscomp$448=Z[S],Object.defineProperty(L,N.name$jscomp$448,{get:function(u){return function(){return this.node[u.name$jscomp$448]}}(N),
configurable:!0})};
b51=function(){for(var L=Tc.prototype,Z=["textContent","innerHTML","className"],N={},S=0;S<Z.length;N={name$jscomp$449:void 0},S++)N.name$jscomp$449=Z[S],Object.defineProperty(L,N.name$jscomp$449,{get:function(u){return function(){return this.node[u.name$jscomp$449]}}(N),
set:function(u){return function(T){this.node[u.name$jscomp$449]=T}}(N),
configurable:!0})};
Md_=function(){tQ=document.documentElement.getAttribute("dir");tQ=document.documentElement.getAttribute("dir");for(var L=0;L<OU.length;L++){var Z=OU[L];Z.__autoDirOptOut||Z.setAttribute("dir",tQ)}};
$QH=function(){WX=!0;requestAnimationFrame(function(){WX=!1;gTF(G5w);setTimeout(function(){for(var L=0,Z=Ve.length;L<Z;L++)FaA(Ve.shift())})})};
gTF=function(L){for(;L.length;)FaA(L.shift())};
FaA=function(L){var Z=L[0],N=L[1];L=L[2];try{N.apply(Z,L)}catch(S){setTimeout(function(){throw S;})}};
_.DQA=function(L,Z,N){WX||$QH();G5w.push([L,Z,N])};
_.bN=function(L,Z,N){WX||$QH();Ve.push([L,Z,N])};
oT_=function(L,Z){Z=Z===void 0?!1:Z;if(!lis||!vTs||!lis.handlesDynamicScoping)return null;var N=vTs.ScopingShim;if(!N)return null;var S=N.scopeForNode(L),u=(0,_.dx)(L).getRootNode(),T=function(W){if((0,_.dx)(W).getRootNode()===u){var V=Array.from(lis.nativeMethods.querySelectorAll.call(W,"*"));V.push(W);for(W=0;W<V.length;W++){var M=V[W];if((0,_.dx)(M).getRootNode()===u){var G=N.currentScopeForNode(M);G!==S&&(G!==""&&N.unscopeNode(M,G),N.scopeNode(M,S))}}}};
T(L);return Z?(Z=new MutationObserver(function(W){for(var V=0;V<W.length;V++)for(var M=W[V],G=0;G<M.addedNodes.length;G++){var D=M.addedNodes[G];D.nodeType===Node.ELEMENT_NODE&&T(D)}}),Z.observe(L,{childList:!0,
subtree:!0}),Z):null};
RHx=function(){document.body.removeAttribute("unresolved")};
k5s=function(L){var Z=L=L.replace(c5s,"").replace(nTG,""),N=new Kat;N.start=0;N.end=Z.length;for(var S=N,u=0,T=Z.length;u<T;u++)if(Z[u]==="{"){S.rules||(S.rules=[]);var W=S,V=W.rules[W.rules.length-1]||null;S=new Kat;S.start=u+1;S.parent=W;S.previous=V;W.rules.push(S)}else Z[u]==="}"&&(S.end=u+1,S=S.parent||N);return fiH(N,L)};
fiH=function(L,Z){var N=Z.substring(L.start,L.end-1);L.parsedCssText=L.cssText=N.trim();L.parent&&(N=Z.substring(L.previous?L.previous.end:L.parent.start,L.start-1),N=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(N),N=N.replace(y51," "),N=N.substring(N.lastIndexOf(";")+1),N=L.parsedSelector=L.selector=N.trim(),L.atRule=N.indexOf("@")===0,L.atRule?N.indexOf("@media")===0?L.type=4:N.match(wah)&&(L.type=7,L.keyframesName=L.selector.split(y51).pop()):N.indexOf("--")===
0?L.type=1E3:L.type=1);if(N=L.rules)for(var S=0,u=N.length,T=void 0;S<u&&(T=N[S]);S++)fiH(T,Z);return L};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(L){return L.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var Z=arguments[1],N=6-Z.length;N--;)Z="0"+Z;return"\\"+Z})};
UQL=function(L,Z,N){N=N===void 0?"":N;var S="";if(L.cssText||L.rules){var u=L.rules;if(u&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(u))for(var T=0,W=u.length,V=void 0;T<W&&(V=u[T]);T++)S=UQL(V,Z,S);else Z?Z=L.cssText:(Z=L.cssText,Z=Z.replace(YWF,"").replace(eHw,""),Z=Z.replace(IiB,"").replace(dQs,"")),(S=Z.trim())&&(S="  "+S+"\n")}S&&(L.selector&&(N+=L.selector+" {\n"),N+=S,L.selector&&(N+="}\n\n"));return N};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(L){L=L[0];return!!L&&!!L.selector&&L.selector.indexOf("--")===0};
hHh=function(L){if(L=aiA[L])L._applyShimCurrentVersion=L._applyShimCurrentVersion||0,L._applyShimValidatingVersion=L._applyShimValidatingVersion||0,L._applyShimNextVersion=(L._applyShimNextVersion||0)+1};
sA0=function(L){return L._applyShimCurrentVersion===L._applyShimNextVersion};
ET_=function(L){L._applyShimValidatingVersion=L._applyShimNextVersion;L._validating||(L._validating=!0,jAh.then(function(){L._applyShimCurrentVersion=L._applyShimNextVersion;L._validating=!1}))};
paA=function(L){if(!L)return"";typeof L==="string"&&(L=k5s(L));return UQL(L,PyF)};
zHx=function(L){!L.__cssRules&&L.textContent&&(L.__cssRules=k5s(L.textContent));return L.__cssRules||null};
J5B=function(L,Z,N,S){if(L){var u=!1,T=L.type;if(S&&T===4){var W=L.selector.match(mQh);W&&(window.matchMedia(W[1]).matches||(u=!0))}T===1?Z(L):N&&T===7?N(L):T===1E3&&(u=!0);if((L=L.rules)&&!u)for(u=0,T=L.length,W=void 0;u<T&&(W=L[u]);u++)J5B(W,Z,N,S)}};
Cys=function(L,Z){var N=L.indexOf("var(");if(N===-1)return Z(L,"","","");a:{var S=0;var u=N+3;for(var T=L.length;u<T;u++)if(L[u]==="(")S++;else if(L[u]===")"&&--S===0)break a;u=-1}S=L.substring(N+4,u);N=L.substring(0,N);L=Cys(L.substring(u+1),Z);T=S.indexOf(",");if(T===-1)return Z(N,S.trim(),"",L);u=S.substring(0,T).trim();S=S.substring(T+1).trim();return Z(N,u,S,L)};
r5H=function(L){if(M7!==void 0)return M7;if(L.__cssBuild===void 0){var Z=L.getAttribute("css-build");if(Z)L.__cssBuild=Z;else{a:{Z=L.localName==="template"?L.content.firstChild:L.firstChild;if(Z instanceof Comment&&(Z=Z.textContent.trim().split(":"),Z[0]==="css-build")){Z=Z[1];break a}Z=""}if(Z!==""){var N=L.localName==="template"?L.content.firstChild:L.firstChild;N.parentNode.removeChild(N)}L.__cssBuild=Z}}return L.__cssBuild||""};
Xah=function(L,Z,N,S){for(var u=Z._noAccessors,T=Object.getOwnPropertyNames(Z),W=0;W<T.length;W++){var V=T[W];if(!(V in S))if(u)L[V]=Z[V];else{var M=Object.getOwnPropertyDescriptor(Z,V);M&&(M.configurable=!0,Object.defineProperty(L,V,M))}}for(var G in QAf)Z[G]&&(N[G]=N[G]||[],N[G].push(Z[G]))};
A5H=function(L,Z,N){Z=Z||[];for(var S=L.length-1;S>=0;S--){var u=L[S];u?Array.isArray(u)?A5H(u,Z):Z.indexOf(u)<0&&(!N||N.indexOf(u)<0)&&Z.unshift(u):console.warn("behavior is null, check for missing or 404 import")}return Z};
H5H=function(L,Z){for(var N in Z){var S=L[N],u=Z[N];L[N]=!("value"in u)&&S&&"value"in S?Object.assign({value:S.value},u):u}};
qWf=function(L,Z,N){var S={},u=function(){return Z.apply(this,arguments)||this};
_.f(u,Z);u._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(W)for(var M=0,G;M<W.length;M++)G=W[M],G.properties&&this.createProperties(G.properties),G.observers&&this.createObservers(G.observers,G.properties);L.properties&&this.createProperties(L.properties);L.observers&&this.createObservers(L.observers,L.properties);this._prepareTemplate()}else Z._finalizeClass.call(this)};
u.prototype.created=function(){Z.prototype.created.call(this);var M=S.created;if(M)for(var G=0;G<M.length;G++)M[G].call(this)};
u.prototype._registered=function(){var M=u.prototype;if(!M.hasOwnProperty("__hasRegisterFinished")){M.__hasRegisterFinished=!0;Z.prototype._registered.call(this);q4&&V(M);M=Object.getPrototypeOf(this);var G=S.beforeRegister;if(G)for(var D=0;D<G.length;D++)G[D].call(M);if(G=S.registered)for(D=0;D<G.length;D++)G[D].call(M)}};
u.prototype._applyListeners=function(){Z.prototype._applyListeners.call(this);var M=S.listeners;if(M)for(var G=0;G<M.length;G++){var D=M[G];if(D)for(var l in D)this._addMethodEventListenerToNode(this,l,D[l])}};
u.prototype._ensureAttributes=function(){var M=S.hostAttributes;if(M)for(var G=M.length-1;G>=0;G--){var D=M[G],l;for(l in D)this._ensureAttribute(l,D[l])}Z.prototype._ensureAttributes.call(this)};
u.prototype.ready=function(){Z.prototype.ready.call(this);var M=S.ready;if(M)for(var G=0;G<M.length;G++)M[G].call(this)};
u.prototype.attached=function(){Z.prototype.attached.call(this);var M=S.attached;if(M)for(var G=0;G<M.length;G++)M[G].call(this)};
u.prototype.detached=function(){Z.prototype.detached.call(this);var M=S.detached;if(M)for(var G=0;G<M.length;G++)M[G].call(this)};
u.prototype.attributeChanged=function(M,G,D){Z.prototype.attributeChanged.call(this);var l=S.attributeChanged;if(l)for(var v=0;v<l.length;v++)l[v].call(this,M,G,D)};
_.gd.Object.defineProperties(u,{properties:{configurable:!0,enumerable:!0,get:function(){var M={};if(W)for(var G=0;G<W.length;G++)H5H(M,W[G].properties);H5H(M,L.properties);return M}},
observers:{configurable:!0,enumerable:!0,get:function(){var M=[];if(W)for(var G=0,D;G<W.length;G++)D=W[G],D.observers&&(M=M.concat(D.observers));L.observers&&(M=M.concat(L.observers));return M}}});
if(N){Array.isArray(N)||(N=[N]);var T=Z.prototype.behaviors;var W=A5H(N,null,T);u.prototype.behaviors=T?T.concat(N):W}var V=function(M){if(W)for(var G=W,D=0;D<G.length;D++)Xah(M,G[D],S,BKF);Xah(M,L,S,xQG)};
q4||V(u.prototype);u.generatedFrom=L;return u};
SyP=function(L){var Z=typeof L!=="string"?L:{is:L,notifyObserversOnUndefined:!0};Z.fastInit===void 0&&(Z.fastInit=!0);return function(N){if(!Z.disableInheritanceCheck&&Object.getPrototypeOf(N.prototype).constructor!==_.Gc)throw Error("Ud");var S=N.prototype;S.is=Z.is;Omt(S,"created",function(){this.hostElement=this;this.polymerController=this});
LQt(S,N,Z.fastInit);Z.notifyObserversOnUndefined&&(S._overrideLegacyUndefined=!0);if(Z7f)for(var u=_.O(Object.getOwnPropertyNames(S)),T=u.next();!T.done;T=u.next()){T=T.value;var W=Object.getOwnPropertyDescriptor(S,T);W.enumerable===!1&&(W.enumerable=!0,Object.defineProperty(S,T,W))}if("template"in N)var V=function(){return N.template};
else Z.template!==void 0&&(V=Z.template);if(V!==void 0){var M;Object.defineProperty(S,"_template",{get:function(){M===void 0&&(M=V());return M},
set:function(G){M=G},
configurable:!0,enumerable:!0})}Polymer(S);N[NI_]=S}};
i7F=function(L){L=L===void 0?{}:L;L.fastInit===void 0&&(L.fastInit=!0);return function(Z){if(!L.disableInheritanceCheck&&Object.getPrototypeOf(Z.prototype).constructor!==F$)throw Error("Vd");LQt(Z.prototype,Z,L.fastInit)}};
LQt=function(L,Z,N){N=N===void 0?!1:N;ui_(Z);N?Omt(L,"created",function(){this.disableEnforceFastDefaultValuesCheck||TIw(Z,this)}):Omt(L,"ready",function(){for(var S={},u=_.O(W4f(this.behaviors)),T=u.next();!T.done;T=u.next())T=T.value,T.properties&&Object.assign(S,tsA(this,T.properties));
Object.assign(S,tsA(this,this.properties));TIw(Z,this);u=_.O(Object.keys(S));for(T=u.next();!T.done;T=u.next())T=T.value,this[T]=S[T]})};
TIw=function(L,Z){if(Z7f){L=new L;for(var N=_.O(Object.getOwnPropertyNames(L)),S=N.next();!S.done;S=N.next())S=S.value,Z[S]=L[S];for(N=Z;N&&N!==Object.prototype;N=Object.getPrototypeOf(N)){S=_.O(Object.getOwnPropertyNames(N));for(var u=S.next();!u.done;u=S.next())u=u.value,L.hasOwnProperty(u)||Object.defineProperty(L,u,O70(Z,u))}}else L.apply(Z)};
O70=function(L,Z){return{get:function(){var N=L[Z];return N instanceof Function?N.bind(L):N},
set:function(N){L[Z]=N}}};
tsA=function(L,Z){if(!Z)return{};for(var N={},S=_.O(Object.keys(Z)),u=S.next();!u.done;u=S.next())if(u=u.value,!Z[u].readOnly){var T=L[u];T!==void 0&&(N[u]=T)}return N};
ui_=function(L){var Z=new L;L=L.prototype.properties||{};for(var N=_.O(Object.keys(L)),S=N.next();!S.done;S=N.next())if(S=S.value,Z.hasOwnProperty(S)){var u=L[S];typeof u==="function"&&(L[S]=u={type:u});Z[S]!=null&&u.type===Object&&(u.type=WQ0(Z[S].constructor))}};
WQ0=function(L){for(var Z=_.O(VsF),N=Z.next();!N.done;N=Z.next())if(N=N.value,L===N)return N;return Object};
b7L=function(L){return function(Z,N){Z.behaviors=Z.behaviors||[];Z.behaviors.push(L||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",Z,N).prototype:void 0));Object.defineProperty(Z,N,{get:function(){return this},
enumerable:!0,configurable:!0})}};
MsF=function(L){L=L===void 0?{}:L;return function(Z,N){Z.properties=Z.properties||{};L.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?L.type=WQ0(Reflect.getMetadata("design:type",Z,N)):L.type=String);var S=L,u=Z.properties[N];Z.properties[N]=u?Object.assign({},u,S):S}};
gpG=function(L){return function(Z,N){Z.listeners=Z.listeners||{};Z.listeners[L]=N}};
Gwf=function(){var L=_.CG.apply(0,arguments);if(L.length===0)throw Error("Wd");return function(Z,N){Z.observers=Z.observers||[];Z.observers.push(N+"("+L.join(",")+")")}};
FQB=function(){var L=_.CG.apply(0,arguments);return function(Z,N,S){var u=Object.getOwnPropertyDescriptor(Z,N).get,T="__compute__"+N;Object.defineProperty(Z,T,{value:u,enumerable:!0});Z.properties=Z.properties||{};u=Z.properties[N];u||(u={},Z.properties[N]=u);u.computed=T+"("+L.join(",")+")";S.get=void 0}};
_.$d=function(L,Z,N){_.ag.call(this);this.JSC$11317_id_=null;this.usingListeners_=!1;this.JSC$11317_listener_=L;this.handler_=N;this.JSC$11317_win_=Z||window;this.callback_=(0,_.hr)(this.JSC$11319_doAction_,this)};
Df=function(L){this.range_=L};
lN=function(L){this.range_=L};
RM=function(L,Z,N){_.ag.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=L;this.scrollTimer_=new _.vX(50);this.JSC$11396_eventHandler_=new _.oM(this);this.scrollDelta_=new _.zF;this.containerIsActuallyContent_=L.tagName==="BODY"||L.tagName==="HTML";this.containerBounds_=$Y_(L);this.containerIsActuallyContent_&&(L=_.UN(),this.containerBounds_.height=L.height,this.containerBounds_.width=L.width);this.margin_=Z||0;if(Z){if(Z=this.containerBounds_.clone(),L=this.margin_){var S=
Math.min(L,Z.height*.25);Z.top+=S;Z.height-=2*S;L=Math.min(L,Z.width*.25);Z.left+=L;Z.width-=2*L}}else Z=this.containerBounds_;this.scrollBounds_=Z;N||this.JSC$11396_eventHandler_.listen(_.Jj(this.containerNode_),"mousemove",this.JSC$11398_onMouseMove);this.JSC$11396_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11398_onTick_)};
_.cX=function(L){this.mechanism=L};
nH=function(L,Z){this.JSC$11494_key_=L;this.JSC$11494_value_=Z};
lIB=function(L){if(L>=55296&&L<=57343||L>1114111)return"\ufffd";L in DYP&&(L=DYP[L]);var Z="";L>65535&&(L-=65536,Z+=String.fromCharCode(L>>>10&1023|55296),L=56320|L&1023);return Z+=String.fromCharCode(L)};
vp_=function(L,Z){return L<Z?1:-1};
Rm_=function(){return function(L){return L.charAt(1)==="#"?L.charAt(2)==="X"||L.charAt(2)==="x"?lIB(parseInt(L.substr(3),16)):lIB(parseInt(L.substr(2),10)):opf[L.slice(1,-1)]}};
KQt=function(L){return L.slice(1,L.length-1).trim().replace(cYL,function(Z){return npt[Z]||" "})};
KH=function(L){return L===32||L===9};
fH=function(L,Z){return Z<L.length?L.charCodeAt(Z):-1};
fI1=function(L){for(;L;){if(L._lastLineBlank)return!0;var Z=L.type;if(Z==="list"||Z==="item")L=L._lastChild;else break}return!1};
kd=function(L){if(kwG.test(L)){var Z=1,N=0,S=0;for(L[N]=="|"&&N++;N<L.length;){switch(L[N]){case "|":S=1;break;case " ":break;case "\t":break;default:S&&(S=0,Z++)}N++}return yY0.test(L)?-Z:Z}return 0};
wzP=function(L){return L=="table"||L=="row"||L=="cell"};
UYw=function(){return new ye("document",[[1,1],[0,0]])};
YyL=function(){};
wd=function(){var L={safe:!1};L=L||{};L.softbreak=L.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=L};
hmh=function(L,Z){var N="";if(L)if(L=L.toLowerCase(),L===" "||emh.test(L))N="space";else if(IIB.test(L))N="esc";else if(L.length==1){if(!Z||dYA.test(L))N=L}else N=aIs.test(L)?L.replace("arrow",""):L=="multiply"?"*":L;return N};
P30=function(L,Z){var N=L.hasModifiers;if(Z.key)N=hmh(Z.key,N);else if(Z.detail&&Z.detail.key)N=hmh(Z.detail.key,N);else{N=Z.keyIdentifier;var S="";N&&(N in snF?S=snF[N]:jnP.test(N)?(N=parseInt(N.replace("U+","0x"),16),S=String.fromCharCode(N).toLowerCase()):S=N.toLowerCase());(N=S)||(N=Z.keyCode,S="",Number(N)&&(N>=65&&N<=90?S=String.fromCharCode(32+N):N>=112&&N<=123?S="f"+(N-112+1):N>=48&&N<=57?S=String(N-48):N>=96&&N<=105?S=String(N-96):S=EpA[N]),N=S);N=N||""}return N===L.key&&(!L.hasModifiers||
!!Z.shiftKey===!!L.shiftKey&&!!Z.ctrlKey===!!L.ctrlKey&&!!Z.altKey===!!L.altKey&&!!Z.metaKey===!!L.metaKey)};
zmP=function(L){return L.length===1?{combo:L,key:L,event:"keydown"}:L.split("+").reduce(function(Z,N){var S=N.split(":");N=S[0];S=S[1];N in pzw?(Z[pzw[N]]=!0,Z.hasModifiers=!0):(Z.key=N,Z.event=S||"keydown");return Z},{combo:L.split(":").shift()})};
mYG=function(L){return L.trim().split(" ").map(function(Z){return zmP(Z)})};
JYB=function(L,Z){if(L&&L.fn){var N=L.fn;L.fn=function(){try{N.apply(this,arguments)}catch(S){if(S instanceof UU)console.warn("Argument '"+S.arg+"'"+(Z?" for method '"+Z+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw S;}}}return L};
rYP=function(){var L=[],Z;var N=N||_.C3P.length;for(Z=0;Z<8;Z++)L[Z]=_.C3P[0|Math.random()*N];return L.join("")};
Qnw=function(){var L=_.CG.apply(0,arguments);return L.length===0?function(Z){return Z}:L.length===1?L[0]:L.reduce(function(Z,N){return function(){return Z(N.apply(null,_.Pd(_.CG.apply(0,arguments))))}})};
Xzw=function(){var L=_.CG.apply(0,arguments);return function(Z){return function(N,S){N=Z(N,S);var u=function(){throw Error("Ge");},T={getState:N.getState,
dispatch:function(W){return u.apply(null,[W].concat(_.Pd(_.CG.apply(1,arguments))))}};
S=L.map(function(W){return W(T)});
u=Qnw.apply(null,_.Pd(S))(N.dispatch);return Object.assign({},N,{dispatch:u})}}};
BI_=function(L){Object.keys(L).forEach(function(Z){var N=L[Z];if(typeof N(void 0,{type:AYH})==="undefined")throw Error("He`"+Z);if(typeof N(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+H7_()})==="undefined")throw Error("Ie`"+Z+"`"+AYH);})};
Yd=function(L){for(var Z=Object.keys(L),N={},S=0;S<Z.length;S++){var u=Z[S];typeof L[u]==="function"&&(N[u]=L[u])}var T=Object.keys(N);try{BI_(N)}catch(V){var W=V}return function(V,M){V=V===void 0?{}:V;if(W)throw W;for(var G=!1,D={},l=0;l<T.length;l++){var v=T[l],R=V[v],K=(0,N[v])(R,M);if(typeof K==="undefined")throw V=M&&M.type,Error("Je`"+(V?'"'+String(V)+'"':"(unknown type)")+"`"+v);D[v]=K;G=G||K!==R}return(G=G||T.length!==Object.keys(V).length)?D:V}};
xYB=function(L,Z,N){function S(){if(D)throw Error("Ke");return V}
function u(R){if(typeof R!=="function")throw Error("Le`"+typeof R);if(D)throw Error("Me");var K=!0;G===M&&(G=M.slice());G.push(R);return function(){if(K){if(D)throw Error("Ne");K=!1;G===M&&(G=M.slice());var U=G.indexOf(R);G.splice(U,1);M=null}}}
function T(R){if(typeof R!=="object"||R===null)var K=!1;else{for(K=R;Object.getPrototypeOf(K)!==null;)K=Object.getPrototypeOf(K);K=Object.getPrototypeOf(R)===K}if(!K)throw Error("Oe`"+typeof R);if(typeof R.type==="undefined")throw Error("Pe");if(D)throw Error("Qe");try{D=!0,V=W(V,R)}finally{D=!1}K=M=G;for(var U=0;U<K.length;U++)(0,K[U])();return R}
if(typeof Z==="function"&&typeof N==="function"||typeof N==="function"&&typeof arguments[3]==="function")throw Error("Re");typeof Z==="function"&&typeof N==="undefined"&&(N=Z,Z=void 0);if(typeof N!=="undefined"){if(typeof N!=="function")throw Error("Se`"+typeof N);return N(xYB)(L,Z)}if(typeof L!=="function")throw Error("Te`"+typeof L);var W=L,V=Z,M=[],G=M,D=!1;T({type:AYH});var l={},v=(l.dispatch=T,l.subscribe=u,l.getState=S,l.replaceReducer=function(R){if(typeof R!=="function")throw Error("Ue`"+
typeof R);W=R;T({type:qy_});return v},l[LFL]=function(){var R={};
return R.subscribe=function(K){function U(){K.next&&K.next(S())}
if(typeof K!=="object"||K===null)throw new TypeError("Ve`"+typeof K);U();return{unsubscribe:u(U)}},R[LFL]=function(){return this},R},l);
return v};
ZcP=function(L){function Z(){u&&(u=!1,L());T&&S()}
function N(){requestAnimationFrame(Z)}
function S(){var V=Date.now();if(u){if(V-W<2)return;T=!0}else u=!0,T=!1,setTimeout(N,20);W=V}
var u=!1,T=!1,W=0;return S};
ej=function(L){return typeof L==="number"?L:parseFloat(L)||0};
NgG=function(L){return _.CG.apply(1,arguments).reduce(function(Z,N){return Z+ej(L["border-"+N+"-width"])},0)};
Tgx=function(L){if(S8L[L])return S8L[L];var Z=globalThis[L],N=Z.prototype,S=L in icP?icP[L]:void 0;S=!(!S||!S.every(function(M){var G,D;return!!((G=Object.getOwnPropertyDescriptor(N,M))==null?0:(D=G.get)==null?0:D.toString().includes("[native code]"))}));
var u=L in uRP?uRP[L]:void 0;u=!(!u||!u.every(function(M){var G;return typeof N[M]==="function"&&((G=N[M])==null?void 0:G.toString().includes("[native code]"))}));
if(S&&u&&!globalThis.Zone)return S8L[L]=Z.prototype;try{var T=document.createElement("iframe");document.body.appendChild(T);var W=T.contentWindow;if(!W)return Z.prototype;var V=W[L].prototype;document.body.removeChild(T);return V?S8L[L]=V:N}catch(M){return N}};
IM=function(L,Z,N){var S=L+"."+String(N);if(tJh[S])return tJh[S].call(Z);L=Tgx(L);var u;L=(u=Object.getOwnPropertyDescriptor(L,N))==null?void 0:u.get;if(!L)return Z[N];tJh[S]=L;return L.call(Z)};
WFh=function(L,Z){var N="Node."+String(Z);if(OcB[N])return OcB[N].bind(L);var S=Tgx("Node")[Z];if(typeof S!=="function")return L[Z];OcB[N]=S;return S.bind(L)};
dd=function(L,Z,N){try{if(!(Z in L))return function(){};
var S=L[Z],u=N(S);typeof u==="function"&&(u.prototype=u.prototype||{},Object.defineProperties(u,{__rrweb_original__:{enumerable:!1,value:S}}));L[Z]=u;return function(){L[Z]=S}}catch(T){return function(){}}};
sU=function(L){var Z=L&&"host"in L&&"mode"in L&&aM(L)||null;return!!(Z&&"shadowRoot"in Z&&hQ(Z)===L)};
jj=function(L){return Object.prototype.toString.call(L)==="[object ShadowRoot]"};
VJL=function(L){L.includes(" background-clip: text;")&&!L.includes(" -webkit-background-clip: text;")&&(L=L.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return L};
MJL=function(L){try{var Z=L.rules||L.cssRules;if(!Z)return null;var N=L.href;!N&&L.ownerNode&&L.ownerNode.ownerDocument&&(N=L.ownerNode.ownerDocument.location.href);var S=Array.from(Z,function(u){return bch(u,N)}).join("");
return VJL(S)}catch(u){return null}};
bch=function(L,Z){if("styleSheet"in L){try{var N;if(!(N=MJL(L.styleSheet))){var S=L.cssText;if(S.split('"').length<3)N=S;else{var u=["@import","url("+JSON.stringify(L.href)+")"];L.layerName===""?u.push("layer"):L.layerName&&u.push("layer("+L.layerName+")");L.supportsText&&u.push("supports("+L.supportsText+")");L.media.length&&u.push(L.media.mediaText);N=u.join(" ")+";"}}var T=N}catch(W){T=L.cssText}return L.styleSheet.href?gBP(T,L.styleSheet.href):T}T=L.cssText;"selectorText"in L&&L.selectorText.includes(":")&&
(T=T.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return Z?gBP(T,Z):T};
GkL=function(L){var Z=L.element;var N=L.maskInputOptions;var S=L.tagName;var u=L.type;var T=L.value;L=L.maskInputFn;T=T||"";u=u&&u.toLowerCase();if(N[S.toLowerCase()]||u&&N[u])T=L?L(T,Z):"*".repeat(T.length);return T};
FFL=function(L){var Z=L.getContext("2d");if(!Z)return!0;for(var N=0;N<L.width;N+=50)for(var S=0;S<L.height;S+=50){var u=Z.getImageData;if((new Uint32Array(("__rrweb_original__"in u?u.__rrweb_original__:u).call(Z,N,S,Math.min(50,L.width-N),Math.min(50,L.height-S)).data.buffer)).some(function(T){return T!==0}))return!1}return!0};
$bs=function(L){var Z=L.type;return L.hasAttribute("data-rr-is-password")?"password":Z?Z.toLowerCase():null};
Db_=function(L){try{var Z=new URL(L,window.location.href)}catch(u){return null}var N,S;return(S=(N=Z.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:N[1])!=null?S:null};
gBP=function(L,Z){return(L||"").replace(lws,function(N,S,u,T,W,V){u=u||W||V;S=S||T||"";if(!u)return N;if(vBt.test(u)||oBP.test(u)||R$F.test(u))return"url("+S+u+S+")";if(u[0]==="/")return N=Z.indexOf("//")>-1?Z.split("/").slice(0,3).join("/"):Z.split("/")[0],N=N.split("?")[0],"url("+S+(N+u)+S+")";N=Z.split("/");T=u.split("/");N.pop();T=_.O(T);for(u=T.next();!u.done;u=T.next())u=u.value,u!=="."&&(u===".."?N.pop():N.push(u));return"url("+S+N.join("/")+S+")"})};
c4f=function(L,Z){return(Z=Z===void 0?!1:Z)?L.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):L.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
nBF=function(L,Z){var N=N===void 0?!1:N;Z=Array.from(Z.childNodes);var S=[],u=0;if(Z.length>1&&L&&typeof L==="string")for(var T=c4f(L,N),W=T.length/L.length,V=1;V<Z.length;V++)if(Z[V].textContent&&typeof Z[V].textContent==="string"){for(var M=c4f(Z[V].textContent,N),G=3;G<M.length&&(M[G].match(/[a-zA-Z0-9]/)||M.indexOf(M.substring(0,G),1)!==-1);G++);for(;G<M.length;G++){var D=M.substring(0,G),l=T.split(D),v=-1;if(l.length===2)v=l[0].length;else if(l.length>2&&l[0]===""&&Z[V-1].textContent!=="")v=
T.indexOf(D,1);else if(l.length===1){D=D.substring(0,D.length-1);l=T.split(D);if(l.length<=1)return S.push(L),S;G=101}else G===M.length-1&&(v=T.indexOf(D));if(l.length>=2&&G>100){var R=Z[V-1].textContent;R&&typeof R==="string"&&(v=T.indexOf(D,c4f(R).length));v===-1&&(v=l[0].length)}if(v!==-1){for(M=Math.floor(v/W);M>0&&M<L.length;){u+=1;if(u>50*Z.length)return S.push(L),S;G=c4f(L.substring(0,M),N);if(G.length===v){S.push(L.substring(0,M));L=L.substring(M);T=T.substring(v);break}else M=G.length<v?
M+Math.max(1,Math.floor((v-G.length)/W)):M-Math.max(1,Math.floor((G.length-v)*W))}break}}}S.push(L);return S};
fw_=function(){return KFP++};
y4t=function(L){if(L instanceof HTMLFormElement)return"form";L=L.tagName.toLowerCase();return kkG.test(L)?"div":L};
e$H=function(L,Z){function N(G){return(G=G.exec(Z.substring(S)))?(G=G[0],S+=G.length,G):""}
if(Z.trim()==="")return Z;for(var S=0,u=[];;){N(wnt);if(S>=Z.length)break;var T=N(Ubh);if(T.slice(-1)===",")T=Y8t(L,T.substring(0,T.length-1)),u.push(T);else{var W="";T=Y8t(L,T);for(var V=!1;;){var M=Z.charAt(S);if(M===""){u.push((T+W).trim());break}else if(V)M===")"&&(V=!1);else if(M===","){S+=1;u.push((T+W).trim());break}else M==="("&&(V=!0);W+=M;S+=1}}}return u.join(", ")};
Y8t=function(L,Z){return Z&&Z.trim()!==""?IwH(L,Z):Z};
IwH=function(L,Z){var N=dbh.get(L);N||(N=L.createElement("a"),dbh.set(L,N));if(!Z)Z="";else if(Z.startsWith("blob:")||Z.startsWith("data:"))return Z;Q8(N,Z);return N.href};
awh=function(L,Z,N,S){return S?N==="src"||N==="href"&&(Z!=="use"||S[0]!=="#")||N==="xlink:href"&&S[0]!=="#"||N==="background"&&(Z==="table"||Z==="td"||Z==="th")?Y8t(L,S):N==="srcset"?e$H(L,S):N==="style"?gBP(S,IwH(L)):Z==="object"&&N==="data"?Y8t(L,S):S:S};
h$h=function(L,Z){return(L==="video"||L==="audio")&&Z==="autoplay"};
s8P=function(L,Z,N){try{if(typeof Z==="string"){if(L.classList.contains(Z))return!0}else for(var S=L.classList.length;S--;)if(Z.test(L.classList[S]))return!0;if(N)return L.matches(N)}catch(u){}return!1};
j8t=function(L,Z,N){if(!L)return!1;if(L.nodeType!==L.ELEMENT_NODE)return N?j8t(EU(L),Z,N):!1;for(var S=L.classList.length;S--;)if(Z.test(L.classList[S]))return!0;return N?j8t(EU(L),Z,N):!1};
EBF=function(L,Z,N,S){if(L.nodeType===L.ELEMENT_NODE){if(!PX(L).length)return!1}else{if(pH(L)===null)return!1;L=pH(L)}try{if(typeof Z==="string")if(S){if(L.closest("."+Z))return!0}else{if(L.classList.contains(Z))return!0}else if(j8t(L,Z,S))return!0;if(N)if(S){if(L.closest(N))return!0}else if(L.matches(N))return!0}catch(u){}return!1};
PlB=function(L,Z,N){var S=L.contentWindow;if(S){var u=!1;try{var T=S.document.readyState}catch(V){return}if(T!=="complete"){var W=setTimeout(function(){u||(Z(),u=!0)},N);
L.addEventListener("load",function(){clearTimeout(W);u=!0;Z()})}else S.location.href==="about:blank"&&L.src!=="about:blank"&&L.src!==""||setTimeout(Z,0),L.addEventListener("load",Z)}};
pnH=function(L,Z,N){var S=!1;try{var u=L.sheet}catch(W){return}if(!u){var T=setTimeout(function(){S||(Z(),S=!0)},N);
L.addEventListener("load",function(){clearTimeout(T);S=!0;Z()})}};
J4P=function(L,Z){var N=Z.doc,S=Z.blockClass,u=Z.blockSelector,T=Z.needsMask,W=Z.inlineStylesheet,V=Z.maskInputOptions===void 0?{}:Z.maskInputOptions,M=Z.maskTextFn,G=Z.maskInputFn,D=Z.dataURLOptions===void 0?{}:Z.dataURLOptions,l=Z.inlineImages,v=Z.recordCanvas,R=Z.keepIframeSrcFn,K=Z.newlyAddedElement===void 0?!1:Z.newlyAddedElement,U=Z.cssCaptured===void 0?!1:Z.cssCaptured;Z=Z.mirror;Z.nodeMetaMap.has(N)?(Z=Z.getId(N),Z=Z===1?void 0:Z):Z=void 0;switch(L.nodeType){case L.DOCUMENT_NODE:return L.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:L.compatMode}:{type:0,childNodes:[]};case L.DOCUMENT_TYPE_NODE:return{type:1,name:L.name,publicId:L.publicId,systemId:L.systemId,rootId:Z};case L.ELEMENT_NODE:return z$h(L,{doc:N,blockClass:S,blockSelector:u,inlineStylesheet:W,maskInputOptions:V,maskInputFn:G,dataURLOptions:D,inlineImages:l,recordCanvas:v,keepIframeSrcFn:R,newlyAddedElement:K,rootId:Z});case L.TEXT_NODE:return W=(S=EU(L))&&S.tagName,S="",u=W==="STYLE"?!0:void 0,(W=W==="SCRIPT"?!0:void 0)?
S="SCRIPT_PLACEHOLDER":U||(S=mbA(L),u&&S&&(S=gBP(S,IwH(N)))),!u&&!W&&S&&T&&(S=M?M(S,pH(L)):S.replace(/[\S]/g,"*")),{type:3,textContent:S||"",rootId:Z};case L.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:Z};case L.COMMENT_NODE:return{type:5,textContent:mbA(L)||"",rootId:Z};default:return!1}};
z$h=function(L,Z){var N=Z.doc,S=Z.inlineStylesheet,u=Z.maskInputOptions===void 0?{}:Z.maskInputOptions,T=Z.maskInputFn,W=Z.dataURLOptions===void 0?{}:Z.dataURLOptions,V=Z.inlineImages,M=Z.recordCanvas,G=Z.keepIframeSrcFn,D=Z.newlyAddedElement===void 0?!1:Z.newlyAddedElement,l=Z.rootId;Z=s8P(L,Z.blockClass,Z.blockSelector);for(var v=y4t(L),R={},K=L.attributes.length,U=0;U<K;U++){var d=L.attributes[U];h$h(v,d.name)||(R[d.name]=awh(N,v,d.name.toLowerCase(),d.value))}v==="link"&&S&&(S=Array.from(N.styleSheets).find(function(C){return C.href===
L.href}),K=null,S&&(K=MJL(S)),K&&(delete R.rel,delete R.href,R._cssText=K));
v==="style"&&L.sheet&&(S=MJL(L.sheet))&&(L.childNodes.length>1&&(S=nBF(S,L).join("/* rr_split */")),R._cssText=S);if(v==="input"||v==="textarea"||v==="select")S=L.value,K=L.checked,R.type!=="radio"&&R.type!=="checkbox"&&R.type!=="submit"&&R.type!=="button"&&S?R.value=GkL({element:L,type:$bs(L),tagName:v,value:S,maskInputOptions:u,maskInputFn:T}):K&&(R.checked=K);v==="option"&&(L.selected&&!u.select?R.selected=!0:delete R.selected);v==="dialog"&&L.open&&(R.rr_open_mode=L.matches("dialog:modal")?"modal":
"non-modal");v==="canvas"&&M&&(L.__context==="2d"?FFL(L)||(R.rr_dataURL=L.toDataURL(W.type,W.quality)):"__context"in L||(u=L.toDataURL(W.type,W.quality),T=N.createElement("canvas"),T.width=L.width,T.height=L.height,T=T.toDataURL(W.type,W.quality),u!==T&&(R.rr_dataURL=u)));if(v==="img"&&V){zc||(zc=N.createElement("canvas"),Cl0=zc.getContext("2d"));var h=L.currentSrc||L.getAttribute("src")||"<unknown-src>",E=L.crossOrigin,A=function(){L.removeEventListener("load",A);try{zc.width=L.naturalWidth,zc.height=
L.naturalHeight,Cl0.drawImage(L,0,0),R.rr_dataURL=zc.toDataURL(W.type,W.quality)}catch(C){if(L.crossOrigin!=="anonymous"){L.crossOrigin="anonymous";L.complete&&L.naturalWidth!==0?A():L.addEventListener("load",A);return}console.warn("Cannot inline img src="+h+"! Error: "+C)}L.crossOrigin==="anonymous"&&(E?R.crossOrigin=E:L.removeAttribute("crossorigin"))};
L.complete&&L.naturalWidth!==0?A():L.addEventListener("load",A)}if(v==="audio"||v==="video")N=R,N.rr_mediaState=L.paused?"paused":"played",N.rr_mediaCurrentTime=L.currentTime,N.rr_mediaPlaybackRate=L.playbackRate,N.rr_mediaMuted=L.muted,N.rr_mediaLoop=L.loop,N.rr_mediaVolume=L.volume;D||(L.scrollLeft&&(R.rr_scrollLeft=L.scrollLeft),L.scrollTop&&(R.rr_scrollTop=L.scrollTop));Z&&(D=L.getBoundingClientRect(),R={class:R.class,rr_width:D.width+"px",rr_height:D.height+"px"});v!=="iframe"||G(R.src)||(L.contentDocument||
(R.rr_src=R.src),delete R.src);var J;try{customElements.get(v)&&(J=!0)}catch(C){}return{type:2,tagName:v,attributes:R,childNodes:[],isSVG:!(L.tagName!=="svg"&&!L.ownerSVGElement)||void 0,needBlock:Z,rootId:l,isCustom:J}};
m_=function(L){return L===void 0||L===null?"":L.toLowerCase()};
r4t=function(L,Z){return Z.comment&&L.type===5||L.type===2&&(Z.script&&(L.tagName==="script"||L.tagName==="link"&&(L.attributes.rel==="preload"&&L.attributes.as==="script"||L.attributes.rel==="modulepreload")||L.tagName==="link"&&L.attributes.rel==="prefetch"&&typeof L.attributes.href==="string"&&Db_(L.attributes.href)==="js")||Z.headFavicon&&(L.tagName==="link"&&L.attributes.rel==="shortcut icon"||L.tagName==="meta"&&(m_(L.attributes.name).match(/^msapplication-tile(image|color)$/)||m_(L.attributes.name)===
"application-name"||m_(L.attributes.rel)==="icon"||m_(L.attributes.rel)==="apple-touch-icon"||m_(L.attributes.rel)==="shortcut icon"))||L.tagName==="meta"&&(Z.headMetaDescKeywords&&m_(L.attributes.name).match(/^description|keywords$/)||Z.headMetaSocial&&(m_(L.attributes.property).match(/^(og|twitter|fb):/)||m_(L.attributes.name).match(/^(og|twitter):/)||m_(L.attributes.name)==="pinterest")||Z.headMetaRobots&&(m_(L.attributes.name)==="robots"||m_(L.attributes.name)==="googlebot"||m_(L.attributes.name)===
"bingbot")||Z.headMetaHttpEquiv&&L.attributes["http-equiv"]!==void 0||Z.headMetaAuthorship&&(m_(L.attributes.name)==="author"||m_(L.attributes.name)==="generator"||m_(L.attributes.name)==="framework"||m_(L.attributes.name)==="publisher"||m_(L.attributes.name)==="progid"||m_(L.attributes.property).match(/^article:/)||m_(L.attributes.property).match(/^product:/))||Z.headMetaVerification&&(m_(L.attributes.name)==="google-site-verification"||m_(L.attributes.name)==="yandex-verification"||m_(L.attributes.name)===
"csrf-token"||m_(L.attributes.name)==="p:domain_verify"||m_(L.attributes.name)==="verify-v1"||m_(L.attributes.name)==="verification"||m_(L.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
JQ=function(L,Z){var N=Z.doc,S=Z.mirror,u=Z.blockClass,T=Z.blockSelector,W=Z.maskTextClass,V=Z.maskTextSelector,M=Z.skipChild===void 0?!1:Z.skipChild,G=Z.inlineStylesheet===void 0?!0:Z.inlineStylesheet,D=Z.maskInputOptions===void 0?{}:Z.maskInputOptions,l=Z.maskTextFn,v=Z.maskInputFn,R=Z.slimDOMOptions,K=Z.dataURLOptions===void 0?{}:Z.dataURLOptions,U=Z.inlineImages===void 0?!1:Z.inlineImages,d=Z.recordCanvas===void 0?!1:Z.recordCanvas,h=Z.onSerialize,E=Z.onIframeLoad,A=Z.iframeLoadTimeout===void 0?
5E3:Z.iframeLoadTimeout,J=Z.onStylesheetLoad,C=Z.stylesheetLoadTimeout===void 0?5E3:Z.stylesheetLoadTimeout,X=Z.keepIframeSrcFn===void 0?function(){return!1}:Z.keepIframeSrcFn,L1=Z.newlyAddedElement===void 0?!1:Z.newlyAddedElement,Fw=Z.cssCaptured===void 0?!1:Z.cssCaptured,GB=Z.needsMask,Yt=Z.preserveWhiteSpace===void 0?!0:Z.preserveWhiteSpace;
GB||(GB=EBF(L,W,V,GB===void 0));var lH=J4P(L,{doc:N,mirror:S,blockClass:u,blockSelector:T,needsMask:GB,inlineStylesheet:G,maskInputOptions:D,maskTextFn:l,maskInputFn:v,dataURLOptions:K,inlineImages:U,recordCanvas:d,keepIframeSrcFn:X,newlyAddedElement:L1,cssCaptured:Fw});if(!lH)return console.warn(L,"not serialized"),null;L1=S.nodeMetaMap.has(L)?S.getId(L):r4t(lH,R)||!Yt&&lH.type===3&&!lH.textContent.replace(/^\s+|\s+$/gm,"").length?-2:KFP++;Z=Object.assign(lH,{id:L1});S.add(L,Z);if(L1===-2)return null;
h&&h(L);L1=!M;Z.type===2&&(L1=L1&&!Z.needBlock,delete Z.needBlock,(Fw=hQ(L))&&jj(Fw)&&(Z.isShadowHost=!0));if((Z.type===0||Z.type===2)&&L1){R.headWhitespace&&Z.type===2&&Z.tagName==="head"&&(Yt=!1);M={doc:N,mirror:S,blockClass:u,blockSelector:T,needsMask:GB,maskTextClass:W,maskTextSelector:V,skipChild:M,inlineStylesheet:G,maskInputOptions:D,maskTextFn:l,maskInputFn:v,slimDOMOptions:R,dataURLOptions:K,inlineImages:U,recordCanvas:d,preserveWhiteSpace:Yt,onSerialize:h,onIframeLoad:E,iframeLoadTimeout:A,
onStylesheetLoad:J,stylesheetLoadTimeout:C,keepIframeSrcFn:X,cssCaptured:!1};if(Z.type!==2||Z.tagName!=="textarea"||Z.attributes.value===void 0)for(Z.type===2&&Z.attributes._cssText!==void 0&&typeof Z.attributes._cssText==="string"&&(M.cssCaptured=!0),L1=_.O(Array.from(PX(L))),Fw=L1.next();!Fw.done;Fw=L1.next())(Fw=JQ(Fw.value,M))&&Z.childNodes.push(Fw);L1=null;if(L.nodeType===L.ELEMENT_NODE&&(L1=hQ(L))){Fw=_.O(Array.from(PX(L1)));for(var RF=Fw.next();!RF.done;RF=Fw.next())if(RF=JQ(RF.value,M))jj(L1)&&
(RF.isShadow=!0),Z.childNodes.push(RF)}}(M=EU(L))&&sU(M)&&jj(M)&&(Z.isShadow=!0);Z.type===2&&Z.tagName==="iframe"&&PlB(L,function(){var jf=L.contentDocument;jf&&E&&(jf=JQ(jf,{doc:jf,mirror:S,blockClass:u,blockSelector:T,needsMask:GB,maskTextClass:W,maskTextSelector:V,skipChild:!1,inlineStylesheet:G,maskInputOptions:D,maskTextFn:l,maskInputFn:v,slimDOMOptions:R,dataURLOptions:K,inlineImages:U,recordCanvas:d,preserveWhiteSpace:Yt,onSerialize:h,onIframeLoad:E,iframeLoadTimeout:A,onStylesheetLoad:J,stylesheetLoadTimeout:C,
keepIframeSrcFn:X}))&&E(L,jf)},A);
Z.type===2&&Z.tagName==="link"&&typeof Z.attributes.rel==="string"&&(Z.attributes.rel==="stylesheet"||Z.attributes.rel==="preload"&&typeof Z.attributes.href==="string"&&Db_(Z.attributes.href)==="css")&&pnH(L,function(){if(J){var jf=JQ(L,{doc:N,mirror:S,blockClass:u,blockSelector:T,needsMask:GB,maskTextClass:W,maskTextSelector:V,skipChild:!1,inlineStylesheet:G,maskInputOptions:D,maskTextFn:l,maskInputFn:v,slimDOMOptions:R,dataURLOptions:K,inlineImages:U,recordCanvas:d,preserveWhiteSpace:Yt,onSerialize:h,
onIframeLoad:E,iframeLoadTimeout:A,onStylesheetLoad:J,stylesheetLoadTimeout:C,keepIframeSrcFn:X});jf&&J(L,jf)}},C);
return Z};
Q8H=function(L){var Z=document;L=L||{};var N=L.maskAllInputs===void 0?!1:L.maskAllInputs,S=L.slimDOM===void 0?!1:L.slimDOM;return JQ(Z,{doc:Z,mirror:L.mirror===void 0?new CH:L.mirror,blockClass:L.blockClass===void 0?"rr-block":L.blockClass,blockSelector:L.blockSelector===void 0?null:L.blockSelector,maskTextClass:L.maskTextClass===void 0?"rr-mask":L.maskTextClass,maskTextSelector:L.maskTextSelector===void 0?null:L.maskTextSelector,skipChild:!1,inlineStylesheet:L.inlineStylesheet===void 0?!0:L.inlineStylesheet,
maskInputOptions:N===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:N===!1?{password:!0}:N,maskTextFn:L.maskTextFn,maskInputFn:L.maskInputFn,slimDOMOptions:S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:S==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:S===!1?{}:S,dataURLOptions:L.dataURLOptions,
inlineImages:L.inlineImages===void 0?!1:L.inlineImages,recordCanvas:L.recordCanvas===void 0?!1:L.recordCanvas,preserveWhiteSpace:L.preserveWhiteSpace,onSerialize:L.onSerialize,onIframeLoad:L.onIframeLoad,iframeLoadTimeout:L.iframeLoadTimeout,onStylesheetLoad:L.onStylesheetLoad,stylesheetLoadTimeout:L.stylesheetLoadTimeout,keepIframeSrcFn:L.keepIframeSrcFn===void 0?function(){return!1}:L.keepIframeSrcFn,
newlyAddedElement:!1})};
rd=function(L,Z,N){N=N===void 0?document:N;var S={capture:!0,passive:!0};N.addEventListener(L,Z,S);return function(){return N.removeEventListener(L,Z,S)}};
Qe=function(L,Z,N){N=N===void 0?{}:N;var S=null,u=0;return function(){var T=_.CG.apply(0,arguments),W=Date.now();u||N.leading!==!1||(u=W);var V=Z-(W-u),M=this;V<=0||V>Z?(S&&(clearTimeout(S),S=null),u=W,L.apply(M,T)):S||N.trailing===!1||(S=setTimeout(function(){u=N.leading===!1?0:Date.now();S=null;L.apply(M,T)},V))}};
XnF=function(L,Z,N,S,u){u=u===void 0?window:u;var T=u.Object.getOwnPropertyDescriptor(L,Z);u.Object.defineProperty(L,Z,S?N:{set:function(W){var V=this;setTimeout(function(){N.set.call(V,W)},0);
T&&T.set&&T.set.call(this,W)}});
return function(){return XnF(L,Z,T||{},!0)}};
A4H=function(L){var Z=L.document,N,S,u,T;return{left:Z.scrollingElement?Z.scrollingElement.scrollLeft:L.pageXOffset!==void 0?L.pageXOffset:Z.documentElement.scrollLeft||(Z==null?void 0:Z.body)&&((N=pH(Z.body))==null?void 0:N.scrollLeft)||(Z==null?void 0:(S=Z.body)==null?void 0:S.scrollLeft)||0,top:Z.scrollingElement?Z.scrollingElement.scrollTop:L.pageYOffset!==void 0?L.pageYOffset:(Z==null?void 0:Z.documentElement.scrollTop)||(Z==null?void 0:Z.body)&&((u=pH(Z.body))==null?void 0:u.scrollTop)||(Z==
null?void 0:(T=Z.body)==null?void 0:T.scrollTop)||0}};
Hc1=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
BgP=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
xb_=function(L){return L?L.nodeType===L.ELEMENT_NODE?L:pH(L):null};
X$=function(L,Z,N,S){if(!L)return!1;L=xb_(L);if(!L)return!1;try{if(typeof Z==="string"){if(L.classList.contains(Z)||S&&L.closest("."+Z)!==null)return!0}else if(j8t(L,Z,S))return!0}catch(u){}return N&&(L.matches(N)||S&&L.closest(N)!==null)?!0:!1};
q8F=function(L,Z,N){return L.tagName==="TITLE"&&N.headTitleMutations?!0:Z.getId(L)===-2};
LBf=function(L,Z){if(sU(L))return!1;var N=Z.getId(L);return Z.has(N)?(N=EU(L))&&N.nodeType===L.DOCUMENT_NODE?!1:N?LBf(N,Z):!0:!0};
ZLP=function(){var L=L===void 0?window:L;"NodeList"in L&&!L.NodeList.prototype.forEach&&(L.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in L&&!L.DOMTokenList.prototype.forEach&&(L.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
StA=function(L,Z){return!(L.nodeName!=="LINK"||L.nodeType!==L.ELEMENT_NODE||!L.getAttribute||L.getAttribute("rel")!=="stylesheet"||!Z.nodeMetaMap.get(L))};
uGB=function(L){var Z=null,N;"getRootNode"in L&&((N=iLH(L))==null?void 0:N.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&aM(iLH(L))&&(Z=aM(iLH(L)));return Z};
TpB=function(L){var Z=L.ownerDocument;if(Z){if(!(Z=WFh(Z,"contains")(L)))if(Z=L.ownerDocument){for(var N;N=uGB(L);)L=N;Z=WFh(Z,"contains")(L)}else Z=!1}else Z=!1;return Z};
t7h=function(L,Z){L.delete(Z);PX(Z).forEach(function(N){return t7h(L,N)})};
OL1=function(L,Z){for(var N=[L];N.length;)L=N.pop(),Z.has(L)||(Z.add(L),PX(L).forEach(function(S){return N.push(S)}))};
WB_=function(L,Z){L.size===0?L=!1:L=(Z=EU(Z))?L.has(Z):!1;return L};
bLh=function(L,Z){return L.size===0?!1:V7h(L,Z)};
V7h=function(L,Z){return(Z=EU(Z))?L.has(Z)?!0:V7h(L,Z):!1};
AQ=function(L){try{if("composedPath"in L){var Z=L.composedPath();if(Z.length)return Z[0]}else if("path"in L&&L.path.length)return L.path[0]}catch(N){}return L&&L.target};
gW1=function(L,Z){var N=new M71;HX.push(N);N.init(L);L=new (Tgx("MutationObserver").constructor)(BX(N.processMutations.bind(N)));L.observe(Z,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return L};
FBf=function(L){var Z=L.mousemoveCb;var N=L.sampling;var S=L.doc;var u=L.mirror;if(N.mousemove===!1)return function(){};
var T=[],W,V=Qe(BX(function(G){var D=Date.now()-W;Z(T.map(function(l){l.timeOffset-=D;return l}),G);
T=[];W=null}),typeof N.mousemoveCallback==="number"?N.mousemoveCallback:500);
L=BX(Qe(BX(function(G){var D=AQ(G),l=G.changedTouches?G.changedTouches[0]:G,v=l.clientX;l=l.clientY;W||(W=GQB());T.push({x:v,y:l,id:u.getId(D),timeOffset:GQB()-W});V(typeof DragEvent!=="undefined"&&G instanceof DragEvent?12:G instanceof MouseEvent?1:6)}),typeof N.mousemove==="number"?N.mousemove:50,{trailing:!1}));
var M=[rd("mousemove",L,S),rd("touchmove",L,S),rd("drag",L,S)];return BX(function(){M.forEach(function(G){return G()})})};
$6w=function(L){var Z=L.mouseInteractionCb;var N=L.doc;var S=L.mirror;var u=L.blockClass;var T=L.blockSelector;L=L.sampling;if(L.mouseInteraction===!1)return function(){};
var W=L.mouseInteraction===!0||L.mouseInteraction===void 0?{}:L.mouseInteraction,V=[],M=null,G=function(D){return function(l){var v=AQ(l);if(!X$(v,u,T,!0)){var R=null,K=D;if("pointerType"in l){switch(l.pointerType){case "mouse":R=0;break;case "touch":R=2;break;case "pen":R=1}R===2&&(xd[D]===1?K="TouchStart":xd[D]===0&&(K="TouchEnd"))}else l.changedTouches&&(R=2);if(R!==null){if(M=R,K.startsWith("Touch")&&R===2||K.startsWith("Mouse")&&R===0)R=null}else xd[D]===2&&(R=M,M=null);if(l=l.changedTouches?
l.changedTouches[0]:l)v=S.getId(v),BX(Z)(Object.assign({},{type:xd[K],id:v,x:l.clientX,y:l.clientY},R!==null&&{pointerType:R}))}}};
Object.keys(xd).filter(function(D){return Number.isNaN(Number(D))&&!D.endsWith("_Departed")&&W[D]!==!1}).forEach(function(D){var l=D.toLowerCase(),v=G(D);
if(window.PointerEvent)switch(xd[D]){case 1:case 0:l=l.replace("mouse","pointer");break;case 7:case 9:return}V.push(rd(l,v,N))});
return BX(function(){V.forEach(function(D){return D()})})};
D6H=function(L){var Z=L.scrollCb;var N=L.doc;var S=L.mirror;var u=L.blockClass;var T=L.blockSelector;return rd("scroll",BX(Qe(BX(function(W){var V=AQ(W);V&&!X$(V,u,T,!0)&&(W=S.getId(V),V===N&&N.defaultView?(V=A4H(N.defaultView),Z({id:W,x:V.left,y:V.top})):Z({id:W,x:V.scrollLeft,y:V.scrollTop}))}),L.sampling.scroll||100)),N)};
l3t=function(L,Z){var N=L.viewportResizeCb;var S=-1,u=-1;return rd("resize",BX(Qe(BX(function(){var T=Hc1(),W=BgP();if(S!==T||u!==W)N({width:Number(W),height:Number(T)}),S=T,u=W}),200)),Z.win)};
RXP=function(L){function Z(d){var h=AQ(d),E=d.isTrusted,A=h&&h.tagName;h&&A==="OPTION"&&(h=pH(h));if(!(!h||!A||vW0.indexOf(A)<0||X$(h,W,V,!0)||h.classList.contains(M)||G&&h.matches(G))){var J=h.value,C=!1;d=$bs(h)||"";if(d==="radio"||d==="checkbox")C=h.checked;else if(D[A.toLowerCase()]||D[d])J=GkL({element:h,maskInputOptions:D,tagName:A,type:d,value:J,maskInputFn:l});N(h,R?{text:J,isChecked:C,userTriggered:E}:{text:J,isChecked:C});E=h.name;d==="radio"&&E&&C&&u.querySelectorAll('input[type="radio"][name="'+
E+'"]').forEach(function(X){if(X!==h){var L1=X.value;N(X,R?{text:L1,isChecked:!C,userTriggered:!1}:{text:L1,isChecked:!C})}})}}
function N(d,h){var E=oWt.get(d);E&&E.text===h.text&&E.isChecked===h.isChecked||(oWt.set(d,h),d=T.getId(d),BX(S)(Object.assign({},h,{id:d})))}
var S=L.inputCb;var u=L.doc;var T=L.mirror;var W=L.blockClass;var V=L.blockSelector;var M=L.ignoreClass;var G=L.ignoreSelector;var D=L.maskInputOptions;var l=L.maskInputFn;var v=L.sampling;var R=L.userTriggeredOnInput;var K=(v.input==="last"?["change"]:["input","change"]).map(function(d){return rd(d,BX(Z),u)}),U=u.defaultView;
if(!U)return function(){K.forEach(function(d){return d()})};
L=U.Object.getOwnPropertyDescriptor(U.HTMLInputElement.prototype,"value");v=[[U.HTMLInputElement.prototype,"value"],[U.HTMLInputElement.prototype,"checked"],[U.HTMLSelectElement.prototype,"value"],[U.HTMLTextAreaElement.prototype,"value"],[U.HTMLSelectElement.prototype,"selectedIndex"],[U.HTMLOptionElement.prototype,"selected"]];L&&L.set&&K.push.apply(K,_.Pd(v.map(function(d){return XnF(d[0],d[1],{set:function(){BX(Z)({target:this,isTrusted:!1})}},!1,U)})));
return BX(function(){K.forEach(function(d){return d()})})};
nWt=function(L){var Z=[],N,S,u,T;cLL("CSSGroupingRule")&&((N=L.parentRule)==null?void 0:(S=N.constructor)==null?void 0:S.name)==="CSSGroupingRule"||cLL("CSSMediaRule")&&L.parentRule instanceof CSSMediaRule||cLL("CSSSupportsRule")&&L.parentRule instanceof CSSSupportsRule||cLL("CSSConditionRule")&&((u=L.parentRule)==null?void 0:(T=u.constructor)==null?void 0:T.name)==="CSSConditionRule"?(L=Array.from(L.parentRule.cssRules).indexOf(L),Z.unshift(L)):L.parentStyleSheet&&(L=Array.from(L.parentStyleSheet.cssRules).indexOf(L),
Z.unshift(L));return Z};
q7=function(L,Z,N){var S,u;if(!L)return{};L.ownerNode?S=Z.getId(L.ownerNode):u=N.getId(L);return{styleId:u,id:S}};
f3G=function(L,Z){var N=L.styleSheetRuleCb;var S=L.mirror;var u=L.stylesheetManager;var T=Z.win;if(!T.CSSStyleSheet||!T.CSSStyleSheet.prototype)return function(){};
var W=T.CSSStyleSheet.prototype.insertRule;T.CSSStyleSheet.prototype.insertRule=new Lv(W,{apply:BX(function(v,R,K){var U=_.O(K),d=U.next().value;U=U.next().value;var h=q7(R,S,u.styleMirror),E=h.id;h=h.styleId;(E&&E!==-1||h&&h!==-1)&&N({id:E,styleId:h,adds:[{rule:d,index:U}]});return v.apply(R,K)})});
T.CSSStyleSheet.prototype.addRule=function(v,R,K){K=K===void 0?this.cssRules.length:K;return T.CSSStyleSheet.prototype.insertRule.apply(this,[v+" { "+R+" }",K])};
var V=T.CSSStyleSheet.prototype.deleteRule;T.CSSStyleSheet.prototype.deleteRule=new Lv(V,{apply:BX(function(v,R,K){var U=_.O(K).next().value,d=q7(R,S,u.styleMirror),h=d.id;d=d.styleId;(h&&h!==-1||d&&d!==-1)&&N({id:h,styleId:d,removes:[{index:U}]});return v.apply(R,K)})});
T.CSSStyleSheet.prototype.removeRule=function(v){return T.CSSStyleSheet.prototype.deleteRule.apply(this,[v])};
if(T.CSSStyleSheet.prototype.replace){var M=T.CSSStyleSheet.prototype.replace;T.CSSStyleSheet.prototype.replace=new Lv(M,{apply:BX(function(v,R,K){var U=_.O(K).next().value,d=q7(R,S,u.styleMirror),h=d.id;d=d.styleId;(h&&h!==-1||d&&d!==-1)&&N({id:h,styleId:d,replace:U});return v.apply(R,K)})})}if(T.CSSStyleSheet.prototype.replaceSync){var G=T.CSSStyleSheet.prototype.replaceSync;
T.CSSStyleSheet.prototype.replaceSync=new Lv(G,{apply:BX(function(v,R,K){var U=_.O(K).next().value,d=q7(R,S,u.styleMirror),h=d.id;d=d.styleId;(h&&h!==-1||d&&d!==-1)&&N({id:h,styleId:d,replaceSync:U});return v.apply(R,K)})})}var D={};
KBA("CSSGroupingRule")?D.CSSGroupingRule=T.CSSGroupingRule:(KBA("CSSMediaRule")&&(D.CSSMediaRule=T.CSSMediaRule),KBA("CSSConditionRule")&&(D.CSSConditionRule=T.CSSConditionRule),KBA("CSSSupportsRule")&&(D.CSSSupportsRule=T.CSSSupportsRule));var l={};Object.entries(D).forEach(function(v){var R=_.O(v);v=R.next().value;R=R.next().value;l[v]={insertRule:R.prototype.insertRule,deleteRule:R.prototype.deleteRule};R.prototype.insertRule=new Lv(l[v].insertRule,{apply:BX(function(K,U,d){var h=_.O(d),E=h.next().value;
h=h.next().value;var A=q7(U.parentStyleSheet,S,u.styleMirror),J=A.id;A=A.styleId;(J&&J!==-1||A&&A!==-1)&&N({id:J,styleId:A,adds:[{rule:E,index:[].concat(_.Pd(nWt(U)),[h||0])}]});return K.apply(U,d)})});
R.prototype.deleteRule=new Lv(l[v].deleteRule,{apply:BX(function(K,U,d){var h=_.O(d).next().value,E=q7(U.parentStyleSheet,S,u.styleMirror),A=E.id;E=E.styleId;(A&&A!==-1||E&&E!==-1)&&N({id:A,styleId:E,removes:[{index:[].concat(_.Pd(nWt(U)),[h])}]});return K.apply(U,d)})})});
return BX(function(){T.CSSStyleSheet.prototype.insertRule=W;T.CSSStyleSheet.prototype.deleteRule=V;M&&(T.CSSStyleSheet.prototype.replace=M);G&&(T.CSSStyleSheet.prototype.replaceSync=G);Object.entries(D).forEach(function(v){var R=_.O(v);v=R.next().value;R=R.next().value;R.prototype.insertRule=l[v].insertRule;R.prototype.deleteRule=l[v].deleteRule})})};
yL0=function(L,Z){var N=L.mirror;var S=L.stylesheetManager;var u=null;u=Z.nodeName==="#document"?N.getId(Z):N.getId(aM(Z));var T,W,V;L=Z.nodeName==="#document"?(T=Z.defaultView)==null?void 0:T.Document:(W=Z.ownerDocument)==null?void 0:(V=W.defaultView)==null?void 0:V.ShadowRoot;var M=(L==null?0:L.prototype)?Object.getOwnPropertyDescriptor(L==null?void 0:L.prototype,"adoptedStyleSheets"):void 0;if(u===null||u===-1||!L||!M)return function(){};
Object.defineProperty(Z,"adoptedStyleSheets",{configurable:M.configurable,enumerable:M.enumerable,get:function(){var G;return(G=M.get)==null?void 0:G.call(this)},
set:function(G){var D,l=(D=M.set)==null?void 0:D.call(this,G);if(u!==null&&u!==-1)try{kQG(S,G,u)}catch(v){}return l}});
return BX(function(){Object.defineProperty(Z,"adoptedStyleSheets",{configurable:M.configurable,enumerable:M.enumerable,get:M.get,set:M.set})})};
wFs=function(L,Z){var N=L.styleDeclarationCb;var S=L.mirror;var u=L.ignoreCSSAttributes;var T=L.stylesheetManager;var W=Z.win;var V=W.CSSStyleDeclaration.prototype.setProperty;W.CSSStyleDeclaration.prototype.setProperty=new Lv(V,{apply:BX(function(G,D,l){var v=_.O(l),R=v.next().value,K=v.next().value;v=v.next().value;if(u.has(R))return V.apply(D,[R,K,v]);var U,d=q7((U=D.parentRule)==null?void 0:U.parentStyleSheet,S,T.styleMirror);U=d.id;d=d.styleId;(U&&U!==-1||d&&d!==-1)&&N({id:U,styleId:d,set:{property:R,
value:K,priority:v},index:nWt(D.parentRule)});return G.apply(D,l)})});
var M=W.CSSStyleDeclaration.prototype.removeProperty;W.CSSStyleDeclaration.prototype.removeProperty=new Lv(M,{apply:BX(function(G,D,l){var v=_.O(l).next().value;if(u.has(v))return M.apply(D,[v]);var R,K=q7((R=D.parentRule)==null?void 0:R.parentStyleSheet,S,T.styleMirror);R=K.id;K=K.styleId;(R&&R!==-1||K&&K!==-1)&&N({id:R,styleId:K,remove:{property:v},index:nWt(D.parentRule)});return G.apply(D,l)})});
return BX(function(){W.CSSStyleDeclaration.prototype.setProperty=V;W.CSSStyleDeclaration.prototype.removeProperty=M})};
U6F=function(L){var Z=L.mediaInteractionCb;var N=L.blockClass;var S=L.blockSelector;var u=L.mirror;var T=L.sampling;L=L.doc;var W=BX(function(M){return Qe(BX(function(G){if((G=AQ(G))&&!X$(G,N,S,!0)){var D=G.currentTime,l=G.volume,v=G.muted,R=G.playbackRate,K=G.loop;Z({type:M,id:u.getId(G),currentTime:D,volume:l,muted:v,playbackRate:R,loop:K})}}),T.media||500)}),V=[rd("play",W(0),L),
rd("pause",W(1),L),rd("seeked",W(2),L),rd("volumechange",W(3),L),rd("ratechange",W(4),L)];return BX(function(){V.forEach(function(M){return M()})})};
YtP=function(L){var Z=L.fontCb;L=L.doc;var N=L.defaultView;if(!N)return function(){};
var S=[],u=new WeakMap,T=N.FontFace;N.FontFace=function(W,V,M){var G=new T(W,V,M);u.set(G,{family:W,buffer:typeof V!=="string",descriptors:M,fontSource:typeof V==="string"?V:JSON.stringify(Array.from(new Uint8Array(V)))});return G};
L=dd(L.fonts,"add",function(W){return function(V){setTimeout(BX(function(){var M=u.get(V);M&&(Z(M),u.delete(V))}),0);
return W.apply(this,[V])}});
S.push(function(){N.FontFace=T});
S.push(L);return BX(function(){S.forEach(function(W){return W()})})};
eXs=function(L){var Z=L.doc,N=L.mirror,S=L.blockClass,u=L.blockSelector,T=L.selectionCb,W=!0;L=BX(function(){var V=Z.getSelection();if(V&&!(W&&(V==null?0:V.isCollapsed))){W=V.isCollapsed||!1;for(var M=[],G=V.rangeCount||0,D=0;D<G;D++){var l=V.getRangeAt(D),v=l.startContainer,R=l.startOffset,K=l.endContainer;l=l.endOffset;X$(v,S,u,!0)||X$(K,S,u,!0)||M.push({start:N.getId(v),startOffset:R,end:N.getId(K),endOffset:l})}T({ranges:M})}});
L();return rd("selectionchange",L)};
I3P=function(L){var Z=L.doc;var N=L.customElementCb;return(L=Z.defaultView)&&L.customElements?dd(L.customElements,"define",function(S){return function(u,T,W){try{N({define:{name:u}})}catch(V){console.warn("Custom element callback failed for "+u)}return S.apply(this,[u,T,W])}}):function(){}};
d6P=function(L,Z){var N=L.mutationCb,S=L.mousemoveCb,u=L.mouseInteractionCb,T=L.scrollCb,W=L.viewportResizeCb,V=L.inputCb,M=L.mediaInteractionCb,G=L.styleSheetRuleCb,D=L.styleDeclarationCb,l=L.canvasMutationCb,v=L.fontCb,R=L.selectionCb,K=L.customElementCb;L.mutationCb=function(){var U=_.CG.apply(0,arguments);Z.mutation&&Z.mutation.apply(Z,_.Pd(U));N.apply(null,_.Pd(U))};
L.mousemoveCb=function(){var U=_.CG.apply(0,arguments);Z.mousemove&&Z.mousemove.apply(Z,_.Pd(U));S.apply(null,_.Pd(U))};
L.mouseInteractionCb=function(){var U=_.CG.apply(0,arguments);Z.mouseInteraction&&Z.mouseInteraction.apply(Z,_.Pd(U));u.apply(null,_.Pd(U))};
L.scrollCb=function(){var U=_.CG.apply(0,arguments);Z.scroll&&Z.scroll.apply(Z,_.Pd(U));T.apply(null,_.Pd(U))};
L.viewportResizeCb=function(){var U=_.CG.apply(0,arguments);Z.viewportResize&&Z.viewportResize.apply(Z,_.Pd(U));W.apply(null,_.Pd(U))};
L.inputCb=function(){var U=_.CG.apply(0,arguments);Z.input&&Z.input.apply(Z,_.Pd(U));V.apply(null,_.Pd(U))};
L.mediaInteractionCb=function(){var U=_.CG.apply(0,arguments);Z.mediaInteaction&&Z.mediaInteaction.apply(Z,_.Pd(U));M.apply(null,_.Pd(U))};
L.styleSheetRuleCb=function(){var U=_.CG.apply(0,arguments);Z.styleSheetRule&&Z.styleSheetRule.apply(Z,_.Pd(U));G.apply(null,_.Pd(U))};
L.styleDeclarationCb=function(){var U=_.CG.apply(0,arguments);Z.styleDeclaration&&Z.styleDeclaration.apply(Z,_.Pd(U));D.apply(null,_.Pd(U))};
L.canvasMutationCb=function(){var U=_.CG.apply(0,arguments);Z.canvasMutation&&Z.canvasMutation.apply(Z,_.Pd(U));l.apply(null,_.Pd(U))};
L.fontCb=function(){var U=_.CG.apply(0,arguments);Z.font&&Z.font.apply(Z,_.Pd(U));v.apply(null,_.Pd(U))};
L.selectionCb=function(){var U=_.CG.apply(0,arguments);Z.selection&&Z.selection.apply(Z,_.Pd(U));R.apply(null,_.Pd(U))};
L.customElementCb=function(){var U=_.CG.apply(0,arguments);Z.customElement&&Z.customElement.apply(Z,_.Pd(U));K.apply(null,_.Pd(U))}};
a3G=function(L,Z){Z=Z===void 0?{}:Z;var N=L.doc.defaultView;if(!N)return function(){};
d6P(L,Z);var S;L.recordDOM&&(S=gW1(L,L.doc));var u=FBf(L),T=$6w(L),W=D6H(L),V=l3t(L,{win:N}),M=RXP(L),G=U6F(L),D=function(){},l=function(){},v=function(){},R=function(){};
L.recordDOM&&(D=f3G(L,{win:N}),l=yL0(L,L.doc),v=wFs(L,{win:N}),L.collectFonts&&(R=YtP(L)));var K=eXs(L),U=I3P(L),d=[];L=_.O(L.plugins);for(Z=L.next();!Z.done;Z=L.next())Z=Z.value,d.push(Z.observer(Z.callback,N,Z.options));return BX(function(){HX.forEach(function(E){return E.reset()});
var h;(h=S)==null||h.disconnect();u();T();W();V();M();G();D();l();v();R();K();U();d.forEach(function(E){return E()})})};
cLL=function(L){return typeof window[L]!=="undefined"};
KBA=function(L){return!!(typeof window[L]!=="undefined"&&window[L].prototype&&"insertRule"in window[L].prototype&&"deleteRule"in window[L].prototype)};
hXG=function(L){L=new Uint8Array(L);for(var Z="",N=0;N<L.byteLength;N++)Z+=String.fromCharCode(L[N]);return btoa(Z)};
sTB=function(L,Z,N){if(L instanceof Array)return L.map(function(u){return sTB(u,Z,N)});
if(L!==null){if(L instanceof Float32Array||L instanceof Float64Array||L instanceof Int32Array||L instanceof Uint32Array||L instanceof Uint8Array||L instanceof Uint16Array||L instanceof Int16Array||L instanceof Int8Array||L instanceof Uint8ClampedArray)return{rr_type:L.constructor.name,args:[Object.values(L)]};if(L instanceof ArrayBuffer){var S=L.constructor.name;L=hXG(L);return{rr_type:S,base64:L}}if(L instanceof DataView)return{rr_type:L.constructor.name,args:[sTB(L.buffer,Z,N),L.byteOffset,L.byteLength]};
if(L instanceof HTMLImageElement)return{rr_type:L.constructor.name,src:L.src};if(L instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:L.toDataURL()};if(L instanceof ImageData)return{rr_type:L.constructor.name,args:[sTB(L.data,Z,N),L.width,L.height]};if(jTh(L,Z)||typeof L==="object")return S=L.constructor.name,L=EWs(L,Z,N),{rr_type:S,index:L}}return L};
pFx=function(L,Z,N,S){for(var u=[],T=_.O(Object.getOwnPropertyNames(Z.CanvasRenderingContext2D.prototype)),W=T.next(),V={};!W.done;V={prop$jscomp$58:void 0},W=T.next()){V.prop$jscomp$58=W.value;try{if(typeof Z.CanvasRenderingContext2D.prototype[V.prop$jscomp$58]==="function"){var M=dd(Z.CanvasRenderingContext2D.prototype,V.prop$jscomp$58,function(G){return function(D){return function(){var l=_.CG.apply(0,arguments),v=this;X$(this.canvas,N,S,!0)||setTimeout(function(){var R=Pxh(l,Z,v);L(v.canvas,{type:ZF["2D"],
property:G.prop$jscomp$58,args:R})},0);
return D.apply(this,l)}}}(V));
u.push(M)}}catch(G){W=XnF(Z.CanvasRenderingContext2D.prototype,V.prop$jscomp$58,{set:function(D){return function(l){L(this.canvas,{type:ZF["2D"],property:D.prop$jscomp$58,args:[l],setter:!0})}}(V)}),u.push(W)}}return function(){u.forEach(function(G){return G()})}};
zXw=function(L,Z,N,S){var u=[];try{var T=dd(L.HTMLCanvasElement.prototype,"getContext",function(W){return function(V){var M=_.CG.apply(1,arguments);if(!X$(this,Z,N,!0)){var G=V==="experimental-webgl"?"webgl":V;"__context"in this||(this.__context=G);S&&["webgl","webgl2"].includes(G)&&(M[0]&&typeof M[0]==="object"?(G=M[0],G.preserveDrawingBuffer||(G.preserveDrawingBuffer=!0)):M.splice(0,1,{preserveDrawingBuffer:!0}))}return W.apply(this,[V].concat(_.Pd(M)))}});
u.push(T)}catch(W){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){u.forEach(function(W){return W()})}};
m6G=function(L,Z,N,S,u,T){for(var W=[],V=_.O(Object.getOwnPropertyNames(L)),M=V.next(),G={};!M.done;G={prop$jscomp$59:void 0},M=V.next())if(G.prop$jscomp$59=M.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(G.prop$jscomp$59))try{if(typeof L[G.prop$jscomp$59]==="function"){var D=dd(L,G.prop$jscomp$59,function(l){return function(v){return function(){var R=_.CG.apply(0,arguments),K=v.apply(this,R);EWs(K,T,this);"tagName"in this.canvas&&!X$(this.canvas,S,u,!0)&&(R=
Pxh(R,T,this),N(this.canvas,{type:Z,property:l.prop$jscomp$59,args:R}));return K}}}(G));
W.push(D)}}catch(l){M=XnF(L,G.prop$jscomp$59,{set:function(v){return function(R){N(this.canvas,{type:Z,property:v.prop$jscomp$59,args:[R],setter:!0})}}(G)}),W.push(M)}return W};
JLG=function(L,Z,N,S){var u=[];u.push.apply(u,_.Pd(m6G(Z.WebGLRenderingContext.prototype,1,L,N,S,Z)));typeof Z.WebGL2RenderingContext!=="undefined"&&u.push.apply(u,_.Pd(m6G(Z.WebGL2RenderingContext.prototype,2,L,N,S,Z)));return function(){u.forEach(function(T){return T()})}};
uDH=function(L){var Z=L=L===void 0?{}:L,N=Z.emit,S=Z.checkoutEveryNms,u=Z.checkoutEveryNth,T=Z.blockClass===void 0?"rr-block":Z.blockClass,W=Z.blockSelector===void 0?null:Z.blockSelector,V=Z.ignoreClass===void 0?"rr-ignore":Z.ignoreClass,M=Z.ignoreSelector===void 0?null:Z.ignoreSelector,G=Z.maskTextClass===void 0?"rr-mask":Z.maskTextClass,D=Z.maskTextSelector===void 0?null:Z.maskTextSelector,l=Z.inlineStylesheet===void 0?!0:Z.inlineStylesheet,v=Z.maskAllInputs,R=Z.maskInputOptions,K=Z.slimDOMOptions,
U=Z.maskInputFn,d=Z.maskTextFn,h=Z.hooks,E=Z.packFn,A=Z.sampling===void 0?{}:Z.sampling,J=Z.dataURLOptions===void 0?{}:Z.dataURLOptions,C=Z.mousemoveWait,X=Z.recordDOM===void 0?!0:Z.recordDOM,L1=Z.recordCanvas===void 0?!1:Z.recordCanvas,Fw=Z.recordCrossOriginIframes===void 0?!1:Z.recordCrossOriginIframes,GB=Z.recordAfter===void 0?L.recordAfter==="DOMContentLoaded"?L.recordAfter:"load":Z.recordAfter,Yt=Z.userTriggeredOnInput===void 0?!1:Z.userTriggeredOnInput,lH=Z.collectFonts===void 0?!1:Z.collectFonts,
RF=Z.inlineImages===void 0?!1:Z.inlineImages,jf=Z.plugins,f1=Z.keepIframeSrcFn===void 0?function(){return!1}:Z.keepIframeSrcFn,n0=Z.ignoreCSSAttributes===void 0?new Set([]):Z.ignoreCSSAttributes;
N2=Z.errorHandler;var r5=Fw?window.parent===window:!0,yq=!1;if(!r5)try{window.parent.document&&(yq=!1)}catch(g5){yq=!0}if(r5&&!N)throw Error("af");if(!r5&&!yq)return function(){};
C!==void 0&&A.mousemove===void 0&&(A.mousemove=C);S9.reset();var ZN=v===!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}:R!==void 0?R:{password:!0},GV=K===!0||K==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:K==="all",headMetaDescKeywords:K==="all",headTitleMutations:K==="all"}:
K?K:{};ZLP();var IO,d5=0,n8=function(g5){for(var SY=_.O(jf||[]),Xw=SY.next();!Xw.done;Xw=SY.next())Xw=Xw.value,Xw.eventProcessor&&(g5=Xw.eventProcessor(g5));E&&!yq&&(g5=E(g5));return g5};
ic=function(g5,SY){g5.timestamp=GQB();var Xw;((Xw=HX[0])==null?0:Xw.isFrozen())&&g5.type!==2&&(g5.type!==3||g5.data.source!==0)&&HX.forEach(function(vl){return vl.unfreeze()});
r5?N==null||N(n8(g5),SY):yq&&(SY={type:"rrweb",event:n8(g5),origin:window.location.origin,isCheckout:SY},window.parent.postMessage(SY,"*"));g5.type===2?(IO=g5,d5=0):g5.type!==3||g5.data.source===0&&g5.data.isAttachIframe||(d5++,g5=S&&g5.timestamp-IO.timestamp>S,(u&&d5>=u||g5)&&CxA(!0))};
var lq=function(g5){ic({type:3,data:Object.assign({},{source:0},g5)})},tx=function(g5){return ic({type:3,
data:Object.assign({},{source:3},g5)})},ut=function(g5){return ic({type:3,
data:Object.assign({},{source:9},g5)})},oO=new rLG({mutationCb:lq,
adoptedStyleSheetCb:function(g5){return ic({type:3,data:Object.assign({},{source:15},g5)})}}),uq=new QTw({mirror:S9,
mutationCb:lq,stylesheetManager:oO,recordCrossOriginIframes:Fw,wrappedEmit:ic});L=_.O(jf||[]);for(Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.getMirror&&Z.getMirror({nodeMirror:S9,crossOriginIframeMirror:uq.crossOriginIframeMirror,crossOriginIframeStyleMirror:uq.crossOriginIframeStyleMirror});var RO=new XF1;ALF=new HLG({recordCanvas:L1,mutationCb:ut,win:window,blockClass:T,blockSelector:W,mirror:S9,sampling:A.canvas,dataURLOptions:J});var iq=new Bp1({mutationCb:lq,scrollCb:tx,bypassOptions:{blockClass:T,
blockSelector:W,maskTextClass:G,maskTextSelector:D,inlineStylesheet:l,maskInputOptions:ZN,dataURLOptions:J,maskTextFn:d,maskInputFn:U,recordCanvas:L1,inlineImages:RF,sampling:A,slimDOMOptions:GV,iframeManager:uq,stylesheetManager:oO,canvasManager:ALF,keepIframeSrcFn:f1,processedNodeManager:RO},mirror:S9});CxA=function(g5){g5=g5===void 0?!1:g5;if(X){ic({type:4,data:{href:window.location.href,width:BgP(),height:Hc1()}},g5);oO.reset();iq.init();HX.forEach(function(Xw){return Xw.lock()});
var SY=Q8H({mirror:S9,blockClass:T,blockSelector:W,maskTextClass:G,maskTextSelector:D,inlineStylesheet:l,maskAllInputs:ZN,maskTextFn:d,maskInputFn:U,slimDOM:GV,dataURLOptions:J,recordCanvas:L1,inlineImages:RF,onSerialize:function(Xw){Xw.nodeName==="IFRAME"&&S9.nodeMetaMap.get(Xw)&&x6G(uq,Xw);StA(Xw,S9)&&qtB(oO,Xw);Xw&&hQ(Xw)&&LCG(iq,hQ(Xw),document)},
onIframeLoad:function(Xw,vl){Z2G(uq,Xw,vl);Xw.contentWindow&&Xw.contentDocument&&N1B(iq,Xw.contentWindow.Element,Xw.contentDocument)},
onStylesheetLoad:function(Xw,vl){S4F(oO,Xw,vl)},
keepIframeSrcFn:f1});SY?(ic({type:2,data:{node:SY,initialOffset:A4H(window)}},g5),HX.forEach(function(Xw){return Xw.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&kQG(oO,document.adoptedStyleSheets,S9.getId(document))):console.warn("Failed to snapshot the document")}};
try{var hU=[],Qq=function(g5){var SY;return BX(a3G)({mutationCb:lq,mousemoveCb:function(Xw,vl){return ic({type:3,data:{source:vl,positions:Xw}})},
mouseInteractionCb:function(Xw){return ic({type:3,data:Object.assign({},{source:2},Xw)})},
scrollCb:tx,viewportResizeCb:function(Xw){return ic({type:3,data:Object.assign({},{source:4},Xw)})},
inputCb:function(Xw){return ic({type:3,data:Object.assign({},{source:5},Xw)})},
mediaInteractionCb:function(Xw){return ic({type:3,data:Object.assign({},{source:7},Xw)})},
styleSheetRuleCb:function(Xw){return ic({type:3,data:Object.assign({},{source:8},Xw)})},
styleDeclarationCb:function(Xw){return ic({type:3,data:Object.assign({},{source:13},Xw)})},
canvasMutationCb:ut,fontCb:function(Xw){return ic({type:3,data:Object.assign({},{source:10},Xw)})},
selectionCb:function(Xw){ic({type:3,data:Object.assign({},{source:14},Xw)})},
customElementCb:function(Xw){ic({type:3,data:Object.assign({},{source:16},Xw)})},
blockClass:T,ignoreClass:V,ignoreSelector:M,maskTextClass:G,maskTextSelector:D,maskInputOptions:ZN,inlineStylesheet:l,sampling:A,recordDOM:X,recordCanvas:L1,inlineImages:RF,userTriggeredOnInput:Yt,collectFonts:lH,doc:g5,maskInputFn:U,maskTextFn:d,keepIframeSrcFn:f1,blockSelector:W,slimDOMOptions:GV,dataURLOptions:J,mirror:S9,iframeManager:uq,stylesheetManager:oO,shadowDomManager:iq,processedNodeManager:RO,canvasManager:ALF,ignoreCSSAttributes:n0,plugins:(jf==null?void 0:(SY=jf.filter(function(Xw){return Xw.observer}))==
null?void 0:SY.map(function(Xw){return{observer:Xw.observer,
options:Xw.options,callback:function(vl){return ic({type:6,data:{plugin:Xw.name,payload:vl}})}}}))||[]},h)};
i2w(uq,function(g5){try{hU.push(Qq(g5.contentDocument))}catch(SY){console.warn(SY)}});
var Fh=function(){CxA();hU.push(Qq(document))};
document.readyState==="interactive"||document.readyState==="complete"?Fh():(hU.push(rd("DOMContentLoaded",function(){ic({type:0,data:{}});GB==="DOMContentLoaded"&&Fh()})),hU.push(rd("load",function(){ic({type:1,
data:{}});GB==="load"&&Fh()},window)));
return function(){hU.forEach(function(g5){return g5()});
RO.destroy();N2=void 0}}catch(g5){console.warn(g5)}};
_.k=function(L,Z){Z=xV(Af(Z));L.innerHTML=Z};
O21=function(L){var Z=T1s;Z||(Z=t5L(),Z=T1s=_.Py.transpose(Z));Z=Z[L];return typeof Z==="string"?Z:_.uc(L)};
WC0=function(L){L=String(L).toLowerCase();var Z=t5L()[L];return typeof Z==="string"?Z:_.To(L)};
V5w=function(L){L=L.toLowerCase();L=t5L()[L];return typeof L==="string"?L:null};
t5L=function(){if(!b2x){for(var L=Object.assign({},M5L),Z=_.O(gF0),N=Z.next();!N.done;N=Z.next())N=N.value,L[N.toLowerCase()]=N;b2x=L}return b2x};
$X0=function(L,Z){var N=window.customElements;return N&&N.get(L)||GAh[L]===!0?2:Z.name==="HTMLUnknownElement"?1:Z.name==="HTMLElement"&&FCL.test(L)?3:0};
vFA=function(L,Z){switch(Z){case "innerHTML":return DXt(L)===1?2:null;case "textContent":return L=DXt(L),L===1||L===6?1:null;default:var N,S;return(S=(N=lQw[L.localName])==null?void 0:N[Z])!=null?S:null}};
DXt=function(L){var Z=L.localName,N=$X0(Z,L.constructor);switch(N){case 0:case 1:return oFs(Z,L);case 3:case 2:return 1;default:_.Xh(N,"got an unknown element classification")}};
oFs=function(L,Z){var N=Object.hasOwnProperty.call(Rks,L)?Rks[L]:null;return N!==null?N:Object.hasOwnProperty.call(cvw,L)&&Z instanceof SVGElement?cvw[L]:null};
nFh=function(L,Z){return Z};
fQw=function(L){return(L=L.split(KC0,2))?{url:L[0],metadata:L[1]}:null};
yvh=function(L){var Z=String(L.url).replace(kAP,encodeURIComponent);if(L=L.metadata){kAP.lastIndex=0;if(kAP.test(L))return null;Z+=" "+L}return Z};
ek1=function(L){function Z(G){var D=G.localName;if(!G.getAttribute("is")&&$X0(D,G.constructor)===2){var l;return(l=M)!=null?l:M=document.createElement("polyresinuncustomized")}(G=V[D])||(G=V[D]=document.createElement(D));return G}
var N=L.reportHandler||void 0,S=L.safeTypesBridge||wcF,u=/^$/;if(L=L.allowedIdentifierPrefixes){L=_.O(L);for(var T=L.next();!T.done;T=L.next())u=new RegExp(u.source+"|^"+_.UXs(T.value))}N&&N(!1,"initResin",null);var W=Y4F(u,S,N),V={},M=null;return function(G,D,l){var v=G.nodeType;if(v!==Node.ELEMENT_NODE){if(v===Node.TEXT_NODE){D=G.parentElement;l=!D;if(D&&D.nodeType===Node.ELEMENT_NODE){v=D.localName;var R=$X0(v,D.constructor);switch(R){case 0:case 1:D=oFs(v,D);l=D===1||D===6;break;case 3:case 2:l=
!0;break;default:_.Xh(R,"got an unknown element classification")}}if(l)return function(h){return""+S(h,"STRING",h)}}return function(h){if(!h&&h!==document.all)return h;
N&&N(!0,"Failed to sanitize "+(G.parentElement&&G.parentElement.nodeName)+" #text node to value "+h,G.parentElement);return td}}var K=G.localName;
v=Z(G);var U=null;switch(l){case "attribute":if(WC0(D)in v)break;return function(h){return h};
case "property":if(D in v){U=vFA(v,D);break}if((R=V5w(D))&&R in v)break;return function(h){return h};
default:_.Xh(l,"got an unknown resin type, expected either 'property' or 'attribute'")}var d=l==="attribute"?D.toLowerCase():O21(D);U||(U=y2B(K,d,function(h){var E=G.getAttribute(h);return!E||/[\[\{]/.test(h)?null:E}));
return function(h){var E=Oo,A=null;if(!h&&h!==document.all)return h;if(U!=null){var J=W[U],C=J.safeType;A=J.safeReplacement;C&&(E=S(h,C,Oo));E===Oo&&(J.filterString?(E=String(S(h,"STRING",h)),E=J.filterString(K,d,E)):J.filterRaw&&(E=J.filterRaw(K,d,h,G)),E===A&&(E=Oo))}E===Oo&&(E=A||td,N&&N(!0,"Failed to sanitize attribute of <"+K+">: <"+K+" "+d+'="'+h+'">',G));return E}}};
Y4F=function(L,Z,N){return[,{filterRaw:function(S,u,T){return T},
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:IQ0,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:IQ0,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:td,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:dXA,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(S,u,T){T=
String(T).toLowerCase();return YVh(S,u,T)?T:td},
safeReplacement:td,safeType:void 0},,{filterRaw:void 0,filterString:function(S,u,T){return L.test(T)?T:td},
safeReplacement:td,safeType:"CONSTANT"},{filterRaw:function(S,u,T,W){if(typeof T==="string")var V=(V=T.match(aQh))?V.map(fQw).filter(Boolean):[];else if(Array.isArray(T))V=T;else return IQ0;var M=V;V=[];var G=[],D={};if(Array.isArray(M))for(var l=0,v=M.length;l<v;++l){var R=M[l],K=R&&R.url;if(K){var U=Z(K,"URL",D);if(U){var d=U!==D;(d?V:G).push({url:d?U:K,metadata:R.metadata})}}}else G.push(M);M=G.length?JSON.stringify(G):null;G=Oo;if(V.length){if(!Array.isArray(V))throw Error();G=V.map(yvh).filter(Boolean).join(" , ")||
Oo}M&&N&&N(!0,"Failed to sanitize attribute value of <"+S+">: <"+S+" "+u+'="'+T+'">: '+M,W);return G===Oo?IQ0:G},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
hkt=function(L){var Z=ek1(L);return function(N,S,u,T){return T||T===document.all?Z(N,S,u)(T):T}};
W2=function(L,Z){function N(){function u(V,M,G){for(M=Reflect.getMetadata("parameters",V)||[];M.length<=G;)M.push(null);M[G]=M[G]||[];M[G].push(W);Reflect.defineMetadata(M,V);return V}
var T=_.CG.apply(0,arguments);if(this instanceof N)return S.apply(this,T),this;var W=new (Function.prototype.bind.apply(N,[null].concat(_.Pd(T))));u.annotation=W;return u}
var S=syP(Z);N.prototype.toString=function(){return"@"+L};
return N.annotationCls=N};
syP=function(L){return function(){var Z=_.CG.apply(0,arguments),N=this;L.forEach(function(S,u){u=Z[u];if(Array.isArray(S))N[S[0]]=u&&u!==void 0?u:S[1];else for(var T in S)N[T]=u&&u[T]!==void 0?u[T]:S[T]})}};
jyB=function(L){return L!==void 0&&L!==null};
VT=function(L){if(typeof L==="string")return L;if(L===void 0||L===null)return""+L;if(L.overriddenName)return L.overriddenName;if(L.name)return L.name;L=L.toString();var Z=L.indexOf("\n");return Z===-1?L:L.substring(0,Z)};
EFB=function(L){L.__forward_ref__=EFB;L.toString=function(){return VT(this())};
return L};
bc=function(L){return typeof L==="function"&&L.hasOwnProperty("__forward_ref__")&&L.__forward_ref__===EFB?L():L};
PYf=function(L){return L?L.map(function(Z){return new (Function.prototype.bind.apply(Z.type.annotationCls,[null].concat(_.Pd(Z.args?Z.args:[]))))}):[]};
pcP=function(L){for(var Z=[],N=0;N<L.length;++N){if(Z.indexOf(L[N])>-1){Z.push(L[N]);break}Z.push(L[N])}return Z};
zkf=function(L){return L.length>1?" ("+pcP(L.slice().reverse()).map(function(Z){return VT(Z.token)}).join(" -> ")+")":""};
Jvs=function(L,Z,N,S){if(S){var u=Error("df``"+(S instanceof Error?S.message:S));u.ngOriginalError=S}else u=Error();u.addKey=mXB;u.keys=[Z];u.injectors=[L];u.constructResolvingMessage=N;u.message=u.constructResolvingMessage();u.ngOriginalError=S;return u};
mXB=function(L,Z){this.injectors.push(L);this.keys.push(Z);this.message=this.constructResolvingMessage()};
CYx=function(L,Z){return Jvs(L,Z,function(){return"No provider for "+VT(this.keys[0].token)+"!"+zkf(this.keys)})};
rvw=function(L,Z){return Jvs(L,Z,function(){return"Cannot instantiate cyclic dependency!"+zkf(this.keys)})};
Qyf=function(L,Z,N){return Jvs(L,N,function(){var S=VT(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+S+"!"+zkf(this.keys)+"."},Z)};
XcA=function(L,Z){for(var N=[],S=0,u=Z.length;S<u;S++){var T=Z[S];T&&T.length!=0?N.push(T.map(VT).join(" ")):N.push("?")}return Error("hf`"+VT(L)+"`"+N.join(", ")+"`"+VT(L))};
Z6_=function(L){var Z=void 0,N=void 0;if(L&&L.useClass!==void 0){Z=L.useClass;var S=bc(L.useClass);var u=Av_.factory(S);S=H2P(S)}else L&&L.useExisting!==void 0?(u=function(T){return T},S=[B1t(M2.get(bc(L.useExisting)))]):L&&L.useFactory!==void 0?(u=L.useFactory,S=xXF(L.useFactory,L.deps)):(N=L.useValue,u=function(){return L.useValue},S=q4P);
return new LVw(u,S,Z,N)};
Se0=function(L){return new NSA(M2.get(bc(L.provide)),[Z6_(L)],L.multi)};
uOt=function(L){L=i6w(L,[]).map(Se0);for(var Z=new Map,N=0;N<L.length;N++){var S=L[N],u=Z.get(S.key.id);if(u){if(S.multiProvider!==u.multiProvider)throw Error("kf`"+u+"`"+S);if(S.multiProvider)for(var T=0;T<S.resolvedFactories.length;T++)u.resolvedFactories.push(S.resolvedFactories[T]);else Z.set(S.key.id,S)}else u=void 0,S.multiProvider?u=new NSA(S.key,S.resolvedFactories.slice(),S.multiProvider):u=S,Z.set(S.key.id,u)}return Array.from(Z.values())};
i6w=function(L,Z){L.forEach(function(N){if(N instanceof TSG)Z.push({provide:N,useClass:N});else if(N&&typeof N=="object"&&N.provide!==void 0)Z.push(N);else if(N instanceof Array)i6w(N,Z);else throw Error("gf`"+N);});
return Z};
xXF=function(L,Z){if(Z){var N=Z.map(function(S){return[S]});
return Z.map(function(S){return tRB(L,S,N)})}return H2P(L)};
H2P=function(L){var Z=Av_.parameters(L);if(!Z)return[];if(Z.some(function(N){return N==null}))throw XcA(L,Z);
return Z.map(function(N){return tRB(L,N,Z)})};
tRB=function(L,Z,N){var S=null,u=!1;if(!Array.isArray(Z))return Z instanceof O6H?WVP(Z.token,u,null):WVP(Z,u,null);for(var T=null,W=0;W<Z.length;++W){var V=Z[W];if(V instanceof TSG)S=V;else if(V instanceof O6H)S=V.token;else if(V instanceof VR_)u=!0;else if(V instanceof b6s||V instanceof MR1)T=V}S=bc(S);if(S!=null)return WVP(S,u,T);throw XcA(L,N);};
WVP=function(L,Z,N){return new gUP(M2.get(bc(L)),Z,N)};
Gbx=function(L,Z){for(var N=Array(L.providers.length),S=0;S<L.providers.length;++S){var u=S;if(S<0||S>=L.providers.length)throw Error("jf`"+S);N[u]=Z(L.providers[S])}return N};
FVf=function(L){return typeof L==="function"&&Av_.parameters(L).every(function(Z){return!!Z})};
lXP=function(L){var Z=$9_;D9G.get(L)||D9G.set(L,new Z);return D9G.get(L)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(L){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(L)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(L){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(L)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(L,Z){var N,S;if(L.contains(Z))return!0;L=_.g0(L).querySelectorAll("content,slot");for(N=0;N<L.length;++N){var u=_.g0(L[N]).getDistributedNodes();for(S=0;S<u.length;++S)if(u[S].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(u[S],Z))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(L){L.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(L)&&L.preventDefault();L.targetTouches&&(L=L.targetTouches[0],vU0=L.pageX,oU_=L.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 L=0,Z=Go.length;L<Z;L++)document.addEventListener(Go[L],_._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 L=0,Z=Go.length;L<Z;L++)document.removeEventListener(Go[L],_._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(L){var Z=_.g0(L).rootTarget;L.type!=="touchmove"&&Ryx!==Z&&(Ryx=Z,cp1=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.g0(L).path));if(!cp1.length)return!0;if(L.type==="touchstart")return!1;L=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(L);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(cp1,L.deltaX,L.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(L){for(var Z=[],N=L.indexOf(nUG),S=0;S<=N;S++)if(L[S].nodeType===Node.ELEMENT_NODE){var u=L[S],T=u.style;T.overflow!=="scroll"&&T.overflow!=="auto"&&(T=window.getComputedStyle(u));T.overflow!=="scroll"&&T.overflow!=="auto"||Z.push(u)}return Z};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(L,Z,N){if(Z||N)for(var S=Math.abs(N)>=Math.abs(Z),u=0;u<L.length;u++){var T=L[u];if(S?N<0?T.scrollTop>0:T.scrollTop<T.scrollHeight-T.clientHeight:Z<0?T.scrollLeft>0:T.scrollLeft<T.scrollWidth-T.clientWidth)return T}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(L){var Z={deltaX:L.deltaX,deltaY:L.deltaY};"deltaX"in L||("wheelDeltaX"in L&&"wheelDeltaY"in L?(Z.deltaX=-L.wheelDeltaX,Z.deltaY=-L.wheelDeltaY):"wheelDelta"in L?(Z.deltaX=0,Z.deltaY=-L.wheelDelta):"axis"in L?(Z.deltaX=L.axis===1?L.detail:0,Z.deltaY=L.axis===2?L.detail:0):L.targetTouches&&(L=L.targetTouches[0],Z.deltaX=vU0-L.pageX,Z.deltaY=oU_-L.pageY));return Z};
KV_=function(L){this.element=L;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
kb1=function(L){this.element=L;this.color=window.getComputedStyle(L).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");_.g0(this.waveContainer).appendChild(this.wave);fXt(this)};
FJ=function(L,Z){for(var N in L)if(N.toLowerCase()===Z.toLowerCase())return L[N]};
ypB=function(L,Z){for(var N in L)if(N.toLowerCase()===Z.toLowerCase()){delete L[N];break}};
U9h=function(L){L=_.Py.clone(L);for(var Z=0;Z<wLf.length;++Z){var N=wLf[Z],S=FJ(L,N);S&&(L["X-Goog-Upload-Header-"+N]=S,ypB(L,N))}return L};
Yex=function(L){L=_.Py.clone(L);ypB(L,"X-Goog-Upload-Status")};
IX0=function(L){return ey_.some(function(Z){return Z.test(L)})};
s1P=function(L,Z){var N;var S=(N=L.formContent)==null?void 0:N.locale;N=S==null?void 0:S.split("-")[0];S=S&&d91.includes(S)?S:N&&d91.includes(N)?N:void 0;S=(S!=null?S:"en").replaceAll("-","_").toLowerCase();var u;L=((u=L.initializationData)==null?0:u.useNightlyRelease)?"nightly":"live";var T;return(Z==null?0:(T=Z.getEnableAlohaBinarySplit)==null?0:T.call(Z))?_.vy(aXF,L):_.vy(hyx,L,S)};
PO1=function(L,Z,N,S){if(j1x&&EUh===Z)return j1x;EUh=Z;var u=s1P(L,S);return j1x=Z.feedbackV2GlobalObject?Promise.resolve(Z.feedbackV2GlobalObject):new Promise(function(T,W){var V=_.wZ("SCRIPT");_.TE(V,u);V.onload=function(){Z.feedbackV2GlobalObject?T(Z.feedbackV2GlobalObject):W(Error("nf"))};
V.onerror=function(){W(Error("of`"+u.toString()))};
N.body.appendChild(V)})};
m9H=function(L,Z,N,S){if(pL_&&zy0===Z)return pL_;zy0=Z;var u=s1P(L,S);return pL_=Z.feedbackV2GlobalObject?Promise.resolve(Z.feedbackV2GlobalObject):new Promise(function(T,W){var V=_.wZ("SCRIPT");_.TE(V,u);V.onload=function(){Z.feedbackV2GlobalObject?T(Z.feedbackV2GlobalObject):W(Error("nf"))};
V.onerror=function(){W(Error("of`"+u.toString()))};
N.body.appendChild(V)})};
Jpf=function(L,Z,N,S,u){u=u===void 0?!0:u;var T,W,V,M,G;return _.b(function(D){switch(D.nextAddress){case 1:return T=Date.now(),D.yield(PO1(L,N,S,Z),2);case 2:W=D.yieldResult;if(!(u||((M=L.initializationData)==null?0:M.useNightlyRelease)||((G=L.initializationData)==null?0:G.isLocalServer))){V=W.initializeFeedbackClient(L,T,Z);D.jumpTo(3);break}return D.yield(W.initializeFeedbackClientAsync(L,T,Z),4);case 4:V=D.yieldResult;case 3:return V.initiateAloha(),D.return(V)}})};
CO_=function(L,Z,N,S){var u,T,W;return _.b(function(V){if(V.nextAddress==1)return u=Date.now(),V.yield(m9H(L,N,S.document,Z),2);if(V.nextAddress!=3)return T=V.yieldResult,V.yield(T.initializeFeedbackClientAsync(L,u,Z,S),3);W=V.yieldResult;W.initiateAloha();return V.return(W)})};
rp1=function(L,Z,N){var S=!0;S=S===void 0?!0:S;var u,T,W,V,M,G,D,l,v,R;return _.b(function(K){u=N||_.iH;if((T=Z)==null?0:(V=(W=T).getEnableAlohaBinarySplit)==null?0:V.call(W)){M=u;if(M.isFormOpened)throw G=Error("pf"),G.name="DuplicateFormError",G;M.isFormOpened=!0;L.callbacks=L.callbacks||{};D=L.callbacks.onClose||function(){};
L.callbacks.onClose=function(U){M.isFormOpened=!1;D(U)};
try{return K.return(CO_(L,Z,M,u))}catch(U){throw M.isFormOpened=!1,U;}}else{l=u;if(l.isFormOpened)throw v=Error("pf"),v.name="DuplicateFormError",v;l.isFormOpened=!0;L.callbacks=L.callbacks||{};R=L.callbacks.onClose||function(){};
L.callbacks.onClose=function(U){l.isFormOpened=!1;R(U)};
try{return K.return(Jpf(L,Z,l,u.document,S))}catch(U){throw l.isFormOpened=!1,U;}}_.w7(K)})};
BS0=function(L,Z){return _.b(function(N){return N.return(new Promise(function(S,u){Number.isInteger(Number(L))&&Number(L)>0?(u=Q1G(Z!=null?Z:"")+"/aloha_form_properties?productId="+L,XLh(u,function(T){T=T.target;var W=null;try{var V=JSON,M=V.stringify;if(T.JSC$9795_xhr_){var G=T.JSC$9795_xhr_.responseText;G.indexOf(")]}'\n")==0&&(G=G.substring(5));var D=(0,_.$P)(G)}else D=void 0;W=Afh(Ap_,M.call(V,D))}catch(l){M=new Ap_,D=H61(),D=_.DF(D,13,!1),D=_.DF(D,14,!0),D=_.DF(D,15,!0),D=_.DF(D,20,!1),W=_.fG(M,
1,D)}S(W)},"GET","",{},2E3,!0)):u(Error("qf`"+L))}))})};
Q1G=function(L){return IX0(L)?L:"https://www.google.com/tools/feedback"};
ZO0=function(L){L=L.match(new RegExp(x9_,"gi"))||[];L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;a:{var N=_.O(qeL);for(var S=N.next();!S.done;S=N.next())if(S.value.test(Z)){N=!1;break a}N=!0}if(!N)a:{N=_.O(LPs);for(S=N.next();!S.done;S=N.next())if(S.value.test(Z)){N=!0;break a}N=!1}if(N)return!0}return!1};
NEP=function(L,Z){var N={},S=Object.keys(L);S=_.O(S);for(var u=S.next();!u.done;u=S.next())u=u.value,N[u]=Z(u,L[u]);return N};
Sb0=function(L){switch(L){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"}};
uds=function(L){if(window.crypto&&window.crypto.getRandomValues)try{var Z=Array(L),N=new Uint8Array(L);window.crypto.getRandomValues(N);for(var S=0;S<Z.length;S++)Z[S]=N[S];return Z}catch(T){}Z=Array(L);for(N=0;N<L;N++){S=Date.now();for(var u=0;u<S%23;u++)Z[N]=Math.random();Z[N]=Math.floor(Math.random()*256)}if(iO0)for(N=1,S=0;S<iO0.length;S++)Z[N%L]^=Z[(N-1)%L]/4^iO0.charCodeAt(S),N++;return Z};
lc=function(L){L=uds(L);for(var Z=[],N=0;N<L.length;N++)Z.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(L[N]&63));return Z.join("")};
TEt=function(){var L=_.iH.ytLoggingDocDocumentNonce_;L||(L=lc(16),_.bp("ytLoggingDocDocumentNonce_",L));return L};
OO1=function(L){L&&_.mS("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:tQx,clientScreenNonce:L})};
WPF=function(L){return _.X7("client-screen-nonce-store",{})[L===void 0?0:L]};
VQs=function(L,Z){Z=Z===void 0?0:Z;var N=_.X7("client-screen-nonce-store");N||(N={},_.Qc("client-screen-nonce-store",N));N[Z]=L};
bOF=function(L){L=L===void 0?0:L;return L===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+L};
MQG=function(L){return _.X7(bOF(L===void 0?0:L))};
_.oH=function(L){return(L=MQG(L===void 0?0:L))?new v2({veType:L,youtubeData:void 0,jspbYoutubeData:void 0}):null};
gat=function(){var L=_.X7("csn-to-ctt-auth-info");L||(L={},_.Qc("csn-to-ctt-auth-info",L));return L};
G_P=function(){return Object.values(_.X7("client-screen-nonce-store",{})).filter(function(L){return L!==void 0})};
_.RH=function(L){L=WPF(L===void 0?0:L);if(!L&&!_.Ah("USE_CSN_FALLBACK",!0))return null;L||(L="UNDEFINED_CSN");return L?L:null};
$Rx=function(L){for(var Z=_.O(Object.values(FPs)),N=Z.next();!N.done;N=Z.next())if(_.RH(N.value)===L)return!0;return!1};
DRs=function(L,Z,N){var S=gat();(N=_.RH(N))&&delete S[N];Z&&(S[L]=Z)};
nv=function(L){return gat()[L]};
_.Kv=function(L,Z,N,S){N=N===void 0?0:N;if(L!==WPF(N)||Z!==_.X7(bOF(N)))if(DRs(L,S,N),VQs(L,N),_.Qc(bOF(N),Z),Z=function(){setTimeout(function(){OO1(L)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(Z)}catch(u){Z()}else Z()};
lcP=function(L,Z){Z=Z===void 0?"":Z;var N=[],S;for(S in L)if(L.hasOwnProperty(S)){var u=Z!==""?Z+"."+S:S;typeof L[S]==="object"?N.push.apply(N,_.Pd(lcP(L[S],u))):N.push([u,L[S]])}N.sort();return N};
_.kP=function(L){var Z=_.CG.apply(1,arguments);if(!fv(L)||Z.some(function(S){return!fv(S)}))throw Error("rf");
Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())vat(L,N.value)};
vat=function(L,Z){for(var N in Z)if(fv(Z[N])){if(N in L&&!fv(L[N]))throw Error("sf");N in L||(L[N]={});vat(L[N],Z[N])}else if(oa1(Z[N])){if(N in L&&!oa1(L[N]))throw Error("tf");N in L||(L[N]=[]);RYG(L[N],Z[N])}else L[N]=Z[N];return L};
RYG=function(L,Z){Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())N=N.value,fv(N)?L.push(vat({},N)):oa1(N)?L.push(RYG([],N)):L.push(N);return L};
fv=function(L){return typeof L==="object"&&!Array.isArray(L)};
oa1=function(L){return typeof L==="object"&&Array.isArray(L)};
na_=function(L){for(var Z=_.O(Object.entries(cws)),N=Z.next();!N.done;N=Z.next())if(N=_.O(N.value),N.next(),N=N.next().value,N==="SLI_STATUS_"+L)return N;return"SLI_STATUS_UNKNOWN"};
_.yT=function(L,Z,N,S){return KPG(L,Z,function(){return new _.fc1(L,Z,N,S)})};
_.k_x=function(){return _.yT("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
ywh=function(){return _.yT("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
w0=function(){return _.yT("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
wDL=function(){return _.yT("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
URs=function(){return _.yT("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
Ybt=function(){return _.yT("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
dR_=function(L){L&&(L.dataset?L.dataset[eYL()]="true":_.O3([_.Fr(Icx)],L,"data-loaded","true".toString()))};
acF=function(L){return L?L.dataset?L.dataset[eYL()]:L.getAttribute("data-loaded"):null};
eYL=function(){return hYs.loaded||(hYs.loaded="loaded".replace(/\-([a-z])/g,function(L,Z){return Z.toUpperCase()}))};
_.Uo=function(L,Z,N){sNs(L,Z,N===void 0?null:N)};
_.Ea1=function(L,Z){L&&Z&&(L=""+_.Hs(Z),(L=jN_[L])&&_.cCh(L))};
sNs=function(L,Z,N){N=N===void 0?null:N;var S=_.P01(typeof L==="string"?L:L.toString()),u=document.getElementById(S),T=u&&acF(u),W=u&&!T;T?Z&&Z():(Z&&(T=_.vK(S,Z),Z=""+_.Hs(Z),jN_[Z]=T),W||(u=pD_(L,S,function(){acF(u)||(dR_(u),_.nNt(S),_.cW(function(){_.fhs(S)},0))},N)))};
pD_=function(L,Z,N,S){S=S===void 0?null:S;var u=_.wZ("SCRIPT");u.id=Z;u.onload=function(){N&&setTimeout(N,0)};
u.onreadystatechange=function(){switch(u.readyState){case "loaded":case "complete":u.onload()}};
S&&u.setAttribute("nonce",S);_.TE(u,typeof L==="string"?_.jb(L):L);L=document.getElementsByTagName("head")[0]||document.body;L.insertBefore(u,L.firstChild);return u};
_.P01=function(L){var Z=document.createElement("a");Q8(Z,L);return"js-"+YP(Z.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
zYx=function(L){var Z=_.X7("INNERTUBE_HOST_OVERRIDE");Z&&(L=String(Z)+String(_.e9(L)));return L};
mRP=function(L){var Z={};_.c("json_condensed_response")&&(Z.prettyPrint="false");return L=Ccw(L,Z)};
_.IH=function(L){return bQ(L)?"same-origin":"include"};
_.d0=function(L){return bQ(L)?"same-origin":"cors"};
aH=function(L,Z,N){N=N===void 0?{}:N;L={method:Z===void 0?"POST":Z,mode:_.d0(L),credentials:_.IH(L)};Z={};for(var S=_.O(Object.keys(N)),u=S.next();!u.done;u=S.next())u=u.value,N[u]&&(Z[u]=N[u]);Object.keys(Z).length>0&&(L.headers=Z);return L};
_.hd=function(L,Z){Z=Z===void 0?{}:Z;return"service:"+L+"/"+Object.keys(Z).sort().map(function(N){return N+":"+Z[N]}).join("/")};
JwL=function(L){var Z,N,S,u;L=(Z=_.n(L,_.so))==null?void 0:(N=Z.watchEndpointSupportedOnesieConfig)==null?void 0:(S=N.html5PlaybackOnesieConfig)==null?void 0:(u=S.commonConfig)==null?void 0:u.url;if(!L)return[];Z=new _.j9(L);return Z.JSC$10031_domain_?["https://"+Z.JSC$10031_domain_+"/generate_204"]:[]};
_.QNF=function(){return C0H()||BRL()||rwF&&X2("version/")?!0:_.X7("EOM_VISITOR_DATA")?!1:!0};
XDL=function(L){var Z=L.docid||L.video_id||L.videoId||L.id;if(Z)return Z;Z=L.raw_player_response;Z||(L=L.player_response)&&(Z=JSON.parse(L));return Z&&Z.videoDetails&&Z.videoDetails.videoId||null};
Awf=function(L){return L.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Eo=function(L){return!isNaN(Number(L))&&!_.V_(L)};
_.pv=function(L,Z,N,S){S=S===void 0?!0:S;var u=_.X7("VALID_SESSION_TEMPDATA_DOMAINS",[]),T=_.WW(window.location.href);T&&u.push(T);T=_.WW(L);if(_.p1(u,T)||!T&&_.TB(L,"/"))if(u=document.createElement("a"),Q8(u,L),L=u.href)if(L=_.e9(L),L=_.P2(L))S&&!Z.csn&&(Z.itct||Z.ved)&&(Z=Object.assign({csn:_.RH()},Z)),N?(N=parseInt(N,10),isFinite(N)&&N>0&&HOP(L,Z,N)):HOP(L,Z)};
xRh=function(L){var Z=_.X7("VALID_SESSION_TEMPDATA_DOMAINS",[]),N=_.WW(window.location.href);N&&Z.push(N);N=_.WW(L);if(!(_.p1(Z,N)||!N&&_.TB(L,"/")))return null;L=_.e9(L);(L=_.P2(L))?(L=BEB(L),L=(L=_.eZ.get(L,void 0)||null)?_.iQ(L):{}):L=null;return L};
HOP=function(L,Z,N){L=BEB(L);Z=Z?_.wv(Z):"";N=N||5;_.QNF()&&_.Ie(L,Z,N)};
BEB=function(L){for(var Z=_.O(qbF),N=Z.next();!N.done;N=Z.next())L=_.zo(L,N.value);return"ST-"+YP(L).toString(36)};
_.LZB=function(L){if(L.requestFullscreen)L=L.requestFullscreen(void 0);else if(L.webkitRequestFullscreen)L=L.webkitRequestFullscreen();else if(L.mozRequestFullScreen)L=L.mozRequestFullScreen();else if(L.msRequestFullscreen)L=L.msRequestFullscreen();else if(L.webkitEnterFullscreen)L=L.webkitEnterFullscreen();else return Promise.reject(Error("Cf"));return L instanceof Promise?L:Promise.resolve()};
_.Jd=function(L){var Z;_.WWP(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.mg()==L&&(Z=document):Z=L;if(Z&&(L=_.WWP(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],Z))){L.call(Z)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.mg=function(){var L=L===void 0?!1:L;var Z=_.WWP(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(L)for(;Z&&Z.shadowRoot;)Z=Z.shadowRoot.fullscreenElement;return Z?Z:null};
_.Cv=function(L,Z){Z=Z===void 0?!0:Z;L.addEventListener("wheel",ZTf);L.overscrollConfig={cooldown:Z}};
_.r0=function(L){L.overscrollConfig=void 0;L.removeEventListener("wheel",ZTf)};
ZTf=function(L){var Z=L.deltaY,N=L.target,S=null;if(window.Polymer&&window.Polymer.Element){if(N=L.path||L.composedPath&&L.composedPath()){N=_.O(N);for(var u=N.next();!u.done&&(u=u.value,!Nfx(u,Z));u=N.next())if(u.overscrollConfig){S=u;break}}}else for(;N&&!Nfx(N,Z);){if(N.overscrollConfig){S=N;break}N=N.parentElement}S&&(Z=S.overscrollConfig,Z.cooldown?(S=L.deltaY,N=Z.lastDeltaY||0,Z.lastDeltaY=S,u=Z.lastStopped||0,N&&u&&N>0==S>0?Math.abs(N)>=Math.abs(S)?(S=u+1200,N=!1):(S=u+600,N=!0):(S=Date.now()+
600,N=!0),S>Date.now()&&(L.preventDefault(),N&&(Z.lastStopped=Date.now()))):L.preventDefault())};
Nfx=function(L,Z){return Z<0&&L.scrollTop>0||Z>0&&L.scrollTop<L.scrollHeight-L.clientHeight-1?(L=getComputedStyle(L).overflowY,L=="auto"||L=="scroll"):!1};
_.QT=function(L,Z,N,S){S||(S={bubbles:!0,cancelable:!1,composed:!0});N!==null&&N!==void 0&&(S.detail=N);var u=new CustomEvent(Z,S);_.c("untrack_fire_custom_event_killswitch")?L.dispatchEvent(u):_.cE(function(){return void L.dispatchEvent(u)});
return u};
SF0=function(L){var Z=window,N=function(S){Z.removeEventListener("yt-navigate-start",N);return L.call(Z,S)};
Z.addEventListener("yt-navigate-start",N,void 0)};
_.XJ=function(L,Z,N,S){Z=new iTH(Z,!(S===void 0||!S),N);_.QT(L,"yt-action",Z);return Z.returnValue};
_.Ad=function(L,Z,N){return _.XJ(L,Z,N,!0)};
_.B2=function(L,Z,N,S){Z&&Z.length&&Z.forEach(function(u){var T=tCw(u);T&&(_.c("handle_service_request_actions")&&u.commandMetadata&&u.commandMetadata.webCommandMetadata&&u.commandMetadata.webCommandMetadata.sendPost?_.H2(N?N:L,[u]):_.Ad(L,T,[u,N,S]))})};
_.H2=function(L,Z){var N=[L];Z&&N.push.apply(N,Z);Z=_.XJ(L,"yt-service-request",N);return Z.length>0&&(Z=Z[0],_.QT(L,"yt-service-request-sent",Z),Z&&Z.ajaxPromise)?(Z.ajaxPromise.then(function(S){_.QT(L,"yt-service-request-completed",S)},function(S){_.QT(L,"yt-service-request-error",{error:S,
params:N})},L),Z.ajaxPromise):_.xP()};
_.Lq=function(L,Z){if(_.c("handle_service_request_actions"))_.B2(Z,L,Z);else{L=_.O(L);for(var N=L.next();!N.done;N=L.next()){N=N.value;var S=void 0;((S=_.n(N,_.q2))==null?0:S.commands)?_.Lq(_.n(N,_.q2).commands,Z):(S=void 0,((S=_.n(N,_.ZW))==null?0:S.actions)?_.Lq(_.n(N,_.ZW).actions,Z):(S=void 0,((S=_.n(N.commandMetadata,_.Nj))==null?0:S.sendPost)?_.H2(Z,[N]):_.B2(Z,[N],Z)))}}};
_.TfF=function(L,Z,N){Z=Z===void 0?{}:Z;typeof Z==="function"&&(Z={callback:Z});N||Z._c&&Z._c.jsl&&Z._c.jsl.h||_.Py.extend(Z,{_c:{jsl:{h:_.X7("GAPI_HINT_PARAMS")}}});(Z.gapiHintOverride||_.X7("GAPI_HINT_OVERRIDE"))&&(N=_.uQ(document.location.href).gapi_jsh)&&_.Py.extend(Z,{_c:{jsl:{h:N}}});uNB(L,Z)};
_.iB=function(L,Z,N){Z=Z===void 0?{}:Z;L=(L=L in Sz?Sz[L]:N)||"";N={};for(var S in Z){N={key$jscomp$843:N.key$jscomp$843};N.key$jscomp$843=S;var u=function(T){return function(){return String(Z[T.key$jscomp$843])}}(N);
L=L.replace(new RegExp("\\$\\{"+N.key$jscomp$843+"\\}","gi"),u);L=L.replace(new RegExp("\\$"+N.key$jscomp$843,"gi"),u)}return L};
_.uB=function(L,Z){return tcx(L in Sz?Sz[L]:{},Z)};
tcx=function(L,Z){var N=_.X7("I18N_PLURAL_RULES");N||(N=function(S){return S==1?"one":"other"});
return(L=L["case"+Z]||L[N(Z)])?L.replace("#",Z.toString()):Z+""};
Vc0=function(L){var Z=OTB(L),N=document.getElementById(Z),S=N&&acF(N);S||N&&!S||(N=WZA(L,Z,function(){if(!acF(N)){dR_(N);_.nNt(Z);var u=_.T6(_.fhs,Z);_.cW(u,0)}}))};
WZA=function(L,Z,N){var S=document.createElement("link");S.id=Z;S.onload=function(){N&&setTimeout(N,0)};
L=_.jb(L);_.Wd(S,L,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(S);return S};
OTB=function(L){var Z=_.wZ("A");Q8(Z,hf(L));return"css-"+YP(Z.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.McF=function(L){var Z=bTG();L!==Z&&(Z=_.tq(),!_.c("web_autonav_allow_off_by_default")&&L||_.OT(0,141,!0),_.OT(0,140,!L),Z.save())};
bTG=function(){var L=_.tq();return _.c("web_autonav_allow_off_by_default")&&!L.getFlag(141)&&_.X7("AUTONAV_OFF_BY_DEFAULT")?!1:!L.getFlag(140)};
gZP=function(L,Z){var N,S;L=((N=L.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(S=N.videoAuthorizationToken)==null?void 0:S.credentialTransferTokens)||[];for(N=0;N<L.length;++N)if(L[N].scope===Z)return L[N].token||void 0};
GK1=function(L){for(var Z=0,N=0;N<L.length;N++)Z=Z*31+L.charCodeAt(N),N<L.length-1&&(Z%=0x800000000000);return Z%1E5};
_.WB=function(L){return _.LZ("ytcsi."+(L||"")+"data_")||FZ0(L)};
_.$fx=function(L){L=_.WB(L);L.metadata||(L.metadata={});return L.metadata};
_.Dfh=function(L){L=_.WB(L);L.tick||(L.tick={});return L.tick};
_.Va=function(L){L=_.WB(L);if(L.gel){var Z=L.gel;Z.gelInfos||(Z.gelInfos={});Z.gelTicks||(Z.gelTicks={})}else L.gel={gelTicks:{},gelInfos:{}};return L.gel};
_.ls1=function(L){L=_.Va(L);L.gelInfos||(L.gelInfos={});return L.gelInfos};
vZA=function(L){var Z=_.WB(L).nonce;Z||(Z=lc(16),_.WB(L).nonce=Z);return Z};
FZ0=function(L){var Z={tick:{},info:{}};_.bp("ytcsi."+(L||"")+"data_",Z);return Z};
oZw=function(){var L=_.LZ("ytcsi.debug");L||(L=[],_.bp("ytcsi.debug",L),_.bp("ytcsi.reference",{}));return L};
_.bB=function(L){L=L||"";var Z=Roh();if(Z[L])return Z[L];var N=oZw(),S={timerName:L,info:{},tick:{},span:{},jspbInfo:[]};N.push(S);return Z[L]=S};
ccs=function(L){L=L||"";var Z=Roh();Z[L]&&delete Z[L];var N=oZw(),S={timerName:L,info:{},tick:{},span:{},jspbInfo:[]};N.push(S);Z[L]=S};
Roh=function(){var L=_.LZ("ytcsi.reference");if(L)return L;oZw();return _.LZ("ytcsi.reference")};
_.KZG=function(L){return nZw[L]||"LATENCY_ACTION_UNKNOWN"};
wbh=function(L,Z,N){N=N===void 0?{}:N;var S=!1;_.Ah("ytLoggingEventsDefaultDisabled",!1)&&(S=!0);S=S?null:zI;N=N===void 0?{}:N;var u=Math.round(N.timestamp||(0,_.GT)());_.aW(Z,1,u<Number.MAX_SAFE_INTEGER?u:0);u=new fsG;if(N.lact)_.aW(u,1,isFinite(N.lact)?N.lact:-1);else if(N.timestamp)_.aW(u,1,-1);else{var T=_.Fv();_.aW(u,1,isFinite(T)?T:-1)}if(N.sequenceGroup&&!_.c("web_gel_sequence_info_killswitch")){T=N.sequenceGroup;var W=a9P(T),V=new kKH;_.aW(V,2,W);_.dF(V,1,T);_.fG(u,3,V);N.endOfSequence&&delete yct[N.sequenceGroup]}_.fG(Z,
33,u);(N.sendIsolatedPayload?zEB:mgw)(L,{endpoint:"log_event",payload:Z,cttAuthInfo:N.cttAuthInfo,dangerousLogToVisitorSession:N.dangerousLogToVisitorSession},S)};
_.gR=function(){return(_.c("csi_use_time_origin")||_.c("csi_use_time_origin_tvhtml5"))&&_.Mj.timeOrigin?Math.floor(_.Mj.timeOrigin):_.Mj.timing.navigationStart};
_.Ufs=function(L,Z){_.G6("_start",L,Z)};
_.FK=function(L,Z){if(!_.c("web_csi_action_sampling_enabled")||!_.WB(Z).actionDisabled){var N=_.bB(Z||"");_.kP(N.info,L);L.loadType&&(N=L.loadType,_.$fx(Z).loadType=N);_.kP(_.ls1(Z),L);N=vZA(Z);Z=_.WB(Z).cttAuthInfo;YFf().info(L,N,Z)}};
eo0=function(){var L,Z,N,S;return((S=_.GR().resolve(_.gv(j2))==null?void 0:(L=EI())==null?void 0:(Z=L.loggingHotConfig)==null?void 0:(N=Z.csiConfig)==null?void 0:N.debugTicks)!=null?S:[]).map(function(u){return Object.values(u)[0]})};
_.G6=function(L,Z,N){if(!_.c("web_csi_action_sampling_enabled")||!_.WB(N).actionDisabled){var S=vZA(N),u;if(u=_.c("web_csi_debug_sample_enabled")&&S){(_.GR().resolve(_.gv(j2))==null?0:EI())&&!IsP&&(IsP=!0,_.G6("gcfl",(0,_.GT)(),N));var T,W,V;u=(_.GR().resolve(_.gv(j2))==null?void 0:(T=EI())==null?void 0:(W=T.loggingHotConfig)==null?void 0:(V=W.csiConfig)==null?void 0:V.debugSampleWeight)||0;if(T=u!==0)b:{T=eo0();if(T.length>0)for(W=0;W<T.length;W++)if(L===T[W]){T=!0;break b}T=!1}T?(u=GK1(S)%u!==0,
_.WB(N).debugTicksExcludedLogged||(T={},T.debugTicksExcluded=u,_.FK(T,N)),_.WB(N).debugTicksExcludedLogged=!0):u=!1}if(!u){L[0]!=="_"&&dft(L,N,Z);u=_.bB(N||"");u.tick[L]=Z||(0,_.GT)();if(u.callback&&u.callback[L])for(u=_.O(u.callback[L]),T=u.next();!T.done;T=u.next())T=T.value,T();u=_.Va(N);u.gelTicks&&(u.gelTicks[L]=!0);T=_.Dfh(N);u=Z||(0,_.GT)();_.c("log_repeated_ytcsi_ticks")?L in T||(T[L]=u):T[L]=u;T=_.WB(N).cttAuthInfo;L==="_start"?YFf().baseline(S,Z,T):YFf().tick(L,S,Z,T);_.ass(N);return u}}};
dft=function(L,Z,N){if(_.Mj.mark)if(L.startsWith("mark_")||(L="mark_"+L),Z&&(L+=" ("+Z+")"),N===void 0||_.c("web_csi_disable_alt_time_performance_mark"))_.Mj.mark(L);else{N=_.c("csi_use_performance_navigation_timing")?N-_.Mj.timeOrigin:N-(_.Mj.timeOrigin||_.Mj.timing.navigationStart);try{_.Mj.mark(L,{startTime:N})}catch(S){}}};
hoB=function(){var L,Z=(L=_.Mj.getEntriesByType)==null?void 0:L.call(_.Mj,"mark");Z&&Z.forEach(function(N){if(N.name.startsWith("mark_")){var S;(S=_.Mj.clearMarks)==null||S.call(_.Mj,N.name)}})};
_.swL=function(){switch(OY_()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.jw_=function(L){var Z={},N=function(T,W,V){W=W.match("_rid")?W.split("_rid")[0]:W;typeof V==="number"&&(V=JSON.stringify(V));T.requestIds?T.requestIds.push({endpoint:W,id:V}):T.requestIds=[{endpoint:W,id:V}]};
L=_.O(Object.entries(L));for(var S=L.next();!S.done;S=L.next()){var u=_.O(S.value);S=u.next().value;u=u.next().value;switch(S){case "GetBrowse_rid":N(Z,S,u);break;case "GetGuide_rid":N(Z,S,u);break;case "GetHome_rid":N(Z,S,u);break;case "GetPlayer_rid":N(Z,S,u);break;case "GetSearch_rid":N(Z,S,u);break;case "GetSettings_rid":N(Z,S,u);break;case "GetTrending_rid":N(Z,S,u);break;case "GetWatchNext_rid":N(Z,S,u);break;case "yt_red":Z.isRedSubscriber=!!u;break;case "yt_ad":Z.isMonetized=!!u}}return Z};
PkF=function(L,Z,N,S,u,T){if(!_.c("web_csi_action_sampling_enabled")||!_.WB(T).actionDisabled){var W=_.Va(T);if(W.gelSpans)W.gelSpans[L]=!0;else{var V={};W.gelSpans=(V[L]=!0,V)}EZ_++;L={spanName:L,spanLengthUsec:String(Math.round(Z*1E3)),spanNonce:EZ_};S&&(L.spanInfo=S);u&&(L.parentSpanNonce=u);N&&(L.spanStartTimeUsec=String(Math.round(N*1E3)));_.bB(T||"").span[String(L.spanName)]=L;N=_.Va(T);N.gelSpans||(N.gelSpans={});_.kP(N.gelSpans,L);N=vZA(T);T=_.WB(T).cttAuthInfo;YFf().span(L,N,T);return L.spanNonce}};
_.pbA=function(L){var Z=_.$6("aft",L);if(Z)return Z;Z=_.X7((L||"")+"TIMING_AFT_KEYS",["ol"]);for(var N=Z.length,S=0;S<N;S++){var u=_.$6(Z[S],L);if(u)return u}return NaN};
_.zof=function(L,Z){_.bp("ytglobal.timing"+(Z||"")+"ready_",L)};
_.$6=function(L,Z){if(L=_.Dfh(Z)[L])return typeof L==="number"?L:L[L.length-1]};
_.ass=function(L){var Z=_.$6("_start",L),N=_.pbA(L),S=!mfh;Z&&N&&S&&(h3_(JcB,new CkH(Math.round(N-Z),L)),mfh=!0)};
QwL=function(L){FZ0(L);rct();hoB();L||(_.X7("TIMING_ACTION")&&_.Qc("PREVIOUS_ACTION",_.X7("TIMING_ACTION")),_.Qc("TIMING_ACTION",""))};
_.Xbw=function(L){L=L===void 0?{}:L;_.B8(function(){DW();ccs();QwL();_.zof(!1);L.cttAuthInfo&&(_.WB().cttAuthInfo=L.cttAuthInfo);_.Qc("TIMING_AFT_KEYS",[]);L.isHot?_.lB({loadType:"hot"}):_.lB({loadType:"warm"});_.Qc("TIMING_ACTION","");delete _.X7("TIMING_INFO",{}).yt_lt;_.B8(_.Ufs)(L.startTime,void 0)})()};
_.oq=function(L,Z,N,S){Z=Z===void 0?{}:Z;_.B8(function(){var u=N?N:L;vB(u);var T=Z.sampleRate;if(!_.c("web_csi_action_sampling_enabled")||T===void 0||T<=1)T=!1;else{var W=vZA(u);T=GK1(W)%T!==0}T&&(_.WB(u).actionDisabled=!0);_.bB(u||"").info.actionType=L;Z.cttAuthInfo&&(_.WB(u).cttAuthInfo=Z.cttAuthInfo);_.Qc(u+"TIMING_ACTION",L);_.B8(_.Ufs)(Z.startTime,u);T={actionType:S||_.KZG(L)};Z.logPreviousAction&&(T.previousAction=_.KZG(_.X7("TIMING_ACTION")));(W=_.RH())&&W!=="UNDEFINED_CSN"&&(T.clientScreenNonce=
W);_.lB(T,u);_.zof(!0,u)})()};
vB=function(L){_.B8(function(){DW(L);ccs(L);QwL(L)})()};
Acs=function(){_.B8(function(){var L=[],Z;for(Z in _.LZ("ytcsi.".slice(0,-1)))Z.endsWith("data_")&&L.push(Z.slice(0,-5));L=_.O(L);for(Z=L.next();!Z.done;Z=L.next())vB(Z.value);DW()})()};
_.Bft=function(L){return _.B8(function(){return _.HTs("_start",L)})()};
_.lB=function(L,Z,N){_.B8(_.FK)(L,Z,N===void 0?!1:N)};
_.Rq=function(L,Z,N){return _.B8(_.G6)(L,Z,N)};
_.HTs=function(L,Z){return _.B8(function(){var N=_.Dfh(Z);return L in N})()};
qFL=function(L){if(!_.c("universal_csi_network_ticks"))return"";L=_.ks(L)||"";for(var Z=Object.keys(xfh),N=0;N<Z.length;N++){var S=Z[N];if(L.includes(S))return S}return""};
ZF1=function(L){if(!_.c("universal_csi_network_ticks"))return function(){};
var Z=xfh[L];return Z?(_.Kq(Z),function(){var N=_.c("universal_csi_network_ticks")?(N=Lif[L])?_.Kq(N):!1:!1;return N}):function(){}};
_.Kq=function(L,Z,N){return _.B8(function(){if(_.HTs(L,N))return!1;_.Rq(L,Z,N);return!0})()};
_.fq=function(L,Z,N){_.B8(function(){if(!_.Bft(N)||_.HTs(L,N))return!1;_.Rq(L,Z,N);return!0})()};
_.k6=function(L){return _.B8(_.$6)(L,void 0)};
DW=function(L){_.Bft(L)&&_.Rq("aa",void 0,L)};
_.TMF=function(L,Z,N,S,u,T,W,V,M){var G=NMf();V=new v2({veType:Z,youtubeData:T,jspbYoutubeData:V});T=ya({},G);u&&(T.cttAuthInfo=u);u={csn:G,pageVe:V.getAsJson()};_.c("expectation_logging")&&M&&M.screenCreatedLoggingExpectations&&(u.screenCreatedLoggingExpectations=M.screenCreatedLoggingExpectations);N&&N.visualElement?(u.implicitGesture={parentCsn:N.clientScreenNonce,gesturedVe:N.visualElement.getAsJson()},W&&(u.implicitGesture.gestureType=W)):N&&_.Q7(new _.sr("newScreen() parent element does not have a VE - rootVe",
Z));S&&(u.cloneCsn=S);L?pA("screenCreated",u,L,T):_.mS("screenCreated",u,T);h3_(mJB,new S$w(G));wR.clear();iFf.clear();uxF.clear();return G};
UT=function(L,Z,N,S,u,T){T=T===void 0?{}:T;thA(L,Z,N,[S],u===void 0?!1:u,T)};
thA=function(L,Z,N,S,u,T){u=u===void 0?!1:u;T=T===void 0?{}:T;Object.assign(T,ya({cttAuthInfo:nv(Z)||void 0},Z));for(var W=_.O(S),V=W.next();!V.done;V=W.next()){V=V.value;var M=V.getAsJson();(_.Py.isEmpty(M)||!M.trackingParams&&!M.veType)&&_.Q7(Error("Df"));if(_.c("no_client_ve_attach_unless_shown")){var G=OFF(V,Z);if(M.veType&&!iFf.has(G)&&!uxF.has(G)&&!u){if(!_.c("il_attach_cache_limit")||wR.size<1E3){wR.set(G,[L,Z,N,V]);return}_.c("il_attach_cache_limit")&&wR.size>1E3&&_.Q7(new _.sr("IL Attach cache exceeded limit"))}V=
OFF(N,Z);wR.has(V)?Wis(N,Z):uxF.set(V,!0)}}S=S.filter(function(D){D.csn!==Z?(D.csn=Z,D=!0):D=!1;return D});
N={csn:Z,parentVe:N.getAsJson(),childVes:_.px(S,function(D){return D.getAsJson()})};
Z==="UNDEFINED_CSN"?Y6("visualElementAttached",T,N):L?pA("visualElementAttached",N,L,T):_.mS("visualElementAttached",N,T)};
bF_=function(L,Z,N,S,u){Vhf(L,Z,N,u)};
Vhf=function(L,Z,N,S){MhF(N,Z);var u=ya({cttAuthInfo:nv(Z)||void 0},Z);N={csn:Z,ve:N.getAsJson(),eventType:1};S&&(N.clientData=S);Z==="UNDEFINED_CSN"?Y6("visualElementShown",u,N):L?pA("visualElementShown",N,L,u):_.mS("visualElementShown",N,u)};
g3f=function(L,Z,N,S){MhF(N,Z);var u=ya({cttAuthInfo:nv(Z)||void 0},Z);N={csn:Z,ve:N.getAsJson(),eventType:4};S&&(N.clientData=S);Z==="UNDEFINED_CSN"?Y6("visualElementShown",u,N):L?pA("visualElementShown",N,L,u):_.mS("visualElementShown",N,u)};
GWB=function(L,Z,N,S,u){var T=(S=S===void 0?!1:S)?16:8;S=ya({cttAuthInfo:nv(Z)||void 0,endOfSequence:S},Z);N={csn:Z,ve:N.getAsJson(),eventType:T};u&&(N.clientData=u);Z==="UNDEFINED_CSN"?Y6("visualElementHidden",S,N):L?pA("visualElementHidden",N,L,S):_.mS("visualElementHidden",N,S)};
$UA=function(L,Z,N,S,u){Fi_(L,Z,N,void 0,S,u)};
Fi_=function(L,Z,N,S,u){MhF(N,Z);S=S||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var T=ya({cttAuthInfo:nv(Z)||void 0},Z);N={csn:Z,ve:N.getAsJson(),gestureType:S};u&&(N.clientData=u);Z==="UNDEFINED_CSN"?Y6("visualElementGestured",T,N):L?pA("visualElementGestured",N,L,T):_.mS("visualElementGestured",N,T)};
DUx=function(L,Z,N,S){var u=ya({cttAuthInfo:nv(Z)||void 0},Z);N={csn:Z,ve:N.getAsJson(),clientData:S};Z==="UNDEFINED_CSN"?Y6("visualElementStateChanged",u,N):L?pA("visualElementStateChanged",N,L,u):_.mS("visualElementStateChanged",N,u)};
ljw=function(){var L=uds(16);for(var Z=[],N=0;N<L.length;N++)Z.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(L[N]&63));return Z.join("")};
Y6=function(L,Z,N){v3x.push({payloadName:L,payload:N,jspbPayload:void 0,options:Z});o3B||(o3B=CvH())};
z31=function(L){if(v3x){for(var Z=_.O(v3x),N=Z.next();!N.done;N=Z.next())N=N.value,N.payload&&(N.payload.csn=L.csn,_.mS(N.payloadName,N.payload,N.options));v3x.length=0}o3B=0};
OFF=function(L,Z){return""+L.getAsJson().veType+L.getAsJson().veCounter+Z};
MhF=function(L,Z){if(_.c("no_client_ve_attach_unless_shown")){var N=OFF(L,Z);iFf.set(N,!0);Wis(L,Z)}};
Wis=function(L,Z){L=OFF(L,Z);wR.has(L)&&(Z=wR.get(L)||[],UT(Z[0],Z[1],Z[2],Z[3],!0),wR.delete(L))};
ya=function(L,Z){_.c("log_sequence_info_on_gel_web")&&(L.sequenceGroup=Z);return L};
_.ez=function(L,Z,N){_.B8(UT)(void 0,L,Z,N)};
_.Iq=function(L,Z,N){_.B8(thA)(void 0,L,Z,N)};
_.dR=function(L,Z){_.B8(bF_)(void 0,L,Z,void 0,void 0,void 0)};
_.aq=function(L,Z,N){_.B8(function(){_.SZ(Z,function(S){g3f(void 0,L,S,N)})})()};
_.hq=function(L,Z,N,S){_.B8(function(){_.SZ(Z,function(u){GWB(void 0,L,u,N,S)})})()};
_.sT=function(L,Z,N){_.B8($UA)(void 0,L,Z,N,void 0)};
_.jz=function(L,Z,N,S){_.B8(Fi_)(void 0,L,Z,N,S,void 0)};
_.ET=function(L,Z,N){_.B8(DUx)(void 0,L,Z,N,void 0)};
RTw=function(L,Z){PB.set(L,Z)};
cKA=function(L){pq.initialized=!0;pq.sessionId=L.sessionId||"";pq.enabledSpans=L.enabledSpans;L.shouldSampleFn!=null&&(pq.shouldSampleFn=L.shouldSampleFn)};
n3t=function(L){pq.processors.push(L)};
Ki_=function(L){return pq.initialized?pq.enabledSpans?pq.enabledSpans[L]:!0:!1};
fjw=function(L,Z){if(L){Z=Z===void 0?1:Z;if(L){L.endTime=(0,_.GT)();Z&&(L.status=Z);Z=_.O(pq.processors);for(var N=Z.next();!N.done;N=Z.next()){N=N.value;try{var S=void 0,u=void 0;(u=(S=N).onSpanEnd)==null||u.call(S,L)}catch(T){_.Q7(T)}}}L!==pq.stack[pq.stack.length-1]&&_.Q7(Error("Gf`"+L.name));pq.stack.pop()}};
yKF=function(L,Z,N){if(Ki_(L)&&pq.shouldSampleFn(L,Z,kW0)){var S=pq.nextSpanId++,u=pq.stack[pq.stack.length-1];L={id:S,parentId:u==null?void 0:u.id,name:L,attributes:Z,traceId:u?u.traceId:S,sessionId:pq.sessionId,startTime:(0,_.GT)(),status:0};u&&(u.children||(u.children=[]),u.children.push(L));u=_.O(pq.processors);for(Z=u.next();!Z.done;Z=u.next()){Z=Z.value;try{var T=S=void 0;(T=(S=Z).onSpanStart)==null||T.call(S,L)}catch(V){_.Q7(V)}}}else L=void 0;L?pq.stack.push(L):L=void 0;if(!L)return N();try{var W=
N(L);fjw(L);return W}catch(V){throw fjw(L,2),V;}};
w$B=function(){};
UUB=function(L,Z){var N=Object.keys(L);L=new _.sr("[Command Handler] "+Z,{filteredCommandNames:N,originalCommand:L});_.CA(L)};
Y$F=function(L,Z){UUB(L,Z+" was called but not set")};
eTw=function(L){return function(){return new L}};
z6=function(L){return function(){return _.GR().resolve(L)}};
Ijx=function(L,Z){var N=_.n(L,_.xE);if(N&&(N=Z[N.signal]))return N();L=_.O(Object.keys(L));for(N=L.next();!N.done;N=L.next())if(N=N.value,Z[N]&&(N=Z[N]))return N()};
_.m2=function(L,Z,N,S){return{browseEndpoint:{browseId:L},commandMetadata:{webCommandMetadata:{url:Z,rootVe:N,webPageType:S===void 0?"WEB_PAGE_TYPE_BROWSE":S}}}};
dUP=function(L,Z,N){var S=Z=Z===void 0?0:Z;N=N===void 0?0:N;var u=N-S;return _.Jq(L,"PPSV",void 0,void 0,(u>600?0:u<60||N<=0||S/N>.9)?0:Z)};
_.Jq=function(L,Z,N,S,u){var T="/watch?v="+L;L={videoId:L};Z&&(L.playlistId=Z,T+="&list="+Z);S&&(T+="&pp="+S);u&&(L.startTimeSeconds=u,T+="&t="+u+"s");Z={watchEndpoint:L,commandMetadata:{webCommandMetadata:{url:T,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};N&&(Z.clickTrackingParams=N);S&&(_.n(Z,_.so).playerParams=S);return Z};
ajA=function(L){return{browseEndpoint:{browseId:"VL"+L},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+L,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
hTh=function(L){if(L){var Z;if(L){var N=(Z=_.n(L.commandMetadata,_.Nj))==null?void 0:Z.url;Z=!(!N||N==="/service_ajax")}else Z=!1;if(Z)return L;var S;if(L=(S=_.n(L,_.q2))==null?void 0:S.commands)for(S=_.O(L),L=S.next();!L.done;L=S.next())if(L=hTh(L.value))return L}};
_.Cq=function(L){return{runs:[{text:L}]}};
sBH=function(L,Z){return L&&Z?{runs:[{text:L,navigationEndpoint:Z}]}:void 0};
rR=function(L){return L?_.Cq(L):void 0};
_.Qa=function(L){return L?{simpleText:L}:void 0};
_.XK=function(L){var Z=L.type;L=L.payload;Z={type:Z};L!==void 0&&(Z.payload=L);return Z};
jBx=function(L,Z,N){for(var S=Object.assign({},L),u=_.O(Object.keys(Z)),T=u.next();!T.done;T=u.next()){T=T.value;var W=L[T],V=Z[T];if(V===void 0)delete S[T];else if(W===void 0)S[T]=V;else if(Array.isArray(V)&&Array.isArray(W))S[T]=N?[].concat(_.Pd(W),_.Pd(V)):V;else if(!Array.isArray(V)&&_.Q_(V)&&!Array.isArray(W)&&_.Q_(W))S[T]=jBx(W,V,N);else if(typeof V===typeof W)S[T]=V;else return Z=new _.sr("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:T,originalValue:W,updateValue:V}),
_.CA(Z),L}return S};
p$f=function(L){if(!L.length)return"";try{if(E31)return E31.decode(L);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(L)}catch(W){}for(var Z=0,N=[],S=L.length;Z<S;){for(var u=0;u<1024&&Z<S;){var T=L[Z++];if(T<128)PDL[u++]=T;else{if(T<224)T=(T&31)<<6|L[Z++]&63;else if(T<240)T=(T&15)<<12|(L[Z++]&63)<<6|L[Z++]&63;else{if(u+1===1024){--Z;break}T=(T&7)<<18|(L[Z++]&63)<<12|(L[Z++]&63)<<6|L[Z++]&63;T-=65536;PDL[u++]=55296|T>>10;T=56320|T&1023}PDL[u++]=T}}T=String.fromCharCode.apply(String,
PDL);u<1024&&(T=T.substring(0,u));N.push(T)}return N.join("")};
mUG=function(L,Z){var N;if((N=zT_)==null?0:N.encodeInto)return Z=zT_.encodeInto(L,Z),Z.read<L.length?L.length*4:Z.written;for(var S=N=0;S<L.length;S++){var u=L.charCodeAt(S);u<128?Z[N++]=u:(u<2048?Z[N++]=u>>6|192:((u&64512)===55296&&S+1<L.length&&(L.charCodeAt(S+1)&64512)===56320?(u=65536+((u&1023)<<10)+(L.charCodeAt(++S)&1023),Z[N++]=u>>18|240,Z[N++]=u>>12&63|128):Z[N++]=u>>12|224,Z[N++]=u>>6&63|128),Z[N++]=u&63|128)}return N};
JK_=function(L,Z,N){if(Z&&N&&N.buffer===Z.exports.memory.buffer){var S=Z.realloc(N.byteOffset,L);if(S)return new Uint8Array(Z.exports.memory.buffer,S,L)}L=Z?new Uint8Array(Z.exports.memory.buffer,Z.malloc(L),L):new Uint8Array(L);N&&L.set(N);return L};
_.HB=function(L){L=new CDP(new rKP([_.xt(decodeURIComponent(L))]));if(QBP(L,2)){var Z=Aq(L);var N=L.pos;var S=L.arrayView;N=N===void 0?0:N;var u=Z===void 0?-1:Z;N=N===void 0?0:N;u=u===void 0?-1:u;if(S.totalLength&&u){u<0&&(u=S.totalLength-N);S.focus(N);if(!(N-S.arrayPos+u<=S.arrays[S.arrayIdx].length)){var T=S.arrayIdx,W=S.arrayPos;S.focus(N+u-1);W=new Uint8Array(S.arrayPos+S.arrays[S.arrayIdx].length-W);for(var V=0,M=T;M<=S.arrayIdx;M++)W.set(S.arrays[M],V),V+=S.arrays[M].length;S.arrays.splice(T,
S.arrayIdx-T+1,W);S.arrayIdx=0;S.arrayPos=0;S.focus(N)}T=S.arrays[S.arrayIdx];S=new DataView(T.buffer,T.byteOffset+N-S.arrayPos,u)}else S=new DataView(new ArrayBuffer(0));S=new Uint8Array(S.buffer,S.byteOffset,S.byteLength);L.pos+=Z;Z=S}else Z=void 0;Z=Z?p$f(Z):void 0;L=QBP(L,4)?Aq(L):void 0;S=X$t[L];if(typeof S==="undefined")throw L=new _.sr("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:L}),_.CA(L),L;return{entityTypeFieldNumber:L,entityType:S,entityId:Z}};
_.qj=function(L,Z,N){N=N===void 0?0:N;var S=new AKP;if(zT_)L=zT_.encode(L);else{var u=new Uint8Array(Math.ceil(L.length*1.2)),T=mUG(L,u);u.length<T&&(u=new Uint8Array(T),T=mUG(L,u));u.length>T&&(u=u.subarray(0,T));L=u}L!==void 0&&(BB(S,18),u=L.length,BB(S,u),x6(S,u),S.buf.set(L,S.pos),S.pos+=u);L=HFs[Z];if(typeof L==="undefined")throw N=new _.sr("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:Z}),_.CA(N),N;L!==void 0&&(BB(S,32),BB(S,L));BB(S,40);BB(S,1);Z=new Uint8Array(S.buf.buffer,
S.buf.byteOffset,S.pos);return encodeURIComponent(_.jY(Z,N))};
BMs=function(L){L=L.key||L.id;if(!L)throw Error("If");return L};
q$t=function(L,Z){L=L===void 0?{}:L;return xU_(L,Z)};
Lc1=function(L,Z,N,S){if(S===void 0)return S=Object.assign({},L[Z]||{}),N=(delete S[N],S),S={},Object.assign({},L,(S[Z]=N,S));var u={},T={};return Object.assign({},L,(T[Z]=Object.assign({},L[Z],(u[N]=S,u)),T))};
ZfG=function(L,Z,N,S,u){var T=L[Z];if(T==null||!T[N])return L;S=jBx(T[N],S,u==="REPEATED_FIELDS_MERGE_OPTION_APPEND");u={};T={};return Object.assign({},L,(T[Z]=Object.assign({},L[Z],(u[N]=S,u)),T))};
_.Lk=function(L,Z,N){return L[Z]?L[Z][N]||null:null};
SOt=function(){if(NHF)return NHF();var L={};NHF=go("PersistentEntityStoreDb",{objectStores:(L.EntityStore={addedAtVersion:1},L.EntityAssociationStore={addedAtVersion:2},L),shared:!1,upgrade:function(Z,N){N(1)&&LA(qO(Z,"EntityStore",{keyPath:"key"}),"entityType","entityType");N(2)&&(Z=qO(Z,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),LA(Z,"byParentEntityKey","parentEntityKey"),LA(Z,"byChildEntityKey","childEntityKey"))},
version:3});return NHF()};
ifF=function(L){return _.up(SOt(),L)};
ZT=function(L){return window.Int32Array?new Int32Array(L):Array(L)};
TH0=function(L){return _.up(uIw(),L)};
t3F=function(L){return new Ne("WRONG_DATA_TYPE",{encoderVersion:L})};
Of1=function(L){return L instanceof Error?new Ne("UNKNOWN_ENCODE_ERROR",{originalMessage:L.message}):new Ne("UNKNOWN_ENCODE_ERROR")};
WcP=function(L){return L instanceof Error?new Ne("UNKNOWN_DECODE_ERROR",{originalMessage:L.message}):new Ne("UNKNOWN_DECODE_ERROR")};
V3_=function(L,Z){L=L instanceof Ne?L:Z(L);_.CA(L);throw L;};
bfH=function(L){L=(new TextEncoder).encode(L).subarray(0,16);var Z=new Uint8Array(16);Z.set(L);return Z};
gvG=function(L){var Z=M3H[L];if(Z)return Z;_.Q7(new _.sr("Entity model not found.",{entityType:L}))};
_.SM=function(){G20||(G20=FcB());return G20};
FcB=function(){var L,Z,N;return _.b(function(S){if(S.nextAddress==1)return _.RS(S,2),S.yield(_.MO(),4);if(S.nextAddress!=2){L=S.yieldResult;if(!L||!_.h3()||typeof _.iH.BroadcastChannel==="undefined")return S.return();Z=new $v0;return S.return(new i2(L,Z))}N=_.yd(S);N instanceof Error&&_.CA(N);return S.return()})};
_.u2=function(L,Z){var N;return _.b(function(S){if(S.nextAddress==1){N=L.mutations;if(!N||N.length<=0)return S.return();Z&&Z.dispatch(_.XK({type:"ENTITY_LOADED",payload:N}));return S.yield(Dvx(N),2)}N.length=0;_.w7(S)})};
Dvx=function(L){var Z;return _.b(function(N){return N.nextAddress==1?N.yield(_.SM(),2):(Z=N.yieldResult)?N.yield(_.Ta(Z,"readwrite",function(S){for(var u={},T=_.O(L),W=T.next(),V={};!W.done;V={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},W=T.next())V.mutation$jscomp$8=W.value,V.mutation$jscomp$8.entityKey&&lah(V.mutation$jscomp$8)&&(V.mutationEntityType$jscomp$3=(0,_.Py.getAnyKey)(V.mutation$jscomp$8.payload),W=void 0,V.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(W=function(M){return function(){return _.vvx(S,
M.mutation$jscomp$8.payload[M.mutationEntityType$jscomp$3],M.mutationEntityType$jscomp$3)}}(V)),V.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(W=function(M){return function(){return ov1(S,M.mutation$jscomp$8.entityKey)}}(V)),V.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(W=function(M){return function(){return RVh(S,M.mutation$jscomp$8.entityKey,M.mutation$jscomp$8.payload[M.mutationEntityType$jscomp$3],M.mutationEntityType$jscomp$3)}}(V)),W&&(u[V.mutation$jscomp$8.entityKey]=
u[V.mutation$jscomp$8.entityKey]?u[V.mutation$jscomp$8.entityKey].then(W):W()));
return xs.all(Object.values(u))}),0):N.return()})};
lah=function(L){var Z;L=(Z=L.options)==null?void 0:Z.persistenceOption;return L==="ENTITY_PERSISTENCE_OPTION_PERSIST"||L==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
Kcw=function(L,Z){var N,S;_.b(function(u){if(u.nextAddress==1)return u.yield(_.SM(),2);if(u.nextAddress!=3)return(N=u.yieldResult)?u.yield(_.Ta(N,"readonly",function(T){var W={},V=Object.keys(Z).map(function(M){var G=Z[M]?[].concat(_.Pd(Z[M])):[];return ceB(T,M,G,W)});
return xs.all(V).then(function(){return W})}),3):u.return();
S=u.yieldResult;Object.keys(S).length>0&&L.dispatch(nvt(S));_.w7(u)})};
ceB=function(L,Z,N,S){return tN(L,Z,N).then(function(u){S[Z]=fax(N,u)})};
fax=function(L,Z){if(Z.length!==L.length)throw Error("Lf");return Z.reduce(function(N,S,u){N[L[u]]=S;return N},{})};
w3L=function(L){var Z=L.filter(function(u){var T;return(u==null?void 0:(T=u.transferEntity)==null?void 0:T.transferState)==="TRANSFER_STATE_COMPLETE"}).length,N=L.filter(function(u){var T;
return(u==null?void 0:(T=u.transferEntity)==null?void 0:T.transferState)==="TRANSFER_STATE_FAILED"}).length,S=L.filter(function(u){var T;
return(u==null?void 0:(T=u.transferEntity)==null?void 0:T.transferState)&&k2G.includes(u.transferEntity.transferState)});
if(!(Z||S!=null&&S.length))return 0;Z=_.yex(S)+Z;L=L.length-N;return L===0?0:Math.round(Z*100/L)/100};
_.yex=function(L){var Z=[];Z=Z.concat.apply(Z,_.Pd(L.filter(function(T){return T.streamEntity}).map(function(T){var W=Object.assign({},T.streamEntity),V,M=(V=T.transferEntity)==null?void 0:V.transferState;
W.streamsProgress=W.streamsProgress||[];W.streamsProgress=W.streamsProgress.map(function(G){var D=Object.assign({},G);D.numBytesDownloaded=M==="TRANSFER_STATE_COMPLETE"?G.numTotalBytes:G.numBytesDownloaded;return D});
return W}).map(function(T){return T.streamsProgress})));
var N=L=0;Z=_.O(Z);for(var S=Z.next();!S.done;S=Z.next()){var u=S.value;S=Number(u.numBytesDownloaded);u=Number(u.numTotalBytes);N+=isNaN(S)?0:S;L+=isNaN(u)?0:u}return L===0?0:Math.round(N*100/L)/100};
Uvt=function(L){if(!L||!L.expirationTimestamp||!L.action)return!1;var Z=(0,_.GT)()/1E3;return Number(L.expirationTimestamp)>=Z};
O9=function(L){return L&&L.expirationTimestamp&&L.action?Uvt(L)&&L.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Wv=function(L){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(L||"TRANSFER_STATE_UNKNOWN")};
YOH=function(L){var Z=new AKP;if(L!==void 0){var N=Math.ceil(Math.log2(L.length*4+2)/7);N=N===void 0?2:N;BB(Z,10);Z.submessagePosStack.push(Z.pos);Z.submessagePosStack.push(N);Z.pos+=N;x6(Z,L.length*1.2);N=mUG(L,Z.buf.subarray(Z.pos));Z.pos+N>Z.buf.length&&(x6(Z,N),N=mUG(L,Z.buf.subarray(Z.pos)));Z.pos+=N;L=Z.submessagePosStack.pop();N=Z.submessagePosStack.pop();for(var S=Z.pos-N-L;L--;){var u=L?128:0;Z.view.setUint8(N++,S&127|u);S>>=7}}Z=new Uint8Array(Z.buf.buffer,Z.buf.byteOffset,Z.pos);return(new TextDecoder("utf-8")).decode(Z)};
_.VE=function(L){var Z=0;L=_.O(L);for(var N=L.next(),S={};!N.done;S={transferState$jscomp$3:void 0},N=L.next()){var u=N.value,T=void 0;N=(T=u.streamEntity)!=null?T:{};T=void 0;S.transferState$jscomp$3=(T=u.transferEntity)==null?void 0:T.transferState;T=u=void 0;((u=N)==null?0:(T=u.streamsProgress)==null?0:T.length)&&N.streamsProgress.forEach(function(W){return function(V){V=Number(W.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?V.numTotalBytes:V.numBytesDownloaded);isFinite(V)&&(Z+=V)}}(S))}return Z};
eVf=function(L){return L.some(function(Z){var N;if(!(Z==null?0:(N=Z.transferEntity)==null?0:N.transferState)){var S;return!(Z==null?0:(S=Z.policyEntity)==null?0:S.action)||Z.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return k2G.includes(Z.transferEntity.transferState)})};
Iat=function(L,Z){if(!Z)return!1;if(_.c("of_pb_en_po_ks"))return!0;var N;L=(N=_.Lk(L,"offlineVideoPolicy",_.qj(Z,"offlineVideoPolicy")))!=null?N:void 0;return!!L&&O9(L)};
_.aaH=function(L){var Z=["TRANSFER_STATE_COMPLETE"];Z=Z===void 0?dvL:Z;return L.filter(function(N){var S,u;return Z.includes((u=(S=N.transferEntity)==null?void 0:S.transferState)!=null?u:"TRANSFER_STATE_UNKNOWN")})};
hVF=function(L,Z){if(Z){var N,S=(N=_.Lk(L,"playbackData",_.qj(Z,"playbackData")))!=null?N:null,u;N=(u=_.Lk(L,"transfer",_.qj(Z,"transfer")))!=null?u:null;var T;u=(T=_.Lk(L,"offlineVideoStreams",_.qj(Z,"offlineVideoStreams")))!=null?T:null;var W;L=(W=_.Lk(L,"offlineVideoPolicy",_.qj(Z,"offlineVideoPolicy")))!=null?W:null;if(S||N||u||L)return{playbackDataEntity:S,transferEntity:N,streamEntity:u,policyEntity:L}}};
_.b2=function(L){var Z=L.playbackData;if(!Z)return[];var N=[];Z=_.O(Object.keys(Z));for(var S=Z.next();!S.done;S=Z.next()){var u=S.value;if(!suF(L,_.HB(u).entityId)&&(S=hVF(L,_.HB(u).entityId))){var T=void 0,W=void 0;u=(W=Number((T=_.Lk(L,"playbackData",u))==null?void 0:T.streamDownloadTimestampSeconds))!=null?W:(0,_.GT)();N.push({entity:S,streamDownloadTimestamp:u})}}return N.sort(function(V,M){var G=V.streamDownloadTimestamp,D=M.streamDownloadTimestamp;return D===G?V.entity.streamEntity&&!M.entity.streamEntity?
1:-1:D-G}).map(function(V){return V.entity})};
juh=function(L){return _.aaH(_.b2(L))};
_.EvF=function(L){return _.b2(L).filter(function(Z){var N;if(((N=Z.policyEntity)==null?0:N.action)&&Z.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var S;if((S=Z.transferEntity)==null?0:S.transferState){var u;return k2G.includes((u=Z.transferEntity)==null?void 0:u.transferState)}return!0})};
suF=function(L,Z){var N;return((N=_.Lk(L,"downloadStatusEntity",_.qj(Z,"downloadStatusEntity")))==null?void 0:N.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Ph_=function(L){var Z;if(L==null?0:(Z=L.playbackDataEntity)==null?0:Z.key)return _.HB(L.playbackDataEntity.key).entityId;var N;if(L==null?0:(N=L.transferEntity)==null?0:N.key)return _.HB(L.transferEntity.key).entityId;var S;if(L==null?0:(S=L.streamEntity)==null?0:S.key)return _.HB(L.streamEntity.key).entityId;var u;if(L==null?0:(u=L.policyEntity)==null?0:u.key)return _.HB(L.policyEntity.key).entityId};
zVL=function(L){var Z=new Set,N;L=(N=L.mainDownloadsListEntity)==null?void 0:N[p3A];var S;if(!(L==null?0:(S=L.downloads)==null?0:S.length))return Z;var u;L==null||(u=L.downloads)==null||u.forEach(function(T){(T==null?0:T.videoItem)&&Z.add(T.videoItem)});
return Z};
Me=function(L,Z){if(Z){var N=_.Lk(L,"mainVideoEntity",_.qj(Z,"mainVideoEntity")),S=_.Lk(L,"downloadStatusEntity",_.qj(Z,"downloadStatusEntity")),u=_.Lk(L,"ytMainChannelEntity",_.qj(Z,"ytMainChannelEntity")),T={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};L=hVF(L,Z);S=(S==null?void 0:S.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.c("woffle_render_failed_download_state_ks")&&(S==null?void 0:S.downloadState)==="DOWNLOAD_STATE_FAILED";!L&&S&&(L=T);if(L&&N&&
u)return Object.assign({},{videoEntity:N,channelEntity:u},L)}};
Je0=function(L,Z){return mv_(L,Z)==="TRANSFER_STATE_COMPLETE"&&Iat(L,Z)};
Ch0=function(L,Z){if(!Z)return!1;var N;L=(N=_.Lk(L,"playbackData",_.qj(Z,"playbackData")))!=null?N:void 0;return!!L&&!!L.playerResponseJson};
mv_=function(L,Z){if(!Z)return"TRANSFER_STATE_UNKNOWN";var N=_.Lk(L,"transfer",_.qj(Z,"transfer"));if(N){var S;return(S=N.transferState)!=null?S:"TRANSFER_STATE_UNKNOWN"}N=_.Lk(L,"offlineOrchestrationActionWrapperEntity",_.qj(Z,"offlineOrchestrationActionWrapperEntity"));L=_.Lk(L,"mainVideoEntity",_.qj(Z,"mainVideoEntity"));return N||L?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
reh=function(L,Z){if(!Z)return"TRANSFER_STATE_UNKNOWN";if(L=_.Lk(L,"transfer",_.qj(Z,"transfer"))){var N;return(N=L.transferState)!=null?N:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
Qu_=function(L,Z){return Z&&(L=_.Lk(L,"videoPlaybackPositionEntity",_.qj(Z,"videoPlaybackPositionEntity")),L==null?0:L.lastPlaybackPositionSeconds)?Number(L.lastPlaybackPositionSeconds):0};
Ae1=function(L,Z){return X3h(L).some(function(N){var S;return(N==null?void 0:(S=N.mainPlaylistEntity)==null?void 0:S.playlistId)===Z})};
BHw=function(L,Z,N){var S=HfH(L,Z);if(!S.length)return[];Z=[];S=_.O(S);for(var u=S.next();!u.done;u=S.next()){u=u.value;var T=Me(L,u);N&&mv_(L,u)!=="TRANSFER_STATE_COMPLETE"||T&&Z.push(T)}return Z};
HfH=function(L,Z){if(!Z)return[];var N=_.qj(Z,"mainPlaylistEntity"),S;Z=(S=L.mainPlaylistEntity)==null?void 0:S[N];S=[];if(Z==null||!Z.videos)return S;Z=_.O(Z.videos);for(N=Z.next();!N.done;N=Z.next()){N=N.value;var u=void 0,T=void 0,W=void 0,V=(u=L)==null?void 0:(T=u.mainPlaylistVideoEntity)==null?void 0:(W=T[N])==null?void 0:W.video;V&&(N=_.HB(V).entityId)&&S.push(N)}return S};
xvf=function(L,Z){if(Z){var N=_.Lk(L,"mainPlaylistEntity",_.qj(Z,"mainPlaylistEntity")),S=_.Lk(L,"mainPlaylistDownloadStateEntity",_.qj(Z,"mainPlaylistDownloadStateEntity"));L=_.Lk(L,"ytMainChannelEntity",_.qj(Z,"ytMainChannelEntity"));if(S&&N)return Object.assign({},{mainPlaylistEntity:N,mainPlaylistDownloadStateEntity:S},!!L&&{channelEntity:L})}};
X3h=function(L){return qOL(L).sort(function(Z,N){return N.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return Z.downloadedPlaylistEntities})};
qOL=function(L){var Z=L.mainPlaylistDownloadStateEntity,N=[];if(!Z)return N;for(var S=_.O(Object.keys(Z)),u=S.next();!u.done;u=S.next()){var T=u.value;u=xvf(L,_.HB(T).entityId);var W=void 0;T=Number((W=Z[T])==null?void 0:W.addedTimestampMillis);W=isNaN(T)?(0,_.GT)():T;u!==void 0&&N.push({downloadedPlaylistEntities:u,addedTimestampMillis:W})}return N};
LAs=function(L){var Z,N=(Z=L.mainPlaylistVideoEntity)!=null?Z:{};return new Set(X3h(L).reduce(function(S,u){S=S===void 0?[]:S;var T,W;u==null||(T=u.mainPlaylistEntity)==null||(W=T.videos)==null||W.forEach(function(V){var M;(V=(M=N[V])==null?void 0:M.video)&&S.push(V)});
return S},[]))};
ZKs=function(L){return"downloadedMusicPlaylistEntities"in L};
Net=function(L){return"mainPlaylistEntity"in L&&"mainPlaylistDownloadStateEntity"in L};
Sjf=function(L){return"videoEntity"in L&&"channelEntity"in L};
iKf=function(L){var Z=L.musicPlaylistDownloadMetadataEntity,N=[];if(!Z)return N;for(var S=_.O(Object.keys(Z)),u=S.next();!u.done;u=S.next()){u=u.value;a:{var T=L,W=_.HB(u).entityId;if(W){var V=_.Lk(T,"musicPlaylist",_.qj(W,"musicPlaylist"));T=_.Lk(T,"musicPlaylistDownloadMetadataEntity",_.qj(W,"musicPlaylistDownloadMetadataEntity"));if(V&&T){V={musicPlaylistEntity:V,musicPlaylistDownloadStateEntity:T};break a}}V=void 0}T=void 0;u=Number((T=Z[u])==null?void 0:T.addedTimestampMillis);u=isNaN(u)?(0,_.GT)():
u;V!==void 0&&N.push({downloadedMusicPlaylistEntities:V,addedTimestampMillis:u})}return N};
ufA=function(L){var Z=new Set;L=_.O(L);for(var N=L.next();!N.done;N=L.next())if(N=N.value,"musicPlaylistEntity"in N&&"musicPlaylistDownloadStateEntity"in N){N=_.O(N.musicPlaylistEntity.tracks);for(var S=N.next();!S.done;S=N.next())Z.add(S.value)}return Z};
TeB=function(L,Z){if(Z){var N=_.Lk(L,"musicTrack",_.qj(Z,"musicTrack")),S=_.Lk(L,"musicArtist",_.qj(Z,"musicArtist"))||{};if((L=hVF(L,Z))&&N&&S)return Object.assign({},{musicTrackEntity:N,musicArtistEntity:S},L)}};
tKA=function(L){var Z=L.musicTrackDownloadMetadataEntity,N=[];if(!Z)return[];Z=_.O(Object.keys(Z));for(var S=Z.next();!S.done;S=Z.next()){var u=S.value;S=TeB(L,_.HB(u).entityId);var T=void 0;u=Number((T=_.Lk(L,"musicTrackDownloadMetadataEntity",u))==null?void 0:T.addedTimestampMillis);T=isNaN(u)?(0,_.GT)():u;S!==void 0&&N.push({downloadedMusicEntities:S,addedTimestampMillis:T})}return N};
VKP=function(L,Z){if(!Z)return[];if(Object.values(OK1).includes(Z))return WAB(L,Z);Z=_.qj(Z,"musicPlaylist");var N;L=(N=L.musicPlaylist)==null?void 0:N[Z];N=[];if(L==null||!L.tracks)return N;L=_.O(L.tracks);for(Z=L.next();!Z.done;Z=L.next())(Z=_.HB(Z.value).entityId)&&N.push(Z);return N};
WAB=function(L,Z){var N=new Set,S=iKf(L).map(function(T){return T.downloadedMusicPlaylistEntities});
S=ufA(S);S=_.O(S);for(var u=S.next();!u.done;u=S.next())(u=_.HB(u.value).entityId)&&N.add(u);return bKs(L).downloadedMusicEntities.filter(function(T){var W;if((W=T.musicTrackEntity)!=null&&W.videoId){T=T.musicTrackEntity;if(W=Z==="PPOM"?!0:!N.has(T.videoId))b:switch(T=T.musicVideoType,Z){case "PPSE":W=T==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:W=T!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}T=W}else T=!1;return T}).map(function(T){var W;
return(W=T.musicTrackEntity)==null?void 0:W.videoId})};
bKs=function(L){var Z=tKA(L).sort(function(N,S){return S.addedTimestampMillis-N.addedTimestampMillis}).map(function(N){return"downloadedMusicEntities"in N?N.downloadedMusicEntities:ZKs(N)?N.downloadedMusicPlaylistEntities:{}});
L=iKf(L).sort(function(N,S){return S.addedTimestampMillis-N.addedTimestampMillis}).map(function(N){return"downloadedMusicEntities"in N?N.downloadedMusicEntities:ZKs(N)?N.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:Z,downloadedMusicPlaylistEntities:L}};
gXf=function(L,Z){Z=_.X7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?VKP(L,Z):HfH(L,Z);if(!Z.length)return"TRANSFER_STATE_UNKNOWN";Z=Z.map(function(N){return reh(L,N)});
return MK_(Z)};
MK_=function(L){var Z=new Set(L);if(Z.has("TRANSFER_STATE_FAILED")&&Z.size===1)return"TRANSFER_STATE_FAILED";Z.delete("TRANSFER_STATE_FAILED");if(Z.has("TRANSFER_STATE_UNKNOWN")&&Z.size===1)return"TRANSFER_STATE_PRE_TRANSFER";Z.delete("TRANSFER_STATE_UNKNOWN");if(Z.has("TRANSFER_STATE_PRE_TRANSFER")&&Z.size===1||Z.size===0)return"TRANSFER_STATE_PRE_TRANSFER";L=Z.has("TRANSFER_STATE_TRANSFERRING");Z=Z.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return L||Z?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
gn=function(L){var Z=L.mainVideoDownloadStateEntity,N=[];if(!Z)return[];Z=_.O(Object.keys(Z));for(var S=Z.next();!S.done;S=Z.next()){var u=S.value;if(!suF(L,_.HB(u).entityId)){S=Me(L,_.HB(u).entityId);var T=void 0,W=void 0;u=(W=Number((T=_.Lk(L,"mainVideoDownloadStateEntity",u))==null?void 0:T.addedTimestampMillis))!=null?W:(0,_.GT)();S!==void 0&&N.push({downloadedVideoEntities:S,addedTimestampMillis:u})}}return N};
Gx1=function(L){return gn(L).sort(function(Z,N){return N.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return Z.downloadedVideoEntities})};
_.$N_=function(L){var Z=LAs(L),N=_.Ga(L),S=zVL(L),u=gn(L).filter(function(W){var V,M;if((W==null?void 0:(V=W.downloadedVideoEntities)==null?void 0:(M=V.transferEntity)==null?void 0:M.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var G,D;W=W==null?void 0:(G=W.downloadedVideoEntities)==null?void 0:(D=G.videoEntity)==null?void 0:D.key;return _.c("kevlar_use_library_entity")?W&&(S.has(W)||N[W]):W&&!Z.has(W)}),T=qOL(L).filter(function(W){return gXf(L,W.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Pd(u),_.Pd(T)).sort(function(W,V){return V.addedTimestampMillis-W.addedTimestampMillis}).map(function(W){return FAG(W)})};
DN0=function(L,Z){if(Z&&Iat(L,Z)){var N,S,u=(S=(N=_.Lk(L,"playbackData",_.qj(Z,"playbackData")))!=null?N:void 0)==null?void 0:S.playerResponseJson;if(u){try{var T=JSON.parse(u);var W=_.Lk(L,"transfer",_.qj(Z,"transfer")),V=Qu_(L,Z);V&&(T=Object.assign({},T,{playerConfig:Object.assign({},T.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+V*1E3}}})}));T.cotn=W==null?void 0:W.cotn}catch(M){}return T}}};
_.vX_=function(L){var Z,N,S;L=(S=(N=((Z=L.downloadsPageViewConfigurationEntity)!=null?Z:{})[_.F8])==null?void 0:N.smartDownloadsOptInBannerVisibility)!=null?S:{};var u;return(u=_.n(L,lA1))!=null?u:{}};
_.Ga=function(L){var Z,N,S;L=(S=(N=((Z=L.mainDownloadsListEntity)!=null?Z:{})[_.oXw])==null?void 0:N.downloads)!=null?S:[];Z={};N=_.O(L);for(S=N.next();!S.done;S=N.next())L=void 0,Z[(L=S.value.videoItem)!=null?L:""]=!0;return Z};
Ru1=function(L){var Z=_.Ga(L);if(Object.keys(Z).length===0)return!1;var N=L.mainVideoEntity;if(!N)return!0;N=_.O(Object.keys(N));for(var S=N.next();!S.done;S=N.next()){S=S.value;var u=_.HB(S).entityId;if(Z[S]&&!suF(L,u))return!1}return!0};
_.$Q=function(L){var Z=_.Ga(L);return gn(L).sort(function(N,S){return N.addedTimestampMillis-S.addedTimestampMillis}).map(function(N){return N.downloadedVideoEntities}).filter(function(N){var S;
return(N=N==null?void 0:(S=N.videoEntity)==null?void 0:S.key)&&!!Z[N]})};
_.nXF=function(L){var Z,N,S;L=(S=(N=((Z=L.downloadsPageViewConfigurationEntity)!=null?Z:{})[_.F8])==null?void 0:N.downloadsUpsellBannerVisibility)!=null?S:{};var u;return(u=_.n(L,cys))!=null?u:{}};
FAG=function(L){return"downloadedVideoEntities"in L?L.downloadedVideoEntities:"downloadedPlaylistEntities"in L?L.downloadedPlaylistEntities:{}};
KAL=function(L){var Z=_.Ga(L),N=LAs(L),S=gn(L).filter(function(u){var T,W;return(u=u==null?void 0:(T=u.downloadedVideoEntities)==null?void 0:(W=T.videoEntity)==null?void 0:W.key)&&!Z[u]&&!N.has(u)});
L=qOL(L);return[].concat(_.Pd(S),_.Pd(L)).sort(function(u,T){return T.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return FAG(u)})};
_.DT=function(L){if(!_.c("kevlar_use_library_entity"))return KAL(L);var Z=gn(L).filter(function(S){var u,T;if(u=S=S==null?void 0:(u=S.downloadedVideoEntities)==null?void 0:(T=u.videoEntity)==null?void 0:T.key){var W,V,M;u=((V=(W=L.mainDownloadsListEntity)==null?void 0:W[p3A])==null?0:(M=V.downloads)==null?0:M.length)?zVL(L).has(S):!1}return u}),N=qOL(L);
return[].concat(_.Pd(Z),_.Pd(N)).sort(function(S,u){return u.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return FAG(S)})};
fA1=function(L){var Z=_.Ga(L),N=LAs(L);return Gx1(L).filter(function(S){var u;return(S=S==null?void 0:(u=S.videoEntity)==null?void 0:u.key)&&!Z[S]&&!N.has(S)})};
kxw=function(L){if(!_.c("kevlar_use_library_entity"))return fA1(L);var Z=_.Ga(L),N=zVL(L);return Gx1(L).filter(function(S){var u;return(S=S==null?void 0:(u=S.videoEntity)==null?void 0:u.key)&&!Z[S]&&N.has(S)})};
yyH=function(L,Z){Z=_.qj(Z,"settingEntity");var N,S,u;return!!((u=(S=((N=L.settingEntity)!=null?N:{})[Z])==null?void 0:S.settingOptionValue)!=null?u:{}).boolValue};
_.l2=function(L){var Z=_.$Q(L);if(eVf(Z))return 0;var N=[];Z=_.O(Z);for(var S=Z.next();!S.done;S=Z.next()){S=S.value;var u=void 0,T=void 0;if((u=S)==null?0:(T=u.videoEntity)==null?0:T.key)u=_.HB(S.videoEntity.key).entityId,S=L,u=_.qj(u,"mainVideoDownloadStateEntity"),S=_.Lk(S,"mainVideoDownloadStateEntity",u),(S=Number(S==null?void 0:S.addedTimestampMillis))&&N.push(S)}return Math.max.apply(Math,_.Pd(N))};
_.vv=function(L){return L.ui.richGridMiniMode};
_.oi=function(L){return L.ui.richGridItemsPerRow};
_.wSf=function(L){return L.ui.richGridSlimItemsPerRow};
_.UNw=function(L){return L.ui.guideIsExpanded};
_.Ri=function(L){return L.ui.miniplayerIsActive};
Yjs=function(L){return L.ui.singleOptionSurveyIsActive};
_.cv=function(L){var Z;return((Z=L.ui)==null?void 0:Z.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.eut=function(L){return _.cv(L)==="WEB_PAGE_TYPE_WATCH"};
_.IAw=function(L){return _.cv(L)==="WEB_PAGE_TYPE_SHORTS"};
_.dNw=function(L){return L.ui.inlinePreviewIsActive};
_.aAG=function(L){return L.ui.inlinePreviewIsEnabled};
_.huG=function(L){return L.ui.miniplayerPlaybackState};
_.nk=function(L){return L.ui.isOnline};
_.s31=function(L){return L.ui.frostedGlassMode};
_.Kk=function(L,Z){return mv_(L.entities,Z)};
_.fk=function(L,Z){return gXf(L.entities,Z)};
j3P=function(L,Z){var N;if(Z){var S;L=(S=_.Lk(L.entities,"offlineVideoPolicy",_.qj(Z,"offlineVideoPolicy")))==null?void 0:S.action}else L=void 0;return(N=L)!=null?N:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
EXw=function(L,Z){var N;Z?(L=_.Lk(L.entities,"offlineVideoPolicy",_.qj(Z,"offlineVideoPolicy")),L=Number(L==null?void 0:L.expirationTimestamp)):L=void 0;return(N=L)!=null?N:0};
_.PM_=function(L){return _.b2(L.entities).length};
pSh=function(L,Z){return Me(L.entities,Z)};
zuH=function(L,Z){return xvf(L.entities,Z)};
kQ=function(L,Z){return(L=Me(L.entities,Z))?_.yex([L]):0};
_.mNP=function(L,Z){var N=_.X7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(N){var S=L.entities;var u=VKP(S,Z);if(u.length){var T=[];u=_.O(u);for(var W=u.next();!W.done;W=u.next())(W=TeB(S,W.value))&&T.push(W);S=T}else S=[]}else S=BHw(L.entities,Z);var V;if(N){var M=L.entities;Z?(Z=_.qj(Z,"musicPlaylist"),M=(V=M.musicPlaylist)==null?void 0:V[Z],V=M!=null&&M.tracks?M.tracks.length:0):V=0}else V=L.entities,Z?(Z=_.qj(Z,"mainPlaylistEntity"),V=(M=V.mainPlaylistEntity)==null?void 0:M[Z],V=V!=null&&V.videos?
V.videos.length:0):V=0;return S.length!==V?0:S?w3L(S):0};
_.JyL=function(L){return L.download.isLeaderTab};
_.CMH=function(L,Z,N){if(!Z&&N){var S=L.entities;if(N){var u=YOH(N),T,W;Z=(W=(T=_.Lk(S,"offlineabilityEntity",_.qj(u,"offlineabilityEntity")))==null?void 0:T.addToOfflineButtonState)!=null?W:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else Z="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else T=L.entities,Z?(W=YOH(Z),Z=(u=(S=_.Lk(T,"offlineabilityEntity",_.qj(W,"offlineabilityEntity")))==null?void 0:S.addToOfflineButtonState)!=null?u:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):Z="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return Z};
ryF=function(L,Z){L=L.entities;if(Z){Z=YOH(Z);var N,S;Z=(S=(N=_.Lk(L,"offlineabilityEntity",_.qj(Z,"offlineabilityEntity")))==null?void 0:N.addToOfflineButtonState)!=null?S:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else Z="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return Z};
_.Q30=function(L){var Z=L.entities;L=_.nk(L);var N=yyH(Z,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.c("kevlar_modern_downloads_page")&&N)var S=!1;else{var u,T;Z=(T=(u=((S=Z.downloadsPageViewConfigurationEntity)!=null?S:{})[_.F8])==null?void 0:u.smartDownloadsOptInBannerVisibility)!=null?T:{};S=L?!!Z.visibleWithConnection:!!Z.visibleWithoutConnection}return S};
_.XSw=function(L){return yyH(L.entities,"SMART_DOWNLOADS_ENABLED")};
_.Ays=function(L){return Ru1(L.entities)};
HKx=function(L){return _.$Q(L.entities).every(function(Z){var N;return(Z==null?void 0:(N=Z.transferEntity)==null?void 0:N.transferState)&&!k2G.includes(Z.transferEntity.transferState)})};
_.Beh=function(L){var Z,N,S,u=(S=(N=((Z=L.entities.downloadsPageViewConfigurationEntity)!=null?Z:{})[_.F8])==null?void 0:N.downloadsUpsellBannerVisibility)!=null?S:{};return _.nk(L)?!!u.visibleWithConnection:!!u.visibleWithoutConnection};
_.xN1=function(L,Z){return suF(L.entities,Z)};
qjw=function(L,Z){if(Z){var N,S;L=(S=(N=_.Lk(L.entities,"downloadStatusEntity",_.qj(Z,"downloadStatusEntity")))==null?void 0:N.downloadState)!=null?S:"DOWNLOAD_STATE_UNKNOWN"}else L="DOWNLOAD_STATE_UNKNOWN";return L};
yE=function(L,Z){return Qu_(L.entities,Z)};
Sww=function(L){L=Lyx(L);var Z=L.hours===void 0?0:L.hours,N=L.minutes===void 0?0:L.minutes,S=L.seconds===void 0?0:L.seconds,u=Z>0;L=[];u&&(Z=ZDA(Z),L.push(Z));Z=u;Z=Z===void 0?!1:Z;N=(["af","be","lt"].includes(wn)||Z)&&N<10?NV0().format(N):(new Intl.NumberFormat("en-u-nu-latn")).format(N);L.push(N);N=NV0().format(S);L.push(N);N=":";"da fi id si sr sr-Latn".split(" ").includes(wn)&&(N=".");return L.join(N)};
_.uPP=function(L){L=Lyx(L);var Z=L.hours===void 0?0:L.hours,N=L.minutes===void 0?0:L.minutes,S=L.seconds===void 0?0:L.seconds;L=[];if(Z>0){var u=iDh().format({hours:Z});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(wn)||Z>9999)u=u.replace(Z.toString(),ZDA(Z)),wn==="km"&&(u=u.replace(".",","));L.push(u)}N>0&&L.push(iDh().format({minutes:N}));S>0&&L.push(iDh().format({seconds:S}));Z="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");N=wn=="am"?"{0}\u1363 ":wn=="fa"?"{0}\u060c\u200f ":
wn=="my"?"{0} - ":wn=="ne"?"{0},":wn=="th"?"{0} ":wn=="ur"?"{0}\u060c ":wn=="ar"||wn=="ar-XB"?"{0} \u0648":wn=="ja"||wn=="zh-CN"||wn=="zh-HK"||wn=="zh-TW"?"{0}\u3001":"{0}, ";S=wn=="am"?"\u1363 ":wn=="fa"?"\u060c\u200f ":wn=="my"?" - ":wn=="th"?" ":wn=="ur"?"\u060c ":wn=="ar"||wn=="ar-XB"?" \u0648":wn=="ja"||wn=="zh-CN"||wn=="zh-HK"||wn=="zh-TW"?"\u3001":", ";u=wn=="am"?" \u12a5\u1293 {0}":wn=="as"?" \u0986\u09f0\u09c1 {0}":wn=="az"?" v\u0259 {0}":wn=="bn"?" \u098f\u09ac\u0982 {0}":wn=="cs"?" a\u00a0{0}":
wn=="de"?" und {0}":wn=="el"?" \u03ba\u03b1\u03b9 {0}":wn=="eu"?" eta {0}":wn=="fa"?"\u060c \u0648 {0}":wn=="fil"?", at {0}":wn=="gu"?" \u0a85\u0aa8\u0ac7 {0}":wn=="hi"?", \u0914\u0930 {0}":wn=="hu"?" \u00e9s {0}":wn=="hy"?" \u0587 {0}":wn=="id"?", dan {0}":wn=="iw"?" \u05d5-{0}":wn=="ja"?"\u3001{0}":wn=="ka"?" \u10d3\u10d0 {0}":wn=="km"?" \u1793\u17b7\u1784 {0}":wn=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":wn=="ko"?" \ubc0f {0}":wn=="ky"?" \u0436\u0430\u043d\u0430 {0}":wn=="lt"?" ir {0}":wn==
"lv"?" un {0}":wn=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":wn=="mr"?" \u0906\u0923\u093f {0}":wn=="ms"?" dan {0}":wn=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":wn=="ne"?" \u0930 {0}":wn=="or"?", \u0b13 {0}":wn=="pa"?" \u0a05\u0a24\u0a47 {0}":wn=="ro"?" \u0219i {0}":wn=="si"?", \u0dc3\u0dc4 {0}":wn=="sk"?" a {0}":wn=="sl"?" in {0}":wn=="sq"?" dhe {0}":wn=="sv"?" och {0}":wn=="sw"?" na {0}":wn=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":wn=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
wn=="th"?" \u0e41\u0e25\u0e30{0}":wn=="tr"?" ve {0}":wn=="ur"?"\u060c \u0627\u0648\u0631 {0}":wn=="uz"?" va {0}":wn=="vi"?" v\u00e0 {0}":wn=="zh-HK"?"\u53ca{0}":wn=="zu"?", ne-{0}":wn=="af"||wn=="nl"?" en {0}":wn=="ar"||wn=="ar-XB"?" \u0648{0}":wn=="be"||wn=="uk"?" \u0456 {0}":wn=="en-GB"||wn=="en-IN"?" and {0}":wn=="en"||wn=="en-XA"?", and {0}":wn=="et"||wn=="fi"?" ja {0}":wn=="fr"||wn=="fr-CA"?" et {0}":wn=="zh-CN"||wn=="zh-TW"?"\u548c{0}":wn=="da"||wn=="is"||wn=="no"?" og {0}":wn=="es"||wn=="es-419"||
wn=="es-US"?" y {0}":wn=="kk"||wn=="lo"||wn=="mn"?", {0}":wn=="bg"||wn=="mk"||wn=="ru"||wn=="sr"?" \u0438 {0}":wn=="gl"||wn=="it"||wn=="pt-BR"||wn=="pt-PT"?" e {0}":" i {0}";var T=wn=="am"?"{0} \u12a5\u1293 {1}":wn=="as"?"{0} \u0986\u09f0\u09c1 {1}":wn=="az"?"{0} v\u0259 {1}":wn=="bn"?"{0} \u098f\u09ac\u0982 {1}":wn=="de"?"{0} und {1}":wn=="el"?"{0} \u03ba\u03b1\u03b9 {1}":wn=="eu"?"{0} eta {1}":wn=="fa"?"{0} \u0648 {1}":wn=="fil"?"{0} at {1}":wn=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":wn=="hi"?"{0} \u0914\u0930 {1}":
wn=="hu"?"{0} \u00e9s {1}":wn=="hy"?"{0} \u0587 {1}":wn=="iw"?"{0} \u05d5-{1}":wn=="ja"?"{0}\u3001{1}":wn=="ka"?"{0} \u10d3\u10d0 {1}":wn=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":wn=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":wn=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":wn=="ko"?"{0} \ubc0f {1}":wn=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":wn=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":wn=="lt"?"{0} ir {1}":wn=="lv"?"{0} un {1}":wn=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":wn=="mn"?"{0}, {1}":wn==
"mr"?"{0} \u0906\u0923\u093f {1}":wn=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":wn=="ne"?"{0} \u0930 {1}":wn=="or"?"{0} \u0b13 {1}":wn=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":wn=="ro"?"{0} \u0219i {1}":wn=="si"?"{0} \u0dc3\u0dc4 {1}":wn=="sl"?"{0} in {1}":wn=="sq"?"{0} dhe {1}":wn=="sv"?"{0} och {1}":wn=="sw"?"{0} na {1}":wn=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":wn=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":wn=="th"?"{0}\u0e41\u0e25\u0e30{1}":wn=="tr"?"{0} ve {1}":wn=="ur"?
"{0} \u0627\u0648\u0631 {1}":wn=="uz"?"{0} va {1}":wn=="vi"?"{0} v\u00e0 {1}":wn=="zh-HK"?"{0}\u53ca{1}":wn=="zu"?"{0} ne-{1}":wn=="af"||wn=="nl"?"{0} en {1}":wn=="ar"||wn=="ar-XB"?"{0} \u0648{1}":wn=="be"||wn=="uk"?"{0} \u0456 {1}":wn=="cs"||wn=="sk"?"{0} a\u00a0{1}":wn=="et"||wn=="fi"?"{0} ja {1}":wn=="fr"||wn=="fr-CA"?"{0} et {1}":wn=="id"||wn=="ms"?"{0} dan {1}":wn=="zh-CN"||wn=="zh-TW"?"{0}\u548c{1}":wn=="da"||wn=="is"||wn=="no"?"{0} og {1}":wn=="es"||wn=="es-419"||wn=="es-US"?"{0} y {1}":wn==
"bg"||wn=="mk"||wn=="ru"||wn=="sr"?"{0} \u0438 {1}":wn=="en"||wn=="en-GB"||wn=="en-IN"||wn=="en-XA"?"{0} and {1}":wn=="gl"||wn=="it"||wn=="pt-BR"||wn=="pt-PT"?"{0} e {1}":"{0} i {1}";wn==="sq"?(u=u.replace("dhe","e"),T=T.replace("dhe","e")):wn==="th"?(S=S.replace("{0}"," {0}"),T=T.replace("{0}","{0} "),T=T.replace("{1}"," {1}")):wn==="ne"?S=",":wn==="zh-CN"?S="":Z.includes(wn)&&(S=" ");return L.length<2?L.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(wn)?
L.length===2?T.replace("{0}",L[0]).replace("{1}",L[1]):N.replace("{0}",L[0])+L.slice(1,-1).join(S)+u.replace("{0}",L[L.length-1]):L.join(S)};
Lyx=function(L){var Z=L.hours||0,N=L.minutes||0,S=L.seconds||0;Z=S+N*60+Z*3600+(L.days||0)*86400+(L.weeks||0)*604800+(L.months||0)*2629800+(L.years||0)*31557600;if(Z<=0)return{hours:0,minutes:0,seconds:0};L=Z;Z=Math.floor(L/3600);L%=3600;N=Math.floor(L/60);S=Math.floor(L%60);return{hours:Z,minutes:N,seconds:S}};
ZDA=function(L){L=(new Intl.NumberFormat("en-u-nu-latn")).format(L);var Z=["fr"],N="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(wn)?L.replace(",","\u00a0"):Z.includes(wn)?L.replace(",","\u202f"):N.includes(wn)?L.replace(",","."):L};
NV0=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
iDh=function(){TVw||(U9=tk0,TVw=new ODH);return TVw};
Wy_=function(L){try{return(new _.eM(5)).format(L)}catch(Z){}};
Ii=function(L){return{thumbnailOverlayDownloadingRenderer:{state:L}}};
p0B=function(){var L=_.iB("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Cq(L),icon:{iconType:"PLAY_ALL"}}}};
zKB=function(L){L=_.dn(L,2);return wn!=="ru"&&wn!=="es_419"&&wn!=="es-419"&&wn!=="es"&&wn!=="es_US"&&wn!=="es-US"&&wn!=="fr"&&wn!=="pl"&&wn!=="it"&&wn!=="nl"&&wn!=="uk"&&wn!=="fr_CA"&&wn!=="fr-CA"||L===""?L:L[0].toLocaleUpperCase()+L.substring(1)};
JEB=function(L){return function(Z){var N=L(),S=_.dn(Z,N.dateFormat);Z=_.dn(Z,N.timeFormat);var u=mW_.DATETIMEFORMATS[N.joinerStyle];u=u.replace(/'(?!')/g,"");u=u.replace("{0}",Z);u=u.replace("{1}",S);return N.capitalize(u)}};
Cox=function(L){return L?typeof L.seconds==="string"&&(L.nanos===void 0||typeof L.nanos==="number"):!1};
rEh=function(L){return new Date(Number(L.seconds)*1E3+(L.nanos||0)*1E-6)};
_.dn=function(L,Z){if(typeof L.getTime==="function")L={date:L};else if(Cox(L))L={date:rEh(L)};else if(typeof Cox(L.timestamp)&&typeof L.i18nInternalSecondsEastOfUtc==="number")L={date:rEh(L.timestamp),timeZone:ai(-L.i18nInternalSecondsEastOfUtc/60)};else throw Error("Mf`"+JSON.stringify(L));var N=L;L=N.date;N=N.timeZone;Z=QUs(Z).format(L,N);wn==="zh-TW"&&(L=N?Number(QUs("H").format(L,N)):L.getHours(),Z=L<5?Z.replace("\u4e0a\u5348","\u51cc\u6668"):L<8?Z.replace("\u4e0a\u5348","\u65e9\u4e0a"):L<12?
Z.replace("\u4e0a\u5348","\u4e0a\u5348"):L<13?Z.replace("\u4e0b\u5348","\u4e2d\u5348"):L<19?Z.replace("\u4e0b\u5348","\u4e0b\u5348"):Z.replace("\u4e0b\u5348","\u665a\u4e0a"));return Z};
QUs=function(L){if(X01.has(L))return X01.get(L);var Z=AEL(L);Z=HDw(Z);BVf!==!0&&(BVf=!0);xWL=!0;xWL=!1;Z=new hN(Z,mW_);X01.set(L,Z);return Z};
AEL=function(L){return(new hN(L,mW_)).patternParts_.map(function(Z){return Z.type===0?"'"+Z.text+"'":Z.text}).join("")};
HDw=function(L){return wn==="en"||wn==="es_US"||wn==="es-US"?L:L.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(Z,N,S){return"H".repeat(N.length)+S})};
uXB=function(L,Z){qw1||(U9=tk0,qw1=new Ljf);var N=qw1;a:if(L=Zbw(L),Z=Zbw(Z||new Date),L>Z)N=L.getTime()-Z.getTime()>6048E5?_.dn(L,1):NXw(L);else{for(var S=0;SBt(L,12*(S+1))<Z;)++S;if(S>0)N=N.format(-S,0);else{for(S=0;SBt(L,S+1)<Z;)++S;if(S>0)N=N.format(-S,2);else{L=Z.getTime()-L.getTime();Z=_.O(ibf);for(S=Z.next();!S.done;S=Z.next()){S=S.value;var u=S.unit,T=Math.floor(L/S.unitDuration);if(T>=(S.threshold===void 0?1:S.threshold)){N=N.format(-T,u);break a}}N=N.format(-0,7)}}}return N};
Zbw=function(L){if(typeof L.getTime==="function")return L;if(Cox(L))return rEh(L);throw Error("Nf`"+JSON.stringify(L));};
SBt=function(L,Z){for(var N=0,S;;++N)if(S=new Date(L.getFullYear(),L.getMonth()+Z,L.getDate()-N,L.getHours(),L.getMinutes(),L.getSeconds()),S.getMonth()===(L.getMonth()+Z)%12)return S};
_.s9=function(L){return{runs:[{text:L}]}};
_.jM=function(L){if(L&&L.simpleText)return L.simpleText;var Z="";if(L&&L.runs)for(var N=0;N<L.runs.length;N++)L.runs[N].text&&(Z+=L.runs[N].text);return Z};
tG1=function(L,Z,N,S){return L.videoEntity&&!L.policyEntity&&N!=="DOWNLOAD_STATE_FAILED"?[Ii("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:O9(L.policyEntity)&&Z!=="TRANSFER_STATE_FAILED"&&Z!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?Z==="TRANSFER_STATE_PAUSED_BY_USER"?[Ii("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Wv(Z)?[Ii("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:L.videoEntity.lengthSeconds?TXA(L.videoEntity.lengthSeconds,S):[]:
[Ii("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
TXA=function(L,Z){var N=[{thumbnailOverlayTimeStatusRenderer:{text:_.Cq(Sww({seconds:L})),style:"DEFAULT"}}];Z&&(L=Z<=0||L<=0?0:Z>=L?100:Math.ceil(Z*100/L),L>0&&N.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:L}}));return N};
Ob0=function(L,Z,N,S,u){if(Z==="TRANSFER_STATE_UNKNOWN"||!L)return{};if(_.Wv(Z)||Z==="TRANSFER_STATE_PRE_TRANSFER")var T=[Ii("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var W,V;if(Z==="TRANSFER_STATE_COMPLETE"&&((W=L.mainPlaylistEntity)==null?0:(V=W.videos)==null?0:V.length)){var M;L=(T=L.mainPlaylistEntity)==null?void 0:(M=T.videos)==null?void 0:M.length;T=(T=Wy_(L))?{thumbnailOverlayBottomPanelRenderer:{text:_.Cq(T),icon:{iconType:"PLAYLISTS"}}}:void 0;T=[p0B(),Object.assign({},
T!=null?T:{})]}else T=[]}a:if(Z==="TRANSFER_STATE_PRE_TRANSFER")N=rR(_.iB("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(Z==="TRANSFER_STATE_TRANSFER_IN_QUEUE")N=rR(_.iB("WAITING_TO_DOWNLOAD"));else if(_.Wv(Z))N=Math.floor(N*100).toString(),N=rR(_.iB("DOWNLOADING_PERCENT",{percent:N},"Downloading... "+N+"%"));else{if(S&&(_.c("playlist_is_offline_selector_killswitch")&&(u=_.GR().resolve(_.iR).isNetworkAvailable()),u)){N=sBH(_.iB("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
ajA(S));break a}N=void 0}Z=Z==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.iB("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},T.length?{thumbnailOverlays:T}:{},N?{viewPlaylistText:N}:{viewPlaylistText:_.s9("")},Z.length?{badges:Z}:{})};
Wjs=function(L,Z,N,S,u,T){if(Z==="TRANSFER_STATE_UNKNOWN"||!L)return{};if(S==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var W=tG1(L,Z,S);if(L.videoEntity&&!L.policyEntity&&S!=="DOWNLOAD_STATE_FAILED"){var V=_.iB("WAITING_TO_DOWNLOAD");if(V)return{shortViewCountText:_.s9(V),publishedTimeText:void 0,thumbnailOverlays:W}}if(!O9(L.policyEntity)){T=L.policyEntity&&!Uvt(L.policyEntity)?_.iB("DOWNLOAD_EXPIRED",{},"Download expired"):
_.iB("TRANSFER_FAILED",{},"Download failed");var M;if((M=L.policyEntity)==null?0:M.shortMessageForDisabledAction)T=L.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:rR(T),publishedTimeText:void 0,thumbnailOverlays:W}}if(Z==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.s9(_.iB("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:W};if(Z==="TRANSFER_STATE_FAILED"||Z==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.s9(_.iB("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:W};if(Z==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(M=_.iB("WAITING_TO_DOWNLOAD"),S==="DOWNLOAD_STATE_PAUSED"&&(M=_.iB("DOWNLOAD_PAUSED",{},"Download paused")),M))return{shortViewCountText:_.s9(M),publishedTimeText:void 0,thumbnailOverlays:W};if(_.Wv(Z))return L=Math.floor(N*100).toString(),{shortViewCountText:_.s9(_.iB("DOWNLOADING_PERCENT",{percent:L},"Downloading... "+L+"%")),publishedTimeText:void 0,thumbnailOverlays:W};Z=void 0;L.videoEntity.publishedTimestampMillis&&
(Z=new Date,u&&(Z=new Date(u)),Z=rR(uXB(new Date(Number(L.videoEntity.publishedTimestampMillis)),Z)));u=[];_.c("kevlar_woffle_badge_killswitch")||(u=[{metadataBadgeRenderer:{label:_.iB("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var G;L=rR((G=L.videoEntity.localizedStrings)==null?void 0:G.viewCount);return Object.assign({},T?{shortViewCountText:void 0}:{shortViewCountText:L},T?{}:{publishedTimeText:Z},{badges:u,thumbnailOverlays:W})};
bbs=function(L,Z){L=L===void 0?_.VGw:L;switch(Z.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:Z.payload.playlistId,inviteLinkURL:Z.payload.inviteLinkUrl};default:return L}};
guF=function(L,Z){L=L===void 0?_.MGh:L;switch(Z.type){case "SET_CURRENT_FORM_ID":return Z=Z.payload.formId,L.currentFormId===Z?L:{currentFormId:Z,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var N=Z.payload;Z=N.groupId;N=N.command;if(L.currentFormId){var S=Object.assign({},L.commandsMap);S[Z]=N;L=Object.assign({},L,{commandsMap:S})}return L;case "RESET_COMMAND_MAP":return Object.assign({},L,{commandsMap:{}});default:return L}};
Fj_=function(L,Z){L=L===void 0?_.Gzw:L;switch(Z.type){case "UPDATE_CANVAS_MODE":return Object.assign({},L,{currentMode:Z.payload.currentMode});default:return L}};
Dot=function(L,Z){L=L===void 0?_.$o1:L;switch(Z.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},L,{guideIsExpanded:Z.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},L,{scrollAtTop:Z.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},L,{guideIsVisibleButNotPersistent:Z.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},L,{miniplayerIsActive:Z.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},L,{singleOptionSurveyIsActive:Z.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},L,{slimlineSurveyRatingSelectedIndex:Z.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},L,{richGridMiniMode:Z.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},L,{richGridItemsPerRow:Z.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},L,{richGridSlimItemsPerRow:Z.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},L,{richGridContainerWidth:Z.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},L,{richGridStyle:Z.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},L,{currentPageType:Z.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},L,{inlinePreviewIsActive:Z.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},L,{inlinePreviewIsEnabled:Z.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},L,{darkModeIsEnabled:Z.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
L,{miniplayerPlaybackState:Z.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},L,{tabGesturesIsActive:Z.payload});case "SET_ONLINE_STATUS":return Object.assign({},L,{isOnline:Z.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},L,{chipBarIsSticky:Z.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},L,{frostedGlassMode:Z.payload});default:return L}};
leh=function(){return _.c("kevlar_disable_theater_mode_persistence")?!1:_.Ah("START_IN_THEATER_MODE")};
out=function(L,Z){L=L===void 0?_.vuA:L;switch(Z.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},L,{transcription:Z.payload});case "SET_OVERLAY_STATE":return Object.assign({},L,{overlay:Z.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return L}};
YBL=function(){return Yd(Object.assign({},{continuation:RhA,download:cl_,canvas:Fj_,reportChannelAbuse:nu0,share:KjL,talkToRecs:feB,ui:Dot,voiceSearch:out,watch:kzx,ypc:ylx,shorts:woP,radioButtonGroup:guF,collabInviteLink:bbs},UoL))};
doB=function(){return _.c("web_player_entities_middleware")?new E9(YBL(),[ehL,IeG]):new E9(YBL(),[ehL])};
_.Pv=function(){aew||(aew=doB());return aew};
hhB=function(L,Z,N){if(L.length)return{titleText:_.Cq(Z!=null?Z:_.iB("DOWNLOADS",void 0,"Downloads")),contents:L.map(function(S){var u=S.videoEntity;S={videoId:u.videoId,title:rR(u.title),shortBylineText:rR(S.channelEntity.title),thumbnail:u.thumbnail};var T=u.videoId?yE(_.Pv().getState(),u.videoId):0;u.videoId&&N?S.navigationEndpoint=_.Jq(u.videoId,N,void 0,void 0,T):u.videoId&&(S.navigationEndpoint=dUP(u.videoId,T,u.lengthSeconds));u.lengthSeconds&&(S.thumbnailOverlays=TXA(u.lengthSeconds,T));return{playlistPanelVideoRenderer:S}}),
totalVideos:L.length}};
s2G=function(L){return(L=(0,_.Py.getValueByKeys)(L,"playlistId"))?{playlistId:L}:null};
j2s=function(){return{}};
Eu1=function(L,Z){return new _.kE(function(N,S){L.then(function(u){if(u){if(u=Z(u))return N(u);S()}},S)})};
Pzh=function(L){var Z,N,S,u=(Z=L.contents)==null?void 0:(N=Z.twoColumnWatchNextResults)==null?void 0:(S=N.autoplay)==null?void 0:S.autoplay,T,W,V;Z=(T=L.contents)==null?void 0:(W=T.twoColumnWatchNextResults)==null?void 0:(V=W.playlist)==null?void 0:V.playlist;return u&&Z&&Z.playlistId?{rawResponse:L,autoplayRenderer:u,playlistPanelRenderer:Z,playlistId:Z.playlistId}:null};
zhx=function(L){var Z=Z===void 0?"UNKNOWN_INTERFACE":Z;if(L.length===1)return L[0];var N=poL[Z];if(N){N=new RegExp(N);for(var S=_.O(L),u=S.next();!u.done;u=S.next())if(u=u.value,N.exec(u))return u}var T=[];Object.entries(poL).forEach(function(W){var V=_.O(W);W=V.next().value;V=V.next().value;Z!==W&&T.push(V)});
N=new RegExp(T.join("|"));L.sort(function(W,V){return W.length-V.length});
S=_.O(L);for(u=S.next();!u.done;u=S.next())if(u=u.value,!N.exec(u))return u;return L[0]};
_.pk=function(L){return"/youtubei/v1/"+zhx(L)};
_.za=function(L,Z){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:L}}},Z!==void 0?{durationHintMs:Z}:{})}};
_.m3=function(L,Z){return _.za(_.s9(L),Z)};
moF=function(L,Z){var N={mode:"NORMAL"};L&&(N.autoplayVideo=L.navigationEndpoint,N.nextButtonVideo=L.navigationEndpoint);Z&&(N.previousButtonVideo=Z.navigationEndpoint);return N};
rlt=function(L,Z,N){if(!N||!N.sets)return{sets:[moF(L,Z)]};var S=N.sets.find(function(W){return W.mode==="NORMAL"}),u=(0,_.Py.unsafeClone)(N);
if(!S)return u.sets.push(moF(L,Z)),u;if(!L)return N;S=_.Py.getValueByKeys.apply(null,[S].concat(_.Pd(JlF)));var T=_.Py.getValueByKeys.apply(null,[L].concat(_.Pd(Czs)));if(S===T)return N;u.sets=u.sets.filter(function(W){return W.mode!=="NORMAL"});
u.sets.push(moF(L,Z));return u};
Q2x=function(L){return!!L.playlistPanelVideoRenderer&&!L.playlistPanelVideoRenderer.unplayableText};
XoB=function(L){return!!L.playlistPanelVideoRenderer&&!!L.playlistPanelVideoRenderer.title};
Als=function(L,Z){if(Z.contents&&!(L>=Z.contents.length)&&(L=Z.contents.slice(L).find(Q2x)))return L.playlistPanelVideoRenderer};
Hbh=function(L,Z){if(Z.contents)return(Z=Z.contents.find(function(N){return!!N.playlistPanelVideoRenderer&&N.playlistPanelVideoRenderer.videoId===L}))?Z.playlistPanelVideoRenderer:void 0};
BX1=function(L,Z){return Z.contents?Z.contents.findIndex(function(N){return!!N.playlistPanelVideoRenderer&&N.playlistPanelVideoRenderer.videoId===L}):-1};
xoh=function(L,Z){return Z.contents?Z.contents.findIndex(function(N){return!!N.playlistPanelVideoRenderer&&N.playlistPanelVideoRenderer.playlistSetVideoId===L}):-1};
qBx=function(L,Z){L.contents&&Z!==-1&&L.contents.splice(Z,1).length===1&&L.totalVideos!==void 0&&(--L.totalVideos,delete L.videoCountText)};
_.LxL=function(L){var Z=[];if(!L||!L.contents)return Z;L=_.O(L.contents);for(var N=L.next();!N.done;N=L.next())N=N.value,N.playlistPanelVideoRenderer&&N.playlistPanelVideoRenderer.videoId&&Z.push(N.playlistPanelVideoRenderer.videoId);return Z};
_.ZSB=function(L){if(L&&L.contents)return(L=L.contents.find(function(Z){return!!Z.playlistPanelVideoRenderer&&!!Z.playlistPanelVideoRenderer.selected})||L.contents[L.currentIndex])?L.playlistPanelVideoRenderer:void 0};
Nih=function(L,Z,N,S,u,T,W){u=u===void 0?!1:u;T=T===void 0?!1:T;W=W===void 0?!1:W;if(L.contents&&L.contents.length!==0){S&&(L.contents=L.contents.filter(S));S=L.contents.length;for(var V=0;V<S;V++){var M=L.contents[V].playlistPanelVideoRenderer;M&&(V===Z?(T&&delete M.menu,M.indexText=_.s9("\u25b6")):u||L.isInfinite||M.indexText===void 0?delete M.indexText:M.indexText=_.s9((V+1+N).toString()))}L.currentIndex=Z+N;W&&(delete L.videoCountText,L.totalVideos=S)}};
_.JN=function(L){L=SlA(L);if(L){var Z=L.length;var N=-27%Z;N<0&&(N=Z+N);L=L.slice(Z-N)+L.slice(0,Z-N)}else L="";N="";for(Z=0;Z<L.length&&L[Z]!==iSx;Z++)N+=L[Z];return N};
_.uq1=function(L,Z){var N=document.body;Z=Z===void 0?function(V){return V}:Z;
var S,u=null;L=_.O(L);for(S=L.next();!S.done;S=L.next()){var T=S.value;S="div";T[2]&&(S=Z(T[2]));S=document.createElement(S);u||(u=S);var W=T[0];T=T[1];W&&(S.id=Z(W));if(T)for(T=_.O(T),W=T.next();!W.done;W=T.next())S.classList.add(Z(W.value));N.appendChild(S);N=S}return[u,N]};
Tit=function(L,Z){for(var N="",S=0;S<Z;S++)N+=L.charAt(Math.floor(Math.random()*L.length));return N};
Ck=function(L){return Tit("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",L)};
rn=function(L){return Tit("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",L)};
QE=function(L){return Tit("0123456789",L)};
tVA=function(){var L=performance.now(),Z=new Date;var N="2."+Z.getFullYear()+String(Z.getMonth()+1).padStart(2,"0")+String(Z.getDate()).padStart(2,"0");for(var S,u=Math.floor(Math.random()*11)+15,T=[],W=0;W<u;W++)T.push(Math.floor(Math.random()*26476865)+24547720);S=T.join(",");var V=Ck(10),M=Ck(100),G=Ck(102),D=Ck(106),l=Ck(108),v=Ck(11),R=Ck(1140),K=Ck(123),U=Ck(14),d=Ck(16),h=Ck(1900),E=Ck(23),A=Ck(26),J=Ck(34),C=Ck(397),X=Ck(44),L1=Ck(5),Fw=Ck(72),GB=Ck(74),Yt=Ck(75),lH=Ck(88),RF=Ck(91),jf="rr1---sn-q4fl6n6r rr5---sn-hgn7yn76 rr4---sn-q4flrnss rr3---sn-q4fl6nsy rr2---sn-q4fl6nd7 rr4---sn-aigzrnz7 rr5---sn-q4flrnsd rr2---sn-hgn7yn7l rr2---sn-ntq7yney rr3---sn-q4fzen7r rr4---sn-q4fl6nde rr4---sn-q4fzen7s rr2---sn-4g5lznez rr1---sn-t0a7ln7d rr5---sn-q4fl6n6z rr5---sn-q4fl6ndl rr4---sn-q4flrnsd rr2---sn-q4fl6ns6 rr1---sn-t0a7lnee rr4---sn-q4fl6nlz".split(" ");
var f1=jf[Math.floor(Math.random()*jf.length)];var n0=(new Date("2010-01-01")).getTime();var r5=(new Date(n0+Math.random()*((new Date).getTime()-n0))).toISOString().split("T")[0];for(var yq,ZN=[],GV=0;GV<4;GV++)ZN.push(Math.floor(Math.random()*100));yq=ZN.join(".");var IO=Number(QE(5)),d5=Number(QE(6)),n8=Number(QE(7)),lq=Number(QE(9)),tx=QE(1),ut=QE(10),oO=QE(16),uq=QE(19),RO=QE(2),iq=QE(20),hU=QE(21),Qq=QE(3),Fh=QE(4),g5=QE(5),SY=QE(6),Xw=QE(7),vl=QE(8),oQ=QE(9);var H6=Tit("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var IQ=[rn(5),rn(5),rn(5)].join("%2C"),JU=[QE(3),QE(5),QE(5)].join("%2C"),Zb=rn(0),bG=rn(1),Hl=rn(10),k5=rn(108),Tg=rn(11),Aj=rn(12),c4=rn(13),Hy=rn(14),EK=rn(15),ZD=rn(16),un=rn(17),wP=rn(18),Ps=rn(19),rP=rn(2),K0=rn(20),RQ=rn(22),I7=rn(23),dy=rn(24),kL=rn(266),f0=rn(3),Pw=rn(30),o7=rn(34),lt=rn(35),Yh=rn(36),SU=rn(4),pG=rn(40),BE=rn(43),N4=rn(47),n5=rn(5),s3=rn(6),K5=rn(7),S6=rn(75),Ax=rn(8),ys=rn(80),Y5=rn(9),bq="https://www."+rn(12)+".com",$h={},By={},QL={},Tl={},pV={},wl={},UJ={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:S}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:N},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+rn(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:N},{key:"client.name",value:"WEB"},{key:"client.fexp",value:S}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:hU+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+rn(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:pG,ypcGetOfflineUpsellEndpoint:{params:ys}},trackingParams:lt+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fmp4&ns="+dy+"&cnr="+RO+"&ratebypass=yes&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&c=WEB&txp="+Xw+"&n="+d+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:d5,width:640,height:360,lastModified:oO,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Xw,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+JU+"&mn="+
IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fmp4&ns="+dy+"&cnr="+RO+"&ratebypass=yes&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&c=WEB&txp="+Xw+"&n="+d+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+k5+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:d5,width:1280,
height:720,lastModified:oO,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Xw,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+JU+"&mn="+IQ+"&ms="+
IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fmp4&ns="+dy+"&gir="+f0+"&clen="+oQ+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:n8,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:oQ,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:n8,approxDurationMs:Xw},{itag:248,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+JU+"&mn="+IQ+"&ms="+IQ+"&mv="+
bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fwebm&ns="+dy+"&gir="+f0+"&clen="+oQ+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:n8,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:oQ,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:n8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Xw},{itag:399,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+
JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fmp4&ns="+dy+"&gir="+f0+"&clen="+oQ+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:n8,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:oQ,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:n8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Xw},{itag:136,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+
JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fmp4&ns="+dy+"&gir="+f0+"&clen="+oQ+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:n8,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:oQ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:d5,approxDurationMs:Xw},{itag:247,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+JU+"&mn="+
IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fwebm&ns="+dy+"&gir="+f0+"&clen="+oQ+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:n8,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:oQ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:d5,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Xw},{itag:398,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+
JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fmp4&ns="+dy+"&gir="+f0+"&clen="+oQ+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:n8,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:oQ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:d5,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Xw},{itag:135,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+
JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fmp4&ns="+dy+"&gir="+f0+"&clen="+vl+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:d5,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:vl,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:d5,approxDurationMs:Xw},{itag:244,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+JU+"&mn="+
IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fwebm&ns="+dy+"&gir="+f0+"&clen="+vl+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k5+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:d5,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:vl,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:d5,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Xw},{itag:397,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+
JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fmp4&ns="+dy+"&gir="+f0+"&clen="+vl+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:d5,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:vl,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:d5,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Xw},{itag:134,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+
JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fmp4&ns="+dy+"&gir="+f0+"&clen="+vl+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:d5,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:vl,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:d5,highReplication:!0,approxDurationMs:Xw},{itag:243,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+
JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fwebm&ns="+dy+"&gir="+f0+"&clen="+vl+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:d5,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:vl,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:d5,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Xw},{itag:396,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+
JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fmp4&ns="+dy+"&gir="+f0+"&clen="+vl+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:d5,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:vl,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:d5,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Xw},{itag:133,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+
JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fmp4&ns="+dy+"&gir="+f0+"&clen="+vl+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:d5,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:vl,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:d5,approxDurationMs:Xw},{itag:242,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+JU+"&mn="+
IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fwebm&ns="+dy+"&gir="+f0+"&clen="+vl+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:d5,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:vl,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:d5,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Xw},{itag:395,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+
JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fmp4&ns="+dy+"&gir="+f0+"&clen="+vl+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:d5,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:vl,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:d5,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Xw},{itag:160,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+
JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fmp4&ns="+dy+"&gir="+f0+"&clen="+vl+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:d5,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:vl,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:IO,approxDurationMs:Xw},{itag:278,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+JU+"&mn="+
IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fwebm&ns="+dy+"&gir="+f0+"&clen="+vl+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:d5,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:vl,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:IO,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Xw},{itag:394,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&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="+
JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=video%2Fmp4&ns="+dy+"&gir="+f0+"&clen="+vl+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:IO,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:vl,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:IO,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Xw},{itag:140,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=audio%2Fmp4&ns="+dy+"&gir="+f0+"&clen="+vl+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:d5,
initRange:{start:"0",end:"631"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:vl,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:d5,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Xw,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+
RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=audio%2Fwebm&ns="+dy+"&gir="+f0+"&clen="+Xw+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'audio/webm; codecs="opus"',bitrate:IO,initRange:{start:"0",end:"265"},indexRange:{start:Qq,
end:Fh},lastModified:oO,contentLength:Xw,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:IO,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Xw,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=audio%2Fwebm&ns="+
dy+"&gir="+f0+"&clen="+Xw+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'audio/webm; codecs="opus"',bitrate:IO,initRange:{start:"0",end:"265"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:Xw,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:IO,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Xw,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+f1+".googlevideo.com/videoplayback?expire="+ut+"&ei="+E+"&ip="+yq+"&id=o-AF"+BE+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+JU+"&mn="+IQ+"&ms="+IQ+"&mv="+bG+"&mvi="+tx+"&pl="+RO+"&initcwndbps="+Xw+"&siu="+tx+"&spc="+X+"&vprv="+tx+"&svpuc="+tx+"&mime=audio%2Fwebm&ns="+dy+"&gir="+f0+"&clen="+vl+"&dur="+vl+"&lmt="+oO+"&mt="+ut+"&fvip=3&keepalive="+f0+"&c=WEB&txp="+
Xw+"&n="+ZD+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'audio/webm; codecs="opus"',bitrate:d5,initRange:{start:"0",end:"265"},indexRange:{start:Qq,end:Fh},lastModified:oO,contentLength:vl,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:d5,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Xw,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="+oQ+"&docid="+v+"&ei="+E+"&feature="+V+"&fexp="+Zb+"&ns="+rP+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+bG+"&el="+Hl+"&len="+Fh+"&of="+RQ+
"&uga="+RO+"&vm="+kL},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+oQ+"&docid="+v+"&ei="+E+"&feature="+V+"&fexp="+Zb+"&ns="+rP+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+bG+"&el="+Hl+"&len="+Fh+"&of="+RQ+"&uga="+RO+"&vm="+kL},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+oQ+"&docid="+v+"&ei="+E+"&feature="+V+"&fexp="+Zb+"&ns="+rP+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
bG+"&el="+Hl+"&len="+Fh+"&of="+RQ+"&uga="+RO+"&vm="+kL},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+E+"&m="+lH+"&oid="+RQ+"&plid="+d+"&pltype="+K5+"&ptchn="+RQ+"&ptk="+U+"&video_id="+v},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+oQ+"&docid="+v+"&ei="+E+"&event="+Hy+"&feature="+V+"&fexp="+Zb+"&ns="+rP+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+bG},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
ZD+"&ver=2&cmt=1."+Qq+"&fmt="+Qq+"&fs=0&rt="+g5+"&euri&lact="+Qq+"&cl="+oQ+"&mos="+tx+"&volume=100&cbrand="+n5+"&cbr="+s3+"&cbrver="+yq+"&c=WEB&cver="+N+"&cplayer=UNIPLAYER&cos="+Y5+"&cosver="+Xw+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+RO+"&len="+vl+"&fexp="+IQ+"&feature=g-high-rec&afmt="+Qq+"&muted=0&conn=1&docid="+v+"&ei="+E+"&plid="+d+"&vm="+rn(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
v+"&caps="+f0+"&opi="+oQ+"&xoaf="+tx+"&hl="+rP+"&ip="+yq+"&ipbits="+tx+"&expire="+ut+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+yq+"&key="+f0+"&lang="+L1,name:{simpleText:s3},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+v+"&caps="+f0+"&opi="+oQ+"&xoaf="+tx+"&hl="+rP+"&ip="+yq+"&ipbits="+tx+"&expire="+ut+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+yq+"&key="+f0+"&kind="+f0+"&lang="+rP,name:{simpleText:Hl},
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:Tg,title:Hl,lengthSeconds:"1155",keywords:[Hy,Tg,wP,wP],channelId:dy,isOwnerViewing:!1,shortDescription:SU,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Yh+"G&rs="+o7,width:168,height:94},{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Yh+
"G&rs="+o7,width:196,height:110},{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Yh+"G&rs="+J,width:246,height:138},{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Yh+"G&rs="+J,width:336,height:188},{url:"https://i.ytimg.com/vi/"+v+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Xw,author:c4,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Xw,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
RQ+"/featured_channel.jpg?v="+Ax,width:40,height:40}]},trackingParams:lt+"=",navigationEndpoint:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{url:"/channel/"+dy,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:dy}},channelName:c4,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:n5}]},subscribed:!1,enabled:!0,type:"FREE",channelId:dy,showPreferences:!1,subscribedButtonText:{runs:[{text:Ax}]},unsubscribedButtonText:{runs:[{text:Ax}]},
trackingParams:lt+"=",unsubscribeButtonText:{runs:[{text:Tg}]},serviceEndpoints:[{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[dy],params:Ax}},{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:pG,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:lt+"=",dialogMessages:[{runs:[{text:ZD},
{text:Aj},{text:Ps}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Hy}]},serviceEndpoint:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[dy],params:Ax}},accessibility:{label:Y5},trackingParams:lt+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:s3}]},accessibility:{label:Ax},
trackingParams:lt+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:wP}},unsubscribeAccessibility:{accessibilityData:{label:Hy}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:vl},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[dy],
params:Ax}},unsubscribeCommand:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[dy],params:Ax}},addToWatchLaterCommand:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Tg,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Tg}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+v+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+Yh+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+v+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Tg,width:1280,
height:720},title:{simpleText:s3},description:{simpleText:EK},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Hy,externalChannelId:dy,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:Xw,category:"Travel & Events",publishDate:r5,ownerChannelName:c4,uploadDate:r5}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Ps},trackingParams:lt+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:pG,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:lt+"="}}],headerText:{simpleText:c4},icon:{infoCardIconRenderer:{trackingParams:lt+"="}},closeButton:{infoCardIconRenderer:{trackingParams:lt+"="}},trackingParams:lt+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:lt+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Tg+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:H6,interpreterSafeUrl:($h.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Pw+".js",$h),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:EK},{text:K5,bold:!0}]},endpoint:{clickTrackingParams:pG,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:lt+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:Y5}]},actionButton:{buttonRenderer:{text:{runs:[{text:Y5}]},navigationEndpoint:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+v,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
v,target:"TARGET_NEW_WINDOW"}},trackingParams:lt+"="}},trackingParams:lt+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Fw+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Fw+"=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:Xw,endMs:Xw,title:{accessibility:{accessibilityData:{label:c4}},simpleText:Hl},metadata:{simpleText:Hl},callToAction:{simpleText:Y5},dismiss:{simpleText:ZD},endpoint:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{url:"/channel/"+dy,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:dy}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:s3}]},subscribed:!1,enabled:!0,type:"FREE",channelId:dy,showPreferences:!1,
subscribedButtonText:{runs:[{text:Y5}]},unsubscribedButtonText:{runs:[{text:Y5}]},trackingParams:lt+"=",unsubscribeButtonText:{runs:[{text:wP}]},serviceEndpoints:[{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[dy],params:Ax}},{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:pG,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:lt+
"=",dialogMessages:[{runs:[{text:Aj},{text:Tg},{text:EK}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Ax}]},serviceEndpoint:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[dy],params:Ax}},accessibility:{label:ZD},trackingParams:lt+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Hl}]},
accessibility:{label:SU},trackingParams:lt+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:K5}},unsubscribeAccessibility:{accessibilityData:{label:Aj}}}},trackingParams:lt+"=",isSubscribe:!0,id:iq}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Yh+"G&rs="+J,width:168,height:94},{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Yh+"G&rs="+o7,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Yh+"G&rs="+J,width:246,height:138},{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Yh+"G&rs="+J,width:336,height:188},{url:"https://i.ytimg.com/vi/"+v+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Xw,endMs:Xw,title:{accessibility:{accessibilityData:{label:K0}},simpleText:Hy},metadata:{simpleText:un},endpoint:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Tg,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Tg,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+f1+".googlevideo.com/videoplayback?source=youtube&oeis="+tx+"&c=WEB&oad="+Fh+"&ovd="+Fh+"&oaad="+g5+"&oavd="+g5+"&ocs="+Qq+"&oewis="+tx+"&oputc="+tx+"&ofpcc="+tx+"&siu="+tx+"&msp="+tx+"&odepv="+tx+
"&id=o-AF"+BE+"&ip="+yq+"&initcwndbps="+Xw+"&mt="+ut+"&oweuc="+Zb}}}}},trackingParams:lt+"=",id:iq,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:wP}},simpleText:ZD},style:"DEFAULT"}}]}}],startMs:Xw,trackingParams:lt+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:tx,offsetEndMilliseconds:g5},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+oQ+";dc_trk_cid="+oQ+";dc_dbm_token="+l+";ord="+ut+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+tx+";dc_rui="+tx+";dc_exteid="+iq+";dc_av="+Qq+";dc_sk="+tx+";dc_ctype="+RO+";dc_ref=http://www.youtube.com/video/"+Tg+";dc_pubid="+tx+";dc_btype=23?gclid="+RF+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+tx+"&ns="+tx+"&event="+tx+"&device="+tx+"&content_v="+v+"&el="+Hl+"&ei="+E+"&devicever="+N+"&bti="+Xw+"&format="+SY+"&break_type="+tx+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+tx+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+yq+"&slot_pos="+tx+"&slot_len="+tx+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+JU+"&ad_len="+g5+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Tg+"&aqi="+E+"&ad_rmp="+tx+"&sli="+tx}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+
";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+SY+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+Xw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&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"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&ctype="+Qq+"&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"+
R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_engaged_view&ctype="+Qq+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+SY+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
oQ+";dc_trk_cid="+oQ+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+tx+";ord="+oQ+";dc_rui="+tx+";dc_exteid="+uq+";dc_av="+tx+";dc_sk="+tx+";dc_ctype="+RO+";dc_pubid="+tx+";dc_btype=3?gclid="+RF+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+G+"&sig="+I7+"&ad_cpn=[AD_CPN]&id="+s3+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+s3+"&dc_pubid="+tx+"&dc_exteid="+iq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+G+"&sig="+I7+"&ad_cpn=[AD_CPN]&id="+s3+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+tx},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+s3+"&avm="+tx+"&dc_pubid="+tx+"&dc_exteid="+
iq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&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="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
G+"&sig="+I7+"&ad_cpn=[AD_CPN]&id="+s3+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+tx},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+s3+"&dc_pubid="+tx+"&dc_exteid="+iq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+SY+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+SY+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:pG,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+
Qq+"&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/"+v+"/mqdefault.jpg",width:320,height:180}]},trackingParams:lt+"="},trackingParams:lt+
"=",templatedCountdown:{templatedAdText:{text:s3,isTemplated:!0,trackingParams:lt+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:wP,isTemplated:!1,trackingParams:lt+"="},trackingParams:lt+"="}},trackingParams:lt+"=",skipOffsetMilliseconds:5E3}},trackingParams:lt+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:s3},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lt+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Tg,isTemplated:!1,trackingParams:lt+"="},trackingParams:lt+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Tg,isTemplated:!0,trackingParams:lt+"="}},trackingParams:lt+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:pG,openPopupAction:{popup:{aboutThisAdRenderer:{url:(By.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+h+"&hl="+rP+"&origin=www.youtube.com&ata_theme="+SU,By),trackingParams:lt+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:lt+"="}},hoverText:{runs:[{text:c4}]},trackingParams:lt+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+N4+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lt+"="},headline:{text:wP,isTemplated:!1,trackingParams:lt+"="},description:{text:EK,
trackingParams:lt+"="},actionButton:{buttonRenderer:{text:{simpleText:s3},navigationEndpoint:{clickTrackingParams:pG,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+oQ+";dc_trk_cid="+oQ+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+tx+";ord="+oQ+";dc_rui="+tx+";dc_exteid="+iq+";dc_av="+tx+";dc_sk="+tx+";dc_ctype="+RO+";dc_pubid="+tx+";dc_btype=3?gclid="+RF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lt+"="}},startMs:tx,trackingParams:lt+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:SU},elementId:Hy}},elementId:Hy,trackingParams:lt+"=",legacyInfoCardVastExtension:un,sodarExtensionData:{siub:s3,bgub:Aj,scs:K0,bgp:K5},externalVideoId:Tg,adLayoutLoggingData:{serializedAdServingDataEntry:un},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+N4+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lt+"="},
headline:{text:s3,isTemplated:!1,trackingParams:lt+"="},description:{text:n5,isTemplated:!1,trackingParams:lt+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Ax},navigationEndpoint:{clickTrackingParams:pG,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+oQ+";dc_trk_cid="+oQ+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+tx+";ord="+oQ+";dc_rui="+tx+";dc_exteid="+
iq+";dc_av="+tx+";dc_sk="+tx+";dc_ctype="+RO+";dc_pubid="+tx+";dc_btype=3?gclid="+RF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+
tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lt+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:lt+"="}},navigationEndpoint:{clickTrackingParams:pG,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+oQ+";dc_trk_cid="+
oQ+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+tx+";ord="+oQ+";dc_rui="+tx+";dc_exteid="+iq+";dc_av="+tx+";dc_sk="+tx+";dc_ctype="+RO+";dc_pubid="+tx+";dc_btype=3?gclid="+RF+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+
K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lt+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:lt+"="},abandonCommands:{commands:[{clickTrackingParams:pG,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&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="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+
tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:pG,commandExecutorCommand:{commands:[{clickTrackingParams:pG,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:wP,isTemplated:!1,trackingParams:lt+
"="},trackingParams:lt+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:s3},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+Xw+";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="+oQ+";dc_trk_cid="+oQ+";ord="+ut+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+tx+";dc_rui="+tx+";dc_exteid="+iq+";dc_av="+Qq+";dc_sk="+tx+";dc_ctype="+RO+";dc_ref=http://www.youtube.com/video/"+Tg+";dc_pubid="+tx+";dc_btype=23?gclid="+RF+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+tx+"&ns="+tx+"&event="+tx+"&device="+tx+"&content_v="+v+"&el="+Hl+"&ei="+E+"&devicever="+N+"&bti="+Xw+"&format="+SY+"&break_type="+tx+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+tx+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+yq+"&slot_pos="+tx+"&slot_len="+tx+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
JU+"&ad_len="+g5+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Tg+"&aqi="+E+"&ad_rmp="+tx+"&sli="+tx}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+SY+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+
A+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+Xw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&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"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&ctype="+Qq+"&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"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_engaged_view&ctype="+Qq+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+SY+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+G+"&sig="+I7+"&ad_cpn=[AD_CPN]&id="+
s3+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+s3+"&dc_pubid="+tx+"&dc_exteid="+iq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+G+
"&sig="+I7+"&ad_cpn=[AD_CPN]&id="+s3+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+tx},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+s3+"&avm="+tx+"&dc_pubid="+tx+"&dc_exteid="+iq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&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="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+G+"&sig="+I7+"&ad_cpn=[AD_CPN]&id="+s3+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+tx},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+s3+"&dc_pubid="+tx+"&dc_exteid="+iq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+SY+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+SY+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+
Qq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&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/"+v+"/mqdefault.jpg",width:320,height:180}]},trackingParams:lt+"="},trackingParams:lt+"=",templatedCountdown:{templatedAdText:{text:SU,isTemplated:!0,trackingParams:lt+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:c4,isTemplated:!1,trackingParams:lt+"="},trackingParams:lt+"="}},
trackingParams:lt+"=",skipOffsetMilliseconds:5E3}},trackingParams:lt+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:SU},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lt+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Y5,isTemplated:!1,trackingParams:lt+"="},trackingParams:lt+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Aj,
isTemplated:!0,trackingParams:lt+"="}},trackingParams:lt+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:pG,openPopupAction:{popup:{aboutThisAdRenderer:{url:(QL.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+h+"&hl="+rP+"&origin=www.youtube.com&ata_theme="+SU,QL),trackingParams:lt+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:lt+"="}},hoverText:{runs:[{text:Aj}]},trackingParams:lt+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+GB+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lt+"="},headline:{text:SU,isTemplated:!1,trackingParams:lt+"="},description:{text:Tg,trackingParams:lt+"="},actionButton:{buttonRenderer:{text:{simpleText:Ax},navigationEndpoint:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lt+"="}},startMs:tx,trackingParams:lt+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:n5},elementId:SU}},elementId:ZD,trackingParams:lt+"=",legacyInfoCardVastExtension:SU,sodarExtensionData:{siub:EK,bgub:Y5,scs:Aj,bgp:n5},externalVideoId:Tg,adLayoutLoggingData:{serializedAdServingDataEntry:SU},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+GB+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lt+"="},headline:{text:Y5,
isTemplated:!1,trackingParams:lt+"="},description:{text:EK,isTemplated:!1,trackingParams:lt+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:K0},navigationEndpoint:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lt+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:lt+"="}},navigationEndpoint:{clickTrackingParams:pG,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+
tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lt+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:lt+"="},abandonCommands:{commands:[{clickTrackingParams:pG,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&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="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+RO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:pG,commandExecutorCommand:{commands:[{clickTrackingParams:pG,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:ZD,isTemplated:!1,trackingParams:lt+"="},trackingParams:lt+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:EK},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+tx+";dc_exteid="+iq+";met="+tx+";ecn"+tx+"="+tx+";etm1="+tx+";eid1="+
Xw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Ps}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:c4}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:g5,offsetEndMilliseconds:SY},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+E+"&m_pos="+RO+"&token=ALHj"+C+"&index="+tx+"&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="+N+"&m_pos_ms="+g5}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ax}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:SY,offsetEndMilliseconds:SY},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+E+"&m_pos="+Qq+"&token=ALHj"+C+"&index="+tx+"&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="+
N+"&m_pos_ms="+SY}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Aj}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:SY,offsetEndMilliseconds:SY},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+E+"&m_pos="+Qq+"&token=ALHj"+C+"&index="+tx+"&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="+
N+"&m_pos_ms="+SY}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ps}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:SY,offsetEndMilliseconds:SY},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+E+"&m_pos="+Qq+"&token=ALHj"+C+"&index="+tx+"&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="+
N+"&m_pos_ms="+SY}},adSlotLoggingData:{serializedSlotAdServingDataEntry:K5}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:SY,offsetEndMilliseconds:RO},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+E+"&m_pos="+Qq+"&token=ALHj"+C+"&index="+tx+"&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="+
N+"&m_pos_ms="+SY}},adSlotLoggingData:{serializedSlotAdServingDataEntry:s3}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:RO,offsetEndMilliseconds:RO},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+E+"&m_pos="+RO+"&token=ALHj"+C+"&index="+tx+"&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="+
N+"&m_pos_ms="+RO}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Hy}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:ZD,isTemplated:!1,trackingParams:lt+"="},description:{text:K5,isTemplated:!1,trackingParams:lt+"="},actionButton:{buttonRenderer:{text:{simpleText:Ax},navigationEndpoint:{clickTrackingParams:pG,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
oQ+";dc_trk_cid="+oQ+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+tx+";ord="+oQ+";dc_rui="+tx+";dc_exteid="+iq+";dc_av="+tx+";dc_sk="+tx+";dc_ctype="+RO+";dc_pubid="+tx+";dc_btype=3?gclid="+RF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lt+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+N4+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:lt+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Yt+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:lt+"="},navigationEndpoint:{clickTrackingParams:pG,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+oQ+";dc_trk_cid="+oQ+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+tx+";ord="+oQ+
";dc_rui="+tx+";dc_exteid="+iq+";dc_av="+tx+";dc_sk="+tx+";dc_ctype="+RO+";dc_pubid="+tx+";dc_btype=3?gclid="+RF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lt+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:pG,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Tl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+h+"&hl="+rP+"&origin=www.youtube.com&ata_theme="+SU,Tl),trackingParams:lt+"="}},popupType:"DIALOG"}},trackingParams:lt+"="}},hoverText:{runs:[{text:Hy}]},trackingParams:lt+"="}},adVideoId:Tg,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:wP},associatedCompositePlayerBytesLayoutId:ZD}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Ps}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Aj,isTemplated:!1,trackingParams:lt+"="},description:{text:K0,isTemplated:!1,trackingParams:lt+"="},actionButton:{buttonRenderer:{text:{simpleText:Hl},navigationEndpoint:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+
K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lt+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+GB+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:lt+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+S6+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:lt+"="},navigationEndpoint:{clickTrackingParams:pG,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+
tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lt+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:pG,openPopupAction:{popup:{aboutThisAdRenderer:{url:(pV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+h+"&hl="+rP+"&origin=www.youtube.com&ata_theme="+SU,pV),trackingParams:lt+"="}},popupType:"DIALOG"}},trackingParams:lt+"="}},
hoverText:{runs:[{text:s3}]},trackingParams:lt+"="}},adVideoId:Tg,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+Tg+"&cid="+A+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:s3},associatedCompositePlayerBytesLayoutId:ZD}},adSlotLoggingData:{serializedSlotAdServingDataEntry:wP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Y5,
isTemplated:!1,trackingParams:lt+"="},description:{text:SU,isTemplated:!1,trackingParams:lt+"="},actionButton:{buttonRenderer:{text:{simpleText:Tg},navigationEndpoint:{clickTrackingParams:pG,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+oQ+";dc_trk_cid="+oQ+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+tx+";ord="+oQ+";dc_rui="+tx+";dc_exteid="+iq+";dc_av="+tx+";dc_sk="+tx+";dc_ctype="+
RO+";dc_pubid="+tx+";dc_btype=3?gclid="+RF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+
J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lt+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+N4+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:lt+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Yt+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:lt+
"="},navigationEndpoint:{clickTrackingParams:pG,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+oQ+";dc_trk_cid="+oQ+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+tx+";ord="+oQ+";dc_rui="+tx+";dc_exteid="+iq+";dc_av="+tx+";dc_sk="+tx+";dc_ctype="+RO+";dc_pubid="+tx+";dc_btype=3?gclid="+RF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+R+"____________"+K+"AxAA&ase=2&num="+tx+"&cid="+A+"&ad_cpn=%5BAD_CPN%5D&sig="+J+"&adurl="+bq+"&label=video_click_to_advertiser_site&ctype="+Qq+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lt+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:pG,openPopupAction:{popup:{aboutThisAdRenderer:{url:(wl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+h+"&hl="+rP+"&origin=www.youtube.com&ata_theme="+SU,wl),trackingParams:lt+"="}},popupType:"DIALOG"}},trackingParams:lt+
"="}},hoverText:{runs:[{text:n5}]},trackingParams:lt+"="}},adVideoId:Tg,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+R+"____________"+K+"AxAA&sigh="+v+"&cid="+A+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Hl},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:ZD}},adSlotLoggingData:{serializedSlotAdServingDataEntry:SU}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Pw,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Pw,command:{innertubeCommand:{clickTrackingParams:pG,ypcGetOfflineUpsellEndpoint:{params:ys}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:lt+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:ut,nanos:lq}}}},Np_=JSON.stringify(UJ),Yz=performance.now()-L;return{objectRepresentation:UJ,jsonRepresentation:Np_,generationTime:Yz}};
OSG=function(L,Z){if(L===Z)return!0;if(!L||!Z||typeof L!==typeof Z)return!1;if(L instanceof Array&&Z instanceof Array){if(L.length!==Z.length)return!1;for(var N=0;N<L.length;N++)if(!OSG(L[N],Z[N]))return!1;return!0}if(typeof L==="object"&&typeof Z==="object"&&L&&Z){for(N in L)if(!(N in Z&&OSG(L[N],Z[N])))return!1;for(var S in Z)if(!(S in L))return!1;return!0}return!1};
_.AN=function(){if(!X8){X8=new fy(new Wxw);var L=_.lQ("client_streamz_web_flush_count",-1);L!==-1&&(X8.invocationLimit=L)}return X8};
Hv=function(L,Z,N,S){if(L===Z)return!0;if(Array.isArray(L)&&Array.isArray(Z)){if(L.length!==Z.length)return!1;for(var u=0;u<L.length;u++)if(!Hv(L[u],Z[u],N,S))return!1;return!0}if(L instanceof Set||Z instanceof Set){if(L instanceof Set&&Z instanceof Set){if(L.size!==Z.size)return!1;S=_.O(L.values());for(u=S.next();!u.done;u=S.next())if(!Z.has(u.value))return!1;return!0}return!1}if(L instanceof Function){if(S)return!0;L.name===""&&_.CA(Error("Rf"),"ERROR");return!1}if(L instanceof Date&&Z instanceof
Date)return L.getTime()===Z.getTime();if(L instanceof Object&&Z instanceof Object){if(VVw(L)&&VVw(Z))try{return L.equals(Z)}catch(W){_.CA(Error("Sf`"+W),"ERROR")}u=Object.getOwnPropertyNames(L).filter(function(W){return N?L[W]!==void 0:!0});
var T=Object.getOwnPropertyNames(Z).filter(function(W){return N?Z[W]!==void 0:!0});
if(u.length!==T.length)return!1;u=_.O(u);for(T=u.next();!T.done;T=u.next())if(T=T.value,!Hv(L[T],Z[T],N,S))return!1;return!0}return!1};
VVw=function(L){L=Object.getPrototypeOf(L).equals;return L instanceof Function&&L.length===1};
_.gCx=function(){return _.b(function(L){if(L.nextAddress==1)return bSh!==2?L.jumpTo(2):L.yield(MVw(),3);L.nextAddress!=2&&(bSh=L.yieldResult);return L.return(bSh)})};
_.$kB=function(){return _.b(function(L){if(L.nextAddress==1)return _.c("ab_pl_man")?GtL!==2?L.jumpTo(2):L.yield(Fx0(),3):L.return(1);L.nextAddress!=2&&(GtL=L.yieldResult);return L.return(GtL)})};
vCh=function(){return _.b(function(L){if(L.nextAddress==1)return _.c("ab_fk_sk_cl")?Dks!==2?L.jumpTo(2):L.yield(lRF(),3):L.return(1);L.nextAddress!=2&&(Dks=L.yieldResult);return L.return(Dks)})};
_.cOG=function(){return _.b(function(L){if(L.nextAddress==1)return _.c("ab_det_apb_b")?oCt!==2?L.jumpTo(2):L.yield(R6H(),3):L.return(1);L.nextAddress!=2&&(oCt=L.yieldResult);return L.return(oCt)})};
fRt=function(){var L;return _.b(function(Z){if(Z.nextAddress==1)return Z.yield(Promise.all([_.gCx(),_.cOG(),_.$kB(),vCh()]),2);if(Z.nextAddress!=3)return nCG()?Z.return(!0):Z.yield(_.Kxf(),3);L=Z.yieldResult;return Z.return(L===0)})};
nCG=function(){var L=!1,Z=function(N,S){ktf.increment(S,N);N===0&&(L=!0)};
Z(_.yOs(),"j.s_");Z(bSh,"f.i_");Z(oCt,"a.b_");Z(GtL,"p.m_");Z(Dks,"i.f_");wp0===2&&(wp0=_.UkP(YlG));Z(wp0,"e.h_");_.c("ks_det_gpbl")||Z(_.e6L(),"p.i_");_.c("ks_get_o_pp")||Z(_.IR0(),"g.o_");_.c("ab_deg_unex_thr")||Z(_.dk1(),"a.o_");Z(aRh,"s.t_");_.c("ab_det_sc_inj_enf")&&Z(_.h6H(),"s.i_");Z(sft,"d.p_");Z(_.jfG(_.Bv),"o.p_");Z(_.ECH()===0?0:_.PUx(),"o.a_");return _.c("debug_sk_em_precheck")?!0:L};
z6G=function(){var L=[].concat(_.Pd(pph));try{var Z=tVA();L.push({jsonRepresentation:Z.jsonRepresentation,objectRepresentation:Z.objectRepresentation})}catch(N){L=[].concat(_.Pd(pph))}return L};
mkw=function(){var L=["adPlacements","adSlots"];try{return L.filter(function(){return!0}).length!==L.length?0:1}catch(Z){return 0}};
_.IR0=function(){if(mkw()===0)return 0;var L=tVA(),Z=L.objectRepresentation,N=(0,_.Py.unsafeClone)(Z),S=[];if(Z&&typeof Z==="object")for(var u in Z)S.push(u);else return 4;L=L.objectRepresentation.adPlacements;if(!(L&&L.length>0))return 4;try{if(!OSG(S,Object.getOwnPropertyNames(Z)))return 0}catch(T){return 0}return OSG(N,Z)?1:0};
_.jfG=function(L){if(!L||!L.length||typeof L==="string")return 0;for(var Z=Object.getOwnPropertyNames(Object.prototype),N=0;N<L.length;N++)for(var S=_.JN(L[N]),u=_.O(Z),T=u.next();!T.done;T=u.next())if(S===T.value)return 0;return 1};
JOG=function(L){var Z=_.JN(L[1]);if(L[0]===null)return Z;L=L[0];for(var N={},S=0;S<L.length;S++){var u=_.JN(L[S]);if(S===0)N[u]=Z;else{var T={};T[u]=N;N=T}}return N};
_.ECH=function(){for(var L=_.xQ,Z=0;Z<L.length;Z++){var N=JOG(L[Z]),S=[];S.push(N);if(S.length===0)return 0}return 1};
_.PUx=function(){for(var L=_.xQ,Z={},N=0;N<L.length;Z={v17:void 0},N++){var S=[JOG(L[N])];Z.v17=[];S.forEach(function(u){return function(T){u.v17[u.v17.length]=T}}(Z));
if(Z.v17.length===0)return 0}return 1};
_.yOs=function(){for(var L=_.O(z6G()),Z=L.next();!Z.done;Z=L.next()){var N=Z.value;Z=N.jsonRepresentation;N=N.objectRepresentation;try{var S=JSON.parse(Z);if(!Hv(S,N,!1,!1))return 0}catch(u){return 0}}return 1};
_.h6H=function(){try{var L=_.oe("ab_det_sc_inj_val");L.length===1&&L[0]===""&&(L=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var Z=document.querySelectorAll("script"),N=_.O(Z),S=N.next();!S.done;S=N.next())for(var u=S.value,T=_.O(L),W=T.next();!W.done;W=T.next()){var V=W.value;Z=void 0;if((Z=u.textContent)==null?0:Z.includes(V))return 0}}catch(M){return 4}return 1};
_.Kxf=function(){var L,Z,N,S,u,T,W;return _.b(function(V){switch(V.nextAddress){case 1:_.RS(V,2),L=_.O(pph),Z=L.next();case 4:if(Z.done)return V.return(1);S=N=Z.value;u=S.jsonRepresentation;T=S.objectRepresentation;return V.yield((new Response(u,{status:200})).json(),7);case 7:W=V.yieldResult;if(!Hv(W,T,!1,!1))return V.return(0);Z=L.next();V.jumpTo(4);break;case 2:return _.yd(V),V.return(4)}})};
_.dk1=function(){try{btoa("abc")}catch(L){return 0}return 1};
MVw=function(){var L,Z,N,S,u,T,W,V,M,G,D;return _.b(function(l){switch(l.nextAddress){case 1:_.RS(l,2),L=_.O(z6G()),Z=L.next();case 4:if(Z.done)return l.return(1);S=N=Z.value;u=S.jsonRepresentation;T=S.objectRepresentation;W=btoa(u);V="data:application/json;base64,"+W;M=new Request(V);Object.defineProperty(M,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(M,"method",{get:function(){return"POST"}});
Object.defineProperty(M,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(M,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(M,"body",{get:function(){return new ReadableStream}});
return l.yield(fetch(M),7);case 7:return G=l.yieldResult,l.yield(G.json(),8);case 8:D=l.yieldResult;if(!Hv(D,T,!1,!1))return l.return(0);Z=L.next();l.jumpTo(4);break;case 2:return _.yd(l),l.return(4)}})};
_.UkP=function(L){if(!L||!L.length||typeof L==="string")return 0;for(var Z=function(u){return _.JN(u)},N=2,S=0;S<L.length&&(N=_.CUt(_.uq1(L[S],Z)),N!==0);S++);
return N};
_.CUt=function(L){var Z=_.O(L);L=Z.next().value;Z=Z.next().value;try{var N=document.createElement("div");document.body.appendChild(N);var S=getComputedStyle(N).display;document.body.removeChild(N);if(S==="none")return 4;var u=getComputedStyle(Z).display==="none"?0:1;document.body.removeChild(L);return u}catch(T){return 4}};
lRF=function(){var L,Z,N;return _.b(function(S){L=new _.qe;Z=document.createElement("button");Z.classList.add("ytp-ad-skip-button");Z.style.opacity="0";Z.style.height="0px";Z.style.width="0px";Z.style.padding="0px";Z.style.border="none";N=function(){Z.parentElement&&Z.parentElement.removeChild(Z)};
Z.onclick=function(){L.resolve(0);N()};
document.body.appendChild(Z);setTimeout(function(){N();L.resolve(1)},50);
return S.return(L.promise)})};
Fx0=function(){var L,Z,N,S,u,T,W;return _.b(function(V){L=new _.qe;Z=document.createElement("ytd-player");try{document.body.prepend(Z)}catch(M){return V.return(4)}N=function(){Z.parentElement&&Z.parentElement.removeChild(Z)};
Z.getElementsByTagName("div").length>0?S=Z.getElementsByTagName("div")[0]:(S=document.createElement("div"),Z.appendChild(S));u=document.createElement("div");S.appendChild(u);T=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"});T.src=_.jn(_.Jf(W));T.ontimeupdate=function(){N();L.resolve(0)};
u.appendChild(T);T.classList.add("html5-main-video");setTimeout(function(){u.classList.add("ad-interrupting")},200);
setTimeout(function(){N();L.resolve(1)},5E3);
return V.return(L.promise)})};
rOw=function(L){var Z=tVA().objectRepresentation.playbackTracking;if(Z){var N=[],S;N.push(Z==null?void 0:(S=Z.videostatsPlaybackUrl)==null?void 0:S.baseUrl);var u;N.push(Z==null?void 0:(u=Z.videostatsDelayplayUrl)==null?void 0:u.baseUrl);var T;N.push(Z==null?void 0:(T=Z.videostatsWatchtimeUrl)==null?void 0:T.baseUrl);var W;N.push(Z==null?void 0:(W=Z.ptrackingUrl)==null?void 0:W.baseUrl);var V;N.push(Z==null?void 0:(V=Z.qoeUrl)==null?void 0:V.baseUrl);var M;N.push(Z==null?void 0:(M=Z.atrUrl)==null?
void 0:M.baseUrl);Z=_.O(N);for(N=Z.next();!N.done;N=Z.next())if((N=N.value)&&L.test(N))return N.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
Qf0=function(L,Z){var N,S;return _.b(function(u){switch(u.nextAddress){case 1:N=[],S=0;case 2:if(!(S<3)){u.jumpTo(4);break}return u.yield(fetch(L,{cache:"no-store",method:Z}).then(function(T){N.push(T.status)}).catch(function(){N.push(-1)}),3);
case 3:S++;u.jumpTo(2);break;case 4:return u.return(N)}})};
Xpw=function(L){return L.domainLookupStart===0&&L.domainLookupEnd===0&&L.connectStart===0&&L.connectEnd===0};
AOA=function(L,Z,N){N=N===void 0?"GET":N;var S,u,T,W,V,M,G,D,l,v;return _.b(function(R){if(R.nextAddress==1)return R.yield(Promise.all([Qf0(L,N),Qf0(Z,N)]),2);S=R.yieldResult;u=_.O(S);T=u.next().value;W=u.next().value;V=T;M=W;if(Math.min.apply(Math,_.Pd(M))!==Math.max.apply(Math,_.Pd(M))||Math.min.apply(Math,_.Pd(V))!==Math.max.apply(Math,_.Pd(V)))return R.return(2);if(Math.min.apply(Math,_.Pd(M))===Math.min.apply(Math,_.Pd(V)))return R.return(1);D=(G=performance.getEntriesByName(L))==null?void 0:
G[0];v=(l=performance.getEntriesByName(Z))==null?void 0:l[0];return D&&v?Xpw(v)?R.return(1):Xpw(D)?R.return(0):R.return(1):R.return(2)})};
R6H=function(){var L;return _.b(function(Z){var N=[];var S;var u,T,W;(u=S=(u=tVA().objectRepresentation.streamingData)==null?void 0:(T=u.formats)==null?void 0:(W=T[0])==null?void 0:W.url)&&u&&!S.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(u=u.replace("initcwndbps","ctier=L&initcwndbps"),u=u.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),S={testUrl:u,baseUrl:S,method:"GET"}):S=void 0;S&&N.push(S);_.c("ab_net_tp_e")&&N.push({testUrl:_.iH.location.origin+"/ad_companion",baseUrl:_.iH.location.origin+
"/generate_204",method:"OPTIONS"});_.c("ab_fix_creator_view_cnt")&&(N.length=0,(S=rOw(/api\/stats\/atr/))&&N.push({testUrl:_.iH.location.origin+S,baseUrl:_.iH.location.origin+"/generate_204",method:"OPTIONS"}));_.c("ad_net_pb_pbp")&&(S=rOw(/api\/stats\/qoe/))&&N.push({testUrl:_.iH.location.origin+S,baseUrl:_.iH.location.origin+"/feed/download",method:"GET"});N=N.length!==0?N[Math.floor(Math.random()*N.length)]:void 0;return(L=N)?Z.return(AOA(L.testUrl,L.baseUrl,L.method)):Z.return(4)})};
_.e6L=function(){if(_.iH.tMP===void 0||_.iH.tMP===null||typeof _.iH.tMP!=="function")return 2;try{return _.iH.tMP()===!0?0:1}catch(L){return 0}};
HSF=function(L){switch(L){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Xh(L,"unknown result type")}};
_.BiP=function(L,Z){var N=Number(_.X7("CATSTAT",0));if(Z.rSU===void 0)return N;Z=Z.rSU;L=HSF(L);return N&~(3<<Z)|L<<Z};
xk1=function(L){var Z,N;if((L=(Z=L.auxiliaryUi)==null?void 0:(N=Z.messageRenderers)==null?void 0:N.bkaEnforcementMessageViewModel)&&L.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return L};
LbG=function(){for(var L=_.O(Object.values(_.qlw)),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.isAsync&&Z.rSU&&_.Qc("CATSTAT",_.BiP(2,Z))};
_.NJ=function(L,Z){L=_.LX("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",L);(Z===void 0?0:Z)?_.ZNf(L,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.ZC().logFlowEvent(L,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
SqA=function(){if(!NL1){if(Polymer.Base){var L=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{L.apply(this,arguments)}catch(l){_.H8(l)}};
var Z=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{Z.apply(this,arguments)}catch(l){_.H8(l)}};
var N=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{N.apply(this,arguments)}catch(l){_.H8(l)}};
var S=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{S.apply(this,arguments)}catch(l){_.H8(l)}};
var u=Polymer.Base._listen,T=new WeakMap;Polymer.Base._listen=function(l,v,R){var K=function(){try{R.apply(this,arguments)}catch(U){_.H8(U)}};
T.set(R,K);u.call(this,l,v,K)};
var W=Polymer.Base._unlisten;Polymer.Base._unlisten=function(l,v,R){W.call(this,l,v,T.get(R))}}if(Polymer.Async){var V=Polymer.Async,M=V._atEndOfMicrotask;
V._atEndOfMicrotask=function(){try{M.apply(V,arguments)}catch(l){_.H8(l)}}}if(Polymer.RenderStatus){var G=Polymer.RenderStatus,D=G.afterNextRender;
G.afterNextRender=function(l,v,R){D.call(G,l,function(){try{v.apply(this,arguments)}catch(K){_.H8(K)}},R)}}NL1=!0}};
_.uos=function(L){var Z=L?_.ks(L):"";if(Z){if(Z.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(Z.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(Z.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(Z.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(Z.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.c("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(Z.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";Z=Z.toLowerCase();if(Z==="/")return"home";if(Z==="/channel_memberships")return"channel-memberships-shopfront";if(Z.indexOf("/feed/trending")===0)return"trending";if(Z.indexOf("/feed/explore")===0)return"explore";if(Z.indexOf("/live")===0)return"live";if(Z.indexOf("/results")===0)return"search";if(Z.indexOf("/sports")===0)return"sports";if(Z.indexOf("/fashion")===0||Z.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(Z))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(Z))return _.c("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(Z.indexOf("/channel/")===0||Z.indexOf("/user/")===0||Z.indexOf("/gaming")===0||Z.indexOf("/post/")===0)return"channel";if(iNH(L))return"show";if(Z==="/playlist"||Z.indexOf("/playlist/")===0||Z==="/view_play_list"||Z.indexOf("/view_play_list/")===0||Z.indexOf("/show/")===0)return"playlist";if(Z==="/companion_canvas")return"companion-canvas";if(Z==="/feed/history"||
Z.indexOf("/feed/history/")===0)return"history";if(Z==="/new")return"labs";if(Z==="/feed/subscriptions")return"subscriptions";if(Z.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(Z==="/history_controls")return"standalone";if(Z.indexOf("/account")===0||Z==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(Z.indexOf("/paid_memberships")===0||Z.indexOf("/refund")===0||Z.indexOf("/purchases")===0||Z.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(Z.indexOf("/product")===
0)return"yts-products";if(Z.indexOf("/premium")===0||Z.indexOf("/musicpremium")===0)return Z.indexOf("/premium/offers")===0||Z.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(Z==="/cart/checkout"||Z==="/cart")return"ypc-checkout";if(Z.indexOf("/feed/downloads")===0||Z.indexOf("/redeem")===0||Z.indexOf("/reporthistory")===0)return"browse";if(Z.indexOf("/hashtag")===0)return"hashtag-landing-page";if(Z.indexOf("/handle")===0)return"handle";if(Z.indexOf("/source")===0)return"audio-pivot";if(Z.search(RegExp("^/playables/(?!saved)."))===
0)return"mini_app";if(Z.indexOf("/playables")===0)return"playables";if(Z.indexOf("/create/live/join")===0)return"open-in-app";if(Z.indexOf("/shorts")===0)return"shorts";if(Z.indexOf("/feed/channels")===0)return"subscriptions-channels";(Z=L?_.ks(L):"")&&Z.indexOf("/watch")===0&&_.c("web_watch_enable_learning_journey")?(L=_.uQ(L),L=!!L.list&&L.list.indexOf("LJPP")===0):L=!1;if(L)return"learning_journey_watch"}};
_.SD=function(L){var Z,N;(L=(N=_.n(L==null?void 0:L.commandMetadata,_.Nj))==null?void 0:N.url)&&(Z=_.uos(L));return Z};
iNH=function(L){var Z=L?_.ks(L):"";if(!Z)return!1;Z=Z.toLowerCase();return Z.indexOf("/show/")===0||Z.indexOf("/playlist")===0&&(L=_.uQ(L),L.list&&L.list.indexOf("EL")===0)?!0:!1};
T7=function(L){var Z="unknown",N;var S=((N=_.n(L==null?void 0:L.commandMetadata,_.Nj))==null?void 0:N.webPageType)||"";S?(N=S.toLowerCase(),N.startsWith("web_page_type_")&&(N=N.slice(14))):N=S;N&&TLG[N.toUpperCase()]?Z=TLG[N.toUpperCase()]:_.n(L,_.iv)||_.n(L,trF)?Z="browse":_.n(L,_.uv)?Z="search":_.n(L,_.so)&&(Z="watch");Z==="watch"&&_.SD(L||null)==="learning_journey_watch"&&(Z="learning_journey_watch");Z==="unknown"&&_.Q7(Error("Uf`"+JSON.stringify({clickTrackingParams:L==null?void 0:L.clickTrackingParams,
commandMetadata:L==null?void 0:L.commandMetadata,allEndpointKeys:Object.keys(L||[])})));return Z};
_.tz=function(L){if(!_.ONf||L)_.ONf=_.UN();return _.ONf};
_.WbA=function(L){return!!_.n(L,_.so)||!!_.n(L,_.Ox)&&_.c("kevlar_enable_shorts_prefetch")};
_.Vrh=function(L,Z){L=_.n(L,_.so)||_.n(L,_.Ox);return"v"+L.videoId+(L.playlistId?"-pl"+L.playlistId:"")+(Z?"-an1":"")+(L.params?"-pr"+L.params:"")};
_.bNf=function(L){var Z=new Wq(_.X7("ONE_PICK_URL",""));Z.urlParamMap_.set("hostId",L);(L=_.X7("GAPI_LOCALE"))&&Z.urlParamMap_.set("hl",L);(L=_.X7("SESSION_INDEX"))&&Z.urlParamMap_.set("authuser",L);(L=_.X7("DELEGATED_SESSION_ID"))&&Z.urlParamMap_.set("groupId",L);return Z};
gg0=function(){var L=_.GR(),Z=L.resolve(_.VJ);L=L.resolve(_.bv);return new MrL(Z,L)};
FbB=function(L){if(window.IntersectionObserver)return new G9G(L,400);throw new TypeError("Wf");};
D11=function(){var L=Hammer.TouchAction,Z=L.prototype.preventDefaults;L.prototype.preventDefaults=function(N){var S=this.actions.indexOf("pan-down")>-1;if(!S)return Z.call(this,N);if(!$1F){var u=N.srcEvent;N=N.direction;var T;if((T=this.manager)==null?0:T.session.prevented)u.preventDefault();else if(S&&N&Hammer.DIRECTION_DOWN)return this.preventSrc(u)}}};
lHw=function(L){if(!L||L.size===0)return Hammer.DIRECTION_ALL;if(L.size===2){if(L.has("up")&&L.has("down"))return Hammer.DIRECTION_VERTICAL;if(L.has("right")&&L.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(L.size===1){if(L.has("up"))return Hammer.DIRECTION_UP;if(L.has("down"))return Hammer.DIRECTION_DOWN;if(L.has("right"))return Hammer.DIRECTION_RIGHT;if(L.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.ogt=function(){return vgG?Promise.resolve(vgG):new Promise(function(L,Z){var N=self.indexedDB.open("swpushnotificationsdb");N.onerror=Z;N.onsuccess=function(){var S=N.result;if(S.objectStoreNames.contains("swpushnotificationsstore"))vgG=S,L(vgG);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.ogt()};
N.onupgradeneeded=RBB})};
RBB=function(L){L=L.target.result;L.objectStoreNames.contains("swpushnotificationsstore")&&L.deleteObjectStore("swpushnotificationsstore");L.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.gr=function(L,Z,N){var S=N&&N>0?N:0;N=S?Date.now()+S*1E3:0;if((S=S?_.MJ.getLocalStorage():_.MJ.getSessionStorage())&&window.JSON){typeof Z!=="string"&&(Z=JSON.stringify(Z,void 0));try{S.set(L,Z,N)}catch(u){S.remove(L)}}};
_.G7=function(L){var Z=_.MJ.getSessionStorage(),N=_.MJ.getLocalStorage();if(!Z&&!N||!window.JSON)return null;try{var S=Z.get(L)}catch(u){}if(typeof S!=="string")try{S=N.get(L)}catch(u){}if(typeof S!=="string")return null;try{S=JSON.parse(S,void 0)}catch(u){}return S};
_.FB=function(L){try{var Z=_.MJ.getSessionStorage(),N=_.MJ.getLocalStorage();Z&&Z.remove(L);N&&N.remove(L)}catch(S){}};
ngw=function(L){var Z=cI_(),N;return _.b(function(S){switch(S.nextAddress){case 1:return _.RS(S,2),S.yield(L.match(Z,{cacheName:"yt-appshell-assets"}),4);case 4:N=S.yieldResult;_.SX(S,3);break;case 2:_.yd(S);case 3:return S.return(N)}})};
cI_=function(){var L=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?KbG.registration.scope:fHB;L.endsWith("/")&&(L=L.slice(0,-1));return L+"/app_shell_home"};
k9x=function(L){L.map(function(Z){return Z.source}).join("|")};
_.yIP=function(L){return _.b(function(Z){return Z.return(ngw(L))})};
wAL=function(){var L=window.caches,Z;return _.b(function(N){if(N.nextAddress==1)return N.yield(_.yIP(L),2);Z=N.yieldResult;return N.return(!!Z)})};
hBh=function(){_.b(function(L){if(L.nextAddress==1){if(U1L)return L.jumpTo(0);U1L=!0;if(_.c("enable_system_health_primes_monitoring"))return _.nZ(Yq_,3E4),eB1(),L.return();if(!(Math.random()<_.lQ("web_system_health_fraction")))return L.jumpTo(0);IHx={heightPixels:screen.height,widthPixels:screen.width};$e&&!isNaN($e.jsHeapSizeLimit)&&(IHx.memoryTotalKbytes=String(Math.round($e.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(IHx.devicePixelRatio=window.devicePixelRatio);return L.yield(d1t(),4)}_.nZ(Yq_,
3E4);return L.yield(aHf(),0)})};
d1t=function(){return _.b(function(L){if(L.nextAddress==1)return DC.intersectionObserverPresent="IntersectionObserver"in window,DC.serviceWorkerPresent="serviceWorker"in navigator,DC.webSharePresent="share"in navigator,DC.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,DC.cacheStoragePresent="caches"in window,DC.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,DC.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
DC.webkitTemporaryStoragePresent="webkitTemporaryStorage"in lv&&lv.webkitTemporaryStorage&&"queryUsageAndQuota"in lv.webkitTemporaryStorage,DC.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",L.yield($ef(),2);DC.indexedDbPresent=L.yieldResult;DC.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;DC.broadcastChannelPresent="BroadcastChannel"in window;DC.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(DC.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,DC.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.w7(L)})};
Yq_=function(){var L=9E4+Math.random()*2E3;_.Fv()>L||(_.c("enable_system_health_primes_monitoring")?eB1():aHf())};
aHf=function(){var L;return _.b(function(Z){if(Z.nextAddress==1)return Z.yield(s9F(),2);L=Z.yieldResult;_.mS("systemHealthCaptured",L);_.w7(Z)})};
eB1=function(){var L={metric:{}},Z=j9F();Z.networkEvents.length&&(L.metric.networkEvents=EgB(Z));_.mS("systemHealthCaptured",L)};
s9F=function(){var L,Z,N,S,u,T,W,V,M,G;return _.b(function(D){switch(D.nextAddress){case 1:L={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)};Z=window.screen;_.c("enable_is_extended_monitoring")&&Z&&"isExtended"in Z&&(L.isExtended=!!Z.isExtended);N={metric:{staticContext:IHx,dynamicContext:L,webMetric:P7G,webApiSupport:DC}};
if(S=_.RH())N.csn=S;$e&&(N.metric.webMetric.currentHeapKbytes=Math.round($e.usedJSHeapSize/1E3));window.matchMedia&&(N.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,N.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,N.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in lv&&typeof lv.getBattery==="function")){D.jumpTo(2);break}return D.yield(lv.getBattery(),3);case 3:if(u=
D.yieldResult)N.metric.dynamicContext.chargingStatus=u.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(N.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(DC.storageEstimatePresent)return D.yield(navigator.storage.estimate(),8);if(!DC.webkitTemporaryStoragePresent){D.jumpTo(5);break}return D.yield(pA1(),7);case 7:T=D.yieldResult;D.jumpTo(5);break;case 8:T=D.yieldResult;case 5:return N.metric.dynamicContext.deviceStorageQuotaMbytes=((W=T)==null?0:W.quota)?String(Math.round(T.quota/
1048576/10)*10):"-1",N.metric.dynamicContext.deviceStorageUsageMbytes=((V=T)==null?0:V.usage)?String(Math.round(T.usage/1048576/10)*10):"-1",M=N.metric.dynamicContext,D.yield(wAL(),9);case 9:return M.hasAppShell=D.yieldResult,G=j9F(),G.networkEvents.length&&(N.metric.networkEvents=EgB(G)),D.return(N)}})};
pA1=function(){return new Promise(function(L){var Z;DC.webkitTemporaryStoragePresent&&(Z=lv.webkitTemporaryStorage)!=null&&Z.queryUsageAndQuota?lv.webkitTemporaryStorage.queryUsageAndQuota(function(N,S){L({usage:N,quota:S})}):L(void 0)})};
_.vq=function(L){L&=16777215;L=[(L&16711680)>>16,(L&65280)>>8,L&255];return zB1(L[0],L[1],L[2])};
_.Rs=function(L){L=[(L&16711680)>>>16,(L&65280)>>>8,L&255,(L&4278190080)>>>24];if(!_.m1f(L,function(Z){return Z===(Z&255)}))throw Error("Xf`"+L.join(","));
return"rgba("+L[0]+","+L[1]+","+L[2]+","+(L[3]/255).toFixed(3)+")"};
_.JIB=function(L){return[(L&16711680)>>>16,(L&65280)>>>8,L&255]};
_.C7A=function(L){L=L.map(function(Z){Z/=255;return Z<=.03928?Z/12.92:Math.pow((Z+.05)/1.05,2.4)});
return L[0]*.2126+L[1]*.7152+L[2]*.0722};
cq=function(L,Z){L=_.JIB(L);return"rgba("+L[0]+", "+L[1]+", "+L[2]+", "+Z+")"};
nX=function(L){return(L&4278190080)>>>24===0?cq(L,"1"):_.Rs(L)};
_.rI0=function(){try{return!!self.localStorage}catch(L){return!1}};
HNs=function(){if(Q9B())_.Q7(Error("Yf"));else{var L=document.createElement("iframe");L.style.display="none";var Z=Z===void 0?window.location.href:Z;var N=_.QH(_.X7("PERSIST_IDENTITY_IFRAME_URL"));Z=N?N:(new URL(Z)).host.indexOf("studio")===0?_.vy(XAA,"persist_identity"):_.vy(AIA,"persist_identity");_.GEt(L,1,Z);L.id="persist_identity";var S;(S=document.body)==null||S.appendChild(L)}};
Q9B=function(){var L=BLs;L||(L=document.querySelector("#persist_identity"));return L};
x1f=function(){var L=!1;try{L=!!window.sessionStorage.getItem("session_logininfo")}catch(Z){L=!0}return(_.X7("INNERTUBE_CLIENT_NAME")==="WEB"||_.X7("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&L};
qqs=function(L,Z){if(!x1f())return!1;Z||(Z=_.X7("LOGIN_INFO"));return Z?(L.session_logininfo=Z,!0):!1};
ZJL=function(L,Z){L=L===void 0?!1:L;if((Z===void 0||!Z)&&LUP!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Ah("LOG_STICKINESS",!1)){Z=_.RH();var N=_.oH(),S={identityStickinessData:{initialState:LUP}};Z&&N&&_.ET(Z,N,S)}if(Z=Q9B())if(N=Z.src?(new URL(Z.src)).origin:"*",L){var u;(u=Z.contentWindow)==null||u.postMessage({action:"clear"},N)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(L=window.sessionStorage.getItem("session_logininfo"))){var T;(T=Z.contentWindow)==null||T.postMessage({loginInfo:L},N)}};
_.KX=function(L){L=L===void 0?!0:L;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Qc("LOGIN_INFO",""),L&&window.sessionStorage.setItem("from_switch_account","1"),ZJL(!0,L)}catch(Z){}};
NaB=function(L){L&&(L.startsWith("https://accounts.google.com/AddSession")?_.KX():L.startsWith("https://accounts.google.com/ServiceLogin")?_.KX():L.startsWith("https://myaccount.google.com")&&_.qG(L).getPath().endsWith("/youtubeoptions")&&_.KX())};
fX=function(L,Z){NaB(L);if(_.Ah("LOGGED_IN",!0)&&x1f()){var N=xRh(L);N==null&&(N={});qqs(N,Z)&&_.pv(L,N)}};
SL_=function(){function L(Z){for(Z=Z.target;Z&&Z.nodeName!=="A";)if(Z=Z.parentNode,!(Z&&Z instanceof HTMLElement))return;if(Z&&!Z.hasAttribute("download")&&Z.getAttribute("rel")!=="external"&&Z.href)return Z.href}
document.addEventListener("mousedown",function(Z){Z.button!==0&&(Z=L(Z))&&fX(Z)});
document.addEventListener("click",function(Z){(Z=L(Z))&&fX(Z)})};
TaH=function(){var L=new iJF;try{if(_.Ah("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(V){L.increment(5,!1);return}if(_.X7("LOGIN_INFO")){var Z=u3H?u3H:window.location;_.X7("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&HNs();var N=xRh(Z.href);N==null&&(N={});var S=N.session_logininfo,u=Number(window.sessionStorage.getItem("stickiness_reload")),T=S===_.X7("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
u>=2||T)u>=2?L.increment(2,T):T?L.increment(7,T):window.sessionStorage.getItem("session_logininfo")||(L.increment(3,T),LUP="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.X7("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.X7("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))L.increment(4,T),window.sessionStorage.removeItem("stickiness_reload");
else if(u<2){window.sessionStorage.setItem("stickiness_reload",String(u+1));var W=Z.href;W=_.zo(W,"sttick");fX(W,window.sessionStorage.getItem("session_logininfo"));W=_.TR(W,{sttick:u});L.increment(u,T);_.vS1(Z,W)}}else L.increment(6,!1)}else _.KX(!1)}catch(V){}};
_.ke=function(L,Z,N,S,u){Z=Z===void 0?{}:Z;N=N===void 0?"":N;S=S===void 0?window:S;L=_.t3(L,Z);fX(L);N=_.mY(L+N,u);_.vS1(S.location,N)};
tq1=function(L){if(L.urlEndpoint){if(L=_.uQ(L.urlEndpoint.url),L.adurl)return Mu(L.adurl)}else if(L.watchEndpoint)return"//www.youtube.com/watch?v="+L.watchEndpoint.videoId;return null};
OJt=function(L){if(!L||!L.reportingPings)return null;var Z={};L.reportingPings.forEach(function(N){N.pingType in Z?Z[N.pingType].push(N.url):Z[N.pingType]=[N.url]});
return{adpings:m2L(Z)}};
_.wr=function(L){L=L===void 0?!1:L;var Z=_.tq(),N="USER_INTERFACE_THEME_LIGHT";Z.getFlag(165)?N="USER_INTERFACE_THEME_DARK":Z.getFlag(174)?N="USER_INTERFACE_THEME_LIGHT":_.yJ()&&(N="USER_INTERFACE_THEME_DARK");return L?N:WUs()||N};
_.VqA=function(){return!_.c("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.yJ=function(){return _.VqA()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Ux=function(){var L=_.tq();return _.VqA()&&!L.getFlag(165)&&!L.getFlag(174)};
WUs=function(){var L=L===void 0?window.location.href:L;if(_.c("kevlar_disable_theme_param"))return null;var Z=_.ks(L);if(_.bJ_(Z))return"USER_INTERFACE_THEME_DARK";try{var N=_.uQ(L).theme;return MqA.get(N)||null}catch(S){}return null};
_.bJ_=function(L){return _.c("enable_dark_theme_only_on_shorts")?!(L==null||!L.startsWith("/shorts/")):!1};
_.FU_=function(L,Z,N,S,u){Z=Z===void 0?!1:Z;N=N===void 0?!1:N;var T=_.X7("INNERTUBE_CONTEXT");if(!T)return _.CA(Error("bg")),{};T=(0,_.Py.unsafeClone)(T);_.c("web_no_tracking_params_in_shell_killswitch")||delete T.clickTracking;T.client||(T.client={});var W=T.client;W.clientName==="MWEB"&&W.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(W.clientFormFactor=_.X7("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=_.wr();if(!Z){var V=_.E6x();V&&(W.connectionType=V);_.c("web_log_effective_connection_type")&&(V=pBH())&&(T.client.effectiveConnectionType=V)}var M;if(_.c("web_log_memory_total_kbytes")&&((M=_.iH.navigator)==null?0:M.deviceMemory)){var G;M=(G=_.iH.navigator)==null?void 0:G.deviceMemory;T.client.memoryTotalKbytes=""+M*1E6}Z&&S&&!_.c("web_it_context_set_original_url_ks")&&
(W.originalUrl=g10(_.iH.location.href,S).toString());_.c("web_gcf_hashes_innertube")&&(V=Bnt())&&(G=V.coldConfigData,M=V.coldHashData,V=V.hotHashData,T.client.configInfo=T.client.configInfo||{},G&&(T.client.configInfo.coldConfigData=G),M&&(T.client.configInfo.coldHashData=M),V&&(T.client.configInfo.hotHashData=V));G=_.uQ(_.iH.location.href);!_.c("web_populate_internal_geo_killswitch")&&G.internalcountrycode&&(W.internalGeo=G.internalcountrycode);!_.c("web_populate_client_screen_killswitch")&&u&&(W.clientScreen=
u);W.clientName==="MWEB"||W.clientName==="WEB"?(W.mainAppWebInfo||(W.mainAppWebInfo={}),W.mainAppWebInfo.graftUrl=S||_.iH.location.href,_.c("kevlar_woffle")&&_.Ye.instance&&(S=_.Ye.instance,W.mainAppWebInfo.pwaInstallabilityStatus=!S.appInstalledEventFired&&S.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),W.mainAppWebInfo.webDisplayMode=mef(),W.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):W.clientName==="TVHTML5"&&
(!_.c("web_lr_app_quality_killswitch")&&(S=_.X7("LIVING_ROOM_APP_QUALITY"))&&(W.tvAppInfo=Object.assign(W.tvAppInfo||{},{appQuality:S})),S=_.X7("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(W.tvAppInfo=Object.assign(W.tvAppInfo||{},{certificationScope:S}));!_.c("web_populate_time_zone_itc_killswitch")&&(S=sqf())&&(W.timeZone=S);(S=STP())?W.experimentsToken=S:delete W.experimentsToken;W=iq1();S=_.Get();S=(0,_.Py.getValues)(S.tokenJars);T.request=Object.assign({},T.request,{internalExperimentFlags:W,consistencyTokenJars:S});
!_.c("web_prequest_context_killswitch")&&(W=_.X7("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(T.request.externalPrequestContext=W);S=_.tq();W=S.getFlag(58);S=S.get("gsml","");T.user=Object.assign({},T.user);W&&(T.user.enableSafetyMode=W);S&&(T.user.lockedSafetyMode=!0);_.c("warm_op_csn_cleanup")?N&&(Z=_.RH())&&(T.clientScreenNonce=Z):!Z&&(Z=_.RH())&&(T.clientScreenNonce=Z);L&&(T.clickTracking={clickTrackingParams:L});if(L=_.LZ("yt.mdx.remote.remoteClient_"))T.remoteClient=L;_.eD.getInstance().setLocationOnInnerTubeContext(T);
try{var D=G6t(),l=D.bid;delete D.bid;T.adSignalsInfo={params:[],bid:l};for(var v=_.O(Object.entries(D)),R=v.next();!R.done;R=v.next()){var K=_.O(R.value),U=K.next().value,d=K.next().value;D=U;l=d;L=void 0;(L=T.adSignalsInfo.params)==null||L.push({key:D,value:""+l})}var h,E;if(((h=T.client)==null?void 0:h.clientName)==="TVHTML5"||((E=T.client)==null?void 0:E.clientName)==="TVHTML5_UNPLUGGED"){var A=_.X7("INNERTUBE_CONTEXT");A.adSignalsInfo&&(T.adSignalsInfo.advertisingId=A.adSignalsInfo.advertisingId,
T.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",T.adSignalsInfo.limitAdTracking=A.adSignalsInfo.limitAdTracking)}}catch(J){_.CA(J)}return T};
_.Is=function(){return{isShellLoad:_.Ah("IS_SHELL_LOAD",!1)}};
DP0=function(){navigator.serviceWorker.getRegistrations().then(function(L){L.forEach($PP)})};
$PP=function(L){L&&_.lpt(v1h,L.scope)};
_.lpt=function(L,Z){Z={scope:Z||_.vW("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.en(L),Z)};
dr=function(L,Z,N,S){if(Z&&Z.serializedYpcCujLoggingParams){if(N){var u={};u.transactionErrorType=N;S&&(u.errorMessage=S);Z.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:u}}}N={};N.ypcCujContext=Z;L=_.LX("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",L,N);_.ZC().logFlowEvent(L,"FLOW_TYPE_YPC_ACQUISITION")}};
_.o1_=function(L,Z,N,S){var u={};u.serializedTransactionFlowLoggingParams=Z;N&&(u.errorType=N);S&&(u.errorMessage=S);_.mS(L,u);_.JV()};
_.Rcx=function(L){L&&_.o1_("transactionFlowStarted",L)};
_.ck_=function(L){L&&_.o1_("transactionFlowCancelled",L)};
_.as=function(L,Z,N){Z&&_.o1_("transactionFlowFailed",Z,L,N)};
n1s=function(L){var Z=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");Z&&(Z.inert=L)};
_.hz=function(){this.megabloxUrl_=null};
_.sx=function(L){try{var Z=KUF==null?void 0:KUF.composedPath(L)}catch(N){Z=L.composedPath?L.composedPath():[]}return Z&&Z.length>0?Z:L.composedPath?L.composedPath():[]};
_.jD=function(L){return _.sx(L)[0]};
_.Ex=function(L){if(!(L instanceof Element))return null;L=L.classList?Array.from(L.classList):void 0;if(!L)return null;var Z=L.indexOf("style-scope");return Z>-1&&Z+1<L.length?L[Z+1]:null};
Pq=function(L){if(!(L instanceof HTMLElement))return null;var Z=L&&(L.$$||L.polymerController)?L.tagName.toLowerCase():null;return Z?Z:_.Ex(L)};
fpx=function(L,Z){return L.replace(/[^a-z]*[^\s]+/g,function(N){return N+".style-scope."+Z})};
keH=function(L,Z){return Z?L.split(",").map(function(N){return fpx(N.trim(),Z)}).join(", "):L};
_.pX=function(L){var Z,N,S,u;return(u=(S=(N=(Z=L.root)!=null?Z:L.shadowRoot)!=null?N:L.__shady_native_shadowRoot)!=null?S:L.__shady_shadowRoot)!=null?u:L};
z7=function(L){return L instanceof ShadowRoot?ShadowRoot:L instanceof DocumentFragment?DocumentFragment:L instanceof Document?Document:HTMLElement};
ykP=function(L){var Z,N,S;return(S=(N=(Z=L.parentElement)!=null?Z:L.__shady_native_parentElement)!=null?N:L.__shady_parentElement)!=null?S:null};
w7P=function(L){var Z,N,S;return(S=(N=(Z=L.parentNode)!=null?Z:L.__shady_native_parentNode)!=null?N:L.__shady_parentNode)!=null?S:null};
UPs=function(L){var Z,N,S;return(S=(N=(Z=L.__shady_parentNode)!=null?Z:L.__shady_native_parentNode)!=null?N:L.parentNode)!=null?S:null};
YL_=function(L){var Z,N;return(N=(Z=w7P(L))!=null?Z:L.host)!=null?N:null};
ec_=function(L){var Z,N,S;return(S=(N=(Z=L.nextSibling)!=null?Z:L.__shady_native_nextSibling)!=null?N:L.__shady_nextSibling)!=null?S:null};
IpF=function(L){var Z,N,S;return(S=(N=(Z=L.previousSibling)!=null?Z:L.__shady_native_previousSibling)!=null?N:L.__shady_previousSibling)!=null?S:null};
dPH=function(L){var Z,N,S;return(S=(N=(Z=L.nextElementSibling)!=null?Z:L.__shady_native_nextElementSibling)!=null?N:L.__shady_nextElementSibling)!=null?S:null};
apH=function(L){var Z,N,S;return(S=(N=(Z=L.previousElementSibling)!=null?Z:L.__shady_native_previousElementSibling)!=null?N:L.__shady_previousElementSibling)!=null?S:null};
hcB=function(L){var Z,N,S;return new Set([].concat(_.Pd((Z=L.children)!=null?Z:[]),_.Pd((N=L.__shady_native_children)!=null?N:[]),_.Pd((S=L.__shady_children)!=null?S:[])))};
svt=function(L){var Z,N,S;return new Set([].concat(_.Pd((Z=L.childNodes)!=null?Z:[]),_.Pd((N=L.__shady_native_childNodes)!=null?N:[]),_.Pd((S=L.__shady_childNodes)!=null?S:[])))};
jvA=function(L){if(!L)return null;var Z=_.Ex(L);if(!Z){var N;return(N=Node.prototype.getRootNode)==null?void 0:N.call(L)}Z=Z.toUpperCase();for(L=ykP(L);L&&L.tagName!==Z;)L=ykP(L);return L?_.pX(L):null};
E1_=function(L){for(;L&&!(L instanceof HTMLElement);)L=YL_(L);return L};
P_x=function(L){var Z=E1_(L);return L===Z?_.Ex(L):Z?Pq(Z):null};
p7t=function(L){return(L=E1_(L))?Pq(L):null};
zcA=function(L){if(L instanceof Comment)return!1;if(L instanceof Text){var Z,N;if(((N=(Z=L.textContent)==null?void 0:Z.trim())!=null?N:"")==="")return!1}return!0};
ml=function(L,Z,N){var S=Z(L);for(N=N===void 0?p7t(L):N;S&&(P_x(S)!==N||!zcA(S));)L=S,S=Z(L);return S};
mPt=function(L,Z,N){if(!Z)return null;L=p7t(L);return P_x(Z)===L&&zcA(Z)?Z:ml(Z,N,L)};
JkF=function(L){return ml(L,UPs,_.Ex(L))};
C_0=function(L){return ml(L,dPH)};
rk_=function(L){return ml(L,ec_)};
Qvx=function(L){return ml(L,apH)};
X7h=function(L){return ml(L,IpF)};
AkA=function(L){return mPt(L,L.firstChild||L.__shady_native_firstChild||L.__shady_firstChild||null,ec_)};
HJs=function(L){var Z,N,S;var u=(S=(N=(Z=L.firstElementChild)!=null?Z:L.__shady_native_firstElementChild)!=null?N:L.__shady_firstElementChild)!=null?S:null;return mPt(L,u,dPH)};
BaL=function(L){var Z,N,S;var u=(S=(N=(Z=L.lastChild)!=null?Z:L.__shady_native_lastChild)!=null?N:L.__shady_lastChild)!=null?S:null;return mPt(L,u,IpF)};
xPt=function(L){var Z,N,S;var u=(S=(N=(Z=L.lastElementChild)!=null?Z:L.__shady_native_lastElementChild)!=null?N:L.__shady_lastElementChild)!=null?S:null;return mPt(L,u,apH)};
qLG=function(L){var Z=p7t(L);return Array.from(svt(L)).filter(function(N){return P_x(N)===Z})};
LnL=function(L){var Z=Pq(L);return Array.from(hcB(L)).filter(function(N){return _.Ex(N)===Z})};
_.Jz=function(L,Z,N){if(L instanceof HTMLElement&&_.Ex(L)===N){var S=Array.from(L.classList).indexOf("style-scope");if(S===-1)L.classList.add("style-scope"),L.classList.add(Z);else if(!(S+1>=L.classList.length)){S=L.classList[S+1];var u,T;L==null||(u=L.classList)==null||(T=u.replace)==null||T.call(u,S,Z)}}if(L instanceof HTMLElement||L instanceof DocumentFragment)for(u=_.O(hcB(L)),T=u.next();!T.done;T=u.next())_.Jz(T.value,Z,N);return L};
CX=function(L,Z){if(L instanceof HTMLElement&&_.Ex(L)===Z){var N=Array.from(L.classList).indexOf("style-scope");N===-1||N+1>=L.classList.length||L.classList.remove("style-scope",L.classList[N+1])}if(L instanceof HTMLElement||L instanceof DocumentFragment){N=_.O(L.children);for(var S=N.next();!S.done;S=N.next())CX(S.value,Z)}return L};
_.ZP_=function(L,Z){return z7(L).prototype.appendChild.call(L,Z)};
NC1=function(L,Z){if(L===Z)return!0;L=svt(L);return Array.from(L).some(function(N){return NC1(N,Z)})};
_.QJ=function(L,Z){if(L instanceof rr)return L;(Z==null?0:Z.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(L,"ownerDocument")&&Object.defineProperty(L,"ownerDocument",{get:function(){return window.document}});
return new rr(L)};
iPh=function(){var L=rr.prototype,Z=[].concat(_.Pd(S5t?[]:["getRootNode"]),["setAttribute","removeAttribute"]);Z=_.O(Z);for(var N=Z.next(),S={};!N.done;S={method$jscomp$53:void 0},N=Z.next())S.method$jscomp$53=N.value,L[S.method$jscomp$53]=function(u){return function(){return this.host[u.method$jscomp$53].apply(this.host,arguments)}}(S)};
TCP=function(){var L=rr.prototype,Z=[].concat(_.Pd(S5t?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Pd(ucF?[]:["querySelector","querySelectorAll"]));Z=_.O(Z);for(var N=Z.next(),S={};!N.done;S={method$jscomp$54:void 0},N=Z.next())S.method$jscomp$54=N.value,L[S.method$jscomp$54]=function(u){return function(){return this.root[u.method$jscomp$54].apply(this.root,arguments)}}(S)};
WnG=function(){var L=rr.prototype,Z=[].concat(_.Pd(tTG?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Pd(OPt?[]:["parentNode"]));Z=_.O(Z);for(var N=Z.next(),S={};!N.done;S={prop$jscomp$67:void 0},N=Z.next())S.prop$jscomp$67=N.value,Object.defineProperty(L,S.prop$jscomp$67,{get:function(u){return function(){return this.host[u.prop$jscomp$67]}}(S),
configurable:!0})};
MTH=function(){var L=rr.prototype,Z=["activeElement"].concat(_.Pd(tTG?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Pd(VTF?[]:["children"]),_.Pd(bPh?[]:["lastChild"]));Z=_.O(Z);for(var N=Z.next(),S={};!N.done;S={prop$jscomp$68:void 0},N=Z.next())S.prop$jscomp$68=N.value,Object.defineProperty(L,S.prop$jscomp$68,{get:function(u){return function(){return this.root[u.prop$jscomp$68]}}(S),
configurable:!0})};
g2_=function(){for(var L=rr.prototype,Z=_.O(["innerHTML","textContent"]),N=Z.next(),S={};!N.done;S={prop$jscomp$69:void 0},N=Z.next())S.prop$jscomp$69=N.value,Object.defineProperty(L,S.prop$jscomp$69,{get:function(u){return function(){return this.root[u.prop$jscomp$69]}}(S),
set:function(u){return function(T){this.root[u.prop$jscomp$69]=T}}(S),
configurable:!0})};
Gus=function(L){var Z=rr.prototype;L=_.O(Object.entries(L));for(var N=L.next(),S={};!N.done;S={fn$jscomp$403:void 0},N=L.next()){var u=_.O(N.value);N=u.next().value;u=u.next().value;S.fn$jscomp$403=u;Z[N]=function(T){return function(){return T.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.Pd(arguments)))}}(S)}};
$l_=function(){for(var L=rr.prototype,Z=_.O(Object.entries(Fns)),N=Z.next(),S={};!N.done;S={fn$jscomp$404:void 0},N=Z.next()){var u=_.O(N.value);N=u.next().value;u=u.next().value;S.fn$jscomp$404=u;Object.defineProperty(L,N,{get:function(T){return function(){return T.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.Pd(arguments)))}}(S),
configurable:!0})}};
_.XB=function(L){return L instanceof Dlf||L instanceof Document?L:new Dlf(L)};
lLw=function(){for(var L=Dlf.prototype,Z=_.O("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),N=Z.next(),S={};!N.done;S={method$jscomp$55:void 0},N=Z.next())S.method$jscomp$55=N.value,L[S.method$jscomp$55]=function(u){return function(){return HTMLElement.prototype[u.method$jscomp$55].call.apply(HTMLElement.prototype[u.method$jscomp$55],[this.node].concat(_.Pd(arguments)))}}(S)};
v2F=function(){for(var L=Dlf.prototype,Z=_.O("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),N=Z.next(),S={};!N.done;S={prop$jscomp$70:void 0},N=Z.next())S.prop$jscomp$70=N.value,Object.defineProperty(L,S.prop$jscomp$70,{get:function(u){return function(){var T;return(T=this.node["__shady_native_"+u.prop$jscomp$70])!=null?T:this.node[u.prop$jscomp$70]}}(S),
configurable:!0})};
_.Az=function(L,Z,N){N===void 0&&(N=!L.classList.contains(Z));N?L.classList.add(Z):L.classList.remove(Z)};
_.xe=function(L,Z,N){N===void 0&&(N=!L.hasAttribute(Z));if(Z==="class")throw Error("fg");N?_.XB(L).setAttribute(Z,""):_.XB(L).removeAttribute(Z)};
o2_=function(L){return(L.localName!=="slot"?[]:(0,_.qJ)(L).assignedNodes({flatten:!0})).filter(function(Z){return Z.nodeType===Node.ELEMENT_NODE})};
_.R4L=function(L){return(L=_.QJ(L).querySelector("slot"))&&L.localName==="slot"?o2_(L):[]};
_.Ld=function(L,Z){window.ShadyCSS&&window.ShadyCSS.styleSubtree(L,Z)};
ZU=function(L,Z){var N=Z.bind(L);return function(S){N(S,S.detail)}};
_.Nd=function(L,Z){var N=cts.get(L);N||(N=new WeakMap,cts.set(L,N));if(N.has(Z))return N.get(Z);if(_.c("web_fi_listen_disable_bound_fn_helper")){var S=Z.bind(L);L=function(u){S(u,u==null?void 0:u.detail)}}else L=ZU(L,Z);
N.set(Z,L);return L};
fLA=function(L,Z){n2G(L);L.created[Kn1].push(Z)};
n2G=function(L){if(!L.created||!L.created[Kn1]){var Z=L.created,N=Z?[Z]:[];L.created=function(){for(var S=_.O(N),u=S.next();!u.done;u=S.next())u.value.apply(this)};
L.created[Kn1]=N}};
kuH=function(L){return function(){var Z=_.CG.apply(0,arguments);return function(N,S,u){L.apply(null,_.Pd(Z))(N,S,u)}}};
ytw=function(){return function(){var L=_.CG.apply(0,arguments);return function(Z,N,S){b7L.apply(null,_.Pd(L))(Z,N,S)}}};
_.y=function(L){return ytw()(L)};
_.w=function(){return kuH(FQB).apply(null,_.Pd(_.CG.apply(0,arguments)))};
_.SA=function(L){return _.c("pbcm_fi_listen_decorators")?wNt(L):kuH(gpG)(L)};
wNt=function(L){return function(Z,N){fLA(Z,function(){var S=this[N],u=_.c("web_fi_listen_disable_bound_fn_helper")?function(T){S(T,T.detail)}.bind(this):ZU(this,S);
UlF.has(L)?rx(this.hostElement,L,u):this.hostElement.addEventListener(L,u)})}};
_.iA=function(){return kuH(Gwf).apply(null,_.Pd(_.CG.apply(0,arguments)))};
_.Y=function(L){L=L===void 0?{}:L;return kuH(MsF)(L)};
_.uA=function(L){if(L.hostElement&&L!==L.hostElement){var Z=_.g0(L.hostElement);Z=L.renderIdom?Z:Z.shadowRoot}Z||(L=L.root,Z=L instanceof Node?_.g0(L):null);return Z};
_.TX=function(L){return Y5s?e4G(L):function(Z,N){Object.defineProperty(Z,N,{get:function(){var S;return(S=_.uA(this))==null?void 0:S.querySelector(L)},
enumerable:!0,configurable:!0})}};
e4G=function(L){return function(Z,N){Object.defineProperty(Z,N,{get:function(){var S,u=(S=_.QJ(this.hostElement))==null?void 0:S.querySelector(L);if(u)return u;var T;return(T=_.uA(this))==null?void 0:T.querySelector(L)},
enumerable:!0,configurable:!0})}};
_.tJ=function(L){return Y5s?ILL(L):function(Z,N){Object.defineProperty(Z,N,{get:function(){var S;return(S=_.uA(this))==null?void 0:S.querySelectorAll(L)},
enumerable:!0,configurable:!0})}};
ILL=function(L){return function(Z,N){Object.defineProperty(Z,N,{get:function(){var S,u=(S=_.QJ(this.hostElement))==null?void 0:S.querySelectorAll(L);if(u==null?0:u.length)return u;var T;return(T=_.uA(this))==null?void 0:T.querySelectorAll(L)},
enumerable:!0,configurable:!0})}};
dls=function(L){return function(Z){if(![_.Gc,_.e].includes(Object.getPrototypeOf(Z.prototype).constructor))throw Error("gg");SyP(Object.assign({},typeof L!=="string"?L:{is:L,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(Z)}};
_.Wh=function(){var L=L===void 0?{}:L;return function(Z){if(![F$,_.Ok].includes(Object.getPrototypeOf(Z.prototype).constructor))throw Error("hg");i7F(Object.assign({},L,{disableInheritanceCheck:!0}))(Z)}};
h4_=function(L,Z){aLh[L]!=null||(aLh[L]=new Set);aLh[L].add(Z)};
_.Vr=function(){var L=_.iA.apply(null,_.Pd(_.CG.apply(0,arguments)));return function(Z,N){h4_(Z.is,N);L(Z,N)}};
gD=function(L,Z,N){if(bA(L)&&!sdx.has(Z)){Z=Z.replace(/^JSC\$[\d]+_/,"");Z=Z.replace(/\.\d+(\.|$)/g,function(T,W){return".#"+W});
Md[L]!=null||(Md[L]={});var S,u;(S=Md[L])[u=Z]!=null||(S[u]=new Set);Md[L][Z].has(N)||(Md[L][Z].add(N),_.mS("polymerPropertyAccessEvent",{componentName:L,propertyName:Z,accessType:N}))}};
jdH=function(){return _.c("polymer_property_access_logging_debug")||_.c("polymer_enable_property_access_logging")};
bA=function(L){if(_.c("polymer_property_access_logging_debug"))return!0;if(!_.c("polymer_enable_property_access_logging"))return!1;E2f||(E2f=Date.now());return(YP(L)+E2f)%100<_.lQ("polymer_property_access_logging_percent")};
PKt=function(L,Z){return bA(Z)&&L.hostElement.loggingStatus?new Proxy(L,{get:function(N,S,u){if(N.hostElement.loggingStatus.bypassProxyController)return N[S];N.hostElement.loggingStatus.isExternalGet=!0;var T=N[S];N.hostElement.loggingStatus.isExternalGet=!1;if(T instanceof Function)return function(){var W=_.CG.apply(0,arguments);try{return N.hostElement.loggingStatus.currentExternalCall=S,gD(Z,S,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),T.apply(this===u?N:this,W)}finally{N.hostElement.loggingStatus.currentExternalCall=
void 0}};
gD(Z,S,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return T},
set:function(N,S,u){if(N.hostElement.loggingStatus.bypassProxyController)return N[S]=u,!0;N.hostElement.loggingStatus.isRendererStamper?gD(Z,S,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):N.hostElement.loggingStatus.isDeclarativeExternal||gD(Z,S,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{N.hostElement.loggingStatus.currentExternalSet=S,N[S]=u}finally{N.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):L};
pN1=function(L,Z){L&&L.loggingStatus&&!L.loggingStatus.isDeclarativeExternal&&!L.loggingStatus.isExternalGet&&L.loggingStatus.currentExternalSet!==Z&&gD(L.tagName.toLowerCase(),Z,"PROPERTY_ACCESS_GET_INTERNAL")};
GX=function(L,Z,N){L&&(N||L.loggingStatus&&!L.loggingStatus.isInitializing&&!L.loggingStatus.isDefiningPropertyAccessor&&L.loggingStatus.currentExternalSet!==Z)&&gD(L.tagName.toLowerCase(),Z,"PROPERTY_ACCESS_SET_INTERNAL")};
z4G=function(){return{_definePropertyAccessor:function(L,Z){var N=this,S=N.hostElement.loggingStatus;S&&(S.isDefiningPropertyAccessor=!0);var u=N[L];u!==void 0&&(N.__data?N._setPendingProperty(L,u):(N.__dataProto!=null||(N.__dataProto={}),N.__dataProto[L]=u));S&&(S.isDefiningPropertyAccessor=!1);Object.defineProperty(this,L,{get:function(){pN1(N.hostElement,L);return this.__data[L]},
set:function(T){Z||this._setPendingProperty(L,T,!0)&&this._invalidateProperties()}})},
created:function(){var L=this._setPendingProperty.bind(this);this._setPendingProperty=function(Z,N,S){GX(this.hostElement,Z);return L.apply(this,[Z,N,S])}}}};
mlL=function(L){jdH()&&_.y(F4.prototype)(L.prototype,"__templateBindingLoggingBehavior")};
Jt_=function(L,Z){if(Z.resolvedFactories.length!==L.resolvedFactories.length)return!0;Z=_.O(Z.resolvedFactories.entries());for(var N=Z.next();!N.done;N=Z.next()){var S=_.O(N.value);N=S.next().value;S=S.next().value;if(S.providerClass){if(S.providerClass!==L.resolvedFactories[N].providerClass)return!0}else if(S.providerValue){if(S.providerValue!==L.resolvedFactories[N].providerValue)return!0}else if(S.factory!==L.resolvedFactories[N].factory)return!0}return!1};
CKf=function(L,Z){L=_.O(L);for(var N=L.next();!N.done;N=L.next())if(N=N.value,N.constructor===Array)CKf(N,Z);else{var S=Z;S.has(N)||(N.inject&&S.add(N),N.behaviors&&CKf(N.behaviors,S))}};
$D=function(L,Z){var N=L[Z];L[Z]=function(){var S=_.CG.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(N)return N.apply(this,S)}};
AtA=function(){_.DU.Class=function(N,S){N=rtf(N,S);$D(N.prototype,"created");return N};
$D(lA.prototype,"_initializeProperties");$D(_.vh.prototype,"_initializeProperties");if(Qdh)$D(XNx,"created");else{var L=function(){$D(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))L();else{var Z=customElements.define;customElements.define=function(N,S,u){Z.call(customElements,N,S,u);N==="tp-yt-iron-list"&&(L(),customElements.define=Z)}}}};
BC0=function(L,Z){L.prototype.behaviors=L.prototype.behaviors||[];L.prototype.behaviors.unshift(HPB.InjectBehavior);L.prototype.provide=Z};
_.ch=function(L){return function(Z){if(!L.disableElementRegistration){L.noInjection||BC0(Z,L.providers);var N=Z.prototype;N.__templateHelpers||b7L(o_.prototype)(N,"__templateHelpers");N=L.is;xlA||(xlA=Date.now());(YP(N)+xlA)%100<_.lQ("polymer_log_prop_change_observer_percent")&&b7L(R_.prototype)(Z.prototype,"__propertyObserverObserver");Z.prototype.behaviors=Z.prototype.behaviors||[];Z.prototype.behaviors.unshift(_.q50.YtHostElementBehavior);mlL(Z);dls({is:L.is,notifyObserversOnUndefined:L.notifyObserversOnUndefined!==
!1,fastInit:L.fastInit,template:L.template,disableEnforceFastDefaultValuesCheck:!0})(Z)}}};
_.P=function(L){return _.ch({is:L.is,template:L.template,disableElementRegistration:L.disableElementRegistration,cssBuildOptOut:L.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
NAt=function(L,Z){if(LOf){L=new L;for(var N=_.O(Object.getOwnPropertyNames(L)),S=N.next();!S.done;S=N.next())S=S.value,Z[S]=L[S];for(N=Z;N&&N!==Object.prototype;N=Object.getPrototypeOf(N)){S=_.O(Object.getOwnPropertyNames(N));for(var u=S.next();!u.done;u=S.next())u=u.value,L.hasOwnProperty(u)||Object.defineProperty(L,u,ZWh(Z,u))}}else L.apply(Z)};
ZWh=function(L,Z){return{get:function(){var N=L[Z];return N instanceof Function?N.bind(L):N},
set:function(N){L[Z]=N}}};
iWh=function(L,Z){for(var N=L._noAccessors,S=_.O(Object.getOwnPropertyNames(L)),u=S.next();!u.done;u=S.next())if(u=u.value,!S0G.has(u))if(N)Z[u]=L[u];else{var T=Object.getOwnPropertyDescriptor(L,u);T&&(T.configurable=!0,Object.defineProperty(Z,u,T))}};
uA1=function(L,Z,N){return function(S){if(N){var u=N();S.model=u}if(L[Z])L[Z](S,S.detail)}};
nd=function(L){var Z=[];if(typeof L==="string")L.length>0&&Z.push.apply(Z,_.Pd(L.split(".")));else{L=_.O(L);for(var N=L.next();!N.done;N=L.next())N=N.value,typeof N==="string"?Z.push.apply(Z,_.Pd(N.split("."))):Z.push(N)}return Z};
TA0=function(L,Z){if(Z[Z.length-1]!=="*"&&Z[Z.length-1]!=="splices"){for(var N=0;N<Z.length;N++){if(!L)return;L=L[Z[N]]}return L}};
tBP=function(L,Z){if(L.length>Z.length)return!1;for(var N=0;N<L.length;N++)if(L[N]!==Z[N])return!1;return!0};
WOA=function(L,Z,N){if(Z.type==="compute"){var S=Z.getter.bind(N);var u=Z.args}else S=function(){return N[Z.method.methodName].apply(N,_.Pd(_.CG.apply(0,arguments)))},u=Z.method.args;
OW1(L,Z.propertyKey,S,u,Z.value)};
bWs=function(L,Z){if(Z.readOnly){var N=Object.getOwnPropertyDescriptor(L.model,Z.propertyKey);Object.defineProperty(L.model,Z.propertyKey,{get:N.get,set:function(){}});
L.model[VB_(Z.propertyKey)]=N.set}};
MBG=function(L,Z,N){if(N){var S=Z.propertyKey,u=Z.selector;Z=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Pd(Z.selectorArgs.map(function(T){return{type:"path",path:T}})));
OW1(L,S,function(T){var W=_.CG.apply(1,arguments);return u.apply(null,[N.getState()].concat(_.Pd(W)))},Z)}};
Gy1=function(L,Z,N){var S=_.uc(Z.propertyKey)+"-changed";gGP(L,function(u){var T={value:u.value,queueProperty:!0};u.path.split(".").length>1&&(T.path=u.path);N.dispatchEvent(new CustomEvent(S,{detail:T}))},[{type:"wildcard",
path:Z.propertyKey}])};
FO1=function(L,Z,N){gGP(L,function(){N[Z.method.methodName].apply(N,_.Pd(_.CG.apply(0,arguments)))},Z.method.args)};
VB_=function(L){return"_set"+(L.charAt(0).toUpperCase()+L.slice(1))};
$w_=function(){var L,Z=m8(function(N){L=N},!1);
return[L,Z]};
Rjf=function(L){L=L.trim().replace(Dwf,",").replace(l$f,"$1");var Z=L[0];Z==="-"&&(Z=L[1]);if(Z>="0"&&Z<="9")return{type:"literal",value:Number(L)};if(Z==="'"||Z==='"')return{type:"literal",value:L.slice(1,-1)};if(Z=L.match(vGf)){Z=Z[1];var N=oGG[Z];if(N)return{type:N,path:L.slice(0,-(Z.length+1))}}return{type:"path",path:L}};
f$P=function(L){var Z=L.match(cPB);if(Z)return L={methodName:Z[1],args:nGh},Z[2].trim()&&(Z=Z[2].replace(KOs,"&comma;").split(","),L.args=Z.map(Rjf)),L};
kyf=function(L,Z,N,S){S=S===void 0?!1:S;Z=_.uc(Z);var u=a6;u&&(N=u(N,Z,"attribute",L));Kd(L,N,Z,S)};
Kd=function(L,Z,N,S){Z=yP_(Z,S===void 0?!1:S);Z===void 0?L.removeAttribute(N):L.setAttribute(N,Z)};
yP_=function(L,Z){switch(typeof L){case "object":case "function":if(L instanceof Date)return L.toString();if(L){if((Z===void 0?0:Z)&&!_.c("polymer_reflect_objects_as_boolean_killswitch"))return L?"":void 0;Z=window.trustedTypes?window.trustedTypes.isHTML(L)||window.trustedTypes.isScript(L)||window.trustedTypes.isScriptURL(L):void 0;if(Z)return L;try{return JSON.stringify(L)}catch(N){_.Q7(Error("Dg`"+L))}}break;case "boolean":return L?"":void 0;default:return L!==null&&L!==void 0?L.toString():void 0}};
wit=function(L){if(L===void 0)throw Error("Eg");return L};
dw1=function(L,Z,N,S){var u=UwB(S);if(u.length){S=N;var T="property";Y0f.test(N)?T="attribute":N[N.length-1]==="$"&&(N=N.slice(0,-1),T="attribute");var W=ejG(u);W&&T==="attribute"&&(N==="class"&&L.hasAttribute("class")&&(W+=" "+L.getAttribute(N)),Kd(L,W,N));T==="attribute"&&S==="disable-upgrade$"&&L.setAttribute("disable-upgrade","");L.localName==="input"&&S==="value"&&L.setAttribute("value","");L.removeAttribute(S);T==="property"&&(N=_.To(N));Z=wit(Z);I$G(Z,T,N,u);return!0}return N.slice(0,3)===
"on-"?(L.removeAttribute(N),(T=Z).events!=null||(T.events=[]),Z.events.push({name:N.slice(3),value:S}),!0):N==="id"?(Z.id=S,!0):!1};
UwB=function(L){for(var Z=[],N=0,S;(S=a$L.exec(L))!==null;){S.index>N&&Z.push({type:"literal",value:L.slice(N,S.index)});var u=S[1][0];N=!!S[2];S=S[3].trim();if(u==="{")throw Error("Fg");(u=f$P(S))?Z.push({type:"method",negate:N,signature:u}):Z.push({type:"path",negate:N,path:S});N=a$L.lastIndex}N&&N<L.length&&(L=L.substring(N))&&Z.push({type:"literal",value:L});return Z};
ejG=function(L){for(var Z="",N=0;N<L.length;N++){var S=L[N];S.type==="literal"&&(Z+=S.value)}return Z};
I$G=function(L,Z,N,S){L.bindings!=null||(L.bindings=[]);L.bindings.push({kind:Z,target:N,parts:S})};
PuF=function(L,Z,N){var S=!1;if(L.localName==="template"){S=N;var u=Z.stripWhitespace;u=hj1(L,u===void 0?!1:u);var T=L.content.ownerDocument.createDocumentFragment();u.content=T;T.appendChild(L.content);S&&(S.templateInfo=u);S=!0}else L.localName==="slot"&&(Z.hasInsertionPoint=!0);if(L.firstChild&&(u=N,L.localName!=="script"&&L.localName!=="style")){T=0;for(var W=L.firstChild;W;){var V=W;if(V.localName==="template"){var M=V.getAttribute("is");if((W=M==="dom-if")||M==="dom-repeat"){V.removeAttribute("is");
M=V.ownerDocument.createElement("ps-"+M);V.parentNode.replaceChild(M,V);M.appendChild(V);var G=Array.from(V.attributes);G=_.O(G);for(var D=G.next();!D.done;D=G.next())D=D.value,W?sax.has(D.name)&&Kd(M,D.value,D.name):ja0.has(D.name)?Kd(M,D.value,D.name):EGF.has(D.name),V.removeAttribute(D.name);W=M}else W=V}if(W.nodeType===Node.TEXT_NODE){V=void 0;M=L;for(G=W;((V=G.nextSibling)==null?void 0:V.nodeType)===Node.TEXT_NODE;)D=void 0,(D=G).textContent!=null||(D.textContent=""),G.nextSibling.textContent&&
(G.textContent+=G.nextSibling.textContent),M.removeChild(G.nextSibling);if(Z.stripWhitespace&&W.textContent&&!W.textContent.trim()){L.removeChild(W);W=W.nextSibling;continue}}PuF(W,Z,{parentIndex:T,parentInfo:u});W.parentNode&&T++;W=W.nextSibling}}var l;if((l=L.hasAttributes)==null?0:l.call(L)){l=N=wit(N);u=!1;T=Array.from(L.attributes);T=_.O(T);for(V=T.next();!V.done;V=T.next())V=V.value,u=dw1(L,l,V.name,V.value)||u;S=u||S}L.nodeType===Node.TEXT_NODE&&(l=UwB(L.textContent),l.length&&(L.textContent=
ejG(l)||" ",N=wit(N),I$G(N,"text","textContent",l),S=!0));N&&S&&(N.infoIndex=Z.nodeInfoList.push(N)-1)};
hj1=function(L,Z){Z={nodeInfoList:[],stripWhitespace:(Z===void 0?!1:Z)||L.hasAttribute("strip-whitespace")};PuF(L.content,Z);return Z};
pis=function(L){Object.assign(L,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
mwP=function(L,Z,N){Z.signalCache!=null||(Z.signalCache={});var S=Z.signalCache[N];if(!S){var u=N.split(".");S=!zj0(L,u[0]);if(u.length>1&&S){var T=L.getPathMutationSignal(u);S=function(){var W=rJ(L.owner,function(){return L.getWithPath([u[0]])}),V,M=(V=T())==null?void 0:V.value;
return{rootWasDefined:W!==void 0,value:M}}}else S=function(){var W=L.getWithPath(u);
return{rootWasDefined:W!==void 0,value:W}};
Z.signalCache[N]=S}return S()};
CuG=function(L,Z,N,S,u){Z=Z.parts.map(function(W,V){if(W.type==="literal"){N.partWasDefined!=null||(N.partWasDefined=[]);var M;(M=N.partWasDefined)[V]||(M[V]=W.value!==void 0);return W.value}var G;if(W.type==="method"){var D,l=(D=(G=N.partWasDefined)==null?void 0:G[V])!=null?D:!1;l||(l=W.signature.args.every(function(K){return K.type==="literal"}));
var v=!1,R=!0;G=W.signature.args.map(function(K){if(K.type==="literal")return K.value;if(K.type!=="path")throw Error("Gg`"+K.type);var U=mwP(L,N,K.path);K=U.value;U=U.rootWasDefined;v||(v=U);R&&(R=U);return K});
l||(l=u===1?R:v);N.partWasDefined!=null||(N.partWasDefined={});N.partWasDefined[V]=l;if(!l)return;G=(V=mwP(L,N,W.signature.methodName).value)&&typeof V==="function"?V.apply(S,G):void 0}else D=mwP(L,N,W.path),G=D.value,N.partWasDefined!=null||(N.partWasDefined={}),(l=N.partWasDefined)[V]||(l[V]=G!==void 0||D.rootWasDefined);W.negate&&(G=!G);return G});
if(Z.length===1){var T;return((T=N.partWasDefined)==null?0:T[0])?Z[0]:JPA}return Z.join("")};
rPw=function(L){return typeof L==="object"&&!!L&&"notifyPath"in L&&"canNotifyPath"in L};
QaH=function(L){return typeof L==="object"&&!!L&&"notifyPath"in L};
Xix=function(L){return"polymerController"in L};
APt=function(L,Z){Z=""+nd(Z)[0];if(rPw(L))return L.canNotifyPath(Z);if(Xix(L)&&rPw(L.polymerController))return L.polymerController.canNotifyPath(Z);if(QaH(L)){var N;return!((N=L.properties)==null||!N[Z])}if(Xix(L)&&QaH(L.polymerController)){var S;return!((S=L.polymerController.properties)==null||!S[Z])}return!1};
HW1=function(L,Z,N){rPw(L)||QaH(L)?L.notifyPath(Z,N):Xix(L)&&(rPw(L.polymerController)||QaH(L.polymerController))&&L.polymerController.notifyPath(Z,N)};
xwt=function(L,Z,N){if(N!==JPA){L.kind==="attribute"||L.target!=="textContent"&&(L.target!=="value"||Z.localName!=="input"&&Z.localName!=="textarea")||(N=N===void 0?"":N);var S,u=(S=BAf.Polymer)==null?void 0:S.sanitizeDOMValue;u&&(N=u(N,L.target,L.kind,Z));if(L.kind==="attribute"){L=L.target;if(L==="class"||L==="name"||L==="slot")Z=(0,_.qJ)(Z);Kd(Z,N,L)}else if(L=L.target,N!==Z[L]||typeof N==="object")Z.loggingStatus&&(Z.loggingStatus.isDeclarativeExternal=!0,gD(Z.localName,L,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
Z[L]=N,Z.loggingStatus&&(Z.loggingStatus.isDeclarativeExternal=!1)}};
q0B=function(L,Z,N,S){var u=Z.parts[0];if(Z.parts.length!==1||u.type!=="path"||!APt(N,Z.target))return!1;var T=_.O(u.path.split(".")),W=T.next().value,V=uI(T);if(zj0(L,W))return!1;S.signalCache!=null||(S.signalCache={});T=S.signalCache[u.path];var M;T=(M=T)==null?void 0:M().value;if((T==null?void 0:T.path)!==void 0){S=nd(T.path);var G=nd(u.path);S=[Z.target].concat(_.Pd(S.slice(G.length-1)));HW1(N,S,u.negate?!T.value:T.value);return!0}var D=fd(L,W);var l=D.getChangeRecordSignal(V),v=!1;T=function(){if(!v){var K=
rJ(L.owner,function(){return D.getWithPath([])});
v||(v=K!==void 0)}return{value:l(),rootWasDefined:v}};
S.signalCache[u.path]=T;S.partWasDefined!=null||(S.partWasDefined={});T=T();(G=S.partWasDefined)[0]||(G[0]=T.rootWasDefined);var R=rJ(L.owner,function(){return D.getWithPath(V)});
S.partWasDefined[0]&&rJ(L.owner,function(){return void xwt(Z,N,u.negate?!R:R)});
return!0};
LEP=function(L,Z,N,S,u,T){if(!q0B(L,Z,N,S)){var W=CuG(L,Z,S,u,T);rJ(L.owner,function(){return void xwt(Z,N,W)})}};
Z$x=function(L,Z,N,S,u,T){N=_.O(N);for(var W=N.next(),V={};!W.done;V={infoIndex:void 0},W=N.next()){W=W.value;var M=W.bindings;V.infoIndex=W.infoIndex;W=W.parentInfo;if(M){M=_.O(M);for(var G=M.next(),D={};!G.done;D={b$jscomp$256:void 0,bindingCtx$jscomp$4:void 0},G=M.next()){D.b$jscomp$256=G.value;if(V.infoIndex===void 0)throw Error("Hg");D.bindingCtx$jscomp$4={};L.effect(function(l,v){return function(){u&&!u()||LEP(L,l.b$jscomp$256,Z[v.infoIndex],l.bindingCtx$jscomp$4,S,T)}}(D,V))}}W&&Z$x(L,Z,[W],
S,u,T)}};
NUf=function(L,Z){L=(Z.parentInfo?NUf(L,Z.parentInfo):L).firstChild;for(var N=0;L;L=L.nextSibling)if(Z.parentIndex===N++)return L;throw Error("Ig");};
i$h=function(L,Z,N,S){L=document.importNode(L.content,!0);L.__noInsertionPoint=!(S==null?0:S.hasInsertionPoint);for(var u=Array(Z.length),T={},W=0;W<Z.length;W++){var V=Z[W],M=NUf(L,V);u[W]=M;V.id&&(T[V.id]=M);if(V.templateInfo){var G=M.parentElement;G&&(G.templateInfo=V.templateInfo,G.parentSignalProxy=N,G.eventListenerHost=S.eventListenerHost,G.stampingEnabled=S.enabledSignal)}G=void 0;if((G=V.events)==null?0:G.length)for(G=0;G<V.events.length;G++){var D=V.events[G];SEG(S.eventListenerHost,M,D.name,
D.value,S.getModel)}}Z$x(N,u,Z,S.thisCtx,S.enabledSignal,S.methodInvocationRequirement);return{root:L,nodes:u,nodesById:T}};
TUf=function(L,Z){L=L();var N;(N=ush.ShadyCSS)==null||N.prepareTemplate(L,Z);Z=hj1(L);return{template:L,nodeInfoList:Z.nodeInfoList,hasInsertionPoint:Z.hasInsertionPoint}};
WEL=function(){t4A=!1;for(var L=kD.length,Z=0;Z<L;Z++){var N=kD[Z];if(N)try{N()}catch(S){Promise.resolve().then(function(){throw S;})}}kD.splice(0,L);
O$L+=L};
g7H=function(L){t4A||(t4A=!0,V4L.textContent=(b$F++).toString());kD.push(L);return M4h++};
_.Uk=function(L,Z,N){yr++;L=Z?new GNw(yr,L,Z,N):new FEs(yr,L);wD.set(yr,L);return yr};
$tA=function(L){(L=wD.get(L))&&L.cancel()};
lOA=function(L,Z){L=DtF.get(L);return L?(Z=L.get(Z))?Z:null:null};
_.YD=function(L,Z,N,S){var u=lOA(L,Z);if(!u){u=new v7f;var T=DtF.get(L);T||(T=new Map,DtF.set(L,T));T.set(Z,u)}L=N.bind(L);u.run(L,S,void 0)};
_.o7w=function(L,Z){var N;(N=lOA(L,Z))==null||N.cancel()};
Rif=function(L){var Z;(Z=lOA(L,"doRender"))==null||Z.flush()};
eA=function(L){var Z;return(Z=L.hostElement)!=null?Z:L};
c8h=function(L){var Z=L.indexOf(".");return Z===-1?L:L.slice(0,Z)};
n7h=function(L,Z,N,S,u,T){T=(u=(S=T?c8h(Z):Z)?Z:null)?L.get(u):L.__data[Z];u&&T===void 0&&(T=N[Z]);_.QT(L.hostElement,Awf(S)+"-changed",{value:T,queueProperty:!0,path:u!=null?u:void 0},{bubbles:!1,composed:!1})};
KEw=function(L,Z){L.__isReflecting=!0;kyf(L.hostElement,Z,L.__data[Z]);L.__isReflecting=!1};
fOt=function(L){if(L._onIronRequestResizeNotifications){var Z=L._onIronRequestResizeNotifications.bind(L);L._onIronRequestResizeNotifications=function(N){_.jD(N)!==L.hostElement&&Z(N)}}L._ariaActiveAttributeChanged&&(L._ariaActiveAttributeChanged=L._ariaActiveAttributeChanged.bind(L.hostElement));
L._activeChanged&&(L._activeChanged=function(N){L.toggles?Kd(L.hostElement,N?"true":"false",L.ariaActiveAttribute):L.hostElement.removeAttribute(L.ariaActiveAttribute);L._changedButtonState()});
L._asyncClick&&(L._asyncClick=function(){_.Uk(function(){L.hostElement.click()},1)});
!L.keyEventTarget||L.keyEventTarget instanceof EventTarget||(L.keyEventTarget=eA(L.keyEventTarget));L._disabledChanged&&(L._disabledChanged=L._disabledChanged.bind(L.hostElement));L._observeItems&&(L._observeItems=function(N){var S=eA(N);return _.g0(S).observeNodes(function(u){L._updateItems();L._updateSelected();_.QT(S,"iron-items-changed",u,{bubbles:!1,cancelable:!1})})});
L._updateItems&&L._updateItems===_.I_._updateItems&&(L._updateItems=function(){var N=_.g0(L.hostElement).queryDistributedElements(L.selectable||"*");N=Array.prototype.filter.call(N,L._bindFilterItem);L._setItems(N)});
L._computeKeyboardClass&&(L._computeKeyboardClass=function(N){_.Az(L.hostElement,"keyboard-focus",N)});
L.ensureRipple&&(L.ensureRipple=function(N){if(L.hasRipple&&!L.hasRipple()){if(!L._createRipple)return;L._ripple=L._createRipple();L._ripple.noink=L.noink;var S=L._rippleContainer||L.hostElement;S&&_.QJ(S).appendChild(L._ripple)}var u;if(N&&((u=L._ripple)==null?0:u.uiDownAction)){S=_.QJ(L._rippleContainer||L.hostElement);var T;u=(T=N.composedPath())==null?void 0:T[0];S.contains(u)&&L._ripple.uiDownAction(N)}});
L._updateMultiselectable&&(L._updateMultiselectable=function(N){N?L.hostElement.setAttribute("aria-multiselectable","true"):L.hostElement.removeAttribute("aria-multiselectable")})};
kN_=function(L,Z,N){N=_.O(N);for(var S=N.next();!S.done;S=N.next())NAt(S.value.constructor,L);NAt(Z.constructor,L)};
wef=function(L,Z){L=_.O(L);for(var N=L.next();!N.done;N=L.next())if(N=N.value,N.type==="signal"){var S=N.propertyKey;if(Z.hasOwnProperty(S)&&Z[S]!=null&&N.attributeType===Object){a:{S=Z[S].constructor;for(var u=_.O(y8G),T=u.next();!T.done;T=u.next())if(T=T.value,S===T){S=T;break a}S=Object}N.attributeType=S}}};
UtA=function(){};
YE_=function(L){var Z;return(Z=L.hostElement)!=null?Z:L};
ei1=function(){throw Error("Mg");};
IOG=function(L,Z){L.constructor.prototype.useSignals=!0;var N=new L.constructor;kN_(N,L,Z.behaviors);wef(Z.reactiveSchemas,N);N={};for(var S=_.O(Z.reactiveSchemas),u=S.next();!u.done;u=S.next())u=u.value,u.type==="signal"&&(N[u.propertyKey]=u.attributeType);var T={copyPropertiesToProto:ei1,didRegister:!1,typesForSignals:N},W=["disable-upgrade"].concat(_.Pd(Z.observedAttributes)),V=function(M){dD.call(this,L,Z,T,M)};
_.f(V,dD);_.gd.Object.defineProperties(V,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return W}}});
T.copyPropertiesToProto=function(){for(var M=0;M<Z.behaviors.length;M++)iWh(Z.behaviors[M],V.prototype);iWh(L,V.prototype)};
Z.legacyOptimizations||T.copyPropertiesToProto();V.prototype.is=L.is;return V};
dt0=function(L,Z){if(Object.getPrototypeOf(Z.prototype).constructor!==_.e)throw Error("Ng");Z.prototype.is=L.is;return IOG(Z.prototype,L)};
aO0=function(L){return L.type==="compute"||L.type==="computeWithMethod"};
hiP=function(L){for(var Z=L.reactiveSchemas.filter(aO0),N=new Map,S=new Map,u=new Map,T=_.O(Z),W=T.next();!W.done;W=T.next())W=W.value,N.set(W.propertyKey,W),S.set(W.propertyKey,[]),u.set(W.propertyKey,0);T=0;Z=_.O(Z);for(W=Z.next();!W.done;W=Z.next()){W=W.value;for(var V=_.O(W.type==="computeWithMethod"?W.method.args:W.args),M=V.next();!M.done;M=V.next())M=M.value,M.type!=="literal"&&(M=M.path.split(".")[0],S.has(M)&&(S.get(M).push(W.propertyKey),u.set(W.propertyKey,u.get(W.propertyKey)+1),T++))}W=
[].concat(_.Pd(S.keys())).filter(function(G){return u.get(G)===0});
for(Z=[];W.length;)for(V=W.shift(),Z.push(N.get(V)),V=_.O(S.get(V)),M=V.next();!M.done;M=V.next())M=M.value,u.set(M,u.get(M)-1),T--,u.get(M)===0&&W.push(M);N=L.reactiveSchemas.filter(function(G){return!aO0(G)});
L.reactiveSchemas=[].concat(_.Pd(N),_.Pd(Z))};
jpx=function(L,Z){if(Z.properties)for(var N=_.O(Object.entries(Z.properties)),S=N.next();!S.done;S=N.next()){var u=_.O(S.value);S=u.next().value;u=u.next().value;L.properties[S]=typeof u==="function"?{type:u}:u}Z.observers&&L.observers.push.apply(L.observers,_.Pd(Z.observers));Z.disabledPolySiReactions&&L.disabledPolySiReactions.push.apply(L.disabledPolySiReactions,_.Pd(Z.disabledPolySiReactions))};
E7F=function(L,Z){for(var N=Z.length-1;N>=0;N--){var S=Z[N];Array.isArray(S)?E7F(L,S):L.indexOf(S)<0&&L.unshift(S)}};
PVG=function(L,Z){L.reactiveSchemas=L.reactiveSchemas.filter(function(N){return N.type==="observe"&&Z.includes(N.method.methodName)||aO0(N)&&Z.includes(N.propertyKey)?!1:!0})};
ziF=function(L,Z){var N=Z.prototype,S,u,T={is:L.is,reactiveSchemas:[],observedAttributes:[],behaviors:[HPB.InjectBehavior,o_.prototype],disableElementRegistration:L.disableElementRegistration,provide:(S=L.providers)!=null?S:[],reactivityMode:L.reactivityMode,signalProperties:(u=N.signalProperties)!=null?u:[]};"template"in Z?T.templateGetter=function(){return Z.template}:L.getTemplate&&(T.templateGetter=L.getTemplate);
N.behaviors&&E7F(T.behaviors,N.behaviors);pef(T,Z);return T};
pef=function(L,Z){for(var N=Z.prototype,S={properties:{},observers:[],disabledPolySiReactions:[]},u=_.O(L.behaviors),T=u.next();!T.done;T=u.next())jpx(S,T.value);jpx(S,N);if(L.signalProperties)for(N=_.O(L.signalProperties),u=N.next();!u.done;u=N.next())delete S.properties[u.value];N=_.O(Object.entries(S.properties));for(u=N.next();!u.done;u=N.next()){T=_.O(u.value);u=T.next().value;T=T.next().value;var W=void 0;if((W=L.signalProperties)==null||!W.includes(u)){W=void 0;var V=L,M=T.type;if(!M)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{M=Reflect.getMetadata("design:type",Z,u);for(var G=_.O(mtH),D=G.next();!D.done;D=G.next())if(D=D.value,M===D){M=D;break a}M=Object}else M=String;T.computed||T.selector||(V.reactiveSchemas.push({type:"signal",propertyKey:u,value:T.value,attributeType:M,readOnly:T.readOnly}),V.observedAttributes.push(_.uc(u)));T.reflectToAttribute&&V.reactiveSchemas.push({type:"reflect",propertyKey:u});if(T.computed){M=f$P(T.computed);if(!M)throw Error("Og");V.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:u,method:M,value:T.value})}T.observer&&V.reactiveSchemas.push({type:"observe",method:{methodName:T.observer,args:[{type:"path",path:u}]}});T.notify&&V.reactiveSchemas.push({type:"notify",propertyKey:u});T.selector&&V.reactiveSchemas.push({type:"redux",propertyKey:u,selector:T.selector,selectorArgs:(W=T.selectorArgs)!=null?W:[]})}}J8_&&hiP(L);Z=_.O(S.observers);for(u=Z.next();!u.done;u=Z.next())N=L,u=u.value,(T=f$P(u))?N.reactiveSchemas.push({type:"observe",method:T}):console.log('Warning: unable to parse observe declaration: "'+
u+'"');PVG(L,S.disabledPolySiReactions)};
CVs=function(L,Z){for(var N=0;N<Z.length;N++){var S=Z[N],u=void 0;(u=S).showHideApi!=null||(u.showHideApi={});u=void 0;!!L!==!((u=S.showHideApi)==null||!u.hideTemplateChildren)&&(S.nodeType===Node.TEXT_NODE?L?(S.showHideApi.polymerTextContent=S.textContent,S.textContent=""):(u=void 0,S.textContent=(u=S.showHideApi.polymerTextContent)!=null?u:null):S instanceof Element&&S.localName==="slot"?L?(S.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.qJ)((0,_.qJ)(S).parentNode).replaceChild(S.showHideApi.polymerReplaced,
S)):(u=S.showHideApi.polymerReplaced)&&(0,_.qJ)((0,_.qJ)(u).parentNode).replaceChild(S,u):S instanceof HTMLElement&&S.style&&(L?(S.showHideApi.polymerDisplay=S.style.display,S.style.display="none"):S.style.display=S.showHideApi.polymerDisplay));S.showHideApi.hideTemplateChildren=L;S.showHideChildren&&S.showHideChildren(L)}};
Qpf=function(){if(!r81){var L=document.createElement("style");L.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(L);r81=!0}};
a_=function(){return _.c("disable_hidden_dom_if_using_stamper")};
Xe_=function(L,Z){var N=_.hJ().getState();return Z?L.apply(null,[N].concat(_.Pd(Z))):L(N)};
BUP=function(){if(A8f)return A8f;var L=_.O(_.nh(0,void 0,"MB1Hb")),Z=L.next().value;L.next();var N=L.next().value;_.hJ().subscribe(function(){H$w(N)});
return A8f=Z};
H$w=function(L){xtA||(xtA=!0,Promise.resolve().then(function(){L(function(Z){return Z+1});
xtA=!1}))};
_.hJ=function(){return qEH.getAppStore()};
LHP=function(L,Z){return qEH.getSelectFn()(L,Z)};
_.sk=function(L){qEH.getDispatchFn()(L)};
ZzL=function(L,Z){var N={},S;for(S in L)N[S]=Z(L[S],S);return N};
_.jA=function(L,Z){return function(){var N;return(N=_.JW(L))!=null?N:Z}};
_.Ek=function(L,Z){var N=Object.assign({},L),S;for(S in Z)Z.hasOwnProperty(S)&&(N[S]=_.jA(L[S],Z[S]));return N};
NGG=function(L,Z,N){L instanceof Element&&(N.debugName||(N.debugName="<"+L.tagName.toLowerCase()+(L.tagName.includes("-")?">":"."+L.className+">")),_.c("ytwiz_enable_debug_component_props")&&(L.debugProps||(L.debugProps=ZzL(Z,function(S){return function(){return S()}}))))};
izh=function(L){var Z;return Shf.value.traceAllComponents||((Z=pq.stack[pq.stack.length-1])==null?void 0:Z.name)!=="ytComponent"?yKF("ytComponent",{},L):L()};
_.p=function(L,Z){var N=function(S){return izh(function(u){var T=uaf={};var W;if(((W=N)==null?0:W.idomCompat)&&S.renderedFromIdom){var V;W=typeof N.idomCompat==="object"?(V=N)==null?void 0:V.idomCompat.callbacks:{};W=_.O(TGw(S,W,N.debugName));V=W.next().value;W.next();W=W.next().value;var M=taF(L,V);T.privateValue=M;uaf=void 0;NGG(M,V,N);T={debugName:N.debugName};u&&T&&Object.assign(u.attributes,T);u=$7L(M);u=Array.isArray(u)?u[0]:u;u[fn]||(u[fn]={});u[fn].updateSignalsFromIdomProps=W;Ozx(V,M);return M}W=
ZzL(S,WHh);V=taF(L,W);T.privateValue=V;uaf=void 0;NGG(V,W,N);T={debugName:N.debugName};u&&T&&Object.assign(u.attributes,T);Ozx(W,V);return V})};
N.debugName=Z===void 0?"":Z;return N};
taF=function(L,Z){L=L(Z);return UM(L)};
VaH=function(L,Z){L[Z]||(L=new _.sr("IDOM interop setter undefined. Key:",Z),_.CA(L))};
WHh=function(L,Z){return Z==="children"||Z==="ref"||typeof L==="function"||L===void 0?L:function(){return _.JW(L)}};
TGw=function(L,Z,N){var S={},u={},T={},W={},V;for(V in L){W={key$jscomp$948:W.key$jscomp$948};W.key$jscomp$948=V;var M=L[W.key$jscomp$948];if(W.key$jscomp$948==="children"||W.key$jscomp$948==="ref")S[W.key$jscomp$948]=M;else if(typeof M==="function")W.key$jscomp$948 in Z||M.length>0?(T[W.key$jscomp$948]=M,S[W.key$jscomp$948]=function(D){return function(){return T[D.key$jscomp$948].apply(T,_.Pd(_.CG.apply(0,arguments)))}}(W)):S[W.key$jscomp$948]=M;
else if(!(L[W.key$jscomp$948]===void 0&&W.key$jscomp$948 in Z)){var G=_.O(_.nh(L[W.key$jscomp$948],{debugName:W.key$jscomp$948+":cwis:"+N},"rvrjQe"));M=G.next().value;G=G.next().value;S[W.key$jscomp$948]=M;u[W.key$jscomp$948]=G}}return[S,u,function(D){var l={},v;for(v in D)l={key$jscomp$949:l.key$jscomp$949,val$jscomp$122:void 0},l.key$jscomp$949=v,l.val$jscomp$122=D[l.key$jscomp$949],l.key$jscomp$949!=="children"&&l.key$jscomp$949!=="ref"&&(typeof l.val$jscomp$122==="function"?l.key$jscomp$949 in
Z?T[l.key$jscomp$949]=l.val$jscomp$122:l.val$jscomp$122.length>0&&(T[l.key$jscomp$949]=l.val$jscomp$122,_.Q7(new _.sr("Callback detected that was not set in the idomCompat callbacks map. Key:",l.key$jscomp$949))):l.key$jscomp$949 in Z&&l.val$jscomp$122===void 0||(VaH(u,l.key$jscomp$949),UK(function(R){return function(){u[R.key$jscomp$949](R.val$jscomp$122)}}(l))))}]};
g4_=function(L,Z,N){var S=qWf(L.prototype,bz1,L.prototype.behaviors);S.prototype.is=Z;S.prototype.localName=Z;N&&MaG(S,N);return function(u){u&&(S.prototype.hostElement=u);var T=new S;T.root=T;T.hostElement=u;return T}};
MaG=function(L,Z){var N;Object.defineProperty(L.prototype,"_template",{get:function(){N===void 0&&(N=Z());return N},
set:function(S){N=S},
configurable:!0,enumerable:!0})};
ltB=function(L,Z,N,S){function u(){if(!R){for(var K=new Set,U=_.O(D),d=U.next();!d.done;d=U.next()){d=d.value;for(var h=_.O(Object.getOwnPropertyNames(d)),E=h.next();!E.done;E=h.next()){E=E.value;var A=void 0,J=(A=Object.getOwnPropertyDescriptor(d,E))==null?void 0:A.value;J&&J instanceof Function&&!Ph(E)&&(!V[E]||_.c("polymer_forward_method_killswitch"))&&K.add(E)}}U=_.O(Object.entries(Object.getOwnPropertyDescriptors(L.prototype)));for(d=U.next();!d.done;d=U.next())h=_.O(d.value),d=h.next().value,
h=h.next().value,h.value instanceof Function&&!Ph(d)&&K.add(d);R=K}return R}
GU0(L,Z,S==null?void 0:S.providers);LQt(L.prototype,L,!0);var T=g4_(L,Z,N),W,V=(W=L.prototype.properties)!=null?W:{},M,G,D=(G=(M=L.prototype.behaviors)==null?void 0:M.flat(Infinity))!=null?G:[];N=_.O(D);for(W=N.next();!W.done;W=N.next())V=Object.assign({},W.value.properties,V);var l=[].concat(_.Pd(FHG),_.Pd(Object.keys(V).map(function(K){return _.uc(K)}))),v=!1,R;
return{ctor:function(K,U){var d=T(K),h,E;K=[].concat(_.Pd((h=S==null?void 0:S.allowedProps)!=null?h:[]),_.Pd((E=S==null?void 0:S.allowedPropsFromBehaviors)!=null?E:[]));d.allowedProps=K.length>0?K:void 0;h={};E=_.O(l);for(K=E.next();!K.done;K=E.next())K=K.value,h[K]=_.To(K);d.__dataAttributes=h;var A=d.ready.bind(d);d.ready=function(){U.beforeReady();A();if(bA(Z)&&!v){var J=d.__templateInfo;if(J==null?0:J.hostProps){J=_.O(Object.keys(J.hostProps));for(var C=J.next();!C.done;C=J.next())gD(Z,C.value,
"PROPERTY_ACCESS_GET_INTERNAL")}v=!0}};
d._overrideLegacyUndefined=!0;return d},
props:V,observedAttributes:l,getInitialMethods:u,getPropsToForwardBeforeRegister:function(){for(var K=[],U=new Set,d=_.O(Object.keys(V)),h=d.next();!h.done;h=d.next())h=h.value,K.push([h,V[h].readOnly]),U.add(h);d=u();h=_.O(Object.keys(Object.getOwnPropertyDescriptors(L.prototype)));for(var E=h.next();!E.done;E=h.next())E=E.value,!$0B(E)||d.has(E)||U.has(E)||(K.push([E,!1]),U.add(E));U=_.O(D0P);for(d=U.next();!d.done;d=U.next())K.push([d.value,!0]);return K},
getPropsToForwardBeforeReady:function(K){for(var U=[],d=_.O(Object.entries(K)),h=d.next();!h.done;h=d.next()){var E=_.O(h.value);h=E.next().value;E=E.next().value;if($0B(h)&&!(E instanceof Function)&&(U.push([h,!1]),bA(Z))){var A=E=void 0;(A=(E=K)._createPropertyAccessor)==null||A.call(E,h)}}return U},
shouldForwardProp:$0B,shouldLog:bA}};
GU0=function(L,Z,N){BC0(L,N);L.prototype.behaviors.unshift(v4H);if(jdH()){if(bA(Z)){var S;(S=L.prototype).behaviors!=null||(S.behaviors=[]);L.prototype.behaviors.unshift(z4G())}mlL(L)}_.y(o_.prototype)(L.prototype,"__templateHelpers")};
Ph=function(L){return o4h.has(L)||L.startsWith("__compute__")};
$0B=function(L){return!Ph(L)&&!L.startsWith("_")&&!L.endsWith("_")};
fts=function(L,Z){function N(){var v=M();v=_.O(v);for(var R=v.next();!R.done;R=v.next()){var K=_.O(R.value);R=K.next().value;K=K.next().value;RL1(l.prototype,R,K)}S=!0}
var S=!1,u=L.ctor,T=L.getInitialMethods,W=L.observedAttributes,V=L.getPropsToForwardBeforeReady,M=L.getPropsToForwardBeforeRegister,G=L.shouldForwardProp,D=L.shouldLog,l=function(){var v=HTMLElement.call(this)||this;v.didForwardDynamicProps=!1;v.loggingStatus={};S||N();v.inst=u(v,{beforeReady:function(){v.didForwardDynamicProps||(v.forwardDynamicProps(),v.didForwardDynamicProps=!0)}});
v.controllerProxy=PKt(v.inst,Z);v.forwardMethods();return v};
_.f(l,HTMLElement);l.prototype.forwardMethods=function(){for(var v=this,R=_.O(this.inst.getExtraMethodsToForward()),K=R.next(),U={};!K.done;U={method$jscomp$65:void 0},K=R.next()){var d=_.O(K.value);K=d.next().value;d=d.next().value;U.method$jscomp$65=d;this[K]=function(h){return function(){return h.method$jscomp$65.call.apply(h.method$jscomp$65,[v.inst].concat(_.Pd(_.CG.apply(0,arguments))))}}(U)}R=_.O(T());
for(U=R.next();!U.done;U=R.next())U=U.value,G(U)&&cbs(this,U),D(Z)&&!Ph(U)&&n41(this.inst,U)};
l.prototype.forwardDynamicProps=function(){var v=V(this.inst);v=_.O(v);for(var R=v.next();!R.done;R=v.next()){var K=_.O(R.value);R=K.next().value;K=K.next().value;RL1(this,R,K);D(Z)&&!Ph(R)&&KHh(this.inst,R)}};
l.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
l.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
l.prototype.attributeChangedCallback=function(v,R,K){this.inst.attributeChangedCallbackWrapper(v,R,K)};
_.gd.Object.defineProperties(l.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return Z}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.gd.Object.defineProperties(l,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return W}}});
customElements.define(Z,l)};
RL1=function(L,Z,N){L.hasOwnProperty(Z)||Object.defineProperty(L,Z,{get:function(){var S,u=((S=L.is)!=null?S:L.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||gD(u,Z,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,S=this.polymerController[Z],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,S},
set:function(S){if(!N){var u,T=((u=L.is)!=null?u:L.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||gD(T,Z,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=Z,this.loggingStatus.bypassProxyController=!0,this.polymerController[Z]!==S&&(u={},this.polymerController.setProperties((u[Z]=S,u)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
cbs=function(L,Z,N){var S=L.polymerController;L[Z]=function(){var u=_.CG.apply(0,arguments);L.loggingStatus.currentExternalCall=Z;L.loggingStatus.bypassProxyController=!0;var T,W=((T=L.is)!=null?T:L.tagName).toLowerCase();gD(W,Z,"PROPERTY_ACCESS_CALL_EXTERNAL");var V;T=(V=N!=null?N:S[Z])==null?void 0:V.call.apply(V,[S].concat(_.Pd(u)));L.loggingStatus.currentExternalCall=void 0;L.loggingStatus.bypassProxyController=!1;return T}};
n41=function(L,Z){var N=L.hostElement,S=L[Z];L[Z]=function(){var u=_.CG.apply(0,arguments);if(N.loggingStatus.currentExternalCall!==Z){var T,W=((T=N.is)!=null?T:N.tagName).toLowerCase();gD(W,Z,"PROPERTY_ACCESS_CALL_INTERNAL")}return S==null?void 0:S.apply(L,u)}};
KHh=function(L,Z){var N=Object.getOwnPropertyDescriptor(L,Z);N&&!N.get&&Object.defineProperty(L,Z,{get:function(){pN1(L.hostElement,Z);return N.value},
set:function(S){GX(L.hostElement,Z);N.value=S}})};
kUx=function(L){return _.c("poly_si_dom_repeat_detached_fix_killswitch")||L.tagName!=="PS-DOM-REPEAT"?L.tagName==="DOM-REPEAT":!0};
wUA=function(L,Z){var N=ybG(L);L instanceof Element&&N.unshift(L);L=_.O(N.filter(kUx));for(var S=L.next();!S.done;S=L.next()){var u=void 0;S=_.O((u=S.value.__instances)!=null?u:[]);for(u=S.next();!u.done;u=S.next())if(u=u.value,u.root){u=Array.from(u.root.children);u=_.O(u);for(var T=u.next();!T.done;T=u.next())N.push.apply(N,_.Pd(wUA(T.value,Z)))}}return N.filter(function(W){return W.usePatchedLifecycles&&W.lifecycleIsConnected===Z})};
ybG=function(L){var Z=null;L instanceof Element?Z=Element.prototype.querySelectorAll:L instanceof DocumentFragment&&(Z=DocumentFragment.prototype.querySelectorAll);return Z?Array.from(Z.call(L,"*")):[]};
pd=function(L){_.cE(function(){for(var Z=_.O(wUA(L,!1)),N=Z.next();!N.done;N=Z.next()){N=N.value;N.lifecycleIsConnected=!0;try{var S=void 0,u=void 0,T=void 0,W=void 0;(S=(W=N.polymerController)!=null?W:N)==null||(T=(u=S).connectedCallback)==null||T.call(u)}catch(V){_.CA(V)}}})};
zX=function(L){_.cE(function(){for(var Z=_.O(wUA(L,!0)),N=Z.next();!N.done;N=Z.next()){N=N.value;N.lifecycleIsConnected=!1;try{var S=void 0,u=void 0,T=void 0,W=void 0;(S=(W=N.polymerController)!=null?W:N)==null||(T=(u=S).disconnectedCallback)==null||T.call(u)}catch(V){_.CA(V)}}})};
hLs=function(){if(!U0s){U0s=!0;var L=[Node];mL&&L.push(mL.Wrapper);var Z=Node.prototype.insertBefore,N=Node.prototype.removeChild;L=_.O(L);for(var S=L.next(),u={};!S.done;u={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},S=L.next())S=S.value,u.nativeInsertBefore=S.prototype.insertBefore,S.prototype.insertBefore=function(W){return function(V,M){if(V instanceof DocumentFragment){var G=Array.from(V.children);V=W.nativeInsertBefore.call(this,V,M);
if(this.isConnected&&W.nativeInsertBefore===Z)for(M=_.O(G),G=M.next();!G.done;G=M.next())pd(G.value);return V}G=V instanceof Element&&V.isConnected;M=W.nativeInsertBefore.call(this,V,M);G&&zX(V);this.isConnected&&pd(V);return M}}(u),u.nativeAppendChild=S.prototype.appendChild,S.prototype.appendChild=function(W){return function(V){if(V instanceof DocumentFragment){var M=Array.from(V.children);
V=W.nativeAppendChild.call(this,V);if(this.isConnected){M=_.O(M);for(var G=M.next();!G.done;G=M.next())pd(G.value)}return V}M=V instanceof Element&&V.isConnected;G=W.nativeAppendChild.call(this,V);M&&zX(V);this.isConnected&&pd(V);return G}}(u),u.nativeRemoveChild=S.prototype.removeChild,S.prototype.removeChild=function(W){return function(V){var M=V instanceof Element&&V.isConnected,G=W.nativeRemoveChild.call(this,V);
M&&N===W.nativeRemoveChild&&zX(V);return G}}(u),u.nativeReplaceChild=S.prototype.replaceChild,S.prototype.replaceChild=function(W){return function(V,M){if(V instanceof DocumentFragment){var G=Array.from(V.children);
V=W.nativeReplaceChild.call(this,V,M);if(this.isConnected)for(zX(M),M=_.O(G),G=M.next();!G.done;G=M.next())pd(G.value);return V}G=V instanceof Element&&V.isConnected;var D=this.isConnected,l=W.nativeReplaceChild.call(this,V,M);D&&zX(M);G&&zX(V);D&&pd(V);return l}}(u);
L=[Element];mL&&L.push(mL.Wrapper);L=_.O(L);S=L.next();for(u={};!S.done;u={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},S=L.next())S=S.value,S.prototype.before=YhL(S.prototype.before),S.prototype.after=YhL(S.prototype.after),u.nativeReplaceWith=S.prototype.replaceWith,S.prototype.replaceWith=function(W){return function(){var V=_.CG.apply(0,arguments),M=_.O(eLw(V)),G=M.next().value,
D=M.next().value;M=this.isConnected;W.nativeReplaceWith.apply(this,V);V=_.O(D);for(D=V.next();!D.done;D=V.next())zX(D.value);if(M)for(zX(this),G=_.O(G),M=G.next();!M.done;M=G.next())M=M.value,M instanceof Element&&pd(M)}}(u),u.nativeRemove=S.prototype.remove,S.prototype.remove=function(W){return function(){var V=this.isConnected;
W.nativeRemove.call(this);V&&zX(this)}}(u),u.nativeInsertAdjacentElement=S.prototype.insertAdjacentElement,S.prototype.insertAdjacentElement=function(W){return function(V,M){var G=M.isConnected;
V=W.nativeInsertAdjacentElement.call(this,V,M);G&&zX(M);V.isConnected&&pd(V);return V}}(u),u.nativeSetAttribute=S.prototype.setAttribute,S.prototype.setAttribute=function(W){return function(V,M){var G=ItL(this);
if(!G.usePatchedLifecycles)return W.nativeSetAttribute.call(this,V,M);var D=this.getAttribute(V);W.nativeSetAttribute.call(this,V,M);M=this.getAttribute(V);d0B(G,V,D,M)}}(u),u.nativeRemoveAttribute=S.prototype.removeAttribute,S.prototype.removeAttribute=function(W){return function(V){var M=ItL(this);
if(!M.usePatchedLifecycles)return W.nativeRemoveAttribute.call(this,V);var G=this.getAttribute(V);W.nativeRemoveAttribute.call(this,V);G!==null&&d0B(M,V,G,null)}}(u),u.nativeToggleAttribute=S.prototype.toggleAttribute,S.prototype.toggleAttribute=function(W){return function(V,M){var G=ItL(this);
if(!this.usePatchedLifecycles)return W.nativeToggleAttribute.call(this,V,M);var D=this.getAttribute(V),l=D!==null;M=W.nativeToggleAttribute.call(this,V,M);M!==l&&d0B(G,V,D,M?"":null);return M}}(u);
L=[Document,DocumentFragment,Element,ShadowRoot];mL&&L.push(mL.Wrapper);L=_.O(L);for(u=L.next();!u.done;u=L.next())u=u.value,u.prototype.prepend=YhL(u.prototype.prepend),u.prototype.append=YhL(u.prototype.append);(mL==null?void 0:mL.noPatch)===!0&&at1();document.readyState==="complete"?pd(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&pd(document.body)});
var T=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");T&&T.get&&T.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:T.enumerable,configurable:!0,get:T.get,set:function(W){W||zX(this);T.set.call(this,W);return W}})}};
YhL=function(L){return function(){var Z=_.CG.apply(0,arguments),N=_.O(eLw(Z)),S=N.next().value;N=N.next().value;L.apply(this,Z);Z=_.O(N);for(N=Z.next();!N.done;N=Z.next())zX(N.value);if(this.isConnected)for(S=_.O(S),Z=S.next();!Z.done;Z=S.next())Z=Z.value,Z instanceof Element&&pd(Z)}};
at1=function(){for(var L=_.O(srt),Z=L.next();!Z.done;Z=L.next()){Z=Z.value.prototype;for(var N=_.O(jrt),S=N.next();!S.done;S=N.next()){S=S.value;var u=Object.getOwnPropertyDescriptor(Z,S);u&&Object.defineProperty(Z,"__shady_native_"+S,u)}}};
d0B=function(L,Z,N,S){var u,T;if((u=L.polymerController)==null?0:(T=u.observedAttributes)==null?0:T.includes(Z))if(L=L.polymerController,L.attributeChangedCallbackWrapper)L.attributeChangedCallbackWrapper.call(L,Z,N,S);else{var W;(W=L.attributeChangedCallback)==null||W.call(L,Z,N,S)}};
eLw=function(L){var Z=[],N=[];L=_.O(L);for(var S=L.next();!S.done;S=L.next())S=S.value,S instanceof Element&&S.isConnected&&N.push(S),S instanceof DocumentFragment?Z.push.apply(Z,_.Pd(Array.from(S.children))):Z.push(S);return[Z,N]};
ItL=function(L){return!(L instanceof Element)&&L.node instanceof Element?L.node:L};
E4B=function(L,Z){var N=Z?["children"].concat(_.Pd(Z)):["children"];Z=[];N=_.O(N);for(var S=N.next();!S.done;S=N.next()){var u=S.value;if(L.hasOwnProperty(u)){S=L[u];S=typeof S==="function"?S():S;S=Array.isArray(S)?S:[S];S=UM(S).flat();if(u!=="children"){u=Awf(u);for(var T=_.O(S),W=T.next();!W.done;W=T.next())W=W.value,W instanceof Element&&W.setAttribute("slot",u)}Z.push(S)}}Z.length===0?L=[]:(L=UM(_.g("div",null,Z)),L=Array.from(L.childNodes));return L};
pU_=function(L,Z,N){var S={};_.Ch(function(){var u={},T;for(T in Z)if(Z.hasOwnProperty(T)){var W=void 0,V=void 0;if(!(((W=N.slotProps)==null?0:W.includes(T))||T==="children"||((V=N.callbackProps)==null?0:V.includes(T))||T==="ref")&&(W=_.JW(Z[T]),S[T]!==W)){S[T]=W;V=void 0;var M=(V=L.hostElement)!=null?V:L;!N.skipHostForwardedProps&&PP0.has(T)&&(M[T]=W);u[T]=W}}UK(function(){if(L.setProperties)L.setProperties(u);else for(var G=_.O(Object.entries(u)),D=G.next();!D.done;D=G.next()){var l=_.O(D.value);
D=l.next().value;l=l.next().value;L[D]=l}})},"i")};
m0A=function(L,Z,N,S){var u=E4B(N,S.slotProps),T=(0,_.qJ)(L);u=_.O(u);for(var W=u.next();!W.done;W=u.next())T.appendChild(W.value);pU_(Z,N,S);S=_.O(S.callbackProps||[]);u=S.next();for(T={};!u.done;T={kebabEventName:void 0,eventListener:void 0},u=S.next())W=u=u.value,String(u).substring(0,2)==="on"&&N[W]?(T.kebabEventName=Awf(String(u).substring(2)),T.eventListener=N[W],L.addEventListener(T.kebabEventName,T.eventListener),_.zs(function(D){return function(){L.removeEventListener(D.kebabEventName,D.eventListener)}}(T))):
Z[W]=N[W];
if(N.ref){N=_.O(zLs(N.ref));var V=N.next().value,M=N.next().value,G=Z.attached.bind(Z);Z.attached=function(){V(L);G()};
_.zs(function(){M()})}};
zLs=function(L){if(typeof L==="function"){var Z;return[function(N){Z=L(N)},
function(){var N;(N=Z)==null||N()}]}if(!L.onRender||!L.onUnmount)throw Error("Sg");
return[L.onRender,L.onUnmount]};
JbH=function(L,Z){Z=Z===void 0?{}:Z;var N=function(S){var u=document.createElement(L),T;var W=(T=u.polymerController)!=null?T:u;m0A(u,W,S,Z);return u};
N.debugName=L+" (CoW wrapped)";return N};
XUh=function(L,Z,N,S,u){S=S===void 0?{}:S;var T=CPG,W=!1;T?(W=!0,CPG=void 0):(rbL=Z,T=document.createElement(Z),rbL=void 0);var V=T;V.usePatchedLifecycles=!0;V.lifecycleIsConnected=!1;T.loggingStatus={};var M=Qrw(L,Z,T,S,u);_.zs(function(){V.lifecycleIsConnected&&(V.lifecycleIsConnected=!1,M.disconnectedCallback())});
W||(T.__noInsertionPoint=!0,m0A(T,M,N,S));return T};
Qrw=function(L,Z,N,S,u){u=u===void 0?ltB:u;Abh[Z]!=null||(Abh[Z]=u(L,Z,S==null?void 0:S.getTemplate,S));var T=Abh[Z],W=T.ctor;u=T.getInitialMethods;var V=T.getPropsToForwardBeforeReady;L=T.getPropsToForwardBeforeRegister;S=T.shouldForwardProp;var M=T.observedAttributes,G=T.shouldLog,D=W(N,{beforeReady:function(){var l=D;l._takeAttributes?l._takeAttributes():l.setPropertiesFromInitialAttributeValues&&l.setPropertiesFromInitialAttributeValues();l=_.O(V(N.polymerController));for(var v=l.next();!v.done;v=
l.next()){var R=_.O(v.value);v=R.next().value;R=R.next().value;RL1(N,v,R);G(Z)&&!Ph(v)&&KHh(N.polymerController,v)}N.polymerController=PKt(D,Z)}});
N.polymerController=D;N.polymerController.observedAttributes=M;T=_.O(D.getExtraMethodsToForward());for(W=T.next();!W.done;W=T.next())M=_.O(W.value),W=M.next().value,M=M.next().value,cbs(N,W,M);u=_.O(u());for(T=u.next();!T.done;T=u.next())T=T.value,S(T)&&cbs(N,T),G(Z)&&!Ph(T)&&n41(D,T);L=_.O(L());for(S=L.next();!S.done;S=L.next())u=_.O(S.value),S=u.next().value,u=u.next().value,RL1(N,S,u);return D};
Hzx=function(L){var Z=JJ;JJ=L;return Z};
x0F=function(L){if(Cd.has(L)&&JJ&&BGA(JJ)===L){var Z;(Z=JJ)._numRenders!=null||(Z._numRenders=0);JJ._numRenders++;if(JJ._numRenders>1)throw Error("Tg");return JJ}};
qhh=function(L){Cd.has(BGA(L))&&JJ!==L&&(L._isInert=!0)};
BGA=function(L){var Z;return(Z=L==null?void 0:L.tagName.toLowerCase())!=null?Z:""};
LG0=function(L,Z){if(L.componentType===hW)throw Error("Ug");Cd.add(Z);var N=function(){var S=HTMLElement.call(this)||this;S.is=Z;if(rbL===Z)return S.isInert=!0,S;S.createElement();return S};
_.f(N,HTMLElement);N.prototype.createElement=function(){if(!this.isInert){CPG=this;var S=_.O(_.JuH(function(){return _.g(L,null)})).next().value;
CPG=void 0;pis(this);return S}};
customElements.define(Z,N)};
NQx=function(L,Z,N,S,u){L.prototype.is=Z;(S==null?0:S.useSink)?Zts(L,Z,N,S,u):(N=ltB(L,Z,N,S),fts(N,Z));return L};
Zts=function(L,Z,N,S,u){hLs();var T=_.p(function(W){return XUh(L,Z,W,Object.assign({},S,{getTemplate:N}),u)},"j");
T.debugName=Z+" (CoW wrapped)";LG0(T,Z);return T};
itH=function(L){return!SmA.has(L)};
tHw=function(L,Z,N,S){function u(){if(!l){for(var v=new Set(ujH),R=_.O(T.behaviors),K=R.next();!K.done;K=R.next()){K=K.value;for(var U=_.O(Object.getOwnPropertyNames(K)),d=U.next();!d.done;d=U.next()){d=d.value;var h=void 0,E=(h=Object.getOwnPropertyDescriptor(K,d))==null?void 0:h.value;E&&E instanceof Function&&(!G[d]||_.c("polymer_forward_method_killswitch"))&&v.add(d)}}R=_.O(Object.entries(Object.getOwnPropertyDescriptors(L.prototype)));for(K=R.next();!K.done;K=R.next())U=_.O(K.value),K=U.next().value,
U=U.next().value,U.value instanceof Function&&v.add(K);l=v}return l}
var T=ziF({is:Z,disableElementRegistration:!1,getTemplate:N,providers:S==null?void 0:S.providers,reactivityMode:S==null?void 0:S.reactivityMode},L);if((S==null?0:S.allowedProps)||(S==null?0:S.allowedPropsFromBehaviors)){var W,V;T.allowedProps=[].concat(_.Pd((W=S.allowedProps)!=null?W:[]),_.Pd((V=S.allowedPropsFromBehaviors)!=null?V:[]))}var M=dt0(T,L);Z=M.observedAttributes;var G={};N=_.O(T.reactiveSchemas);for(S=N.next();!S.done;S=N.next())if(S=S.value,S.type==="signal")G[S.propertyKey]={readOnly:S.readOnly},
S.readOnly&&(G[VB_(S.propertyKey)]={readOnly:!0});else if(S.type==="compute"||S.type==="computeWithMethod"||S.type==="redux")G[S.propertyKey]={readOnly:!0};var D=T.reactiveSchemas.length,l;return{ctor:function(v,R){v=new M(v);v.beforeReady=R.beforeReady;return v},
props:G,observedAttributes:Z,getInitialMethods:u,getPropsToForwardBeforeRegister:function(){for(var v=[],R=new Set,K=_.O(TQA),U=K.next();!U.done;U=K.next())U=U.value,v.push([U,U!=="observers"&&U!=="properties"]),R.add(U);K=_.O(Object.keys(G));for(U=K.next();!U.done;U=K.next())U=U.value,v.push([U,G[U].readOnly]),R.add(U);K=u();U=_.O(Object.keys(Object.getOwnPropertyDescriptors(L.prototype)));for(var d=U.next();!d.done;d=U.next())d=d.value,!itH(d)||K.has(d)||R.has(d)||(v.push([d,!1]),R.add(d));v.push(["allowedProps",
!0]);return v},
getPropsToForwardBeforeReady:function(v){var R=[];v=_.O(Object.keys(v));for(var K=v.next();!K.done;K=v.next()){K=K.value;var U=u();itH(K)&&!U.has(K)&&R.push([K,!1])}v=_.O(T.reactiveSchemas.slice(D));for(K=v.next();!K.done;K=v.next())K=K.value,K.type!=="compute"&&K.type!=="computeWithMethod"&&K.type!=="redux"&&K.type!=="signal"||R.push([K.propertyKey,K.type==="signal"?K.readOnly:!0]);return R},
shouldForwardProp:itH,shouldLog:bA}};
_.m=function(L,Z,N,S){var u,T,W=(T=(u=S)==null?void 0:u.mode)!=null?T:0;S!=null||(S={});var V;(V=S).reactivityMode!=null||(V.reactivityMode=0);W===1&&_.oe("creator_poly_si_disable_list").includes(Z)&&(W=2);return W===1?NQx(L,Z,N,Object.assign({},S,{useSink:!0}),tHw):NQx(L,Z,N,Object.assign({},S,{useSink:W===2}))};
_.rD=function(){return function(L,Z,N,S){var u,T,W=(T=(u=S)==null?void 0:u.mode)!=null?T:2;S!=null||(S={});var V;(V=S).reactivityMode!=null||(V.reactivityMode=0);if(W===0)throw Error("Vg`"+W);return Zts(L,Z,N,S,W===1?tHw:void 0)}};
_.Qr=function(L){return _.c("creator_poly_si_killswitch")?!1:_.c("force_all_poly_si_batches")&&(L==="poly_si_all_on_test_check"||L==="creator_poly_si_batch_050"?0:L)||document.documentElement.hasAttribute("use-signals")?!0:!L||_.c(L+"_holdback_enabled")&&_.c("kevlar_polysi_holdback")?!1:_.c(L)};
X4=function(L){return L?L.icon?L.icon.iconType.toLowerCase():L.customThumbnail?"member":"":""};
OtL=function(L){if(!L)return"";L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next())if((Z=Z.value)&&Z.liveChatAuthorBadgeRenderer&&(Z=X4(Z.liveChatAuthorBadgeRenderer))&&Z!=="verified")return Z;return""};
WGx=function(L,Z){if(!L)return null;var N;return((N=L.find(function(S){return S&&S.liveChatAuthorBadgeRenderer?X4(S.liveChatAuthorBadgeRenderer)===Z:!1}))==null?void 0:N.liveChatAuthorBadgeRenderer)||null};
_.FGH=function(L){var Z=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;L=VHH(L);Z=VHH(Z);var N=bth(L.hex);Z=bth(Z.hex);var S=Z[0]/255;var u=Z[1]/255,T=Z[2]/255,W=Math.max(S,u,T),V=Math.min(S,u,T),M=0,G=0,D=.5*(W+V);W!=V&&(W==S?M=60*(u-T)/(W-V):W==u?M=60*(T-S)/(W-V)+120:W==T&&(M=60*(S-u)/(W-V)+240),G=0<D&&D<=.5?(W-V)/(2*D):(W-V)/(2-2*D));S=[Math.round(M+360)%360,G,D];N=MHs(N,Z);for(L=gYs(L.hex);N<4.5;){L=S[2]>=.5?L.darker((4.5-N)/2):L.brighter((4.5-N)/2);N=L.toString();
u=GZH(N);if(!u.length)throw Error("Yd`"+N);N=u;N=MHs(N,Z)}return L.hex()};
MHs=function(L,Z){L=_.C7A(L);Z=_.C7A(Z);return(Math.max(L,Z)+.05)/(Math.min(L,Z)+.05)};
_.AJ=function(L){return"#"+("000000"+(L&16777215).toString(16)).slice(-6)};
_.$xw=function(L){for(var Z=0,N=0;N<L.length;N++)Z=L.charCodeAt(N)+((Z<<5)-Z);L="#";for(N=0;N<3;N++)L+=("00"+(Z>>N*8&255).toString(16)).slice(-2);return L};
Dxh=function(L){L=(L||"").split(":");L.length===1&&L.unshift("yt-icons");L[1]=L[1].toLowerCase();return L};
nYF=function(L,Z){var N=(Z=Z===void 0?!1:Z)?lJt:vY_,S=Z?oYA:RNB;L.getIconNames().forEach(function(u){u=Z?u:u.substring(u.indexOf(":")+1);L.name==="yt-icons"?c$1.add(u):u.includes("-filled")?N.add(u):S.add(u)})};
Hh=function(L,Z,N,S){N=N===void 0?!1:N;S=S===void 0?!1:S;var u,T,W;return _.b(function(V){if(V.nextAddress==1)return V.yield(KG1,2);if(S)return V.return(c$1.has(L));u=N?lJt:vY_;T=N?oYA:RNB;return Z?(W=L.includes("-filled")?L:L.concat("-filled"),V.return(u.has(W))):V.return(T.has(L))})};
_.y$_=function(L){if(fJf(L))return L;var Z=L=L.toLowerCase();(L=kZ_.get(L))&&(Z=L);return Z};
_.Bh=function(L){if(fJf(L))return L.toString();var Z=wZF.get(L);if(Z)return Z;Z=L.toLowerCase();var N="yt-icons",S=Z.replace(/_/g,"-");switch(L){case "MY_CHANNEL":Z="account_circle";break;case "ADD_TO_LIBRARY":Z="add";break;case "ALERT_WARN_RED":Z="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":Z="person_music";break;case "BLOCK_USER":Z="block";break;case "CAPTIONS":Z="closed_caption";break;case "CLOSED_CAPTION":N="av";Z="closed-caption";break;case "COLLECTION":N="maps";Z="layers";break;case "CONTACT":N=
"icons";Z="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":N="yt-studio-system-icons";Z=S.split("creator-studio-")[1];break;case "DISMISSAL":Z="close";break;case "DO_NOT_DISTURB":Z="block";break;case "DOGFOOD":N="icons";Z="pets";break;case "DRAFT":Z="paper_corner_folded";
break;case "EMPTY_LIKE":Z="like_outline";break;case "EXIT_APP":Z="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":Z=S;break;case "GAMES":N="ytg";Z="my-games";break;case "GO_TO_PAGE":Z="arrow-forward";break;case "GROUP":N="social";break;case "HIDE":Z="not_interested";break;case "INPUT_COMPONENT":N="icons";Z="settings-input-component";break;case "KIDS_BLOCK":Z="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":N="ytg";Z="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":N=
"ytg";Z="membership-post-purchase";break;case "MULTIVIEW":Z="screen_multi_view";break;case "MY_LOCATION":N="maps";Z=S;break;case "NOTIFICATIONS_INBOX":Z="NOTIFICATIONS";break;case "NEXT":Z="chevron_right";break;case "OFFLINE":Z="power-settings-new";break;case "PAUSE":N="miniplayer";break;case "PAYMENT":N="icons";break;case "PHONE_DOWNLOAD":Z="phone_download";break;case "PREMIUM_STANDALONE":N="yt-logos";Z="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":N="yt-logos";Z="premium_standalone_cairo";
break;case "QUESTION_ANSWER":Z="question_answer";break;case "REDEEM":N="icons";Z="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":Z="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":Z="library_add";break;case "SCHOOL":N="yt-sys-icons";Z="creator_academy";break;case "SETTINGS_LIGHT":Z="settings_applications";break;case "SETTINGS_MATERIAL":Z="settings";break;case "SEARCH_HISTORY":Z="watch_history";break;case "SHOPPING_BAG":Z="bag";break;case "SOCIAL":case "PEOPLE":N=
"yt-icons";Z="people";break;case "STAFF_PICK":N="ytg";Z="spotlight";break;case "START_DVR":Z="add";break;case "STOP_DVR":N="av";Z="stop";break;case "TAB_LIKED":Z="like";break;case "TAB_INBOX":Z="mail";break;case "TERMS_OF_SERVICE":N="icons";Z="description";break;case "TRENDING":Z="fire";break;case "UNBLOCK_USER":Z="remove";break;case "UNPLUGGED_DARK_THEME":N="image";Z="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":Z="live";break;case "UNPLUGGED_SPORTS":N="ytu";Z="visibility-off";break;
case "VIDEOS":N="av";Z="play-circle-filled";break;case "YOUTUBE":N="yt-logos";Z="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":N="yt-logos-ext";Z="yt-logo-red-updated";break;case "YOUTUBE_LOGO":N="yt-logos-ext";Z="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":N="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":N="shorts";Z=S;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":N="yt-sys-icons";Z="youtube_improve_tv";break;case "OUTLINE_BAG":N=
"yt-sys-icons";Z="bag";break;case "QUEUE_PLAY_LAST":N="yt-sys-icons";Z="list_queue_last";break;case "SLASH_CIRCLE_LEFT":Z="slash_circle_left";break;case "SPEED_1_POINT_2X":Z="1_point_2x";break;case "SPEED_1_POINT_5X":Z="1_point_5x";break;case "SPEED_1_POINT_8X":Z="1_point_8x";break;case "SPEED_POINT_2X":Z="point_2x";break;case "SPEED_POINT_5X":Z="point_5x";break;case "SPEED_POINT_8X":Z="point_8x";break;case "SPEED_1X":Z="1x";break;case "SPEED_2X":Z="2x";break;case "TAB_BOOKMARK":Z="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":N="yt-sys-icons";Z="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":N="yt-sys-icons";Z="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":N="yt-sys-icons",Z="tic_tac_toe"}Z=N+":"+Z;wZF.set(L,Z);return Z};
fJf=function(L){var Z;_.c("kevlar_use_wil_icons")?Z=!!_.GR().resolve(_.xD).resolveIcon({iconName:L.toString()}):Z=!1;return Z};
_.LY=function(L,Z,N,S){N=N===void 0?{}:N;S=S===void 0?!1:S;N===null&&(N={});var u=_.oe("kevlar_command_handler_command_banlist");u=_.O(u);for(var T=u.next();!T.done;T=u.next())if(T=L?L.hasOwnProperty(T.value):void 0,T)return!1;u=_.n(L.commandMetadata,_.Nj);return S&&u!=null&&u.url?!1:!Z.disableCommandHandlerOverride&&_.qd.instance?(S=_.qd.instance,N.form||(N.form={element:Z}),N.form.element||(N.form.element=Z),!N.clickedVisualElement&&Z.visualElement&&(N.clickedVisualElement=Z.visualElement),S.resolveCommand(L,
N),!0):!1};
Ux_=function(L,Z){L=Zh(L);for(var N=_.O(L.visibilityMonitorKeys||[]),S=N.next();!S.done;S=N.next())Z.unobserveByKey(S.value);L.visibilityMonitorKeys=void 0};
dxL=function(L,Z){if(_.RH()){if(_.c("kevlar_vimio_use_shared_monitor"))YmF(L,Z.data);else if(!YmF(L,Z.data))return;var N=Z.data,S=eN1(N);if(_.c("enable_client_ve_spec_logging"))Ux_(L,Z.observer);else{var u=Zh(L);u.trackedParams&&u.trackedParams!==S&&Ux_(L,Z.observer)}u=Zh(L);!N||u.data&&u.data===N||(u.data=N);IJf(L,Z);u.trackedParams=S}};
IJf=function(L,Z){var N=Z.observer;if(!N&&_.c("web_skip_missing_vimio_observer")){var S,u;_.Q7(new _.sr("VisibilityObserver is not defined.",L.tagName,L.trackedParams,(S=Z.data)==null?void 0:S.trackingParams,(u=Z.data)==null?void 0:u.loggingDirectives))}else{var T=Z.layer,W=Z.visibilityCallback||function(){},V=Z.prescanCallback,M=Zh(L);
S=[];Z.showOption&&S.push(N.observe(L,function(){Z.skipLogging&&Z.skipLogging()||_.Ng().reportShown(M,void 0,T);W(!0)},Z.showOption));
Z.hideOption&&S.push(N.observe(L,function(){_.Ng().reportHidden(M,void 0,T);W(!1)},Z.hideOption));
Z.prescanOption&&V&&S.push(N.observe(L,function(){V()},Z.prescanOption));
M.visibilityMonitorKeys=S}};
YmF=function(L,Z){L=Zh(L);if(L.visualElement&&!Z)return!0;if(!Z)return!1;var N=!1;if(_.c("enable_client_ve_spec_logging")){var S,u;N=!!((S=Z.loggingDirectives)==null?0:(u=S.clientVeSpec)==null?0:u.uiType)}S=eN1(Z);if(!S&&!N)return!1;_.c("mweb_component_visibility_logging")&&(L.veContainer||(L.veContainer={}),L.veContainer.trackingParams=S);if(L.trackedParams&&L.trackedParams===S)return!1;var T;if(_.c("enable_client_ve_spec_logging")&&((T=L.visualElement)==null?0:T.isClientVe())){var W;T=(W=L.visualElement)==
null?void 0:W.getAsJspb();var V,M,G,D;if(_.G3(T,2)===((V=Z.loggingDirectives)==null?void 0:(M=V.clientVeSpec)==null?void 0:M.uiType)&&_.G3(T,3,-1)===((G=Z.loggingDirectives)==null?void 0:(D=G.clientVeSpec)==null?void 0:D.elementIndex))return!1}if(_.c("enable_client_ve_spec_logging")){var l,v;!L.visualElement&&((l=Z.loggingDirectives)==null?0:(v=l.clientVeSpec)==null?0:v.uiType)&&(V=Z.loggingDirectives.clientVeSpec,Z=V.uiType,W=V.elementIndex,V=V.clientYoutubeData,L.visualElement=_.Si(_.tC(),{veType:Z,
elementIndex:W,clientYouTubeData:V}))}return!0};
eN1=function(L){if(L==null?0:L.rendererContext){var Z=_.n(L.rendererContext,_.OR);if(Z==null?0:Z.loggingDirectives)return Z.loggingDirectives.trackingParams}return(L==null?0:L.loggingDirectives)?L.loggingDirectives.trackingParams:L==null?void 0:L.trackingParams};
Zh=function(L){var Z;return(Z=L.polymerController)!=null?Z:L};
jzs=function(L){_.Ng();if(_.B8(W9().JSC$12726_elementShouldLogGesture).bind(W9())(L,4)){aJG(L);var Z=hN1(L);szh.set(L,Z)}};
aJG=function(L){szh.has(L)&&(szh.get(L).cancel("untrack hover element"),szh.delete(L))};
hN1=function(L){var Z,N=[],S=!1,u=new _.kE(function(T,W){VV(L,"mouseenter",_.B8(function(){var V,M,G;return _.b(function(D){if(D.nextAddress==1)return Z=(0,_.GT)(),V=EY0(L),N.push(V),M=PZw(L,function(){S=!0;W(Error("Wg"))}),D.yield(V,2);
if(D.nextAddress!=3)return M&&bn(M),G=pZG(L),N.push(G),D.yield(G,3);T();_.w7(D)})}))});
u.then(function(){var T=(0,_.GT)()-Z;T=Math.round(T);if(!(500>T||6E5<=T)){var W=L.getScreenLayer?L.getScreenLayer():void 0;W=_.RH(W)||"";var V=zNB(_.Ng(),L);_.jz(W,L.visualElement?L.visualElement:_.Mg(V),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:T}})}jzs(L)},function(){g$&&(g$(),g$=null);
S&&(aJG(L),jzs(L))});
return u};
EY0=function(L){var Z;return(new _.kE(function(N,S){g$=function(){S(Error("Xg"))};
Z=_.ro.debounce(_.B8(function(){bn(u);N()}),1,100);
var u=_.Gl(L,"mousemove",Z)})).thenCatch(function(){var N=_.ro.cancelDebouncedJobMap.get(Z);
N&&_.ro.cancelJob(N)})};
pZG=function(L){var Z;return(new _.kE(function(N,S){g$=function(){S(Error("Yg"))};
Z=VV(L,"mouseleave",_.B8(function(){N()}))})).thenCatch(function(){bn(Z)})};
PZw=function(L,Z){return VV(L,"mouseleave",_.B8(Z))};
J$f=function(L){mx_&&_.FZ.cancel(mx_);mx_=_.FZ.run(function(){_.QT(L,"yt-visibility-refresh");mx_=0})};
CZw=function(L){L=Number(L);return"rgba("+[L>>16&255,L>>8&255,L&255,(L>>24&255)/255].join()+")"};
Qz0=function(L){if(!L)return!1;if(_.n(L,_.r$H))return!0;var Z;if(L=(Z=_.n(L,_.q2))==null?void 0:Z.commands)for(Z=_.O(L),L=Z.next();!L.done;L=Z.next())if(_.n(L.value,_.r$H))return!0;return!1};
XZH=function(L){var Z=!0;Z=Z===void 0?!0:Z;if(!L.useSignals&&!L.experimentalPropertiesChanged||_.c("experimental_templating_behavior_nopatch_killswitch")){var N=L._propertiesChanged;L._propertiesChanged=function(S,u,T){Z?L.debounceRender():L.doRender();N&&N.call(L,S,u,T)}}};
A$L=function(L,Z){if(L.useSignals||L.experimentalPropertiesChanged)if(_.c("experimental_templating_behavior_nopatch_killswitch"))L.experimentalPropertiesChanged=function(){};
else return;var N=new Set,S=[L].concat(_.Pd(L.behaviors));S=_.O(S);for(var u=S.next();!u.done;u=S.next()){u=u.value;for(var T in u.properties)N.has(T)||(L._addPropertyEffect(T,"function",Z),N.add(T))}};
Htf=function(){var L=Polymer.Element,Z=L._prepareTemplate;L._prepareTemplate=function(){Z.call(this);var N=this.prototype;if(N.experimentalTemplatingInUse&&N.experimentalTemplatingInUse()&&N.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.CA(Error("Zg"));else{N=this.template.content.childNodes;for(var S=N.length-1;S>=0;S--){var u=N[S];u.nodeName!=="STYLE"&&u.nodeName!=="LINK"&&u.nodeName!=="SCRIPT"&&u.nodeName!=="#comment"&&u.remove()}}}};
BQG=function(L){var Z=!0;Z=Z===void 0?!0:Z;Htf();var N=L.ready;L.ready=function(){this._template=null;N.call(this)};
A$L(L,Z?L.debounceRender:L.doRender)};
qm_=function(L,Z,N){if(N===null||N===void 0)return N;var S=y2B(L.tagName.toLowerCase(),Z,function(){throw Error("Tb");});
if(S===null)return N;S=xx_[S];var u;if((u=S.isUnwrappable)==null?0:u.call(S,N)){if(S.unwrap)return S.unwrap(N);throw Error("bh");}return S.filterString?S.filterString(L.tagName,Z,String(N)):N};
LNF=function(L,Z,N){var S=Z[Z.length-1]!=="$",u=qm_(L,Z,N);if(S)if(typeof u==="function"&&Z.startsWith("reactiveon")&&Z===Z.toLowerCase()){var T=tW;s6t(L,Z.slice(8),function(W){rJ(T,function(){u(W)})})}else L[Z]=u;
else N=u==null?null:String(u),AW(L,Z.slice(0,-1),N)};
Dh=function(L){ZIs.length===0&&requestAnimationFrame(function(){setTimeout(function(){var Z=ZIs.slice();ZIs.length=0;Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next()){N=N.value;try{N()}catch(S){_.$N(S)}}})});
ZIs.push(L)};
N4w=function(L){if(L){var Z=L.component;if(Z){var N;Z==null||(N=Z.events)==null||N.publish("DISCONNECTED");var S;Z==null||(S=Z.onDisconnected)==null||S.call(Z)}var u,T;(u=L.__spec)==null||(T=u.didUnmount)==null||T.call(u);for(Z=0;Z<L.childNodes.length;Z++)N4w(L.childNodes[Z])}};
SXG=function(L,Z,N){var S=Z&&Z.key,u=th;u[0]=L;u[1]=S;u[2]=void 0;for(var T in Z)Z.hasOwnProperty(T)&&(L=Z[T],S=OM,S.push(T),S.push(L));Z=th;a:{if(T=th[2])for(L=0;L<T.length;L+=2)if(T[L]==="nonce"){T=T[L+1];break a}T=""}T=Hoh(Z[0],Z[1],T);L=xR(T);S=Z[2];if(!L.staticsApplied&&(L.staticsApplied=!0,S&&S.length))if((u=L._attrsArr)&&u.length){for(u=0;u<S.length;u+=2)ln[S[u]]=u+1;u=L._attrsArr||(L._attrsArr=h5_(0));for(var W=0,V=0;V<u.length;V+=2){var M=u[V],G=u[V+1],D=ln[M];D?S[D]===G&&delete ln[M]:(u[W]=
M,u[W+1]=G,W+=2)}X5(u,W);for(var l in ln)z5t(T,l,S[ln[l]],gx),delete ln[l]}else for(l=0;l<S.length;l+=2)z5t(T,S[l],S[l+1],gx);iHx(T,L,gx);X5(Z,0);N&&N(q$);Bxf()};
_.v9=function(L,Z,N){N===void 0?delete L[Z.name]:L[Z.name]=N};
_.oX=function(L){var Z={androidIncludeFontPadding:!1},N=0,S=[],u=[],T=[];if(L.simpleText)return Z.content=L.simpleText,Z;if(L.runs===void 0)return Z.content="",Z;L=_.O(L.runs);for(var W=L.next();!W.done;W=L.next()){W=W.value;var V=W.text,M=void 0,G=(M=V)==null?void 0:M.length;if(V&&G){S.push(V);if(W.bold||W.italics||W.strikethrough||W.underline||W.textColor!=null&&W.textColor!==0||W.deemphasize){V=u;M=V.push;var D={startIndex:N,length:G};W.bold&&(D.weightLabel="FONT_WEIGHT_MEDIUM");W.italics&&(D.italic=
!0);W.strikethrough&&(D.strikethrough="LINE_STYLE_SINGLE");W.underline&&(D.underline="LINE_STYLE_SINGLE");W.textColor!=null&&W.textColor!==0?document.documentElement.hasAttribute("dark")?D.fontColor=W.darkModeTextColor||W.textColor:D.fontColor=W.textColor:W.deemphasize&&(document.documentElement.hasAttribute("dark")?D.fontColor=parseInt("ff"+iI1("#aaa").substring(1),16):D.fontColor=parseInt("ff"+iI1("#606060").substring(1),16));M.call(V,D)}W.navigationEndpoint&&(V=T,M=V.push,D={startIndex:N,length:G,
onTap:{innertubeCommand:W.navigationEndpoint}},W.loggingDirectives&&_.v9(D,ubx,W.loggingDirectives),M.call(V,D));N+=G}}Z.content=S.join("");Z.styleRuns=u.length?u:void 0;Z.commandRuns=T.length?T:void 0;return Z};
t6F=function(L){if(L==null||!L.runs)return!0;L=_.O(L.runs);for(var Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.bracket||Z.errorUnderline||Z.deemphasize||_.n(Z,RX)||_.n(Z,T4t))return!1;return!0};
OI_=function(L,Z){return function(N){var S=Z.unit;if(S!==N)throw Error("eh`"+L+"`"+S+"`"+N);return Z}};
c9=function(L){if(!((L==null?0:L.value)&&(L==null?0:L.unit)))return"";switch(L.unit){case "DIMENSION_UNIT_FRACTION":var Z="%";break;default:Z="px"}L=L.value;Z==="%"&&(L*=100);return""+L+Z};
WNf=function(L){try{return L()}catch(Z){_.Q7(Z)}};
_.KY=function(L){var Z=_.n(L,_.nY);if(Z)return Z;if((Z=_.n(L,V6P))&&Z.commands)return bIf(Z.commands);if((Z=_.n(L,M6f))&&Z.commands)return bIf(Z.commands);if((L=_.n(L,g8f))&&L.identifier&&L.command&&(GPA||(GPA=[]),!GPA.includes(L.identifier)))return GPA.push(L.identifier),_.n(L.command,_.nY)};
bIf=function(L){if(L.length!==0){var Z=[];L=_.O(L);for(var N=L.next();!N.done;N=L.next())(N=_.KY(N.value))&&Z.push(N);return{commandExecutorCommand:{commands:Z}}}};
_.kN=function(L){var Z=L.defaultTarget,N=L.elementConfig,S=L.elementsCommand,u=L.skipOnClick,T=L.forceNewState,W=L.additionalCommandArgs,V=L.innertubeCommand||_.KY(S);if(V){L={};var M=FNH(V);S=M.navigatingCommand;M=M.href;S&&M?(L.href$=M,$_A(L,S,M,Z),_.c("web_atagconfig_pointerdown")&&D_G(L,S),T&&(L["force-new-state$"]=!0)):(L.role$="button",L.href$="javascript:void(0);");_.n(V,ln1)&&(L["aria-haspopup$"]=!0);u||(L.onclick=function(G){var D={};if(v8s(G)){var l=(W==null?void 0:W.clickedVisualElement)||
(W==null?void 0:W.getClickedVisualElement)&&W.getClickedVisualElement();l&&(D={clickedVisualElement:l});D=Object.assign({},{form:{element:G.target,event:G,createScreenConfig:D}},W);G.preventDefault();_.fY(V,D)}});
return Object.assign({},N,L)}};
o8H=function(L){if(L.length){if(L.length===1)return L[0];var Z={};_.v9(Z,_.q2,{commands:L});return Z}};
yV=function(L){return L&&L.href$!=="javascript:void(0);"};
FNH=function(L){var Z,N=((Z=_.n(L,_.q2))==null?void 0:Z.commands)||[L];L=_.O(N);for(Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var S=void 0,u=void 0;N=(u=_.n((S=Z)==null?void 0:S.commandMetadata,_.Nj))==null?void 0:u.url;_.c("web_remove_web_navigation_endpoint_data")||(S=void 0,N=N||((S=_.n(Z,Rrx))==null?void 0:S.url));if(N&&N!=="/service_ajax"){if(S=_.P6(N,cAf))return L=_.jn(S),{navigatingCommand:Z,href:L};_.Q7(new _.sr("AttributedString URL could not be sanitized",N))}}return{}};
v8s=function(L){return L.button!==void 0?L.button===0&&!(L.shiftKey||L.altKey||L.metaKey||L.ctrlKey):!(L.shiftKey||L.altKey||L.metaKey||L.ctrlKey)};
$_A=function(L,Z,N,S){N=!bQ(N);var u,T,W;if((u=_.n(Z,_.iv))!=null&&u.nofollow||(T=_.n(Z,_.so))!=null&&T.nofollow||(W=_.n(Z,_.Lo))!=null&&W.nofollow||N)L.rel$="nofollow";var V;Z=((V=_.n(Z,_.Lo))==null?void 0:V.target)==="TARGET_NEW_WINDOW"?"_blank":S===void 0?"":S;L.target$=Z};
D_G=function(L,Z){Z.clickTrackingParams&&(L.params={itct:Z.clickTrackingParams});L.onpointerdown=function(N){n8t(N)};
L._data=Z};
KN1=function(L){(L.loggingUrls||[]).forEach(function(Z){S2(Z.baseUrl,Z.attributionSrcMode)})};
n8t=function(L){var Z=L.currentTarget;L=WNf(function(){return Z.href});
var N=Z.params;L&&_.pv(L,N||{},8,!0)};
_.w$=function(L,Z){(L=_.KY(L))&&_.fY(L,Z)};
_.fY=function(L,Z){Zqh(function(N){Z?N.resolveCommand(L,Z):N.resolveCommand(L)})};
wuH=function(L,Z){var N=["yt-core-attributed-string__link"];Z!=null&&Z.noLinkColor||((Z==null?0:Z.isOverlay)?N.push("yt-core-attributed-string__link--overlay-call-to-action-color"):N.push("yt-core-attributed-string__link--call-to-action-color"),(Z==null?0:Z.linkInheritColor)&&N.push("yt-core-attributed-string--link-inherit-color"));N={className:N.join(" "),tabindex$:"0"};var S=L.onTap||L.onLongPress;if(!S)return N;var u=fn_(L);u&&(N["aria-label$"]=u);Z=_.kN({elementsCommand:S,elementConfig:N,skipOnClick:!(Z==
null||!Z.skipOnClick),forceNewState:!0});L.onLongPress&&(S=new kPP(function(){var T=_.KY(L.onLongPress);T&&_.GR().resolve(_.$s).resolveCommand(T)}),Z&&yA0(S,Z));
return Z||N};
fn_=function(L){var Z,N;return(Z=L.onTapOptions)==null?void 0:(N=Z.accessibilityInfo)==null?void 0:N.accessibilityLabel};
U_H=function(L){var Z=L;L<=16777215&&(Z+=parseInt("ff000000",16));return _.Rs(Z)};
YXA=function(L){var Z=L.isDarkTheme;var N=L.extension;L=L.runColor;var S=void 0;if(N=N==null?void 0:N.colorMap){Z=Z?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";N=_.O(N);for(var u=N.next();!u.done;u=N.next())if(u=u.value,Z===u.key){S=u.value;break}}S==null&&L&&(S=L);if(S)return U_H(S)};
UR=function(L){var Z=L.config;var N=L.image;var S=L.imageConfig;var u=L.imageWrapperConfig;var T=L.run;var W=L.tag;var V=L.textLength;var M=L.startIndex===void 0?0:L.startIndex;L=L.length;M===void 0&&(M=0);T={run:T,startIndex:M,endIndex:L!==void 0?M+L:V,tag:W};N&&(T.image=N);S&&(T.imageConfig=S);u&&(T.imageWrapperConfig=u);Z&&(T.config=Z);return T};
InF=function(L,Z){var N=[];N.push("yt-core-attributed-string");(Z==null?0:Z.className)&&N.push(Z==null?void 0:Z.className);(Z==null?0:Z.ellipsisTruncate)?N.push("yt-core-attributed-string--ellipsis-truncate"):(Z==null?0:Z.noWrap)?N.push("yt-core-attributed-string--white-space-no-wrap"):(Z==null?0:Z.noPreWrap)||N.push("yt-core-attributed-string--white-space-pre-wrap");(Z==null?0:Z.linkInheritColor)&&N.push("yt-core-attributed-string--link-inherit-color");L.alignment&&N.push(er0(L.alignment));L.lineBreakMode&&
N.push("yt-core-attributed-string--word-wrapping");return N.join(" ")};
d_A=function(L,Z){if(L.weight)return L.weight;switch(L.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 Z?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
anL=function(L){switch(L){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"}};
er0=function(L){switch(L){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"}};
IX=function(L,Z,N){var S=Z;L.content&&N&&(N=L.content.indexOf("\n"),N!==-1&&(S=Math.min(Z,N)));if(!L.content||L.content.length<=S)Z=L;else if(L.attachmentRuns||L.commandRuns||L.decorationRuns||L.styleRuns||L.paragraphStyleRuns){Z=YN(L.content,S);N=S;var u=L.attachmentRuns;if(u){var T=[];u=_.O(u);for(var W=u.next();!W.done;W=u.next())W=Object.assign({},W.value),W.startIndex===void 0||W.startIndex>=N||(W.length||(W.length=0),W.length+W.startIndex>N&&(W.length=N-W.startIndex),T.push(W));N=T}else N=void 0;
T=hrt(S,L.commandRuns);u=S;var V=L.decorationRuns;if(V){W=[];V=_.O(V);for(var M=V.next();!M.done;M=V.next()){M=M.value;var G=_.n(M.textDecorator,ei);if(G&&G.startIndex!==void 0&&!(G.startIndex>=u)){M=Object.assign({},M,{textDecorator:{highlightTextDecorator:Object.assign({},G)}});G=_.n(M.textDecorator,ei);if(!G.length||G.length+G.startIndex>u)G.length=u-G.startIndex;W.push(M)}}u=W}else u=void 0;W=hrt(S,L.styleRuns);if(V=L.paragraphStyleRuns)for(L=[],V=_.O(V),M=V.next();!M.done;M=V.next()){var D=M.value;
M=Object.assign({},D);if(!(M.startIndex===void 0||M.startIndex>=S)){if(!M.length||M.length+M.startIndex>S)M.length=S-M.startIndex;G=[];var l=void 0,v=void 0;if((l=D)==null?0:(v=l.listGroup)==null?0:v.listItems)for(D=_.O(D.listGroup.listItems),l=D.next();!l.done;l=D.next())if(l=Object.assign({},l.value),!(l.startIndex===void 0||l.startIndex>=S)){if(!l.length||l.length+l.startIndex>S)l.length=S-l.startIndex;G.push(l)}G.length>0&&(M.listGroup||(M.listGroup={}),M.listGroup=Object.assign({},M.listGroup,
{listItems:G}));L.push(M)}}else L=void 0;Z={content:Z,attachmentRuns:N,commandRuns:T,decorationRuns:u,styleRuns:W,paragraphStyleRuns:L}}else Z=Object.assign({},L,{content:YN(L.content,S)});return Z};
hrt=function(L,Z){if(Z){var N=[];Z=_.O(Z);for(var S=Z.next();!S.done;S=Z.next())if(S=Object.assign({},S.value),!(S.startIndex===void 0||S.startIndex>=L)){if(!S.length||S.length+S.startIndex>L)S.length=L-S.startIndex;N.push(S)}return N}};
YN=function(L,Z){var N=Z,S;if(S=N>0)S=L.charCodeAt(N-1),S=S>=55296&&S<=56319;S&&(N=L.charCodeAt(N),S=N>=56320&&N<=57343);S&&--Z;return L.substring(0,Z)};
P6h=function(L,Z,N){N=N===void 0?shs:N;if(L){var S=_.GR().resolve(Fl);S||_.c("mweb_no_observer_killswitch")?dxL(L,{data:Z,observer:S,visibilityCallback:N,hideOption:jhA,showOption:E8B,layer:L.layer}):_.Q7(new _.sr("Warning: monitorVisibility called with null observer",L.tagName,Z==null?void 0:Z.loggingDirectives,Z==null?void 0:Z.trackingParams))}else _.Q7(new _.sr("Warning: monitorVisibility called with null element",Z==null?void 0:Z.loggingDirectives,Z==null?void 0:Z.trackingParams,Z==null?void 0:
Z.rendererContext))};
QhG=function(L,Z){var N=[],S=L.content.length,u,T=(u=_.GR().resolve(_.gv(_.d$)))==null?void 0:u();if(L.paragraphStyleRuns){u=_.O(L.paragraphStyleRuns);for(var W=u.next();!W.done;W=u.next()){var V=N.push,M=V.apply;var G=void 0;W=W.value;if((G=W.listGroup)!=null&&G.listItems){G=[];b:switch(W.listGroup.listType){case "LIST_TYPE_BULLET":var D="ul";break b;default:D="span"}G.push(UR({run:W,textLength:S,tag:D,config:{className:"yt-core-attributed-string__list-group"},startIndex:W.startIndex,length:W.length}));
D=_.O(W.listGroup.listItems);for(var l=D.next();!l.done;l=D.next()){l=l.value;b:switch(W.listGroup.listType){case "LIST_TYPE_BULLET":var v="li";break b;default:v="span"}G.push(UR({run:W,textLength:S,tag:v,startIndex:l.startIndex,length:l.length}))}W=G}else W=[];M.call(V,N,_.Pd(W))}}if(L.styleRuns&&(Z==null||!Z.noStyleRuns))for(u=_.O(L.styleRuns),V=u.next();!V.done;V=u.next()){W=V=V.value;G=T;M=Z;G=YXA({extension:_.n(W.styleRunExtensions,pu_),isDarkTheme:G===void 0?!1:G,runColor:W.fontColor});l=W;
D=[];G&&D.push("yt-core-attributed-string--link-inherit-color");l.italic&&D.push("yt-core-attributed-string--italicized");l.underline&&l.strikethrough?D.push("yt-core-attributed-string--underline-strikethrough",anL(l.underline)):l.underline?D.push("yt-core-attributed-string--underlined",anL(l.underline)):l.strikethrough&&D.push("yt-core-attributed-string--strikethrough",anL(l.strikethrough));if(l.baselineOffset){a:switch(l.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":l="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":l="yt-core-attributed-string--baseline-offset-superscript";break a;default:l="yt-core-attributed-string--baseline-offset-unknown"}D.push(l)}D=D.join(" ");l={};if(W.weight||W.weightLabel)l.fontWeight=d_A(W,M==null?void 0:M.isHeadline).toString();G&&(l.color=G);N.push(UR({run:V,textLength:S,tag:"span",config:{className:D,style:l},startIndex:V.startIndex,length:V.length}))}if(L.decorationRuns)for(u=_.O(L.decorationRuns),V=u.next();!V.done;V=u.next())V=V.value,
M={},V.textDecorator&&(D=V.textDecorator,W=T===void 0?!1:T,l=[],G=_.n(D,ei),D=_.n(D,zrw),G?(D=l,l=D.concat,v=[],(W=YXA({extension:_.n(G.highlightTextDecoratorExtensions,m_x),isDarkTheme:W,runColor:G.backgroundColor}))&&v.push("background-color: "+W+";"),G.backgroundCornerRadius!==void 0&&v.push("border-radius: "+G.backgroundCornerRadius+"px;"),G.leftPadding!==void 0&&v.push("padding-left: "+G.leftPadding+"px;"),G.rightPadding!==void 0&&v.push("padding-right: "+G.rightPadding+"px;"),G.topPadding!==
void 0&&v.push("padding-top: "+G.topPadding+"px;"),G.bottomPadding!==void 0&&v.push("padding-bottom: "+G.bottomPadding+"px;"),l=l.call(D,v)):D&&(G=l,l=G.concat,W=W?"#2ba640":"#107516",W=D.color?U_H(D.color):W,W=["padding: 2px;","border-top: solid "+W+" 2px;","border-bottom: solid "+W+" 2px;","background: linear-gradient(135deg, "+W+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+W+" 3px, rgba(0, 0, 0, 0) 3px);"],l=l.call(G,W)),W=l.join(" "),M.style$=W,W=V.textDecorator,G=[],D=_.n(W,
zrw),_.n(W,ei)?G.push("yt-core-attributed-string--highlight-text-decorator"):D&&G.push("yt-core-attributed-string--bracket-text-decorator"),W=G.join(" "),M.className=W,M.dir="auto"),W=_.n(V.textDecorator,ei),G=_.n(V.textDecorator,zrw),D=_.n(V.textDecorator,ei),l=_.n(V.textDecorator,zrw),N.push(UR({run:V,textLength:S,tag:"span",config:M,startIndex:(W==null?void 0:W.startIndex)||(G==null?void 0:G.startIndex)||0,length:(D==null?void 0:D.length)||(l==null?void 0:l.length)||0}));if(L.commandRuns&&(Z==
null||!Z.noEndpoints))for(T=_.O(L.commandRuns),u=T.next();!u.done;u=T.next())u=u.value,V=wuH(u,Z),N.push(UR({run:u,textLength:S,tag:"a",config:V,startIndex:u.startIndex,length:u.length}));if(L.attachmentRuns)for(L=_.O(L.attachmentRuns),T=L.next();!T.done;T=L.next()){T=T.value;M=V=void 0;u={className:"yt-core-attributed-string--inline-block-mod"};if((M=T.element)==null?0:M.properties){M=(V=T.element)==null?void 0:V.properties;V=[];M=_.n(M,JAG);if(M==null?0:M.margin)M=M.margin,M.left&&V.push("margin-left: "+
c9(M.left)+";"),M.right&&V.push("margin-right: "+c9(M.right)+";"),M.top&&V.push("margin-top: "+c9(M.top)+";"),M.bottom&&V.push("margin-bottom: "+c9(M.bottom)+";");V=V.length!==0?V.join(" "):void 0;u.style$=V}W=void 0;V={alt:"",preserveHeight:!0,preserveWidth:!0};M=["yt-core-attributed-string__image-element"];if(T.alignment){a:switch(T.alignment){case "ALIGNMENT_BASELINE":G="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":G="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:G="yt-core-attributed-string__image-element--image-alignment-bottom"}M.push(G)}if((W=T.element)==null?0:W.properties)W=[],G=_.n(T.element.properties,JAG),(G==null?0:G.height)&&W.push("height: "+c9(G.height)+";"),(G==null?0:G.width)&&W.push("width: "+c9(G.width)+";"),W=W.length!==0?W.join(" "):void 0,V.style$=W,G=void 0,W=((G=_.n(T.element.properties,C6f))==null?void 0:G.label)||"",V.alt=W;V.className=M.join(" ");M=void 0;D=G=void 0;W=((D=T.element)==null?0:D.type)?(G=_.n(T.element.type,
rAB))==null?void 0:G.image:void 0;N.push(UR({run:T,textLength:S,tag:"img",image:W,imageConfig:V,imageWrapperConfig:u,startIndex:T.startIndex,length:(M=T.length)!=null?M:0}))}if(Z==null?0:Z.headerRuns)for(Z=_.O(Z.headerRuns),L=Z.next();!L.done;L=Z.next())if(L=L.value,L.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(L.headerMapping)){a:{switch(L.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":T=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":T="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":T="yt-core-attributed-string--heading-3";break a}T=void 0}N.push(UR({run:L,textLength:S,tag:"span",config:T?{className:T}:void 0,startIndex:L.startIndex,length:L.length}))}return N};
_.aX=function(L){return(L==null?void 0:L.content)!==void 0};
Xu_=function(L){return _.aX(L)?L:_.oX(L)};
AAh=function(L){return L.image!==void 0&&L.imageConfig!==void 0};
HIh=function(L,Z){if(Z==null?0:Z.userInput)for(L=_.O(L),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.tag!=="a"&&Z.tag!=="li"){var N=void 0;(N=Z).config||(N.config={});Z.config.dir=Z.tag==="ul"?_.GR().resolve(_.hC):"auto"}};
B4f=function(L){return function(Z){var N=L.run;(N.onTap!==void 0||N.onLongPress!==void 0)&&_.n(N,ubx)&&P6h(Z,{loggingDirectives:_.n(N,ubx)})}};
x_F=function(L){return function(Z){for(var N in L)(gx[N]||gx[HE["default"]])(Z,N,L[N])}};
NOt=function(L,Z){qXh(Z);var N={data:null,start:0,end:L.length,parts:[]};Z=_.O(Z);for(var S=Z.next();!S.done;S=Z.next())S=S.value,LIF(N,S.startIndex,S.endIndex,S);Z3x(L,N);return N};
LIF=function(L,Z,N,S){for(var u=_.O(L.parts),T=u.next();!T.done;T=u.next()){T=T.value;if(typeof T==="string")throw Error("gh");if(T.start<=Z&&N<=T.end){LIF(T,Z,N,S);return}}L.parts.push({data:S,parts:[],start:Z,end:N})};
Z3x=function(L,Z){for(var N=Z.parts.length;N>=0;N--){var S=Z.parts[N],u=Z.parts[N-1],T=N===Z.parts.length?Z.end:S.start;u=N===0?Z.start:u.end;T!==u&&Z.parts.splice(N,0,L.slice(u,T));S&&Z3x(L,S)}};
qXh=function(L){L.sort(function(Z,N){if(Z.startIndex<N.startIndex)return-1;if(N.startIndex<Z.startIndex)return 1;Z=Z.endIndex-Z.startIndex;N=N.endIndex-N.startIndex;return Z>N?-1:N>Z?1:0})};
_.Sf_=function(L){var Z=L.thumbnails;if(Z){L={sources:[]};Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next()){N=N.value;var S={};S.url=N.url;S.width=N.width;S.height=N.height;L.sources.push(S)}return L}};
i3s=function(L,Z,N,S){if(!Z)return L.length>=1?L[L.length-1]:null;if(S)for(var u=_.O(L),T=u.next();!T.done;T=u.next()){T=T.value;var W=void 0,V=(W=T.url)==null?void 0:W.indexOf(S);if(V!==void 0&&V>=0)return T}S=_.O(L);for(u=S.next();!u.done;u=S.next())if(u=u.value,u.width&&u.height&&(N&&u.width>=Z||!N&&u.height>=Z))return u;for(Z=L.length-1;Z>=0;Z--)if(N&&L[Z].width||!N&&L[Z].height)return L[Z];return L[0]};
_.uYH=function(L){var Z;return(L=(Z=L.sources)==null?void 0:Z[0])?L.width/L.height:0};
_.TOG=function(L){if(L.sources){L=_.O(L.sources);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var N=void 0;if((N=Z.clientResource)==null?0:N.imageName)return Z}}};
tgw=function(L){var Z;if((Z=L.clientResource)!=null&&Z.imageColor)return _.Rs(L.clientResource.imageColor)};
_.WIA=function(L,Z,N,S,u,T,W){if(!Z||Z.length===0||Z[0].clientResource)return null;if(N&&Z[0].url)return Z[0].url;S===void 0&&(S=!0);if(S){var V;L=O3A*(u||(L==null?void 0:(V=L.getBoundingClientRect())==null?void 0:V.width)||0)}else{var M;L=O3A*(T||(L==null?void 0:(M=L.getBoundingClientRect())==null?void 0:M.height)||0)}Z=i3s(Z,L,S,W);return(Z==null?0:Z.url)?Z.url:(Z==null?0:Z.imageData)?Z.imageData:null};
VgL=function(L,Z,N){N=N?[N]:[];L.opacity&&N.push("opacity: "+L.opacity+";");Z&&L.placeholderColor?(L=_.Rs(L.placeholderColor),N.push("background-color: "+L+";")):N.push("background-color: transparent;");return N.join(" ")};
b3A=function(L,Z,N,S,u){var T=["ytCoreImageHost"];Z&&T.push(Z);N||T.push("ytCoreImageFillParentHeight");S||T.push("ytCoreImageFillParentWidth");switch(L.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":T.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":T.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":T.push("ytCoreImageContentModeCenter");break;default:T.push("ytCoreImageContentModeScaleToFill")}L.flipForRtlLayout&&T.push("ytCoreImageFlipRtl");
switch(u){case "TOP_START":var W;T.push(((W=document.body)==null?void 0:W.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return T.join(" ")};
gAL=function(L){var Z;if(L==null?0:(Z=L.clientResource)==null?0:Z.imageName){var N;L=(N=L.clientResource)==null?void 0:N.imageName;a:{switch(L){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":N="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":N="yt-logos-ext:yt-logo-updated";break a}N=void 0}return N||MgA.get(L)||L}};
$aP=function(L){return _.c("mweb_wiz_skip_render")?Gds(L):FI0(L)};
Gds=function(L){return function(Z){var N=Hoh("wink-root");x4_();Bxf();n9G(N,_.g(L,Z))}};
FI0=function(L){var Z=Z===void 0?!1:Z;return function(N){if(!Z||!_.c("mweb_skip_keto_to_c3_if_no_data")||N.data!==void 0){var S=$_(!1);try{var u=N.children;_.c("mweb_render_outside_patch_killswitch")||q$?u?M4(_.g(L,N,u)):M4(_.g(L,N)):_.Q7(new _.sr("ketoToC3 called outside of a patch",{tagName:L.TAG_NAME}))}finally{$_(S)}}}};
DaP=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
vA_=function(L,Z){L.onViewportEntered=Z;l1t.observe(L)};
oA1=function(){var L={rootMargin:"10%",threshold:.01};_.c("mweb_enable_set_io_root_to_null_safari")?L.root=null:_.c("mweb_enable_set_io_root_to_body_safari")&&(L.root=document.body);return new IntersectionObserver(function(Z,N){Z.filter(function(S){return S.intersectionRect.height>0}).forEach(function(S){S=S.target;
if(!_.c("mweb_enable_only_update_image_when_connected")||S.isConnected!==!1){var u;(u=S.onViewportEntered)==null||u.call(S);N.unobserve(S)}})},L)};
RJF=function(L,Z,N,S,u){function T(){if(S){var V=S.loadedClass,M=S.notifyOnUnloaded;V&&_.sR(L,V);M&&L.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function W(){var V=N(Z,L);V&&L.getAttribute("src")!==V&&(_.c("mweb_enable_only_update_image_when_connected")&&L.isConnected===!1||V===L.src||(L.src=V),T())}
u=u===void 0?!0:u;L.removeAttribute("src");T();Z&&(u?vA_(L,W):W())};
cGA=function(L,Z,N){if(!Z)return!1;Z=N(Z,L);N=L.getAttribute("src");return Z&&Z===N&&L.complete};
nAH=function(L,Z){for(var N in Z)N==="className"?L.className=Z[N]:(gx[N]||gx[HE.default])(L,N,Z[N])};
KI0=function(L,Z,N,S){$aP(_.ji)({contentMode:Z.contentMode,loadedClass:Z.loadedClass,isPreloaded:Z.isPreloaded,notifyOnLoaded:Z.notifyOnLoaded,notifyOnUnloaded:Z.notifyOnUnloaded,preferredThumbnail:Z.preferredThumbnail,preserveHeight:Z.preserveHeight,preserveWidth:Z.preserveWidth,objectPosition:Z.objectPosition,targetWidth:Z.targetWidth,targetHeight:Z.targetHeight,shouldShowPlaceholder:Z.shouldShowPlaceholder,useWidth:Z.useWidth,isToggled:Z.isToggled,alt:Z.alt,className:Z.className,onerror:Z.onerror,
onload:Z.onload,style$:Z.style$,color:Z.color,width:Z.width,height:Z.height,"aria-hidden$":Z["aria-hidden$"],draggable:Z.draggable,"data-disabled$":Z["data-disabled$"],data:L,callback:N,renderLazy:S===void 0?!0:S,hideOn404:!1})};
kdf=function(L,Z,N){N=N===void 0?!1:N;var S=L.sources!==void 0?L:_.Sf_(L);if(S){var u=Z.onload;Z.onload=function(M){var G=M.target;N&&G.naturalWidth===120||_.ER(G,"ytCoreImageLoaded");Z.notifyOnLoaded&&G.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));u==null||u(M)};
Z.targetWidth&&Z.preserveWidth&&(Z.width=Z.targetWidth);Z.targetHeight&&Z.preserveHeight&&(Z.height=Z.targetHeight);var T=_.TOG(S),W=T&&gAL(T);if(W)return(L=tgw(T))&&(Z.color=L),{type:"icon",iconName:W,config:Object.assign({},Z,Z.alt?{}:{"aria-hidden$":"true"},{"aria-label$":Z.alt,role:"img"})};if(L.sources===void 0){Z.alt=L.accessibility&&L.accessibility.accessibilityData&&L.accessibility.accessibilityData.label||Z.alt;Z.style$=VgL(L,Z.shouldShowPlaceholder,Z.style$);var V;Z.isPreloaded=!((V=_.n(L,
f1h))==null||!V.isPreloaded)}Z.contentMode&&!S.contentMode&&(S.contentMode=Z.contentMode);Z.className=b3A(S,Z.className,Z.preserveHeight,Z.preserveWidth,Z.objectPosition);Z.loadedClass="ytCoreImageLoaded";return{type:"image",image:S,config:Z}}};
_.P9=function(){var L=_.CG.apply(0,arguments);return _.OV(yGF,function(Z){var N=L.map(function(S){return S==null?void 0:S(Z)});
return function(){return void N.forEach(function(S){return void(S==null?void 0:S())})}})};
pY=function(L,Z){var N=Z==null?void 0:Z.initial;return _.wJ(function(){_.JW(!0);return N=L(N)},{equals:Z==null?void 0:Z.isEqual},"rSlKsc")};
w1h=function(L,Z){if(L===Z)return!0;if(L===void 0||Z===void 0)return!1;var N,S,u,T,W,V,M,G;return L.content===Z.content&&((N=L.styleRuns)==null?void 0:N.length)===((S=Z.styleRuns)==null?void 0:S.length)&&((u=L.commandRuns)==null?void 0:u.length)===((T=Z.commandRuns)==null?void 0:T.length)&&((W=L.attachmentRuns)==null?void 0:W.length)===((V=Z.attachmentRuns)==null?void 0:V.length)&&((M=L.decorationRuns)==null?void 0:M.length)===((G=Z.decorationRuns)==null?void 0:G.length)};
eJw=function(L,Z){if(L){var N=Xu_(L);if(N!=null&&N.content)if(_.c("attr_string_reactive"))$aP(Uaw)({text:L,config:Z});else{var S=!(Z==null||!Z.ariaLabel)||!(N.commandRuns&&N.commandRuns.length!==0||N.paragraphStyleRuns&&N.paragraphStyleRuns.length!==0);L=S?Z==null?void 0:Z.ariaLabel:null;S=S?"text":null;SXG("span",{className:InF(N,Z),dir$:(Z==null?0:Z.userInput)?"auto":void 0,"aria-label$":L,role$:S},function(){if(N.styleRuns||N.commandRuns||N.attachmentRuns||N.decorationRuns||N.paragraphStyleRuns){var u=
QhG(N,Z);HIh(u,Z);u=NOt(N.content,u);u=_.O(u.parts);for(var T=u.next();!T.done;T=u.next())Yfx(T.value)}else u$P(N.content)})}}};
Yfx=function(L){typeof L==="string"?u$P(L):AAh(L.data)?SXG("span",L.data.imageWrapperConfig,function(){KI0(L.data.image,L.data.imageConfig)}):SXG(L.data.tag,L.data.config,function(Z){B4f(L.data)(Z);
Z=_.O(L.parts);for(var N=Z.next();!N.done;N=Z.next())Yfx(N.value)})};
da1=function(L){return L.parts.map(I1x)};
I1x=function(L){if(typeof L==="string")return L;L=AAh(L.data)?_.g("span",{el:_.P9(x_F(L.data.imageWrapperConfig))},_.g(_.ji,Object.assign({},{data:L.data.image},L.data.imageConfig))):_.g(L.data.tag,{el:_.P9(B4f(L.data),x_F(L.data.config))},L.parts.map(I1x));return UM(L)};
a1f=function(L,Z){return L===Z?!0:L===void 0||Z===void 0?!1:L.noStyleRuns===Z.noStyleRuns&&L.noLinkColor===Z.noLinkColor&&L.noEndpoints===Z.noEndpoints&&L.headerRuns===Z.headerRuns&&L.isOverlay===Z.isOverlay&&L.linkInheritColor===Z.linkInheritColor&&L.userInput===Z.userInput&&L.isHeadline===Z.isHeadline};
hJ1=function(L){return function(){var Z,N,S,u,T,W,V,M,G,D,l,v,R,K;return{ariaLabel:(Z=L.ariaLabel)==null?void 0:Z.call(L),className:(N=L.className)==null?void 0:N.call(L),ellipsisTruncate:(S=L.ellipsisTruncate)==null?void 0:S.call(L),isOverlay:(u=L.isOverlay)==null?void 0:u.call(L),linkInheritColor:(T=L.linkInheritColor)==null?void 0:T.call(L),noEndpoints:(W=L.noEndpoints)==null?void 0:W.call(L),noStyleRuns:(V=L.noStyleRuns)==null?void 0:V.call(L),noLinkColor:(M=L.noLinkColor)==null?void 0:M.call(L),
noPreWrap:(G=L.noPreWrap)==null?void 0:G.call(L),noWrap:(D=L.noWrap)==null?void 0:D.call(L),skipOnClick:(l=L.skipOnClick)==null?void 0:l.call(L),userInput:(v=L.userInput)==null?void 0:v.call(L),headerRuns:(R=L.headerRuns)==null?void 0:R.call(L),isHeadline:(K=L.isHeadline)==null?void 0:K.call(L)}}};
jK0=function(L,Z){L=new sKx(L,Z);_.CA(L);throw L;};
EAF=function(L,Z,N){var S=Hzx(L);L._numRenders=0;try{var u=_.JuH(function(){return _.g(Z,Object.assign({},N))})}catch(W){var T=function(V){V.args||(V.args=[]);
V.args.push("Error in web component wrapper");V.args.push(L.tagName.toLowerCase());return V};
_.rY(W instanceof Error?T(W):new sKx("Wiz rendering error",L.tagName.toLowerCase()));throw W;}finally{Hzx(S)}return u};
_.CY=function(L,Z,N){function S(D){var l={};D=_.O(D);for(var v=D.next();!v.done;v=D.next()){v=v.value;var R=void 0,K=void 0,U=void 0,d=_.To((U=(K=(R=v).getAttribute)==null?void 0:K.call(R,"slot"))!=null?U:"children");if(R=l[d])R.push(v);else if(d in T||d==="children")l[d]=[v]}D=_.O(Object.keys(l));d=D.next();for(v={};!d.done;v={content$jscomp$59:void 0},d=D.next())d=d.value,d!=="children"&&(v.content$jscomp$59=l[d],l[d]=function(h){return function(){return h.content$jscomp$59}}(v));
return l}
N=N===void 0?{}:N;L.componentType!==hW||jK0("Components must be marked reactive to be used from web component wrapper.",Z);var u,T=(u=N.props)!=null?u:{};Cd.add(Z);var W=P5H();u=function(){var D=W.apply(this,arguments)||this;D.rawProps={};D.queuingRender=!1;D.dispose=function(){};
D.isWebComponentWrapper=!0;D.isReparenting=!1;D.hasRendered=!1;return D};
_.f(u,W);u.prototype.render=function(){this.hasRendered=!0;for(var D=_.O([].concat(_.Pd(this.attributes))),l=D.next();!l.done;l=D.next())l=l.value,l.name!=="slot"&&l.name!=="hidden"&&this.removeAttribute(l.name);D=Object.assign({},this.componentProps,this.slotProps);l=_.O(EAF(this,L,D));D=l.next().value;l=l.next().value;!(D[0]instanceof Element)||D.length>1?jK0("Wrapped Wiz components must return a single root element.",Z):(D=D[0].tagName.toLowerCase(),D!==Z&&jK0("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(D+" !== '"+Z),Z),this.dispose=l)};
u.prototype.setUpProps=function(){for(var D=this.rawProps,l=this.attributes,v=_.O(Object.keys(T)),R=v.next();!R.done;R=v.next()){R=R.value;var K=void 0;((K=this)==null?0:K[R])&&this[R]!==p1L&&D[R]===void 0&&(D[R]=this[R],(K=Object.getOwnPropertyDescriptor(this.constructor.prototype,R))&&Object.defineProperty(this,R,K))}v=_.O(l);for(R=v.next();!R.done;R=v.next()){K=R.value;R=_.To(K.name);var U=R==="class"&&!l.getNamedItem("class-name");if(R in T||U)K=K.value===""||K.value==="true"?!0:K.value==="false"?
!1:isNaN(Number(K.value))?K.value:Number(K.value),R!=="class"||D.className?D[R]=K:D.className=K}l={};for(var d in T)T[d]!==_.zl&&T[d]!==zJB&&(D[d]instanceof Function&&jK0("Function props must be configured as STATIC, not SIGNAL.",Z),R=_.O(_.nh(D[d],void 0,"q4ZVff")),v=R.next().value,R=R.next().value,l[d]=R,D[d]=v);D=_.O([D,l]);this.componentProps=D.next().value;this.setters=D.next().value;this.slotProps=S(this.childNodes)};
u.prototype.connectedCallback=function(){maf===Z&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in T&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
u.prototype.disconnectedCallback=function(){if(!this._isInert){var D;a:{if(_.mW)for(D=this;D;){if(_.JC.has(D)){D=!0;break a}D=D.parentElement}D=!1}if(D)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){D=_.O([].concat(_.Pd(this.attributes)));for(var l=D.next();!l.done;l=D.next()){l=l.value;var v=void 0;l.name==="slot"||l.name==="hidden"&&((v=N.unsafeExternallySettableAttributes)==null?0:v.has("hidden"))||this.removeAttribute(l.name)}}this.innerText="";pis(this)}}};
u.prototype._setPendingPropertyOrPath=function(){};
u.prototype.notifyPath=function(){};
_.gd.Object.defineProperties(u.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var V=_.O(Object.keys(T)),M=V.next(),G={};!M.done;G={prop$jscomp$109:void 0},M=V.next())G.prop$jscomp$109=M.value,M=void 0,((M=N.legacyPolymer)==null?0:M.forwardHostProps)&&PP0.has(G.prop$jscomp$109)||Object.defineProperty(u.prototype,G.prop$jscomp$109,{set:function(D){return function(l){var v=this;this._isInert||(this.setters?UK(function(){var R,K;return void((K=(R=v.setters)[D.prop$jscomp$109])==null?void 0:K.call(R,l))}):(this.rawProps[D.prop$jscomp$109]=l,this.queuingRender&&D.prop$jscomp$109===
"data"&&l!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(G),
get:JGH.has(G.prop$jscomp$109)?void 0:function(){return p1L}});
customElements.define(Z,u)};
_.C5P=function(L,Z){return(L=_.r$(L,Z))?_.jn(_.mY(L)):null};
_.QV=function(L){if(L=_.r$(L,Number.MAX_VALUE,void 0,"width"))return _.mY(L)};
_.r$=function(L,Z,N,S){S=S===void 0?"width":S;if(!L||!L.length)return null;if(_.c("kevlar_tuner_should_always_use_device_pixel_ratio")){var u=window.devicePixelRatio;_.c("kevlar_tuner_should_clamp_device_pixel_ratio")?u=Math.min(u,_.lQ("kevlar_tuner_clamp_device_pixel_ratio")):_.c("kevlar_tuner_should_use_thumbnail_factor")&&(u=_.lQ("kevlar_tuner_thumbnail_factor"));rGt=u}else rGt||(rGt=window.devicePixelRatio);u=rGt;_.c("kevlar_tuner_should_always_use_device_pixel_ratio")?Z*=u:u>1&&(Z*=u);if(_.c("kevlar_tuner_min_thumbnail_quality"))return L[0].url||
null;u=L.length;if(_.c("kevlar_tuner_max_thumbnail_quality"))return L[u-1].url||null;if(N)for(var T=0;T<u;T++)if(L[T].url.indexOf(N)>=0)return L[T].url||null;for(N=0;N<u;N++)if(L[N][S]>=Z)return L[N].url||null;for(Z=u-1;Z>0;Z--)if(L[Z][S])return L[Z].url||null;return L[0].url||null};
AGw=function(){XZ.size?setTimeout(function(){AC(QKH)},0):X1L=0};
QKH=function(){var L=(0,_.GT)(),Z=null,N=!1;XZ.forEach(function(u){u.loaded=!0;u.loadTime=L;u.pendingPaint=!1;var T=H3F.get(u);T&&T.resolve(L);Z=u;N||!u.ftlEligible&&u.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(N=!0)});
var S;((S=Z)==null?0:S.markDirty)&&Z.markDirty();XZ.clear();X1L=0;N&&BOP(L)};
xax=function(L){XZ.add(L);L.pendingPaint=!0;X1L||(X1L=_.H9(_.ro,AGw))};
qfh=function(L){L.loaded=!1;L.loadTime=Infinity;var Z=H3F.get(L);Z&&(Z.reject(Error("mh")),H3F.delete(L));L.pendingPaint&&(XZ.delete(L),L.pendingPaint=!1)};
_.L6A=function(L){var Z=L.indexOf(":");return Z===-1?{originalName:L}:{originalName:L.substring(0,Z),datasyncId:L.substring(Z+1)}};
_.NBw=function(){return _.b(function(L){if(Zu1!==void 0)return L.return(Zu1);Zu1=new Promise(function(Z){var N;return _.b(function(S){switch(S.nextAddress){case 1:return _.RS(S,2),S.yield(_.B9.open("test-only"),4);case 4:return S.yield(_.B9.delete("test-only"),5);case 5:_.SX(S,3);break;case 2:if(N=_.yd(S),N instanceof Error&&N.name==="SecurityError")return Z(!1),S.return();case 3:Z("caches"in window),_.w7(S)}})});
return L.return(Zu1)})};
u9f=function(){return _.b(function(L){if(L.nextAddress==1)return L.yield(_.NBw(),2);if(!L.yieldResult)return L.return(void 0);SA0||(SA0=new iuB);return L.return(SA0)})};
TBH=function(L){var Z,N,S,u;return _.b(function(T){switch(T.nextAddress){case 1:return T.yield(u9f(),2);case 2:Z=T.yieldResult;if(!Z)throw Error("oh");return T.yield(Z.open("yt-player-local-img"),3);case 3:return N=T.yieldResult,T.yield(N.match(L),4);case 4:S=T.yieldResult;if(!S)throw Error("ph");return T.yield(S.blob(),5);case 5:return u=T.yieldResult,T.return(u)}})};
tpB=function(L,Z){for(var N in L)if(L.hasOwnProperty(N)&&Z[N])return N;return null};
OuP=function(L){return"stamp"+L.replace("-","_")+"_"};
W61=function(L){var Z=L.match(/\[\[([\w\.]+)\]\]/);if(Z&&Z.length>1)return Z[1];_.CA(Error("rh`"+L));return null};
VpF=function(L){return L===void 0?_.Ah("REUSE_COMPONENTS",!1):L||!1};
gIt=function(L,Z,N){N&&(Z.is?(bu_.has(Z)&&(L=bu_.get(Z),N=L.listener,delete Z[L.property],N.type==="element"&&Z.removeEventListener(N.eventName,N.handler),bu_.delete(Z)),MpF(Z)):Z.__proto__==HTMLElement.prototype&&(Z=new _.sr("Rendererstamper removed a non custom element","Stamper: "+L+" element: "+(Z&&Z.nodeName)),_.Q7(Z)))};
GSG=function(L,Z,N,S){var u=Z.node?Z.node:Z;_.QJ(N).parentNode===u&&(Z.removeChild(N),gIt(L,N,S));if(L=xN.get(N))xN.delete(N),_.ro.cancelJob(L);N.hidden=!1};
F6w=function(L,Z,N,S){if(Z&&Z.children&&(N=Z.children[N]))if(_.Ah("DEFERRED_DETACH"))for(;N&&!xN.has(N);){var u=L,T=Z,W=N,V=S;W.hidden=!0;u=_.sI(_.ro,GSG.bind(null,u,T,W,V),0);xN.set(W,u);N=N.nextElementSibling}else for(;(W=Z.lastElementChild)&&(Z.removeChild(W),gIt(L,W,S),W!=N););};
_.qg=function(){for(var L=_.CG.apply(0,arguments),Z=!0,N=_.O(L),S=N.next();!S.done;S=N.next())if(typeof S.value!=="string"){Z=!1;break}return Z?L.join(" ").trim()||void 0:function(){for(var u="",T=_.O(L),W=T.next();!W.done;W=T.next())if(W=W.value,typeof W==="function"&&(W=W()),W)if(typeof W==="string")u+=" "+W;else for(var V in W)if(W.hasOwnProperty(V)){var M=W[V];typeof M==="function"&&(M=M());M&&(u+=" "+V)}u=u.trim()||void 0;return _.JW(u)}};
_.$Kt=function(L,Z){return _.Lk(L.entities,"markersEngagementPanelSyncEntity",Z)};
_.LV=function(L,Z){return _.Lk(L.entities,"playerStateEntity",Z)};
DK_=function(L,Z){return _.Lk(L.entities,"fantasyWinProbabilityEntity",Z)};
lyt=function(L,Z){return _.Lk(L.entities,"fantasyTeamEntity",Z)};
vIB=function(L,Z){return _.Lk(L.entities,"fantasyPlayerEntity",Z)};
oIH=function(L,Z){return _.Lk(L.entities,"booleanEntity",Z)};
Rnx=function(L,Z){return _.Lk(L.entities,"qrCodeEntity",Z)};
cXF=function(L){return _.Lk(L.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
K6w=function(L){var Z;return(Z=nIf[L])!=null?Z:"EVENT_SPAN_TYPE_UNKNOWN"};
fyf=function(L){var Z=L.nodeName;if(L.id)return Z+="#"+L.id;if(L.classList)for(var N=_.O(L.classList),S=N.next();!S.done;S=N.next())Z+="."+S.value;L.parentElement&&(Z=fyf(L.parentElement)+" > "+Z);return Z};
kS_=function(L){return function(Z){var N=K6w(Z.type);return N==="EVENT_SPAN_TYPE_UNKNOWN"?L(Z):yKF("event",{type:N,nodepath:Z.target instanceof Element?fyf(Z.target):void 0},function(){return L(Z)})}};
_.Z9=function(L){L&&Ki_("event")&&(L=kS_(L));return v9t(function(Z){var N,S=(N=L)==null?void 0:N(Z);return typeof S==="boolean"?S:!0})};
NV=function(L){return function(){return L()?L():void 0}};
YA0=function(L){var Z=_.t2("animated-rolling-character"),N=aFB(),S=Eo(L.character)||Eo(L.previousCharacter),u=_.O(hsG()),T=u.next().value,W=u.next().value;_.m0(function(){if(window.ResizeObserver&&_.c("web_fix_rolling_numbers_zoom_safari")){var V=new _.Sw(function(){var G,D,l=Math.round(((D=(G=Z.value.querySelector("div"))==null?void 0:G.getBoundingClientRect().height)!=null?D:0)*100)/100;l&&W(l)},500),M=new ResizeObserver(function(){V.fire()});
M.observe(Z.value);return function(){M.disconnect();V.dispose()}}});
fFL(function(){var V=_.c("web_fix_rolling_numbers_zoom_safari")?T:L.marginMultiplier;if(V){var M;(M=N.value)==null||M.cancel();S?(M=L.previousCharacter?Number(L.previousCharacter)+10:L.rollUp?0:30,L.shouldAnimate||(M-=yXA(L,M))):(M=L.rollUp?0:2,L.shouldAnimate||(M-=L.rollUp?-1:1));Z.value.style.marginTop="-"+M*V+"px";L.shouldAnimate?N.value=wI0(Z.value,L,M,S,V):Z.value.style.display=L.character?"":"none"}});
return _.g("animated-rolling-character",{el:Z,class:"animatedRollingCharacterHost"},$Os(S,function(){for(var V=[],M=1;M<30;M++)V.push(_.g("div",null,M%10));return _.g(_.F7,null,_.g("div",null,"\u00a0"),V,_.g("div",null,"\u00a0"))},function(){return UKH(L.character)}))};
UKH=function(L){return _.g(_.F7,null,_.g("div",null,"\u00a0"),_.g(_.F7,null,$Os(!L||_.V_(L),function(){return _.g("div",null,"\u00a0")},function(){return _.g("div",null,L)})),_.g("div",null,"\u00a0"))};
wI0=function(L,Z,N,S,u){N=new Animation(new KeyframeEffect(L,[{transform:"translateY(0px)"},{transform:"translateY("+(S?yXA(Z,N):Z.rollUp?-1:1)*u+"px)"}],enx),document.timeline);Z.character?(L.style.display="",N.onfinish=null):N.onfinish=function(){L.style.display="none"};
N.play();return N};
yXA=function(L,Z){var N=Number(L.character)+10;if(L.previousCharacter)if(L.character){var S=Number(L.character),u=Number(L.previousCharacter);L=L.rollUp?u<S?N:N+10:u<S?N-10:N}else L=L.rollUp?30:0;else L=L.character==="0"?N:L.rollUp?N-10:N+10;return Z-L};
IyG=function(L){return function(Z){var N={},S;for(S in Z){var u=void 0,T=void 0;((u=void 0)==null?0:(T=u.callbacks)==null?0:T[S])||(N[S]=Z[S])}return _.g(mr_,null,function(){for(var W in N)Z[W]=_.JW(N[W]);Z.disableReactiveLogging=!0;return _.g(L,Object.assign({},Z))})}};
hnf=function(L,Z,N,S,u,T,W){N=new Animation(new KeyframeEffect(L,[{transform:"translateY(0px)"},{transform:"translateY("+(T?dKB(Z,N,S,u):S?-1:1)*W+"px)"}],ays),document.timeline);Z?(L.style.display="",N.onfinish=null):N.onfinish=function(){L.style.display="none"};
N.play();return N};
dKB=function(L,Z,N,S){var u=Number(L)+10;Z?L?(L=Number(L),Z=Number(Z),N=N?Z<L?u:u+10:Z<L?u-10:u):N=N?30:0:N=L==="0"?u:N?u-10:u+10;return S-N};
j5L=function(L){var Z=aFB(),N=aFB();U2L(function(){Z.value=L.numberText;N.value=L.numberValue},[L.numberText]);
var S=L.fontSizeMultiplier?L.heightPx*L.fontSizeMultiplier:L.heightPx,u=d2w(function(){if(L.numberText){var W=L.numberText;var V=L.forceRollUp||!N.value||!L.numberValue||N.value<L.numberValue;var M=!!L.shouldAnimate,G=Z.value,D=[],l=0,v=0,R=(G?G.replace(/\D/g,"").length:0)-(W?W.replace(/\D/g,"").length:0);G=G?G.split(/(\d)/).filter(Boolean):[];for(W=W.split(/(\d)/).filter(Boolean);R<0;){var K=W[v];D.push({character:K,rollUp:V,marginMultiplier:S,shouldAnimate:M});v++;Eo(K)&&R++}for(;l<R;)K=G[l],D.push({previousCharacter:K,
rollUp:V,marginMultiplier:S,shouldAnimate:M}),l++,Eo(K)||R++;for(;v<W.length;)R=W[v],K=G[l],Eo(R)===Eo(K)?(v++,l++):Eo(R)?(l++,R=void 0):Eo(K)&&(v++,K=void 0),D.push({character:R,previousCharacter:K,rollUp:V,marginMultiplier:S,shouldAnimate:M});V=D}else V=[];return V},[L.numberText]),T=L.numberText?["height: "+S+"px;",
"line-height: "+L.heightPx+"px;"].join(" "):"";return _.g("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:T,dir:"ltr","aria-hidden":"true"},u.map(function(W){return _.g(s5f,Object.assign({},W))}))};
EIG=function(L){switch(L){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}};
Pi0=function(L,Z){if(!L&&!Z)return"medium";L=Math.max(L||0,Z||0);return L>=256?"large":L>=96?"medium":"small"};
pIt=function(L){switch(L){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
zn1=function(L){return new KeyframeEffect(L,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
mKA=function(L){return new KeyframeEffect(L,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.i4=function(L){if(L.length===0)return R5_(L,"D");var Z=_.O(R5_({source:function(){return L()},
computation:function(u,T){return(T==null?0:T.value)?L(T.value):u}},"E")),N=Z.next().value,S=Z.next().value;
Z=Z.next().value;return[N,S,Z]};
_.u4=function(L){return function(){var Z="",N;for(N in L){for(var S=L[N];typeof S==="function";)S=S();S!==void 0&&S!==null&&(Z+="; "+N+": "+S)}return Z.length>0?_.JW(Z.slice(2)):_.JW()}};
JXh=function(L){switch(L){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"}};
CiB=function(L,Z){if(Z)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(L)switch(L){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"}};
HuB=function(L,Z,N,S,u,T,W){var V=rXF(L),M=V.disabled,G=V.iconPosition,D=V.style,l=V.focused,v=function(){return!!U()&&G()==="icon-only"},R=function(){return!!U()&&G()==="icon-only-40"},K=function(){return!!U()&&G()==="icon-with-label"},U=function(){return!!Z||!(S==null||!S())};
return{type:function(){return D()==="call-to-action-inverse"?"text":D()==="overlay-dark"&&L().type!=="filled"&&L().type!=="tonal"?"tonal":L().type},
shouldFocus:function(){return(l()||(T==null?void 0:T()))&&!M()},
hasIconLeading:function(){return!!U()&&G()==="leading"},
hasIconTrailing:function(){return!!U()&&G()==="trailing"},
hasIconLeadingTrailing:function(){return!!U()&&!!(N||u!=null&&u())&&G()==="leading-trailing"},
hasIconOnly:v,hasIconOnly40:R,hasIconWithLabel:K,iconButton:function(){return v()||R()||K()},
visiblyDisabled:function(){return(M()?"disabled":L().state)==="disabled"||M()},
overrideSmallSizeIcon:function(){return!L().ignoreIconSizeOverride&&Q5P(L(),U())},
iconToRender:Z?Z:function(){return _.g(_.T0,{icon:S,gradientColor:function(){var d;return(d=L().customColors)==null?void 0:d.iconGradientColor},
size:function(){return XIs(L(),!0,L().ignoreIconSizeOverride)},
active:function(){return L().toggled},
iconFilter:function(){return AXH(L())},
animateIcon:W})},
secondaryIconToRender:N?N:function(){return _.g(_.T0,{icon:u,size:function(){return XIs(L(),!0,L().ignoreIconSizeOverride)},
active:function(){return L().toggled},
iconFilter:function(){return AXH(L())}})}}};
rXF=function(L){return{size:function(){return L().size},
style:function(){return L().style},
focused:function(){return L().focused},
disabled:function(){return L().disabled},
onTap:function(Z){var N,S;return(S=(N=L()).onTap)==null?void 0:S.call(N,Z)},
alignByText:function(){return L().alignByText},
aTagConfig:function(){return L().aTagConfig},
customColors:function(){return L().customColors},
segmentedPosition:function(){return L().segmentedPosition},
toggled:function(){return L().toggled},
toggleable:function(){return L().toggleable},
accessibilityLabel:function(){return L().accessibilityLabel},
onToggle:function(Z){var N,S;return(S=(N=L()).onToggle)==null?void 0:S.call(N,Z)},
iconPosition:function(){return L().iconPosition},
oneOffCustomTextWrap:function(){return L().oneOffCustomTextWrap},
disableTextEllipsis:function(){return L().disableTextEllipsis},
disableBackdropFilter:function(){return L().disableBackdropFilter},
tooltipText:function(){return L().tooltipText},
ariaHidden:function(){return L().ariaHidden},
tabIndex:function(){return L().tabIndex},
buttonText:function(){return L().buttonText},
formattedButtonText:function(){return L().formattedButtonText},
animatedTextProps:function(){return L().animatedTextProps},
onClickRateLimitMs:function(){return L().onClickRateLimitMs}}};
Q5P=function(L,Z){Z=(L.iconPosition==="icon-only"||L.iconPosition==="icon-only-40"||L.iconPosition==="icon-with-label")&&Z;return!L.segmentedPosition&&Z&&L.size==="S"};
XIs=function(L,Z,N){switch(L.size){case "XS":return 16;case "S":return!N&&Q5P(L,Z)?24:16;default:return 24}};
BB1=function(L){switch(L){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"}};
xK0=function(L){switch(L){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"}};
qA1=function(L){switch(L){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"}};
AXH=function(L){if(L.style==="overlay-dark"&&L.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
tS=function(L){return L&&L.endsWith("px")?Number(L.slice(0,-2)):0};
N2h=function(L){var Z=Z===void 0?{}:Z;L=_.O(_.i4(L));var N=L.next().value;return[function(S){var u=_.wJ(function(){var V,M,G,D;return{text:(V=N())!=null?V:"",location:(M=Z.location)!=null?M:"bottom",offset:(G=Z.offset)!=null?G:16,delay:(D=Z.delay)!=null?D:1}},void 0,"MgTrkc");
_.ph(function(){var V=u();_.cE(function(){_.ro.addJob(function(){OC.notify(S,V)},4)})},"WlsgZc");
var T=function(){Lsw(S,u())},W=function(){ZwB()};
S.addEventListener("mouseenter",T);S.addEventListener("focus",T);S.addEventListener("mouseleave",W);S.addEventListener("blur",W);S.addEventListener("tap",W);_.zs(function(){S.removeEventListener("mouseenter",T);S.removeEventListener("mouseleave",W);S.removeEventListener("focus",T);S.removeEventListener("blur",W);S.removeEventListener("tap",W);ZwB()})},
L.next().value]};
iwh=function(L,Z){if(!tW){var N;Kdt(function(){return N=pTw(L,Z)});
return N}L.parent=Sss();return pTw(L,Z)};
Sss=function(){var L=_.WE(tW||void 0,jbt);return _.ojG(L)?void 0:L};
WQ=function(L,Z){_.fY(L,Object.assign({},Z,{forceClickLogging:!0}))};
T2P=function(L,Z){var N=_.KY(L==null?void 0:L.onTap),S={};N&&(S.getClickedVisualElement=function(){var u;return upt(L,N,Z==null?void 0:(u=Z.value)==null?void 0:u.visualElement)});
S=_.kN({elementsCommand:L.onTap,forceNewState:!0,additionalCommandArgs:S});return yV(S)?S:void 0};
tl0=function(L,Z,N,S){WQ(L,Object.assign({},{form:{element:Z,event:N}},S))};
OwP=function(L,Z,N,S,u){var T=void 0;return function(W){var V=_.KY(N?L==null?void 0:L.onDisabledTap:L==null?void 0:L.onTap);if(V){var M;T=(M=T)!=null?M:Z==null?void 0:Z.value;if(V)if(_.c("web_button_vm_click_client_ve_killswitch"))tl0(V,T,W);else{var G;M=upt(L,V,(G=T)==null?void 0:G.visualElement);if(u){tl0(V,u,W,{clickedVisualElement:M,form:{element:u}});return}tl0(V,T,W,{clickedVisualElement:M})}}S&&S(W)}};
upt=function(L,Z,N){Z=Z==null?void 0:Z.clickTrackingParams;var S,u;L=L==null?void 0:(S=L.loggingDirectives)==null?void 0:(u=S.clientVeSpec)==null?void 0:u.uiType;if(N&&L&&!Z)return N};
Wsh=function(L){switch(L){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"}};
Vlf=function(L){switch(L){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"}};
bwF=function(L){switch(L){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"}};
Mlw=function(L){switch(L){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"}};
_.VB=function(L){return _.wJ(function(){BUP()();return LHP(L)},{debugName:"d8B62c"},"DEXkhd")};
grF=function(L,Z){return _.Lk(L.entities,"engagementToolbarStateEntityPayload",Z)};
Fsw=function(L){(L=_.Mg(L))&&_.GhL(L)};
_.GhL=function(L){var Z=_.RH();Z&&_.dR(Z,L)};
$MB=function(L,Z,N){_.XJ(L,"yt-open-popup-action",[Z,N||L])};
DMP=function(L,Z){var N=_.Cn(L,"endpoint"),S=_.Cn(L,"action");return(N=S?S:N)&&Z&&(N=Z.navigationEndpointPopupMap[N])&&(L=_.LZ(N,L),(N=_.Cn(L,"renderer"))&&Z.supportedPopups.hasOwnProperty(N))?{openPopupAction:{popupType:Z.popupTypeMap[N],popup:L}}:null};
l_s=function(L,Z,N,S){if(S){var u;N=N==null?void 0:(u=N.data)==null?void 0:u.contents;(u=N instanceof Array&&N.length?N[0]:N)&&(N=_.Cn(u,"renderer"))&&S.supportedPopups.hasOwnProperty(N)&&(Z.stopPropagation(),$MB(L,{openPopupAction:{popupType:S.popupTypeMap[N],popup:u}}))}};
R8F=function(L,Z,N,S){S=S===void 0?!1:S;var u=vrh(Z);if(u){u.href&&fX(u.href);var T=Z.button;T=T!==void 0?T===0&&!b4(Z):!b4(Z);u.data&&T&&orP(L,u,Z,N,S)}};
orP=function(L,Z,N,S,u){u=u===void 0?!1:u;var T=_.lQ("pbj_navigate_limit",-1)===0;cM0(Z);_.GR().resolve(_.gv(qC));var W=Z.data;if(Object.keys(W).length!==0)if(!_.c("unplugged_web_disable_actions_for_cec_endpoint")&&_.n(W,_.q2))_.c("endpoint_behavior_command_executor_fix_killswitch")||(N.preventDefault(),N.stopPropagation()),_.B2(L,[W],L);else if(S=DMP(W,S))W.loggingUrls&&W.loggingUrls.forEach(function(M){M.baseUrl&&_.NC(M.baseUrl)}),N.preventDefault(),N.stopPropagation(),$MB(L,S,Z);
else{var V=nrF(0,Z.data,N);if(L=Z.getForm)L=L(),V.tempData=V.tempData||{},V.tempData=Object.assign({},V.tempData,L);L=_.sx(N);if(S=L.find(function(M){return!!M.visualElement}))V.createScreenConfig=V.createScreenConfig||{},V.createScreenConfig.clickedVisualElement=S.visualElement;
if(!T)if(N.preventDefault(),N.stopPropagation(),_.n(W,_.KsB)&&!u&&_.qd.instance)_.qd.instance.resolveCommand(W,V);else if(_.c("kevlar_command_handler_formatted_string")&&!u&&_.qd.instance&&f_H(W))u=L.find(function(M){return!!M.is})||N.target,N={form:Object.assign({},V,{event:N,
element:u,originatingNode:Z})},_.qd.instance.resolveCommand(W,N);else{W=_.sx(N);N=[];for(u=0;u<W.length;u++)(T=W[u].is)&&N.push(T);Nm1({parents:N.join(","),text:Z.innerText},function(){_.QT(Z,"yt-navigate",V)})}}};
khh=function(L){if(L=vrh(L))cM0(L),NaB(L.href)};
vrh=function(L){L=_.sx(L);for(var Z,N=0;N<L.length;N++)if(Z=L[N],Z.tagName==="A"&&Z.classList.contains("yt-simple-endpoint")){if(!Z.data)break;return Z}return null};
b4=function(L){return L.shiftKey||L.altKey||L.metaKey||L.ctrlKey};
yMh=function(L,Z){var N={itct:Z.clickTrackingParams};_.c("kevlar_client_side_screens")&&(!_.n(Z,_.Ox)||_.c("kevlar_exclude_endpoint_killswitch"))&&(N.endpoint=JSON.stringify(Z));_.c("enable_unknown_lact_fix_on_html5")&&_.GR().resolve(_.gv(_.MV))&&(N.lact=_.Fv());qqs(N);_.pv(L,N)};
cM0=function(L){L.href&&Object.keys(L.data).length!==0&&yMh(L.href,L.data)};
f_H=function(L){for(var Z=_.O(wCx),N=Z.next();!N.done;N=Z.next())if(L[N.value])return!1;return!0};
UMG=function(){if(g9)return g9;if(window.lottie)return g9=Promise.resolve(window.lottie);var L=_.QH(_.X7("LOTTIE_URL"));return L?g9=new Promise(function(Z,N){var S=document.createElement("script");S.addEventListener("load",function(){Z(lottie)});
S.addEventListener("error",function(u){var T="Lottie library failed to load.";u?u.message&&(T+=" Original description: "+u.message,_.Xv(u,T)):u=Error(T);_.Q7(u);N(u)});
S.setAttribute("async","");_.TE(S,L);document.head.appendChild(S)}):Promise.reject(Error("sh"))};
YsA=function(){return g9?g9:UMG()};
e8G=function(L){if(L)switch(L){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.c("kevlar_use_wil_icons"))return L=(L=cXF(_.Pv().getState()))&&L.animationLightUrl&&L.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:L.animationLightUrl,pathDarkTheme:L.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,L?L:G0.get("LIKE");break;case "LIKE_DELHI_PLAYER":return G0.get("LIKE_DELHI_PLAYER")}};
I_G=function(L){var Z=e8G(L);if(Z)return Z;switch(L){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return G0.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return G0.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return G0.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return G0.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return G0.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return G0.get("NOTIFICATION_BELL")}};
dM1=function(L,Z){if(!L.closest)return!1;Z=!!e8G(Z);return _.X7("ID_TOKEN")&&Z?!!L.closest("segmented-like-dislike-button-view-model")||!!L.closest("yt-player-quick-action-buttons"):!1};
h8A=function(L,Z){if(!L||a__)Z=!1;else{var N;if(!(N=dM1(L,Z)))if(L.closest)if(N=!_.X7("ID_TOKEN"),L=L.closest("ytd-subscription-notification-toggle-button-renderer-next"),N||!L)N=!1;else{var S;N=((S=L.data)==null?void 0:S.targetId)==="notification-bell"&&Z!=="EXPAND_MORE"}else N=!1;Z=N}return Z};
s0P=function(L){var Z,N;return _.b(function(S){switch(S.nextAddress){case 1:return _.RS(S,2),S.yield(fetch(L),4);case 4:return Z=S.yieldResult,S.yield(Z.json(),5);case 5:return S.return(S.yieldResult);case 2:N=_.yd(S),_.Q7(N),_.w7(S)}})};
j0H=function(L,Z){var N,S,u;return _.b(function(T){if(T.nextAddress==1)return(N=Z?L.pathDarkTheme:L.path)?T.yield(Promise.all([s0P(N),UMG()]),2):T.return();S=T.yieldResult;u=S[0];F6.set(N,u);_.w7(T)})};
Prx=function(L,Z,N,S){function u(W,V){if(Z.value===V&&!Z.cancelled&&L!=null&&L.value){for(;L.value.firstChild;)L.value.removeChild(L.value.firstChild);L.value.classList.add("ytSpecIconShapeHost");W(L.value,S)}}
var T=_.Erx(_.GR().resolve(_.xD),N);typeof T==="function"?(Z.value=null,u(T,null)):(Z.value=T,T.then(function(W){u(W,T)}))};
z8t=function(L,Z){var N=document.createElement("div"),S=_.pn(N,function(){return _.g(_.F,{cond:L,then:function(u){return _.g(pCB,{data:u,options:Z})}})},"ba");
return[N,S]};
_.$0=function(L,Z){if(Z){var N={};mMx.forEach(function(S){S=JMt(Z,S,"--yt-lightsource-");Object.assign(N,S)});
CrB.forEach(function(S){S=JMt(Z,S,"--yt-basic-");Object.assign(N,S)});
_.Ld(L,N)}};
JMt=function(L,Z,N){var S={};S[N+_.uc(Z)]=L&&L[Z]?_.Rs(L[Z]):"";return S};
_.l4=function(L,Z,N){D9[L]||(D9[L]={});D9[L][Z]=N};
_.vQ=function(L){D9[L]||(D9[L]={});return D9[L]};
rM0=function(L){if(!L)return{};var Z=L.foregroundTitleColor,N=L.backgroundColor;L=L.borderColor;var S="text";L?S="outline":N&&(S="filled");return{type:S,customColors:{color:Z?_.Rs(Z):void 0,backgroundColor:N?_.Rs(N):void 0,borderColor:L?_.Rs(L):void 0}}};
B2_=function(L){var Z=L.renderer;var N=L.element;var S=L.commandController;var u=L.onTapCallback;var T=L.skipCommandHandling;var W=L.overrides;var V=L.forceIcon;var M=L.forceModernIconButton;var G=L.forceDisabled;var D=L.isSubscribe===void 0?!1:L.isSubscribe;var l=L.isPressed===void 0?!1:L.isPressed;var v=L.useButtonSize===void 0?!1:L.useButtonSize;L=Q0h(Z);D&&(L.style="mono",L.type="filled");V=!Z.icon||!V&&Z.text?Z.icon?Z.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:M?"icon-only":"icon-only-40";V==="icon-only-40"&&(L.type="text");var R;M=Object;D=M.assign;v=XCh(Z,v);l=!!Z.isSelected||!_.c("web_propagate_is_pressed_killswitch")&&!!l;var K=Z.isSelected!==void 0;G=G===void 0?Z.isDisabled:G;var U=Z.text?_.oX(Z.text):void 0;var d,h,E,A=((d=Z.accessibilityData)==null?void 0:(h=d.accessibilityData)==null?void 0:h.label)||((E=Z.accessibility)==null?void 0:E.label);d=A?A:_.jM(Z.text);N=AMH(Z,N,S,u,T);S=HwB(Z);S!=null&&S.length?(S=_.kN({innertubeCommand:o8H(S),
forceNewState:!0}),S=yV(S)?S:void 0):S=void 0;return D.call(M,{},L,v,{iconPosition:V},W,{focused:!1,toggled:l,toggleable:K,disabled:G,formattedButtonText:U,accessibilityLabel:d,onTap:N,aTagConfig:S},rM0((R=Z.colorData)==null?void 0:R.basicColorPaletteData),{oneOffCustomTextWrap:Z.oneOffCustomTextWrap})};
AMH=function(L,Z,N,S,u){return function(T){var W=HwB(L);S(W,T);if(!u){W=_.O(W);for(var V=W.next();!V.done;V=W.next())WQ(V.value,{form:{element:Z,event:T},commandController:N})}}};
HwB=function(L){var Z=[];L.command&&Z.push(L.command);L.serviceEndpoint&&Z.push(L.serviceEndpoint);L.navigationEndpoint&&Z.push(L.navigationEndpoint);return Z};
XCh=function(L,Z){if(Z)switch(L.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(L.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
Q0h=function(L){switch(L.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"}}};
xMf=function(L,Z){return typeof L!=="object"||L===null?!1:Object.keys(Z).every(function(N){return N in L})};
_.oV=function(L){return Object.fromEntries(Object.keys(L).map(function(Z){return[Z,Z]}))};
qsf=function(L,Z,N){return NEP(N,function(S,u){return function(T){var W=_.CG.apply(1,arguments);return xMf(T,L)?u.apply(null,[T[Z]].concat(_.Pd(W))):u.apply(null,[T].concat(_.Pd(W)))}})};
_.RV=function(L){return function(Z,N){return qsf(L,Z,N)}};
Lp_=function(L,Z){var N;return(N=_.Lk(L,"playlistLoopStateEntity",Z))!=null?N:void 0};
ZRH=function(L,Z){var N;return(N=_.Lk(L,"toggleMenuServiceItemEntity",Z))!=null?N:void 0};
_.cQ=function(L){return L!=null&&L.watch?L.watch.isTheaterMode:!1};
_.nV=function(L){return L!=null&&L.watch?L.watch.isWatchFullscreen:!1};
_.KV=function(L){if(_.N_w(L))return!0;L=_.Sgt(L);return _.c("web_watch_enable_single_column_grid_view")?L:!1};
_.N_w=function(L){return L.watch.isSwatcherooActive};
_.Sgt=function(L){return L.watch.isWatchNarrowWidth};
_.iRs=function(L){return L.watch.openEngagementPanels};
fV=function(L,Z){return _.Lk(L.entities,"likeStatusEntity",Z)};
ueF=function(L,Z){return _.Lk(L.entities,"likeCountEntity",Z)};
_.T_F=function(L,Z){return _.Lk(L.entities,"stringEntity",Z)};
t_w=function(L,Z){return _.Lk(L.entities,"dataFreshnessEntity",Z)};
ORf=function(L,Z){if(!L)return!1;var N,S=(N=_.n(L,_.ZW))==null?void 0:N.signal;if(S&&Z.signalEndpointMap)return!!Z.signalEndpointMap[S];var u;if((N=(u=_.n(L,_.k0))==null?void 0:u.request)&&Z.continuationEndpointMap)return!!Z.continuationEndpointMap[N];for(var T in L)if(Z.commandEndpointMap[T])return!0;return!1};
WpH=function(L,Z){if(Z.streamingEndpointMap)for(var N in L)if(Z.streamingEndpointMap[N]&&(L=Z.streamingEndpointMap[N]))return L()};
V_t=function(L,Z){var N,S=(N=_.n(L,_.ZW))==null?void 0:N.signal;if(S&&Z.signalEndpointMap&&(N=Z.signalEndpointMap[S]))return N();var u;if((N=(u=_.n(L,_.k0))==null?void 0:u.request)&&Z.continuationEndpointMap&&(u=Z.continuationEndpointMap[N]))return u();for(var T in L)if(Z.commandEndpointMap[T]&&(L=Z.commandEndpointMap[T]))return L()};
bRG=function(L){var Z={"Content-Type":"application/json"};_.X7("EOM_VISITOR_DATA")?Z["X-Goog-EOM-Visitor-Id"]=_.X7("EOM_VISITOR_DATA"):_.X7("VISITOR_DATA")&&(Z["X-Goog-Visitor-Id"]=_.X7("VISITOR_DATA"));Z["X-Youtube-Bootstrap-Logged-In"]=_.X7("LOGGED_IN",!1);_.X7("DEBUG_SETTINGS_METADATA")&&(Z["X-Debug-Settings-Metadata"]=_.X7("DEBUG_SETTINGS_METADATA"));if(L!=="cors"){var N=_.X7("INNERTUBE_CONTEXT_CLIENT_NAME");N&&(Z["X-Youtube-Client-Name"]=N);(N=_.X7("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(Z["X-Youtube-Client-Version"]=
N);(N=_.X7("CHROME_CONNECTED_HEADER"))&&(Z["X-Youtube-Chrome-Connected"]=N);(N=_.X7("DOMAIN_ADMIN_STATE"))&&(Z["X-Youtube-Domain-Admin-State"]=N)}_.Ah("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(L=_.X7("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Z["X-YouTube-Lava-Device-Context"]=L):L!=="cors"&&_.Ah("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(L=_.X7("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Z["X-YouTube-Lava-Device-Context"]=L);return Z};
M_G=function(L,Z){Z.watchNextResponse||Z.reelItemWatchResponse?Z.watchNextResponse?L.content=Z.watchNextResponse:L.content=Z.reelItemWatchResponse:Z.playerResponse?L.player=Z.playerResponse:Z.reelWatchSequenceResponse&&(L.reelSequence=Z.reelWatchSequenceResponse)};
yB=function(L){return function(){return new L}};
w9=function(L){var Z=_.GR();return function(){return Z.resolve(L)}};
_.UC=function(L){if(!L)return null;for(var Z=[],N=0;N<L.textSegments.length;N++){var S=L.textSegments[N];S.text?Z.push(S):S.emojiId&&Z.push({emoji_id:S.emojiId})}return{text_segments:Z}};
DA0=function(L,Z,N,S,u,T,W){T=T===void 0?[]:T;var V=new _.Y0;V.endpoint=N;if(!N)return _.rY(new _.sr("handle undefined endpoint",Z.tagName)),V;var M=bls(N);M.length&&(_.B2(L,M,Z,S),V.actions=M);N.loggingUrls&&N.loggingUrls.forEach(function(D){D.baseUrl&&S2(D.baseUrl,D.attributionSrcMode)});
M=!_.c("web_skip_impression_click_killswitch")&&S&&S.impression;if(N.clickTrackingParams&&!gy0(N)&&!GCt(Z)&&!M&&(M=_.tC(),!_.ew(M,Z))){var G=Z.getScreenLayer&&Z.getScreenLayer();G?M.clickCommand(N,null,G):M.clickCommand(N,null)}M=!1;for(G=0;G<T.length;G++)if((0,T[G])(Z,N,S)){M=!0;break}!M&&Fpw(N)&&(V.ajaxPromise=$A1(L,Z,N,S,u,W));return V};
GCt=function(L){var Z;return(L=(Z=L.data)==null?void 0:Z.navigationEndpoint)&&!!L.clickTrackingParams};
gy0=function(L){var Z=_.n(L,_.ZW);if(Z&&(Z=Z.signal)&&l6F.indexOf(Z)>=0)return!0;for(var N in L)if(vyA.indexOf(N)>=0)return!0;return!1};
Fpw=function(L){var Z;if(((Z=_.n(L,_.ZW))==null?void 0:Z.signal)==="CLIENT_SIGNAL")return!1;for(var N in L)if(oyw.indexOf(N)>=0)return!1;L=Object.keys(L);return L.length===1&&L[0]==="loggingUrls"?!1:!0};
wJH=function(L,Z,N,S,u,T,W){var V=_.IV.instance;if(V&&_.d9(V,S))var M=_.aV(V,S,u).then(function(D){return(D==null?0:D.data)?D:{data:D}});
else M=L.requestDataForServiceEndpoint(S,u),_.n(S,RSF)||_.n(S,cTt)||_.n(S,_.nyG)||_.n(S,Kpx)||_.Q7(new _.sr("No RequestBuilder for endpoint",S));var G=_.hS();G.promise.thenCatch(function(){var D=_.Cn(S,"action")||_.Cn(S,"command")||_.Cn(S,"endpoint");D&&(D=S[D],D.hasOwnProperty("onFailureAction")?_.B2(Z,[D.onFailureAction],N):D.hasOwnProperty("onFailureCommand")&&_.B2(Z,D.onFailureCommand,N));M.cancel("Resolver promise rejected")});
M.then(function(D){if(D){var l=D.error;if(l){if(T&&T.onServerError)T.onServerError(S,D);G.reject(new _.sr("Response error",S,l))}else if(D=D.data)if(l=D.error){if(T&&T.onServerError)T.onServerError(S,D);G.reject(new _.sr("Returned error",S,l))}else{f6w(Z,N,D,S);kCH(D);if(l=VCt(D))for(var v=_.O(l),R=v.next();!R.done;R=v.next()){R=R.value;var K=_.GR().resolve(_.gv(yTt))||sC;if(!_.IV.instance||!K.some(function(d){return!!_.n(S,d)})||_.c("kevlar_response_processor_allowlist_killswitch")){var U=K=void 0;
((U=_.n((K=R)==null?void 0:K.commandMetadata,_.Nj))==null?0:U.sendPost)?_.H2(Z,[R]):_.B2(Z,[R],N)}}(v=_.n(D==null?void 0:D.frameworkUpdates,jw))&&W&&W(v);if(T&&T.onSuccess)T.onSuccess(S,D);G.resolve(new _.EC(D,l))}}else G.reject(new _.sr("Invalid service endpoint provided",S))},function(D){G.reject(D)});
return G.promise};
kCH=function(L){var Z;(L=(Z=_.n(L==null?void 0:L.onResponseReceivedCommand,_.UAw))==null?void 0:Z.continuationItems)&&(L==null?void 0:L.length)===1&&_.n(L[0],Yg_)&&_.Rq("so_r",void 0,"search_overview_answer")};
$A1=function(L,Z,N,S,u,T){var W;return(W=Z.getNetworkManager&&Z.getNetworkManager()?Z.getNetworkManager():_.GR().resolve(_.gv(_.VJ)))?wJH(W,L,Z,N,S,u,T):_.$N("No network manager.")};
f6w=function(L,Z,N,S){if(N=N.trackingParams||N.loggingDirectives&&N.loggingDirectives.trackingParams){var u;(_.n(S,eS_)||_.n(S,I6s)||_.n(S,dAw))&&S.clickTrackingParams?u=_.Mg(S.clickTrackingParams):_.c("web_graft_to_parent_command")&&S.clickTrackingParams&&(u=_.Mg(S.clickTrackingParams));var T;S=(T=Z.getScreenLayer)==null?void 0:T.call(Z);Z=_.tC().graftServerVe(N,u,S);_.Ad(L,"yt-store-grafted-ve-action",[Z])}};
_.a6G=function(L){var Z=new Image;return new _.kE(function(N,S){Z.addEventListener("load",function(){N()});
Z.addEventListener("error",function(){S()});
Z.src=L})};
hS0=function(L){return!!L};
sRf=function(L){return!!L};
jRs=function(L,Z,N){var S=L.rowIndex;S!==void 0&&_.Ad(L.hostElement,"yt-section-reactive-dismissal",[S,Z,N])};
_.PQ=function(L,Z,N){L=_.O(L);for(var S=L.next();!S.done;S=L.next()){S=S.value;if(S===Z)break;for(var u=_.O(N),T=u.next();!T.done;T=u.next())if(T=T.value,S.tagName===T||!_.c("web_event_button_role_check_killswitch")&&S.role==="button"&&T==="BUTTON")return!0}return!1};
_.z0=function(L,Z,N){L=_.O(L);for(var S=L.next();!S.done;S=L.next()){S=S.value;if(S===Z)break;for(var u=_.O(N),T=u.next();!T.done;T=u.next())if(S.id===T.value)return!0}return!1};
_.CV=function(){var L=_.GR().resolve(_.gv(_.mR));return L?(L=L.getCurrentPage())?_.JS(L):null:null};
_.r9=function(){var L=_.CV();if(!L){var Z=_.GR().resolve(_.gv(_.mR)),N=Z?typeof Z:"no page manager";Z=Z?Z.getCurrentPage():null;N=new _.sr("Player is missing when requested.",N,Z?Z.tagName:"no page");_.CA(N)}return L};
_.JS=function(L){return L&&L.getPlayer?L.getPlayer():null};
Eyt=function(L,Z){L={args:{raw_player_response:L}};Z&&(L.args=Object.assign({},L.args,Z));return L};
P1H=function(L){if(L.args){if(L.args.raw_player_response)return L.args.raw_player_response;if(L.args.player_response)return JSON.parse(L.args.player_response)}};
_.pJB=function(L,Z){var N={url:"/watch?v="+L.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};L.playlistId&&(N.url+="&list="+L.playlistId);L.playerParams&&(N.url+="&pp="+L.playerParams);L={watchEndpoint:L,commandMetadata:{webCommandMetadata:N}};Z&&(L.clickTrackingParams=Z);return L};
mAh=function(){return zSt||!!_.LZ("yt.player.Application")};
C1s=function(){return JTH||!!document.querySelector("link#player-css")};
QRA=function(){function L(){zSt=!0;rT_.resolve()}
var Z,N;return _.b(function(S){rT_||(rT_=new _.qe,mAh()?L():(Z=document.createElement("script"),Z.addEventListener("load",L),N=_.jb(_.X7("PLAYER_JS_URL")),_.TE(Z,N),document.head.appendChild(Z)));return S.return(rT_.promise)})};
ATs=function(){function L(){JTH=!0;XJx.resolve()}
if(!XJx)if(XJx=new _.qe,C1s())L();else{var Z=document.createElement("link");Z.id="player-css";Z.addEventListener("load",L);var N=_.jb(_.X7("PLAYER_CSS_URL"));_.Wd(Z,N,"stylesheet");document.head.appendChild(Z)}return XJx.promise};
HRP=function(){return mAh()&&C1s()?Promise.resolve([]):Promise.all([QRA(),ATs()])};
B_F=function(L,Z,N){var S={args:{}};L&&(S.args.raw_player_response=L);Z&&(S.args.raw_watch_next_response=Z);N&&(S.args=Object.assign({},S.args,N));return S};
Zrh=function(L,Z,N){var S=!1;S=S===void 0?!0:S;L=typeof L==="string"?_.QB(document,L):L;var u=xAx+"_"+_.Hs(L),T=qgG[u];if(T&&S)return Lef(Z,N)?T.api.loadVideoByPlayerVars(Z.args||null):T.loadNewVideoConfig(Z),T.api;T=new X6(L,u,Z,N,void 0);qgG[u]=T;T.addOnDisposeCallback(function(){delete qgG[T.getId()]});
return T.api};
Lef=function(L,Z){return Z&&Z.serializedExperimentFlags?Z.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):L&&L.args&&L.args.fflags?L.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
NzP=function(){var L=new _.qe;L.resolved=!1;var Z=L.resolve;L.resolve=function(N){L.resolved=!0;Z(N)};
return L};
irf=function(L){var Z={};SuH().install((Z.document_disposed={callback:L},Z))};
AS=function(L,Z){if(!L&&Math.random()<=_.lQ("kevlar_unified_player_logging_threshold")){L=Error("uh`"+(Z?Z:"Unspecified error"));if(_.c("kevlar_unified_player_throw_errors"))throw L;_.Q7(L)}};
_.u1P=function(){var L=_.LZ("ytDebugData.callbacks");L||(L={},_.bp("ytDebugData.callbacks",L));return L};
tFH=function(L,Z){var N=_.u1P();if(_.c("web_dd_iu")||TzP.includes(L))N[L]=Z};
OrH=function(){return _.b(function(L){return L.return({isLeader:_.JyL(_.Pv().getState()),c:_.X7("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.X7("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
We0=function(){var L;_.b(function(Z){if(Z.nextAddress==1)return tFH("APP_STATE",OrH),Z.yield(_.GR().resolve(_.HQ),2);L=Z.yieldResult;tFH("PI",function(){return _.b(function(N){return N.return(L.getVideoStats())})});
_.w7(Z)})};
VFh=function(L){return!!L&&L.length>0&&L[0].loggingUrls!=null&&L[0].loggingUrls.length>0};
brA=function(){var L=_.X7("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(L==null?void 0:L.length)===2?L[1]:null};
MFH=function(L){if(!L)return[];var Z=[];L=_.O(L);for(var N=L.next();!N.done;N=L.next())if(N=N.value,N.loggingUrls){N=_.O(N.loggingUrls);for(var S=N.next();!S.done;S=N.next())S=S.value,S.baseUrl&&Z.push(S.baseUrl)}return Z};
gc1=function(L){var Z=_.P2(_.e9(_.iH.location.href));L=_.P2(_.e9(L));return _.c("kevlar_clear_non_displayable_url_params")?Z==BQ(L):BQ(Z)==BQ(L)};
BQ=function(L){var Z=_.GOB(L);L=L.slice(0);var N=["frags"];_.c("kevlar_hide_pp_url_param")&&N.push("pp");_.c("kevlar_hide_time_continue_url_param")&&N.push("time_continue");N=_.O(N);for(var S=N.next();!S.done;S=N.next())S=S.value,L=_.zo(_.P2(L),S);return _.P2(L)+(Z?"#"+Z:"")};
x0=function(L,Z){Z=Number(Z)*1E3;var N=Math.round((0,_.GT)()),S=N.toString();L={innertubeResponse:L,serverDateTimestampMs:S,lastModifiedTimestampMs:S,expireTimestampMs:(N+Z).toString()};if(Z=_.X7("INNERTUBE_CONTEXT_CLIENT_NAME"))L.clientName=Z;return L};
$yh=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++FeH};
Dyx=function(L){return!isNaN(L)&&L>0};
vch=function(){_.c("web_adaptive_repeat_ase")&&lEB&&_.mS("applicationStarted",lEB)};
_.ocf=function(){var L=_.oH(),Z=_.RH();Z&&L&&_.hq(Z,[L],!0)};
c6s=function(L){return L&&RWP.some(function(Z){return L.includes(Z)})};
wmP=function(L){var Z=_.n(L,_.Lo);if(!Z)return!1;var N=Z.url,S=Z.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!N)return _.CA(Error("zh")),!1;if(Z.target==="TARGET_NEW_WINDOW"){Z={};_.c("resolve_url_parent_tracking_params")&&(!_.WW(N)||VZ(window.location.href,N))&&(Z={endpoint:L,itct:L.clickTrackingParams});qqs(Z);L=null;try{if(S){a:{var u=N,T=Z;S=S===void 0?!1:S;T&&_.pv(u,T);var W=_.mY(u),V=_.jn(W);u!=V&&_.Zx(Error("Zf`"+u));u=V;try{if(S){V=u;V=rJB(V);fX(V);L=_.Ls(window,V,"_blank",
"attributionsrc");break a}}catch(v){_.H8(v)}fX(u);L=_.Ls(window,W,"_blank")}nc_(_.GR().resolve(KeF),L,N);return!0}}catch(v){_.CA(v)}_.pv(N,Z);Z={target:"_blank",noopener:!1};W=window;V=sn(N)?N:_.mY(typeof N.href!="undefined"?N.href:String(N));S=self.crossOriginIsolated!==void 0;L="strict-origin-when-cross-origin";window.Request&&(L=(new Request("/")).referrerPolicy);u=Z.noreferrer;if(S&&u&&L==="unsafe-url")throw Error("we");L=u&&!S;u=Z.target||N.target;T=[];var M=[],G=!1;for(l in Z){var D=Z[l];switch(l){case "width":case "height":case "top":case "left":T.push(l+
"="+D);break;case "target":break;case "noopener":case "noreferrer":D?M.push(l):(G=!0,M.push(l+"=false"));break;case "attributionsrc":T.push(l+(D?"="+D:""));break;default:T.push(l+"="+(D?1:0))}}var l=u!==void 0&&!["_blank","_self","_top","_parent",""].includes(u);l=y_()&&l;fEh&&S&&T.length===0&&M.length>0&&!l&&!G?(M.length===2&&(M=["noreferrer"]),_.Ls(W,V,u,M[0]),L=kOL()):(l=T.join(","),_.IF()&&W.navigator&&W.navigator.standalone&&u&&u!="_self"?(l=_.wZ("A"),Q8(l,V),l.target=u,L&&(l.rel="noreferrer"),
((Z=Z.attributionsrc)||Z==="")&&l.setAttribute("attributionsrc",Z),Z=document.createEvent("MouseEvent"),Z.initMouseEvent("click",!0,!0,W,1),l.dispatchEvent(Z),l=kOL()):L?(l=_.Ls(W,"",u,l),W=_.jn(V),l&&(l.opener=null,W===""&&(W="javascript:''"),W='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+qV(W)+'">',W=Af(W),(Z=l.document)&&Z.write&&(Z.write(xV(W)),Z.close()))):((l=_.Ls(W,V,u,l))&&Z.noopener&&(l.opener=null),l&&Z.noreferrer&&(l.opener=null)),L=l);nc_(_.GR().resolve(KeF),
L,N);return!0}l=_.ks(N);l=c6s(l)||N==="https://studio.youtube.com/";if(_.WW(N)&&!VZ(window.location.href,N)||l)fX(N),DW(),_.ke(N,void 0,void 0,window.top,y6s);else return _.Q7(new _.sr("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",L)),!1;return!0};
_.eWG=function(L,Z){Z=Z===void 0?0:Z;if(!(_.n(L,UyB)||_.n(L,Yuw)||_.n(L,_.Lo)&&_.n(L,_.Lo).url))return!1;var N,S=(N=_.n(L,_.Lo))==null?void 0:N.url;N=S?{externalLinkData:{url:S}}:null;return _.tC().clickCommand(L,N,Z)};
dyL=function(L,Z,N,S,u){u=u===void 0?{}:u;return function(T){var W,V;var M=((W=L.loggingDirectives)==null?0:(V=W.clientVeSpec)==null?0:V.uiType)?_.Ll(L.loggingDirectives.clientVeSpec.uiType):void 0;u.clickedVisualElement||(u.clickedVisualElement=M);M=IEA(L,Z);N(M,T);M=_.O(M);for(W=M.next();!W.done;W=M.next()){W=W.value;V=S;var G=T,D=u;D.form?D.form.event=G:D.form={element:V,event:G};WQ(W,D)}}};
IEA=function(L,Z){var N=[];Z?(L.toggledCommand&&N.push(L.toggledCommand),L.toggledServiceEndpoint&&N.push(L.toggledServiceEndpoint)):(L.defaultCommand&&N.push(L.defaultCommand),L.defaultServiceEndpoint&&N.push(L.defaultServiceEndpoint),L.defaultNavigationEndpoint&&N.push(L.defaultNavigationEndpoint));return N};
aEG=function(L,Z){var N=L.toggledStyle||L.style,S;switch((S=Z?N:L.style)==null?void 0:S.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"}}};
_.Z7=function(){return _.b(function(L){return L.nextAddress==1?L.yield(_.GR().resolve(_.HQ),2):L.return(_.GR().resolve(hWB)())})};
_.Nr=function(){return _.GR().resolve(hWB)()};
_.SC=function(){return Jh(function(){return{lottieEl:void 0}})};
sCw=function(L,Z){return L.startsWith(Z.uniqueId)};
jCw=function(L){var Z,N;_.b(function(S){if(S.nextAddress==1)return S.yield(_.Z7(),2);Z=S.yieldResult;if((N=Z)==null||!N.addEventListener)return ij(),S.return();Z.addEventListener("onCueRangeEnter",L);_.w7(S)})};
EcA=function(L){var Z,N;_.b(function(S){if(S.nextAddress==1)return S.yield(_.Z7(),2);Z=S.yieldResult;if((N=Z)==null||!N.removeEventListener)return ij(),S.return();Z.removeEventListener("onCueRangeEnter",L);_.w7(S)})};
PSt=function(L){var Z,N,S,u,T;_.b(function(W){if(W.nextAddress==1)return W.yield(_.Z7(),2);Z=W.yieldResult;if((N=Z)==null||!N.addCueRange)return ij(),W.return();S=_.O(L.timings);for(u=S.next();!u.done;u=S.next())T=u.value,Z.addCueRange(L.uniqueId+"-"+T,T/1E3,(T+100)/1E3);_.w7(W)})};
pmw=function(L){var Z,N,S,u,T;_.b(function(W){if(W.nextAddress==1)return W.yield(_.Z7(),2);Z=W.yieldResult;if((N=Z)==null||!N.removeCueRange)return ij(),W.return();S=_.O(L.timings);for(u=S.next();!u.done;u=S.next())T=u.value,Z.removeCueRange(L.uniqueId+"-"+T);_.w7(W)})};
zW0=function(){var L,Z,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(_.Z7(),2);L=S.yieldResult;if((Z=L)==null||!Z.getPlayerState)return ij(),S.return();N=L.getPlayerState();return S.return(N===2)})};
ij=function(){_.Q7(new _.sr("Smartimation player does not exist or is corrupted"))};
myA=function(){try{var L;return(L=window.CSS)!=null&&L.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(Z){return _.Q7(new _.sr("Smartimation CSS.supports threw an error")),!1}};
Hr_=function(L,Z,N,S,u){var T=L.playlistId?J6P:CS_;Z=Z();N=N();u=!!L.videoId&&u()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Wv(Z))return r6G({data:L,actionType:T,disabled:u},N);if(L.videoId&&S())return QCL({data:L,actionType:T,disabled:u});switch(Z){case "TRANSFER_STATE_UNKNOWN":return QCL({data:L,actionType:T,disabled:u});case "TRANSFER_STATE_FAILED":return L.videoId?Xm1({data:L,actionType:T,disabled:u}):A6_({data:L,actionType:T,disabled:u});case "TRANSFER_STATE_COMPLETE":return A6_({data:L,
actionType:T,disabled:u});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return r6G({data:L,actionType:T,disabled:u},N);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return L.videoId?Xm1({data:L,actionType:T,disabled:u}):QCL({data:L,actionType:T,disabled:u});default:return QCL({data:L,actionType:T,disabled:u})}};
Bzx=function(L,Z){var N=L.onTapCommand,S=_.KY(N);if(L.videoId&&_.n(S,_.uj))return _.n(S,_.uj).action=Z,N;L.playlistId&&_.n(S,_.tu)&&(_.n(S,_.tu).action=Z);return N};
QCL=function(L){var Z=L.data;var N=L.actionType;L=L.disabled;return{text:xyF,iconType:"OFFLINE_DOWNLOAD",onTap:Bzx(Z,N.ACTION_ADD),disabled:L}};
r6G=function(L,Z){var N=L.data;var S=L.actionType;L=L.disabled;var u="OFFLINE_DOWNLOAD";Z>=0&&Z<=.1?u="OFFLINE_DOWNLOADING_ZERO":Z>.1&&Z<=.3?u="OFFLINE_DOWNLOADING_TWENTY":Z>.3&&Z<=.5?u="OFFLINE_DOWNLOADING_FORTY":Z>.5&&Z<=.7?u="OFFLINE_DOWNLOADING_SIXTY":Z>.7&&Z<1?u="OFFLINE_DOWNLOADING_EIGHTY":Z===1&&(u="OFFLINE_PIN");return{text:qu_,iconType:u,onTap:Bzx(N,S.ACTION_REMOVE_WITH_PROMPT),disabled:L}};
A6_=function(L){var Z=L.data;var N=L.actionType;L=L.disabled;return{text:LDs,iconType:"OFFLINE_PIN",onTap:Bzx(Z,N.ACTION_REMOVE_WITH_PROMPT),disabled:L}};
Xm1=function(L){var Z=L.data;var N=L.actionType;L=L.disabled;return{text:ZE0,iconType:"OFFLINE_DOWNLOAD",onTap:Bzx(Z,N.ACTION_RETRY),disabled:L}};
_.OS=function(L,Z){var N=BUP();return _.wJ(function(){N();return LHP(L,[_.JW(Z)||""])},{debugName:"LUZslf"},"Z105t")};
NWw=function(L){var Z=_.OS(_.Kk,function(){return L().videoId}),N=_.OS(_.fk,function(){return L().playlistId});
return function(){return L().videoId?Z:L().playlistId?N:_.O(_.nh("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
S1A=function(L){var Z=_.OS(kQ,function(){return L().videoId}),N=_.OS(_.mNP,function(){return L().playlistId});
return function(){return L().videoId?Z:L().playlistId?N:_.O(_.nh(0,void 0,"K4tgOc")).next().value}};
iEF=function(L){var Z=_.OS(_.xN1,function(){return L().videoId});
return function(){return L().videoId?Z:_.O(_.nh(!1,void 0,"Oaxwcf")).next().value}};
uFt=function(L){var Z=_.OS(ryF,function(){return L().videoId});
return function(){return L().videoId?Z:_.O(_.nh("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
TWt=function(){return{}};
_.bE0=function(L,Z,N){return{submitForm:function(){var S,u,T,W;return _.b(function(V){if(V.nextAddress==1){S=t$B(L());if(!S)return V.return();if(S.onSubmit)return OEP(Z),S.onSubmit(),OEP(N),V.return();if(!S.submitConfig||!S.formData)return V.jumpTo(0);S.disableDuringSubmission&&WDF(L(),!0);OEP(Z);return V.yield(V$_(S.submitConfig,S.formData()),3)}u=V.yieldResult;OEP(N);if(((T=u)==null?0:T.submitResult)&&((W=S)==null?0:W.onSubmitResult))S.onSubmitResult(u.submitResult);S.disableDuringSubmission&&WDF(L(),
!1);return V.return()})},
isValid:function(){var S=t$B(L());if(S){var u;return!((u=S.isValid)==null||!u.call(S))}return!0},
isSubmitting:function(){var S,u;return!!((S=t$B(L()))==null?0:(u=S.isSubmitting)==null?0:u.call(S))}}};
_.WT=function(){if(!M$s){var L=_.O(_.nh(new Map,void 0,"Y1XnBc"));M$s=L.next().value;gmt=L.next().value}return M$s};
_.GH1=function(L){gmt(new Map(L))};
t$B=function(L){if(L)return _.WT()().get(L)};
V$_=function(L,Z){var N;return _.b(function(S){return S.nextAddress==1?Z?(N=_.GR().resolve(_.gv(FDB)))&&L.submitId?S.yield(N.submitForm(L.submitId,Z,$sF,L.params,L.clickTrackingParams),2):S.return(Promise.reject(Error("Bh"))):S.return(Promise.reject(Error("Ah"))):S.return(S.yieldResult)})};
WDF=function(L,Z){if(L){var N=_.WT();N().set(L,Object.assign({},N().get(L),{isSubmitting:function(){return Z}}));
_.GH1(N())}};
OEP=function(L){if(L){var Z=_.GR().resolve(_.$s);Z&&(L=_.KY(L()))&&Z.resolveCommand(L)}};
vmx=function(L,Z){Z=Z===void 0?{shouldPersist:!0}:Z;return{useUpdatableData:function(N,S){var u=_.wJ(function(){return L(N())},void 0,"Gmrblb"),T=Ds_(N,u,S,Z);
_.ph(function(){if(u()!=null){lVG.set(u(),T);var W=u();_.zs(function(){lVG.delete(W)})}},"j4hx9b");
return T},
getData:function(N){var S;return(S=lVG.get(L(N)))==null?void 0:S[0]()},
updateData:function(N,S){N=L(N);N=lVG.get(N);if(!N)return!1;var u=_.O(N);N=u.next().value;u=u.next().value;S=S(N());u(S);return!0}}};
Ds_=function(L,Z,N,S){S=S===void 0?{}:S;var u=_.O(_.i4(function(){var V=L(),M=Z();return omA(V,M,N,S)})),T=u.next().value,W=u.next().value;
return[T,function(V){W(V);var M=Z();if(S.shouldPersist&&M!=null){var G,D=(G=N==null?void 0:N.map(function(l){return l()}))!=null?G:[];
_.Vm.set(M,[V,D])}}]};
omA=function(L,Z,N,S){S=S===void 0?{}:S;if(Z==null||!S.shouldPersist)return L;S=_.Vm.get(Z);if(!S)return L;var u=_.O(S);S=u.next().value;var T=u.next().value,W;u=(W=N==null?void 0:N.map(function(V){return V()}))!=null?W:[];
if((T==null?0:T.length)&&(N==null?0:N.length)&&u.some(function(V,M){return V!==T[M]}))return _.Vm.remove(Z),L;
(N==null?0:N.length)&&_.Vm.set(Z,[S,u]);return S};
RwL=function(L){var Z=_.O(_.nh(!0,void 0,"bKtO6d")),N=Z.next().value;Z.next();return function(){var S=UM(L.children());return _.g(_.F,{cond:N,then:function(){return S},
else:L.fallback})}()};
_.bj=function(L){var Z=cnt(L),N=Z.data,S=Z.mapping,u=Z.wrapper;Z=Z.pendingFallback;var T=function(){return nmw(_.JW(N))},W=function(){var V=T(),M=[];
V=_.O(V);for(var G=V.next();!G.done;G=V.next()){var D=void 0;G=G.value;var l=void 0;for(D in G)if(!(!G).hasOwnProperty(D)){l=D;break}(D=l)&&M.push(D)}return M};
return L.data?_.g(RwL,{fallback:Z},function(){return _.g(_.ju,{each:W},function(V,M){var G=u?function(l){return u(function(){return S[V](l,M)},D,M)}:function(l){return S[V](l,M)};
G.debugName||(G.debugName=String(V));if(!S[String(V)])return document.createComment("");G.componentType!==hW&&KD0(String(V));var D=fVA(T,V,M);return _.g(G,{data:D})})}):_.g(_.F7,null)};
cnt=function(L){var Z=L.targetId||kHP(L.children);if(!L.data||!Z)return Object.assign({},L,{mapping:L.children,wrapper:void 0});var N="stamper-"+ynP++,S=function(){var V;return(V=typeof L.targetId==="function"?L.targetId(N):L.targetId)!=null?V:N};
Z=_.O(wP0(function(){var V=nmw(L.data());V.targetId=S;return V})).next().value;
var u=Object.assign({},(_.GR().resolve(_.gv(Ush))||{}).replaceableMapping,L.children);if(L.replacementWrapper){var T=u.notificationTextRenderer,W=u.notificationMultiActionRenderer;T&&(u.notificationTextRenderer=function(V,M){return L.replacementWrapper(T({data:V.data},M))});
W&&(u.notificationMultiActionRenderer=function(V,M){return L.replacementWrapper(W({data:V.data},M))})}return Object.assign({},L,{data:Z,
mapping:u,wrapper:function(V,M,G){return iwh({targetId:S,stamperIndex:G},V)}})};
fVA=function(L,Z,N){var S;return _.wJ(function(){var u=L()[N()];if(u)S=u[Z];else return _.Q7(new _.sr("Stamper failed to find "+String(Z)+" at index "+N()+" of data array of length "+(L().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),S;return u[Z]},void 0,"Md3d6e")};
kHP=function(L){L=_.O(Object.keys(L));for(var Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Y1f.includes(Z)||ew1.includes(Z)||IVG.includes(Z))return!0;return!1};
nmw=function(L){return L?Array.isArray(L)?L:[L]:[]};
KD0=function(L){if(_.c("web_enable_renderer_logger")){var Z;(Z=_.GR().resolve(_.gv(ds_)))!=null&&Z.loggingEnabled&&!Z.ids.has(L)&&Z.ids.add(L)}};
aVA=function(){var L,Z;return(Z=(L=_.GR().resolve(_.gv(_.d$)))==null?void 0:L())!=null?Z:!1};
soB=function(L,Z){L=L===void 0?hwG:L;switch(Z.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},L,{isOpen:Z.payload});default:return L}};
EmH=function(L,Z){L=L===void 0?jox:L;switch(Z.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},L,{isAllowed:Z.payload});default:return L}};
pP_=function(L,Z){L=L===void 0?PE1:L;switch(Z.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},L,{errorMessage:Z.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},L,{title:Z.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},L,{privacy:Z.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},L,{isDisabled:Z.payload});default:return L}};
mss=function(L,Z){L=L===void 0?zwA:L;switch(Z.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},L,{isOpen:Z.payload});default:return L}};
CEA=function(L,Z){L=L===void 0?Jnh:L;switch(Z.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},L,{isFullscreen:Z.payload});case "SET_NAVIGATION_BUTTON":var N=Z.payload.targetId,S=Object.assign({},L.navigationButtons);S[N]=Z.payload.button;return Object.assign({},L,{navigationButtons:S});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},L,{topPanelId:Z.payload});case "SET_SECONDARY_HEADER":return N=Z.payload.panelId,S=Object.assign({},L.secondaryHeader),S[N]=Z.payload.secondaryHeader,
Object.assign({},L,{secondaryHeader:S});default:return L}};
An_=function(){return Yd(Object.assign({},{voiceSearch:out,engagementPanel:CEA,bottomSheet:soB,cinematicSetting:EmH,shorts:woP,drawerLayout:mss,createPlaylist:pP_,locationCollection:rnG,reportChannel:QoA,reportForm:XPx},UoL))};
HE_=function(L,Z){_.ro.addLowPriorityJob(function(){var N,S,u;return _.b(function(T){switch(T.nextAddress){case 1:return _.RS(T,2),T.yield(UMG(),4);case 4:return T.yield(fetch(L),5);case 5:return N=T.yieldResult,T.yield(N.json(),6);case 6:S=T.yieldResult;F6.set(L,S);requestAnimationFrame(function(){Z(S)});
_.SX(T,0);break;case 2:u=_.yd(T),_.Q7(u),_.w7(T)}})})};
BW_=function(L){var Z={animationConfig:{},listeners:{}},N=function(){L(!0)};
Z.listeners.data_failed=N;Z.listeners.error=N;Z.listeners.data_ready=function(){L(!1)};
return Z};
LfH=function(L){var Z=L.model;var N=L.subscribed;var S=L.isOverlay;var u=L.element;var T=L.commandController;var W=L.notificationState;if(N){var V,M;var G=(Z==null?void 0:(V=Z.buttonStyle)==null?void 0:V.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:Z==null?void 0:(M=Z.unsubscribeButtonContent)==null?void 0:M.buttonText}else{var D;G=Z==null?void 0:(D=Z.subscribeButtonContent)==null?void 0:D.buttonText}a:{var l;switch(Z==null?void 0:(l=Z.buttonStyle)==
null?void 0:l.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":V="S";break a;default:V="M"}}a:if(S)S="overlay";else switch(Z.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":S="overlay";break a;default:S="mono"}a:if(N)var v="tonal";else switch((v=Z.buttonStyle)==
null?void 0:v.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":v="tonal";break a;default:v="filled"}return{style:S,type:v,state:Z.disableSubscribeButton?"disabled":"active",size:V,focused:L.focused,toggled:N,accessibilityLabel:xsw(Z,N,W),buttonText:G,iconPosition:Z.disableNotificationBell?"none":"leading-trailing",onTap:q1f(Z,N,u,T),disableTextEllipsis:!!L.disableTextEllipsis}};
q1f=function(L,Z,N,S){return function(u){if(Z){var T;var W=L.disableNotificationBell?_.KY(L==null?void 0:(T=L.unsubscribeButtonContent)==null?void 0:T.onTapCommand):_.KY(L==null?void 0:L.onShowSubscriptionOptions)}else{var V;W=_.KY(L==null?void 0:(V=L.subscribeButtonContent)==null?void 0:V.onTapCommand)}W&&WQ(W,{form:{element:N==null?void 0:N.value},commandController:S});u.stopPropagation()}};
xsw=function(L,Z,N){if(Z){if(L==null?0:L.disableNotificationBell){var S;return L==null?void 0:(S=L.unsubscribeButtonContent)==null?void 0:S.accessibilityText}switch(N){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var u;return L==null?void 0:(u=L.bellAccessibilityData)==null?void 0:u.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var T;return L==null?void 0:(T=L.bellAccessibilityData)==null?void 0:T.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var W;return L==null?void 0:(W=
L.bellAccessibilityData)==null?void 0:W.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var V;return L==null?void 0:(V=L.bellAccessibilityData)==null?void 0:V.disabledLabel;default:var M;return L==null?void 0:(M=L.unsubscribeButtonContent)==null?void 0:M.accessibilityText}}else{var G;return L==null?void 0:(G=L.subscribeButtonContent)==null?void 0:G.accessibilityText}};
ZgA=function(L,Z){return _.Lk(L.entities,"subscriptionStateEntity",Z)};
NtA=function(L,Z){return _.Lk(L.entities,"subscriptionNotificationStateEntity",Z)};
SaA=function(L,Z){return _.Lk(L.entities,"upcomingEventReminderStateEntity",Z)};
ig1=function(L,Z){return _.Lk(L.entities,"commentEntityPayload",Z)};
uVP=function(L,Z){return _.Lk(L.entities,"engagementToolbarSurfaceEntityPayload",Z)};
Ttx=function(L,Z){return _.Lk(L.entities,"triStateButtonStateEntityPayload",Z)};
tvx=function(L,Z){return _.Lk(L.entities,"commerceCartCheckoutButtonEntity",Z)};
Ogt=function(L,Z){return _.Lk(L.entities,"commandEntity",Z)};
Wfh=function(L){if(L){switch(L){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":L="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":L="NOTIFICATIONS_OFF";break;default:L="NOTIFICATIONS_NONE"}return L}};
Vv1=function(L,Z,N){N.subscribed!==Z&&((N=N.key)&&_.sk(_.Mr("subscriptionStateEntity",N,{key:N,subscribed:Z})),L.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:Z})),Z||_.XJ(L,"yt-unsubscribe-action"))};
gH1=function(L){L=_.n(_.KY(L),_.bgL);var Z,N,S,u;return(u=_.n(L==null?void 0:(Z=L.panelLoadingStrategy)==null?void 0:(N=Z.inlineContent)==null?void 0:(S=N.sheetViewModel)==null?void 0:S.content,Mvh))==null?void 0:u.listItems};
Gr0=function(L,Z){if(L.onShowSubscriptionOptions&&Z&&(L=gH1(L.onShowSubscriptionOptions),L!=null&&L.length)){var N=Wfh(Z);L.forEach(function(S){S=_.n(S,_.gm);var u,T,W,V,M=S==null?void 0:(u=S.leadingImage)==null?void 0:(T=u.sources)==null?void 0:(W=T[0])==null?void 0:(V=W.clientResource)==null?void 0:V.imageName;S&&M&&(S.isSelected=M===N)})}};
FfF=function(L,Z,N,S){Z&&N?L.style.width=N+"px":!Z&&S&&(L.style.width=S+"px")};
$SF=function(L,Z,N){var S;(S=L.lottieEl)==null||S.goToAndPlay(0);var u;(u=Z.lottieEl)==null||u.goToAndPlay(0);_.Gq(_.ro,function(){var T;(T=N.lottieEl)==null||T.goToAndPlay(0)},300)};
DSL=function(L){return!(L==null||!L.iconName||(L==null?0:L.title))};
lo_=function(L,Z,N,S){N&&_.ro.cancelJob(N);N=_.ro.addLowPriorityJob(function(){S(void 0)},5E3);
S(N);Z&&L!==(Z.likeStatus==="LIKE")&&Z.key&&_.sk(_.Mr("likeStatusEntity",Z.key,{key:Z.key,likeStatus:L?"LIKE":"INDIFFERENT",hadUserInteraction:L}))};
_.vHB=function(L,Z){return _.Lk(L.entities,"accountLinkStatusEntity",Z)};
oHs=function(L,Z){return _.Lk(L.entities,"hatsSurveyEntity",Z)};
Rgf=function(L,Z){return _.Lk(L.entities,"hatsSurveyStateEntity",Z)};
cos=function(L,Z){return _.Lk(L.entities,"quantityIncrementerEntity",Z)};
nHH=function(L){switch(L){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
KfA=function(L){switch(L){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}};
fox=function(L){switch(L){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"}};
_.yo1=function(L){var Z=_.lQ("web_generic_client_event_wait_period ",0);Z||(Z=3E5);var N=krs.get(L);!_.c("enable_web_client_experiment_event_timeout_killswitch")&&N&&(0,_.GT)()-N<Z||(krs.set(L,(0,_.GT)()),_.mS("genericClientExperimentEvent",{eventType:L}))};
_.wjA=function(L,Z){var N,S,u,T;a:{var W=L.style;if(W===void 0)W=17;else switch(W){case "LIVE":W=18;break a;default:W=17}}return{type:W,text:Z?Sww({seconds:Z}):_.jM(L.text),accessibilityText:(N=L.text)==null?void 0:(S=N.accessibility)==null?void 0:(u=S.accessibilityData)==null?void 0:u.label,icon:(T=L.icon)==null?void 0:T.iconType}};
USw=function(L){switch(L){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
Yaf=function(L){if(!L)return"";var Z,N=(Z=_.GR().resolve(_.gv(_.d$)))==null?void 0:Z(),S;if(!N&&((S=L.vibrantColorPalette)==null?0:S.iconInactiveColor))return cq(L.vibrantColorPalette.iconInactiveColor,"1");var u;return N&&((u=L.darkColorPalette)==null?0:u.iconInactiveColor)?cq(L.darkColorPalette.iconInactiveColor,"1"):L.color?cq(L.color,"1"):L.sampledThumbnailColor?(L=L.sampledThumbnailColor,"rgba("+L.red+","+L.green+","+L.blue+");"):""};
_.FM=function(L,Z){if(!L.includes("DATE_PLACEHOLDER"))return L;var N=new Date(0);N.setUTCSeconds(Z);return L.replace("DATE_PLACEHOLDER",eg0(N))};
IoB=function(L,Z,N){return function(S){var u=L.command;u&&(WQ(u,{form:{element:N}}),Z([u],S))}};
aof=function(L,Z,N,S,u){return function(T){var W=dS1(L,Z);W&&WQ(W,{form:{element:N},commandController:S});u&&T.stopPropagation()}};
dS1=function(L,Z){if(L.signInEndpoint&&!_.c("web_subscribe_sign_in_endpoint_killswitch"))return L.signInEndpoint;if(Z){if(L.serviceEndpoints)return L.serviceEndpoints[1];if(L.onUnsubscribeEndpoints)return L.onUnsubscribeEndpoints[0]}else{if(L.serviceEndpoints)return L.serviceEndpoints[0];if(L.onSubscribeEndpoints)return L.onSubscribeEndpoints[0]}};
hgh=function(L,Z){var N,S,u,T;Z=Z&&((N=L.unsubscribeAccessibility)==null?void 0:(S=N.accessibilityData)==null?void 0:S.label)||((u=L.subscribeAccessibility)==null?void 0:(T=u.accessibilityData)==null?void 0:T.label);return L.longSubscriberCountText?[Z,_.jM(L.longSubscriberCountText)].filter(function(W){return W}).join(" "):Z};
$9=function(L,Z){return Z||(L==null?0:L.isChannelDelegate)?"disabled":"active"};
skG=function(L,Z){var N;switch((N=L.style)==null?void 0:N.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:$9(L)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:$9(L)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:$9(L,!0)};case "OVERLAY":return Z?{style:"overlay",type:"tonal",state:$9(L)}:{style:"overlay",type:"filled",state:$9(L)};default:return Z?{style:"mono",type:"tonal",state:$9(L)}:{style:"mono",type:"filled",state:$9(L)}}};
_.D7=function(){for(var L=[],Z=_.O(_.CG.apply(0,arguments)),N=Z.next();!N.done;N=Z.next())if(N=N.value)if(typeof N==="string")L.push(N);else{N=_.O(Object.entries(N));for(var S=N.next();!S.done;S=N.next()){var u=_.O(S.value);S=u.next().value;(u=u.next().value)&&L.push(S)}}return L.join(" ")};
jkw=function(L){switch(L){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
EHw=function(L){switch(L){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
Pft=function(L,Z){var N=L.map(function(S){return S.toString()});
return _.Z9(function(S){if(N.includes(S.key)){Z&&S.preventDefault();var u;(u=S.currentTarget)==null||u.click()}})};
_.pjs=function(){return Pft(["Enter"])};
_.zgt=function(){return Pft(["Enter"," "],!0)};
_.lj=function(L){if(L.composedPath)return L.composedPath();if(!L.__composedPath){for(var Z=[],N=L.target;N;)Z.push(N),N=N.parentNode;Z.push(window);L.__composedPath=Z}return L.__composedPath};
_.vT=function(L,Z,N){L=_.O(L);for(var S=L.next();!S.done;S=L.next()){S=S.value;if(S===Z)break;for(var u=_.O(N),T=u.next();!T.done;T=u.next())if(T=T.value,S.tagName===T||S.role==="button"&&T==="BUTTON")return!0}return!1};
Jo0=function(L,Z){var N,S=(N=Z.observer)!=null?N:_.GR().resolve(Fl);if(L){N=mSL(L);var u=[];Z.showOption&&u.push(S.observe(L,function(){Z.visibilityCallback(!0,L)},Z.showOption));
Z.hideOption&&u.push(S.observe(L,function(){Z.visibilityCallback(!1,L)},Z.hideOption));
Z.prescanOption&&Z.prescanCallback&&u.push(S.observe(L,function(){Z.prescanCallback()},Z.prescanOption));
var T;N.visibilityMonitorKeys=((T=N.visibilityMonitorKeys)!=null?T:[]).concat(u)}};
mSL=function(L){var Z;return(Z=L.polymerController)!=null?Z:L};
_.Rb=function(L){return!!_.ob(L)};
_.cT=function(L,Z,N,S,u){return function(T){var W=Sss();_.ph(function(){if(T){Cf0(T,L(),u);var V=roP(T,L(),Z,N,S,W);_.zs(V)}},"nr377e")}};
Cf0=function(L,Z,N){var S=QkB(Z),u=XjH(Z);Z=S&&Ao1;var T=u&&Hgs;(S||u)&&Jo0(L,{visibilityCallback:function(W){var V=_.GR().resolve(_.$s);W&&S?V.resolveCommand(S,{form:{element:N?L:void 0},disableClickTracking:!0}):!W&&u&&V.resolveCommand(u,{form:{element:N?L:void 0},disableClickTracking:!0})},
showOption:Z,hideOption:T})};
roP=function(L,Z,N,S,u,T){var W=new Map;if(Z=_.ob(Z)){var V;L=(S==null?void 0:(V=S.onTap)==null?void 0:V.value)||L;N=BtL(Z,L,N==null?void 0:N.onTap,u,T);L.addEventListener("click",N);W.set("click",N)}return function(){for(var M=_.O(W),G=M.next();!G.done;G=M.next()){var D=_.O(G.value);G=D.next().value;D=D.next().value;L.removeEventListener(G,D)}}};
_.ob=function(L){var Z;return(L=(Z=_.n(L,xSf))==null?void 0:Z.onTap)&&_.KY(L)};
QkB=function(L){var Z;return(L=(Z=_.n(L,xSf))==null?void 0:Z.onVisible)&&_.KY(L)};
XjH=function(L){var Z;return(L=(Z=_.n(L,xSf))==null?void 0:Z.onHidden)&&_.KY(L)};
BtL=function(L,Z,N,S,u){var T=function(V){_.GR().resolve(_.$s).resolveCommand(L,V)},W=function(V){S&&_.vT(_.lj(V),Z,S)||T(V.target?{form:{element:V.target,
sourceData:L,mutationContext:u}}:void 0)};
N&&(W=function(V){N(V,T)});
return W};
qaf=function(L){switch(L){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}};
Lr0=function(L){var Z=L.numAvatarsInCluster;switch(L.clusterSize){case "small":return Z===2?22:18;case "40":return Z===2?24:22;default:return Z===2?24:20}};
Z_F=function(L,Z){return function(N){var S=Object.keys(Z);_.ph(function(){if(L!=null&&L()){for(var u=_.O(S),T=u.next();!T.done;T=u.next())T=T.value,N.addEventListener(T,Z[T]);_.zs(function(){for(var W=_.O(S),V=W.next();!V.done;V=W.next())V=V.value,N.removeEventListener(V,Z[V])})}},"bXZGfe")}};
NNG=function(L){switch(Lr0(L)){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""}};
SQA=function(L){switch(L){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""}};
i_B=function(L){switch(Lr0(L)){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""}};
u01=function(L){switch(L){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""}};
TNF=function(L){switch(L){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}};
t8w=function(L){return L==="medium"||L==="48"||L==="large"||L==="extra-large"||L==="extra-extra-large"||L==="giant"};
O_P=function(L){return!!((L==null?0:L.includes(3))||(L==null?0:L.includes(5)))};
V8h=function(L){var Z=L.data;return{size:Wrw(Z.avatarImageSize),type:Z.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:L.onTap,decorations:L.decorations||[],badgeText:L.badgeText,accessibilityText:L.accessibilityText,avatarButtonCustomClassName:L.avatarButtonCustomClassName,clusterLayoutConfig:L.clusterLayoutConfig}};
Wrw=function(L){switch(L){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"}};
b_F=function(L){switch(L){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}};
M8G=function(L){switch(L){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""}};
glw=function(L){var Z=L.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",N,S=L.avatars&&L.avatars.length>0?(N=_.n(L.avatars[0],_.nl))==null?void 0:N.avatarImageSize:"AVATAR_SIZE_UNKNOWN";N=b_F(S)||0;if(Z){var u,T=(u=L.avatarClusterSize)!=null?u:"AVATAR_SIZE_M";Z=b_F(T);var W,V,M=Math.min((V=(W=L.avatars)==null?void 0:W.length)!=null?V:0,4),G;return{avatars:((G=L.avatars)==null?void 0:G.slice(0,4))||[],avatarSizeInPx:N,avatarStackStyle:{width:Z+"px",height:Z+"px",position:"relative"},avatarStyle:function(l){var v=
Lr0({clusterSize:Wrw(T),numAvatarsInCluster:M,avatarIndex:l});var R=b_F(T);M===3&&l===2?(R=(R-v)/2,R=(_.X7("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*R):R=void 0;return{position:"absolute",top:M===2&&l===1||M===3&&l===2||M===4&&l>=2?"0":void 0,bottom:M===2&&l===0||M>2&&l<2?"0":void 0,left:M===2&&l===1||M>2&&(l===1||l===3)?"0":void 0,right:M<=3&&l===0||M===4&&(l===0||l===2)?"0":void 0,transform:R?"translateX("+R+"px)":void 0,width:v+"px",height:v+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(l){return{clusterSize:Wrw(L.avatarClusterSize),numAvatarsInCluster:M,avatarIndex:l}},
avatarButtonCustomClassName:void 0}}var D;return{avatars:((D=L.avatars)==null?void 0:D.slice())||[],avatarSizeInPx:N,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:M8G(S),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
Gj0=function(L,Z,N){return function(){WQ(L,{form:{element:Z},commandController:N})}};
FrA=function(L){switch(L){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
$D0=function(L){switch(L){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"}};
DDs=function(L){if("accessibilityText"in L)return L.accessibilityText||"";if("title"in L){var Z,N,S;return((Z=L.title)==null?void 0:(N=Z.accessibility)==null?void 0:(S=N.accessibilityData)==null?void 0:S.label)||""}if("accessibility"in L){var u,T;return((u=L.accessibility)==null?void 0:(T=u.accessibilityData)==null?void 0:T.label)||""}return""};
lBP=function(L){return"inlinePlayerData"in L};
Kl=function(L){return new vlP(L)};
olG=function(L){return function(Z){L&&(L.thumbnailElRef=Z.thumbnailElRef,L.thumbnail=Z.thumbnail,L.thumbnailOverlays=Z.thumbnailOverlays,L.thumbnailSize=Z.thumbnailSize)}};
RfF=function(L){switch(L){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
nl0=function(L){var Z=_.O(_.nh(!1,void 0,"E6wDDe")),N=Z.next().value,S=Z.next().value;_.m0(function(){var u=L==null?void 0:L();if(u){var T=_.GR().resolve(_.gv(cgw));if(T){var W={triggeringElement:u,onDwellTriggeredFn:function(){S(!0)},
onDwellEndFn:function(){S(!1)}};
T.registerElement(W);_.zs(function(){_.fl(T,W)})}}});
return N};
KrB=function(L,Z,N){N?N(Z):_.w$(Z,L.target?{form:{element:L.target}}:void 0)};
_.k9=function(L,Z,N,S){return function(u){_.ph(function(){function T(D){D=D.composedPath();D=_.O(D);for(var l=D.next();!l.done;l=D.next()){l=l.value;if(l===u)break;if(l.className.indexOf("HostIsClickableAdComponent")>=0||l.tagName==="A".toString()||l.tagName==="BUTTON".toString())return!0}return!1}
var W=new Map,V,M=(V=L())==null?void 0:V.onTap;if(M){V=function(D){T(D)||KrB(D,M,Z)};
var G=function(D){T(D)||D.key!=="Enter"||KrB(D,M,Z)};
(N==null?0:N())||_.c("enable_web_home_top_landscape_image_layout_level_click")?(u.addEventListener("tap",V),W.set("tap",V)):(u.addEventListener("click",V),W.set("click",V));if(S==null?0:S())u.addEventListener("keydown",G),W.set("keydown",G)}_.zs(function(){for(var D=_.O(W),l=D.next();!l.done;l=D.next()){var v=_.O(l.value);l=v.next().value;v=v.next().value;u.removeEventListener(l,v)}})},"D7XqOc")}};
fBf=function(L,Z){var N,S=(N=L.interaction)==null?void 0:N.onTap;if(L=_.kN({elementsCommand:S,forceNewState:!0,skipOnClick:!0}))return L.onclick=function(u){v8s(u)&&(u.preventDefault(),S&&KrB(u,S,Z))},yV(L)?L:void 0};
kjA=function(L){switch(L){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
ygG=function(L){switch(L){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"}};
wk1=function(L){switch(L){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"}};
_.UDt=function(L){return _.c("rich_grid_enable_dynamic_offset")&&L?Math.max(Math.round((L-_.lQ("rich_grid_dynamic_offset_anchor_width",1300))/100*_.lQ("rich_grid_dynamic_offset_offset_per_100",10)),_.lQ("rich_grid_dynamic_offset_lower_bound",-60)):0};
YQ_=function(L,Z){switch(Z){case 4:return 16;case 1:return L<528?16:L<1024?32:48;case 2:return(L>=528?16:8)/2;case 3:return(L<528?16:L<1024?32:48)+(L>=528?16:8)/2;default:return 0}};
efx=function(L){var Z=L.originalContainerWidth;var N=L.sizing;var S=L.standardUnit;if(L.isCompactList&&Z<528)return 1;switch(N){case "STANDARD":return S;case "COMPACT":return S+1;case "EXTRA_COMPACT":return _.c("web_responsive_extra_compact_2x")?S*2:_.c("web_responsive_current")?S===1?2:S%2===0?S/2*3:S+2:S<4?S*2:Math.ceil(S*3/2);case "MINI":return S>1?S*2:3;default:return S}};
dDB=function(L){var Z=L.containerWidth;var N=L.peek;var S=L.gutter;var u=L.numItems;L=L.ignoreMaxWidthLimit;Z=N?Math.max((Z-N-S*u)/u,0):Math.max((Z-S*(u-1))/u,0);return L?Z:Math.min(Z,IBL)};
_.ym=function(L){var Z=L.containerWidth;var N=L.hasPeek;var S=L.sizing;var u=L.marginSettings;var T=L.isCompactList;var W=L.enableFullBleedForSingleCol;var V=L.standardUnitMinWidth;S=S||"STANDARD";N=!!N;L=Z>=528?16:8;var M=N?Z>=528?48:24:0;u=YQ_(Z,u);var G=Math.max(Z-u*2,0);V=_.c("kevlar_disable_min_width_override")?void 0:V;V=Math.min(Math.max(Math.floor((G-M+L)/((V!=null?V:aBh)+_.UDt(Z)+L)),1),6);var D=(W=!!W&&V===1)||V===1&&S!=="STANDARD";N=N||D?G:Math.min(G,(IBL+L)*V-L);S=efx({originalContainerWidth:Z,
sizing:S,standardUnit:V,isCompactList:T});return{itemWidth:dDB({containerWidth:N,peek:M,gutter:L,numItems:S,ignoreMaxWidthLimit:D}),gutter:L,maxContainerWidth:N,numItems:S,margin:W?0:u,contentMargin:YQ_(Z,1),typographyBump:dDB({containerWidth:N,peek:M,gutter:L,numItems:V,ignoreMaxWidthLimit:D})>400&&!(T&&Z<528),standardUnit:V}};
wm=function(L){switch(L){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.hfF=function(L){if(L){var Z;if((Z=L.responsiveContainerConfiguration)==null?0:Z.responsiveSize)return wm(L.responsiveContainerConfiguration.responsiveSize);if(L.layoutSizing)switch(L.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"}}};
sPt=function(L){if(L.fullbleed)return 1;switch(L.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
pkw=function(L,Z,N,S,u,T,W,V){a:if(L===4&&S==="LOCKUP_CONTENT_TYPE_SOURCE")var M=1;else switch(L){case 3:M=1;break a;default:M=0}a:switch(L){case 4:T=!!(T&&T<100);break a;default:T=!1}a:switch(L){case 3:case 4:var G=S==="LOCKUP_CONTENT_TYPE_CHANNEL"||S==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:G=!1}a:switch(L){case 5:var D=!0;break a;case 4:D=!1;break a;default:D=!1}return{isOverlay:D,isCard:jPF(S,W),sizing:Z!=null?Z:"STANDARD",typographyBump:N!=null?N:!1,isTiny:T,isCentered:G,isCollection:Elx(S),
arrangement:M,addMarginForFullbleed:L===1&&S!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:L===1&&S==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:PW0(S,u,V),disableRounding:L===5||jPF(S,W)||L===1&&S==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:Elx(S)?2:0,useLegacyTypography:!(V==null||!V.useLegacyTypography),useRichGridLegacyTypography:!(V==null||!V.useRichGridLegacyTypography)&&!_.c("web_enable_typography_bump"),compactMetadata:M===0&&S==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:V==null?void 0:V.onFocusEffect}};
Elx=function(L){switch(L){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}};
jPF=function(L,Z){if(Z&&L==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(L){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
PW0=function(L,Z,N){if(Z&&(N==null||!N.alwaysRespectPodcastShowAspectRatio||L!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(L){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}};
zfx=function(L){switch(L){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"}};
mDw=function(L){switch(L){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
JgG=function(L){switch(L){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}};
_.US=function(L){if(L){var Z;return((Z=_.GR().resolve(_.gv(_.d$)))==null?0:Z())?L.darkThemeImage:L.image}};
QPh=function(L,Z,N,S,u,T){if(u&&T&&Z==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:u,height:T};if(!N)return{};u=N.size;N=N.allowFullWidth;if(Z==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&N)return{fullWidth:!0};if(u===void 0)return{};switch(L){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:u,height:u};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:u,height:1/CWx*u};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:u*
rgf,height:u};default:return(S==null?0:S.height)&&(S==null?0:S.width)?S.width/S.height>1?{maxWidth:u*rgf}:{maxWidth:u}:{maxWidth:u}}};
XkB=function(L){var Z;return L&&((Z=_.US(L.themedImage))!=null?Z:L.image)};
AgF=function(L){var Z;return L==null?void 0:(Z=L.sources)==null?void 0:Z[0]};
H_f=function(L){switch(L){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"}};
_.BNB=function(L){if(L)return"content-id-"+L};
xDs=function(L){switch(L.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"}}};
qQ_=function(L){var Z=_.Y9.currentPageSubTypeSelector(_.hJ().getState())||"";return L?L+Z:""};
L9H=function(L){switch(L){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
Nh0=function(L){var Z=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],N=_.O(_.nh(void 0,void 0,"JrqNsb")),S=N.next().value,u=N.next().value,T=_.O(_.nh(void 0,void 0,"rWytse"));N=T.next().value;var W=T.next().value;T=_.O(_.nh(void 0,void 0,"DHRqxe"));var V=T.next().value,M=T.next().value;return{touchFeedbackEvents:{pointerUpEvent:S,pointerDownEvent:N,pointerLeaveEvent:V},touchFeedbackOnPointerUp:_.Z9(function(G){ZCG(_.lj(G),Z)||(u(G),W(void 0),M(void 0))}),
touchFeedbackOnPointerDown:_.Z9(function(G){L==null||L(G);ZCG(_.lj(G),Z)||(W(G),u(void 0),M(void 0))}),
touchFeedbackOnPointerLeave:_.Z9(function(G){ZCG(_.lj(G),Z)||(M(G),W(void 0),u(void 0))})}};
ZCG=function(L,Z){Z=Z===void 0?[]:Z;Z=[].concat(_.Pd(Z),["BUTTON".toString()]);L=_.O(L);for(var N=L.next();!N.done;N=L.next()){N=N.value;for(var S=_.O(Z),u=S.next();!u.done;u=S.next())if(N.tagName===u.value)return!0}return!1};
SHL=function(L){switch(L){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"}};
iCP=function(L){return L.scrollHeight-L.offsetHeight>1};
uS1=function(L,Z){var N;return IX(L,((N=L.content)==null?void 0:N.length)||0,!Z)};
OCA=function(L,Z,N,S,u,T){if(!Z||Thx){var W;return IX(L,((W=L.content)==null?void 0:W.length)||0,!0)}Z=S.value;if(!N.value||!Z||!L.content)return L;N=0;S=L.content.length;W=0;tI1||(tI1=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var V=tI1;for(u=u*T*V;N<=S;)T=Math.floor(N+(S-N)/2),V=IX(L,T)||L,Z.firstChild&&(Z.firstChild.textContent=V.content),Z.scrollHeight>u?S=T-1:(W=T,N=T+1);return IX(L,W)};
W9s=function(L,Z){var N,S;return(((N=L.content)==null?void 0:N.length)||0)>(((S=Z.content)==null?void 0:S.length)||0)};
VI_=function(L,Z,N,S,u,T){var W=_.t2("truncated-text-content"),V=_.t2("truncated-text-content"),M=_.t2("button"),G=_.t2("button"),D=_.t2("button"),l=_.GR().resolve(_.hC),v=_.O(_.i4(function(){return uS1(L(),u())})),R=v.next().value,K=v.next().value;
v=_.O(_.i4(function(){return W9s(L(),R())}));
var U=v.next().value,d=v.next().value,h=null;_.ph(function(){function E(){if(W.value&&M.value&&D.value){var C=T()?L():OCA(L(),u(),W,V,Z(),N());K(C);requestAnimationFrame(function(){if(W.value&&M.value&&D.value){var X=iCP(W.value)||W9s(L(),C);d(X);if(!S()){var L1=iCP(W.value),Fw=N(),GB=W.value,Yt=M.value,lH=D.value,RF=l==="rtl";if(GB&&Yt){var jf=Yt.offsetLeft;RF&&(jf=GB.offsetWidth-Yt.offsetWidth-Yt.offsetLeft);if(X){X=Yt.offsetWidth;Yt=GB.offsetWidth;var f1=L1?Yt-X-70:jf-70;Fw="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
Fw+"rem,\n      #000 "+Fw+"rem,\n      #000 100%), linear-gradient(\n      to "+((RF?"left":"right")+",\n      #000 0px,\n      #000 "+f1+"px,\n      transparent "+(L1?Yt-X:f1+70)+"px)");GB.style.setProperty("-webkit-mask-image",Fw);GB.style.setProperty("mask-image",Fw)}else GB.style.setProperty("-webkit-mask-image",""),GB.style.setProperty("mask-image","");L1?RF?(lH.style.setProperty("left","0"),lH.style.setProperty("right","unset")):(lH.style.setProperty("left",""),lH.style.setProperty("right",
"0")):RF?(lH.style.setProperty("left","unset"),lH.style.setProperty("right",jf+"px")):(lH.style.setProperty("left",jf+"px"),lH.style.setProperty("right","unset"))}}}})}}
var A,J;(A=h)==null||(J=A.stop)==null||J.call(A);A=new _.Sw(E,17);E();h=A},"KjwIxd");
_.m0(function(){K(uS1(L(),u()));d(W9s(L(),R()));var E=function(){tI1=void 0;var J,C;(J=h)==null||(C=J.fire)==null||C.call(J)};
if(window.ResizeObserver){var A=new ResizeObserver(E);A.observe(W.value);_.zs(function(){var J,C;(J=h)==null||(C=J.stop)==null||C.call(J);A.disconnect()})}else window.addEventListener("resize",E),_.zs(function(){var J,C;
(J=h)==null||(C=J.stop)==null||C.call(J);window.removeEventListener("resize",E)})});
return{isTruncated:U,displayText:R,contentRef:W,hiddenRef:V,placeholderTruncationTextRef:M,hiddenTruncationTextRef:G,truncationTextRef:D}};
bCL=function(L){return{content:L!=null?L:""}};
MIH=function(L){return _.KY(L.onTap)||_.ob(L.rendererContext)};
gqs=function(L){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:L.overflowMenuA11yLabel,onTap:function(Z){Z.preventDefault();Z.stopPropagation();if(L.overflowMenuOnTap){var N=_.kN({elementsCommand:L.overflowMenuOnTap,forceNewState:!0});if(N==null?0:N.onclick)N.onclick(Z)}}}};
_.eC=function(L,Z,N,S,u){S=S===void 0?{}:S;if(!u||Math.random()<5E-4){Z=Z||null;N=N||null;L=L instanceof Error?L:new _.sr(L);if(L.args)for(var T=_.O(L.args),W=T.next();!W.done;W=T.next())W=W.value,W instanceof Object&&(S=Object.assign({},W,S));S.category="H5 Ads Control Flow";Z&&(S.slot=Z?"slot:  "+Z.slotType:"");N&&(S.layout=N?"layout:  "+N.layoutType:"",S.layoutId=N.layoutId);u&&(S.known_error_aggressively_sampled=!0);L.args=[S];_.Q7(L)}};
_.Gvf=function(L,Z){Z=_.za(Z);_.XJ(L,"yt-open-popup-action",[Z,L])};
_.Ib=function(L,Z){_.Gvf(L,_.s9(Z))};
$5P=function(L){if(!L)return"";if(F9f[L])return F9f[L];dm||(dm=_.wZ("A"));dm.href!==L&&Q8(dm,L);var Z=dm.pathname;F9f[L]=Z.startsWith("/")?Z:"/"+Z;return F9f[L]};
D5f=function(){var L=$5P(window.location.href);if(L==="/")return"home";if(L.startsWith("/results"))return"search";if(L.startsWith("/watch"))return"watch";if(L.startsWith("/shorts"))return"shorts";if(L.startsWith("/hashtag"))return"hashtag";if(L.startsWith("/create_channel"))return"create_channel";if(L.startsWith("/@")||L.startsWith("/user/")||L.startsWith("/channel/"))return"channel";if(L.startsWith("/experiments"))return"experiments";if(L.startsWith("/sponsor_channel"))return"sponsorship";if(L.startsWith("/select_site"))return"settings";
if(L.startsWith("/locate"))return"locate";if(L.startsWith("/redeem"))return"redeem";if(L.startsWith("/musicpremium")||L.startsWith("/premium")||L.startsWith("/red"))return"premium";if(L.startsWith("/paid_memberships"))return"paid_memberships";if(L.startsWith("/oops"))return"oops";if(L.startsWith("/clip"))return"clip";var Z;return(ab==null?void 0:(Z=ab.response)==null?void 0:Z.page)==="404"?"404":L.startsWith("/feed/history")?"history":L.startsWith("/feed/library")?"library":L.startsWith("/feed/subscriptions")?
"subscriptions":L.startsWith("/feed/trending")?"trending":L.startsWith("/feed/news_destination")?"news":L.startsWith("/playlist")?"playlist":L.startsWith("/minor_moment")?"minor_moment":L.startsWith("/playable/")||L.match("^/playables/(?!saved).")?"mini_app":L.startsWith("/playables")?"playables":L.startsWith("/create/live/join")?"open_in_app":L.startsWith("/feed/explore")?"explore":"browse"};
_.Rtw=function(){var L=ab==null?void 0:ab.response,Z=L==null?void 0:L.endpoint;if(!Z)return(L==null?void 0:L.page)==="watch"?"watch":D5f();var N;L=(N=_.n(Z==null?void 0:Z.commandMetadata,_.Nj))==null?void 0:N.webPageType;N=!1;if(L&&!lmf.includes(L))switch(L){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 S;return((S=_.n(Z==null?void 0:Z.commandMetadata,_.Nj))==null?0:S.url)&&$5P(_.n(Z.commandMetadata,_.Nj).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var u;return(Z=(u=_.n(Z,_.iv))==null?void 0:u.browseId)?vq1[Z]||"browse":"browse";default:N=!0}if(_.n(Z,_.hu)||_.n(Z,oq0))return"sponsorship";u=$5P(window.location.href);if(u.startsWith("/experiments"))return"experiments";if(u.startsWith("/create_channel"))return"create_channel";
if(_.n(Z,_.Lo)&&u.startsWith("/shorts"))return"shorts";if(_.n(Z,_.Lo)&&u.startsWith("/watch"))return"watch";N&&(Z=new _.sr("Unsupported mWeb page type",{pathname:u,webPageType:L}),_.CA(Z));return"browse"};
sS=function(L,Z,N,S){return L&&Z?L!==N||Z!==S?(_.eC(Error("Kh"),void 0,void 0,{"stored-slot":L,"stored-layout":Z,"latest-slot":N,"latest-layout":S}),!1):!0:!1};
nqA=function(L,Z,N){return L({targetId:Z},function(S){return N.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},S,{contents:[N.continuationItems?_.n(N.continuationItems[0],c7P):{}]}):N.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},S,{header:N.continuationItems?N.continuationItems[0]:void 0}):Object.assign({},S,{contents:N.continuationItems?N.continuationItems:[]})})};
K9P=function(L,Z,N,S){if(Z=Z.trackingParams){var u,T=(u=N.getScreenLayer)==null?void 0:u.call(N);N=_.RH(T);u=_.oH(T);if(N&&u){var W=_.Mg(Z);_.c("combine_ve_grafts")?L.graftServerVe(Z,u,T):_.ez(N,u,W);S==null||S(W)}}};
kvA=function(L){var Z;return((Z=fmH.get(L))==null?void 0:Z.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
U5s=function(L,Z){var N={type:Z.slotType,controlFlowManagerLayer:y7x.get(Z.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Z.slotEntryTrigger&&(N.entryTriggerType=Z.slotEntryTrigger.triggerType);Z.slotPhysicalPosition!==1&&(N.slotPhysicalPosition=Z.slotPhysicalPosition);if(L){N.debugData={slotId:Z.slotId};if(L=Z.slotEntryTrigger)N.debugData.slotEntryTriggerData=wrh(L);L=Z.slotFulfillmentTriggers;N.debugData.fulfillmentTriggerData=[];L=_.O(L);for(var S=L.next();!S.done;S=L.next())N.debugData.fulfillmentTriggerData.push(wrh(S.value));
Z=Z.slotExpirationTriggers;N.debugData.expirationTriggerData=[];Z=_.O(Z);for(L=Z.next();!L.done;L=Z.next())N.debugData.expirationTriggerData.push(wrh(L.value))}return N};
wrh=function(L,Z){var N={type:L.triggerType};Z!=null&&(N.category=Z);L.triggeringSlotId!=null&&(N.triggerSourceData||(N.triggerSourceData={}),N.triggerSourceData.associatedSlotId=L.triggeringSlotId);L.triggeringLayoutId!=null&&(N.triggerSourceData||(N.triggerSourceData={}),N.triggerSourceData.associatedLayoutId=L.triggeringLayoutId);return N};
YHL=function(L,Z,N,S){Z={opportunityType:Z};L&&(S||N)&&(S=_.px(S||[],function(u){return U5s(L,u)}),Z.debugData=Object.assign({},N&&N.length>0?{associatedSlotId:N}:{},S.length>0?{slots:S}:{}));
return Z};
ett=function(L){return jC(L.opportunityAdapterMap).concat(jC(L.triggerAdapterMap)).concat(jC(L.fulfillmentAdapterFactoryMap)).concat(jC(L.slotAdapterFactoryMap)).concat(jC(L.layoutRenderingAdapterFactoryMap))};
jC=function(L){var Z=[];L=_.O(L.values());for(var N=L.next();!N.done;N=L.next())N=N.value,N.isAdsControlFlowEventListener&&Z.push(N);return Z};
PT=function(L){var Z=L.slotId,N=L.slotType,S=L.slotPhysicalPosition;return Z===void 0?new ES("Cannot construct a slot due to the missing id.",{adSlotMetadata:L}):N===void 0?new ES("Cannot construct a slot due to the missing type.",{adSlotMetadata:L}):S===void 0?new ES("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:L}):{slotId:Z,slotType:N,slotPhysicalPosition:S,managerLayer:"external",adSlotLoggingData:L.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new ImL}};
d5G=function(L){var Z=L.layoutId,N=L.layoutType;return Z===void 0?new pl("Cannot construct a layout due to the missing id.",{adLayoutMetadata:L}):N===void 0?new pl("Cannot construct a layout due to the missing type.",{adLayoutMetadata:L}):{layoutId:Z,layoutType:N,managerLayer:"external",adLayoutLoggingData:L.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new ImL,interactionLoggingAdsClientData:{}}};
amP=function(L){if(L.querySelector("img")){var Z=L.querySelector("img");Z.addEventListener("error",function(){TBH(Z.src).then(function(N){(N=_.Jf(N).toString())?Z.src=N:Z.removeAttribute("src")}).catch(function(){Z.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
mK=function(L,Z){if(Z&&(htx(Z.viewableCommand)||htx(Z.endOfSessionCommand))){var N=sc_(Z==null?void 0:Z.viewableCommand);Z=sc_(Z==null?void 0:Z.endOfSessionCommand);if(!zq){var S=_.lQ("custom_active_view_tos_timeout_ms");zq=S>0&&S!==36E5?new jcx(Eqw(),S):new jcx(Eqw())}PLP(zq,L);prf(zq,L,N,Z)}};
Ju=function(L){zq&&PLP(zq,L)};
Eqw=function(){var L=_.X7("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(L==null?void 0:L.length)===2?L[1]:null};
htx=function(L){L=_.KY(L);return!(L==null||!L.loggingUrls)&&L.loggingUrls.length>0};
sc_=function(L){if(!L)return[];var Z=[],N,S;((S=(N=_.KY(L))==null?void 0:N.loggingUrls)!=null?S:[]).forEach(function(u){u.baseUrl&&Z.push(u.baseUrl)});
return Z};
ztH=function(L){if(_.c("stop_av_measurement_on_detach"))return function(){Ju(L)}};
m5_=function(L){return function(){_.c("stop_av_measurement_on_detach")&&Ju(L)}};
J7L=function(L){if(_.c("stop_av_measurement_on_detach"))return function(){Ju(L)}};
CLL=function(L){return L.shorts.isDesktopSmallWidth};
_.r7w=function(L){return L.shorts.isShortsActive};
_.QcB=function(L){return L.shorts.isWatchWhileMode};
_.Cl=function(L){return L.shorts.isFullscreen};
_.rm=function(L){return L.shorts.isShortsPipActive};
A7H=function(L){var Z,N;if(L=(Z=_.n(L.reelsAdCardButtoned,XrF))==null?void 0:(N=Z.animatedRenderingConfig)==null?void 0:N.easeOutSeconds)return L+"s"};
Bhw=function(L,Z,N){return _.b(function(S){return S.return(new Promise(function(u){var T=new Image;T.onload=function(){u(new HCt(L,Z,N,T.naturalWidth,T.naturalHeight))};
T.src=N.toString()}))})};
x5P=function(L,Z){return Math.round(L/1E-5)===Math.round(Z/1E-5)};
qH0=function(L,Z){return Math.round(L/1E-5)===Math.round(Z/1E-5)};
LqF=function(L,Z){return L.year===Z.year&&L.month===Z.month&&L.day===Z.day};
Zjw=function(L,Z){return L.year!==Z.year?L.year<Z.year:L.month!==Z.month?L.month<Z.month:L.day<Z.day};
SJs=function(L){return L.day===Nlw(L.year,L.month)?L.month===11?{year:L.year+1,month:0,day:1}:{year:L.year,month:L.month+1,day:1}:{year:L.year,month:L.month,day:L.day+1}};
ijF=function(){var L=new Date,Z={year:L.getFullYear(),month:L.getMonth(),day:L.getDate()};return{start:Z,end:{year:L.getFullYear()+2,month:L.getMonth(),day:L.getDate()},selectedDate:SJs(Z)}};
ukw=function(L){return(new hN(2)).format(new Date(L.year,L.month,L.day))};
Tlx=function(L){return{year:L.getFullYear(),month:L.getMonth(),day:L.getDate()}};
tx_=function(L,Z){L=(L+(Number(Z.utcOffsetSec)+(new Date(L*1E3)).getTimezoneOffset()*60))*1E3;Z=Tlx(new Date(L));return{date:Z,secondsSinceMidnight:Math.floor((L-(new Date(Z.year,Z.month,Z.day)).getTime())/1E3)}};
Ojx=function(L,Z){Z=Z.months.findIndex(function(N){return N.year===L.year&&N.month===L.month});
return Z>=0?Z:void 0};
WqH=function(L){if(!L)return!1;try{if(L.host&&L.host.tagName==="YT-FORMATTED-STRING"&&L.host.id==="contenteditable-textarea"||L.nodeType===Node.ELEMENT_NODE&&L.tagName==="YTD-COMMENTBOX")return!0}catch(Z){return!1}return WqH(L.parentNode)};
Qm=function(L){return L?!(L.tagName!=="A"||!L.href||!L.classList.contains("yt-simple-endpoint")):!1};
VxB=function(L){return L?L.tagName==="IMG"&&L.classList.contains("emoji"):!1};
bjP=function(L,Z,N){if(!L)return null;var S=Qm(L);if(S&&N)return Z=L.pathname.substring(L.pathname.indexOf("/channel/")+9),document.createTextNode("@"+Z);if(S&&!N)return document.createTextNode("");if(VxB(L))return N=L.alt,L=L.dataset.emojiId,!L&&Z&&(Z=_.XM(Z,N))&&Z.isCustomEmoji&&(L=Z.emojiId),L?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+L+">"):document.createTextNode(N);S=L.cloneNode(!1);for(var u=0;u<L.childNodes.length;++u){var T=bjP(L.childNodes[u],Z,N);T&&S.appendChild(T)}return S};
Au=function(L){return L?Qm(L)?L:Au(L.lastChild):null};
Mxh=function(L){return L?Qm(L)?L:Mxh(L.firstChild):null};
gzA=function(L){if(!L)return null;for(var Z=L.previousSibling;Z;)if(Z.nodeType===Node.ELEMENT_NODE&&Z.nodeName==="BR")Z=Z.previousSibling;else if(Z.nodeType===Node.TEXT_NODE&&/\s+/.test(Z.textContent))Z=Z.previousSibling;else break;(Z=Au(Z))?L=Z:L=(L=L.parentNode)?Au(L.previousElementSibling):null;return L};
Gff=function(L){if(!L)return null;for(var Z=L.nextSibling;Z;)if(Z.nodeType===Node.ELEMENT_NODE&&Z.nodeName==="BR")Z=Z.nextSibling;else if(Z.nodeType===Node.TEXT_NODE&&/\s+/.test(Z.textContent))Z=Z.nextSibling;else break;return(Z=Mxh(Z))?Z:Gff(L.parentNode)};
FqA=function(L){var Z=_.HT(),N=Z.JSC$11350_getStartNode();if(!WqH(N.parentNode))return null;Z=Z.JSC$11350_getStartOffset();if(N.nodeType===Node.TEXT_NODE){var S=_.rF(N,Qm);if(S){if(L&&Z===0||!L&&Z===N.length)return S}else{if(L&&Z===N.length)return!N||N.nodeName==="BR"||N.nextElementSibling&&_.BT(N.nextElementSibling,"display")==="block"?null:Mxh(N.nextElementSibling);if(!L&&Z===0)return N?Au(N.previousElementSibling):null}}if(N.nodeType===Node.ELEMENT_NODE)if(L){if(0<=Z&&Z<N.childNodes.length)return Mxh(N.childNodes[Z])}else if(0<
Z&&Z<=N.childNodes.length)return Au(N.childNodes[Z-1]);return null};
$pH=function(L,Z,N){if(!L)return null;if(L.nodeType===Node.TEXT_NODE)if(N){var S=gzA(L);if(S&&!/^\s+\S/.test(L.wholeText.substr(0,Z)))return S}else if((S=Gff(L))&&!/\S\s+/.test(L.wholeText.substr(Z,L.wholeText.length)))return S;return L.nodeType===Node.ELEMENT_NODE?N?gzA(L.childNodes[Z]):Gff(L.childNodes[Z]):$pH(L.parentNode,Z,N)};
DpB=function(L){if(L.hasChildNodes())switch(L.tagName){case "DIV":case "A":case "SPAN":var Z="";for(L=L.firstChild;L;L=L.nextSibling)Z+=DpB(L);return Z;default:return""}else switch(L.nodeType){case 3:return L.textContent;default:return""}};
x9=function(L,Z){return L.year===Z.year&&L.month===Z.month&&L.day===Z.day};
qr=function(L,Z){return L.year!==Z.year?L.year<Z.year:L.month!==Z.month?L.month<Z.month:L.day<Z.day};
ldB=function(L){return{year:L.getFullYear(),month:L.getMonth(),day:L.getDate()}};
vzH=function(L){var Z=zKB;Z=Z===void 0?zKB:Z;Z(new Date(L.year,L.month,L.day))};
Lm=function(L){return ldB(new Date(Number(L.seconds)*1E3))};
ozA=function(L){return L.year!==void 0&&L.month!==void 0&&L.day!==void 0};
RFA=function(L){return L.start!==void 0&&L.end!==void 0};
cFs=function(L){return RFA(L)?L.start:L};
nzB=function(L){return RFA(L)?L.end:void 0};
fdB=function(L,Z){for(var N=[],S=new Date(L.start.year,L.start.month);S.getFullYear()<L.end.year||S.getFullYear()===L.end.year&&S.getMonth()<=L.end.month;){var u=N,T=u.push,W=S.getFullYear(),V=S.getMonth(),M=L,G=Z,D=void 0,l=[],v=Object.freeze({extraCssClass:"invisible"}),R=new Date(W,V),K=ldB(R);R=R.getDay();for(var U=ldB(new Date);K.month===V;){R!==KqP&&D||(D=Array.from({length:7}).fill(v),l.push(D));var d={date:{year:W,month:V,day:K.day},extraCssClass:"",debugClass:""};d.extraCssClass=G(d.date,
K,U,M).trim();D[(R-KqP+7)%7]=d;K=K.day===Nlw(K.year,K.month)?K.month===11?{year:K.year+1,month:0,day:1}:{year:K.year,month:K.month+1,day:1}:{year:K.year,month:K.month,day:K.day+1};R=(R+1)%7}T.call(u,{weeks:l,monthLabel:Z2.SHORTMONTHS[V]+" "+W,year:W,month:V,monthLabelExtraCssClass:l[0][2]===v?"shift-down-label":""});S.setMonth(S.getMonth()+1)}return N};
kfG=function(L,Z){Z=Z.months.findIndex(function(N){return N.year===L.year&&N.month===L.month});
return Z>=0?Z:void 0};
wOs=function(L,Z){a:{var N=N===void 0?[2,3]:N;N=_.O(N);for(var S=N.next();!S.done;S=N.next()){var u=new Date;if((new yFs(S.value)).parse(Z,u,{validate:!0})){u.setHours(0,0,0,0);Z=u;break a}}Z=null}if(!Z)return{isValid:!1,value:void 0};Z=ldB(Z);N=L.end;return qr(Z,L.start)||qr(N,Z)?{isValid:!1,value:void 0}:{isValid:!0,value:Z}};
dp_=function(L){var Z=Ups;Z=Z===void 0?YJB:Z;var N=L.columnsToShow||[],S=eFf(L.columnDimensions,L.columnsToShow,L.leftFloatingColumns,Z);return N.map(function(u,T){var W=L.columns[u];if(W===void 0)throw Error("Qh");var V=S?S[T]:"";var M=L.getCustomTooltip?L.getCustomTooltip(u,W.headerTooltipParagraphs):W.headerTooltipParagraphs;var G=Idt(L,u);return{type:u,index:T,style:V,classes:G,headerName:W.headerName||"",headerIcon:W.headerIcon,headerTooltipParagraphs:M||[],headerTooltipHelpContext:W.headerTooltipHelpContext,
sortOrders:W.sortOrders||[],selectionState:W.isSelectionCheckbox?L.selectionState:void 0}})};
Idt=function(L,Z){var N=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],S=L.columns[Z];if(S===void 0)return"";var u=N.includes("DEFAULTS")&&S.cssClass?[S.cssClass]:[];if(N.includes("SORTING")){S.sortOrders&&S.sortOrders.length&&u.push("sortable");if(L.sorting&&L.sorting.columnType===Z)a:switch(L.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var T="column-sorted";break a;default:T=""}else T="";T&&u.push(T)}N.includes("FLOATING")&&(Z=L.columnsToShow.indexOf(Z),L.leftFloatingColumns&&Z<L.leftFloatingColumns&&
u.push("floating-column"),L.leftFloatingColumns&&Z===L.leftFloatingColumns-1&&u.push("last-floating-column"));N.includes("RIGHT_ALIGN")&&S.rightAlignHeader&&u.push("right-align");return u.filter(function(W){return W}).join(" ")};
eFf=function(L,Z,N,S){N=N===void 0?0:N;S=S===void 0?YJB:S;if(L){var u=[],T=0;ad0(L,Z,S).forEach(function(W,V){var M="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&&(M=[M,"max-width:"+W.maxWidth+"px;"].join(""));T>0&&V<N&&(M=[M,"left:"+T+"px;"].join(""));u.push(M);T+=W.minWidth+W.paddingLeft+W.paddingRight});
return u}};
ad0=function(L,Z,N){N=N===void 0?YJB:N;return Z.map(function(S,u){S=L&&L[S]||{};var T=u===0?N.paddingLeftFirstColumn:N.padding;S.paddingLeft!==void 0&&(T=S.paddingLeft);u=u===Z.length-1?N.paddingRightLastColumn:N.padding;S.paddingRight!==void 0&&(u=S.paddingRight);return{paddingLeft:T,paddingRight:u,minWidth:S.minWidth!==void 0?S.minWidth:N.minWidth,maxWidth:S.maxWidth!==void 0?S.maxWidth:N.maxWidth,flexGrow:S.flexGrow!==void 0?S.flexGrow:N.flexGrow}})};
hF_=function(L){var Z=L.reduce(function(S,u){var T=u.columnId,W={};u.headerText&&(W.headerName=_.jM(u.headerText));u.rightAlignHeader&&(W.rightAlignHeader=u.rightAlignHeader);var V;if((V=u.headerIcon)==null?0:V.iconType)W.headerIcon=_.Bh(u.headerIcon.iconType);S[T]=W;return S},{}),N=L.filter(function(S){return!S.hideColumn}).map(function(S){return S.columnId});
L=L.filter(function(S){return!!S.dimensions}).reduce(function(S,u){S[u.columnId]=u.dimensions;
return S},{});
return{columns:Z,columnsToShow:N,columnDimensions:L}};
_.sEs=function(L){return L?L.simpleText?L.simpleText:L.runs?L.runs.map(function(Z){return Z.text}).join(""):"":""};
mp_=function(L){var Z=L.data;var N=L.onTap;var S=L.isSelected;var u=L.onFocusIn;if(!Z)return{};L=jE1(Z);S===void 0&&(S=Z==null?void 0:Z.isSelected);var T;return{text:Ezx(Z,L),startIcon:(T=Z.icon)==null?void 0:T.iconType,state:S?0:2,type:0,style:P8G(Z),onTap:pOL(Z,N),accessibilityLabel:zFx(Z,L),onFocusIn:function(){return u==null?void 0:u()}}};
Ezx=function(L,Z){if(!Z)return L.text?_.sEs(L.text):void 0};
P8G=function(L){var Z;switch((Z=L.style)==null?void 0:Z.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
pOL=function(L,Z){return function(N){Z==null||Z(N,L)}};
jE1=function(L){L=L.style&&L.style.styleType;return!Thx&&L==="STYLE_EXPLORE_LAUNCHER_CHIP"};
zFx=function(L,Z){if(Z){var N,S,u;return(u=(N=L.accessibilityData)==null?void 0:(S=N.accessibilityData)==null?void 0:S.label)!=null?u:Ezx(L,!1)}};
N3=function(L){return{signalAction:{signal:L}}};
rF1=function(){return _.X7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?JFs:_.C8B};
QEG=function(L,Z){L=L===void 0?"SOFT_RELOAD_PAGE":L;Z=Z===void 0?49504:Z;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Cq(_.iB("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:Z}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:L}}]}}}};
XOB=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Cq(_.iB("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:rF1()}};
AFs=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Cq(_.iB("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:rF1()}};
Hjx=function(L,Z){var N=_.Cq(_.iB("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),S=_.Cq(_.iB("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),u={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Cq(_.iB("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};u.serviceEndpoint=L?L:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[N3("SOFT_RELOAD_PAGE")]}};return{title:N,bodyText:S,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:u},
style:{value:Z!=null?Z:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
xpG=function(L){L=L===void 0?{}:L;return{title:_.Cq(L.localizedZeroStateTitleText===void 0?"":L.localizedZeroStateTitleText),bodyText:_.Cq(L.localizedZeroStateMessage===void 0?"":L.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Cq(L.localizedZeroStateButtonText===void 0?"":L.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[Bl0]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
L7x=function(L){L=L===void 0?{}:L;return{title:_.Cq(L.localizedOptInBannerTitleText===void 0?"":L.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Cq(L.localizedOptInMessage===void 0?"":L.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Cq(_.iB("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:_.Cq(_.iB("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:[qJt]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
S7_=function(L,Z){var N=Z=Z===void 0?{}:Z;Z=N.offlineTitleText===void 0?"":N.offlineTitleText;var S=N.offlineDescriptionText===void 0?"":N.offlineDescriptionText,u=N.formattedSupplementalText,T=N.actionButtonText===void 0?"":N.actionButtonText,W=N.titleText===void 0?"":N.titleText;N=N.descriptionText===void 0?"":N.descriptionText;var V={title:T,accessibilityText:T,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"}}}}};L||(W=Z,N=S,V={title:T,accessibilityText:T,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:_.Cq(W),titleLength:W.length,overrideTitleMaxFontSize:30,subtitle:_.Cq(N),supplementalText:u,primaryButton:{buttonViewModel:V},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[ZiH]},darkTileImage:{thumbnails:[NT1]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.TTP=function(L,Z,N,S,u,T,W,V,M,G,D){u=u===void 0?!1:u;T=T===void 0?!1:T;W=W===void 0?0:W;V=V===void 0?-Infinity:V;M=M===void 0?!1:M;G=G===void 0?!1:G;D=D===void 0?!1:D;var l=[],v=_.Cq(_.iB("SMART_DOWNLOADS",void 0,"Smart downloads")),R=_.Cq(iiH(W,V,L.length));V=W=void 0;G?W={statementBannerRenderer:S7_(D,S)}:u?L.length>0?V=uCh(L,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.c("kevlar_manual_downloads_above"),v,R):M?V={alertBannerViewModel:{heading:{content:N.localizedOptInBannerTitleText===
void 0?"":N.localizedOptInBannerTitleText},body:{content:N.localizedPromptMessage===void 0?"":N.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.iB("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.iB("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:_.oXw}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:T&&(V={backgroundPromoRenderer:{bodyText:_.Cq(_.iB("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"}}}):
T&&(V={alertBannerViewModel:{heading:{content:N.localizedOptInBannerTitleText===void 0?"":N.localizedOptInBannerTitleText},body:{content:N.localizedOptInMessage===void 0?"":N.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.iB("TURN_ON",void 0,"Turn on"),accessibilityText:_.iB("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}}}}}});N=_.Cq(_.iB("YOUR_DOWNLOADS",void 0,"Your downloads"));S=void 0;Z.length>0?(S=void 0,_.c("kevlar_display_downloads_numbers")&&(S=_.Cq(_.uB("VIDEO_COUNT",Z.length))),S=uCh(Z,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,N,S)):u||L.length||
G||(S={backgroundPromoRenderer:{bodyText:_.Cq(_.iB("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?l.push({richSectionRenderer:{content:W}}):V&&!_.c("kevlar_manual_downloads_above")&&l.push({richSectionRenderer:{content:V,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
S&&l.push({richSectionRenderer:{content:S,loggingDirectives:{clientVeSpec:{uiType:51721}}}});V&&_.c("kevlar_manual_downloads_above")&&l.push({richSectionRenderer:{content:V,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(Z.length>0||u&&L.length>0&&!G)&&l.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Cq(_.iB("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:l}};
_.OiH=function(L){return tOs(L,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.W7f=function(L){return tOs(L,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
tOs=function(L,Z){var N=[];L=uCh(L,Z,!0);N.push({richSectionRenderer:{content:L}});return{contents:N}};
uCh=function(L,Z,N,S,u){N=N===void 0?!1:N;var T="RESPONSIVE_SIZE_STANDARD";_.c("kevlar_standard_rich_grid_on_offline_home")&&Z==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?T="RESPONSIVE_SIZE_STANDARD":_.c("kevlar_modern_downloads_compact")?T="RESPONSIVE_SIZE_COMPACT":_.c("kevlar_modern_downloads_extra_compact")?T="RESPONSIVE_SIZE_EXTRA_COMPACT":_.c("kevlar_modern_downloads_tiny")&&(T="RESPONSIVE_SIZE_TINY");L={isExpanded:N,contents:Sy(L),entitySelectorType:Z,responsiveContainerConfiguration:{responsiveSize:T}};
S&&(L.title=S);u&&(L.subtitle=u);N||(_.c("kevlar_smart_downloads_show_more_button")?(L.showMoreButton={buttonRenderer:{accessibility:{label:_.iB("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Cq(_.iB("SHOW_MORE",void 0,"Show more"))}},L.showLessButton={buttonRenderer:{accessibility:{label:_.iB("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.Cq(_.iB("SHOW_LESS",void 0,"Show less"))}}):(L.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.iB("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}}}},L.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.iB("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}}}},L.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.iB("VIEW_ALL",void 0,"View all"),accessibilityText:_.iB("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:_.m2("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:L}};
Sy=function(L){var Z=[];L=_.O(L);for(var N=L.next();!N.done;N=L.next())if(N=N.value,Sjf(N)){var S=Z,u=S.push;var T=void 0;if(N==null?0:(T=N.videoEntity)==null?0:T.videoId){T=yE(_.Pv().getState(),N.videoEntity.videoId);var W=_.Pv().getState();var V=_.qj(N.videoEntity.videoId,"mainVideoEntity");W=!!_.Ga(W.entities)[V];W={videoId:N.videoEntity.videoId,title:rR(N.videoEntity.title),shortBylineText:rR(N.channelEntity.title),thumbnail:N.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:W&&_.c("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:dUP(N.videoEntity.videoId,T,N.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.iB("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};N.videoEntity.lengthSeconds&&(W.thumbnailOverlays=TXA(N.videoEntity.lengthSeconds,T));W.isWatched=T>0;_.c("kevlar_modern_downloads_page")&&(W.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:N.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.iB("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},W.badges=void 0);N=W}else N={};u.call(S,{richItemRenderer:{content:{videoRenderer:N},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(Net(N)){S=Z;u=S.push;var M=V=T=void 0,G=void 0,D=void 0,l=void 0,v=void 0,R=void 0,K=void 0,U=void 0,d=void 0,h=void 0;W=N.mainPlaylistEntity.playlistId;var E=N==null?void 0:(h=N.mainPlaylistEntity)==null?void 0:(d=h.thumbnailStyleData)==null?void 0:(U=d[0])==null?void 0:(K=U.value)==null?void 0:(R=K.collageThumbnail)==
null?void 0:R.coverThumbnail;if(W&&E){R=ajA(W);!_.c("enable_offline_playlist_page")&&(N==null?0:(v=N.mainPlaylistEntity)==null?0:v.videos)&&(v=N==null?void 0:(l=N.mainPlaylistEntity)==null?void 0:(D=l.videos)==null?void 0:D[0],D=_.HB(v).entityId,D=JSON.parse(D).videoId,D!==void 0&&(R=yE(_.Pv().getState(),D),R=_.Jq(D,W,void 0,void 0,R)));D=[];if(N==null?0:(G=N.mainPlaylistEntity)==null?0:(M=G.videos)==null?0:M.length)M=p0B(),G=Object,D=G.assign,l=(l=Wy_(N==null?void 0:N.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.Cq(l),icon:{iconType:"PLAYLISTS"}}}:void 0,D=[M,D.call(G,{},(V=l)!=null?V:{})];N={playlistId:W,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:E}},navigationEndpoint:R,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:D,title:rR(N.mainPlaylistEntity.title),shortBylineText:rR(N==null?void 0:(T=N.channelEntity)==null?void 0:T.title),badges:[{metadataBadgeRenderer:{label:_.iB("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.c("kevlar_modern_downloads_page")&&(N.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:VOP,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:W,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.iB("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},N.badges=void 0)}else N=void 0;u.call(S,{richItemRenderer:{content:{playlistRenderer:N},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return Z};
iiH=function(L,Z,N){L=L?bif(L):"";Z!==void 0&&isFinite(Z)?Z===0?Z=_.iB("UPDATING",void 0,"Updating..."):(Z=uXB(new Date(Z),new Date),Z=_.iB("UPDATED_TIME",{relative_time:Z},"Updated "+Z)):Z="";var S="";L&&Z&&(S=" \u2022 ");if(N&&_.c("kevlar_display_downloads_numbers")){N=_.uB("VIDEO_COUNT",N);if(L||Z)S=" \u2022 ";return N+S+L+S+Z}return L+S+Z};
MOL=function(L){return X3h(L.entities).length};
_.gns=function(L,Z){var N=wm(L.responsiveSize),S;L=!((S=L.responsiveMap)==null||!S.some(function(u){return u.containerSize==="CONTAINER_SIZE_NARROW"&&u.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:Z,sizing:N,enableFullBleedForSingleCol:!1,isCompactList:N==="COMPACT"&&L}};
G8w=function(L,Z){return _.Lk(L.entities,"votingEntity",Z)};
iF=function(L){if(L){var Z;return((Z=_.GR().resolve(_.gv(_.d$)))==null?0:Z())?L.darkTheme:L.lightTheme}};
F7L=function(L,Z){if(L.simpleText)return Object.assign({},L,{simpleText:YN(L.simpleText,Z)});if(!L.runs)return L;for(var N=Object.assign({},L,{runs:[]}),S=0,u=_.O(L.runs),T=u.next();!T.done;T=u.next())if(T=T.value,T.text)if(S+T.text.length<=Z)N.runs.push(T),S+=T.text.length;else return N.runs.push(Object.assign({},T,{text:YN(T.text,Z-S)})),N;return L};
$Bx=function(L,Z){return _.Lk(L.entities,"chipBarStateEntity",Z)};
DBL=function(L,Z){return _.Lk(L.entities,"chipEntity",Z)};
vnA=function(L,Z,N,S){return function(){var u=lzB.has(L.displayType)&&L.selected,T=u&&L.deselectCommand?L.deselectCommand:L.tapCommand;!T||u&&S||_.w$(T,{form:{element:Z==null?void 0:Z.value}});N==null||N()}};
onP=function(L){switch(L){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""}};
R7f=function(L,Z){return{triggeringElement:L,onDwellTriggeredFn:function(){var N={triggeringElement:L,loadVideoPreviewEventData:Z},S=document.querySelector(".video-preview");S&&S.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:N}))},
onDwellEndFn:function(){var N=document.querySelector(".video-preview");N&&N.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
cRB=function(L,Z){var N=_.GR().resolve(_.gv(cgw)),S=function(){var u=Z();return N&&u?R7f(L.value,u):null};
_.ph(function(){var u=S();N&&u&&Promise.resolve().then(function(){N.registerElement(u)});
_.zs(function(){N&&u&&Promise.resolve().then(function(){_.fl(N,u)})})},"csPUge")};
K7L=function(L){var Z=L.dataset.resizeObserverId;if(Z)return Z;Z=""+nn0++;return L.dataset.resizeObserverId=Z};
fzF=function(L,Z){var N=K7L(L);uF.has(N)||uF.set(N,new Set);uF.get(N).add(Z);Tn.has(N)&&Z(Object.assign({},{target:L},Tn.get(N)))};
k8L=function(L){L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var N=K7L(Z.target),S=Object.assign({},{target:Z.target},Tn.get(N));if(S!=null&&S.contentRect?S.contentRect.width!==Z.contentRect.width||S.contentRect.height!==Z.contentRect.height:1)for(Tn.set(N,{borderBoxSize:Z.borderBoxSize,contentBoxSize:Z.contentBoxSize,contentRect:Z.contentRect,devicePixelContentBoxSize:Z.devicePixelContentBoxSize}),N=_.O(uF.get(N)||[]),S=N.next();!S.done;S=N.next())S=S.value,S(Z)}};
wgA=function(){return tZ?tZ:tZ=new yR0(k8L)};
UBB=function(L,Z){var N=K7L(L);uF.has(N)&&(uF.get(N).delete(Z),uF.get(N).size===0&&(uF.delete(N),Tn.delete(N),tZ.unobserve(L),delete L.dataset.resizeObserverId));uF.size===0&&tZ&&(tZ.disconnect(),tZ=void 0)};
e7B=function(L,Z){var N=_.GR().resolve(Fl);return Y7L.map(function(S){return N.observe(L,Z,S)})};
IzB=function(L){var Z=_.GR().resolve(Fl);L.forEach(function(N){Z.unobserveByKey(N)})};
_.h7t=function(L,Z){var N=Object.assign({},dBw,Z);Z=_.O(mCL());var S=Z.next().value,u=Z.next().value,T=function(W){var V=W.contentRect.height;if((W=W.contentRect.width)||V||N.canHaveZeroSize)S.width()===W&&S.height()===V||u(S,{height:V,width:W})};
_.m0(function(){var W=L instanceof HTMLElement?L:L.value,V=azF(T,N.throttleMs),M=[];N.useVisibilityObserver&&(M=e7B(W,function(G,D){requestAnimationFrame(function(){D==="visible"?(fzF(W,V),wgA().observe(W)):UBB(W,V)})}));
M.length||(fzF(W,V),wgA().observe(W));_.zs(function(){M.length&&(IzB(M),M.length=0);UBB(W,V)})});
return S};
j$H=function(L,Z,N,S,u){L=Z?L.switchOffCommand:L.switchOnCommand;if(S&&u)s$t(L,N,u);else{var T,W;(T=_.kN({elementsCommand:L}))==null||(W=T.onclick)==null||W.call(T,N)}};
s$t=function(L,Z,N){L=_.kN({elementsCommand:L,additionalCommandArgs:{commandController:{onSuccess:function(){N(!1)},
onServerError:function(){N(!1)}}}});
if(L==null?0:L.onclick)L.onclick(Z),N(!0)};
Pbf=function(L){if(L)return _.n(L,Ent)};
pgF=function(L,Z){if(!((L==null?0:L.entitySelectorType)&&(L==null?0:L.entityKey)))return{};switch(L.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.c("enable_web_shorts_captions_language_command")){var N;var S=(N=_.Nr())==null?void 0:N.getOption("captions","track");var u,T=typeof(S==null?void 0:S.translationLanguage)==="object"&&((u=S.translationLanguage)==null?void 0:u.languageName)||(S==null?void 0:S.displayName)||"";S={data:Object.assign({},
!!T&&{selectionText:{content:T}},!!T&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof S==="undefined"})}}else S={};return S;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.c("web_shorts_audio_track_picker")){var W;u=((W=_.Nr())==null?void 0:W.getAudioTrack())||void 0;N=u==null?void 0:(T=u.getLanguageInfo())==null?void 0:T.getName();u={data:Object.assign({},{selectionText:{content:N}},N&&!(u==null?0:(S=u.getLanguageInfo())==
null?0:S.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else u={};return u;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return S=L!=null&&L.entityKey?(S=_.LV(Z,L.entityKey))?{isHidden:(S==null?void 0:S.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},S;default:return{}}};
z7f=function(L){var Z=["A".toString(),"BUTTON".toString()];return function(N){var S=function(u){_.vT(_.lj(u),N,Z)||L(u)};
N.addEventListener("click",S);return function(){N.removeEventListener("click",S)}}};
_.mBB=function(L){return function(){return _.n(L(),_.Oi)}};
JR0=function(L){switch(L==null?void 0:L.all){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_UNKNOWN":case "LINEAR_LAYOUT_SPACE_S0":return 0;
default:return 8}};
Cb1=function(L){var Z={};(L==null?void 0:L.flexDirection)==="FLEX_DIRECTION_ROW"||(L==null?void 0:L.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?Z["margin-right"]=(0,_.Wt)(function(){return JR0(L==null?void 0:L.gap)}):Z["margin-bottom"]=(0,_.Wt)(function(){return JR0(L==null?void 0:L.gap)});
return Z};
rRx=function(L){switch(L){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
Q$t=function(L){switch(L){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"}};
Xgw=function(L){switch(L){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"}};
q7B=function(L,Z,N){if(Z)return[ARA];switch(L){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[V6];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return N?[V6]:[HiG,V6];case "TRANSFER_STATE_PAUSED_BY_USER":return[BT1,V6];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[xBw,V6];default:return[ARA]}};
L1B=function(L,Z,N,S){return q7B(L,Z,S).map(function(u){var T=u.text,W=u.iconType,V=u.videoAction;u=u.playlistAction;T=T?{content:T}:void 0;W=W&&{sources:[{clientResource:{imageName:W}}]};var M=(0,_.Py.unsafeClone)(N);if(M){var G=_.n(M,_.uj),D=_.n(M,_.tu);G&&V?G.action=V:D&&u&&(D.action=u)}return{title:T,leadingImage:W,rendererContext:M&&{commandContext:{onTap:{innertubeCommand:M}}}}})};
ZB_=function(L){L=_.ob(L.rendererContext);var Z;return(Z=_.n(L,_.tu))==null?void 0:Z.playlistId};
N6G=function(L){var Z;return(Z=L.listItems)==null?void 0:Z.some(function(N){var S;return _.Rb((S=_.n(N,_.gm))==null?void 0:S.rendererContext)})};
uLt=function(L){var Z;return(Z=L.listItems)==null?void 0:Z.some(function(N){var S,u,T=(u=(S=_.n(N,SdP))==null?void 0:S.defaultListItem)!=null?u:N;N=_.n(T,_.gm);return!!_.n(N==null?void 0:N.leadingAccessory,iBh)})};
OBA=function(L){var Z=L.element;var N=L.veType;var S=L.storedVisualElement===void 0?null:L.storedVisualElement;var u=L.elementIndex===void 0?0:L.elementIndex;L=L.clientYouTubeData;var T=_.RH();T!==T60&&(tLH.clear(),T60=T);if(Z.visualElement&&tLH.has(Z.visualElement))return null;if(S&&tLH.has(S))return Z.visualElement=S,null;N=_.Si(_.tC(),{veType:N,elementIndex:u,clientYouTubeData:L});if(!N)return null;Z.visualElement=N;tLH.add(N);return N};
_.bF=function(L,Z,N,S){N=N===void 0?null:N;S=S===void 0?shs:S;var u=u===void 0?null:u;Dh(function(){if(Z){N instanceof Function&&(N=N());var T=OBA({element:Z,veType:L,storedVisualElement:N,clientYouTubeData:void 0});T&&(P6h(Z,u),S(T))}})};
M3=function(L){var Z=_.GR().resolve(_.gv(_.d$));return Z!=null&&Z()?L.darkThemeColorPalette:L.lightThemeColorPalette};
Gn=function(L){return{primaryTextColor:g3(L,0),secondaryTextColor:g3(L,1),optionColor:g3(L,2),backgroundColor:g3(L,3),videoBackgroundColor:g3(L,4)}};
g3=function(L,Z){if(L){switch(Z){case 0:L=L.primaryTitleColor;break;case 1:L=L.secondaryTitleColor;break;case 2:L=L.surgeColor;break;case 3:L=L.section2Color;break;case 4:L=L.section3Color;break;default:return}if(L)return _.vq(L)}};
FT=function(L,Z){if(L){switch(Z){case 0:L=L.primaryTitleColor;break;case 1:L=L.secondaryTitleColor;break;case 2:L=L.surgeColor;break;case 3:L=L.section2Color;break;case 4:L=L.section3Color;break;default:return}if(L)return _.vq(L)}};
W1x=function(L){return L?_.Rs(L):""};
VLA=function(L){return(L==null?void 0:L.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
bBH=function(L,Z){return _.Lk(L.entities,"videoOverviewAsyncDataEntity",Z)};
MLB=function(L,Z){var N;return"linear-gradient(to bottom, "+((N=Z==null?void 0:Z.map(function(S){var u=L?S.darkThemeColor:S.lightThemeColor;return u?_.Rs(u)+" "+((S==null?void 0:S.startLocation)||0)*100+"%":"transparent"}))==null?void 0:N.join(", "))+")"};
gJ0=function(L,Z,N,S,u){if(!((S==null?0:S.height)&&(S==null?0:S.width)))return{size:0};var T=S.width;S=S.height;if(u)return Z==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||Z==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&T>S?{size:312/rgf}:Z==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(N!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||L!==1&&L!==2||Z!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&Z!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&Z!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(Z==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||Z==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||S===T)switch(L){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(Z==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||S>T)switch(L){case 1:case 3:return{size:240*CWx};default:return{size:360*CWx}}switch(L){case 1:case 2:return{size:1/rgf*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.G4h=function(L){if(!("matchMedia"in window))return _.Zx(Error("Rh")),function(){return!1};
var Z=window.matchMedia(L);L=_.O(_.nh(Z.matches,void 0,"jLJc8e"));var N=L.next().value,S=L.next().value,u=function(T){S(T.matches)};
Z.addEventListener?(Z.addEventListener("change",u),_.zs(function(){Z.removeEventListener("change",u)})):Z.addListener&&(Z.addListener(u),_.zs(function(){Z.removeListener(u)}));
return N};
F1G=function(L){return L==="IMAGE_BANNER_STYLE_INSET"||L==="IMAGE_BANNER_STYLE_UNKNOWN"};
$zt=function(){if(!("matchMedia"in window))return _.Zx(Error("Rh")),function(){return 0};
var L=Jh(function(){return window.matchMedia("(max-width: 527.9px)")}),Z=Jh(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),N=Jh(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),S=Jh(function(){return window.matchMedia("(min-width: 1024px)")}),u=_.O(_.nh(L.matches,void 0,"og9kEc")),T=u.next().value,W=u.next().value;
u=_.O(_.nh(Z.matches,void 0,"ybDWCb"));var V=u.next().value,M=u.next().value;u=_.O(_.nh(N.matches,void 0,"o0Gfh"));var G=u.next().value,D=u.next().value;u=_.O(_.nh(S.matches,void 0,"yqUUgd"));var l=u.next().value,v=u.next().value,R=Jh(function(){return function(h){W(h.matches)}}),K=Jh(function(){return function(h){M(h.matches)}}),U=Jh(function(){return function(h){D(h.matches)}}),d=Jh(function(){return function(h){v(h.matches)}});
_.m0(function(){L.addEventListener?(L.addEventListener("change",R),Z.addEventListener("change",K),N.addEventListener("change",U),S.addEventListener("change",d)):L.addListener&&(L.addListener(R),Z.addListener(K),N.addListener(U),S.addListener(d));_.zs(function(){L.removeEventListener?(L.removeEventListener("change",R),Z.removeEventListener("change",K),N.removeEventListener("change",U),S.removeEventListener("change",d)):L.removeListener&&(L.removeListener(R),Z.removeListener(K),N.removeListener(U),
S.removeListener(d))})});
return function(){return T()?1:V()?2:G()?3:l()?4:0}};
Dz0=function(L){var Z=0;L=_.O([L.title,L.metadata,L.actions,L.description,L.attribution]);for(var N=L.next();!N.done;N=L.next())N.value&&Z++;return Z};
lYw=function(L){return L===1||L===2?1:0};
oJf=function(L){L=(new vJF).parse(L);return(new wd).render(L).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(Z){var N=Z.split(":").map(Number),S=0,u=0;if(N.length===3)N=_.O(N),S=N.next().value,u=N.next().value,N=N.next().value;else if(N.length===2)N=_.O(N),u=N.next().value,N=N.next().value;else if(N.length===1)N=_.O(N).next().value;else throw Error("Sh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(S*3600+u*60+N)+'" role="button">'+Z+"</span>"})};
RzG=function(L){L=_.O(L.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var Z=L.next(),N={};!Z.done;N={clickHandler$jscomp$5:void 0},Z=L.next()){Z=Z.value;N.clickHandler$jscomp$5=function(u){u=Number(u.target.getAttribute("data-time"));if(isNaN(u))throw Error("Th");var T;(T=_.Nr())==null||T.seekTo(u,!0)};
var S=function(u){return function(T){T.key!=="Enter"&&T.key!=="Space"||(0,u.clickHandler$jscomp$5)(T)}}(N);
Z.setAttribute("tabindex","0");Z.removeEventListener("click",N.clickHandler$jscomp$5);Z.removeEventListener("keydown",S);Z.addEventListener("click",N.clickHandler$jscomp$5);Z.addEventListener("keydown",S)}};
cif=function(){return _.g("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.g($o,{percentWidth:100}),_.g($o,{animationDelay:200}),_.g($o,{animationDelay:400}),_.g($o,{animationDelay:600}),_.g($o,{animationDelay:800,percentWidth:60}),_.g("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.g($o,{percentWidth:100}),_.g($o,{animationDelay:200}),_.g($o,{animationDelay:400}),_.g($o,{animationDelay:600,percentWidth:50}))};
$o=function(L){return _.g("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(L.percentWidth===void 0?100:L.percentWidth)+"%"},_.g("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(L.animationDelay===void 0?0:L.animationDelay)+"ms"}))};
nJx=function(){var L=_.O(_.nh(function(){return""},void 0,"dXJHWc")),Z=L.next().value;
return[function(){return Z()()},
L.next().value]};
K1f=function(L,Z){L=L?bif(L):"";Z!==void 0&&isFinite(Z)?Z===0?Z=_.iB("UPDATING",void 0,"Updating..."):(Z=uXB(new Date(Z),new Date),Z=_.iB("UPDATED_TIME",{relative_time:Z},"Updated "+Z)):Z="";var N="";L&&Z&&(N=" \u2022 ");return _.Cq(L+N+Z)};
yi1=function(L,Z,N,S,u,T){Z=Z===void 0?0:Z;var W=fYw[Z],V=W.title,M=W.iconType,G=W.topButtonRenderer,D=W.sectionClientVE;W=W.videoClientVE;var l;if(Z!==1||L.length){N=[];L=_.O(L);for(S=L.next();!S.done;S=L.next()){var v=S.value;if(Sjf(v))N.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:v.videoEntity.videoId,title:rR(v.videoEntity.title),shortBylineText:rR(v.channelEntity.title),thumbnail:v.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:v.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.iB("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:W}}}}}});else if(Net(v)){S=N;var R=S.push;var K=void 0,U=void 0,d=void 0,h=void 0,E=void 0,A=void 0,J=void 0,C=void 0,X=v.mainPlaylistEntity.playlistId,L1=v==null?void 0:(C=v.mainPlaylistEntity)==null?void 0:(J=C.thumbnailStyleData)==null?void 0:(A=J[0])==null?void 0:(E=A.value)==null?void 0:(h=E.collageThumbnail)==null?void 0:h.coverThumbnail;h=ajA(X);if(!_.c("enable_offline_playlist_page")&&
(v==null?0:(d=v.mainPlaylistEntity)==null?0:d.videos)){b:{d=v==null?void 0:(U=v.mainPlaylistEntity)==null?void 0:U.videos;U=_.Pv().getState().entities;if(d!=null&&d.length&&U)for(d=_.O(d),E=d.next();!E.done;E=d.next())if(E=_.HB(E.value).entityId,(E=JSON.parse(E).videoId)&&reh(U,E)==="TRANSFER_STATE_COMPLETE"){U=E;break b}U=""}U!==void 0&&(h=yE(_.Pv().getState(),U),h=_.Jq(U,X,void 0,void 0,h))}U=sBH(_.iB("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),ajA(X));v=X&&L1&&U?{playlistId:X,navigationEndpoint:h,
viewPlaylistText:U,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:L1}},title:rR(v.mainPlaylistEntity.title),shortBylineText:rR(v==null?void 0:(K=v.channelEntity)==null?void 0:K.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:k4t,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:X,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.iB("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:W}}}:
void 0;R.call(S,{gridPlaylistRenderer:v})}}W={gridRenderer:{items:N}};Z===1&&(l=K1f(u,T))}else if(S){var Fw=_.Cq((R=N==null?void 0:N.localizedPromptMessage)!=null?R:"");W={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Cq(_.iB("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.oXw}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Cq(_.iB("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};l=K1f(u,T)}else Fw=_.Cq(_.iB("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
W={};return{contents:[{shelfRenderer:{title:V,titleAnnotation:l,icon:{iconType:M},subtitle:Fw,content:W,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:G}]}}}}],loggingDirectives:{clientVeSpec:{uiType:D}}}};
w5h=function(L,Z,N,S,u,T,W,V,M,G,D){N=N===void 0?{}:N;S=S===void 0?{}:S;u=u===void 0?!1:u;T=T===void 0?!1:T;W=W===void 0?!1:W;V=V===void 0?!1:V;M=M===void 0?!1:M;G=G===void 0?0:G;D=D===void 0?-Infinity:D;if(!(Z.length||L.length||u||V))return T?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:xpG(N)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Cq(_.iB("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 l=[];L.length&&l.push(yi1(L,0));V?l.push({contents:[{statementBannerRenderer:S7_(M,S)}]}):u?l.push(yi1(Z,1,N,W,G,D)):T&&l.push({contents:[{statementBannerRenderer:L7x(N)}]});(u&&Z.length||L.length)&&l.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Cq(_.iB("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 l.map(function(v){return{itemSectionRenderer:v}})};
D2=function(L,Z){if(typeof L!=="object")return null;L=_.O(Object.entries(L));for(var N=L.next();!N.done;N=L.next()){var S=_.O(N.value);N=S.next().value;S=S.next().value;if(N===Z)return N;if(S=D2(S,Z))return N+"."+S}return null};
lF=function(L){var Z=L.content;return(L=L.styleRuns)&&Z?{runs:L.map(function(N){var S={text:Z.slice(N.startIndex,N.startIndex+N.length)};N.fontColor&&(S.textColor=N.fontColor);return S})}:{simpleText:Z}};
ezG=function(L,Z,N,S){var u=UzH;S&&(L.quantity=S);if(!L.quantity||!L.maxQuantity)return{};S=L.minusButton;var T=L.plusButton,W,V,M,G;return{value:L.quantity,maxValue:L.maxQuantity,onChangeCallback:function(D){u(L,D)},
minusLabel:(W=_.n(S,YdG))==null?void 0:W.label,minimumReachedLabel:(V=_.n(S,YdG))==null?void 0:V.limitReachedLabel,plusLabel:(M=_.n(T,YdG))==null?void 0:M.label,maximumReachedLabel:(G=_.n(T,YdG))==null?void 0:G.limitReachedLabel,disabled:Z,onRemoveCommand:N}};
UzH=function(L,Z){var N=L.quantityIncrementerEntityKey;if(N){var S={};S.quantity=Z;_.sk(_.vt("quantityIncrementerEntity",N,S));L.onChangeCommand&&_.w$(L.onChangeCommand)}};
IYx=function(L){if(L)return L===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(L).overflowY)?L:IYx(L.parentElement)};
hz_=function(L,Z){(L=dzx(L))&&((_.c("enable_mini_app_command_handler_mweb_fix")?0:Z)?aYH.push({command:L,sourceData:{},commandContext:void 0}):_.GR().resolve(_.$s).resolveCommand(L))};
dzx=function(L){return _.n(L,_.nY)};
sxP=function(){var L=window.performance.timeOrigin+window.performance.now(),Z=(new _.oL).setSeconds(L/1E9);return _.ZM(Z,2,_.Ov(L%1E9),0)};
EJA=function(L,Z){var N;L=(N=_.n(_.n(L,_.nY),jxh))==null?void 0:N.methodName;var S,u;(N=window.youtubewebview||((S=window.webkit)==null?void 0:(u=S.messageHandlers)==null?void 0:u.youtubewebview))&&L&&(S=new RL,L=_.dF(S,1,L),L=_.jY(L.JSC$12552_serializeBinary()),Z=_.jY(Z),N.postMessage(L+","+Z))};
ct=function(L,Z){var N=_.n(_.n(L,_.nY),jxh);N&&(Z&&(N.serializedAdditionalMetadata=_.jY(Z)),hz_(L,!0))};
PsA=function(L){switch(L){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"}};
p5G=function(){return!!_.X7("ID_TOKEN")};
Jis=function(L){return L instanceof Error&&L.cause instanceof zzx&&L.cause.rpcErrorCode!==void 0?!mzB.includes(L.cause.rpcErrorCode):!0};
riB=function(){return _.t3(CsF,{authuser:""+(_.X7("SESSION_INDEX")||0)})};
nm=function(L,Z,N,S){N=N===void 0?"MINI_APP_SDK_API_UNSPECIFIED":N;S=S===void 0?"":S;var u=new _.sr;N={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:S,sdkApi:N};L instanceof Error&&(u.message=L.message,u.name=L.name,L.cause instanceof zzx&&L.cause.rpcErrorCode!==void 0&&(N.rpcErrorCode=L.cause.rpcErrorCode));var T;(T=Z.onError)==null||T.call(Z,{loggingError:u,metadata:N})};
X5w=function(L,Z,N,S){switch(L){case "MINI_APP_SOURCE_GAMESNACKS":return new Km(Z,N,S);default:return new QxA(Z,N,S)}};
AiP=function(L){switch(L){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"}};
HBG=function(L){switch(L){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"}};
B6w=function(L){switch(L){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
xzP=function(){return Math.floor(Math.random()*4)+1};
qdF=function(L,Z,N,S){L=_.O(Object.entries(L));for(var u=L.next(),T={};!u.done;T={message$jscomp$995:void 0},u=L.next()){var W=_.O(u.value);u=W.next().value;W=W.next().value;T.message$jscomp$995=W;Z.push(setTimeout(function(V){return function(){S(!1);N(V.message$jscomp$995.text)}}(T),T.message$jscomp$995.delayMs));
Number(u)>0&&Z.push(setTimeout(function(){S(!0)},T.message$jscomp$995.delayMs-400))}};
Loh=function(L,Z){var N=N===void 0?shs:N;_.c("mweb_fix_monitor_visibility_after_render")?L&&Dh(function(){P6h(L,Z,N)}):Dh(function(){P6h(L,Z,N)})};
ZeG=function(L,Z){var N=document.createElement("ytd-engagement-panel-section-list-renderer");N.data=L;if(Z==null?0:Z.isPersistentPanel)N.isPersistentPanel=!0;return N};
unf=function(L){Nkh||(Nkh=SZG(new _.eM(1,void 0,void 0,ieL),0));var Z=Nkh.format(Math.floor(L));Z=wn==="be"||wn==="bg"||wn==="es"||wn==="et"||wn==="hu"||wn==="ka"||wn==="lv"||wn==="pl"||wn==="pt-PT"||wn==="sq"?Z.replace(new RegExp("^(\\d)"+ieL.GROUP_SEP.replace(".","\\.")+"(\\d+("+ieL.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):Z;return L>=1E3&&L<=9999&&Z[1]==="."&&(wn==="sl"||wn==="it")?Z.replace(".",""):Z};
TkG=function(L,Z){SXG("ytd-button-renderer",{data:L,className:Z?Z.className:"",overrides:Z==null?void 0:Z.buttonOverrides},x4_)};
Wow=function(L,Z,N,S){if(L)return S=S||L.likeStatus,Z?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:S==="LIKE",isDisabled:!L.likesAllowed,defaultIcon:{iconType:N},defaultText:S==="LIKE"?L.likeCountWithUnlikeText:L.likeCountText,toggledText:S==="LIKE"?L.likeCountText:L.likeCountWithLikeText,defaultNavigationEndpoint:tPf(L,"LIKE"),defaultServiceEndpoint:OeL(L,"LIKE"),toggledServiceEndpoint:OeL(L,"INDIFFERENT"),defaultTooltip:_.jM(L.likeCountTooltipText),toggledTooltip:_.jM(L.likeCountTooltipText),
targetId:L.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:S==="DISLIKE",isDisabled:!L.likesAllowed,defaultIcon:{iconType:N},defaultText:S==="DISLIKE"?L.dislikeCountWithUndislikeText:L.dislikeCountText,toggledText:S==="DISLIKE"?L.dislikeCountText:L.dislikeCountWithDislikeText,defaultNavigationEndpoint:tPf(L,"DISLIKE"),defaultServiceEndpoint:OeL(L,"DISLIKE"),toggledServiceEndpoint:OeL(L,"INDIFFERENT"),defaultTooltip:_.jM(L.dislikeCountTooltipText),
toggledTooltip:_.jM(L.dislikeCountTooltipText)}};
tPf=function(L,Z){if(Z==="LIKE")return L.likeCommand;if(Z==="DISLIKE")return L.dislikeNavigationEndpoint};
OeL=function(L,Z){var N;return(N=L.serviceEndpoints)==null?void 0:N.find(function(S){var u;return((u=_.n(S,_.fm))==null?void 0:u.status)===Z})};
_.MPG=function(L,Z,N){return window.spf&&!_.c("web_disable_spfjs_client")?VPf(L,Z,N):beP(L,Z)};
VPf=function(L,Z,N){var S=null,u=(new _.kE(function(T,W){var V={};if(Z){V.method=Z.method;var M=Z.postParams||{};Djt(L,Z)&&(M[_.X7("XSRF_FIELD_NAME")]=_.X7("XSRF_TOKEN"));V.postData=_.wv(M);Z.type&&(V.type=Z.type);M=Z.headers}V.headers=bqf(L,M);_.c("debug_forward_web_query_parameters")&&(L=_.F2s(L,window.location.search));V.experimental_headers=V.headers;V.onError=function(G){G.err&&G.xhr&&(G.err.params={url:G.xhr.responseURL,response:G.xhr.responseText.substr(0,64)});W(G.err)};
V.onPartDone=function(G){N&&N.call(null,G.part)};
V.onDone=function(G){var D=gi1(G.response,"xsrf_token");VZ(window.location.href,L)&&D&&_.Qc("XSRF_TOKEN",D);if(D=gi1(G.response,"service_worker_killswitch"))_.Qc("SERVICE_WORKER_KILLSWITCH",D),DP0();T(G.response)};
S=spf.request(L,V)})).then(Gm_);
u.thenCatch(function(T){var W=T instanceof _.ko,V=T&&T.hasOwnProperty("params")&&T.params.response?T.params.response:"";T instanceof Error&&(V?W?Zlx(T):V===')]}\'\n{"reload":"now"}'?Zlx(T):(FoH(T,L,V),$hw(T,V)?_.Q7(T):_.CA(T)):Zlx(T));S&&S.abort()});
return u};
Gm_=function(L){if(L.type==="multipart"){var Z=L.timing;L=L.parts.reduce(function(N,S){Object.assign(N,S);return N},{});
L.timing=L.timing||{};Object.assign(L.timing,Z);L.type="reduced"}return L};
beP=function(L,Z){Z=Z===void 0?{}:Z;var N=null,S=new _.kE(function(u,T){Z.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 M=JSON.parse(V)}catch(G){M=G}}else M=W.response;M instanceof Error?T(M):(V=gi1(M,"xsrf_token"),VZ(window.location.href,L)&&V&&_.Qc("XSRF_TOKEN",V),W=W.responseURL,window.performance&&window.performance.getEntriesByName?(V=window.performance.getEntriesByName(W).pop())?
W={responseStart:(0,_.GT)()-(V.responseEnd-V.responseStart)}:(Math.random()<.01&&(V=Error("ei"),V.params=W,_.Q7(V)),W={responseStart:-1}):W={responseStart:0},M.timing=M.timing||{},Object.assign(M.timing,W),u(M))}else T(Error("di`"+W.status))};
(N=_.yZ(L,Z))||T(Error("di`"+N.status))});
S.thenCatch(function(u){u instanceof Error&&(FoH(u,L),$hw(u)&&(u.level="WARNING"))});
_.c("cancel_pending_navs")&&S.thenCatch(function(){N.abort()});
return S};
gi1=function(L,Z){var N=L[Z],S=L.parts;L.type==="multipart"&&S&&(N=(L=S.find(function(u){return Z in u}))&&L[Z]);
return N};
FoH=function(L,Z,N){var S=L.message||"";Z={original:S,url:Z};if(N)if(S=S.match(/position:?\s*(\d+)/)){S=S&&Number(S[1])?Number(S[1]):0;var u=Math.max(S-25,0);Z.position=S;Z.response=N.substring(u,S+25)}else Z.response=N.substring(0,50);_.Xv(L,Z);try{L.message="JSON parse error"}catch(T){}};
$hw=function(L,Z){L=L.message||"";L=!!(L.indexOf("<")>=0||L.indexOf("end of ")>=0||L.indexOf("Unterminated string")>=0||L.indexOf("Unexpected EOF"));if(!L&&Z)for(var N=Z.length,S=!1,u=0;u<N;u++)if(S&&Z[u]==="\\")u++;else if(Z[u]==='"')S=!S;else if(Z[u]==="<"&&!S){L=!0;break}return L};
DhH=function(){return document.documentElement.hasAttribute("dark")};
_.lgB=function(L,Z){if(L!=="GFEEDBACK"&&L!=="GUIDED_HELP")_.H8(Error("fi`"+L));else{var N=_.GR().resolve(_.gv(_.mR));if(N&&(N=N.getCurrentPage())&&N.getServiceTrackingParams&&(N=N.getServiceTrackingParams()))for(var S=0,u;u=N[S++];)if(u.service===L){if(L=u.params)for(N=0;S=L[N++];)Z[S.key]=S.value;break}}};
_.viP=function(L){var Z=_.CV();Z&&(Z=Z.getPlayer())&&(Z.pauseVideo(),L.playback_id=Z.getVideoData().cpn,L.eid=Z.getVideoData().eventId,Object.assign(L,Z.getFeedbackProductData()))};
oiH=function(){var L={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.X7("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(L.enableAnonymousFeedback=!0);_.X7("SESSION_INDEX")&&(L.authuser=String(_.X7("SESSION_INDEX")));_.c("enable_pageid_for_feedback")&&_.X7("DELEGATED_SESSION_ID")&&(L.pageId=String(_.X7("DELEGATED_SESSION_ID")));return L};
_.y6=function(L){_.c("enable_ypc_spinners")&&_.XJ(L,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},L])};
_.w3=function(L){_.c("enable_ypc_spinners")&&_.XJ(L,"yt-close-popup-action",["yt-loading-renderer"])};
RIA=function(L){return new Promise(function(Z,N){_.fY({verifyCommand:{recaptchaToken:L.recaptchaResponse}},{commandController:{onSuccess:function(S,u){u||N("ChallengeService did not return a response.");var T;Z({challengeCompleted:(T=u.verified)!=null?T:!1})},
onServerError:function(S,u){N(u)}}})})};
cDG=function(L,Z,N,S){Z({recaptchaResponse:S}).then(function(u){u.challengeCompleted?_.dv()?(N(3),_.GR().resolve(_.$s).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:L}})):N(2):N(4)},function(){N(4)})};
Kof=function(L,Z,N){_.Uo(_.vy(ni1,_.X7("HL")),function(){var S;(S=window.grecaptcha)==null||S.ready(function(){var u=window.grecaptcha;u?(N(u.render(L,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:cDG.bind(null,L,RIA,Z)})),Z(1)):Z(4)})})};
fgs=function(L,Z){return function(){switch(Z()){case 0:return L().captchaLoadingMessage;case 1:return L().challengeReason;case 3:return L().captchaSuccessfulMessage;case 2:return L().captchaCookieSetFailureMessage;case 4:return L().captchaFailedMessage;default:return L().challengeReason}}()};
_.Ui=function(){if(!km_){var L=document.querySelector("#player.skeleton");L&&(_.U_(L),km_=!0)}};
_.wYs=function(){return yD1=nCG()};
eI1=function(){return _.b(function(L){return Uh_!==void 0?L.return():L.yield(YZ0(),0)})};
YZ0=function(){return _.b(function(L){if(L.nextAddress==1)return L.yield(fRt(),2);yD1=L.yieldResult;Uh_=_.ro.addLowPriorityJob(YZ0,5E3);_.w7(L)})};
jGs=function(L){var Z=Z===void 0?Ig0:Z;var N,S,u=(N=L.responseContext)==null?void 0:(S=N.mainAppWebResponseContext)==null?void 0:S.trackingParam;if(!u){Z.increment("MISSING");var T,W,V,M,G,D;_.Q7(new _.sr("282054944_a",{mPi:!!((T=L.responseContext)==null?0:(W=T.mainAppWebResponseContext)==null?0:W.loggedOut),eeK:((V=L.responseContext)==null?void 0:V.mainAppWebResponseContext)===void 0,fUk:L.responseContext===void 0,cp:(M=L.playabilityStatus)==null?void 0:M.contextParams,lc0:(((G=L.streamingData)==
null?void 0:G.formats)||[]).length>0,exn:(((D=L.streamingData)==null?void 0:D.adaptiveFormats)||[]).length>0,os:!!L.offlineState,cotn:L.cotn}));return 2}N="";try{N=dhs(u)}catch(R){return Z.increment("C_ERROR"),_.CA(R),2}try{var l=_.agt(N);var v=hIH(l)}catch(R){return Z.increment("P_ERROR"),_.CA(R),2}v=_.MG(v,sGx,1,_.gZ());u=[];v=_.O(v);for(l=v.next();!l.done;l=v.next())S=l.value,l=S.getPath(),N=(0,_.Py.getValueByKeys)(L,l.split(".")),N=String(N===void 0||N===null?"":N),S=S.getValue()||"",T=/[+\-\/_]/g,
N.replace(T,"")!==S.replace(T,"")&&(Z.increment("MISMATCH"),_.c("ab_mis_log_err")&&(N=new _.sr("282054944_p",{xDp:l,g:String(N),e:String(S)}),_.CA(N)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(l)||(l.match(/enforcementMessageViewModel/i)?u.push(3):u.push(2)));if(u.length>0)return Math.max.apply(Math,_.Pd(u));Z.increment("SUCCESS");return 1};
pYs=function(L){var Z=new Yo;if(L.interpreterJavascript){var N=_.Qsh(L.interpreterJavascript);N=ig(N).toString();var S=new Eis;_.dF(S,6,N);_.fG(Z,1,S,aO)}else L.interpreterUrl&&(N=_.QH(L.interpreterUrl),N=_.en(N).toString(),S=new _.Pds,_.dF(S,4,N),_.fG(Z,2,S,aO));L.interpreterHash&&_.ey(Z,3,L.interpreterHash,aO);L.program&&_.ey(Z,4,L.program,aO);L.globalName&&_.ey(Z,5,L.globalName,aO);L.clientExperimentsStateBlob&&_.ey(Z,7,L.clientExperimentsStateBlob,aO);return Z};
IL=function(L){var Z={};L=_.O(L.split("&"));for(var N=L.next();!N.done;N=L.next())N=N.value.split("="),N.length===2&&(Z[N[0]]=N[1]);return Z};
zIL=function(L){return Number(L.t)||7200};
JhP=function(){if(_.c("bg_st_hr"))return"havuokmhhs-0";var L,Z=((L=globalThis.performance)==null?void 0:L.timeOrigin)||0;return"havuokmhhs-"+Math.floor(Z)};
mhG=function(){return new Promise(function(L){var Z=window;Z.ntpevasrs!==void 0?L(new d3(Z.ntpevasrs)):(Z.ntpqfbel===void 0&&(Z.ntpqfbel=[]),Z.ntpqfbel.push(function(N){L(new d3(N))}))})};
JDf=function(L){var Z=L.uFB.bind(L);_.bp("yt.aba.att",Z);L=L.gvs.bind(L);_.bp("yt.aba.att2",L)};
rDs=function(L){switch(_.ks(L.input)){case _.pk(Cd_):var Z={};return Z.encryptedVideoId=L.innerTubeRequest.externalVideoId,Z}return{}};
ADF=function(L){switch(_.ks(L.input)){case _.pk(Cd_):if(_.c("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.pk(QGs):if(_.c("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.pk(aL):if(_.c("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&L.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.pk(XYw):var Z,N;if(_.c("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((N=_.n((Z=L.config)==null?void 0:Z.command,eS_))==null?0:N.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.BkG=function(L){var Z;if(L.playlistVideoRenderer&&((Z=L.playlistVideoRenderer)==null?0:Z.engagementBar))return Hef(L.playlistVideoRenderer.engagementBar);if(_.n(L,hZ)){var N;if(L=(N=_.n(L,hZ))==null?void 0:N.engagementBar)return Hef(L)}return""};
Hef=function(L){if(!L)return"";L=_.n(L,_.xhB);if(L==null||!L.actions)return"";L=_.O(L.actions);for(L=L.next();!L.done;L=L.next()){L=_.n(L.value,_.qZ1);var Z=void 0;if((Z=L)==null||!Z.itemId)break;return L.itemId}return""};
_.LvA=function(L){var Z;if(L.playlistVideoRenderer&&((Z=L.playlistVideoRenderer)==null?0:Z.videoId))return L.playlistVideoRenderer.videoId;if(_.n(L,hZ)){var N,S;if(L=(N=_.n(L,hZ))==null?void 0:(S=N.playlistItemData)==null?void 0:S.videoId)return L}return""};
_.Z9h=function(L){var Z;if(L.playlistVideoRenderer&&((Z=L.playlistVideoRenderer)==null?0:Z.voteCount))return L.playlistVideoRenderer.voteCount;if(_.n(L,hZ)){var N,S;if(L=(N=_.n(L,hZ))==null?void 0:(S=N.playlistItemData)==null?void 0:S.voteCount)return L}return 0};
_.si=function(L,Z){return _.Lk(L.entities,"flowStateEntity",Z)};
S2B=function(L,Z,N,S){var u=void 0;L=_.O(L[Z.iconName]||[]);for(var T=L.next();!T.done;T=L.next()){T=T.value;var W=Z.iconSize;var V=Z.iconStyle;W=!W||W===T[2];var M=N8s[T[0]];S&&S!==T[1]||!W||V&&V!==M?V=!1:u?(V=N8s[T[0]],V=!!Z.iconStyle||V==="youtube_outline",W=u.version<=T[1],V=(!!Z.iconSize||T[2]===24)&&V&&W):V=!0;V&&(u={name:Z.iconName,style:N8s[T[0]],size:T[2],version:T[1],allowMirroring:!!T[3],url:N(Z.iconName,T)})}return u};
i9H=function(L,Z,N,S){return L+(""+N8s[N[0]]+((S===void 0?0:S)?"_experimental":"")+"/"+Z+"/v"+N[1]+"/")+(N[2]+"px.svg")};
uHA=function(L){return _.X7("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.X7("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":L};
T8w=function(L,Z){return i9H("https://fonts.gstatic.com/s/i/",L,Z)};
tEH=function(L,Z){return i9H("https://fonts.gstatic.com/s/i/",L,Z,!0)};
O9_=function(L,Z){return i9H("https://www.gstatic.com/youtube/img/icons/web/",L,Z)};
VEt=function(L){var Z=L.enabled;var N=L.itemPlaybackModel;var S=L.thumbnailElRef;var u=L.containerElRef;var T=L.options;var W;_.ph(function(){var V=u==null?void 0:u.value;var M,G=(M=S())==null?void 0:M.value;M=N();var D=T();if(Z&&M&&V&&G&&(D==null?0:D.thumbnail)){var l={data:M,hostElement:V},v,R,K=[].concat(_.Pd((v=D.thumbnailOverlays)!=null?v:[]),_.Pd((R=M.overlays)!=null?R:[]));R=M.itemPlaybackOptions;v=(R==null?void 0:R.enableRoundedPlayer)||D.enableRounding;R=R==null?void 0:R.disableTimeStatusOverlay;
var U,d;V={mediaRenderer:l,lockupElement:V,thumbnailElement:G,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.KY((U=M.inlinePlayerData)==null?void 0:U.onVisible),navigationEndpoint:_.KY((d=M.inlinePlayerData)==null?void 0:d.onSelect),thumbnail:D.thumbnail,thumbnailOverlays:K,accessibilityText:D.accessibilityText||""},thumbnailSize:D.thumbnailSize,enableRounding:v,mouseleaveCallback:D.mouseleaveCallback,hideTimeDisplay:R}}}else V=void 0;if(U=V){var h;(h=W)==null||jy(h);W=Kl(U);var E,A;
((E=N())==null?0:(A=E.inlinePlayerData)==null?0:A.forceImpAutoplay)&&WvP(W)}},"BLiQOd");
_.zs(function(){var V;(V=W)==null||jy(V)})};
b9t=function(L){L=atob(L);for(var Z=[],N=0;N<L.length;N++)Z.push(L.charCodeAt(N));return new Blob([new Uint8Array(Z)],{type:"image/png"})};
gx1=function(L,Z,N,S){S=S===void 0?"INSERTION_POSITION_UNSPECIFIED":S;return L({targetId:Z},function(u){var T,W=(T=u.contents)!=null?T:[];T=N!=null?N:[];var V=MEG(W);switch(S){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},u,{contents:[].concat(_.Pd(W.slice(0,V)),_.Pd(T),_.Pd(W.slice(V+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},u,{contents:[].concat(_.Pd(T),_.Pd(W))});case "INSERTION_POSITION_LAST":return Object.assign({},u,{contents:[].concat(_.Pd(W),_.Pd(T))});
default:return u}})};
FvH=function(L,Z,N,S,u){u=u===void 0?"RELATIVE_INSERTION_POSITION_AFTER":u;return L({targetId:Z},function(T){var W,V=(W=T.contents)!=null?W:[];W=GJL(V,N);if(W<0)return T;W=u==="RELATIVE_INSERTION_POSITION_BEFORE"?W:W+1;return Object.assign({},T,{contents:[].concat(_.Pd(V.slice(0,W)),_.Pd(S),_.Pd(V.slice(W)))})})};
MEG=function(L){var Z=L.findIndex(function(N){return _.n(N,_.Ei)});
return Z>=0?Z:L.length};
GJL=function(L,Z){return L.findIndex(function(N){a:{N=_.O(Object.values(N));for(var S=N.next();!S.done;S=N.next())if((S=S.value)&&S.targetId){N=S.targetId;break a}N=""}return N===Z})};
DFH=function(L,Z,N){return L({targetId:Z},function(S){var u,T=(u=S.contents)!=null?u:[];return Object.assign({},S,{contents:$Ft(T,N)})})};
$Ft=function(L,Z){return L.filter(function(N){var S=Z.includes;a:{N=_.O(Object.values(N));for(var u=N.next();!u.done;u=N.next())if((u=u.value)&&u.targetId){N=u.targetId;break a}N=""}return!S.call(Z,N||"")})};
_.l5f=function(L,Z){return{engagementPanelSectionListRenderer:{panelIdentifier:L,identifier:Z,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
vxH=function(L,Z){L=L.getAvailableAudioTracks();if(L.length)return L==null?void 0:L.find(function(N){var S;return(N==null?void 0:(S=N.getLanguageInfo())==null?void 0:S.getId())===Z})};
_.RPx=function(L){var Z,N=(Z=L.getOption("captions","tracklist",{includeAsr:!0}))!=null?Z:[];return N=oxw(N,L)};
cBL=function(L){return L.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
oxw=function(L,Z){Z=cBL(Z);if(Z==null||!Z.length)return L;var N=Z.filter(function(W){return W});
Z=L.filter(function(W){return W.languageCode.startsWith("en")});
N=_.O(N);for(var S=N.next();!S.done;S=N.next())if(S=S.value,Z.length){var u=Z[0],T=Object.assign({},u);u.languageCode!==S.languageCode&&(T.displayName=u.languageName+" >> "+S.languageName,T.translationLanguage=S,L.push(T))}return L};
nxL=function(L,Z,N){L=_.RPx(L);if(L.length)return N?L.find(function(S){if(typeof(S==null?void 0:S.translationLanguage)==="object"){var u;return((u=S.translationLanguage)==null?void 0:u.languageCode)===Z}return!1}):L==null?void 0:L.find(function(S){return S.languageCode===Z})};
KvH=function(L){return L.getOption("captions","tracklist",{includeAsr:!0})};
f5H=function(L){var Z=L.getAvailableAudioTracks();if(Z!=null&&Z.length){var N=L.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Pd(Z.map(function(S){return{listItemViewModel:{title:{content:S.getLanguageInfo().getName()},isSelected:S.getLanguageInfo().getId()===(N==null?void 0:N.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:S.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
kJL=function(L){return L.getOption("captions","tracklist",{includeAsr:!0})};
yB_=function(L){var Z=kJL(L);if(Z==null?0:Z.length)return Z;L.loadModule("captions");return kJL(L)};
wft=function(L){var Z=L.getOption("captions","track");if(Z)return Z;L.loadModule("captions");return L.getOption("captions","track")};
Y2h=function(L){var Z=yB_(L);if(Z!=null&&Z.length){var N=wft(L),S;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.iB("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(N==null?0:N.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.Pd(Z.map(function(u){return{listItemViewModel:{title:{content:u.displayName},
isSelected:u.displayName===(N==null?void 0:N.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:u.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.iB("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!N.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!N.translationLanguage&&{selectionText:{content:(N==null?void 0:(S=N.translationLanguage)==null?void 0:S.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[UFw(L)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
UFw=function(L){var Z=cBL(L);if(Z==null||!Z.length)throw Error("Ei");var N=wft(L);L=Z.filter(function(S){return!S.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Pd(L.map(function(S){var u;return{listItemViewModel:{title:{content:S.languageName},isSelected:S.languageName===(N==null?void 0:(u=N.translationLanguage)==null?void 0:u.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:S.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
a5P=function(L){return new Promise(function(Z,N){if(L===void 0)_.CA(Error("Ii"),"ERROR"),N(Error("Ii"));else{N=new _.ePL;var S=_.I5t();N=N.init();var u=_.dF_(_.X7("YPC_MB_URL"),!0);Promise.all([N,u]).then(function(){var T=_.Pt.payments.business.integration.ClientTokenFactory.createClientToken(L,S);Z(T)})}})};
jDt=function(L,Z,N,S,u,T,W){var V=_.hS();N=N.replace(/-/g,"+").replace(/_/g,"/");var M=_.tq().get("hl"),G=_.pm(_.hz),D=Z==null?void 0:Z.element;D&&_.y6(D);hP_(Z,!0);_.sDx(G,N,V.resolve,function(){D&&_.w3(D)},function(l){D&&_.w3(D);
V.reject(l)},M,S?function(l){S&&_.aV(L,S,{backend_analytics:l})}:void 0,V.resolve,u,T,W);
return V.promise};
hP_=function(L,Z){!(L=L==null?void 0:L.element)||L.tagName!=="YT-BUTTON-RENDERER"&&L.tagName!=="YTD-BUTTON-RENDERER"||(L.disabled=Z)};
Exx=function(){var L=_.iB("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Cq(L),actionButton:{buttonRenderer:AFs()}}},popupType:"TOAST"}};
PaH=function(){var L=_.iB("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Cq(L),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
pfF=function(L){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:L}]}}};
zn=function(L,Z,N,S){var u;return _.b(function(T){if(T.nextAddress==1)return _.RS(T,2),T.yield(L,4);if(T.nextAddress!=2)return(u=_.b2(Z.getState().entities).length>0)?T.return({title:_.Cq(_.iB("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Cq(_.iB("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:XOB()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
T.return(Hjx(N,S));_.yd(T);return T.return(Hjx(N,S))})};
zPf=function(L,Z){return Z?Z==="PPSV"||Ae1(L,Z):!1};
mFP=function(L){L.responseContext||(L.responseContext={});L.responseContext.maxAgeSeconds=0;return L};
JZ=function(L){var Z;return _.b(function(N){return N.nextAddress==1?N.yield(JB1(L,"service:topbar:fallback"),2):(Z=N.yieldResult)&&_.m4(Z)?N.return(mFP(_.m4(Z))):N.return()})};
Caf=function(L){var Z;return _.b(function(N){return N.nextAddress==1?N.yield(JB1(L,"service:downloads_settings:fallback"),2):(Z=N.yieldResult)&&_.m4(Z)?N.return(Z):N.return()})};
JB1=function(L,Z){var N;return _.b(function(S){if(S.nextAddress==1)return L?S.yield(L.get(Z),2):S.return();N=S.yieldResult;return!N||!_.m4(N)||!isNaN(Number(N.data.expireTimestampMs))&&N.isExpired()?S.return():S.return(N)})};
rBP=function(L){var Z=_.GR().resolve(Cm).getState().entities;return L.playlistId?zPf(Z,L.playlistId):!1};
Xfh=function(L){var Z=_.lQ("web_pbj_log_warning_rate",0);Z=Z>0&&Math.random()<Z;if(!_.n(L,_.Ox))return Z&&_.Q7(Error("bj")),!1;var N;return _.c("shorts_controller_retrieve_seedless_sequence_v2")&&((N=_.n(L,_.Ox))==null?void 0:N.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:QDh(L)?!0:(Z&&_.Q7(Error("cj")),!1)};
QDh=function(L){var Z=(_.n(L,_.so)||_.n(L,_.Ox)).videoId;if(!Z||!ABB.test(Z))return!1;var N;return(L=(N=_.n(L.commandMetadata,_.Nj))==null?void 0:N.url)&&(L.includes(Z)||L.startsWith("/clip"))?!0:!1};
_.B8L=function(){var L=_.tq();return L.getFlag(192)?L.getFlag(190):!(_.c("web_watch_cinematics_disabled_by_default")||_.c("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&H9F())};
_.r3=function(L,Z,N){var S={};S.currentUrl=Z;S.vis=L.vis!==void 0?L.vis:0;S.splay=!1;Z=_.tq();S.autoCaptionsDefaultOn=Z.getFlag(66);Z.getFlag(141)?Z.getFlag(140)?S.autonavState="STATE_OFF":S.autonavState="STATE_ON":S.autonavState="STATE_NONE";S.html5Preference="HTML5_PREF_WANTS";isNaN(_.X7("STS"))||(S.signatureTimestamp=_.X7("STS"));L.autonav&&(S.autoplay=!0,S.autonav=!0);L.mutedAutoplay&&(S.autoplay=!0,S.mutedAutoplay=!0);L.inlinePlayback&&(S.autoplay=!0,S.autonav=!1,S.isInlineUnmutedPlayback=!!L.inlineUnmuted);
S.referer=N;S.lactMilliseconds=L.lact!==void 0?L.lact.toString():"-1";_.c("enable_unknown_lact_fix_on_html5")&&S.lactMilliseconds==="-1"&&_.Q7(new _.sr("Unknown LACT is set in playbackContext.",{"lact in tempData":L.lact||"undefined",autonav:L.autonav||"undefined"}));L={};Z.getFlag(194)&&(L.hasShownAmbientMode=!0);Z.getFlag(192)&&(L.hasToggledOffAmbientMode=!0);_.B8L()&&(L.watchAmbientModeEnabled=!0);S.watchAmbientModeContext=L;return S};
xFH=function(L){var Z={},N=L.pbis||0;N&&(Z.playbackBeginsInSeconds=N);L.prefetch_reason&&L.prefetch_reason==="hc_pbis"&&(Z.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return Z};
q2F=function(L,Z){var N;if(Z==null?0:(N=Z.requestTemplate)==null?0:N.panelId)L.panelId=Z.requestTemplate.panelId;var S;if(Z==null?0:(S=Z.requestTemplate)==null?0:S.params)L.params=Z.requestTemplate.params};
ZUP=function(){if(L$t)return L$t();var L=!_.c("idb_response_store_auth_killswitch"),Z={};L$t=go("yt-it-response-store",{objectStores:(Z.ResponseStore={addedAtVersion:1},Z),shared:!L,upgrade:function(N,S){S(1)&&(N=qO(N,"ResponseStore",{keyPath:["key","clientName"]}),LA(N,"byExpiration","expireTimestampMs"),LA(N,"byInterface","clientName"))},
version:1});return L$t()};
NqF=function(L){return _.up(ZUP(),L)};
iU1=function(L,Z){var N;return _.b(function(S){return S.nextAddress==1?S.yield(_.MO(),2):(N=S.yieldResult)?S.return(new Sp_(L,Z,N)):S.return()})};
uzH=function(L){var Z=Object.keys(L)[0];if(Z)return L.screenExit&&(Z=Z+";"+L.screenExit.screen),Z};
Tqs=function(L){var Z=new Map;L=_.O(L);for(var N=L.next();!N.done;N=L.next())N=N.value,N!=null&&(Z.has(N.taskType)||Z.set(N.taskType,[]),Z.get(N.taskType).push(N));return Z};
tes=function(L){L=[].concat(_.Pd(L)).sort(function(N,S){return N-S});
var Z=Math.floor(L.length/2);return L.length%2?L[Z]:(L[Z-1]+L[Z])/2};
VeG=function(L,Z){L=L===void 0?P4A:L;Z=Z===void 0?{}:Z;_.bp("yt.logging.errors.log",_.CA);jV0();OUw(C4G(),Z);window.onerror=L;W$_=E0w;window.addEventListener("unhandledrejection",function(N){if(N.reason instanceof Error){var S=N.reason;_.Xv(S,{source:"unhandledrejection"});S.name==="AbortError"&&(S.level="WARNING")}E0w(N.reason);N.preventDefault()})};
_.bUf=function(L){var Z,N,S,u,T,W,V,M,G,D,l,v,R,K,U,d,h,E,A,J,C,X,L1,Fw,GB,Yt,lH,RF,jf,f1,n0,r5,yq,ZN,GV,IO,d5,n8,lq,tx;return _.b(function(ut){if(ut.nextAddress==1)return ut.yield(_.Ta(L,{mode:"readonly",enableRetries:!0},function(oO){return tN(oO,"playbackData").then(function(uq){var RO=uq.map(function(Fh){return Fh.transfer}).filter(function(Fh){return!!Fh}),iq=uq.map(function(Fh){return Fh.offlineVideoPolicy}).filter(function(Fh){return!!Fh}),hU=uq.filter(function(Fh){return!!Fh.key}).map(function(Fh){return _.qj(_.HB(Fh.key).entityId,
"downloadStatusEntity")});
RO=tN(oO,"transfer",RO);iq=tN(oO,"offlineVideoPolicy",iq);hU=tN(oO,"downloadStatusEntity",hU);var Qq=RO.then(function(Fh){Fh=Fh.reduce(function(g5,SY){(SY==null?0:SY.offlineVideoStreams)&&g5.push.apply(g5,_.Pd(SY.offlineVideoStreams));return g5},[]).filter(function(g5){return!!g5});
return tN(oO,"offlineVideoStreams",Fh)});
return xs.all([RO,iq,Qq,hU]).then(function(Fh){var g5=_.O(Fh);Fh=g5.next().value;var SY=g5.next().value;var Xw=g5.next().value;g5=g5.next().value;return[uq,Fh,SY,Xw,g5]})})}),2);
if(ut.nextAddress!=3)return Z=ut.yieldResult,ut.yield(_.Ta(L,{mode:"readonly",enableRetries:!0},function(oO){return tN(oO,"mainDownloadsListEntity").then(function(uq){var RO,iq;return(iq=(RO=uq[0])==null?void 0:RO.downloads)!=null?iq:[]})}),3);
N=ut.yieldResult;S=_.O(Z);u=S.next().value;T=S.next().value;W=S.next().value;V=S.next().value;M=S.next().value;G=u;D=T;l=W;v=V;R=M;K={};U={};d={};h={};E={};A=[];J=_.O(D);for(C=J.next();!C.done;C=J.next())(X=C.value)&&(K[X.key]=X);L1=_.O(l);for(Fw=L1.next();!Fw.done;Fw=L1.next())(GB=Fw.value)&&(U[GB.key]=GB);Yt=_.O(R);for(lH=Yt.next();!lH.done;lH=Yt.next())(RF=lH.value)&&(d[RF.key]=RF);jf=_.O(v);for(f1=jf.next();!f1.done;f1=jf.next())(n0=f1.value)&&(h[n0.key]=n0);r5=_.O(N);for(yq=r5.next();!yq.done;yq=
r5.next())ZN=yq.value,GV=void 0,E[(GV=ZN.videoItem)!=null?GV:""]=!0,ZN.videoItem&&(d5=IO=void 0,n8=(d5=(IO=_.HB(ZN.videoItem))==null?void 0:IO.entityId)!=null?d5:"",A.push({externalVideoId:n8}));lq=G.filter(function(oO){if(!oO||!oO.key||!oO.offlineVideoPolicy)return!1;oO=_.HB(oO.key).entityId;oO=_.qj(oO,"downloadStatusEntity");var uq;return!(oO&&((uq=d[oO])==null?void 0:uq.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
tx=lq.map(function(oO){var uq=K[oO.transfer],RO=[];if(uq==null?0:uq.offlineVideoStreams)for(var iq=_.O(uq.offlineVideoStreams),hU=iq.next();!hU.done;hU=iq.next())(hU=h[hU.value])&&RO.push(hU);iq=U[oO.offlineVideoPolicy];hU=E;var Qq=oO==null?void 0:oO.playerResponseTimestamp,Fh=_.HB(iq.key).entityId;oO=_.qj(Fh,"mainVideoEntity");if(iq.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var g5="OFFLINE_VIDEO_STATE_DISABLED";iq.expirationTimestamp&&Number(iq.expirationTimestamp)<Date.now()/1E3&&(g5="OFFLINE_VIDEO_STATE_EXPIRED")}else if(iq.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")g5="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(uq==null?void 0:uq.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":g5="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":g5="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":g5="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":g5="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":g5="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":g5="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:g5="OFFLINE_VIDEO_STATE_UNKNOWN"}if(g5==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(uq==null?void 0:uq.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":g5="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":g5="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":g5=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Fh={id:Fh,videoState:g5};if(uq==null?0:uq.cotn)Fh.cotn=uq.cotn;if(uq==null?0:uq.maximumDownloadQuality)Fh.selectedVideoQuality=uq==null?void 0:uq.maximumDownloadQuality;if(uq==null?0:uq.lastProgressTimeMs)Fh.lastProgressTimeMs=uq.lastProgressTimeMs;Qq&&(Fh.playerResponseSavedTimeMs=String(Number(Qq)*1E3));uq=String;Qq=0;RO=_.O(RO);for(g5=RO.next();!g5.done;g5=RO.next())if(g5=g5.value,g5.streamsProgress){g5=_.O(g5.streamsProgress);for(var SY=g5.next();!SY.done;SY=
g5.next()){var Xw=void 0;Qq+=Number((Xw=SY.value.numBytesDownloaded)!=null?Xw:0)}}Fh.downloadedBytes=uq(Qq);Fh.selectedOfflineMode=hU[oO]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";iq.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Fh.offlinePlaybackDisabledReason=iq.offlinePlaybackDisabledReason);return Fh});
return ut.return({offlineVideos:tx,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:A}}})})};
Mef=function(){var L;return _.b(function(Z){return Z.nextAddress==1?Z.yield(_.SM(),2):(L=Z.yieldResult)?Z.return(_.bUf(L)):Z.return({state:"PES Unavailable"})})};
F$H=function(){var L,Z,N,S;return _.b(function(u){if(u.nextAddress==1)return u.yield(_.SM(),2);if(u.nextAddress!=3)return(L=u.yieldResult)?u.yield(gK1(L),3):u.return({state:"PES Unavailable"});Z=u.yieldResult;N={};S=Z.reduce(function(T,W){T[W.key]=W;return T},N);
return u.return(G$_(S))})};
G$_=function(L){for(var Z={},N=[],S=_.O(Object.keys(L)),u=S.next();!u.done;u=S.next()){var T=u.value;u=L[T];var W=void 0;if(((W=u)==null?void 0:W.entityType)==="mainVideoEntity"){delete L[T];var V=u.data;u={};if(V){var M=void 0;W=(M=V.videoId)!=null?M:"vid-"+T;T=L;u.video=V;delete u.video.formattedDescription;delete u.video.thumbnail;V.owner&&(M=T[V.owner],M==null?0:M.data)&&(delete T[M.key],u.video.owner=M.data,delete u.video.owner.avatar);if(V=V.downloadState)if(M=T[V],M==null?0:M.data)if(delete T[V],
V=M.data.playbackData)if(M=T[V],M!=null&&M.data){delete T[V];V=M.data;delete V.playerResponseJson;u.playbackData=V;if(V.transfer&&(M=T[V.transfer],M==null?0:M.data)){delete T[M.key];var G=M.data;u.transfer=G;M=[];G=_.O(G.offlineVideoStreams||[]);for(var D=G.next();!D.done;D=G.next())if(D=T[D.value])delete T[D.key],M.push(D.data);M&&(u.streams=M)}(V=V.offlineVideoPolicy)&&(V=T[V])&&V.data&&(delete T[V.key],u.offlineVideoPolicy=V.data)}Z[W]=u}}else u&&u.entityType==="offlineOrchestrationActionWrapperEntity"&&
u.data&&(delete L[u.key],W=u.data,T=void 0,N.push({id:W.rootActionId,type:((T=W.actionProto)==null?void 0:T.actionType)||"",entity:u}))}Z.wrapperEntities=N;Object.keys(L).length>0&&(Z.unknownKeys=L);return Z};
$E1=function(){var L,Z,N,S,u,T,W,V,M;return _.b(function(G){if(G.nextAddress==1)return L=(new _.Bx("")).hasLocalStorage(),S=!!((Z=_.iH.crypto)==null?0:(N=Z.subtle)==null?0:N.importKey),u=!!_.iH.BroadcastChannel,T=!!_.iH.navigator.locks,G.yield($ef(),2);W=G.yieldResult;V=L&&S&&u&&T&&W;M={isSupported:V};if(V)return G.return(M);M.missingBrowserFeatures=[];W||M.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");L||M.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
S||M.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");u||M.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");T||M.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return G.return(M)})};
DEH=function(){var L;return!((L=Q6?Q6:null)==null||!L.window)};
_.vKB=function(L){if(_.UG()&&_.cxA("Chromium")>=120){var Z=_.lvG().mediaSession;try{Z.setActionHandler("enterpictureinpicture",function(){L()})}catch(N){}}};
oKL=function(L){for(var Z=[],N=_.O(document.styleSheets),S=N.next(),u={};!S.done;u={node$jscomp$769:void 0},S=N.next())u.node$jscomp$769=S.value.ownerNode,u.node$jscomp$769&&(u.node$jscomp$769 instanceof HTMLStyleElement||u.node$jscomp$769 instanceof HTMLLinkElement)&&Z.push(new Promise(function(T){return function(W){var V=T.node$jscomp$769.cloneNode(!0);V.onload=function(){W()};
V.onerror=function(){_.Q7(Error("tj"));W()};
L.document.head.appendChild(V)}}(u)));
return Promise.all(Z)};
YpG=function(L){var Z=[_.Fr(Rpf),_.Fr(c1F),_.Fr(nKL)];K$_(window.document.documentElement,L.document.documentElement,[_.Fr(fvx),_.Fr(k$B),_.Fr(y1w),_.Fr(wRA),_.Fr(UEG)]);K$_(window.document.body,L.document.body,Z)};
K$_=function(L,Z,N){L=_.O(L.attributes);for(var S=L.next();!S.done;S=L.next())if(S=S.value)try{_.O3(N,Z,S.name,S.value)}catch(u){}};
Ivw=function(L,Z){L=new _.Bt(L.document.documentElement);L.start(eps,Z);return L};
dEt=function(L){var Z=L.document.documentElement;Z.addEventListener("click",function(N){R8F(Z,N)});
Z.addEventListener("touchstart",function(N){khh(N)});
Z.addEventListener("mousedown",function(N){khh(N)})};
hph=function(L,Z,N,S){S=S===void 0?!1:S;Z=new avs(Z||L,N||L);return{x:L.x+((S===void 0?0:S)?Z.lengthX*-1:Z.lengthX)*.2,y:L.y+((S===void 0?0:S)?Z.lengthY*-1:Z.lengthY)*.2}};
sIA=function(L){if(!L)return!1;var Z=L.status==="OK"||L.status==="LIVE_STREAM_OFFLINE",N,S,u,T=(u=(N=L.errorScreen)==null?void 0:N.playerLegacyDesktopYpcTrailerRenderer)!=null?u:(S=L.errorScreen)==null?void 0:S.ypcTrailerRenderer;return!!Z||!!T};
_.jI_=function(L,Z){if(!L)return!1;var N,S=(N=L.errorScreen)==null?void 0:N.playerLegacyDesktopYpcOfferRenderer,u;Z=!!(Z==null?0:(u=Z.playerOverlayRenderer)==null?0:u.gatedActionsOverlayRenderer);return!!sIA(L)||!!S||!!Z};
pR1=function(L){return EKF(L,0,"gclid",L.search(PwH))>=0||EKF(L,0,"gad_source",L.search(PwH))>=0};
zpx=function(L){var Z=[],N=0;return{clear:function(){N=Z.length=0},
push:function(S){Z[N]=S;N=(N+1)%L},
iterate:function(){return function u(){var T,W,V,M;return _.xo(u,function(G){switch(G.nextAddress){case 1:_.Ks(G,2),T=Z.length,W=0;case 4:if(!(W<T)){G.jumpTo(2);break}V=N+W;M=_.q3;return G.yield(Z[V%T],7);case 7:M(G.yieldResult);W++;G.jumpTo(4);break;case 2:_.ns(G),_.kS(G,0)}})}()}}};
mEG=function(L){L.eventsToIgnore||(L.eventsToIgnore=[]);var Z=L.eventsToIgnore.map(K6w),N=new Set(Z),S=zpx(L.bufferSize);return{flush:function(){var u=Array.from(S.iterate());S.clear();u=u.map(function(T){return{name:T.name,timestamp:T.startTime,attributes:T.attributes}});
return JSON.stringify(u)},
onSpanStart:function(u){u.name==="event"&&N.has(u.attributes.type)||S.push(u)}}};
J1s=function(L){L=mEG(L);var Z=L.flush;n3t({onSpanStart:L.onSpanStart});HVH.subscribe("handleError",function(N){try{N.params.breadcrumbs=Z()}catch(S){_.CA(S,"WARNING")}})};
Cwf=function(){vB("web_tracing_action");_.oq("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
r1P=function(){vB("web_tracing_action");_.oq("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
XRh=function(L,Z,N){if(Z===void 0){QIh||(r1P(),setInterval(r1P,6E5),QIh=!0);var S="web_tracing_action"}else S=Z;var u,T=((u=L.endTime)!=null?u:L.startTime)-L.startTime,W={};u=L.name;var V=L.startTime;W={webTracing:(W[L.name]=L.attributes,W)};N=_.B8(PkF)(u,T,V,W,N,S);if(L.children)for(L=_.O(L.children),S=L.next();!S.done;S=L.next())XRh(S.value,Z,N)};
A10=function(L){var Z=w$B.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(N){N.data&&typeof N.data==="object"&&(N=N.data,N.from==="extension"&&N.app==="yt.telemetry"&&(Z("Received message from extension",N),L.onMessage(N)))});
return function(N,S){N={app:"yt.telemetry",from:"app",key:N,payload:S};Z("Sending message to extension",N);window.postMessage(N,"*")}};
HUx=function(){var L=L===void 0?3E3:L;var Z=A10({onMessage:function(){}}),N=[];
return{onSpanEnd:function(S){S.parentId==null&&N.push(S)===1&&setTimeout(function(){var u=[].concat(_.Pd(N));N.length=0;Z("spansReported",{spans:u})},L)}}};
xEG=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var L=window.performance.getEntriesByType("navigation");if(L.length>0){var Z=L[0];yKF("pageLoad",{navigationType:BqP(Z.type),unloadEventStart:Math.round(Z.unloadEventStart),unloadEventEnd:Math.round(Z.unloadEventEnd),domInteractive:Math.round(Z.domInteractive),domContentLoadedEventStart:Math.round(Z.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(Z.domContentLoadedEventEnd),
domComplete:Math.round(Z.domComplete),loadEventStart:Math.round(Z.loadEventStart),loadEventEnd:Math.round(Z.loadEventEnd),redirectCount:Z.redirectCount},function(){})}}catch(N){}})};
BqP=function(L){switch(L){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"}};
qpF=function(L){L=L===void 0?400:L;var Z=[],N=[];return{start:function(){return uDH({checkoutEveryNth:L,emit:function(S,u){u&&(Z=N,N=[]);N.push(S)}})},
getRecording:function(){return[].concat(_.Pd(Z),_.Pd(N))}}};
uuB=function(){for(var L=Shf.value,Z={},N=_.O(L.enabledSpansArray),S=N.next();!S.done;S=N.next())Z[S.value]=!0;cKA({sessionId:TEt(),enabledSpans:Z,shouldSampleFn:function(T,W,V){if(LJA){var M;return T==="shortToShort"||(V==null?void 0:(M=V.rootSpan())==null?void 0:M.name)==="shortToShort"}return!0}});
Ki_("pageLoad")&&xEG();L.exportToCsi&&n3t(Z4H);L.exportToDevTools&&n3t(HUx());L.maxBreadcrumbs>0&&J1s({eventsToIgnore:NsB,bufferSize:L.maxBreadcrumbs});if(L.sessionReplayEvents>0){var u=qpF(L.sessionReplayEvents);u.start();_.c("web_tracing_session_replay_demo")&&(window.exportSessionReplay=function(){var T=JSON.stringify(u.getRecording(),null,2);T=SzA(new Blob([T],{type:"text/plain"}));var W=document.createElement("a");W.download="session_replay.json";W.dataset.downloadurl=["application/json",W.download,
W.href].join(":");W.style.display="none";W.href=T;W.click();URL.revokeObjectURL(T);i4f("View replay at go/yt-session-replay-viewer")})}};
Ts1=function(L){return new Promise(function(Z){window.setTimeout(Z,L)})};
t1f=function(L){var Z={bicf:function(T){L.s45=T},
blc:function(){return L.getLatestChallengeResponse()},
bcr:function(T){L.bI7.push(T)}},N=window;
N.ntpevasrs=Z;if(N.ntpqfbel!==void 0)for(var S=_.O(N.ntpqfbel),u=S.next();!u.done;u=S.next())u=u.value,u(Z);N.ntpqfbel=void 0};
O4F=function(L){return _.b(function(Z){if(Z.nextAddress==1)return _.RS(Z,2),Z.yield(L.mXe(),4);if(Z.nextAddress!=2)return _.SX(Z,0);_.yd(Z);_.w7(Z)})};
WJh=function(L){var Z,N;(Z=L.ytcsi)==null||(N=Z.tick)==null||N.call(Z,"pot_ist")};
V1f=function(L){if(L instanceof Error){var Z=_.LZ("yt.logging.errors.log");Z&&Z(L,"WARNING")}};
b41=function(L){try{var Z=JSON.parse(L);if(Z.bgChallenge)return Z}catch(N){}};
gfs=function(){var L=window,Z={networkStatusManagerPromise:_.GR().resolve(new L2A(_.iR)),initialChallengeSli:_.c("wpo_att_sli")?new _.fc1("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};L=L===void 0?window:L;var N=L.ytAtR,S;Z==null||(S=Z.initialChallengeSli)==null||_.LM(S);if(N){if(N=b41(N)){var u;Z==null||(u=Z.initialChallengeSli)==null||_.ZK(u,"SUCCESS");M1B(N,Z)}L.ytAtR=void 0}else L.ytAtRC=function(T){if(T=b41(T)){var W;Z==null||(W=Z.initialChallengeSli)==null||
_.ZK(W,"SUCCESS");M1B(T,Z);L.ytAtRC=void 0}}};
$iH=function(){if(GY0)return GY0;try{var L=_.wZ("IFRAME");_.qq(L,_.vy(FJG));L.sandbox.add("allow-same-origin");L.style.display="none";document.body.appendChild(L);return GY0=L}catch(Z){L=new _.sr("Failed to create sandbox iframe"),_.CA(L)}};
DiH=function(L){var Z,N;return(N=L==null?void 0:(Z=L.contentWindow)==null?void 0:Z.fetch)!=null?N:window.fetch};
lrt=function(L){var Z,N;return(N=L==null?void 0:(Z=L.contentWindow)==null?void 0:Z.Request)!=null?N:window.Request};
vf1=function(L){var Z,N;return(N=L==null?void 0:(Z=L.contentWindow)==null?void 0:Z.TextDecoder)!=null?N:window.TextDecoder};
ofh=function(){return function(L,Z){_.X7("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[L]=Z}};
RD_=function(){return function(L,Z){var N={};N[L]=Z;L=_.B8(_.jw_)(N);Object.keys(L).length>0&&_.lB(L)}};
KJH=function(){if(OY_()==="hidden")var L="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else OY_()==="visible"&&(L="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",cH_=null);L&&nfH(L)};
nfH=function(L){if(L==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||L==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(frF===L)return;frF=L}var Z=9E4+Math.random()*2E3;if(L!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Fv()>Z)&&OY_()==="visible"){Z=-1;cH_&&(Z=Math.round((0,_.GT)()-cH_));var N=String;var S=_.LZ("_fact",window);S=S==null||S==-1?-1:Math.max(Date.now()-S,0);_.mS("foregroundHeartbeat",{firstActivityMs:N(S),clientDocumentNonce:tQx,index:String(kY_),lastEventDeltaMs:String(Z),trigger:L});
_.bp("_fact",-1,window);kY_++;cH_=(0,_.GT)()}};
yHP=function(L,Z,N,S,u,T){Z=new Uint8Array(Z);if(L.length===0)return Z;var W=0;u=u!=null?u:L.length-1;for(var V=N;V<=u;V++){var M=L[V],G=V===N?S:0,D=void 0,l=V===u?(D=T)!=null?D:M.length:M.length;M=M.subarray(G,l);Z.set(M,W);W+=M.length}return Z};
_.wHF=function(){try{return!!self.sessionStorage}catch(L){return!1}};
UiG=function(){var L=navigator;return new Promise(function(Z,N){var S;(S=L.webkitTemporaryStorage)!=null&&S.queryUsageAndQuota?L.webkitTemporaryStorage.queryUsageAndQuota(function(u,T){Z({usage:u,quota:T})},function(u){N(u)}):N(Error("Dj"))})};
YzL=function(L,Z){var N={errorSeverity:Z.errorSeverity.toString(),wizFeatureFlags:Object.entries(Z.featureFlags).join("\n")};sVs(Z,N);Z=Z.errorSeverity;Z===3?_.CA(L,"ERROR",void 0,void 0,void 0,N):Z===2&&_.CA(L,"WARNING",void 0,void 0,void 0,N);_.c("cow_if_errors_in_popup")&&Z===3&&L.message.indexOf("<If>")!==-1&&window.alert(L.message)};
eDB=function(L,Z){var N=PB.get(L)||{layerNode:Z};N.layerNode=Z;RTw(L,N);L.getScreenLayer=function(){return NH(N.layerNode)}};
IrB=function(L){var Z;L=L.parentNode;for(var N;L&&((Z=PB.get(L))==null||!Z.isRenderer)&&!((N=L.polymerController)!=null?N:L).isRenderer_;)L=L.parentNode||L.host;if(Z=L)return PB.get(Z)};
dif=function(L){if(L){PB.delete(L);var Z=_.GR().resolve(Fl);Ux_(L,Z)}};
hD0=function(L,Z,N){if(N===void 0?0:N){if(N=L.getAttribute("client-ve-type"),Z.data&&!Z.disableReactiveLogging||N)_.Ch(function(){arH(L,_.JW(Z.data))},"qg"),_.zs(function(){return void dif(L)})}else typeof Z.data!=="function"&&arH(L,Z.data)};
arH=function(L,Z){s41++;j4s(L,Z)&&_.ro.addJob(function(){_.SW(_.ro,function(){if(j4s(L,Z)&&L.ownerDocument.documentElement===document.documentElement&&L){var N;if(L.getAttribute("layer")){var S=N=Number(L.getAttribute("layer")),u=PB.get(L);u?u.layerNode.layer=S:eDB(L,new EfG(S));(S=IrB(L))&&(u=PB.get(L))!=null&&(u.layerNode.parent=S.layerNode)}else if(N=PB.get(L))N=NH(N.layerNode);else{N=NH;S=new EfG;if(u=IrB(L))S.parent=u.layerNode;eDB(L,S);N=N(S)}N!=null||(N=0);S=L.getAttribute("client-ve-type");
u=Number(S);var T=!1;S=!1;var W=PB.get(L),V;if((V=W)&&!(V=W[PCt]!==Z)&&(V=u)){var M;V=((M=PB.get(L))==null?void 0:M.clientVeType)===void 0}V&&(W[PCt]=Z,T=S=W.isRenderer=!0);PB.has(L)&&(PB.get(L).clientVeType=u);L.visualElement&&(S=!0);if(_.c("wiz_next_ld_fix_client_ve_spec")){var G;M=((G=_.n(Z==null?void 0:Z.rendererContext,_.OR))==null?void 0:G.loggingDirectives)||(Z==null?void 0:Z.loggingDirectives)}else M=Z==null?void 0:Z.loggingDirectives;M&&M.clientVeSpec&&(G=pHP(_.Ng(),L),G=_.zDs(_.tC(),M,G||
void 0,N))&&(L.visualElement=G);!L.visualElement&&u&&T&&(L.veType=u,G=void 0,_.c("wiz_next_client_ve_parent_fix")&&(G=pHP(_.Ng(),L)),G=_.Si(_.tC(),L,G,N),L.visualElement=G);S&&(G=_.GR().resolve(Fl),dxL(L,{data:Z,observer:G,layer:N,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
j4s=function(L,Z){return(Z==null?0:Z.trackingParams)||(Z==null?0:Z.loggingDirectives)||_.n(Z==null?void 0:Z.rendererContext,_.OR)||L.getAttribute("client-ve-type")?!0:!1};
mi0=function(L,Z,N){L.componentType!==hW&&N instanceof HTMLElement&&Z&&!_.c("cow_logging_in_component_wrapper")&&hD0(N,Z,!0)};
Q4P=function(){if(!JHP){JHP=!0;var L=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.c("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:YzL,enableComponentStacksInErrorMessages:!1});Object.assign(M$,L);LgG=CCA;rHx();uJP=x0F;N0h=qhh}};
rHx=function(){_.c("cow_logging_in_component_wrapper")?(Ozx=function(L,Z){Z instanceof HTMLElement&&hD0(Z,L,!0)},m7F=function(){}):(Ozx=function(){},m7F=mi0)};
XHG=function(L,Z,N){Z=Z===void 0?{}:Z;var S,u=(S=_.n(L.commandMetadata,_.Nj))==null?void 0:S.url;S=Z.form||{};!N||S.element||S.skipDefaultElement||(Z.form=Z.form||{},Z.form.element=N);if(u&&u!=="/service_ajax")return{type:0,command:L,form:Z.form};if(_.c("kevlar_service_command_check")){if(_.d9(_.GR().resolve(_.bv),L))return Object.assign({},{type:1,command:L},Z)}else{var T;if((T=_.n(L.commandMetadata,_.Nj))==null?0:T.apiUrl)return Object.assign({},{type:1,command:L},Z)}return{type:2,command:L,form:Z.form}};
AHh=function(L){if(L.form){var Z=L.form,N=Object.assign({},Z);Z=Z.element;N=(delete N.element,N);if(Z)return[_.H2(Z,[L.command,N,L.commandController])]}return[]};
H41=function(L){if(L.form){var Z=L.form,N=Object.assign({},Z);Z=Z.element;N=(delete N.element,N);Z&&_.B2(Z,[L.command],Z,N)}};
xiA=function(L,Z,N){var S=new Bs1(L,Z),u=new im(L,Z,N);L={"/youtubei/v1/browse":new um(L,Z,N),"/youtubei/v1/player":S,"/youtubei/v1/navigation/resolve_url":new T1,"/youtubei/v1/next":u,"/youtubei/v1/guide":new t9(N),"/youtubei/v1/search":new Oc(L,Z,N),"/youtubei/v1/reel/reel_item_watch":new WV(L,Z,N),"/youtubei/v1/get_watch":new Vk(S,u)};L["/youtubei/v1/account/account_menu"]=new bm;L["/youtubei/v1/notification/get_notification_menu"]=new MH;return L};
FQ=function(){var L=_.GR().resolve(_.G1);return Promise.resolve(qzw(L,_.iH.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
Lu0=function(L){return L&&(L=_.$M(_.GOB(L)))?(new URLSearchParams(L)).get("service"):null};
vV=function(L,Z){_.H9(_.DK(),function(){_.Rq("adl")});
_.GR().resolve(Zp1)(Z);L=L.root;L.loadData&&L.loadData(Z);(Z==null?0:Z.response)?_.ZK(wDL(),"SUCCESS"):_.Q7(new _.sr("Lifecycle: No response in data",_.Ah("IS_SHELL_LOAD"),Z?Z.page:"NO_PAGE",Z?Z.endpoint:"NO_ENDPOINT"));L.polymerController.$["page-manager"].lazyPrepareCriticalPages((Z==null?void 0:Z.page)||"",Z.endpoint);var N,S;((S=_.n(Z==null?void 0:(N=Z.endpoint)==null?void 0:N.commandMetadata,_.Nj))==null?0:S.webPageType)&&_.Pv().dispatch(_.lm(_.n(Z.endpoint.commandMetadata,_.Nj).webPageType))};
NuF=function(){var L,Z;return _.b(function(N){switch(N.nextAddress){case 1:L=window;if(!L.getDataPromise){N.jumpTo(2);break}_.RS(N,3);return N.yield(L.getDataPromise(),5);case 5:return N.return(N.yieldResult);case 3:return _.yd(N),N.yield(FQ(),6);case 6:return N.return(N.yieldResult);case 2:if(L.getInitialData)return Z=L.getInitialData(),L.getInitialData=void 0,N.return(Z);throw Error("Fj`"+_.iH.location.href);}})};
ipP=function(){_.Qc("CSI_SERVICE_NAME","youtube");_.lB({loadType:"cold"});_.c("kevlar_log_lcp")&&SPA(function(L){_.Rq("lcp",L.value)})};
uyL=function(){var L=_.B4(document.location.href,"enable");L&&L.indexOf("scraper")>-1&&_.Qc("ADD_SCRAPER_ATTRIBUTES",!0)};
MmF=function(L){var Z=L.root;L=[Tu0,tmA,_.oj];_.c("web_feedback_endpoint_autolog_allowlist_killswitch")&&L.push(_.Rj,OpL);var N=[];_.c("web_talk_to_recs_double_click_fix")&&N.push(_.Wus,Vm1);bpA(function(S,u){return XHG(S,u,Z)},function(S){if(!S.command)return[];
var u;((u=S.form)==null?0:u.element)?S.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},S.form,{endpoint:S.command})})):Z.handleNavigate(S);return[]},L,N);
_.GR().addProvider({provide:_.$s,useValue:_.qd.instance})};
GGH=function(){var L={},Z={},N;for(N in gkA){var S=_.O(_.nh(gkA[N],void 0,"IAtZ7"));L[N]=S.next().value;Z[N]=S.next().value}return[L,function(u){for(var T in u){var W=void 0;(W=Z[T])==null||W(u[T])}}]};
_.cV=function(L,Z,N){Z=Z===void 0?!1:Z;var S=_.Py.getValueByKeys(L,"contents","twoColumnWatchNextResults","results","results","contents"),u=_.Py.getValueByKeys(L,"contents","twoColumnWatchNextResults","playlist","playlist")||null;Z&&(u=null);var T=Z=null;if(u)Z=_.Py.getValueByKeys(u,"titleText"),T=_.Py.unsafeClone(_.Py.getValueByKeys(u,"longBylineText")),S="",T&&(S=_.jM(T)),T=_.s9(S);else if(S){S=_.O(S);for(var W=S.next();!W.done;W=S.next())W=W.value,W.videoPrimaryInfoRenderer&&(Z=_.Py.getValueByKeys.apply(_.Py,
[W].concat(_.Pd(FuA)))),W.videoSecondaryInfoRenderer&&(T=_.Py.getValueByKeys.apply(_.Py,[W].concat(_.Pd($nB))))}else _.Zx(Error("Kj"));var V;L.currentVideoEndpoint?V=L.currentVideoEndpoint:_.Zx(Error("Lj"));var M;N&&(M=_.Py.getValueByKeys(N,"playabilityStatus","miniplayer","miniplayerRenderer"));L={miniplayerTitle:Z,miniplayerSubtitle:T,watchEndpoint:V,playlistData:u};M&&(L.miniplayerRenderer=M);return L};
DnA=function(L){if(L)return _.oX(L)};
_.lq1=function(){return{isFullscreen:function(){throw Error("Mj");},
toggleFullscreen:function(){throw Error("Nj");},
exitFullscreen:function(){throw Error("Oj");},
isAutonavEnabled:function(){throw Error("Pj");},
setAutonavEnabled:function(){throw Error("Qj");},
isAutoplaySetExplicitly:function(){throw Error("Rj");}}};
vkG=function(L){return L.videoDuration?L.numTaps>1&&L.tapDirection!==0?_.nM(L.draggedTime/L.videoDuration,0,1):_.nM((L.playedTime||0)/L.videoDuration,0,1):0};
okt=function(L){return L.videoDuration?L.isDragging||L.numTaps>1&&L.tapDirection!==0?_.nM(L.draggedTime/L.videoDuration,0,1):_.nM((L.playedTime||0)/L.videoDuration,0,1):0};
c_s=function(L){var Z,N,S;return _.n(L==null?void 0:(Z=L.markersMap)==null?void 0:(N=Z.find(function(u){return u.key==="HEATSEEKER"}))==null?void 0:(S=N.value)==null?void 0:S.heatmap,Rqt)};
nkP=function(L){var Z,N;return(N=(Z=c_s(L))==null?void 0:Z.heatMarkersDecorations)!=null?N:[]};
Ku_=function(L){if(_.c("mweb_supported_chapters_killswitch"))return!0;var Z;return!!(L==null?0:(Z=L.markersMap)==null?0:Z.find(function(N){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(N.key)}))};
_.fqG=function(L){var Z=Object,N=Z.assign,S;L={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(S=L==null?void 0:L.getPlayerState())!=null?S:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return N.call(Z,{},{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},L,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
kGw=function(L){return function(Z){var N=L(),S,u=(S=N.playerApi)==null?void 0:S.getPlayerState();Z&&Z!==N.playerState&&(Z===1||Z===2)&&N.setState({playerState:u})}};
wG0=function(L){return function(Z){var N=L(),S=N.playerApi;S&&(Z==null?void 0:Z.type)==="newdata"&&(y_P&&(clearTimeout(y_P),y_P=void 0),_.c("web_shorts_use_progress_state_for_gapless")?(Z=S==null?void 0:S.getProgressState(Z==null?void 0:Z.playertype),Z=Z.seekableEnd-Z.seekableStart):Z=S==null?void 0:S.getDuration(Z==null?void 0:Z.playertype),N.setState({playedTime:0,videoDuration:Z}))}};
Unw=function(L){return function(Z){var N=L(),S=N.playerApi;if(S){var u=S.getPresentingPlayerType();_.c("web_shorts_use_progress_state_for_gapless")?(S=S.getProgressState(u),S=S.seekableEnd-S.seekableStart):S=S.getDuration(u);N.setState({playedTime:Z,videoDuration:S})}}};
eq0=function(L){_.bF(112394,L,function(){return YPA},function(Z){YPA=Z})};
aqt=function(L,Z){if(!L)return[];var N,S,u;L=((N=L.markersMap)==null?void 0:(S=N.find(function(T){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(T.key)}))==null?void 0:(u=S.value)==null?void 0:u.chapters)||[];
!Iq_(L)||(Z==null?0:Z.ignoreStub)||(L=[dnh()].concat(_.Pd(L)));return L};
dnh=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
Iq_=function(L){if(L.length===0)return!1;var Z;return((Z=_.n(L[0],KM))==null?void 0:Z.timeRangeStartMillis)!==0};
fM=function(L){return L?L.timeRangeStartMillis||0:0};
sJw=function(L,Z){if(L.isDragging&&Z)return L=hqw(L,Z),L===-1?dnh():aqt(Z)[L]};
hqw=function(L,Z){return L.isDragging&&Z?aqt(Z,{ignoreStub:!0}).findIndex(function(N,S,u){N=jJs(L);return Ek1(N,u,S).scrubberHovering}):-1};
jJs=function(L){return Object.assign({},L,{videoDuration:L.videoDuration*1E3,playedTime:L.playedTime*1E3,draggedTime:L.draggedTime*1E3})};
Ek1=function(L,Z,N){var S=fM(_.n(Z[N],KM));Z=fM(_.n(Z[N+1],KM))||L.videoDuration;N=L.isDragging;var u;if(u=L.isDragging)u=L.draggedTime,u=u!==null&&u>=S&&u<Z;var T=L.playedTime;return T!==null&&T>=S&&T<Z?{videoPosition:"active",isScrubbing:N,scrubberHovering:u}:L.playedTime<S?{videoPosition:"pending",isScrubbing:N,scrubberHovering:u}:{videoPosition:"seen",isScrubbing:N,scrubberHovering:u}};
P$F=function(L,Z){return L.videoPosition==="seen"||(Z===void 0?0:Z)>0};
pG0=function(L,Z,N){Z=L/Z.storyboardInterval;var S=aqt(N);if(!S.length)return-Z*72;N=0;S=_.O(S);for(var u=S.next();!u.done;u=S.next())if(fM(_.n(u.value,KM))/1E3<L)N++;else break;return-(Z*72)-N*56};
zqG=function(L){return L?L.width/L.columns:0};
mnw=function(L){return L.isHovering?L.hoveredTime:L.draggedTime};
J_t=function(L,Z){L=L.draggedTime*1E3;return L>=Z.visibleTimeRangeStartMillis&&L<=Z.visibleTimeRangeEndMillis};
_.C$G=function(L){if(L===void 0||Number.isNaN(L))return"--:--";var Z=Math.abs(Math.floor(L)),N=Math.floor(Z/86400),S=Math.floor(Z%86400/3600),u=Math.floor(Z%3600/60);Z=Math.floor(Z%60);var T="";N>0&&(T+=N+":",S<10&&(T+="0"));if(N>0||S>0)T+=S+":",u<10&&(T+="0");T+=u+":";Z<10&&(T+="0");T+=Z;return L>=0?T:"-"+T};
r__=function(L,Z){return function(){var N=mnw(L());var S=Z();var u=L().playerApi;if(u&&u.getNumberOfStoryboardLevels()!==0){var T=u.getStoryboardFrameIndex(N,1);T!==-1?S=u.getStoryboardFrame(T,1):(N=u.getStoryboardFrameIndex(N,0),u=u.getStoryboardFrame(N,0),S&&u&&(u.height*=3,u.width*=3),S=u)}else S=null;if(!S)return null;Z()&&(S.width=90*S.columns,S.height=160*S.rows);return S}};
_.kM=function(L){if(!L||L.getVideoData)return L};
QJG=function(){var L;return{playerApi:(L=_.Nr())!=null?L:void 0}};
XGf=function(L){var Z;_.b(function(N){if(N.nextAddress==1)return N.yield(_.Z7(),2);if(Z=N.yieldResult)Z.unMute(!0),Z.setVolume(L,!0);_.w7(N)})};
A_P=function(L,Z){L&&(L.value=""+Z,L.style.setProperty("--gradient-percent",Z+"%"))};
Hpx=function(L){var Z;return(Z=L==null?void 0:L.value)!=null?Z:0};
Bu_=function(){var L;_.b(function(Z){if(Z.nextAddress==1)return Z.yield(_.Z7(),2);L=Z.yieldResult;if(!L)return Z.return();L.isMuted()?L.unMute(!0):L.mute(!0);_.w7(Z)})};
xn_=function(L){var Z=_.GR().resolve(_.yk).getPlayerElement();Z&&L&&(L===1?Z.pause():Z.play())};
qPL=function(L){_.Ad(L,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
LTB=function(L){_.Ad(L,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
NbB=function(L){return _.pn(L.document.body,function(){return _.g(ZaP,null)},"eh")};
SDh=function(){var L=window.performance.getEntriesByType("navigation");return L?L.map(function(Z){return Z.type}).includes("reload"):!1};
bah=function(){wc(wc(wc(wc(wc(wc(wc(_.GR().resolve(_.Uc),_.iaP),_.u_1),_.TbL),_.t0h),_.Oa1),_.WTw),_.V0f)};
M00=function(L,Z){Z=Z===void 0?!1:Z;var N,S,u,T;return _.b(function(W){if(W.nextAddress==1)return Z||!_.c("kevlar_shorts_seedless_retry_initial_load")||(N=window,S=!(!N.getDataPromise&&!N.getInitialData),S)?W.yield(NuF(),2):(setTimeout(M00.bind(window,L,!0),1E3),W.return());if(W.nextAddress!=3)return u=W.yieldResult,W.yield(gOF(u),3);T=W.yieldResult;vV(L,T);_.w7(W)})};
gOF=function(L){var Z;if((Z=L.response)==null||!Z.replacementEndpoint)return _.xP(L);Z=_.GR().resolve(_.G1);L=L.response;_.n(L.replacementEndpoint,_.Ox)&&L.sequenceContinuation&&(_.n(L.replacementEndpoint,_.Ox).sequenceParams=L.sequenceContinuation);return YM(Z,L.replacementEndpoint,{},_.iH.location.href,"shorts",function(){},function(){return!1})};
FT1=function(L){var Z=_.GR().resolve(GM1);L.playerResponse&&Z.handleResponse(L.playerResponse);L.response&&Z.handleResponse(L.response)};
$m0=function(L){var Z=_.Pv(),N,S=_.n((N=L.response)==null?void 0:N.frameworkUpdates,jw),u;N=_.n((u=L.playerResponse)==null?void 0:u.frameworkUpdates,jw);var T;L=_.n((T=L.reelWatchSequenceResponse)==null?void 0:T.frameworkUpdates,jw);S&&_.u2(S,Z);N&&_.u2(N,Z);L&&_.u2(L,Z)};
DmF=function(L){var Z;_.c("enable_redirect_linking_for_desktop_web_client")&&((Z=window.location.hash)==null?0:Z.includes("redirect_state"))&&L.url&&(L.url=L.url.toString()+window.location.hash)};
oOH=function(L){var Z=_.GR(),N=Z.resolve(_.G1);Z=Z.resolve(_.lZx);L.endpoint&&(N=vOt(N,L.endpoint),N.content&&L.response&&_.eW(Z,L.response,N.content),N.player&&L.playerResponse&&_.eW(Z,L.playerResponse,N.player),N.reelSequence&&L.reelWatchSequenceResponse&&_.eW(Z,L.reelWatchSequenceResponse,N.reelSequence))};
Ij=function(L,Z){FT1(Z);$m0(Z);var N;(Z==null?0:Z.url)&&((N=window.location.hash)==null?0:N.includes("redirect_state"))&&(DmF(Z),(N=Lu0(Z.url))&&_.XJ(L.root,"yt-initialize-third-party",[N,Z]));oOH(Z);N=_.GR();var S=N.resolve(RO0);Z.playerResponse&&N.resolve(cmB).handleResponse(Z.playerResponse);if(Z.playerResponse){N=void 0;if(_.c("ab_v_vid_sig")&&Z.endpoint){var u,T=(u=_.n(Z.endpoint,_.so))!=null?u:_.n(Z.endpoint,_.Ox);T&&(N=T.videoId)}nOA(S,Z.playerResponse,N)}Z.playerResponse&&xk1(Z.playerResponse)&&
_.c("web_enable_ab_rsp_cl")?eI1().then(function(){KTL(S,Z.playerResponse);vV(L,Z)}):vV(L,Z)};
kMA=function(L){if(L=L.root.data){var Z=_.GR().resolve(fZB);L.endpoint&&(L.response&&Z.handleResponse(L.response,void 0,document.querySelector("ytd-app")),L.playerResponse&&Z.handleResponse(L.playerResponse),L.reelWatchSequenceResponse&&Z.handleResponse(L.reelWatchSequenceResponse))}};
ymL=function(L){var Z,N,S,u,T,W;return _.b(function(V){switch(V.nextAddress){case 1:Z=window;if(!Z.getDataPromise){V.jumpTo(2);break}_.RS(V,3);return V.yield(Z.getDataPromise(),5);case 5:N=V.yieldResult;Ij(L,N);_.SX(V,4);break;case 3:return _.yd(V),V.yield(FQ(),6);case 6:S=V.yieldResult,vV(L,S);case 4:return V.return();case 2:if(!_.c("sw_nav_preload_pbj")){V.jumpTo(7);break}Z.fetchInitialData=function(){var M;return _.b(function(G){if(G.nextAddress==1)return G.yield(FQ(),2);M=G.yieldResult;vV(L,M);
_.w7(G)})};
if(Z.getInitialData){Z.loadInitialData=function(M){Ij(L,M)};
u=Z.getInitialData();Z.getInitialData=void 0;Ij(L,u);V.jumpTo(8);break}Z.fetchInitialData=void 0;return V.yield(FQ(),9);case 9:T=V.yieldResult,vV(L,T);case 8:return V.return();case 7:Z.getInitialData?(W=Z.getInitialData(),Z.getInitialData=void 0,Ij(L,W)):Z.loadInitialData=function(M){Ij(L,M)},_.w7(V)}})};
UmH=function(){var L=new w_A;_.HZw(L);L.registerInitializationCallback(function(){uTx()});
L.registerCallback("error",function(Z,N,S){_.H8(Error("Vj`"+N+"`"+S))})};
YDs=function(L){var Z=0;return function(){return Z<L.length?{done:!1,value:L[Z++]}:{done:!0}}};
eOP=typeof Object.defineProperties=="function"?Object.defineProperty:function(L,Z,N){if(L==Array.prototype||L==Object.prototype)return L;L[Z]=N.value;return L};
IZB=function(L){L=["object"==typeof globalThis&&globalThis,L,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var Z=0;Z<L.length;++Z){var N=L[Z];if(N&&N.Math==Math)return N}throw Error("a");};
_.gd=IZB(this);dmw="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.gd.BigInt64Array&&(dmw.push("BigInt64"),dmw.push("BigUint64"));var hO1=function(L,Z){if(Z)for(var N=0;N<dmw.length;N++)aZH(dmw[N]+"Array.prototype."+L,Z)},dc=function(L,Z){Z&&aZH(L,Z)},aZH=function(L,Z){var N=_.gd;
L=L.split(".");for(var S=0;S<L.length-1;S++){var u=L[S];if(!(u in N))return;N=N[u]}L=L[L.length-1];S=N[L];Z=Z(S);Z!=S&&Z!=null&&eOP(N,L,{configurable:!0,writable:!0,value:Z})};
dc("Symbol",function(L){if(L)return L;var Z=function(T,W){this.$jscomp$symbol$id_=T;eOP(this,"description",{configurable:!0,writable:!0,value:W})};
Z.prototype.toString=function(){return this.$jscomp$symbol$id_};
var N="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",S=0,u=function(T){if(this instanceof u)throw new TypeError("b");return new Z(N+(T||"")+"_"+S++,T)};
return u});
dc("Symbol.iterator",function(L){if(L)return L;L=Symbol("c");eOP(Array.prototype,L,{configurable:!0,writable:!0,value:function(){return stH(YDs(this))}});
return L});
dc("Symbol.asyncIterator",function(L){return L?L:Symbol("d")});
var stH=function(L){L={next:L};L[Symbol.iterator]=function(){return this};
return L},jtL=typeof Object.create=="function"?Object.create:function(L){var Z=function(){};
Z.prototype=L;return new Z},EOw=function(){function L(){function N(){}
new N;Reflect.construct(N,[],function(){});
return new N instanceof N}
if(typeof Reflect!="undefined"&&Reflect.construct){if(L())return Reflect.construct;var Z=Reflect.construct;return function(N,S,u){N=Z(N,S);u&&Reflect.setPrototypeOf(N,u.prototype);return N}}return function(N,S,u){u===void 0&&(u=N);
u=jtL(u.prototype||Object.prototype);return Function.prototype.apply.call(N,u,S)||u}}(),PJA;
if(typeof Object.setPrototypeOf=="function")PJA=Object.setPrototypeOf;else{var p_P;a:{var zOG={a:!0},mmf={};try{mmf.__proto__=zOG;p_P=mmf.a;break a}catch(L){}p_P=!1}PJA=p_P?function(L,Z){L.__proto__=Z;if(L.__proto__!==Z)throw new TypeError("e`"+L);return L}:null}aj=PJA;
_.f=function(L,Z){L.prototype=jtL(Z.prototype);L.prototype.constructor=L;if(aj)aj(L,Z);else for(var N in Z)if(N!="prototype")if(Object.defineProperties){var S=Object.getOwnPropertyDescriptor(Z,N);S&&Object.defineProperty(L,N,S)}else L[N]=Z[N];L.superClass_=Z.prototype};
_.O=function(L){var Z=typeof Symbol!="undefined"&&Symbol.iterator&&L[Symbol.iterator];if(Z)return Z.call(L);if(typeof L.length=="number")return{next:YDs(L)};throw Error("f`"+String(L));};
uI=function(L){for(var Z,N=[];!(Z=L.next()).done;)N.push(Z.value);return N};
_.Pd=function(L){return L instanceof Array?L:uI(_.O(L))};
_.sc=function(L){return h9(L,L)};
h9=function(L,Z){L.raw=Z;Object.freeze&&(Object.freeze(L),Object.freeze(Z));return L};
jW=function(L,Z){return Object.prototype.hasOwnProperty.call(L,Z)};
JmH=function(L){if(L==null)throw new TypeError("g");return Object(L)};
CJx=typeof Object.assign=="function"?Object.assign:function(L,Z){L=JmH(L);for(var N=1;N<arguments.length;N++){var S=arguments[N];if(S)for(var u in S)jW(S,u)&&(L[u]=S[u])}return L};
dc("Object.assign",function(L){return L||CJx});
var Ec=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},rmA=function(L){if(L.isRunning_)throw new TypeError("i");
L.isRunning_=!0};
Ec.prototype.JSC$8719_next_=function(L){this.yieldResult=L};
var QtB=function(L,Z){L.abruptCompletion_={exception:Z,isException:!0};L.nextAddress=L.catchAddress_||L.finallyAddress_};
Ec.prototype.return=function(L){this.abruptCompletion_={return:L};this.nextAddress=this.finallyAddress_};
Ec.prototype.yield=function(L,Z){this.nextAddress=Z;return{value:L}};
Ec.prototype.jumpTo=function(L){this.nextAddress=L};
_.w7=function(L){L.nextAddress=0};
_.RS=function(L,Z,N){L.catchAddress_=Z;N!=void 0&&(L.finallyAddress_=N)};
_.Ks=function(L,Z){L.catchAddress_=0;L.finallyAddress_=Z||0};
_.SX=function(L,Z,N){L.nextAddress=Z;L.catchAddress_=N||0};
_.yd=function(L,Z){L.catchAddress_=Z||0;Z=L.abruptCompletion_.exception;L.abruptCompletion_=null;return Z};
_.ns=function(L,Z,N,S){S?L.finallyContexts_[S]=L.abruptCompletion_:L.finallyContexts_=[L.abruptCompletion_];L.catchAddress_=Z||0;L.finallyAddress_=N||0};
_.kS=function(L,Z,N){N=L.finallyContexts_.splice(N||0)[0];(N=L.abruptCompletion_=L.abruptCompletion_||N)?N.isException?L.nextAddress=L.catchAddress_||L.finallyAddress_:N.jumpTo!=void 0&&L.finallyAddress_<N.jumpTo?(L.nextAddress=N.jumpTo,L.abruptCompletion_=null):L.nextAddress=L.finallyAddress_:L.nextAddress=Z};
X_h=function(L){this.JSC$8724_context_=new Ec;this.program_=L};
HaH=function(L,Z){rmA(L.JSC$8724_context_);var N=L.JSC$8724_context_.yieldAllIterator_;if(N)return Am1(L,"return"in N?N["return"]:function(S){return{value:S,done:!0}},Z,L.JSC$8724_context_.return);
L.JSC$8724_context_.return(Z);return PV(L)};
Am1=function(L,Z,N,S){try{var u=Z.call(L.JSC$8724_context_.yieldAllIterator_,N);if(!(u instanceof Object))throw new TypeError("h`"+u);if(!u.done)return L.JSC$8724_context_.isRunning_=!1,u;var T=u.value}catch(W){return L.JSC$8724_context_.yieldAllIterator_=null,QtB(L.JSC$8724_context_,W),PV(L)}L.JSC$8724_context_.yieldAllIterator_=null;S.call(L.JSC$8724_context_,T);return PV(L)};
PV=function(L){for(;L.JSC$8724_context_.nextAddress;)try{var Z=L.program_(L.JSC$8724_context_);if(Z)return L.JSC$8724_context_.isRunning_=!1,{value:Z.value,done:!1}}catch(N){L.JSC$8724_context_.yieldResult=void 0,QtB(L.JSC$8724_context_,N)}L.JSC$8724_context_.isRunning_=!1;if(L.JSC$8724_context_.abruptCompletion_){Z=L.JSC$8724_context_.abruptCompletion_;L.JSC$8724_context_.abruptCompletion_=null;if(Z.isException)throw Z.exception;return{value:Z.return,done:!0}}return{value:void 0,done:!0}};
Bbw=function(L){this.next=function(Z){rmA(L.JSC$8724_context_);L.JSC$8724_context_.yieldAllIterator_?Z=Am1(L,L.JSC$8724_context_.yieldAllIterator_.next,Z,L.JSC$8724_context_.JSC$8719_next_):(L.JSC$8724_context_.JSC$8719_next_(Z),Z=PV(L));return Z};
this.throw=function(Z){rmA(L.JSC$8724_context_);L.JSC$8724_context_.yieldAllIterator_?Z=Am1(L,L.JSC$8724_context_.yieldAllIterator_["throw"],Z,L.JSC$8724_context_.JSC$8719_next_):(QtB(L.JSC$8724_context_,Z),Z=PV(L));return Z};
this.return=function(Z){return HaH(L,Z)};
this[Symbol.iterator]=function(){return this}};
_.xo=function(L,Z){Z=new Bbw(new X_h(Z));aj&&L.prototype&&aj(Z,L.prototype);return Z};
xmt=function(L){function Z(S){return L.next(S)}
function N(S){return L.throw(S)}
return new Promise(function(S,u){function T(W){W.done?S(W.value):Promise.resolve(W.value).then(Z,N).then(T,u)}
T(L.next())})};
_.b=function(L){return xmt(new Bbw(new X_h(L)))};
_.cd=function(L){var Z=L[Symbol.asyncIterator];return Z!==void 0?Z.call(L):new qDh(_.O(L))};
qDh=function(L){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return L};
this.next=function(Z){return Promise.resolve(L.next(Z))};
this["throw"]=function(Z){return new Promise(function(N,S){var u=L["throw"];u!==void 0?N(u.call(L,Z)):(N=L["return"],N!==void 0&&N.call(L),S(new TypeError("j")))})};
L["return"]!==void 0&&(this["return"]=function(Z){return Promise.resolve(L["return"](Z))})};
_.CG=function(){for(var L=Number(this),Z=[],N=L;N<arguments.length;N++)Z[N-L]=arguments[N];return Z};
_.q3=function(L){return L};
dc("globalThis",function(L){return L||_.gd});
dc("Reflect",function(L){return L?L:{}});
dc("Reflect.construct",function(){return EOw});
dc("Reflect.setPrototypeOf",function(L){return L?L:aj?function(Z,N){try{return aj(Z,N),!0}catch(S){return!1}}:null});
dc("Promise",function(L){function Z(){this.batch_=null}
function N(W){return W instanceof u?W:new u(function(V){V(W)})}
if(L&&(typeof _.gd.PromiseRejectionEvent!=="undefined"||!_.gd.Promise||_.gd.Promise.toString().indexOf("[native code]")===-1))return L;Z.prototype.asyncExecute=function(W){if(this.batch_==null){this.batch_=[];var V=this;this.asyncExecuteFunction(function(){V.executeBatch_()})}this.batch_.push(W)};
var S=_.gd.setTimeout;Z.prototype.asyncExecuteFunction=function(W){S(W,0)};
Z.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var W=this.batch_;this.batch_=[];for(var V=0;V<W.length;++V){var M=W[V];W[V]=null;try{M()}catch(G){this.asyncThrow_(G)}}}this.batch_=null};
Z.prototype.asyncThrow_=function(W){this.asyncExecuteFunction(function(){throw W;})};
var u=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(M){V.reject(M)}};
u.prototype.createResolveAndReject_=function(){function W(G){return function(D){M||(M=!0,G.call(V,D))}}
var V=this,M=!1;return{resolve:W(this.resolveTo_),reject:W(this.JSC$8752_reject_)}};
u.prototype.resolveTo_=function(W){if(W===this)this.JSC$8752_reject_(new TypeError("n"));else if(W instanceof u)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)}};
u.prototype.resolveToNonPromiseObj_=function(W){var V=void 0;try{V=W.then}catch(M){this.JSC$8752_reject_(M);return}typeof V=="function"?this.settleSameAsThenable_(V,W):this.fulfill_(W)};
u.prototype.JSC$8752_reject_=function(W){this.settle_(2,W)};
u.prototype.fulfill_=function(W){this.settle_(1,W)};
u.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_()};
u.prototype.scheduleUnhandledRejectionCheck_=function(){var W=this;S(function(){if(W.notifyUnhandledRejection_()){var V=_.gd.console;typeof V!=="undefined"&&V.error(W.result_)}},1)};
u.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var W=_.gd.CustomEvent,V=_.gd.Event,M=_.gd.dispatchEvent;if(typeof M==="undefined")return!0;typeof W==="function"?W=new W("unhandledrejection",{cancelable:!0}):typeof V==="function"?W=new V("unhandledrejection",{cancelable:!0}):(W=_.gd.document.createEvent("CustomEvent"),W.initCustomEvent("unhandledrejection",!1,!0,W));W.promise=this;W.reason=this.result_;return M(W)};
u.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var W=0;W<this.onSettledCallbacks_.length;++W)T.asyncExecute(this.onSettledCallbacks_[W]);this.onSettledCallbacks_=null}};
var T=new Z;u.prototype.settleSameAsPromise_=function(W){var V=this.createResolveAndReject_();W.callWhenSettled_(V.resolve,V.reject)};
u.prototype.settleSameAsThenable_=function(W,V){var M=this.createResolveAndReject_();try{W.call(V,M.resolve,M.reject)}catch(G){M.reject(G)}};
u.prototype.then=function(W,V){function M(v,R){return typeof v=="function"?function(K){try{G(v(K))}catch(U){D(U)}}:R}
var G,D,l=new u(function(v,R){G=v;D=R});
this.callWhenSettled_(M(W,G),M(V,D));return l};
u.prototype.catch=function(W){return this.then(void 0,W)};
u.prototype.callWhenSettled_=function(W,V){function M(){switch(G.state_){case 1:W(G.result_);break;case 2:V(G.result_);break;default:throw Error("p`"+G.state_);}}
var G=this;this.onSettledCallbacks_==null?T.asyncExecute(M):this.onSettledCallbacks_.push(M);this.isRejectionHandled_=!0};
u.resolve=N;u.reject=function(W){return new u(function(V,M){M(W)})};
u.race=function(W){return new u(function(V,M){for(var G=_.O(W),D=G.next();!D.done;D=G.next())N(D.value).callWhenSettled_(V,M)})};
u.all=function(W){var V=_.O(W),M=V.next();return M.done?N([]):new u(function(G,D){function l(K){return function(U){v[K]=U;R--;R==0&&G(v)}}
var v=[],R=0;do v.push(void 0),R++,N(M.value).callWhenSettled_(l(v.length-1),D),M=V.next();while(!M.done)})};
return u});
var pM=function(L,Z,N){if(L==null)throw new TypeError("q`"+N);if(Z instanceof RegExp)throw new TypeError("r`"+N);return L+""};
dc("String.prototype.startsWith",function(L){return L?L:function(Z,N){var S=pM(this,Z,"startsWith"),u=S.length,T=Z.length;N=Math.max(0,Math.min(N|0,S.length));for(var W=0;W<T&&N<u;)if(S[N++]!=Z[W++])return!1;return W>=T}});
dc("Object.setPrototypeOf",function(L){return L||aj});
dc("Symbol.dispose",function(L){return L?L:Symbol("s")});
dc("SuppressedError",function(L){function Z(N,S,u){if(!(this instanceof Z))return new Z(N,S,u);u=Error(u);"stack"in u&&(this.stack=u.stack);this.message=u.message;this.error=N;this.suppressed=S}
if(L)return L;_.f(Z,Error);Z.prototype.name="SuppressedError";return Z});
dc("Array.from",function(L){return L?L:function(Z,N,S){N=N!=null?N:function(V){return V};
var u=[],T=typeof Symbol!="undefined"&&Symbol.iterator&&Z[Symbol.iterator];if(typeof T=="function"){Z=T.call(Z);for(var W=0;!(T=Z.next()).done;)u.push(N.call(S,T.value,W++))}else for(T=Z.length,W=0;W<T;W++)u.push(N.call(S,Z[W],W));return u}});
var Lh0=function(L,Z,N){L instanceof String&&(L=String(L));for(var S=L.length,u=0;u<S;u++){var T=L[u];if(Z.call(N,T,u,L))return{i:u,v:T}}return{i:-1,v:void 0}};
dc("Array.prototype.find",function(L){return L?L:function(Z,N){return Lh0(this,Z,N).v}});
dc("WeakMap",function(L){function Z(){}
function N(M){var G=typeof M;return G==="object"&&M!==null||G==="function"}
function S(M){if(!jW(M,T)){var G=new Z;eOP(M,T,{value:G})}}
function u(M){var G=Object[M];G&&(Object[M]=function(D){if(D instanceof Z)return D;Object.isExtensible(D)&&S(D);return G(D)})}
if(function(){if(!L||!Object.seal)return!1;try{var M=Object.seal({}),G=Object.seal({}),D=new L([[M,2],[G,3]]);if(D.get(M)!=2||D.get(G)!=3)return!1;D.delete(M);D.set(G,4);return!D.has(M)&&D.get(G)==4}catch(l){return!1}}())return L;
var T="$jscomp_hidden_"+Math.random();u("freeze");u("preventExtensions");u("seal");var W=0,V=function(M){this.JSC$8760_id_=(W+=Math.random()+1).toString();if(M){M=_.O(M);for(var G;!(G=M.next()).done;)G=G.value,this.set(G[0],G[1])}};
V.prototype.set=function(M,G){if(!N(M))throw Error("t");S(M);if(!jW(M,T))throw Error("u`"+M);M[T][this.JSC$8760_id_]=G;return this};
V.prototype.get=function(M){return N(M)&&jW(M,T)?M[T][this.JSC$8760_id_]:void 0};
V.prototype.has=function(M){return N(M)&&jW(M,T)&&jW(M[T],this.JSC$8760_id_)};
V.prototype.delete=function(M){return N(M)&&jW(M,T)&&jW(M[T],this.JSC$8760_id_)?delete M[T][this.JSC$8760_id_]:!1};
return V});
dc("Map",function(L){if(function(){if(!L||typeof L!="function"||!L.prototype.entries||typeof Object.seal!="function")return!1;try{var V=Object.seal({x:4}),M=new L(_.O([[V,"s"]]));if(M.get(V)!="s"||M.size!=1||M.get({x:4})||M.set({x:4},"t")!=M||M.size!=2)return!1;var G=M.entries(),D=G.next();if(D.done||D.value[0]!=V||D.value[1]!="s")return!1;D=G.next();return D.done||D.value[0].x!=4||D.value[1]!="t"||!G.next().done?!1:!0}catch(l){return!1}}())return L;
var Z=new WeakMap,N=function(V){this[0]={};this[1]=T();this.size=0;if(V){V=_.O(V);for(var M;!(M=V.next()).done;)M=M.value,this.set(M[0],M[1])}};
N.prototype.set=function(V,M){V=V===0?0:V;var G=S(this,V);G.list||(G.list=this[0][G.id]=[]);G.entry?G.entry.value=M:(G.entry={next:this[1],previous:this[1].previous,head:this[1],key:V,value:M},G.list.push(G.entry),this[1].previous.next=G.entry,this[1].previous=G.entry,this.size++);return this};
N.prototype.delete=function(V){V=S(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};
N.prototype.clear=function(){this[0]={};this[1]=this[1].previous=T();this.size=0};
N.prototype.has=function(V){return!!S(this,V).entry};
N.prototype.get=function(V){return(V=S(this,V).entry)&&V.value};
N.prototype.entries=function(){return u(this,function(V){return[V.key,V.value]})};
N.prototype.keys=function(){return u(this,function(V){return V.key})};
N.prototype.values=function(){return u(this,function(V){return V.value})};
N.prototype.forEach=function(V,M){for(var G=this.entries(),D;!(D=G.next()).done;)D=D.value,V.call(M,D[1],D[0],this)};
N.prototype[Symbol.iterator]=N.prototype.entries;var S=function(V,M){var G=M&&typeof M;G=="object"||G=="function"?Z.has(M)?G=Z.get(M):(G=""+ ++W,Z.set(M,G)):G="p_"+M;var D=V[0][G];if(D&&jW(V[0],G))for(V=0;V<D.length;V++){var l=D[V];if(M!==M&&l.key!==l.key||M===l.key)return{id:G,list:D,index:V,entry:l}}return{id:G,list:D,index:-1,entry:void 0}},u=function(V,M){var G=V[1];
return stH(function(){if(G){for(;G.head!=V[1];)G=G.previous;for(;G.next!=G.head;)return G=G.next,{done:!1,value:M(G)};G=null}return{done:!0,value:void 0}})},T=function(){var V={};
return V.previous=V.next=V.head=V},W=0;
return N});
dc("Set",function(L){if(function(){if(!L||typeof L!="function"||!L.prototype.entries||typeof Object.seal!="function")return!1;try{var N=Object.seal({x:4}),S=new L(_.O([N]));if(!S.has(N)||S.size!=1||S.add(N)!=S||S.size!=1||S.add({x:4})!=S||S.size!=2)return!1;var u=S.entries(),T=u.next();if(T.done||T.value[0]!=N||T.value[1]!=N)return!1;T=u.next();return T.done||T.value[0]==N||T.value[0].x!=4||T.value[1]!=T.value[0]?!1:u.next().done}catch(W){return!1}}())return L;
var Z=function(N){this.JSC$8774_map_=new Map;if(N){N=_.O(N);for(var S;!(S=N.next()).done;)this.add(S.value)}this.size=this.JSC$8774_map_.size};
Z.prototype.add=function(N){N=N===0?0:N;this.JSC$8774_map_.set(N,N);this.size=this.JSC$8774_map_.size;return this};
Z.prototype.delete=function(N){N=this.JSC$8774_map_.delete(N);this.size=this.JSC$8774_map_.size;return N};
Z.prototype.clear=function(){this.JSC$8774_map_.clear();this.size=0};
Z.prototype.has=function(N){return this.JSC$8774_map_.has(N)};
Z.prototype.entries=function(){return this.JSC$8774_map_.entries()};
Z.prototype.values=function(){return this.JSC$8774_map_.values()};
Z.prototype.keys=Z.prototype.values;Z.prototype[Symbol.iterator]=Z.prototype.values;Z.prototype.forEach=function(N,S){var u=this;this.JSC$8774_map_.forEach(function(T){return N.call(S,T,T,u)})};
return Z});
dc("Math.log2",function(L){return L?L:function(Z){return Math.log(Z)/Math.LN2}});
dc("Object.values",function(L){return L?L:function(Z){var N=[],S;for(S in Z)jW(Z,S)&&N.push(Z[S]);return N}});
dc("Object.is",function(L){return L?L:function(Z,N){return Z===N?Z!==0||1/Z===1/N:Z!==Z&&N!==N}});
dc("Array.prototype.includes",function(L){return L?L:function(Z,N){var S=this;S instanceof String&&(S=String(S));var u=S.length;N=N||0;for(N<0&&(N=Math.max(N+u,0));N<u;N++){var T=S[N];if(T===Z||Object.is(T,Z))return!0}return!1}});
dc("String.prototype.includes",function(L){return L?L:function(Z,N){return pM(this,Z,"includes").indexOf(Z,N||0)!==-1}});
dc("Object.entries",function(L){return L?L:function(Z){var N=[],S;for(S in Z)jW(Z,S)&&N.push([S,Z[S]]);return N}});
dc("Number.isFinite",function(L){return L?L:function(Z){return typeof Z!=="number"?!1:!isNaN(Z)&&Z!==Infinity&&Z!==-Infinity}});
dc("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
dc("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
dc("Number.isInteger",function(L){return L?L:function(Z){return Number.isFinite(Z)?Z===Math.floor(Z):!1}});
dc("Number.isSafeInteger",function(L){return L?L:function(Z){return Number.isInteger(Z)&&Math.abs(Z)<=Number.MAX_SAFE_INTEGER}});
dc("String.prototype.endsWith",function(L){return L?L:function(Z,N){var S=pM(this,Z,"endsWith");N===void 0&&(N=S.length);N=Math.max(0,Math.min(N|0,S.length));for(var u=Z.length;u>0&&N>0;)if(S[--N]!=Z[--u])return!1;return u<=0}});
var Z1q=function(L,Z){L instanceof String&&(L+="");var N=0,S=!1,u={next:function(){if(!S&&N<L.length){var T=N++;return{value:Z(T,L[T]),done:!1}}S=!0;return{done:!0,value:void 0}}};
u[Symbol.iterator]=function(){return u};
return u};
dc("Array.prototype.entries",function(L){return L?L:function(){return Z1q(this,function(Z,N){return[Z,N]})}});
dc("Math.trunc",function(L){return L?L:function(Z){Z=Number(Z);if(isNaN(Z)||Z===Infinity||Z===-Infinity||Z===0)return Z;var N=Math.floor(Math.abs(Z));return Z<0?-N:N}});
dc("Number.isNaN",function(L){return L?L:function(Z){return typeof Z==="number"&&isNaN(Z)}});
dc("Array.prototype.keys",function(L){return L?L:function(){return Z1q(this,function(Z){return Z})}});
dc("Array.prototype.values",function(L){return L?L:function(){return Z1q(this,function(Z,N){return N})}});
dc("Array.prototype.fill",function(L){return L?L:function(Z,N,S){var u=this.length||0;N<0&&(N=Math.max(0,u+N));if(S==null||S>u)S=u;S=Number(S);S<0&&(S=Math.max(0,u+S));for(N=Number(N||0);N<S;N++)this[N]=Z;return this}});
hO1("fill",function(L){return L?L:Array.prototype.fill});
dc("Object.fromEntries",function(L){return L?L:function(Z){var N={};if(!(Symbol.iterator in Z))throw new TypeError("v`"+Z);Z=Z[Symbol.iterator].call(Z);for(var S=Z.next();!S.done;S=Z.next()){S=S.value;if(Object(S)!==S)throw new TypeError("w");N[S[0]]=S[1]}return N}});
dc("String.prototype.replaceAll",function(L){return L?L:function(Z,N){if(Z instanceof RegExp&&!Z.global)throw new TypeError("x");return Z instanceof RegExp?this.replace(Z,N):this.replace(new RegExp(String(Z).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),N)}});
dc("Object.getOwnPropertySymbols",function(L){return L?L:function(){return[]}});
dc("String.prototype.repeat",function(L){return L?L:function(Z){var N=pM(this,null,"repeat");if(Z<0||Z>1342177279)throw new RangeError("y");Z|=0;for(var S="";Z;)if(Z&1&&(S+=N),Z>>>=1)N+=N;return S}});
dc("Array.prototype.findIndex",function(L){return L?L:function(Z,N){return Lh0(this,Z,N).i}});
dc("Array.prototype.flatMap",function(L){return L?L:function(Z,N){var S=[];Array.prototype.forEach.call(this,function(u,T){u=Z.call(N,u,T,this);Array.isArray(u)?S.push.apply(S,u):S.push(u)});
return S}});
dc("String.prototype.codePointAt",function(L){return L?L:function(Z){var N=pM(this,null,"codePointAt"),S=N.length;Z=Number(Z)||0;if(Z>=0&&Z<S){Z|=0;var u=N.charCodeAt(Z);if(u<55296||u>56319||Z+1===S)return u;Z=N.charCodeAt(Z+1);return Z<56320||Z>57343?u:(u-55296)*1024+Z+9216}}});
dc("String.fromCodePoint",function(L){return L?L:function(Z){for(var N="",S=0;S<arguments.length;S++){var u=Number(arguments[S]);if(u<0||u>1114111||u!==Math.floor(u))throw new RangeError("z`"+u);u<=65535?N+=String.fromCharCode(u):(u-=65536,N+=String.fromCharCode(u>>>10&1023|55296),N+=String.fromCharCode(u&1023|56320))}return N}});
dc("String.prototype.trimLeft",function(L){function Z(){return this.replace(/^[\s\xa0]+/,"")}
return L||Z});
dc("String.prototype.trimStart",function(L){return L||String.prototype.trimLeft});
dc("String.prototype.padStart",function(L){return L?L:function(Z,N){var S=pM(this,null,"padStart");Z-=S.length;N=N!==void 0?String(N):" ";return(Z>0&&N?N.repeat(Math.ceil(Z/N.length)).substring(0,Z):"")+S}});
dc("Promise.prototype.finally",function(L){return L?L:function(Z){return this.then(function(N){return Promise.resolve(Z()).then(function(){return N})},function(N){return Promise.resolve(Z()).then(function(){throw N;
})})}});
dc("Math.imul",function(L){return L?L:function(Z,N){Z=Number(Z);N=Number(N);var S=Z&65535,u=N&65535;return S*u+((Z>>>16&65535)*u+S*(N>>>16&65535)<<16>>>0)|0}});
dc("Object.hasOwn",function(L){return L?L:function(Z,N){return Object.prototype.hasOwnProperty.call(Z,N)}});
dc("Math.sign",function(L){return L?L:function(Z){Z=Number(Z);return Z===0||isNaN(Z)?Z:Z>0?1:-1}});
dc("Array.prototype.flat",function(L){return L?L:function(Z){Z=Z===void 0?1:Z;var N=[];Array.prototype.forEach.call(this,function(S){Array.isArray(S)&&Z>0?(S=Array.prototype.flat.call(S,Z-1),N.push.apply(N,S)):N.push(S)});
return N}});
dc("String.raw",function(L){return L?L:function(Z,N){Z=JmH(Z);for(var S=Z.raw,u=S.length,T="",W=0;W<u;++W)T+=S[W],W+1<u&&W+1<arguments.length&&(T+=String(arguments[W+1]));return T}});
dc("WeakSet",function(L){if(function(){if(!L||!Object.seal)return!1;try{var N=Object.seal({}),S=Object.seal({}),u=new L([N]);if(!u.has(N)||u.has(S))return!1;u.delete(N);u.add(S);return!u.has(N)&&u.has(S)}catch(T){return!1}}())return L;
var Z=function(N){this.JSC$8785_map_=new WeakMap;if(N){N=_.O(N);for(var S;!(S=N.next()).done;)this.add(S.value)}};
Z.prototype.add=function(N){this.JSC$8785_map_.set(N,!0);return this};
Z.prototype.has=function(N){return this.JSC$8785_map_.has(N)};
Z.prototype.delete=function(N){return this.JSC$8785_map_.delete(N)};
return Z});
dc("Reflect.ownKeys",function(L){return L?L:function(Z){var N=[],S=Object.getOwnPropertyNames(Z);Z=Object.getOwnPropertySymbols(Z);for(var u=0;u<S.length;u++)(S[u].substring(0,14)=="jscomp_symbol_"?Z:N).push(S[u]);return N.concat(Z)}});
dc("Object.getOwnPropertyDescriptors",function(L){return L?L:function(Z){for(var N={},S=Reflect.ownKeys(Z),u=0;u<S.length;u++)N[S[u]]=Object.getOwnPropertyDescriptor(Z,S[u]);return N}});
dc("Promise.allSettled",function(L){function Z(S){return{status:"fulfilled",value:S}}
function N(S){return{status:"rejected",reason:S}}
return L?L:function(S){var u=this;S=Array.from(S,function(T){return u.resolve(T).then(Z,N)});
return u.all(S)}});
dc("Number.parseInt",function(L){return L||parseInt});
_._DumpException=window._DumpException||function(L){throw L;};
window._DumpException=_._DumpException;var NPL=window.ytcsi;NPL&&typeof NPL.tick==="function"&&NPL.tick("rses_dpj");var SGN,z1,mX,J9,i1s,uwQ,TPt,tfI,eY,O1s;SGN=SGN||{};_.iH=this||self;_.bp=function(L,Z,N){L=L.split(".");N=N||_.iH;for(var S;L.length&&(S=L.shift());)L.length||Z===void 0?N[S]&&N[S]!==Object.prototype[S]?N=N[S]:N=N[S]={}:N[S]=Z};
z1=function(L,Z){var N=_.LZ("WIZ_global_data.oxN3nb");L=N&&N[L];return L!=null?L:Z};
mX=_.iH._F_toggles_default_kevlar_base||[];J9=function(){};
J9.get=function(){return null};
_.imP=null;_.LZ=function(L,Z){L=L.split(".");Z=Z||_.iH;for(var N=0;N<L.length;N++)if(Z=Z[L[N]],Z==null)return null;return Z};
_.CM=function(L){L.instance_=void 0;L.getInstance=function(){return L.instance_?L.instance_:L.instance_=new L}};
_.qI=function(L){var Z=typeof L;return Z!="object"?Z:L?Array.isArray(L)?"array":Z:"null"};
_.Jx=function(L){var Z=_.qI(L);return Z=="array"||Z=="object"&&typeof L.length=="number"};
_.Q_=function(L){var Z=typeof L;return Z=="object"&&L!=null||Z=="function"};
_.Hs=function(L){return Object.prototype.hasOwnProperty.call(L,i1s)&&L[i1s]||(L[i1s]=++uwQ)};
i1s="closure_uid_"+(Math.random()*1E9>>>0);uwQ=0;TPt=function(L,Z,N){return L.call.apply(L.bind,arguments)};
tfI=function(L,Z,N){if(!L)throw Error();if(arguments.length>2){var S=Array.prototype.slice.call(arguments,2);return function(){var u=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(u,S);return L.apply(Z,u)}}return function(){return L.apply(Z,arguments)}};
_.hr=function(L,Z,N){_.hr=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?TPt:tfI;return _.hr.apply(null,arguments)};
_.T6=function(L,Z){var N=Array.prototype.slice.call(arguments,1);return function(){var S=N.slice();S.push.apply(S,arguments);return L.apply(this,S)}};
_.rc=function(){return Date.now()};
eY=function(L){return L};
_.Qk=function(L,Z){function N(){}
N.prototype=Z.prototype;L.superClass_=Z.prototype;L.prototype=new N;L.prototype.constructor=L;L.base=function(S,u,T){for(var W=Array(arguments.length-2),V=2;V<arguments.length;V++)W[V-2]=arguments[V];return Z.prototype[u].apply(S,W)}};
O1s=function(L){return L};var Whl,Vfs;_.r=function(L,Z,N,S){var u=arguments.length,T=u<3?Z:S===null?S=Object.getOwnPropertyDescriptor(Z,N):S,W;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")T=Reflect.decorate(L,Z,N,S);else for(var V=L.length-1;V>=0;V--)if(W=L[V])T=(u<3?W(T):u>3?W(Z,N,T):W(Z,N))||T;u>3&&T&&Object.defineProperty(Z,N,T)};
_.Q=function(L,Z){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(L,Z)};
Whl=function(L,Z){if(Z!==null&&Z!==void 0){if(typeof Z!=="object"&&typeof Z!=="function")throw new TypeError("A");if(N===void 0){if(!Symbol.dispose)throw new TypeError("C");var N=Z[Symbol.dispose]}if(typeof N!=="function")throw new TypeError("D");L.stack.push({value:Z,dispose:N,async:!1})}return Z};
Vfs=function(L){function Z(T){L.error=L.hasError?new SuppressedError(T,L.error,"An error was suppressed during disposal."):T;L.hasError=!0}
function N(){for(;S=L.stack.pop();)try{if(!S.async&&u===1)return u=0,L.stack.push(S),Promise.resolve().then(N);if(S.dispose){var T=S.dispose.call(S.value);if(S.async)return u|=2,Promise.resolve(T).then(N,function(W){Z(W);return N()})}else u|=1}catch(W){Z(W)}if(u===1)return L.hasError?Promise.reject(L.error):Promise.resolve();
if(L.hasError)throw L.error;}
var S,u=0;N()};var b1V="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(" ");Lh1()&&b1V.push("details:not(:has(summary))");var NPt=b1V.join(",");_.Qk(_.NL,Error);_.NL.prototype.name="CustomError";var MfI;var gtq=void 0,GBV,FhI=typeof TextDecoder!=="undefined",b1B,Vfx=typeof String.prototype.isWellFormed==="function",Whs=typeof TextEncoder!=="undefined";var $LO;_.dZ=function(L){for(var Z=[],N=0,S=0;S<L.length;S++){var u=L.charCodeAt(S);u<128?Z[N++]=u:(u<2048?Z[N++]=u>>6|192:((u&64512)==55296&&S+1<L.length&&(L.charCodeAt(S+1)&64512)==56320?(u=65536+((u&1023)<<10)+(L.charCodeAt(++S)&1023),Z[N++]=u>>18|240,Z[N++]=u>>12&63|128):Z[N++]=u>>12|224,Z[N++]=u>>6&63|128),Z[N++]=u&63|128)}return Z};
$LO=function(L){for(var Z=[],N=0,S=0;N<L.length;){var u=L[N++];if(u<128)Z[S++]=String.fromCharCode(u);else if(u>191&&u<224){var T=L[N++];Z[S++]=String.fromCharCode((u&31)<<6|T&63)}else if(u>239&&u<365){T=L[N++];var W=L[N++],V=L[N++];u=((u&7)<<18|(T&63)<<12|(W&63)<<6|V&63)-65536;Z[S++]=String.fromCharCode(55296+(u>>10));Z[S++]=String.fromCharCode(56320+(u&1023))}else T=L[N++],W=L[N++],Z[S++]=String.fromCharCode((u&15)<<12|(T&63)<<6|W&63)}return Z.join("")};var gP=String.prototype.trim?function(L){return L.trim()}:function(L){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(L)[1]},DLV=/&/g,l0h=/</g,vtO=/>/g,ot0=/"/g,RAM=/'/g,cxQ=/\x00/g,ntL=/[\x00&<>"']/;var XQ=!!(mX[0]>>15&1),KhL=!!(mX[0]&1024),f0Q=!!(mX[0]>>16&1),kBh=!!(mX[0]&8),yxh=!!(mX[0]&2),wss=!!(mX[0]&4),ULL=!!(mX[0]&16),YGL=!!(mX[0]&128);var oF=XQ?f0Q:z1(610401301,!1),eAl=XQ?kBh:z1(772657768,!1),I0t=XQ?yxh:z1(513659523,!1),dLs=XQ?KhL||!wss:z1(568333945,!0),fEh=XQ?ULL:z1(1331761403,!1),Rvs=XQ?KhL||!YGL:z1(748402147,!0);var cs,a0Y=_.iH.navigator;cs=a0Y?a0Y.userAgentData||null:null;var TI;_.EG=function(L,Z){return Array.prototype.indexOf.call(L,Z,void 0)};
_.SZ=function(L,Z,N){Array.prototype.forEach.call(L,Z,N)};
_.A9=function(L,Z,N){return Array.prototype.filter.call(L,Z,N)};
_.px=function(L,Z,N){return Array.prototype.map.call(L,Z,N)};
TI=function(L,Z,N){return Array.prototype.some.call(L,Z,N)};
_.m1f=function(L,Z,N){return Array.prototype.every.call(L,Z,N)};var HV=function(L){HV[" "](L);return L};
HV[" "]=function(){};
var smH=function(L,Z){try{return HV(L[Z]),!0}catch(N){}return!1},GTh=function(L,Z,N,S){S=S?S(Z):Z;
return Object.prototype.hasOwnProperty.call(L,S)?L[S]:L[S]=N(Z)};var hAI,Wx,sFQ,jFQ,PHq,ps5,rwF,zAL,mLL,JxV,Thx,rxL,QFY,BPM,xL0,qGt;_.lvG=function(){return _.iH.navigator||null};
hAI=FhL();_.BV=$LF();Wx=n1("Edge");sFQ=Wx||_.BV;_.xM=n1("Gecko")&&!(_.ML(_.vs(),"WebKit")&&!n1("Edge"))&&!(n1("Trident")||n1("MSIE"))&&!n1("Edge");_.qH=_.ML(_.vs(),"WebKit")&&!n1("Edge");jFQ=_.qH&&n1("Mobile");_.Etq=_.f0A();PHq=_.kBw();ps5=(ef()?cs.platform==="Linux":n1("Linux"))||_.yxw();rwF=_.ntt();zAL=Kht();mLL=n1("iPad");JxV=n1("iPod");_.CHh=_.IF();Thx=_.ML(_.vs(),"KaiOS");rxL=function(){var L=_.iH.document;return L?L.documentMode:void 0};
a:{var XsI="",Axt=function(){var L=_.vs();if(_.xM)return/rv:([^\);]+)(\)|;)/.exec(L);if(Wx)return/Edge\/([\d\.]+)/.exec(L);if(_.BV)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(L);if(_.qH)return/WebKit\/(\S+)/.exec(L);if(hAI)return/(?:Version)[ \/]?(\S+)/.exec(L)}();
Axt&&(XsI=Axt?Axt[1]:"");if(_.BV){var H1O=rxL();if(H1O!=null&&H1O>parseFloat(XsI)){QFY=String(H1O);break a}}QFY=XsI}BPM=QFY;xL0={};_.L5=function(L){return GTh(xL0,L,function(){return _.$t(BPM,L)>=0})};
if(_.iH.document&&_.BV){var LMY=rxL();qGt=LMY?LMY:parseInt(BPM,10)||void 0}else qGt=void 0;_.Z0Y=qGt;var Aq0,Hqw,N5O;_.Zi=y_();Aq0=Kht()||n1("iPod");Hqw=n1("iPad");N5O=_.vtF();_.NQ=_.UG();_.HW=_.l0w()&&!_.IF();var SYY,Sd,S_s,SlA,uhh,i0V;SYY={};Sd=null;S_s=_.xM||_.qH||typeof _.iH.btoa=="function";_.jY=function(L,Z){Z===void 0&&(Z=0);i0V();Z=SYY[Z];for(var N=Array(Math.floor(L.length/3)),S=Z[64]||"",u=0,T=0;u<L.length-2;u+=3){var W=L[u],V=L[u+1],M=L[u+2],G=Z[W>>2];W=Z[(W&3)<<4|V>>4];V=Z[(V&15)<<2|M>>6];M=Z[M&63];N[T++]=G+W+V+M}G=0;M=S;switch(L.length-u){case 2:G=L[u+1],M=Z[(G&15)<<2]||S;case 1:L=L[u],N[T]=Z[L>>2]+Z[(L&3)<<4|G>>4]+M+S}return N.join("")};
SlA=function(L){var Z="";uhh(L,function(N){Z+=String.fromCharCode(N)});
return Z};
_.agt=function(L){var Z=[];uhh(L,function(N){Z.push(N)});
return Z};
_.xt=function(L){var Z=L.length,N=Z*3/4;N%3?N=Math.floor(N):_.bH("=.",L[Z-1])&&(N=_.bH("=.",L[Z-2])?N-2:N-1);var S=new Uint8Array(N),u=0;uhh(L,function(T){S[u++]=T});
return u!==N?S.subarray(0,u):S};
uhh=function(L,Z){function N(M){for(;S<L.length;){var G=L.charAt(S++),D=Sd[G];if(D!=null)return D;if(!_.V_(G))throw Error("H`"+G);}return M}
i0V();for(var S=0;;){var u=N(-1),T=N(0),W=N(64),V=N(64);if(V===64&&u===-1)break;Z(u<<2|T>>4);W!=64&&(Z(T<<4&240|W>>2),V!=64&&Z(W<<6&192|V))}};
i0V=function(){if(!Sd){Sd={};for(var L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Z=["+/=","+/","-_=","-_.","-_"],N=0;N<5;N++){var S=L.concat(Z[N].split(""));SYY[N]=S;for(var u=0;u<S.length;u++){var T=S[u];Sd[T]===void 0&&(Sd[T]=u)}}}};var qGf=typeof Uint8Array!=="undefined",zAt=!_.BV&&typeof btoa==="function",mLt=/[-_.]/g,PH_={"-":"+",_:"/",".":"="},UY={};var w5,ttY;w5=function(L,Z){if(Z!==UY)throw Error("J");this.JSC$8819_value_=L;if(L!=null&&L.length===0)throw Error("I");};
_.YL=function(){return T5q||(T5q=new w5(null,UY))};
ttY=function(L){return new Uint8Array(J0F(L)||0)};
w5.prototype.isEmpty=function(){return this.JSC$8819_value_==null};
w5.prototype.sizeBytes=function(){var L=J0F(this);return L?L.length:0};
var J0F=function(L){if(UY!==UY)throw Error("J");var Z=L.JSC$8819_value_;Z==null||qGf&&Z!=null&&Z instanceof Uint8Array||(typeof Z==="string"?Z=JxB(Z):(_.qI(Z),Z=null));return Z==null?Z:L.JSC$8819_value_=Z},T5q;var rxt=void 0;var St=typeof Symbol==="function"&&typeof Symbol()==="symbol",O0s=NI("jas",void 0,!0),plL=NI(void 0,"0di"),Sn=NI(void 0,"1oa"),h0=NI(void 0,Symbol()),Svs=NI(void 0,"0ub"),um1=NI(void 0,"0ubs"),kiG=NI(void 0,"0ubsb"),n5_=NI(void 0,"0actk"),f8=NI("m_m","messagePrototypeMarker",!0),$cH=NI(void 0,"vps"),LkF=NI();var Axf,XsL,A0,WMl;Axf={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};XsL=Object.defineProperties;_.ts=St?O0s:"internalArrayState";WMl=[];Vq(WMl,7);A0=Object.freeze(WMl);var wy={},DN={},VtI=function(L,Z,N){this.iterable=L;this.mapper=Z;this.thisArg=N};
VtI.prototype.next=function(){var L=this.iterable.next();L.done||(L.value=this.mapper.call(this.thisArg,L.value));return L};
VtI.prototype[Symbol.iterator]=function(){return this};
var b0t=Object.freeze({}),aO={};_.MtN=sY(function(L){return L!==null&&L!==void 0});var uhw=sY(function(L){return typeof L==="number"}),i0B=sY(function(L){return typeof L==="string"}),ttG=sY(function(L){return typeof L==="boolean"}),gLl=sY(function(L){return L!=null&&typeof L==="object"&&typeof L.then==="function"}),zlP=sY(function(L){return typeof L==="function"}),gJ=sY(function(L){return!!L&&(typeof L==="object"||typeof L==="function")});var T5_=typeof _.iH.BigInt==="function"&&typeof _.iH.BigInt(0)==="bigint";var aNs=sY(function(L){return T5_?L>=GVI&&L<=FMY:L[0]==="-"?O0x(L,$IQ):O0x(L,DIN)}),$IQ=Number.MIN_SAFE_INTEGER.toString(),GVI=T5_?BigInt(Number.MIN_SAFE_INTEGER):void 0,DIN=Number.MAX_SAFE_INTEGER.toString(),FMY=T5_?BigInt(Number.MAX_SAFE_INTEGER):void 0;var lNt=typeof Uint8Array.prototype.slice==="function",EY=0,Pl=0,b0H;var Mc,$5,L8,Fm,oLF;Mc=typeof BigInt==="function"?BigInt.asIntN:void 0;_.DP=typeof BigInt==="function"?BigInt.asUintN:void 0;$5=Number.isSafeInteger;L8=Number.isFinite;Fm=Math.trunc;oLF=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Dc0={};var B5h={},vLM=function(){try{var L=function(){return EOw(Map,[],this.constructor)};
_.f(L,Map);HV(new L);return!1}catch(Z){return!0}}(),iy=function(){this.JSC$8838_map_=new Map};
_.t=iy.prototype;_.t.get=function(L){return this.JSC$8838_map_.get(L)};
_.t.set=function(L,Z){this.JSC$8838_map_.set(L,Z);this.size=this.JSC$8838_map_.size;return this};
_.t.delete=function(L){L=this.JSC$8838_map_.delete(L);this.size=this.JSC$8838_map_.size;return L};
_.t.clear=function(){this.JSC$8838_map_.clear();this.size=this.JSC$8838_map_.size};
_.t.has=function(L){return this.JSC$8838_map_.has(L)};
_.t.entries=function(){return this.JSC$8838_map_.entries()};
_.t.keys=function(){return this.JSC$8838_map_.keys()};
_.t.values=function(){return this.JSC$8838_map_.values()};
_.t.forEach=function(L,Z){return this.JSC$8838_map_.forEach(L,Z)};
iy.prototype[Symbol.iterator]=function(){return this.entries()};
var uy=function(){if(vLM)return Object.setPrototypeOf(iy.prototype,Map.prototype),Object.defineProperties(iy.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),iy;var L=function(){return EOw(Map,[],this.constructor)};
_.f(L,Map);return L}(),Uv=function(L,Z,N,S){N=N===void 0?rsG:N;
S=S===void 0?rsG:S;var u=uy.call(this)||this;u.arrayState=L[_.ts]|0;u.valueCtor=Z;u.keyToApi=N;u.valueToApi=u.valueCtor?XlG:S;for(var T=0;T<L.length;T++){var W=L[T],V=N(W[0],!1,!0),M=W[1];Z?M===void 0&&(M=null):M=S(W[1],!1,!0,void 0,void 0,u.arrayState);uy.prototype.set.call(u,V,M)}return u};
_.f(Uv,uy);var oLO=function(L){if(L.arrayState&2)throw Error("N");},Fk_=function(L,Z){return BPh(Array.from(uy.prototype.entries.call(L),Z))};
_.t=Uv.prototype;_.t.clear=function(){oLO(this);uy.prototype.clear.call(this)};
_.t.delete=function(L){oLO(this);return uy.prototype.delete.call(this,this.keyToApi(L,!0,!1))};
_.t.entries=function(){if(this.valueCtor){var L=uy.prototype.keys.call(this);L=new VtI(L,Asf,this)}else L=uy.prototype.entries.call(this);return L};
_.t.values=function(){if(this.valueCtor){var L=uy.prototype.keys.call(this);L=new VtI(L,Uv.prototype.get,this)}else L=uy.prototype.values.call(this);return L};
_.t.forEach=function(L,Z){this.valueCtor?uy.prototype.forEach.call(this,function(N,S,u){L.call(Z,u.get(S),S,u)}):uy.prototype.forEach.call(this,L,Z)};
_.t.set=function(L,Z){oLO(this);L=this.keyToApi(L,!0,!1);return L==null?this:Z==null?(uy.prototype.delete.call(this,L),this):uy.prototype.set.call(this,L,this.valueToApi(Z,!0,!0,this.valueCtor,!1,this.arrayState))};
_.t.has=function(L){return uy.prototype.has.call(this,this.keyToApi(L,!1,!1))};
_.t.get=function(L){L=this.keyToApi(L,!1,!1);var Z=uy.prototype.get.call(this,L);if(Z!==void 0){var N=this.valueCtor;return N?(N=this.valueToApi(Z,!1,!0,N,this.callToMutableOnAccess,this.arrayState),N!==Z&&uy.prototype.set.call(this,L,N),N):Z}};
Uv.prototype[Symbol.iterator]=function(){return this.entries()};
Uv.prototype.toJSON=void 0;var H0x;var Wk1=function(){},tYx=function(L,Z){for(var N in L)!isNaN(N)&&Z(L,+N,L[N])},VYH=function(L){var Z=new Wk1;
tYx(L,function(N,S,u){Z[S]=C0(u)});
Z.reviveUnknownFields=L.reviveUnknownFields;return Z},Z80={reviveIntoImmutable:!0};var O8A;var lPF,v5L;var RQt,qc,y7,IW,cs5,gK,YE,nLs,KMY,Di,fNL,ly,RA,ca;RQt=_.jt(0);_.T5={};_.t5=function(L,Z,N,S,u){Z=qc(L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z,N,u);if(Z!==null||S&&L.noLegacyNull!==DN)return Z};
qc=function(L,Z,N,S){if(Z===-1)return null;var u=Z+(N?0:-1),T=L.length-1;if(!(T<1+(N?0:-1))){if(u>=T){var W=L[T];if(W!=null&&typeof W==="object"&&W.constructor===Object){N=W[Z];var V=!0}else if(u===T)N=W;else return}else N=L[u];if(S&&N!=null){S=S(N);if(S==null)return S;if(!Object.is(S,N))return V?W[Z]=S:L[u]=S,S}return N}};
_.oZ=function(L,Z,N,S){C8(L);var u=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Qs(u,u[_.ts]|0,Z,N,S);return L};
_.OW=function(L,Z,N){L=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return E5f(L,L[_.ts]|0,Z,N)!==void 0};
_.Wa=function(L,Z,N,S){var u=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return E5f(u,u[_.ts]|0,Z,IW(L,S,N))!==void 0};
_.gZ=function(L){return L===b0t?2:4};
_.VM=function(L,Z){L=_.t5(L,Z,void 0,void 0,IPt);return L==null?_.YL():L};
y7=function(L,Z,N,S){C8(L);var u=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=u[_.ts]|0;if(S==null){var W=hvP(u);if(sQA(W,u,T,N)===Z)W.set(N,0);else return L}else T=jQB(u,T,N,Z);Qs(u,T,Z,S);return L};
_.by=function(L,Z,N,S){var u=L[_.ts]|0,T=hs(u);u=jQB(L,u,N,Z,T);Qs(L,u,Z,S,T)};
IW=function(L,Z,N){return _.MQ(L,Z)===N?N:-1};
_.MQ=function(L,Z){L=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return sQA(hvP(L),L,void 0,Z,void 0)};
cs5=function(L,Z,N){var S=L[_.ts]|0,u=hs(S),T=qc(L,N,u);if(T!=null&&T[f8]===wy){if(!cl(T))return J0(T),T.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var W=T.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(T)&&(W=T);if(W){var V=W[_.ts]|0;V&2&&(W=mk(W,V))}W=zg(W,Z,!0);W!==T&&Qs(L,S,N,W,u);return W};
_.lp=function(L,Z,N,S){var u=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=u[_.ts]|0;Z=E5f(u,T,Z,N,S);if(Z==null)return Z;T=u[_.ts]|0;if(!cl(L,T)){var W=QOH(Z);W!==Z&&(J0(L)&&(u=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=u[_.ts]|0),Z=W,T=Qs(u,T,N,Z,S),ry(u,T))}return Z};
_.MG=function(L,Z,N,S){var u=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Pqw(L,u,u[_.ts]|0,Z,N,S,!1,!0)};
_.fG=function(L,Z,N,S){N=pwF(N);_.oZ(L,Z,N,S);N&&!cl(N)&&ry(L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return L};
_.kV=function(L,Z,N,S){S=pwF(S);y7(L,Z,N,S);S&&!cl(S)&&ry(L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return L};
gK=function(L,Z,N){C8(L);var S=L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=S[_.ts]|0;if(N==null)return Qs(S,u,Z),L;for(var T=N===A0?7:N[_.ts]|0,W=T,V=x5(T),M=V||Object.isFrozen(N),G=!0,D=!0,l=0;l<N.length;l++){var v=N[l];V||(v=cl(v),G&&(G=!v),D&&(D=v))}V||(T=G?13:5,T=D?T&-4097:T|4096);M&&T===W||(N=C0(N),W=0,T=Hw(T,u));T!==W&&Vq(N,T);u=Qs(S,u,Z,N);2&T||!(4096&T||16&T)||ry(S,u);return L};
YE=function(L,Z,N,S){mcP(L,Z,N,S);return L};
nLs=function(L,Z,N){mcP(L,Z,G5,void 0,N,1,!0);return L};
_.FE=function(L,Z,N){L=_.t5(L,Z,void 0,N);Z=typeof L;L=L==null?L:Z==="bigint"?_.jt((0,_.DP)(64,L)):_.ZP(L)?Z==="string"?_.dIH(L):_.eQ_(L):void 0;return L};
_.$T=function(L,Z){var N=N===void 0?!1:N;var S;return(S=_.vLh(_.t5(L,Z)))!=null?S:N};
_.G3=function(L,Z,N){N=N===void 0?0:N;var S;return(S=_.Ww(_.t5(L,Z)))!=null?S:N};
KMY=function(L,Z){var N=N===void 0?0:N;L=_.csP(_.t5(L,Z));return L!=null?L:N};
Di=function(L,Z,N){N=N===void 0?RQt:N;var S;return(S=_.jOx(_.t5(L,Z)))!=null?S:N};
fNL=function(L){var Z=Z===void 0?RQt:Z;var N;return(N=_.FE(L,23))!=null?N:Z};
ly=function(L,Z){var N=N===void 0?0:N;var S;return(S=_.t5(L,Z,void 0,void 0,_.xL))!=null?S:N};
_.va=function(L,Z,N,S){N=N===void 0?"":N;var u;return(u=_.K8(_.t5(L,Z,S)))!=null?u:N};
_.oA=function(L,Z){var N=N===void 0?0:N;var S;return(S=_.t0(_.t5(L,Z)))!=null?S:N};
RA=function(L,Z){var N=N===void 0?"0":N;L=sOA(_.t5(L,Z),!0);return L!=null?L:N};
ca=function(L,Z,N){return _.va(L,IW(L,N,Z))};
_.f5=function(L,Z,N,S){return _.lp(L,Z,IW(L,S,N),void 0)};
_.yL=function(L,Z){return _.K8(_.t5(L,Z,void 0,_.T5))};
_.lX=function(L,Z,N){return _.oZ(L,Z,lNH(N))};
_.DF=function(L,Z,N){return _.ZM(L,Z,lNH(N),!1)};
_.kT=function(L,Z,N){return _.oZ(L,Z,_.Ov(N))};
_.aW=function(L,Z,N){return _.oZ(L,Z,Gg(N))};
_.dF=function(L,Z,N){return _.oZ(L,Z,cw(N))};
_.ey=function(L,Z,N,S){return _.ZM(L,Z,cw(N),"",S)};
_.vx=function(L,Z,N){return _.oZ(L,Z,N==null?N:_.Nc(N))};
_.yM=function(L,Z,N){return _.ZM(L,Z,N==null?N:_.Nc(N),0)};var i9=function(L,Z,N){this.buffer=L;if(N&&!Z)throw Error();this.JSC$8850_isImmutable=Z};var kVh=function(L,Z,N,S){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8853_start_=0;this.init(L,Z,N,S)},wK,wlQ,UIl,YY5,eQq,INM,FYF,yst;
_.t=kVh.prototype;_.t.init=function(L,Z,N,S){var u=S===void 0?{}:S;S=u.aliasBytesFields===void 0?!1:u.aliasBytesFields;u=u.treatNewDataAsImmutable===void 0?!1:u.treatNewDataAsImmutable;this.aliasBytesFields=S;this.treatNewDataAsImmutable=u;L&&(L=Cqw(L,this.treatNewDataAsImmutable),this.bytes_=L.buffer,this.bytesAreImmutable_=L.JSC$8850_isImmutable,this.JSC$8853_start_=Z||0,this.end_=N!==void 0?this.JSC$8853_start_+N:this.bytes_.length,this.cursor_=this.JSC$8853_start_)};
_.t.free=function(){this.clear();yst.length<100&&yst.push(this)};
_.t.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8853_start_=0;this.aliasBytesFields=!1};
_.t.reset=function(){this.cursor_=this.JSC$8853_start_};
_.t.atEnd=function(){return this.cursor_==this.end_};
_.UW=function(L,Z){var N=0,S=0,u=0,T=L.bytes_,W=L.cursor_;do{var V=T[W++];N|=(V&127)<<u;u+=7}while(u<32&&V&128);if(u>32)for(S|=(V&127)>>4,u=3;u<32&&V&128;u+=7)V=T[W++],S|=(V&127)<<u;wK(L,W);if(!(V&128))return Z(N>>>0,S>>>0);throw Error();};
wK=function(L,Z){L.cursor_=Z;if(Z>L.end_)throw Error();};
_.ed=function(L){var Z=L.bytes_,N=L.cursor_,S=Z[N++],u=S&127;if(S&128&&(S=Z[N++],u|=(S&127)<<7,S&128&&(S=Z[N++],u|=(S&127)<<14,S&128&&(S=Z[N++],u|=(S&127)<<21,S&128&&(S=Z[N++],u|=S<<28,S&128&&Z[N++]&128&&Z[N++]&128&&Z[N++]&128&&Z[N++]&128&&Z[N++]&128)))))throw Error();wK(L,N);return u};
_.IA=function(L){var Z=L.bytes_,N=L.cursor_,S=Z[N],u=Z[N+1],T=Z[N+2];Z=Z[N+3];wK(L,L.cursor_+4);return(S<<0|u<<8|T<<16|Z<<24)>>>0};
wlQ=function(L){var Z=_.IA(L);L=_.IA(L);return gLs(Z,L)};
UIl=function(L){var Z=_.IA(L);L=(Z>>31)*2+1;var N=Z>>>23&255;Z&=8388607;return N==255?Z?NaN:L*Infinity:N==0?L*1.401298464324817E-45*Z:L*Math.pow(2,N-150)*(Z+8388608)};
YY5=function(L){var Z=_.IA(L),N=_.IA(L);L=(N>>31)*2+1;var S=N>>>20&2047;Z=4294967296*(N&1048575)+Z;return S==2047?Z?NaN:L*Infinity:S==0?L*4.9E-324*Z:L*Math.pow(2,S-1075)*(Z+4503599627370496)};
eQq=function(L){for(var Z=0,N=L.cursor_,S=N+10,u=L.bytes_;N<S;){var T=u[N++];Z|=T;if((T&128)===0)return wK(L,N),!!(Z&127)}throw Error();};
INM=function(L,Z){if(Z<0)throw Error();var N=L.cursor_;Z=N+Z;if(Z>L.end_)throw Error();L.cursor_=Z;return N};
FYF=function(L,Z){if(Z==0)return _.YL();var N=INM(L,Z);L.aliasBytesFields&&L.bytesAreImmutable_?N=L.bytes_.subarray(N,N+Z):(L=L.bytes_,Z=N+Z,N=N===Z?new Uint8Array(0):lNt?L.slice(N,Z):new Uint8Array(L.subarray(N,Z)));return N.length==0?_.YL():new w5(N,UY)};
yst=[];var aNl=function(L,Z,N,S){if(yst.length){var u=yst.pop();u.init(L,Z,N,S);L=u}else L=new kVh(L,Z,N,S);this.decoder_=L;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;dIt(this,S)},dIt=function(L,Z){Z=Z===void 0?{}:Z;
L.discardUnknownFields=Z.discardUnknownFields===void 0?!1:Z.discardUnknownFields},lMf=function(L,Z,N,S){if(hQt.length){var u=hQt.pop();
dIt(u,S);u.decoder_.init(L,Z,N,S);return u}return new aNl(L,Z,N,S)},Mnw,GiA,dK,sOQ,hQt;
aNl.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;hQt.length<100&&hQt.push(this)};
aNl.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
Mnw=function(L){if(L.decoder_.atEnd())return!1;L.fieldCursor_=L.decoder_.cursor_;var Z=_.ed(L.decoder_)>>>0,N=Z>>>3;Z&=7;if(!(Z>=0&&Z<=5))throw Error();if(N<1)throw Error();L.nextField_=N;L.nextWireType_=Z;return!0};
GiA=function(L){switch(L.nextWireType_){case 0:L.nextWireType_!=0?GiA(L):eQq(L.decoder_);break;case 1:L=L.decoder_;wK(L,L.cursor_+8);break;case 2:if(L.nextWireType_!=2)GiA(L);else{var Z=_.ed(L.decoder_)>>>0;L=L.decoder_;wK(L,L.cursor_+Z)}break;case 5:L=L.decoder_;wK(L,L.cursor_+4);break;case 3:Z=L.nextField_;do{if(!Mnw(L))throw Error();if(L.nextWireType_==4){if(L.nextField_!=Z)throw Error();break}GiA(L)}while(1);break;default:throw Error();}};
dK=function(L,Z,N){var S=L.decoder_.end_,u=_.ed(L.decoder_)>>>0;u=L.decoder_.cursor_+u;var T=u-S;T<=0&&(L.decoder_.end_=u,N(Z,L,void 0,void 0,void 0),T=u-L.decoder_.cursor_);if(T)throw Error();L.decoder_.cursor_=u;L.decoder_.end_=S;return Z};
sOQ=function(L){var Z=_.ed(L.decoder_)>>>0;L=L.decoder_;var N=INM(L,Z);L=L.bytes_;if(FhI){var S=L,u;(u=GBV)||(u=GBV=new TextDecoder("utf-8",{fatal:!0}));Z=N+Z;S=N===0&&Z===S.length?S:S.subarray(N,Z);try{var T=u.decode(S)}catch(G){if(gtq===void 0){try{u.decode(new Uint8Array([128]))}catch(D){}try{u.decode(new Uint8Array([97])),gtq=!0}catch(D){gtq=!1}}!gtq&&(GBV=void 0);throw G;}}else{T=N;Z=T+Z;N=[];for(var W=null,V,M;T<Z;)V=L[T++],V<128?N.push(V):V<224?T>=Z?Sf():(M=L[T++],V<194||(M&192)!==128?(T--,
Sf()):N.push((V&31)<<6|M&63)):V<240?T>=Z-1?Sf():(M=L[T++],(M&192)!==128||V===224&&M<160||V===237&&M>=160||((u=L[T++])&192)!==128?(T--,Sf()):N.push((V&15)<<12|(M&63)<<6|u&63)):V<=244?T>=Z-2?Sf():(M=L[T++],(M&192)!==128||(V<<28)+(M-144)>>30!==0||((u=L[T++])&192)!==128||((S=L[T++])&192)!==128?(T--,Sf()):(V=(V&7)<<18|(M&63)<<12|(u&63)<<6|S&63,V-=65536,N.push((V>>10&1023)+55296,(V&1023)+56320))):Sf(),N.length>=8192&&(W=O1x(W,N),N.length=0);T=O1x(W,N)}return T};
_.jOs=function(L){var Z=_.ed(L.decoder_)>>>0;return FYF(L.decoder_,Z)};
_.ELh=function(L,Z,N){var S=_.ed(L.decoder_)>>>0;for(S=L.decoder_.cursor_+S;L.decoder_.cursor_<S;)N.push(Z(L.decoder_))};
hQt=[];var PtM=function(L,Z){this.JSC$8860_lo=L>>>0;this.JSC$8860_hi=Z>>>0},IMt=function(L){L=BigInt.asUintN(64,L);
return new PtM(Number(L&BigInt(4294967295)),Number(L>>BigInt(32)))},Xwf=function(L){if(!L)return plI||(plI=new PtM(0,0));
if(!/^\d+$/.test(L))return null;Js(L);return new PtM(EY,Pl)},plI,eMP=function(L,Z){this.JSC$8862_lo=L>>>0;
this.JSC$8862_hi=Z>>>0},r0t=function(L){if(!L)return zQM||(zQM=new eMP(0,0));
if(!/^-?\d+$/.test(L))return null;Js(L);return new eMP(EY,Pl)},zQM;var aA=function(){this.JSC$8864_buffer_=[]},Ft,DM,mIV;
aA.prototype.length=function(){return this.JSC$8864_buffer_.length};
aA.prototype.end=function(){var L=this.JSC$8864_buffer_;this.JSC$8864_buffer_=[];return L};
Ft=function(L,Z,N){for(;N>0||Z>127;)L.JSC$8864_buffer_.push(Z&127|128),Z=(Z>>>7|N<<25)>>>0,N>>>=7;L.JSC$8864_buffer_.push(Z)};
DM=function(L,Z){for(;Z>127;)L.JSC$8864_buffer_.push(Z&127|128),Z>>>=7;L.JSC$8864_buffer_.push(Z)};
_.aMf=function(L,Z){if(Z>=0)DM(L,Z);else{for(var N=0;N<9;N++)L.JSC$8864_buffer_.push(Z&127|128),Z>>=7;L.JSC$8864_buffer_.push(1)}};
mIV=function(L,Z){Js(Z);GVL(function(N,S){Ft(L,N>>>0,S>>>0)})};
aA.prototype.writeUint8=function(L){this.JSC$8864_buffer_.push(L>>>0&255)};
_.Gi=function(L,Z){L.JSC$8864_buffer_.push(Z>>>0&255);L.JSC$8864_buffer_.push(Z>>>8&255);L.JSC$8864_buffer_.push(Z>>>16&255);L.JSC$8864_buffer_.push(Z>>>24&255)};
aA.prototype.writeInt8=function(L){this.JSC$8864_buffer_.push(L>>>0&255)};var Jsq,W6,s7P,P9f,xcB;Jsq=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new aA};
W6=function(L,Z){Z.length!==0&&(L.blocks_.push(Z),L.totalLength_+=Z.length)};
_.Ctq=function(L,Z){_.gw(L,Z,2);Z=L.encoder_.end();W6(L,Z);Z.push(L.totalLength_);return Z};
_.rsY=function(L,Z){var N=Z.pop();for(N=L.totalLength_+L.encoder_.length()-N;N>127;)Z.push(N&127|128),N>>>=7,L.totalLength_++;Z.push(N);L.totalLength_++};
_.gw=function(L,Z,N){DM(L.encoder_,Z*8+N)};
s7P=function(L,Z,N){if(N!=null)switch(A0_(N),_.gw(L,Z,1),typeof N){case "number":L=L.encoder_;WMs(N);_.Gi(L,EY);_.Gi(L,Pl);break;case "bigint":N=IMt(N);L=L.encoder_;Z=N.JSC$8860_hi;_.Gi(L,N.JSC$8860_lo);_.Gi(L,Z);break;default:N=Xwf(N),L=L.encoder_,Z=N.JSC$8860_hi,_.Gi(L,N.JSC$8860_lo),_.Gi(L,Z)}};
P9f=function(L,Z,N){_.gw(L,Z,2);DM(L.encoder_,N.length);W6(L,L.encoder_.end());W6(L,N)};
xcB=function(L,Z,N,S){N!=null&&(Z=_.Ctq(L,Z),S(N,L),_.rsY(L,Z))};var H8P,QOt,XlY,Ast,H0s,xIl,qYM,Z8N,NyN;H8P=u9();QOt=u9();XlY=u9();Ast=u9();H0s=u9();_.B5M=u9();_.h5=u9();xIl=u9();qYM=u9();_.LkO=u9();Z8N=u9();NyN=u9();_.Svl=u9();_.i8t=u9();_.On=function(L,Z,N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L,Z,N)};
_.On.prototype.toJSON=function(){return Ev(this)};
_.On.prototype.serialize=function(L){return JSON.stringify(Ev(this,L))};
var Afh=function(L,Z){if(Z==null||Z=="")return new L;Z=JSON.parse(Z);if(!Array.isArray(Z))throw Error("V");return new L(xL1(Z))};
_.On.prototype.getExtension=function(L){i8f(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L.fieldIndex);Ny0(this,L.fieldIndex);return L.ctor?L.isRepeated?L.getExtensionFn(this,L.ctor,L.fieldIndex,_.gZ(),L.JSC$8875_hasMessageId):L.getExtensionFn(this,L.ctor,L.fieldIndex,L.JSC$8875_hasMessageId):L.isRepeated?L.getExtensionFn(this,L.fieldIndex,_.gZ(),L.JSC$8875_hasMessageId):L.getExtensionFn(this,L.fieldIndex,L.defaultValue,L.JSC$8875_hasMessageId)};
_.On.prototype.clone=function(){var L=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=L[_.ts]|0;return wwh(this,L,Z)?y0w(this,L,!0):new this.constructor(mk(L,Z,!1))};
_.On.prototype[f8]=wy;_.On.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Ti=function(L,Z,N){this.$$binaryReaderFn=L;this.$$binaryWriterFn=Z;L=eY(H8P);this.$$isMsg=!!L&&N===L||!1},iG_=Byx(function(L,Z,N,S,u){if(L.nextWireType_!==2)return!1;
dK(L,cs5(Z,S,N),u);return!0},LYt),utt=Byx(function(L,Z,N,S,u){if(L.nextWireType_!==2)return!1;
dK(L,cs5(Z,S,N),u);return!0},LYt),oVt=Symbol(),OGH=Symbol(),bGF=Symbol(),nVP=Symbol(),$qf=Symbol(),ZGs,Nw_;var rfH,um0,sW,TyY,tYs,O8Q,Wk0,EW,b8V,MYQ,g5h,GgQ,Fkq,DcN,lPO,v5I,o5Y,Rvl,c0V;rfH=function(L,Z){var N=new Jsq;KYH(L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N,tf(oVt,vVt,RMB,Z));W6(N,N.encoder_.end());L=new Uint8Array(N.totalLength_);Z=N.blocks_;for(var S=Z.length,u=0,T=0;T<S;T++){var W=Z[T];L.set(W,u);u+=W.length}N.blocks_=[L];return L};
um0=Byx(function(L,Z,N,S,u){if(L.nextWireType_!==2)return!1;L=dK(L,zg([void 0,void 0],S,!0),u);L=C0(L);S=Z[_.ts]|0;u=hs(S);if(S&2)throw Error();var T=qc(Z,N,u);if(T instanceof Uv)(T.arrayState&2)!=0?(T=Fk_(T),T.push(L),Qs(Z,S,N,T,u)):(Z=T,N=Z.keyToApi(L[0],!1,!0),L=L[1],L=Z.valueCtor?L===void 0?null:L:Z.valueToApi(L,!1,!0,void 0,!1,Z.arrayState),uy.prototype.set.call(Z,N,L));else if(Array.isArray(T)){var W=T[_.ts]|0;W&8192||Vq(T,W|=8192);W&2&&(T=dc1(T),Qs(Z,S,N,T,u));T.push(L)}else Qs(Z,S,N,BPh([L]),
u);return!0},function(L,Z,N,S,u){if(Z instanceof Uv)Z.forEach(function(V,M){xcB(L,N,zg([M,
V],S,!1),u)});
else if(Array.isArray(Z))for(var T=0;T<Z.length;T++){var W=Z[T];Array.isArray(W)&&xcB(L,N,zg(W,S,!1),u)}});
sW=_.V8(function(L,Z,N){if(L.nextWireType_!==1)return!1;_.Mq(Z,N,YY5(L.decoder_));return!0},Uqx,NyN);
TyY=_.V8(function(L,Z,N,S){if(L.nextWireType_!==1)return!1;_.by(Z,N,S,YY5(L.decoder_));return!0},Uqx,NyN);
tYs=_.V8(function(L,Z,N){if(L.nextWireType_!==5)return!1;_.Mq(Z,N,UIl(L.decoder_));return!0},YnA,Z8N);
O8Q=_.w61(function(L,Z,N){if(L.nextWireType_!==5&&L.nextWireType_!==2)return!1;Z=_.Nq(Z,Z[_.ts]|0,N);L.nextWireType_==2?_.ELh(L,UIl,Z):Z.push(UIl(L.decoder_));return!0},function(L,Z,N){Z=_.yf1(_.xL,Z,!0);
if(Z!=null&&Z.length)for(_.gw(L,N,2),DM(L.encoder_,Z.length*4),N=0;N<Z.length;N++){var S=L.encoder_;Mt0(Z[N]);_.Gi(S,EY)}},Z8N);
Wk0=_.V8(function(L,Z,N,S){if(L.nextWireType_!==5)return!1;_.by(Z,N,S,UIl(L.decoder_));return!0},YnA,Z8N);
_.VYt=_.V8(function(L,Z,N){if(L.nextWireType_!==0)return!1;_.Mq(Z,N,_.UW(L.decoder_,_.DI0));return!0},_.$V,_.h5);
_.jd=_.V8(function(L,Z,N){if(L.nextWireType_!==0)return!1;_.Mq(Z,N,_.UW(L.decoder_,mM));return!0},_.$V,_.h5);
EW=_.V8(function(L,Z,N){if(L.nextWireType_!==0)return!1;L=_.UW(L.decoder_,mM);_.Mq(Z,N,L===0?void 0:L);return!0},_.$V,_.h5);
b8V=_.V8(function(L,Z,N,S){if(L.nextWireType_!==0)return!1;_.by(Z,N,S,_.UW(L.decoder_,mM));return!0},_.$V,_.h5);
MYQ=_.V8(function(L,Z,N){if(L.nextWireType_!==0)return!1;_.Mq(Z,N,_.UW(L.decoder_,_.zV));return!0},dq1,xIl);
_.Pa=_.V8(function(L,Z,N){if(L.nextWireType_!==0)return!1;_.Mq(Z,N,_.UW(L.decoder_,gLs));return!0},dq1,xIl);
_.p5=_.V8(function(L,Z,N){if(L.nextWireType_!==0)return!1;_.Mq(Z,N,_.ed(L.decoder_));return!0},hML,Ast);
g5h=_.V8(function(L,Z,N){if(L.nextWireType_!==0)return!1;L=_.ed(L.decoder_);_.Mq(Z,N,L===0?void 0:L);return!0},hML,Ast);
GgQ=_.V8(function(L,Z,N,S){if(L.nextWireType_!==0)return!1;_.by(Z,N,S,_.ed(L.decoder_));return!0},hML,Ast);
Fkq=_.V8(function(L,Z,N){if(L.nextWireType_!==1)return!1;_.Mq(Z,N,wlQ(L.decoder_));return!0},_.j7_,_.LkO);
_.$ct=_.w61(function(L,Z,N){if(L.nextWireType_!==1&&L.nextWireType_!==2)return!1;Z=_.Nq(Z,Z[_.ts]|0,N);L.nextWireType_==2?_.ELh(L,wlQ,Z):Z.push(wlQ(L.decoder_));return!0},function(L,Z,N){Z=_.yf1(Pth,Z,!1);
if(Z!=null)for(var S=0;S<Z.length;S++)s7P(L,N,Z[S])},_.LkO);
_.z5=_.V8(function(L,Z,N){if(L.nextWireType_!==0)return!1;_.Mq(Z,N,eQq(L.decoder_));return!0},EVB,QOt);
_.ma=_.V8(function(L,Z,N){if(L.nextWireType_!==0)return!1;L=eQq(L.decoder_);_.Mq(Z,N,L===!1?void 0:L);return!0},EVB,QOt);
DcN=_.V8(function(L,Z,N,S){if(L.nextWireType_!==0)return!1;_.by(Z,N,S,eQq(L.decoder_));return!0},EVB,QOt);
_.J5=_.V8(function(L,Z,N){if(L.nextWireType_!==2)return!1;_.Mq(Z,N,sOQ(L));return!0},p6A,XlY);
_.rK=_.V8(function(L,Z,N){if(L.nextWireType_!==2)return!1;L=sOQ(L);_.Mq(Z,N,L===""?void 0:L);return!0},p6A,XlY);
_.QM=_.V8(function(L,Z,N,S){if(L.nextWireType_!==2)return!1;_.by(Z,N,S,sOQ(L));return!0},p6A,XlY);
lPO=_.w61(function(L,Z,N){if(L.nextWireType_!==2)return!1;L=sOQ(L);_.Nq(Z,Z[_.ts]|0,N).push(L);return!0},function(L,Z,N){Z=_.yf1(_.K8,Z,!0);
if(Z!=null)for(var S=0;S<Z.length;S++){var u=L,T=N,W=Z[S];W!=null&&P9f(u,T,MfL(W))}},XlY);
v5I=void 0;v5I=v5I===void 0?H8P:v5I;_.XE=new Ti(function(L,Z,N,S,u){if(L.nextWireType_!==2)return!1;S=zg(void 0,S,!0);_.Nq(Z,Z[_.ts]|0,N).push(S);dK(L,S,u);return!0},function(L,Z,N,S,u){if(Array.isArray(Z))for(var T=0;T<Z.length;T++)zMt(L,Z[T],N,S,u)},v5I);
_.A5=Byx(function(L,Z,N,S,u,T){if(L.nextWireType_!==2)return!1;var W=Z[_.ts]|0;jQB(Z,W,T,N,hs(W));Z=cs5(Z,S,N);dK(L,Z,u);return!0},zMt);
_.Ha=_.V8(function(L,Z,N){if(L.nextWireType_!==2)return!1;_.Mq(Z,N,_.jOs(L));return!0},_.mqt,_.Svl);
o5Y=_.V8(function(L,Z,N,S){if(L.nextWireType_!==2)return!1;_.by(Z,N,S,_.jOs(L));return!0},_.mqt,_.Svl);
_.Ba=_.V8(function(L,Z,N){if(L.nextWireType_!==0)return!1;_.Mq(Z,N,_.ed(L.decoder_)>>>0);return!0},JfB,H0s);
Rvl=_.V8(function(L,Z,N,S){if(L.nextWireType_!==0)return!1;_.by(Z,N,S,_.ed(L.decoder_)>>>0);return!0},JfB,H0s);
_.xT=_.V8(function(L,Z,N){if(L.nextWireType_!==0)return!1;_.Mq(Z,N,_.ed(L.decoder_));return!0},_.C9H,_.i8t);
_.qQ=_.V8(function(L,Z,N){if(L.nextWireType_!==0)return!1;L=_.ed(L.decoder_);_.Mq(Z,N,L===0?void 0:L);return!0},_.C9H,_.i8t);
c0V=_.V8(function(L,Z,N){if(L.nextWireType_!==0)return!1;_.Mq(Z,N,_.UW(L.decoder_,FMG));return!0},function(L,Z,N){Z=ELw(Z);
if(Z!=null&&(QQx(Z),Z!=null))switch(_.gw(L,N,0),typeof Z){case "number":L=L.encoder_;N=Z;Z=N<0;N=Math.abs(N)*2;WMs(N);N=EY;var S=Pl;Z&&(N==0?S==0?S=N=4294967295:(S--,N=4294967295):N--);EY=N;Pl=S;Ft(L,EY,Pl);break;case "bigint":L=L.encoder_;Z=Z<<BigInt(1)^Z>>BigInt(63);EY=Number(BigInt.asUintN(32,Z));Pl=Number(BigInt.asUintN(32,Z>>BigInt(32)));Ft(L,EY,Pl);break;default:mIV(L.encoder_,Z)}},qYM);var fPQ=function(){var L=n5q,Z=Kks;this.fieldIndex=175237375;this.ctor=Z;this.isRepeated=0;this.getExtensionFn=_.lp;this.defaultValue=void 0;this.JSC$8875_hasMessageId=L.messageId!=null?aO:void 0};
fPQ.prototype.register=function(){HV(this)};var kgV=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(kgV,_.On);var y0h=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(y0h,_.On);var xqx=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(xqx,_.On);var wwM=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(wwM,_.On);var Ucs=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Ucs,_.On);var Yv0=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Yv0,_.On);var ev0=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(ev0,_.On);ev0.prototype.getData=function(){return _.VM(this,2)};var IPL=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(IPL,_.On);var dc0=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(dc0,_.On);dc0.prototype.getStyle=function(){return _.lp(this,kgV,1)};var KG=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(KG,_.On);KG.prototype.getPayloadCase=function(){return _.MQ(this,y8)};
KG.prototype.getStyle=function(){return _.f5(this,dc0,6,y8)};
var aPs=function(){var L=new KG,Z=new Ucs;return _.kV(L,7,y8,Z)},hv5=function(){var L=new KG,Z=new Yv0;
return _.kV(L,8,y8,Z)},y8=[1,
2,3,4,5,6,7,8];var sQQ=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(sQQ,_.On);var jQV=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(jQV,_.On);var E5t=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(E5t,_.On);var Pqh=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Pqh,_.On);var pwO=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(pwO,_.On);var zvL=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(zvL,_.On);var mc5=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(mc5,_.On);var J0O=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(J0O,_.On);J0O.prototype.getData=function(){return _.VM(this,2)};var Cqh=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Cqh,_.On);var BwF=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(BwF,_.On);BwF.prototype.getPayloadCase=function(){return _.MQ(this,L7)};
var L7=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var ZI=function(L,Z){L=Error.call(this,L);this.message=L.message;"stack"in L&&(this.stack=L.stack);this.code=Z===void 0?2:Z};
_.f(ZI,Error);var r0L=Promise;var QQs=function(L){this.channelPromise=L};
QQs.prototype.send=function(L,Z,N){this.channelPromise.then(function(S){S.send(L,Z,N)})};var Xwt=function(L,Z){this.data=L;this.channel=Z};
Xwt.prototype.reply=function(L,Z,N){this.channel.send(L,Z,N)};var A0q=function(L){this.JSC$8941_port_=L};
A0q.prototype.send=function(L,Z,N){N=N===void 0?[]:N;var S=new MessageChannel;H85(S.port1,Z);this.JSC$8941_port_.postMessage(L,[S.port2].concat(N))};
var Bys=function(L,Z){H85(L,Z);return new A0q(L)},H85=function(L,Z){Z&&(L.onmessage=function(N){Z(new Xwt(N.data,Bys(N.ports[0])))})};var xcV=function(L){this.verifier_=L};
xcV.prototype.verify=function(L){return this.verifier_(L)};
var qvO=function(L){var Z=Object.create(null);(typeof L==="string"?[L]:L).forEach(function(N){if(N==="null")throw Error("X");Z[N]=!0});
return function(N){return Z[N]===!0}};_.LYL=function(){if(!_.iH.addEventListener||!Object.defineProperty)return!1;var L=!1,Z=Object.defineProperty({},"passive",{get:function(){L=!0}});
try{var N=function(){};
_.iH.addEventListener("test",N,Z);_.iH.removeEventListener("test",N,Z)}catch(S){}return L}();var ZGl;_.NY=function(L){var Z=L.destination;var N=L.iframe;var S=L.origin;var u=L.channelName===void 0?"ZNWN1d":L.channelName;var T=L.onMessage===void 0?void 0:L.onMessage;L=L.onEstablished===void 0?void 0:L.onEstablished;return ZGl({destination:Z,getSource:function(){return N.contentWindow},
originVerifier:S instanceof xcV?S:typeof S==="function"?new xcV(S):new xcV(qvO(S)),channelName:u,onMessage:T,onEstablished:L})};
ZGl=function(L){var Z=L.destination;var N=L.getSource;var S=L.originVerifier;var u=L.token===void 0?void 0:L.token;var T=L.channelName;var W=L.onMessage===void 0?void 0:L.onMessage;var V=L.onEstablished===void 0?void 0:L.onEstablished;return new QQs(new r0L(function(M,G){var D=function(l){l.source&&l.source===N()&&S.verify(l.origin)&&(l.data.n||l.data)===T&&(Z.removeEventListener("message",D,!1),u&&l.data.t!==u?G(Error("Y`"+T+"`"+u+"`"+l.data.t)):(M(Bys(l.ports[0],W)),V&&V(l)))};
Z.addEventListener("message",D,!1)}))};var Nwq=function(L){try{L()}catch(Z){uH(Z)}};var iGq=function(L){var Z=this;var N=L.getMessageType;var S=L.onUnregisteredMessage===void 0?function(){}:L.onUnregisteredMessage;
var u=L.onBeforeRegisteredMessage===void 0?function(){}:L.onBeforeRegisteredMessage;
L=L.onAfterRegisteredMessage===void 0?function(){}:L.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=N;this.onUnregisteredMessage_=S;this.onBeforeRegisteredMessage_=u;this.onAfterRegisteredMessage_=L;this.onMessage=function(T){return Snq(Z,T)}};
iGq.prototype.register=function(L,Z){this.registry_.set(L,Z);return this};
var Snq=function(L,Z){var N=L.getMessageType_(Z.data),S=L.registry_.get(N);S?(Nwq(function(){return L.onBeforeRegisteredMessage_(Z,N)}),Nwq(function(){return S(Z)}),Nwq(function(){return L.onAfterRegisteredMessage_(Z,N)})):Nwq(function(){return L.onUnregisteredMessage_(Z,N)})};var utL=function(L){this.JSC$8958_channel_=L},tn5,OGt;
utL.prototype.send=function(L,Z,N){this.JSC$8958_channel_.send(Ev(L),Z,N)};
_.TwI=function(L,Z){return function(N){var S=new L(N.data);return Z(new Xwt(S,N.channel))}};
tn5=function(L){return function(Z){return L(new Xwt(Z.data,new utL(Z.channel)))}};
OGt=function(L,Z){return tn5(_.TwI(L,Z))};var WYh=function(L,Z,N,S){this.registry=L;this.delegate=Z;this.receiveMessageConstructor=N;this.createInitMessage=S;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},HG1=function(L){var Z=new iGq({getMessageType:L.getPayloadCase});
return new WYh(Z,new utL(_.NY({iframe:L.child,destination:window,origin:L.origin,channelName:L.channelName,onMessage:OGt(L.receiveMessageConstructor,Z.onMessage)})),L.receiveMessageConstructor,L.createInitMessage)},VnI=function(L,Z){L.createInitMessage=Z};
WYh.prototype.send=function(L){if(!this.initialised)throw new ZI("Attempted to send a message before initialisation.");this.delegate.send(L)};
var bGO=function(L,Z){return _.b(function(N){if(!L.initialised)throw new ZI("Attempted to send a message before initialisation.");return N.return(new Promise(function(S){L.delegate.send(Z,OGt(L.receiveMessageConstructor,S))}))})};
WYh.prototype.init=function(){var L=this;return _.b(function(Z){if(L.initialised)throw new ZI("Attempted to initialise twice. The SDK can only be initialised once.");if(L.createInitMessage!==void 0){var N=L.delegate,S=N.send,u=L.createInitMessage;var T=new y0h;var W=[].concat(_.Pd(L.features));T=_.LG(T,1,W,_.Nc);S.call(N,u.call(L,T))}L.initialised=!0;_.w7(Z)})};
var Ss=function(L,Z){if(L.initialised)throw new ZI('Attempted to set up API "'+Z+'" after initialisation. All APIs must be set up before initialising the SDK.');L.features.add(Z);return L.registry};
_.gd.Object.defineProperties(WYh.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var Mnh=function(L){this.channel=L;this.registered=!1};
Mnh.prototype.update=function(L){if(this.channel.isInitialised){if(!this.registered)throw new ZI("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var Z=new KG;var N=new wwM;N=_.lX(N,1,L);Z=_.kV(Z,2,y8,N);this.channel.send(Z)}else this.register();this.JSC$8972_audioEnabled=L};
Mnh.prototype.register=function(){Ss(this.channel,1);this.registered=!0};
Mnh.prototype.isAudioEnabled=function(){return this.JSC$8972_audioEnabled};var gVh=function(L){this.channel=L};
_.t=gVh.prototype;_.t.onFirstFrameReady=function(L){Ss(this.channel,2).register(11,function(Z){Z=_.f5(Z.data,sQQ,11,L7);if(!Z)throw new ZI("Unexpectedly nonexistent GameFirstFrameReadyEvent");L(_.va(Z,1))})};
_.t.onReady=function(L){Ss(this.channel,2).register(4,function(Z){Z=_.f5(Z.data,E5t,4,L7);if(!Z)throw new ZI("Unexpectedly nonexistent GameReadyEvent");L(_.va(Z,1))})};
_.t.onLevelComplete=function(L){Ss(this.channel,2).register(5,function(Z){Z=_.f5(Z.data,Pqh,5,L7);if(!Z)throw new ZI("Unexpectedly nonexistent LevelCompleteEvent");L(_.va(Z,1),_.G3(Z,2))})};
_.t.onGameOver=function(L){Ss(this.channel,2).register(6,function(Z){Z=_.f5(Z.data,jQV,6,L7);if(!Z)throw new ZI("Unexpectedly nonexistent GameOverEvent");L(_.va(Z,1))})};
_.t.pause=function(){var L=this;if(!this.channel.isInitialised)return Ss(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new ZI("Using unregistered Game Feature: pause.");var Z=aPs();return new Promise(function(N){return _.b(function(S){if(S.nextAddress==1)return S.yield(bGO(L.channel,Z),2);N();_.w7(S)})})};
_.t.resume=function(){var L=this;if(!this.channel.isInitialised)return Ss(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new ZI("Using unregistered Game Feature: resume.");var Z=hv5();return new Promise(function(N){return _.b(function(S){if(S.nextAddress==1)return S.yield(bGO(L.channel,Z),2);N();_.w7(S)})})};var GiQ=function(L){this.channel=L};
GiQ.prototype.onReady=function(L){Ss(this.channel,5).register(8,function(Z){if(!_.f5(Z.data,pwO,8,L7))throw new ZI("Unexpectedly nonexistent PageReadyEvent");L()})};var FYO=function(L){this.channel=L};
FYO.prototype.onChange=function(L){Ss(this.channel,3).register(7,function(Z){Z=_.f5(Z.data,zvL,7,L7);if(!Z)throw new ZI("Unexpectedly nonexistent ScoreEvent");L(_.va(Z,1),_.G3(Z,2))})};var $qt={load:function(){throw new ZI("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new ZI("Storage used, but storage.onSave() listener not set!");}},DqO=function(L){this.channel=L;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},lMt=function(L){Ss(L.channel,4).register(2,$qt.load).register(3,$qt.save);
L.initialSetupDone=!0};
DqO.prototype.onLoad=function(L){this.initialSetupDone||lMt(this);this.loadRegistered||(this.loadRegistered=!0,Ss(this.channel,4).register(2,function(Z){var N,S,u;return _.b(function(T){if(T.nextAddress==1){N=_.f5(Z.data,mc5,2,L7);if(!N)throw new ZI("Unexpectedly nonexistent StorageLoad");S=_.va(N,1);return T.yield(L(S),2)}u=T.yieldResult;var W=Z.reply,V=new KG;var M=new ev0;M=_.dF(M,1,S);M=_.oZ(M,2,_.et(u,!1));V=_.kV(V,3,y8,M);W.call(Z,V);_.w7(T)})}))};
DqO.prototype.onSave=function(L){this.initialSetupDone||lMt(this);this.saveRegistered||(this.saveRegistered=!0,Ss(this.channel,4).register(3,function(Z){var N,S,u;return _.b(function(T){if(T.nextAddress==1){N=_.f5(Z.data,J0O,3,L7);if(!N)throw new ZI("Unexpectedly nonexistent StorageSave");S=_.va(N,1);u=ttY(N.getData());return T.yield(L(S,u),2)}var W=Z.reply,V=new KG;var M=new IPL;M=_.dF(M,1,S);V=_.kV(V,4,y8,M);W.call(Z,V);_.w7(T)})}))};var vVL=function(L){this.channel=L};
vVL.prototype.update=function(L){if(!this.channel.features.has(6))throw new ZI("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var Z=new KG,N=new dc0;L=_.fG(N,1,L);Z=_.kV(Z,6,y8,L);this.channel.send(Z)};
vVL.prototype.register=function(){Ss(this.channel,6)};var oVL=function(L){this.channel=L;this.userActivityLoggingIntervalMs=0};
oVL.prototype.onUserActivity=function(L,Z){this.userActivityLoggingIntervalMs=Z;Ss(this.channel,7).register(9,function(N){if(!_.f5(N.data,Cqh,9,L7))throw new ZI("Unexpectedly nonexistent ClickEvent");L()})};var RMV=function(L){var Z=this;this.channel=L;this.init=this.channel.init.bind(this.channel);this.page=new GiQ(this.channel);this.game=new gVh(this.channel);this.audio=new Mnh(this.channel);this.score=new FYO(this.channel);this.storage=new DqO(this.channel);this.style=new vVL(this.channel);this.userActivity=new oVL(this.channel);VnI(this.channel,function(N){var S=new xqx;N=_.fG(S,1,N);N=_.kT(N,3,Z.userActivity.userActivityLoggingIntervalMs);S=Z.audio.isAudioEnabled();S!==void 0&&_.lX(N,2,S);S=new KG;
return _.kV(S,5,y8,N)})};var cfO=function(){this.timedFunctionContext=0};
cfO.prototype.timeExecution=function(L,Z){var N=this;return function(){var S=_.CG.apply(0,arguments);N.timedFunctionContext=L;return Z.apply(null,_.Pd(S))}};var nV5=function(){var L={};this.priorityTasks=(L[3]=[],L[2]=[],L[1]=[],L);this.isFlushing=!1},fx=function(L,Z,N){var S=KYt(L,N);
L.priorityTasks[N].push(Z);S&&L.priorityTasks[N].length===1&&L.flush()},KYt=function(L,Z){return Object.keys(L.priorityTasks).map(function(N){return Number(N)}).filter(function(N){return!isNaN(N)&&N>Z}).every(function(N){return L.priorityTasks[N].length===0})};
nV5.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(L){return L.length>0});)fMN(this,3),fMN(this,2),fMN(this,1)}catch(L){throw Object.values(this.priorityTasks).forEach(function(Z){return void Z.splice(0,Z.length)}),L;
}finally{this.isFlushing=!1}}};
var fMN=function(L,Z){for(;KYt(L,Z)&&L.priorityTasks[Z].length>0;)L.priorityTasks[Z][0](),L.priorityTasks[Z].shift()};
_.gd.Object.defineProperties(nV5.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(L){return L.length>0})}}});var ugA={};var kiY=globalThis.trustedTypes,Lws=kiY,N7h;var Un=function(L){this.privateDoNotAccessOrElseWrappedResourceUrl=L};
Un.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var yf0,w60,Uqs,YnQ,eM5,IML,dq0,aMt;yf0=_.sc([""]);w60=h9(["\x00"],["\\0"]);Uqs=h9(["\n"],["\\n"]);YnQ=h9(["\x00"],["\\u0000"]);eM5=_.sc([""]);IML=h9(["\x00"],["\\0"]);dq0=h9(["\n"],["\\n"]);aMt=h9(["\x00"],["\\u0000"]);_.hMI=iss(function(L){return L(yf0)})||iss(function(L){return L(w60)})||iss(function(L){return L(Uqs)})||iss(function(L){return L(YnQ)});
_.s75=_.dw(eM5)&&_.dw(IML)&&_.dw(dq0)&&_.dw(aMt);var zi;_.a7=function(L,Z){this.privateDoNotAccessOrElseWrappedUrl=Z};
_.a7.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.j7q=hf("about:blank");zi=hf("about:invalid#zClosurez");var T7B=function(L){this.isValid=L},EVV=new T7B(function(L){return/^[^:]*([/?#]|$)/.test(L)}),P9t=En("data"),p6Q=En("http"),zML=En("https"),mqL=En("ftp"),JfV=En("mailto"),C9t=En("intent"),rft=En("vnd.youtube"),tos=[P9t,
p6Q,zML,JfV,mqL,EVV],Ww0=ww(function(){return typeof URL==="function"}),Q7L=["data:",
"http:","https:","mailto:","ftp:"],bs1=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Xt=function(L){this.privateDoNotAccessOrElseWrappedHtml=L};
Xt.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var bQL=ww(function(){return new Xt(kiY?kiY.emptyHTML:"")});var X6Q={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"},gSG=function(L,Z){var N=Error.call(this,L+" cannot be used with intent "+X6Q[Z]);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.type=L;this.intent=Z;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.f(gSG,Error);_.NZ=function(L){this.privateDoNotAccessOrElseWrappedScript=L};
_.NZ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var $ZA=function(L){this.privateDoNotAccessOrElseWrappedAttributePrefix=L};
$ZA.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var DZF="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var Vd=function(L){this.privateDoNotAccessOrElseWrappedStyleSheet=L};
Vd.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var JSP=function(L){var Z=_.LZ("window.location.href");L==null&&(L='Unknown Error of type "null/undefined"');if(typeof L==="string")return{message:L,name:"Unknown error",lineNumber:"Not available",fileName:Z,stack:"Not available"};var N=!1;try{var S=L.lineNumber||L.line||"Not available"}catch(W){S="Not available",N=!0}try{var u=L.fileName||L.filename||L.sourceURL||_.iH.$googDebugFname||Z}catch(W){u="Not available",N=!0}Z=AfM(L);if(!(!N&&L.lineNumber&&L.fileName&&L.stack&&L.message&&L.name)){N=L.message;
if(N==null){if(L.constructor&&L.constructor instanceof Function){if(L.constructor.name)N=L.constructor.name;else if(N=L.constructor,i3[N])N=i3[N];else{N=String(N);if(!i3[N]){var T=/function\s+([^\(]+)/m.exec(N);i3[N]=T?T[1]:"[Anonymous]"}N=i3[N]}N='Unknown Error of type "'+N+'"'}else N="Unknown Error of unknown type";typeof L.toString==="function"&&Object.prototype.toString!==L.toString&&(N+=": "+L.toString())}return{message:N,name:L.name||"UnknownError",lineNumber:S,fileName:u,stack:Z||"Not available"}}return{message:L.message,
name:L.name,lineNumber:L.lineNumber,fileName:L.fileName,stack:Z}},AfM=function(L,Z){Z||(Z={});
Z[HG0(L)]=!0;var N=L.stack||"",S=L.cause;S&&!Z[HG0(S)]&&(N+="\nCaused by: ",S.stack&&S.stack.indexOf(S.toString())==0||(N+=typeof S==="string"?S:S.message+"\n"),N+=AfM(S,Z));L=L.errors;if(Array.isArray(L)){S=1;var u;for(u=0;u<L.length&&!(S>4);u++)Z[HG0(L[u])]||(N+="\nInner error "+S++ +": ",L[u].stack&&L[u].stack.indexOf(L[u].toString())==0||(N+=typeof L[u]==="string"?L[u]:L[u].message+"\n"),N+=AfM(L[u],Z));u<L.length&&(N+="\n... "+(L.length-u)+" more inner errors")}return N},HG0=function(L){var Z=
"";
typeof L.toString==="function"&&(Z=""+L);return Z+L.stack},i3={};var BwO,Mu,qV,qns,Lwl,xqs,x$,YP,N7M;BwO=function(L,Z){for(var N=L.split("%s"),S="",u=Array.prototype.slice.call(arguments,1);u.length&&N.length>1;)S+=N.shift()+u.shift();return S+N.join("%s")};
_.Nu=function(L){return encodeURIComponent(String(L))};
Mu=function(L){return decodeURIComponent(L.replace(/\+/g," "))};
qV=function(L){ntL.test(L)&&(L.indexOf("&")!=-1&&(L=L.replace(DLV,"&amp;")),L.indexOf("<")!=-1&&(L=L.replace(l0h,"&lt;")),L.indexOf(">")!=-1&&(L=L.replace(vtO,"&gt;")),L.indexOf('"')!=-1&&(L=L.replace(ot0,"&quot;")),L.indexOf("'")!=-1&&(L=L.replace(RAM,"&#39;")),L.indexOf("\x00")!=-1&&(L=L.replace(cxQ,"&#0;")));return L};
qns=function(L){var Z={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var N=_.iH.document.createElement("div");return L.replace(xqs,function(S,u){var T=Z[S];if(T)return T;u.charAt(0)=="#"&&(u=Number("0"+u.slice(1)),isNaN(u)||(T=String.fromCharCode(u)));T||(_.tU(N,Af(S+" ")),T=N.firstChild.nodeValue.slice(0,-1));return Z[S]=T})};
Lwl=function(L){return L.replace(/&([^;]+);/g,function(Z,N){switch(N){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return N.charAt(0)!="#"||(N=Number("0"+N.slice(1)),isNaN(N))?Z:String.fromCharCode(N)}})};
xqs=/&([^;\s<&]+);?/g;_.UXs=function(L){return String(L).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.Zs5=String.prototype.repeat?function(L,Z){return L.repeat(Z)}:function(L,Z){return Array(Z+1).join(L)};
_.u3=function(L,Z){if(!Number.isFinite(L))return String(L);L=String(L);var N=L.indexOf(".");N===-1&&(N=L.length);var S=L[0]==="-"?"-":"";S&&(L=L.substring(1));return S+(0,_.Zs5)("0",Math.max(0,Z-N))+L};
x$=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.rc()).toString(36)};
YP=function(L){for(var Z=0,N=0;N<L.length;++N)Z=31*Z+L.charCodeAt(N)>>>0;return Z};
_.To=function(L){return String(L).replace(/\-([a-z])/g,function(Z,N){return N.toUpperCase()})};
_.uc=function(L){return String(L).replace(/([A-Z])/g,"-$1").toLowerCase()};
N7M=function(L){return L.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(Z,N,S){return N+S.toUpperCase()})};var S3N=function(){this.names=new Map};
S3N.prototype.getName=function(L){var Z=this.names.get(L);if(Z)return Z;var N;Z=(N=L.description)!=null?N:x$();this.names.set(L,Z);return Z};var isl=function(L){var Z=Error.call(this,L?L.length+" errors occurred during unsubscription:\n"+L.map(function(N,S){return S+1+") "+N.toString()}).join("\n  "):"");
this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.errors=L;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.f(isl,Error);var MZ=function(L){this.initialTeardown=L;this.closed=!1;this._teardowns=this._parentage=null};
_.t=MZ.prototype;
_.t.unsubscribe=function(){if(!this.closed){this.closed=!0;var L=this._parentage;if(Array.isArray(L))for(var Z=_.O(L),N=Z.next();!N.done;N=Z.next())N.value.remove(this);else L==null||L.remove(this);Z=this.initialTeardown;if(bg(Z))try{Z()}catch(T){var S=T instanceof isl?T.errors:[T]}var u=this._teardowns;if(u)for(this._teardowns=null,Z=_.O(u),N=Z.next();!N.done;N=Z.next()){N=N.value;try{bg(N)?N():N.unsubscribe()}catch(T){N=void 0,S=(N=S)!=null?N:[],T instanceof isl?S=[].concat(_.Pd(S),_.Pd(T.errors)):
S.push(T)}}if(S)throw new isl(S);}};
_.t.add=function(L){if(L&&L!==this)if(this.closed)bg(L)?L():L.unsubscribe();else{if(L instanceof MZ){if(L.closed||L._hasParent(this))return;L._addParent(this)}var Z;(this._teardowns=(Z=this._teardowns)!=null?Z:[]).push(L)}};
_.t._hasParent=function(L){var Z=this._parentage;return Z===L||Array.isArray(Z)&&Z.includes(L)};
_.t._addParent=function(L){var Z=this._parentage;this._parentage=Array.isArray(Z)?(Z.push(L),Z):Z?[Z,L]:L};
_.t._removeParent=function(L){var Z=this._parentage;Z===L?this._parentage=null:Array.isArray(Z)&&cUB(Z,L)};
_.t.remove=function(L){var Z=this._teardowns;Z&&cUB(Z,L);L instanceof MZ&&L._removeParent(this)};
var ugQ=new MZ;ugQ.closed=!0;MZ.JSC$9068_EMPTY=ugQ;var KwG=function(){setTimeout.apply(null,_.Pd(_.CG.apply(0,arguments)))};var Tw=function(L){MZ.call(this);this.JSC$9073_isStopped=!1;this.destination=L instanceof Tw?L:new tY(!L||bg(L)?{next:L!=null?L:void 0}:L);nSP(L)&&L.add(this)};
_.f(Tw,MZ);Tw.JSC$9068_EMPTY=MZ.JSC$9068_EMPTY;Tw.create=function(L,Z,N){return new Oy(L,Z,N)};
_.t=Tw.prototype;_.t.next=function(L){this.JSC$9073_isStopped||this._next(L)};
_.t.error=function(L){this.JSC$9073_isStopped||(this.JSC$9073_isStopped=!0,this._error(L))};
_.t.complete=function(){this.JSC$9073_isStopped||(this.JSC$9073_isStopped=!0,this._complete())};
_.t.unsubscribe=function(){this.closed||(this.JSC$9073_isStopped=!0,MZ.prototype.unsubscribe.call(this))};
_.t._next=function(L){this.destination.next(L)};
_.t._error=function(L){this.destination.error(L);this.unsubscribe()};
_.t._complete=function(){this.destination.complete();this.unsubscribe()};
var tY=function(L){this.partialObserver=L};
tY.prototype.next=function(L){var Z=this.partialObserver;if(Z.next)try{Z.next(L)}catch(N){GE(N)}};
tY.prototype.error=function(L){var Z=this.partialObserver;if(Z.error)try{Z.error(L)}catch(N){GE(N)}else GE(L)};
tY.prototype.complete=function(){var L=this.partialObserver;if(L.complete)try{L.complete()}catch(Z){GE(Z)}};
var Oy=function(L,Z,N){Tw.call(this);var S;bg(L)||!L?S={next:L!=null?L:void 0,error:Z!=null?Z:void 0,complete:N!=null?N:void 0}:S=L;this.destination=new tY(S)};
_.f(Oy,Tw);Oy.JSC$9068_EMPTY=Tw.JSC$9068_EMPTY;Oy.create=Tw.create;var lg=typeof Symbol==="function"&&Symbol.observable||"@@observable";var DS=function(L){L&&(this._subscribe=L)};
_.t=DS.prototype;_.t.lift=function(L){var Z=new DS;Z.source=this;Z.operator=L;return Z};
_.t.subscribe=function(L,Z,N){L=L&&L instanceof Tw||L&&bg(L.next)&&bg(L.error)&&bg(L.complete)&&nSP(L)?L:new Oy(L,Z,N);Z=this.operator;N=this.source;L.add(Z?Z.call(L,N):N?this._subscribe(L):this._trySubscribe(L));return L};
_.t._trySubscribe=function(L){try{return this._subscribe(L)}catch(Z){L.error(Z)}};
_.t.forEach=function(L,Z){var N=this;Z=kEx(Z);return new Z(function(S,u){var T=N.subscribe(function(W){try{L(W)}catch(V){u(V),T==null||T.unsubscribe()}},u,S)})};
_.t._subscribe=function(L){var Z;return(Z=this.source)==null?void 0:Z.subscribe(L)};
DS.prototype[lg]=function(){return this};
DS.prototype.pipe=function(){var L=_.CG.apply(0,arguments);return L.length?fS0(L)(this):this};
DS.create=function(L){return new DS(L)};var T7V=function(){var L=Error.call(this,"object unsubscribed");this.message=L.message;"stack"in L&&(this.stack=L.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.f(T7V,Error);var cy=function(){this.observers=[];this.hasError=this.JSC$9089_isStopped=this.closed=!1;this.thrownError=null};
_.f(cy,DS);_.t=cy.prototype;_.t.lift=function(L){var Z=new Wz(this,this);Z.operator=L;return Z};
_.t._throwIfClosed=function(){if(this.closed)throw new T7V;};
_.t.next=function(L){this._throwIfClosed();if(!this.JSC$9089_isStopped){var Z=this.observers.slice();Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())N.value.next(L)}};
_.t.error=function(L){this._throwIfClosed();if(!this.JSC$9089_isStopped){this.hasError=this.JSC$9089_isStopped=!0;this.thrownError=L;for(var Z=this.observers;Z.length;)Z.shift().error(L)}};
_.t.complete=function(){this._throwIfClosed();if(!this.JSC$9089_isStopped){this.JSC$9089_isStopped=!0;for(var L=this.observers;L.length;)L.shift().complete()}};
_.t.unsubscribe=function(){this.JSC$9089_isStopped=this.closed=!0;this.observers=null};
_.t._trySubscribe=function(L){this._throwIfClosed();return DS.prototype._trySubscribe.call(this,L)};
_.t._subscribe=function(L){this._throwIfClosed();this._checkFinalizedStatuses(L);return this._innerSubscribe(L)};
_.t._innerSubscribe=function(L){var Z=this,N=this.JSC$9089_isStopped,S=this.observers;return this.hasError||N?MZ.JSC$9068_EMPTY:(S.push(L),new MZ(function(){return cUB(Z.observers,L)}))};
_.t._checkFinalizedStatuses=function(L){var Z=this.thrownError,N=this.JSC$9089_isStopped;this.hasError?L.error(Z):N&&L.complete()};
cy.create=function(L,Z){return new Wz(L,Z)};
var Wz=function(L,Z){cy.call(this);this.destination=L;this.source=Z};
_.f(Wz,cy);Wz.create=cy.create;Wz.prototype.next=function(L){var Z,N;(Z=this.destination)==null||(N=Z.next)==null||N.call(Z,L)};
Wz.prototype.error=function(L){var Z,N;(Z=this.destination)==null||(N=Z.error)==null||N.call(Z,L)};
Wz.prototype.complete=function(){var L,Z;(L=this.destination)==null||(Z=L.complete)==null||Z.call(L)};
Wz.prototype._subscribe=function(L){var Z,N;return(N=(Z=this.source)==null?void 0:Z.subscribe(L))!=null?N:MZ.JSC$9068_EMPTY};var q8=function(L){cy.call(this);this._value=L};
_.f(q8,cy);q8.create=cy.create;q8.prototype._subscribe=function(L){var Z=cy.prototype._subscribe.call(this,L);!Z.closed&&L.next(this._value);return Z};
q8.prototype.getValue=function(){var L=this.thrownError,Z=this._value;if(this.hasError)throw L;this._throwIfClosed();return Z};
q8.prototype.next=function(L){cy.prototype.next.call(this,this._value=L)};
_.gd.Object.defineProperties(q8.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var r7=new DS(function(L){return L.complete()});var Y3F=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var h1H=function(L){return L&&typeof L.length==="number"&&typeof L!=="function"};var tol={now:function(){return(tol.delegate||Date).now()},
delegate:void 0};var ON=function(L,Z,N){L=L===void 0?Infinity:L;Z=Z===void 0?Infinity:Z;N=N===void 0?tol:N;cy.call(this);this.bufferSize=L;this.windowTime=Z;this.timestampProvider=N;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=Z===Infinity;this.bufferSize=Math.max(1,L);this.windowTime=Math.max(1,Z)};
_.f(ON,cy);ON.create=cy.create;ON.prototype.next=function(L){var Z=this.buffer,N=this.infiniteTimeWindow,S=this.timestampProvider,u=this.windowTime;this.JSC$9089_isStopped||(Z.push(L),!N&&Z.push(S.now()+u));Oss(this);cy.prototype.next.call(this,L)};
ON.prototype._subscribe=function(L){this._throwIfClosed();Oss(this);for(var Z=this._innerSubscribe(L),N=this.infiniteTimeWindow,S=this.buffer.slice(),u=0;u<S.length&&!L.closed;u+=N?1:2)L.next(S[u]);this._checkFinalizedStatuses(L);return Z};
var Oss=function(L){var Z=L.bufferSize,N=L.timestampProvider,S=L.buffer;L=L.infiniteTimeWindow;var u=(L?1:2)*Z;Z<Infinity&&u<S.length&&S.splice(0,S.length-u);if(!L){Z=N.now();N=0;for(L=1;L<S.length&&S[L]<=Z;L+=2)N=L;N&&S.splice(0,N+1)}};var VoM=function(L,Z){Z=Z===void 0?WwN:Z;this.schedulerActionCtor=L;this.now=Z};
VoM.prototype.schedule=function(L,Z,N){Z=Z===void 0?0:Z;return(new this.schedulerActionCtor(this,L)).schedule(N,Z)};
var WwN=tol.now;var yj_=function(){var L=Error.call(this,"no elements in sequence");this.message=L.message;"stack"in L&&(this.stack=L.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.f(yj_,Error);var aS=function(L,Z,N,S,u){Tw.call(this,L);this.onUnsubscribe=u;Z&&(this._next=function(T){try{Z(T)}catch(W){this.destination.error(W)}});
N&&(this._error=function(T){try{N(T)}catch(W){this.destination.error(W)}this.unsubscribe()});
S&&(this._complete=function(){try{S()}catch(T){this.destination.error(T)}this.unsubscribe()})};
_.f(aS,Tw);aS.JSC$9068_EMPTY=Tw.JSC$9068_EMPTY;aS.create=Tw.create;aS.prototype.unsubscribe=function(){var L;this.closed||(L=this.onUnsubscribe)!=null&&L.call(this);Tw.prototype.unsubscribe.call(this)};var TF=function(L,Z){this.source=L;this.subjectFactory=Z;this._subject=null;this._refCount=0;this._connection=null};
_.f(TF,DS);TF.create=DS.create;TF.prototype._subscribe=function(L){return bs0(this).subscribe(L)};
var bs0=function(L){var Z=L._subject;if(!Z||Z.JSC$9089_isStopped)L._subject=L.subjectFactory();return L._subject};
TF.prototype._teardown=function(){this._refCount=0;var L=this._connection;this._subject=this._connection=null;L==null||L.unsubscribe()};
TF.prototype.connect=function(){var L=this,Z=this._connection;if(!Z){Z=this._connection=new MZ;var N=bs0(this);Z.add(this.source.subscribe(new aS(N,void 0,function(S){L._teardown();N.error(S)},function(){L._teardown();
N.complete()},function(){return L._teardown()})));
Z.closed&&(this._connection=null,Z=MZ.JSC$9068_EMPTY)}return Z};var Xdt=Array.isArray;var Hsw=Array.isArray,MoQ=Object,B7B=MoQ.getPrototypeOf,xZ_=MoQ.prototype,q3s=MoQ.keys;var zE=function(L,Z,N){Tw.call(this,L);this._next=Z;this.shouldComplete=N};
_.f(zE,Tw);zE.JSC$9068_EMPTY=Tw.JSC$9068_EMPTY;zE.create=Tw.create;zE.prototype._complete=function(){this.shouldComplete()?Tw.prototype._complete.call(this):this.unsubscribe()};var OxB=["addListener","removeListener"],tN_=["addEventListener","removeEventListener"],VNs=["on","off"];var VN=function(){MZ.call(this)};
_.f(VN,MZ);VN.JSC$9068_EMPTY=MZ.JSC$9068_EMPTY;VN.prototype.schedule=function(){return this};var gSY=function(L,Z){return setInterval.apply(null,[L,Z].concat(_.Pd(_.CG.apply(2,arguments))))};var b3=function(L,Z){MZ.call(this);this.scheduler=L;this.work=Z;this.pending=!1};
_.f(b3,VN);b3.JSC$9068_EMPTY=VN.JSC$9068_EMPTY;b3.prototype.schedule=function(L,Z){Z=Z===void 0?0:Z;if(this.closed)return this;this.state=L;L=this.id;var N=this.scheduler;L!=null&&(this.id=GEL(this,L,Z));this.pending=!0;this.delay=Z;this.id=this.id||this.requestAsyncId(N,this.id,Z);return this};
b3.prototype.requestAsyncId=function(L,Z,N){N=N===void 0?0:N;return gSY(L.flush.bind(L,this),N)};
var GEL=function(L,Z,N){N=N===void 0?0:N;if(N!=null&&L.delay===N&&L.pending===!1)return Z;clearInterval(Z)};
b3.prototype.execute=function(L,Z){if(this.closed)return Error("ha");this.pending=!1;if(L=this._execute(L,Z))return L;this.pending===!1&&this.id!=null&&(this.id=GEL(this,this.id,null))};
b3.prototype._execute=function(L){var Z=!1;try{this.work(L)}catch(S){Z=!0;var N=!!S&&S||Error(S)}if(Z)return this.unsubscribe(),N};
b3.prototype.unsubscribe=function(){if(!this.closed){var L=this.id,Z=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;cUB(Z,this);L!=null&&(this.id=GEL(this,L,null));this.delay=null;VN.prototype.unsubscribe.call(this)}};var Fwt=function(L,Z){Z=Z===void 0?WwN:Z;VoM.call(this,L,Z);this.actions=[];this.active=!1;this.scheduled=void 0};
_.f(Fwt,VoM);Fwt.prototype.flush=function(L){var Z=this.actions;if(this.active)Z.push(L);else{var N;this.active=!0;do if(N=L.execute(L.state,L.delay))break;while(L=Z.shift());this.active=!1;if(N){for(;L=Z.shift();)L.unsubscribe();throw N;}}};var sN=new DS(g7);var bxh=Array.isArray;var MY=function(L,Z){b3.call(this,L,Z);this.scheduler=L;this.work=Z};
_.f(MY,b3);MY.JSC$9068_EMPTY=b3.JSC$9068_EMPTY;MY.prototype.schedule=function(L,Z){Z=Z===void 0?0:Z;if(Z>0)return b3.prototype.schedule.call(this,L,Z);this.delay=Z;this.state=L;this.scheduler.flush(this);return this};
MY.prototype.execute=function(L,Z){return Z>0||this.closed?b3.prototype.execute.call(this,L,Z):this._execute(L,Z)};
MY.prototype.requestAsyncId=function(L,Z,N){N=N===void 0?0:N;return N!=null&&N>0||N==null&&this.delay>0?b3.prototype.requestAsyncId.call(this,L,Z,N):L.flush(this)};var $ZQ=function(){Fwt.apply(this,arguments)};
_.f($ZQ,Fwt);var rUH=new $ZQ(MY);var DZO=function(){this.performanceMonitor=new cfO;this.queue=new nV5;this.internalSymbol=Symbol();this.debugNames=new S3N};
DZO.prototype.getOnBackgrounded=function(){return sN};
_.gd.Object.defineProperties(DZO.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var gI=function(L,Z){Z=Error.call(this,Z?L+": "+Z:String(L));this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.code=L;this.__proto__=gI.prototype;this.name=String(L)};
_.f(gI,Error);var jN=function(L){gI.call(this,1E3,'sfr:"'+L+'"');this.measurementStrategyFailureReason=L;this.__proto__=jN.prototype};
_.f(jN,gI);var EN=function(){gI.call(this,1003);this.__proto__=EN.prototype};
_.f(EN,gI);var Gw=function(){gI.call(this,1009);this.__proto__=Gw.prototype};
_.f(Gw,gI);var lSs=function(){gI.call(this,1011);this.__proto__=lSs.prototype};
_.f(lSs,gI);var vS0=function(){gI.call(this,1007);this.__proto__=EN.prototype};
_.f(vS0,gI);var am=function(L){gI.call(this,1004,String(L));this.inputObservableIndex=L;this.__proto__=am.prototype};
_.f(am,gI);var X4s=function(L){gI.call(this,1010,L);this.__proto__=ArB.prototype};
_.f(X4s,gI);var ArB=function(L){gI.call(this,1005,L);this.__proto__=ArB.prototype};
_.f(ArB,gI);var oSh=function(L){var Z=_.CG.apply(1,arguments),N=this;this.orderedFactories=[];this.orderedFactories.push(L);Z.forEach(function(S){N.orderedFactories.push(S)})};
oSh.prototype.isSupported=function(L){return this.orderedFactories.some(function(Z){return Z.isSupported(L)})};
oSh.prototype.makeBeacon=function(L,Z){for(var N=0;N<this.orderedFactories.length;N++)if(this.orderedFactories[N].isSupported(Z))return this.orderedFactories[N].makeBeacon(L,Z);throw new Gw;};var sYf=Symbol("ia"),R1l=Symbol("ja"),Bd=function(L,Z){this.value=L;this.timeline=Z},Hd=function(L,Z){if(Z.timeline!==L.timeline)throw new vS0;
return L.value-Z.value};
_.t=Bd.prototype;_.t.equals=function(L){return Hd(this,L)===0};
_.t.maximum=function(L){if(L.timeline!==this.timeline)throw new vS0;return this.value>=L.value?this:L};
_.t.round=function(){return new Bd(Math.round(this.value),this.timeline)};
_.t.add=function(L){return new Bd(this.value+L,this.timeline)};
_.t.toString=function(){return String(this.value)};var Fi=function(L,Z){this.context=L;this.JSC$9195_pinger=Z};
Fi.prototype.isSupported=function(L){return this.JSC$9195_pinger.isSupported(L)};
Fi.prototype.makeBeacon=function(L,Z){if(!this.isSupported(Z))throw new Gw;return new $p(this.context,this.JSC$9195_pinger,Z!=null?Z:void 0,L)};
var $p=function(L,Z,N,S){var u=this;this.JSC$9201_pinger=Z;this.properties=N;this.url=S;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var T;this.method=(T=N==null?void 0:N.beaconMethod)!=null?T:"GET";this.backgroundedSubscription=L.getOnBackgrounded().subscribe(function(){u.sendNow()})};
$p.prototype.deactivate=function(){this.internalIsPending=!1};
$p.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9201_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var L,Z;this.JSC$9201_pinger.pingWithHeadersAndBody((L=this.properties)!=null?L:{},this.customHeaders,(Z=this.body)!=null?Z:"",this.url)}else this.JSC$9201_pinger.ping(this.url);this.internalIsPending=!1}catch(N){}else this.internalIsPending=!1};
$p.prototype.setHeader=function(L,Z){this.customHeaders.set(L,Z)};
_.gd.Object.defineProperties($p.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var nS5=function(){for(var L=_.O(_.CG.apply(0,arguments)),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.available()){this.timeProvider=Z;return}this.timeProvider=new cUV};
_.t=nS5.prototype;_.t.available=function(){return this.timeProvider.available()};
_.t.now=function(){return this.timeProvider.now()};
_.t.setTimeout=function(L,Z){return this.timeProvider.setTimeout(L,Z)};
_.t.clearTimeout=function(L){this.timeProvider.clearTimeout(L)};
_.t.interval=function(L,Z){var N=this.intervalObservable(L).subscribe(Z);return function(){return void N.unsubscribe()}};
_.t.intervalObservable=function(L){return this.timeProvider.intervalObservable(L)};
_.gd.Object.defineProperties(nS5.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var cUV=function(){this.timeline=Symbol()};
_.t=cUV.prototype;_.t.available=function(){return!1};
_.t.now=function(){return new Bd(0,this.timeline)};
_.t.setTimeout=function(){return 0};
_.t.clearTimeout=function(){};
_.t.interval=function(){return function(){}};
_.t.intervalObservable=function(){return sN};var DI=function(L,Z){this.intrinsicFunctionNamespace=L;this.performanceMonitor=Z};
_.t=DI.prototype;_.t.setTimeout=function(L,Z){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,L),Z)};
_.t.clearTimeout=function(L){this.intrinsicFunctionNamespace.clearTimeout(L)};
_.t.interval=function(L,Z){var N=this.intervalObservable(L).subscribe(Z);return function(){return void N.unsubscribe()}};
_.t.intervalObservable=function(L){var Z=this;return new DS(function(N){var S=0,u=Z.intrinsicFunctionNamespace.setInterval(function(){N.next(S++)},L);
return function(){Z.intrinsicFunctionNamespace.clearInterval(u)}})};
_.t.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var KwY=function(L,Z){DI.call(this,L,Z);this.timeline=R1l};
_.f(KwY,DI);KwY.prototype.now=function(){return new Bd(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
KwY.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&DI.prototype.available.call(this)};var fSN=function(L,Z){DI.call(this,L,Z);this.timeline=sYf};
_.f(fSN,DI);fSN.prototype.now=function(){return new Bd(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
fSN.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&DI.prototype.available.call(this)};var yUV=function(L){this.context=L;if(kEs===void 0)a:{var Z,N,S=(Z=L.global)==null?void 0:(N=Z.document)==null?void 0:N.createElement("meta");if(S)try{S.httpEquiv="origin-trial";S.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";L.global.document.head.append(S);kEs=S;break a}catch(u){}kEs=void 0}},
kEs;
yUV.prototype.isSupported=function(L){return R2G(this.context)!==void 0&&!(L==null||!L.endOfSession)&&!l3(this.context)&&!(L==null?0:L.attributionEnabled)&&!(L==null?0:L.customHeaders)&&!(L==null?0:L.customBody)};
yUV.prototype.makeBeacon=function(L,Z){if(!this.isSupported(Z))throw new Gw;return new vz(this.context,L,Z)};
var vz=function(L,Z,N){this.context=L;this.properties=N;this.JSC$9228_urlWithoutToken=Z;var S;this.beaconMethod=(S=N==null?void 0:N.beaconMethod)!=null?S:"GET";L=R2G(this.context);if(L===void 0)throw Error();this.fetchLater=L;wdN(this,UZO(this))},wdN=function(L,Z){L.beaconResult&&L.beaconResult.activated||(L.beaconAbort=new AbortController,L.beaconResult=L.fetchLater(Z,{method:L.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:L.beaconAbort.signal,activateAfter:96E4}))},UZO=function(L){L=L.JSC$9228_urlWithoutToken;
return(L.slice(-1)[0]==="&"?L:L+"&")+"flapi=1"};
vz.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
vz.prototype.sendNow=function(){};
vz.prototype.setHeader=function(){};
_.gd.Object.defineProperties(vz.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9228_urlWithoutToken},
set:function(L){this.JSC$9228_urlWithoutToken=L;L=UZO(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);wdN(this,L)}},
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 Y3O=function(L){this.context=L};
Y3O.prototype.isSupported=function(){return!l3(this.context)&&!!this.context.global.fetch};
Y3O.prototype.ping=function(){var L=this;return Xg.apply(null,_.Pd(_.CG.apply(0,arguments).map(function(Z){return oS(L.context.global.fetch(Z,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(E3(function(N){return N.status===200}))}))).pipe(wyw(function(Z){return Z}),YNs())};
Y3O.prototype.pingWithHeadersAndBody=function(L,Z,N){for(var S=_.CG.apply(3,arguments),u=this,T=new Headers,W=_.O(Z.entries()),V=W.next();!V.done;V=W.next()){var M=_.O(V.value);V=M.next().value;M=M.next().value;T.set(V,M)}var G,D=(G=L.keepAlive)!=null?G:!1;Xg.apply(null,_.Pd(S.map(function(l){return oS(u.context.global.fetch(l,Object.assign({},{method:String(L.beaconMethod),cache:"no-cache"},D?{keepalive:!0}:{},{mode:"no-cors",headers:T,body:N}))).pipe(E3(function(v){return v.status===200}))}))).pipe(wyw(function(l){return l}),
YNs())};var e1O,azF,ISL;_.on=function(){};
_.sG=function(L){return L};
e1O=function(L){var Z=Z||0;return function(){return L.apply(this,Array.prototype.slice.call(arguments,0,Z))}};
_.Rn=function(L){var Z=!1,N;return function(){Z||(N=L(),Z=!0);return N}};
_.cz=function(L,Z){var N=0;return function(S){_.iH.clearTimeout(N);var u=arguments;N=_.iH.setTimeout(function(){L.apply(void 0,u)},Z)}};
azF=function(L,Z){var N=0,S=!1,u=[],T=function(){N=0;S&&(S=!1,W())},W=function(){N=_.iH.setTimeout(T,Z);
var V=u;u=[];L.apply(void 0,V)};
return function(V){u=arguments;N?S=!0:W()}};
ISL=function(L,Z){var N=0,S=function(){N=0};
return function(u){N||(N=_.iH.setTimeout(S,Z),L.apply(void 0,arguments))}};var aSQ=function(){return oF&&cs?cs.mobile:!dZN()&&(n1("iPod")||n1("iPhone")||n1("Android")||n1("IEMobile"))},dZN=function(){return oF&&cs?!cs.mobile&&(n1("iPad")||n1("Android")||n1("Silk")):n1("iPad")||n1("Android")&&!n1("Mobile")||n1("Silk")};var n7=function(L,Z,N,S,u){this.allowedElements=L;this.elementPolicies=Z;this.allowedGlobalAttributes=N;this.globalAttributePolicies=S;this.globallyAllowedAttributePrefixes=u},h1t=function(L,Z,N){N=L.elementPolicies.get(N);
return(N==null?0:N.has(Z))?N.get(Z):L.allowedGlobalAttributes.has(Z)?{policyAction:1}:(N=L.globalAttributePolicies.get(Z))?N:L.globallyAllowedAttributePrefixes&&[].concat(_.Pd(L.globallyAllowedAttributePrefixes)).some(function(S){return Z.indexOf(S)===0})?{policyAction:1}:{policyAction:0}};var sSY="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(" "),
jSl=[["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}]])]],ESq="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(" "),
Pgt=[["dir",{policyAction:3,conditions:ww(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:ww(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:ww(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:ww(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],pdY=new n7(new Set(sSY),new Map(jSl),new Set(ESq),new Map(Pgt)),z10=new n7(new Set(sSY.concat(["BUTTON",
"INPUT"])),new Map(jSl),new Set(ww(function(){return ESq.concat(["class","id","name"])})),new Map(ww(function(){return Pgt.concat([["style",
{policyAction:1}]])})));var mZV,JUQ,rUt;mZV=function(L,Z,N,S,u){this.JSC$9285_sanitizerTable=L;this.styleElementSanitizer=Z;this.styleAttributeSanitizer=N;this.JSC$9285_resourceUrlPolicy=S;this.JSC$9285_navigationUrlPolicy=u;this.changes=[]};
_.Cg0=function(L,Z){var N=document.implementation.createHTMLDocument("");L=JUQ(L,Z,N);N=N.body;N.appendChild(L);N=(new XMLSerializer).serializeToString(N);N=N.slice(N.indexOf(">")+1,N.lastIndexOf("</"));return Af(N)};
JUQ=function(L,Z,N){Z=py1(Z,N);Z=document.createTreeWalker(Z,5,function(V){if(V.nodeType===3)V=1;else if(m81(V))if(V=z2A(V),V===null)V=2;else{var M=L.JSC$9285_sanitizerTable;V=V!=="FORM"&&(M.allowedElements.has(V)||M.elementPolicies.has(V))?1:2}else V=2;return V});
for(var S=Z.nextNode(),u=N.createDocumentFragment(),T=u;S!==null;){var W=void 0;if(S.nodeType===3)L.styleElementSanitizer&&T.nodeName==="STYLE"?(S=L.styleElementSanitizer(S.data),W=L.createTextNode(S)):W=L.createTextNode(S.data);else if(m81(S))W=rUt(L,S,N);else throw Error("Z");T.appendChild(W);if(S=Z.firstChild())T=W;else for(;!(S=Z.nextSibling())&&(S=Z.parentNode());)T=T.parentNode}return u};
mZV.prototype.createTextNode=function(L){return document.createTextNode(L)};
rUt=function(L,Z,N){var S,u=z2A(Z);N=N.createElement(u);Z=Z.attributes;for(var T=_.O(Z),W=T.next();!W.done;W=T.next()){var V=W.value;W=V.name;V=V.value;var M=h1t(L.JSC$9285_sanitizerTable,W,u);a:{if(S=M.conditions){S=_.O(S);for(var G=S.next();!G.done;G=S.next()){var D=_.O(G.value);G=D.next().value;D=D.next().value;var l=void 0;if((G=(l=Z.getNamedItem(G))==null?void 0:l.value)&&!D.has(G)){S=!1;break a}}}S=!0}if(S)switch(M.policyAction){case 1:DD(N,W,V);break;case 2:throw Error();case 3:DD(N,W,V.toLowerCase());
break;case 4:L.styleAttributeSanitizer?(V=L.styleAttributeSanitizer(V),DD(N,W,V)):DD(N,W,V);break;case 5:L.JSC$9285_resourceUrlPolicy?(M={type:2,attributeName:W,elementName:u},V=PGH(V),(V=L.JSC$9285_resourceUrlPolicy(V,M))&&DD(N,W,V.toString())):DD(N,W,V);break;case 6:if(L.JSC$9285_resourceUrlPolicy){M={type:2,attributeName:W,elementName:u};S=[];V=_.O(V.split(","));for(G=V.next();!G.done;G=V.next())D=_.O(G.value.trim().split(/\s+/,2)),G=D.next().value,D=D.next().value,S.push({url:G,descriptor:D});
V={parts:[]};S=_.O(S);for(G=S.next();!G.done;G=S.next())G=G.value,D=PGH(G.url),(D=L.JSC$9285_resourceUrlPolicy(D,M))&&V.parts.push({url:D.toString(),descriptor:G.descriptor});DD(N,W,Jjt(V))}else DD(N,W,V);break;case 7:M=V;if(L.JSC$9285_navigationUrlPolicy){M={type:2,attributeName:W,elementName:u};V=PGH(V);V=L.JSC$9285_navigationUrlPolicy(V,M);if(V===null)break;M=V.toString()}V=M;M=_.Voh(V);M=M!==void 0&&Q7L.indexOf(M.toLowerCase())!==-1?V:"about:invalid#zClosurez";DD(N,W,M)}}return N};
_.QSt=ww(function(){return new mZV(pdY)});
_.XdL=ww(function(){return new mZV(z10)});var AUL=function(){this.calledBuild=!1;this.JSC$9297_sanitizerTable=pdY},Hsh=function(){AUL.apply(this,arguments)};
_.f(Hsh,AUL);Hsh.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new mZV(this.JSC$9297_sanitizerTable,void 0,void 0,this.JSC$9297_resourceUrlPolicy,this.JSC$9297_navigationUrlPolicy)};var B7V=/[^#]*/;var d8x={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"},xZq=_.Rn(function(){return h2h()}),
LtY=function(){var L=q3l("IFRAME"),Z={};
_.SZ(xZq(),function(N){L.sandbox&&L.sandbox.supports&&L.sandbox.supports(N)&&(Z[N]=!0)});
return Z},q3l=function(L,Z){Z=Z===void 0?document:Z;
return Z.createElement(String(L).toLowerCase())};var K7;_.nM=function(L,Z,N){return Math.min(Math.max(L,Z),N)};
K7=function(L,Z,N){return L+N*(Z-L)};_.zF=function(L,Z){this.x=L!==void 0?L:0;this.y=Z!==void 0?Z:0};
_.t=_.zF.prototype;_.t.clone=function(){return new _.zF(this.x,this.y)};
_.t.equals=function(L){return L instanceof _.zF&&(this==L?!0:this&&L?this.x==L.x&&this.y==L.y:!1)};
_.t.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.t.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.t.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.t.translate=function(L,Z){L instanceof _.zF?(this.x+=L.x,this.y+=L.y):(this.x+=Number(L),typeof Z==="number"&&(this.y+=Z));return this};
_.t.scale=function(L,Z){this.x*=L;this.y*=typeof Z==="number"?Z:L;return this};_.wF=function(L,Z){this.width=L;this.height=Z};
_.t=_.wF.prototype;_.t.clone=function(){return new _.wF(this.width,this.height)};
_.t.area=function(){return this.width*this.height};
_.t.aspectRatio=function(){return this.width/this.height};
_.t.isEmpty=function(){return!this.area()};
_.t.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.t.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.t.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.t.scale=function(L,Z){this.width*=L;this.height*=typeof Z==="number"?Z:L;return this};var Zxq;_.Py={};Zxq="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Py.add=function(L,Z,N){if(L!==null&&Z in L)throw Error("na`"+Z);L[Z]=N};
_.Py.clear=function(L){for(var Z in L)delete L[Z]};
_.Py.clone=function(L){var Z={},N;for(N in L)Z[N]=L[N];return Z};
_.Py.contains=function(L,Z){return AjA(L,Z)};
_.Py.containsKey=function(L,Z){return L!==null&&Z in L};
_.Py.containsValue=AjA;_.Py.create=x8_;_.Py.createImmutableView=function(L){var Z=L;Object.isFrozen&&!Object.isFrozen(L)&&(Z=Object.create(L),Object.freeze(Z));return Z};
_.Py.createSet=qNs;_.Py.equals=function(L,Z){for(var N in L)if(!(N in Z)||L[N]!==Z[N])return!1;for(var S in Z)if(!(S in L))return!1;return!0};
_.Py.every=function(L,Z,N){for(var S in L)if(!Z.call(N,L[S],S,L))return!1;return!0};
_.Py.extend=function(L,Z){for(var N,S,u=1;u<arguments.length;u++){S=arguments[u];for(N in S)L[N]=S[N];for(var T=0;T<Zxq.length;T++)N=Zxq[T],Object.prototype.hasOwnProperty.call(S,N)&&(L[N]=S[N])}};
_.Py.filter=function(L,Z,N){var S={},u;for(u in L)Z.call(N,L[u],u,L)&&(S[u]=L[u]);return S};
_.Py.findKey=HxP;_.Py.findValue=function(L,Z,N){return(Z=HxP(L,Z,N))&&L[Z]};
_.Py.forEach=function(L,Z,N){for(var S in L)Z.call(N,L[S],S,L)};
_.Py.get=function(L,Z,N){return L!==null&&Z in L?L[Z]:N};
_.Py.getAllPropertyNames=function(L,Z,N){if(!L)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return Xyf(L);for(var S={};L&&(L!==Object.prototype||Z)&&(L!==Function.prototype||N);){for(var u=Object.getOwnPropertyNames(L),T=0;T<u.length;T++)S[u[T]]=!0;L=Object.getPrototypeOf(L)}return Xyf(S)};
_.Py.getAnyKey=function(L){for(var Z in L)return Z};
_.Py.getAnyValue=function(L){for(var Z in L)return L[Z]};
_.Py.getCount=function(L){var Z=0,N;for(N in L)Z++;return Z};
_.Py.getKeys=Xyf;_.Py.getSuperClass=function(L){return(L=Object.getPrototypeOf(L.prototype))&&L.constructor};
_.Py.getValueByKeys=function(L,Z){var N=_.Jx(Z),S=N?Z:arguments;for(N=N?0:1;N<S.length;N++){if(L==null)return;L=L[S[N]]}return L};
_.Py.getValues=function(L){var Z=[],N=0,S;for(S in L)Z[N++]=L[S];return Z};
_.Py.isEmpty=function(L){for(var Z in L)return!1;return!0};
_.Py.isImmutableView=function(L){return!!Object.isFrozen&&Object.isFrozen(L)};
_.Py.map=function(L,Z,N){var S={},u;for(u in L)S[u]=Z.call(N,L[u],u,L);return S};
_.Py.remove=function(L,Z){var N;(N=Z in L)&&delete L[Z];return N};
_.Py.set=function(L,Z,N){L[Z]=N};
_.Py.setIfUndefined=function(L,Z,N){return Z in L?L[Z]:L[Z]=N};
_.Py.setWithReturnValueIfNotSet=function(L,Z,N){if(Z in L)return L[Z];N=N();return L[Z]=N};
_.Py.some=function(L,Z,N){for(var S in L)if(Z.call(N,L[S],S,L))return!0;return!1};
_.Py.transpose=function(L){var Z={},N;for(N in L)Z[L[N]]=N;return Z};
_.Py.unsafeClone=BF1;var AV=function(L,Z){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=L===QVw&&Z||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=NFt};
AV.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var SNt=function(L){return L instanceof AV&&L.constructor===AV&&L.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===NFt?L.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},NFt={},QVw={};
new AV(QVw,"");var Im,Y$,kp,ix5,tNq,TF5,mt,Wt5,bxM,VNl,Yp,MNI,vhV,lDt,D8L,ohV,R2Y,cjt,nht,bYP,Ktt,kFY,yjq,fDY,f7;Im=function(L){return L?new f7(_.Jj(L)):MfI||(MfI=new f7)};
_.QB=function(L,Z){return typeof Z==="string"?L.getElementById(Z):Z};
Y$=function(L,Z){return(Z||document).getElementsByTagName(String(L))};
_.urq=function(L){return ix5("yt-formatted-string","paper-input-input",L)};
kp=function(L,Z,N,S){L=S||L;return(Z=Z&&Z!="*"?String(Z).toUpperCase():"")||N?L.querySelectorAll(Z+(N?"."+N:"")):L.getElementsByTagName("*")};
ix5=function(L,Z,N){var S=document,u=L&&L!="*"?String(L).toUpperCase():"";return u||Z?(N||S).querySelector(u+(Z?"."+Z:"")):kp(S,L,Z,N)[0]||null};
tNq=function(L,Z){_.Py.forEach(Z,function(N,S){S=="style"?L.style.cssText=N:S=="class"?L.className=N:S=="for"?L.htmlFor=N:TF5.hasOwnProperty(S)?L.setAttribute(TF5[S],N):_.TB(S,"aria-")||_.TB(S,"data-")?L.setAttribute(S,N):L[S]=N})};
TF5={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"};_.UN=function(L){L=(L||window).document;L=L.compatMode=="CSS1Compat"?L.documentElement:L.body;return new _.wF(L.clientWidth,L.clientHeight)};
_.OxV=function(L){var Z=_.yN(L);L=L.defaultView;return new _.zF((L==null?void 0:L.pageXOffset)||Z.scrollLeft,(L==null?void 0:L.pageYOffset)||Z.scrollTop)};
_.yN=function(L){return L.scrollingElement?L.scrollingElement:_.qH||L.compatMode!="CSS1Compat"?L.body||L.documentElement:L.documentElement};
mt=function(L){return L?L.defaultView:window};
_.wI=function(L,Z,N){return Wt5(document,arguments)};
Wt5=function(L,Z){var N=Z[1],S=VNl(L,String(Z[0]));N&&(typeof N==="string"?S.className=N:Array.isArray(N)?S.className=N.join(" "):tNq(S,N));Z.length>2&&bxM(L,S,Z,2);return S};
bxM=function(L,Z,N,S){function u(V){V&&Z.appendChild(typeof V==="string"?L.createTextNode(V):V)}
for(;S<N.length;S++){var T=N[S];if(!_.Jx(T)||_.Q_(T)&&T.nodeType>0)u(T);else{a:{if(T&&typeof T.length=="number"){if(_.Q_(T)){var W=typeof T.item=="function"||typeof T.item=="string";break a}if(typeof T==="function"){W=typeof T.item=="function";break a}}W=!1}_.SZ(W?_.mh(T):T,u)}}};
_.wZ=function(L){return VNl(document,L)};
VNl=function(L,Z){Z=String(Z);L.contentType==="application/xhtml+xml"&&(Z=Z.toLowerCase());return L.createElement(Z)};
_.Uy=function(){return document.createTextNode("\n")};
Yp=function(L){if(L.nodeType!=1)return!1;switch(L.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};
MNI=function(L,Z){bxM(_.Jj(L),L,arguments,1)};
_.es=function(L){for(var Z;Z=L.firstChild;)L.removeChild(Z)};
_.In=function(L,Z){Z.parentNode&&Z.parentNode.insertBefore(L,Z)};
_.dI=function(L,Z){Z.parentNode&&Z.parentNode.insertBefore(L,Z.nextSibling)};
_.U_=function(L){return L&&L.parentNode?L.parentNode.removeChild(L):null};
_.ghl=function(L,Z){var N=Z.parentNode;N&&N.replaceChild(L,Z)};
_.GFO=function(L){var Z,N=L.parentNode;if(N&&N.nodeType!=11)if(L.removeNode)L.removeNode(!1);else{for(;Z=L.firstChild;)N.insertBefore(Z,L);_.U_(L)}};
_.an=function(L){return L.children!=void 0?L.children:Array.prototype.filter.call(L.childNodes,function(Z){return Z.nodeType==1})};
_.$8t=function(L){return L.nextElementSibling!==void 0?L.nextElementSibling:_.Fth(L.nextSibling,!0)};
_.Fth=function(L,Z){for(;L&&L.nodeType!=1;)L=Z?L.nextSibling:L.previousSibling;return L};
_.WK=function(L){return _.Q_(L)&&L.nodeType==1};
_.H4=function(L,Z){if(!L||!Z)return!1;if(L.contains&&Z.nodeType==1)return L==Z||L.contains(Z);if(typeof L.compareDocumentPosition!="undefined")return L==Z||!!(L.compareDocumentPosition(Z)&16);for(;Z&&L!=Z;)Z=Z.parentNode;return Z==L};
vhV=function(L,Z){if(L==Z)return 0;if(L.compareDocumentPosition)return L.compareDocumentPosition(Z)&2?1:-1;if("sourceIndex"in L||L.parentNode&&"sourceIndex"in L.parentNode){var N=L.nodeType==1,S=Z.nodeType==1;if(N&&S)return L.sourceIndex-Z.sourceIndex;var u=L.parentNode,T=Z.parentNode;return u==T?D8L(L,Z):!N&&_.H4(u,Z)?-1*lDt(L,Z):!S&&_.H4(T,L)?lDt(Z,L):(N?L.sourceIndex:u.sourceIndex)-(S?Z.sourceIndex:T.sourceIndex)}S=_.Jj(L);N=S.createRange();N.selectNode(L);N.collapse(!0);L=S.createRange();L.selectNode(Z);
L.collapse(!0);return N.compareBoundaryPoints(_.iH.Range.START_TO_END,L)};
lDt=function(L,Z){var N=L.parentNode;if(N==Z)return-1;for(;Z.parentNode!=N;)Z=Z.parentNode;return D8L(Z,L)};
D8L=function(L,Z){for(;Z=Z.previousSibling;)if(Z==L)return-1;return 1};
ohV=function(L){var Z,N=arguments.length;if(!N)return null;if(N==1)return arguments[0];var S=[],u=Infinity;for(Z=0;Z<N;Z++){for(var T=[],W=arguments[Z];W;)T.unshift(W),W=W.parentNode;S.push(T);u=Math.min(u,T.length)}T=null;for(Z=0;Z<u;Z++){W=S[0][Z];for(var V=1;V<N;V++)if(W!=S[V][Z])return T;T=W}return T};
_.Jj=function(L){return L.nodeType==9?L:L.ownerDocument||L.document};
R2Y=function(L){return L.contentDocument||L.contentWindow.document};
_.hY=function(L,Z){if("textContent"in L)L.textContent=Z;else if(L.nodeType==3)L.data=String(Z);else if(L.firstChild&&L.firstChild.nodeType==3){for(;L.lastChild!=L.firstChild;)L.removeChild(L.lastChild);L.firstChild.data=String(Z)}else _.es(L),L.appendChild(_.Jj(L).createTextNode(String(Z)))};
cjt={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};nht={IMG:" ",BR:"\n"};bYP=function(L){var Z;L.tagName=="A"&&L.hasAttribute("href")||L.tagName=="INPUT"||L.tagName=="TEXTAREA"||L.tagName=="SELECT"||L.tagName=="BUTTON"?Z=!L.disabled&&(!L.hasAttribute("tabindex")||Ktt(L)):Z=L.hasAttribute("tabindex")&&Ktt(L);return Z};
Ktt=function(L){L=L.tabIndex;return typeof L==="number"&&L>=0&&L<32768};
kFY=function(L){var Z=[];fDY(L,Z,!0);L=Z.join("");L=L.replace(/ \xAD /g," ").replace(/\xAD/g,"");L=L.replace(/\u200B/g,"");L=L.replace(/ +/g," ");L!=" "&&(L=L.replace(/^\s*/,""));return L};
yjq=function(L){var Z=[];fDY(L,Z,!1);return Z.join("")};
fDY=function(L,Z,N){if(!(L.nodeName in cjt))if(L.nodeType==3)N?Z.push(String(L.nodeValue).replace(/(\r\n|\r|\n)/g,"")):Z.push(L.nodeValue);else if(L.nodeName in nht)Z.push(nht[L.nodeName]);else for(L=L.firstChild;L;)fDY(L,Z,N),L=L.nextSibling};
_.wyh=function(L,Z,N){if(!Z&&!N)return null;var S=Z?String(Z).toUpperCase():null;return _.rF(L,function(u){return(!S||u.nodeName==S)&&(!N||typeof u.className==="string"&&_.p1(u.className.split(/\s+/),N))},!0)};
_.rF=function(L,Z,N){L&&!N&&(L=L.parentNode);for(N=0;L;){if(Z(L))return L;L=L.parentNode;N++}return null};
f7=function(L){this.JSC$9325_document_=L||_.iH.document||document};
_.t=f7.prototype;_.t.getElement=function(L){return _.QB(this.JSC$9325_document_,L)};
_.t.$=f7.prototype.getElement;_.t.getElementsByTagName=function(L,Z){return(Z||this.JSC$9325_document_).getElementsByTagName(String(L))};
_.t.getElementsByTagNameAndClass=function(L,Z,N){return kp(this.JSC$9325_document_,L,Z,N)};
_.t.$$=f7.prototype.getElementsByTagNameAndClass;_.t.setProperties=tNq;_.t.JSC$9327_createDom=function(L,Z,N){return Wt5(this.JSC$9325_document_,arguments)};
_.t.createElement=function(L){return VNl(this.JSC$9325_document_,L)};
_.t.createTextNode=function(L){return this.JSC$9325_document_.createTextNode(String(L))};
_.t.getWindow=function(){return this.JSC$9325_document_.defaultView};
var eN=function(L){return _.OxV(L.JSC$9325_document_)};
_.t=f7.prototype;_.t.appendChild=function(L,Z){L.appendChild(Z)};
_.t.append=MNI;_.t.canHaveChildren=Yp;_.t.removeNode=_.U_;_.t.getChildren=_.an;_.t.contains=_.H4;_.t.isFocusable=bYP;_.t=Rm.prototype;_.t.getWidth=function(){return this.right-this.left};
_.t.getHeight=function(){return this.bottom-this.top};
_.t.clone=function(){return new Rm(this.top,this.right,this.bottom,this.left)};
_.t.contains=function(L){return this&&L?L instanceof Rm?L.left>=this.left&&L.right<=this.right&&L.top>=this.top&&L.bottom<=this.bottom:L.x>=this.left&&L.x<=this.right&&L.y>=this.top&&L.y<=this.bottom:!1};
_.t.expand=function(L,Z,N,S){_.Q_(L)?(this.top-=L.top,this.right+=L.right,this.bottom+=L.bottom,this.left-=L.left):(this.top-=L,this.right+=Number(Z),this.bottom+=Number(N),this.left-=Number(S));return this};
_.t.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};
_.t.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};
_.t.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};
_.t.translate=function(L,Z){L instanceof _.zF?(this.left+=L.x,this.right+=L.x,this.top+=L.y,this.bottom+=L.y):(this.left+=L,this.right+=L,typeof Z==="number"&&(this.top+=Z,this.bottom+=Z));return this};
_.t.scale=function(L,Z){Z=typeof Z==="number"?Z:L;this.left*=L;this.right*=L;this.top*=Z;this.bottom*=Z;return this};var sy=function(L,Z,N,S){this.left=L;this.top=Z;this.width=N;this.height=S};
_.t=sy.prototype;_.t.clone=function(){return new sy(this.left,this.top,this.width,this.height)};
_.t.boundingRect=function(L){var Z=Math.max(this.left+this.width,L.left+L.width),N=Math.max(this.top+this.height,L.top+L.height);this.left=Math.min(this.left,L.left);this.top=Math.min(this.top,L.top);this.width=Z-this.left;this.height=N-this.top};
_.t.contains=function(L){return L instanceof _.zF?L.x>=this.left&&L.x<=this.left+this.width&&L.y>=this.top&&L.y<=this.top+this.height:this.left<=L.left&&this.left+this.width>=L.left+L.width&&this.top<=L.top&&this.top+this.height>=L.top+L.height};
_.t.distance=function(L){var Z=L.x<this.left?this.left-L.x:Math.max(L.x-(this.left+this.width),0);L=L.y<this.top?this.top-L.y:Math.max(L.y-(this.top+this.height),0);return Math.sqrt(Z*Z+L*L)};
_.t.getSize=function(){return new _.wF(this.width,this.height)};
_.t.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};
_.t.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};
_.t.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};
_.t.translate=function(L,Z){L instanceof _.zF?(this.left+=L.x,this.top+=L.y):(this.left+=L,typeof Z==="number"&&(this.top+=Z));return this};
_.t.scale=function(L,Z){Z=typeof Z==="number"?Z:L;this.left*=L;this.width*=L;this.top*=Z;this.height*=Z;return this};var YNl,Pz,K8G,Ey,aDt,d8s,h2M,$Y_,smt,EhQ;_.js=function(L,Z,N){if(typeof Z==="string")(Z=_.U8l(L,Z))&&(L.style[Z]=N);else for(var S in Z){N=L;var u=Z[S],T=_.U8l(N,S);T&&(N.style[T]=u)}};
YNl={};_.U8l=function(L,Z){var N=YNl[Z];if(!N){var S=_.To(Z);N=S;L.style[S]===void 0&&(S=(_.qH?"Webkit":_.xM?"Moz":null)+N7M(S),L.style[S]!==void 0&&(N=S));YNl[Z]=N}return N};
_.BT=function(L,Z){var N=_.Jj(L);return N.defaultView&&N.defaultView.getComputedStyle&&(L=N.defaultView.getComputedStyle(L,null))?L[Z]||L.getPropertyValue(Z)||"":""};
_.Ar=function(L,Z){return _.BT(L,Z)||(L.currentStyle?L.currentStyle[Z]:null)||L.style&&L.style[Z]};
_.e2t=function(L){return _.Ar(L,"position")};
Pz=function(L,Z,N){if(Z instanceof _.zF){var S=Z.x;Z=Z.y}else S=Z,Z=N;L.style.left=Ey(S,!1);L.style.top=Ey(Z,!1)};
K8G=function(L){try{return L.getBoundingClientRect()}catch(Z){return{left:0,top:0,right:0,bottom:0}}};
_.Cx=function(L){var Z=_.Jj(L),N=new _.zF(0,0);if(L==(Z?_.Jj(Z):document).documentElement)return N;L=K8G(L);Z=eN(Im(Z));N.x=L.left+Z.x;N.y=L.top+Z.y;return N};
_.IDh=function(L,Z,N){if(Z instanceof _.wF)N=Z.height,Z=Z.width;else if(N==void 0)throw Error("oa");L.style.width=Ey(Z,!0);L.style.height=Ey(N,!0)};
Ey=function(L,Z){typeof L=="number"&&(L=(Z?Math.round(L):L)+"px");return L};
aDt=function(L){return d8s(L)};
d8s=function(L){var Z=h2M;if(_.Ar(L,"display")!="none")return Z(L);var N=L.style,S=N.display,u=N.visibility,T=N.position;N.visibility="hidden";N.position="absolute";N.display="inline";L=Z(L);N.display=S;N.position=T;N.visibility=u;return L};
h2M=function(L){var Z=L.offsetWidth,N=L.offsetHeight,S=_.qH&&!Z&&!N;return(Z===void 0||S)&&L.getBoundingClientRect?(L=K8G(L),new _.wF(L.right-L.left,L.bottom-L.top)):new _.wF(Z,N)};
$Y_=function(L){var Z=_.Cx(L);L=d8s(L);return new sy(Z.x,Z.y,L.width,L.height)};
smt=function(L,Z){L=L.style;"opacity"in L?L.opacity=Z:"MozOpacity"in L?L.MozOpacity=Z:"filter"in L&&(L.filter=Z===""?"":"alpha(opacity="+Number(Z)*100+")")};
_.N$=function(L,Z){L.style.display=Z?"":"none"};
_.jmh=function(L){return"rtl"==_.Ar(L,"direction")};
EhQ=function(L){var Z=_.BT(L,"marginLeft"),N=_.BT(L,"marginRight"),S=_.BT(L,"marginTop");L=_.BT(L,"marginBottom");return new Rm(parseFloat(S),parseFloat(N),parseFloat(L),parseFloat(Z))};
_.PGt=function(L){var Z=_.BT(L,"borderLeftWidth"),N=_.BT(L,"borderRightWidth"),S=_.BT(L,"borderTopWidth");L=_.BT(L,"borderBottomWidth");return new Rm(parseFloat(S),parseFloat(N),parseFloat(L),parseFloat(Z))};var p7=function(L){this.context=L};
p7.prototype.isSupported=function(L){return(L==null?0:L.attributionEnabled)||(L==null?void 0:L.beaconMethod)==="POST"||(L==null?0:L.customHeaders)||(L==null?0:L.customBody)||(L==null?0:L.keepAlive)?!1:!l3(this.context)};
p7.prototype.ping=function(){var L=this;return eo(_.CG.apply(0,arguments).map(function(Z){try{var N=L.context.global,S=!1;S=S===void 0?!1:S;N.google_image_requests||(N.google_image_requests=[]);var u=q3l("IMG",N.document);S&&(u.attributionSrc="");u.src=Z;N.google_image_requests.push(u);return!0}catch(T){return!1}}).every(function(Z){return Z}))};
p7.prototype.pingWithHeadersAndBody=function(L,Z,N){this.ping.apply(this,_.Pd(_.CG.apply(3,arguments)))};var py0=function(L){this.context=L};
py0.prototype.isSupported=function(L){return z2Q&&!l3(this.context)&&LmA(this.context)!==void 0&&!(L==null?0:L.attributionEnabled)&&(L==null?void 0:L.beaconMethod)!=="POST"&&!(L==null?0:L.customHeaders)&&!(L==null?0:L.customBody)};
py0.prototype.makeBeacon=function(L,Z){if(!this.isSupported(Z))throw new Gw;return new zw(this.context,L)};
var z2Q=!1,zw=function(L,Z){this.context=L;this.JSC$9346_urlWithoutToken=Z;L=LmA(this.context);if(L===void 0)throw Error();this.wrappedBeacon=new L(m80(this),{})},m80=function(L){L=L.JSC$9346_urlWithoutToken;
return(L.slice(-1)[0]==="&"?L:L+"&")+"pbapi=1"};
zw.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
zw.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
zw.prototype.setHeader=function(){};
_.gd.Object.defineProperties(zw.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9346_urlWithoutToken},
set:function(L){this.JSC$9346_urlWithoutToken=L;this.wrappedBeacon.setURL(m80(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(L){if(L!=="GET")throw new Gw;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var JjL=function(L){this.context=L};
JjL.prototype.isSupported=function(L){if((L==null?0:L.attributionEnabled)||(L==null?void 0:L.beaconMethod)==="GET"||(L==null?0:L.customHeaders)||(L==null?0:L.customBody)||(L==null?0:L.keepAlive))return!1;var Z;return!l3(this.context)&&((Z=this.context.global.navigator)==null?void 0:Z.sendBeacon)!==void 0};
JjL.prototype.ping=function(){var L=this;return eo(_.CG.apply(0,arguments).map(function(Z){var N;return(N=L.context.global.navigator)==null?void 0:N.sendBeacon(Z)}).every(function(Z){return Z}))};
JjL.prototype.pingWithHeadersAndBody=function(L,Z,N){this.ping.apply(this,_.Pd(_.CG.apply(3,arguments)))};var kh=function(L){this.value=L},uX=function(L,Z){return eo(L.value).pipe(Kx(Z))},tr=new kh(!1),slt=new kh(!0);var QC=function(L){this.value=L;this.releasedSubject=new cy};
QC.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.gd.Object.defineProperties(QC.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9359_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var g$h=["FRAME","IMG","IFRAME"],tbs=/^[01](px)?$/,Mbf=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},bys=function(){var L=new Mbf;
L.crossDomainLoadedDefault=!0;L.pendingImagesBlockLoad=!0;return L};var CGV=function(L,Z){var N=o$f(L);if(N)if(N.onCreativeLoad)N.onCreativeLoad(Z);else{var S=Z?[Z]:[],u=function(T){for(var W=0;W<S.length;++W)try{S[W](1,T)}catch(V){}S={push:function(V){V(1,T)}}};
N.onCreativeLoad=function(T){S.push(T)};
N.setAttribute("data-creative-load-listener","");N.addEventListener("creativeLoad",function(T){u(T.detail)});
_.iH.addEventListener("message",function(T){v$w(N,u,T)})}};var mQ=function(L,Z){var N=this;this.global=L;this.parentContext=Z;this.JSC$9370_onVisibilityChange=this.document?Xg(eo(!0),Cs(this.document,"visibilitychange")).pipe(xS(this.parentContext.performanceMonitor,748),E3(function(){return N.getVisibilityState()}),iG()):eo("visible");
this.document?Cs(this.document,"DOMContentLoaded").pipe(xS(this.parentContext.performanceMonitor,739),SN(1)):eo(uUL("DOMContentLoaded"))},haG=function(L){return L.document!==null&&L.document.visibilityState!==void 0};
mQ.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
mQ.prototype.querySelector=function(L){return this.document?this.document.querySelector(L):null};
mQ.prototype.querySelectorAll=function(L){return this.document?_.mh(this.document.querySelectorAll(L)):[]};
mQ.prototype.elementFromPoint=function(L,Z){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;L=this.document.elementFromPoint(L,Z);return L===null?null:new QC(L)};
var K0P=function(L,Z,N){N=N===void 0?!1:N;if(Z.ref===void 0||!L.document)return eo(Z).pipe(xS(L.parentContext.performanceMonitor,749));var S=new ON(1),u=function(){S.next(Z)};
N||CGV(Z.ref,u);G3F(Z.ref,u);return S.pipe(xS(L.parentContext.performanceMonitor,749),SN(1))};
_.gd.Object.defineProperties(mQ.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return smH(this.global,"document")?this.global.document||null:null}}});var Rew=_.sc(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),crw=_.sc(["./reach_worklet.js"]),n$A=_.sc(["./reach_worklet.js"]),rjq=_.sc(["./reach_worklet.html"]),QmQ=_.sc(["./reach_worklet.js"]),Xyt=_.sc(["./reach_worklet.js"]);_.vy(rjq);_.vy(QmQ);_.vy(Xyt);var Ly={left:0,top:0,width:0,height:0};var AjQ,Hx5,BF0,x8q,VZ,LmQ,ZyM,NZs,EKF,PwH,uUI,TZq;AjQ=function(L,Z,N,S,u,T,W){var V="";L&&(V+=L+":");N&&(V+="//",Z&&(V+=Z+"@"),V+=N,S&&(V+=":"+S));u&&(V+=u);T&&(V+="?"+T);W&&(V+="#"+W);return V};
Hx5=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Or=function(L){return L.match(Hx5)};
_.$M=function(L,Z){return L?Z?decodeURI(L):decodeURIComponent(L):L};
BF0=function(L){L=_.Or(L)[1]||null;!L&&_.iH.self&&_.iH.self.location&&(L=_.iH.self.location.protocol.slice(0,-1));return L?L.toLowerCase():""};
_.WW=function(L){return _.$M(_.Or(L)[3]||null,!0)};
_.ks=function(L){return _.$M(_.Or(L)[5]||null,!0)};
_.GOB=function(L){var Z=L.indexOf("#");return Z<0?null:L.slice(Z+1)};
x8q=function(L){L=_.Or(L);return AjQ(L[1],L[2],L[3],L[4])};
_.qNl=function(L){L=_.Or(L);return AjQ(L[1],null,L[3],L[4])};
_.e9=function(L){L=_.Or(L);return AjQ(null,null,null,null,L[5],L[6],L[7])};
_.P2=function(L){var Z=L.indexOf("#");return Z<0?L:L.slice(0,Z)};
VZ=function(L,Z){L=_.Or(L);Z=_.Or(Z);return L[3]==Z[3]&&L[1]==Z[1]&&L[4]==Z[4]};
LmQ=function(L,Z){if(L){L=L.split("&");for(var N=0;N<L.length;N++){var S=L[N].indexOf("="),u=null;if(S>=0){var T=L[N].substring(0,S);u=L[N].substring(S+1)}else T=L[N];Z(T,u?Mu(u):"")}}};
ZyM=function(L){var Z=L.indexOf("#");Z<0&&(Z=L.length);var N=L.indexOf("?");if(N<0||N>Z){N=Z;var S=""}else S=L.substring(N+1,Z);return[L.slice(0,N),S,L.slice(Z)]};
NZs=function(L,Z){return Z?L?L+"&"+Z:Z:L};
_.S_l=function(L,Z){if(!Z)return L;L=ZyM(L);L[1]=NZs(L[1],Z);return L[0]+(L[1]?"?"+L[1]:"")+L[2]};
_.iyI=function(L,Z,N){if(Array.isArray(Z))for(var S=0;S<Z.length;S++)_.iyI(L,String(Z[S]),N);else Z!=null&&N.push(L+(Z===""?"":"="+_.Nu(Z)))};
_.wv=function(L){var Z=[],N;for(N in L)_.iyI(N,L[N],Z);return Z.join("&")};
_.t3=function(L,Z){Z=_.wv(Z);return _.S_l(L,Z)};
_.JY=function(L,Z,N){N=N!=null?"="+_.Nu(N):"";return _.S_l(L,Z+N)};
EKF=function(L,Z,N,S){for(var u=N.length;(Z=L.indexOf(N,Z))>=0&&Z<S;){var T=L.charCodeAt(Z-1);if(T==38||T==63)if(T=L.charCodeAt(Z+u),!T||T==61||T==38||T==35)return Z;Z+=u+1}return-1};
PwH=/#|$/;_.B4=function(L,Z){var N=L.search(PwH),S=EKF(L,0,Z,N);if(S<0)return null;var u=L.indexOf("&",S);if(u<0||u>N)u=N;S+=Z.length+1;return Mu(L.slice(S,u!==-1?u:0))};
uUI=/[?&]($|#)/;_.zo=function(L,Z){for(var N=L.search(PwH),S=0,u,T=[];(u=EKF(L,S,Z,N))>=0;)T.push(L.substring(S,u)),S=Math.min(L.indexOf("&",u)+1||N,N);T.push(L.slice(S));return T.join("").replace(uUI,"$1")};
_.HK=function(L,Z,N){return _.JY(_.zo(L,Z),Z,N)};
TZq=function(L){var Z=ZyM(window.location.href),N=Z[1],S=[];N&&N.split("&").forEach(function(u){var T=u.indexOf("=");T=T>=0?u.slice(0,T):u;L.hasOwnProperty(T)||S.push(u)});
Z[1]=NZs(S.join("&"),_.wv(L));return Z[0]+(Z[1]?"?"+Z[1]:"")+Z[2]};var JrG=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(JrG,_.On);var mGs=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(mGs,_.On);var sgG=function(L,Z){return _.dF(L,2,Z)},zeH=function(L,Z){return _.dF(L,3,Z)};
mGs.prototype.getModel=function(){return _.va(this,4)};
var E$A=function(L,Z){return _.dF(L,4,Z)},heF=function(L,Z){return _.dF(L,5,Z)},p4x=function(L,Z){return _.dF(L,9,Z)},aG0=function(L,Z){return gK(L,10,Z)},dG1=function(L,Z){return _.lX(L,11,Z)},jgw=function(L,Z){return _.dF(L,1,Z)},PXG=function(L,Z){return _.lX(L,7,Z)};var eeF="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var T3=function(L,Z,N,S){L=L===void 0?window:L;Z=Z===void 0?null:Z;N=N===void 0?new cfO:N;S=S===void 0?Km0():S;DZO.call(this);var u=this;this.global=L;this.debugChannel=Z;this.performanceMonitor=N;this.onPageHide=TFP(function(){return Cs(u.global,"pagehide")}).pipe(xS(this.performanceMonitor,941));
this.onLoad=TFP(function(){return Cs(u.global,"load")}).pipe(xS(this.performanceMonitor,738),SN(1));
this.onResize=TFP(function(){return Cs(u.global,"resize")}).pipe(xS(this.performanceMonitor,741));
this.onMessage=TFP(function(){return Cs(u.global,"message")}).pipe(xS(this.performanceMonitor,740));
this.document=new mQ(this.global,this);this.timeProvider=new nS5(new fSN(this.intrinsicFunctionNamespace,this.performanceMonitor),new KwY(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new oSh(new yUV(this),new py0(this),new Fi(this,new Y3O(this)),new Fi(this,new JjL(this)),new Fi(this,new p7(this)))};
_.f(T3,DZO);T3.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(L){return L}};
var l3=function(L){var Z=L.global;return!!L.global.HTMLFencedFrameElement&&!!Z.fence&&typeof Z.fence.reportEvent==="function"};
_.t=T3.prototype;_.t.reportFencedFrameEvent=function(L){l3(this)&&this.global.fence.reportEvent(L)};
_.t.getOnBackgrounded=function(){return this.onPageHide.pipe(xS(this.performanceMonitor,942),Kx(this.queue),E3(function(){}))};
_.t.postMessage=function(L,Z,N){N=N===void 0?[]:N;this.global.postMessage(L,Z,N)};
_.t.getWidth=function(){return jmw(this.global)?this.global.width:0};
_.t.getHeight=function(){return jmw(this.global)?this.global.height:0};
_.t.isMobile=function(){return dZN()||aSQ()};
var Xr=function(L,Z){try{var N=w4P(Z,L.global,L.isMobile());return{left:N.left,top:N.top,width:N.getWidth(),height:N.getHeight()}}catch(S){return Ly}};
T3.prototype.validate=function(){var L=this.beaconFactory.isSupported()||l3(this);return this.global&&this.timeProvider.available()&&L};
var NZx=function(L){return(L=rrs(L.global))?oS(L):null};
_.gd.Object.defineProperties(T3.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(L){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(L){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!jmw(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}}});_.tbl=!_.BV&&!_.l0w();var jl1=function(L){return L};var PTH=function(L){return L.pipe(AU(function(Z){var N=Z.endOfSessionReason;var S;return((S=Z.viewable)==null?void 0:S.extrapolateToNow().value)||N!=void 0}),SN(1),Lx())};var q_t=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},L8t=function(L){var Z=L.sequenceNumber.toString(10).padStart(2,"0");
Z=""+L.startTime+Z;L.sequenceNumber<99&&L.sequenceNumber++;return Z};var a8t=$S(GF(function(L){return L.endOfSessionReason===void 0}),E3(function(L){return Object.assign({},L,{timestamps:hj(L)})}),AU(function(L){var Z=L.viewable;
L=L.timestamps;var N;return(N=Z==null?void 0:Z.extrapolateUsingTimestampMap(L).value)!=null?N:!1}),E3(function(L){var Z=L.beaconFactory;
var N=L.timestampedExposureHistory;var S=L.timeOnScreen;var u=L.binaryContext;L=L.timestamps;if(Z===void 0||N===void 0||S===void 0||u===void 0)return!1;if(S.extrapolateUsingTimestampMap(L).value.every(function(T){return T>=0}))return!0;
N=N.map(function(T){return T.timestamp+":"+T.value}).join(",");
S=Zh1({bin:u,tos:S},L);Z.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+S+("&eh="+N)).sendNow();return!0}),GF(function(L){return!L}),Lx());var SKF=function(L){return{id:L.pingId,mcvt:L.maxConsecutiveViewTime,p:L.creativePosition,asp:L.adSpeedPosition,tm:L.totalMeasurementTime,tu:L.totalUnviewedTime,mtos:L.maxTimeOnScreen,tos:L.timeOnScreen,v:L.binaryVersion,bin:L.binaryContext,avms:L.measurementStrategy,bs:L.browserSize,mc:L.maximumExposure,"if":L.crossDomainIframeState,vu:L.delayedImpressionJsState,app:L.inApp,mse:L.mraidError,mtop:L.mraidSituation,itpl:L.injectedTemplateId,adk:L.adKey,exk:L.awbidKey,rs:L.requestSource,la:L.isLargeAd,
cr:L.isContentRecommendationAd,uach:L.userAgentClientHints,vs:L.viewState,r:L.reasonCode,pay:L.hasCpmavUrl,co:L.clientPingOrderCounter,rst:L.adRenderStartTime,rpt:L.adRenderPeriodTime,isd:L.initialScrollDepth,lsd:L.loadedScrollDepth,context:L.errorContext,msg:L.errorMessage,stack:L.errorStack,name:L.errorName,ec:L.hasElementChanged,sfr:L.strategyFailureReasons,met:L.creativeSearchResult,wmsd:L.webMeasurementStartDiagnostic,pv:L.pageVisible,epv:L.eosPageVisible,pbe:L.inStatefulBeaconExperiment,fle:L.inFetchLaterBeaconExperiment,
vae:L.inViewableAttributionExperiment,spb:L.supportsPendingBeacon,sfl:L.supportsFetchLater,ffslot:L.isFencedFrameSlotTurtlex,reach:L.sharedStorageReachMode,io2:L.v2VisibilityBitVector,rxdbg:L.rxDebugger,omida:L.omidAppId,omidp:L.omidPartner,omidpv:L.omidPartnerVersion,omidor:L.omidOcclusionReasons,omidv:L.omidVersion,omids:L.omidSessionType,omidam:L.omidAccessMode,omidct:L.omidCreativeType,omidia:L.omidInApp,omiddc:L.omidDeviceCategory,omidlat:L.omidLastActivity,omiddit:L.omidDeviceIdleTime,qid:L.errorEscapedQueryId}};var E_f=function(L){var Z=[];return L.pipe(E3(function(N){var S=N.beaconFactory,u=N.fetchBeaconFactory,T=N.timeOnScreen,W=N.timeOnScreenUrlPrefixes,V=N.payloadMapper,M=N.timeOnScreenPingId,G=N.timeOnScreenReason,D=N.urlSerializer,l=N.viewable,v=N.hasImpressionFired,R=N.inStatefulBeaconExperiment,K=N.supportsPendingBeacon,U=N.supportsFetchLater,d=N.turtlexReportEventData;if(!N.geometryMeasurable||!v||N.maxTimeOnScreen===void 0||T===void 0||W===void 0||V===void 0||M===void 0||D===void 0||S===void 0)return!1;
if(N.isTurtlex){if(G===void 0)return!1;W=N.reportFencedFrameEvent;if(!W)return!1;W({eventType:"active-view-time-on-screen",eventData:d!=null?d:"",destination:["buyer"]});return!0}if(!(R||U||G))return!1;d=hj(N);var h;l=(h=l==null?void 0:l.extrapolateUsingTimestampMap(d).value)!=null?h:!1;h=D(Object.assign({},N,{pingId:M,viewState:l?4:3,reasonCode:G!=null?G:"u",payloadMapper:V,urlPrefixes:W}),d);if(R){for(;Z.length>W.length;)N=void 0,(N=Z.shift())==null||N.deactivate();h.forEach(function(A,J){J>=Z.length?
Z.push(S.makeBeacon(A)):Z[J].url=A});
return K&&u&&G!==void 0?(h.forEach(function(A){u.makeBeacon(A).sendNow()}),!0):G!==void 0}if(K&&u&&G!==void 0)return h.forEach(function(A){u.makeBeacon(A).sendNow()}),!0;
if(U&&u){for(;Z.length>W.length;)K=void 0,(K=Z.shift())==null||K.deactivate();var E=D(Object.assign({},N,{pingId:M,viewState:l?4:3,reasonCode:G!=null?G:"u",payloadMapper:V,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),d)[0];h.forEach(function(A,J){J>=Z.length?Z.push(S.makeBeacon(E,{endOfSession:!0})):Z[J].url=E});
return G!==void 0?(h.forEach(function(A){u.makeBeacon(A).sendNow()}),!0):G!==void 0}return G!==void 0?(h.forEach(function(A){S.makeBeacon(A).sendNow()}),!0):!1}),GF(function(N){return!N}),Lx())};var p8G=$S(AU(function(L){return L.immediateUrlPrefixes!==void 0&&L.payloadMapper!==void 0&&L.urlSerializer!==void 0&&L.inferredPingId!==void 0&&L.beaconFactory!==void 0}),AU(function(L){return bh0(L)!==null}),W8P(function(L){return L.activeViewUnmeasurableEvent},function(L){return L.emit}),E3(function(L){if(L.isTurtlex){var Z=L.reportFencedFrameEvent;
if(Z){var N;Z({eventType:"active-view-unmeasurable",eventData:(N=L.turtlexReportEventData)!=null?N:"",destination:["buyer"]})}}else{N=void 0;var S=bh0(L);if(S==="x"){var u,T=(u=L.geometricMeasurementErrors)!=null?u:L.contextValidationErrors;T&&(Z=T.stack,N=T.message)}L.urlSerializer(Object.assign({},L,{urlPrefixes:L.immediateUrlPrefixes,payloadMapper:L.payloadMapper,pingId:L.inferredPingId,viewState:2,reasonCode:S,errorMessage:N,errorStack:Z}),hj(L)).forEach(function(W){L.beaconFactory.makeBeacon(W).sendNow()})}}),
SN(1),Lx());var MUL=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var dTH=$S(AU(function(L){return L.payloadMapper!==void 0&&L.immediateUrlPrefixes!==void 0&&L.urlSerializer!==void 0&&L.inferredPingId!==void 0&&L.beaconFactory!==void 0}),E3(function(L){return Object.assign({},L,{timestamps:hj(L)})}),AU(function(L){var Z=L.viewable;
var N=L.hasImpressionFired;L=L.timestamps;var S;return!!N&&((S=Z==null?void 0:Z.extrapolateUsingTimestampMap(L).value)!=null?S:!1)}),W8P(function(L){return L.activeViewViewableEvent},function(L){return L.emit}),E3(function(L){var Z=L.beaconFactory,N=L.turtlexReportEventData;
if(L.isTurtlex){var S=L.reportFencedFrameEvent;if(!S)return!1;S({eventType:"active-view-viewable",eventData:N!=null?N:"",destination:["buyer"]});return!0}N=L.urlSerializer(Object.assign({},L,{urlPrefixes:L.immediateUrlPrefixes,payloadMapper:L.payloadMapper,pingId:L.inferredPingId,viewState:4,reasonCode:"v"}),L.timestamps);(S=L.cpmavUrls)&&S.length>0&&L.viewUrlSerializer&&L.viewUrlSerializer(S,L).forEach(function(u){Z.makeBeacon(u).sendNow()});
(S=L.viewableRelayUrls)&&S.length>0&&L.viewUrlSerializer&&L.viewUrlSerializer(S,L).forEach(function(u){Z.makeBeacon(u).sendNow()});
N.forEach(function(u){Z.makeBeacon(u,{attributionEnabled:L.isViewableAttributionEnabled}).sendNow()});
return!0}),GF(function(L){return!L}),Lx());var SMh=E3(function(L){return[L.value.topWindowViewportExternalGeometry.width,L.value.topWindowViewportExternalGeometry.height]});var xh=function(L,Z){this.callback=L;this.options=Z;this.intersectionObserverV2=this.intersectionObserverV1=null},ERh=function(L,Z){Z?L.intersectionObserverV2||(Z=Object.assign({},L.options,{delay:100,
trackVisibility:!0}),L.intersectionObserverV2=new IntersectionObserver(L.callback,Z)):L.intersectionObserverV1||(L.intersectionObserverV1=new IntersectionObserver(L.callback,L.options))},Oyl=function(L,Z){L=Z?L.intersectionObserverV2:L.intersectionObserverV1;
if(!L)throw new lSs;return L};
xh.prototype.observe=function(L,Z){Oyl(this,L).observe(Z)};
xh.prototype.unobserve=function(L,Z){Oyl(this,L).unobserve(Z)};
xh.prototype.disconnect=function(L){Oyl(this,L).disconnect()};
xh.prototype.takeRecords=function(L){return Oyl(this,L).takeRecords()};var ksL={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Ly,topWindowViewportExternalGeometry:Ly,measurementRequests:new cy,elementGeometrySourceName:"ns",elementGeometry:Ly,intersectionGeometry:Ly,viewportLocalAppOffset:{x:0,y:0}};var rWh=ZG($S(E3(function(L){var Z;return(Z=L.exposureOverride)!=null?Z:pEF(L)}),E3(function(L){return isFinite(L)?L:0}))),qKG=ZG($S(E3(function(L){var Z;
return(Z=L.exposureOverride)!=null?Z:pEF(L)}),E3(function(L){return isFinite(L)?L:-1})));var C7=function(L,Z){this.a=L;this.b=Z;if(L.clock.timeline!==Z.clock.timeline)throw Error();};
C7.prototype.equivalentTo=function(L){return L instanceof C7?this.a.equivalentTo(L.a)&&this.b.equivalentTo(L.b):!1};
C7.prototype.extrapolateToTime=function(L){var Z=this.a.extrapolateToTime(L).value,N=this.b.extrapolateToTime(L).value;return{timestamp:L,value:[Z,N]}};
_.gd.Object.defineProperties(C7.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 L=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),Z=this.a.lastMeasurement.timestamp.equals(L)?this.a.lastMeasurement.value:this.a.extrapolateToTime(L).value,N=this.b.lastMeasurement.timestamp.equals(L)?this.b.lastMeasurement.value:this.b.extrapolateToTime(L).value;return{timestamp:L,value:[Z,N]}}}});var rI=function(L,Z){this.input=L;this.mapFunction=Z;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
rI.prototype.equivalentTo=function(L){return L instanceof rI?this.input.equivalentTo(L.input)&&this.mapFunction===L.mapFunction:!1};
rI.prototype.extrapolateToTime=function(L){L=this.input.extrapolateToTime(L);return{timestamp:L.timestamp,value:this.mapFunction(L.value)}};
_.gd.Object.defineProperties(rI.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var QN=function(){};
QN.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
QN.prototype.extrapolateUsingTimestampMap=function(L){var Z=this.clock.timeline,N,S=(N=L.get(Z))!=null?N:this.clock.now();L.set(Z,S);return this.extrapolateToTime(S)};
QN.prototype.map=function(L){return new WmM(this,L)};
QN.prototype.joinWith=function(L){return new Vbh(this,L)};
var Vbh=function(){C7.apply(this,arguments);this.map=QN.prototype.map;this.joinWith=QN.prototype.joinWith;this.extrapolateToNow=QN.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=QN.prototype.extrapolateUsingTimestampMap};
_.f(Vbh,C7);var WmM=function(){rI.apply(this,arguments);this.map=QN.prototype.map;this.joinWith=QN.prototype.joinWith;this.extrapolateToNow=QN.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=QN.prototype.extrapolateUsingTimestampMap};
_.f(WmM,rI);var Sb=function(L,Z){this.lastMeasurement=Z;this.extrapolateToNow=QN.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=QN.prototype.extrapolateUsingTimestampMap;this.map=QN.prototype.map;this.joinWith=QN.prototype.joinWith;this.clock=L};
Sb.prototype.equivalentTo=function(L){return L.active};
Sb.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.gd.Object.defineProperties(Sb.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var Nj1=E3(function(L){if(L.value.viewportGeometrySourceName==="omid"){if(L.value.elementGeometrySourceName==="nio")return"omio";if(L.value.elementGeometrySourceName==="geo")return"omgeo"}return L.value.elementGeometrySourceName==="geo"||L.value.elementGeometrySourceName==="nio"?L.value.viewportGeometrySourceName:L.value.elementGeometrySourceName});var m$h=$S(AU(function(L){return!isNaN(L)}),VC(function(L,Z){return isNaN(L)?Z:Math.min(L,Z)},NaN),iG());var QYA=ZG($S(E3(function(L){return L.intersectionGeometry.width*L.intersectionGeometry.height/(L.exposedViewportLocalGeometry.width*L.exposedViewportLocalGeometry.height)}),E3(function(L){return isFinite(L)?Math.min(1,L):0})));var ZnL=$S(ZG(E3(function(L){L=L.exposureOverride?L.elementGeometry.width*L.elementGeometry.height*L.exposureOverride/(L.topWindowViewportExternalGeometry.width*L.topWindowViewportExternalGeometry.height):L.intersectionGeometry.width*L.intersectionGeometry.height/(L.topWindowViewportExternalGeometry.width*L.topWindowViewportExternalGeometry.height);return isFinite(L)?L:0})));var TjF=function(L,Z){var N=this;this.timeProvider=L;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=Z.pipe(iG()).subscribe(function(S){On1(N);N.measurementRequestObserver=S})},W00=function(L,Z){On1(L);
L.lastMeasurementRequest=L.timeProvider.setTimeout(function(){var N;return void((N=L.measurementRequestObserver)==null?void 0:N.next())},Z)},On1=function(L){L.lastMeasurementRequest!==null&&L.timeProvider.clearTimeout(L.lastMeasurementRequest);
L.lastMeasurementRequest=null};
TjF.prototype.dispose=function(){On1(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var byl=function(){};var YMH=function(L,Z){this.context=L;this.strategies=Z};
_.f(YMH,byl);YMH.prototype.buildGeometrySource=function(L,Z){var N=this.strategies.map(function(T){return T.buildGeometrySource(L,Z)}),S=GpB(N.map(function(T){return T.geometrySource})),u=S.capturedErrors.pipe(Mbt());
return{geometrySource:S.chain.pipe(Kx(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:u,strategyErrors:S.capturedErrors}].concat(_.Pd(N.map(function(T){return T.additionalOutputs}))))}};
var Mbt=function(){return VC(function(L,Z){Z instanceof jN?L.push(Z.measurementStrategyFailureReason):L.push(-1);return L},[])};var I8_=function(L,Z){this.context=L;this.poller=Z};
_.f(I8_,byl);I8_.prototype.buildGeometrySource=function(L,Z){var N=F0A(DTt(this.context,this.poller),yWA(this.context,Z.requestSource));return{geometrySource:g_w(L.measurableCreative.pipe(N),Z.inApp),additionalOutputs:{}}};var eaf=function(L,Z,N){N=N===void 0?d$h(L,Z):N;this.context=L;this.intersectionObserverStrategy=N};
_.f(eaf,byl);eaf.prototype.buildGeometrySource=function(L,Z){var N=this.intersectionObserverStrategy(Z.useV2);return{geometrySource:g_w(L.measurableCreative.pipe(N,a4_(this.context)),Z.inApp),additionalOutputs:{}}};var g$M=function(L,Z,N){var S=S===void 0?Symbol():S;this.element=L;this.immediateUrls=Z;this.timeOnScreenUrls=N;this.symbol=S};var u71=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),chx=Object.freeze([1,.75,u71.exposureThreshold,u71.largeAdExposureThreshold,0]);var jcx=function(L,Z){Z=Z===void 0?36E5:Z;var N=N===void 0?!0:N;this.creatives=new cy;this.elementsToUnregister=new cy;this.elementMap=new Map;var S=new T3(window,null);S.beaconFactory=new Fi(S,new p7(S));UTG(S,this.creatives,this.elementsToUnregister,L,Z,N).subscribe()},prf=function(L,Z,N,S){if(!L.elementMap.has(Z)){var u=new QC(Z);
L.elementMap.set(Z,u);L.creatives.next(new g$M(u,N,S))}},PLP=function(L,Z){L.elementsToUnregister.next(Z);
var N=L.elementMap.get(Z);N!==void 0&&(N.release(),L.elementMap.delete(Z))};var ph1=function(L){var Z=L.url;L=L.uaDataValues;this.JSC$9475_url_=Z;this.uaDataValues_=L;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var N=/[?&]([^&=]+)=([^&]*)/g;L=N.exec(Z);)this.urlParamValues_[L[1]]=L[2]},zdf=function(L){L=L.uaDataValues_;
if(!L)return"";var Z=O_("uap",L.platform)+O_("uapv",L.platformVersion)+O_("uafv",L.uaFullVersion)+O_("uaa",L.architecture)+O_("uam",L.model)+O_("uab",L.bitness);L.fullVersionList&&(Z+="&uafvl="+encodeURIComponent(L.fullVersionList.map(function(N){return encodeURIComponent(N.brand)+";"+encodeURIComponent(N.version)}).join("|")));
L.wow64!=null&&(Z+="&uaw="+Number(L.wow64));return Z.slice(1)};var G3O=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(G3O,_.On);G3O.prototype.getId=function(){return _.va(this,1)};var Xi=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Xi,_.On);Xi.prototype.getSeconds=function(){return Di(this,1)};
Xi.prototype.setSeconds=function(L){return _.ZM(this,1,Gg(L),"0")};_.oL=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(_.oL,_.On);_.oL.prototype.getSeconds=function(){return Di(this,1)};
_.oL.prototype.setSeconds=function(L){return _.ZM(this,1,Gg(L),"0")};
_.FmM=function(L){var Z=Number(RA(L,1));L=_.G3(L,2);return new Date(Z*1E3+L/1E6)};var AY=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(AY,_.On);AY.prototype.getUrl=function(){return _.va(this,1)};
AY.prototype.setUrl=function(L){return _.ey(this,1,L)};
AY.prototype.getHeight=function(){return _.G3(this,2)};
AY.prototype.getWidth=function(){return _.G3(this,3)};var Hz=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Hz,_.On);Hz.prototype.getAspectRatio=function(){return ly(this,1)};
Hz.prototype.getDuration=function(){return _.lp(this,Xi,2)};var $GN=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f($GN,_.On);var DGM=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(DGM,_.On);var lGY=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(lGY,_.On);var v$h=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(v$h,_.On);var o$t=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(o$t,_.On);var Reh=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Reh,_.On);var crh=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(crh,_.On);var n$Q=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(n$Q,_.On);var KmN=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(KmN,_.On);var Bz=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Bz,_.On);var xp=[2,4,5,6,7];var fGM=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(fGM,_.On);var G5=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(G5,_.On);_.t=G5.prototype;_.t.getId=function(){return _.lp(this,G3O,1)};
_.t.getName=function(){return _.va(this,2)};
_.t.setDescription=function(L){return _.ey(this,3,L)};
_.t.getUrl=function(){return _.va(this,8)};
_.t.setUrl=function(L){return _.ey(this,8,L)};
var qY=function(L){return _.MG(L,AY,10,_.gZ())};
G5.prototype.getOwner=function(L){var Z=_.Bw(this,40,_.K8,3,!0);LMG(Z,L);return Z[L]};
var Lc=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Lc,_.On);_.Zw=[0,EW,g5h];_.Nb=[0,EW,g5h];var k35=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(k35,_.On);var SJ=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(SJ,_.On);SJ.prototype.getStatus=function(){return _.oA(this,1)};
SJ.prototype.removeItem=function(L){return nLs(this,2,L)};var yrh=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(yrh,_.On);yrh.prototype.getName=function(){return _.va(this,8)};var il=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(il,_.On);il.prototype.getCommand=function(){return _.oA(this,1)};
il.prototype.getSource=function(){return _.lp(this,yrh,2)};
il.prototype.setVisible=function(L){return _.DF(this,5,L)};
il.prototype.removeItem=function(L){return nLs(this,7,L)};var w45=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(w45,_.On);w45.prototype.getCommand=function(){return _.oA(this,1)};
w45.prototype.removeItem=function(L){return nLs(this,4,L)};
var UGO=_.R7(w45);var ul=function(L,Z,N){N=N===void 0?Error():N;var S=Error.call(this);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.code=L;Z+=":";N instanceof Error?(this.message=Z+N.message,this.stack=N.stack||""):(this.message=Z+String(N),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(ul,Error);_.ag=function(){this.JSC$9533_disposed_=this.JSC$9533_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.ag.prototype.JSC$9533_disposed_=!1;_.ag.prototype.isDisposed=function(){return this.JSC$9533_disposed_};
_.ag.prototype.dispose=function(){this.JSC$9533_disposed_||(this.JSC$9533_disposed_=!0,this.disposeInternal())};
_.ag.prototype[Symbol.dispose]=function(){this.dispose()};
_.Ky=function(L,Z){L.addOnDisposeCallback(_.T6(_.W4,Z))};
_.ag.prototype.addOnDisposeCallback=function(L,Z){this.JSC$9533_disposed_?Z!==void 0?L.call(Z):L():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),Z&&(L=L.bind(Z)),this.onDisposeCallbacks_.push(L))};
_.ag.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Tk=function(L){_.ag.call(this);this.wpc=L};
_.f(Tk,_.ag);Tk.prototype.mXe=function(){return this.wpc.f()};
Tk.prototype.xRm=function(L){return this.wpc.c(L)};
Tk.prototype.ma=function(L){return this.wpc.m(rhA(L))};
Tk.prototype.qsC=function(L){return this.wpc.mws(rhA(L))};
var bX=function(L){_.ag.call(this);var Z=this;this.vm=L;this.j7B="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.hRF=void 0;this.mXG=this.vm.p;this.sMA=this.uea.bind(this);this.addOnDisposeCallback(function(){return void Y_5(Z)})};
_.f(bX,_.ag);var eeO=function(L){var Z;return _.b(function(N){if(N.nextAddress==1){if(!L.vm.wpc)throw new ul(30,"NWA");return L.nCL?N.return(L.nCL):N.yield(L.vm.wpc(),2)}Z=N.yieldResult;L.nCL=new Tk(Z);return N.return(L.nCL)})};
bX.prototype.snapshot=function(L){return this.vm.s(Object.assign({},L.oL&&{c:L.oL},L.fWx&&{s:L.fWx},L.f9Y!==void 0&&{p:L.f9Y}))};
bX.prototype.uea=function(L){this.vm.e(L)};
bX.prototype.mFH=function(L,Z){return this.vm.c(L,Z,!1)};
var Y_5=function(L){L.hRF!==void 0&&(L.j7B.forEach(function(Z){var N;(N=L.hRF)==null||N.removeEventListener(Z,L.sMA)}),L.hRF=void 0)};
bX.prototype.wFA=function(){return this.vm.l()};var t4=function(){_.ag.apply(this,arguments);this.aK7=1};
_.f(t4,_.ag);t4.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.aK7++;return this};
t4.prototype.dispose=function(){--this.aK7||_.ag.prototype.dispose.call(this)};var IGY=function(L){this.uKn=L;L.addNewEventMetric("/client_streamz/bg/frs",_.DG("mk"))};
IGY.prototype.record=function(L,Z){this.uKn.record("/client_streamz/bg/frs",L,Z)};
var dG0=function(L){this.dWB=L;L.addNewEventMetric("/client_streamz/bg/wrl",_.DG("mn"),$$("ac"),$$("sc"),_.DG("rk"),_.DG("mk"))};
dG0.prototype.record=function(L,Z,N,S,u,T){this.dWB.record("/client_streamz/bg/wrl",L,Z,N,S,u,T)};
var aGN=function(L){this.nf7=L;L.addNewCounter("/client_streamz/bg/ec",_.DG("en"),_.DG("mk"))};
aGN.prototype.increment=function(L,Z){this.nf7.JSC$9786_incrementCounter("/client_streamz/bg/ec",L,Z)};
var heO=function(L){this.vfw=L;L.addNewEventMetric("/client_streamz/bg/el",_.DG("en"),_.DG("mk"))};
heO.prototype.record=function(L,Z,N){this.vfw.record("/client_streamz/bg/el",L,Z,N)};
var sgY=function(L){this.tNB=L;L.addNewCounter("/client_streamz/bg/cec",$$("ec"),_.DG("mk"))};
sgY.prototype.increment=function(L,Z){this.tNB.JSC$9786_incrementCounter("/client_streamz/bg/cec",L,Z)};
var jgh=function(L){this.qyB=L;L.addNewCounter("/client_streamz/bg/po/csc",$$("cs"),_.DG("mk"))};
jgh.prototype.increment=function(L,Z){this.qyB.JSC$9786_incrementCounter("/client_streamz/bg/po/csc",L,Z)};
var E$Q=function(L){this.zXG=L;L.addNewCounter("/client_streamz/bg/po/ctav",_.DG("av"),_.DG("mk"))};
E$Q.prototype.increment=function(L,Z){this.zXG.JSC$9786_incrementCounter("/client_streamz/bg/po/ctav",L,Z)};
var PXY=function(L){this.rEV=L;L.addNewCounter("/client_streamz/bg/po/cwsc",_.DG("su"),_.DG("mk"))};
PXY.prototype.increment=function(L,Z){this.rEV.JSC$9786_incrementCounter("/client_streamz/bg/po/cwsc",L,Z)};var osx=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(osx,_.On);var vs_=function(L,Z){return _.LG(L,3,Z,RQf)};var p4s=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(p4s,_.On);var zet=[1,2,3];var mGl=[0,zet,_.QM,GgQ,DcN];var JrY=[0,_.XE,[0,sW,_.jd]];var CXh=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(CXh,_.On);var rrl=[1,2,3];var QgI=[0,rrl,b8V,TyY,_.A5,JrY];var X4l=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(X4l,_.On);var ArV=[0,_.XE,mGl,QgI];var Hyt=[0,_.J5];var BZh=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(BZh,_.On);var xGq=[0,_.J5,-1,_.z5];var q_L=[0,_.J5,-1,_.p5,_.z5];var L8L=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(L8L,_.On);var Zh0=[1,2,3];var NJs=[0,Zh0,_.A5,xGq,_.A5,q_L,_.A5,Hyt];var SKO=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(SKO,_.On);SKO.prototype.JSC$9606_serializeBinary=Q7t([0,_.J5,NJs,lPO,_.XE,ArV,Fkq,_.$ct]);var ihO=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(ihO,_.On);var tUh=function(L){var Z=new SKO;Z=_.dF(Z,1,L.JSC$9722_metricName);var N=u50(L);Z=_.LG(Z,3,N,_.vw);N=[];for(var S=[],u=_.O(L.cellMap.keys()),T=u.next();!T.done;T=u.next())S.push(T.value.split(","));for(u=0;u<S.length;u++){T=S[u];for(var W=L.cellType,V=L.getCells(T)||[],M=[],G=0;G<V.length;G++){var D=V[G],l=D&&D.cellValue;D=new CXh;switch(W){case 3:l=Number(l);Number.isFinite(l)&&y7(D,1,rrl,Gg(l));break;case 2:y7(D,2,rrl,_.Bl(Number(l)))}M.push(D)}W=M;for(V=0;V<W.length;V++){M=W[V];G=new X4l;M=_.fG(G,
2,M);G=[];D=TJV(L);for(l=0;l<D.length;l++){var v=D[l],R=T[l],K=new p4s;switch(v){case 3:y7(K,1,zet,cw(String(R)));break;case 2:v=Number(R);Number.isFinite(v)&&y7(K,2,zet,_.Ov(v));break;case 1:y7(K,3,zet,lNH(R==="true"))}G.push(K)}gK(M,1,G);N.push(M)}}gK(Z,4,N);return Z};var Oh5=function(L){if(!L)return"";if(/^about:(?:blank|srcdoc)$/.test(L))return window.origin||"";L.indexOf("blob:")===0&&(L=L.substring(5));L=L.split("#")[0].split("?")[0];L=L.toLowerCase();L.indexOf("//")==0&&(L=window.location.protocol+L);/^[\w\-]*:\/\//.test(L)||(L=window.location.href);var Z=L.substring(L.indexOf("://")+3),N=Z.indexOf("/");N!=-1&&(Z=Z.substring(0,N));N=L.substring(0,L.indexOf("://"));if(!N)throw Error("qa`"+L);if(N!=="http"&&N!=="https"&&N!=="chrome-extension"&&N!=="moz-extension"&&
N!=="file"&&N!=="android-app"&&N!=="chrome-search"&&N!=="chrome-untrusted"&&N!=="chrome"&&N!=="app"&&N!=="devtools")throw Error("ra`"+N);L="";var S=Z.indexOf(":");if(S!=-1){var u=Z.substring(S+1);Z=Z.substring(0,S);if(N==="http"&&u!=="80"||N==="https"&&u!=="443")L=":"+u}return N+"://"+Z+L};var VUM=function(L,Z,N){var S=String(_.iH.location.href);return S&&L&&Z?[Z,W85(Oh5(S),L,N||null)].join(" "):null},W85=function(L,Z,N){var S=[],u=[];
if((Array.isArray(N)?2:1)==1)return u=[Z,L],_.SZ(S,function(V){u.push(V)}),bhN(u.join(" "));
var T=[],W=[];_.SZ(N,function(V){W.push(V.key);T.push(V.value)});
N=Math.floor((new Date).getTime()/1E3);u=T.length==0?[N,Z,L]:[T.join(":"),N,Z,L];_.SZ(S,function(V){u.push(V)});
L=bhN(u.join(" "));L=[N,L];W.length==0||L.push(W.join(""));return L.join("_")},bhN=function(L){var Z=L5h();
Z.update(L);return Z.digestString().toLowerCase()};var O8=function(L){this.JSC$9617_document_=L||{cookie:""}},MUI;
_.t=O8.prototype;_.t.isEnabled=function(){if(!_.iH.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};
_.t.set=function(L,Z,N){var S=!1;if(typeof N==="object"){var u=N.sameSite;S=N.secure||!1;var T=N.domain||void 0;var W=N.path||void 0;var V=N.maxAge}if(/[;=\s]/.test(L))throw Error("sa`"+L);if(/[;\r\n]/.test(Z))throw Error("ta`"+Z);V===void 0&&(V=-1);N=T?";domain="+T:"";W=W?";path="+W:"";S=S?";secure":"";V=V<0?"":V==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+V*1E3)).toUTCString();this.JSC$9617_document_.cookie=L+"="+Z+N+W+V+S+(u!=null?";samesite="+u:"")};
_.t.get=function(L,Z){for(var N=L+"=",S=(this.JSC$9617_document_.cookie||"").split(";"),u=0,T;u<S.length;u++){T=gP(S[u]);if(T.lastIndexOf(N,0)==0)return T.slice(N.length);if(T==L)return""}return Z};
_.t.remove=function(L,Z,N){var S=this.containsKey(L);this.set(L,"",{maxAge:0,path:Z,domain:N});return S};
_.t.getKeys=function(){return MUI(this).keys};
_.t.getValues=function(){return MUI(this).values};
_.t.isEmpty=function(){return!this.JSC$9617_document_.cookie};
_.t.getCount=function(){return this.JSC$9617_document_.cookie?(this.JSC$9617_document_.cookie||"").split(";").length:0};
_.t.containsKey=function(L){return this.get(L)!==void 0};
_.t.containsValue=function(L){for(var Z=MUI(this).values,N=0;N<Z.length;N++)if(Z[N]==L)return!0;return!1};
_.t.clear=function(){for(var L=MUI(this).keys,Z=L.length-1;Z>=0;Z--)this.remove(L[Z])};
MUI=function(L){L=(L.JSC$9617_document_.cookie||"").split(";");for(var Z=[],N=[],S,u,T=0;T<L.length;T++)u=gP(L[T]),S=u.indexOf("="),S==-1?(Z.push(""),N.push(u)):(Z.push(u.substring(0,S)),N.push(u.substring(S+1)));return{keys:Z,values:N}};
_.eZ=new O8(typeof document=="undefined"?null:document);var C0H,gRV;C0H=function(){var L=_.iH.__SAPISID||_.iH.__APISID||_.iH.__3PSAPISID||_.iH.__1PSAPISID||_.iH.__OVERRIDE_SID;if(L)return!0;typeof document!=="undefined"&&(L=new O8(document),L=L.get("SAPISID")||L.get("APISID")||L.get("__Secure-3PAPISID")||L.get("__Secure-1PAPISID"));return!!L};
gRV=function(L,Z,N,S){(L=_.iH[L])||typeof document==="undefined"||(L=(new O8(document)).get(Z));return L?VUM(L,N,S):null};
_.$dt=function(L){var Z=Oh5(_.iH==null?void 0:_.iH.location.href),N=[];if(C0H()){Z=Z.indexOf("https:")==0||Z.indexOf("chrome-extension:")==0||Z.indexOf("chrome-untrusted://new-tab-page")==0||Z.indexOf("moz-extension:")==0;var S=Z?_.iH.__SAPISID:_.iH.__APISID;S||typeof document==="undefined"||(S=new O8(document),S=S.get(Z?"SAPISID":"APISID")||S.get("__Secure-3PAPISID"));(S=S?VUM(S,Z?"SAPISIDHASH":"APISIDHASH",L):null)&&N.push(S);Z&&((Z=gRV("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",L))&&N.push(Z),
(L=gRV("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",L))&&N.push(L))}return N.length==0?null:N.join(" ")};var Gst=function(){this.minSize=1024};
Gst.prototype.compress=function(L){var Z,N,S,u;return _.b(function(T){switch(T.nextAddress){case 1:return Z=new CompressionStream("gzip"),N=(new Response(Z.readable)).arrayBuffer(),S=Z.writable.getWriter(),T.yield(S.write((new TextEncoder).encode(L)),2);case 2:return T.yield(S.close(),3);case 3:return u=Uint8Array,T.yield(N,4);case 4:return T.return(new u(T.yieldResult))}})};
Gst.prototype.isSupported=function(L){return L<this.minSize?!1:typeof CompressionStream!=="undefined"};var F8t=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(F8t,_.On);var Wn=function(L,Z){this.intervalMs=L;this.callback=Z;this.enabled=!1;this.nowFn=function(){return _.rc()};
this.lastTimeMs=this.nowFn()};
Wn.prototype.setInterval=function(L){this.intervalMs=L;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Wn.prototype.start=function(){var L=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){L.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Wn.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Wn.prototype.tick=function(){var L=this;if(this.enabled){var Z=Math.max(this.nowFn()-this.lastTimeMs,0);Z<this.intervalMs*.8?this.timer=setTimeout(function(){L.tick()},this.intervalMs-Z):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var $$L=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f($$L,_.On);var D$5=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(D$5,_.On);var l4q=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(l4q,_.On);l4q.prototype.getTransmissionType=function(){return _.oA(this,1)};var iZH=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(iZH,_.On);var Vz=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Vz,_.On);var Srh=function(L){gK(u2s,1,L)};
Vz.prototype.getModel=function(){return _.va(this,6)};
var vRY=_.R7(Vz);var oR0=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(oR0,_.On);var ZZP=["platform","platformVersion","architecture","model","uaFullVersion"],u2s=new Vz,Nv0=null;var bl=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(bl,_.On);var R0I=function(L){return _.vx(L,1,1)};var cWq=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L,4)};
_.f(cWq,_.On);_.Mb=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L,36)};
_.f(_.Mb,_.On);_.Mb.prototype.getExperimentIds=function(){return _.lp(this,F8t,16)};var nR0=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L,19)};
_.f(nR0,_.On);nR0.prototype.setLogSource=function(L){return _.vx(this,2,L)};
nR0.prototype.setScheduler=function(L){return _.vx(this,10,L)};var f4L=function(L,Z){this.isServiceWorkerScope=Z=Z===void 0?!1:Z;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new nR0;Number.isInteger(L)&&this.logRequest.setLogSource(L);Z||(this.locale=document.documentElement.getAttribute("lang"));K8Y(this,new bl)};
f4L.prototype.setLogSource=function(L){this.logRequest.setLogSource(L);return this};
var K8Y=function(L,Z){_.fG(L.logRequest,1,Z);_.oA(Z,1)||R0I(Z);L.isServiceWorkerScope||(Z=gg(L),_.va(Z,5)||_.dF(Z,5,L.locale));L.uach&&(Z=gg(L),_.lp(Z,Vz,9)||_.fG(Z,9,L.uach))},ksI=function(L,Z){L.transmissionType=Z},yWQ=function(L){var Z=Z===void 0?ZZP:Z;
var N=L.isServiceWorkerScope?void 0:mt();N?TvH(N,Z).then(function(S){L.uach=vRY(S!=null?S:"[]");S=gg(L);_.fG(S,9,L.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},gg=function(L){var Z=_.lp(L.logRequest,bl,1);
Z||(Z=new bl,K8Y(L,Z));L=Z;Z=_.lp(L,oR0,11);Z||(Z=new oR0,_.fG(L,11,Z));return Z};
f4L.prototype.build=function(L,Z,N,S,u,T){Z=Z===void 0?0:Z;N=N===void 0?0:N;S=S===void 0?null:S;u=u===void 0?0:u;T=T===void 0?0:T;if(!this.isServiceWorkerScope){var W=gg(this);var V=new l4q;V=_.vx(V,1,this.transmissionType);V=_.lX(V,2,this.isFinal);N=_.kT(V,3,N>0?N:void 0);N=_.kT(N,4,u>0?u:void 0);N=_.kT(N,5,T>0?T:void 0);u=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;T=u[_.ts]|0;N=cl(N,T)?N:wwh(N,u,T)?y0w(N,u):new N.constructor(mk(u,T,!0));_.fG(W,10,N)}W=this.logRequest.clone();N=Date.now().toString();
W=_.oZ(W,4,Gg(N));L=L.slice();L=gK(W,3,L);S&&(W=new $$L,S=_.kT(W,13,S),W=new D$5,S=_.fG(W,2,S),W=new cWq,S=_.fG(W,1,S),S=_.vx(S,2,9),_.fG(L,18,S));Z&&_.aW(L,14,Z);return L};v4.prototype.currBackoffCount_=0;v4.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
v4.prototype.getValue=function(){return this.currValue_};
var wEQ=function(L){L.currBaseValue_=Math.min(L.maxValue_,L.currBaseValue_*L.backoffFactor_);L.currValue_=Math.min(L.maxValue_,L.currBaseValue_+(L.randomFactor_?Math.round(L.randomFactor_*(Math.random()-.5)*2*L.currBaseValue_):0));L.currBackoffCount_++};var n5q=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L,8)};
_.f(n5q,_.On);var U$t=_.R7(n5q);var Kks=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Kks,_.On);var Gk;Gk=new fPQ;var FR=function(L){_.ag.call(this);var Z=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9695_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$9695_sendBeaconApiEnabled=!1;this.logSource=L.logSource;this.getAuthHeaderValue=
L.getAuthHeaderValue||function(){};
this.logRequestBuilder=new f4L(L.logSource,L.isServiceWorkerScope);this.network=L.network||null;this.productID=L.productID||null;this.bufferSize=1E3;this.clearcutUrl=L.urlOverride||null;this.sessionIndex=L.sessionIndex||null;this.disableAutomaticFlush=L.disableAutomaticFlush||!1;this.withCredentials=!L.disableWithCredentials;this.isServiceWorkerScope=L.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!mt()&&!!mt().navigator&&mt().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(YKq())).searchParams&&!!(new URL(YKq())).searchParams.set;var N=R0I(new bl);K8Y(this.logRequestBuilder,N);this.flushBackoff=new v4(1E4,3E5,.1);L=e0O(this,L.backgroundJobDeferrer);this.JSC$9695_flushTimer=new Wn(this.flushBackoff.getValue(),L);this.backupTimer=new Wn(6E5,L);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){I4M(Z);
var S;(S=Z.metalogService)==null||S.flush()}}),document.addEventListener("pagehide",function(){I4M(Z);
var S;(S=Z.metalogService)==null||S.flush()}))};
_.f(FR,_.ag);var e0O=function(L,Z){return L.isBrowserSupported?Z?function(){Z().then(function(){L.flush()})}:function(){L.flush()}:function(){}};
FR.prototype.disposeInternal=function(){I4M(this);this.JSC$9695_flushTimer.stop();this.backupTimer.stop();_.ag.prototype.disposeInternal.call(this)};
var d$M=function(L){L.clearcutUrl||(L.clearcutUrl=YKq());try{return(new URL(L.clearcutUrl)).toString()}catch(Z){return(new URL(L.clearcutUrl,mt().location.origin)).toString()}};
FR.prototype.dispatch=function(L){if(L instanceof _.Mb)this.log(L);else try{var Z=new _.Mb,N=L.serialize();var S=_.dF(Z,8,N);this.log(S)}catch(u){$B(this,4,1)}};
var $B=function(L,Z,N){L.metalogService&&L.metalogService.increment(Z,N)};
FR.prototype.log=function(L){$B(this,2,1);if(this.isBrowserSupported){L=L.clone();var Z=this.sequencePosition++;L=_.aW(L,21,Z);this.componentId&&_.dF(L,26,this.componentId);Z=L;if(sOA(_.t5(Z,1))==null){var N=Date.now();N=Number.isFinite(N)?N.toString():"0";_.oZ(Z,1,Gg(N))}_.hQH(_.t5(Z,15))!=null||_.aW(Z,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(N=this.experimentIds.clone(),_.fG(Z,16,N));$B(this,1,1);Z=this.pendingEvents.length-this.bufferSize+1;Z>0&&(this.pendingEvents.splice(0,Z),
this.numLogsDroppedSinceLastFlush+=Z,$B(this,3,Z));this.pendingEvents.push(L);this.disableAutomaticFlush||this.JSC$9695_flushTimer.enabled||this.JSC$9695_flushTimer.start()}};
FR.prototype.flush=function(L,Z){var N=this;if(this.pendingEvents.length===0)L&&L();else if(this.JSC$9695_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,a4q(this);else{var S=Date.now();if(this.noFlushUntilMs>S&&this.startWaitingMs<S)Z&&Z("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?ksI(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var u=this.pendingEvents.length,
T=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),W=this.getAuthHeaderValue();if(W&&this.lastFailedAuth===W)Z&&Z("stale-auth-token");else{this.pendingEvents=[];this.JSC$9695_flushTimer.enabled&&this.JSC$9695_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;S=T.serialize();var V;this.JSC$9695_compressor&&this.JSC$9695_compressor.isSupported(S.length)&&
(V=this.JSC$9695_compressor.compress(S));var M=h0l(this,S,W),G=function(v){N.flushBackoff.reset();N.JSC$9695_flushTimer.setInterval(N.flushBackoff.getValue());if(v){var R=null;try{var K=JSON.stringify(JSON.parse(v.replace(")]}'\n","")));R=U$t(K)}catch(U){}R&&(v=Number(Di(R,1,_.jt("-1"))),v>0&&(N.startWaitingMs=Date.now(),N.noFlushUntilMs=N.startWaitingMs+v),i8f(R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Gk.fieldIndex),Ny0(R,Gk.fieldIndex),R=Gk.ctor?Gk.getExtensionFn(R,Gk.ctor,Gk.fieldIndex,
Gk.JSC$8875_hasMessageId):Gk.getExtensionFn(R,Gk.fieldIndex,null,Gk.JSC$8875_hasMessageId),R=R===null?void 0:R)&&(R=_.G3(R,1,-1),R!==-1&&(N.flushBackoff=new v4(R<1?1:R,3E5,.1),N.JSC$9695_flushTimer.setInterval(N.flushBackoff.getValue())))}L&&L();N.numRetriesSinceLastSuccessfulFlush=0},D=function(v,R){var K=_.MG(T,_.Mb,3,_.gZ());
var U=Number(Di(T,14));wEQ(N.flushBackoff);N.JSC$9695_flushTimer.setInterval(N.flushBackoff.getValue());v===401&&W&&(N.lastFailedAuth=W);U&&(N.numLogsDroppedSinceLastFlush+=U);R===void 0&&(R=N.isRetryable(v));R&&(N.pendingEvents=K.concat(N.pendingEvents),N.disableAutomaticFlush||N.JSC$9695_flushTimer.enabled||N.JSC$9695_flushTimer.start());$B(N,7,1);Z&&Z("net-send-failed",v);++N.numRetriesSinceLastSuccessfulFlush},l=function(){N.network&&N.network.send(M,G,D)};
V?V.then(function(v){$B(N,5,u);M.requestHeaders["Content-Encoding"]="gzip";M.requestHeaders["Content-Type"]="application/binary";M.body=v;M.bodyType=2;l()},function(){$B(N,6,u);
l()}):l()}}}};
var h0l=function(L,Z,N){N=N===void 0?null:N;var S=S===void 0?L.withCredentials:S;var u={},T=new URL(d$M(L));N&&(u.Authorization=N);L.sessionIndex&&(u["X-Goog-AuthUser"]=L.sessionIndex,T.searchParams.set("authuser",L.sessionIndex));L.pageId&&(Object.defineProperty(u,"X-Goog-PageId",{value:L.pageId}),T.searchParams.set("pageId",L.pageId));return{url:T.toString(),body:Z,bodyType:1,requestHeaders:u,requestType:"POST",withCredentials:S,timeoutMillis:L.timeoutMillis}},I4M=function(L){L.logRequestBuilder.isFinal=
!0;
L.flush();L.logRequestBuilder.isFinal=!1},a4q=function(L){sYt(L,function(Z,N){Z=new URL(Z);
Z.searchParams.set("format","json");var S=!1;try{S=mt().navigator.sendBeacon(Z.toString(),N.serialize())}catch(u){}S||(L.isSendBeaconSupported=!1);return S})},sYt=function(L,Z){if(L.pendingEvents.length!==0){var N=new URL(d$M(L));
N.searchParams.delete("format");var S=L.getAuthHeaderValue();S&&N.searchParams.set("auth",S);N.searchParams.set("authuser",L.sessionIndex||"0");for(S=0;S<10&&L.pendingEvents.length;++S){var u=L.pendingEvents.slice(0,32),T=L.logRequestBuilder.build(u,L.numLogsDroppedSinceLastFlush,L.numRetriesSinceLastSuccessfulFlush,L.productID,L.persistedLogRecoveredCount,L.persistedLogExpiredCount);if(!Z(N.toString(),T)){++L.numRetriesSinceLastSuccessfulFlush;break}L.numLogsDroppedSinceLastFlush=0;L.numRetriesSinceLastSuccessfulFlush=
0;L.persistedLogRecoveredCount=0;L.persistedLogExpiredCount=0;L.pendingEvents=L.pendingEvents.slice(u.length)}L.JSC$9695_flushTimer.enabled&&L.JSC$9695_flushTimer.stop()}};
FR.prototype.isRetryable=function(L){return 500<=L&&L<600||L===401||L===0};
var YKq=function(){return"https://play.google.com/log?format=json&hasfast=true"};var jYN=function(){this.abortSupported=typeof AbortController!=="undefined"};
jYN.prototype.send=function(L,Z,N){var S=this,u,T,W,V,M,G,D,l,v,R;return _.b(function(K){switch(K.nextAddress){case 1:return T=(u=S.abortSupported?new AbortController:void 0)?setTimeout(function(){u.abort()},L.timeoutMillis):void 0,_.RS(K,2,3),W=Object.assign({},{method:L.requestType,
headers:Object.assign({},L.requestHeaders)},L.body&&{body:L.body},L.withCredentials&&{credentials:"include"},{signal:L.timeoutMillis&&u?u.signal:null}),K.yield(fetch(L.url,W),5);case 5:V=K.yieldResult;if(V.status!==200){(M=N)==null||M(V.status);K.jumpTo(3);break}if((G=Z)==null){K.jumpTo(7);break}return K.yield(V.text(),8);case 8:G(K.yieldResult);case 7:case 3:_.ns(K);clearTimeout(T);_.kS(K,0);break;case 2:D=_.yd(K);switch((l=D)==null?void 0:l.name){case "AbortError":(v=N)==null||v(408);break;default:(R=
N)==null||R(400)}K.jumpTo(3)}})};
jYN.prototype.getTransmissionType=function(){return 4};_.Rg=function(L,Z){Z=Z===void 0?"0":Z;_.ag.call(this);this.logSource=L;this.sessionIndex=Z;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9713_clearExperimentIds=this.productID=null;this.JSC$9713_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.f(_.Rg,_.ag);var $uw=function(L,Z){L.buildLabel=Z;return L},F5x=function(L,Z){L.network=Z;
return L},lx_=function(L,Z){L.JSC$9713_clearExperimentIds=Z},GRF=function(L){L.JSC$9713_sendBeaconApiEnabled=!0;
return L};
_.Rg.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.Rg.prototype.build=function(){this.network||(this.network=new jYN);var L=new FR({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.$dt,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.Ky(this,L);if(this.buildLabel){var Z=this.buildLabel,N=
gg(L.logRequestBuilder);_.dF(N,7,Z)}L.JSC$9695_compressor=new Gst;this.componentId&&(L.componentId=this.componentId);this.productID&&(L.productID=this.productID);this.pageId&&(L.pageId=this.pageId);this.JSC$9713_clearExperimentIds&&((N=this.JSC$9713_clearExperimentIds)?(L.experimentIds||(L.experimentIds=new F8t),Z=L.experimentIds,N=N.serialize(),_.dF(Z,4,N)):L.experimentIds&&_.oZ(L.experimentIds,4));this.JSC$9713_sendBeaconApiEnabled&&(L.JSC$9695_sendBeaconApiEnabled=L.isSendBeaconSupported);yWQ(L.logRequestBuilder);
this.bufferSize&&(L.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(L);return L};var Rlx=function(L,Z,N,S,u,T,W){L=L===void 0?-1:L;Z=Z===void 0?"":Z;N=N===void 0?"":N;S=S===void 0?!1:S;u=u===void 0?"":u;_.ag.call(this);this.logSource=L;this.componentId=Z;T?Z=T:(L=new _.Rg(L,"0"),L.componentId=Z,_.Ky(this,L),N!==""&&(L.destinationUrl=N),S&&(L.serviceWorkerScopeEnabled=!0),u&&$uw(L,u),W&&F5x(L,W),Z=L.build());this.JSC$9717_transport=Z};
_.f(Rlx,_.ag);Rlx.prototype.flush=function(L){L=L||[];if(L.length){for(var Z=new ihO,N=[],S=0;S<L.length;S++){var u=L[S],T=tUh(u);N.push(T);u.clear()}gK(Z,1,N);this.JSC$9717_transport.dispatch(Z);this.JSC$9717_transport.flush()}};var ERM=function(L){this.cellValue=L};var Dw=function(L,Z,N){this.JSC$9722_metricName=L;this.cellType=Z;this.fields=N||[];this.cellMap=new Map},TJV=function(L){return L.fields.map(function(Z){return Z.fieldType})},u50=function(L){return L.fields.map(function(Z){return Z.fieldName})};
_.t=Dw.prototype;_.t.addCell=function(L){var Z=_.CG.apply(1,arguments),N=this.getCells(Z);N?N.push(new ERM(L)):this.JSC$9722_setCell(L,Z)};
_.t.JSC$9722_setCell=function(L){var Z=this.JSC$9722_getKey(_.CG.apply(1,arguments));this.cellMap.set(Z,[new ERM(L)])};
_.t.getCells=function(){var L=this.JSC$9722_getKey(_.CG.apply(0,arguments));return this.cellMap.has(L)?this.cellMap.get(L):void 0};
_.t.getCell=function(){var L=this.getCells(_.CG.apply(0,arguments));return L&&L.length?L[0]:void 0};
_.t.clear=function(){this.cellMap.clear()};
_.t.JSC$9722_getKey=function(){var L=_.CG.apply(0,arguments);return L?L.join(","):"key"};var PIO=function(L,Z){Dw.call(this,L,3,Z)};
_.f(PIO,Dw);PIO.prototype.JSC$9725_incrementCounterBy=function(L){var Z=_.CG.apply(1,arguments),N=0,S=this.getCell(Z);S&&(N=S.cellValue);this.JSC$9722_setCell(N+L,Z)};var pEO=function(L,Z){Dw.call(this,L,2,Z)};
_.f(pEO,Dw);pEO.prototype.record=function(L){this.addCell(L,_.CG.apply(1,arguments))};_.ll=function(L){this.id=L};
_.ll.prototype.toString=function(){return this.id};_.vn=function(L,Z){this.type=L instanceof _.ll?String(L):L;this.currentTarget=this.target=Z;this.defaultPrevented=this.propagationStopped_=!1};
_.vn.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.vn.prototype.preventDefault=function(){this.defaultPrevented=!0};_.o8=function(L,Z){_.vn.call(this,L?L.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;L&&this.init(L,Z)};
_.Qk(_.o8,_.vn);
_.o8.prototype.init=function(L,Z){var N=this.type=L.type,S=L.changedTouches&&L.changedTouches.length?L.changedTouches[0]:null;this.target=L.target||L.srcElement;this.currentTarget=Z;Z=L.relatedTarget;Z||(N=="mouseover"?Z=L.fromElement:N=="mouseout"&&(Z=L.toElement));this.relatedTarget=Z;S?(this.clientX=S.clientX!==void 0?S.clientX:S.pageX,this.clientY=S.clientY!==void 0?S.clientY:S.pageY,this.screenX=S.screenX||0,this.screenY=S.screenY||0):(this.offsetX=_.qH||L.offsetX!==void 0?L.offsetX:L.layerX,
this.offsetY=_.qH||L.offsetY!==void 0?L.offsetY:L.layerY,this.clientX=L.clientX!==void 0?L.clientX:L.pageX,this.clientY=L.clientY!==void 0?L.clientY:L.pageY,this.screenX=L.screenX||0,this.screenY=L.screenY||0);this.button=L.button;this.keyCode=L.keyCode||0;this.key=L.key||"";this.charCode=L.charCode||(N=="keypress"?L.keyCode:0);this.ctrlKey=L.ctrlKey;this.altKey=L.altKey;this.shiftKey=L.shiftKey;this.metaKey=L.metaKey;this.pointerId=L.pointerId||0;this.pointerType=L.pointerType;this.state=L.state;
this.timeStamp=L.timeStamp;this.event_=L;L.defaultPrevented&&_.o8.superClass_.preventDefault.call(this)};
_.o8.prototype.isButton=function(L){return this.event_.button==L};
_.o8.prototype.stopPropagation=function(){_.o8.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.o8.prototype.preventDefault=function(){_.o8.superClass_.preventDefault.call(this);var L=this.event_;L.preventDefault?L.preventDefault():L.returnValue=!1};var z0I="closure_listenable_"+(Math.random()*1E6|0),R8=function(L){return!(!L||!L[z0I])};var m$M=0;var JWI=function(L,Z,N,S,u){this.listener=L;this.proxy=null;this.src=Z;this.type=N;this.capture=!!S;this.handler=u;this.key=++m$M;this.removed=this.callOnce=!1},CIl=function(L){L.removed=!0;
L.listener=null;L.proxy=null;L.src=null;L.handler=null};og.prototype.add=function(L,Z,N,S,u){var T=L.toString();L=this.listeners[T];L||(L=this.listeners[T]=[],this.typeCount_++);var W=rWM(L,Z,S,u);W>-1?(Z=L[W],N||(Z.callOnce=!1)):(Z=new JWI(Z,this.src,T,!!S,u),Z.callOnce=N,L.push(Z));return Z};
og.prototype.remove=function(L,Z,N,S){L=L.toString();if(!(L in this.listeners))return!1;var u=this.listeners[L];Z=rWM(u,Z,N,S);return Z>-1?(CIl(u[Z]),_.eAs(u,Z),u.length==0&&(delete this.listeners[L],this.typeCount_--),!0):!1};
var QYQ=function(L,Z){var N=Z.type;if(!(N in L.listeners))return!1;var S=_.zB(L.listeners[N],Z);S&&(CIl(Z),L.listeners[N].length==0&&(delete L.listeners[N],L.typeCount_--));return S};
og.prototype.removeAll=function(L){L=L&&L.toString();var Z=0,N;for(N in this.listeners)if(!L||N==L){for(var S=this.listeners[N],u=0;u<S.length;u++)++Z,CIl(S[u]);delete this.listeners[N];this.typeCount_--}return Z};
og.prototype.getListener=function(L,Z,N,S){L=this.listeners[L.toString()];var u=-1;L&&(u=rWM(L,Z,N,S));return u>-1?L[u]:null};
og.prototype.hasListener=function(L,Z){var N=L!==void 0,S=N?L.toString():"",u=Z!==void 0;return _.Py.some(this.listeners,function(T){for(var W=0;W<T.length;++W)if(!(N&&T[W].type!=S||u&&T[W].capture!=Z))return!0;return!1})};
var rWM=function(L,Z,N,S){for(var u=0;u<L.length;++u){var T=L[u];if(!T.removed&&T.listener==Z&&T.capture==!!N&&T.handler==S)return u}return-1};var XEV,AWh,HhY,x$l,qKY,VV,bn,Nj0,L0s,ZnI,cn,SMM,BJ0;XEV="closure_lm_"+(Math.random()*1E6|0);AWh={};HhY=0;_.Gl=function(L,Z,N,S,u){if(S&&S.once)return VV(L,Z,N,S,u);if(Array.isArray(Z)){for(var T=0;T<Z.length;T++)_.Gl(L,Z[T],N,S,u);return null}N=BJ0(N);return R8(L)?L.listen(Z,N,_.Q_(S)?!!S.capture:!!S,u):x$l(L,Z,N,!1,S,u)};
x$l=function(L,Z,N,S,u,T){if(!Z)throw Error("va");var W=_.Q_(u)?!!u.capture:!!u,V=cn(L);V||(L[XEV]=V=new og(L));N=V.add(Z,N,S,W,T);if(N.proxy)return N;S=qKY();N.proxy=S;S.src=L;S.listener=N;if(L.addEventListener)_.LYL||(u=W),u===void 0&&(u=!1),L.addEventListener(Z.toString(),S,u);else if(L.attachEvent)L.attachEvent(L0s(Z.toString()),S);else if(L.addListener&&L.removeListener)L.addListener(S);else throw Error("wa");HhY++;return N};
qKY=function(){var L=ZnI,Z=function(N){return L.call(Z.src,Z.listener,N)};
return Z};
VV=function(L,Z,N,S,u){if(Array.isArray(Z)){for(var T=0;T<Z.length;T++)VV(L,Z[T],N,S,u);return null}N=BJ0(N);return R8(L)?L.listenOnce(Z,N,_.Q_(S)?!!S.capture:!!S,u):x$l(L,Z,N,!0,S,u)};
_.nc=function(L,Z,N,S,u){if(Array.isArray(Z))for(var T=0;T<Z.length;T++)_.nc(L,Z[T],N,S,u);else S=_.Q_(S)?!!S.capture:!!S,N=BJ0(N),R8(L)?L.unlisten(Z,N,S,u):L&&(L=cn(L))&&(Z=L.getListener(Z,N,S,u))&&bn(Z)};
bn=function(L){if(typeof L==="number"||!L||L.removed)return!1;var Z=L.src;if(R8(Z))return QYQ(Z.eventTargetListeners_,L);var N=L.type,S=L.proxy;Z.removeEventListener?Z.removeEventListener(N,S,L.capture):Z.detachEvent?Z.detachEvent(L0s(N),S):Z.addListener&&Z.removeListener&&Z.removeListener(S);HhY--;(N=cn(Z))?(QYQ(N,L),N.typeCount_==0&&(N.src=null,Z[XEV]=null)):CIl(L);return!0};
Nj0=function(L,Z,N,S,u){N=BJ0(N);S=!!S;return R8(L)?L.getListener(Z,N,S,u):L?(L=cn(L))?L.getListener(Z,N,S,u):null:null};
L0s=function(L){return L in AWh?AWh[L]:AWh[L]="on"+L};
ZnI=function(L,Z){if(L.removed)L=!0;else{Z=new _.o8(Z,this);var N=L.listener,S=L.handler||L.src;L.callOnce&&bn(L);L=N.call(S,Z)}return L};
cn=function(L){L=L[XEV];return L instanceof og?L:null};
SMM="__closure_events_fn_"+(Math.random()*1E9>>>0);BJ0=function(L){if(typeof L==="function")return L;L[SMM]||(L[SMM]=function(Z){return L.handleEvent(Z)});
return L[SMM]};_.Kc=function(){_.ag.call(this);this.eventTargetListeners_=new og(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Qk(_.Kc,_.ag);_.Kc.prototype[z0I]=!0;_.t=_.Kc.prototype;_.t.setParentEventTarget=function(L){this.parentEventTarget_=L};
_.t.addEventListener=function(L,Z,N,S){_.Gl(this,L,Z,N,S)};
_.t.removeEventListener=function(L,Z,N,S){_.nc(this,L,Z,N,S)};
_.t.dispatchEvent=function(L){var Z,N=this.parentEventTarget_;if(N)for(Z=[];N;N=N.parentEventTarget_)Z.push(N);N=this.actualEventTarget_;var S=L.type||L;if(typeof L==="string")L=new _.vn(L,N);else if(L instanceof _.vn)L.target=L.target||N;else{var u=L;L=new _.vn(S,N);_.Py.extend(L,u)}u=!0;var T;if(Z)for(T=Z.length-1;!L.propagationStopped_&&T>=0;T--){var W=L.currentTarget=Z[T];u=inY(W,S,!0,L)&&u}L.propagationStopped_||(W=L.currentTarget=N,u=inY(W,S,!0,L)&&u,L.propagationStopped_||(u=inY(W,S,!1,L)&&
u));if(Z)for(T=0;!L.propagationStopped_&&T<Z.length;T++)W=L.currentTarget=Z[T],u=inY(W,S,!1,L)&&u;return u};
_.t.disposeInternal=function(){_.Kc.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.t.listen=function(L,Z,N,S){return this.eventTargetListeners_.add(String(L),Z,!1,N,S)};
_.t.listenOnce=function(L,Z,N,S){return this.eventTargetListeners_.add(String(L),Z,!0,N,S)};
_.t.unlisten=function(L,Z,N,S){return this.eventTargetListeners_.remove(String(L),Z,N,S)};
_.t.removeAllListeners=function(L){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(L):0};
var inY=function(L,Z,N,S){Z=L.eventTargetListeners_.listeners[String(Z)];if(!Z)return!0;Z=Z.concat();for(var u=!0,T=0;T<Z.length;++T){var W=Z[T];if(W&&!W.removed&&W.capture==N){var V=W.listener,M=W.handler||W.src;W.callOnce&&QYQ(L.eventTargetListeners_,W);u=V.call(M,S)!==!1&&u}}return u&&!S.defaultPrevented};
_.Kc.prototype.getListener=function(L,Z,N,S){return this.eventTargetListeners_.getListener(String(L),Z,N,S)};
_.Kc.prototype.hasListener=function(L,Z){return this.eventTargetListeners_.hasListener(L!==void 0?String(L):void 0,Z)};var fc=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(L){return L&&AsyncContext.Snapshot.wrap(L)}:function(L){return L};var u70=function(L,Z){this.create_=L;this.reset_=Z;this.occupants_=0;this.JSC$9757_head_=null};
u70.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var L=this.JSC$9757_head_;this.JSC$9757_head_=L.next;L.next=null}else L=this.create_();return L};
u70.prototype.put=function(L){this.reset_(L);this.occupants_<100&&(this.occupants_++,L.next=this.JSC$9757_head_,this.JSC$9757_head_=L)};var TjO=function(){this.workTail_=this.workHead_=null};
TjO.prototype.add=function(L,Z){var N=OZ_.get();N.set(L,Z);this.workTail_?this.workTail_.next=N:this.workHead_=N;this.workTail_=N};
TjO.prototype.remove=function(){var L=null;this.workHead_&&(L=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),L.next=null);return L};
var OZ_=new u70(function(){return new tuN},function(L){return L.reset()}),tuN=function(){this.next=this.scope=this.fn=null};
tuN.prototype.set=function(L,Z){this.fn=L;this.scope=Z;this.next=null};
tuN.prototype.reset=function(){this.next=this.scope=this.fn=null};var On0,W50,tZA,W0N;W50=!1;tZA=new TjO;_.kB=function(L,Z){On0||W0N();W50||(On0(),W50=!0);tZA.add(L,Z)};
W0N=function(){var L=Promise.resolve(void 0);On0=function(){L.then(VZx)}};var VuV=function(L){L.prototype.$goog_Thenable=!0},bnL=function(L){if(!L)return!1;
try{return!!L.$goog_Thenable}catch(Z){return!1}};var MuO,g_h,GpV,$TV,DTL,l80,chs,f8O,UTY,yhs,W$_;_.kE=function(L,Z){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(L!=_.on)try{var N=this;L.call(Z,function(S){N.resolve_(2,S)},function(S){N.resolve_(3,S)})}catch(S){this.resolve_(3,S)}};
MuO=function(){this.next=this.context=this.JSC$9768_onRejected=this.JSC$9768_onFulfilled=this.child=null;this.always=!1};
MuO.prototype.reset=function(){this.context=this.JSC$9768_onRejected=this.JSC$9768_onFulfilled=this.child=null;this.always=!1};
g_h=new u70(function(){return new MuO},function(L){L.reset()});
GpV=function(L,Z,N){var S=g_h.get();S.JSC$9768_onFulfilled=L;S.JSC$9768_onRejected=Z;S.context=N;return S};
_.xP=function(L){if(L instanceof _.kE)return L;var Z=new _.kE(_.on);Z.resolve_(2,L);return Z};
_.$N=function(L){return new _.kE(function(Z,N){N(L)})};
$TV=function(L,Z,N){F0Q(L,Z,N,null)||_.kB(_.T6(Z,L))};
_.yz=function(L){return new _.kE(function(Z,N){var S=L.length,u=[];if(S)for(var T=function(G,D){S--;u[G]=D;S==0&&Z(u)},W=function(G){N(G)},V,M=0;M<L.length;M++)V=L[M],$TV(V,_.T6(T,M),W);
else Z(u)})};
DTL=function(L){return new _.kE(function(Z){var N=L.length,S=[];if(N)for(var u=function(V,M,G){N--;S[V]=M?{fulfilled:!0,value:G}:{fulfilled:!1,reason:G};N==0&&Z(S)},T,W=0;W<L.length;W++)T=L[W],$TV(T,_.T6(u,W,!0),_.T6(u,W,!1));
else Z(S)})};
l80=function(L){return new _.kE(function(Z,N){var S=L.length,u=[];if(S)for(var T=function(G){Z(G)},W=function(G,D){S--;
u[G]=D;S==0&&N(u)},V,M=0;M<L.length;M++)V=L[M],$TV(V,T,_.T6(W,M));
else Z(void 0)})};
_.hS=function(){var L,Z,N=new _.kE(function(S,u){L=S;Z=u});
return new v_N(N,L,Z)};
_.kE.prototype.then=function(L,Z,N){return o_h(this,fc(typeof L==="function"?L:null),fc(typeof Z==="function"?Z:null),N)};
VuV(_.kE);chs=function(L,Z,N,S){RaM(L,GpV(Z||_.on,N||null,S))};
_.wg=function(L,Z){Z=fc(Z);Z=GpV(Z,Z);Z.always=!0;RaM(L,Z);return L};
_.kE.prototype.finally=function(L){var Z=this;L=fc(L);return new _.kE(function(N,S){chs(Z,function(u){L();N(u)},function(u){L();
S(u)})})};
_.kE.prototype.thenCatch=function(L,Z){return o_h(this,null,fc(L),Z)};
_.kE.prototype.catch=_.kE.prototype.thenCatch;_.kE.prototype.cancel=function(L){if(this.state_==0){var Z=new _.ko(L);_.kB(function(){n_q(this,Z)},this)}};
var n_q=function(L,Z){if(L.state_==0)if(L.parent_){var N=L.parent_;if(N.callbackEntries_){for(var S=0,u=null,T=null,W=N.callbackEntries_;W&&(W.always||(S++,W.child==L&&(u=W),!(u&&S>1)));W=W.next)u||(T=W);u&&(N.state_==0&&S==1?n_q(N,Z):(T?(S=T,S.next==N.callbackEntriesTail_&&(N.callbackEntriesTail_=S),S.next=S.next.next):K05(N),f8O(N,u,3,Z)))}L.parent_=null}else L.resolve_(3,Z)},RaM=function(L,Z){L.callbackEntries_||L.state_!=2&&L.state_!=3||kpI(L);
L.callbackEntriesTail_?L.callbackEntriesTail_.next=Z:L.callbackEntries_=Z;L.callbackEntriesTail_=Z},o_h=function(L,Z,N,S){var u=GpV(null,null,null);
u.child=new _.kE(function(T,W){u.JSC$9768_onFulfilled=Z?function(V){try{var M=Z.call(S,V);T(M)}catch(G){W(G)}}:T;
u.JSC$9768_onRejected=N?function(V){try{var M=N.call(S,V);M===void 0&&V instanceof _.ko?W(V):T(M)}catch(G){W(G)}}:W});
u.child.parent_=L;RaM(L,u);return u.child};
_.kE.prototype.unblockAndFulfill_=function(L){this.state_=0;this.resolve_(2,L)};
_.kE.prototype.unblockAndReject_=function(L){this.state_=0;this.resolve_(3,L)};
_.kE.prototype.resolve_=function(L,Z){this.state_==0&&(this===Z&&(L=3,Z=new TypeError("xa")),this.state_=1,F0Q(Z,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=Z,this.state_=L,this.parent_=null,kpI(this),L!=3||Z instanceof _.ko||yhs(this,Z)))};
var F0Q=function(L,Z,N,S){if(L instanceof _.kE)return chs(L,Z,N,S),!0;if(bnL(L))return L.then(Z,N,S),!0;if(_.Q_(L))try{var u=L.then;if(typeof u==="function")return w8O(L,u,Z,N,S),!0}catch(T){return N.call(S,T),!0}return!1},w8O=function(L,Z,N,S,u){var T=!1,W=function(M){T||(T=!0,N.call(u,M))},V=function(M){T||(T=!0,S.call(u,M))};
try{Z.call(L,W,V)}catch(M){V(M)}},kpI=function(L){L.executing_||(L.executing_=!0,_.kB(L.executeCallbacks_,L))},K05=function(L){var Z=null;
L.callbackEntries_&&(Z=L.callbackEntries_,L.callbackEntries_=Z.next,Z.next=null);L.callbackEntries_||(L.callbackEntriesTail_=null);return Z};
_.kE.prototype.executeCallbacks_=function(){for(var L;L=K05(this);)f8O(this,L,this.state_,this.result_);this.executing_=!1};
f8O=function(L,Z,N,S){if(N==3&&Z.JSC$9768_onRejected&&!Z.always)for(;L&&L.hadUnhandledRejection_;L=L.parent_)L.hadUnhandledRejection_=!1;if(Z.child)Z.child.parent_=null,UTY(Z,N,S);else try{Z.always?Z.JSC$9768_onFulfilled.call(Z.context):UTY(Z,N,S)}catch(u){W$_.call(null,u)}g_h.put(Z)};
UTY=function(L,Z,N){Z==2?L.JSC$9768_onFulfilled.call(L.context,N):L.JSC$9768_onRejected&&L.JSC$9768_onRejected.call(L.context,N)};
yhs=function(L,Z){L.hadUnhandledRejection_=!0;_.kB(function(){L.hadUnhandledRejection_&&W$_.call(null,Z)})};
W$_=uH;_.ko=function(L){_.NL.call(this,L)};
_.Qk(_.ko,_.NL);_.ko.prototype.name="cancel";var v_N=function(L,Z,N){this.promise=L;this.resolve=Z;this.reject=N};var U8;_.vX=function(L,Z){_.Kc.call(this);this.JSC$9780_interval_=L||1;this.timerObject_=Z||_.iH;this.boundTick_=(0,_.hr)(this.tick_,this);this.last_=_.rc()};
_.Qk(_.vX,_.Kc);_.t=_.vX.prototype;_.t.enabled=!1;_.t.JSC$9782_timer_=null;_.t.setInterval=function(L){this.JSC$9780_interval_=L;this.JSC$9782_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9782_timer_&&this.stop()};
_.t.tick_=function(){if(this.enabled){var L=_.rc()-this.last_;L>0&&L<this.JSC$9780_interval_*.8?this.JSC$9782_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9780_interval_-L):(this.JSC$9782_timer_&&(this.timerObject_.clearTimeout(this.JSC$9782_timer_),this.JSC$9782_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.t.start=function(){this.enabled=!0;this.JSC$9782_timer_||(this.JSC$9782_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9780_interval_),this.last_=_.rc())};
_.t.stop=function(){this.enabled=!1;this.JSC$9782_timer_&&(this.timerObject_.clearTimeout(this.JSC$9782_timer_),this.JSC$9782_timer_=null)};
_.t.disposeInternal=function(){_.vX.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
U8=function(L,Z,N){if(typeof L==="function")N&&(L=(0,_.hr)(L,N));else if(L&&typeof L.handleEvent=="function")L=(0,_.hr)(L.handleEvent,L);else throw Error("ya");return Number(Z)>2147483647?-1:_.iH.setTimeout(L,Z||0)};
_.YMt=function(L){var Z=null;return(new _.kE(function(N,S){Z=U8(function(){N(void 0)},L);
Z==-1&&S(Error("za"))})).thenCatch(function(N){_.iH.clearTimeout(Z);
throw N;})};var fy=function(L){_.ag.call(this);this.streamzLogger=L;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9786_flushTimer=new _.vX(this.flushInterval);this.JSC$9786_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.Ky(this,this.JSC$9786_flushTimer)};
_.f(fy,_.ag);fy.prototype.sendIsolatedPayload=function(L){this.shouldSendIsolatedPayload=L;this.invocationLimit=1};
var eat=function(L){L.JSC$9786_flushTimer.enabled||L.JSC$9786_flushTimer.start();L.invocationCount++;L.invocationCount>=L.invocationLimit&&L.snapshotAndFlush()};
fy.prototype.snapshotAndFlush=function(){var L=this.metricMap.values();L=[].concat(_.Pd(L)).filter(function(Z){return Z.cellMap.size});
L.length&&this.streamzLogger.flush(L,this.shouldSendIsolatedPayload);I8q(L);this.invocationCount=0;this.JSC$9786_flushTimer.enabled&&this.JSC$9786_flushTimer.stop()};
fy.prototype.addNewCounter=function(L){var Z=_.CG.apply(1,arguments);this.metricMap.has(L)||this.metricMap.set(L,new PIO(L,Z))};
fy.prototype.addNewEventMetric=function(L){var Z=_.CG.apply(1,arguments);this.metricMap.has(L)||this.metricMap.set(L,new pEO(L,Z))};
var dTt=function(L,Z){return L.disabledMetrics.has(Z)?void 0:L.metricMap.get(Z)};
fy.prototype.JSC$9786_incrementCounter=function(L){this.JSC$9786_incrementCounterBy(L,1,_.CG.apply(1,arguments))};
fy.prototype.JSC$9786_incrementCounterBy=function(L,Z){var N=_.CG.apply(2,arguments),S=dTt(this,L);S&&S instanceof PIO&&(S.JSC$9725_incrementCounterBy(Z,N),eat(this))};
fy.prototype.record=function(L,Z){var N=_.CG.apply(2,arguments),S=dTt(this,L);S&&S instanceof pEO&&(S.record(Z,N),eat(this))};
var I8q=function(L){for(var Z=0;Z<L.length;Z++)L[Z].clear()};_.YB=function(L,Z,N){N=N===void 0?{}:N;Z=Error.call(this,Z);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.code=L;this.metadata=N;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(_.YB,Error);_.YB.prototype.toString=function(){var L="RpcError("+(MZ0(this.code)||String(this.code))+")";this.message&&(L+=": "+this.message);return L};_.a8L=_.iH.JSON.parse;_.eJ=_.iH.JSON.stringify;_.$P=_.iH.JSON.parse;_.haY=function(L){switch(L){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 slL=function(L){switch(L){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var jl0,E_t=function(){};
_.Qk(E_t,_.gsh);E_t.prototype.createInstance=function(){return new XMLHttpRequest};
jl0=new E_t;_.I8=function(L){_.Kc.call(this);this.headers=new Map;this.JSC$9795_xmlHttpFactory_=L||null;this.JSC$9795_active_=!1;this.JSC$9795_xhr_=null;this.JSC$9795_lastUri_="";this.JSC$9795_lastErrorCode_=0;this.JSC$9795_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9795_timeoutId_=null;this.responseType_="";this.JSC$9795_withCredentials_=!1};
_.Qk(_.I8,_.Kc);var PTt=/^https?$/i,p8Y=["POST","PUT"],zas=[],XLh=function(L,Z,N,S,u,T,W){var V=new _.I8;zas.push(V);Z&&V.listen("complete",Z);V.listenOnce("ready",V.cleanupSend_);T&&(V.timeoutInterval_=Math.max(0,T));W&&(V.JSC$9795_withCredentials_=W);V.send(L,N,S,u)};
_.I8.prototype.cleanupSend_=function(){this.dispose();_.zB(zas,this)};
_.I8.prototype.send=function(L,Z,N,S){if(this.JSC$9795_xhr_)throw Error("Aa`"+this.JSC$9795_lastUri_+"`"+L);Z=Z?Z.toUpperCase():"GET";this.JSC$9795_lastUri_=L;this.JSC$9795_lastError_="";this.JSC$9795_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9795_active_=!0;this.JSC$9795_xhr_=this.createXhr();this.JSC$9795_xhr_.onreadystatechange=fc((0,_.hr)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9795_xhr_.open(Z,String(L),!0),this.inOpen_=!1}catch(W){mTO(this,W);return}L=N||"";N=new Map(this.headers);
if(S)if(Object.getPrototypeOf(S)===Object.prototype)for(var u in S)N.set(u,S[u]);else if(typeof S.keys==="function"&&typeof S.get==="function"){u=_.O(S.keys());for(var T=u.next();!T.done;T=u.next())T=T.value,N.set(T,S.get(T))}else throw Error("Ba`"+String(S));S=Array.from(N.keys()).find(function(W){return"content-type"==W.toLowerCase()});
u=_.iH.FormData&&L instanceof _.iH.FormData;!_.p1(p8Y,Z)||S||u||N.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");Z=_.O(N);for(S=Z.next();!S.done;S=Z.next())N=_.O(S.value),S=N.next().value,N=N.next().value,this.JSC$9795_xhr_.setRequestHeader(S,N);this.responseType_&&(this.JSC$9795_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9795_xhr_&&this.JSC$9795_xhr_.withCredentials!==this.JSC$9795_withCredentials_&&(this.JSC$9795_xhr_.withCredentials=this.JSC$9795_withCredentials_);
try{this.JSC$9795_timeoutId_&&(clearTimeout(this.JSC$9795_timeoutId_),this.JSC$9795_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9795_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9795_xhr_.send(L),this.inSend_=!1}catch(W){mTO(this,W)}};
_.I8.prototype.createXhr=function(){return this.JSC$9795_xmlHttpFactory_?this.JSC$9795_xmlHttpFactory_.createInstance():jl0.createInstance()};
_.I8.prototype.timeout_=function(){typeof SGN!="undefined"&&this.JSC$9795_xhr_&&(this.JSC$9795_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9795_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var mTO=function(L,Z){L.JSC$9795_active_=!1;L.JSC$9795_xhr_&&(L.inAbort_=!0,L.JSC$9795_xhr_.abort(),L.inAbort_=!1);L.JSC$9795_lastError_=Z;L.JSC$9795_lastErrorCode_=5;Jh5(L);CTY(L)},Jh5=function(L){L.errorDispatched_||(L.errorDispatched_=!0,L.dispatchEvent("complete"),L.dispatchEvent("error"))};
_.I8.prototype.abort=function(L){this.JSC$9795_xhr_&&this.JSC$9795_active_&&(this.JSC$9795_active_=!1,this.inAbort_=!0,this.JSC$9795_xhr_.abort(),this.inAbort_=!1,this.JSC$9795_lastErrorCode_=L||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),CTY(this))};
_.I8.prototype.disposeInternal=function(){this.JSC$9795_xhr_&&(this.JSC$9795_active_&&(this.JSC$9795_active_=!1,this.inAbort_=!0,this.JSC$9795_xhr_.abort(),this.inAbort_=!1),CTY(this,!0));_.I8.superClass_.disposeInternal.call(this)};
_.I8.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)rhQ(this);else this.onReadyStateChangeEntryPoint_()};
_.I8.prototype.onReadyStateChangeEntryPoint_=function(){rhQ(this)};
var rhQ=function(L){if(L.JSC$9795_active_&&typeof SGN!="undefined")if(L.inSend_&&_.dg(L)==4)setTimeout(L.onReadyStateChange_.bind(L),0);else if(L.dispatchEvent("readystatechange"),L.isComplete()){L.JSC$9795_active_=!1;try{if(L.isSuccess())L.dispatchEvent("complete"),L.dispatchEvent("success");else{L.JSC$9795_lastErrorCode_=6;try{var Z=_.dg(L)>2?L.JSC$9795_xhr_.statusText:""}catch(N){Z=""}L.JSC$9795_lastError_=Z+" ["+L.getStatus()+"]";Jh5(L)}}finally{CTY(L)}}},CTY=function(L,Z){if(L.JSC$9795_xhr_){L.JSC$9795_timeoutId_&&
(clearTimeout(L.JSC$9795_timeoutId_),L.JSC$9795_timeoutId_=null);
var N=L.JSC$9795_xhr_;L.JSC$9795_xhr_=null;Z||L.dispatchEvent("ready");try{N.onreadystatechange=null}catch(S){}}};
_.I8.prototype.isActive=function(){return!!this.JSC$9795_xhr_};
_.I8.prototype.isComplete=function(){return _.dg(this)==4};
_.I8.prototype.isSuccess=function(){var L=this.getStatus(),Z;if(!(Z=slL(L))){if(L=L===0)L=BF0(String(this.JSC$9795_lastUri_)),L=!PTt.test(L);Z=L}return Z};
_.dg=function(L){return L.JSC$9795_xhr_?L.JSC$9795_xhr_.readyState:0};
_.t=_.I8.prototype;_.t.getStatus=function(){try{return _.dg(this)>2?this.JSC$9795_xhr_.status:-1}catch(L){return-1}};
_.t.getResponseText=function(){try{return this.JSC$9795_xhr_?this.JSC$9795_xhr_.responseText:""}catch(L){return""}};
_.t.getResponse=function(){try{if(!this.JSC$9795_xhr_)return null;if("response"in this.JSC$9795_xhr_)return this.JSC$9795_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9795_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9795_xhr_)return this.JSC$9795_xhr_.mozResponseArrayBuffer}return null}catch(L){return null}};
_.t.getAllResponseHeaders=function(){return this.JSC$9795_xhr_&&_.dg(this)>=2?this.JSC$9795_xhr_.getAllResponseHeaders()||"":""};
_.t.getLastError=function(){return typeof this.JSC$9795_lastError_==="string"?this.JSC$9795_lastError_:String(this.JSC$9795_lastError_)};var Duw=function(){};
Duw.prototype.send=function(L,Z,N){Z=Z===void 0?function(){}:Z;
N=N===void 0?function(){}:N;
XLh(L.url,function(S){S=S.target;S.isSuccess()?Z(S.getResponseText()):N(S.getStatus())},L.requestType,L.body,L.requestHeaders,L.timeoutMillis,L.withCredentials)};
Duw.prototype.getTransmissionType=function(){return 1};var QlY=function(L,Z){this.f6G=L;this.event=Z;this.startTime=k$()},nsB;
QlY.prototype.done=function(){this.f6G.qb(this.event,k$()-this.startTime)};
var a8=function(){t4.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.f(a8,t4);_.h4=function(L,Z,N){var S=k$();Z=Z();L.qb(N,k$()-S);return Z};
nsB=function(){a8.apply(this,arguments)};
_.f(nsB,a8);_.t=nsB.prototype;_.t.qX7=function(){};
_.t.o2=function(){};
_.t.qb=function(){};
_.t.logError=function(){};
_.t.pD=function(){};
_.t.vmo=function(){};
_.t.dve=function(){};
_.t.nmU=function(){};
var X8L=function(L){a8.call(this);var Z=this;this.cu=L;this.TEST_ONLY={o5e:function(){return Z.cu},
getExperimentIds:function(){return Z.cu.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void Z.cu.dispose()})};
_.f(X8L,a8);_.t=X8L.prototype;_.t.update=function(L){this.cu.dispose();this.cu=L};
_.t.o2=function(L){this.cu.o2(L)};
_.t.qb=function(L,Z){this.cu.qb(L,Z)};
_.t.logError=function(L){this.cu.logError(L)};
_.t.pD=function(){this.cu.pD()};
_.t.vmo=function(L){this.cu.vmo(L)};
_.t.dve=function(L){this.cu.dve(L)};
_.t.nmU=function(L){this.cu.nmU(L)};
_.t.qX7=function(L){this.cu.qX7(L)};
var Ahq=function(L,Z){_.ag.call(this);var N=this;this.callback=L;this.hjI=Z;this.aHX=-Z;this.addOnDisposeCallback(function(){return void clearTimeout(N.timer)})};
_.f(Ahq,_.ag);var Hn5=function(L){if(L.timer===void 0){var Z=Math.max(0,L.aHX+L.hjI-k$());L.timer=setTimeout(function(){try{L.callback()}finally{L.aHX=k$(),L.timer=void 0}},Z)}},Bjt=function(L,Z){a8.call(this);
this.metrics=L;this.mh=Z};
_.f(Bjt,a8);_.t=Bjt.prototype;_.t.qX7=function(L){this.metrics.g2x.record(L,this.mh)};
_.t.o2=function(L){this.metrics.eventCount.increment(L,this.mh)};
_.t.qb=function(L,Z){this.metrics.qmB.record(Z,L,this.mh)};
_.t.logError=function(L){this.metrics.errorCount.increment(L,this.mh)};
_.t.vmo=function(L){this.metrics.oSs.increment(L,this.mh)};
_.t.dve=function(L){this.metrics.lIv.increment(L,this.mh)};
_.t.nmU=function(L){this.metrics.sqI.increment(L,this.mh)};
var K5f=function(L,Z){Z=Z===void 0?[]:Z;var N={mh:L.mh||"_",nLo:L.nLo||[],muD:L.muD|0,destinationUrl:L.destinationUrl,zpo:L.zpo||function(){},
zFo:L.zFo||function(T,W){return c3w(T,W,N.zpo,N.destinationUrl)}},S=N.zFo("51",N.nLo.concat(Z));
Bjt.call(this,{g2x:new IGY(S),errorCount:new sgY(S),eventCount:new aGN(S),qmB:new heO(S),nio:new dG0(S),oSs:new jgh(S),lIv:new E$Q(S),sqI:new PXY(S)},N.mh);var u=this;this.TEST_ONLY={getExperimentIds:function(){return u.options.nLo.concat(u.zWR).sort(function(T,W){return T-W})}};
this.options=N;this.service=S;this.aLV=!L.zFo;this.flushDebouncer=new Ahq(function(){return void u.service.snapshotAndFlush()},N.muD);
this.addOnDisposeCallback(function(){u.flushDebouncer.dispose();u.aLV&&u.service.dispose()});
(this.zWR=Z.slice()).sort(_.hAL)};
_.f(K5f,Bjt);K5f.prototype.pD=function(){Hn5(this.flushDebouncer)};var Eis=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Eis,_.On);_.Pds=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(_.Pds,_.On);var Yo=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L,0,Yo.messageId)};
_.f(Yo,_.On);var xT5=_.X6A(Yo);Yo.messageId="bfkj";var HnP=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(HnP,_.On);var qMQ=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(qMQ,_.On);var L5M=_.R7(qMQ);_.qe=function(){var L=this;this.promise=new Promise(function(Z,N){L.resolve=Z;L.reject=N})};_.s8=function(L){_.ag.call(this);var Z=this;this.sWe=Math.floor(Math.random()*200);this.xao=new qMQ;if("challenge"in L&&xT5(L.challenge)){var N=_.va(L.challenge,4,void 0,aO);var S=_.va(L.challenge,5,void 0,aO);_.va(L.challenge,7,void 0,aO)&&(this.xao=L5M(_.va(L.challenge,7,void 0,aO)))}else N=L.program,S=L.globalName;this.addOnDisposeCallback(function(){var K,U,d;return _.b(function(h){if(h.nextAddress==1)return h.yield(Z.tQo,2);K=h.yieldResult;U=K.cGI;(d=U)==null||d();_.w7(h)})});
this.oo=fxw(L.t77||{},this.xao);_.Ky(this,this.oo);var u=new _.qe;this.tQo=u.promise;this.oo.o2("t");var T=this.oo.share(),W=new QlY(T,"t"),V=function(K,U,d,h){if(!Z.oo.isDisposed()){var E="k";U?E="h":d&&(E="u");E!=="k"?h!==0&&(Z.oo.o2(E),Z.oo.qb(E,K)):Z.sWe<=0?(Z.oo.o2(E),Z.oo.qb(E,K),Z.sWe=Math.floor(Math.random()*200)):Z.sWe--}},M=function(K,U,d,h){Promise.resolve().then(function(){W.done();
T.pD();T.dispose();u.resolve({r7G:K,cGI:U,beR:d,tTs:h})})};
if(!_.iH[S])throw this.oo.logError(25),Error("Ca");if(!_.iH[S].a)throw this.oo.logError(26),Error("Da");try{var G=_.iH[S].a;S=[];for(var D=[],l=Bjf(this.xao),v=0;v<l.length;v++)S.push(l[v]),D.push(1);var R=xTP(this.xao);for(l=0;l<R.length;l++)S.push(R[l]),D.push(2);this.e1K=_.O(G(N,M,!0,L.pVB,V,[S,D],_.va(this.xao,5),!1)).next().value;this.mXG=u.promise.then(function(){})}catch(K){throw this.oo.logError(28),K;
}};
_.f(_.s8,_.ag);_.s8.prototype.snapshot=function(L){if(this.isDisposed())throw Error("Ea");this.oo.o2("n");var Z=this.oo.share();return this.tQo.then(function(N){var S=N.r7G;return new Promise(function(u){var T=new QlY(Z,"n");S(function(W){T.done();Z.qX7(W.length);Z.pD();Z.dispose();u(W)},[L.oL,
L.fWx,L.q0v,L.f9Y])})})};
_.s8.prototype.uea=function(L){this.tQo.then(function(Z){var N;(N=Z.beR)==null||N(L)})};
_.s8.prototype.mFH=function(L,Z){return this.tQo.then(function(N){var S;return(S=N.tTs)==null?void 0:S(L,Z,!1)})};
_.s8.prototype.wFA=function(){return this.oo.share()};var ZZ5=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(ZZ5,_.On);var ods=_.X6A(ZZ5);var NvN=function(){this.promises={};this.buF=null},SrM=function(){NvN.instance||(NvN.instance=new NvN);
return NvN.instance},u2l=function(L,Z){return iZt(L,_.lp(Z,Eis,1,aO),_.lp(Z,_.Pds,2,aO),_.va(Z,3,void 0,aO))},iZt=function(L,Z,N,S){if(!Z&&!N)return Promise.resolve();
if(!S)return YrP(Z,N);var u;(u=L.promises)[S]||(u[S]=new Promise(function(T,W){YrP(Z,N).then(function(){L.buF=S;T()},function(V){delete L.promises[S];
W(V)})}));
return L.promises[S]};var Tvt=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Tvt,_.On);var tZQ=function(L,Z){return _.ey(L,1,Z)},OZq=function(L,Z){return _.ey(L,2,Z)};var jJ=function(L){_.ag.call(this);var Z=this;this.options=L;this.uSc=new _.qe;this.mXG=this.uSc.promise;this.lzG=new _.qe;this.xL5=1;this.uTo=new _.qe;this.jx7=[];this.k9o=L.k9o||function(){};
this.qqA=new X8L(fxw(L.t77||{}));W5N(this,L.i2,L.lBh,L.zxL,L.uP0,Object.assign({},VZs,L.aJL||{}));this.addOnDisposeCallback(function(){return void bZY(Z)})};
_.f(jJ,_.ag);jJ.prototype.snapshot=function(L){var Z=this;return _.b(function(N){switch(N.nextAddress){case 1:if(Z.isDisposed())throw Error("Ea");if(Z.dP||Z.g0P){N.jumpTo(2);break}return N.yield(Z.lzG.promise,2);case 2:if(!Z.dP){N.jumpTo(4);break}return N.yield(Z.dP.snapshot(L),5);case 5:return N.return(N.yieldResult);case 4:throw Z.g0P;}})};
var MZN=function(L){var Z;return _.b(function(N){if(L.isDisposed())throw Error("Ea");(Z=L.ld)!=null&&(Z.endTimeMs=0,Z.resolver(1));return N.yield(L.uTo.promise,0)})},bZY=function(L){L.g0P=Error("Ga");
L.lzG.resolve();qMA(L.uSc.promise);L.uSc.reject(Error("Ga"));L.qqA.dispose();Promise.all(L.jx7).then(function(){var N;return _.b(function(S){(N=L.dP)==null||N.dispose();L.dP=void 0;_.w7(S)})});
L.jx7=[];var Z;(Z=L.ld)!=null&&(Z.endTimeMs=0,Z.resolver(1));qMA(L.uTo.promise);L.uTo.reject(Error("Ga"))};
jJ.prototype.uea=function(L){var Z,N;(Z=this.dP)==null||(N=Z.uea)==null||N.call(Z,L)};
jJ.prototype.mFH=function(L,Z){var N,S,u;return(u=(N=this.dP)==null?void 0:(S=N.mFH)==null?void 0:S.call(N,L,Z))!=null?u:Promise.resolve()};
var gsM=function(L,Z){var N=L.k9o;L.k9o=function(){N();Z()}},GRO=function(L,Z){L.isDisposed()||(L.dP=Z,L.qqA.update(Z.wFA()),L.lzG.resolve(),L.uSc.resolve(void 0),L.k9o())};
jJ.prototype.handleError=function(L){if(!this.isDisposed()){this.g0P=L;this.lzG.resolve();var Z,N;(N=(Z=this.options).jcI)==null||N.call(Z,L)}};
var F5s=function(L,Z){Z&&(Promise.all(L.jx7).then(function(){return void Z.dispose()}),L.jx7=[])},E8=function(L,Z){L.xL5=Z;
var N,S;(S=(N=L.options).kdI)==null||S.call(N,Z)},$uh=function(L){L.isDisposed()||(L.uTo.resolve(),L.uTo=new _.qe)},W5N=function(L,Z,N,S,u,T){S=S===void 0?SrM():S;
u=u===void 0?Promise.resolve(void 0):u;var W,V,M,G,D,l,v,R,K,U,d,h;_.b(function(E){switch(E.nextAddress){case 1:return E.yield(0,3);case 3:V=null;if(!W){E.jumpTo(6);break}E8(L,7);_.RS(E,7);return E.yield(eb(W.snapshot({}),T.ayE,function(){return Promise.resolve("E:CTO")}),9);
case 9:V=E.yieldResult;_.SX(E,6);break;case 7:_.yd(E),V="E:UCE";case 6:M=void 0,G=W?T.oI7:T.aWh,D=new v4(G,T.uSw,T.dww,T.s8h),l=1;case 10:if(!(l<=T.maxAttempts)){E.jumpTo(12);break}if(l===1){E.jumpTo(13);break}E8(L,0);L.ld=new Duh(D.getValue(),T.quB,T.kis);return E.yield(L.ld.promise,14);case 14:v=E.yieldResult,L.ld=void 0,v===1?(l=1,D.reset()):wEQ(D);case 13:_.RS(E,15);R=void 0;if(N){R=N;E.jumpTo(17);break}E8(L,5);K=S.buF;return E.yield(eb(lxq(Z,K,V),T.dRB,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:R=E.yieldResult;case 17:return E8(L,3),E.yield(eb(u2l(S,R),T.lHG,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return E8(L,8),E.yield(u,20);case 20:return U=new _.s8({challenge:R,t77:L.options.t77,pVB:L.options.pVB}),E.yield(eb(U.mXG,T.rXK,function(){return Promise.reject(Error("Ja"))}),21);
case 21:M=U;E.jumpTo(12);break;case 15:d=_.yd(E),L.handleError(d),$uh(L);case 11:l++;E.jumpTo(10);break;case 12:if(L.isDisposed()){E.jumpTo(5);break}M&&(N=void 0,F5s(L,W),W=M,GRO(L,M),$uh(L));E8(L,2);L.ld=new Duh(T.u0w,T.quB,T.kis);return E.yield(L.ld.promise,22);case 22:L.ld=void 0;if(L.isDisposed()){E.jumpTo(5);break}E.jumpTo(3);break;case 5:(h=W)==null||h.dispose(),_.w7(E)}})};
jJ.prototype.wFA=function(){return this.qqA.share()};
var VZs={u0w:432E5,quB:3E5,kis:10,ayE:1E4,dRB:3E4,lHG:3E4,rXK:6E4,aWh:1E3,oI7:6E4,uSw:6E5,dww:.25,s8h:2,maxAttempts:10},Duh=function(L,Z,N){var S=this;this.endTimeMs=Date.now()+L;this.promise=new Promise(function(T){S.resolver=T});
var u=function(){var T=S.endTimeMs-Date.now();T<=N?S.resolver(0):setTimeout(u,Math.min(T,Z))};
u()};var vsq,duH=(vsq=Math.imul)!=null?vsq:function(L,Z){return L*Z|0},Ig=[196,
200,224,18],Pn=function(L,Z,N){N=N===void 0?[]:N;this.maxItems=L;this.qG=Z===void 0?0:Z;this.aG=N},oss=function(L){var Z=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!Z)return new Pn(L);var N=Z.split(",");if(N.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Pn(L);Z=N.slice(1);Z.length===1&&Z[0]===""&&(Z=[]);N=Number(N[0]);return isNaN(N)||N<0||N>Z.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Pn(L)):new Pn(L,N,Z)};
Pn.prototype.serialize=function(){return String(this.qG)+","+this.aG.join()};
Pn.prototype.insert=function(L,Z){var N=void 0;if(this.aG[this.qG]!==L){var S=this.aG.indexOf(L);S!==-1?(this.aG.splice(S,1),S<this.qG&&this.qG--,this.aG.splice(this.qG,0,L)):(N=this.aG[this.qG],this.aG[this.qG]=L)}this.qG=(this.qG+1)%this.maxItems;L=el_("iU5q-!O9@$",this.serialize());N&&L&&Z(N);return L};
var Rls=function(L,Z){this.iiC=Z;try{var N=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(S){N=!1}N&&(this.index=oss(L))},c3h=function(L,Z,N,S,u){var T=L.index?_.h4(L.iiC,function(){return jeH(L.index,hlx(Z),N,S,u)},"W"):"u";
L.iiC.nmU(T)},nsV=function(L,Z,N){var S=_.O(L.index?_.h4(L.iiC,function(){return Ess(hlx(Z),N)},"R"):["u"]),u=S.next().value;
S=S.next().value;L.iiC.dve(u);return S};var K5t={toString:function(L){var Z=[],N=0;L-=-2147483648;Z[N++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(L%52);for(L=Math.floor(L/52);L>0;)Z[N++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(L%62),L=Math.floor(L/62);return Z.join("")}};var y35=function(L){L=fxh(L);for(var Z=2654435769,N=2654435769,S=314159265,u=L.length,T=u,W=0,V=function(){Z-=N;Z-=S;Z^=S>>>13;N-=S;N-=Z;N^=Z<<8;S-=Z;S-=N;S^=N>>>13;Z-=N;Z-=S;Z^=S>>>12;N-=S;N-=Z;N^=Z<<16;S-=Z;S-=N;S^=N>>>5;Z-=N;Z-=S;Z^=S>>>3;N-=S;N-=Z;N^=Z<<10;S-=Z;S-=N;S^=N>>>15};T>=12;T-=12,W+=12)Z+=kRM(L,W),N+=kRM(L,W+4),S+=kRM(L,W+8),V();
S+=u;switch(T){case 11:S+=L[W+10]<<24;case 10:S+=L[W+9]<<16;case 9:S+=L[W+8]<<8;case 8:N+=L[W+7]<<24;case 7:N+=L[W+6]<<16;case 6:N+=L[W+5]<<8;case 5:N+=L[W+4];case 4:Z+=L[W+3]<<24;case 3:Z+=L[W+2]<<16;case 2:Z+=L[W+1]<<8;case 1:Z+=L[W]}V();return K5t.toString(S)},fxh=function(L){for(var Z=[],N=0;N<L.length;N++)Z.push(L.charCodeAt(N));
return Z},kRM=function(L,Z){return L[Z]+(L[Z+1]<<8)+(L[Z+2]<<16)+(L[Z+3]<<24)};var pc=function(L){_.ag.call(this);this.ir=L;this.mze=new _.qe};
_.f(pc,_.ag);var wWq=function(L,Z){var N=setTimeout(function(){L.mze.resolve()},Z);
L.addOnDisposeCallback(function(){return void clearTimeout(N)})};
pc.prototype.qsC=function(L,Z){var N=this.ma(L);Z==null||Z(N);return _.h4(this.ir,function(){return _.jY(N,2)},this.v7C)};
var Uuh=function(L,Z,N,S){return _.h4(L.ir,function(){return N?L.qsC(Z,S):L.ma(Z,S)},L.zBc)},Yr5=function(L,Z,N,S){pc.call(this,L);
this.i5s=Z;this.yYX=N;this.zBc="m";this.v7C="x";this.mBk=0;wWq(this,S)};
_.f(Yr5,pc);Yr5.prototype.ma=function(L,Z){var N=this;this.ir.o2(this.zBc);++this.mBk>=this.yYX&&this.mze.resolve();var S=L();L=_.h4(this.ir,function(){return N.i5s(S)},"C");
if(L===void 0)throw new ul(17,"YNJ:Undefined");if(!(L instanceof Uint8Array))throw new ul(18,"ODM:Invalid");Z==null||Z(L);return L};
var elq=function(L,Z,N){pc.call(this,L);this.ojs=Z;this.zBc="f";this.v7C="z";wWq(this,N)};
_.f(elq,pc);elq.prototype.ma=function(){return this.ojs};
var IxL=function(L,Z,N){pc.call(this,L);this.rGA=Z;this.zBc="w";this.v7C="z";wWq(this,N)};
_.f(IxL,pc);IxL.prototype.ma=function(){var L=this;return _.h4(this.ir,function(){return _.xt(L.rGA)},"d")};
IxL.prototype.qsC=function(){return this.rGA};
var dut=function(L,Z){pc.call(this,L);this.error=Z;this.zBc="e";this.v7C="y"};
_.f(dut,pc);var axq=function(L,Z){var N=(Z(L.error.message)+":"+Z(L.error.stack)).substring(0,2048);Z=N.length+1;N=PQP(N);var S=new Uint8Array(4+N.length);S.set([42,Z&127|128,Z>>7,L.error.code]);S.set(N,4);return S};
dut.prototype.ma=function(){if(this.ocX)return this.ocX;this.ocX=axq(this,function(L){return"_"+y35(L)});
return axq(this,function(L){return L})};
var hls=function(L,Z,N){pc.call(this,L);this.hgV=Z;this.clientState=N;this.zBc="S";this.v7C="q"};
_.f(hls,pc);hls.prototype.ma=function(){var L=Math.floor(Date.now()/1E3),Z=[Math.random()*255,Math.random()*255],N=Z.concat([this.hgV&255,this.clientState],[L>>24&255,L>>16&255,L>>8&255,L&255]);L=new Uint8Array(2+N.length);L[0]=34;L[1]=N.length;L.set(N,2);N=L.subarray(2);for(var S=Z=Z.length;S<N.length;++S)N[S]^=N[S%Z];this.ir.vmo(this.clientState);return L};var seN={njR:3E4,jJp:2E4},zk=function(L){_.ag.call(this);var Z=this;this.ax2=new _.qe;this.i5P=0;this.mx=void 0;this.state=2;this.vm=L.vm;this.i2=L.i2;this.aJL=Object.assign({},seN,L.aJL||{});this.iP=L.vm.wFA();var N;this.onError=(N=L.onError)!=null?N:function(){};
this.dc5=L.dc5||!1;if(jet(L)){var S=this.vm;this.mQm=function(){return MZN(S).catch(function(W){W=Z.reportError(new ul(Z.zS?20:32,"TRG:Disposed",W));Z.mx=W;var V;(V=Z.zS)==null||V.dispose();Z.zS=void 0;Z.ax2.reject(W)})};
gsM(S,function(){return void Esl(Z)});
S.xL5===2&&Esl(this)}else this.mQm=L.fAI,Esl(this);var u=this.iP.share();u.o2("o");var T=new QlY(u,"o");this.ax2.promise.then(function(){T.done();u.pD();u.dispose()},function(){return void u.dispose()});
this.addOnDisposeCallback(function(){Z.zS?(Z.zS.dispose(),Z.zS=void 0):Z.mx?Z.iP.pD():(Z.mx=Z.reportError(new ul(32,"TNP:Disposed")),Z.iP.pD(),Z.ax2.reject(Z.mx))});
_.Ky(this,this.iP)};
_.f(zk,_.ag);zk.prototype.mXe=function(){return this.ax2.promise};
var PQ5=function(L,Z){if(!(Z instanceof ul))if(Z instanceof _.YB){var N=Error(Z.toString());N.stack=Z.stack;Z=new ul(11,"EBH:Error",N)}else Z=new ul(12,"BSO:Unknown",Z);return L.reportError(Z)},Esl=function(L){var Z,N,S,u,T,W,V,M,G,D,l,v,R,K,U;
return _.b(function(d){switch(d.nextAddress){case 1:Z=void 0;L.i5P++;N=new _.qe;L.vm instanceof jJ&&L.vm.jx7.push(N.promise);if(!L.dc5){d.jumpTo(2);break}S=new _.qe;setTimeout(function(){return void S.resolve()});
return d.yield(S.promise,2);case 2:return u=L.iP.share(),_.RS(d,4,5),L.state=5,T={},W=[],d.yield(eb(L.vm.snapshot({oL:T,q0v:W}),L.aJL.jJp,function(){return Promise.reject(new ul(15,"MDA:Timeout"))}),7);
case 7:V=d.yieldResult;if(L.isDisposed())throw new ul(L.zS?20:32,"MDA:Disposed");M=W[0];L.state=6;return d.yield(eb(pWQ(L.i2,V),L.aJL.njR,function(){return Promise.reject(new ul(10,"BWB:Timeout"))}),8);
case 8:G=d.yieldResult;if(L.isDisposed())throw new ul(L.zS?20:32,"BWB:Disposed");L.state=7;Z=_.h4(u,function(){var E=zl5(L,G,N,M);E.mze.promise.then(function(){return void L.mQm()});
return E},"i");
case 5:_.ns(d);u.dispose();_.kS(d,6);break;case 4:D=_.yd(d);(l=Z)==null||l.dispose();if(!L.mx){v=PQ5(L,D);N.resolve();var h;if(h=L.vm instanceof jJ&&L.i5P<2)a:if(D instanceof ul)h=D.code!==32&&D.code!==20&&D.code!==10;else{if(D instanceof _.YB)switch(D.code){case 2:case 13:case 14:case 4:break;default:h=!1;break a}h=!0}if(h)return R=(1+Math.random()*.25)*(L.zS?6E4:1E3),K=setTimeout(function(){return void L.mQm()},R),L.addOnDisposeCallback(function(){return void clearTimeout(K)}),d.return();
L.mx=v}u.logError(L.zS?13:14);L.ax2.reject(L.mx);return d.return();case 6:L.state=8,L.i5P=0,(U=L.zS)==null||U.dispose(),L.zS=Z,L.ax2.resolve(),_.w7(d)}})},zl5=function(L,Z,N,S){var u=KMY(Z,2)*1E3;
if(u<=0)throw new ul(31,"TTM:Invalid");if(_.va(Z,4))return new IxL(L.iP,_.va(Z,4),u);if(!KMY(Z,3))return new elq(L.iP,ttY(_.VM(Z,1)),u);if(!S)throw new ul(4,"PMD:Undefined");S=S(ttY(_.VM(Z,1)));if(!(S instanceof Function))throw new ul(16,"APF:Failed");L.drB=Math.floor((Date.now()+u)/1E3);L=new Yr5(L.iP,S,KMY(Z,3),u);L.addOnDisposeCallback(function(){return void N.resolve()});
return L};
zk.prototype.ma=function(L){return muO(this,Object.assign({},L),!1)};
zk.prototype.qsC=function(L){return muO(this,Object.assign({},L),!0)};
zk.prototype.xRm=function(L){if(L>150)return!1;try{return this.cache=new Rls(L,this.iP),!0}catch(Z){return this.reportError(new ul(22,"GBJ:init",Z)),!1}};
zk.prototype.reportError=function(L){this.iP.logError(L.code);this.onError(L);return L};
var J3s=function(L,Z){Z=Z instanceof ul?Z:new ul(5,"TVD:error",Z);return L.reportError(Z)},muO=function(L,Z,N){try{if(L.isDisposed())throw new ul(21,"BNT:disposed");
if(!L.zS&&L.mx)throw L.mx;var S,u;return(u=(S=CQO(L,Z,N))!=null?S:r3l(L,Z,N))!=null?u:QeI(L,Z,N)}catch(T){if(!Z.tfB)throw J3s(L,T);return XWq(L,N,T)}},CQO=function(L,Z,N){var S;
return(S=L.zS)==null?void 0:Uuh(S,function(){return A3q(L,Z)},N,function(u){var T;
if(L.zS instanceof Yr5&&((T=Z.jT)==null?0:T.oUB))try{var W;(W=L.cache)==null||c3h(W,A3q(L,Z),u,Z.jT.dLo,L.drB-120)}catch(V){L.reportError(new ul(24,"ELX:write",V))}})},r3l=function(L,Z,N){var S;
if((S=Z.jT)!=null&&S.jRv)try{var u,T=(u=L.cache)==null?void 0:nsV(u,A3q(L,Z),Z.jT.dLo);return T?N?_.h4(L.iP,function(){return _.jY(T,2)},"a"):T:void 0}catch(W){L.reportError(new ul(23,"RXO:read",W))}},QeI=function(L,Z,N){var S={stack:[],
error:void 0,hasError:!1};try{if(!Z.vUo)throw new ul(29,"SDF:notready");return Uuh(Whl(S,new hls(L.iP,0,L.state)),function(){return A3q(L,Z)},N)}catch(u){S.error=u,S.hasError=!0}finally{Vfs(S)}},XWq=function(L,Z,N){var S={stack:[],
error:void 0,hasError:!1};try{var u=J3s(L,N);return Uuh(Whl(S,new dut(L.iP,u)),function(){return[]},Z)}catch(T){S.error=T,S.hasError=!0}finally{Vfs(S)}},A3q=function(L,Z){return Z.ysC?Z.ysC:Z.oL?_.h4(L.iP,function(){return Z.ysC=PQP(Z.oL)},"c"):[]},jet=function(L){return sY(function(Z){if(!gJ(Z))return!1;
for(var N=_.O(Object.entries(L)),S=N.next();!S.done;S=N.next()){var u=_.O(S.value);S=u.next().value;u=u.next().value;if(!(S in Z)){if(u.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!u(Z[S]))return!1}return!0})}({vm:function(L){return sY(function(Z){return Z instanceof L})}(jJ)},"");var HZh=function(){var L=_.AN();this.JSC$9913_streamzService=L;L.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",FU("cookie_enabled"),FU("cookie_3p_enabled"),_.DG("browser"))};
HZh.prototype.increment=function(L,Z,N){this.JSC$9913_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",L,Z,N)};
var iJF=function(){var L=_.AN();this.JSC$9937_streamzService=L;L.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",$$("tick"),FU("from_st_cookie"))};
iJF.prototype.increment=function(L,Z){this.JSC$9937_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",L,Z)};
var Bv0=function(){var L=_.AN();this.JSC$9943_streamzService=L;L.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.DG("status"))};
Bv0.prototype.increment=function(L){this.JSC$9943_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",L)};
var xuI=function(){var L=_.AN();this.JSC$9946_streamzService=L;L.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.DG("stage"),FU("is_using_ytd_player"),FU("has_expandable_tiles"))};
xuI.prototype.increment=function(L,Z,N){this.JSC$9946_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",L,Z,N)};
var qrY=function(){var L=_.AN();this.JSC$9949_streamzService=L;L.addNewCounter("/client_streamz/youtube/web/response_signature",_.DG("check_status"))};
qrY.prototype.increment=function(L){this.JSC$9949_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/web/response_signature",L)};
var LzI=function(){var L=_.AN();this.JSC$9952_streamzService=L;L.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.DG("sig"),$$("de"))};
LzI.prototype.increment=function(L,Z){this.JSC$9952_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/web/e_sig_log",L,Z)};
var ZQ0=function(){var L=_.AN();this.JSC$9955_streamzService=L;L.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.DG("sig"),$$("de"))};
ZQ0.prototype.increment=function(L,Z){this.JSC$9955_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/web/e_sig_en",L,Z)};
_.NoO=function(){var L=_.AN();this.JSC$9958_streamzService=L;L.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.DG("action"))};
_.NoO.prototype.increment=function(L){this.JSC$9958_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/web/enforcement_intent",L)};var mF=window;var S6t=(new Date).getTime();_.Py.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.Py.createSet("action","cite","data","formaction","href","manifest","poster","src");var iQL=function(L){this.servicePromise_=L;L.then((0,_.hr)(function(){},this),function(){},this)},uW5=function(L,Z,N){L.servicePromise_.then(function(S){var u=S[Z];
if(!u)throw Error("Ka`"+Z);return u.apply(S,N)})},OQO=function(L,Z,N){for(var S=Array(arguments.length-2),u=2;u<arguments.length;u++)S[u-2]=arguments[u];
u=Tos(L,Z).then(function(T){return T.apply(null,S)},function(T){T=Error("La`"+Z+"`"+L+"`"+T,{cause:T});
delete tXt[Z];return _.$N(T)});
return new iQL(u)},tXt={},Tos=function(L,Z){var N=tXt[Z];
if(N)return N;N=(N=_.LZ(Z))?_.xP(N):(new _.kE(function(S,u){var T=(new f7(document)).createElement("SCRIPT");T.async=!0;_.TE(T,_.YV(SNt(L)));T.onload=T.onreadystatechange=function(){T.readyState&&T.readyState!="loaded"&&T.readyState!="complete"||S()};
T.onerror=function(W){u(Error("Ma`"+Z+"`"+L,{cause:W}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(T)})).then(function(){var S=_.LZ(Z);
if(!S)throw Error("Na`"+Z+"`"+L);return S});
return tXt[Z]=N};var WzV={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},bQI=function(){var L=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=pWA(function(){return _.b(function(Z){if(Z.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?Z.return(Promise.resolve()):Z.yield(VXL(L),2);L.rsaForList.length>
0&&document.addEventListener("click",L.requestAccessForHelpPanel);_.w7(Z)})});
this.requestAccessForHelpPanel=function(){if(!(L.rsaForPromises.length>0)){for(var Z=_.O(L.rsaForList),N=Z.next();!N.done;N=Z.next()){N=N.value;try{L.rsaForPromises.push(document.requestStorageAccessFor(N))}catch(S){}}Promise.all(L.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){L.reset()})}}};
bQI.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var VXL=function(L){var Z,N,S,u;return _.b(function(T){switch(T.nextAddress){case 1:Z=_.O(Object.values(WzV)),N=Z.next();case 2:if(N.done){T.jumpTo(0);break}S=N.value;_.RS(T,5);return T.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:S}),7);case 7:u=T.yieldResult;u.state!=="granted"&&L.rsaForList.push(S);_.SX(T,3);break;case 5:_.yd(T);T.jumpTo(0);break;case 3:N=Z.next(),T.jumpTo(2)}})};(new bQI).initialize();var MXM=function(L){this.JSC$9972_loader_=L};
MXM.prototype.startHelp=function(L){uW5(this.JSC$9972_loader_,"startHelp",arguments)};
MXM.prototype.JSC$9974_loadChatSupport=function(L){uW5(this.JSC$9972_loader_,"loadChatSupport",arguments)};
var GTM=function(L,Z){Z=Z||{};L=OQO(gjN,"help.service.Lazy.create",L,{apiKey:Z.apiKey||Z.apiKey,asxUiUri:Z.asxUiUri||Z.asxUiUri,environment:Z.environment||Z.environment,flow:Z.flow||Z.flow,frdProductData:Z.frdProductData||Z.frdProductData,frdProductDataSerializedJspb:Z.frdProductDataSerializedJspb||Z.frdProductDataSerializedJspb,helpCenterPath:Z.helpCenterPath||Z.helpCenterPath,locale:Z.locale||Z.locale||"en-US".replace(/-/g,"_"),nonce:Z.nonce||Z.nonce,productData:Z.productData||Z.productData,receiverUri:Z.receiverUri||
Z.receiverUri,renderApiUri:Z.renderApiUri||Z.renderApiUri,theme:Z.theme||Z.theme,window:Z.window||Z.window});return new MXM(L)},gjN=new AV(QVw,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var Fz5=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Fz5,_.On);var $Ol=_.R7(Fz5);var DOI=[0,_.rK,EW,g5h];_.lkL=new function(L,Z,N,S){this.configType=L;this.flagName=N;this.defaultValue=S;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 ojY=function(){this.retriever=_.GR().resolve(vjY)};_.Pt={get payments(){return window.payments}};muF(Node);muF(Element);var RGt=muF(HTMLElement);muF(SVGElement);var ca0,njN,Qz,KzO;ca0=function(L){return typeof L.className=="string"?L.className:L.getAttribute&&L.getAttribute("class")||""};
njN=function(L){return L.classList?L.classList:ca0(L).match(/\S+/g)||[]};
_.J4=function(L,Z){typeof L.className=="string"?L.className=Z:L.setAttribute&&L.setAttribute("class",Z)};
_.Cc=function(L,Z){return L.classList?L.classList.contains(Z):_.p1(njN(L),Z)};
_.ER=function(L,Z){if(L.classList)L.classList.add(Z);else if(!_.Cc(L,Z)){var N=ca0(L);_.J4(L,N+(N.length>0?" "+Z:Z))}};
Qz=function(L,Z){if(L.classList)Array.prototype.forEach.call(Z,function(u){_.ER(L,u)});
else{var N={};Array.prototype.forEach.call(njN(L),function(u){N[u]=!0});
Array.prototype.forEach.call(Z,function(u){N[u]=!0});
Z="";for(var S in N)Z+=Z.length>0?" "+S:S;_.J4(L,Z)}};
_.sR=function(L,Z){L.classList?L.classList.remove(Z):_.Cc(L,Z)&&_.J4(L,Array.prototype.filter.call(njN(L),function(N){return N!=Z}).join(" "))};
KzO=function(L,Z){L.classList?Array.prototype.forEach.call(Z,function(N){_.sR(L,N)}):_.J4(L,Array.prototype.filter.call(njN(L),function(N){return!_.p1(Z,N)}).join(" "))};var fkY=function(L){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=L.document},wxl=function(L,Z){kTV(L);
var N=document.createElement("div"),S;(S=Z.parentNode)==null||S.insertBefore(N,Z);N.tabIndex=0;N.id="fc-focus-trap-pre-div";N=document.createElement("div");var u;(u=Z.parentNode)==null||u.insertBefore(N,Z.nextSibling);N.tabIndex=0;N.id="fc-focus-trap-post-div";var T=yaq(L,Z),W=yaq(L,Z,!0);T&&W&&(L.focusChangeHandler=function(){var V=L.document.activeElement;if(V)if(_.H4(Z,V))L.previouslyFocusedElement=V;else if(V===L.document.activeElement)switch(L.previouslyFocusedElement){case T:W.focus();L.previouslyFocusedElement=
W;break;default:T.focus(),L.previouslyFocusedElement=T}},L.document.addEventListener("focus",L.focusChangeHandler,!0),L.document.addEventListener("focusin",L.focusChangeHandler))},kTV=function(L){L.focusChangeHandler&&(document.removeEventListener("focus",L.focusChangeHandler,!0),document.removeEventListener("focusin",L.focusChangeHandler),L.focusChangeHandler=null);
var Z;(Z=document.getElementById("fc-focus-trap-pre-div"))==null||Z.remove();var N;(N=document.getElementById("fc-focus-trap-post-div"))==null||N.remove()},UOs=function(L,Z,N,S,u){N=N===void 0?!0:N;
var T;u=(T=u===void 0?null:u)!=null?T:yaq(L,Z,S===void 0?!1:S);u!==null&&(u.focus(),N&&wxl(L,Z))};
fkY.prototype.disableButton=function(L,Z){Z=Z===void 0?null:Z;L.disabled=!0;Z&&_.ER(L,Z)};
var yaq=function(L,Z,N){N=N===void 0?!1:N;if(bYP(Z)&&!N)return Z;var S=N?[].slice.call(Z.children,0).reverse():Z.children;S=_.O(S);for(var u=S.next();!u.done;u=S.next())if(u=u.value,RGt(u)&&(u=yaq(L,u,N)))return u;return bYP(Z)&&N?Z:null};var Y6L=function(L){this.originalBodyOverflow="";this.JSC$9999_domHelper=Im(L)};
Y6L.prototype.enableScrolling=function(){this.JSC$9999_domHelper.JSC$9325_document_.body.style.overflow=this.originalBodyOverflow};_.Qk(_.s_,_.ag);_.t=_.s_.prototype;_.t.JSC$10002_id_=0;_.t.disposeInternal=function(){_.s_.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10000_listener_;delete this.handler_};
_.t.start=function(L){this.stop();this.JSC$10002_id_=U8(this.callback_,L!==void 0?L:this.JSC$10000_interval_)};
_.t.stop=function(){this.isActive()&&_.iH.clearTimeout(this.JSC$10002_id_);this.JSC$10002_id_=0};
_.t.fire=function(){this.stop();this.JSC$10002_doAction_()};
_.t.isActive=function(){return this.JSC$10002_id_!=0};
_.t.JSC$10002_doAction_=function(){this.JSC$10002_id_=0;this.JSC$10000_listener_&&this.JSC$10000_listener_.call(this.handler_)};_.oM=function(L){_.ag.call(this);this.handler_=L;this.JSC$10003_keys_={}};
_.Qk(_.oM,_.ag);var eGt=[];_.oM.prototype.listen=function(L,Z,N,S){Array.isArray(Z)||(Z&&(eGt[0]=Z.toString()),Z=eGt);for(var u=0;u<Z.length;u++){var T=_.Gl(L,Z[u],N||this.handleEvent,S||!1,this.handler_||this);if(!T)break;this.JSC$10003_keys_[T.key]=T}return this};
_.oM.prototype.listenOnce=function(L,Z,N,S){return IkL(this,L,Z,N,S)};
var IkL=function(L,Z,N,S,u,T){if(Array.isArray(N))for(var W=0;W<N.length;W++)IkL(L,Z,N[W],S,u,T);else{Z=VV(Z,N,S||L.handleEvent,u,T||L.handler_||L);if(!Z)return L;L.JSC$10003_keys_[Z.key]=Z}return L};
_.oM.prototype.unlisten=function(L,Z,N,S,u){if(Array.isArray(Z))for(var T=0;T<Z.length;T++)this.unlisten(L,Z[T],N,S,u);else if(L=Nj0(L,Z,N||this.handleEvent,_.Q_(S)?!!S.capture:!!S,u||this.handler_||this))bn(L),delete this.JSC$10003_keys_[L.key];return this};
_.oM.prototype.removeAll=function(){_.Py.forEach(this.JSC$10003_keys_,function(L,Z){this.JSC$10003_keys_.hasOwnProperty(Z)&&bn(L)},this);
this.JSC$10003_keys_={}};
_.oM.prototype.disposeInternal=function(){_.oM.superClass_.disposeInternal.call(this);this.removeAll()};
_.oM.prototype.handleEvent=function(){throw Error("Oa");};var A4=function(){_.ag.call(this);this.services_={}};
_.Qk(A4,_.ag);A4.prototype.connect=function(L){L&&L()};
A4.prototype.isConnected=function(){return!0};
A4.prototype.registerService=function(L,Z,N){this.services_[L]={callback:Z,objectPayload:!!N}};
A4.prototype.getService=function(L,Z){var N=this.services_[L];return N?N:this.defaultService_?{callback:_.T6(this.defaultService_,L),objectPayload:_.Q_(Z)}:null};
var dOq=function(L,Z){if(Z&&typeof L==="string")try{return JSON.parse(L)}catch(N){return null}else if(!Z&&typeof L!=="string")return(0,_.eJ)(L);return L};
A4.prototype.disposeInternal=function(){A4.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 Hn=function(L,Z){this.sequence_=[];this.onCancelFunction_=L;this.defaultScope_=Z||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};
Hn.prototype.cancel=function(L){if(this.fired_)this.result_ instanceof Hn&&this.result_.cancel();else{if(this.parent_){var Z=this.parent_;delete this.parent_;L?Z.cancel(L):(Z.branches_--,Z.branches_<=0&&Z.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Bn(this))}};
Hn.prototype.continue_=function(L,Z){this.blocked_=!1;ak5(this,L,Z)};
var ak5=function(L,Z,N){L.fired_=!0;L.result_=N;L.hadError_=!Z;hGY(L)},jZq=function(L){if(L.fired_){if(!L.silentlyCanceled_)throw new sZt(L);
L.silentlyCanceled_=!1}};
Hn.prototype.callback=function(L){jZq(this);ak5(this,!0,L)};
Hn.prototype.errback=function(L){jZq(this);ak5(this,!1,L)};
var Ejl=function(L,Z,N){xB(L,Z,null,N)};
Hn.prototype.finally=function(L){var Z=this;return PpN(new Promise(function(N,S){xB(Z,function(u){L();N(u)},function(u){L();
S(u)})}))};
var xB=function(L,Z,N,S){var u=L.fired_;u||(Z===N?Z=N=fc(Z):(Z=fc(Z),N=fc(N)));L.sequence_.push([Z,N,S]);u&&hGY(L)};
Hn.prototype.then=function(L,Z,N){var S,u,T=new _.kE(function(W,V){u=W;S=V});
xB(this,u,function(W){W instanceof Bn?T.cancel():S(W);return pxI},this);
return T.then(L,Z,N)};
VuV(Hn);var zGl=function(L,Z){Z instanceof Hn?Ejl(L,(0,_.hr)(Z.branch,Z)):Ejl(L,function(){return Z})};
Hn.prototype.branch=function(L){var Z=new Hn;xB(this,Z.callback,Z.errback,Z);L&&(Z.parent_=this,this.branches_++);return Z};
Hn.prototype.isError=function(L){return L instanceof Error};
var mO0=function(L){return TI(L.sequence_,function(Z){return typeof Z[1]==="function"})},pxI={},hGY=function(L){if(L.unhandledErrorId_&&L.fired_&&mO0(L)){var Z=L.unhandledErrorId_,N=Jas[Z];
N&&(_.iH.clearTimeout(N.JSC$10020_id_),delete Jas[Z]);L.unhandledErrorId_=0}L.parent_&&(L.parent_.branches_--,delete L.parent_);Z=L.result_;for(var S=N=!1;L.sequence_.length&&!L.blocked_;){var u=L.sequence_.shift(),T=u[0],W=u[1];u=u[2];if(T=L.hadError_?W:T)try{var V=T.call(u||L.defaultScope_,Z);V===pxI&&(V=void 0);V!==void 0&&(L.hadError_=L.hadError_&&(V==Z||L.isError(V)),L.result_=Z=V);if(bnL(Z)||typeof _.iH.Promise==="function"&&Z instanceof _.iH.Promise)S=!0,L.blocked_=!0}catch(M){Z=M,L.hadError_=
!0,mO0(L)||(N=!0)}}L.result_=Z;S&&(V=(0,_.hr)(L.continue_,L,!0),S=(0,_.hr)(L.continue_,L,!1),Z instanceof Hn?(xB(Z,V,S),Z.blocking_=!0):Z.then(V,S));N&&(Z=new CpQ(Z),Jas[Z.JSC$10020_id_]=Z,L.unhandledErrorId_=Z.JSC$10020_id_)},PpN=function(L){var Z=new Hn;
L.then(function(N){Z.callback(N)},function(N){Z.errback(N)});
return Z},sZt=function(){_.NL.call(this)};
_.Qk(sZt,_.NL);sZt.prototype.message="Deferred has already fired";sZt.prototype.name="AlreadyCalledError";var Bn=function(){_.NL.call(this)};
_.Qk(Bn,_.NL);Bn.prototype.message="Deferred was canceled";Bn.prototype.name="CanceledError";var CpQ=function(L){this.JSC$10020_id_=_.iH.setTimeout((0,_.hr)(this.throwError,this),0);this.JSC$10020_error_=L};
CpQ.prototype.throwError=function(){delete Jas[this.JSC$10020_id_];throw this.JSC$10020_error_;};
var Jas={};var rat={1:"NativeMessagingTransport"},QZh=["pu","lru","pru","lpu","ppu"],AaL=function(){for(var L=10,Z=Xx0,N=Z.length,S="";L-- >0;)S+=Z.charAt(Math.floor(Math.random()*N));return S},Xx0="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var qb=function(L){_.ag.call(this);this.JSC$10023_domHelper_=L||Im()};
_.Qk(qb,_.ag);qb.prototype.transportType=0;qb.prototype.getWindow=function(){return this.JSC$10023_domHelper_.getWindow()};
qb.prototype.getName=function(){return rat[String(this.transportType)]||""};var LL=function(L,Z,N,S,u){qb.call(this,N);this.JSC$10026_channel_=L;this.protocolVersion_=u||2;this.peerHostname_=Z||"*";this.JSC$10026_eventHandler_=new _.oM(this);this.maybeAttemptToConnectTimer_=new _.vX(100,this.getWindow());this.oneSidedHandshake_=!!S;this.setupAckReceived_=new Hn;this.setupAckSent_=new Hn;this.JSC$10026_connected_=new Hn;this.endpointId_=AaL();this.peerEndpointId_=null;this.oneSidedHandshake_?HQY(this.JSC$10026_channel_)==1?zGl(this.JSC$10026_connected_,this.setupAckReceived_):
zGl(this.JSC$10026_connected_,this.setupAckSent_):(zGl(this.JSC$10026_connected_,this.setupAckReceived_),this.protocolVersion_==2&&zGl(this.JSC$10026_connected_,this.setupAckSent_));Ejl(this.JSC$10026_connected_,this.notifyConnected_,this);this.JSC$10026_connected_.callback(!0);this.JSC$10026_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Qk(LL,qb);LL.prototype.peerProtocolVersion_=null;LL.prototype.initialized_=!1;LL.prototype.transportType=1;var Bo0={};LL.prototype.sendTimerId_=0;
var LSN=function(L){var Z=L.event_.data;if(typeof Z!=="string")return!1;var N=Z.indexOf("|"),S=Z.indexOf(":");if(N==-1||S==-1)return!1;var u=Z.substring(0,N);N=Z.substring(N+1,S);Z=Z.substring(S+1);if(S=Z3[u])return S.xpcDeliver(N,Z,L.event_.origin),!0;S=xOs(Z)[0];for(var T in Z3){var W=Z3[T];if(HQY(W)==1&&!W.isConnected()&&N=="tp"&&(S=="SETUP"||S=="SETUP_NTPV2")&&q6t(W,L.event_.origin))return delete Z3[W.name],W.name=u,Z3[u]=W,W.xpcDeliver(N,Z),!0}return!1},ZAh=function(L){L.protocolVersion_!=2||
L.peerProtocolVersion_!=null&&L.peerProtocolVersion_!=2||L.send("tp","SETUP_NTPV2,"+L.endpointId_);
L.peerProtocolVersion_!=null&&L.peerProtocolVersion_!=1||L.send("tp","SETUP")},NYL=function(L,Z){if(L.protocolVersion_!=2||L.peerProtocolVersion_!=null&&L.peerProtocolVersion_!=2||Z!=2){if(L.peerProtocolVersion_!=null&&L.peerProtocolVersion_!=1||Z!=1)return;
L.send("tp","SETUP_ACK")}else L.send("tp","SETUP_ACK_NTPV2");L.setupAckSent_.fired_||L.setupAckSent_.callback(!0)},SIl=function(L,Z){Z>L.peerProtocolVersion_&&(L.peerProtocolVersion_=Z);
L.peerProtocolVersion_==1&&(L.setupAckSent_.fired_||L.oneSidedHandshake_||L.setupAckSent_.callback(!0),L.peerEndpointId_=null)};
_.t=LL.prototype;_.t.connect=function(){var L=this.getWindow(),Z=_.Hs(L),N=Bo0[Z];typeof N!=="number"&&(N=0);N==0&&_.Gl(L.postMessage?L:L.document,"message",LSN,!1,LL);Bo0[Z]=N+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.t.maybeAttemptToConnect_=function(){var L=HQY(this.JSC$10026_channel_)==0;this.oneSidedHandshake_&&L||this.JSC$10026_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),ZAh(this))};
_.t.send=function(L,Z){var N=this.JSC$10026_channel_.peerWindowObject_;N&&(this.send=function(S,u){var T=this,W=this.JSC$10026_channel_.name;this.sendTimerId_=U8(function(){T.sendTimerId_=0;try{var V=N.postMessage?N:N.document;V.postMessage&&V.postMessage(W+"|"+S+":"+u,T.peerHostname_)}catch(M){}},0)},this.send(L,Z))};
_.t.notifyConnected_=function(){var L=this.JSC$10026_channel_,Z=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;L.isConnected()||L.connectionDelay_&&L.connectionDelay_.isActive()||(L.state_=2,_.W4(L.connectionDelay_),Z!==void 0?(L.connectionDelay_=new _.s_(L.connectCb_,Z),L.connectionDelay_.start()):(L.connectionDelay_=null,L.connectCb_()))};
_.t.disposeInternal=function(){if(this.initialized_){var L=this.getWindow(),Z=_.Hs(L),N=Bo0[Z];Bo0[Z]=N-1;N==1&&_.nc(L.postMessage?L:L.document,"message",LSN,!1,LL)}this.sendTimerId_&&(_.iH.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.W4(this.JSC$10026_eventHandler_);delete this.JSC$10026_eventHandler_;_.W4(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10026_connected_.cancel();delete this.JSC$10026_connected_;delete this.send;LL.superClass_.disposeInternal.call(this)};
var xOs=function(L){L=L.split(",");L[1]=L[1]||null;return L};var uvQ;_.N6=function(L){if(L.getValues&&typeof L.getValues=="function")return L.getValues();if(typeof Map!=="undefined"&&L instanceof Map||typeof Set!=="undefined"&&L instanceof Set)return Array.from(L.values());if(typeof L==="string")return L.split("");if(_.Jx(L)){for(var Z=[],N=L.length,S=0;S<N;S++)Z.push(L[S]);return Z}return _.Py.getValues(L)};
_.iAY=function(L){if(L.getKeys&&typeof L.getKeys=="function")return L.getKeys();if(!L.getValues||typeof L.getValues!="function"){if(typeof Map!=="undefined"&&L instanceof Map)return Array.from(L.keys());if(!(typeof Set!=="undefined"&&L instanceof Set)){if(_.Jx(L)||typeof L==="string"){var Z=[];L=L.length;for(var N=0;N<L;N++)Z.push(N);return Z}return _.Py.getKeys(L)}}};
uvQ=function(L,Z,N){if(L.forEach&&typeof L.forEach=="function")L.forEach(Z,N);else if(_.Jx(L)||typeof L==="string")Array.prototype.forEach.call(L,Z,N);else for(var S=_.iAY(L),u=_.N6(L),T=u.length,W=0;W<T;W++)Z.call(N,u[W],S&&S[W],L)};var g10,WF,bx,M2M,TYs,OAq,t2h,bAO,WSO;
_.j9=function(L,Z){this.JSC$10031_domain_=this.userInfo_=this.scheme_="";this.JSC$10031_port_=null;this.fragment_=this.JSC$10031_path_="";this.JSC$10031_ignoreCase_=!1;var N;L instanceof _.j9?(this.JSC$10031_ignoreCase_=Z!==void 0?Z:L.JSC$10031_ignoreCase_,_.S7(this,L.scheme_),this.userInfo_=L.userInfo_,_.ix(this,L.JSC$10031_domain_),_.ux(this,L.JSC$10031_port_),_.TQ(this,L.getPath()),_.tL(this,L.JSC$10031_queryData_.clone()),_.Ot(this,L.fragment_)):L&&(N=_.Or(String(L)))?(this.JSC$10031_ignoreCase_=
!!Z,_.S7(this,N[1]||"",!0),this.userInfo_=WF(N[2]||""),_.ix(this,N[3]||"",!0),_.ux(this,N[4]),_.TQ(this,N[5]||"",!0),_.tL(this,N[6]||"",!0),_.Ot(this,N[7]||"",!0)):(this.JSC$10031_ignoreCase_=!!Z,this.JSC$10031_queryData_=new _.VI(null,this.JSC$10031_ignoreCase_))};
_.j9.prototype.toString=function(){var L=[],Z=this.scheme_;Z&&L.push(bx(Z,TYs,!0),":");var N=this.JSC$10031_domain_;if(N||Z=="file")L.push("//"),(Z=this.userInfo_)&&L.push(bx(Z,TYs,!0),"@"),L.push(_.Nu(N).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),N=this.JSC$10031_port_,N!=null&&L.push(":",String(N));if(N=this.getPath())this.JSC$10031_domain_&&N.charAt(0)!="/"&&L.push("/"),L.push(bx(N,N.charAt(0)=="/"?t2h:OAq,!0));(N=this.JSC$10031_queryData_.toString())&&L.push("?",N);(N=this.fragment_)&&L.push("#",
bx(N,WSO));return L.join("")};
_.j9.prototype.resolve=function(L){var Z=this.clone(),N=!!L.scheme_;N?_.S7(Z,L.scheme_):N=!!L.userInfo_;N?Z.userInfo_=L.userInfo_:N=!!L.JSC$10031_domain_;N?_.ix(Z,L.JSC$10031_domain_):N=L.JSC$10031_port_!=null;var S=L.getPath();if(N)_.ux(Z,L.JSC$10031_port_);else if(N=!!L.JSC$10031_path_){if(S.charAt(0)!="/")if(this.JSC$10031_domain_&&!this.JSC$10031_path_)S="/"+S;else{var u=Z.getPath().lastIndexOf("/");u!=-1&&(S=Z.getPath().slice(0,u+1)+S)}u=S;if(u==".."||u==".")S="";else if(_.bH(u,"./")||_.bH(u,
"/.")){S=_.TB(u,"/");u=u.split("/");for(var T=[],W=0;W<u.length;){var V=u[W++];V=="."?S&&W==u.length&&T.push(""):V==".."?((T.length>1||T.length==1&&T[0]!="")&&T.pop(),S&&W==u.length&&T.push("")):(T.push(V),S=!0)}S=T.join("/")}else S=u}N?_.TQ(Z,S):N=L.JSC$10031_queryData_.toString()!=="";N?_.tL(Z,L.JSC$10031_queryData_.clone()):N=!!L.fragment_;N&&_.Ot(Z,L.fragment_);return Z};
_.j9.prototype.clone=function(){return new _.j9(this)};
_.S7=function(L,Z,N){L.scheme_=N?WF(Z,!0):Z;L.scheme_&&(L.scheme_=L.scheme_.replace(/:$/,""));return L};
_.ix=function(L,Z,N){L.JSC$10031_domain_=N?WF(Z,!0):Z;return L};
_.ux=function(L,Z){if(Z){Z=Number(Z);if(isNaN(Z)||Z<0)throw Error("Pa`"+Z);L.JSC$10031_port_=Z}else L.JSC$10031_port_=null;return L};
_.j9.prototype.getPath=function(){return this.JSC$10031_path_};
_.TQ=function(L,Z,N){L.JSC$10031_path_=N?WF(Z,!0):Z;return L};
_.tL=function(L,Z,N){Z instanceof _.VI?(L.JSC$10031_queryData_=Z,V2t(L.JSC$10031_queryData_,L.JSC$10031_ignoreCase_)):(N||(Z=bx(Z,bAO)),L.JSC$10031_queryData_=new _.VI(Z,L.JSC$10031_ignoreCase_));return L};
_.Z4=function(L,Z,N){L.JSC$10031_queryData_.set(Z,N);return L};
_.Lh=function(L,Z){return L.JSC$10031_queryData_.get(Z)};
_.Ot=function(L,Z,N){L.fragment_=N?WF(Z):Z;return L};
_.M6=function(L){_.Z4(L,"zx",x$());return L};
_.qG=function(L,Z){return L instanceof _.j9?L.clone():new _.j9(L,Z)};
g10=function(L,Z){L instanceof _.j9||(L=_.qG(L));Z instanceof _.j9||(Z=_.qG(Z));return L.resolve(Z)};
WF=function(L,Z){return L?Z?decodeURI(L.replace(/%25/g,"%2525")):decodeURIComponent(L):""};
bx=function(L,Z,N){return typeof L==="string"?(L=encodeURI(L).replace(Z,M2M),N&&(L=L.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),L):null};
M2M=function(L){L=L.charCodeAt(0);return"%"+(L>>4&15).toString(16)+(L&15).toString(16)};
TYs=/[#\/\?@]/g;OAq=/[#\?:]/g;t2h=/[#\?]/g;bAO=/[#\?@]/g;WSO=/#/g;_.VI=function(L,Z){this.count_=this.keyMap_=null;this.encodedQuery_=L||null;this.JSC$10032_ignoreCase_=!!Z};
_.gp=function(L){L.keyMap_||(L.keyMap_=new Map,L.count_=0,L.encodedQuery_&&LmQ(L.encodedQuery_,function(Z,N){L.add(Mu(Z),N)}))};
_.t=_.VI.prototype;_.t.getCount=function(){_.gp(this);return this.count_};
_.t.add=function(L,Z){_.gp(this);this.encodedQuery_=null;L=GQ(this,L);var N=this.keyMap_.get(L);N||this.keyMap_.set(L,N=[]);N.push(Z);this.count_+=1;return this};
_.t.remove=function(L){_.gp(this);L=GQ(this,L);return this.keyMap_.has(L)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(L).length,this.keyMap_.delete(L)):!1};
_.t.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.t.isEmpty=function(){_.gp(this);return this.count_==0};
_.t.containsKey=function(L){_.gp(this);L=GQ(this,L);return this.keyMap_.has(L)};
_.t.containsValue=function(L){var Z=this.getValues();return _.p1(Z,L)};
_.t.forEach=function(L,Z){_.gp(this);this.keyMap_.forEach(function(N,S){N.forEach(function(u){L.call(Z,u,S,this)},this)},this)};
_.t.getKeys=function(){_.gp(this);for(var L=Array.from(this.keyMap_.values()),Z=Array.from(this.keyMap_.keys()),N=[],S=0;S<Z.length;S++)for(var u=L[S],T=0;T<u.length;T++)N.push(Z[S]);return N};
_.t.getValues=function(L){_.gp(this);var Z=[];if(typeof L==="string")this.containsKey(L)&&(Z=Z.concat(this.keyMap_.get(GQ(this,L))));else{L=Array.from(this.keyMap_.values());for(var N=0;N<L.length;N++)Z=Z.concat(L[N])}return Z};
_.t.set=function(L,Z){_.gp(this);this.encodedQuery_=null;L=GQ(this,L);this.containsKey(L)&&(this.count_-=this.keyMap_.get(L).length);this.keyMap_.set(L,[Z]);this.count_+=1;return this};
_.t.get=function(L,Z){if(!L)return Z;L=this.getValues(L);return L.length>0?String(L[0]):Z};
_.gEY=function(L,Z,N){L.remove(Z);N.length>0&&(L.encodedQuery_=null,L.keyMap_.set(GQ(L,Z),_.mh(N)),L.count_+=N.length)};
_.VI.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var L=[],Z=Array.from(this.keyMap_.keys()),N=0;N<Z.length;N++){var S=Z[N],u=_.Nu(S);S=this.getValues(S);for(var T=0;T<S.length;T++){var W=u;S[T]!==""&&(W+="="+_.Nu(S[T]));L.push(W)}}return this.encodedQuery_=L.join("&")};
_.VI.prototype.clone=function(){var L=new _.VI;L.encodedQuery_=this.encodedQuery_;this.keyMap_&&(L.keyMap_=new Map(this.keyMap_),L.count_=this.count_);return L};
var GQ=function(L,Z){Z=String(Z);L.JSC$10032_ignoreCase_&&(Z=Z.toLowerCase());return Z},V2t=function(L,Z){Z&&!L.JSC$10032_ignoreCase_&&(_.gp(L),L.encodedQuery_=null,L.keyMap_.forEach(function(N,S){var u=S.toLowerCase();
S!=u&&(this.remove(S),_.gEY(this,u,N))},L));
L.JSC$10032_ignoreCase_=Z};
_.VI.prototype.extend=function(L){for(var Z=0;Z<arguments.length;Z++)uvQ(arguments[Z],function(N,S){this.add(S,N)},this)};var FG=function(L,Z){A4.call(this);for(var N=0,S;S=QZh[N];N++)if(S in L&&!/^https?:\/\//.test(L[S]))throw Error("Ra`"+L[S]+"`"+S);this.cfg_=L;this.name=this.cfg_.cn||AaL();this.JSC$10027_domHelper_=Z||Im();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.oM(this);L.lpu=L.lpu||x8q(this.JSC$10027_domHelper_.getWindow().location.href)+"/robots.txt";L.ppu=L.ppu||x8q(L.pu||"")+"/robots.txt";Z3[this.name]=this;Nj0(window,"unload",GIO)||VV(window,"unload",GIO)};
_.Qk(FG,A4);var FSL=RegExp("^%*tp$"),$Cs=RegExp("^%+tp$");_.t=FG.prototype;_.t.connectionDelay_=null;_.t.peerWindowDeferred_=null;_.t.transport_=null;_.t.state_=1;_.t.isConnected=function(){return this.state_==2};
_.t.peerWindowObject_=null;_.t.iframeElement_=null;_.t.getConfig=function(){return this.cfg_};
_.t.connect=function(L){this.connectCb_=L||_.on;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Ejl(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.t.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10027_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var L=this.iframeElement_.contentWindow;L||(L=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=L}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$10027_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new LL(this,this.cfg_.ph,this.JSC$10027_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()()};
_.t.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.W4(this.transport_);this.connectCb_=this.transport_=null;_.W4(this.connectionDelay_);this.connectionDelay_=null};
_.t.send=function(L,Z){if(this.isConnected()){try{var N=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(u){N=!1}if(N){_.Q_(Z)&&(Z=(0,_.eJ)(Z));N=this.transport_;var S=N.send;FSL.test(L)&&(L="%"+L);L=L.replace(/[%:|]/g,encodeURIComponent);S.call(N,L,Z)}else this.close()}};
_.t.xpcDeliver=function(L,Z,N){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.hr)(this.xpcDeliver,this,L,Z,N));else if(q6t(this,N)&&!this.isDisposed()&&this.state_!=3)if(L&&L!="tp")this.isConnected()&&(L=L.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),L=$Cs.test(L)?L.substring(1):L,L=this.getService(L,Z))&&(Z=dOq(Z,L.objectPayload),Z!=null&&L.callback(Z));else switch(L=this.transport_,N=xOs(Z),Z=N[1],N[0]){case "SETUP_ACK":SIl(L,1);L.setupAckReceived_.fired_||L.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":L.protocolVersion_==2&&(SIl(L,2),L.setupAckReceived_.fired_||L.setupAckReceived_.callback(!0));break;case "SETUP":SIl(L,1);NYL(L,1);break;case "SETUP_NTPV2":L.protocolVersion_==2&&(N=L.peerProtocolVersion_,SIl(L,2),NYL(L,2),N!=1&&L.peerEndpointId_==null||L.peerEndpointId_==Z||ZAh(L),L.peerEndpointId_=Z)}};
var HQY=function(L){var Z=L.cfg_.role;return typeof Z==="number"?Z:window.parent==L.peerWindowObject_?1:0},q6t=function(L,Z){var N=L.cfg_.ph;
return _.V_(Z==null?"":String(Z))||_.V_(N==null?"":String(N))||Z==L.cfg_.ph};
FG.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Z3[this.name];_.W4(this.peerLoadHandler_);delete this.peerLoadHandler_;FG.superClass_.disposeInternal.call(this)};
var GIO=function(){for(var L in Z3)_.W4(Z3[L])},Z3={};var ll5=function(L,Z){this.win=L;this.allowAdsHttpEndpoint=Z;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10041_domHelper=Im(L);this.scrollManager=new Y6L(L);this.accessibilityManager=new fkY(L);DCh(this)},DCh=function(L){var Z=function(){L.allowAdsPopup&&L.allowAdsPopup.style.setProperty("display","none","important");
L.wallElement.style.setProperty("display","","important");kTV(L.accessibilityManager);UOs(L.accessibilityManager,L.wallElement.querySelector(".fc-dialog-container"),!1,!1,L.wallElement.querySelector(".fc-button-whitelist"));L.scrollManager.enableScrolling()};
L.allowAdsPopup=L.JSC$10041_domHelper.JSC$9327_createDom("DIV",{"class":"fc-whitelist-root"});L.allowAdsPopup.style.setProperty("display","none","important");L.JSC$10041_domHelper.appendChild(L.JSC$10041_domHelper.JSC$9325_document_.body,L.allowAdsPopup);var N=L.JSC$10041_domHelper.JSC$9327_createDom("DIV",{"class":"fc-dialog-overlay"});L.JSC$10041_domHelper.appendChild(L.allowAdsPopup,N);var S=L.JSC$10041_domHelper.JSC$9327_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:Z});L.JSC$10041_domHelper.appendChild(L.allowAdsPopup,
S);N=L.JSC$10041_domHelper.JSC$9327_createDom("IFRAME");N.className="fc-whitelist-dialog";N.frameBorder="0";N.id="fc-whitelist-iframe";N.tabIndex="0";_.qq(N,L.allowAdsHttpEndpoint);L.JSC$10041_domHelper.appendChild(S,N);S={};S.pu=_.en(L.allowAdsHttpEndpoint).toString();S.tp=1;S.cn="fc-whitelist-channel";S.ifrid=N.id;S.osh=!0;L.allowAdsCrossPageChannel=new FG(S);L.allowAdsCrossPageChannel.registerService("close",Z);L.allowAdsCrossPageChannel.registerService("refresh",function(){L.win.location.reload()});
L.allowAdsCrossPageChannel.registerService("resize",function(u){if(u){var T=L.allowAdsPopup.querySelector(".fc-whitelist-dialog");u.width&&T.style.setProperty("width",u.width,"important");u.height&&T.style.setProperty("height",u.height,"important")}},!0);
L.allowAdsCrossPageChannel.connect()};
ll5.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10041_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var $W=window,D3=document,vEh=$W.location,oEs=function(){},R90=/\[native code\]/,lx=function(L,Z,N){return L[Z]=L[Z]||N},cV5=function(L){L=L.sort();
for(var Z=[],N=void 0,S=0;S<L.length;S++){var u=L[S];u!=N&&Z.push(u);N=u}return Z},vF=function(){var L;
if((L=Object.create)&&R90.test(L))L=L(null);else{L={};for(var Z in L)L[Z]=void 0}return L},oT=lx($W,"gapi",{});var RT={};RT=lx($W,"___jsl",vF());lx(RT,"I",0);lx(RT,"hel",10);var nEY=function(){var L=vEh.href;if(RT.dpo)var Z=RT.h;else{Z=RT.h;var N=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),S=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(L=L&&(N.exec(L)||S.exec(L)))try{Z=decodeURIComponent(L[2])}catch(u){}}return Z},KSN=function(L){var Z=lx(RT,"PQ",[]);
RT.PQ=[];var N=Z.length;if(N===0)L();else for(var S=0,u=function(){++S===N&&L()},T=0;T<N;T++)Z[T](u)},flq=function(L){return lx(lx(RT,"H",vF()),L,vF())};var cF=function(L){this.JSC$10043_obj_=L};
cF.prototype.value=function(){return this.JSC$10043_obj_};
cF.prototype.getWidth=function(){return this.JSC$10043_obj_.width};
cF.prototype.getHeight=function(){return this.JSC$10043_obj_.height};
cF.prototype.getStyle=function(){return this.JSC$10043_obj_.style};var kI0=function(L){this.JSC$10046_obj_=L||{}};
_.t=kI0.prototype;_.t.value=function(){return this.JSC$10046_obj_};
_.t.setUrl=function(L){this.JSC$10046_obj_.url=L;return this};
_.t.getUrl=function(){return this.JSC$10046_obj_.url};
_.t.getStyle=function(){return this.JSC$10046_obj_.style};
_.t.getId=function(){return this.JSC$10046_obj_.id};
_.t.getContext=function(){return this.JSC$10046_obj_.context};
var yV0=function(L){L.JSC$10046_obj_.attributes=L.JSC$10046_obj_.attributes||{};return new cF(L.JSC$10046_obj_.attributes)};var wKq=function(){kI0.apply(this,arguments)};
_.f(wKq,kI0);var UC0=lx(RT,"perf",vF());lx(UC0,"g",vF());var YIN=lx(UC0,"i",vF());lx(UC0,"r",[]);vF();vF();var Ilq=function(L,Z,N){Z&&Z.length>0&&(Z=e90(Z),N&&N.length>0&&(Z+="___"+e90(N)),Z.length>28&&(Z=Z.substr(0,28)+(Z.length-28)),N=Z,Z=lx(YIN,"_p",vF()),lx(Z,N,vF())[L]=(new Date).getTime(),Z=UC0.r,typeof Z==="function"?Z(L,"_p",N):Z.push([L,"_p",N]))},e90=function(L){return L.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var dCO=vF(),alt=[],nL=function(L){throw Error("Ua`"+L);};
alt.push(["jsl",function(L){for(var Z in L)if(Object.prototype.hasOwnProperty.call(L,Z)){var N=L[Z];typeof N=="object"?RT[Z]=lx(RT,Z,[]).concat(N):lx(RT,Z,N)}if(Z=L.u)L=lx(RT,"us",[]),L.push(Z),(Z=/^https:(.*)$/.exec(Z))&&L.push("http:"+Z[1])}]);
var h9L=/^(\/[a-zA-Z0-9_\-]+)+$/,sWV=[/\/amp\//,/\/amp$/,/^\/amp$/],jWM=/^[a-zA-Z0-9\-_\.,!]+$/,EEl=/^gapi\.loaded_[0-9]+$/,PRV=/^[a-zA-Z0-9,._-]+$/,JVY=function(L,Z,N,S,u){var T=L.split(";"),W=T.shift(),V=dCO[W],M=null;V?M=V(T,Z,N,S):nL("no hint processor for: "+W);M||nL("failed to generate load url");Z=M;N=Z.match(pK5);(S=Z.match(z9h))&&S.length===1&&mCI.test(Z)&&N&&N.length===1||nL("failed sanity: "+L);try{L="?";if(u&&u.length>0){a0G(u);var G=u.join(",");M=M+"?le="+G;L="&"}if(RT.rol){var D=RT.ol;
D&&D.length&&(M=""+M+L+"ol="+D.length)}}catch(l){}return M},QWQ=function(L,Z,N,S){L=CRs(L);
EEl.test(N)||nL("invalid_callback");Z=rVY(Z);S=S&&S.length?rVY(S):null;var u=function(T){return encodeURIComponent(T).replace(/%2C/g,",")};
return[encodeURIComponent(L.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",u(L.version),"/m=",u(Z),S?"/exm="+u(S):"","/rt=j/sv=1/d=1/ed=1",L.activeMods?"/am="+u(L.activeMods):"",L.resourceSig?"/rs="+u(L.resourceSig):"",L.zcms?"/t="+u(L.zcms):"","/cb=",u(N)].join("")},CRs=function(L){L.charAt(0)!=="/"&&nL("relative path");
for(var Z=L.substring(1).split("/"),N=[];Z.length;){L=Z.shift();if(!L.length||L.indexOf(".")==0)nL("empty/relative directory");else if(L.indexOf("=")>0){Z.unshift(L);break}N.push(L)}L={};for(var S=0,u=Z.length;S<u;++S){var T=Z[S].split("="),W=decodeURIComponent(T[0]),V=decodeURIComponent(T[1]);T.length==2&&W&&V&&(L[W]=L[W]||V)}Z="/"+N.join("/");h9L.test(Z)||nL("invalid_prefix");N=0;for(S=sWV.length;N<S;++N)sWV[N].test(Z)&&nL("invalid_prefix");N=XKL(L,"k",!0);S=XKL(L,"am");u=XKL(L,"rs");L=XKL(L,"t");
return{pathPrefix:Z,version:N,activeMods:S,resourceSig:u,zcms:L}},rVY=function(L){for(var Z=[],N=0,S=L.length;N<S;++N){var u=L[N].replace(/\./g,"_").replace(/-/g,"_");
PRV.test(u)&&Z.push(u)}return Z.join(",")},XKL=function(L,Z,N){L=L[Z];
!L&&N&&nL("missing: "+Z);if(L){if(jWM.test(L))return L;nL("invalid: "+Z)}return null},mCI=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,z9h=/\/cb=/g,pK5=/\/\//g;
dCO.m=function(L,Z,N,S){(L=L[0])||nL("missing_hint");return"https://apis.google.com"+QWQ(L,Z,N,S)};
var AVV=decodeURI("%73cript"),HA0=/^[-+_0-9\/A-Za-z]+={0,2}$/,BYI=function(L,Z){for(var N=[],S=0;S<L.length;++S){var u=L[S],T;if(T=u){a:{for(T=0;T<Z.length;T++)if(Z[T]===u)break a;T=-1}T=T<0}T&&N.push(u)}return N},xCt=function(){var L=RT.nonce;
return L!==void 0?L&&L===String(L)&&L.match(HA0)?L:RT.nonce=null:D3.querySelector?(L=D3.querySelector("script[nonce]"))?(L=L.nonce||L.getAttribute("nonce")||"",L&&L===String(L)&&L.match(HA0)?RT.nonce=L:RT.nonce=null):null:null},Zoh=function(L){if(D3.readyState!="loading")qIY(L);
else{var Z=xCt(),N="";Z!==null&&(N=' nonce="'+Z+'"');L="<"+AVV+' src="'+encodeURI(L)+'"'+N+"></"+AVV+">";D3.write(Ldt?Ldt.createHTML(L):L)}},qIY=function(L){var Z=D3.createElement(AVV);
Z.setAttribute("src",Ldt?Ldt.createScriptURL(L):L);L=xCt();L!==null&&Z.setAttribute("nonce",L);Z.async="true";(L=D3.getElementsByTagName(AVV)[0])?L.parentNode.insertBefore(Z,L):(D3.head||D3.body||D3.documentElement).appendChild(Z)},SVN=function(L,Z,N){Nxt(function(){var S=Z===nEY()?lx(oT,"_",vF()):vF();
S=lx(flq(Z),"_",S);L(S)},N)},uNB=function(L,Z){var N=Z||{};
typeof Z=="function"&&(N={},N.callback=Z);var S=(Z=N)&&Z._c;if(S)for(var u=0;u<alt.length;u++){var T=alt[u][0],W=alt[u][1];W&&Object.prototype.hasOwnProperty.call(S,T)&&W(S[T],L,Z)}Z=[];L?Z=L.split(":"):N.features&&(Z=N.features);if(!(L=N.h)&&(L=nEY(),!L))throw Error("Va");ioQ(Z||[],N,L)},ioQ=function(L,Z,N){L=cV5(L)||[];
var S=Z.callback,u=Z.config,T=Z.timeout,W=Z.ontimeout,V=Z.onerror,M=void 0;typeof V=="function"&&(M=V);var G=null,D=!1;if(T&&!W||!T&&W)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";V=lx(flq(N),"r",[]).sort();var l=lx(flq(N),"L",[]).sort(),v=RT.le||[],R=[].concat(V),K=function(A,J){if(D)return 0;$W.clearTimeout(G);l.push.apply(l,U);var C=((oT||{}).config||{}).update;C?C(u):u&&lx(RT,"cu",[]).push(u);if(J){Ilq("me0",A,R);try{SVN(J,N,M)}finally{Ilq("me1",A,R)}}return 1};
T>0&&(G=$W.setTimeout(function(){D=!0;W()},T));
var U=BYI(L,l);if(U.length){U=BYI(L,V);var d=lx(RT,"CP",[]),h=d.length;d[h]=function(A){if(!A)return 0;Ilq("ml1",U,R);var J=function(X){d[h]=null;K(U,A)&&KSN(function(){S&&S();X()})},C=function(){var X=d[h+1];
X&&X()};
h>0&&d[h-1]?d[h]=function(){J(C)}:J(C)};
if(U.length){var E="loaded_"+RT.I++;oT[E]=function(A){d[h](A);oT[E]=null};
L=JVY(N,U,"gapi."+E,V,v);V.push.apply(V,U);Ilq("ml0",U,R);Z.sync||$W.___gapisync?Zoh(L):qIY(L)}else d[h](oEs)}else K(U)&&S&&S()},ulO;
var Tx0=null,tSL=_.iH.trustedTypes;if(tSL&&tSL.createPolicy){try{Tx0=tSL.createPolicy("goog#gapi",{createHTML:O1s,createScript:O1s,createScriptURL:O1s})}catch(L){_.iH.console&&_.iH.console.error(L.message)}ulO=Tx0}else ulO=Tx0;var Ldt=ulO,Nxt=function(L,Z){if(RT.hee&&RT.hel>0)try{return L()}catch(N){Z&&Z(N),RT.hel--,uNB("debug_error",function(){try{window.___jsl.hefn(N)}catch(S){throw N;}})}else try{return L()}catch(N){throw Z&&Z(N),N;
}},OoO=oT.load;
OoO&&lx(RT,"ol",[]).push(OoO);oT.load=function(L,Z){return Nxt(function(){return uNB(L,Z)})};var XW_;var VSh=function(L,Z){var N=N||[];this.serviceId_=L;this.moduleId_=Z||null;this.dependencies_=[];Wds(this,N)};
VSh.prototype.toString=function(){return this.serviceId_};
VSh.prototype.getModuleId=function(){return this.moduleId_};
var Wds=function(L,Z){var N=!1;N=N===void 0?!1:N;L.dependencies_=L.dependencies_.concat(Z);if(N){if(!L.moduleId_)throw Error("Wa`"+L.serviceId_);Z.map(function(S){return S.getModuleId()}).forEach(function(S){A3_(function(u){u.addExtraEdge(L.moduleId_,S)})})}};var hCH=new VSh("MpJwZc","MpJwZc");var ydB=new _.ll("a"),jMw=new _.ll("c"),sMt=function(L,Z,N){_.vn.call(this,L,Z);this.node=Z;this.kind=N};
_.f(sMt,_.vn);var boh=function(){this.JSC$10059_keys_={};this.urlPrefix_="";this.JSC$10059_queryData_={}};
boh.prototype.toString=function(){var L=this.urlPrefix_+MSQ(this),Z=_.wv(this.JSC$10059_queryData_),N="";Z!=""&&(N="?"+Z);return L+N};
var gbt=function(L){L=KL(L,"md");return!!L&&L!=="0"},MSQ=function(L){var Z=[],N=function(S){L.JSC$10059_keys_[S]!==void 0&&Z.push(S+"="+L.JSC$10059_keys_[S])};
gbt(L)?(N("md"),N("k"),N("ck"),N("am"),N("rs"),N("gssmodulesetproto"),N("slk"),N("dti")):(N("sdch"),N("k"),N("ck"),N("am"),N("rt"),"d"in L.JSC$10059_keys_||fL(L,"d","0"),N("d"),N("exm"),N("excm"),(L.JSC$10059_keys_.excm||L.JSC$10059_keys_.exm)&&Z.push("ed=1"),N("im"),N("dg"),N("sm"),KL(L,"br")!="1"&&KL(L,"br")!="0"||N("br"),N("br-d"),KL(L,"rb")=="1"&&N("rb"),KL(L,"zs")!=="0"&&N("zs"),GDV(L)!==""&&N("wt"),N("gssmodulesetproto"),N("ujg"),N("sp"),N("rs"),N("cb"),N("ee"),N("slk"),N("dti"),N("m"));return Z.join("/")},
KL=function(L,Z){return L.JSC$10059_keys_[Z]?L.JSC$10059_keys_[Z]:null},fL=function(L,Z,N){N?L.JSC$10059_keys_[Z]=N:delete L.JSC$10059_keys_[Z]},Fdl=function(L,Z){L.urlPrefix_=Z},$4I=function(L,Z){Z&&Z.length>0?(Z.sort(),fL(L,"exm",Z.join(","))):fL(L,"exm",null)},D4s=function(L,Z){Z&&Z.length>0?(Z.sort(),fL(L,"excm",Z.join(","))):fL(L,"excm",null)},lbM=function(L){return(L=KL(L,"m"))?L.split(","):[]},GDV=function(L){switch(KL(L,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},vbs=function(L,Z){var N=Object.keys(Z).filter(function(S){return!!Object.keys(Z[S]).length}).map(function(S){var u=Object.keys(Z[S]);
u.length>1&&u.sort();return S+":"+u.join(",")});
N.sort();fL(L,"ee",N.join(";"))},pxL=function(L){var Z=KL(L,"ee");
if(!Z)return{};L={};Z=_.O(Z.split(";"));for(var N=Z.next();!N.done;N=Z.next()){var S=_.O(N.value.split(":"));N=S.next().value;S=S.next().value;L[N]={};S=_.O(S.split(","));for(var u=S.next();!u.done;u=S.next())L[N][u.value]=!0}return L},obt=function(L){delete L.JSC$10059_keys_.m;
delete L.JSC$10059_keys_.exm;delete L.JSC$10059_keys_.ed};
boh.prototype.clone=function(){var L=new boh;L.JSC$10059_keys_=Object.assign({},this.JSC$10059_keys_);L.urlPrefix_=this.urlPrefix_;L.JSC$10059_queryData_=Object.assign({},this.JSC$10059_queryData_);return L};
var zGs=function(L,Z){Z=Z===void 0?!0:Z;var N=R5q(L),S=new boh,u=_.Or(N)[5];_.Py.forEach(c2t,function(W){var V=u.match("/"+W+"=([^/]+)");V&&fL(S,W,V[1])});
var T="";T=L.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";Fdl(S,L.substr(0,L.indexOf(T)+T.length));if(!Z)return S;(L=_.Or(N)[6]||null)&&LmQ(L,function(W,V){S.JSC$10059_queryData_[W]=V});
return S},jZ_=function(L){L=_.ks(R5q(L));
return L===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(L)?/\/k=/.test(L):!1},R5q=function(L){return L.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?L.substr(65):L},c2t={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},nbt=RegExp("^loaded_(g|h)?[_\\d]+$");_.kW=function(L){this.JSC$10071_id_=L;this.opts={}};
_.kW.prototype.JSC$10073_setLabel=function(L){this.label_=L||void 0;return this};
_.kW.prototype.addUploadMetadata=function(L,Z){var N=this.opts.data||{};N[L]=Z;this.opts.data=N;return this};
var KdL=function(L){var Z=_.Py.filter(L.opts,function(N){return N!==null});
Z=_.Py.isEmpty(Z)?null:Z;L=[L.JSC$10071_id_,L.label_,Z];Z=ULt(L);return L=L.slice(0,Z+1)};
_.kW.prototype.toString=function(){var L=KdL(this);return"("+_.px(L,function(Z){return JSON.stringify(Z)}).join(",")+")"};
_.kW.prototype.getId=function(){return this.JSC$10071_id_};
_.kW.prototype.getOptions=function(){return _.Py.clone(this.opts)};var yI=function(){_.kW.call(this,"image-search")};
_.f(yI,_.kW);yI.prototype.setSize=function(L){this.opts.imgsz=L;return this};
yI.prototype.JSC$10073_setLabel=function(L){_.kW.prototype.JSC$10073_setLabel.call(this,L);return this};
yI.prototype.addUploadMetadata=function(L,Z){_.kW.prototype.addUploadMetadata.call(this,L,Z);return this};var wp=function(){_.kW.call(this,"maps")};
_.f(wp,_.kW);wp.prototype.setZoom=function(L){this.opts.zoom=L;return this};
wp.prototype.JSC$10073_setLabel=function(L){_.kW.prototype.JSC$10073_setLabel.call(this,L);return this};
wp.prototype.addUploadMetadata=function(L,Z){_.kW.prototype.addUploadMetadata.call(this,L,Z);return this};_.Ut=function(){_.kW.call(this,"photos")};
_.f(_.Ut,_.kW);_.Ut.prototype.JSC$10073_setLabel=function(L){_.kW.prototype.JSC$10073_setLabel.call(this,L);return this};
_.Ut.prototype.addUploadMetadata=function(L,Z){_.kW.prototype.addUploadMetadata.call(this,L,Z);return this};var YW=function(){_.kW.call(this,"url")};
_.f(YW,_.kW);var fbY=function(){var L=new YW;L.opts.type="video";L.opts.site="youtube.com";return L};
YW.prototype.JSC$10073_setLabel=function(L){_.kW.prototype.JSC$10073_setLabel.call(this,L);return this};
YW.prototype.addUploadMetadata=function(L,Z){_.kW.prototype.addUploadMetadata.call(this,L,Z);return this};var e7=function(){_.kW.call(this,"video-search")};
_.f(e7,_.kW);var kDI=function(){var L=new e7;L.opts.site="youtube.com";return L};
e7.prototype.JSC$10073_setLabel=function(L){_.kW.prototype.JSC$10073_setLabel.call(this,L);return this};
e7.prototype.addUploadMetadata=function(L,Z){_.kW.prototype.addUploadMetadata.call(this,L,Z);return this};var y2V=function(){_.kW.call(this,"web")};
_.f(y2V,_.kW);y2V.prototype.JSC$10073_setLabel=function(L){_.kW.prototype.JSC$10073_setLabel.call(this,L);return this};
y2V.prototype.addUploadMetadata=function(L,Z){_.kW.prototype.addUploadMetadata.call(this,L,Z);return this};var IT=function(){this.items_=[];this.opts={}},wMM=function(L){switch(L){case "image-search":return new yI;
case "maps":return new wp;case "photos":return new _.Ut;case "url":return new YW;case "video-search":return new e7;case "web":return new y2V}return new _.kW(L)};
IT.prototype.addView=function(L){this.items_.push(typeof L==="string"?wMM(L):L);return this};
var U4t=function(L){return"("+_.px(L.items_,function(Z){return Z.toString()}).join(",")+")"};
IT.prototype.toString=function(){return U4t(this)};
IT.prototype.getViews=function(L,Z){Z=Z===void 0?[]:Z;for(var N=this.items_,S=0;S<N.length;S++){var u=N[S];u instanceof IT?u.getViews(L,Z):u.getId()==L&&Z.push(u)}return Z};
IT.prototype.getOptions=function(){return _.Py.clone(this.opts)};var rZ=function(L){this.basePickerUrl_=L||"https://docs.google.com/picker";this.nav_=new IT};
rZ.prototype.nav_=null;rZ.prototype.addView=function(L){this.nav_.addView(L);return this};
rZ.prototype.getBaseUrl=function(){return this.basePickerUrl_};
rZ.prototype.getViews=function(L){return this.nav_.getViews(L)};
_.YVM=function(L,Z){L.callback_=Z;return L};var e5O=new Map;e5O.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");e5O.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");e5O.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var Ib0=new Set;Ib0.add("application/vnd.google-apps.kix");Ib0.add("application/vnd.google-apps.ritz");Ib0.add("application/vnd.google-apps.punch");var Cet=function(L,Z,N){var S=N&&_.va(N,1);N=d4h(N);var u=L[0].getId();switch(_.oA(u,2)){case 13:return abM(L,Z,S,N);case 3:return h5q(L,Z,S,N);case 10:return s6L(L,Z,S,N);case 27:return s6L(L,Z,S,N);case 12:return j6t(L,Z);case 2:return EbL(L,Z,S,N);case 5:return PeQ(L,Z,S,N);case 9:return pMt(L,Z,S,N);case 6:return z5L(L,Z,S,N);case 25:return m4l(L,Z,S,N);case 1:return _.OW(L[0],$GN,26)?J2Y(L,Z,S,N):s6L(L,Z,S,N);default:return{}}},z5L=function(L,Z,N,S){L=L.map(function(u){return{id:u.getId().getId(),
serviceId:"youtube",name:u.getName(),description:_.va(u,3),type:dp(u),lastEditedUtc:_.FmM(_.lp(u,_.oL,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:u.getUrl(),embedUrl:_.va(u,13),thumbnails:aT(qY(u))}});
return{action:Z,docs:L,viewToken:S,view:N||"youtube",v2Translated:!0}},EbL=function(L,Z,N,S){var u=L.map(function(T){var W=T.getId().getId(),V=_.va(T,7),M=T.getName(),G=dp(T),D=_.FmM(_.lp(T,_.oL,12)).getTime(),l=T.getUrl(),v=Number(fNL(T)),R=_.va(T,3),K=_.va(T,11),U=aT(qY(T));
var d=_.lp(T,Lc,21);d=_.$T(d,1);var h=_.lp(T,Lc,21);h=_.va(h,10);var E=_.va(T,13);var A=_.lp(T,Lc,21);A=_.$T(A,9);var J=_.lp(T,Lc,21);J=_.va(J,11);W={id:W,serviceId:"docs",mimeType:V,name:M,type:G,lastEditedUtc:D,url:l,sizeBytes:v,description:R,iconUrl:K,thumbnails:U,isShared:d,downloadUrl:h,embedUrl:E,copyable:A,resourceKey:J};V=_.lp(T,Lc,21);_.$T(V,12)&&(W.uploadState="success",W.isNew=!0);V=_.lp(T,Lc,21);_.OW(V,Hz,3)&&(T=_.lp(T,Lc,21),T=_.lp(T,Hz,3),_.OW(T,Xi,2)&&(V=Jr(T.getDuration().getSeconds()),
M=T.getDuration(),M=_.G3(M,2),W.duration=V+M/1E9),W.aspectRatio=T.getAspectRatio());return W});
return{action:Z,docs:u,viewToken:S,view:N||"all",extraUserInputs:r2t(L),v2Translated:!0}},PeQ=function(L,Z,N,S){L=L.map(function(u){var T=_.lp(u,fGM,15);
T=_.lp(T,AY,1);YE(u,10,AY,T);return{id:u.getId().getId(),serviceId:"web",mimeType:_.va(u,7),name:u.getName(),type:dp(u),url:u.getUrl(),description:_.va(u,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aT(qY(u))}});
return{action:Z,docs:L,viewToken:S,view:N||"image-search",v2Translated:!0}},pMt=function(L,Z,N,S){L=L.map(function(u){return{serviceId:"url",
name:qY(u)[0].getUrl().split("/").pop(),type:dp(u),mimeType:_.va(u,7),url:u.getUrl(),description:_.va(u,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aT(qY(u))}});
return{action:Z,docs:L,viewToken:S,view:N||"url",v2Translated:!0}},J2Y=function(L,Z,N,S){L=L.map(function(u){return{id:u.getId().getId(),
serviceId:"picasa",name:u.getName(),type:dp(u),description:_.va(u,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aT(qY(u))}});
return{action:Z,docs:L,viewToken:S,view:N||"webcam",v2Translated:!0}},s6L=function(L,Z,N,S){return{action:Z,
docs:L.map(Q6M),viewToken:S,view:XMs(N||"upload",L),extraUserInputs:r2t(L),v2Translated:!0}},XMs=function(L,Z){return Z.some(function(N){var S;
return((S=_.lp(N,Bz,30))==null?void 0:_.oA(S,3))===9})?L+"/gmailphotos":L},h5q=function(L,Z,N,S){var u=L.map(function(T){var W={id:T.getId().getId(),
serviceId:"picasa",mimeType:_.va(T,7),name:T.getName(),type:dp(T),lastEditedUtc:_.FmM(_.lp(T,_.oL,12)).getTime(),url:T.getUrl(),sizeBytes:Number(fNL(T)),description:_.va(T,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aT(qY(T)),mediaKey:T.getId().getId(),parentId:_.va(T,4)},V,M=(V=_.lp(T,v$h,18))==null?void 0:_.lp(V,lGY,3);M&&(W.latitude=ly(M,1),W.longitude=ly(M,2));var G;T=(G=_.lp(T,v$h,18))==null?void 0:Di(G,6);G=T!=null?Jr(T):void 0;G&&(W.version=
G);return W});
return{action:Z,docs:u,viewToken:S,view:N||"photos",extraUserInputs:r2t(L),v2Translated:!0}},abM=function(L,Z,N,S){L=L.map(function(u){return{id:u.getId().getId(),
serviceId:"et",name:qY(u)[0].getUrl().split("/").pop(),description:_.va(u,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aT(qY(u),"etjpg")}});
return{action:Z,docs:L,viewToken:S,view:N||"et",v2Translated:!0}},m4l=function(L,Z,N,S){L=L.map(function(u){var T=u.getId().getId(),W=S["2"];
return{id:T,serviceId:W.type!=="gmail_themes"&&W.parent==="6226252643674576769"?"picasa":"static_themes",name:u.getName(),mimeType:_.va(u,7),type:dp(u),description:_.va(u,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:u.getUrl(),embedUrl:u.getUrl(),thumbnails:aT(qY(u))}});
return{action:Z,docs:L,viewToken:S,view:N||"photos",v2Translated:!0}},j6t=function(L,Z){L=L.map(function(N){var S=_.lp(N,DGM,27);
S=_.Bw(S,1,_.K8,_.gZ())[0];return{id:N.getId().getId(),serviceId:"contacts",mimeType:_.va(N,7),name:N.getName(),description:_.va(N,3),url:"mailto:"+S,thumbnail:[{url:_.va(N,11)}],email:S}});
return{action:Z,docs:L,view:"contacts",v2Translated:!0}},d4h=function(L){if(!L)return{};
var Z=_.va(L,3);Z=Z&&JSON.parse(Z)||{};return{0:_.va(L,1),1:_.va(L,2),2:Z}},aT=function(L,Z){Z=Z===void 0?"":Z;
if(!L.length)return null;Z=="etjpg"&&(L=L.filter(function(N){return N.getUrl().includes("w1200-h300")}));
return L.map(function(N){return{url:N.getUrl(),height:N.getHeight(),width:N.getWidth(),type:Z}})},r2t=function(L){return{isAttachment:L.some(function(Z){return _.$T(Z,31)})}},Q6M=function(L){var Z,N={id:(Z=L.getId())==null?void 0:Z.getId(),
serviceId:A25(L),mimeType:_.va(L,7),name:L.getName(),type:dp(L),sizeBytes:Number(fNL(L)),description:_.va(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aT(qY(L)),isNew:!0};if(Z=_.lp(L,Bz,30)){N.dataUrl=_.va(Z,1)||null;a:{var S=_.lp(L,Bz,30);switch(_.oA(S,3)){case 9:S=_.f5(S,n$Q,2,xp);S={remoteRefs:S&&_.va(S,1)};break a;case 10:case 15:S=_.f5(S,crh,4,xp);var u=qY(L);S={photo_id:S&&_.va(S,1),media_key:L.getId().getId(),media_type:_.oA(L,6)===1?1:2,image_url:u&&
u[0].getUrl(),width:u&&String(u[0].getWidth()),height:u&&String(u[0].getHeight())};break a}S=null}N.uploadMetadata=S;N.uploadId=_.va(Z,9)||null;N.uploadState=HoM(Z)||null}(S=Z&&_.f5(Z,crh,4,xp))&&(N.id=_.va(S,1));(S=Z&&_.f5(Z,KmN,5,xp))&&(N.contentId=_.va(S,1));(S=Z&&_.f5(Z,o$t,7,xp))&&(N.contentId=_.va(S,1));(S=Z&&_.f5(Z,Reh,6,xp))&&(N.contentId=_.va(S,1));(Z==null?void 0:_.oA(Z,3))===1&&(N.mediaKey=L.getId().getId());return N},A25=function(L){var Z;
switch(((Z=_.lp(L,Bz,30))==null?void 0:_.oA(Z,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},dp=function(L){switch(_.oA(L,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 _.va(L,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},HoM=function(L){switch(L==null?void 0:_.oA(L,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 L_I,Bxt,x4q,qVl;_.ZHV=function(L,Z){var N=Z||{};Z=N.document||document;var S=_.en(L).toString(),u=(new f7(Z)).createElement("SCRIPT"),T={script_:u,timeout_:void 0},W=new Hn(Bxt,T),V=null,M=N.timeout!=null?N.timeout:5E3;M>0&&(V=window.setTimeout(function(){x4q(u,!0);W.errback(new qVl(1,"Timeout reached for loading script "+S))},M),T.timeout_=V);
u.onload=u.onreadystatechange=function(){u.readyState&&u.readyState!="loaded"&&u.readyState!="complete"||(x4q(u,N.cleanupWhenDone||!1,V),W.callback(null))};
u.onerror=function(){x4q(u,!0,V);W.errback(new qVl(0,"Error while loading script "+S))};
T=N.attributes||{};_.Py.extend(T,{type:"text/javascript",charset:"UTF-8"});tNq(u,T);_.TE(u,L);L_I(Z).appendChild(u);return W};
L_I=function(L){var Z=Y$("HEAD",L);return Z&&Z.length!==0?Z[0]:L.documentElement};
Bxt=function(){if(this&&this.script_){var L=this.script_;L&&L.tagName=="SCRIPT"&&x4q(L,!0,this.timeout_)}};
x4q=function(L,Z,N){N!=null&&_.iH.clearTimeout(N);L.onload=function(){};
L.onerror=function(){};
L.onreadystatechange=function(){};
Z&&window.setTimeout(function(){_.U_(L)},0)};
qVl=function(L,Z){var N="Jsloader error (code #"+L+")";Z&&(N+=": "+Z);_.NL.call(this,N);this.code=L};
_.Qk(qVl,_.NL);var NdM=_.sc(["https://apis.google.com/js/api.js"]),SUO=_.vy(NdM),tjt=function(L,Z,N){N=N===void 0?{}:N;var S=!1,u=iHs(L,Z,N).then(function(W){S=!0;return W}),T=_.YMt(5E3).then(function(){return S?iHs(L,Z,N):u$5(Z,N).then(function(W){return Tdq(W,L)})});
return l80([u,T])},iHs=function(L,Z,N){N=N===void 0?{}:N;
return OHY(Z,N).then(function(S){return Tdq(S,L)})},Tdq=function(L,Z){var N=_.TB(Z,"gapi.")?Z.slice(5):Z;
return L[N]?_.xP(L[N]):new _.kE(function(S,u){var T=U8(function(){u(Error("Ya"))},3E4);
L.load(Z,{callback:function(){_.iH.clearTimeout(T);S(L[N])},
onerror:function(W){_.iH.clearTimeout(T);u(W)}})})},OHY=function(L,Z){Z=Z===void 0?{}:Z;
return L.gapi&&L.gapi.load?_.xP(L.gapi):u$5(L,Z)},u$5=function(L,Z){Z=Z===void 0?{}:Z;
return _.ZHV(SUO,{document:L.document,attributes:Z}).then(function(){return L.gapi})},W_O=function(){};
W_O.prototype.load=function(L,Z,N){Z=Z===void 0?window:Z;N=N===void 0?{}:N;var S=Date.now();return tjt(L,Z,N).then(function(u){var T=Date.now();return{library:u,loadStartMs:S,loadEndMs:T}},function(u){throw u instanceof Error?u:Error(String(u));
})};var tXf=function(){_.ag.call(this);this.gapiLoader_=new W_O;this.origin_=null;this.gapiPickerIframeResolver_=_.hS();this.gapiIframesResolver_=_.hS();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.f(tXf,_.ag);var Vj0=function(L,Z){var N=N===void 0?{}:N;var S=_.LZ("gapi.iframes",Z);return S?(L=Date.now(),_.xP({library:S,loadStartMs:L,loadEndMs:L})):L.gapiLoader_.load("gapi.iframes",Z,N)},bHs=function(L,Z,N,S,u,T){var W=!1;
W=W===void 0?!1:W;Vj0(L,mt(Z.ownerDocument)).then(function(V){var M=V.library;L.gapiIframesResolver_.resolve(M);V=L.gapiPickerIframeResolver_;var G=V.resolve,D=W;D=D===void 0?!1:D;var l={};l["host-message-handler"]=N;L.hostMessageHandlerInternal_=l;var v=_.qG(S);v=_.qG(v);v=_.ux(_.ix(_.S7(new _.j9,v.scheme_),v.JSC$10031_domain_),v.JSC$10031_port_).toString();L.origin_=v;v=(new wKq).setUrl(S);v.JSC$10046_obj_.where=Z;v.JSC$10046_obj_.allowPost=D;v.JSC$10046_obj_.messageHandlers=l;D=_.LZ("makeWhiteListIframesFilter",
M)([L.origin_]);v.JSC$10046_obj_.messageHandlersFilter=D;u!=null&&(v.JSC$10046_obj_.id=u);T!=null&&(v.JSC$10046_obj_.rpctoken=T);D=yV0(v);D.JSC$10043_obj_.style={display:"block","min-width":"100%",width:"1px"};D.JSC$10043_obj_.height="100%";yV0(v).value().allow="camera 'src' "+L.origin_;M=M.getContext().openChild(v.value());G.call(V,M)},function(V){L.gapiIframesResolver_.reject(V);
L.gapiPickerIframeResolver_.reject(V)});
return L.gapiPickerIframeResolver_.promise},Mjl=function(L,Z){return _.yz([L.gapiIframesResolver_.promise,
L.gapiPickerIframeResolver_.promise]).then(function(N){var S=_.O(N);N=S.next().value;return(S=S.next().value)?S.send("picker-message-handler",Z,void 0,_.LZ("makeWhiteListIframesFilter",N)([L.origin_])):_.$N(Error("Za"))})};
tXf.prototype.disposeInternal=function(){gd0(this);_.ag.prototype.disposeInternal.call(this)};
var gd0=function(L){L.gapiPickerIframeResolver_.promise.then(function(Z){Z&&(Z.unregister("host-message-handler"),delete L.hostMessageHandlerInternal_["host-message-handler"])})};var GcO=function(){this.nextId=0};var $7I=function(L,Z){switch(L.action){case "select-contacts":L=F_t(L.contacts);break;case "visibility":L=L.visible;var N=new il;L=_.yM(N,1,7).setVisible(L);N={};N["iframe-command"]=L.serialize();L=N;break;default:L=null}return L?Mjl(Z,L):_.xP()},F_t=function(L){if(!L||L.length==0)return null;
var Z=new il;_.yM(Z,1,11);var N=new GcO;L.forEach(function(S){if(S.email){var u=new G5;u=_.ey(u,2,S.name?S.name:S.email);var T=new DGM;S=_.zvt(T,1,_.vw,S.email,_.K8);S=_.fG(u,27,S);u=new G3O;T=":"+(N.nextId++).toString(36);u=_.ey(u,1,T);u=_.yM(u,2,12);S=_.fG(S,1,u)}else S=null;S&&YE(Z,7,G5,S)});
L={};L["iframe-command"]=Z.serialize();return L};_.D7I=function(){if(PHq){var L=/Windows NT ([0-9.]+)/;return(L=L.exec(_.vs()))?L[1]:"0"}return _.Etq?(L=/1[0|1][_.][0-9_.]+/,(L=L.exec(_.vs()))?L[0].replace(/_/g,"."):"10"):rwF?(L=/Android\s+([^\);]+)(\)|;)/,(L=L.exec(_.vs()))?L[1]:""):zAL||mLL||JxV?(L=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(L=L.exec(_.vs()))?L[1].replace(/_/g,"."):""):""}();var hL;hL=function(L){return(L=L.exec(_.vs()))?L[1]:""};
_.lfL=function(){if(_.Zi)return hL(/Firefox\/([0-9.]+)/);if(_.BV||Wx||hAI)return BPM;if(_.NQ){if(_.IF()||_.f0A()){var L=hL(/CriOS\/([0-9.]+)/);if(L)return L}return hL(/Chrome\/([0-9.]+)/)}if(_.HW&&!_.IF())return hL(/Version\/([0-9.]+)/);if(Aq0||Hqw){if(L=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.vs()))return L[1]+"."+L[2]}else if(N5O)return(L=hL(/Android\s+([0-9.]+)/))?L:hL(/Version\/([0-9.]+)/);return""}();var vdV=function(){};
_.CM(vdV);vdV.prototype.nextId_=0;_.st=function(L){return":"+(L.nextId_++).toString(36)};var j7=function(L){_.Kc.call(this);this.JSC$10141_dom_=L||Im();this.JSC$10141_id_=null;this.inDocument_=!1;this.JSC$10141_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Qk(j7,_.Kc);j7.prototype.idGenerator_=vdV.getInstance();j7.prototype.getId=function(){return this.JSC$10141_id_||(this.JSC$10141_id_=_.st(this.idGenerator_))};
j7.prototype.getElement=function(){return this.JSC$10141_element_};
var Et=function(L){L.googUiComponentHandler_||(L.googUiComponentHandler_=new _.oM(L));return L.googUiComponentHandler_},odl=function(L,Z){if(L==Z)throw Error("$a");
var N;if(N=Z&&L.parent_&&L.JSC$10141_id_){N=L.parent_;var S=L.JSC$10141_id_;N=N.childIndex_&&S?_.Py.get(N.childIndex_,S)||null:null}if(N&&L.parent_!=Z)throw Error("$a");L.parent_=Z;j7.superClass_.setParentEventTarget.call(L,Z)};
j7.prototype.setParentEventTarget=function(L){if(this.parent_&&this.parent_!=L)throw Error("ab");j7.superClass_.setParentEventTarget.call(this,L)};
j7.prototype.JSC$10143_createDom=function(){this.JSC$10141_element_=this.JSC$10141_dom_.createElement("DIV")};
j7.prototype.render=function(L){RCt(this,L)};
var RCt=function(L,Z,N){if(L.inDocument_)throw Error("bb");L.JSC$10141_element_||L.JSC$10143_createDom();Z?Z.insertBefore(L.JSC$10141_element_,N||null):L.JSC$10141_dom_.JSC$9325_document_.body.appendChild(L.JSC$10141_element_);L.parent_&&!L.parent_.inDocument_||L.enterDocument()};
_.t=j7.prototype;_.t.decorate=function(L){if(this.inDocument_)throw Error("bb");if(L&&this.canDecorate(L)){this.wasDecorated_=!0;var Z=_.Jj(L);this.JSC$10141_dom_&&this.JSC$10141_dom_.JSC$9325_document_==Z||(this.JSC$10141_dom_=Im(L));this.decorateInternal(L);this.enterDocument()}else throw Error("cb");};
_.t.canDecorate=function(){return!0};
_.t.decorateInternal=function(L){this.JSC$10141_element_=L};
_.t.enterDocument=function(){this.inDocument_=!0;cQh(this,function(L){!L.inDocument_&&L.getElement()&&L.enterDocument()})};
_.t.exitDocument=function(){cQh(this,function(L){L.inDocument_&&L.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.t.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);cQh(this,function(L){L.dispose()});
!this.wasDecorated_&&this.JSC$10141_element_&&_.U_(this.JSC$10141_element_);this.parent_=this.model_=this.JSC$10141_element_=this.childIndex_=this.children_=null;j7.superClass_.disposeInternal.call(this)};
_.t.getModel=function(){return this.model_};
_.t.addChild=function(L,Z){var N=this.children_?this.children_.length:0;if(L.inDocument_&&(Z||!this.inDocument_))throw Error("bb");if(N<0||N>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);L.parent_==this?(_.Py.set(this.childIndex_,L.getId(),L),_.zB(this.children_,L)):_.Py.add(this.childIndex_,L.getId(),L);odl(L,this);_.dLx(this.children_,N,0,L);L.inDocument_&&this.inDocument_&&L.parent_==this?(Z=this.getContentElement(),
(Z.childNodes[N]||null)!=L.getElement()&&(L.getElement().parentElement==Z&&Z.removeChild(L.getElement()),N=Z.childNodes[N]||null,Z.insertBefore(L.getElement(),N))):Z?(this.JSC$10141_element_||this.JSC$10143_createDom(),N=this.children_?this.children_[N+1]||null:null,RCt(L,this.getContentElement(),N?N.JSC$10141_element_:null)):this.inDocument_&&!L.inDocument_&&L.JSC$10141_element_&&L.JSC$10141_element_.parentNode&&L.JSC$10141_element_.parentNode.nodeType==1&&L.enterDocument()};
_.t.getContentElement=function(){return this.JSC$10141_element_};
var cQh=function(L,Z){L.children_&&L.children_.forEach(Z,void 0)};
j7.prototype.removeChild=function(L,Z){if(L){var N=typeof L==="string"?L:L.getId();L=this.childIndex_&&N?_.Py.get(this.childIndex_,N)||null:null;N&&L&&(_.Py.remove(this.childIndex_,N),_.zB(this.children_,L),Z&&(L.exitDocument(),L.JSC$10141_element_&&_.U_(L.JSC$10141_element_)),odl(L,null))}if(!L)throw Error("eb");return L};_.Qk(xuL,Bv1);_.Qk(qrG,Bv1);var ndQ;_.Py.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var K_L=function(L,Z){Z?L.setAttribute("role",Z):L.removeAttribute("role")},PF=function(L,Z,N){Array.isArray(N)&&(N=N.join(" "));
var S="aria-"+Z;N===""||N==void 0?(ndQ||(N={},ndQ=(N.atomic=!1,N.autocomplete="none",N.dropeffect="none",N.haspopup=!1,N.live="off",N.multiline=!1,N.multiselectable=!1,N.orientation="vertical",N.readonly=!1,N.relevant="additions text",N.required=!1,N.sort="none",N.busy=!1,N.disabled=!1,N.hidden=!1,N.invalid="false",N)),N=ndQ,Z in N?L.setAttribute(S,N[Z]):L.removeAttribute(S)):L.setAttribute(S,N)};var fft;_.pL=function(L,Z,N){_.Kc.call(this);this.target=L;this.handle=Z||L;this.limits=N||new sy(NaN,NaN,NaN,NaN);this.JSC$10146_document_=_.Jj(L);this.JSC$10146_eventHandler_=new _.oM(this);_.Ky(this,this.JSC$10146_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;_.Gl(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=fft};
_.Qk(_.pL,_.Kc);fft=_.iH.document&&_.iH.document.documentElement&&!!_.iH.document.documentElement.setCapture&&!!_.iH.document.releaseCapture;_.kch=function(L,Z){L.hysteresisDistanceSquared_=Math.pow(Z,2)};
_.t=_.pL.prototype;_.t.setEnabled=function(L){this.enabled_=L};
_.t.disposeInternal=function(){_.pL.superClass_.disposeInternal.call(this);_.nc(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10146_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10146_document_.releaseCapture();this.handle=this.target=null};
_.t.startDrag=function(L){var Z=L.type=="mousedown";if(!this.enabled_||this.dragging_||Z&&(!L.isButton(0)||_.Etq&&L.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new zQ("start",this,L.clientX,L.clientY,L)))this.dragging_=!0,Z&&L.preventDefault();else return;else Z&&L.preventDefault();Z=this.JSC$10146_document_;var N=Z.documentElement,S=!this.useSetCapture_;this.JSC$10146_eventHandler_.listen(Z,["touchmove","mousemove"],this.handleMove_,
{capture:S,passive:!1});this.JSC$10146_eventHandler_.listen(Z,["touchend","mouseup"],this.endDrag,S);this.useSetCapture_?(N.setCapture(!1),this.JSC$10146_eventHandler_.listen(N,"losecapture",this.endDrag)):this.JSC$10146_eventHandler_.listen(mt(Z),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10146_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,S);this.clientX=this.startX=L.clientX;this.clientY=this.startY=L.clientY;this.screenX=L.screenX;this.screenY=L.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=eN(Im(this.JSC$10146_document_))}};
_.t.endDrag=function(L,Z){this.JSC$10146_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10146_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new zQ("end",this,L.clientX,L.clientY,L,yQN(this,this.deltaX),wXQ(this,this.deltaY),Z||L.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.t.handleMove_=function(L){if(this.enabled_){var Z=L.clientX-this.clientX,N=L.clientY-this.clientY;this.clientX=L.clientX;this.clientY=L.clientY;this.screenX=L.screenX;this.screenY=L.screenY;if(!this.dragging_){var S=this.startX-this.clientX,u=this.startY-this.clientY;if(S*S+u*u>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new zQ("start",this,L.clientX,L.clientY,L)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(L);return}}N=U7M(this,Z,N);Z=N.x;N=N.y;this.dragging_&&this.dispatchEvent(new zQ("beforedrag",
this,L.clientX,L.clientY,L,Z,N))&&(YUq(this,L,Z,N),L.preventDefault())}};
var U7M=function(L,Z,N){var S=eN(Im(L.JSC$10146_document_));Z+=S.x-L.pageScroll.x;N+=S.y-L.pageScroll.y;L.pageScroll=S;L.deltaX+=Z;L.deltaY+=N;return new _.zF(yQN(L,L.deltaX),wXQ(L,L.deltaY))};
_.pL.prototype.onScroll_=function(L){var Z=U7M(this,0,0);L.clientX=this.clientX;L.clientY=this.clientY;YUq(this,L,Z.x,Z.y)};
var YUq=function(L,Z,N,S){L.target.style.left=N+"px";L.target.style.top=S+"px";L.dispatchEvent(new zQ("drag",L,Z.clientX,Z.clientY,Z,N,S))},yQN=function(L,Z){var N=L.limits;
L=isNaN(N.left)?null:N.left;N=isNaN(N.width)?0:N.width;return Math.min(L!=null?L+N:Infinity,Math.max(L!=null?L:-Infinity,Z))},wXQ=function(L,Z){var N=L.limits;
L=isNaN(N.top)?null:N.top;N=isNaN(N.height)?0:N.height;return Math.min(L!=null?L+N:Infinity,Math.max(L!=null?L:-Infinity,Z))};
_.pL.prototype.isDragging=function(){return this.dragging_};
var zQ=function(L,Z,N,S,u,T,W){_.vn.call(this,L);this.clientX=N;this.clientY=S;this.browserEvent=u;this.left=T!==void 0?T:Z.deltaX;this.top=W!==void 0?W:Z.deltaY};
_.Qk(zQ,_.vn);var mB=function(L){this.JSC$10153_map_=new Map;var Z=arguments.length;if(Z>1){if(Z%2)throw Error("ma");for(var N=0;N<Z;N+=2)this.set(arguments[N],arguments[N+1])}else L&&this.addAll(L)};
_.t=mB.prototype;_.t.getCount=function(){return this.JSC$10153_map_.size};
_.t.getValues=function(){return Array.from(this.JSC$10153_map_.values())};
_.t.getKeys=function(){return Array.from(this.JSC$10153_map_.keys())};
_.t.containsKey=function(L){return this.JSC$10153_map_.has(L)};
_.t.containsValue=function(L){return this.getValues().some(function(Z){return Z==L})};
_.t.equals=function(L,Z){var N=this;Z=Z===void 0?function(S,u){return S===u}:Z;
return this===L?!0:this.JSC$10153_map_.size!=L.getCount()?!1:this.getKeys().every(function(S){return Z(N.JSC$10153_map_.get(S),L.get(S))})};
_.t.isEmpty=function(){return this.JSC$10153_map_.size==0};
_.t.clear=function(){this.JSC$10153_map_.clear()};
_.t.remove=function(L){return this.JSC$10153_map_.delete(L)};
_.t.get=function(L,Z){return this.JSC$10153_map_.has(L)?this.JSC$10153_map_.get(L):Z};
_.t.set=function(L,Z){this.JSC$10153_map_.set(L,Z);return this};
_.t.addAll=function(L){if(L instanceof mB){L=_.O(L.JSC$10153_map_);for(var Z=L.next();!Z.done;Z=L.next()){var N=_.O(Z.value);Z=N.next().value;N=N.next().value;this.JSC$10153_map_.set(Z,N)}}else if(L)for(L=_.O(Object.entries(L)),Z=L.next();!Z.done;Z=L.next())N=_.O(Z.value),Z=N.next().value,N=N.next().value,this.JSC$10153_map_.set(Z,N)};
_.t.forEach=function(L,Z){var N=this;Z=Z===void 0?this:Z;this.JSC$10153_map_.forEach(function(S,u){return L.call(Z,S,u,N)})};
_.t.clone=function(){return new mB(this)};(function(){for(var L=["ms","moz","webkit","o"],Z,N=0;Z=L[N]&&!_.iH.requestAnimationFrame;++N)_.iH.requestAnimationFrame=_.iH[Z+"RequestAnimationFrame"],_.iH.cancelAnimationFrame=_.iH[Z+"CancelAnimationFrame"]||_.iH[Z+"CancelRequestAnimationFrame"];if(!_.iH.requestAnimationFrame){var S=0;_.iH.requestAnimationFrame=function(u){var T=(new Date).getTime(),W=Math.max(0,16-(T-S));S=T+W;return _.iH.setTimeout(function(){u(T+W)},W)};
_.iH.cancelAnimationFrame||(_.iH.cancelAnimationFrame=function(u){clearTimeout(u)})}})();
var eCt=[[],[]],Ift=0,d7t=!1,af0=0,sML=function(L,Z){var N=af0++,S={measureTask:{id:N,fn:L.measure,context:Z},mutateTask:{id:N,fn:L.mutate,context:Z},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(S.args||(S.args=[]),S.args.length=0,S.args.push.apply(S.args,arguments),S.args.push(S.state)):S.args&&S.args.length!=0?(S.args[0]=S.state,S.args.length=1):S.args=[S.state];S.isScheduled||(S.isScheduled=!0,eCt[Ift].push(S));d7t||(d7t=!0,window.requestAnimationFrame(hCt))}},hCt=
function(){d7t=!1;
var L=eCt[Ift],Z=L.length;Ift=(Ift+1)%2;for(var N,S=0;S<Z;++S){N=L[S];var u=N.measureTask;N.isScheduled=!1;u.fn&&u.fn.apply(u.context,N.args)}for(S=0;S<Z;++S)N=L[S],u=N.mutateTask,N.isScheduled=!1,u.fn&&u.fn.apply(u.context,N.args),N.state={};L.length=0};var jMh=_.sc(["about:blank"]),Eds=_.sc(["javascript:undefined"]),PNt=_.vy(jMh);_.en(PNt);var pX5=_.vy(Eds);_.en(pX5);var JL=function(L){_.Kc.call(this);this.JSC$10159_element_=L;this.listenKeyIn_=_.Gl(this.JSC$10159_element_,"focus",this,!0);this.listenKeyOut_=_.Gl(this.JSC$10159_element_,"blur",this,!0)};
_.Qk(JL,_.Kc);JL.prototype.handleEvent=function(L){var Z=new _.o8(L.event_);Z.type=L.type=="focusin"||L.type=="focus"?"focusin":"focusout";this.dispatchEvent(Z)};
JL.prototype.disposeInternal=function(){JL.superClass_.disposeInternal.call(this);bn(this.listenKeyIn_);bn(this.listenKeyOut_);delete this.JSC$10159_element_};var zCY=function(L,Z){this.JSC$10162_element_=L;this.JSC$10162_dom_=Z};var CL=function(L,Z){j7.call(this,Z);this.useIframeMask_=!!L;this.lastFocus_=null;this.resizeBackgroundTask_=sML({mutate:this.resizeBackground_},this);sML({mutate:this.updateModalAndBackground_},this)};
_.Qk(CL,j7);_.t=CL.prototype;_.t.focusHandler_=null;_.t.visible_=!1;_.t.bgEl_=null;_.t.bgIframeEl_=null;_.t.tabCatcherElement_=null;_.t.backwardTabWrapInProgress_=!1;_.t.getCssClass=function(){return"goog-modalpopup"};
_.t.getBackgroundElement=function(){return this.bgEl_};
_.t.JSC$10143_createDom=function(){CL.superClass_.JSC$10143_createDom.call(this);var L=this.getElement(),Z=gP(this.getCssClass()).split(" ");Qz(L,Z);L.tabIndex=0;_.N$(L,!1);m7O(this);JQN(this)};
var m7O=function(L){if(L.useIframeMask_&&!L.bgIframeEl_){var Z=L.JSC$10141_dom_.JSC$9327_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.qq(Z,PNt);L.bgIframeEl_=Z;L.bgIframeEl_.className=L.getCssClass()+"-bg";_.N$(L.bgIframeEl_,!1);smt(L.bgIframeEl_,0)}L.bgEl_||(L.bgEl_=L.JSC$10141_dom_.JSC$9327_createDom("DIV",L.getCssClass()+"-bg"),_.N$(L.bgEl_,!1))},JQN=function(L){L.tabCatcherElement_||(L.tabCatcherElement_=L.JSC$10141_dom_.createElement("SPAN"),_.N$(L.tabCatcherElement_,
!1),L.tabCatcherElement_.tabIndex=0,L.tabCatcherElement_.style.position="absolute")};
_.t=CL.prototype;_.t.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.t.canDecorate=function(L){return!!L&&L.tagName=="DIV"};
_.t.decorateInternal=function(L){CL.superClass_.decorateInternal.call(this,L);L=gP(this.getCssClass()).split(" ");Qz(this.getElement(),L);m7O(this);JQN(this);this.getElement().tabIndex=0;_.N$(this.getElement(),!1)};
_.t.enterDocument=function(){this.bgIframeEl_&&_.In(this.bgIframeEl_,this.getElement());_.In(this.bgEl_,this.getElement());CL.superClass_.enterDocument.call(this);_.dI(this.tabCatcherElement_,this.getElement());this.focusHandler_=new JL(this.JSC$10141_dom_.JSC$9325_document_);Et(this).listen(this.focusHandler_,"focusin",this.onFocus);CNt(this,!1)};
_.t.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.W4(this.focusHandler_);CL.superClass_.exitDocument.call(this);_.U_(this.bgIframeEl_);_.U_(this.bgEl_);_.U_(this.tabCatcherElement_)};
_.t.setVisible=function(L){if(L!=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_&&CNt(this,L),L){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10141_dom_.JSC$9325_document_.activeElement}catch(u){}this.updateModalAndBackground_();Et(this).listen(this.JSC$10141_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10141_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);rQt(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)VV(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Et(this).unlisten(this.JSC$10141_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10141_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)VV(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var Z=this.JSC$10141_dom_,N=Z.JSC$9325_document_.body,S=Z.JSC$9325_document_.activeElement||N;if(!this.lastFocus_||this.lastFocus_==N){this.lastFocus_=null;break a}(S==N||Z.contains(this.getElement(),S))&&this.lastFocus_.focus()}catch(u){}this.lastFocus_=
null}}};
var CNt=function(L,Z){L.modalAriaVisibilityHelper_||(L.modalAriaVisibilityHelper_=new zCY(L.JSC$10141_element_,L.JSC$10141_dom_));L=L.modalAriaVisibilityHelper_;if(Z){L.hiddenElements_||(L.hiddenElements_=[]);Z=L.JSC$10162_dom_.getChildren(L.JSC$10162_dom_.JSC$9325_document_.body);for(var N=0;N<Z.length;N++){var S=Z[N],u;if(u=S!=L.JSC$10162_element_)u=S.getAttribute("aria-hidden"),u=!(u==null||u==void 0?0:String(u));u&&(PF(S,"hidden",!0),L.hiddenElements_.push(S))}}else if(L.hiddenElements_){for(Z=
0;Z<L.hiddenElements_.length;Z++)L.hiddenElements_[Z].removeAttribute("aria-hidden");L.hiddenElements_=null}};
CL.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var rQt=function(L,Z){L.bgIframeEl_&&_.N$(L.bgIframeEl_,Z);L.bgEl_&&_.N$(L.bgEl_,Z);_.N$(L.getElement(),Z);_.N$(L.tabCatcherElement_,Z)};
_.t=CL.prototype;_.t.onShow=function(){this.dispatchEvent("show")};
_.t.onHide=function(){rQt(this,!1);this.dispatchEvent("hide")};
_.t.isVisible=function(){return this.visible_};
_.t.focus=function(){this.focusElement_()};
_.t.resizeBackground_=function(){this.bgIframeEl_&&_.N$(this.bgIframeEl_,!1);this.bgEl_&&_.N$(this.bgEl_,!1);var L=this.JSC$10141_dom_.JSC$9325_document_;var Z=_.UN(mt(this.JSC$10141_dom_.JSC$9325_document_)||window);var N=Math.max(Z.width,Math.max(L.body.scrollWidth,L.documentElement.scrollWidth));L=Math.max(Z.height,Math.max(L.body.scrollHeight,L.documentElement.scrollHeight));this.bgIframeEl_&&(_.N$(this.bgIframeEl_,!0),_.IDh(this.bgIframeEl_,N,L));this.bgEl_&&(_.N$(this.bgEl_,!0),_.IDh(this.bgEl_,
N,L))};
_.t.reposition=function(){var L;if(_.e2t(this.getElement())=="fixed")var Z=L=0;else Z=eN(this.JSC$10141_dom_),L=Z.x,Z=Z.y;var N=aDt(this.getElement());var S=_.UN(mt(this.JSC$10141_dom_.JSC$9325_document_)||window);L=Math.max(L+S.width/2-N.width/2,0);Z=Math.max(Z+S.height/2-N.height/2,0);Pz(this.getElement(),L,Z);Pz(this.tabCatcherElement_,L,Z)};
_.t.onFocus=function(L){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():L.target==this.tabCatcherElement_&&U8(this.focusElement_,0,this)};
_.t.focusElement_=function(){try{this.getElement().focus()}catch(L){}};
_.t.disposeInternal=function(){_.W4(this.popupShowTransition_);this.popupShowTransition_=null;_.W4(this.popupHideTransition_);this.popupHideTransition_=null;_.W4(this.bgShowTransition_);this.bgShowTransition_=null;_.W4(this.bgHideTransition_);this.bgHideTransition_=null;CL.superClass_.disposeInternal.call(this)};var Cy=function(L,Z,N){CL.call(this,Z,N);this.JSC$10172_class_=L||"modal-dialog";this.buttons_=(new rp).addButton(QMt,!0).addButton(XXh,!1,!0)};
_.Qk(Cy,CL);_.t=Cy.prototype;_.t.escapeToCancel_=!0;_.t.hasTitleCloseButton_=!0;_.t.modal_=!0;_.t.draggable_=!0;_.t.backgroundElementOpacity_=.5;_.t.title_="";_.t.JSC$10174_dragger_=null;_.t.JSC$10174_disposeOnHide_=!1;_.t.titleEl_=null;_.t.titleTextEl_=null;_.t.titleTextId_=null;_.t.titleCloseEl_=null;_.t.contentEl_=null;_.t.buttonEl_=null;_.t.getCssClass=function(){return this.JSC$10172_class_};
_.t.setTitle=function(L){this.title_=L;this.titleTextEl_&&_.hY(this.titleTextEl_,L)};
_.t.getTitle=function(){return this.title_};
_.t.getContent=function(){return""};
_.t.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var AQs=function(L){L.getElement()||L.render();return L.getElement()};
Cy.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Cy.superClass_.getBackgroundElement.call(this)};
var HHV=function(L,Z){L.backgroundElementOpacity_=Z;L.getElement()&&(Z=L.getBackgroundElement())&&smt(Z,L.backgroundElementOpacity_)};
Cy.prototype.setDraggable=function(L){this.draggable_=L;Bd0(this,L&&this.inDocument_)};
Cy.prototype.handleDrag=function(){};
var Bd0=function(L,Z){var N=gP(L.JSC$10172_class_+"-title-draggable").split(" ");L.getElement()&&(Z?Qz(L.titleEl_,N):KzO(L.titleEl_,N));Z&&!L.JSC$10174_dragger_?(Z=new _.pL(L.getElement(),L.titleEl_),L.JSC$10174_dragger_=Z,Qz(L.titleEl_,N),_.Gl(L.JSC$10174_dragger_,"start",L.setDraggerLimits_,!1,L),_.Gl(L.JSC$10174_dragger_,"drag",L.handleDrag,!1,L)):!Z&&L.JSC$10174_dragger_&&(L.JSC$10174_dragger_.dispose(),L.JSC$10174_dragger_=null)};
_.t=Cy.prototype;
_.t.JSC$10143_createDom=function(){Cy.superClass_.JSC$10143_createDom.call(this);var L=this.getElement(),Z=this.JSC$10141_dom_;this.titleTextId_=this.getId();var N=this.getId()+".contentEl";this.titleEl_=Z.JSC$9327_createDom("DIV",this.JSC$10172_class_+"-title",this.titleTextEl_=Z.JSC$9327_createDom("SPAN",{className:this.JSC$10172_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=Z.JSC$9327_createDom("SPAN",this.JSC$10172_class_+"-title-close"));MNI(L,this.titleEl_,this.contentEl_=
Z.JSC$9327_createDom("DIV",{className:this.JSC$10172_class_+"-content",id:N}),this.buttonEl_=Z.JSC$9327_createDom("DIV",this.JSC$10172_class_+"-buttons"));K_L(this.titleTextEl_,"heading");K_L(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;PF(this.titleCloseEl_,"label","Close");K_L(L,"dialog");PF(L,"labelledby",this.titleTextId_||"");_.N$(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(L=this.buttons_,L.JSC$10175_element_=this.buttonEl_,L.render());_.N$(this.buttonEl_,!!this.buttons_);
HHV(this,this.backgroundElementOpacity_)};
_.t.decorateInternal=function(L){Cy.superClass_.decorateInternal.call(this,L);L=this.getElement();var Z=this.JSC$10172_class_+"-content";this.contentEl_=kp(document,null,Z,L)[0];this.contentEl_||(this.contentEl_=this.JSC$10141_dom_.JSC$9327_createDom("DIV",Z),L.appendChild(this.contentEl_));Z=this.JSC$10172_class_+"-title";var N=this.JSC$10172_class_+"-title-text",S=this.JSC$10172_class_+"-title-close";(this.titleEl_=kp(document,null,Z,L)[0])?(this.titleTextEl_=kp(document,null,N,this.titleEl_)[0],
this.titleCloseEl_=kp(document,null,S,this.titleEl_)[0]):(this.titleEl_=this.JSC$10141_dom_.JSC$9327_createDom("DIV",Z),L.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=kFY(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.wI("SPAN",{className:N,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;PF(L,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10141_dom_.JSC$9327_createDom("SPAN",S),this.titleEl_.appendChild(this.titleCloseEl_));_.N$(this.titleCloseEl_,this.hasTitleCloseButton_);Z=this.JSC$10172_class_+"-buttons";(this.buttonEl_=kp(document,null,Z,L)[0])?(this.buttons_=new rp(this.JSC$10141_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10141_dom_.JSC$9327_createDom("DIV",Z),L.appendChild(this.buttonEl_),this.buttons_&&(L=this.buttons_,L.JSC$10175_element_=this.buttonEl_,L.render()),_.N$(this.buttonEl_,
!!this.buttons_));HHV(this,this.backgroundElementOpacity_)};
_.t.enterDocument=function(){Cy.superClass_.enterDocument.call(this);Et(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Et(this).listen(this.buttonEl_,"click",this.onButtonClick_);Bd0(this,this.draggable_);Et(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var L=this.getElement();K_L(L,"dialog");this.titleTextEl_.id!==""&&PF(L,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){L=this.JSC$10141_dom_;
var Z=this.getBackgroundElement();L.removeNode(this.bgIframeEl_);L.removeNode(Z)}this.isVisible()&&CNt(this,!1)}};
_.t.exitDocument=function(){this.isVisible()&&this.setVisible(!1);Bd0(this,!1);Cy.superClass_.exitDocument.call(this)};
_.t.setVisible=function(L){L!=this.isVisible()&&(this.inDocument_||this.render(),Cy.superClass_.setVisible.call(this,L))};
_.t.onShow=function(){Cy.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.t.onHide=function(){Cy.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10174_disposeOnHide_&&this.dispose()};
_.t.setDraggerLimits_=function(){var L=this.JSC$10141_dom_.JSC$9325_document_,Z=_.UN(mt(L)||window),N=Math.max(L.body.scrollWidth,Z.width);L=Math.max(L.body.scrollHeight,Z.height);var S=aDt(this.getElement());_.e2t(this.getElement())=="fixed"?this.JSC$10174_dragger_.limits=new sy(0,0,Math.max(0,Z.width-S.width),Math.max(0,Z.height-S.height)):this.JSC$10174_dragger_.limits=new sy(0,0,N-S.width,L-S.height)};
_.t.onTitleCloseClick_=function(){x70(this)};
var x70=function(L){if(L.hasTitleCloseButton_){var Z=L.buttons_,N=Z&&Z.cancelButton_;N?(Z=Z.get(N),L.dispatchEvent(new QI(N,Z))&&L.setVisible(!1)):L.setVisible(!1)}},qUt=function(L){L.hasTitleCloseButton_=!1;
L.titleCloseEl_&&_.N$(L.titleCloseEl_,L.hasTitleCloseButton_)};
Cy.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Cy.superClass_.disposeInternal.call(this)};
Cy.prototype.onButtonClick_=function(L){a:{for(L=L.target;L!=null&&L!=this.buttonEl_;){if(L.tagName=="BUTTON")break a;L=L.parentNode}L=null}if(L&&!L.disabled){L=L.name;var Z=this.buttons_.get(L);this.dispatchEvent(new QI(L,Z))&&this.setVisible(!1)}};
Cy.prototype.onKey_=function(L){var Z=!1,N=!1,S=this.buttons_,u=L.target;if(L.type=="keydown")if(this.escapeToCancel_&&L.keyCode==27){var T=S&&S.cancelButton_;u=u.tagName=="SELECT"&&!u.disabled;T&&!u?(N=!0,Z=S.get(T),Z=this.dispatchEvent(new QI(T,Z))):u||(Z=!0)}else{if(L.keyCode==9&&L.shiftKey&&u==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(D){}U8(this.resetBackwardTabWrap_,0,this)}}else if(L.keyCode==13){if(u.tagName=="BUTTON"&&!u.disabled)T=u.name;
else if(u==this.titleCloseEl_)x70(this);else if(S){var W=S.defaultButton_,V;if(V=W)a:{V=Y$("BUTTON",S.JSC$10175_element_);for(var M,G=0;M=V[G];G++)if(M.name==W||M.id==W){V=M;break a}V=null}u=(u.tagName=="TEXTAREA"||u.tagName=="SELECT"||u.tagName=="A")&&!u.disabled;!V||V.disabled||u||(T=W)}T&&S&&(N=!0,Z=this.dispatchEvent(new QI(T,String(S.get(T)))))}else u!=this.titleCloseEl_||L.keyCode!=32&&L.key!=" "||x70(this);if(Z||N)L.stopPropagation(),L.preventDefault();Z&&this.setVisible(!1)};
var QI=function(L,Z){this.type="dialogselect";this.key=L;this.caption=Z};
_.Qk(QI,_.vn);var rp=function(L){mB.call(this);L||Im();this.cancelButton_=this.JSC$10175_element_=this.defaultButton_=null};
_.Qk(rp,mB);_.t=rp.prototype;_.t.clear=function(){mB.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.t.set=function(L,Z,N,S){mB.prototype.set.call(this,L,Z);N&&(this.defaultButton_=L);S&&(this.cancelButton_=L);return this};
_.t.addButton=function(L,Z,N){return this.set(L.key,L.caption,Z,N)};
_.t.render=function(){if(this.JSC$10175_element_){_.tU(this.JSC$10175_element_,bQL);var L=Im(this.JSC$10175_element_);this.forEach(function(Z,N){Z=L.JSC$9327_createDom("BUTTON",{name:N},Z);N==this.defaultButton_&&(Z.className="goog-buttonset-default");this.JSC$10175_element_.appendChild(Z)},this)}};
_.t.decorate=function(L){if(L&&L.nodeType==1){this.JSC$10175_element_=L;L=Y$("BUTTON",this.JSC$10175_element_);for(var Z,N,S,u=0;Z=L[u];u++)if(N=Z.name||Z.id,S=kFY(Z)||Z.value,N){var T=u==0;this.set(N,S,T,Z.name=="cancel");T&&_.ER(Z,"goog-buttonset-default")}}};
_.t.getElement=function(){return this.JSC$10175_element_};
var QMt={key:"ok",caption:"OK"},XXh={key:"cancel",caption:"Cancel"},LgY={key:"yes",caption:"Yes"},Zvh={key:"no",caption:"No"},N0M={key:"save",caption:"Save"},SoM={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new rp).addButton(QMt,!0,!0),(new rp).addButton(QMt,!0).addButton(XXh,!1,!0),(new rp).addButton(LgY,!0).addButton(Zvh,!1,!0),(new rp).addButton(LgY).addButton(Zvh,!0).addButton(XXh,!1,!0),(new rp).addButton(SoM).addButton(N0M).addButton(XXh,!0,!0));_.Qk(LzL,Cy);_.Qk(ZQ1,rZ);var ivN=_.sc(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),uJ5=_.sc(["//apis.google.com/js/rpc.js"]),VXt=_.vy(ivN),WzB=_.vy(uJ5),S6f=null;var XU=function(L,Z){_.Kc.call(this);this.JSC$10184_element_=L;L=_.WK(this.JSC$10184_element_)?this.JSC$10184_element_:this.JSC$10184_element_?this.JSC$10184_element_.body:null;this.isRtl_=!!L&&_.jmh(L);this.listenKey_=_.Gl(this.JSC$10184_element_,_.xM?"DOMMouseScroll":"mousewheel",this,Z)};
_.Qk(XU,_.Kc);XU.prototype.handleEvent=function(L){var Z=0,N=0,S=L.event_;S.type=="mousewheel"?(L=T0t(-S.wheelDelta),S.wheelDeltaX!==void 0?(Z=T0t(-S.wheelDeltaX),N=T0t(-S.wheelDeltaY)):N=L):(L=S.detail,L>100?L=3:L<-100&&(L=-3),S.axis!==void 0&&S.axis===S.HORIZONTAL_AXIS?Z=L:N=L);typeof this.maxDeltaX_==="number"&&(Z=_.nM(Z,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(N=_.nM(N,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(Z=-Z);Z=new t9h(L,S,Z,N);this.dispatchEvent(Z)};
var T0t=function(L){return _.qH&&(_.Etq||ps5)&&L%40!=0?L:L/40};
XU.prototype.disposeInternal=function(){XU.superClass_.disposeInternal.call(this);bn(this.listenKey_);this.listenKey_=null};
var t9h=function(L,Z,N,S){_.o8.call(this,Z);this.type="mousewheel";this.detail=L;this.deltaX=N;this.deltaY=S};
_.Qk(t9h,_.o8);_.pm=function(L){var Z="instance_";if(L.instance_&&L.hasOwnProperty(Z))return L.instance_;Z=new L;return L.instance_=Z};var OQF;var Ovq=_.sc(["https://about:blank"]),WgL=_.sc(['javascript:""']),V9s=_.sc(["about:blank"]);_.Qk(iI,LzL);_.t=iI.prototype;_.t.JSC$10192_url_="";_.t.JSC$10192_iframe_=null;_.t.iframeLoaded_=!1;_.t.loadedFired_=!1;_.t.callback_=function(){};
_.t.enterDocument=function(){iI.superClass_.enterDocument.call(this);Tox(this.getBackgroundElement(),Et(this))};
_.t.render=function(L){var Z=this;iI.superClass_.render.call(this,L);this.useGapi_?Vj0(this.iframeManager_,window).then(function(){return bvq(Z)}).then(null,function(){Z.callback_({action:"error"})}):M9V(this)};
var bvq=function(L){var Z=L.JSC$10141_dom_.JSC$9327_createDom("div",["picker-dialog-content","picker-frame"]);_.N$(Z,!1);L.getContentElement().appendChild(Z);return bHs(L.iframeManager_,Z,function(N){var S=UGO(N["iframe-command"]);switch(S.getCommand()){case 1:N=L.callback_;S=_.lp(S,SJ,2);var u="";switch(S.getStatus()){case 2:u="cancel";break;case 1:u="picked";break;case 3:u="error"}var T=_.MG(S,G5,2,_.gZ(b0t));S=T.length===0?{action:u}:Cet(T,u,_.lp(S,k35,7));N.call(L,S);L.setVisible(!1);break;case 4:qUt(L);
L.callback_({action:"loaded"});break;case 7:case 8:N=L.callback_;a:{u=S.getCommand();T=_.lp(S,SJ,2);switch(u){case 7:u="uploadScheduled";break;case 8:u="uploadStateChange";break;default:S={};break a}S=_.MG(T,G5,2,_.gZ(b0t));if(S.length===0)S={action:u};else{var W=_.lp(T,k35,7);T=W&&_.va(W,1);W=d4h(W);S=s6L(S,u,T,W)}}N.call(L,S)}},L.JSC$10192_url_,L.targetId_,L.rpcToken_).then(function(N){L.JSC$10192_iframe_=N.getIframeEl();
gPt(L);_.N$(L.JSC$10192_iframe_.parentElement,!0);_.ER(L.getElement(),"picker-dialog");GoQ(L);return N})},M9V=function(L){L.JSC$10192_iframe_=L.JSC$10141_dom_.JSC$9327_createDom("IFRAME",{id:L.targetId_,
name:L.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.qq(L.JSC$10192_iframe_,FgV(L));_.ER(L.getElement(),"picker-dialog");L.getContentElement().appendChild(L.JSC$10192_iframe_);Et(L).listen(L.JSC$10192_iframe_,"load",function(){return void gPt(L)});
L.JSC$10192_iframe_.src=L.JSC$10192_url_;GoQ(L)},D2l=function(L){$2s(L,(0,_.hr)(function(Z){Z.setAuthToken(this.targetId_,this.rpcToken_)},L))},GoQ=function(L){var Z=_.Lh(_.qG(L.JSC$10192_url_),"title");
Z&&L.setTitle(Z)},FgV=function(L){return _.cxA("Internet Explorer")>=7&&_.TB(L.JSC$10192_url_,"https")?_.vy(Ovq):_.BV?_.vy(WgL):_.vy(V9s)},gPt=function(L){D2l(L);
L.iframeLoaded_=!0;L.JSC$10192_iframe_.tabIndex=0;L.isVisible()&&L.focus()};
iI.prototype.handleKeydown_=function(L){L.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),L.stopPropagation(),L.preventDefault())};
var $2s=function(L,Z){var N=L.JSC$10190_gadgetsDomHelper_;iQt(function(){Z(N.getWindow().gadgets.rpc)},N)};
iI.prototype.setUrl=function(L){L=_.Z4(new _.j9(L),"rpcService",this.targetId_);_.Z4(L,"rpctoken",this.rpcToken_);_.Ot(L,"rpctoken="+this.rpcToken_);_.S7(L,"https");this.JSC$10192_url_=L.toString();this.JSC$10192_iframe_&&(this.JSC$10192_iframe_.src=this.JSC$10192_url_)};
var lFq=function(L,Z){L.callback_=Z;$2s(L,(0,_.hr)(function(N){N.register(this.targetId_,(0,_.hr)(this.handlePickerAction_,this))},L))};
iI.prototype.handlePickerAction_=function(L){var Z=L.action;Z=="loaded"&&(this.loadedFired_=!0,vPq(this,new qrG(this.isVisible())),oPq(this),qUt(this),Et(this).unlisten(this.JSC$10141_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10192_iframe_.tabIndex=0);Z!="picked"&&Z!="cancel"||this.setVisible(!1);this.callback_(L)};
var oPq=function(L){L.JSC$10192_appId_&&vPq(L,new xuL(L.JSC$10192_appId_,window.location.protocol+"//"+window.location.host))};
iI.prototype.setRelayUrl=function(L){$2s(this,(0,_.hr)(function(Z){Z.setRelayUrl(this.targetId_,L)},this))};
var vPq=function(L,Z){L.useGapi_&&$7I(Z,L.iframeManager_).then(null,function(){L.callback_({action:"error"})});
$2s(L,(0,_.hr)(function(N){N.call(this.targetId_,"picker",null,Z)},L))};
iI.prototype.resizePicker_=function(){var L=mt(this.JSC$10141_dom_.JSC$9325_document_)||window;if(_.Lh(_.qG(this.JSC$10192_url_),"ignoreLimits")=="true")L=new _.wF(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Lh(_.qG(this.JSC$10192_url_),"shadeDialog")=="true"){var Z=AQs(this);Z=EhQ(Z);var N=_.UN(L);L=N.width-80;N=N.height-40;Z&&(L-=Z.left?Z.left:0,L-=Z.right?Z.right:0,N-=Z.top?Z.top:0,N-=Z.bottom?Z.bottom:0);L=new _.wF(L>0?L:0,N>0?N:0)}else(Z=this.preferredDialogWidth_)?(Z=Math.max(320,
Math.min(1051,Z)),(N=this.preferredDialogHeight_)||(N=_.UN(L).height*.85),N=Math.max(480,Math.min(650,N))):(Z=_.UN(L),N=Z.width*.618,N=N<Z.height?Math.round(Math.max(480,Math.min(650,N*.85))):Math.round(Math.max(480,Math.min(650,Z.height*.85))),Z=Math.round(N/.618)),L=_.UN(L),Z=Math.min(Z,Math.max(L.width,320)),N=Math.min(N,Math.max(L.height,480)),L=new _.wF(Z,N);_.IDh(this.getContentElement(),L);this.reposition()};
iI.prototype.reposition=function(){if(_.Lh(_.qG(this.JSC$10192_url_),"shadeDialog")=="true"){var L=aDt(this.getElement()),Z=_.UN(this.JSC$10141_dom_.getWindow());L=Math.floor(Z.width/2-L.width/2);Z=AQs(this);if(Z=EhQ(Z)){var N=Z.left?Z.left:0;N+=Z.right?Z.right:0;L=Math.floor(L-N/2)}L=L>0?L:0;Z=eN(this.JSC$10141_dom_).y;Pz(this.getElement(),L,Z)}else iI.superClass_.reposition.call(this)};
iI.prototype.setVisible=function(L){if(L!=this.isVisible()&&this.autoSizeDialog_){var Z=this.JSC$10141_dom_.getWindow();L?(this.resizePicker_(),Et(this).listen(Z,"resize",this.resizePicker_),this.iframeLoaded_||Et(this).listen(Z,"keydown",this.handleKeydown_)):(Et(this).unlisten(Z,"resize",this.resizePicker_),this.iframeLoaded_||Et(this).unlisten(Z,"keydown",this.handleKeydown_))}iI.superClass_.setVisible.call(this,L);vPq(this,new qrG(L))};
iI.prototype.focus=function(){iI.superClass_.focus.call(this);if(this.JSC$10192_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10192_iframe_.focus()}catch(L){}};var Wq=function(L,Z){Z=Z===void 0?iI:Z;rZ.call(this,L);this.pickerConstructor=Z;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(L=window.location.origin)||(L=window.location.protocol+"//"+window.location.host);L&&this.urlParamMap_.set("origin",L);this.postProcessors_=[]};
_.f(Wq,ZQ1);Wq.prototype.JSC$10197_disposeOnHide_=!1;
Wq.prototype.build=function(){this.JSC$10098_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10098_appId_);this.getRelayUrl()||this.setRelayUrl(_.TQ(_.Ot(_.tL(_.qG(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var L=new this.pickerConstructor(Rbt(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);L.JSC$10174_disposeOnHide_=this.JSC$10197_disposeOnHide_;
L.JSC$10192_appId_=this.JSC$10098_appId_;L.loadedFired_&&oPq(L);lFq(L,this.callback_);return L};
var cdt=function(L){L.urlParamMap_.set("multiselectEnabled","true");return L};
_.t=Wq.prototype;_.t.getHeight=function(){return this.dialogHeight_};
_.t.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.t.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.t.getTitle=function(){return this.urlParamMap_.get("title")};
_.t.getWidth=function(){return this.dialogWidth_};
var nPt=function(L){L.JSC$10197_disposeOnHide_=void 0;return L};
Wq.prototype.setRelayUrl=function(L){this.urlParamMap_.set("parent",L);return this};
var Kgt=function(L,Z){L.urlParamMap_.set("selectButtonLabel",Z);return L};
Wq.prototype.setSize=function(L,Z){this.dialogWidth_=L;this.dialogHeight_=Z;return this};
Wq.prototype.setTitle=function(L){this.urlParamMap_.set("title",L);return this};
var Rbt=function(L){L.postProcessors_.length&&L.urlParamMap_.set("pp",JSON.stringify(L.postProcessors_));L.urlParamMap_.set("nav",U4t(L.nav_));var Z=new _.j9(L.getBaseUrl());L.urlParamMap_.forEach(function(N,S){_.Z4(Z,S,N)});
return Z};var ydV=function(L,Z){L.name!==void 0?(this.name=L.name,this.code=fFI[L.name]):(this.code=L=L.code,this.name=ko5(L));_.NL.call(this,BwO("%s %s",this.name,Z))};
_.Qk(ydV,_.NL);var ko5=function(L){var Z=_.Py.findKey(fFI,function(N){return L==N});
if(Z===void 0)throw Error("hb`"+L);return Z},XG={},fFI=(XG.AbortError=3,XG.EncodingError=5,XG.InvalidModificationError=9,XG.InvalidStateError=7,XG.NotFoundError=1,XG.NotReadableError=4,XG.NoModificationAllowedError=6,XG.PathExistsError=12,XG.QuotaExceededError=10,XG.SecurityError=2,XG.SyntaxError=8,XG.TypeMismatchError=11,XG);var w2L=function(L,Z){_.vn.call(this,L.type,Z);this.event_=L};
_.Qk(w2L,_.vn);var U2I=function(L,Z,N){N===void 0&&(N=L.size);return L.slice?L.slice(Z,N):null};var gj0=new WeakMap,MXh=function(L,Z){L=[L];for(var N=Z.length-1;N>=0;--N)L.push(typeof Z[N],Z[N]);return L.join("\v")};_.FzP(function(){if(!_.iH.Blob)return!1;var L=new Uint8Array(100);try{var Z=new Blob([L])}catch(N){return!1}return Z.size!=100?!1:!0});
var YoO=_.FzP(function(){if(!_.iH.Blob)return!1;var L=new Uint8Array(100);try{var Z=new Blob([L])}catch(N){return!1}return U2I(Z,0,1)===null?!1:!0});_.iH.U3bHHf!=null||(_.iH.U3bHHf=0);_.iH.U3bHHf++;_.eb5=new WeakMap;_.IFY=new WeakMap;var DOL={};var tW=void 0;var vjG=Symbol("pb");var Ikt=VX("WizInjectionContext_Dispatcher");var Gp=Symbol("qb");var wj,al;wj=function(){this.afterRenderCallbacks=null};
_.oP_=Symbol("rb");al=function(L){this.props=L;this.__unmounted=!1};
al.prototype.didPatch=function(){};
al.prototype.didMount=function(){};
al.prototype.didUnmount=function(){};
al.prototype.didUpdate=function(){};_.ya_=VX("WizInjectionContext_RootElement");var UOx=VX("WizInjectionContext_AppContext"),wxs=VX("WizInjectionContext_ModelRootElement"),Y6t=VX("WizInjectionContext_RendererData"),eGH=VX("WizInjectionContext_InjectingConstructor"),kTB=VX("WizInjectionContext_AsyncDeps"),dO_={};var Pp0=!1;var Jax={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:I0t,enableLazyTsx:dLs,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:eAl,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var M$=Object.assign({},{attributes:{},handleError:function(L){throw L;}},Jax);var d2h=Symbol("vb"),YR=Symbol("wb"),NxH=Symbol("xb"),LdH=Symbol("yb"),Wdx=sY(function(L){return gJ(L)&&d2h in L});var Bo1=Symbol("zb"),AL={},Aat=(AL[Bo1]=!0,AL.debugName="[component]",AL.getComponentStack=function(){for(var L=[],Z=this;Z;)xOx(Z)&&L.push(Z.debugName),Z=Z.parent;return L},AL.registerSignal=function(){},AL.registerEffect=function(){},AL);var Gs=null,$R=!1,lI=1,RY=Symbol("Db"),yX={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 HF=Symbol("Eb"),BF=Symbol("Fb"),oY=Symbol("Gb"),OA_=Object.assign({},yX,{value:HF,dirty:!0,error:null,equal:q6H,kind:"computed",producerMustRecompute:function(L){return L.value===HF||L.value===BF},
producerRecomputeValue:function(L){if(L.value===BF)throw Error("Z");var Z=L.value;L.value=BF;var N=uvA(L),S=!1;try{var u=L.computation();F5(null);S=Z!==HF&&Z!==oY&&u!==oY&&L.equal(Z,u)}catch(T){u=oY,L.error=T}finally{F5(N),L&&t2w(L)}S?L.value=Z:(L.value=u,L.version++)}});Object.assign({},yX,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var M2h=function(){throw Error();};var GIF=null,V2H=Object.assign({},yX,{equal:q6H,value:void 0,kind:"signal"});var FSt=Object.assign({},yX,{value:HF,dirty:!0,error:null,equal:q6H,kind:"linkedSignal",producerMustRecompute:function(L){return L.value===HF||L.value===BF},
producerRecomputeValue:function(L){if(L.value===BF)throw Error("Z");var Z=L.value;L.value=BF;var N=uvA(L);try{var S=L.source();var u=L.computation(S,Z===HF||Z===oY?void 0:{source:L.sourceValue,value:Z});L.sourceValue=S}catch(T){u=oY,L.error=T}finally{F5(N),L&&t2w(L)}Z!==HF&&u!==oY&&L.equal(Z,u)?L.value=Z:(L.value=u,L.version++)}});Object.assign({},yX,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(L){L.schedule!==null&&L.schedule(L.ref)},
cleanupFn:function(){}});var h9t=Symbol("Hb"),Kh=Symbol("Ib");var fh=Array.isArray;var CRx;var aFV={},QWA=JVG(Object.assign({},{consumerAllowSignalWrites:!0},aFV)),Y_=JVG(Object.assign({},{consumerAllowSignalWrites:!0},aFV));var eU=0,IY=!1,xW=function(){this.queue=new Set};
xW.prototype.schedule=function(L){this.queue.add(L)};
xW.prototype.remove=function(L){this.queue.delete(L)};
xW.prototype.clear=function(){this.queue.clear()};
var HA1=Symbol("Nb"),XKt=Symbol("Ob"),q6=function(){xW.apply(this,arguments)};
_.f(q6,xW);q6.prototype.flush=function(){if(this.queue.size){IY=!0;for(var L=_.O(this.queue),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;this.queue.delete(Z);try{Z.run()}catch(N){hbq(N)}}IY=!1}};
var sHh=function(){q6.apply(this,arguments)};
_.f(sHh,q6);var AVB=new sHh,jHs=function(){q6.apply(this,arguments)};
_.f(jHs,q6);jHs.prototype.schedule=function(L){var Z=this;return _.b(function(N){if(N.nextAddress==1)return M$.enableQueueEffectAndOnInitInitialRuns?N.jumpTo(2):N.yield(Promise.resolve(),3);if(N.nextAddress!=2)return L.run(),N.return();Z.queue.add(L);_.w7(N)})};
var BYL=new jHs,L2=function(){xW.apply(this,arguments)};
_.f(L2,xW);L2.prototype.flush=function(){this.queue.size&&VSw(this.queue)};
var EPO=function(){L2.apply(this,arguments)};
_.f(EPO,L2);EPO.prototype.schedule=function(L){L.hasRun?this.queue.add(L):L.run()};
EPO.prototype.flush=function(){if(this.queue.size)if(M$.flushRenderEffectsDuringRender){var L=this.queue;this.queue=new Set;VSw(L)}else VSw(this.queue)};
var qIG=new EPO,Pc5=function(){L2.apply(this,arguments)};
_.f(Pc5,L2);Pc5.prototype.schedule=function(L){var Z=this;return _.b(function(N){if(N.nextAddress==1)return M$.enableQueueEffectAndOnInitInitialRuns||L.hasRun?N.jumpTo(2):N.yield(Promise.resolve(),3);if(N.nextAddress!=2)return L.run(),N.return();Z.queue.add(L);_.w7(N)})};
var SV0=new Pc5,p2q=function(){L2.apply(this,arguments)};
_.f(p2q,L2);var Zow=new p2q,ulF=[qIG,AVB,Zow],OoF=[BYL,SV0],zb5=[qIG,Zow,SV0],bow=[].concat(_.Pd(ulF),_.Pd(OoF)),m2I=[];GIF=function(){tSt();for(var L=_.O(m2I),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z()};
var hbq=uH;var hW=Symbol("Pb");var aY=null,GDB,Fds=null,$4L;var ZQ={},JdV=Object.assign({},yX,(ZQ[d2h]=!0,ZQ.effectType=YR,ZQ.isResettableContext=!0,ZQ.hasRun=!1,ZQ.effectFn=null,ZQ.consumerIsAlwaysLive=!0,ZQ.consumerAllowSignalWrites=!0,ZQ.consumerMarkedDirty=ioA,ZQ.kind="effect",ZQ.run=function(){if(this.effectFn!==null&&!this.isDisposed){if($R)throw Error("Qb");this.dirty=!1;if(!this.hasRun||NYt(this)){this.hasRun=!0;fkG(this);var L=_.OK(this),Z=uvA(this);raf("effectRun",this.debugName);try{PE(this.effectFn,this.componentStack,this)}catch(N){throw M$.enableContextBasedComponentStacks&&
jU(N),N;}finally{QZw("effectRun",this.debugName),F5(Z),this&&t2w(this),_.OK(L)}}}},ZQ.componentStack=void 0,ZQ.debugName="[effect]",ZQ[Symbol.dispose]=function(){if(D4(this))for(var L=this.producers;L!==void 0;)L=TYx(L);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;L=_.O(zb5);for(var Z=L.next();!Z.done;Z=L.next())Z.value.remove(this);KzF(this)},ZQ));var vbx=Object.assign({},JdV,{effectType:NxH});var c2f=Symbol("Rb");var nbH=Object.assign({},JdV,{effectType:YR});var Td_=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 kDL={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},fbG=
{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}]}},Rks={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},U4H=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],wMh={"*":{async:1,dir:0,loading:2,target:3}};var Cch=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,NX={},e5F=(NX[1]=null,NX[2]=function(L,Z){return Z instanceof Xt?xV(Z):zi.toString()},NX[3]=function(L,Z){return sn(Z)?_.jn(Z):Cch.test(String(Z))?String(Z):zi.toString()},NX[4]=function(L,Z){return Z instanceof Un?_.en(Z):zi.toString()},NX[5]=function(L,Z){return String(Z)},NX[7]=null,NX[8]=null,NX[10]=null,NX);var kqA=Symbol("Ub");var bif=function(L){var Z=rd5,N=L,S="",u="",T=1;L<0&&(L=-L);if(L===Infinity)L=(Infinity*Math.sign(N)).toString();else{for(var W=0;W<QHh.length;W++){var V=QHh[W];T=Z[V];if(L>=T||T<=1&&L>.1*T){S=V;break}}S?(S+="B",u=" "):T=1;L=Math.round(N/T*10)/10+u+S}return L},QHh="Y Z E P T G M K  m u n".split(" "),rd5={"":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};_.X25=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 Rl={};RegExp.prototype.hasOwnProperty("sticky");var OHG=function(L){L=String(L);for(var Z=function(S,u,T){for(var W=Math.min(u.length-T,S.length),V=0;V<W;V++){var M=u[T+V];if(S[V]!==("A"<=M&&M<="Z"?M.toLowerCase():M))return!1}return!0},N=0;(N=L.indexOf("<",N))!=-1;){if(Z("\x3c/script",L,N)||Z("\x3c!--",L,N))return"zSoyz";
N+=1}return L};var HE={default:"__default"};var j6H=Object.prototype.hasOwnProperty;abh.prototype=Object.create(null);var gx=pMH();var W8=null;var qVs=function(L){this.created=[];this.deleted=[];this.node=L};var L_L=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var L=this,Z=L;L;)Z=L,L=L.parentNode;return Z};var m4s=function(L,Z){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=L;this.key=Z;this.text=void 0};var Su=null,iT=null,q$=null,Tp=null,XMx=[],Q6h=Cef,th=[],OM=[],f7H=function(L){return ZHB(function(Z,N,S){q$=iT=Z;iT=null;N(S);r2H(null);iT=q$;q$=q$.parentNode;return Z},L)}(),KK1=function(L){return ZHB(function(Z,N,S){var u={nextSibling:Z};
iT=u;N(S);q$&&r2H(Z.nextSibling);return u===iT?null:iT},L)}();var Vc=[],SUF=0;var bT=new abh;var ln=new abh;var Adt=pMH(),bHx=Adt[HE.default],Vj1=Adt.style,tjf=["focusin","focusout"],GcF="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var LgG=function(){},m7F=function(){},uJP=function(){},N0h=function(){};var gj=Symbol("bc");var vdB,lft=D7L;var fn=Symbol("cc");var iv0=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(" ")),
Soh=new Set(["a","font","script","style","title"]);_.Kn={setUp:Iff,tearDown:Iff,log:Iff,logNodeRange:Iff,graft:function(L,Z){Z()}};var eu={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Il=null,dj=function(L,Z){al.call(this,L);var N=this;this.functionComponent=Z;this.hooks=[];this.hookCounter=0;this.disposeEffects=m8(function(S){N.effectContext=S;_.zs(function(){QMf(N,N.el)})},M$.alwaysTrackContexts||!!tW)};
_.f(dj,al);dj.prototype.render=function(L){var Z=Il;Il=this;this.hookCounter=0;var N=F5(Y_),S=_.OK(this.effectContext);try{return raf("render",this.componentName),this.functionComponent(L)}finally{QZw("render",this.componentName),_.OK(S),F5(N),Il=Z}};
_.gd.Object.defineProperties(dj.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return MSA(this.functionComponent)}}});var T0f=Symbol("qc"),x71=function(L,Z,N){this.afterRenderCallbacks=null;this.kind=L;this.props=Z;this.children=N};
_.f(x71,wj);x71.prototype.render=function(){var L=Bd1(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var Z=_.O(this.afterRenderCallbacks),N=Z.next();!N.done;N=Z.next())N=N.value,L=N(L);return L};
x71.prototype.getChildren=function(){return this.children};var Ov_=[];M2h=function(L){throw Error("ob`"+L.debugName);};
(function(){var L=W8;W8=function(Z){L==null||L(Z);Wgt(Z)}})();Object.assign({},JdV,{effectType:YR,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var L=this.elementRef;var Z;L.element!=null||(L.element=(Z=L.document.getElementById(L.value))!=null?Z:void 0);L=L.element;for(Z=this.attributes;Z;){var N=Z.signal();N!==Z.prevValue&&(Z.prevValue=N,Z.namespace===1?L[Z.name]=N:Td_.has(Z.name)?AW(L,Z.name,N?"":null):AW(L,Z.name,N));Z=Z.next}}});_.hh.debugName="tbhMcf";_.sM.debugName="zyMFzb";Object.assign({},JdV,{effectType:YR,hasRun:!0});_.F.debugName="RlDudd";var V9x={nonNullableCondIsNull:function(){return Error("vc")}};var $2x=function(){this.map=new Map};
$2x.prototype.push=function(L,Z){var N=this.map;N.has(L)&&(this.multi||(this.multi=new Map),this.multi.set(Z,N.get(L)));N.set(L,Z)};
$2x.prototype.pop=function(L){var Z=this.map,N=Z.get(L),S;N!==void 0&&((S=this.multi)==null?0:S.has(N))?(Z.set(L,this.multi.get(N)),this.multi.delete(N)):Z.delete(L);return N};_.ju.debugName="nsTGHd";_.EM.debugName="vI1rtf";_.cdH={OUT_OF_ORDER_HOOK_CALL:function(L){return Error("wc`"+L)},
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(L,Z){return Error("Ac`"+((Z===void 0?0:Z)?"IDOM":"Reactive")+"`"+(P8(L)?L.description:L))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(L,Z){return Error("Bc`"+(P8(L)?L.description:L)+"`"+Z)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(L){return Error("Cc`"+(P8(L)?L.description:L))},
USE_ELEMENT_NOT_ASSIGNED:function(L){return Error("Dc`"+(P8(L)?L.description:L))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(L){return Error("Ec`"+(P8(L)?L.description:L))}};vdB=qUH;var w2t=Symbol("Fc");CNH({beforeRender:function(L){var Z=_.OK(L.effectContext);try{var N;((N=L.__syncEffects)==null?0:N.length)&&ebP(L.__syncEffects)}finally{_.OK(Z)}},
didPatch:function(L){var Z=_.OK(L.effectContext);try{var N;((N=L.__syncEffects)==null?0:N.length)&&ebP(L.__syncEffects)}finally{_.OK(Z)}},
didUnmount:function(L){var Z;((Z=L.hooks)==null?0:Z.length)&&L.hooks.forEach(YoF)}});var HvN,B0q,x2Y;HvN=_.iH.window;_.rj=(HvN==null?void 0:(B0q=HvN.yt)==null?void 0:B0q.config_)||(HvN==null?void 0:(x2Y=HvN.ytcfg)==null?void 0:x2Y.data_)||{};_.bp("yt.config_",_.rj);var qoL={},sHw=[];_.sr=function(L){var Z=_.CG.apply(1,arguments);var N=Error.call(this,L);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.args=[].concat(_.Pd(Z));Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(_.sr,Error);var iTH=function(L,Z,N){this.actionName=L;this.optionalAction=Z===void 0?!1:Z;this.args=N===void 0?null:N;this.returnValue=[]};_.S5=function(L){this.name=L};_.xE=new _.S5("signalAction");var X2P=/^[\w.]*$/,zbP={q:!0,search_query:!0},p2_=String(PcP);var F2;F2=Symbol("Gc");_.iY=function(L){this.name=L};
_.iY.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var Adf=function(L){this.key=L},L2A=function(L){this.deferredKey=L},B0_=function(){var L=this;
this.providers=new Map;this.JSC$10495_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(L.providers)}}};
B0_.prototype.addProvider=function(L){this.providers.set(L.provide,L);var Z=this.JSC$10495_deferred.get(L.provide);if(Z)try{Z.resolver(this.resolve(L.provide))}catch(N){Z.rejector(N)}};
B0_.prototype.resolve=function(L){return L instanceof L2A?L2Q(this,L):L instanceof Adf?ZqM(this,L.key,[],!0):ZqM(this,L,[])};
var L2Q=function(L,Z){Z=Z.deferredKey;if(L.JSC$10495_deferred.has(Z))return L.JSC$10495_deferred.get(Z).promise;var N={};N.promise=new Promise(function(S,u){N.resolver=S;N.rejector=u});
L.JSC$10495_deferred.set(Z,N);return N.promise},ZqM=function(L,Z,N,S){S=S===void 0?!1:S;
if(N.indexOf(Z)>-1)throw Error("Hc`"+Z);if(L.cachedValues.has(Z))return L.cachedValues.get(Z);if(!L.providers.has(Z)){if(S)return;throw Error("Ic`"+Z);}S=L.providers.get(Z);N.push(Z);if(S.useValue!==void 0)var u=S.useValue;else if(S.useFactory)u=S[F2]?NRN(L,S[F2],N):[],u=S.useFactory.apply(S,_.Pd(u));else if(S.useClass){u=S.useClass;var T=u[F2]?NRN(L,u[F2],N):[];u=new (Function.prototype.bind.apply(u,[null].concat(_.Pd(T))))}else throw Error("Jc`"+Z);N.pop();S.skipCache||L.cachedValues.set(Z,u);return u},
NRN=function(L,Z,N){return Z?Z.map(function(S){return S instanceof Adf?ZqM(L,S.key,N,!0):ZqM(L,S,N)}):[]};var Hv0;var qC=new _.iY("ENDPOINT_HANDLER_TOKEN");_.Lo=new _.S5("urlEndpoint");var ST5=function(){this.data=[];this.cachedPackedInt52=-1};
ST5.prototype.set=function(L,Z){Z=Z===void 0?!0:Z;0<=L&&L<52&&Number.isInteger(L)&&this.data[L]!==Z&&(this.data[L]=Z,this.cachedPackedInt52=-1)};
ST5.prototype.get=function(L){return!!this.data[L]};
var iq0=function(L){L.cachedPackedInt52===-1&&(L.cachedPackedInt52=L.data.reduce(function(Z,N,S){return Z+(N?Math.pow(2,S):0)},0));
return L.cachedPackedInt52};var G6t=function(L){var Z=uKs;L=L===void 0?_.LZ("yt.ads.biscotti.lastId_")||"":L;var N=Object,S=N.assign,u={};u.dt=S6t;u.flash="0";a:{try{var T=Z.JSC$10501_win_.top.location.href}catch(L1){T=2;break a}T=T?T===Z.doc_.location.href?0:1:2}u=(u.frm=T,u);try{u.u_tz=-(new Date).getTimezoneOffset();try{var W=mF.history.length}catch(L1){W=0}u.u_his=W;var V;u.u_h=(V=mF.screen)==null?void 0:V.height;var M;u.u_w=(M=mF.screen)==null?void 0:M.width;var G;u.u_ah=(G=mF.screen)==null?void 0:G.availHeight;var D;u.u_aw=
(D=mF.screen)==null?void 0:D.availWidth;var l;u.u_cd=(l=mF.screen)==null?void 0:l.colorDepth}catch(L1){}W=Z.JSC$10501_win_;try{var v=W.screenX;var R=W.screenY}catch(L1){}try{var K=W.outerWidth;var U=W.outerHeight}catch(L1){}try{var d=W.innerWidth;var h=W.innerHeight}catch(L1){}try{var E=W.screenLeft;var A=W.screenTop}catch(L1){}try{d=W.innerWidth,h=W.innerHeight}catch(L1){}try{var J=W.screen.availWidth;var C=W.screen.availTop}catch(L1){}v=[E,A,v,R,J,C,K,U,d,h];R=yrw(!1,Z.JSC$10501_win_.top);K={};
var X=X===void 0?_.iH:X;U=new ST5;"SVGElement"in X&&"createElementNS"in X.document&&U.set(0);d=LtY();d["allow-top-navigation-by-user-activation"]&&U.set(1);d["allow-popups-to-escape-sandbox"]&&U.set(2);X.crypto&&X.crypto.subtle&&U.set(3);"TextDecoder"in X&&"TextEncoder"in X&&U.set(4);X=iq0(U);Z=(K.bc=X,K.bih=R.height,K.biw=R.width,K.brdim=v.join(),K.vis=l81(Z.doc_),K.wgl=!!mF.WebGLRenderingContext,K);N=S.call(N,u,Z);N.ca_type="image";L&&(N.bid=L);return N},uKs=new function(){var L=window.document;
this.JSC$10501_win_=window;this.doc_=L};
_.bp("yt.ads_.signals_.getAdSignalsString",function(L){return m2L(G6t(L))});_.rc();navigator.userAgent.indexOf(" (CrKey ");var uKx="XMLHttpRequest"in _.iH?function(){return new XMLHttpRequest}:null;var TR0="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),tz0=[].concat(_.Pd(TR0),["client_dev_set_cookie"]);var g6f={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"},OqH="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(_.Pd(TR0)),n6w=!1,Vzh=_.F2s,o6G=Mzx;var rSw=[{messageFn:function(L){return"Cannot read property '"+L.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(L){return"Cannot call '"+L.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(L){return L.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var Oqt={messageWeights:[],callbackWeights:[{callback:yq0,weight:500},{callback:wBH,weight:500}]};var W2Y=function(){this.callbackWeights=[];this.messageWeights=[]},VzM,C4G=function(){if(!VzM){var L=VzM=new W2Y;
L.messageWeights.length=0;L.callbackWeights.length=0;OUw(L,Oqt)}return VzM},OUw=function(L,Z){Z.messageWeights&&L.messageWeights.push.apply(L.messageWeights,Z.messageWeights);
Z.callbackWeights&&L.callbackWeights.push.apply(L.callbackWeights,Z.callbackWeights)};_.Qk(_.Ur,_.ag);_.Ur.prototype.subscribe=function(L,Z,N){var S=this.topics_[L];S||(S=this.topics_[L]=[]);var u=this.JSC$10525_key_;this.subscriptions_[u]=L;this.subscriptions_[u+1]=Z;this.subscriptions_[u+2]=N;this.JSC$10525_key_=u+3;S.push(u);return u};
var bqt=function(L){var Z=HVH,N=!1,S=Z.subscribe("handleError",function(u){N||(N=!0,this.unsubscribeByKey(S),L.apply(void 0,arguments))},Z)};
_.Ur.prototype.unsubscribe=function(L,Z,N){if(L=this.topics_[L]){var S=this.subscriptions_;if(L=L.find(function(u){return S[u+1]==Z&&S[u+2]==N}))return this.unsubscribeByKey(L)}return!1};
_.Ur.prototype.unsubscribeByKey=function(L){var Z=this.subscriptions_[L];if(Z){var N=this.topics_[Z];this.publishDepth_!=0?(this.pendingKeys_.push(L),this.subscriptions_[L+1]=function(){}):(N&&_.zB(N,L),delete this.subscriptions_[L],delete this.subscriptions_[L+1],delete this.subscriptions_[L+2])}return!!Z};
_.Ur.prototype.publish=function(L,Z){var N=this.topics_[L];if(N){var S=Array(arguments.length-1),u=arguments.length,T;for(T=1;T<u;T++)S[T-1]=arguments[T];if(this.async_)for(T=0;T<N.length;T++)u=N[T],Mzs(this.subscriptions_[u+1],this.subscriptions_[u+2],S);else{this.publishDepth_++;try{for(T=0,u=N.length;T<u&&!this.isDisposed();T++){var W=N[T];this.subscriptions_[W+1].apply(this.subscriptions_[W+2],S)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;N=this.pendingKeys_.pop();)this.unsubscribeByKey(N)}}return T!=
0}return!1};
var Mzs=function(L,Z,N){_.kB(function(){L.apply(Z,N)})};
_.Ur.prototype.clear=function(L){if(L){var Z=this.topics_[L];Z&&(Z.forEach(this.unsubscribeByKey,this),delete this.topics_[L])}else this.subscriptions_.length=0,this.topics_={}};
_.Ur.prototype.getCount=function(L){if(L){var Z=this.topics_[L];return Z?Z.length:0}L=0;for(Z in this.topics_)L+=this.getCount(Z);return L};
_.Ur.prototype.disposeInternal=function(){_.Ur.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var HVH=new _.Ur;var RZ=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(RZ,_.On);RZ.prototype.getColdHashData=function(){return _.va(this,3)};
RZ.prototype.getHotHashData=function(){return _.va(this,5)};
RZ.prototype.setHotHashData=function(L){return _.dF(this,5,L)};var zRt=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(zRt,_.On);var $VA=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f($VA,_.On);_.t=$VA.prototype;_.t.getDeviceId=function(){return _.va(this,6)};
_.t.getExperimentIds=function(L){var Z=_.Bw(this,9,_.Ww,3,!0);LMG(Z,L);return Z[L]};
_.t.getPlayerType=function(){return _.oA(this,36)};
_.t.setHomeGroupInfo=function(L){return _.fG(this,81,L)};
_.t.clearLocationPlayabilityToken=function(){return _.oZ(this,89)};var UI=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(UI,_.On);UI.prototype.setKey=function(L){return _.dF(this,1,L)};
UI.prototype.getValue=function(){return ca(this,2,l9L)};
var l9L=[2,3,4,5,6];var g6t=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(g6t,_.On);g6t.prototype.setTrackingParams=function(L){return _.oZ(this,1,_.et(L,!1))};var DVL=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(DVL,_.On);var C20=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(C20,_.On);C20.prototype.getExperimentIds=function(L){var Z=_.Bw(this,5,_.csP,3,!0);LMG(Z,L);return Z[L]};var dY=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(dY,_.On);dY.prototype.getToken=function(){return _.yL(this,2)};
dY.prototype.setToken=function(L){return _.dF(this,2,L)};var e2=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(e2,_.On);e2.prototype.setSafetyMode=function(L){return _.vx(this,5,L)};var wY=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(wY,_.On);wY.prototype.setClient=function(L){return _.fG(this,1,L)};var JNH={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 mef;_.Ye=function(){var L=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.iH.addEventListener("beforeinstallprompt",function(Z){Z.preventDefault();L.deferredInstallPrompt=Z});
_.iH.addEventListener("appinstalled",function(){L.appInstalledEventFired=!0},{once:!0})};
mef=function(){if(!_.iH.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.iH.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.iH.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.iH.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.iH.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(L){return"WEB_DISPLAY_MODE_UNKNOWN"}};var XvA=function(){this.syncHeaders=!0},ANF=function(L){var Z={},N=[];
"USER_SESSION_ID"in _.rj&&N.push({key:"u",value:_.X7("USER_SESSION_ID")});if(N=_.$dt(N))Z.Authorization=N,N=L=L==null?void 0:L.sessionIndex,N===void 0&&(N=Number(_.X7("SESSION_INDEX",0)),N=isNaN(N)?0:N),_.c("voice_search_auth_header_removal")||(Z["X-Goog-AuthUser"]=N.toString()),"INNERTUBE_HOST_OVERRIDE"in _.rj||(Z["X-Origin"]=window.location.origin),L===void 0&&"DELEGATED_SESSION_ID"in _.rj&&(Z["X-Goog-PageId"]=_.X7("DELEGATED_SESSION_ID"));return Z};var G6L={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var uY=_.LZ("ytglobal.prefsUserPrefsPrefs_")||{},F2l;_.bp("ytglobal.prefsUserPrefsPrefs_",uY);_.TA=function(){this.cookieName=_.X7("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.X7("ALT_PREF_COOKIE_DOMAIN","youtube.com");var L=_.eZ.get(this.cookieName,void 0);L&&this.parse(L)};
_.tq=function(){F2l||(F2l=new _.TA);return F2l};
_.TA.prototype.get=function(L,Z){$jl(L);DjL(L);L=uY[L]!==void 0?uY[L].toString():null;return L!=null?L:Z?Z:""};
_.TA.prototype.set=function(L,Z){$jl(L);DjL(L);if(Z==null)throw Error("Mc");uY[L]=Z.toString()};
_.TA.prototype.getFlag=function(L){return!!((lW0("f"+(Math.floor(L/31)+1))||0)&1<<L%31)};
_.OT=function(L,Z,N){L="f"+(Math.floor(Z/31)+1);Z=1<<Z%31;var S=lW0(L)||0;S=N?S|Z:S&~Z;S===0?delete uY[L]:(N=S.toString(16),uY[L]=N.toString())};
_.TA.prototype.remove=function(L){$jl(L);DjL(L);delete uY[L]};
_.TA.prototype.save=function(){var L=!0;_.c("web_secure_pref_cookie_killswitch")&&(L=!1);_.Ie(this.cookieName,this.dump(),63072E3,this.cookieDomain,L)};
_.TA.prototype.clear=function(){_.Py.clear(uY)};
_.TA.prototype.dump=function(){var L=[],Z;for(Z in uY)uY.hasOwnProperty(Z)&&L.push(Z+"="+encodeURIComponent(String(uY[Z])));return L.join("&")};
var DjL=function(L){if(/^f([1-9][0-9]*)$/.test(L))throw Error("Nc`"+L);},$jl=function(L){if(!/^\w+$/.test(L))throw Error("Oc`"+L);
},lW0=function(L){L=uY[L]!==void 0?uY[L].toString():null;
return L!=null&&/^[A-Fa-f0-9]+$/.test(L)?parseInt(L,16):null};
_.TA.prototype.parse=function(L){L=decodeURIComponent(L).split("&");for(var Z=0;Z<L.length;Z++){var N=L[Z].split("="),S=N[0];(N=N[1])&&(uY[S]=N.toString())}};var jqs={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"},rNH={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},Qit={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},PBh={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var AC;_.tv=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.sI=function(L,Z,N){return L.addJob(Z,0,N)};
_.tv.prototype.addLowPriorityJob=function(L,Z){return this.addJob(L,1,Z)};
_.Gq=function(L,Z,N){return L.addJob(Z,2,N)};
_.SW=function(L,Z,N){return L.addJob(Z,3,N)};
_.H9=function(L,Z,N){return L.addJob(Z,4,N)};
AC=function(L){var Z=_.LZ("yt.scheduler.instance.addImmediateJob");Z?Z(L):L()};
_.tv.prototype.debounce=function(L,Z,N){var S=this,u=0,T=function(){u&&S.cancelJob(u);u=S.addJob(L,Z,N);S.cancelDebouncedJobMap.set(T,u)};
return T};
_.tv.prototype.cancelThrottle=function(L){(L=this.cancelThrottledJobMap.get(L))&&L()};var O4=function(){_.tv.apply(this,arguments)};
_.f(O4,_.tv);_.DK=function(){O4.instance||(O4.instance=new O4);return O4.instance};
O4.prototype.addJob=function(L,Z,N){N!==void 0&&Number.isNaN(Number(N))&&(N=void 0);var S=_.LZ("yt.scheduler.instance.addJob");return S?S(L,Z,N):N===void 0?(L(),NaN):_.cW(L,N||0)};
O4.prototype.cancelJob=function(L){if(L===void 0||!Number.isNaN(Number(L))){var Z=_.LZ("yt.scheduler.instance.cancelJob");Z?Z(L):_.fZ(L)}};
O4.prototype.start=function(){var L=_.LZ("yt.scheduler.instance.start");L&&L()};
O4.prototype.pause=function(){var L=_.LZ("yt.scheduler.instance.pause");L&&L()};
_.ro=_.DK();_.jZ.prototype.set=function(L,Z){Z===void 0?this.mechanism.remove(L):this.mechanism.set(L,(0,_.eJ)(Z))};
_.jZ.prototype.get=function(L){try{var Z=this.mechanism.get(L)}catch(N){return}if(Z!==null)try{return JSON.parse(Z)}catch(N){throw"Storage: Invalid value was encountered";}};
_.jZ.prototype.remove=function(L){this.mechanism.remove(L)};var Wc=function(L){this.mechanism=L};
_.Qk(Wc,_.jZ);var v6M=function(L){this.data=L},o6Y=function(L){return L===void 0||L instanceof v6M?L:new v6M(L)};
Wc.prototype.set=function(L,Z){Wc.superClass_.set.call(this,L,o6Y(Z))};
Wc.prototype.getWrapper=function(L){L=Wc.superClass_.get.call(this,L);if(L===void 0||L instanceof Object)return L;throw"Storage: Invalid value was encountered";};
Wc.prototype.get=function(L){if(L=this.getWrapper(L)){if(L=L.data,L===void 0)throw"Storage: Invalid value was encountered";}else L=void 0;return L};_.Qk(Er,Wc);_.RZh=function(L){var Z=L.creation;L=L.expiration;return!!L&&L<_.rc()||!!Z&&Z>_.rc()};
Er.prototype.set=function(L,Z,N){if(Z=o6Y(Z)){if(N){if(N<_.rc()){Er.prototype.remove.call(this,L);return}Z.expiration=N}Z.creation=_.rc()}Er.superClass_.set.call(this,L,Z)};
Er.prototype.getWrapper=function(L,Z){var N=Er.superClass_.getWrapper.call(this,L);if(N)if(!Z&&_.RZh(N))Er.prototype.remove.call(this,L);else return N};var V3=function(){};
V3.prototype.next=function(){return bY};
var bY={done:!0,value:void 0},MX=function(L){return{value:L,done:!1}};
V3.prototype.__iterator__=function(){return this};
_.cqt=function(L){if(L instanceof V3)return L;if(typeof L.__iterator__=="function")return L.__iterator__(!1);if(_.Jx(L)){var Z=0,N=new V3;N.next=function(){for(;;){if(Z>=L.length)return bY;if(Z in L)return MX(L[Z++]);Z++}};
return N}throw Error("Pc");};var n6h=function(L){if(L instanceof g1||L instanceof GA||L instanceof FD)return L;if(typeof L.next=="function")return new g1(function(){return L});
if(typeof L[Symbol.iterator]=="function")return new g1(function(){return L[Symbol.iterator]()});
if(typeof L.__iterator__=="function")return new g1(function(){return L.__iterator__()});
throw Error("Qc");},g1=function(L){this.func_=L};
g1.prototype.__iterator__=function(){return new GA(this.func_())};
g1.prototype[Symbol.iterator]=function(){return new FD(this.func_())};
g1.prototype.toEs6=function(){return new FD(this.func_())};
var GA=function(L){this.JSC$10609_iter_=L};
_.f(GA,V3);GA.prototype.next=function(){return this.JSC$10609_iter_.next()};
GA.prototype[Symbol.iterator]=function(){return new FD(this.JSC$10609_iter_)};
GA.prototype.toEs6=function(){return new FD(this.JSC$10609_iter_)};
var FD=function(L){g1.call(this,function(){return L});
this.JSC$10612_iter_=L};
_.f(FD,g1);FD.prototype.next=function(){return this.JSC$10612_iter_.next()};var K2t=function(){};var $F=function(){};
_.Qk($F,K2t);$F.prototype.getCount=function(){for(var L=0,Z=_.O(this),N=Z.next();!N.done;N=Z.next())L++;return L};
$F.prototype[Symbol.iterator]=function(){return n6h(this.__iterator__(!0)).toEs6()};
$F.prototype.clear=function(){var L=Array.from(this);L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next())this.remove(Z.value)};_.Qk(PW,$F);_.t=PW.prototype;_.t.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var L=this.storage_;if(L)try{L.setItem("__sak","1");L.removeItem("__sak");var Z=!0}catch(N){Z=N instanceof DOMException&&(N.name==="QuotaExceededError"||N.code===22||N.code===1014||N.name==="NS_ERROR_DOM_QUOTA_REACHED")&&L&&L.length!==0}else Z=!1;this.cachedIsStorageAvailable_=Z}return this.cachedIsStorageAvailable_};
_.t.set=function(L,Z){DQ(this);try{this.storage_.setItem(L,Z)}catch(N){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.t.get=function(L){DQ(this);L=this.storage_.getItem(L);if(typeof L!=="string"&&L!==null)throw"Storage mechanism: Invalid value was encountered";return L};
_.t.remove=function(L){DQ(this);this.storage_.removeItem(L)};
_.t.getCount=function(){DQ(this);return this.storage_.length};
_.t.__iterator__=function(L){DQ(this);var Z=0,N=this.storage_,S=new V3;S.next=function(){if(Z>=N.length)return bY;var u=N.key(Z++);if(L)return MX(u);u=N.getItem(u);if(typeof u!=="string")throw"Storage mechanism: Invalid value was encountered";return MX(u)};
return S};
_.t.clear=function(){DQ(this);this.storage_.clear()};
_.t.key=function(L){DQ(this);return this.storage_.key(L)};
var DQ=function(L){if(L.storage_==null)throw Error("Rc");L.isAvailable()||uH(Error("Rc"))};_.Qk(zZ_,PW);_.Qk(mj1,PW);_.Qk(pZ,$F);pZ.prototype.set=function(L,Z){this.mechanism_.set(this.JSC$10627_prefix_+L,Z)};
pZ.prototype.get=function(L){return this.mechanism_.get(this.JSC$10627_prefix_+L)};
pZ.prototype.remove=function(L){this.mechanism_.remove(this.JSC$10627_prefix_+L)};
pZ.prototype.__iterator__=function(L){var Z=this.mechanism_[Symbol.iterator](),N=this,S=new V3;S.next=function(){var u=Z.next();if(u.done)return u;for(u=u.value;u.slice(0,N.JSC$10627_prefix_.length)!=N.JSC$10627_prefix_;){u=Z.next();if(u.done)return u;u=u.value}return MX(L?u.slice(N.JSC$10627_prefix_.length):N.mechanism_.get(u))};
return S};_.Bx=function(L){this.expiringStorage_=(L=_.Jqs(L))?new Er(L):null;this.JSC$10631_domain_=document.domain||window.location.hostname};
_.t=_.Bx.prototype;_.t.hasLocalStorage=function(){return!!this.expiringStorage_};
_.t.set=function(L,Z,N,S){N=N||31104E3;this.remove(L);if(this.hasLocalStorage())try{this.expiringStorage_.set(L,Z,Date.now()+N*1E3);return}catch(T){}var u="";if(S)try{u=escape((0,_.eJ)(Z))}catch(T){return}else u=escape(Z);_.Ie(L,u,N,this.JSC$10631_domain_)};
_.t.get=function(L,Z){var N=void 0,S=!this.hasLocalStorage();if(!S)try{N=this.expiringStorage_.get(L)}catch(u){S=!0}if(S&&(N=_.eZ.get(L,void 0))&&(N=unescape(N),Z))try{N=JSON.parse(N)}catch(u){this.remove(L),N=void 0}return N};
_.t.remove=function(L){this.hasLocalStorage()&&this.expiringStorage_.remove(L);_.aWP(L,"/",this.JSC$10631_domain_)};
_.t.getCreationTime=function(L){return this.hasLocalStorage()&&(L=(this.expiringStorage_.getWrapper(L)||{}).creation,typeof L==="number")?L:null};var rqs=function(){var L;return function(){L||(L=new _.Bx("ytidb"));return L}}();var XBG;_.m5=[];XBG=!1;var MMP=Aq0||Hqw;var lY={},fWQ=(lY.AUTH_INVALID="No user identifier specified.",lY.EXPLICIT_ABORT="Transaction was explicitly aborted.",lY.IDB_NOT_SUPPORTED="IndexedDB is not supported.",lY.MISSING_INDEX="Index not created.",lY.MISSING_OBJECT_STORES="Object stores not created.",lY.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",lY.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",lY.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",lY.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",lY.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",lY.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",lY.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",lY),vc={},k6Y=(vc.AUTH_INVALID="ERROR",vc.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",vc.EXPLICIT_ABORT="IGNORED",
vc.IDB_NOT_SUPPORTED="ERROR",vc.MISSING_INDEX="WARNING",vc.MISSING_OBJECT_STORES="ERROR",vc.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",vc.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",vc.QUOTA_EXCEEDED="WARNING",vc.QUOTA_MAYBE_EXCEEDED="WARNING",vc.UNKNOWN_ABORT="WARNING",vc.INCOMPATIBLE_DB_VERSION="WARNING",vc),oy={},yqN=(oy.AUTH_INVALID=!1,oy.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,oy.EXPLICIT_ABORT=!1,oy.IDB_NOT_SUPPORTED=!1,oy.MISSING_INDEX=!1,oy.MISSING_OBJECT_STORES=!1,oy.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,oy.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,oy.QUOTA_EXCEEDED=!1,oy.QUOTA_MAYBE_EXCEEDED=!0,oy.UNKNOWN_ABORT=!0,oy.INCOMPATIBLE_DB_VERSION=!1,oy),A3=function(L,Z,N,S,u){Z=Z===void 0?{}:Z;N=N===void 0?fWQ[L]:N;S=S===void 0?k6Y[L]:S;u=u===void 0?yqN[L]:u;_.sr.call(this,N,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:L},Z));this.type=L;this.message=N;this.level=S;this.retryable=u;Object.setPrototypeOf(this,A3.prototype)};
_.f(A3,_.sr);var wBt=function(L,Z){A3.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:Z,foundObjectStores:L},fWQ.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,wBt.prototype)};
_.f(wBt,A3);var xj_=function(L,Z){var N=Error.call(this);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.index=L;this.objectStore=Z;Object.setPrototypeOf(this,xj_.prototype)};
_.f(xj_,Error);var qTh=["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 qu=function(L){this.executor=L},xs=function(L){var Z=this;
this.state={status:"PENDING"};this.JSC$10659_onFulfilled=[];this.JSC$10659_onRejected=[];L=L.executor;var N=function(u){if(Z.state.status==="PENDING"){Z.state={status:"FULFILLED",value:u};u=_.O(Z.JSC$10659_onFulfilled);for(var T=u.next();!T.done;T=u.next())T=T.value,T()}},S=function(u){if(Z.state.status==="PENDING"){Z.state={status:"REJECTED",
reason:u};u=_.O(Z.JSC$10659_onRejected);for(var T=u.next();!T.done;T=u.next())T=T.value,T()}};
try{L(N,S)}catch(u){S(u)}};
xs.all=function(L){return new xs(new qu(function(Z,N){var S=[],u=L.length;u===0&&Z(S);for(var T={i$jscomp$468:0};T.i$jscomp$468<L.length;T={i$jscomp$468:T.i$jscomp$468},++T.i$jscomp$468)xs.resolve(L[T.i$jscomp$468]).then(function(W){return function(V){S[W.i$jscomp$468]=V;u--;u===0&&Z(S)}}(T)).catch(function(W){N(W)})}))};
xs.resolve=function(L){return new xs(new qu(function(Z,N){L instanceof xs?L.then(Z,N):Z(L)}))};
xs.reject=function(L){return new xs(new qu(function(Z,N){N(L)}))};
xs.prototype.then=function(L,Z){var N=this,S=L!=null?L:Nnx,u=Z!=null?Z:ZkB;return new xs(new qu(function(T,W){N.state.status==="PENDING"?(N.JSC$10659_onFulfilled.push(function(){UjY(N,N,S,T,W)}),N.JSC$10659_onRejected.push(function(){YTt(N,N,u,T,W)})):N.state.status==="FULFILLED"?UjY(N,N,S,T,W):N.state.status==="REJECTED"&&YTt(N,N,u,T,W)}))};
xs.prototype.catch=function(L){return this.then(void 0,L)};
var UjY=function(L,Z,N,S,u){try{if(L.state.status!=="FULFILLED")throw Error("Uc");var T=N(L.state.value);T instanceof xs?eZ0(L,Z,T,S,u):S(T)}catch(W){u(W)}},YTt=function(L,Z,N,S,u){try{if(L.state.status!=="REJECTED")throw Error("Vc");
var T=N(L.state.reason);T instanceof xs?eZ0(L,Z,T,S,u):S(T)}catch(W){u(W)}},eZ0=function(L,Z,N,S,u){Z===N?u(new TypeError("Wc")):N.then(function(T){T instanceof xs?eZ0(L,Z,T,S,u):S(T)},function(T){u(T)})};var Ry;Ry=window;_.GT=Ry.ytcsi&&Ry.ytcsi.now?Ry.ytcsi.now:Ry.performance&&Ry.performance.timing&&Ry.performance.now&&Ry.performance.timing.navigationStart?function(){return Ry.performance.timing.navigationStart+Ry.performance.now()}:function(){return(new Date).getTime()};var Zk=function(L,Z){this.JSC$10671_wrapped=L;this.options=Z;this.transactionCount=0;this.startedMs=Math.round((0,_.GT)());this.hasUnknownAbortedTransaction=!1},cc=function(){return _.c("idb_immediate_commit")},aW5,hZ5,f2,E6s;
Zk.prototype.add=function(L,Z,N){return _.TT(this,[L],{mode:"readwrite",enableRetries:!0,commit:cc()},function(S){return S.objectStore(L).add(Z,N)})};
Zk.prototype.clear=function(L){return _.TT(this,[L],{mode:"readwrite",enableRetries:!0},function(Z){return Z.objectStore(L).clear()})};
Zk.prototype.close=function(){this.JSC$10671_wrapped.close();var L;((L=this.options)==null?0:L.closed)&&this.options.closed()};
Zk.prototype.count=function(L,Z){return _.TT(this,[L],{mode:"readonly",enableRetries:!0,commit:cc()},function(N){return N.objectStore(L).count(Z)})};
var qO=function(L,Z,N){L=L.JSC$10671_wrapped.createObjectStore(Z,N);return new n2(L)};
Zk.prototype.delete=function(L,Z){return _.TT(this,[L],{mode:"readwrite",enableRetries:!0,commit:cc()&&!(Z instanceof IDBKeyRange)},function(N){return N.objectStore(L).delete(Z)})};
var IWN=function(L,Z){return _.TT(L,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(N){return N.objectStore("ResponseStore").index("byInterface").delete(Z)})};
Zk.prototype.get=function(L,Z){return _.TT(this,[L],{mode:"readonly",enableRetries:!0,commit:cc()},function(N){return N.objectStore(L).get(Z)})};
Zk.prototype.getAll=function(L,Z,N){return _.TT(this,[L],{mode:"readonly",enableRetries:!0},function(S){return S.objectStore(L).getAll(Z,N)})};
Zk.prototype.put=function(L,Z,N){return _.TT(this,[L],{mode:"readwrite",enableRetries:!0,commit:cc()},function(S){return S.objectStore(L).put(Z,N)})};
Zk.prototype.objectStoreNames=function(){return Array.from(this.JSC$10671_wrapped.objectStoreNames)};
_.TT=function(L,Z,N,S){var u,T,W,V,M,G,D,l,v,R,K,U;return _.b(function(d){switch(d.nextAddress){case 1:var h={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof N==="string"?h.mode=N:Object.assign(h,N);u=h;L.transactionCount++;T=u.enableRetries?3:1;W=0;case 2:if(V){d.jumpTo(4);break}W++;M=Math.round((0,_.GT)());_.RS(d,5);G=L.JSC$10671_wrapped.transaction(Z,u.mode);h=d.yield;var E=!!u.commit;var A=new NO(G);E=dj5(A,S,E);return h.call(d,E,7);case 7:return D=d.yieldResult,l=Math.round((0,_.GT)()),
aW5(L,M,l,W,void 0,Z.join(),u),d.return(D);case 5:v=_.yd(d);R=Math.round((0,_.GT)());K=L3H(v,L.JSC$10671_wrapped.name,Z.join(),L.JSC$10671_wrapped.version);if((U=K instanceof A3&&!K.retryable)||W>=T)aW5(L,M,R,W,K,Z.join(),u),V=K;d.jumpTo(2);break;case 4:return d.return(Promise.reject(V))}})};
aW5=function(L,Z,N,S,u,T,W){Z=N-Z;u?(u instanceof A3&&(u.type==="QUOTA_EXCEEDED"||u.type==="QUOTA_MAYBE_EXCEEDED")&&CZ("QUOTA_EXCEEDED",{dbName:QZ(L.JSC$10671_wrapped.name),objectStoreNames:T,transactionCount:L.transactionCount,transactionMode:W.mode}),u instanceof A3&&u.type==="UNKNOWN_ABORT"&&(N-=L.startedMs,N<0&&N>=2147483648&&(N=0),CZ("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:T,transactionDuration:Z,transactionCount:L.transactionCount,dbDuration:N}),L.hasUnknownAbortedTransaction=!0),
hZ5(L,!1,S,T,Z,W.tag),_.J3(u)):hZ5(L,!0,S,T,Z,W.tag)};
hZ5=function(L,Z,N,S,u,T){CZ("TRANSACTION_ENDED",{objectStoreNames:S,connectionHasUnknownAbortedTransaction:L.hasUnknownAbortedTransaction,duration:u,isSuccessful:Z,tryCount:N,tag:T===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":T})};
Zk.prototype.getName=function(){return this.JSC$10671_wrapped.name};
var n2=function(L){this.JSC$10686_wrapped=L};
n2.prototype.add=function(L,Z){return LQ(this.JSC$10686_wrapped.add(L,Z))};
n2.prototype.autoIncrement=function(){return this.JSC$10686_wrapped.autoIncrement};
n2.prototype.clear=function(){return LQ(this.JSC$10686_wrapped.clear()).then(function(){})};
var LA=function(L,Z,N){L.JSC$10686_wrapped.createIndex(Z,N,{unique:!1})};
n2.prototype.count=function(L){return LQ(this.JSC$10686_wrapped.count(L))};
var sqt=function(L,Z){return O6(L,{query:Z},function(N){return N.delete().then(function(){return N.continue()})}).then(function(){})};
n2.prototype.delete=function(L){return L instanceof IDBKeyRange?sqt(this,L):LQ(this.JSC$10686_wrapped.delete(L))};
n2.prototype.get=function(L){return LQ(this.JSC$10686_wrapped.get(L))};
n2.prototype.getAll=function(L,Z){return"getAll"in IDBObjectStore.prototype?LQ(this.JSC$10686_wrapped.getAll(L,Z)):jql(this,L,Z)};
var jql=function(L,Z,N){var S=[];return O6(L,{query:Z},function(u){if(!(N!==void 0&&S.length>=N))return S.push(u.getValue()),u.continue()}).then(function(){return S})};
n2.prototype.index=function(L){try{return new K2(this.JSC$10686_wrapped.index(L))}catch(Z){if(Z instanceof Error&&Z.name==="NotFoundError")throw new xj_(L,this.JSC$10686_wrapped.name);throw Z;}};
n2.prototype.getName=function(){return this.JSC$10686_wrapped.name};
n2.prototype.keyPath=function(){return this.JSC$10686_wrapped.keyPath};
n2.prototype.put=function(L,Z){return LQ(this.JSC$10686_wrapped.put(L,Z))};
var O6=function(L,Z,N){L=L.JSC$10686_wrapped.openCursor(Z.query,Z.direction);return E6s(L).then(function(S){return u8B(S,N)})},NO=function(L){var Z=this;
this.JSC$10694_wrapped=L;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(N,S){Z.JSC$10694_wrapped.addEventListener("complete",function(){N()});
Z.JSC$10694_wrapped.addEventListener("error",function(u){u.currentTarget===u.target&&S(Z.JSC$10694_wrapped.error)});
Z.JSC$10694_wrapped.addEventListener("abort",function(){var u=Z.JSC$10694_wrapped.error;if(u)S(u);else if(!Z.aborted){u=A3;for(var T=Z.JSC$10694_wrapped.objectStoreNames,W=[],V=0;V<T.length;V++){var M=T.item(V);if(M===null)throw Error("Xc");W.push(M)}u=new u("UNKNOWN_ABORT",{objectStoreNames:W.join(),dbName:Z.JSC$10694_wrapped.db.name,mode:Z.JSC$10694_wrapped.mode});S(u)}})})},dj5=function(L,Z,N){var S=new Promise(function(u,T){try{var W=Z(L);
N&&L.commit();W.then(function(V){u(V)}).catch(T)}catch(V){T(V),L.abort()}});
return Promise.all([S,L.done]).then(function(u){return _.O(u).next().value})};
NO.prototype.abort=function(){this.JSC$10694_wrapped.abort();this.aborted=!0;throw new A3("EXPLICIT_ABORT");};
NO.prototype.commit=function(){if(!this.aborted){var L,Z;(Z=(L=this.JSC$10694_wrapped).commit)==null||Z.call(L)}};
NO.prototype.objectStore=function(L){L=this.JSC$10694_wrapped.objectStore(L);var Z=this.objectStoreCache.get(L);Z||(Z=new n2(L),this.objectStoreCache.set(L,Z));return Z};
var K2=function(L){this.JSC$10696_wrapped=L};
K2.prototype.count=function(L){return LQ(this.JSC$10696_wrapped.count(L))};
K2.prototype.delete=function(L){return _.FW(this,{query:L},function(Z){return Z.delete().then(function(){return Z.continue()})})};
K2.prototype.get=function(L){return LQ(this.JSC$10696_wrapped.get(L))};
K2.prototype.getAll=function(L,Z){return"getAll"in IDBIndex.prototype?LQ(this.JSC$10696_wrapped.getAll(L,Z)):PBM(this,L,Z)};
var PBM=function(L,Z,N){var S=[];return _.FW(L,{query:Z},function(u){if(!(N!==void 0&&S.length>=N))return S.push(u.getValue()),u.continue()}).then(function(){return S})};
K2.prototype.keyPath=function(){return this.JSC$10696_wrapped.keyPath};
K2.prototype.unique=function(){return this.JSC$10696_wrapped.unique};
_.FW=function(L,Z,N){L=L.JSC$10696_wrapped.openCursor(Z.query===void 0?null:Z.query,Z.direction===void 0?"next":Z.direction);return E6s(L).then(function(S){return u8B(S,N)})};
f2=function(L,Z){this.request=L;this.cursor=Z};
E6s=function(L){return LQ(L).then(function(Z){return Z?new f2(L,Z):null})};
f2.prototype.continue=function(L){this.cursor.continue(L);return E6s(this.request)};
f2.prototype.delete=function(){return LQ(this.cursor.delete()).then(function(){})};
f2.prototype.getValue=function(){return this.cursor.value};
f2.prototype.update=function(L){return LQ(this.cursor.update(L))};var kF=function(L,Z){this.name=L;this.options=Z;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},pBt;
kF.prototype.openDb=function(L,Z,N){N=N===void 0?{}:N;return tMw(L,Z,N)};
kF.prototype.delete=function(L){L=L===void 0?{}:L;return _.ip(this.name,L)};
pBt=function(L,Z){return new A3("INCOMPATIBLE_DB_VERSION",{dbName:L.name,oldVersion:L.options.version,newVersion:Z})};
_.up=function(L,Z){if(!Z)throw BW("openWithToken",QZ(L.name));return L.open()};
kF.prototype.open=function(){var L=this;if(!this.isCompatible)throw pBt(this);if(this.connectionPromise)return this.connectionPromise;var Z,N=function(){L.connectionPromise===Z&&(L.connectionPromise=void 0)},S={blocking:function(T){T.close()},
closed:N,terminated:N,upgrade:this.options.upgrade},u=function(){var T,W,V,M,G,D,l,v,R,K;return _.b(function(U){switch(U.nextAddress){case 1:return W=(T=Error().stack)!=null?T:"",_.RS(U,2),U.yield(L.openDb(L.name,L.options.version,S),4);case 4:for(var d=V=U.yieldResult,h=L.options,E=[],A=_.O(Object.keys(h.objectStores)),J=A.next();!J.done;J=A.next()){J=J.value;var C=h.objectStores[J],X=C.removedAtVersion===void 0?Number.MAX_VALUE:C.removedAtVersion;!(d.JSC$10671_wrapped.version>=C.addedAtVersion)||
d.JSC$10671_wrapped.version>=X||d.JSC$10671_wrapped.objectStoreNames.contains(J)||E.push(J)}M=E;if(M.length===0){U.jumpTo(5);break}G=Object.keys(L.options.objectStores);D=V.objectStoreNames();if(L.timesReopenedToFixMissingObjectStore<_.lQ("ytidb_reopen_db_retries",0))return L.timesReopenedToFixMissingObjectStore++,V.close(),_.J3(new A3("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:L.name,expectedObjectStores:G,foundObjectStores:D})),U.return(u());if(!(L.timesDeletedToFixMissingObjectStore<_.lQ("ytidb_remake_db_retries",
1))){U.jumpTo(6);break}L.timesDeletedToFixMissingObjectStore++;return U.yield(L.delete(),7);case 7:return _.J3(new A3("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:L.name,expectedObjectStores:G,foundObjectStores:D})),U.return(u());case 6:throw new wBt(D,G);case 5:return U.return(V);case 2:l=_.yd(U);if(l instanceof DOMException?l.name!=="VersionError":"DOMError"in self&&l instanceof DOMError?l.name!=="VersionError":!(l instanceof Object&&"message"in l)||l.message!=="An attempt was made to open a database using a lower version than the existing version."){U.jumpTo(8);
break}return U.yield(L.openDb(L.name,void 0,Object.assign({},S,{upgrade:void 0})),9);case 9:v=U.yieldResult;R=v.JSC$10671_wrapped.version;if(L.options.version!==void 0&&R>L.options.version+1)throw v.close(),L.isCompatible=!1,pBt(L,R);return U.return(v);case 8:throw N(),l instanceof Error&&!_.c("ytidb_async_stack_killswitch")&&(l.stack=l.stack+"\n"+W.substring(W.indexOf("\n")+1)),L3H(l,L.name,"",(K=L.options.version)!=null?K:-1);}})};
return this.connectionPromise=Z=u()};var Okf=new kF("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(L,Z){Z(1)&&qO(L,"databases",{keyPath:"actualName"})}});var F3B,gQG=new function(){}(new function(){});new _.qe;var zZq=function(L,Z){kF.call(this,L,Z);this.options=Z;rv(L)};
_.f(zZq,kF);var fT1=function(L,Z){var N;return function(){N||(N=new zZq(L,Z));return N}};
zZq.prototype.openDb=function(L,Z,N){N=N===void 0?{}:N;return(this.options.shared?oQt:vQF)(L,Z,Object.assign({},N))};
zZq.prototype.delete=function(L){L=L===void 0?{}:L;return(this.options.shared?K3f:RRP)(this.name,L)};var mj0={},kax=go("ytGcfConfig",{objectStores:(mj0.coldConfigStore={addedAtVersion:1},mj0.hotConfigStore={addedAtVersion:1},mj0),shared:!1,upgrade:function(L,Z){Z(1)&&(LA(qO(L,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),LA(qO(L,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Jql=function(){_.ag.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var L=_.LZ("yt.gcf.config.hotUpdateCallbacks");L?(this.localHotConfigJobQueue=[].concat(_.Pd(L)),this.sharedHotConfigJobQueue=L):(this.sharedHotConfigJobQueue=[],_.bp("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.f(Jql,_.ag);Jql.prototype.disposeInternal=function(){for(var L=_.O(this.localHotConfigJobQueue),Z=L.next();!Z.done;Z=L.next()){var N=this.sharedHotConfigJobQueue;Z=N.indexOf(Z.value);Z>=0&&N.splice(Z,1)}this.localHotConfigJobQueue.length=0;_.ag.prototype.disposeInternal.call(this)};var j2=function(){var L=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Jql;this.TEST_ONLY={initializeConfigDb:function(){L.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return L.coldGlobalConfigGroup},
setHotConfigGroup:function(Z){CBM(L,Z)},
setHotHashData:function(Z){L.setHotHashData(Z)},
setColdConfigGroup:function(Z){rql(L,Z)},
getColdHashData:function(){return L.coldHashData},
getHotHashData:function(){return L.hotHashData},
getHotConfigGroup:function(){return L.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return QqQ()},
getExportedHotConfigGroup:function(){return y3()},
getExportedColdHashData:function(){return _.LZ("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.LZ("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){XBY(L)},
resetInstance:function(){L.setHotHashData(void 0);AqN(L);delete j2.instance},
setDebounceTimer:function(Z){L.debounceTimer=Z},
getDebounceTimer:function(){return L.debounceTimer}}},Hqh=function(){if(!j2.instance){var L=new j2;
j2.instance=L}return j2.instance},qTM=function(L){var Z;
_.b(function(N){if(N.nextAddress==1)return _.c("start_client_gcf")||_.c("delete_gcf_config_db")?_.c("start_client_gcf")?N.yield(_.MO(),3):N.jumpTo(2):N.return();N.nextAddress!=2&&((Z=N.yieldResult)&&_.h3()&&!_.c("delete_gcf_config_db")?(L.isConfigDbInitialized=!0,XBY(L)):(BRI(L),xjq(L)));return _.c("delete_gcf_config_db")?N.yield(IT1(),0):N.jumpTo(0)})},EI=function(){var L;
return(L=y3())!=null?L:_.X7("RAW_HOT_CONFIG_GROUP")},L3t=function(L){var Z,N,S,u,T,W;
return _.b(function(V){switch(V.nextAddress){case 1:if(L.hotGlobalConfigGroup)return V.return(y3());if(!L.isConfigDbInitialized)return Z=BW("getHotConfig IDB not initialized"),_.Zx(Z),V.return(Promise.reject(Z));N=VH();S=_.X7("TIME_CREATED_MS");if(!N){u=BW("getHotConfig token error");_.Zx(u);V.jumpTo(2);break}return V.yield(eRs(N),3);case 3:if((T=V.yieldResult)&&T.timestamp>S)return CBM(L,T.config),L.setHotHashData(T.hashData),V.return(y3());case 2:xjq(L);if(!(N&&L.hotGlobalConfigGroup&&L.hotHashData)){V.jumpTo(4);
break}return V.yield(wvw(L.hotGlobalConfigGroup,L.hotHashData,N,S),4);case 4:return L.hotGlobalConfigGroup?V.return(y3()):(W=new _.sr("Config not available in ytConfig"),_.Zx(W),V.return(Promise.reject(W)))}})},Nns=function(L){var Z,N,S,u,T,W;
return _.b(function(V){switch(V.nextAddress){case 1:if(L.coldGlobalConfigGroup)return V.return(QqQ());if(!L.isConfigDbInitialized)return Z=BW("getColdConfig IDB not initialized"),_.Zx(Z),V.return(Promise.reject(Z));N=VH();S=_.X7("TIME_CREATED_MS");if(!N){u=BW("getColdConfig");_.Zx(u);V.jumpTo(2);break}return V.yield(Y9h(N),3);case 3:if((T=V.yieldResult)&&T.timestamp>S)return rql(L,T.config),ZkV(L,T.configData),AqN(L,T.hashData),V.return(QqQ());case 2:BRI(L);if(!(N&&L.coldGlobalConfigGroup&&L.coldHashData&&
L.configData)){V.jumpTo(4);break}return V.yield(Ue_(L.coldGlobalConfigGroup,L.coldHashData,L.configData,N,S),4);case 4:return L.coldGlobalConfigGroup?V.return(QqQ()):(W=new _.sr("Config not available in ytConfig"),_.Zx(W),V.return(Promise.reject(W)))}})},XBY=function(L){if(!L.hotGlobalConfigGroup||!L.coldGlobalConfigGroup){if(!VH()){var Z=BW("scheduleGetConfigs");
_.Zx(Z)}L.initJob||(L.initJob=_.ro.addLowPriorityJob(function(){return _.b(function(N){switch(N.nextAddress){case 1:return _.RS(N,2),N.yield(L3t(L),4);case 4:_.SX(N,3);break;case 2:_.yd(N);case 3:return _.RS(N,5),N.yield(Nns(L),7);case 7:_.SX(N,6);break;case 5:_.yd(N);case 6:L.initJob&&(L.initJob=0),_.w7(N)}})},100))}},UVF=function(L,Z,N){var S,u,T;
return _.b(function(W){switch(W.nextAddress){case 1:if(!_.c("start_client_gcf")){W.jumpTo(0);break}N&&CBM(L,N);L.setHotHashData(Z);S=VH();if(!S){W.jumpTo(3);break}if(N){W.jumpTo(4);break}return W.yield(eRs(S),5);case 5:u=W.yieldResult,N=(T=u)==null?void 0:T.config;case 4:return W.yield(wvw(N,Z,S),3);case 3:if(N)for(var V=N,M=_.O(L.configUpdateService.sharedHotConfigJobQueue),G=M.next();!G.done;G=M.next())G=G.value,G(V);_.w7(W)}})},YCG=function(L,Z,N){var S,u,T,W;
return _.b(function(V){if(V.nextAddress==1){if(!_.c("start_client_gcf"))return V.jumpTo(0);AqN(L,Z);return(S=VH())?N?V.jumpTo(4):V.yield(Y9h(S),5):V.jumpTo(0)}V.nextAddress!=4&&(u=V.yieldResult,N=(T=u)==null?void 0:T.config);if(!N)return V.jumpTo(0);W=N.configData;return V.yield(Ue_(N,Z,W,S),0)})},Bnt=function(){var L=Hqh(),Z=(0,_.GT)()-L.debounceTimer;
if(!(L.debounceTimer!==0&&Z<_.lQ("send_config_hash_timer"))){Z=_.LZ("yt.gcf.config.coldConfigData");var N=_.LZ("yt.gcf.config.hotHashData"),S=_.LZ("yt.gcf.config.coldHashData");Z&&N&&S&&(L.debounceTimer=(0,_.GT)());return{coldConfigData:Z,hotHashData:N,coldHashData:S}}},BRI=function(L){rql(L,_.X7("RAW_COLD_CONFIG_GROUP"));
AqN(L,_.X7("SERIALIZED_COLD_HASH_DATA"));var Z;ZkV(L,(Z=L.coldGlobalConfigGroup)==null?void 0:Z.configData)},xjq=function(L){CBM(L,_.X7("RAW_HOT_CONFIG_GROUP"));
L.setHotHashData(_.X7("SERIALIZED_HOT_HASH_DATA"))},CBM=function(L,Z){L.hotGlobalConfigGroup=Z;
_.bp("yt.gcf.config.hotConfigGroup",L.hotGlobalConfigGroup||null)},rql=function(L,Z){L.coldGlobalConfigGroup=Z;
_.bp("yt.gcf.config.coldConfigGroup",L.coldGlobalConfigGroup||null)};
j2.prototype.setHotHashData=function(L){this.hotHashData=L;_.bp("yt.gcf.config.hotHashData",this.hotHashData||null)};
var AqN=function(L,Z){L.coldHashData=Z;_.bp("yt.gcf.config.coldHashData",L.coldHashData||null)},ZkV=function(L,Z){L.configData=Z;
_.bp("yt.gcf.config.coldConfigData",L.configData||null)},y3=function(){return _.LZ("yt.gcf.config.hotConfigGroup")},QqQ=function(){return _.LZ("yt.gcf.config.coldConfigGroup")};var kj={},S9V=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";kj.assign=function(L){for(var Z=Array.prototype.slice.call(arguments,1);Z.length;){var N=Z.shift();if(N){if(typeof N!=="object")throw new TypeError("$c`"+N);for(var S in N)Object.prototype.hasOwnProperty.call(N,S)&&(L[S]=N[S])}}return L};
kj.shrinkBuf=function(L,Z){if(L.length===Z)return L;if(L.subarray)return L.subarray(0,Z);L.length=Z;return L};
var ikl={arraySet:function(L,Z,N,S,u){if(Z.subarray&&L.subarray)L.set(Z.subarray(N,N+S),u);else for(var T=0;T<S;T++)L[u+T]=Z[N+T]},
flattenChunks:function(L){var Z,N;var S=N=0;for(Z=L.length;S<Z;S++)N+=L[S].length;var u=new Uint8Array(N);S=N=0;for(Z=L.length;S<Z;S++){var T=L[S];u.set(T,N);N+=T.length}return u}},u8V={arraySet:function(L,Z,N,S,u){for(var T=0;T<S;T++)L[u+T]=Z[N+T]},
flattenChunks:function(L){return[].concat.apply([],L)}};
kj.setTyped=function(){S9V?(kj.Buf8=Uint8Array,kj.Buf16=Uint16Array,kj.Buf32=Int32Array,kj.assign(kj,ikl)):(kj.Buf8=Array,kj.Buf16=Array,kj.Buf32=Array,kj.assign(kj,u8V))};
kj.setTyped();var TnI=!0;try{new Uint8Array(1)}catch(L){TnI=!1}
var e3P=function(L){var Z,N,S=L.length,u=0;for(Z=0;Z<S;Z++){var T=L.charCodeAt(Z);if((T&64512)===55296&&Z+1<S){var W=L.charCodeAt(Z+1);(W&64512)===56320&&(T=65536+(T-55296<<10)+(W-56320),Z++)}u+=T<128?1:T<2048?2:T<65536?3:4}var V=new kj.Buf8(u);for(Z=N=0;N<u;Z++)T=L.charCodeAt(Z),(T&64512)===55296&&Z+1<S&&(W=L.charCodeAt(Z+1),(W&64512)===56320&&(T=65536+(T-55296<<10)+(W-56320),Z++)),T<128?V[N++]=T:(T<2048?V[N++]=192|T>>>6:(T<65536?V[N++]=224|T>>>12:(V[N++]=240|T>>>18,V[N++]=128|T>>>12&63),V[N++]=
128|T>>>6&63),V[N++]=128|T&63);return V};var lCf={};lCf=function(L,Z,N,S){var u=L&65535|0;L=L>>>16&65535|0;for(var T;N!==0;){T=N>2E3?2E3:N;N-=T;do u=u+Z[S++]|0,L=L+u|0;while(--T);u%=65521;L%=65521}return u|L<<16|0};for(var pQ={},w1,tMh=[],Okt=0;Okt<256;Okt++){w1=Okt;for(var W3l=0;W3l<8;W3l++)w1=w1&1?3988292384^w1>>>1:w1>>>1;tMh[Okt]=w1}pQ=function(L,Z,N,S){N=S+N;for(L^=-1;S<N;S++)L=L>>>8^tMh[(L^Z[S])&255];return L^-1};var Yj={};Yj={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 tDA=[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],Wl1=[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],YxP=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],$Jx=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ha=Array(576);cx(ha);var s6=Array(60);cx(s6);var wo=Array(512);cx(wo);var yH=Array(256);cx(yH);var OXt=Array(29);cx(OXt);var VDA=Array(30);cx(VDA);var yzB,wqH,UJL,k7P=!1;var CQ;
CQ=[new Ja(0,0,0,0,function(L,Z){var N=65535;for(N>L.pending_buf_size-5&&(N=L.pending_buf_size-5);;){if(L.lookahead<=1){zT(L);if(L.lookahead===0&&Z===0)return 1;if(L.lookahead===0)break}L.strstart+=L.lookahead;L.lookahead=0;var S=L.block_start+N;if(L.strstart===0||L.strstart>=S)if(L.lookahead=L.strstart-S,L.strstart=S,jX(L,!1),L.strm.avail_out===0)return 1;if(L.strstart-L.block_start>=L.w_size-262&&(jX(L,!1),L.strm.avail_out===0))return 1}L.insert=0;if(Z===4)return jX(L,!0),L.strm.avail_out===0?3:
4;L.strstart>L.block_start&&jX(L,!1);return 1}),
new Ja(4,4,8,4,veL),new Ja(4,5,16,8,veL),new Ja(4,6,32,32,veL),new Ja(4,4,16,16,mz),new Ja(8,16,32,32,mz),new Ja(8,16,128,128,mz),new Ja(8,32,128,256,mz),new Ja(32,128,258,1024,mz),new Ja(32,258,258,4096,mz)];var fCG={};fCG=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 ICw=Object.prototype.toString;
Klx.prototype.push=function(L,Z){var N=this.strm,S=this.options.chunkSize;if(this.ended)return!1;var u=Z===~~Z?Z:Z===!0?4:0;typeof L==="string"?N.input=e3P(L):ICw.call(L)==="[object ArrayBuffer]"?N.input=new Uint8Array(L):N.input=L;N.next_in=0;N.avail_in=N.input.length;do{N.avail_out===0&&(N.output=new kj.Buf8(S),N.next_out=0,N.avail_out=S);L=neh(N,u);if(L!==1&&L!==0)return VMt(this,L),this.ended=!0,!1;if(N.avail_out===0||N.avail_in===0&&(u===4||u===2))if(this.options.to==="string"){var T=kj.shrinkBuf(N.output,
N.next_out);Z=T;T=T.length;if(T<65537&&(Z.subarray&&TnI||!Z.subarray))Z=String.fromCharCode.apply(null,kj.shrinkBuf(Z,T));else{for(var W="",V=0;V<T;V++)W+=String.fromCharCode(Z[V]);Z=W}this.chunks.push(Z)}else Z=kj.shrinkBuf(N.output,N.next_out),this.chunks.push(Z)}while((N.avail_in>0||N.avail_out===0)&&L!==1);if(u===4)return(N=this.strm)&&N.state?(S=N.state.status,S!==42&&S!==69&&S!==73&&S!==91&&S!==103&&S!==113&&S!==666?L=eX(N,-2):(N.state=null,L=S===113?eX(N,-3):0)):L=-2,VMt(this,L),this.ended=
!0,L===0;u===2&&(VMt(this,0),N.avail_out=0);return!0};
var VMt=function(L,Z){Z===0&&(L.result=L.options.to==="string"?L.chunks.join(""):kj.flattenChunks(L.chunks));L.chunks=[];L.err=Z;L.msg=L.strm.msg};var bks=typeof TextEncoder!=="undefined"?new TextEncoder:null,Od0=bks?function(L){return bks.encode(L)}:function(L){L=_.dZ(L);
for(var Z=new Uint8Array(L.length),N=0;N<Z.length;N++)Z[N]=L[N];return Z};var xfh={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},Lif={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var U4=function(L,Z){this.version=L;this.args=Z};
U4.prototype.serialize=function(){return{version:this.version,args:this.args}};var jss=function(L,Z){this.topic=L;this.dataClass=Z};
jss.prototype.toString=function(){return this.topic};var MM5=_.LZ("ytPubsub2Pubsub2Instance")||new _.Ur;_.Ur.prototype.subscribe=_.Ur.prototype.subscribe;_.Ur.prototype.unsubscribeByKey=_.Ur.prototype.unsubscribeByKey;_.Ur.prototype.publish=_.Ur.prototype.publish;_.Ur.prototype.clear=_.Ur.prototype.clear;_.bp("ytPubsub2Pubsub2Instance",MM5);var ssF=_.LZ("ytPubsub2Pubsub2SubscribedKeys")||{};_.bp("ytPubsub2Pubsub2SubscribedKeys",ssF);var PvA=_.LZ("ytPubsub2Pubsub2TopicToKeys")||{};_.bp("ytPubsub2Pubsub2TopicToKeys",PvA);
var Eex=_.LZ("ytPubsub2Pubsub2IsAsync")||{};_.bp("ytPubsub2Pubsub2IsAsync",Eex);_.bp("ytPubsub2Pubsub2SkipSubKey",null);var HXt=void 0,Xqt=void 0;var id1=_.lQ("max_body_size_to_compress",5E5),u4B=_.lQ("min_body_size_to_compress",500),XW=!0,bd_=0,Aa=0,VAh=_.lQ("compression_performance_threshold_lr",250),MAA=_.lQ("slow_compressions_before_abandon_count",4),qxw=!1,LLt=new Map,tAF=1,TD0=!0;_.Qk(Hx,FLf);Hx.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 gQY=function(L,Z,N){N||(N=0);var S=L.W_;if(typeof Z==="string")for(var u=0;u<16;u++)S[u]=Z.charCodeAt(N)<<24|Z.charCodeAt(N+1)<<16|Z.charCodeAt(N+2)<<8|Z.charCodeAt(N+3),N+=4;else for(u=0;u<16;u++)S[u]=Z[N]<<24|Z[N+1]<<16|Z[N+2]<<8|Z[N+3],N+=4;for(Z=16;Z<80;Z++)N=S[Z-3]^S[Z-8]^S[Z-14]^S[Z-16],S[Z]=(N<<1|N>>>31)&4294967295;Z=L.chain_[0];N=L.chain_[1];u=L.chain_[2];for(var T=L.chain_[3],W=L.chain_[4],V,M,G=0;G<80;G++)G<40?G<20?(V=T^N&(u^T),M=1518500249):(V=N^u^T,M=1859775393):G<60?(V=N&u|T&(N|u),
M=2400959708):(V=N^u^T,M=3395469782),V=(Z<<5|Z>>>27)+V+W+M+S[G]&4294967295,W=T,T=u,u=(N<<30|N>>>2)&4294967295,N=Z,Z=V;L.chain_[0]=L.chain_[0]+Z&4294967295;L.chain_[1]=L.chain_[1]+N&4294967295;L.chain_[2]=L.chain_[2]+u&4294967295;L.chain_[3]=L.chain_[3]+T&4294967295;L.chain_[4]=L.chain_[4]+W&4294967295};
Hx.prototype.update=function(L,Z){if(L!=null){Z===void 0&&(Z=L.length);for(var N=Z-this.blockSize,S=0,u=this.buf_,T=this.inbuf_;S<Z;){if(T==0)for(;S<=N;)gQY(this,L,S),S+=this.blockSize;if(typeof L==="string")for(;S<Z;){if(u[T]=L.charCodeAt(S),++T,++S,T==this.blockSize){gQY(this,u);T=0;break}}else for(;S<Z;)if(u[T]=L[S],++T,++S,T==this.blockSize){gQY(this,u);T=0;break}}this.inbuf_=T;this.total_+=Z}};
Hx.prototype.digest=function(){var L=[],Z=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var N=this.blockSize-1;N>=56;N--)this.buf_[N]=Z&255,Z/=256;gQY(this,this.buf_);for(N=Z=0;N<5;N++)for(var S=24;S>=0;S-=8)L[Z]=this.chain_[N]>>S&255,++Z;return L};var lUP;var e5=function(L){var Z=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(D){Z.databaseToken=D},
triggerThrottle:function(){Z.throttledSend()},
cancelThrottle:function(){Z.cancelThrottledSend()},
immediateSend:function(D){return _.b(function(l){return l.yield(Z.immediateSend(D),0)})},
requestWithinAgeLimit:function(D,l){return Z.requestWithinAgeLimit(D,l)},
retryQueuedRequests:function(){Z.retryQueuedRequests()}};
var N;this.throttleTimeout=(N=L.throttleTimeout)!=null?N:100;var S;this.retryMaxAttempts=(S=L.retryMaxAttempts)!=null?S:1;var u;this.requestAgeLimitMs=(u=L.requestAgeLimitMs)!=null?u:2592E6;var T;this.queuedRequestAgeLimitMs=(T=L.queuedRequestAgeLimitMs)!=null?T:12E4;var W;this.retryDelayMs=(W=L.retryDelayMs)!=null?W:5E3;var V;this.databaseToken=(V=L.databaseToken)!=null?V:void 0;this.enableCleaning=!!L.enableCleaning;var M;this.cleaningRate=(M=L.cleaningRate)!=null?M:.1;var G;this.potentialEsfErrorLimit=
(G=L.potentialEsfErrorLimit)!=null?G:10;L.handleError&&(this.handleError=L.handleError);L.handleWarning&&(this.handleWarning=L.handleWarning);L.disableYtIdbTransactions&&(this.disableYtIdbTransactions=L.disableYtIdbTransactions);L.bypassDbTokenDependency&&(this.bypassDbTokenDependency=L.bypassDbTokenDependency);this.getBooleanFlag=L.getBooleanFlag;this.jobManager=L.jobManager;this.logsStore=L.logsStore;this.networkManager=L.networkManager;this.sendFn=L.sendFn;this.onlineEvent=L.onlineEvent;this.offlineEvent=
L.offlineEvent;YF(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&Gat(this)},Gat=function(L){YF(L)&&!L.disableYtIdbTransactions&&(L.initialized=!0,L.enableCleaning&&Math.random()<=L.cleaningRate&&L.logsStore.cleanLogsStore(L.databaseToken),L.retryQueuedRequests(),L.networkManager.isNetworkAvailable()&&L.throttledSend(),L.networkManager.listen(L.onlineEvent,L.throttledSend.bind(L)),L.networkManager.listen(L.offlineEvent,L.cancelThrottledSend.bind(L)))};
_.t=e5.prototype;_.t.writeThenSend=function(L,Z){var N=this;Z=Z===void 0?{}:Z;if(YF(this)&&this.initialized){var S={url:L,options:Z,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(S,this.databaseToken).then(function(u){S.id=u;N.networkManager.isNetworkAvailable()&&N.immediateSend(S)}).catch(function(u){N.immediateSend(S);
F3V(N,u)})}else this.sendFn(L,Z)};
_.t.sendThenWrite=function(L,Z,N){var S=this;Z=Z===void 0?{}:Z;if(YF(this)&&this.initialized){var u={url:L,options:Z,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(u.skipRetry=N);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!u.skipRetry){if(!u.skipRetry){var T=Z.onError?Z.onError:function(){};
Z.onError=function(W,V){return _.b(function(M){if(M.nextAddress==1)return M.yield(S.logsStore.set(u,S.databaseToken).catch(function(G){F3V(S,G)}),2);
T(W,V);_.w7(M)})}}this.sendFn(L,Z,u.skipRetry)}else this.logsStore.set(u,this.databaseToken).catch(function(W){S.sendFn(L,Z,u.skipRetry);
F3V(S,W)})}else this.sendFn(L,Z,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&N)};
_.t.sendAndWrite=function(L,Z){var N=this;Z=Z===void 0?{}:Z;if(YF(this)&&this.initialized){var S={url:L,options:Z,timestamp:this.now(),status:"NEW",sendCount:0},u=!1,T=Z.onSuccess?Z.onSuccess:function(){};
S.options.onSuccess=function(W,V){S.id!==void 0?N.logsStore.deleteRequest(S.id,N.databaseToken):u=!0;N.networkManager.networkStatusHint&&N.getBooleanFlag&&N.getBooleanFlag("vss_network_hint")&&N.networkManager.networkStatusHint(!0);T(W,V)};
this.sendFn(S.url,S.options,void 0,!0);this.logsStore.set(S,this.databaseToken).then(function(W){S.id=W;u&&N.logsStore.deleteRequest(S.id,N.databaseToken)}).catch(function(W){F3V(N,W)})}else this.sendFn(L,Z,void 0,!0)};
_.t.throttledSend=function(){var L=this;if(!YF(this))throw Error("cd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var Z;return _.b(function(N){if(N.nextAddress==1)return N.yield(L.logsStore.getMostRecentByStatus("NEW",L.databaseToken),2);if(N.nextAddress!=3)return Z=N.yieldResult,Z?N.yield(L.immediateSend(Z),3):(L.cancelThrottledSend(),N.return());L.intervalJob&&(L.intervalJob=0,L.throttledSend());_.w7(N)})},this.throttleTimeout))};
_.t.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.t.immediateSend=function(L){var Z=this,N;return _.b(function(S){switch(S.nextAddress){case 1:if(!YF(Z))throw Error("dd");if(L.id===void 0){S.jumpTo(2);break}return S.yield(Z.logsStore.markAsQueued(L.id,Z.databaseToken),3);case 3:(N=S.yieldResult)||Z.handleWarning(Error("ed"));case 2:if(Z.requestWithinAgeLimit(L,Z.requestAgeLimitMs)){S.jumpTo(4);break}Z.handleWarning(Error("fd"));if(L.id===void 0){S.jumpTo(5);break}return S.yield(Z.logsStore.deleteRequest(L.id,Z.databaseToken),5);case 5:return S.return();
case 4:L.skipRetry||(L=$et(Z,L));if(!L){S.jumpTo(0);break}if(!L.skipRetry||L.id===void 0){S.jumpTo(8);break}return S.yield(Z.logsStore.deleteRequest(L.id,Z.databaseToken),8);case 8:Z.sendFn(L.url,L.options,!!L.skipRetry),_.w7(S)}})};
var $et=function(L,Z){if(!YF(L))throw Error("gd");var N=Z.options.onError?Z.options.onError:function(){};
Z.options.onError=function(u,T){var W,V,M,G;return _.b(function(D){switch(D.nextAddress){case 1:W=nD_(T);(V=KLs(T))&&L.getBooleanFlag&&L.getBooleanFlag("web_enable_error_204")&&L.handleError(Error("hd"),Z.url,T);if(!(L.getBooleanFlag&&L.getBooleanFlag("nwl_consider_error_code")&&W||L.getBooleanFlag&&!L.getBooleanFlag("nwl_consider_error_code")&&L.potentialEsfErrorCounter<=L.potentialEsfErrorLimit)){D.jumpTo(2);break}if(!L.networkManager.sendNetworkCheckRequest){D.jumpTo(3);break}return D.yield(L.networkManager.sendNetworkCheckRequest(),
3);case 3:if(L.networkManager.isNetworkAvailable()){D.jumpTo(2);break}N(u,T);if(!L.getBooleanFlag||!L.getBooleanFlag("nwl_consider_error_code")||((M=Z)==null?void 0:M.id)===void 0){D.jumpTo(6);break}return D.yield(L.logsStore.resetRequest(Z.id,L.databaseToken,!1),6);case 6:return D.return();case 2:if(L.getBooleanFlag&&L.getBooleanFlag("nwl_consider_error_code")&&!W&&L.potentialEsfErrorCounter>L.potentialEsfErrorLimit)return D.return();L.potentialEsfErrorCounter++;if(((G=Z)==null?void 0:G.id)===void 0){D.jumpTo(8);
break}return Z.sendCount<L.retryMaxAttempts?D.yield(L.logsStore.resetRequest(Z.id,L.databaseToken,!0,V?!1:void 0),12):D.yield(L.logsStore.deleteRequest(Z.id,L.databaseToken),8);case 12:L.jobManager.addLowPriorityJob(function(){L.networkManager.isNetworkAvailable()&&L.throttledSend()},L.retryDelayMs);
case 8:N(u,T),_.w7(D)}})};
var S=Z.options.onSuccess?Z.options.onSuccess:function(){};
Z.options.onSuccess=function(u,T){var W;return _.b(function(V){if(V.nextAddress==1)return((W=Z)==null?void 0:W.id)===void 0?V.jumpTo(2):V.yield(L.logsStore.deleteRequest(Z.id,L.databaseToken),2);L.networkManager.networkStatusHint&&L.getBooleanFlag&&L.getBooleanFlag("vss_network_hint")&&L.networkManager.networkStatusHint(!0);S(u,T);_.w7(V)})};
return Z};
e5.prototype.requestWithinAgeLimit=function(L,Z){L=L.timestamp;return this.now()-L>=Z?!1:!0};
e5.prototype.retryQueuedRequests=function(){var L=this;if(!YF(this))throw Error("id");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(Z){Z&&!L.requestWithinAgeLimit(Z,L.queuedRequestAgeLimitMs)?L.jobManager.addLowPriorityJob(function(){return _.b(function(N){if(N.nextAddress==1)return Z.id===void 0?N.jumpTo(2):N.yield(L.logsStore.resetRequest(Z.id,L.databaseToken),2);L.retryQueuedRequests();_.w7(N)})}):L.networkManager.isNetworkAvailable()&&L.throttledSend()})};
var F3V=function(L,Z){L.writeError&&!L.networkManager.isNetworkAvailable()?L.writeError(Z):L.handleError(Z)},YF=function(L){return!!L.databaseToken||L.bypassDbTokenDependency};var fUB;var dVh={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,
visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529};var DeV={},hd0=go("ServiceWorkerLogsDatabase",{objectStores:(DeV.SWHealthLog={addedAtVersion:1},DeV),shared:!0,upgrade:function(L,Z){Z(1)&&LA(qO(L,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var JJ0={},mdG=0;var Xhh;var Iy=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},uR=function(){if(!Iy.instance){var L=_.LZ("yt.networkRequestMonitor.instance")||new Iy;
_.bp("yt.networkRequestMonitor.instance",L);Iy.instance=L}return Iy.instance};
Iy.prototype.requestComplete=function(L,Z){Z&&(this.anyRequestHasSucceeded=!0);L=this.removeParams(L);this.requestMap.get(L)||this.requestMap.set(L,Z)};
Iy.prototype.isEndpointCFR=function(L){L=this.removeParams(L);return(L=this.requestMap.get(L))?!1:L===!1&&this.anyRequestHasSucceeded?!0:null};
Iy.prototype.removeParams=function(L){return L.split("?")[0]};
Iy.prototype.removeParams=Iy.prototype.removeParams;Iy.prototype.isEndpointCFR=Iy.prototype.isEndpointCFR;Iy.prototype.requestComplete=Iy.prototype.requestComplete;Iy.getInstance=uR;var d1=function(L){_.Kc.call(this);var Z=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=L!=null?L:{addLowPriorityJob:function(u,T){return setTimeout(u,T)},
cancelJob:function(u){clearTimeout(u)}};
var N,S;this.isOnline=(S=(N=window.navigator)==null?void 0:N.onLine)!=null?S:!0;this.onNavigatorChange=function(){return _.b(function(u){return u.yield(lTq(Z),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||vQO(this)};
_.f(d1,_.Kc);d1.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete d1.instance};
d1.prototype.isNetworkAvailable=function(){return this.isOnline};
var vQO=function(L){L.pollingJob=L.jobManager.addLowPriorityJob(function(){var Z;return _.b(function(N){if(N.nextAddress==1)return L.isOnline?((Z=window.navigator)==null?0:Z.onLine)?N.jumpTo(3):N.yield(lTq(L),3):N.yield(lTq(L),3);vQO(L);_.w7(N)})},3E4)},lTq=function(L,Z){return L.networkRequestPromise?L.networkRequestPromise:L.networkRequestPromise=new Promise(function(N){var S,u,T,W;
return _.b(function(V){switch(V.nextAddress){case 1:return S=window.AbortController?new window.AbortController:void 0,T=(u=S)==null?void 0:u.signal,W=!1,_.RS(V,2,3),S&&(L.abortTimeoutKey=L.jobManager.addLowPriorityJob(function(){S.abort()},Z||2E4)),V.yield(fetch("/generate_204",{method:"HEAD",
signal:T}),5);case 5:W=!0;case 3:_.ns(V);L.networkRequestPromise=void 0;L.abortTimeoutKey&&(L.jobManager.cancelJob(L.abortTimeoutKey),L.abortTimeoutKey=0);W!==L.isOnline&&(L.isOnline=W,L.isOnline?L.dispatchEvent("networkstatus-online"):L.dispatchEvent("networkstatus-offline"));N(W);_.kS(V,0);break;case 2:_.yd(V),W=!1,V.jumpTo(3)}})})};var ay=function(){_.Kc.call(this);var L=this;this.shouldFlushErrors=!1;d1.instance||(d1.instance=new d1(_.ro));this.sharedNetworkStatusManager=d1.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(L.shouldFlushErrors&&_.c("offline_error_handling")){var Z=AJx().get("errors",!0);if(Z){for(var N in Z)if(Z[N]){var S=new _.sr(N,"sent via offline_errors");S.name=Z[N].name;S.stack=Z[N].stack;S.level=Z[N].level;_.H8(S)}AJx().set("errors",{},2592E3,!0)}}})};
_.f(ay,_.Kc);var oQL=function(){if(!ay.instance){var L=_.LZ("yt.networkStatusManager.instance")||new ay;_.bp("yt.networkStatusManager.instance",L);ay.instance=L}return ay.instance};
_.t=ay.prototype;_.t.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.t.networkStatusHint=function(L){this.sharedNetworkStatusManager.isOnline=L};
_.t.getWindowStatus=function(){var L=window.navigator.onLine;return L===void 0?!0:L};
_.t.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.t.listen=function(L,Z){return this.sharedNetworkStatusManager.listen(L,Z)};
_.t.sendNetworkCheckRequest=function(L){L=lTq(this.sharedNetworkStatusManager,L);L.then(function(Z){_.c("use_cfr_monitor")&&uR().requestComplete("generate_204",Z)});
return L};
ay.prototype.sendNetworkCheckRequest=ay.prototype.sendNetworkCheckRequest;ay.prototype.listen=ay.prototype.listen;ay.prototype.enableErrorFlushing=ay.prototype.enableErrorFlushing;ay.prototype.getWindowStatus=ay.prototype.getWindowStatus;ay.prototype.networkStatusHint=ay.prototype.networkStatusHint;ay.prototype.isNetworkAvailable=ay.prototype.isNetworkAvailable;ay.getInstance=oQL;_.iR=function(L){L=L===void 0?{}:L;_.Kc.call(this);var Z=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=oQL();var N=_.LZ("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);N&&(L.rateLimit?(this.rateLimit=L.rateLimit,N("networkstatus-online",function(){RR5(Z,"publicytnetworkstatus-online")}),N("networkstatus-offline",function(){RR5(Z,"publicytnetworkstatus-offline")})):(N("networkstatus-online",function(){Z.dispatchEvent("publicytnetworkstatus-online")}),N("networkstatus-offline",
function(){Z.dispatchEvent("publicytnetworkstatus-offline")})))};
_.f(_.iR,_.Kc);_.iR.prototype.isNetworkAvailable=function(){var L=_.LZ("yt.networkStatusManager.instance.isNetworkAvailable");return L?L.bind(this.nsmInstance)():!0};
_.iR.prototype.networkStatusHint=function(L){var Z=_.LZ("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);Z&&Z(L)};
_.iR.prototype.sendNetworkCheckRequest=function(L){var Z=this,N;return _.b(function(S){N=_.LZ("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(Z.nsmInstance);return _.c("skip_network_check_if_cfr")&&uR().isEndpointCFR("generate_204")?S.return(new Promise(function(u){var T;Z.networkStatusHint(((T=window.navigator)==null?void 0:T.onLine)||!0);u(Z.isNetworkAvailable())})):N?S.return(N(L)):S.return(!0)})};
var RR5=function(L,Z){L.rateLimit?L.lastJobTime?(_.ro.cancelJob(L.schedulerJob),L.schedulerJob=_.ro.addLowPriorityJob(function(){L.lastPublicSignalSent!==Z&&(L.dispatchEvent(Z),L.lastPublicSignalSent=Z,L.lastJobTime=(0,_.GT)())},L.rateLimit-((0,_.GT)()-L.lastJobTime))):(L.dispatchEvent(Z),L.lastPublicSignalSent=Z,L.lastJobTime=(0,_.GT)()):L.dispatchEvent(Z)};var LWt,hv=function(){e5.call(this,{logsStore:{cleanLogsStore:ddh,deleteRequest:IUG,getMostRecentByStatus:UdF,markAsQueued:Ykh,resetRequest:edh,set:whf},networkManager:_.ZYF(),handleError:function(L,Z,N){var S,u=N==null?void 0:(S=N.error)==null?void 0:S.code;if(u===400||u===415){var T;L=new _.sr(L.message,Z,N==null?void 0:(T=N.error)==null?void 0:T.code);_.Zx(L,void 0,void 0,void 0,!0)}else _.H8(L)},
handleWarning:_.Zx,sendFn:xdw,now:_.GT,writeError:HdH,jobManager:_.DK(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.lQ("potential_esf_error_limit",10),getBooleanFlag:_.c,disableYtIdbTransactions:!(_.h3()&&_.N$G())});this.initializationPromise=new _.qe;_.c("networkless_immediately_drop_all_requests")&&aUA();K3f("LogsDatabaseV2")};
_.f(hv,e5);_.nQY=function(){var L=_.LZ("yt.networklessRequestController.instance");L||(L=new hv,_.bp("yt.networklessRequestController.instance",L),_.c("networkless_logging")&&_.MO().then(function(Z){L.databaseToken=Z;Gat(L);L.initializationPromise.resolve();L.enableCleaning&&Math.random()<=L.cleaningRate&&L.databaseToken&&j_f(L.databaseToken);_.c("networkless_immediately_drop_sw_health_store")&&cNV(L)}));
return L};
hv.prototype.writeThenSend=function(L,Z){Z||(Z={});Z=qkP(L,Z);_.h3()||(this.initialized=!1);e5.prototype.writeThenSend.call(this,L,Z)};
hv.prototype.sendThenWrite=function(L,Z,N){Z||(Z={});Z=qkP(L,Z);_.h3()||(this.initialized=!1);e5.prototype.sendThenWrite.call(this,L,Z,N)};
hv.prototype.sendAndWrite=function(L,Z){Z||(Z={});Z=qkP(L,Z);_.h3()||(this.initialized=!1);e5.prototype.sendAndWrite.call(this,L,Z)};
hv.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var cNV=function(L){var Z;_.b(function(N){if(!L.databaseToken)throw Z=BW("clearSWHealthLogsDb"),Z;return N.return(ED_(L.databaseToken).catch(function(S){L.handleError(S)}))})};_.iYs=!1;_.SR1=_.iH.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.iYs};_.bp("ytNetworklessLoggingInitializationOptions",_.SR1);var zI=function(L){var Z=this;this.config_=null;L?this.config_=L:deH()&&(this.config_=_.Dk());_.sI(_.ro,function(){cJs(Z)},5E3)};
zI.prototype.isReady=function(){!this.config_&&deH()&&(this.config_=_.Dk());return!!this.config_};
var RdB=function(L,Z,N,S){!_.X7("VISITOR_DATA")&&Z!=="visitor_id"&&Math.random()<.01&&_.Zx(new _.sr("Missing VISITOR_DATA when sending innertube request.",Z,N,S));if(!L.isReady()){var u=new _.sr("innertube xhrclient not ready",Z,N,S);_.H8(u);throw u;}var T={headers:S.headers||{},method:"POST",postParams:N,postBody:S.postBody,postBodyFormat:S.postBodyFormat||"JSON",onTimeout:function(){S.onTimeout()},
onFetchTimeout:S.onTimeout,onSuccess:function(l,v){if(S.onSuccess)S.onSuccess(v)},
onFetchSuccess:function(l){if(S.onSuccess)S.onSuccess(l)},
onProgress:function(l){if(S.onProgress)S.onProgress(l)},
onError:function(l,v){if(S.onError)S.onError(v)},
onFetchError:function(l){if(S.onError)S.onError(l)},
timeout:S.timeout,withCredentials:!0,compress:S.compress};T.headers["Content-Type"]||(T.headers["Content-Type"]="application/json");var W="";(u=L.config_.innertubeHostOverride)&&(W=u);var V=L.config_.innertubeUseThirdPartyAuth||!1,M=_.HkF(V,W,S);Object.assign(T.headers,M);T.headers.Authorization&&!W&&V&&(T.headers["x-origin"]=window.location.origin);var G=_.TR(W+("/youtubei/"+L.config_.innertubeApiVersion+"/"+Z),{alt:"json"}),D=function(l){l=l===void 0?!1:l;var v;if(S.retry&&W!="www.youtube-nocookie.com"&&
(l||_.c("skip_ls_gel_retry")||T.headers["Content-Type"]!=="application/json"||(v=vD0(Z,N,M,V)),v)){var R=T.onSuccess,K=T.onFetchSuccess;T.onSuccess=function(h,E){oDB(v);R(h,E)};
N.onFetchSuccess=function(h,E){oDB(v);K(h,E)}}try{if(l&&S.retry&&!S.networklessOptions.bypassNetworkless)T.method="POST",S.networklessOptions.writeThenSend?_.nQY().writeThenSend(G,T):_.nQY().sendAndWrite(G,T);
else if(S.compress){var U=!S.networklessOptions.writeThenSend;if(T.postBody){var d=T.postBody;typeof d!=="string"&&(d=JSON.stringify(T.postBody));WLP(G,d,T,_.yZ,U)}else WLP(G,JSON.stringify(T.postParams),T,$js,U)}else _.c("web_all_payloads_via_jspb")?_.yZ(G,T):$js(G,T)}catch(h){if(h.name==="InvalidAccessError")v&&(oDB(v),v=0),_.Zx(Error("jd"));else throw h;}v&&_.sI(_.ro,function(){cJs(L)},5E3)};
_.uZB()?$ef().then(function(l){D(l)}):D(!1)};var kKH=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(kKH,_.On);var K3t=0,tih=_.qH?"webkit":_.xM?"moz":_.BV?"ms":hAI?"o":"";_.bp("ytDomDomGetNextId",_.LZ("ytDomDomGetNextId")||function(){return++K3t});var fT0={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},bR=function(L){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(L=
L||window.event){this.event=L;for(var Z in L)Z in fT0||(this[Z]=L[Z]);this.scale=L.scale;this.rotation=L.rotation;var N=L.target||L.srcElement;N&&N.nodeType==3&&(N=N.parentNode);this.target=N;var S=L.relatedTarget;if(S)try{S=S.nodeName?S:null}catch(u){S=null}else this.type=="mouseover"?S=L.fromElement:this.type=="mouseout"&&(S=L.toElement);this.relatedTarget=S;this.clientX=L.clientX!=void 0?L.clientX:L.pageX;this.clientY=L.clientY!=void 0?L.clientY:L.pageY;this.keyCode=L.keyCode?L.keyCode:L.which;
this.charCode=L.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=L.altKey;this.ctrlKey=L.ctrlKey;this.shiftKey=L.shiftKey;this.metaKey=L.metaKey;this.pageX_=L.pageX;this.pageY_=L.pageY}}catch(u){}},kas=function(L){if(document.body&&document.documentElement){var Z=document.body.scrollTop+document.documentElement.scrollTop;
L.pageX_=L.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);L.pageY_=L.clientY+Z}};
bR.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
bR.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
bR.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var V7=_.iH.ytEventsEventsListeners||{};_.bp("ytEventsEventsListeners",V7);var gNP=_.iH.ytEventsEventsCounter||{count:0};_.bp("ytEventsEventsCounter",gNP);var Gl1=_.Rn(function(){var L=!1;try{var Z=Object.defineProperty({},"capture",{get:function(){L=!0}});
window.addEventListener("test",null,Z)}catch(N){}return L});_.Qk(gY,_.ag);gY.prototype.onMouseMove_=function(L){L.pageX_===void 0&&kas(L);var Z=L.pageX_;L.pageY_===void 0&&kas(L);this.position_=new _.zF(Z,L.pageY_)};
gY.prototype.checkPosition_=function(){if(this.position_){var L=(0,_.GT)();if(this.previousTime_!=0){var Z=this.previousPosition_,N=this.position_,S=Z.x-N.x;Z=Z.y-N.y;S=Math.sqrt(S*S+Z*Z)/(L-this.previousTime_);this.cycles_[this.index_]=Math.abs((S-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(N=Z=0;N<4;N++)Z+=this.cycles_[N]||0;Z>=3&&this.callback_();this.previousVelocity_=S}this.previousTime_=L;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
gY.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.FWs(this.mouseListenerKey_)};var oNL={};var wQP=new _.S5("rawColdConfigGroup");var ySw=new _.S5("rawHotConfigGroup");var yNt=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(yNt,_.On);var fsG=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(fsG,_.On);var hV=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L,500)};
_.f(hV,_.On);hV.prototype.getPayloadCase=function(){return _.MQ(this,wvh)};
hV.prototype.getContext=function(){return _.lp(this,fsG,33)};
var wvh=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529];var R_A=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(R_A,_.On);var B$H=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(B$H,_.On);B$H.prototype.setVideoId=function(L){return y7(this,1,xgs,cw(L))};
B$H.prototype.getPlaylistId=function(){return _.yL(this,IW(this,xgs,2))};
var xgs=[1,2];var FRL=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(FRL,_.On);FRL.prototype.getContext=function(){return _.lp(this,wY,1)};
FRL.prototype.getTier=function(){return _.oA(this,7)};var Ueq,Dl,lR;Ueq=_.iH.ytPubsubPubsubInstance||new _.Ur;Dl=_.iH.ytPubsubPubsubSubscribedKeys||{};lR=_.iH.ytPubsubPubsubTopicToKeys||{};_.REx=_.iH.ytPubsubPubsubIsSynchronous||{};_.Ur.prototype.subscribe=_.Ur.prototype.subscribe;_.Ur.prototype.unsubscribeByKey=_.Ur.prototype.unsubscribeByKey;_.Ur.prototype.publish=_.Ur.prototype.publish;_.Ur.prototype.clear=_.Ur.prototype.clear;_.bp("ytPubsubPubsubInstance",Ueq);_.bp("ytPubsubPubsubTopicToKeys",lR);_.bp("ytPubsubPubsubIsSynchronous",_.REx);
_.bp("ytPubsubPubsubSubscribedKeys",Dl);var oW=window;var s4=_.c("web_enable_lifecycle_monitoring")&&klB()!==0,Y9M=_.c("web_enable_lifecycle_monitoring");var eRl=function(L){var Z=this;var N=N===void 0?0:N;var S=S===void 0?_.DK():S;this.JSC$10893_defaultPriority=N;this.scheduler=S;this.completedResolver=new _.qe;this.scheduledPayloads=L;for(L={i$jscomp$492:0};L.i$jscomp$492<this.scheduledPayloads.length;L={payload$jscomp$20:void 0,i$jscomp$492:L.i$jscomp$492},L.i$jscomp$492++)L.payload$jscomp$20=this.scheduledPayloads[L.i$jscomp$492],N=function(u){return function(){u.payload$jscomp$20.job();Z.scheduledPayloads[u.i$jscomp$492].processed=!0;Z.scheduledPayloads.every(function(T){return T.processed===
!0})&&Z.completedResolver.resolve()}}(L),S=this.getPriority(L.payload$jscomp$20),S=this.scheduler.addJob(N,S),this.scheduledPayloads[L.i$jscomp$492]=Object.assign({},L.payload$jscomp$20,{job:N,
jobId:S})};
eRl.prototype.flushJobs=function(){var L=this,Z=Array.from(this.scheduledPayloads.keys()).sort(function(S,u){return L.getPriority(L.scheduledPayloads[u])-L.getPriority(L.scheduledPayloads[S])});
Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())N=this.scheduledPayloads[N.value],N.jobId===void 0||N.processed||(this.scheduler.cancelJob(N.jobId),this.scheduler.addJob(N.job,10))};
eRl.prototype.cancel=function(){for(var L=_.O(this.scheduledPayloads),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.jobId===void 0||Z.processed||this.scheduler.cancelJob(Z.jobId),Z.processed=!0;this.completedResolver.resolve()};
eRl.prototype.getPriority=function(L){var Z;return(Z=L.priority)!=null?Z:this.JSC$10893_defaultPriority};var j5=function(L){this.state=L;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};s4&&yCw(this.state)};
j5.prototype.install=function(L){this.plugins.push(L);return this};
j5.prototype.uninstall=function(){var L=this;_.CG.apply(0,arguments).forEach(function(Z){Z=L.plugins.indexOf(Z);Z>-1&&L.plugins.splice(Z,1)})};
j5.prototype.transition=function(L,Z){var N=this;s4&&w9_(this.state);var S=this.transitions.find(function(T){return Array.isArray(T.from)?T.from.find(function(W){return W===N.state&&T.to===L}):T.from===N.state&&T.to===L});
if(S){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);IT0(this,L,Z);this.state=L;s4&&yCw(this.state);S=S.action.bind(this);var u=this.plugins.filter(function(T){return T[L]}).map(function(T){return T[L]});
S(det(this,u),Z)}else throw Error("kd`"+this.state+"`"+L);};
var det=function(L,Z){var N=Z.filter(function(u){return aTL(L,u)===10}),S=Z.filter(function(u){return aTL(L,u)!==10});
return L.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var u=_.CG.apply(0,arguments);return _.b(function(T){if(T.nextAddress==1)return T.yield(L.runImmediateJobsAsync.apply(L,[N].concat(_.Pd(u))),2);L.setJobSetWithScheduledJobs.apply(L,[S].concat(_.Pd(u)));_.w7(T)})}:function(){var u=_.CG.apply(0,arguments);
L.runImmediateJobsSync.apply(L,[N].concat(_.Pd(u)));L.setJobSetWithScheduledJobs.apply(L,[S].concat(_.Pd(u)))}};
j5.prototype.runImmediateJobsSync=function(L){var Z=_.CG.apply(1,arguments);_.DK();for(var N=_.O(L),S=N.next(),u={};!S.done;u={lifecycle$jscomp$2:void 0},S=N.next())u.lifecycle$jscomp$2=S.value,AC(function(T){return function(){hRq(T.lifecycle$jscomp$2.name);YRG(function(){return T.lifecycle$jscomp$2.callback.apply(T.lifecycle$jscomp$2,_.Pd(Z))});
E4(T.lifecycle$jscomp$2.name)}}(u))};
j5.prototype.runImmediateJobsAsync=function(L){var Z=_.CG.apply(1,arguments),N,S,u,T;return _.b(function(W){W.nextAddress==1&&(_.DK(),N=_.O(L),S=N.next(),u={});if(W.nextAddress!=3){if(S.done)return W.jumpTo(0);u.lifecycle$jscomp$3=S.value;u.asyncJobCompletion=void 0;T=function(V){return function(){hRq(V.lifecycle$jscomp$3.name);var M=YRG(function(){return V.lifecycle$jscomp$3.callback.apply(V.lifecycle$jscomp$3,_.Pd(Z))});
gLl(M)?V.asyncJobCompletion=_.c("web_lifecycle_error_handling_killswitch")?M.then(function(){E4(V.lifecycle$jscomp$3.name)}):M.then(function(){E4(V.lifecycle$jscomp$3.name)},function(G){Ugt(G);
E4(V.lifecycle$jscomp$3.name)}):E4(V.lifecycle$jscomp$3.name)}}(u);
AC(T);return u.asyncJobCompletion?W.yield(u.asyncJobCompletion,3):W.jumpTo(3)}u={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};S=N.next();return W.jumpTo(2)})};
j5.prototype.setJobSetWithScheduledJobs=function(L){var Z=_.CG.apply(1,arguments),N=this,S=L.map(function(u){return{job:function(){hRq(u.name);YRG(function(){return u.callback.apply(u,_.Pd(Z))});
E4(u.name)},
priority:aTL(N,u)}});
S.length&&(this.jobSet=new eRl(S))};
var aTL=function(L,Z){var N,S;return(S=(N=L.overridePriority)!=null?N:Z.priority)!=null?S:0},hRq=function(L){s4&&L&&yCw(L)},E4=function(L){s4&&L&&w9_(L)},IT0=function(L,Z,N){Y9M&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+L.constructor.name+"] '"+L.state+"' to '"+Z+"'"),console.log("with message: ",N),console.groupEnd())};
_.gd.Object.defineProperties(j5.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var si5=function(L){j5.call(this,L===void 0?"none":L);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(){}}]},jit;
_.f(si5,j5);si5.prototype.runApplicationNavigationBegin=function(L,Z){var N=this;this.navigationTimer=_.sI(_.ro,function(){N.currentState==="application_navigating"&&N.transition("none")},5E3);
L(Z==null?void 0:Z.event)};
si5.prototype.runApplicationNavigationEnd=function(L,Z){this.navigationTimer&&(_.ro.cancelJob(this.navigationTimer),this.navigationTimer=null);L(Z==null?void 0:Z.event)};
_.k0_=function(){jit||(jit=new si5);return jit};var f9x=[];_.bp("yt.logging.transport.getScrapedGelPayloads",function(){return f9x});var cK=function(){var L=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return L.totalEntries}}};
cK.prototype.storePayload=function(L,Z){L=eEL(L);this.store[L]?this.store[L].push(Z):(this.memoizedKeySequences={},this.store[L]=[Z]);this.totalEntries++;_.c("more_accurate_gel_parser")&&(Z=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(Z));return L};
cK.prototype.smartExtractMatchingEntries=function(L){if(!L.keys.length)return[];for(var Z=EQQ(this,L.keys.splice(0,1)[0]),N=[],S=0;S<Z.length;S++)this.store[Z[S]]&&L.sizeLimit&&(this.store[Z[S]].length<=L.sizeLimit?(N.push.apply(N,_.Pd(this.store[Z[S]])),delete this.store[Z[S]]):N.push.apply(N,_.Pd(this.store[Z[S]].splice(0,L.sizeLimit))));this.totalEntries-=N.length;(L==null?0:L.sizeLimit)&&N.length<(L==null?void 0:L.sizeLimit)&&(L.sizeLimit-=N.length,N.push.apply(N,_.Pd(this.smartExtractMatchingEntries(L))));
return N};
cK.prototype.extractMatchingEntries=function(L){L=EQQ(this,L);for(var Z=[],N=0;N<L.length;N++)this.store[L[N]]&&(Z.push.apply(Z,_.Pd(this.store[L[N]])),delete this.store[L[N]]);this.totalEntries-=Z.length;return Z};
cK.prototype.getSequenceCount=function(L){L=EQQ(this,L);for(var Z=0,N=0;N<L.length;N++){var S=void 0;Z+=((S=this.store[L[N]])==null?void 0:S.length)||0}return Z};
var EQQ=function(L,Z){var N=eEL(Z);if(L.memoizedKeySequences[N])return L.memoizedKeySequences[N];var S=Object.keys(L.store)||[];if(S.length<=1&&eEL(Z)===S[0])return S;for(var u=[],T=0;T<S.length;T++){var W=S[T].split("/");if(P20(Z.auth,W[0])){var V=Z.isJspb;P20(V===void 0?"undefined":V?"true":"false",W[1])&&P20(Z.cttAuthInfo,W[2])&&(V=Z.tier,V=V===void 0?"undefined":JSON.stringify(V),P20(V,W[3])&&u.push(S[T]))}}return L.memoizedKeySequences[N]=u},P20=function(L,Z){return L===void 0||L==="undefined"?
!0:L===Z};
cK.prototype.getSequenceCount=cK.prototype.getSequenceCount;cK.prototype.extractMatchingEntries=cK.prototype.extractMatchingEntries;cK.prototype.smartExtractMatchingEntries=cK.prototype.smartExtractMatchingEntries;cK.prototype.storePayload=cK.prototype.storePayload;var twA,u6h,OVH,fA,pvI,I9t,e_G,iVt,SCf,rCh,T9G,n0H,LRt;twA=_.lQ("initial_gel_batch_timeout",2E3);u6h=_.lQ("gel_queue_timeout_max_ms",6E4);OVH=_.lQ("gel_min_batch_size",5);fA=void 0;pvI=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
I9t=new pvI;e_G=new pvI;iVt=new pvI;SCf=new pvI;T9G=!0;n0H=1;_.cSt=new Map;LRt=_.iH.ytLoggingTransportTokensToCttTargetIds_||{};_.bp("ytLoggingTransportTokensToCttTargetIds_",LRt);var qRP=_.iH.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.bp("ytLoggingTransportTokensToJspbCttTargetIds_",qRP);var KA={};var PK=_.iH.ytLoggingGelSequenceIdObj_||{};_.bp("ytLoggingGelSequenceIdObj_",PK);var h_H=[];var XQH=new Set,pQ_=0,xVx=0,B9B=0,mVh=[],z_1=[],qCP=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var MCB=function(){};
MCB.prototype.getUrl=function(L,Z){Z=Z===void 0?!1:Z;return L.hasOwnProperty("shareEndpoint")?null:_.SSw(L,null,Z)};
var nrF=function(L,Z,N){L={endpoint:Z,actions:[]};N=(N.path?N.path[0]:N.target).icon||"";Z=N.indexOf(":");Z>0&&(N=N.substr(Z+1));N&&L.actions.push(N);return L};var WKG=/Command$/,OlA=/Endpoint$/,uMs=new Map;var zRL,met;zRL=1;_.SS=function(){this.actionRoutingMap=new Map};
_.SS.prototype.triggerAction=function(L){var Z=new iTH(L,!1,_.CG.apply(1,arguments));this.handleAction(Z);return Z.returnValue};
_.SS.prototype.triggerOptionalAction=function(L){var Z=new iTH(L,!0,_.CG.apply(1,arguments));this.handleAction(Z);return Z.returnValue};
_.Pc=function(L,Z,N){Z.forEach(function(S){var u=tCw(S);u&&L.triggerOptionalAction(u,S,N,void 0)})};
_.SS.prototype.handleAction=function(L){var Z=this.actionRoutingMap.get(L.actionName);Z&&met(L,Z);L.optionalAction||L.returnValue.length!==0||(L=new _.sr("Unhandled action",L.actionName),_.Zx(L))};
met=function(L,Z){Z.forEach(function(N){var S=null;N?S=N.apply(null,L.args):(N=Error("ld"),N.params=L.actionName,_.H8(N));L.returnValue.push(S)})};
_.ie=function(L,Z,N){N||(N=zRL++);for(var S=_.O(Object.keys(Z)),u=S.next();!u.done;u=S.next()){u=u.value;var T=L.actionRoutingMap.get(u);T||(T=new Map,L.actionRoutingMap.set(u,T));L.registerActionHandler(N,u,Z[u],T)}return N};
_.SS.prototype.registerActionHandler=function(L,Z,N,S){S.set(L,_.B8(N))};
_.ue=function(L,Z,N){Z=_.O(Object.keys(Z));for(var S=Z.next();!S.done;S=Z.next())(S=L.actionRoutingMap.get(S.value))&&S.delete(N)};
_.CM(_.SS);var FKF=function(L,Z){var N=_.SS.getInstance();_.m0(function(){var S={},u=_.ie(N,(S[L]=Z,S));_.zs(function(){var T={};_.ue(N,(T[L]="",T),u)})})};var yGF=Symbol("nd");vdB=qUH;var es_=new Set(["For","If","Match","Watch"]),JNt={},C2N=(JNt[HE.default]=function(){return Mjs},JNt.style=function(){return Mjs},JNt),rNt;
for(rNt in C2N)M$.attributes[rNt]=C2N[rNt](M$.attributes[rNt]);var Fl=new _.iY("VISIBILITY_OBSERVER");var zs0={retrieve:function(L){return this.id.\u0275prov.token===L.\u0275prov.token?this.contextValue:this?_.WE(this,this.id):vjG}};var CCA=function(L,Z,N){if(L!==be)return!1;L=f7H(document.createElement("div"),function(){var S=$_(!1);try{N[0]()}finally{$_(S)}});
L=Array.from(L.childNodes);L.length===1&&(L=L[0]);return L};var QiL=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(L){}var XvQ=typeof WeakRef==="function";var ANO=function(L){this.value=L};
ANO.prototype.deref=function(){return this.value};
var HkO=XvQ?WeakRef:ANO,BnL=function(L){this.newKeyHandler=L;this.map=new WeakMap};
BnL.prototype.add=function(L,Z){this.map.has(L)||(this.newKeyHandler(L),this.map.set(L,[]));this.map.get(L).push(new HkO(Z))};
BnL.prototype.get=function(L){var Z=this;return function S(){var u,T,W,V,M,G,D,l,v,R,K;return _.xo(S,function(U){switch(U.nextAddress){case 1:_.Ks(U,2);u=Z.map.get(L);if(!u)return U.return();T=0;W=_.O(u);V=W.next();case 4:if(V.done){U.jumpTo(6);break}M=V.value;G=M.deref();if(!G){U.jumpTo(5);break}T++;D=_.q3;return U.yield(G,8);case 8:D(U.yieldResult);case 5:V=W.next();U.jumpTo(4);break;case 6:if(2*T<u.length){l=0;v=_.O(u);for(R=v.next();!R.done;R=v.next())K=R.value,K.deref()&&(u[l++]=K);u.length=
l}case 2:_.ns(U),_.kS(U,0)}})}()};var xe5=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},Auh=new BnL(function(L){L.addEventListener("abort",Bm_,{once:!0})}),XTt=new WeakMap,q9N=function(L){L=L===void 0?p2:L;
this.signal=new L};
q9N.prototype.abort=function(L){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=L,L=new Event("abort"),this.signal.dispatchEvent(L))};
var p2=function(){this.target=xe5();this.aborted=!1;this.onabort=null};
p2.prototype.throwIfAborted=function(){QbG.call(this)};
p2.prototype.addEventListener=function(L,Z,N){this.target.addEventListener(L,Z,N)};
p2.prototype.removeEventListener=function(L,Z,N){this.target.removeEventListener(L,Z,N)};
p2.prototype.dispatchEvent=function(L){if(this.onabort&&L.type==="abort")this.onabort(L);return this.target.dispatchEvent(L)};
p2.abort=ruL;p2.timeout=xr1;p2.any=HlF;var Cjt=QiL?AbortController:q9N,zA=QiL?AbortSignal:p2;typeof zA.abort!=="function"&&(zA.abort=ruL);typeof zA.prototype.throwIfAborted!=="function"&&(zA.prototype.throwIfAborted=QbG);typeof zA.any!=="function"&&(zA.any=HlF);typeof zA.timeout!=="function"&&(zA.timeout=xr1);var Db=null,L4s=new Map;var LlL=function(L){L=L.clone();obt(L);fL(L,"dg",null);fL(L,"d","0");$4I(L,null);D4s(L,null);return L},ZXh=!0,Nrh=function(L,Z,N){var S=N===void 0?{}:N;
N=S.cssRowKey===void 0?void 0:S.cssRowKey;var u=S.combinedSignature===void 0?void 0:S.combinedSignature;var T=S.extraEdges===void 0?void 0:S.extraEdges;S=S.callback===void 0?void 0:S.callback;fL(L,"m",Z.join(","));T&&vbs(L,T);N&&(fL(L,"ck",N),u?fL(L,"rs",u):ZXh&&(ZXh=!1));if(S){if(S!=null&&!nbt.test(S))throw Error("Xa`"+S);fL(L,"cb",S)}L=L.toString();_.TB(L,"/")&&(L=x8q(document.location.href)+L);return _.YV(L)};var iXM=function(L){return SxI(L).then(function(Z){return JSON.parse(Z.responseText)})},SxI=function(L){var Z={},N=Z.xmlHttpFactory?Z.xmlHttpFactory.createInstance():jl0.createInstance();
return(new _.kE(function(S,u){var T;try{N.open("GET",L,!0)}catch(M){u(new mC("Error opening XHR: "+M.message,L,N))}N.onreadystatechange=function(){if(N.readyState==4){_.iH.clearTimeout(T);var M;!(M=slL(N.status))&&(M=N.status===0)&&(M=BF0(L),M=!(M=="http"||M=="https"||M==""));M?S(N):u(new uBs(N.status,L,N))}};
N.onerror=function(){u(new mC("Network error",L,N))};
if(Z.headers)for(var W in Z.headers){var V=Z.headers[W];V!=null&&N.setRequestHeader(W,V)}Z.withCredentials&&(N.withCredentials=Z.withCredentials);Z.responseType&&(N.responseType=Z.responseType);Z.mimeType&&N.overrideMimeType(Z.mimeType);Z.timeoutMs>0&&(T=_.iH.setTimeout(function(){N.onreadystatechange=function(){};
N.abort();u(new TrY(L,N))},Z.timeoutMs));
try{N.send(null)}catch(M){N.onreadystatechange=function(){},_.iH.clearTimeout(T),u(new mC("Error sending XHR: "+M.message,L,N))}})).thenCatch(function(S){S instanceof _.ko&&N.abort();
throw S;})},mC=function(L,Z,N){_.NL.call(this,L+", url="+Z);
this.url=Z;this.xhr=N};
_.Qk(mC,_.NL);mC.prototype.name="XhrError";var uBs=function(L,Z,N){mC.call(this,"Request Failed, status="+L,Z,N);this.status=L};
_.Qk(uBs,mC);uBs.prototype.name="XhrHttpError";var TrY=function(L,Z){mC.call(this,"Request timed out",L,Z)};
_.Qk(TrY,mC);TrY.prototype.name="XhrTimeoutError";J9=J9||{};var Jv=function(){_.ag.call(this)};
_.Qk(Jv,_.ag);Jv.prototype.initialize=function(){};var tDQ=function(L,Z){this.fn_=L;this.handler_=Z};
tDQ.prototype.execute=function(L){this.fn_&&(this.fn_.call(this.handler_||null,L),this.fn_=this.handler_=null)};
tDQ.prototype.abort=function(){this.handler_=this.fn_=null};var C2=function(L,Z){_.ag.call(this);this.deps_=L;this.JSC$11048_id_=Z;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Qk(C2,_.ag);C2.prototype.moduleConstructor_=Jv;C2.prototype.module_=null;C2.prototype.getId=function(){return this.JSC$11048_id_};
C2.prototype.registerCallback=function(L,Z){return r1(this.onloadCallbacks_,L,Z)};
var OXL=function(L,Z){r1(L.onErrorCallbacks_,Z)},r1=function(L,Z,N){Z=new tDQ(Z,N);
L.push(Z);return Z};
C2.prototype.isLoaded=function(){return!!this.module_};
C2.prototype.onLoad=function(L){var Z=new this.moduleConstructor_;Z.initialize(L());this.module_=Z;Z=(Z=Wl0(this.earlyOnloadCallbacks_,L()))||Wl0(this.onloadCallbacks_,L());Z||(this.onErrorCallbacks_.length=0);return Z};
C2.prototype.onError=function(L){(L=Wl0(this.onErrorCallbacks_,L))&&uH(Error("sd`"+L));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var Wl0=function(L,Z){for(var N=[],S=0;S<L.length;S++)try{L[S].execute(Z)}catch(u){uH(u),N.push(u)}L.length=0;return N.length?N:null};
C2.prototype.disposeInternal=function(){C2.superClass_.disposeInternal.call(this);_.W4(this.module_)};var VDQ,$Js,G7t,Flt,MDq,geh,R3V,veI,oe0;
_.vM=function(L,Z,N,S,u){S=S===void 0?!1:S;u=u===void 0?!1:u;var T=T===void 0?!0:T;this.scsReferenceUrl_=zGs(_.en(L).toString(),T);this.cssRowKey_=Z;this.combinedSignature_=N;this.useNegativeLoading_=S;this.requestedModuleMap_={};this.JSC$11051_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(L=KL(this.scsReferenceUrl_,"excm"))?L.split(","):[];this.shouldScanForCss_=u;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;mO1();_.Q3(this,lbM(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
VDQ=function(L,Z){if(Z.href||Z.getAttribute("data-href"))if(Z=Z.href||Z.getAttribute("data-href"),jZ_(Z)&&!zGs(Z).urlPrefix_.endsWith("_/js/")){Z=lbM(zGs(Z));Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())N=N.value,L.loadedCssModuleList_.includes(N)||L.loadedCssModuleList_.push(N)}};
_.vM.prototype.JSC$11053_loadModules=function(L,Z,N){var S=N===void 0?{}:N;N=S.extraEdges;var u=S.onError;var T=S.onSuccess;S=S.forceReload;this.JSC$11051_moduleInfoMap_=Z;if(!L)throw Error("td");if(this.shouldScanForCss_){Z=_.O(document.getElementsByTagName("style"));for(var W=Z.next();!W.done;W=Z.next())VDQ(this,W.value);Z=_.O(document.getElementsByTagName("link"));for(W=Z.next();!W.done;W=Z.next())VDQ(this,W.value)}bX0(this,MDq(this,L),N,u,T,S)};
var bX0=function(L,Z,N,S,u,T){S=S===void 0?function(){}:S;
u=u===void 0?function(){}:u;
T=T===void 0?!1:T;geh(L,Z,function(W,V,M){M=M===void 0?V:M;L.enableFallbackFetch&&T?L.loadWithFetch(W,V,S,u,M):L.load(W,V,S,u,M,N)},N)||S(-1)};
_.vM.prototype.loadWithFetch=function(){_.b(function(){throw Error("ud");})};
_.vM.prototype.maybeSetAdditionalFields=function(){};
$Js=function(L,Z,N){if(L.useNegativeLoading_){var S=L.scsReferenceUrl_;L={cssRowKey:L.cssRowKey_,combinedSignature:L.combinedSignature_,extraEdges:N,requestedModuleIds:G7t(L),requestedCssModuleIds:Flt(L)};var u=L===void 0?{}:L;L=u.requestedModuleIds===void 0?[]:u.requestedModuleIds;N=u.requestedCssModuleIds===void 0?[]:u.requestedCssModuleIds;var T=u.cssRowKey===void 0?void 0:u.cssRowKey;var W=u.combinedSignature===void 0?void 0:u.combinedSignature;var V=u.extraEdges===void 0?void 0:u.extraEdges;
u=u.callback===void 0?void 0:u.callback;S=LlL(S);fL(S,"d","1");$4I(S,L);D4s(S,N);Z=Nrh(S,Z,{cssRowKey:T,combinedSignature:W,extraEdges:V,callback:u})}else S=L.scsReferenceUrl_,L={cssRowKey:L.cssRowKey_,combinedSignature:L.combinedSignature_,requestedModuleIds:G7t(L),requestedCssModuleIds:Flt(L)},V=L===void 0?{}:L,L=V.requestedCssModuleIds===void 0?[]:V.requestedCssModuleIds,N=V.cssRowKey===void 0?void 0:V.cssRowKey,T=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,S=LlL(S),D4s(S,L),Z=Nrh(S,Z,{cssRowKey:N,combinedSignature:T,extraEdges:W,callback:V});return Z};
_.Q3=function(L,Z){for(var N=!1,S=[],u=0;u<Z.length;++u){var T=Z[u];L.requestedModuleMap_[T]||(L.requestedModuleMap_[T]=!0,L.requestedModuleList_.push(T),N=!0,S.push(T))}N&&(L.requestedModuleListSorted_=!1)};
_.XD=function(L,Z){for(var N=[],S=0;S<Z.length;++S){var u=Z[S];L.requestedModuleMap_[u]&&(delete L.requestedModuleMap_[u],_.zB(L.requestedModuleList_,u),N.push(u))}};
_.vM.prototype.load=function(L,Z,N,S,u){u=u===void 0?Z:u;_.en(L);var T=this.useCors_,W=this.corsMode_,V=this.fetchPriority,M=_.wZ("SCRIPT");_.TE(M,L);T&&(M.crossOrigin=W);M.async=!1;V&&M.setAttribute("fetchpriority",V);_.Q3(this,Z);_.DJY(this,L,M,Z,N,S,u)};
_.DJY=function(L,Z,N,S,u,T,W){W=W===void 0?S:W;L.lastScript_=N;L.insertPos.insertBefore(N,L.insertPos.firstChild);_.lCt(N,S,function(){N.parentElement.removeChild(N);L.lastScript_==N&&(L.lastScript_=null);var V=new Set;S.map(function(G){return V.add(G)});
for(var M in L.JSC$11051_moduleInfoMap_)L.JSC$11051_moduleInfoMap_[M].isLoaded()&&V.add(M);Array.from(V);T()},function(V){N.parentElement.removeChild(N);
L.lastScript_==N&&(L.lastScript_=null);_.XD(L,V);L.pendingModuleGraphUpdate_?L.pendingModuleGraphUpdate_.then(function(){u(-1,Z)}):u(-1,Z)},W)};
_.lCt=function(L,Z,N,S,u){u=u===void 0?Z:u;var T=Z.length,W=function(){T=0;L.onload=null;L.onerror=null;V=function(){}},V=function(){W();
var G=u.filter(function(D){return!py().getModuleInfo(D).isLoaded()});
G.length!==0?S(G,"Response was successful but was missing module(s) "+G+"."):N()},M=function(){T--;
T==0&&V()};
Z.forEach(function(G){G=py().getModuleInfo(G);G.isLoaded()?M():(r1(G.earlyOnloadCallbacks_,M),OXL(G,M))});
L.onload=function(){return V()};
L.onerror=function(){W();S(Z)}};
G7t=function(L){L.requestedModuleListSorted_||(L.requestedModuleListSorted_=!0,L.requestedModuleList_.sort());return L.requestedModuleList_};
Flt=function(L){L=L.loadedCssModuleList_;L.sort();return L};
MDq=function(L,Z){return Z.filter(function(N){return!L.requestedModuleMap_[N]})};
geh=function(L,Z,N,S){if(L.pendingModuleGraphUpdate_)return L.pendingModuleGraphUpdate_.then(function(){geh(L,Z,N,S)}),!0;
if(!L.useNegativeLoading_){var u=[],T=Object.assign({},L.requestedModuleMap_);veI(L,Z,function(D){u.push(D.getId())},S,function(D){return!D.isLoaded()},T);
Z=u}for(T=0;T<Z.length;){for(var W=Z.length-T,V=T==0?Z:Z.slice(T,Z.length),M=$Js(L,V,S),G=_.en(M).toString();G.length>L.urlMaxLength;)if(W>1)W-=Math.ceil((G.length-L.urlMaxLength)/6),W=Math.max(W,1),V=Z.slice(T,T+W),M=$Js(L,V,S),G=_.en(M).toString();else return L.useNegativeLoading_?(L.useNegativeLoading_=!1,L.pendingModuleGraphUpdate_=oe0(L).then(function(D){R3V(L,D,S)}),geh(L,Z.slice(T),N,S)):!1;
T+=W;L.useNegativeLoading_?N(M,V):N(M,V,T===Z.length?Z:[])}return!0};
R3V=function(L,Z,N){py().setAllModuleInfoString((Z||{}).moduleGraph);veI(L,G7t(L),function(S){_.Q3(L,[S.getId()])},N);
L.pendingModuleGraphUpdate_=null};
veI=function(L,Z,N,S,u,T){T=T===void 0?{}:T;var W=py();Z=_.O(Z);for(var V=Z.next();!V.done;V=Z.next()){V=V.value;var M=W.getModuleInfo(V);if(!(T[V]||u&&!u(M))){T[V]=!0;var G=M.deps_||[];if(S){var D=[];S[V]&&(D=Object.keys(S[V]));G=G.concat(D)}veI(L,G,N,S,u,T);N(M)}}};
oe0=function(L){L=L.scsReferenceUrl_.clone();obt(L);fL(L,"dg",null);fL(L,"md","1");return iXM(L.toString())};var N3F=new Uint8Array(123);var czt=[];var neM=function(){this.JSC$10053_loader_=null};
_.t=neM.prototype;_.t.setBatchModeEnabled=function(){};
_.t.setAllModuleInfoString=function(){};
_.t.addExtraEdge=function(){throw Error("vd");};
_.t.removeExtraEdge=function(){throw Error("wd");};
_.t.getModuleContext=function(){return null};
_.t.isActive=function(){return!1};
_.t.isUserActive=function(){return!1};
_.t.registerInitializationCallback=function(){};
_.t.registerCallback=function(){};var Av=function(L,Z,N,S,u){var T=Error.call(this);this.message=T.message;"stack"in T&&(this.stack=T.stack);this.name="ModuleLoadFailure";this.type=L;this.status=Z;this.requestedModuleIds=N;this.url=S;this.cause=u;this.message=this.toString()};
_.f(Av,Error);Av.prototype.toString=function(){return Kls(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var Kls=function(L){switch(L.type){case Av.Type.UNAUTHORIZED:return"Unauthorized";case Av.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Av.Type.TIMEOUT:return"Timed out";case Av.Type.OLD_CODE_GONE:return"Out of date module id";case Av.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+L.type}};
J9.ModuleLoadFailure=Av;J9.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Hc=function(){this.moduleIds_=this.JSC$10053_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11066_extraEdges_={};this.JSC$11066_callbackMap_={};this.JSC$11066_currentlyLoadingModule_=this.baseModuleInfo_=new C2([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Hn;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Qk(Hc,neM);var fCY=function(L,Z){_.NL.call(this,"Error loading "+L+": "+Z)};
_.Qk(fCY,_.NL);Hc.prototype.setBatchModeEnabled=function(L){this.batchModeEnabled_=L};
Hc.prototype.setAllModuleInfoString=function(L,Z){if(!(this instanceof Hc))this.setAllModuleInfoString(L,Z);else if(typeof L==="string"){if(L.startsWith("d$")){L=L.substring(2);for(var N=[],S=0,u=L.indexOf("/"),T=0,W=!1,V=0;;){var M=W?L.substring(T):L.substring(T,u);if(M.length===0)S++,T="sy"+S.toString(36),M=[];else{var G=M.indexOf(":");if(G<0)T=M,M=[];else if(G===M.length-1)T=M.substring(0,G),M=Array(N[V-1]);else{T=M.substring(0,G);M=M.substring(G+1).split(",");G=V;for(var D=0;D<M.length;D++)G-=
M[D].length===0?1:Number(M[D]),M[D]=N[G]}G=0;if(T.length===0)G=1;else if(T.charAt(0)==="+"||T.charAt(0)==="-")G=Number(T);G!==0&&(S+=G,T="sy"+S.toString(36))}N.push(T);k75(this,T,M);if(W)break;T=u+1;u=L.indexOf("/",T);u===-1&&(W=!0);V++}this.moduleIds_=N}else if(L.startsWith("p$"))yzV(this,L);else{L=L.split("/");N=[];for(S=0;S<L.length;S++){V=L[S].split(":");u=V[0];W=[];if(V[1])for(W=V[1].split(","),V=0;V<W.length;V++)W[V]=N[parseInt(W[V],36)];N.push(u);k75(this,u,W)}this.moduleIds_=N}Z&&Z.length?
(_.C1(this.loadingModuleIds_,Z),this.lastInitialModuleId_=_.aF(Z)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11066_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11066_currentlyLoadingModule_=null,(Z=this.baseModuleInfo_.onLoad((0,_.hr)(this.getModuleContext,this)))&&Z.length&&wqt(this,new J9.ModuleLoadFailure(J9.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,Z[0])),Bc(this))}};
var yzV=function(L,Z){var N=Z.substring(2);for(Z=0;Z<64;Z++)N3F["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(Z)]=Z;var S={buf:N,pos:0};le(S);var u=le(S),T=le(S)+1;Z=Array(u);var W=Array(u),V=Array(u);T=Array(T);var M=0,G=0,D=S.pos,l=S.buf.indexOf("|",S.pos);S.pos=l+1;for(l=0;l<u;l++){var v=le(S),R=v&2,K=v&1;v>>>=2;K?(M+=v>>>1^-(v&1),v="sy"+M.toString(36)):(K=D,D+=v,v=N.substring(K,D));Z[l]=v;R&&(T[G++]=v)}T[G]="";S.pos++;G=u&-2;N=u&1;for(M=0;M<G;M+=2)D=Siw(S),V[M]=
D&7,V[M+1]=D>>>3&7;N&&(N=Siw(S),V[G]=N&7);S.pos++;for(G=0;G<u;G++)V[G]===7&&(V[G]=le(S));S.pos++;for(N=G=0;N<u;N++){M=V[N];D=M===0?czt:Array(M);W[N]=D;l=G;for(R=0;R<M;R++)l-=le(S),D[R]=T[l];T[G]===Z[N]&&G++}for(S=0;S<Z.length;S++)k75(L,Z[S],W[S]);L.moduleIds_=Z};
_.t=Hc.prototype;_.t.getModuleInfo=function(L){return this.moduleInfoMap[L]};
_.t.addExtraEdge=function(L,Z){var N=this.getModuleInfo(L);N&&N.isLoaded()?this.load(Z):(this.JSC$11066_extraEdges_[L]||(this.JSC$11066_extraEdges_[L]={}),this.JSC$11066_extraEdges_[L][Z]=!0)};
_.t.removeExtraEdge=function(L,Z){if(this.JSC$11066_extraEdges_[L]){delete this.JSC$11066_extraEdges_[L][Z];for(var N in this.JSC$11066_extraEdges_[L])return;delete this.JSC$11066_extraEdges_[L]}};
_.t.isActive=function(){return this.loadingModuleIds_.length>0};
_.t.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Bc=function(L){var Z=L.lastActive_,N=L.isActive();N!=Z&&(L.executeCallbacks_(N?"active":"idle"),L.lastActive_=N);Z=L.isUserActive();Z!=L.userLastActive_&&(L.executeCallbacks_(Z?"userActive":"userIdle"),L.userLastActive_=Z)},k75=function(L,Z,N){L.moduleInfoMap[Z]?(L=L.moduleInfoMap[Z].deps_,L!=N&&L.splice.apply(L,[0,
L.length].concat(_.Pd(N)))):L.moduleInfoMap[Z]=new C2(N,Z)},Yx5=function(L,Z,N){var S=[];
a0G(Z,S);Z=[];for(var u={},T=0;T<S.length;T++){var W=S[T],V=L.getModuleInfo(W);if(!V)throw Error("xd`"+W);var M=new Hn;u[W]=M;V.isLoaded()?M.callback(null):(UJI(L,W,V,!!N,M),L.isModuleLoading(W)||Z.push(W))}Z.length>0&&(L.loadingModuleIds_.length===0?L.loadModules_(Z):(L.requestedModuleIdsQueue_.push(Z),Bc(L)));return u},UJI=function(L,Z,N,S,u){N.registerCallback(u.callback,u);
OXL(N,function(T){u.errback(new fCY(Z,T))});
L.isModuleLoading(Z)?S&&(e35(L,Z),Bc(L)):S&&e35(L,Z)};
Hc.prototype.loadModules_=function(L,Z,N){var S=this;Z||(this.consecutiveFailures_=0);var u=ICh(this,L);this.loadingModuleIds_=u;this.requestedLoadingModuleIds_=this.batchModeEnabled_?L:_.mh(u);Bc(this);if(u.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,u);L=this.JSC$10053_loader_;if(!L)throw Error("yd");if(Object.keys(this.JSC$11066_extraEdges_).length>0&&!L.supportsExtraEdges)throw Error("zd");N=(0,_.hr)(L.JSC$11053_loadModules,L,_.mh(u),this.moduleInfoMap,{extraEdges:this.JSC$11066_extraEdges_,
forceReload:!!N,onError:function(T,W){var V=S.requestedLoadingModuleIds_;T=T!=null?T:void 0;S.consecutiveFailures_++;var M=_.mh(u);S.requestedLoadingModuleIds_=V;u.forEach(_.T6(_.zB,S.requestedModuleIds_),S);T==401?(wqt(S,new J9.ModuleLoadFailure(J9.ModuleLoadFailure.Type.UNAUTHORIZED,T)),S.requestedModuleIdsQueue_.length=0):T==410?(dJt(S,new J9.ModuleLoadFailure(J9.ModuleLoadFailure.Type.OLD_CODE_GONE,T)),aCq(S)):S.consecutiveFailures_>=3?(dJt(S,new J9.ModuleLoadFailure(J9.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
T,M,W)),aCq(S)):S.loadModules_(S.requestedLoadingModuleIds_,!0,T==8001||!1)},
onTimeout:(0,_.hr)(this.handleLoadTimeout_,this)});(L=Math.pow(this.consecutiveFailures_,2)*5E3)?_.iH.setTimeout(N,L):N()}};
var ICh=function(L,Z){Z=Z.filter(function(u){return L.moduleInfoMap[u].isLoaded()?(_.iH.setTimeout(function(){return Error("Ad`"+u)},0),!1):!0});
for(var N=[],S=0;S<Z.length;S++)N=N.concat(h3q(L,Z[S]));a0G(N);return!L.batchModeEnabled_&&N.length>1?(Z=N.shift(),L.requestedModuleIdsQueue_=N.map(function(u){return[u]}).concat(L.requestedModuleIdsQueue_),[Z]):N},h3q=function(L,Z){var N=_.Py.createSet(L.requestedModuleIds_),S=[];
N[Z]||S.push(Z);Z=[Z];for(var u=0;u<Z.length;u++)for(var T=L.getModuleInfo(Z[u]).deps_,W=T.length-1;W>=0;W--){var V=T[W];L.getModuleInfo(V).isLoaded()||N[V]||(S.push(V),Z.push(V))}S.reverse();a0G(S);return S};
Hc.prototype.JSC$11061_setLoaded=function(){if(this.JSC$11066_currentlyLoadingModule_){var L=this.JSC$11066_currentlyLoadingModule_.getId(),Z=[];if(this.JSC$11066_extraEdges_[L]){for(var N=_.O(Object.keys(this.JSC$11066_extraEdges_[L])),S=N.next();!S.done;S=N.next()){S=S.value;var u=this.getModuleInfo(S);u&&!u.isLoaded()&&(this.removeExtraEdge(L,S),Z.push(S))}this.loadMultiple(Z)}this.isDisposed()||((Z=this.moduleInfoMap[L].onLoad((0,_.hr)(this.getModuleContext,this)))&&Z.length&&wqt(this,new J9.ModuleLoadFailure(J9.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,Z[0])),_.zB(this.userInitiatedLoadingModuleIds_,L),_.zB(this.loadingModuleIds_,L),this.loadingModuleIds_.length===0&&aCq(this),this.lastInitialModuleId_&&L==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Bc(this),this.JSC$11066_currentlyLoadingModule_=null)}};
Hc.prototype.isModuleLoading=function(L){if(_.p1(this.loadingModuleIds_,L))return!0;for(var Z=0;Z<this.requestedModuleIdsQueue_.length;Z++)if(_.p1(this.requestedModuleIdsQueue_[Z],L))return!0;return!1};
Hc.prototype.load=function(L,Z){return Yx5(this,[L],Z)[L]};
Hc.prototype.loadMultiple=function(L){return Yx5(this,L)};
var e35=function(L,Z){_.p1(L.userInitiatedLoadingModuleIds_,Z)||L.userInitiatedLoadingModuleIds_.push(Z)};
Hc.prototype.beforeLoadModuleCode=function(L){var Z=this;this.JSC$11066_currentlyLoadingModule_&&this.JSC$11066_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11061_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[L]&&ssO(this,this.moduleInfoMap[L].deps_||[],function(N){N.module_=new Jv;_.zB(Z.loadingModuleIds_,N.getId())},function(N){return!N.isLoaded()});
this.JSC$11066_currentlyLoadingModule_=this.getModuleInfo(L)};
Hc.prototype.registerInitializationCallback=function(L){this.JSC$11066_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new C2([],"synthetic_module_overhead"),this.JSC$11066_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);r1(this.JSC$11066_currentlyLoadingModule_.earlyOnloadCallbacks_,L)};
Hc.prototype.handleLoadTimeout_=function(){dJt(this,new J9.ModuleLoadFailure(J9.ModuleLoadFailure.Type.TIMEOUT));aCq(this)};
var dJt=function(L,Z){L.requestedLoadingModuleIds_.length>1?L.requestedModuleIdsQueue_=L.requestedLoadingModuleIds_.map(function(N){return[N]}).concat(L.requestedModuleIdsQueue_):wqt(L,Z)},wqt=function(L,Z){var N=L.requestedLoadingModuleIds_;
L.loadingModuleIds_.length=0;for(var S=[],u=0;u<L.requestedModuleIdsQueue_.length;u++){var T=L.requestedModuleIdsQueue_[u].filter(function(M){var G=h3q(this,M);return TI(N,function(D){return _.p1(G,D)})},L);
_.C1(S,T)}for(u=0;u<N.length;u++)_.YGt(S,N[u]);for(u=0;u<S.length;u++){for(T=0;T<L.requestedModuleIdsQueue_.length;T++)_.zB(L.requestedModuleIdsQueue_[T],S[u]);_.zB(L.userInitiatedLoadingModuleIds_,S[u])}if(u=L.JSC$11066_callbackMap_.error)for(T=0;T<u.length;T++)for(var W=u[T],V=0;V<S.length;V++)W("error",S[V],Z);for(S=0;S<N.length;S++)if(L.moduleInfoMap[N[S]])L.moduleInfoMap[N[S]].onError(Z);L.requestedLoadingModuleIds_.length=0;Bc(L)},aCq=function(L){for(;L.requestedModuleIdsQueue_.length;){var Z=
L.requestedModuleIdsQueue_.shift().filter(function(N){return!this.getModuleInfo(N).isLoaded()},L);
if(Z.length>0){L.loadModules_(Z);return}}Bc(L)};
Hc.prototype.registerCallback=function(L,Z){Array.isArray(L)||(L=[L]);for(var N=0;N<L.length;N++){var S=L[N],u=Z,T=this.JSC$11066_callbackMap_;T[S]||(T[S]=[]);T[S].push(u)}};
Hc.prototype.executeCallbacks_=function(L){for(var Z=this.JSC$11066_callbackMap_[L],N=0;Z&&N<Z.length;N++)Z[N](L)};
var ssO=function(L,Z,N,S,u){S=S===void 0?function(){return!0}:S;
u=u===void 0?{}:u;Z=_.O(Z);for(var T=Z.next();!T.done;T=Z.next()){T=T.value;var W=L.getModuleInfo(T);!u[T]&&S(W)&&(u[T]=!0,ssO(L,W.deps_||[],N,S,u),N(W))}};
Hc.prototype.dispose=function(){_.VL(_.Py.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11066_callbackMap_={};this.isDisposed_=!0};
Hc.prototype.isDisposed=function(){return this.isDisposed_};
_.P4=function(){return new Hc};var jsl=[5E3,2E4],w_A=function(){this.JSC$10053_loader_=null;this.JSC$11074_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11074_queue_=[];this.JSC$11074_extraEdges_=Object.create(null);this.JSC$11074_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.f(w_A,neM);_.t=w_A.prototype;_.t.setAllModuleInfoString=function(){this.JSC$11074_currentlyLoadingModule_&&this.JSC$11074_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11061_setLoaded()};
_.t.getModuleInfo=function(L){var Z=this.JSC$11074_moduleInfoMap_[L];Z||(Z=new C2([],L),this.JSC$11074_moduleInfoMap_[L]=Z);return Z};
_.t.addExtraEdge=function(L,Z){this.getModuleInfo(L).isLoaded()?this.load(Z):(this.JSC$11074_extraEdges_[L]||(this.JSC$11074_extraEdges_[L]={}),this.JSC$11074_extraEdges_[L][Z]=!0)};
_.t.removeExtraEdge=function(L,Z){if(this.JSC$11074_extraEdges_[L]){delete this.JSC$11074_extraEdges_[L][Z];for(var N in this.JSC$11074_extraEdges_[L])return;delete this.JSC$11074_extraEdges_[L]}};
_.t.isModuleLoading=function(L){return!!this.loadingModules_[L]};
_.t.load=function(L){Ees(this,[L]);return PvQ(this,L)};
_.t.loadMultiple=function(L){var Z=this,N=Object.create(null),S=[];L.forEach(function(u){N[u]||(N[u]=PvQ(Z,u),S.push(u))});
Ees(this,S);return N};
_.t.beforeLoadModuleCode=function(L){var Z;((Z=this.JSC$11074_currentlyLoadingModule_)==null?void 0:Z.getId())==="synthetic_module_overhead"&&this.JSC$11061_setLoaded();var N,S;pq0(this,(S=(N=this.JSC$11074_moduleInfoMap_[L])==null?void 0:N.deps_)!=null?S:[],function(u){u.module_=new Jv},function(u){return!u.isLoaded()});
this.JSC$11074_currentlyLoadingModule_=this.getModuleInfo(L)};
_.t.JSC$11061_setLoaded=function(){if(this.JSC$11074_currentlyLoadingModule_){var L=this.JSC$11074_currentlyLoadingModule_.getId(),Z=[];if(this.JSC$11074_extraEdges_[L]){for(var N=_.O(Object.keys(this.JSC$11074_extraEdges_[L])),S=N.next();!S.done;S=N.next())S=S.value,this.getModuleInfo(S).isLoaded()||(this.removeExtraEdge(L,S),Z.push(S));this.loadMultiple(Z)}this.JSC$11074_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11074_currentlyLoadingModule_=null;(!this.isModuleLoading(L)&&/^sy[0-9a-z]{0,4}$/.test(L)||L==="synthetic_module_overhead")&&delete this.JSC$11074_moduleInfoMap_[L];this.unsetModulesAsLoading(L)}};
_.t.registerInitializationCallback=function(L){this.JSC$11074_currentlyLoadingModule_||(this.JSC$11074_moduleInfoMap_.synthetic_module_overhead=new C2([],"synthetic_module_overhead"),this.JSC$11074_currentlyLoadingModule_=this.JSC$11074_moduleInfoMap_.synthetic_module_overhead);r1(this.JSC$11074_currentlyLoadingModule_.earlyOnloadCallbacks_,L)};
_.t.setModulesAsLoading=function(){var L=this;_.CG.apply(0,arguments).forEach(function(Z){L.loadingModules_[Z]=!0})};
_.t.unsetModulesAsLoading=function(){var L=this;_.CG.apply(0,arguments).forEach(function(Z){delete L.loadingModules_[Z]})};
var PvQ=function(L,Z){return new _.kE(function(N,S){var u=L.getModuleInfo(Z);u.isLoaded()?N(null):(u.registerCallback(function(){N(null)}),OXL(u,function(T){var W="Error loading "+Z+": "+T;
T instanceof J9.ModuleLoadFailure&&T.url&&(W=W+", requested url: "+T.url.toString());S(Error(W))}))})},Ees=function(L,Z){Z=Z.filter(function(N){return!L.isModuleLoading(N)&&!L.getModuleInfo(N).isLoaded()});
Z.length>0&&(L.setModulesAsLoading.apply(L,_.Pd(Z)),L.JSC$11074_queue_.push(Z),z30(L))},z30=function(L){for(var Z={};L.activeLoads_<Infinity&&L.JSC$11074_queue_.length>0;Z={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})Z.ids$jscomp$36=L.JSC$11074_queue_.shift().filter(function(N){return!L.getModuleInfo(N).isLoaded()}),Z.ids$jscomp$36.length>0&&(L.activeLoads_++,Z.finishLoad=function(N){return function(){L.activeLoads_--;
z30(L);N.finishLoad=function(){}}}(Z),_.yz(Z.ids$jscomp$36.map(function(N){return PvQ(L,N)})).then(function(N){return function(){(0,N.finishLoad)()}}(Z)),Z.attempt$jscomp$6=0,Z.load$jscomp$1=function(N){return function(){if(Object.keys(L.JSC$11074_extraEdges_).length>0&&!L.JSC$10053_loader_.supportsExtraEdges)throw Error("zd");
L.JSC$10053_loader_.JSC$11053_loadModules(N.ids$jscomp$36,L.JSC$11074_moduleInfoMap_,{extraEdges:L.JSC$11074_extraEdges_,onError:function(S,u){var T=jsl[N.attempt$jscomp$6++];T!==void 0?setTimeout(function(){(0,N.load$jscomp$1)()},T):(L.unsetModulesAsLoading.apply(L,_.Pd(N.ids$jscomp$36)),(0,N.finishLoad)(),N.ids$jscomp$36.forEach(function(W){W=L.getModuleInfo(W);
if(!W.isLoaded())W.onError(new J9.ModuleLoadFailure(J9.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,S,N.ids$jscomp$36,u))}))}})}}(Z),(0,Z.load$jscomp$1)())},pq0=function(L,Z,N,S,u){S=S===void 0?function(){return!0}:S;
u=u===void 0?{}:u;Z=_.O(Z);for(var T=Z.next();!T.done;T=Z.next()){T=T.value;var W=L.getModuleInfo(T);!u[T]&&S(W)&&(u[T]=!0,pq0(L,W.deps_||[],N,S,u),N(W))}};var mJV=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var tyt=Symbol("Cd");window.JSCompiler_renameProperty=function(L){return L};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var JzO=!mJV||HTMLElement.es5Shimmed||_.iH.Reflect===void 0||_.iH.customElements===void 0||_.iH.customElements.polyfillWrapFlushCallback||!1,Cvt,P5H=function(){var L=HTMLElement;if(JzO)return L;if(Cvt!==void 0)return Cvt;var Z=_.iH.Reflect,N=function(){return Z.construct(L,[],this.constructor)};
N.prototype=L.prototype;N.prototype.constructor=N;N.es5Shimmed=!0;Object.setPrototypeOf(N,L);return Cvt=N},rzY=!1;JzO||rzY||(rzY=!0,_.iH.HTMLElement=P5H());/*

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 MyH=/(url\()([^)]*)(\))/g,Vyf=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,bmw,o6;var LH=!window.ShadyDOM||!window.ShadyDOM.inUse,QsM=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),XqL=!window.customElements.polyfillWrapFlushCallback,AzM;if(AzM=LH&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var HXL=new CSSStyleSheet;HXL.replaceSync("");var Brh=document.createElement("div");Brh.attachShadow({mode:"open"});Brh.shadowRoot.adoptedStyleSheets=[HXL];AzM=Brh.shadowRoot.adoptedStyleSheets[0]===HXL}catch(L){AzM=!1}
var xJV=AzM,qxh=window.Polymer&&window.Polymer.rootPath||GnG(document.baseURI||window.location.href),a6=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,c9A=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,iN=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,LLL=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,q4=window.Polymer&&window.Polymer.legacyOptimizations||!1,Sj=window.Polymer&&window.Polymer.legacyWarnings||!1,Zd5=window.Polymer&&window.Polymer.syncInitialRender||
!1,sV=window.Polymer&&window.Polymer.legacyUndefined||!1,NDM=window.Polymer&&window.Polymer.orderedComputed||!1,xF=window.Polymer&&window.Polymer.removeNestedTemplates||!1,qX=window.Polymer&&window.Polymer.fastDomIf||!1,L6=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Sk0=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,id0=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var ZX={},u4V={},EV=function(){return HTMLElement.apply(this,arguments)||this};
_.f(EV,HTMLElement);EV.import=function(L,Z){return L?(L=ZX[L]||u4V[L.toLowerCase()])&&Z?L.querySelector(Z):L:null};
EV.prototype.attributeChangedCallback=function(L,Z,N){Z!==N&&this.register()};
EV.prototype.register=function(L){if(L=L||this.id){if(iN&&(ZX[L]||u4V[L.toLowerCase()])!==void 0)throw ZX[L]=u4V[L.toLowerCase()]=null,Error("Dd`"+L);this.id=L;ZX[L]=u4V[L.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.gd.Object.defineProperties(EV.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var L=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;L=_.R6(this.getAttribute("assetpath")||"",L.baseURI);this.__assetpath=GnG(L)}return this.__assetpath}}});
_.gd.Object.defineProperties(EV,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
EV["import"]=EV.import;EV.prototype.modules=ZX;customElements.define("dom-module",EV);var TDN=0,$3H=0,cM=[],tAO=0,F4B=!1,OdN=document.createTextNode(""),WL5,A2;(new window.MutationObserver(D30)).observe(OdN,{characterData:!0});_.N9={after:function(L){return{run:function(Z){return window.setTimeout(Z,L)},
cancel:function(Z){window.clearTimeout(Z)}}},
run:function(L,Z){return window.setTimeout(L,Z)},
cancel:function(L){window.clearTimeout(L)}};
_.FZ={run:function(L){return window.requestAnimationFrame(L)},
cancel:function(L){window.cancelAnimationFrame(L)}};
WL5={run:function(L){return window.requestIdleCallback?window.requestIdleCallback(L):window.setTimeout(L,16)},
cancel:function(L){window.cancelIdleCallback?window.cancelIdleCallback(L):window.clearTimeout(L)}};
A2={run:function(L){F4B||(F4B=!0,OdN.textContent=tAO++);cM.push(L);return TDN++},
cancel:function(L){var Z=L-$3H;if(Z>=0){if(!cM[Z])throw Error("Ed`"+L);cM[Z]=null}}};var VAM=0,SR=function(L){var Z=L.__mixinApplications;Z||(Z=new WeakMap,L.__mixinApplications=Z);var N=VAM++;return function(S){var u=S.__mixinSet;if(u&&u[N])return S;var T=Z,W=T.get(S);W||(W=L(S),T.set(S,W),S=Object.create(W.__mixinSet||u||null),S[N]=!0,W.__mixinSet=S);return W}};_.dx=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(L){return ShadyDOM.patch(L)}:function(L){return L};var bdq=SR(function(L){var Z=function(){var N=L.call(this)||this;N.__dataEnabled=!1;N.__dataReady=!1;N.__dataInvalid=!1;N.__data={};N.__dataPending=null;N.__dataOld=null;N.__dataInstanceProps=null;N.__dataCounter=0;N.__serializing=!1;N._initializeProperties();return N};
_.f(Z,L);Z.createProperties=function(N){var S=this.prototype,u;for(u in N)u in S||S._createPropertyAccessor(u)};
Z.attributeNameForProperty=function(N){return N.toLowerCase()};
Z.typeForProperty=function(){};
Z.prototype._createPropertyAccessor=function(N,S){this._addPropertyToAttributeMap(N);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[N]||(this.__dataHasAccessor[N]=!0,this._definePropertyAccessor(N,S))};
Z.prototype._addPropertyToAttributeMap=function(N){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var S=this.__dataAttributes[N];S||(S=this.constructor.attributeNameForProperty(N),this.__dataAttributes[S]=N);return S};
Z.prototype._definePropertyAccessor=function(N,S){Object.defineProperty(this,N,{get:function(){return this.__data[N]},
set:S?function(){}:function(u){this._setPendingProperty(N,u,!0)&&this._invalidateProperties()}})};
Z.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
Z.prototype._initializeProperties=function(){for(var N in this.__dataHasAccessor)this.hasOwnProperty(N)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[N]=this[N],delete this[N])};
Z.prototype._initializeInstanceProperties=function(N){Object.assign(this,N)};
Z.prototype._setProperty=function(N,S){this._setPendingProperty(N,S)&&this._invalidateProperties()};
Z.prototype._getProperty=function(N){return this.__data[N]};
Z.prototype._setPendingProperty=function(N,S){var u=this.__data[N],T=this._shouldPropertyChange(N,S,u);T&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||N in this.__dataOld||(this.__dataOld[N]=u),this.__data[N]=S,this.__dataPending[N]=S);return T};
Z.prototype._isPropertyPending=function(N){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(N))};
Z.prototype._invalidateProperties=function(){var N=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,A2.run(function(){N.__dataInvalid&&(N.__dataInvalid=!1,N._flushProperties())}))};
Z.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
Z.prototype._flushProperties=function(){this.__dataCounter++;var N=this.__data,S=this.__dataPending,u=this.__dataOld;this._shouldPropertiesChange(N,S,u)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(N,S,u));this.__dataCounter--};
Z.prototype._shouldPropertiesChange=function(N,S){return!!S};
Z.prototype._propertiesChanged=function(){};
Z.prototype._shouldPropertyChange=function(N,S,u){return u!==S&&(u===u||S===S)};
Z.prototype.attributeChangedCallback=function(N,S,u,T){S!==u&&this._attributeToProperty(N,u);L.prototype.attributeChangedCallback&&L.prototype.attributeChangedCallback.call(this,N,S,u,T)};
Z.prototype._attributeToProperty=function(N,S,u){if(!this.__serializing){var T=this.__dataAttributes;N=T&&T[N]||N;this[N]=this._deserializeValue(S,u||this.constructor.typeForProperty(N))}};
Z.prototype._propertyToAttribute=function(N,S,u){this.__serializing=!0;u=arguments.length<3?this[N]:u;this._valueToNodeAttribute(this,u,S||this.constructor.attributeNameForProperty(N));this.__serializing=!1};
Z.prototype._valueToNodeAttribute=function(N,S,u){S=this._serializeValue(S);if(u==="class"||u==="name"||u==="slot")N=(0,_.dx)(N);S===void 0?N.removeAttribute(u):N.setAttribute(u,S===""&&window.trustedTypes?window.trustedTypes.emptyScript:S)};
Z.prototype._serializeValue=function(N){switch(typeof N){case "boolean":return N?"":void 0;default:return N!=null?N.toString():void 0}};
Z.prototype._deserializeValue=function(N,S){switch(S){case Boolean:return N!==null;case Number:return Number(N);default:return N}};
return Z});var MAQ=0,l2_=[];var gDt=SR(function(L){function Z(T){T=Object.getPrototypeOf(T);return T.prototype instanceof u?T:null}
function N(T){if(!T.hasOwnProperty("__ownProperties")){var W=null;if(T.hasOwnProperty("properties")){var V=T.properties;if(V){W={};for(var M in V){var G=V[M];W[M]=typeof G==="function"?{type:G}:G}}}T.__ownProperties=W}return T.__ownProperties}
var S=bdq(L),u=function(){return S.apply(this,arguments)||this};
_.f(u,S);u.finalize=function(){if(!this.hasOwnProperty("__finalized")){var T=Z(this);T&&T.finalize();this.__finalized=!0;this._finalizeClass()}};
u._finalizeClass=function(){var T=N(this);T&&this.createProperties(T)};
u.typeForProperty=function(T){return(T=this._properties[T])&&T.type};
u.prototype._initializeProperties=function(){MAQ++;this.constructor.finalize();S.prototype._initializeProperties.call(this)};
u.prototype.connectedCallback=function(){S.prototype.connectedCallback&&S.prototype.connectedCallback.call(this);this._enableProperties()};
u.prototype.disconnectedCallback=function(){S.prototype.disconnectedCallback&&S.prototype.disconnectedCallback.call(this)};
_.gd.Object.defineProperties(u,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var T=this;if(!this.hasOwnProperty("__observedAttributes")){vo_(this.prototype);var W=this._properties;this.__observedAttributes=W?Object.keys(W).map(function(V){return T.prototype._addPropertyToAttributeMap(V)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var T=Z(this);this.__properties=Object.assign({},T&&T._properties,N(this))}return this.__properties}}});
return u});var ooH={},RUx=/-[a-z]/g,cZh=/([A-Z])/g;for(var GXt={},FLt=HTMLElement.prototype;FLt;){for(var $dL=Object.getOwnPropertyNames(FLt),DdM=0;DdM<$dL.length;DdM++)GXt[$dL[DdM]]=!0;FLt=Object.getPrototypeOf(FLt)}var lU5=window.trustedTypes?function(L){return trustedTypes.isHTML(L)||trustedTypes.isScript(L)||trustedTypes.isScriptURL(L)}:function(){return!1},vDN=SR(function(L){var Z=bdq(L);
L=function(){return Z.apply(this,arguments)||this};
_.f(L,Z);L.createPropertiesForAttributes=function(){for(var N=this.observedAttributes,S=0;S<N.length;S++)this.prototype._createPropertyAccessor(no(N[S]))};
L.attributeNameForProperty=function(N){return Ko(N)};
L.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);Z.prototype._initializeProperties.call(this)};
L.prototype._initializeProtoProperties=function(N){for(var S in N)this._setProperty(S,N[S])};
L.prototype._ensureAttribute=function(N,S){this.hasAttribute(N)||this._valueToNodeAttribute(this,S,N)};
L.prototype._serializeValue=function(N){switch(typeof N){case "object":if(N instanceof Date)return N.toString();if(N){if(lU5(N))return N;try{return JSON.stringify(N)}catch(S){return""}}default:return Z.prototype._serializeValue.call(this,N)}};
L.prototype._deserializeValue=function(N,S){switch(S){case Object:try{var u=JSON.parse(N)}catch(T){u=N}break;case Array:try{u=JSON.parse(N)}catch(T){u=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+N)}break;case Date:u=isNaN(N)?String(N):Number(N);u=new Date(u);break;default:u=Z.prototype._deserializeValue.call(this,N,S)}return u};
L.prototype._definePropertyAccessor=function(N,S){if(!GXt[N]){var u=this[N];u!==void 0&&(this.__data?this._setPendingProperty(N,u):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[N]=u))}Z.prototype._definePropertyAccessor.call(this,N,S)};
L.prototype._hasAccessor=function(N){return this.__dataHasAccessor&&this.__dataHasAccessor[N]};
L.prototype._isPropertyPending=function(N){return!!(this.__dataPending&&N in this.__dataPending)};
return L});var oDV={"dom-if":!0,"dom-repeat":!0},RdV=!1,cJl=!1,nDq=function(){var L=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(Z){return Z}});
return function(Z,N,S){N=N.getAttribute(S);L&&S.startsWith("on-")?Z.setAttribute(S,L.createScript(N,S)):Z.setAttribute(S,N)}}(),KLl=SR(function(L){var Z=function(){return L.apply(this,arguments)||this};
_.f(Z,L);Z._parseTemplate=function(N,S){if(!N._templateInfo){var u=N._templateInfo={};u.nodeInfoList=[];u.nestedTemplate=!!S;u.stripWhiteSpace=S&&S.stripWhiteSpace||N.hasAttribute&&N.hasAttribute("strip-whitespace");this._parseTemplateContent(N,u,{parent:null})}return N._templateInfo};
Z._parseTemplateContent=function(N,S,u){return this._parseTemplateNode(N.content,S,u)};
Z._parseTemplateNode=function(N,S,u){var T=!1;N.localName!="template"||N.hasAttribute("preserve-content")?N.localName==="slot"&&(S.hasInsertionPoint=!0):T=this._parseTemplateNestedTemplate(N,S,u)||T;if(!RdV){RdV=!0;var W=document.createElement("textarea");W.placeholder="a";cJl=W.placeholder===W.textContent}cJl&&N.localName==="textarea"&&N.placeholder&&N.placeholder===N.textContent&&(N.textContent=null);N.firstChild&&this._parseTemplateChildNodes(N,S,u);N.hasAttributes&&N.hasAttributes()&&(T=this._parseTemplateNodeAttributes(N,
S,u)||T);return T||u.noted};
Z._parseTemplateChildNodes=function(N,S,u){if(N.localName!=="script"&&N.localName!=="style")for(var T=N.firstChild,W=0,V;T;T=V){if(T.localName=="template"){var M=T.getAttribute("is");if(M&&oDV[M])for(V=T,V.removeAttribute("is"),T=V.ownerDocument.createElement(M),V.parentNode.replaceChild(T,V),T.appendChild(V);V.attributes.length;)M=V.attributes[0].name,nDq(T,V,M),V.removeAttribute(M)}V=T.nextSibling;if(T.nodeType===Node.TEXT_NODE){for(M=V;M&&M.nodeType===Node.TEXT_NODE;)T.textContent+=M.textContent,
V=M.nextSibling,N.removeChild(M),M=V;if(S.stripWhiteSpace&&!T.textContent.trim()){N.removeChild(T);continue}}M={parentIndex:W,parentInfo:u};this._parseTemplateNode(T,S,M)&&(M.infoIndex=S.nodeInfoList.push(M)-1);T.parentNode&&W++}};
Z._parseTemplateNestedTemplate=function(N,S,u){S=this._parseTemplate(N,S);(S.content=N.content.ownerDocument.createDocumentFragment()).appendChild(N.content);u.templateInfo=S;return!0};
Z._parseTemplateNodeAttributes=function(N,S,u){for(var T=!1,W=Array.from(N.attributes),V=W.length-1,M;M=W[V];V--)T=this._parseTemplateNodeAttribute(N,S,u,M.name,M.value)||T;return T};
Z._parseTemplateNodeAttribute=function(N,S,u,T,W){return T.slice(0,3)==="on-"?(N.removeAttribute(T),u.events=u.events||[],u.events.push({name:T.slice(3),value:W}),!0):T==="id"?(u.id=W,!0):!1};
Z._contentForTemplate=function(N){var S=N._templateInfo;return S&&S.content||N.content};
Z.prototype._stampTemplate=function(N,S){N&&!N.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(N);S=S||this.constructor._parseTemplate(N);var u=S.nodeInfoList;N=document.importNode(S.content||N.content,!0);N.__noInsertionPoint=!S.hasInsertionPoint;var T=N.nodeList=Array(u.length);N.$={};for(var W=0,V=u.length,M=void 0;W<V&&(M=u[W]);W++){var G=T[W]=noP(N,M);M.id&&(N.$[M.id]=G);var D=G,l=M,v=S;l.templateInfo&&(D._templateInfo=l.templateInfo,D._parentTemplateInfo=
v);if(M.events&&M.events.length)for(D=0,l=M.events,v=void 0;D<l.length&&(v=l[D]);D++)this._addMethodEventListenerToNode(G,v.name,v.value,this)}return N};
Z.prototype._addMethodEventListenerToNode=function(N,S,u,T){u=K4x(T||N,u);this._addEventListenerToNode(N,S,u);return u};
Z.prototype._addEventListenerToNode=function(N,S,u){N.addEventListener(S,u)};
Z.prototype._removeEventListenerFromNode=function(N,S,u){N.removeEventListener(S,u)};
return Z});var eS=0,h2=[],fUV={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},kXl=/[A-Z]/,yJM=function(L,Z,N,S,u){var T=u?kb(L):L;if(Z=Z[T])for(T=0;T<Z.length;T++){var W=Z[T];if(W.info.lastRun!==eS&&(!u||Yi_(L,W.trigger))){W.info.lastRun=eS;W=W.info;for(var V=N,M=S,G=0,D=V.length-1,l=-1;G<=D;){var v=G+D>>1,R=M.get(V[v].methodInfo)-M.get(W.methodInfo);if(R<0)G=v+1;else if(R>0)D=v-1;else{l=v;break}}l<
0&&(l=D+1);V.splice(l,0,W)}}},rZw=[],wht=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"),uO=SR(function(L){var Z=KLl(vDN(L));
L=function(){var N=Z.call(this)||this;N.__isPropertyEffectsClient=!0;return N};
_.f(L,Z);L.prototype._initializeProperties=function(){Z.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};
L.prototype._registerHost=function(){if(iO.length){var N=iO[iO.length-1];N._enqueueClient(this);this.__dataHost=N}};
L.prototype._initializeProtoProperties=function(N){this.__data=Object.create(N);this.__dataPending=Object.create(N);this.__dataOld={}};
L.prototype._initializeInstanceProperties=function(N){var S=this.__readOnly,u;for(u in N)S&&S[u]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[u]=this.__dataPending[u]=N[u])};
L.prototype._addPropertyEffect=function(N,S,u){this._createPropertyAccessor(N,S=="__readOnly");var T=U31(this,S,!0)[N];T||(T=this[S][N]=[]);T.push(u)};
L.prototype._removePropertyEffect=function(N,S,u){N=U31(this,S,!0)[N];u=N.indexOf(u);u>=0&&N.splice(u,1)};
L.prototype._hasPropertyEffect=function(N,S){S=this[S];return!(!S||!S[N])};
L.prototype._hasReadOnlyEffect=function(N){return this._hasPropertyEffect(N,"__readOnly")};
L.prototype._hasNotifyEffect=function(N){return this._hasPropertyEffect(N,"__notifyEffects")};
L.prototype._hasReflectEffect=function(N){return this._hasPropertyEffect(N,"__reflectEffects")};
L.prototype._hasComputedEffect=function(N){return this._hasPropertyEffect(N,"__computeEffects")};
L.prototype._setPendingPropertyOrPath=function(N,S,u,T){if(T||kb(Array.isArray(N)?N[0]:N)!==N){if(!T&&(T=Yb(this,N),N=wtB(this,N,S),!N||!Z.prototype._shouldPropertyChange.call(this,N,S,T)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(N,S,u)){if(u=this.__dataLinkedPaths)for(var W in u)T=u[W],yb(W,N)?(T=wx(W,T,N),this._setPendingPropertyOrPath(T,S,!0,!0)):yb(T,N)&&(T=wx(T,W,N),this._setPendingPropertyOrPath(T,S,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[N])return this._setPendingProperty(N,
S,u);this[N]=S}return!1};
L.prototype._setUnmanagedPropertyToNode=function(N,S,u){if(u!==N[S]||typeof u=="object")S==="className"&&(N=(0,_.dx)(N)),N[S]=u};
L.prototype._setPendingProperty=function(N,S,u){var T=this.__dataHasPaths&&fo(N);if(this._shouldPropertyChange(N,S,(T?this.__dataTemp:this.__data)[N])){this.__dataPending||(this.__dataPending={},this.__dataOld={});N in this.__dataOld||(this.__dataOld[N]=this.__data[N]);T?this.__dataTemp[N]=S:this.__data[N]=S;this.__dataPending[N]=S;if(T||this.__notifyEffects&&this.__notifyEffects[N])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[N]=u;return!0}return!1};
L.prototype._setProperty=function(N,S){this._setPendingProperty(N,S,!0)&&this._invalidateProperties()};
L.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
L.prototype._enqueueClient=function(N){this.__dataPendingClients=this.__dataPendingClients||[];N!==this&&this.__dataPendingClients.push(N)};
L.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
L.prototype.__enableOrFlushClients=function(){var N=this.__dataPendingClients;if(N){this.__dataPendingClients=null;for(var S=0;S<N.length;S++){var u=N[S];u.__dataEnabled?u.__dataPending&&u._flushProperties():u._enableProperties()}}};
L.prototype._readyClients=function(){this.__enableOrFlushClients()};
L.prototype.setProperties=function(N,S){for(var u in N)!S&&this.__readOnly&&this.__readOnly[u]||this._setPendingPropertyOrPath(u,N[u],!0);this._invalidateProperties()};
L.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
L.prototype._propertiesChanged=function(N,S,u){N=this.__dataHasPaths;this.__dataHasPaths=!1;var T;if(T=this.__computeEffects)if(NDM){eS++;var W=sLB(this),V=[],M;for(M in S)yJM(M,T,V,W,N);for(;M=V.shift();)EoL(this,"",S,u,M)&&yJM(M.methodInfo,T,V,W,N);Object.assign(u,this.__dataOld);Object.assign(S,this.__dataPending);this.__dataPending=null}else for(W=S;I6(this,T,W,u,N);)Object.assign(u,this.__dataOld),Object.assign(S,this.__dataPending),W=this.__dataPending,this.__dataPending=null;T=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(S,u,N);this._flushClients();I6(this,this.__reflectEffects,S,u,N);I6(this,this.__observeEffects,S,u,N);if(T){W=this.__notifyEffects;V=eS++;for(var G in T)if(T[G]){if(M=W){var D=W;M=V;var l=G,v=S,R=u,K=N,U=!1,d=K?kb(l):l;if(D=D[d]){d=0;for(var h=D.length,E=void 0;d<h&&(E=D[d]);d++)E.info&&E.info.lastRun===M||K&&!Yi_(l,E.trigger)||(E.info&&(E.info.lastRun=M),E.fn(this,l,v,R,E.info,K,void 0),U=!0)}M=U}if(M)var A=!0;else{if(M=N)M=G,l=S,v=kb(M),v!==
M?(v=Ko(v)+"-changed",I2s(this,v,l[M],M),M=!0):M=!1;M&&(A=!0)}}var J;A&&(J=this.__dataHost)&&J._invalidateProperties&&J._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
L.prototype._propagatePropertyChanges=function(N,S,u){this.__propagateEffects&&I6(this,this.__propagateEffects,N,S,u);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,N,S,u)};
L.prototype._runEffectsForTemplate=function(N,S,u,T){var W=this,V=function(M,G){I6(W,N.propertyEffects,M,u,G,N.nodeList);for(var D=N.firstChild;D;D=D.nextSibling)W._runEffectsForTemplate(D,M,u,G)};
N.runEffects?N.runEffects(V,S,T):V(S,T)};
L.prototype.linkPaths=function(N,S){N=UV(N);S=UV(S);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[N]=S};
L.prototype.unlinkPaths=function(N){N=UV(N);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[N]};
L.prototype.notifySplices=function(N,S){var u={path:""};N=Yb(this,N,u);Hmh(this,N,u.path,S)};
L.prototype.get=function(N,S){return Yb(S||this,N)};
L.prototype.set=function(N,S,u){u?wtB(u,N,S):this.__readOnly&&this.__readOnly[N]||this._setPendingPropertyOrPath(N,S,!0)&&this._invalidateProperties()};
L.prototype.push=function(N){var S=_.CG.apply(1,arguments),u={path:""},T=Yb(this,N,u),W=T.length,V=T.push.apply(T,_.Pd(S));S.length&&jS(this,T,u.path,W,S.length,[]);return V};
L.prototype.pop=function(N){var S={path:""};N=Yb(this,N,S);var u=!!N.length,T=N.pop();u&&jS(this,N,S.path,N.length,0,[T]);return T};
L.prototype.splice=function(N,S,u){var T=_.CG.apply(3,arguments),W={path:""},V=Yb(this,N,W);S<0?S=V.length-Math.floor(-S):S&&(S=Math.floor(S));var M=arguments.length===2?V.splice(S):V.splice.apply(V,[S,u].concat(_.Pd(T)));(T.length||M.length)&&jS(this,V,W.path,S,T.length,M);return M};
L.prototype.shift=function(N){var S={path:""};N=Yb(this,N,S);var u=!!N.length,T=N.shift();u&&jS(this,N,S.path,0,0,[T]);return T};
L.prototype.unshift=function(N){var S=_.CG.apply(1,arguments),u={path:""},T=Yb(this,N,u),W=T.unshift.apply(T,_.Pd(S));S.length&&jS(this,T,u.path,0,S.length,[]);return W};
L.prototype.notifyPath=function(N,S){if(arguments.length==1){var u={path:""};S=Yb(this,N,u);u=u.path}else u=Array.isArray(N)?UV(N):N;this._setPendingPropertyOrPath(u,S,!0,!0)&&this._invalidateProperties()};
L.prototype._createReadOnlyProperty=function(N,S){this._addPropertyEffect(N,"__readOnly");S&&(this["_set"+(N[0].toUpperCase()+N.substring(1))]=function(u){this._setProperty(N,u)})};
L.prototype._createPropertyObserver=function(N,S,u){var T={property:N,method:S,dynamicFn:!!u};this._addPropertyEffect(N,"__observeEffects",{fn:eUf,info:T,trigger:{name:N}});u&&this._addPropertyEffect(S,"__observeEffects",{fn:eUf,info:T,trigger:{name:S}})};
L.prototype._createMethodObserver=function(N,S){var u=Xtf(N);if(!u)throw Error("Fd`"+N);JZP(this,u,"__observeEffects",jL_,null,S)};
L.prototype._createNotifyingProperty=function(N){this._addPropertyEffect(N,"__notifyEffects",{fn:d3_,info:{eventName:Ko(N)+"-changed",property:N}})};
L.prototype._createReflectedProperty=function(N){var S=this.constructor.attributeNameForProperty(N);S[0]==="-"?console.warn("Property "+N+" cannot be reflected to attribute "+S+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(N,"__reflectEffects",{fn:a2t,info:{attrName:S}})};
L.prototype._createComputedProperty=function(N,S,u){var T=Xtf(S);if(!T)throw Error("Gd`"+S);S=JZP(this,T,"__computeEffects",EoL,N,u);U31(this,"__computeInfo")[N]=S};
L.prototype._marshalArgs=function(N,S,u){for(var T=this.__data,W=[],V=0,M=N.length;V<M;V++){var G=N[V],D=G.name,l=G.structured,v=G.wildcard,R=G.value;G.literal||(v?(G=yb(D,S),l=AZs(T,u,G?S:D),R={path:G?S:D,value:l,base:G?Yb(T,D):l}):R=l?AZs(T,u,D):T[D]);if(sV&&!this._overrideLegacyUndefined&&R===void 0&&N.length>1)return h2;W[V]=R}return W};
L.addPropertyEffect=function(N,S,u){this.prototype._addPropertyEffect(N,S,u)};
L.createPropertyObserver=function(N,S,u){this.prototype._createPropertyObserver(N,S,u)};
L.createMethodObserver=function(N,S){this.prototype._createMethodObserver(N,S)};
L.createNotifyingProperty=function(N){this.prototype._createNotifyingProperty(N)};
L.createReadOnlyProperty=function(N,S){this.prototype._createReadOnlyProperty(N,S)};
L.createReflectedProperty=function(N){this.prototype._createReflectedProperty(N)};
L.createComputedProperty=function(N,S,u){this.prototype._createComputedProperty(N,S,u)};
L.bindTemplate=function(N){return this.prototype._bindTemplate(N)};
L.prototype._bindTemplate=function(N,S){var u=this.constructor._parseTemplate(N),T=this.__preBoundTemplateInfo==u;if(!T)for(var W in u.propertyEffects)this._createPropertyAccessor(W);S?(u=Object.create(u),u.wasPreBound=T,this.__templateInfo?(N=N._parentTemplateInfo||this.__templateInfo,S=N.lastChild,u.parent=N,N.lastChild=u,(u.previousSibling=S)?S.nextSibling=u:N.firstChild=u):this.__templateInfo=u):this.__preBoundTemplateInfo=u;return u};
L._addTemplatePropertyEffect=function(N,S,u){(N.hostProps=N.hostProps||{})[S]=!0;N=N.propertyEffects=N.propertyEffects||{};(N[S]=N[S]||[]).push(u)};
L.prototype._stampTemplate=function(N,S){S=S||this._bindTemplate(N,!0);iO.push(this);N=Z.prototype._stampTemplate.call(this,N,S);iO.pop();S.nodeList=N.nodeList;if(!S.wasPreBound)for(var u=S.childNodes=[],T=N.firstChild;T;T=T.nextSibling)u.push(T);N.templateInfo=S;u=S.nodeList;T=S.nodeInfoList;if(T.length)for(var W=0;W<T.length;W++){var V=u[W],M=T[W].bindings;if(M)for(var G=0;G<M.length;G++){var D=M[G],l=V,v=D;if(v.isCompound){for(var R=l.__dataCompoundStorage||(l.__dataCompoundStorage={}),K=v.parts,
U=Array(K.length),d=0;d<K.length;d++)U[d]=K[d].literal;K=v.target;R[K]=U;v.literal&&v.kind=="property"&&(K==="className"&&(l=(0,_.dx)(l)),l[K]=v.literal)}m3G(V,this,D)}V.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(S,this.__data,null,!1),this._flushClients());return N};
L.prototype._removeBoundDom=function(N){N=N.templateInfo;var S=N.previousSibling,u=N.nextSibling,T=N.parent;S?S.nextSibling=u:T&&(T.firstChild=u);u?u.previousSibling=S:T&&(T.lastChild=S);N.nextSibling=N.previousSibling=null;N=N.childNodes;for(S=0;S<N.length;S++)u=N[S],(0,_.dx)((0,_.dx)(u).parentNode).removeChild(u)};
L._parseTemplateNode=function(N,S,u){var T=Z._parseTemplateNode.call(this,N,S,u);if(N.nodeType===Node.TEXT_NODE){var W=this._parseBindings(N.textContent,S);W&&(N.textContent=CFs(W)||" ",zUw(this,S,u,"text","textContent",W),T=!0)}return T};
L._parseTemplateNodeAttribute=function(N,S,u,T,W){var V=this._parseBindings(W,S);if(V){W=T;var M="property";kXl.test(T)?M="attribute":T[T.length-1]=="$"&&(T=T.slice(0,-1),M="attribute");var G=CFs(V);G&&M=="attribute"&&(T=="class"&&N.hasAttribute("class")&&(G+=" "+N.getAttribute(T)),N.setAttribute(T,G));M=="attribute"&&W=="disable-upgrade$"&&N.setAttribute(T,"");N.localName==="input"&&W==="value"&&N.setAttribute(W,"");N.removeAttribute(W);M==="property"&&(T=no(T));zUw(this,S,u,M,T,V,G);return!0}return Z._parseTemplateNodeAttribute.call(this,
N,S,u,T,W)};
L._parseTemplateNestedTemplate=function(N,S,u){var T=Z._parseTemplateNestedTemplate.call(this,N,S,u),W=N.parentNode,V=u.templateInfo,M=W.localName==="dom-if",G=W.localName==="dom-repeat";xF&&(M||G)&&(W.removeChild(N),u=u.parentInfo,u.templateInfo=V,u.noted=!0,T=!1);N=V.hostProps;if(qX&&M)N&&(S.hostProps=Object.assign(S.hostProps||{},N),xF||(u.parentInfo.noted=!0));else for(var D in N)zUw(this,S,u,"property","_host_"+D,[{mode:"{",source:D,dependencies:[D],hostProp:!0}]);return T};
L._parseBindings=function(N,S){for(var u=[],T=0,W;(W=wht.exec(N))!==null;){W.index>T&&u.push({literal:N.slice(T,W.index)});T=W[1][0];var V=!!W[2];W=W[3].trim();var M=!1,G="",D=-1;T=="{"&&(D=W.indexOf("::"))>0&&(G=W.substring(D+2),W=W.substring(0,D),M=!0);D=Xtf(W);var l=[];if(D){var v=D,R=v.args;v=v.methodName;for(var K=0;K<R.length;K++){var U=R[K];U.literal||l.push(U)}if((R=S.dynamicFns)&&R[v]||D.static)l.push(v),D.dynamicFn=!0}else l.push(W);u.push({source:W,mode:T,negate:V,customEvent:M,signature:D,
dependencies:l,event:G});T=wht.lastIndex}T&&T<N.length&&(N=N.substring(T))&&u.push({literal:N});return u.length?u:null};
L._evaluateBinding=function(N,S,u,T,W,V){N=S.signature?jL_(N,u,T,W,S.signature):u!=S.source?Yb(N,S.source):V&&fo(u)?Yb(N,u):N.__data[u];S.negate&&(N=!N);return N};
_.gd.Object.defineProperties(L.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return fUV}}});
return L}),iO=[];var UdO=window.ShadyCSS&&window.ShadyCSS.cssBuild,Tb=SR(function(L){function Z(S,u,T,W){if(!UdO){for(var V=u.content.querySelectorAll("style"),M=LXP(u),G=ZM_(T),D=u.content.firstElementChild,l=0;l<G.length;l++){var v=G[l];v.textContent=S._processStyleText(v.textContent,W);u.content.insertBefore(v,D)}for(D=G=0;D<M.length;D++)l=M[D],v=V[G],v!==l?(l=l.cloneNode(!0),v.parentNode.insertBefore(l,v)):G++,l.textContent=S._processStyleText(l.textContent,W)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,
T);if(id0&&UdO&&xJV&&(u=u.content.querySelectorAll("style"))){var R="";Array.from(u).forEach(function(K){R+=K.textContent;K.parentNode.removeChild(K)});
S._styleSheet=new CSSStyleSheet;S._styleSheet.replaceSync(R)}}
var N=gDt(uO(L));L=function(){return N.call(this)||this};
_.f(L,N);L._finalizeClass=function(){N._finalizeClass.call(this);var S;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(S=this.__ownObservers)&&this.createObservers(S,this._properties);this._prepareTemplate()};
L._prepareTemplate=function(){var S=this.template;S&&(typeof S==="string"?(console.error("template getter must return HTMLTemplateElement"),S=null):q4||(S=S.cloneNode(!0)));this.prototype._template=S};
L.createProperties=function(S){for(var u in S){var T=this.prototype,W=u,V=S[u],M=S;V.computed&&(V.readOnly=!0);V.computed&&(T._hasReadOnlyEffect(W)?console.warn("Cannot redefine computed property '"+W+"'."):T._createComputedProperty(W,V.computed,M));V.readOnly&&!T._hasReadOnlyEffect(W)?T._createReadOnlyProperty(W,!V.computed):V.readOnly===!1&&T._hasReadOnlyEffect(W)&&console.warn("Cannot make readOnly property '"+W+"' non-readOnly.");V.reflectToAttribute&&!T._hasReflectEffect(W)?T._createReflectedProperty(W):
V.reflectToAttribute===!1&&T._hasReflectEffect(W)&&console.warn("Cannot make reflected property '"+W+"' non-reflected.");V.notify&&!T._hasNotifyEffect(W)?T._createNotifyingProperty(W):V.notify===!1&&T._hasNotifyEffect(W)&&console.warn("Cannot make notify property '"+W+"' non-notify.");V.observer&&T._createPropertyObserver(W,V.observer,M[V.observer]);T._addPropertyToAttributeMap(W)}};
L.createObservers=function(S,u){for(var T=this.prototype,W=0;W<S.length;W++)T._createMethodObserver(S[W],u)};
L.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);N.prototype._initializeProperties.call(this);this.rootPath=qxh;this.importPath=this.constructor.importPath;var S=this.constructor;if(!S.hasOwnProperty("__propertyDefaults")){S.__propertyDefaults=null;var u=S._properties,T;for(T in u){var W=u[T];"value"in W&&(S.__propertyDefaults=S.__propertyDefaults||{},S.__propertyDefaults[T]=W)}}if(S=S.__propertyDefaults)for(var V in S)u=S[V],
this._canApplyPropertyDefault(V)&&(u=typeof u.value=="function"?u.value.call(this):u.value,this._hasAccessor(V)?this._setPendingProperty(V,u,!0):this[V]=u)};
L.prototype._canApplyPropertyDefault=function(S){return!this.hasOwnProperty(S)};
L._processStyleText=function(S,u){return gow(S,u)};
L._finalizeTemplate=function(S){var u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;var T=this.importPath;T=T?_.R6(T):"";Z(this,u,S,T);this.prototype._bindTemplate(u)}};
L.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);N.prototype.connectedCallback.call(this)};
L.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);N.prototype.ready.call(this)};
L.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));N.prototype._readyClients.call(this)};
L.prototype._attachDom=function(S){var u=(0,_.dx)(this);if(u.attachShadow)return S?(u.shadowRoot||(u.attachShadow({mode:"open",shadyUpgradeFragment:S}),u.shadowRoot.appendChild(S),this.constructor._styleSheet&&(u.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Zd5&&window.ShadyDOM&&window.ShadyDOM.flushInitial(u.shadowRoot),u.shadowRoot):null;throw Error("Id");};
L.prototype.updateStyles=function(S){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,S)};
L.prototype.resolveUrl=function(S,u){!u&&this.importPath&&(u=_.R6(this.importPath));return _.R6(S,u)};
L._parseTemplateContent=function(S,u,T){u.dynamicFns=u.dynamicFns||this._properties;return N._parseTemplateContent.call(this,S,u,T)};
L._addTemplatePropertyEffect=function(S,u,T){!Sj||u in this._properties||T.info.part.signature&&T.info.part.signature.static||T.info.part.hostProp||S.nestedTemplate||console.warn("Property '"+u+"' used in template but not declared in 'properties'; attribute will not be observed.");return N._addTemplatePropertyEffect.call(this,S,u,T)};
_.gd.Object.defineProperties(L,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var S=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof S==="function"&&(S=S());if(S===void 0){if(S=this.hasOwnProperty("is")){S=this.is;var u=null;if(S&&(!iN||LLL)&&(u=EV.import(S,"template"),iN&&!u))throw Error("Hd`"+S);S=u}S=S||Object.getPrototypeOf(this.prototype).constructor.template}this._template=S}return this._template},
set:function(S){this._template=S}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var S=this.importMeta;S?this._importPath=GnG(S.url):this._importPath=(S=EV.import(this.is))&&S.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return L});var YkM=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(L){return L}}),OM_=function(L,Z){edM(L,Z);
this.value=Z.reduce(function(N,S,u){return N+WXw(S)+L[u+1]},L[0]).toString()},edM;
OM_.prototype.toString=function(){return this.value};
_.IUY=function(L){var Z=_.CG.apply(1,arguments);edM(L,Z);var N=document.createElement("template");Z=Z.reduce(function(S,u,T){if(u instanceof HTMLTemplateElement)u=u.innerHTML;else if(u instanceof OM_)u=WXw(u);else throw Error("Kd`"+u);return S+u+L[T+1]},L[0]);
YkM&&(Z=YkM.createHTML(Z));N.innerHTML=Z;return N};
edM=function(L,Z){if(!Array.isArray(L)||!Array.isArray(L.raw)||Z.length!==L.length-1)throw new TypeError("Ld");};var tp=Tb(HTMLElement);var ddM=SR(function(L){var Z=Tb(L);L=function(){var N=Z.call(this)||this;N.__lastItems=null;N.__lastMulti=null;N.__selectedMap=null;return N};
_.f(L,Z);L.prototype.__updateSelection=function(N,S){var u=S.path;u=="items"?(S=S.base||[],u=this.__lastItems,N!==this.__lastMulti&&this.clearSelection(),u&&(u=tWG(S,u),this.__applySplices(u)),this.__lastItems=S,this.__lastMulti=N):S.path=="items.splices"?this.__applySplices(S.value.indexSplices):(N=u.slice(6),S=parseInt(N,10),N.indexOf(".")<0&&N==S&&this.__deselectChangedIdx(S))};
L.prototype.__applySplices=function(N){for(var S=this,u=this.__selectedMap,T={},W=0;W<N.length;T={s$jscomp$109:void 0},W++){T.s$jscomp$109=N[W];u.forEach(function(D){return function(l,v){l<D.s$jscomp$109.index||(l>=D.s$jscomp$109.index+D.s$jscomp$109.removed.length?u.set(v,l+D.s$jscomp$109.addedCount-D.s$jscomp$109.removed.length):u.set(v,-1))}}(T));
for(var V=0;V<T.s$jscomp$109.addedCount;V++){var M=T.s$jscomp$109.index+V;u.has(this.items[M])&&u.set(this.items[M],M)}}this.__updateLinks();var G=0;u.forEach(function(D,l){D<0?(S.multi?S.splice("selected",G,1):S.selected=S.selectedItem=null,u.delete(l)):G++})};
L.prototype.__updateLinks=function(){var N=this;this.__dataLinkedPaths={};if(this.multi){var S=0;this.__selectedMap.forEach(function(u){u>=0&&N.linkPaths("items."+u,"selected."+S++)})}else this.__selectedMap.forEach(function(u){N.linkPaths("selected","items."+u);
N.linkPaths("selectedItem","items."+u)})};
L.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
L.prototype.isSelected=function(N){return this.__selectedMap.has(N)};
L.prototype.isIndexSelected=function(N){return this.isSelected(this.items[N])};
L.prototype.__deselectChangedIdx=function(N){var S=this,u=this.__selectedIndexForItemIndex(N);if(u>=0){var T=0;this.__selectedMap.forEach(function(W,V){u==T++&&S.deselect(V)})}};
L.prototype.__selectedIndexForItemIndex=function(N){if(N=this.__dataLinkedPaths["items."+N])return parseInt(N.slice(9),10)};
L.prototype.deselect=function(N){var S=this.__selectedMap.get(N);if(S>=0){this.__selectedMap.delete(N);var u;this.multi&&(u=this.__selectedIndexForItemIndex(S));this.__updateLinks();this.multi?this.splice("selected",u,1):this.selected=this.selectedItem=null}};
L.prototype.deselectIndex=function(N){this.deselect(this.items[N])};
L.prototype.select=function(N){this.selectIndex(this.items.indexOf(N))};
L.prototype.selectIndex=function(N){var S=this.items[N];this.isSelected(S)?this.toggle&&this.deselectIndex(N):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(S,N),this.__updateLinks(),this.multi?this.push("selected",S):this.selected=this.selectedItem=S)};
_.gd.Object.defineProperties(L,{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 L}),aUQ=ddM(tp),Oe=function(){return aUQ.apply(this,arguments)||this};
_.f(Oe,aUQ);_.gd.Object.defineProperties(Oe,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Oe.is,Oe);var hdN=window.Polymer;window.Polymer=function(L){return window.Polymer._polymerFn(L)};
hdN&&Object.assign(Polymer,hdN);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:gow,resolveUrl:_.R6,pathFromUrl:GnG};Polymer.DomModule=EV;Polymer.Async={timeOut:_.N9,animationFrame:_.FZ,idlePeriod:WL5,microTask:A2};Polymer.dedupingMixin=SR;Polymer.wrap=_.dx;Polymer.PropertiesChanged=bdq;Polymer.telemetry={instanceCount:MAQ,incrementInstanceCount:function(){MAQ++},
registrations:l2_,register:vo_,dumpRegistrations:function(){l2_.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=gDt;Polymer.CaseMap={dashToCamelCase:no,camelToDashCase:Ko};Polymer.PropertyAccessors=vDN;Polymer.TemplateStamp=KLl;Polymer.Path={isPath:fo,root:kb,isAncestor:f2_,isDescendant:yb,translate:wx,matches:knP,normalize:UV,split:yZw,get:Yb,set:wtB,isDeep:fo};Polymer.Settings={useShadow:LH,useNativeCSSProperties:QsM,useNativeCustomElements:XqL,get rootPath(){return qxh},setRootPath:function(L){qxh=L},
get sanitizeDOMValue(){return a6},setSanitizeDOMValue:function(L){a6=L},
get passiveTouchGestures(){return c9A},setPassiveTouchGestures:function(L){c9A=L},
get strictTemplatePolicy(){return iN},setStrictTemplatePolicy:function(L){iN=L},
get allowTemplateFromDomModule(){return LLL},setAllowTemplateFromDomModule:function(L){LLL=L},
get legacyOptimizations(){return q4},setLegacyOptimizations:function(L){q4=L},
get syncInitialRender(){return Zd5},setSyncInitialRender:function(L){Zd5=L},
get legacyUndefined(){return sV},setLegacyUndefined:function(L){sV=L},
get legacyWarnings(){return Sj},setLegacyWarnings:function(L){Sj=L},
get orderedComputed(){return NDM},setOrderedComputed:function(L){NDM=L},
get fastDomIf(){return qX},setFastDomIf:function(L){qX=L},
get removeNestedTemplates(){return xF},setRemoveNestedTemplates:function(L){xF=L},
get suppressTemplateNotifications(){return L6},setSuppressTemplateNotifications:L6};Polymer.rootPath!==void 0&&(qxh=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(a6=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(c9A=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(iN=Polymer.strictTemplatePolicy);LLL=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(q4=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(Zd5=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(sV=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Sj=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(NDM=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(qX=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(xF=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(L6=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return a6},
set:function(L){a6=L}});Polymer.PropertyEffects=uO;Polymer.StyleGather={stylesFromModules:qiH,stylesFromModule:x3B,stylesFromTemplate:LXP,stylesFromModuleImports:ZM_,cssFromModules:Sc1,cssFromModule:NcA,cssFromTemplate:iMH,cssFromModuleImports:function(L){return(L=EV.import(L))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(L):""}};Polymer.ElementMixin=Tb;Polymer.updateStyles=function(L){window.ShadyCSS&&window.ShadyCSS.styleDocument(L)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:tWG};Polymer.html=_.IUY;Polymer.htmlLiteral=function(L){return new OM_(L,_.CG.apply(1,arguments))};Polymer.Element=tp;Polymer.ArraySelectorMixin=ddM;Polymer.ArraySelector=Oe;var s_L=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,j_t=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,mQh=/@media\s(.*)/;var gMH=null,MWG=window.HTMLImports&&window.HTMLImports.whenReady||null,G1h;var EDq=null,WL=null,Vi=function(){this.customStyles=[];this.enqueued=!1;FXt(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},PAQ=function(L){!L.enqueued&&WL&&(L.enqueued=!0,FXt(WL))};
Vi.prototype.addCustomStyle=function(L){L.__seenByShadyCSS||(L.__seenByShadyCSS=!0,this.customStyles.push(L),PAQ(this))};
Vi.prototype.getStyleForCustomStyle=function(L){if(L.__shadyCSSCachedStyle)return L.__shadyCSSCachedStyle;var Z;L.getStyle?Z=L.getStyle():Z=L;return Z};
Vi.prototype.processStyles=function(){for(var L=this.customStyles,Z=0;Z<L.length;Z++){var N=L[Z];if(!N.__shadyCSSCachedStyle){var S=this.getStyleForCustomStyle(N);S&&(S=S.__appliedElement||S,EDq&&EDq(S),N.__shadyCSSCachedStyle=S)}}return L};
Vi.prototype.addCustomStyle=Vi.prototype.addCustomStyle;Vi.prototype.getStyleForCustomStyle=Vi.prototype.getStyleForCustomStyle;Vi.prototype.processStyles=Vi.prototype.processStyles;Object.defineProperties(Vi.prototype,{transformCallback:{get:function(){return EDq},
set:function(L){EDq=L}},
validateCallback:{get:function(){return WL},
set:function(L){var Z=!1;WL||(Z=!0);WL=L;Z&&PAQ(this)}}});var DH1=!(window.ShadyDOM&&window.ShadyDOM.inUse),$H1,M7;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(M7=window.ShadyCSS.cssBuild);var ph0=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?$H1=window.ShadyCSS.nativeCss:window.ShadyCSS?(lKP(window.ShadyCSS),window.ShadyCSS=void 0):lKP(window.WebComponents&&window.WebComponents.flags);var PyF=$H1;var zdt=new Vi;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(L,Z){zdt.processStyles();VWH(L,Z)},
styleElement:function(){zdt.processStyles()},
styleDocument:function(L){zdt.processStyles();VWH(document.body,L)},
getComputedStyleValue:function(L,Z){return bMP(L,Z)},
flushCustomStyles:function(){},
nativeCss:PyF,nativeShadow:DH1,cssBuild:M7,disableRuntime:ph0});window.ShadyCSS.CustomStyleInterface=zdt;var mdY=window.ShadyCSS.CustomStyleInterface,bO=function(){var L=HTMLElement.call(this)||this;L._style=null;mdY.addCustomStyle(L);return L};
_.f(bO,HTMLElement);bO.prototype.getStyle=function(){if(this._style)return this._style;var L=this.querySelector("style");if(!L)return null;this._style=L;var Z=L.getAttribute("include");Z&&(L.removeAttribute("include"),L.textContent=Sc1(Z)+L.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
bO.prototype.getStyle=bO.prototype.getStyle;window.customElements.define("custom-style",bO);Polymer.CustomStyle=bO;var M9=function(){this._timer=this._callback=this._asyncModule=null},gS,CAV;
M9.prototype.setConfig=function(L,Z){var N=this;this._asyncModule=L;this._callback=Z;this._timer=this._asyncModule.run(function(){N._timer=null;gS.delete(N);N._callback()})};
M9.prototype.cancel=function(){this.isActive()&&(JJN(this),gS.delete(this))};
var JJN=function(L){L.isActive()&&(L._asyncModule.cancel(L._timer),L._timer=null)};
M9.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
M9.prototype.isActive=function(){return this._timer!=null};
_.Gb=function(L,Z,N){L instanceof M9?JJN(L):L=new M9;L.setConfig(Z,N);return L};
gS=new Set;_.FO=function(L){gS.add(L)};
CAV=function(){var L=!!gS.size;gS.forEach(function(Z){try{Z.flush()}catch(N){setTimeout(function(){throw N;})}});
return L};var oMw=typeof document.head.style.touchAction==="string",vMh=["mousedown","mousemove","mouseup","click"],UHA=[0,1,4,2],rJV;try{rJV=(new MouseEvent("test",{buttons:1})).buttons===1}catch(L){rJV=!1}var wVs=rJV,Rx_=!1;(function(){try{var L=Object.defineProperty({},"passive",{get:function(){Rx_=!0}});
window.addEventListener("test",null,L);window.removeEventListener("test",null,L)}catch(Z){}})();
var KXs=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),fKL=[],Q_N={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},zxh={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},k1x=function(L){var Z=L.sourceCapabilities;if(!Z||Z.firesTouchEvents)if(L.__polymerGesturesHandled={skip:!0},L.type==="click"){Z=!1;for(var N=dH_(L),S=0;S<N.length;S++){if(N[S].nodeType===Node.ELEMENT_NODE)if(N[S].localName==="label")fKL.push(N[S]);
else if(Q_N[N[S].localName]){var u=N[S];var T=Array.prototype.slice.call(u.labels||[]);if(!T.length){T=[];try{var W=u.getRootNode();if(u.id){var V=W.querySelectorAll("label[for = '"+u.id+"']");for(u=0;u<V.length;u++)T.push(V[u])}}catch(M){}}for(u=0;u<T.length;u++)Z=Z||fKL.indexOf(T[u])>-1}if(N[S]===XhM)return}Z||(L.preventDefault(),L.stopPropagation())}},XhM=null,$U=null,hxG=0,sjh=0,aKf=-1,jjH=!1;
document.addEventListener("touchend",function(L){$U||y91(!0);XhM=dH_(L)[0];$U=_.Gb($U,_.N9.after(2500),function(){y91();$U=XhM=null})},Rx_?{passive:!0}:!1);
var dH_=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(L){return L.composedPath&&L.composedPath()||[]},Co={},md=[];
EMA({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){zD(this.info)},
mousedown:function(L){if(po(L)){var Z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L),N=this;exH(this.info,function(S){po(S)||(xb("up",Z,S),zD(N.info))},function(S){po(S)&&xb("up",Z,S);
zD(N.info)});
xb("down",Z,L)}},
touchstart:function(L){xb("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L),L.changedTouches[0],L)},
touchend:function(L){xb("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L),L.changedTouches[0],L)}});
EMA({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(L){this.moves.length>2&&this.moves.shift();this.moves.push(L)},
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;zD(this.info)},
mousedown:function(L){if(po(L)){var Z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L),N=this,S=function(u){var T=u.clientX,W=u.clientY;Pmf(N.info,T,W)&&(N.info.state=N.info.started?u.type==="mouseup"?"end":"track":"start",N.info.state==="start"&&J2("tap"),N.info.addMove({x:T,y:W}),po(u)||(N.info.state="end",zD(N.info)),Z&&pVA(N.info,Z,u),N.info.started=!0)};
exH(this.info,S,function(u){N.info.started&&S(u);zD(N.info)});
this.info.x=L.clientX;this.info.y=L.clientY}},
touchstart:function(L){L=L.changedTouches[0];this.info.x=L.clientX;this.info.y=L.clientY},
touchmove:function(L){var Z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L);L=L.changedTouches[0];var N=L.clientX,S=L.clientY;Pmf(this.info,N,S)&&(this.info.state==="start"&&J2("tap"),this.info.addMove({x:N,y:S}),pVA(this.info,Z,L),this.info.state="track",this.info.started=!0)},
touchend:function(L){var Z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L);L=L.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:L.clientX,y:L.clientY}),pVA(this.info,Z,L))}});
EMA({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(L){po(L)&&(this.info.x=L.clientX,this.info.y=L.clientY)},
click:function(L){po(L)&&mH0(this.info,L)},
touchstart:function(L){L=L.changedTouches[0];this.info.x=L.clientX;this.info.y=L.clientY},
touchend:function(L){mH0(this.info,L.changedTouches[0],L)}});var AJs=SR(function(L){var Z=function(){return L.apply(this,arguments)||this};
_.f(Z,L);Z.prototype._addEventListenerToNode=function(N,S,u){rx(N,S,u)||L.prototype._addEventListenerToNode.call(this,N,S,u)};
Z.prototype._removeEventListenerFromNode=function(N,S,u){Qb(N,S,u)||L.prototype._removeEventListenerFromNode.call(this,N,S,u)};
return Z});var DX=SR(function(L){var Z=function(){return L.apply(this,arguments)||this};
_.f(Z,L);Z.prototype._shouldPropertyChange=function(N,S,u){return J9B(this,N,S,u,!0)};
return Z}),Hdt=SR(function(L){var Z=function(){return L.apply(this,arguments)||this};
_.f(Z,L);Z.prototype._shouldPropertyChange=function(N,S,u){return J9B(this,N,S,u,this.mutableData)};
_.gd.Object.defineProperties(Z,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return Z});
DX._mutablePropertyChange=J9B;var CmL=!1;var BDq=AJs(Hdt(uO(HTMLElement))),lO=function(){var L=BDq.call(this)||this;if(iN)throw Error("Nd");L.root=null;L.$=null;L.__children=null;return L};
_.f(lO,BDq);_.t=lO.prototype;_.t.attributeChangedCallback=function(){this.mutableData=!0};
_.t.connectedCallback=function(){r9h()||(this.style.display="none");this.render()};
_.t.disconnectedCallback=function(){this.__removeChildren()};
_.t.__insertChildren=function(){(0,_.dx)((0,_.dx)(this).parentNode).insertBefore(this.root,this)};
_.t.__removeChildren=function(){if(this.__children)for(var L=0;L<this.__children.length;L++)this.root.appendChild(this.__children[L])};
_.t.render=function(){var L=this;if(!this.__children){var Z=Z||this.querySelector("template");if(!Z){var N=new MutationObserver(function(){if(Z=L.querySelector("template"))N.disconnect(),L.render();else throw Error("Od");});
N.observe(this,{childList:!0});return}this.root=this._stampTemplate(Z);this.$=this.root.$;this.__children=[];for(var S=this.root.firstChild;S;S=S.nextSibling)this.__children[this.__children.length]=S;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.gd.Object.defineProperties(lO,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",lO);Polymer.Debouncer=M9;Polymer.Gestures={gestures:Co,recognizers:md,deepTargetFind:IKt,addListener:rx,removeListener:Qb,register:EMA,setTouchAction:_.Xl,prevent:J2,resetMouseCanceller:function(){$U&&$U.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:rx,remove:Qb};Polymer.GestureEventListeners=AJs;Polymer.MutableData=DX;Polymer.OptionalMutableData=Hdt;Polymer.DomBind=lO;_.vL=function(){do{var L=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var Z=CAV()}while(L||Z)};var Qjs=null;XV0.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:XV0,writable:!0}});var NKH=uO(XV0),Z5F=DX(NKH),xdh=uO(function(){}),Zf=function(L){var Z=xdh.call(this)||this;
Z._configureProperties(L);Z.root=Z._stampTemplate(Z.__dataHost);var N=[];Z.children=N;for(var S=Z.root.firstChild;S;S=S.nextSibling)N.push(S),S.__templatizeInstance=Z;Z.__templatizeOwner&&Z.__templatizeOwner.__hideTemplateChildren__&&Z._showHideChildren(!0);N=Z.__templatizeOptions;(L&&N.instanceProps||!N.instanceProps)&&Z._enableProperties();return Z};
_.f(Zf,xdh);_.t=Zf.prototype;_.t._configureProperties=function(L){if(this.__templatizeOptions.forwardHostProp)for(var Z in this.__hostProps)this._setPendingProperty(Z,this.__dataHost["_host_"+Z]);for(var N in L)this._setPendingProperty(N,L[N])};
_.t.forwardHostProp=function(L,Z){this._setPendingPropertyOrPath(L,Z,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.t._addEventListenerToNode=function(L,Z,N){var S=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(L,Z,function(T){T.model=S;N(T)});
else{var u=this.__dataHost.__dataHost;u&&u._addEventListenerToNode(L,Z,N)}};
_.t._showHideChildren=function(L){HM1(L,this.children)};
_.t._setUnmanagedPropertyToNode=function(L,Z,N){L.__hideTemplateChildren__&&L.nodeType==Node.TEXT_NODE&&Z=="textContent"?L.__polymerTextContent__=N:xdh.prototype._setUnmanagedPropertyToNode.call(this,L,Z,N)};
_.t.dispatchEvent=function(){return!0};
_.gd.Object.defineProperties(Zf.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var L=this.__parentModel;if(!L){var Z;L=this;do L=L.__dataHost.__dataHost;while((Z=L.__templatizeOptions)&&!Z.parentModel);this.__parentModel=L}return L}}});
var xHA=DX(Zf);var o1=function(){var L=tp.call(this)||this;L.__renderDebouncer=null;L._lastIf=!1;L.__hideTemplateChildren__=!1;return L};
_.f(o1,tp);_.t=o1.prototype;_.t.__debounceRender=function(){var L=this;this.__renderDebouncer=_.Gb(this.__renderDebouncer,A2,function(){return L.__render()});
_.FO(this.__renderDebouncer)};
_.t.disconnectedCallback=function(){tp.prototype.disconnectedCallback.call(this);var L=(0,_.dx)(this).parentNode;L&&(L.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.dx)(L).host)||this.__teardownInstance()};
_.t.connectedCallback=function(){tp.prototype.connectedCallback.call(this);r9h()||(this.style.display="none");this.if&&this.__debounceRender()};
_.t.__ensureTemplate=function(){var L=this;if(!this.__template){var Z=this._templateInfo?this:(0,_.dx)(this).querySelector("template");if(!Z){var N=new MutationObserver(function(){if((0,_.dx)(L).querySelector("template"))N.disconnect(),L.__render();else throw Error("Rd");});
N.observe(this,{childList:!0});return!1}this.__template=Z}return!0};
_.t.__ensureInstance=function(){var L=(0,_.dx)(this).parentNode;if(this.__hasInstance()){var Z=this.__getInstanceNodes();if(Z&&Z.length&&(0,_.dx)(this).previousSibling!==Z[Z.length-1])for(var N=0,S=void 0;N<Z.length&&(S=Z[N]);N++)(0,_.dx)(L).insertBefore(S,this)}else{if(!L||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(L)}return!0};
_.t.render=function(){_.vL()};
_.t.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();L6&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.t.__hasInstance=function(){};
_.t.__getInstanceNodes=function(){};
_.t.__createAndInsertInstance=function(){};
_.t.__teardownInstance=function(){};
_.t._showHideChildren=function(){};
_.gd.Object.defineProperties(o1,{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:o1.prototype.__debounceRender},restamp:{type:Boolean,observer:o1.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var qk5=function(){var L=o1.call(this)||this;L.__instance=null;L.__syncInfo=null;return L};
_.f(qk5,o1);_.t=qk5.prototype;_.t.__hasInstance=function(){return!!this.__instance};
_.t.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.t.__createAndInsertInstance=function(L){var Z=this,N=this.__dataHost||this;if(iN&&!this.__dataHost)throw Error("Pd");var S=N._bindTemplate(this.__template,!0);S.runEffects=function(u,T,W){var V=Z.__syncInfo;if(Z.if)V&&(Z.__syncInfo=null,Z._showHideChildren(),T=Object.assign(V.changedProps,T)),u(T,W);else if(Z.__instance)if(V||(V=Z.__syncInfo={runEffects:u,changedProps:{}}),W)for(var M in T)u=kb(M),V.changedProps[u]=Z.__dataHost[u];else Object.assign(V.changedProps,T)};
this.__instance=N._stampTemplate(this.__template,S);(0,_.dx)(L).insertBefore(this.__instance,this)};
_.t.__syncHostProperties=function(){var L=this.__syncInfo;L&&(this.__syncInfo=null,L.runEffects(L.changedProps,!1))};
_.t.__teardownInstance=function(){var L=this.__dataHost||this;this.__instance&&(L._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.t._showHideChildren=function(){var L=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==L&&(this.__instance.__hidden=L,HM1(L,this.__instance.templateInfo.childNodes));L||this.__syncHostProperties()};
var LWL=function(){var L=o1.call(this)||this;L.__ctor=null;L.__instance=null;L.__invalidProps=null;return L};
_.f(LWL,o1);_.t=LWL.prototype;_.t.__hasInstance=function(){return!!this.__instance};
_.t.__getInstanceNodes=function(){return this.__instance.children};
_.t.__createAndInsertInstance=function(L){this.__ctor||(this.__ctor=N7(this.__template,this,{mutableData:!0,forwardHostProp:function(Z,N){this.__instance&&(this.if?this.__instance.forwardHostProp(Z,N):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[kb(Z)]=!0))}}));
this.__instance=new this.__ctor;(0,_.dx)(L).insertBefore(this.__instance.root,this)};
_.t.__teardownInstance=function(){if(this.__instance){var L=this.__instance.children;if(L&&L.length){var Z=(0,_.dx)(L[0]).parentNode;if(Z){Z=(0,_.dx)(Z);for(var N=0,S=void 0;N<L.length&&(S=L[N]);N++)Z.removeChild(S)}}this.__instance=this.__invalidProps=null}};
_.t.__syncHostProperties=function(){var L=this.__invalidProps;if(L){this.__invalidProps=null;for(var Z in L)this.__instance._setPendingProperty(Z,this.__dataHost[Z]);this.__instance._flushProperties()}};
_.t._showHideChildren=function(){var L=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==L&&(this.__instance.__hidden=L,this.__instance._showHideChildren(L));L||this.__syncHostProperties()};
_.vh=qX?qk5:LWL;customElements.define(_.vh.is,_.vh);Polymer.enqueueDebouncer=_.FO;Polymer.flush=_.vL;Polymer.Templatize={templatize:N7,modelForElement:O51};Polymer.TemplateInstanceBase=Zf;Polymer.DomIf=_.vh;var ZYO=Hdt(tp),lA=function(){var L=ZYO.call(this)||this;L.__instances=[];L.__renderDebouncer=null;L.__itemsIdxToInstIdx={};L.__chunkCount=null;L.__renderStartTime=null;L.__itemsArrayChanged=!1;L.__shouldMeasureChunk=!1;L.__shouldContinueChunking=!1;L.__chunkingId=0;L.__sortFn=null;L.__filterFn=null;L.__observePaths=null;L.__ctor=null;L.__isDetached=!0;L.template=null;return L};
_.f(lA,ZYO);_.t=lA.prototype;_.t.disconnectedCallback=function(){ZYO.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var L=0;L<this.__instances.length;L++)this.__detachInstance(L);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.t.connectedCallback=function(){ZYO.prototype.connectedCallback.call(this);r9h()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var L=(0,_.dx)((0,_.dx)(this).parentNode),Z=0;Z<this.__instances.length;Z++)this.__attachInstance(Z,L);this.__chunkingId&&this.__render()}};
_.t.__ensureTemplatized=function(){var L=this;if(!this.__ctor){var Z=this.template=this._templateInfo?this:this.querySelector("template");if(!Z){var N=new MutationObserver(function(){if(L.querySelector("template"))N.disconnect(),L.__render();else throw Error("Sd");});
N.observe(this,{childList:!0});return!1}var S={};S[this.as]=!0;S[this.indexAs]=!0;S[this.itemsIndexAs]=!0;this.__ctor=N7(Z,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:S,forwardHostProp:function(u,T){for(var W=this.__instances,V=0,M=void 0;V<W.length&&(M=W[V]);V++)M.forwardHostProp(u,T)},
notifyInstanceProp:function(u,T,W){knP(this.as,T)&&(u=u[this.itemsIndexAs],T==this.as&&(this.items[u]=W),T=wx(this.as,"items."+u,T),this.notifyPath(T,W))}})}return!0};
_.t.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.t.__functionFromPropertyValue=function(L){if(typeof L==="string"){var Z=this.__getMethodHost();return function(){return Z[L].apply(Z,arguments)}}return L};
_.t.__sortChanged=function(L){this.__sortFn=this.__functionFromPropertyValue(L);this.items&&this.__debounceRender(this.__render)};
_.t.__filterChanged=function(L){this.__filterFn=this.__functionFromPropertyValue(L);this.items&&this.__debounceRender(this.__render)};
_.t.__computeFrameTime=function(L){return Math.ceil(1E3/L)};
_.t.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.t.__handleObservedPaths=function(L){if(this.__sortFn||this.__filterFn)if(!L)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var Z=this.__observePaths,N=0;N<Z.length;N++)L.indexOf(Z[N])===0&&this.__debounceRender(this.__render,this.delay)};
_.t.__itemsChanged=function(L){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(L.path,L.value)||(L.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.t.__debounceRender=function(L,Z){Z=Z===void 0?0:Z;this.__renderDebouncer=_.Gb(this.__renderDebouncer,Z>0?_.N9.after(Z):A2,L.bind(this));_.FO(this.__renderDebouncer)};
_.t.render=function(){this.__debounceRender(this.__render);_.vL()};
_.t.__render=function(){var L=this;if(this.__ensureTemplatized()){var Z=this.items||[],N=this.__sortAndFilterItems(Z),S=this.__calculateLimit(N.length);this.__updateInstances(Z,S,N);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){L.__chunkingId=null;L.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);L6&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.t.__sortAndFilterItems=function(L){for(var Z=this,N=Array(L.length),S=0;S<L.length;S++)N[S]=S;this.__filterFn&&(N=N.filter(function(u,T,W){return Z.__filterFn(L[u],T,W)}));
this.__sortFn&&N.sort(function(u,T){return Z.__sortFn(L[u],L[T])});
return N};
_.t.__calculateLimit=function(L){var Z=L,N=this.__instances.length;if(this.initialCount){var S;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(Z=Math.min(L,this.initialCount),this.__chunkCount=(S=Math.max(Z-N,0))||1):(S=Math.min(Math.max(L-N,0),this.__chunkCount),Z=Math.min(N+S,L));this.__shouldMeasureChunk=S===this.__chunkCount;this.__shouldContinueChunking=Z<L;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return Z};
_.t.__continueChunking=function(){if(this.__shouldMeasureChunk){var L=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/L*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.t.__updateInstances=function(L,Z,N){var S=this.__itemsIdxToInstIdx={},u;for(u=0;u<Z;u++){var T=this.__instances[u],W=N[u],V=L[W];S[W]=u;T?(T._setPendingProperty(this.as,V),T._setPendingProperty(this.indexAs,u),T._setPendingProperty(this.itemsIndexAs,W),T._flushProperties()):this.__insertInstance(V,u,W)}for(L=this.__instances.length-1;L>=u;L--)this.__detachAndRemoveInstance(L)};
_.t.__detachInstance=function(L){L=this.__instances[L];for(var Z=(0,_.dx)(L.root),N=0;N<L.children.length;N++)Z.appendChild(L.children[N]);return L};
_.t.__attachInstance=function(L,Z){Z.insertBefore(this.__instances[L].root,this)};
_.t.__detachAndRemoveInstance=function(L){this.__detachInstance(L);this.__instances.splice(L,1)};
_.t.__stampInstance=function(L,Z,N){var S={};S[this.as]=L;S[this.indexAs]=Z;S[this.itemsIndexAs]=N;return new this.__ctor(S)};
_.t.__insertInstance=function(L,Z,N){L=this.__stampInstance(L,Z,N);N=(N=this.__instances[Z+1])?N.children[0]:this;(0,_.dx)((0,_.dx)(this).parentNode).insertBefore(L.root,N);return this.__instances[Z]=L};
_.t._showHideChildren=function(L){for(var Z=0;Z<this.__instances.length;Z++)this.__instances[Z]._showHideChildren(L)};
_.t.__handleItemPath=function(L,Z){var N=L.slice(6),S=N.indexOf(".");L=S<0?N:N.substring(0,S);if(L==parseInt(L,10)){N=S<0?"":N.substring(S+1);this.__handleObservedPaths(N);if(L=this.__instances[this.__itemsIdxToInstIdx[L]])L._setPendingPropertyOrPath(this.as+(N?"."+N:""),Z,!1,!0),L._flushProperties();return!0}};
_.t.itemForElement=function(L){return(L=this.modelForElement(L))&&L[this.as]};
_.t.indexForElement=function(L){return(L=this.modelForElement(L))&&L[this.indexAs]};
_.t.modelForElement=function(L){return O51(this.template,L)};
_.gd.Object.defineProperties(lA,{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:lA.prototype.__sortChanged},filter:{type:Function,observer:lA.prototype.__filterChanged},observe:{type:String,observer:lA.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!L6,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.*)"]}}});
lA.prototype._setRenderedItemCount=function(){};
customElements.define(lA.is,lA);Polymer.DomRepeat=lA;var N$Y=function(L,Z){var N=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=L;this.callback=Z;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){N._schedule()};
this.connect();this._schedule()},SR0=function(L){var Z=(0,_.dx)(L);
if(uN(L))return Z.assignedNodes({flatten:!0});L=[];for(var N=0;N<Z.childNodes.length;N++){var S=Z.childNodes[N];uN(S)?L.push.apply(L,_.Pd((0,_.dx)(S).assignedNodes({flatten:!0}))):L.push(S)}return L};
_.t=N$Y.prototype;_.t.connect=function(){var L=this;uN(this._target)?this._listenSlots([this._target]):(0,_.dx)(this._target).children&&(this._listenSlots((0,_.dx)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(Z){L._processMutations(Z)}):(this._nativeChildrenObserver=new MutationObserver(function(Z){L._processMutations(Z)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.t.disconnect=function(){uN(this._target)?this._unlistenSlots([this._target]):(0,_.dx)(this._target).children&&(this._unlistenSlots((0,_.dx)(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};
_.t._schedule=function(){var L=this;this._scheduled||(this._scheduled=!0,A2.run(function(){return L.flush()}))};
_.t._processMutations=function(L){this._processSlotMutations(L);this.flush()};
_.t._processSlotMutations=function(L){if(L)for(var Z=0;Z<L.length;Z++){var N=L[Z];N.addedNodes&&this._listenSlots(N.addedNodes);N.removedNodes&&this._unlistenSlots(N.removedNodes)}};
_.t.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 L={target:this._target,addedNodes:[],removedNodes:[]},Z=SR0(this._target),N=tWG(Z,this._effectiveNodes),S=0,u=void 0;S<N.length&&(u=N[S]);S++)for(var T=0,W=void 0;T<u.removed.length&&(W=u.removed[T]);T++)L.removedNodes.push(W);
S=0;for(u=void 0;S<N.length&&(u=N[S]);S++)for(T=u.index;T<u.index+u.addedCount;T++)L.addedNodes.push(Z[T]);this._effectiveNodes=Z;Z=!1;if(L.addedNodes.length||L.removedNodes.length)Z=!0,this.callback.call(this._target,L);return Z};
_.t._listenSlots=function(L){for(var Z=0;Z<L.length;Z++){var N=L[Z];uN(N)&&N.addEventListener("slotchange",this._boundSchedule)}};
_.t._unlistenSlots=function(L){for(var Z=0;Z<L.length;Z++){var N=L[Z];uN(N)&&N.removeEventListener("slotchange",this._boundSchedule)}};var R1=Element.prototype,iYl=R1.matches||R1.matchesSelector||R1.mozMatchesSelector||R1.msMatchesSelector||R1.oMatchesSelector||R1.webkitMatchesSelector,uZV=function(L,Z){return iYl.call(L,Z)},Tc=function(L){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(L);
this.node=L},WW5;
_.t=Tc.prototype;_.t.observeNodes=function(L){return new N$Y(this.node,L)};
_.t.unobserveNodes=function(L){L.disconnect()};
_.t.notifyObserver=function(){};
_.t.deepContains=function(L){if((0,_.dx)(this.node).contains(L))return!0;var Z=L;for(L=L.ownerDocument;Z&&Z!==L&&Z!==this.node;)Z=(0,_.dx)(Z).parentNode||(0,_.dx)(Z).host;return Z===this.node};
_.t.getOwnerRoot=function(){return(0,_.dx)(this.node).getRootNode()};
_.t.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.dx)(this.node).assignedNodes({flatten:!0}):[]};
_.t.getDestinationInsertionPoints=function(){for(var L=[],Z=(0,_.dx)(this.node).assignedSlot;Z;)L.push(Z),Z=(0,_.dx)(Z).assignedSlot;return L};
_.t.importNode=function(L,Z){return(0,_.dx)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(L,Z)};
_.t.getEffectiveChildNodes=function(){return SR0(this.node)};
_.t.queryDistributedElements=function(L){for(var Z=this.getEffectiveChildNodes(),N=[],S=0,u=Z.length,T=void 0;S<u&&(T=Z[S]);S++)T.nodeType===Node.ELEMENT_NODE&&uZV(T,L)&&N.push(T);return N};
_.gd.Object.defineProperties(Tc.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var L=this.node;return L._activeElement!==void 0?L._activeElement:L.activeElement}}});
var cL=function(L){this.event=L};
_.gd.Object.defineProperties(cL.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 T$V=Tc;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var tiM=window.ShadyDOM.Wrapper,OYq=function(){return tiM.apply(this,arguments)||this};
_.f(OYq,tiM);Object.getOwnPropertyNames(Tc.prototype).forEach(function(L){L!="activeElement"&&L!="constructor"&&(OYq.prototype[L]=Tc.prototype[L])});
Vd1(OYq.prototype,["classList"]);T$V=OYq;Object.defineProperties(cL.prototype,{localTarget:{get:function(){var L=this.event.currentTarget;L=L&&_.g0(L).getOwnerRoot();for(var Z=this.path,N=0;N<Z.length;N++){var S=Z[N];if(_.g0(S).getOwnerRoot()===L)return S}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else WaG(),Vd1(Tc.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),b51();WW5=T$V;_.g0=function(L){L=L||document;if(L instanceof T$V)return L;if(L instanceof cL)return L;var Z=L.__domApi;Z||(L instanceof Event?Z=new cL(L):Z=new T$V(L),L.__domApi=Z);return Z};var ViV=/:host\(:dir\((ltr|rtl)\)\)/g,bY5=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,MiI=/:dir\((?:ltr|rtl)\)/,gN5=!(!window.ShadyDOM||!window.ShadyDOM.inUse),OU=[],n6=null,tQ="",Gl0=SR(function(L){gN5||n6||(tQ=document.documentElement.getAttribute("dir"),n6=new MutationObserver(Md_),n6.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var Z=vDN(L);L=function(){var N=Z.call(this)||this;N.__autoDirOptOut=!1;return N};
_.f(L,Z);L._processStyleText=function(N,S){N=Z._processStyleText.call(this,N,S);!gN5&&MiI.test(N)&&(N=this._replaceDirInCssText(N),this.__activateDir=!0);return N};
L._replaceDirInCssText=function(N){N=N.replace(ViV,':host([dir="$1"])');return N=N.replace(bY5,':host([dir="$2"]) $1')};
L.prototype.ready=function(){Z.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
L.prototype.connectedCallback=function(){Z.prototype.connectedCallback&&Z.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(n6&&n6.takeRecords().length&&Md_(),OU.push(this),this.__autoDirOptOut||this.setAttribute("dir",tQ))};
L.prototype.disconnectedCallback=function(){Z.prototype.disconnectedCallback&&Z.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var N=OU.indexOf(this);N>-1&&OU.splice(N,1)}};
L.__activateDir=!1;return L});var FWl=function(L){for(;L;){var Z=Object.getOwnPropertyDescriptor(L,"observedAttributes");if(Z)return Z.get;L=Object.getPrototypeOf(L.prototype).constructor}return function(){return[]}};
SR(function(L){var Z=Tb(L),N=FWl(Z);L=function(){return Z.call(this)||this};
_.f(L,Z);L.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:Z.prototype._initializeProperties.call(this)};
L.prototype._enableProperties=function(){this.__isUpgradeDisabled||Z.prototype._enableProperties.call(this)};
L.prototype._canApplyPropertyDefault=function(S){return Z.prototype._canApplyPropertyDefault.call(this,S)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(S))};
L.prototype.attributeChangedCallback=function(S,u,T,W){S=="disable-upgrade"?this.__isUpgradeDisabled&&T==null&&(Z.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.dx)(this).isConnected&&Z.prototype.connectedCallback.call(this)):Z.prototype.attributeChangedCallback.call(this,S,u,T,W)};
L.prototype.connectedCallback=function(){this.__isUpgradeDisabled||Z.prototype.connectedCallback.call(this)};
L.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||Z.prototype.disconnectedCallback.call(this)};
_.gd.Object.defineProperties(L,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return N.call(this).concat("disable-upgrade")}}});
return L});var WX=!1,G5w=[],Ve=[];var lis=window.ShadyDOM,vTs=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",RHx):document.readyState==="interactive"||document.readyState==="complete"?RHx():window.addEventListener("DOMContentLoaded",RHx);var Kat=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=""},c5s=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,nTG=/@import[^;]*;/gim,YWF=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,eHw=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,IiB=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,dQs=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,wah=/^@[^\s]*keyframes/,
y51=/\s+/g;var aiA={};var jAh=Promise.resolve();var $gO=new Set;var DgO=/;\s*/m,lh5=/^\s*(initial)|(inherit)\s*$/,vN0=/\s*!important/,oNI=function(){this._map={}};
oNI.prototype.set=function(L,Z){L=L.trim();this._map[L]={properties:Z,dependants:{}}};
oNI.prototype.get=function(L){L=L.trim();return this._map[L]||null};
var REs=null,K6=function(){this._measureElement=this._currentElement=null;this._map=new oNI};
_.t=K6.prototype;_.t.detectMixin=function(L){L=j_t.test(L)||s_L.test(L);j_t.lastIndex=0;s_L.lastIndex=0;return L};
_.t.transformTemplate=function(L,Z){if(L._gatheredStyle===void 0){var N=[];for(var S=L.content.querySelectorAll("style"),u=0;u<S.length;u++){var T=S[u];if(T.hasAttribute("shady-unscoped")){if(!DH1){var W=T.textContent;if(!$gO.has(W)){$gO.add(W);var V=document.createElement("style");V.setAttribute("shady-unscoped","");V.textContent=W;document.head.appendChild(V)}T.parentNode.removeChild(T)}}else N.push(T.textContent),T.parentNode.removeChild(T)}(N=N.join("").trim())?(S=document.createElement("style"),
S.textContent=N,L.content.insertBefore(S,L.content.firstChild),N=S):N=null;L._gatheredStyle=N}return(L=L._gatheredStyle)?this.JSC$11274_transformStyle(L,Z):null};
_.t.JSC$11274_transformStyle=function(L,Z){Z=Z===void 0?"":Z;var N=zHx(L);this.transformRules(N,Z);L.textContent=paA(N);return N};
_.t.transformCustomStyle=function(L){var Z=this,N=zHx(L);J5B(N,function(S){S.selector===":root"&&(S.selector="html");Z.transformRule(S)});
L.textContent=paA(N);return N};
_.t.transformRules=function(L,Z){var N=this;this._currentElement=Z;J5B(L,function(S){N.transformRule(S)});
this._currentElement=null};
_.t.transformRule=function(L){L.cssText=cCM(this,L.parsedCssText,L);L.selector===":root"&&(L.selector=":host > *")};
var cCM=function(L,Z,N){Z=Z.replace(s_L,function(S,u,T,W){return L._produceCssProperties(S,u,T,W,N)});
return L._consumeCssProperties(Z,N)};
_.t=K6.prototype;_.t._getInitialValueForProperty=function(L){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(L)};
_.t._fallbacksFromPreviousRules=function(L){for(var Z=this,N=L;N.parent;)N=N.parent;var S={},u=!1;J5B(N,function(T){(u=u||T===L)||T.selector===L.selector&&Object.assign(S,Z._cssTextToMap(T.parsedCssText))});
return S};
_.t._consumeCssProperties=function(L,Z){for(var N;N=j_t.exec(L);){var S=N[0],u=N[1];N=N.index;var T=N+S.indexOf("@apply"),W=N+S.length;S=L.slice(0,T);L=L.slice(W);T=Z?this._fallbacksFromPreviousRules(Z):{};Object.assign(T,this._cssTextToMap(S));u=this._atApplyToCssProperties(u,T);L=S+u+L;j_t.lastIndex=N+u.length}return L};
_.t._atApplyToCssProperties=function(L,Z){L=L.replace(DgO,"");var N=[],S=this._map.get(L);S||(this._map.set(L,{}),S=this._map.get(L));if(S){this._currentElement&&(S.dependants[this._currentElement]=!0);var u,T=S.properties;for(u in T){var W=Z&&Z[u];S=[u,": var(",L,"_-_",u];W&&S.push(",",W.replace(vN0,""));S.push(")");vN0.test(T[u])&&S.push(" !important");N.push(S.join(""))}}return N.join("; ")};
_.t._replaceInitialOrInherit=function(L,Z){var N=lh5.exec(Z);N&&(Z=N[1]?this._getInitialValueForProperty(L):"apply-shim-inherit");return Z};
_.t._cssTextToMap=function(L,Z){Z=Z===void 0?!1:Z;L=L.split(";");for(var N,S,u={},T=0;T<L.length;T++)if(N=L[T])S=N.split(":"),S.length>1&&(N=S[0].trim(),S=S.slice(1).join(":"),Z&&(S=this._replaceInitialOrInherit(N,S)),u[N]=S);return u};
_.t._invalidateMixinEntry=function(L){if(REs)for(var Z in L.dependants)Z!==this._currentElement&&REs(Z)};
_.t._produceCssProperties=function(L,Z,N,S,u){var T=this;N&&Cys(N,function(K,U){U&&T._map.get(U)&&(S="@apply "+U+";")});
if(!S)return L;var W=this._consumeCssProperties(""+S,u);u=L.slice(0,L.indexOf("--"));var V=W=this._cssTextToMap(W,!0),M=this._map.get(Z),G=M&&M.properties;G?V=Object.assign(Object.create(G),W):this._map.set(Z,V);var D=[],l,v=!1;for(l in V){var R=W[l];R===void 0&&(R="initial");!G||l in G||(v=!0);D.push(Z+"_-_"+l+": "+R)}v&&this._invalidateMixinEntry(M);M&&(M.properties=V);N&&(u=L+";"+u);return u+D.join("; ")+";"};
K6.prototype.detectMixin=K6.prototype.detectMixin;K6.prototype.transformStyle=K6.prototype.JSC$11274_transformStyle;K6.prototype.transformCustomStyle=K6.prototype.transformCustomStyle;K6.prototype.transformRules=K6.prototype.transformRules;K6.prototype.transformRule=K6.prototype.transformRule;K6.prototype.transformTemplate=K6.prototype.transformTemplate;K6.prototype._separator="_-_";Object.defineProperty(K6.prototype,"invalidCallback",{get:function(){return REs},
set:function(L){REs=L}});var f6=new K6,nNL=function(){this.customStyleInterface=null;f6.invalidCallback=hHh},kU=function(L){!L.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(L.customStyleInterface=window.ShadyCSS.CustomStyleInterface,L.customStyleInterface.transformCallback=function(Z){f6.transformCustomStyle(Z)},L.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){L.customStyleInterface.enqueued&&L.flushCustomStyles()})})};
_.t=nNL.prototype;_.t.prepareTemplate=function(L,Z){kU(this);r5H(L)===""&&(aiA[Z]=L,Z=f6.transformTemplate(L,Z),L._styleAst=Z)};
_.t.flushCustomStyles=function(){kU(this);if(this.customStyleInterface){var L=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var Z=0;Z<L.length;Z++){var N=this.customStyleInterface.getStyleForCustomStyle(L[Z]);N&&f6.transformCustomStyle(N)}this.customStyleInterface.enqueued=!1}}};
_.t.styleSubtree=function(L,Z){kU(this);Z&&VWH(L,Z);if(L.shadowRoot)for(this.styleElement(L),L=L.shadowRoot.children||L.shadowRoot.childNodes,Z=0;Z<L.length;Z++)this.styleSubtree(L[Z]);else for(L=L.children||L.childNodes,Z=0;Z<L.length;Z++)this.styleSubtree(L[Z])};
_.t.styleElement=function(L){kU(this);var Z=L.localName,N;Z?Z.indexOf("-")>-1?N=Z:N=L.getAttribute&&L.getAttribute("is")||"":N=L.is;Z=aiA[N];if(!(Z&&r5H(Z)!==""||!Z||sA0(Z))){if(sA0(Z)||Z._applyShimValidatingVersion!==Z._applyShimNextVersion)this.prepareTemplate(Z,N),ET_(Z);if(L=L.shadowRoot)if(L=L.querySelector("style"))L.__cssRules=Z._styleAst,L.textContent=paA(Z._styleAst)}};
_.t.styleDocument=function(L){kU(this);this.styleSubtree(document.body,L)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var yi=new nNL,KWt=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(L,Z){yi.flushCustomStyles();yi.prepareTemplate(L,Z)},
prepareTemplateStyles:function(L,Z,N){window.ShadyCSS.prepareTemplate(L,Z,N)},
prepareTemplateDom:function(){},
styleSubtree:function(L,Z){yi.flushCustomStyles();yi.styleSubtree(L,Z)},
styleElement:function(L){yi.flushCustomStyles();yi.styleElement(L)},
styleDocument:function(L){yi.flushCustomStyles();yi.styleDocument(L)},
getComputedStyleValue:function(L,Z){return bMP(L,Z)},
flushCustomStyles:function(){yi.flushCustomStyles()},
nativeCss:PyF,nativeShadow:DH1,cssBuild:M7,disableRuntime:ph0};KWt&&(window.ShadyCSS.CustomStyleInterface=KWt)}window.ShadyCSS.ApplyShim=f6;var fhl;fhl=window.ShadyCSS;_.wS=SR(function(L){L=AJs(Tb(L));var Z=UdO?L:Gl0(L),N=FWl(Z),S={x:"pan-x",y:"pan-y",none:"none",all:"auto"};L=function(){return Z.call(this)||this};
_.f(L,Z);L.prototype.created=function(){};
L.prototype.__attributeReaction=function(u,T,W){(this.__dataAttributes&&this.__dataAttributes[u]||u==="disable-upgrade")&&this.attributeChangedCallback(u,T,W,null)};
L.prototype.setAttribute=function(u,T){if(Sk0&&!this._legacyForceObservedAttributes){var W=this.getAttribute(u);Z.prototype.setAttribute.call(this,u,T);this.__attributeReaction(u,W,String(T))}else Z.prototype.setAttribute.call(this,u,T)};
L.prototype.removeAttribute=function(u){if(Sk0&&!this._legacyForceObservedAttributes){var T=this.getAttribute(u);Z.prototype.removeAttribute.call(this,u);this.__attributeReaction(u,T,null)}else Z.prototype.removeAttribute.call(this,u)};
L.prototype._enableProperties=function(){this.__isUpgradeDisabled||Z.prototype._enableProperties.call(this)};
L.prototype._canApplyPropertyDefault=function(u){return Z.prototype._canApplyPropertyDefault.call(this,u)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(u))};
L.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(Z.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
L.prototype.attached=function(){};
L.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(Z.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
L.prototype.detached=function(){};
L.prototype.attributeChangedCallback=function(u,T,W,V){T!==W&&(u=="disable-upgrade"?this.__isUpgradeDisabled&&W==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.dx)(this).isConnected&&this.connectedCallback()):(Z.prototype.attributeChangedCallback.call(this,u,T,W,V),this.attributeChanged(u,T,W)))};
L.prototype.attributeChanged=function(){};
L.prototype._initializeProperties=function(){if(q4&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var u=Object.getPrototypeOf(this);u.hasOwnProperty("__hasRegisterFinished")||(this._registered(),u.__hasRegisterFinished=!0);Z.prototype._initializeProperties.call(this);this.root=this;this.created();Sk0&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
L.prototype._takeAttributes=function(){for(var u=this.attributes,T=0,W=u.length;T<W;T++){var V=u[T];this.__attributeReaction(V.name,null,V.value)}};
L.prototype._registered=function(){};
L.prototype.ready=function(){this._ensureAttributes();Z.prototype.ready.call(this)};
L.prototype._ensureAttributes=function(){};
L.prototype._applyListeners=function(){};
L.prototype.serialize=function(u){return this._serializeValue(u)};
L.prototype.deserialize=function(u,T){return this._deserializeValue(u,T)};
L.prototype.reflectPropertyToAttribute=function(u,T,W){this._propertyToAttribute(u,T,W)};
L.prototype.serializeValueToAttribute=function(u,T,W){this._valueToNodeAttribute(W||this,u,T)};
L.prototype.extend=function(u,T){if(!u||!T)return u||T;for(var W=Object.getOwnPropertyNames(T),V=0,M=void 0;V<W.length&&(M=W[V]);V++){var G=Object.getOwnPropertyDescriptor(T,M);G&&Object.defineProperty(u,M,G)}return u};
L.prototype.mixin=function(u,T){for(var W in T)u[W]=T[W];return u};
L.prototype.chainObject=function(u,T){u&&T&&u!==T&&(u.__proto__=T);return u};
L.prototype.instanceTemplate=function(u){u=this.constructor._contentForTemplate(u);return document.importNode(u,!0)};
L.prototype.fire=function(u,T,W){W=W||{};T=T===null||T===void 0?{}:T;u=new Event(u,{bubbles:W.bubbles===void 0?!0:W.bubbles,cancelable:!!W.cancelable,composed:W.composed===void 0?!0:W.composed});u.detail=T;(0,_.dx)(W.node||this).dispatchEvent(u);return u};
L.prototype.listen=function(u,T,W){u=u||this;var V=this.__boundListeners||(this.__boundListeners=new WeakMap),M=V.get(u);M||(M={},V.set(u,M));V=T+W;M[V]||(M[V]=this._addMethodEventListenerToNode(u,T,W,this))};
L.prototype.unlisten=function(u,T,W){u=u||this;var V=this.__boundListeners&&this.__boundListeners.get(u);W=T+W;var M=V&&V[W];M&&(this._removeEventListenerFromNode(u,T,M),V[W]=null)};
L.prototype.setScrollDirection=function(u,T){_.Xl(T||this,S[u]||"auto")};
L.prototype.$$=function(u){return this.root.querySelector(u)};
L.prototype.distributeContent=function(){var u=_.g0(this);window.ShadyDOM&&u.shadowRoot&&ShadyDOM.flush()};
L.prototype.getEffectiveChildNodes=function(){return _.g0(this).getEffectiveChildNodes()};
L.prototype.queryDistributedElements=function(u){return _.g0(this).queryDistributedElements(u)};
L.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(u){return u.nodeType===Node.ELEMENT_NODE})};
L.prototype.getEffectiveTextContent=function(){for(var u=this.getEffectiveChildNodes(),T=[],W=0,V;V=u[W];W++)V.nodeType!==Node.COMMENT_NODE&&T.push(V.textContent);return T.join("")};
L.prototype.queryEffectiveChildren=function(u){return(u=this.queryDistributedElements(u))&&u[0]};
L.prototype.queryAllEffectiveChildren=function(u){return this.queryDistributedElements(u)};
L.prototype.getContentChildNodes=function(u){return(u=this.root.querySelector(u||"slot"))?_.g0(u).getDistributedNodes():[]};
L.prototype.getContentChildren=function(u){return this.getContentChildNodes(u).filter(function(T){return T.nodeType===Node.ELEMENT_NODE})};
L.prototype.isLightDescendant=function(u){return this!==u&&(0,_.dx)(this).contains(u)&&(0,_.dx)(this).getRootNode()===(0,_.dx)(u).getRootNode()};
L.prototype.isLocalDescendant=function(u){return this.root===(0,_.dx)(u).getRootNode()};
L.prototype.scopeSubtree=function(u,T){return oT_(u,T===void 0?!1:T)};
L.prototype.getComputedStyleValue=function(u){return fhl.getComputedStyleValue(this,u)};
L.prototype.debounce=function(u,T,W){this._debouncers=this._debouncers||{};return this._debouncers[u]=_.Gb(this._debouncers[u],W>0?_.N9.after(W):A2,T.bind(this))};
L.prototype.isDebouncerActive=function(u){this._debouncers=this._debouncers||{};u=this._debouncers[u];return!(!u||!u.isActive())};
L.prototype.flushDebouncer=function(u){this._debouncers=this._debouncers||{};(u=this._debouncers[u])&&u.flush()};
L.prototype.cancelDebouncer=function(u){this._debouncers=this._debouncers||{};(u=this._debouncers[u])&&u.cancel()};
L.prototype.async=function(u,T){return T>0?_.N9.run(u.bind(this),T):~A2.run(u.bind(this))};
L.prototype.cancelAsync=function(u){u<0?A2.cancel(~u):_.N9.cancel(u)};
L.prototype.create=function(u,T){u=document.createElement(u);if(T)if(u.setProperties)u.setProperties(T);else for(var W in T)u[W]=T[W];return u};
L.prototype.elementMatches=function(u,T){return uZV(T||this,u)};
L.prototype.toggleAttribute=function(u,T){var W=this;arguments.length===3&&(W=arguments[2]);arguments.length==1&&(T=!W.hasAttribute(u));if(T)return(0,_.dx)(W).setAttribute(u,""),!0;(0,_.dx)(W).removeAttribute(u);return!1};
L.prototype.toggleClass=function(u,T,W){W=W||this;arguments.length==1&&(T=!W.classList.contains(u));T?W.classList.add(u):W.classList.remove(u)};
L.prototype.transform=function(u,T){T=T||this;T.style.webkitTransform=u;T.style.transform=u};
L.prototype.translate3d=function(u,T,W,V){this.transform("translate3d("+u+","+T+","+W+")",V||this)};
L.prototype.arrayDelete=function(u,T){if(Array.isArray(u)){if(T=u.indexOf(T),T>=0)return u.splice(T,1)}else if(T=Yb(this,u).indexOf(T),T>=0)return this.splice(u,T,1);return null};
L.prototype._logger=function(u,T){Array.isArray(T)&&T.length===1&&Array.isArray(T[0])&&(T=T[0]);switch(u){case "log":case "warn":case "error":console[u].apply(console,_.Pd(T))}};
L.prototype._log=function(){this._logger("log",_.CG.apply(0,arguments))};
L.prototype._warn=function(){this._logger("warn",_.CG.apply(0,arguments))};
L.prototype._error=function(){this._logger("error",_.CG.apply(0,arguments))};
L.prototype._logf=function(u){return["[%s::%s]",this.is,u].concat(_.Pd(_.CG.apply(1,arguments)))};
_.gd.Object.defineProperties(L.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var u=(0,_.dx)(this).getRootNode();return u instanceof DocumentFragment?u.host:u}}});
_.gd.Object.defineProperties(L,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Sk0&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],vo_(this.prototype)),this.__observedAttributes):N.call(this).concat("disable-upgrade")}}});
L.prototype.is="";return L});Polymer.FlattenedNodesObserver=N$Y;Polymer.DomApi=WW5;Polymer.EventApi=cL;Polymer.dom=_.g0;Polymer.dom.matchesSelector=uZV;Polymer.dom.flush=_.vL;Polymer.dom.addDebouncer=_.FO;Polymer.DirMixin=Gl0;Polymer.RenderStatus={beforeNextRender:_.DQA,afterNextRender:_.bN,flush:function(){for(;G5w.length||Ve.length;)gTF(G5w),gTF(Ve);WX=!1}};Polymer.LegacyElementMixin=_.wS;var klV;klV=DX._mutablePropertyChange;var yCh={properties:{mutableData:Boolean},_shouldPropertyChange:function(L,Z,N){return klV(this,L,Z,N,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(L,Z,N){return klV(this,L,Z,N,!0)}};
Polymer.OptionalMutableDataBehavior=yCh;var QAf={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},xQG={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},BKF=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},xQG),w9q=(0,_.wS)(HTMLElement),rtf=function(L,Z){L||console.warn("Polymer.Class requires `info` argument");Z=Z?Z(w9q):w9q;Z=qWf(L,Z,L.behaviors);Z.is=Z.prototype.is=
L.is;return Z};Polymer.Class=rtf;Polymer.mixinBehaviors=function(L,Z){return qWf({},(0,_.wS)(Z),L)};
Polymer.GenerateClassFromInfo=qWf;_.DU=function(L){var Z=typeof L==="function"?L:_.DU.Class(L);L._legacyForceObservedAttributes&&(Z.prototype._legacyForceObservedAttributes=L._legacyForceObservedAttributes);customElements.define(Z.is,Z);return Z};
_.DU.Class=rtf;Polymer._polymerFn=_.DU;var UgL=window.onLegacyPolymerFunctionDefinedCallback;UgL&&UgL();var XNx={templatize:function(L,Z){this._templatizerTemplate=L;this.ctor=N7(L,this,{mutableData:!!Z,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(L){return new this.ctor(L)},
modelForElement:function(L){return O51(this._templatizerTemplate,L)}};Polymer.Templatizer=XNx;_.Ue=(0,_.wS)(HTMLElement).prototype;Polymer.Base=_.Ue;var Z7f=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.Gc=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.f(_.Gc,PolymerFakeBaseClass);var F$=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.f(F$,PolymerFakeBaseClass);var NI_=Symbol("Td"),VsF=[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 YRY=YRY||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},eEI;(function(L){function Z(J,C,X){var L1=A.get(J);if(!L1){if(!X)return;L1=new h;A.set(J,L1)}J=L1.get(C);if(!J){if(!X)return;J=new h;L1.set(C,J)}return J}
function N(J,C,X){if(S(J,C,X))return!0;C=v(C);return C!==null?N(J,C,X):!1}
function S(J,C,X){C=Z(C,X,!1);return C===void 0?!1:!!C.has(J)}
function u(J,C,X){if(S(J,C,X))return T(J,C,X);C=v(C);if(C!==null)return u(J,C,X)}
function T(J,C,X){C=Z(C,X,!1);if(C!==void 0)return C.get(J)}
function W(J,C){var X=V(J,C);J=v(J);if(J===null)return X;var L1=W(J,C);if(L1.length<=0)return X;if(X.length<=0)return L1;C=new E;J=[];X=_.O(X);for(var Fw=X.next();!Fw.done;Fw=X.next())Fw=Fw.value,C.has(Fw)||(C.add(Fw),J.push(Fw));X=_.O(L1);for(L1=X.next();!L1.done;L1=X.next())L1=L1.value,C.has(L1)||(C.add(L1),J.push(L1));return J}
function V(J,C){J=Z(J,C,!1);var X=[];J&&J.forEach(function(L1,Fw){return X.push(Fw)});
return X}
function M(J){return J===void 0}
function G(J){return typeof J==="object"?J!==null:typeof J==="function"}
function D(J){return typeof J==="function"}
function l(J){return typeof J==="symbol"?J:String(J)}
function v(J){var C=Object.getPrototypeOf(J);if(typeof J!=="function"||J===d||C!==d)return C;var X=Object.getPrototypeOf(J.prototype);if(X==null||X===Object.prototype)return C;X=X.constructor;return typeof X!=="function"||X===J?C:X}
function R(){function J(){this._keys=[];this._values=[];this._cache=C}
var C={};J.prototype={get size(){return this._keys.length},has:function(X){return X===this._cache?!0:this._find(X)>=0?(this._cache=X,!0):!1},
get:function(X){var L1=this._find(X);if(L1>=0)return this._cache=X,this._values[L1]},
set:function(X,L1){this.delete(X);this._keys.push(X);this._values.push(L1);this._cache=X;return this},
delete:function(X){X=this._find(X);return X>=0?(this._keys.splice(X,1),this._values.splice(X,1),this._cache=C,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=C},
forEach:function(X){for(var L1=this.size,Fw=0;Fw<L1;++Fw){var GB=this._keys[Fw],Yt=this._values[Fw];this._cache=GB;X.call(this,Yt,GB,this)}},
_find:function(X){for(var L1=this._keys,Fw=L1.length,GB=0;GB<Fw;++GB)if(L1[GB]===X)return GB;return-1}};
return J}
function K(){function J(){this._map=new h}
J.prototype={get size(){return this._map.length},has:function(C){return this._map.has(C)},
add:function(C){this._map.set(C,C);return this},
delete:function(C){return this._map.delete(C)},
clear:function(){this._map.clear()},
forEach:function(C,X){this._map.forEach(C,X)}};
return J}
function U(){function J(){this._key=X()}
function C(RF,jf){for(var f1=0;f1<jf;++f1)RF[f1]=Math.random()*255|0}
function X(){do{if(Fw)var RF=Fw.randomBytes(16);else typeof Uint8Array==="function"?(RF=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(RF):C(RF,16)):(RF=Array(16),C(RF,16));RF[6]=RF[6]&79|64;RF[8]=RF[8]&191|128;for(var jf="",f1=0;f1<16;++f1){var n0=RF[f1];if(f1===4||f1===6||f1===8)jf+="-";n0<16&&(jf+="0");jf+=n0.toString(16).toLowerCase()}RF="@@WeakMap@@"+jf}while(GB.call(Yt,RF));Yt[RF]=!0;return RF}
function L1(RF,jf){if(!GB.call(RF,lH)){if(!jf)return;Object.defineProperty(RF,lH,{value:Object.create(null)})}return RF[lH]}
var Fw=typeof global!=="undefined"&&typeof YRY==="object"&&typeof require==="function"&&require("crypto"),GB=Object.prototype.hasOwnProperty,Yt={},lH=X();J.prototype={has:function(RF){return(RF=L1(RF,!1))?this._key in RF:!1},
get:function(RF){if(RF=L1(RF,!1))return RF[this._key]},
set:function(RF,jf){L1(RF,!0)[this._key]=jf;return this},
delete:function(RF){return(RF=L1(RF,!1))&&this._key in RF?delete RF[this._key]:!1},
clear:function(){this._key=X()}};
return J}
var d=Object.getPrototypeOf(Function),h=typeof Map==="function"?Map:R(),E=typeof Set==="function"?Set:K(),A=new (typeof WeakMap==="function"?WeakMap:U());L.decorate=function(J,C,X,L1){if(M(L1)){if(M(X)){if(!Array.isArray(J))throw new TypeError;if(!D(C))throw new TypeError;for(X=J.length-1;X>=0;--X)if(L1=(0,J[X])(C),!M(L1)){if(!D(L1))throw new TypeError;C=L1}return C}if(!Array.isArray(J))throw new TypeError;if(!G(C))throw new TypeError;X=l(X);for(L1=J.length-1;L1>=0;--L1)(0,J[L1])(C,X)}else{if(Array.isArray(J))if(G(C)){if(M(X))throw new TypeError;
if(!G(L1))throw new TypeError;}else throw new TypeError;else throw new TypeError;X=l(X);for(var Fw=J.length-1;Fw>=0;--Fw){var GB=(0,J[Fw])(C,X,L1);if(!M(GB)){if(!G(GB))throw new TypeError;L1=GB}}return L1}};
L.metadata=function(J,C){return function(X,L1){if(M(L1)){if(!D(X))throw new TypeError;Z(X,void 0,!0).set(J,C)}else{if(!G(X))throw new TypeError;L1=l(L1);Z(X,L1,!0).set(J,C)}}};
L.defineMetadata=function(J,C){var X;if(G(C))M(X)||(X=l(X));else throw new TypeError;Z(C,X,!0).set("parameters",J)};
L.hasMetadata=function(J,C,X){if(G(C))M(X)||(X=l(X));else throw new TypeError;return N(J,C,X)};
L.hasOwnMetadata=function(J,C,X){if(G(C))M(X)||(X=l(X));else throw new TypeError;return S(J,C,X)};
L.getMetadata=function(J,C,X){if(G(C))M(X)||(X=l(X));else throw new TypeError;return u(J,C,X)};
L.getOwnMetadata=function(J,C,X){if(G(C))M(X)||(X=l(X));else throw new TypeError;return T(J,C,X)};
L.getMetadataKeys=function(J,C){if(G(J))M(C)||(C=l(C));else throw new TypeError;return W(J,C)};
L.getOwnMetadataKeys=function(J,C){if(G(J))M(C)||(C=l(C));else throw new TypeError;return V(J,C)};
L.deleteMetadata=function(J,C,X){if(G(C))M(X)||(X=l(X));else throw new TypeError;var L1=Z(C,X,!1);if(!M(L1)){if(!L1.delete(J))return!1;if(L1.size>0)return!0;J=A.get(C);J.delete(X);if(J.size>0)return!0;A.delete(C);return!0}};
(function(J){if(typeof J.Reflect!=="undefined"){if(J.Reflect!==L)for(var C in L)J.Reflect[C]=L[C]}else J.Reflect=L})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(eEI||(eEI={}));var KbG=self;var IhM=[0,_.p5,_.J5,_.p5];var dgY=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(dgY,_.On);var ahL=_.l9(dgY,[0,_.Ha,_.XE,IhM,_.J5,_.xT]);var sXY=[0,_.Ba,-3,_.xT,_.Ha,_.p5,_.VYt,_.Ba,MYQ,tYs,sW,_.z5,_.p5,function(){return hEM},
_.J5],hEM=[0,_.XE,function(){return sXY},
_.Ha,14,_.Ba];_.Qk(_.$d,_.ag);_.t=_.$d.prototype;_.t.start=function(){this.stop();this.usingListeners_=!1;var L=jXO(this),Z=ENt(this);L&&!Z&&this.JSC$11317_win_.mozRequestAnimationFrame?(this.JSC$11317_id_=_.Gl(this.JSC$11317_win_,"MozBeforePaint",this.callback_),this.JSC$11317_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11317_id_=L&&Z?L.call(this.JSC$11317_win_,this.callback_):this.JSC$11317_win_.setTimeout(e1O(this.callback_),20)};
_.t.stop=function(){if(this.isActive()){var L=jXO(this),Z=ENt(this);L&&!Z&&this.JSC$11317_win_.mozRequestAnimationFrame?bn(this.JSC$11317_id_):L&&Z?Z.call(this.JSC$11317_win_,this.JSC$11317_id_):this.JSC$11317_win_.clearTimeout(this.JSC$11317_id_)}this.JSC$11317_id_=null};
_.t.fire=function(){this.stop();this.JSC$11319_doAction_()};
_.t.isActive=function(){return this.JSC$11317_id_!=null};
_.t.JSC$11319_doAction_=function(){this.usingListeners_&&this.JSC$11317_id_&&bn(this.JSC$11317_id_);this.JSC$11317_id_=null;this.JSC$11317_listener_.call(this.handler_,_.rc())};
_.t.disposeInternal=function(){this.stop();_.$d.superClass_.disposeInternal.call(this)};
var jXO=function(L){L=L.JSC$11317_win_;return L.requestAnimationFrame||L.webkitRequestAnimationFrame||L.mozRequestAnimationFrame||L.oRequestAnimationFrame||L.msRequestAnimationFrame||null},ENt=function(L){L=L.JSC$11317_win_;
return L.cancelAnimationFrame||L.cancelRequestAnimationFrame||L.webkitCancelRequestAnimationFrame||L.mozCancelRequestAnimationFrame||L.oCancelRequestAnimationFrame||L.msCancelRequestAnimationFrame||null};_.Sw=function(L,Z,N){_.ag.call(this);this.JSC$11320_listener_=N!=null?L.bind(N):L;this.JSC$11320_interval_=Z;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11320_timer_=null};
_.f(_.Sw,_.ag);_.t=_.Sw.prototype;_.t.fire=function(L){this.args_=arguments;this.JSC$11320_timer_||this.pauseCount_?this.shouldFire_=!0:PnN(this)};
_.t.stop=function(){this.JSC$11320_timer_&&(_.iH.clearTimeout(this.JSC$11320_timer_),this.JSC$11320_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.t.pause=function(){this.pauseCount_++};
_.t.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11320_timer_||(this.shouldFire_=!1,PnN(this))};
_.t.disposeInternal=function(){_.ag.prototype.disposeInternal.call(this);this.stop()};
var PnN=function(L){L.JSC$11320_timer_=U8(function(){L.JSC$11320_timer_=null;L.shouldFire_&&!L.pauseCount_&&(L.shouldFire_=!1,PnN(L))},L.JSC$11320_interval_);
var Z=L.args_;L.args_=null;L.JSC$11320_listener_.apply(null,Z)};var p9t=function(L,Z){this.childIterator_=L[_.iH.Symbol.iterator]();this.mapFn_=Z};
p9t.prototype[Symbol.iterator]=function(){return this};
p9t.prototype.next=function(){var L=this.childIterator_.next();return{value:L.done?void 0:this.mapFn_.call(void 0,L.value),done:L.done}};
var zEV=function(L,Z){return new p9t(L,Z)};var mgh={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 VHH=function(L){var Z=JCh(L);if(!Z)throw Error("Xd`"+L);return Z},JCh=function(L){var Z={};
L=String(L);var N=L.charAt(0)=="#"?L:"#"+L;if(CnI.test(N))return Z.hex=iI1(N),Z.type="hex",Z;N=GZH(L);return N.length?(Z.hex=zB1(N[0],N[1],N[2]),Z.type="rgb",Z):mgh&&(L=mgh[L.toLowerCase()])?(Z.hex=L,Z.type="named",Z):null},rCM=/#(.)(.)(.)/,iI1=function(L){if(!CnI.test(L))throw Error("Zd`"+L);
L.length==4&&(L=L.replace(rCM,"#$1$1$2$2$3$3"));return L.toLowerCase()},bth=function(L){L=iI1(L);
L=parseInt(L.slice(1),16);return[L>>16,L>>8&255,L&255]},zB1=function(L,Z,N){L=Number(L);
Z=Number(Z);N=Number(N);if(L!=(L&255)||Z!=(Z&255)||N!=(N&255))throw Error("$d`"+L+"`"+Z+"`"+N);Z=L<<16|Z<<8|N;return L<16?"#"+(16777216|Z).toString(16).slice(1):"#"+Z.toString(16)},CnI=/^#(?:[0-9a-f]{3}){1,2}$/i,QXM=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,GZH=function(L){var Z=L.match(QXM);
if(Z){L=Number(Z[1]);var N=Number(Z[2]);Z=Number(Z[3]);if(L>=0&&L<=255&&N>=0&&N<=255&&Z>=0&&Z<=255)return[L,N,Z]}return[]};var X9t={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},Z2=X9t;Z2=X9t;var Nlw,ACt,HYt;Nlw=function(L,Z){switch(Z){case 1:return L%4!=0||L%100==0&&L%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
ACt=function(L,Z,N,S,u){L=new Date(L,Z,N);u=u||0;return L.valueOf()+(((S!==void 0?S:3)-u+7)%7-((L.getDay()+6)%7-u+7)%7)*864E5};
_.YU=function(L,Z,N){typeof L==="number"?(this.date=HYt(L,Z||0,N||1),B$t(this,N||1)):_.Q_(L)?(this.date=HYt(L.getFullYear(),L.getMonth(),L.getDate()),B$t(this,L.getDate())):(this.date=new Date(_.rc()),L=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),B$t(this,L))};
HYt=function(L,Z,N){Z=new Date(L,Z,N);L>=0&&L<100&&Z.setFullYear(Z.getFullYear()-1900);return Z};
_.t=_.YU.prototype;_.t.firstDayOfWeek_=Z2.FIRSTDAYOFWEEK;_.t.firstWeekCutOffDay_=Z2.FIRSTWEEKCUTOFFDAY;_.t.clone=function(){var L=new _.YU(this.date);L.firstDayOfWeek_=this.firstDayOfWeek_;L.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return L};
_.t.getFullYear=function(){return this.date.getFullYear()};
_.t.getYear=function(){return this.getFullYear()};
_.t.getMonth=function(){return this.date.getMonth()};
_.t.getDate=function(){return this.date.getDate()};
_.t.getTime=function(){return this.date.getTime()};
_.t.getDay=function(){return this.date.getDay()};
_.t.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.t.getUTCMonth=function(){return this.date.getUTCMonth()};
_.t.getUTCDate=function(){return this.date.getUTCDate()};
_.t.getUTCDay=function(){return this.date.getDay()};
_.t.getUTCHours=function(){return this.date.getUTCHours()};
_.t.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.t.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.t.set=function(L){this.date=new Date(L.getFullYear(),L.getMonth(),L.getDate())};
_.t.setFullYear=function(L){this.date.setFullYear(L)};
_.t.setYear=function(L){this.setFullYear(L)};
_.t.setMonth=function(L){this.date.setMonth(L)};
_.t.setDate=function(L){this.date.setDate(L)};
_.t.setTime=function(L){this.date.setTime(L)};
_.t.setUTCFullYear=function(L){this.date.setUTCFullYear(L)};
_.t.setUTCMonth=function(L){this.date.setUTCMonth(L)};
_.t.setUTCDate=function(L){this.date.setUTCDate(L)};
_.t.add=function(L){if(L.years||L.months){var Z=this.getMonth()+L.months+L.years*12,N=this.getYear()+Math.floor(Z/12);Z%=12;Z<0&&(Z+=12);var S=Math.min(Nlw(N,Z),this.getDate());this.setDate(1);this.setFullYear(N);this.setMonth(Z);this.setDate(S)}L.days&&(N=this.getYear(),Z=N>=0&&N<=99?-1900:0,L=new Date((new Date(N,this.getMonth(),this.getDate(),12)).getTime()+L.days*864E5),this.setDate(1),this.setFullYear(L.getFullYear()+Z),this.setMonth(L.getMonth()),this.setDate(L.getDate()),B$t(this,L.getDate()))};
_.t.JSC$11333_toIsoString=function(L){var Z=this.getFullYear(),N=Z<0?"-":Z>=1E4?"+":"";return[N+_.u3(Math.abs(Z),N?6:4),_.u3(this.getMonth()+1,2),_.u3(this.getDate(),2)].join(L?"-":"")};
_.t.equals=function(L){return!(!L||this.getYear()!=L.getYear()||this.getMonth()!=L.getMonth()||this.getDate()!=L.getDate())};
_.t.toString=function(){return this.JSC$11333_toIsoString()};
var B$t=function(L,Z){L.getDate()!=Z&&L.date.setUTCHours(L.date.getUTCHours()+(L.getDate()<Z?1:-1))};
_.YU.prototype.valueOf=function(){return this.date.valueOf()};var I1=function(L,Z,N,S,u){this.reversed=!!Z;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!N;L&&eR(this,L,S);this.depth=u!=void 0?u:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Qk(I1,V3);var eR=function(L,Z,N,S){if(L.node=Z)L.tagType=typeof N==="number"?N:L.node.nodeType!=1?0:L.reversed?-1:1;typeof S==="number"&&(L.depth=S)};
_.t=I1.prototype;_.t.JSC$11348_copyFrom=function(L){this.node=L.node;this.tagType=L.tagType;this.depth=L.depth;this.reversed=L.reversed;this.constrained=L.constrained};
_.t.clone=function(){return new I1(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.t.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return bY;var L=this.node;var Z=this.reversed?-1:1;if(this.tagType==Z){var N=this.reversed?L.lastChild:L.firstChild;N?eR(this,N):eR(this,L,Z*-1)}else(N=this.reversed?L.previousSibling:L.nextSibling)?eR(this,N):eR(this,L.parentNode,Z*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(L=this.node)?MX(L):bY};
_.t.equals=function(L){return L.node==this.node&&(!this.node||L.tagType==this.tagType)};
_.t.splice=function(L){var Z=this.node,N=this.reversed?1:-1;this.tagType==N&&(this.tagType=N*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;I1.prototype.next.call(this);this.reversed=!this.reversed;N=_.Jx(arguments[0])?arguments[0]:arguments;for(var S=N.length-1;S>=0;S--)_.dI(N[S],Z);_.U_(Z)};var xgl=function(){},dS=function(L){for(var Z=[],N=L.getTextRangeCount(),S=0;S<N;S++)Z.push(L.getTextRange(S));
return Z};
xgl.prototype.isReversed=function(){return!1};
xgl.prototype.getWindow=function(){return mt(_.Jj(this.JSC$11350_getStartNode()))};
var qR5=function(L,Z){I1.call(this,L,Z,!0)};
_.Qk(qR5,I1);var a1=function(L,Z,N,S,u){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!u;if(L){this.startNode_=L;this.startOffset_=Z;this.endNode_=N;this.endOffset_=S;if(L.nodeType==1&&L.tagName!="BR")if(L=L.childNodes,Z=L[Z])this.startNode_=Z,this.startOffset_=0;else{L.length&&(this.startNode_=_.aF(L));var T=!0}N.nodeType==1&&((this.endNode_=N.childNodes[S])?this.endOffset_=0:this.endNode_=N)}I1.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);T&&this.next()};
_.Qk(a1,qR5);_.t=a1.prototype;_.t.JSC$11356_getStartNode=function(){return this.startNode_};
_.t.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)};
_.t.next=function(){return this.isLast()?bY:a1.superClass_.next.call(this)};
_.t.JSC$11348_copyFrom=function(L){this.startNode_=L.startNode_;this.endNode_=L.endNode_;this.startOffset_=L.startOffset_;this.endOffset_=L.endOffset_;this.isReversed_=L.isReversed_;a1.superClass_.JSC$11348_copyFrom.call(this,L)};
_.t.clone=function(){var L=new a1(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);L.JSC$11348_copyFrom(this);return L};var LRL=function(){};
LRL.prototype.__iterator__=function(){return new a1(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var hp=function(L){this.range_=L};
_.Qk(hp,LRL);var ZVs=function(L){var Z=_.Jj(L).createRange();if(L.nodeType==3)Z.setStart(L,0),Z.setEnd(L,L.length);else if(Yp(L)||L.nodeType==3){for(var N,S=L;(N=S.firstChild)&&(Yp(N)||N.nodeType==3);)S=N;Z.setStart(S,0);for(S=L;(N=S.lastChild)&&(Yp(N)||N.nodeType==3);)S=N;Z.setEnd(S,S.nodeType==1?S.childNodes.length:S.length)}else N=L.parentNode,L=Array.prototype.indexOf.call(N.childNodes,L),Z.setStart(N,L),Z.setEnd(N,L+1);return Z},N9O=function(L,Z,N,S){var u=_.Jj(L).createRange();
u.setStart(L,Z);u.setEnd(N,S);return u};
_.t=hp.prototype;_.t.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.t.getContainer=function(){return this.range_.commonAncestorContainer};
_.t.compareBrowserRangeEndpoints=function(L,Z,N){return this.range_.compareBoundaryPoints(N==1?Z==1?_.iH.Range.START_TO_START:_.iH.Range.START_TO_END:Z==1?_.iH.Range.END_TO_START:_.iH.Range.END_TO_END,L)};
_.t.isCollapsed=function(){return this.range_.collapsed};
_.t.select=function(L){this.selectInternal(mt(_.Jj(this.range_.startContainer)).getSelection(),L)};
_.t.selectInternal=function(L){L.removeAllRanges();L.addRange(this.range_)};
_.t.insertNode=function(L,Z){var N=this.range_.cloneRange();N.collapse(Z);N.insertNode(L);N.detach();return L};
_.t.collapse=function(L){this.range_.collapse(L)};_.Qk(Df,hp);Df.prototype.selectInternal=function(L,Z){!Z||this.isCollapsed()?Df.superClass_.selectInternal.call(this,L,Z):(L.collapse(this.range_.endContainer,this.range_.endOffset),L.extend(this.range_.startContainer,this.range_.startOffset))};_.Qk(lN,hp);lN.prototype.compareBrowserRangeEndpoints=function(L,Z,N){return lN.superClass_.compareBrowserRangeEndpoints.call(this,L,Z,N)};
lN.prototype.selectInternal=function(L,Z){Z?L.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):L.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var SCt=function(L){return _.qH?new lN(L):_.xM?new Df(L):new hp(L)};var se=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},iVL;
_.Qk(se,xgl);iVL=function(L,Z){var N=new se;N.browserRangeWrapper_=L;N.isReversed_=!!Z;return N};
_.u6M=function(L){L=_.qH?new lN(ZVs(L)):_.xM?new Df(ZVs(L)):new hp(ZVs(L));return iVL(L)};
_.jR=function(L,Z,N,S){var u=new se;u.isReversed_=T9Y(L,Z,N,S);if(_.WK(L)&&!Yp(L)){var T=L.parentNode;Z=Array.prototype.indexOf.call(T.childNodes,L);L=T}_.WK(N)&&!Yp(N)&&(T=N.parentNode,S=Array.prototype.indexOf.call(T.childNodes,N),N=T);u.isReversed_?(u.startNode_=N,u.startOffset_=S,u.endNode_=L,u.endOffset_=Z):(u.startNode_=L,u.startOffset_=Z,u.endNode_=N,u.endOffset_=S);return u};
_.t=se.prototype;_.t.clone=function(){var L=new se;L.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();L.startNode_=this.startNode_;L.startOffset_=this.startOffset_;L.endNode_=this.endNode_;L.endOffset_=this.endOffset_;L.isReversed_=this.isReversed_;return L};
_.t.JSC$11350_getType=function(){return"text"};
_.t.getBrowserRangeObject=function(){return Ee(this).range_};
_.t.getTextRangeCount=function(){return 1};
_.t.getTextRange=function(){return this};
var Ee=function(L){var Z;if(!(Z=L.browserRangeWrapper_)){Z=L.JSC$11350_getStartNode();var N=L.JSC$11350_getStartOffset(),S=L.JSC$11350_getEndNode(),u=L.JSC$11350_getEndOffset();Z=_.qH?new lN(N9O(Z,N,S,u)):_.xM?new Df(N9O(Z,N,S,u)):new hp(N9O(Z,N,S,u));Z=L.browserRangeWrapper_=Z}return Z};
_.t=se.prototype;_.t.getContainer=function(){return Ee(this).getContainer()};
_.t.JSC$11350_getStartNode=function(){return this.startNode_||(this.startNode_=Ee(this).range_.startContainer)};
_.t.JSC$11350_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=Ee(this).range_.startOffset};
_.t.JSC$11350_getEndNode=function(){return this.endNode_||(this.endNode_=Ee(this).range_.endContainer)};
_.t.JSC$11350_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=Ee(this).range_.endOffset};
_.t.isReversed=function(){return this.isReversed_};
_.t.JSC$11350_containsRange=function(L,Z){if(L.JSC$11350_getType()=="text"){var N=Ee(this);L=Ee(L);Z=Z&&!L.isCollapsed();L=L.range_;N=Z?N.compareBrowserRangeEndpoints(L,0,1)>=0&&N.compareBrowserRangeEndpoints(L,1,0)<=0:N.compareBrowserRangeEndpoints(L,0,0)>=0&&N.compareBrowserRangeEndpoints(L,1,1)<=0}else N=!1;return N};
_.t.isCollapsed=function(){return Ee(this).isCollapsed()};
_.t.JSC$11350_getText=function(){return Ee(this).range_.toString()};
_.t.__iterator__=function(){return new a1(this.JSC$11350_getStartNode(),this.JSC$11350_getStartOffset(),this.JSC$11350_getEndNode(),this.JSC$11350_getEndOffset())};
_.t.select=function(){Ee(this).select(this.isReversed_)};
_.t.JSC$11350_removeContents=function(){var L=Ee(this).range_;L.extractContents();if(L.startContainer.hasChildNodes()&&(L=L.startContainer.childNodes[L.startOffset])){var Z=L.previousSibling;yjq(L)==""&&_.U_(L);Z&&yjq(Z)==""&&_.U_(Z)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.t.insertNode=function(L,Z){L=Ee(this).insertNode(L,Z);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return L};
_.t.collapse=function(L){L=this.isReversed()?!L:L;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(L);L?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var twQ=function(){};
_.Qk(twQ,xgl);twQ.prototype.JSC$11350_containsRange=function(L,Z){var N=dS(this);L=dS(L);return(Z?TI:_.m1f)(L,function(S){return TI(N,function(u){return u.JSC$11350_containsRange(S,Z)})})};
twQ.prototype.insertNode=function(L,Z){Z?_.In(L,this.JSC$11350_getStartNode()):_.dI(L,this.JSC$11350_getEndNode());return L};var OVt,WRt=Im().JSC$9325_document_.documentElement;OVt=WRt.requestFullscreen?"fullscreenchange":WRt.webkitRequestFullscreen?"webkitfullscreenchange":WRt.mozRequestFullScreen?"mozfullscreenchange":WRt.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var VwQ=function(){var L=Im().JSC$9325_document_;return!!(L.webkitIsFullScreen||L.mozFullScreen||L.msFullscreenElement||L.fullscreenElement)};var PL=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Qk(PL,twQ);_.t=PL.prototype;_.t.clone=function(){var L=new PL;L.browserRanges_=_.mh(this.browserRanges_);return L};
_.t.JSC$11350_getType=function(){return"mutli"};
_.t.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.t.getTextRangeCount=function(){return this.browserRanges_.length};
_.t.getTextRange=function(L){this.ranges_[L]||(this.ranges_[L]=iVL(SCt(this.browserRanges_[L])));return this.ranges_[L]};
_.t.getContainer=function(){if(!this.container_){for(var L=[],Z=this.getTextRangeCount(),N=0;N<Z;N++)L.push(this.getTextRange(N).getContainer());this.container_=ohV.apply(null,L)}return this.container_};
var p6=function(L){L.sortedRanges_||(L.sortedRanges_=dS(L),L.sortedRanges_.sort(function(Z,N){var S=Z.JSC$11350_getStartNode();Z=Z.JSC$11350_getStartOffset();var u=N.JSC$11350_getStartNode();N=N.JSC$11350_getStartOffset();return S==u&&Z==N?0:T9Y(S,Z,u,N)?1:-1}));
return L.sortedRanges_};
_.t=PL.prototype;_.t.JSC$11350_getStartNode=function(){return p6(this)[0].JSC$11350_getStartNode()};
_.t.JSC$11350_getStartOffset=function(){return p6(this)[0].JSC$11350_getStartOffset()};
_.t.JSC$11350_getEndNode=function(){return _.aF(p6(this)).JSC$11350_getEndNode()};
_.t.JSC$11350_getEndOffset=function(){return _.aF(p6(this)).JSC$11350_getEndOffset()};
_.t.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.t.JSC$11350_getText=function(){return dS(this).map(function(L){return L.JSC$11350_getText()}).join("")};
_.t.__iterator__=function(){return new zb(this)};
_.t.select=function(){var L=this.getWindow().getSelection();L.removeAllRanges();for(var Z=this.getTextRangeCount(),N=0;N<Z;N++)L.addRange(this.getTextRange(N).getBrowserRangeObject())};
_.t.JSC$11350_removeContents=function(){dS(this).forEach(function(L){L.JSC$11350_removeContents()})};
_.t.collapse=function(L){if(!this.isCollapsed()){var Z=L?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;Z.collapse(L);this.ranges_=[Z];this.sortedRanges_=[Z];this.browserRanges_=[Z.getBrowserRangeObject()]}};
var zb=function(L){this.iterators_=null;this.currentIdx_=0;L&&(this.iterators_=p6(L).map(function(Z){return _.cqt(Z)}));
I1.call(this,L?this.JSC$11356_getStartNode():null,!1,!0)};
_.Qk(zb,qR5);_.t=zb.prototype;_.t.JSC$11356_getStartNode=function(){return this.iterators_[0].JSC$11356_getStartNode()};
_.t.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.t.next=function(){for(;this.currentIdx_<this.iterators_.length;){var L=this.iterators_[this.currentIdx_],Z=L.next();if(Z.done)this.currentIdx_++;else return eR(this,L.node,L.tagType,L.depth),Z}return bY};
_.t.JSC$11348_copyFrom=function(L){this.iterators_=_.mh(L.iterators_);zb.superClass_.JSC$11348_copyFrom.call(this,L)};
_.t.clone=function(){var L=new zb(null);L.JSC$11348_copyFrom(this);return L};var bVI,T9Y;_.HT=function(){var L=window.getSelection();return L&&bVI(L)};
bVI=function(L){var Z=!1;if(L.createRange)try{var N=L.createRange()}catch(u){return null}else if(L.rangeCount){if(L.rangeCount>1){N=new PL;Z=L.rangeCount;for(var S=0;S<Z;S++)N.browserRanges_.push(L.getRangeAt(S));return N}N=L.getRangeAt(0);Z=T9Y(L.anchorNode,L.anchorOffset,L.focusNode,L.focusOffset)}else return null;return iVL(SCt(N),Z)};
_.mV=function(L,Z){return _.jR(L,Z,L,Z)};
_.Jp=function(L,Z,N,S){return _.jR(L,Z,N,S)};
T9Y=function(L,Z,N,S){if(L==N)return S<Z;var u;if(L.nodeType==1&&Z)if(u=L.childNodes[Z])L=u,Z=0;else if(_.H4(L,N))return!0;if(N.nodeType==1&&S)if(u=N.childNodes[S])N=u,S=0;else if(_.H4(N,L))return!1;return(vhV(L,N)||Z-S)>0};var C6=function(){_.Kc.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.hr)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.hr)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.hr)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.hr)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.hr)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.hr)(this.dispatchProgressEvent_,this)};
_.Qk(C6,_.Kc);C6.prototype.abort=function(){try{this.reader_.abort()}catch(L){throw new ydV(L,"aborting read");}};
C6.prototype.getError=function(){return this.reader_.error&&new ydV(this.reader_.error,"reading file")};
C6.prototype.dispatchProgressEvent_=function(L){this.dispatchEvent(new w2L(L,this))};
C6.prototype.disposeInternal=function(){C6.superClass_.disposeInternal.call(this);delete this.reader_};
var g0h=function(L){var Z=new C6,N=Mwh(Z);Z.reader_.readAsArrayBuffer(L);return N},G0q=function(L){var Z=new C6,N=Mwh(Z);
Z.reader_.readAsDataURL(L);return N},Mwh=function(L){var Z=new Hn;
L.listen("loadend",_.T6(function(N,S){var u=S.reader_.result,T=S.getError();u==null||T?N.errback(T):N.callback(u);S.dispose()},Z,L));
return Z};var rS=function(){_.Kc.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11390_eventHandler_=new _.oM(this);this.JSC$11390_isInitialized_=!1};
_.Qk(rS,_.Kc);var FRI=new _.ll("d"),$VQ=new _.ll("beforedragstart"),DVI=new _.ll("dragstart"),l9I=new _.ll("beforedragmove"),v0N=new _.ll("dragmove"),o0s=new _.ll("beforedragend"),R_Q=new _.ll("dragend"),cSL=new _.ll("e");rS.prototype.isDragging=function(){return!!this.JSC$11390_dragger_};
var n0t=function(L,Z){Z.dlgGrowthDirection_=0;Z.dlgDragHoverClass_=void 0;Z.dlgDragPermission=0;L.dragLists_.push(Z)},KRO=function(L,Z){L.getHandleForDragItem_=Z};
rS.prototype.init=function(){if(!this.JSC$11390_isInitialized_){for(var L=this.dragLists_.length,Z=0;Z<L;Z++)for(var N=_.an(this.dragLists_[Z]),S=N.length,u=0;u<S;++u){var T=N[u],W=this.getHandleForDragItem_(T),V=_.Hs(W);this.dragItemForHandle_[V]=T;this.dragItemHoverClasses_&&(this.JSC$11390_eventHandler_.listen(T,"mouseover",this.handleDragItemMouseover_),this.JSC$11390_eventHandler_.listen(T,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11390_eventHandler_.listen(W,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11390_eventHandler_.listen(W,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(T);this.JSC$11390_eventHandler_.listen(W,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11390_isInitialized_=!0}};
rS.prototype.disposeInternal=function(){this.JSC$11390_eventHandler_.dispose();for(var L=this.dragLists_.length,Z=0;Z<L;Z++){var N=this.dragLists_[Z];N.dlgGrowthDirection_=void 0;N.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;f9s(this);rS.superClass_.disposeInternal.call(this)};
var k0q=function(L,Z){for(var N=L.dragLists_.length,S=0;S<N;S++){var u=L.dragLists_[S];u.dlgBounds_=$Y_(u)}N=L.dragItems_.length;for(S=0;S<N;S++)u=L.dragItems_[S],u!=Z&&(u.dlgBounds_=$Y_(u))};
_.t=rS.prototype;
_.t.handlePotentialDragStart_=function(L){var Z=_.Hs(L.currentTarget);Z=this.dragItemForHandle_[Z];if(Z.parentElement.dlgDragPermission!=2){this.currDragItem_=Z;a:{Z=this.currDragItem_;for(var N=Z.cloneNode(!0),S=Y$("TEXTAREA",Z),u=Y$("TEXTAREA",N),T=0;T<S.length;T++)u[T].value=S[T].value;switch(Z.tagName){case "TR":Z=_.wI("TABLE",null,_.wI("TBODY",null,N));break a;case "TD":case "TH":Z=_.wI("TABLE",null,_.wI("TBODY",null,_.wI("TR",null,N)));break a;case "TEXTAREA":N.value=Z.value;default:Z=N;break a}Z=
void 0}this.draggerEl_=Z;this.draggerElClasses_&&Qz(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Jj(this.currDragItem_).body.appendChild(this.draggerEl_);N=_.Cx(this.currDragItem_);Z=this.draggerEl_;S=_.Cx(Z);if(N instanceof _.zF){var W=N.y;N=N.x}Pz(Z,Z.offsetLeft+(N-S.x),Z.offsetTop+(Number(W)-S.y));this.JSC$11390_dragger_=new _.pL(this.draggerEl_);_.kch(this.JSC$11390_dragger_,this.hysteresisDistance_);
_.Gl(this.JSC$11390_dragger_,"start",this.handleDragStart_,!1,this);_.Gl(this.JSC$11390_dragger_,"end",this.handleDragEnd_,!1,this);_.Gl(this.JSC$11390_dragger_,"earlycancel",this.JSC$11392_cleanup_,!1,this);this.dispatchEvent(new Qi(FRI,this,L,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_));this.JSC$11390_dragger_.startDrag(L)}};
_.t.handleDragStart_=function(L){if(this.dispatchEvent(new Qi($VQ,this,L.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.$8t(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Qz(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var Z=d8s(this.draggerEl_);this.draggerEl_.halfWidth=Z.width/2;this.draggerEl_.halfHeight=Z.height/2;Z=this.draggerEl_.getBoundingClientRect();
var N=L.clientY,S=yQN(this.JSC$11390_dragger_,L.clientX);if(S>Z.right){var u=this.currDragItem_.getBoundingClientRect();this.JSC$11390_dragger_.deltaX=S-(S-u.left)/u.width*Z.width}N=wXQ(this.JSC$11390_dragger_,N);N>Z.bottom&&(this.JSC$11390_dragger_.deltaY+=N-Z.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";k0q(this,this.currDragItem_);this.currDragItem_.style.display="";_.Gl(this.JSC$11390_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Qi(DVI,
this,L.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_))}else L.preventDefault(),this.JSC$11392_cleanup_()};
_.t.handleDragMove_=function(L){var Z=_.Cx(this.draggerEl_);Z=new _.zF(Z.x+this.draggerEl_.halfWidth,Z.y+this.draggerEl_.halfHeight);a:{var N=null;if(this.currDragItem_.style.display!="none"){N=this.currDragItem_.parentNode;var S=$Y_(N);if(ySh(Z,S))break a}S=this.dragLists_.length;for(var u=0;u<S;u++){var T=this.dragLists_[u];if(T!=N&&ySh(Z,T.dlgBounds_)){N=T;break a}}N=null}if(N){if(N==null)throw Error("ae");S=0;u=!1;T=void 0;switch(N.dlgGrowthDirection_){case 0:S=Z.y;var W=wQ5;var V=UVO;break;case 4:u=
!0;case 2:S=Z.x;W=YCY;V=UVO;break;case 5:u=!0;case 3:S=Z.x,W=e_Y,V=I9L}for(var M=null,G,D=_.an(N),l=D.length,v=0;v<l;v++){var R=D[v];if(R!=this.currDragItem_){var K=W(R.dlgBounds_);if(u){var U=dVM(R,Z);T===void 0&&(T=U);V(S,K)&&(G==void 0||U<T||U==T&&(V(K,G)||K==G))&&(M=R,G=K);U<T&&(T=U)}else V(S,K)&&(G==void 0||V(K,G))&&(M=R,G=K)}}W=M!==null&&dVM(M,Z)>T?null:M}else W=null;if(!this.dispatchEvent(new Qi(l9I,this,L,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_,Z,N,W)))return!1;if(N&&N.dlgDragPermission!=
1)this.currDragItem_.parentNode==N&&_.$8t(this.currDragItem_)==W||N.insertBefore(this.currDragItem_,W),this.currDragItem_.style.display="",N.dlgDragHoverClass_&&_.ER(N,N.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",V=this.dragLists_.length,G=0;G<V;G++)S=this.dragLists_[G],S.dlgDragHoverClass_&&_.sR(S,S.dlgDragHoverClass_);N!=this.currHoverList_&&(this.currHoverList_=N,k0q(this,this.currDragItem_));this.dispatchEvent(new Qi(v0N,this,L,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_,
Z,N,W));return!1};
_.t.JSC$11392_cleanup_=function(){f9s(this);this.JSC$11390_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var L=this.dragLists_.length,Z=0;Z<L;Z++)this.dragLists_[Z].dlgBounds_=null;L=this.dragItems_.length;for(Z=0;Z<L;Z++)this.dragItems_[Z].dlgBounds_=null};
_.t.handleDragEnd_=function(L){if(!this.dispatchEvent(new Qi(o0s,this,L,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_)))return!1;f9s(this);this.dispatchEvent(new Qi(R_Q,this,L,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_));this.JSC$11392_cleanup_();return!0};
var f9s=function(L){_.W4(L.JSC$11390_dragger_);var Z=L.draggerEl_&&L.draggerEl_.parentElement;L.draggerEl_&&_.U_(L.draggerEl_);L.currDragItem_&&L.currDragItem_.style.display=="none"&&(L.origList_.insertBefore(L.currDragItem_,L.origNextItem_),L.currDragItem_.style.display="");L.currDragItemClasses_&&L.currDragItem_?KzO(L.currDragItem_,L.currDragItemClasses_||[]):L.currDragItem_&&(L.currDragItem_.style.visibility="");for(var N=L.dragLists_.length,S=0;S<N;S++){var u=L.dragLists_[S];u.dlgDragHoverClass_&&
_.sR(u,u.dlgDragHoverClass_)}Z&&L.dispatchEvent(new Qi(cSL,L,null,L.currDragItem_,L.draggerEl_,L.JSC$11390_dragger_))};
_.t=rS.prototype;_.t.getHandleForDragItem_=function(L){return L};
_.t.handleDragItemMouseover_=function(L){Qz(L.currentTarget,this.dragItemHoverClasses_||[])};
_.t.handleDragItemMouseout_=function(L){KzO(L.currentTarget,this.dragItemHoverClasses_||[])};
_.t.handleDragItemHandleMouseover_=function(L){Qz(L.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.t.handleDragItemHandleMouseout_=function(L){KzO(L.currentTarget,this.dragItemHandleHoverClasses_||[])};
var ySh=function(L,Z){return L.x>Z.left&&L.x<Z.left+Z.width&&L.y>Z.top&&L.y<Z.top+Z.height},dVM=function(L,Z){L=L.dlgBounds_;
return Math.abs(Z.y-(L.top+(L.height-1)/2))},wQ5=function(L){return L.top+L.height-1},YCY=function(L){return L.left+L.width-1},e_Y=function(L){return L.left||0},UVO=function(L,Z){return L<Z},I9L=function(L,Z){return L>Z},Qi=function(L,Z,N,S,u,T){_.vn.call(this,L);
this.event=N;this.currDragItem=S;this.draggerEl=u;this.JSC$11394_dragger=T};
_.Qk(Qi,_.vn);_.Qk(RM,_.ag);var a95=new _.zF(0,0);RM.prototype.JSC$11398_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
RM.prototype.JSC$11398_onMouseMove=function(L){var Z=this.containerIsActuallyContent_?a95:eN(Im(this.containerNode_)),N=this.horizontalScrolling_?this.calculateScrollDelta(L.clientX+Z.x,this.scrollBounds_.left,this.scrollBounds_.width):0,S=this.calculateScrollDelta(L.clientY+Z.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=N;this.scrollDelta_.y=S;!(N=!N&&!S)&&(N=this.constrainScroll_)&&(N=L.clientX+Z.x,L=L.clientY+Z.y,Z=this.containerBounds_,N=!(Z.left<=N&&Z.left+Z.width>=
N&&Z.top<=L&&Z.top+Z.height>=L));N?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
RM.prototype.calculateScrollDelta=function(L,Z,N){var S=0;L<Z?S=-8:L>Z+N&&(S=8);return S};
RM.prototype.disposeInternal=function(){RM.superClass_.disposeInternal.call(this);this.JSC$11396_eventHandler_.dispose();this.scrollTimer_.dispose()};var h_t={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"}}},XO=h_t;XO=h_t;var Ap={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 sVl=function(){},ai=function(L){if(typeof L=="number"){var Z=new sVl;
Z.standardOffset_=L;var N=L;if(N==0)N="Etc/GMT";else{var S=["Etc/GMT",N<0?"-":"+"];N=Math.abs(N);S.push(Math.floor(N/60)%100);N%=60;N!=0&&S.push(":",_.u3(N,2));N=S.join("")}Z.timeZoneId_=N;N=L;N==0?N="UTC":(S=["UTC",N<0?"+":"-"],N=Math.abs(N),S.push(Math.floor(N/60)%100),N%=60,N!=0&&S.push(":",N),N=S.join(""));L=jVN(L);Z.tzNames_=[N,N];Z.tzNamesExt_={STD_LONG_NAME_GMT:L,STD_GENERIC_LOCATION:L};Z.transitions_=[];return Z}Z=new sVl;Z.timeZoneId_=L.id;Z.standardOffset_=-L.std_offset;Z.tzNames_=L.names;
Z.tzNamesExt_=L.names_ext;Z.transitions_=L.transitions;return Z},jVN=function(L){var Z=["GMT"];
Z.push(L<=0?"+":"-");L=Math.abs(L);Z.push(_.u3(Math.floor(L/60)%100,2),":",_.u3(L%60,2));return Z.join("")},E0h=function(L,Z){Z=Date.UTC(Z.getUTCFullYear(),Z.getUTCMonth(),Z.getUTCDate(),Z.getUTCHours(),Z.getUTCMinutes())/36E5;
for(var N=0;N<L.transitions_.length&&Z>=L.transitions_[N];)N+=2;return N==0?0:L.transitions_[N-1]},P4Q=function(L,Z){L=L.standardOffset_-E0h(L,Z);
return L===-1440?0:L};var hN=function(L,Z){this.patternParts_=[];this.JSC$11409_dateTimeSymbols_=Z||Z2;typeof L=="number"?pQq(this,L):z_0(this,L)},mVM=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],HL=function(L){return L.getHours?L.getHours():0},z_0=function(L,Z){for(xWL&&(Z=Z.replace(/\u200f/g,""));Z;){for(var N=Z,S=0;S<mVM.length;++S){var u=Z.match(mVM[S]);
if(u){var T=u[0];Z=Z.substring(T.length);S==0&&(T=="''"?T="'":(T=T.substring(1,u[1]=="'"?T.length-1:T.length),T=T.replace(/''/g,"'")));L.patternParts_.push({text:T,type:S});break}}if(N===Z)throw Error("be`"+Z);}};
hN.prototype.format=function(L,Z){if(!L)throw Error("ce");var N=Z?(L.getTimezoneOffset()-P4Q(Z,L))*6E4:0,S=N?new Date(L.getTime()+N):L,u=S;Z&&S.getTimezoneOffset()!=L.getTimezoneOffset()&&(S=new Date(S.getTime()+(S.getTimezoneOffset()-L.getTimezoneOffset())*6E4),u=new Date(L.getTime()+(N+(N>0?-864E5:864E5))));N=[];for(var T=0;T<this.patternParts_.length;++T){var W=this.patternParts_[T].text;1==this.patternParts_[T].type?N.push(JS5(this,W,L,S,u,Z)):N.push(W)}return N.join("")};
var pQq=function(L,Z){if(Z<4)var N=L.JSC$11409_dateTimeSymbols_.DATEFORMATS[Z];else if(Z<8)N=L.JSC$11409_dateTimeSymbols_.TIMEFORMATS[Z-4];else if(Z<12)N=L.JSC$11409_dateTimeSymbols_.DATETIMEFORMATS[Z-8],N=N.replace("{1}",L.JSC$11409_dateTimeSymbols_.DATEFORMATS[Z-8]),N=N.replace("{0}",L.JSC$11409_dateTimeSymbols_.TIMEFORMATS[Z-8]);else if(Z===12)N=L.JSC$11409_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(Z===13)N=L.JSC$11409_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{pQq(L,10);return}z_0(L,N)},BL=function(L,Z){Z=String(Z);
L=L.JSC$11409_dateTimeSymbols_||Z2;if(L.ZERODIGIT!==void 0&&!BVf){for(var N=[],S=0;S<Z.length;S++){var u=Z.charCodeAt(S);N.push(48<=u&&u<=57?String.fromCharCode(L.ZERODIGIT+u-48):Z.charAt(S))}Z=N.join("")}return Z},BVf=!1,xWL=!1,rSh=function(L,Z,N,S){N=N.getFullYear();
N<=0&&S&&(N=1-N);return BL(L,C4Y(N,Z))},C4Y=function(L,Z){Z==2&&(L%=100);
L<0&&Z++;return _.u3(L,Z)},xU=function(L){if(!(L.getHours&&L.getSeconds&&L.getMinutes))throw Error("de");
},QVh=function(L,Z){xU(Z);
Z=HL(Z);return L.JSC$11409_dateTimeSymbols_.AMPMS[Z>=12&&Z<24?1:0]},JS5=function(L,Z,N,S,u,T){var W=Z.length;
switch(Z.charAt(0)){case "G":return N=S.getFullYear()>0?1:0,W>=4?L.JSC$11409_dateTimeSymbols_.ERANAMES[N]:L.JSC$11409_dateTimeSymbols_.ERAS[N];case "y":return rSh(L,W,S,!0);case "Y":return N=(new Date(ACt(S.getFullYear(),S.getMonth(),S.getDate(),L.JSC$11409_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,L.JSC$11409_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),W==2&&(N%=100),BL(L,C4Y(N,W));case "u":return rSh(L,W,S,!1);case "M":a:switch(N=S.getMonth(),W){case 5:W=L.JSC$11409_dateTimeSymbols_.NARROWMONTHS[N];
break a;case 4:W=L.JSC$11409_dateTimeSymbols_.MONTHS[N];break a;case 3:W=L.JSC$11409_dateTimeSymbols_.SHORTMONTHS[N];break a;default:W=BL(L,_.u3(N+1,W))}return W;case "k":return xU(u),BL(L,_.u3(HL(u)||24,W));case "S":return BL(L,(u.getMilliseconds()/1E3).toFixed(Math.min(3,W)).slice(2)+(W>3?_.u3(0,W-3):""));case "E":return N=S.getDay(),W>=4?L.JSC$11409_dateTimeSymbols_.WEEKDAYS[N]:L.JSC$11409_dateTimeSymbols_.SHORTWEEKDAYS[N];case "a":return QVh(L,u);case "b":return QVh(L,u);case "B":return QVh(L,
u);case "h":return xU(u),BL(L,_.u3(HL(u)%12||12,W));case "K":return xU(u),BL(L,_.u3(HL(u)%12,W));case "H":return xU(u),BL(L,_.u3(HL(u),W));case "c":a:switch(N=S.getDay(),W){case 5:W=L.JSC$11409_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[N];break a;case 4:W=L.JSC$11409_dateTimeSymbols_.STANDALONEWEEKDAYS[N];break a;case 3:W=L.JSC$11409_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[N];break a;default:W=BL(L,_.u3(N,1))}return W;case "L":a:switch(N=S.getMonth(),W){case 5:W=L.JSC$11409_dateTimeSymbols_.STANDALONENARROWMONTHS[N];
break a;case 4:W=L.JSC$11409_dateTimeSymbols_.STANDALONEMONTHS[N];break a;case 3:W=L.JSC$11409_dateTimeSymbols_.STANDALONESHORTMONTHS[N];break a;default:W=BL(L,_.u3(N+1,W))}return W;case "Q":return N=Math.floor(S.getMonth()/3),W<4?L.JSC$11409_dateTimeSymbols_.SHORTQUARTERS[N]:L.JSC$11409_dateTimeSymbols_.QUARTERS[N];case "d":return BL(L,_.u3(S.getDate(),W));case "m":return xU(u),BL(L,_.u3(u.getMinutes?u.getMinutes():0,W));case "s":return xU(u),BL(L,_.u3(u.getSeconds(),W));case "v":return(T||ai(N.getTimezoneOffset())).timeZoneId_;
case "V":return L=T||ai(N.getTimezoneOffset()),W<=2?L.timeZoneId_:E0h(L,N)>0?L.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?L.tzNamesExt_.DST_GENERIC_LOCATION:L.tzNamesExt_.DST_GENERIC_LOCATION:L.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?L.tzNamesExt_.STD_GENERIC_LOCATION:L.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return N=ACt(u.getFullYear(),u.getMonth(),u.getDate(),L.JSC$11409_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,L.JSC$11409_dateTimeSymbols_.FIRSTDAYOFWEEK),BL(L,_.u3(Math.floor(Math.round((N-(new Date((new Date(N)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,W));case "z":return L=T||ai(N.getTimezoneOffset()),W<4?L.tzNames_[E0h(L,N)>0?2:0]:L.tzNames_[E0h(L,N)>0?3:1];case "Z":return Z=T||ai(N.getTimezoneOffset()),W<4?(W=-P4Q(Z,N),L=[W<0?"-":"+"],W=Math.abs(W),L.push(_.u3(Math.floor(W/60)%100,2),_.u3(W%60,2)),W=L.join("")):W=BL(L,jVN(P4Q(Z,N))),W;default:return""}};var XQt=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,ASt=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,yFs=function(L){this.patternParts_=[];this.JSC$11418_dateTimeSymbols_=Z2;if(typeof L=="number"){L>11&&(L=10);if(L<4)var Z=this.JSC$11418_dateTimeSymbols_.DATEFORMATS[L];else L<8?Z=this.JSC$11418_dateTimeSymbols_.TIMEFORMATS[L-4]:(Z=this.JSC$11418_dateTimeSymbols_.DATETIMEFORMATS[L-8],Z=Z.replace("{1}",this.JSC$11418_dateTimeSymbols_.DATEFORMATS[L-8]),Z=Z.replace("{0}",this.JSC$11418_dateTimeSymbols_.TIMEFORMATS[L-
8]));HVt(this,Z)}else HVt(this,L)},HVt=function(L,Z){for(var N=!1,S="",u=0;u<Z.length;u++){var T=Z.charAt(u);
if(XQt.test(T))for(S.length>0&&(L.patternParts_.push({text:S,count:0,abutStart:!1,numeric:!1}),S=""),L.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});u<Z.length-1&&Z.charAt(u+1)==" ";)u++;else if(N)T=="'"?u+1<Z.length&&Z.charAt(u+1)=="'"?(S+="'",u++):N=!1:S+=T;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(T)>=0){S.length>0&&(L.patternParts_.push({text:S,count:0,abutStart:!1,numeric:!1}),S="");for(var W=Z.charAt(u),V=u+1;V<Z.length&&Z.charAt(V)==W;)V++;W=V-u;W<=0?V=!1:(V="MydhHmsSDkK".indexOf(T),
V=V>0||V==0&&W<3);L.patternParts_.push({text:T,count:W,abutStart:!1,numeric:V});u+=W-1}else T=="'"?u+1<Z.length&&Z.charAt(u+1)=="'"?(S+="'",u++):N=!0:S+=T}S.length>0&&L.patternParts_.push({text:S,count:0,abutStart:!1,numeric:!1});Z=!1;for(N=0;N<L.patternParts_.length;N++)L.patternParts_[N].numeric?!Z&&N+1<L.patternParts_.length&&L.patternParts_[N+1].numeric&&(Z=!0,L.patternParts_[N].abutStart=!0):Z=!1};
yFs.prototype.parse=function(L,Z,N){var S=!1,u=!1;N&&(S=N.predictive||!1,u=N.validate||!1);if(S)for(N=0;N<this.patternParts_.length;N++){var T=this.patternParts_[N];if(T.count>0&&("abBhHkKm".indexOf(T.text.charAt(0))<0||T.count>2||T.abutStart))throw Error("ee`"+T.text.charAt(0));}T=new B9V;N=[0];T.dayPeriodIndex=-1;for(var W=0;W<this.patternParts_.length&&!(S&&N[0]>=L.length);W++){if(this.patternParts_[W].count==0){a:{var V=L;var M=N,G=this.patternParts_[W],D=S;if(G.text.match(XQt)!=null){if(G=M[0],
xVs(V,M),M[0]>G){V=!0;break a}}else{if(V.indexOf(G.text,M[0])==M[0]){M[0]+=G.text.length;V=!0;break a}if(D&&G.text.indexOf(V.substring(M[0]))==0){M[0]+=V.length-M[0];V=!0;break a}}V=!1}if(V)continue;return 0}if(this.patternParts_[W].abutStart){a:{M=L;G=N;D=W;var l=G[0],v=0;for(V=D;V<this.patternParts_.length;V++){var R=this.patternParts_[V],K=R.count;if(K===0)break;if(V==D&&(K-=v,v++,K==0)){V=0;break a}var U=V>D&&R.numeric,d=G[0];if(!qC5(this,M,G,R,K,T,!1)||U&&G[0]-d<K)V=D-1,G[0]=l}V-=D}if(V<=0)return 0;
W+=V-1}else if(!qC5(this,L,N,this.patternParts_[W],0,T,S))return 0}a:{L=u;if(Z==null)throw Error("fe");T.era!=void 0&&T.year!=void 0&&T.era==0&&T.year>0&&(T.year=-(T.year-1));T.year!=void 0&&Z.setFullYear(T.year);S=Z.getDate();Z.setDate(1);T.month!=void 0&&Z.setMonth(T.month);T.day!=void 0?Z.setDate(T.day):(u=Nlw(Z.getFullYear(),Z.getMonth()),Z.setDate(S>u?u:S));typeof Z.setHours==="function"&&(T.hours==void 0&&(T.hours=Z.getHours()),T.hours<12&&(T.ampm!=void 0&&T.ampm>0?T.hours+=12:T.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(T.dayPeriodName)||["night1","night2"].includes(T.dayPeriodName)&&T.hours>=6)&&(T.hours+=12)),Z.setHours(T.hours));typeof Z.setMinutes==="function"&&T.minutes!=void 0&&Z.setMinutes(T.minutes);typeof Z.setSeconds==="function"&&T.seconds!=void 0&&Z.setSeconds(T.seconds);typeof Z.setMilliseconds==="function"&&T.milliseconds!=void 0&&Z.setMilliseconds(T.milliseconds);if(L&&(T.year&&T.year!=Z.getFullYear()||T.month&&T.month!=
Z.getMonth()||T.day&&T.day!=Z.getDate()||T.hours&&T.hours>=24||T.minutes&&T.minutes>=60||T.seconds&&T.seconds>=60||T.milliseconds&&T.milliseconds>=1E3))Z=!1;else{T.tzOffset!=void 0&&Z.setTime(Z.getTime()+(T.tzOffset-Z.getTimezoneOffset())*60*1E3);T.ambiguousYear&&(L=new Date,L.setFullYear(L.getFullYear()-80),Z.getTime()<L.getTime()&&Z.setFullYear(L.getFullYear()+100));if(T.dayOfWeek!=void 0)if(T.day==void 0)T=(7+T.dayOfWeek-Z.getDay())%7,T>3&&(T-=7),L=Z.getMonth(),Z.setDate(Z.getDate()+T),Z.getMonth()!=
L&&Z.setDate(Z.getDate()+(T>0?-7:7));else if(T.dayOfWeek!=Z.getDay()){Z=!1;break a}Z=!0}}return Z?N[0]:0};
var qC5=function(L,Z,N,S,u,T,W){xVs(Z,N);if(S.numeric&&u>0&&N[0]+u>Z.length)return!1;switch(S.text.charAt(0)){case "G":return q9(Z,N,[L.JSC$11418_dateTimeSymbols_.ERAS],function(V){return T.era=V}),!0;
case "M":case "L":return LKt(L,Z,N,u,S,T);case "E":return q9(Z,N,[L.JSC$11418_dateTimeSymbols_.WEEKDAYS,L.JSC$11418_dateTimeSymbols_.SHORTWEEKDAYS],function(V){return T.dayOfWeek=V});
case "B":case "b":return u=[],L=[[].concat(L.JSC$11418_dateTimeSymbols_.AMPMS)],u.push("isAm"),u.push("isPm"),Z=q9(Z,N,L,function(V){return T.dayPeriodIndex=V},W),T.dayPeriodName=u[T.dayPeriodIndex],W?Z:!0;
case "a":return Z=q9(Z,N,[L.JSC$11418_dateTimeSymbols_.AMPMS],function(V){return T.ampm=V},W),W?Z:!0;
case "y":return Zls(L,Z,N,S,u,T);case "Q":return q9(Z,N,[L.JSC$11418_dateTimeSymbols_.QUARTERS,L.JSC$11418_dateTimeSymbols_.SHORTQUARTERS],function(V){T.month=V*3;T.day=1});
case "d":return LO(L,Z,N,S,u,function(V){T.day=V}),!0;
case "S":return Nm0(L,Z,N,u,T);case "h":case "K":case "H":case "k":return Z=LO(L,Z,N,S,u,function(V){T.hours=S.text.charAt(0)==="h"&&V===12?0:V},W),W?Z:!0;
case "m":return Z=LO(L,Z,N,S,u,function(V){T.minutes=V},W),W?Z:!0;
case "s":return LO(L,Z,N,S,u,function(V){T.seconds=V}),!0;
case "z":case "Z":case "v":return SSh(L,Z,N,T);default:return!1}},Zls=function(L,Z,N,S,u,T){var W=N[0];
u=Zc(L,Z,N,u);u===null&&(u=Zc(L,Z,N,0,!0));if(u===null)return!1;u>=0&&N[0]-W==2&&S.count==2?(L=u,Z=(new Date).getFullYear()-80,N=Z%100,T.ambiguousYear=L==N,L+=Math.floor(Z/100)*100+(L<N?100:0),T.year=L):T.year=u;return!0},LKt=function(L,Z,N,S,u,T){return u.numeric&&LO(L,Z,N,u,S,function(W){T.month=W-1})?!0:q9(Z,N,[L.JSC$11418_dateTimeSymbols_.MONTHS,
L.JSC$11418_dateTimeSymbols_.STANDALONEMONTHS,L.JSC$11418_dateTimeSymbols_.SHORTMONTHS,L.JSC$11418_dateTimeSymbols_.STANDALONESHORTMONTHS],function(W){T.month=W})},Nm0=function(L,Z,N,S,u){var T=N[0];
L=Zc(L,Z,N,S);if(L===null)return!1;N=N[0]-T;u.milliseconds=N<3?L*Math.pow(10,3-N):Math.round(L/Math.pow(10,N-3));return!0},SSh=function(L,Z,N,S){Z.indexOf("GMT",N[0])==N[0]&&(N[0]+=3);
if(N[0]>=Z.length)return S.tzOffset=0,!0;var u=N[0],T=Zc(L,Z,N,0,!0);if(T===null)return!1;if(N[0]<Z.length&&Z.charAt(N[0])==":"){var W=T*60;N[0]++;T=Zc(L,Z,N,0);if(T===null)return!1;W+=T}else W=T,W=W<24&&N[0]-u<=3?W*60:W%100+W/100*60;S.tzOffset=-W;return!0},LO=function(L,Z,N,S,u,T,W){W=W||!1;
var V=N[0];L=Zc(L,Z,N,u);if(L===null)return!1;if(W&&N[0]-V<S.count){if(N[0]<Z.length)return!1;L*=Math.pow(10,S.count-(N[0]-V))}T(L);return!0},q9=function(L,Z,N,S,u){u=u||!1;
for(var T,W=0;W<N.length;W++){T=Z;for(var V=N[W],M=u,G=0,D=null,l=L.substring(T[0]).toLowerCase(),v=0;v<V.length;v++){var R=V[v].toLowerCase();if(M&&R.indexOf(l)==0){G=l.length;D=v;break}V[v].length>G&&l.indexOf(R)==0&&(G=V[v].length,D=v)}D!==null&&(T[0]+=G);T=D;if(T!==null)return S(T),!0}return!1},xVs=function(L,Z){(L=L.substring(Z[0]).match(ASt))&&(Z[0]+=L[0].length)},Zc=function(L,Z,N,S,u){Z=S>0?Z.substring(0,N[0]+S):Z;
u=u||!1;if(L.JSC$11418_dateTimeSymbols_.ZERODIGIT){S=[];for(var T=N[0];T<Z.length;T++){var W=Z.charCodeAt(T)-L.JSC$11418_dateTimeSymbols_.ZERODIGIT;S.push(0<=W&&W<=9?String.fromCharCode(W+48):Z.charAt(T))}Z=S.join("")}else Z=Z.substring(N[0]);L=Z.match(new RegExp("^"+(u?"[+-]?":"")+"\\d+"));if(!L)return null;N[0]+=L[0].length;return parseInt(L[0],10)},B9V=function(){};
B9V.prototype.ambiguousYear=!1;var ils;
ils={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 uMl={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}"]};
uMl={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 Tm5=function(){var L={type:"unit",style:"narrow"};this.listType_=L&&L.type?L.type:"conjunction";this.listStyle_=L&&L.style?L.style:"long";this.listSymbols_=uMl;L=0;switch(this.listStyle_){case "short":L=1;break;case "narrow":L=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[L];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[L];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[L];this.listEndPattern_=
this.listSymbols_.AND_END[L];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[L];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[L];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[L];this.listEndPattern_=this.listSymbols_.OR_END[L];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[L],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[L],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[L],this.listEndPattern_=this.listSymbols_.UNIT_END[L]}};
Tm5.prototype.format=function(L){return tCh(this,L)};
var tCh=function(L,Z){var N=Z.length;switch(N){case 0:return"";case 1:return String(Z[0]);case 2:return L.listTwoPattern_.replace("{0}",String(Z[0])).replace("{1}",String(Z[1]))}for(var S=L.listStartPattern_.replace("{0}",String(Z[0])).replace("{1}",String(Z[1])),u=2;u<N-1;++u)S=L.listMiddlePattern_.replace("{0}",S).replace("{1}",String(Z[u]));return L.listEndPattern_.replace("{0}",S).replace("{1}",String(Z[N-1]))};var OlQ={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"},WKY=OlQ,VCL=OlQ;VCL=WKY=OlQ;var MCV,NR,i0,SZG,SQ,bll;
_.eM=function(L,Z,N,S){var u;if(u=Z){a:if(Z&&Z.length===3){for(u=0;u<3;u++){var T=Z[u];if(T<"A"||T>"Z"&&T<"a"||T>"z"){u=!1;break a}}u=!0}else u=!1;u=!u}if(u)throw new TypeError("ge");this.intlCurrencyCode_=Z?Z.toUpperCase():null;this.currencyStyle_=N||0;this.overrideNumberFormatSymbols_=S||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_=NR(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof L==="number")switch(L){case 1:SQ(this,NR(this).DECIMAL_PATTERN);break;case 2:SQ(this,NR(this).SCIENTIFIC_PATTERN);break;case 3:SQ(this,NR(this).PERCENT_PATTERN);break;case 4:L=NR(this).CURRENCY_PATTERN;Z=["0"];if(N=
Ap[i0(this)]){N=N[0]&7;if(N>0)for(Z.push("."),S=0;S<N;S++)Z.push("0");L=L.replace(/0.00/g,Z.join(""))}SQ(this,L);break;case 5:bll(this,1);break;case 6:bll(this,2);break;default:throw Error("je");}else SQ(this,L)};
MCV=!1;NR=function(L){return L.overrideNumberFormatSymbols_||(MCV?VCL:WKY)};
i0=function(L){return L.intlCurrencyCode_||NR(L).DEF_CURRENCY_CODE};
SZG=function(L,Z){if(Z>308)throw Error("ie`"+Z);L.maximumFractionDigits_=Z;return L};
SQ=function(L,Z){var N=[0];L.positivePrefix_=g9s(L,Z,N);for(var S=N[0],u=-1,T=0,W=0,V=0,M=-1,G=Z.length,D=!0;N[0]<G&&D;N[0]++)switch(Z.charAt(N[0])){case "#":W>0?V++:T++;M>=0&&u<0&&M++;break;case "0":if(V>0)throw Error("pe`"+Z);W++;M>=0&&u<0&&M++;break;case ",":M>0&&L.groupingArray_.push(M);M=0;break;case ".":if(u>=0)throw Error("qe`"+Z);u=T+W+V;break;case "E":if(L.useExponentialNotation_)throw Error("re`"+Z);L.useExponentialNotation_=!0;L.minExponentDigits_=0;N[0]+1<G&&Z.charAt(N[0]+1)=="+"&&(N[0]++,
L.useSignForPositiveExponent_=!0);for(;N[0]+1<G&&Z.charAt(N[0]+1)=="0";)N[0]++,L.minExponentDigits_++;if(T+W<1||L.minExponentDigits_<1)throw Error("se`"+Z);D=!1;break;default:N[0]--,D=!1}W==0&&T>0&&u>=0&&(W=u,W==0&&W++,V=T-W,T=W-1,W=1);if(u<0&&V>0||u>=0&&(u<T||u>T+W)||M==0)throw Error("te`"+Z);V=T+W+V;L.maximumFractionDigits_=u>=0?V-u:0;u>=0&&(L.minimumFractionDigits_=T+W-u,L.minimumFractionDigits_<0&&(L.minimumFractionDigits_=0));L.minimumIntegerDigits_=(u>=0?u:V)-T;L.useExponentialNotation_&&(L.maximumIntegerDigits_=
T+L.minimumIntegerDigits_,L.maximumFractionDigits_==0&&L.minimumIntegerDigits_==0&&(L.minimumIntegerDigits_=1));L.groupingArray_.push(Math.max(0,M));L.decimalSeparatorAlwaysShown_=u==0||u==V;S=N[0]-S;L.positiveSuffix_=g9s(L,Z,N);N[0]<Z.length&&Z.charAt(N[0])==";"?(N[0]++,L.multiplier_!=1&&(L.negativePercentSignExpected_=!0),L.negativePrefix_=g9s(L,Z,N),N[0]+=S,L.negativeSuffix_=g9s(L,Z,N)):(L.negativePrefix_+=L.positivePrefix_,L.negativeSuffix_+=L.positiveSuffix_)};
bll=function(L,Z){L.compactStyle_=Z;SQ(L,NR(L).DECIMAL_PATTERN);L.minimumFractionDigits_=0;SZG(L,2);if(L.minimumFractionDigits_>0)throw Error("he");L.significantDigits_=2};
_.eM.prototype.parse=function(L,Z){Z=Z||[0];if(this.compactStyle_!==0)throw Error("ke");L=L.replace(/ |\u202f/g,"\u00a0");var N=L.indexOf(this.positivePrefix_,Z[0])==Z[0],S=L.indexOf(this.negativePrefix_,Z[0])==Z[0];N&&S&&(this.positivePrefix_.length>this.negativePrefix_.length?S=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(N=!1));N?Z[0]+=this.positivePrefix_.length:S&&(Z[0]+=this.negativePrefix_.length);if(L.indexOf(NR(this).INFINITY,Z[0])==Z[0]){Z[0]+=NR(this).INFINITY.length;var u=
Infinity}else{u=L;var T=!1,W=!1,V=!1,M=-1,G=1,D=NR(this).DECIMAL_SEP,l=NR(this).GROUP_SEP,v=NR(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("le");l=l.replace(/\u202f/g,"\u00a0");for(var R="";Z[0]<u.length;Z[0]++){var K=u.charAt(Z[0]),U=GqQ(this,K);if(U>=0&&U<=9)R+=U,V=!0;else if(K==D.charAt(0)){if(T||W)break;R+=".";T=!0}else if(K==l.charAt(0)&&("\u00a0"!=l.charAt(0)||Z[0]+1<u.length&&GqQ(this,u.charAt(Z[0]+1))>=0)){if(T||W)break}else if(K==v.charAt(0)){if(W)break;R+="E";W=!0;M=Z[0]}else if(K==
"+"||K=="-"){if(V&&M!=Z[0]-1)break;R+=K}else if(this.multiplier_==1&&K==NR(this).PERCENT.charAt(0)){if(G!=1)break;G=100;if(V){Z[0]++;break}}else if(this.multiplier_==1&&K==NR(this).PERMILL.charAt(0)){if(G!=1)break;G=1E3;if(V){Z[0]++;break}}else break}this.multiplier_!=1&&(G=this.multiplier_);u=parseFloat(R)/G}if(N){if(L.indexOf(this.positiveSuffix_,Z[0])!=Z[0])return NaN;Z[0]+=this.positiveSuffix_.length}else if(S){if(L.indexOf(this.negativeSuffix_,Z[0])!=Z[0])return NaN;Z[0]+=this.negativeSuffix_.length}return S?
-u:u};
_.eM.prototype.format=function(L){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("me");if(isNaN(L))return NR(this).NAN;var Z=[];var N=L;if(this.compactStyle_==0)N=u0;else{N=Math.abs(N);var S=FKO(this,N<=1?0:$rQ(N)).divisorBase;N=FKO(this,S+$rQ(Drl(this,T_(N,-S)).intValue))}L=T_(L,-N.divisorBase);(S=L<0||L==0&&1/L<0)?N.negative_prefix?Z.push(N.negative_prefix):(Z.push(N.prefix),Z.push(this.negativePrefix_)):(Z.push(N.prefix),Z.push(this.positivePrefix_));if(isFinite(L))if(L*=
S?-1:1,L*=this.multiplier_,this.useExponentialNotation_){var u=L;if(u==0)l75(this,u,this.minimumIntegerDigits_,Z),v9L(this,0,Z);else{var T=Math.floor(Math.log(u)/Math.log(10)+2E-15);u=T_(u,-T);var W=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(W=T%this.maximumIntegerDigits_,W<0&&(W=this.maximumIntegerDigits_+W),u=T_(u,W),T-=W,W=1):this.minimumIntegerDigits_<1?(T++,u=T_(u,-1)):(T-=this.minimumIntegerDigits_-1,u=T_(u,this.minimumIntegerDigits_-
1));l75(this,u,W,Z);v9L(this,T,Z)}}else l75(this,L,this.minimumIntegerDigits_,Z);else Z.push(NR(this).INFINITY);S?N.negative_suffix?Z.push(N.negative_suffix):(isFinite(L)&&Z.push(N.suffix),Z.push(this.negativeSuffix_)):(isFinite(L)&&Z.push(N.suffix),Z.push(this.positiveSuffix_));return Z.join("")};
var Drl=function(L,Z){var N=T_(Z,L.maximumFractionDigits_);L.significantDigits_>0&&(N=o9q(N,L.significantDigits_,L.maximumFractionDigits_));N=Math.round(N);if(isFinite(N)){var S=Math.floor(T_(N,-L.maximumFractionDigits_));N=Math.floor(N-T_(S,L.maximumFractionDigits_));if(N<0||N>=T_(1,L.maximumFractionDigits_))S=Math.round(Z),N=0}else S=Z,N=0;return{intValue:S,fracValue:N}},l75=function(L,Z,N,S){if(L.minimumFractionDigits_>L.maximumFractionDigits_)throw Error("me");
S||(S=[]);Z=Drl(L,Z);var u=Z.intValue,T=Z.fracValue,W=L.minimumFractionDigits_>0||T>0||!1;Z=L.minimumFractionDigits_;W&&(Z=L.minimumFractionDigits_);for(var V="",M=u;M>1E20;)V="0"+V,M=Math.round(T_(M,-1));V=M+V;var G=NR(L).DECIMAL_SEP;M=NR(L).ZERO_DIGIT.codePointAt(0);var D=V.length,l=0;if(u>0||N>0){for(u=D;u<N;u++)S.push(String.fromCodePoint(M));if(L.groupingArray_.length>=2)for(N=1;N<L.groupingArray_.length;N++)l+=L.groupingArray_[N];N=D-l;if(N>0){u=L.groupingArray_;l=D=0;for(var v,R=NR(L).GROUP_SEP,
K=V.length,U=0;U<K;U++)if(S.push(String.fromCodePoint(M+Number(V.charAt(U)))),K-U>1)if(v=u[l],U<N){var d=N-U;(v===1||v>0&&d%v===1)&&S.push(R)}else l<u.length&&(U===N?l+=1:v===U-N-D+1&&(S.push(R),D+=v,l+=1))}else{N=V;V=L.groupingArray_;u=NR(L).GROUP_SEP;v=N.length;R=[];for(D=V.length-1;D>=0&&v>0;D--){l=V[D];for(K=0;K<l&&v-K-1>=0;K++)R.push(String.fromCodePoint(M+Number(N.charAt(v-K-1))));v-=l;v>0&&R.push(u)}S.push.apply(S,R.reverse())}}else W||S.push(String.fromCodePoint(M));(L.decimalSeparatorAlwaysShown_||
W)&&S.push(G);T=String(T);W=T.split("e+");W.length==2&&(T=String(o9q(parseFloat(W[0]),L.significantDigits_,1)),T=T.replace(".",""),T+=(0,_.Zs5)("0",parseInt(W[1],10)-T.length+1));L.maximumFractionDigits_+1>T.length&&(T="1"+(0,_.Zs5)("0",L.maximumFractionDigits_-T.length)+T);for(L=T.length;T.charAt(L-1)=="0"&&L>Z+1;)L--;for(Z=1;Z<L;Z++)S.push(String.fromCodePoint(M+Number(T.charAt(Z))))},v9L=function(L,Z,N){N.push(NR(L).EXP_SYMBOL);
Z<0?(Z=-Z,N.push(NR(L).MINUS_SIGN)):L.useSignForPositiveExponent_&&N.push(NR(L).PLUS_SIGN);Z=""+Z;for(var S=NR(L).ZERO_DIGIT,u=Z.length;u<L.minExponentDigits_;u++)N.push(S);L=S.codePointAt(0)-Rst;for(S=0;S<Z.length;S++)N.push(String.fromCodePoint(L+Z.codePointAt(S)))},GqQ=function(L,Z){Z=Z.codePointAt(0);
if(48<=Z&&Z<58)return Z-48;L=NR(L).ZERO_DIGIT.codePointAt(0);return L<=Z&&Z<L+10?Z-L:-1},Rst="0".codePointAt(0),g9s=function(L,Z,N){for(var S="",u=!1,T=Z.length;N[0]<T;N[0]++){var W=Z.charAt(N[0]);
if(W=="'")N[0]+1<T&&Z.charAt(N[0]+1)=="'"?(N[0]++,S+="'"):u=!u;else if(u)S+=W;else switch(W){case "#":case "0":case ",":case ".":case ";":return S;case "\u00a4":if(N[0]+1<T&&Z.charAt(N[0]+1)=="\u00a4")N[0]++,S+=i0(L);else switch(L.currencyStyle_){case 0:W=i0(L);S+=W in Ap?Ap[W][1]:W;break;case 2:W=i0(L);var V=Ap[W];S+=V?W==V[1]?W:W+" "+V[1]:W;break;case 1:W=i0(L),S+=W in Ap?Ap[W][2]:W}break;case "%":if(!L.negativePercentSignExpected_&&L.multiplier_!=1)throw Error("ne");if(L.negativePercentSignExpected_&&
L.multiplier_!=100)throw Error("oe");L.multiplier_=100;L.negativePercentSignExpected_=!1;S+=NR(L).PERCENT;break;case "\u2030":if(!L.negativePercentSignExpected_&&L.multiplier_!=1)throw Error("ne");if(L.negativePercentSignExpected_&&L.multiplier_!=1E3)throw Error("oe");L.multiplier_=1E3;L.negativePercentSignExpected_=!1;S+=NR(L).PERMILL;break;default:S+=W}}return S},u0={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},FKO=function(L,Z){L=L.compactStyle_==1?XO.COMPACT_DECIMAL_SHORT_PATTERN:XO.COMPACT_DECIMAL_LONG_PATTERN;L==null&&(L=XO.COMPACT_DECIMAL_SHORT_PATTERN);if(Z<3)return u0;Z=Math.min(14,Z);var N=L[T_(1,Z)];for(--Z;!N&&Z>=3;)N=L[T_(1,Z)],Z--;if(!N)return u0;N=N.other;var S=L="",u=N.indexOf(";");u>=0&&(N=N.substring(0,u),u=N.substring(u+1))&&(S=/([^0]*)(0+)(.*)/.exec(u),L=S[1],S=S[3]);return N&&N!="0"?(N=/([^0]*)(0+)(.*)/.exec(N))?{divisorBase:Z+
1-(N[2].length-1),negative_prefix:L,negative_suffix:S,prefix:N[1],suffix:N[3]}:u0:u0},$rQ=function(L){if(!isFinite(L))return L>0?L:0;
for(var Z=0;(L/=10)>=1;)Z++;return Z},T_=function(L,Z){if(!L||!isFinite(L)||Z==0)return L;
L=String(L).split("e");return parseFloat(L[0]+"e"+(parseInt(L[1]||0,10)+Z))},cut=function(L,Z){return L&&isFinite(L)?T_(Math.round(T_(L,Z)),-Z):L},o9q=function(L,Z,N){if(!L)return L;
Z=Z-$rQ(L)-1;return Z<-N?cut(L,-N):cut(L,Z)};var n9Y=function(L){return L%10==1&&L%100!=11?"one":L%10==2&&L%100!=12?"two":L%10==3&&L%100!=13?"few":"other"},KK0=n9Y;
KK0=n9Y;var f7t=function(L,Z){var N=L|0;if(void 0===Z){Z=Math;var S=Z.min,u=L+"",T=u.indexOf(".");Z=S.call(Z,T===-1?0:u.length-T-1,3)}S=Math.pow(10,Z);L={v:Z,f:(L*S|0)%S};return N==1&&L.v==0?"one":"other"},U9=f7t;
U9=f7t;var UrY=function(L){this.JSC$11461_pattern_=L;this.parsedPattern_=this.literals_=this.initialLiterals_=null;L=WKY;var Z=XO;if(kqQ!==L||yus!==Z)kqQ=L,yus=Z,wTt=new _.eM(1);this.numberFormatter_=wTt},kqQ=null,yus=null,wTt=null,YSV=RegExp("'([{}#].*?)'","g"),esq=RegExp("''","g");
UrY.prototype.format=function(L){if(this.JSC$11461_pattern_){this.initialLiterals_=[];var Z=I7L(this,this.JSC$11461_pattern_);this.parsedPattern_=drQ(this,Z);this.JSC$11461_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.mh(this.initialLiterals_),Z=[],a70(this,this.parsedPattern_,L,!1,Z),L=Z.join("");this.literals_.length>0;)L=L.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else L="";return L};
var a70=function(L,Z,N,S,u){for(var T=0;T<Z.length;T++)switch(Z[T].type){case 4:u.push(Z[T].value);break;case 3:var W=Z[T].value;var V=L,M=u,G=N[W];G===void 0?M.push("Undefined parameter - "+W):(V.literals_.push(G),M.push(V.buildPlaceholder_(V.literals_)));break;case 2:W=Z[T].value;V=L;M=N;G=S;var D=u,l=W.argumentIndex;M[l]===void 0?D.push("Undefined parameter - "+l):(l=W[M[l]],l===void 0&&(l=W.other),a70(V,l,M,G,D));break;case 0:W=Z[T].value;hsY(L,W,N,U9,S,u);break;case 1:W=Z[T].value,hsY(L,W,N,
KK0,S,u)}},hsY=function(L,Z,N,S,u,T){var W=Z.argumentIndex,V=Z.argumentOffset,M=+N[W];
isNaN(M)?T.push("Undefined or invalid parameter - "+W):(V=M-V,W=Z[N[W]],W===void 0&&(S=S(Math.abs(V)),W=Z[S],W===void 0&&(W=Z.other)),Z=[],a70(L,W,N,u,Z),N=Z.join(""),u?T.push(N):(L=L.numberFormatter_.format(V),T.push(N.replace(/#/g,L))))},I7L=function(L,Z){var N=L.initialLiterals_,S=L.buildPlaceholder_.bind(L);
Z=Z.replace(esq,function(){N.push("'");return S(N)});
return Z=Z.replace(YSV,function(u,T){N.push(T);return S(N)})},sb5=function(L){var Z=0,N=[],S=[],u=/[{}]/g;
u.lastIndex=0;for(var T;T=u.exec(L);){var W=T.index;T[0]=="}"?(N.pop(),N.length==0&&(T={type:1},T.value=L.substring(Z,W),S.push(T),Z=W+1)):(N.length==0&&(Z=L.substring(Z,W),Z!=""&&S.push({type:0,value:Z}),Z=W+1),N.push("{"))}L=L.substring(Z);L!=""&&S.push({type:0,value:L});return S},jbL=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,E9V=/^\s*(\w+)\s*,\s*selectordinal\s*,/,Pjt=/^\s*(\w+)\s*,\s*select\s*,/,drQ=function(L,Z){var N=[];
Z=sb5(Z);for(var S=0;S<Z.length;S++){var u={};if(0==Z[S].type)u.type=4,u.value=Z[S].value;else if(1==Z[S].type){var T=Z[S].value;switch(jbL.test(T)?0:E9V.test(T)?1:Pjt.test(T)?2:/^\s*\w+\s*/.test(T)?3:5){case 2:u.type=2;u.value=pTh(L,Z[S].value);break;case 0:u.type=0;u.value=zsN(L,Z[S].value);break;case 1:u.type=1;u.value=mrq(L,Z[S].value);break;case 3:u.type=3,u.value=Z[S].value}}N.push(u)}return N},pTh=function(L,Z){var N="";
Z=Z.replace(Pjt,function(V,M){N=M;return""});
var S={};S.argumentIndex=N;Z=sb5(Z);for(var u=0;u<Z.length;){var T=Z[u].value;u++;var W=void 0;1==Z[u].type&&(W=drQ(L,Z[u].value));S[T.replace(/\s/g,"")]=W;u++}return S},zsN=function(L,Z){var N="",S=0;
Z=Z.replace(jbL,function(M,G,D){N=G;D&&(S=parseInt(D,10));return""});
var u={};u.argumentIndex=N;u.argumentOffset=S;Z=sb5(Z);for(var T=0;T<Z.length;){var W=Z[T].value;T++;var V=void 0;1==Z[T].type&&(V=drQ(L,Z[T].value));u[W.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=V;T++}return u},mrq=function(L,Z){var N="";
Z=Z.replace(E9V,function(V,M){N=M;return""});
var S={};S.argumentIndex=N;S.argumentOffset=0;Z=sb5(Z);for(var u=0;u<Z.length;){var T=Z[u].value;u++;var W=void 0;1==Z[u].type&&(W=drQ(L,Z[u].value));S[T.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=W;u++}return S};
UrY.prototype.buildPlaceholder_=function(L){return"\ufddf_"+(L.length-1).toString(10)+"_"};var ODH=function(){var L={style:1},Z=Jut;this.style_=(L==null?void 0:L.style)||0;this.durationSymbols_=Z||ils},CjL=function(L,Z){switch(Z){default:case "years":return L.durationSymbols_.YEAR;
case "months":return L.durationSymbols_.MONTH;case "weeks":return L.durationSymbols_.WEEK;case "days":return L.durationSymbols_.DAY;case "hours":return L.durationSymbols_.HOUR;case "minutes":return L.durationSymbols_.MINUTE;case "seconds":return L.durationSymbols_.SECOND}},tw=function(L,Z,N){a:{N=CjL(L,N);
switch(L.style_){case 1:if(N.LONG!=void 0){L=N.LONG;break a}case 2:if(N.NARROW!=void 0){L=N.NARROW;break a}default:L=N.SHORT;break a}L=void 0}return L?(new UrY("{DURATION_VALUE,plural,"+L+"}")).format({DURATION_VALUE:Z}):""};
ODH.prototype.format=function(L){var Z=[],N=L.years,S=L.months,u=L.weeks,T=L.days,W=L.hours,V=L.minutes;L=L.seconds;N!=null&&Z.push(tw(this,N,"years"));S!=null&&Z.push(tw(this,S,"months"));u!=null&&Z.push(tw(this,u,"weeks"));T!=null&&Z.push(tw(this,T,"days"));W!=null&&Z.push(tw(this,W,"hours"));V!=null&&Z.push(tw(this,V,"minutes"));L!=null&&Z.push(tw(this,L,"seconds"));return(new Tm5).format(Z)};var ruI;
ruI={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 Ljf=function(){this.rdtfSymbols_=QbY||ruI;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
Ljf.prototype.format=function(L,Z){a:{Z=XTL(this,Z);switch(this.style_){case 2:if(Z.NARROW!=void 0){Z=Z.NARROW;break a}case 1:if(Z.SHORT!=void 0){Z=Z.SHORT;break a}default:Z=Z.LONG;break a}Z=void 0}if(!this.alwaysNumeric_&&Z&&Z.R&&Z.R[""+L])L=Z.R[""+L];else if(Z){var N=Math.abs(L);L=(new UrY("{N,plural,"+(L>0||L==0&&1/L==Infinity?Z.F:Z.P)+"}")).format({N:N})}else L="";return L};
var XTL=function(L,Z){switch(Z){default:case 0:return L.rdtfSymbols_.YEAR;case 1:return L.rdtfSymbols_.QUARTER;case 2:return L.rdtfSymbols_.MONTH;case 3:return L.rdtfSymbols_.WEEK;case 4:return L.rdtfSymbols_.DAY;case 5:return L.rdtfSymbols_.HOUR;case 6:return L.rdtfSymbols_.MINUTE;case 7:return L.rdtfSymbols_.SECOND}};var AuM=function(L,Z,N,S,u,T,W,V){this.x0=L;this.y0=Z;this.x1=N;this.y1=S;this.x2=u;this.y2=T;this.x3=W;this.y3=V};
AuM.prototype.clone=function(){return new AuM(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
AuM.prototype.equals=function(L){return this.x0==L.x0&&this.y0==L.y0&&this.x1==L.x1&&this.y1==L.y1&&this.x2==L.x2&&this.y2==L.y2&&this.x3==L.x3&&this.y3==L.y3};
var HlO=function(L,Z){if(Z==0)return L.x0;if(Z==1)return L.x3;var N=K7(L.x0,L.x1,Z),S=K7(L.x1,L.x2,Z);L=K7(L.x2,L.x3,Z);N=K7(N,S,Z);S=K7(S,L,Z);return K7(N,S,Z)},Bmq=function(L,Z){var N=(Z-L.x0)/(L.x3-L.x0);
if(N<=0)return 0;if(N>=1)return 1;for(var S=0,u=1,T=0,W=0;W<8;W++){T=HlO(L,N);var V=(HlO(L,N+1E-6)-T)/1E-6;if(Math.abs(T-Z)<1E-6)return N;if(Math.abs(V)<1E-6)break;else T<Z?S=N:u=N,N-=(T-Z)/V}for(W=0;Math.abs(T-Z)>1E-6&&W<8;W++)T<Z?(S=N,N=(N+u)/2):(u=N,N=(N+S)/2),T=HlO(L,N);return N};var Ob=function(){_.Kc.call(this);this.JSC$11482_name_="closure_frame"+xr0++;this.iframesForDisposal_=[];qSY[this.JSC$11482_name_]=this},WD;
_.Qk(Ob,_.Kc);var qSY={},xr0=0,L4l=function(L,Z){var N=Im(L);uvQ(Z,function(S,u){Array.isArray(S)||(S=[S]);_.SZ(S,function(T){T=N.JSC$9327_createDom("INPUT",{type:"hidden",name:u,value:T});L.appendChild(T)})})};
_.t=Ob.prototype;_.t.JSC$11484_form_=null;_.t.JSC$11484_iframe_=null;_.t.iframeName_=null;_.t.nextIframeId_=0;_.t.JSC$11484_active_=!1;_.t.complete_=!1;_.t.success_=!1;_.t.lastContent_=null;_.t.JSC$11484_lastErrorCode_=0;_.t.iframeDisposalTimer_=null;
_.t.send=function(L,Z,N,S){if(this.JSC$11484_active_)throw Error("ue");L=new _.j9(L);Z=Z?Z.toUpperCase():"GET";N&&_.M6(L);WD||(WD=_.wI("FORM"),WD.acceptCharset="utf-8",N=WD.style,N.position="absolute",N.visibility="hidden",N.top=N.left="-10px",N.width=N.height="10px",N.overflow="hidden",document.body.appendChild(WD));this.JSC$11484_form_=WD;Z=="GET"&&L4l(this.JSC$11484_form_,L.JSC$10031_queryData_);S&&L4l(this.JSC$11484_form_,S);N=L.toString();N=J3x(N);S=this.JSC$11484_form_;N=_.rw(hf(N));N!==void 0&&
(S.action=N);this.JSC$11484_form_.method=Z;Zmh(this);N3O(this)};
_.t.abort=function(L){if(this.JSC$11484_active_){var Z=V0(this);if(Z)if(R8(Z))Z.removeAllListeners(void 0);else if(Z=cn(Z)){var N=0,S;for(S in Z.listeners)for(var u=Z.listeners[S].concat(),T=0;T<u.length;++T)bn(u[T])&&++N}this.success_=this.JSC$11484_active_=this.complete_=!1;this.JSC$11484_lastErrorCode_=L||7;this.dispatchEvent("abort");Sih(this)}};
_.t.disposeInternal=function(){this.JSC$11484_active_&&this.abort();Ob.superClass_.disposeInternal.call(this);this.JSC$11484_iframe_&&im5(this);N3O(this);this.JSC$11484_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11484_form_=null;this.JSC$11484_lastErrorCode_=0;delete qSY[this.JSC$11482_name_]};
_.t.isComplete=function(){return this.complete_};
_.t.isSuccess=function(){return this.success_};
_.t.isActive=function(){return this.JSC$11484_active_};
_.t.getResponseText=function(){return this.lastContent_};
_.t.getLastError=function(){return _.haY(this.JSC$11484_lastErrorCode_)};
var Zmh=function(L){L.JSC$11484_active_=!0;L.complete_=!1;L.JSC$11484_lastErrorCode_=0;L.iframeName_=L.JSC$11482_name_+"_"+(L.nextIframeId_++).toString(36);L.JSC$11484_iframe_=Im(L.JSC$11484_form_).JSC$9327_createDom("IFRAME",{name:L.iframeName_,id:L.iframeName_});var Z=L.JSC$11484_iframe_.style;Z.visibility="hidden";Z.width=Z.height="10px";Z.display="none";_.qH?Z.marginTop=Z.marginLeft="-10px":(Z.position="absolute",Z.top=Z.left="-10px");Im(L.JSC$11484_form_).JSC$9325_document_.body.appendChild(L.JSC$11484_iframe_);
Z=L.iframeName_+"_inner";var N=R2Y(L.JSC$11484_iframe_);if(document.baseURI){var S=qV(Z);S='<head><base href="'+qV(document.baseURI)+'"></head><body><iframe id="'+S+'" name="'+S+'"></iframe>';S=Af(S)}else S=qV(Z),S=Af('<body><iframe id="'+S+'" name="'+S+'"></iframe>');N.write(xV(S));_.Gl(N.getElementById(Z),"load",L.onIframeLoaded_,!1,L);S=Y$("TEXTAREA",L.JSC$11484_form_);for(var u=0,T=S.length;u<T;u++){var W=S[u].value;yjq(S[u])!=W&&(_.hY(S[u],W),S[u].value=W)}S=N.importNode(L.JSC$11484_form_,!0);
S.target=Z;S.action=L.JSC$11484_form_.action;N.body.appendChild(S);u=Y$("SELECT",L.JSC$11484_form_);T=Y$("SELECT",S);W=0;for(var V=u.length;W<V;W++)for(var M=Y$("OPTION",u[W]),G=Y$("OPTION",T[W]),D=0,l=M.length;D<l;D++)G[D].selected=M[D].selected;u=Y$("INPUT",L.JSC$11484_form_);T=Y$("INPUT",S);W=0;for(V=u.length;W<V;W++)if(u[W].type=="file"&&u[W].value!=T[W].value){L.JSC$11484_form_.target=Z;S=L.JSC$11484_form_;break}try{L.errorHandled_=!1,S.submit(),N.close(),_.xM&&setTimeout(L.testForFirefoxSilentError_.bind(L),
250)}catch(v){_.nc(N.getElementById(Z),"load",L.onIframeLoaded_,!1,L),N.close(),b0(L,2)}};
Ob.prototype.onIframeLoaded_=function(){_.nc(V0(this),"load",this.onIframeLoaded_,!1,this);try{var L=this.JSC$11484_iframe_?R2Y(V0(this)):null;this.complete_=!0;this.JSC$11484_active_=!1;try{var Z=L.body;this.lastContent_=Z.textContent||Z.innerText}catch(u){var N=1}var S;N||typeof this.errorChecker_!="function"||(S=this.errorChecker_(L))&&(N=4);N?b0(this,N):(this.success_=!0,this.JSC$11484_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Sih(this))}catch(u){b0(this,1)}};
var b0=function(L,Z){L.errorHandled_||(L.success_=!1,L.JSC$11484_active_=!1,L.complete_=!0,L.JSC$11484_lastErrorCode_=Z,L.dispatchEvent("complete"),L.dispatchEvent("error"),Sih(L),L.errorHandled_=!0)},Sih=function(L){im5(L);
N3O(L);L.JSC$11484_form_=null;L.dispatchEvent("ready")},im5=function(L){var Z=L.JSC$11484_iframe_;
Z&&(Z.onreadystatechange=null,Z.onload=null,Z.onerror=null,L.iframesForDisposal_.push(Z));L.iframeDisposalTimer_&&(clearTimeout(L.iframeDisposalTimer_),L.iframeDisposalTimer_=null);_.xM?L.iframeDisposalTimer_=setTimeout(L.disposeIframes_.bind(L),2E3):L.disposeIframes_();L.JSC$11484_iframe_=null;L.iframeName_=null};
Ob.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var L=this.iframesForDisposal_.pop();_.U_(L)}};
var N3O=function(L){L.JSC$11484_form_&&L.JSC$11484_form_==WD&&_.es(L.JSC$11484_form_)},V0=function(L){return L.JSC$11484_iframe_?R2Y(L.JSC$11484_iframe_).getElementById(L.iframeName_+"_inner"):null};
Ob.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11484_active_){var L=this.JSC$11484_iframe_?R2Y(V0(this)):null;L&&!smH(L,"documentUri")?(_.nc(V0(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?b0(this,3):b0(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.MR=function(L){return L=="\r"||L=="\n"||L==" "||L=="\t"};var uTs;_.gE=function(L){this.errorMessage_=null;this.result_=[];this.JSC$11486_buffer_="";this.stack_=[];this.JSC$11486_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!L||!L.deliverMessageAsRawString)};
uTs={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,NUM_DIGIT:20};_.gE.prototype.isInputValid=function(){return this.streamState_!=3};
_.gE.prototype.done=function(){return this.streamState_===2};
var G_=function(L,Z,N){L.streamState_=3;L.errorMessage_="The stream is broken @"+L.JSC$11486_pos_+"/"+N+". With input:\n"+Z;throw Error(L.errorMessage_);};
_.gE.prototype.acceptsBinaryInput=function(){return!1};
_.gE.prototype.parse=function(L){function Z(){for(;v<L.length;)if(_.MR(L[v]))v++,T.JSC$11486_pos_++;else break;return v<G}
function N(){for(var K;;){K=L[v++];if(!K)break;T.JSC$11486_pos_++;switch(T.state_){case M.INIT:K==="{"?T.state_=M.OBJECT_OPEN:K==="["?T.state_=M.ARRAY_OPEN:_.MR(K)||G_(T,L,v);continue;case M.KEY_START:case M.OBJECT_OPEN:if(_.MR(K))continue;if(T.state_===M.KEY_START)W.push(M.KEY_END);else if(K==="}"){u("{}");T.state_=S();continue}else W.push(M.OBJECT_END);K==='"'?T.state_=M.STRING:G_(T,L,v);continue;case M.KEY_END:case M.OBJECT_END:if(_.MR(K))continue;K===":"?(T.state_===M.OBJECT_END&&(W.push(M.OBJECT_END),
T.depth_++),T.state_=M.VALUE):K==="}"?(T.depth_--,u(),T.state_=S()):K===","?(T.state_===M.OBJECT_END&&W.push(M.OBJECT_END),T.state_=M.KEY_START):G_(T,L,v);continue;case M.ARRAY_OPEN:case M.VALUE:if(_.MR(K))continue;if(T.state_===M.ARRAY_OPEN)if(T.depth_++,T.state_=M.VALUE,K==="]"){T.depth_--;if(T.depth_===0){T.state_=M.ARRAY_END;return}u("[]");T.state_=S();continue}else W.push(M.ARRAY_END);K==='"'?T.state_=M.STRING:K==="{"?T.state_=M.OBJECT_OPEN:K==="["?T.state_=M.ARRAY_OPEN:K==="t"?T.state_=M.TRUE1:
K==="f"?T.state_=M.FALSE1:K==="n"?T.state_=M.NULL1:K!=="-"&&("0123456789".indexOf(K)!==-1?T.state_=M.NUM_DIGIT:G_(T,L,v));continue;case M.ARRAY_END:if(K===",")W.push(M.ARRAY_END),T.state_=M.VALUE,T.depth_===1&&(l=v);else if(K==="]"){T.depth_--;if(T.depth_===0)return;u();T.state_=S()}else if(_.MR(K))continue;else G_(T,L,v);continue;case M.STRING:var U=v;a:for(;;){for(;T.unicodeCount_>0;)if(K=L[v++],T.unicodeCount_===4?T.unicodeCount_=0:T.unicodeCount_++,!K)break a;if(K==='"'&&!T.slashed_){T.state_=
S();break}if(K==="\\"&&!T.slashed_&&(T.slashed_=!0,K=L[v++],!K))break;if(T.slashed_)if(T.slashed_=!1,K==="u"&&(T.unicodeCount_=1),K=L[v++])continue;else break;V.lastIndex=v;K=V.exec(L);if(!K){v=L.length+1;break}v=K.index+1;K=L[K.index];if(!K)break}T.JSC$11486_pos_+=v-U;continue;case M.TRUE1:if(!K)continue;K==="r"?T.state_=M.TRUE2:G_(T,L,v);continue;case M.TRUE2:if(!K)continue;K==="u"?T.state_=M.TRUE3:G_(T,L,v);continue;case M.TRUE3:if(!K)continue;K==="e"?T.state_=S():G_(T,L,v);continue;case M.FALSE1:if(!K)continue;
K==="a"?T.state_=M.FALSE2:G_(T,L,v);continue;case M.FALSE2:if(!K)continue;K==="l"?T.state_=M.FALSE3:G_(T,L,v);continue;case M.FALSE3:if(!K)continue;K==="s"?T.state_=M.FALSE4:G_(T,L,v);continue;case M.FALSE4:if(!K)continue;K==="e"?T.state_=S():G_(T,L,v);continue;case M.NULL1:if(!K)continue;K==="u"?T.state_=M.NULL2:G_(T,L,v);continue;case M.NULL2:if(!K)continue;K==="l"?T.state_=M.NULL3:G_(T,L,v);continue;case M.NULL3:if(!K)continue;K==="l"?T.state_=S():G_(T,L,v);continue;case M.NUM_DECIMAL_POINT:K===
"."?T.state_=M.NUM_DIGIT:G_(T,L,v);continue;case M.NUM_DIGIT:if("0123456789.eE+-".indexOf(K)!==-1)continue;else v--,T.JSC$11486_pos_--,T.state_=S();continue;default:G_(T,L,v)}}}
function S(){var K=W.pop();return K!=null?K:M.VALUE}
function u(K){T.depth_>1||(K||(K=l===-1?T.JSC$11486_buffer_+L.substring(D,v):L.substring(l,v)),T.deliverMessageAsRawString_?T.result_.push(K):T.result_.push(JSON.parse(K)),l=v)}
for(var T=this,W=T.stack_,V=T.stringInputPattern_,M=uTs,G=L.length,D=0,l=-1,v=0;v<G;)switch(T.streamState_){case 3:return G_(T,L,v),null;case 2:return Z()&&G_(T,L,v),null;case 0:if(Z()){var R=L[v++];T.JSC$11486_pos_++;if(R==="["){T.streamState_=1;D=v;T.state_=M.ARRAY_OPEN;continue}else G_(T,L,v)}return null;case 1:return N(),T.depth_===0&&T.state_==M.ARRAY_END?(T.streamState_=2,T.JSC$11486_buffer_=L.substring(v)):T.JSC$11486_buffer_=l===-1?T.JSC$11486_buffer_+L.substring(D):L.substring(l),T.result_.length>
0?(R=T.result_,T.result_=[],R):null}return null};_.Qk(_.cX,Er);nH.prototype.getValue=function(){return this.JSC$11494_value_};
nH.prototype.clone=function(){return new nH(this.JSC$11494_key_,this.JSC$11494_value_)};var Fd=function(L){this.nodes_=[];if(L)a:{if(L instanceof Fd){var Z=L.getKeys();L=L.getValues();if(this.getCount()<=0){for(var N=this.nodes_,S=0;S<Z.length;S++)N.push(new nH(Z[S],L[S]));break a}}else Z=_.Py.getKeys(L),L=_.Py.getValues(L);for(N=0;N<Z.length;N++)this.insert(Z[N],L[N])}};
_.t=Fd.prototype;_.t.insert=function(L,Z){var N=this.nodes_;N.push(new nH(L,Z));L=N.length-1;Z=this.nodes_;for(N=Z[L];L>0;){var S=L-1>>1;if(Z[S].JSC$11494_key_>N.JSC$11494_key_)Z[L]=Z[S],L=S;else break}Z[L]=N};
_.t.remove=function(){var L=this.nodes_,Z=L.length,N=L[0];if(!(Z<=0)){if(Z==1)L.length=0;else{L[0]=L.pop();L=0;Z=this.nodes_;for(var S=Z.length,u=Z[L];L<S>>1;){var T=L*2+1,W=L*2+2;T=W<S&&Z[W].JSC$11494_key_<Z[T].JSC$11494_key_?W:T;if(Z[T].JSC$11494_key_>u.JSC$11494_key_)break;Z[L]=Z[T];L=T}Z[L]=u}return N.getValue()}};
_.t.peek=function(){var L=this.nodes_;if(L.length!=0)return L[0].getValue()};
_.t.getValues=function(){for(var L=this.nodes_,Z=[],N=L.length,S=0;S<N;S++)Z.push(L[S].getValue());return Z};
_.t.getKeys=function(){for(var L=this.nodes_,Z=[],N=L.length,S=0;S<N;S++)Z.push(L[S].JSC$11494_key_);return Z};
_.t.containsValue=function(L){return this.nodes_.some(function(Z){return Z.getValue()==L})};
_.t.containsKey=function(L){return this.nodes_.some(function(Z){return Z.JSC$11494_key_==L})};
_.t.clone=function(){return new Fd(this)};
_.t.getCount=function(){return this.nodes_.length};
_.t.isEmpty=function(){return this.nodes_.length===0};
_.t.clear=function(){this.nodes_.length=0};_.$a=function(L,Z){this.JSC$11500_map_={};this.JSC$11500_keys_=[];this.version_=this.size=0;var N=arguments.length;if(N>1){if(N%2)throw Error("ma");for(var S=0;S<N;S+=2)this.set(arguments[S],arguments[S+1])}else L&&this.addAll(L)};
_.t=_.$a.prototype;_.t.getCount=function(){return this.size};
_.t.getValues=function(){Dc(this);for(var L=[],Z=0;Z<this.JSC$11500_keys_.length;Z++)L.push(this.JSC$11500_map_[this.JSC$11500_keys_[Z]]);return L};
_.t.getKeys=function(){Dc(this);return this.JSC$11500_keys_.concat()};
_.t.containsKey=function(L){return this.has(L)};
_.t.has=function(L){return l0(this.JSC$11500_map_,L)};
_.t.containsValue=function(L){for(var Z=0;Z<this.JSC$11500_keys_.length;Z++){var N=this.JSC$11500_keys_[Z];if(l0(this.JSC$11500_map_,N)&&this.JSC$11500_map_[N]==L)return!0}return!1};
_.t.equals=function(L,Z){if(this===L)return!0;if(this.size!=L.getCount())return!1;Z=Z||T3h;Dc(this);for(var N,S=0;N=this.JSC$11500_keys_[S];S++)if(!Z(this.get(N),L.get(N)))return!1;return!0};
var T3h=function(L,Z){return L===Z};
_.$a.prototype.isEmpty=function(){return this.size==0};
_.$a.prototype.clear=function(){this.JSC$11500_map_={};this.version_=this.size=this.JSC$11500_keys_.length=0};
_.$a.prototype.remove=function(L){return this.delete(L)};
_.$a.prototype.delete=function(L){return l0(this.JSC$11500_map_,L)?(delete this.JSC$11500_map_[L],--this.size,this.version_++,this.JSC$11500_keys_.length>2*this.size&&Dc(this),!0):!1};
var Dc=function(L){if(L.size!=L.JSC$11500_keys_.length){for(var Z=0,N=0;Z<L.JSC$11500_keys_.length;){var S=L.JSC$11500_keys_[Z];l0(L.JSC$11500_map_,S)&&(L.JSC$11500_keys_[N++]=S);Z++}L.JSC$11500_keys_.length=N}if(L.size!=L.JSC$11500_keys_.length){Z={};for(S=N=0;N<L.JSC$11500_keys_.length;){var u=L.JSC$11500_keys_[N];l0(Z,u)||(L.JSC$11500_keys_[S++]=u,Z[u]=1);N++}L.JSC$11500_keys_.length=S}};
_.t=_.$a.prototype;_.t.get=function(L,Z){return l0(this.JSC$11500_map_,L)?this.JSC$11500_map_[L]:Z};
_.t.set=function(L,Z){l0(this.JSC$11500_map_,L)||(this.size+=1,this.JSC$11500_keys_.push(L),this.version_++);this.JSC$11500_map_[L]=Z};
_.t.addAll=function(L){if(L instanceof _.$a)for(var Z=L.getKeys(),N=0;N<Z.length;N++)this.set(Z[N],L.get(Z[N]));else for(Z in L)this.set(Z,L[Z])};
_.t.forEach=function(L,Z){for(var N=this.getKeys(),S=0;S<N.length;S++){var u=N[S],T=this.get(u);L.call(Z,T,u,this)}};
_.t.clone=function(){return new _.$a(this)};
_.t.transpose=function(){for(var L=new _.$a,Z=0;Z<this.JSC$11500_keys_.length;Z++){var N=this.JSC$11500_keys_[Z];L.set(this.JSC$11500_map_[N],N)}return L};
_.t.keys=function(){return n6h(this.__iterator__(!0)).toEs6()};
_.t.values=function(){return n6h(this.__iterator__(!1)).toEs6()};
_.t.entries=function(){var L=this;return zEV(this.keys(),function(Z){return[Z,L.get(Z)]})};
_.t.__iterator__=function(L){Dc(this);var Z=0,N=this.version_,S=this,u=new V3;u.next=function(){if(N!=S.version_)throw Error("ve");if(Z>=S.JSC$11500_keys_.length)return bY;var T=S.JSC$11500_keys_[Z++];return MX(L?T:S.JSC$11500_map_[T])};
return u};
var l0=function(L,Z){return Object.prototype.hasOwnProperty.call(L,Z)};var OmL=function(){this.JSC$11503_map_=new _.$a;this.JSC$11503_head_=new tyL("");this.JSC$11503_head_.next=this.JSC$11503_head_.prev=this.JSC$11503_head_},W4t=function(L,Z){if(Z=L.JSC$11503_map_.get(Z))Z.remove(),L.insert_(Z);
return Z};
_.t=OmL.prototype;_.t.get=function(L,Z){return(L=W4t(this,L))?L.value:Z};
_.t.set=function(L,Z){var N=W4t(this,L);N?N.value=Z:(N=new tyL(L,Z),this.JSC$11503_map_.set(L,N),this.insert_(N))};
_.t.peek=function(){return this.JSC$11503_head_.next.value};
_.t.shift=function(){return Vyt(this,this.JSC$11503_head_.next)};
_.t.pop=function(){return Vyt(this,this.JSC$11503_head_.prev)};
_.t.remove=function(L){return(L=this.JSC$11503_map_.get(L))?(this.removeNode(L),!0):!1};
_.t.removeNode=function(L){L.remove();this.JSC$11503_map_.remove(L.key)};
_.t.getCount=function(){return this.JSC$11503_map_.getCount()};
_.t.isEmpty=function(){return this.JSC$11503_map_.isEmpty()};
_.t.getKeys=function(){return this.map(function(L,Z){return Z})};
_.t.getValues=function(){return this.map(function(L){return L})};
_.t.contains=function(L){return this.some(function(Z){return Z==L})};
_.t.containsKey=function(L){return this.JSC$11503_map_.containsKey(L)};
_.t.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11503_head_.prev)};
_.t.forEach=function(L,Z){for(var N=this.JSC$11503_head_.next;N!=this.JSC$11503_head_;N=N.next)L.call(Z,N.value,N.key,this)};
_.t.map=function(L,Z){for(var N=[],S=this.JSC$11503_head_.next;S!=this.JSC$11503_head_;S=S.next)N.push(L.call(Z,S.value,S.key,this));return N};
_.t.some=function(L,Z){for(var N=this.JSC$11503_head_.next;N!=this.JSC$11503_head_;N=N.next)if(L.call(Z,N.value,N.key,this))return!0;return!1};
_.t.every=function(L,Z){for(var N=this.JSC$11503_head_.next;N!=this.JSC$11503_head_;N=N.next)if(!L.call(Z,N.value,N.key,this))return!1;return!0};
_.t.insert_=function(L){L.next=this.JSC$11503_head_.next;L.prev=this.JSC$11503_head_;this.JSC$11503_head_.next=L;for(L.next.prev=L;this.getCount()>100;)this.removeNode(this.JSC$11503_head_.prev)};
var Vyt=function(L,Z){L.JSC$11503_head_!=Z&&L.removeNode(Z);return Z.value},tyL=function(L,Z){this.key=L;
this.value=Z};
tyL.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var bmh=function(){Fd.apply(this,arguments)};
_.f(bmh,Fd);bmh.prototype.enqueue=function(L,Z){this.insert(L,Z)};var Myt=function(){var L=Error();L.name="SecurityError";throw L;},kOL=function(){return{get opener(){return null},
get closed(){return!0},get location(){Myt()},get document(){Myt()},postMessage:function(){},
close:function(){},
focus:function(){}}};var DYP={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 opf={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 goh={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(opf).join("|");var GnY=function(){function L(V){V.substr(-1)!==";"&&(V+=";");return W(V)}
for(var Z=Object.keys(goh).sort(vp_),N=Object.keys(opf).sort(vp_),S=0,u=0;S<N.length;S++)Z[u]===N[S]?(N[S]+=";?",u++):N[S]+=";";var T=new RegExp("&(?:"+N.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),W=Rm_();return function(V){return String(V).replace(T,L)}}();/*

 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 F4V={};var $3t=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"),D3N=/[\\&]/,l2q=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),voq=RegExp('[&<>"]',"g"),oot=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),RUs=function(L){return L.charCodeAt(0)===92?L.charAt(1):GnY(L)},cZM=function(L){return D3N.test(L)?L.replace(l2q,RUs):L},no5=function(L){try{var Z,N="";
if(typeof u!=="string"){var S=u;var u=";/?:@&=+$,-_.!~*'()#"}typeof S==="undefined"&&(S=!0);var T,W=F4V[u];if(W)var V=W;else{W=F4V[u]=[];for(T=0;T<128;T++){var M=String.fromCharCode(T);/^[0-9a-z]$/i.test(M)?W.push(M):W.push("%"+("0"+T.toString(16).toUpperCase()).slice(-2))}for(T=0;T<u.length;T++)W[u.charCodeAt(T)]=u[T];V=W}var G=0;for(Z=L.length;G<Z;G++){var D=L.charCodeAt(G);if(S&&D===37&&G+2<Z&&/^[0-9a-f]{2}$/i.test(L.slice(G+1,G+3)))N+=L.slice(G,G+3),G+=2;else if(D<128)N+=V[D];else if(D>=55296&&
D<=57343){if(D>=55296&&D<=56319&&G+1<Z){var l=L.charCodeAt(G+1);if(l>=56320&&l<=57343){N+=encodeURIComponent(L[G]+L[G+1]);G++;continue}}N+="%EF%BF%BD"}else N+=encodeURIComponent(L[G])}return N}catch(v){return L}},K4s=function(L){switch(L){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return L}},vD=function(L,Z){return voq.test(L)?Z?L.replace(oot,K4s):L.replace(voq,K4s):L};/*

 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 oN;if(String.fromCodePoint)oN=function(L){try{return String.fromCodePoint(L)}catch(Z){if(Z instanceof RangeError)return String.fromCharCode(65533);throw Z;}};
else{var f2q=String.fromCharCode,kn5=Math.floor;oN=function(){var L=[],Z=-1,N=arguments.length;if(!N)return"";for(var S="";++Z<N;){var u=Number(arguments[Z]);if(!isFinite(u)||u<0||u>1114111||kn5(u)!==u)return String.fromCharCode(65533);if(u<=65535)L.push(u);else{u-=65536;var T=(u>>10)+55296;u=u%1024+56320;L.push(T,u)}if(Z+1===N||L.length>16384)S+=f2q.apply(null,L),L.length=0}return S}};var yZh=function(L){this.root=this.current=L;this.entering=!0};
yZh.prototype.next=function(){var L=this.current,Z=this.entering;if(L===null)return null;a:switch(L._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 N=!0;break a;default:N=!1}Z&&N?L._firstChild?(this.current=L._firstChild,this.entering=!0):this.entering=!1:L===this.root?this.current=null:L._next===null?(this.current=
L._parent,this.entering=!1):(this.current=L._next,this.entering=!0);return{entering:Z,node:L}};
var ye=function(L,Z){this._type=L;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=Z;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};
ye.prototype.appendChild=function(L){L.unlink();L._parent=this;this._lastChild?(this._lastChild._next=L,L._prev=this._lastChild):this._firstChild=L;this._lastChild=L};
ye.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 wtV=function(L,Z){Z.unlink();Z._next=L._next;Z._next&&(Z._next._prev=Z);Z._prev=L;L._next=Z;Z._parent=L._parent;Z._next||(Z._parent._lastChild=Z)};
ye.prototype.insertBefore=function(L){L.unlink();L._prev=this._prev;L._prev&&(L._prev._next=L);L._next=this;this._prev=L;L._parent=this._parent;L._prev||(L._parent._firstChild=L)};
_.gd.Object.defineProperties(ye.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(L){this._literal=L}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(L){this._destination=L}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(L){this._title=L}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(L){this._info=L}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(L){this._level=L}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(L){this._listData.type=L}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(L){this._listData.tight=L}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(L){this._listData.start=L}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(L){this._onEnter=L}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(L){this._onExit=L}}});var cYL=/[ \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,
npt={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 U30=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]/),
Yiq=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),eUt=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),I2l=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),d3q=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),a2L=/`+/,hUI=/^`+/,sLV=/\.\.\./g,jLq=/--+/g,EoI=/^<([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])?)*)>/,
PFh=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,ptL=/^ *(?:\n *)?/,zUh=/^[ \t\n\x0b\x0c\x0d]/,m3Y=/[ \t\n\x0b\x0c\x0d]+/g,JZ5=/^\s/,CFl=/ *$/,rZh=/^ */,QLs=/^ *(?:\n|$)/,Xtt=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),AZl=/^[^\n`\[\]\\!<&*_'"]+/m,RN=function(L){var Z=new ye("text");Z._literal=L;return Z},nO=function(L){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=L||{}};
nO.prototype.match=function(L){L=L.exec(this.subject.slice(this.pos));if(L===null)return null;this.pos+=L.index+L[0].length;return L[0]};
nO.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var KO=function(L){L.match(ptL);return!0},HmM=function(L,Z,N){var S=0;
var u=L.pos;if(Z===39||Z===34)S++,L.pos++;else for(;L.peek()===Z;)S++,L.pos++;if(S===0)S=null;else{var T=u===0?"\n":L.subject.charAt(u-1);var W=L.peek();W=W===-1?"\n":oN(W);var V=JZ5.test(W);W=U30.test(W);var M=JZ5.test(T);var G=U30.test(T);T=!V&&!(W&&!M&&!G);V=!M&&!(G&&!V&&!W);Z===95?(M=T&&(!V||G),W=V&&(!T||W)):(M=Z===39||Z===34?T&&!V:T,W=V);L.pos=u;S={numdelims:S,can_open:M,can_close:W}}if(!S)return!1;u=S.numdelims;W=L.pos;L.pos+=u;W=Z===39?"\u2019":Z===34?"\u201c":L.subject.slice(W,L.pos);W=RN(W);
N.appendChild(W);L.delimiters={cc:Z,numdelims:u,origdelims:u,node:W,previous:L.delimiters,next:null,can_open:S.can_open,can_close:S.can_close};L.delimiters.previous!==null&&(L.delimiters.previous.next=L.delimiters);return!0},B3t=function(L,Z){Z.previous!==null&&(Z.previous.next=Z.next);
Z.next===null?L.delimiters=Z.previous:Z.next.previous=Z.previous},x3V=function(L,Z){var N,S,u=[],T=!1;
u[95]=Z;u[42]=Z;u[39]=Z;u[34]=Z;for(N=L.delimiters;N!==null&&N.previous!==Z;)N=N.previous;for(;N!==null;){var W=N.cc;if(N.can_close){var V=N.previous;for(S=!1;V!==null&&V!==Z&&V!==u[W];){T=(N.can_open||V.can_close)&&(V.origdelims+N.origdelims)%3===0;if(V.cc===N.cc&&V.can_open&&!T){S=!0;break}V=V.previous}var M=N;if(W===42||W===95)if(S){var G=N.numdelims>=2&&V.numdelims>=2?2:1;var D=V.node;var l=N.node;V.numdelims-=G;N.numdelims-=G;D._literal=D._literal.slice(0,D._literal.length-G);l._literal=l._literal.slice(0,
l._literal.length-G);var v=new ye(G===1?"emph":"strong");for(G=D._next;G&&G!==l;){var R=G._next;G.unlink();v.appendChild(G);G=R}wtV(D,v);G=V;R=N;G.next!==R&&(G.next=R,R.previous=G);V.numdelims===0&&(D.unlink(),B3t(L,V));N.numdelims===0&&(l.unlink(),V=N.next,B3t(L,N),N=V)}else N=N.next;else W===39?(N.node._literal="\u2019",S&&(V.node._literal="\u2018"),N=N.next):W===34&&(N.node._literal="\u201d",S&&(V.node.literal="\u201c"),N=N.next);S||T||(u[W]=M.previous,M.can_open||B3t(L,M))}else N=N.next}for(;L.delimiters!==
null&&L.delimiters!==Z;)B3t(L,L.delimiters)},qit=function(L){L=L.match(Yiq);
return L===null?null:cZM(L.substr(1,L.length-2))},LX5=function(L){var Z=L.match(eUt);
if(Z===null){Z=L.pos;for(var N=0,S;(S=L.peek())!==-1;)if(S===92)L.pos+=1,L.peek()!==-1&&(L.pos+=1);else if(S===40)L.pos+=1,N+=1;else if(S===41)if(N<1)break;else L.pos+=1,--N;else if(zUh.exec(oN(S))!==null)break;else L.pos+=1;Z=L.subject.substr(Z,L.pos-Z);return no5(cZM(Z))}return no5(cZM(Z.substr(1,Z.length-2)))},ZMq=function(L){L=L.match(Xtt);
return L===null||L.length>1001?0:L.length},NcQ=function(L,Z,N,S){L.brackets!==null&&(L.brackets.bracketAfter=!0);
L.brackets={node:Z,previous:L.brackets,previousDelimiter:L.delimiters,index:N,image:S,active:!0}},Sc0=function(L,Z){var N;
return(N=L.match(AZl))?(L.options.smart?Z.appendChild(RN(N.replace(sLV,"\u2026").replace(jLq,function(S){var u=0,T=0;S.length%3===0?T=S.length/3:S.length%2===0?u=S.length/2:S.length%3===2?(u=1,T=(S.length-2)/3):(u=2,T=(S.length-4)/3);S="";var W;for(W=0;W<T;W++)S+="\u2014";for(W=0;W<u;W++)S+="\u2013";return S}))):Z.appendChild(RN(N)),!0):!1},iMt=function(L,Z,N){L.subject=Z;
L.pos=0;Z=L.pos;var S=ZMq(L);if(S===0)return 0;var u=L.subject.substr(0,S);if(L.peek()===58)L.pos++;else return L.pos=Z,0;KO(L);S=LX5(L);if(S===null||S.length===0)return L.pos=Z,0;var T=L.pos;KO(L);var W=qit(L);W===null&&(W="",L.pos=T);var V=!0;L.match(QLs)===null&&(W===""?V=!1:(W="",L.pos=T,V=L.match(QLs)!==null));if(!V)return L.pos=Z,0;u=KQt(u);if(u==="")return L.pos=Z,0;N[u]||(N[u]={destination:S,title:W});return L.pos-Z},uQh=function(L,Z){var N,S=L.peek();
if(S===-1)return!1;switch(S){case 10:L.pos+=1;if((N=Z._lastChild)&&N.type==="text"&&N._literal[N._literal.length-1]===" "){var u=N._literal[N._literal.length-2]===" ";N._literal=N._literal.replace(CFl,"");Z.appendChild(new ye(u?"linebreak":"softbreak"))}else Z.appendChild(new ye("softbreak"));L.match(rZh);N=!0;break;case 92:N=L.subject;L.pos+=1;L.peek()===10?(L.pos+=1,N=new ye("linebreak"),Z.appendChild(N)):I2l.test(N.charAt(L.pos))?(Z.appendChild(RN(N.charAt(L.pos))),L.pos+=1):Z.appendChild(RN("\\"));
N=!0;break;case 96:a:if(N=L.match(hUI),N===null)N=!1;else{u=L.pos;for(var T;(T=L.match(a2L))!==null;)if(T===N){T=new ye("code");T._literal=L.subject.slice(u,L.pos-N.length).trim().replace(m3Y," ");Z.appendChild(T);N=!0;break a}L.pos=u;Z.appendChild(RN(N));N=!0}break;case 42:case 95:N=HmM(L,S,Z);break;case 39:case 34:N=L.options.smart&&HmM(L,S,Z);break;case 91:N=L.pos;L.pos+=1;u=RN("[");Z.appendChild(u);NcQ(L,u,N,!1);N=!0;break;case 33:N=L.pos;L.pos+=1;L.peek()===91?(L.pos+=1,u=RN("!["),Z.appendChild(u),
NcQ(L,u,N+1,!0)):Z.appendChild(RN("!"));N=!0;break;case 93:var W,V=!1,M;L.pos+=1;var G=L.pos;u=L.brackets;if(u===null)Z.appendChild(RN("]"));else if(u.active){N=u.image;var D=L.pos;L.peek()===40&&(L.pos++,KO(L)&&(T=LX5(L))!==null&&KO(L)&&(zUh.test(L.subject.charAt(L.pos-1))&&(W=qit(L)),1)&&KO(L)&&L.peek()===41?(L.pos+=1,V=!0):L.pos=D);if(!V){var l=L.pos,v=ZMq(L);v>2?M=L.subject.slice(l,l+v):u.bracketAfter||(M=L.subject.slice(u.index,G));v===0&&(L.pos=D);M&&(M=L.refmap[KQt(M)])&&(T=M.destination,W=
M.title,V=!0)}if(V){G=new ye(N?"image":"link");G._destination=T;G._title=W||"";for(T=u.node._next;T;)W=T._next,T.unlink(),G.appendChild(T),T=W;Z.appendChild(G);x3V(L,u.previousDelimiter);L.brackets=L.brackets.previous;u.node.unlink();if(!N)for(u=L.brackets;u!==null;)u.image||(u.active=!1),u=u.previous}else L.brackets=L.brackets.previous,L.pos=G,Z.appendChild(RN("]"))}else Z.appendChild(RN("]")),L.brackets=L.brackets.previous;N=!0;break;case 60:(N=L.match(EoI))?(N=N.slice(1,N.length-1),u=new ye("link"),
u._destination=no5("mailto:"+N),u._title="",u.appendChild(RN(N)),Z.appendChild(u),N=!0):(N=L.match(PFh))?(N=N.slice(1,N.length-1),u=new ye("link"),u._destination=no5(N),u._title="",u.appendChild(RN(N)),Z.appendChild(u),N=!0):N=!1;N||(N=L.match($3t),N===null?N=!1:(u=new ye("html_inline"),u._literal=N,Z.appendChild(u),N=!0));break;case 38:(N=L.match(d3q))?(Z.appendChild(RN(GnY(N))),N=!0):N=!1;break;default:N=Sc0(L,Z)}N||(L.pos+=1,Z.appendChild(RN(oN(S))));return!0};
nO.prototype.parseInlines=function(L){this.subject=L._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;uQh(this,L););L._string_content=null;x3V(this,null)};
nO.prototype.parse=nO.prototype.parseInlines;var Tcs=[/./,/^<(?: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")],tWY=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],OMq=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,WXh=/^[#`~*+_=<>0-9-\|]|\|/,VWt=/[^ \t\f\v\r\n]/,bM5=/^[*+-]/,MWY=/^(\d{1,9})([.)])/,gMt=/^#{1,6}(?:[ \t]+|$)/,G1M=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,FXL=/^(?:`{3,}|~{3,})(?= *$)/,$H0=/^(?:=+|-+)[ \t]*$/,DH0=/\r\n|\n|\r/,kwG=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,yY0=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,lK5={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(L){return L!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(L,Z){for(L=Z._firstChild;L;){if(fI1(L)&&L._next){Z._listData.tight=!1;break}for(var N=L._firstChild;N;){if(fI1(N)&&(L._next||N._next)){Z._listData.tight=!1;break}N=N._next}L=L._next}},
canContain:function(L){return L==="item"},
acceptsLines:!1},block_quote:{continue:function(L){var Z=L.currentLine;if(L.indented||fH(Z,L.nextNonspace)!==62)return 1;fO(L);ka(L,1,!1);KH(fH(Z,L.offset))&&ka(L,1,!0);return 0},
finalize:function(){},
canContain:function(L){return L!=="item"},
acceptsLines:!1},item:{continue:function(L,Z){if(L.blank){if(Z._firstChild==null)return 1;fO(L)}else if(L.indent>=Z._listData.markerOffset+Z._listData.padding)ka(L,Z._listData.markerOffset+Z._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(L){return L!=="item"&&!wzP(L)},
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(L,Z){var N=L.currentLine,S=L.indent;if(Z._isFenced){if((S=S<=3&&N.charAt(L.nextNonspace)===Z._fenceChar&&N.slice(L.nextNonspace).match(FXL))&&S[0].length>=Z._fenceLength)return L.finalize(Z,L.lineNumber),2;for(Z=Z._fenceOffset;Z>0&&KH(fH(N,L.offset));)ka(L,1,!0),Z--}else if(S>=4)ka(L,4,!0);else if(L.blank)fO(L);else return 1;return 0},
finalize:function(L,Z){if(Z._isFenced){var N=Z._string_content,S=N.indexOf("\n");L=N.slice(0,S);N=N.slice(S+1);Z.info=cZM(L.trim());Z._literal=N}else Z._literal=Z._string_content.replace(/(\n *)+$/,"\n");Z._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(L,Z){return!L.blank||Z._htmlBlockType!==6&&Z._htmlBlockType!==7?0:1},
finalize:function(L,Z){Z._literal=Z._string_content.replace(/(\n *)+$/,"");Z._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(L){return L.blank?1:0},
finalize:function(L,Z){for(var N,S=!1;fH(Z._string_content,0)===91&&(N=iMt(L.inlineParser,Z._string_content,L.refmap));)Z._string_content=Z._string_content.slice(N),S=!0;S&&!VWt.test(Z._string_content)&&Z.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(L){return kd(L.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(L){return L=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(L,Z){if(!Z._rowIsDelimiter){L=Z._isHeader?"th":"td";for(var N=Z._parent._tableColumns,S=Z._string_content,u=0,T="",W,V=Z._sourcepos[0][0];u<S.length;){switch(S[u]){case "|":W&&(W._string_content=T.trim(),T="",W=null,N--,N<=0&&(u=S.length));break;default:if(!W){W=new ye(L,[[V,u],[V,u]]);var M=Z._parent._columnAlignment,G=Z._parent._tableColumns-N;M&&G<=M.length&&G>=0&&(W._alignment=M[G]);Z.appendChild(W)}T+=S[u];W._sourcepos[1][1]=u}u++}W&&(W._string_content=T.trim());Z._string_content=
""}},
canContain:function(L){return L!=="row"},
acceptsLines:!1}},vMM=[function(L){if(L.indented||fH(L.currentLine,L.nextNonspace)!==62)return 0;fO(L);ka(L,1,!1);KH(fH(L.currentLine,L.offset))&&ka(L,1,!0);y0(L);L.addChild("block_quote",L.nextNonspace);return 1},
function(L){var Z;if(!L.indented&&(Z=L.currentLine.slice(L.nextNonspace).match(gMt))){fO(L);ka(L,Z[0].length,!1);y0(L);var N=L.addChild("heading",L.nextNonspace);N.level=Z[0].trim().length;N._string_content=L.currentLine.slice(L.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");ka(L,L.currentLine.length-L.offset);return 2}return 0},
function(L){var Z;if(!L.indented&&(Z=L.currentLine.slice(L.nextNonspace).match(G1M))){var N=Z[0].length;y0(L);var S=L.addChild("code_block",L.nextNonspace);S._isFenced=!0;S._fenceLength=N;S._fenceChar=Z[0][0];S._fenceOffset=L.indent;fO(L);ka(L,N,!1);return 2}return 0},
function(L,Z){if(!L.indented&&fH(L.currentLine,L.nextNonspace)===60){var N=L.currentLine.slice(L.nextNonspace),S;for(S=1;S<=7;S++)if(Tcs[S].test(N)&&(S<7||Z.type!=="paragraph"))return y0(L),L.addChild("html_block",L.offset)._htmlBlockType=S,2}return 0},
function(L,Z){var N;if(!L.indented&&Z.type==="paragraph"&&(N=L.currentLine.slice(L.nextNonspace).match($H0))){y0(L);var S=new ye("heading",Z.sourcepos);S.level=N[0][0]==="="?1:2;S._string_content=Z._string_content;wtV(Z,S);Z.unlink();L.tip=S;ka(L,L.currentLine.length-L.offset,!1);return 2}return 0},
function(L){return!L.indented&&OMq.test(L.currentLine.slice(L.nextNonspace))?(y0(L),L.addChild("thematic_break",L.nextNonspace),ka(L,L.currentLine.length-L.offset,!1),2):0},
function(L,Z){var N,S;if(!(S=L.indented&&Z.type!=="list")){a:{var u=Z,T=L.currentLine.slice(L.nextNonspace);S={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:L.indent};if(N=T.match(bM5))S.type="bullet",S.bulletChar=N[0][0];else{if(!(N=T.match(MWY))||u.type==="paragraph"&&N[1]!=="1"){N=null;break a}S.type="ordered";S.start=parseInt(N[1],10);S.delimiter=N[2]}var W=fH(L.currentLine,L.nextNonspace+N[0].length);if(W!==-1&&W!==9&&W!==32||u.type==="paragraph"&&!L.currentLine.slice(L.nextNonspace+
N[0].length).match(VWt))N=null;else{fO(L);ka(L,N[0].length,!0);u=L.column;T=L.offset;do ka(L,1,!0),W=fH(L.currentLine,L.offset);while(L.column-u<5&&KH(W));W=fH(L.currentLine,L.offset)===-1;var V=L.column-u;V>=5||V<1||W?(S.padding=N[0].length+1,L.column=u,L.offset=T,KH(fH(L.currentLine,L.offset))&&ka(L,1,!0)):S.padding=N[0].length+V;N=S}}S=!N}if(S)return 0;y0(L);(S=L.tip.type!=="list")||(Z=Z._listData,S=!(Z.type===N.type&&Z.delimiter===N.delimiter&&Z.bulletChar===N.bulletChar));S&&(Z=L.addChild("list",
L.nextNonspace),Z._listData=N);Z=L.addChild("item",L.nextNonspace);Z._listData=N;return 1},
function(L){var Z;return((Z=L.options.shouldParseIndentAsCodeBlock)!=null?Z:1)&&L.indented&&L.tip.type!=="paragraph"&&!L.blank?(ka(L,4,!0),y0(L),L.addChild("code_block",L.offset),2):0},
function(L,Z){var N=kd(L.currentLine),S=kd(L.lookahead);if(N!==0&&S<0&&Math.abs(N)==Math.abs(S)&&!wzP(Z.type)){y0(L);Z=L.addChild("table",L.nextNonspace);Z._tableRows=1;Z._tableColumns=Math.abs(N);N=L.lookahead;if(yY0.test(N)){S=[];for(var u=0,T=!1,W=0,V=void 0;u<N.length;){var M=W>=3;switch(N[u]){case "-":W++;break;case "|":T&&(S.push(V),V=void 0,W=0);T=!0;break;case ":":V||M||(V="left"),!V&&M&&(V="right"),V==="left"&&M&&(V="center")}u++}N=S}else N=void 0;Z._columnAlignment=N;Z=L.addChild("row",
L.nextNonspace);Z._isHeader=!0;ka(L,L.currentLine.length-L.offset,!1);Z._string_content=L.currentLine;return 1}return 0},
function(L,Z){if(Z.type=="table"&&kd(L.currentLine)!==0){y0(L);var N=Z;Z=L.addChild("row",L.nextNonspace);kd(L.currentLine)<0?Z._rowIsDelimiter=!0:N._tableRows+=1;ka(L,L.currentLine.length-L.offset,!1);Z._string_content=L.currentLine;return 2}return 0}],vJF=function(){var L={shouldParseIndentAsCodeBlock:!1};
L=L===void 0?{}:L;this.lastMatchedContainer=this.doc=UYw();this.refmap={};this.lastLineLength=0;this.inlineParser=new nO(L);this.options=L;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=lK5;this.blockStarts=vMM},oMh=function(L){L.partiallyConsumedTab&&(L.offset+=1,L.tip._string_content+=" ".repeat(4-L.column%
4));
L.tip._string_content+=L.currentLine.slice(L.offset)+"\n"};
vJF.prototype.addChild=function(L,Z){for(;!this.blocks[this.tip.type].canContain(L);)this.finalize(this.tip,this.lineNumber-1);L=new ye(L,[[this.lineNumber,Z+1],[0,0]]);L._string_content="";this.tip.appendChild(L);return this.tip=L};
var y0=function(L){if(!L.allClosed){for(;L.oldtip!==L.lastMatchedContainer;){var Z=L.oldtip._parent;L.finalize(L.oldtip,L.lineNumber-1);L.oldtip=Z}L.allClosed=!0}},ka=function(L,Z,N){for(var S=L.currentLine,u,T;Z>0&&(T=S[L.offset]);)T==="\t"?(u=4-L.column%4,N?(L.partiallyConsumedTab=u>Z,u=u>Z?Z:u,L.column+=u,L.offset+=L.partiallyConsumedTab?0:1,Z-=u):(L.partiallyConsumedTab=!1,L.column+=u,L.offset+=1,--Z)):(L.partiallyConsumedTab=!1,L.offset+=1,L.column+=1,--Z)},fO=function(L){L.offset=L.nextNonspace;
L.column=L.nextNonspaceColumn;L.partiallyConsumedTab=!1},Rxq=function(L){for(var Z=L.currentLine,N=L.offset,S=L.column,u;(u=Z.charAt(N))!=="";)if(u===" ")N++,S++;
else if(u==="\t")N++,S+=4-S%4;else break;L.blank=u==="\n"||u==="\r"||u==="";L.nextNonspace=N;L.nextNonspaceColumn=S;L.indent=L.nextNonspaceColumn-L.column;L.indented=L.indent>=4};
vJF.prototype.finalize=function(L,Z){var N=L._parent;L._open=!1;L.sourcepos[1]=[Z,this.lastLineLength];this.blocks[L.type].finalize(this,L);this.tip=N};
vJF.prototype.parse=function(L){this.tip=this.doc=UYw();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!L)return this.doc;this.options.time&&console.time("preparing input");var Z=L.split(DH0),N=Z.length;L.charCodeAt(L.length-1)===10&&--N;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(L=0;L<N;L++)a:{var S=void 0,u=Z[L],T=Z[L+1],W=!0,V=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;u.indexOf("\x00")!==-1&&(u=u.replace(/\0/g,"\ufffd"));this.currentLine=u;for(this.lookahead=T;(S=V._lastChild)&&S._open;){V=S;Rxq(this);switch(this.blocks[V.type].continue(this,V)){case 0:break;case 1:W=!1;break;case 2:this.lastLineLength=u.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;S=V.type!=="paragraph"&&lK5[V.type].acceptsLines;T=this.blockStarts;for(W=T.length;!S;){Rxq(this);if(!this.indented&&!WXh.test(u.slice(this.nextNonspace))){fO(this);break}for(var M=0;M<W;){var G=T[M](this,V);if(G===1){V=this.tip;break}else if(G===2){V=this.tip;S=!0;break}else M++}if(M===W){fO(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){y0(this);this.blank&&V.lastChild&&(V.lastChild._lastLineBlank=!0);S=V.type;T=this.blank&&!(S==="block_quote"||S==="code_block"&&V._isFenced||
S==="item"&&!V._firstChild&&V.sourcepos[0][0]===this.lineNumber);for(W=V;W;)W._lastLineBlank=T,W=W._parent;this.blocks[S].acceptsLines?(oMh(this),S==="html_block"&&V._htmlBlockType>=1&&V._htmlBlockType<=5&&tWY[V._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(V,this.lineNumber)):this.offset<u.length&&!this.blank&&(this.addChild("paragraph",this.offset),fO(this),oMh(this))}else oMh(this);this.lastLineLength=u.length}for(;this.tip;)this.finalize(this.tip,N);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");u=new yZh(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;N=u.next();)Z=N.node,L=Z.type,N.entering||L!=="paragraph"&&L!=="heading"&&L!=="th"&&L!="td"||this.inlineParser.parse(Z);this.options.time&&console.timeEnd("inline parsing");return this.doc};YyL.prototype.render=function(L){L=new yZh(L);var Z;this.buffer="";for(this.lastOut="\n";Z=L.next();){var N=Z.node.type;if(this[N])this[N](Z.node,Z.entering)}return this.buffer};
YyL.prototype.out=function(L){wE(this,L)};
var wE=function(L,Z){L.buffer+=Z;L.lastOut=Z};
YyL.prototype.cr=function(){this.lastOut!=="\n"&&wE(this,"\n")};var c9Q=/^javascript:|vbscript:|file:|data:/i,nMY=/^data:image\/(?:png|gif|jpeg|webp)/i,KXl=function(L){return c9Q.test(L)&&!nMY.test(L)};
wd.prototype=Object.create(YyL.prototype);_.t=wd.prototype;_.t.text=function(L){this.out(L.literal)};
_.t.html_inline=function(L){this.options.safe?wE(this,"\x3c!-- raw HTML omitted --\x3e"):wE(this,L.literal)};
_.t.html_block=function(L){this.cr();this.options.safe?wE(this,"\x3c!-- raw HTML omitted --\x3e"):wE(this,L.literal);this.cr()};
_.t.softbreak=function(){wE(this,this.options.softbreak)};
_.t.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.t.link=function(L,Z){var N=this.attrs(L);Z?(this.options.safe&&KXl(L.destination)||N.push(["href",vD(L.destination,!0)]),L.title&&N.push(["title",vD(L.title,!0)]),this.tag("a",N)):this.tag("/a")};
_.t.image=function(L,Z){Z?(this.disableTags===0&&(this.options.safe&&KXl(L.destination)?wE(this,'<img src="" alt="'):wE(this,'<img src="'+vD(L.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(L.title&&wE(this,'" title="'+vD(L.title,!0)),wE(this,'" />')))};
_.t.emph=function(L,Z){this.tag(Z?"em":"/em")};
_.t.strong=function(L,Z){this.tag(Z?"strong":"/strong")};
_.t.paragraph=function(L,Z){var N=L.parent.parent;L=this.attrs(L);N!==null&&N.type==="list"&&N.listTight||(Z?(this.cr(),this.tag("p",L)):(this.tag("/p"),this.cr()))};
_.t.heading=function(L,Z){var N="h"+L.level;L=this.attrs(L);Z?(this.cr(),this.tag(N,L)):(this.tag("/"+N),this.cr())};
_.t.code=function(L){this.tag("code");this.out(L.literal);this.tag("/code")};
_.t.code_block=function(L){var Z=L.info?L.info.split(/\s+/):[],N=this.attrs(L);Z.length>0&&Z[0].length>0&&N.push(["class","language-"+vD(Z[0],!0)]);this.cr();this.tag("pre");this.tag("code",N);this.out(L.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.t.thematic_break=function(L){L=this.attrs(L);this.cr();this.tag("hr",L,!0);this.cr()};
_.t.block_quote=function(L,Z){L=this.attrs(L);Z?(this.cr(),this.tag("blockquote",L)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.t.list=function(L,Z){var N=L.listType==="bullet"?"ul":"ol",S=this.attrs(L);Z?(L=L.listStart,L!==null&&L!==1&&S.push(["start",L.toString()]),this.cr(),this.tag(N,S)):(this.cr(),this.tag("/"+N));this.cr()};
_.t.item=function(L,Z){L=this.attrs(L);Z?this.tag("li",L):(this.tag("/li"),this.cr())};
_.t.custom_inline=function(L,Z){Z&&L.onEnter?wE(this,L.onEnter):!Z&&L.onExit&&wE(this,L.onExit)};
_.t.custom_block=function(L,Z){this.cr();Z&&L.onEnter?wE(this,L.onEnter):!Z&&L.onExit&&wE(this,L.onExit);this.cr()};
_.t.table=function(L,Z){L=this.attrs(L);Z?(this.cr(),this.tag("table",L)):(this.tag("/table"),this.cr())};
_.t.row=function(L,Z){L._rowIsDelimiter||(L=this.attrs(L),Z?this.tag("tr",L):this.tag("/tr"))};
_.t.td=function(L,Z){var N=this.attrs(L);L._alignment&&N.push(["align",L._alignment]);Z?this.tag("td",N):this.tag("/td")};
_.t.th=function(L,Z){var N=this.attrs(L);L._alignment&&N.push(["align",L._alignment]);Z?this.tag("th",N):this.tag("/th")};
_.t.out=function(L){wE(this,vD(L,!1))};
_.t.tag=function(L,Z,N){if(!(this.disableTags>0)){this.buffer+="<"+L;if(Z&&Z.length>0){L=0;for(var S;(S=Z[L])!==void 0;)this.buffer+=" "+S[0]+'="'+S[1]+'"',L++}N&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.t.attrs=function(L){var Z=[];this.options.sourcepos&&(L=L.sourcepos)&&Z.push(["data-sourcepos",String(L[0][0])+":"+String(L[0][1])+"-"+String(L[1][0])+":"+String(L[1][1])]);return Z};
wd.prototype.text=wd.prototype.text;wd.prototype.html_inline=wd.prototype.html_inline;wd.prototype.html_block=wd.prototype.html_block;wd.prototype.softbreak=wd.prototype.softbreak;wd.prototype.linebreak=wd.prototype.linebreak;wd.prototype.link=wd.prototype.link;wd.prototype.image=wd.prototype.image;wd.prototype.emph=wd.prototype.emph;wd.prototype.strong=wd.prototype.strong;wd.prototype.paragraph=wd.prototype.paragraph;wd.prototype.heading=wd.prototype.heading;wd.prototype.code=wd.prototype.code;
wd.prototype.code_block=wd.prototype.code_block;wd.prototype.thematic_break=wd.prototype.thematic_break;wd.prototype.block_quote=wd.prototype.block_quote;wd.prototype.list=wd.prototype.list;wd.prototype.item=wd.prototype.item;wd.prototype.custom_inline=wd.prototype.custom_inline;wd.prototype.custom_block=wd.prototype.custom_block;wd.prototype.table=wd.prototype.table;wd.prototype.row=wd.prototype.row;wd.prototype.td=wd.prototype.td;wd.prototype.th=wd.prototype.th;wd.prototype.out=wd.prototype.out;
wd.prototype.tag=wd.prototype.tag;wd.prototype.attrs=wd.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 fKI,k1s,gYs;(function(){function L(a,I){return a<I?-1:a>I?1:a>=I?0:NaN}
function Z(a){return function(I,z){return L(a(I),z)}}
function N(){for(var a=0,I=arguments.length,z={},Z0;a<I;++a){if(!(Z0=arguments[a]+"")||Z0 in z)throw Error("xe`"+Z0);z[Z0]=[]}return new S(z)}
function S(a){this._=a}
function u(a,I){return a.trim().split(/^|\s+/).map(function(z){var Z0="",Ws=z.indexOf(".");Ws>=0&&(Z0=z.slice(Ws+1),z=z.slice(0,Ws));if(z&&!I.hasOwnProperty(z))throw Error("ye`"+z);return{type:z,name:Z0}})}
function T(a,I,z){for(var Z0=0,Ws=a.length;Z0<Ws;++Z0)if(a[Z0].name===I){a[Z0]=gwY;a=a.slice(0,Z0).concat(a.slice(Z0+1));break}z!=null&&a.push({name:I,value:z});return a}
function W(a){var I=a,z=I.indexOf(":");z>=0&&(I=a.slice(0,z))!=="xmlns"&&(a=a.slice(z+1));return XT.hasOwnProperty(I)?{space:XT[I],local:a}:a}
function V(a){return function(){var I=this.ownerDocument,z=this.namespaceURI;return z==="http://www.w3.org/1999/xhtml"&&I.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?I.createElement(a):I.createElementNS(z,a)}}
function M(a){return function(){return this.ownerDocument.createElementNS(a.space,a.local)}}
function G(a){a=W(a);return(a.local?M:V)(a)}
function D(){}
function l(a){return a==null?D:function(){return this.querySelector(a)}}
function v(a){return Array(a.length)}
function R(a,I){this.ownerDocument=a.ownerDocument;this.namespaceURI=a.namespaceURI;this._next=null;this._parent=a;this.__data__=I}
function K(a){return function(){return a}}
function U(a,I,z,Z0,Ws,D0){for(var K1=0,dP,TV=I.length,qL=D0.length;K1<qL;++K1)(dP=I[K1])?(dP.__data__=D0[K1],Z0[K1]=dP):z[K1]=new R(a,D0[K1]);for(;K1<TV;++K1)if(dP=I[K1])Ws[K1]=dP}
function d(a,I,z,Z0,Ws,D0,K1){var dP,TV,qL={},OY=I.length,$L=D0.length,As=Array(OY),aQ;for(dP=0;dP<OY;++dP)if(TV=I[dP])As[dP]=aQ="$"+K1.call(TV,TV.__data__,dP,I),aQ in qL?Ws[dP]=TV:qL[aQ]=TV;for(dP=0;dP<$L;++dP)aQ="$"+K1.call(a,D0[dP],dP,D0),(TV=qL[aQ])?(Z0[dP]=TV,TV.__data__=D0[dP],qL[aQ]=null):z[dP]=new R(a,D0[dP]);for(dP=0;dP<OY;++dP)(TV=I[dP])&&qL[As[dP]]===TV&&(Ws[dP]=TV)}
function h(a,I){return a<I?-1:a>I?1:a>=I?0:NaN}
function E(a){return function(){this.removeAttribute(a)}}
function A(a){return function(){this.removeAttributeNS(a.space,a.local)}}
function J(a,I){return function(){this.setAttribute(a,I)}}
function C(a,I){return function(){this.setAttributeNS(a.space,a.local,I)}}
function X(a,I){return function(){var z=I.apply(this,arguments);z==null?this.removeAttribute(a):this.setAttribute(a,z)}}
function L1(a,I){return function(){var z=I.apply(this,arguments);z==null?this.removeAttributeNS(a.space,a.local):this.setAttributeNS(a.space,a.local,z)}}
function Fw(a){return function(){this.style.removeProperty(a)}}
function GB(a,I,z){return function(){this.style.setProperty(a,I,z)}}
function Yt(a,I,z){return function(){var Z0=I.apply(this,arguments);Z0==null?this.style.removeProperty(a):this.style.setProperty(a,Z0,z)}}
function lH(a,I){return a.style.getPropertyValue(I)||(a.ownerDocument&&a.ownerDocument.defaultView||a.document&&a||a.defaultView).getComputedStyle(a,null).getPropertyValue(I)}
function RF(a){return function(){delete this[a]}}
function jf(a,I){return function(){this[a]=I}}
function f1(a,I){return function(){var z=I.apply(this,arguments);z==null?delete this[a]:this[a]=z}}
function n0(){this.textContent=""}
function r5(a){return function(){this.textContent=a}}
function yq(a){return function(){var I=a.apply(this,arguments);this.textContent=I==null?"":I}}
function ZN(){this.innerHTML=""}
function GV(a){return function(){this.innerHTML=a}}
function IO(a){return function(){var I=a.apply(this,arguments);this.innerHTML=I==null?"":I}}
function d5(){return null}
function n8(){var a=this.parentNode;a&&a.removeChild(this)}
function lq(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function tx(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function ut(a,I,z){a=oO(a,I,z);return function(Z0){var Ws=Z0.relatedTarget;Ws&&(Ws===this||Ws.compareDocumentPosition(this)&8)||a.call(this,Z0)}}
function oO(a,I,z){return function(){a.call(this,this.__data__,I,z)}}
function uq(a){return a.trim().split(/^|\s+/).map(function(I){var z="",Z0=I.indexOf(".");Z0>=0&&(z=I.slice(Z0+1),I=I.slice(0,Z0));return{type:I,name:z}})}
function RO(a){return function(){var I=this.__on;if(I){for(var z=0,Z0=-1,Ws=I.length,D0;z<Ws;++z)(D0=I[z],a.type&&D0.type!==a.type||D0.name!==a.name)?I[++Z0]=D0:this.removeEventListener(D0.type,D0.listener,D0.capture);++Z0?I.length=Z0:delete this.__on}}}
function iq(a,I,z){var Z0=IuO.hasOwnProperty(a.type)?ut:oO;return function(Ws,D0,K1){Ws=this.__on;var dP;D0=Z0(I,D0,K1);if(Ws){K1=0;for(var TV=Ws.length;K1<TV;++K1)if((dP=Ws[K1]).type===a.type&&dP.name===a.name){this.removeEventListener(dP.type,dP.listener,dP.capture);this.addEventListener(dP.type,dP.listener=D0,dP.capture=z);dP.value=I;return}}this.addEventListener(a.type,D0,z);dP={type:a.type,name:a.name,value:I,listener:D0,capture:z};Ws?Ws.push(dP):this.__on=[dP]}}
function hU(a,I,z){var Z0=a.ownerDocument&&a.ownerDocument.defaultView||a.document&&a||a.defaultView,Ws=Z0.CustomEvent;typeof Ws==="function"?Ws=new Ws(I,z):(Ws=Z0.document.createEvent("Event"),z?(Ws.initEvent(I,z.bubbles,z.cancelable),Ws.detail=z.detail):Ws.initEvent(I,!1,!1));a.dispatchEvent(Ws)}
function Qq(a,I){return function(){return hU(this,a,I)}}
function Fh(a,I){return function(){return hU(this,a,I.apply(this,arguments))}}
function g5(a,I){this._groups=a;this._parents=I}
function SY(){return new g5([[document.documentElement]],GL8)}
function Xw(){this._="@"+(++Fym).toString(36)}
function vl(a,I,z){a.prototype=I.prototype=z;z.constructor=a}
function oQ(a,I){a=Object.create(a.prototype);for(var z in I)a[z]=I[z];return a}
function H6(){}
function IQ(a){var I;a=(a+"").trim().toLowerCase();return(I=$WP.exec(a))?(I=parseInt(I[1],16),new k5(I>>8&15|I>>4&240,I>>4&15|I&240,(I&15)<<4|I&15,1)):(I=DWg.exec(a))?JU(parseInt(I[1],16)):(I=luP.exec(a))?new k5(I[1],I[2],I[3],1):(I=vwv.exec(a))?new k5(I[1]*255/100,I[2]*255/100,I[3]*255/100,1):(I=ows.exec(a))?Zb(I[1],I[2],I[3],I[4]):(I=RKv.exec(a))?Zb(I[1]*255/100,I[2]*255/100,I[3]*255/100,I[4]):(I=cEy.exec(a))?Aj(I[1],I[2]/100,I[3]/100,1):(I=nwy.exec(a))?Aj(I[1],I[2]/100,I[3]/100,I[4]):dWQ.hasOwnProperty(a)?
JU(dWQ[a]):a==="transparent"?new k5(NaN,NaN,NaN,0):null}
function JU(a){return new k5(a>>16&255,a>>8&255,a&255,1)}
function Zb(a,I,z,Z0){Z0<=0&&(a=I=z=NaN);return new k5(a,I,z,Z0)}
function bG(a){a instanceof H6||(a=IQ(a));if(!a)return new k5;a=a.rgb();return new k5(a.r,a.g,a.b,a.opacity)}
function Hl(a,I,z,Z0){return arguments.length===1?bG(a):new k5(a,I,z,Z0==null?1:Z0)}
function k5(a,I,z,Z0){this.r=+a;this.g=+I;this.b=+z;this.opacity=+Z0}
function Tg(a){a=Math.max(0,Math.min(255,Math.round(a)||0));return(a<16?"0":"")+a.toString(16)}
function Aj(a,I,z,Z0){Z0<=0?a=I=z=NaN:z<=0||z>=1?a=I=NaN:I<=0&&(a=NaN);return new EK(a,I,z,Z0)}
function c4(a){if(a instanceof EK)return new EK(a.h,a.s,a.l,a.opacity);a instanceof H6||(a=IQ(a));if(!a)return new EK;if(a instanceof EK)return a;a=a.rgb();var I=a.r/255,z=a.g/255,Z0=a.b/255,Ws=Math.min(I,z,Z0),D0=Math.max(I,z,Z0),K1=NaN,dP=D0-Ws,TV=(D0+Ws)/2;dP?(K1=I===D0?(z-Z0)/dP+(z<Z0)*6:z===D0?(Z0-I)/dP+2:(I-z)/dP+4,dP/=TV<.5?D0+Ws:2-D0-Ws,K1*=60):dP=TV>0&&TV<1?0:K1;return new EK(K1,dP,TV,a.opacity)}
function Hy(a,I,z,Z0){return arguments.length===1?c4(a):new EK(a,I,z,Z0==null?1:Z0)}
function EK(a,I,z,Z0){this.h=+a;this.s=+I;this.l=+z;this.opacity=+Z0}
function ZD(a,I,z){return(a<60?I+(z-I)*a/60:a<180?z:a<240?I+(z-I)*(240-a)/60:I)*255}
function un(a){if(a instanceof wP)return new wP(a.l,a.a,a.b,a.opacity);if(a instanceof kL){if(isNaN(a.h))return new wP(a.l,0,0,a.opacity);var I=a.h*aut;return new wP(a.l,Math.cos(I)*a.c,Math.sin(I)*a.c,a.opacity)}a instanceof k5||(a=bG(a));var z=RQ(a.r),Z0=RQ(a.g),Ws=RQ(a.b);I=Ps(.2225045*z+.7168786*Z0+.0606169*Ws);if(z===Z0&&Z0===Ws)var D0=z=I;else D0=Ps((.4360747*z+.3850649*Z0+.1430804*Ws)/.96422),z=Ps((.0139322*z+.0971045*Z0+.7141733*Ws)/.82521);return new wP(116*I-16,500*(D0-I),200*(I-z),a.opacity)}
function wP(a,I,z,Z0){this.l=+a;this.a=+I;this.b=+z;this.opacity=+Z0}
function Ps(a){return a>Kyy?Math.pow(a,1/3):a/hK5+sUM}
function rP(a){return a>Lu?a*a*a:hK5*(a-sUM)}
function K0(a){return 255*(a<=.0031308?12.92*a:1.055*Math.pow(a,1/2.4)-.055)}
function RQ(a){return(a/=255)<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4)}
function I7(a){if(a instanceof kL)return new kL(a.h,a.c,a.l,a.opacity);a instanceof wP||(a=un(a));if(a.a===0&&a.b===0)return new kL(NaN,0,a.l,a.opacity);var I=Math.atan2(a.b,a.a)*jUt;return new kL(I<0?I+360:I,Math.sqrt(a.a*a.a+a.b*a.b),a.l,a.opacity)}
function dy(a,I,z,Z0){return arguments.length===1?I7(a):new kL(a,I,z,Z0==null?1:Z0)}
function kL(a,I,z,Z0){this.h=+a;this.c=+I;this.l=+z;this.opacity=+Z0}
function f0(a,I,z,Z0){if(arguments.length===1){var Ws=a;if(Ws instanceof Pw)Ws=new Pw(Ws.h,Ws.s,Ws.l,Ws.opacity);else{Ws instanceof k5||(Ws=bG(Ws));var D0=Ws.g/255,K1=Ws.b/255,dP=(EwV*K1+Ws.r/255*-1.7884503806-3.5172982438*D0)/(EwV+-1.7884503806-3.5172982438);K1-=dP;var TV=(1.97294*(D0-dP)- -.29227*K1)/-.90649;K1=(D0=Math.sqrt(TV*TV+K1*K1)/(1.97294*dP*(1-dP)))?Math.atan2(TV,K1)*jUt-120:NaN;Ws=new Pw(K1<0?K1+360:K1,D0,dP,Ws.opacity)}}else Ws=new Pw(a,I,z,Z0==null?1:Z0);return Ws}
function Pw(a,I,z,Z0){this.h=+a;this.s=+I;this.l=+z;this.opacity=+Z0}
function o7(a,I,z,Z0,Ws){var D0=a*a,K1=D0*a;return((1-3*a+3*D0-K1)*I+(4-6*D0+3*K1)*z+(1+3*a+3*D0-3*K1)*Z0+K1*Ws)/6}
function lt(a){return function(){return a}}
function Yh(a,I){return function(z){return a+z*I}}
function SU(a,I,z){return a=Math.pow(a,z),I=Math.pow(I,z)-a,z=1/z,function(Z0){return Math.pow(a+Z0*I,z)}}
function pG(a,I){var z=I-a;return z?Yh(a,z>180||z<-180?z-360*Math.round(z/360):z):lt(isNaN(a)?I:a)}
function BE(a){return(a=+a)===1?N4:function(I,z){return z-I?SU(I,z,a):lt(isNaN(I)?z:I)}}
function N4(a,I){var z=I-a;return z?Yh(a,z):lt(isNaN(a)?I:a)}
function n5(a){return function(I){var z=I.length,Z0=Array(z),Ws=Array(z),D0=Array(z),K1;for(K1=0;K1<z;++K1){var dP=Hl(I[K1]);Z0[K1]=dP.r||0;Ws[K1]=dP.g||0;D0[K1]=dP.b||0}Z0=a(Z0);Ws=a(Ws);D0=a(D0);dP.opacity=1;return function(TV){dP.r=Z0(TV);dP.g=Ws(TV);dP.b=D0(TV);return dP+""}}}
function s3(a,I){return a=+a,I-=a,function(z){return a+I*z}}
function K5(a){return function(){return a}}
function S6(a){return function(I){return a(I)+""}}
function Ax(a,I){var z=VkG.lastIndex=bDF.lastIndex=0,Z0,Ws,D0,K1=-1,dP=[],TV=[];a+="";for(I+="";(Z0=VkG.exec(a))&&(Ws=bDF.exec(I));)(D0=Ws.index)>z&&(D0=I.slice(z,D0),dP[K1]?dP[K1]+=D0:dP[++K1]=D0),(Z0=Z0[0])===(Ws=Ws[0])?dP[K1]?dP[K1]+=Ws:dP[++K1]=Ws:(dP[++K1]=null,TV.push({i:K1,x:s3(Z0,Ws)})),z=bDF.lastIndex;z<I.length&&(D0=I.slice(z),dP[K1]?dP[K1]+=D0:dP[++K1]=D0);return dP.length<2?TV[0]?S6(TV[0].x):K5(I):(I=TV.length,function(qL){for(var OY=0,$L;OY<I;++OY)dP[($L=TV[OY]).i]=$L.x(qL);return dP.join("")})}
function ys(a,I,z,Z0,Ws,D0){var K1,dP,TV;if(K1=Math.sqrt(a*a+I*I))a/=K1,I/=K1;if(TV=a*z+I*Z0)z-=a*TV,Z0-=I*TV;if(dP=Math.sqrt(z*z+Z0*Z0))z/=dP,Z0/=dP,TV/=dP;a*Z0<I*z&&(a=-a,I=-I,TV=-TV,K1=-K1);return{translateX:Ws,translateY:D0,rotate:Math.atan2(I,a)*Poh,skewX:Math.atan(TV)*Poh,scaleX:K1,scaleY:dP}}
function Y5(a,I,z,Z0){function Ws(qL){return qL.length?qL.pop()+" ":""}
function D0(qL,OY,$L,As,aQ,nG){qL!==$L||OY!==As?(aQ=aQ.push("translate(",null,I,null,z),nG.push({i:aQ-4,x:s3(qL,$L)},{i:aQ-2,x:s3(OY,As)})):($L||As)&&aQ.push("translate("+$L+I+As+z)}
function K1(qL,OY,$L,As){qL!==OY?(qL-OY>180?OY+=360:OY-qL>180&&(qL+=360),As.push({i:$L.push(Ws($L)+"rotate(",null,Z0)-2,x:s3(qL,OY)})):OY&&$L.push(Ws($L)+"rotate("+OY+Z0)}
function dP(qL,OY,$L,As){qL!==OY?As.push({i:$L.push(Ws($L)+"skewX(",null,Z0)-2,x:s3(qL,OY)}):OY&&$L.push(Ws($L)+"skewX("+OY+Z0)}
function TV(qL,OY,$L,As,aQ,nG){qL!==$L||OY!==As?(aQ=aQ.push(Ws(aQ)+"scale(",null,",",null,")"),nG.push({i:aQ-4,x:s3(qL,$L)},{i:aQ-2,x:s3(OY,As)})):$L===1&&As===1||aQ.push(Ws(aQ)+"scale("+$L+","+As+")")}
return function(qL,OY){var $L=[],As=[];qL=a(qL);OY=a(OY);D0(qL.translateX,qL.translateY,OY.translateX,OY.translateY,$L,As);K1(qL.rotate,OY.rotate,$L,As);dP(qL.skewX,OY.skewX,$L,As);TV(qL.scaleX,qL.scaleY,OY.scaleX,OY.scaleY,$L,As);qL=OY=null;return function(aQ){for(var nG=-1,Qd=As.length,U3;++nG<Qd;)$L[(U3=As[nG]).i]=U3.x(aQ);return $L.join("")}}}
function bq(a){return function(I,z){var Z0=a((I=Hy(I)).h,(z=Hy(z)).h),Ws=N4(I.s,z.s),D0=N4(I.l,z.l),K1=N4(I.opacity,z.opacity);return function(dP){I.h=Z0(dP);I.s=Ws(dP);I.l=D0(dP);I.opacity=K1(dP);return I+""}}}
function $h(a){return function(I,z){var Z0=a((I=dy(I)).h,(z=dy(z)).h),Ws=N4(I.c,z.c),D0=N4(I.l,z.l),K1=N4(I.opacity,z.opacity);return function(dP){I.h=Z0(dP);I.c=Ws(dP);I.l=D0(dP);I.opacity=K1(dP);return I+""}}}
function By(a){return function Z0(z){function Ws(D0,K1){var dP=a((D0=f0(D0)).h,(K1=f0(K1)).h),TV=N4(D0.s,K1.s),qL=N4(D0.l,K1.l),OY=N4(D0.opacity,K1.opacity);return function($L){D0.h=dP($L);D0.s=TV($L);D0.l=qL(Math.pow($L,z));D0.opacity=OY($L);return D0+""}}
z=+z;Ws.gamma=Z0;return Ws}(1)}
function QL(){return UL||(p0V(Tl),UL=jP.now()+llP)}
function Tl(){UL=0}
function pV(){this._call=this._time=this._next=null}
function wl(a,I,z){var Z0=new pV;Z0.restart(a,I,z);return Z0}
function UJ(){UL=(vEw=jP.now())+llP;Zy=EZ=0;try{QL();++Zy;for(var a=oEx,I;a;)(I=UL-a._time)>=0&&a._call.call(null,I),a=a._next;--Zy}finally{Zy=0;a=oEx;for(var z=Infinity;a;)if(a._call){z>a._time&&(z=a._time);var Z0=a;a=a._next}else I=a._next,a._next=null,a=Z0?Z0._next=I:oEx=I;PY=Z0;Yz(z);UL=0}}
function Np_(){var a=jP.now(),I=a-vEw;I>1E3&&(llP-=I,vEw=a)}
function Yz(a){Zy||(EZ&&(EZ=clearTimeout(EZ)),a-UL>24?(a<Infinity&&(EZ=setTimeout(UJ,a-jP.now()-llP)),pe&&(pe=clearInterval(pe))):(pe||(vEw=jP.now(),pe=setInterval(Np_,1E3)),Zy=1,p0V(UJ)))}
function zKV(a,I,z){var Z0=new pV;I=I==null?0:+I;Z0.restart(function(Ws){Z0.stop();a(Ws+I)},I,z);
return Z0}
function MkA(a,I,z,Z0,Ws,D0){var K1=a.__transition;if(!K1)a.__transition={};else if(z in K1)return;fu5(a,z,{name:I,index:Z0,group:Ws,on:kLQ,tween:yE5,time:D0.time,delay:D0.delay,duration:D0.duration,ease:D0.ease,timer:null,state:0})}
function gwf(a,I){a=rg(a,I);if(a.state>0)throw Error("ze");return a}
function Y1(a,I){a=rg(a,I);if(a.state>2)throw Error("Ae");return a}
function rg(a,I){a=a.__transition;if(!a||!(a=a[I]))throw Error("Be");return a}
function fu5(a,I,z){function Z0(TV){var qL,OY;if(z.state!==1)return D0();for(As in K1){var $L=K1[As];if($L.name===z.name){if($L.state===3)return zKV(Z0);$L.state===4?($L.state=6,$L.timer.stop(),$L.on.call("interrupt",a,a.__data__,$L.index,$L.group),delete K1[As]):+As<I&&($L.state=6,$L.timer.stop(),delete K1[As])}}zKV(function(){z.state===3&&(z.state=4,z.timer.restart(Ws,z.delay,z.time),Ws(TV))});
z.state=2;z.on.call("start",a,a.__data__,z.index,z.group);if(z.state===2){z.state=3;dP=Array(OY=z.tween.length);var As=0;for(qL=-1;As<OY;++As)if($L=z.tween[As].value.call(a,a.__data__,z.index,z.group))dP[++qL]=$L;dP.length=qL+1}}
function Ws(TV){TV=TV<z.duration?z.ease.call(null,TV/z.duration):(z.timer.restart(D0),z.state=5,1);for(var qL=-1,OY=dP.length;++qL<OY;)dP[qL].call(null,TV);z.state===5&&(z.on.call("end",a,a.__data__,z.index,z.group),D0())}
function D0(){z.state=6;z.timer.stop();delete K1[I];for(var TV in K1)return;delete a.__transition}
var K1=a.__transition,dP;K1[I]=z;z.timer=wl(function(TV){z.state=1;z.timer.restart(Z0,z.delay,z.time);z.delay<=TV&&Z0(TV-z.delay)},0,z.time)}
function w0g(a,I){var z,Z0;return function(){var Ws=Y1(this,a),D0=Ws.tween;if(D0!==z){Z0=z=D0;D0=0;for(var K1=Z0.length;D0<K1;++D0)if(Z0[D0].name===I){Z0=Z0.slice();Z0.splice(D0,1);break}}Ws.tween=Z0}}
function UWm(a,I,z){var Z0,Ws;if(typeof z!=="function")throw Error();return function(){var D0=Y1(this,a),K1=D0.tween;if(K1!==Z0){Ws=(Z0=K1).slice();K1={name:I,value:z};for(var dP=0,TV=Ws.length;dP<TV;++dP)if(Ws[dP].name===I){Ws[dP]=K1;break}dP===TV&&Ws.push(K1)}D0.tween=Ws}}
function GL1(a,I,z){var Z0=a._id;a.each(function(){var Ws=Y1(this,Z0);(Ws.value||(Ws.value={}))[I]=z.apply(this,arguments)});
return function(Ws){return rg(Ws,Z0).value[I]}}
function mWq(a,I){var z;return(typeof I==="number"?s3:I instanceof IQ?JEV:(z=IQ(I))?(I=z,JEV):Ax)(a,I)}
function Ywc(a){return function(){this.removeAttribute(a)}}
function eKv(a){return function(){this.removeAttributeNS(a.space,a.local)}}
function IuQ(a,I,z){var Z0,Ws;return function(){var D0=this.getAttribute(a);return D0===z?null:D0===Z0?Ws:Ws=I(Z0=D0,z)}}
function dWv(a,I,z){var Z0,Ws;return function(){var D0=this.getAttributeNS(a.space,a.local);return D0===z?null:D0===Z0?Ws:Ws=I(Z0=D0,z)}}
function auY(a,I,z){var Z0,Ws,D0;return function(){var K1=z(this);if(K1==null)return void this.removeAttribute(a);var dP=this.getAttribute(a);return dP===K1?null:dP===Z0&&K1===Ws?D0:D0=I(Z0=dP,Ws=K1)}}
function hKy(a,I,z){var Z0,Ws,D0;return function(){var K1=z(this);if(K1==null)return void this.removeAttributeNS(a.space,a.local);var dP=this.getAttributeNS(a.space,a.local);return dP===K1?null:dP===Z0&&K1===Ws?D0:D0=I(Z0=dP,Ws=K1)}}
function sUk(a,I){function z(){var Z0=this,Ws=I.apply(Z0,arguments);return Ws&&function(D0){Z0.setAttributeNS(a.space,a.local,Ws(D0))}}
z._value=I;return z}
function jUY(a,I){function z(){var Z0=this,Ws=I.apply(Z0,arguments);return Ws&&function(D0){Z0.setAttribute(a,Ws(D0))}}
z._value=I;return z}
function Ewg(a,I){return function(){gwf(this,a).delay=+I.apply(this,arguments)}}
function Pom(a,I){return I=+I,function(){gwf(this,a).delay=I}}
function p0g(a,I){return function(){Y1(this,a).duration=+I.apply(this,arguments)}}
function zKg(a,I){return I=+I,function(){Y1(this,a).duration=I}}
function mWs(a,I){if(typeof I!=="function")throw Error();return function(){Y1(this,a).ease=I}}
function JEg(a){return(a+"").trim().split(/^|\s+/).every(function(I){var z=I.indexOf(".");z>=0&&(I=I.slice(0,z));return!I||I==="start"})}
function Co0(a,I,z){var Z0,Ws,D0=JEg(I)?gwf:Y1;return function(){var K1=D0(this,a),dP=K1.on;if(dP!==Z0)(Ws=(Z0=dP).copy()).on(I,z);K1.on=Ws}}
function rEk(a){return function(){var I=this.parentNode,z;for(z in this.__transition)if(+z!==a)return;I&&I.removeChild(this)}}
function QUw(a,I){var z,Z0,Ws;return function(){var D0=lH(this,a),K1=(this.style.removeProperty(a),lH(this,a));return D0===K1?null:D0===z&&K1===Z0?Ws:Ws=I(z=D0,Z0=K1)}}
function X08(a){return function(){this.style.removeProperty(a)}}
function AEc(a,I,z){var Z0,Ws;return function(){var D0=lH(this,a);return D0===z?null:D0===Z0?Ws:Ws=I(Z0=D0,z)}}
function HDm(a,I,z){var Z0,Ws,D0;return function(){var K1=lH(this,a),dP=z(this);dP==null&&(dP=(this.style.removeProperty(a),lH(this,a)));return K1===dP?null:K1===Z0&&dP===Ws?D0:D0=I(Z0=K1,Ws=dP)}}
function BVY(a,I,z){function Z0(){var Ws=this,D0=I.apply(Ws,arguments);return D0&&function(K1){Ws.style.setProperty(a,D0(K1),z)}}
Z0._value=I;return Z0}
function xWc(a){return function(){this.textContent=a}}
function qw8(a){return function(){var I=a(this);this.textContent=I==null?"":I}}
function R3(a,I,z,Z0){this._groups=a;this._parents=I;this._name=z;this._id=Z0}
function Fyw(a){return{type:a}}
function $W0(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function R91(){}
function Cos(a,I){var z=new R91;if(a instanceof R91)a.each(function(K1,dP){z.set(dP,K1)});
else if(Array.isArray(a)){var Z0=-1,Ws=a.length,D0;if(I==null)for(;++Z0<Ws;)z.set(Z0,a[Z0]);else for(;++Z0<Ws;)z.set(I(D0=a[Z0],Z0,a),D0)}else if(a)for(Z0 in a)z.set(Z0,a[Z0]);return z}
function cVP(){}
function rEM(a){return function(I){for(var z={},Z0=0;Z0<a.length;Z0++)z[a[Z0]]=I[Z0]||"";return z}}
function LjY(a,I){var z=rEM(a);return function(Z0,Ws){return I(z(Z0),Ws,a)}}
function Zbm(a){var I=Object.create(null),z=[];a.forEach(function(Z0){for(var Ws in Z0)Ws in I||z.push(I[Ws]=Ws)});
return z}
function QUl(a){function I(K1,dP){function TV(){if(nG)return DWB;if(Qd)return Qd=!1,X00;var WM,Ln=$L,cB;if(K1.charCodeAt(Ln)===34){for(;$L++<OY&&K1.charCodeAt($L)!==34||K1.charCodeAt(++$L)===34;);(WM=$L)>=OY?nG=!0:(cB=K1.charCodeAt($L++))===10?Qd=!0:cB===13&&(Qd=!0,K1.charCodeAt($L)===10&&++$L);return K1.slice(Ln+1,WM-1).replace(/""/g,'"')}for(;$L<OY;){if((cB=K1.charCodeAt(WM=$L++))===10)Qd=!0;else if(cB===13)Qd=!0,K1.charCodeAt($L)===10&&++$L;else if(cB!==D0)continue;return K1.slice(Ln,WM)}return nG=
!0,K1.slice(Ln,OY)}
var qL=[],OY=K1.length,$L=0,As=0,aQ,nG=OY<=0,Qd=!1;K1.charCodeAt(OY-1)===10&&--OY;for(K1.charCodeAt(OY-1)===13&&--OY;(aQ=TV())!==DWB;){for(var U3=[];aQ!==X00&&aQ!==DWB;)U3.push(aQ),aQ=TV();dP&&(U3=dP(U3,As++))==null||qL.push(U3)}return qL}
function z(K1){return K1.map(Z0).join(a)}
function Z0(K1){return K1==null?"":Ws.test(K1)?'"'+K1.replace(/"/g,'""')+'"':K1}
var Ws=new RegExp('["'+a+"\n\r]"),D0=a.charCodeAt(0);return{parse:function(K1,dP){var TV,qL;K1=I(K1,function(OY,$L){if(TV)return TV(OY,$L-1);qL=OY;TV=dP?LjY(OY,dP):rEM(OY)});
K1.columns=qL||[];return K1},
parseRows:I,format:function(K1,dP){dP==null&&(dP=Zbm(K1));return[dP.map(Z0).join(a)].concat(K1.map(function(TV){return dP.map(function(qL){return Z0(TV[qL])}).join(a)})).join("\n")},
formatRows:function(K1){return K1.map(z).join("\n")}}}
function NXm(a){if(!a.ok)throw Error("Ce`"+a.status+"`"+a.statusText);return a.text()}
function AEI(a){return function(I,z,Z0){arguments.length===2&&typeof z==="function"&&(Z0=z,z=void 0);return fetch(I,z).then(NXm).then(function(Ws){return a(Ws,Z0)})}}
function HDh(a,I,z,Z0){if(isNaN(I)||isNaN(z))return a;var Ws,D0=a._root;Z0={data:Z0};var K1=a._x0,dP=a._y0,TV=a._x1,qL=a._y1,OY,$L,As,aQ,nG;if(!D0)return a._root=Z0,a;for(;D0.length;)if((As=I>=(OY=(K1+TV)/2))?K1=OY:TV=OY,(aQ=z>=($L=(dP+qL)/2))?dP=$L:qL=$L,Ws=D0,!(D0=D0[nG=aQ<<1|As]))return Ws[nG]=Z0,a;var Qd=+a._x.call(null,D0.data);var U3=+a._y.call(null,D0.data);if(I===Qd&&z===U3)return Z0.next=D0,Ws?Ws[nG]=Z0:a._root=Z0,a;do Ws=Ws?Ws[nG]=Array(4):a._root=Array(4),(As=I>=(OY=(K1+TV)/2))?K1=OY:TV=
OY,(aQ=z>=($L=(dP+qL)/2))?dP=$L:qL=$L;while((nG=aQ<<1|As)===(As=(U3>=$L)<<1|Qd>=OY));return Ws[As]=D0,Ws[nG]=Z0,a}
function Hq(a,I,z,Z0,Ws){this.node=a;this.x0=I;this.y0=z;this.x1=Z0;this.y1=Ws}
function SB5(a){return a[0]}
function ibY(a){return a[1]}
function lu0(a,I,z,Z0,Ws,D0){this._x=a;this._y=I;this._x0=z;this._y0=Z0;this._x1=Ws;this._y1=D0;this._root=void 0}
function BVt(a){for(var I={data:a.data},z=I;a=a.next;)z=z.next={data:a.data};return I}
function nEG(a,I){if((I=(a=I?a.toExponential(I-1):a.toExponential()).indexOf("e"))<0)return null;var z=a.slice(0,I);return[z.length>1?z[0]+z.slice(2):z,+a.slice(I+1)]}
function uXg(a){return a=nEG(Math.abs(a)),a?a[1]:NaN}
function TXv(a,I){return function(z,Z0){for(var Ws=z.length,D0=[],K1=0,dP=a[0],TV=0;Ws>0&&dP>0;){TV+dP+1>Z0&&(dP=Math.max(1,Z0-TV));D0.push(z.substring(Ws-=dP,Ws+dP));if((TV+=dP+1)>Z0)break;dP=a[K1=(K1+1)%a.length]}return D0.reverse().join(I)}}
function tG8(a){return function(I){return I.replace(/[0-9]/g,function(z){return a[+z]})}}
function vwA(a){return new ow_(a)}
function ow_(a){if(!(I=ObP.exec(a)))throw Error("De`"+a);var I;this.fill=I[1]||" ";this.align=I[2]||">";this.sign=I[3]||"-";this.symbol=I[4]||"";this.zero=!!I[5];this.width=I[6]&&+I[6];this.comma=!!I[7];this.precision=I[8]&&+I[8].slice(1);this.trim=!!I[9];this.type=I[10]||""}
function xWI(a,I){I=nEG(a,I);if(!I)return a+"";a=I[0];I=I[1];return I<0?"0."+Array(-I).join("0")+a:a.length>I+1?a.slice(0,I+1)+"."+a.slice(I+1):a+Array(I-a.length+2).join("0")}
function qw0(a){return a}
function Wjw(a){function I(dP){function TV(B6){var RW=cB,Xm=Tq,c6,b9;if(Ln==="c")Xm=Z8(B6)+Xm,B6="";else{B6=+B6;var sv=B6<0;B6=Z8(Math.abs(B6),U3);if(WM){var x_=B6.length,HM=1,Vb=-1;a:for(;HM<x_;++HM)switch(B6[HM]){case ".":Vb=c6=HM;break;case "0":Vb===0&&(Vb=HM);c6=HM;break;default:if(!+B6[HM])break a;Vb>0&&(Vb=0)}B6=Vb>0?B6.slice(0,Vb)+B6.slice(c6+1):B6}sv&&+B6===0&&(sv=!1);RW=(sv?$L==="("?$L:"-":$L==="-"||$L==="("?"":$L)+RW;Xm=(Ln==="s"?Ljt[8+Zbh/3]:"")+Xm+(sv&&$L==="("?")":"");if(ny)for(sv=-1,
c6=B6.length;++sv<c6;)if(b9=B6.charCodeAt(sv),48>b9||b9>57){Xm=(b9===46?Ws+B6.slice(sv+1):B6.slice(sv))+Xm;B6=B6.slice(0,sv);break}}Qd&&!aQ&&(B6=z(B6,Infinity));b9=RW.length+B6.length+Xm.length;sv=b9<nG?Array(nG-b9+1).join(qL):"";Qd&&aQ&&(B6=z(sv+B6,sv.length?nG-Xm.length:Infinity),sv="");switch(OY){case "<":B6=RW+B6+Xm+sv;break;case "=":B6=RW+sv+B6+Xm;break;case "^":B6=sv.slice(0,b9=sv.length>>1)+RW+B6+Xm+sv.slice(b9);break;default:B6=sv+RW+B6+Xm}return D0(B6)}
dP=vwA(dP);var qL=dP.fill,OY=dP.align,$L=dP.sign,As=dP.symbol,aQ=dP.zero,nG=dP.width,Qd=dP.comma,U3=dP.precision,WM=dP.trim,Ln=dP.type;Ln==="n"?(Qd=!0,Ln="g"):NXh[Ln]||(U3==null&&(U3=12),WM=!0,Ln="g");if(aQ||qL==="0"&&OY==="=")aQ=!0,qL="0",OY="=";var cB=As==="$"?Z0[0]:As==="#"&&/[boxX]/.test(Ln)?"0"+Ln.toLowerCase():"",Tq=As==="$"?Z0[1]:/[%p]/.test(Ln)?K1:"",Z8=NXh[Ln],ny=/[defgprs%]/.test(Ln);U3=U3==null?6:/[gprs]/.test(Ln)?Math.max(1,Math.min(21,U3)):Math.max(0,Math.min(20,U3));TV.toString=function(){return dP+
""};
return TV}
var z=a.grouping&&a.thousands?TXv(a.grouping,a.thousands):qw0,Z0=a.currency,Ws=a.decimal,D0=a.numerals?tG8(a.numerals):qw0,K1=a.percent||"%";return{format:I,formatPrefix:function(dP,TV){var qL=I((dP=vwA(dP),dP.type="f",dP));dP=Math.max(-8,Math.min(8,Math.floor(uXg(TV)/3)))*3;var OY=Math.pow(10,-dP),$L=Ljt[8+dP/3];return function(As){return qL(OY*As)+$L}}}}
function C5(){this.reset()}
function SBL(a,I,z){var Z0=a.s=I+z,Ws=Z0-I;a.t=I-(Z0-Ws)+(z-Ws)}
function KS0(a){return a>1?AZ:a<-1?-AZ:Math.asin(a)}
function VGm(){}
function ibt(a){var I=a[0];a=a[1];var z=Ht(a);return[z*Ht(I),z*YQ(I),YQ(a)]}
function uXV(a,I){return[a[1]*I[2]-a[2]*I[1],a[2]*I[0]-a[0]*I[2],a[0]*I[1]-a[1]*I[0]]}
function TXQ(a){var I=fl_(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]);a[0]/=I;a[1]/=I;a[2]/=I}
function bbw(){var a=[],I;return{point:function(z,Z0){I.push([z,Z0])},
lineStart:function(){a.push(I=[])},
lineEnd:VGm,rejoin:function(){a.length>1&&a.push(a.pop().concat(a.shift()))},
result:function(){var z=a;a=[];I=null;return z}}}
function kI1(a,I,z,Z0){this.x=a;this.z=I;this.o=z;this.e=Z0;this.v=!1;this.n=this.p=null}
function MGk(a,I,z,Z0,Ws){var D0=[],K1=[];a.forEach(function($L){if(!((As=$L.length-1)<=0)){var As,aQ=$L[0],nG=$L[As],Qd=aQ;if(cS(Qd[0]-nG[0])<1E-6&&cS(Qd[1]-nG[1])<1E-6){Ws.lineStart();for(dP=0;dP<As;++dP)Ws.point((aQ=$L[dP])[0],aQ[1]);Ws.lineEnd()}else D0.push(As=new kI1(aQ,$L,null,!0)),K1.push(As.o=new kI1(aQ,null,As,!1)),D0.push(As=new kI1(nG,$L,null,!1)),K1.push(As.o=new kI1(nG,null,As,!0))}});
if(D0.length){K1.sort(I);tG0(D0);tG0(K1);var dP=0;for(a=K1.length;dP<a;++dP)K1[dP].e=z=!z;z=D0[0];for(var TV;;){for(var qL=z,OY=!0;qL.v;)if((qL=qL.n)===z)return;I=qL.z;Ws.lineStart();do{qL.v=qL.o.v=!0;if(qL.e){if(OY)for(dP=0,a=I.length;dP<a;++dP)Ws.point((TV=I[dP])[0],TV[1]);else Z0(qL.x,qL.n.x,1,Ws);qL=qL.n}else{if(OY)for(I=qL.p.z,dP=I.length-1;dP>=0;--dP)Ws.point((TV=I[dP])[0],TV[1]);else Z0(qL.x,qL.p.x,-1,Ws);qL=qL.p}qL=qL.o;I=qL.z;OY=!OY}while(!qL.v);Ws.lineEnd()}}}
function tG0(a){if(I=a.length){for(var I,z=0,Z0=a[0],Ws;++z<I;)Z0.n=Ws=a[z],Ws.p=Z0,Z0=Ws;Z0.n=Ws=a[0];Ws.p=Z0}}
function guQ(a){return a.length>1}
function Gzm(a,I){return((a=a.x)[0]<0?a[1]-AZ-1E-6:AZ-a[1])-((I=I.x)[0]<0?I[1]-AZ-1E-6:AZ-I[1])}
function RKG(){}
function ObN(a){return function(I,z){var Z0=Ht(I),Ws=Ht(z);Z0=a(Z0*Ws);return[Z0*Ws*YQ(I),Z0*YQ(z)]}}
function zm(a){return function(I,z){var Z0=fl_(I*I+z*z),Ws=a(Z0),D0=YQ(Ws);Ws=Ht(Ws);return[Wjl(I*D0,Z0*Ws),KS0(Z0&&z*D0/Z0)]}}
function Fjs(a){var I=0,z=a.children,Z0=z&&z.length;if(Z0)for(;--Z0>=0;)I+=z[Z0].value;else I=1;a.value=I}
function VGh(a,I){var z=new mo(a);a=+a.value&&(z.value=a.value);var Z0,Ws=[z],D0,K1,dP,TV;for(I==null&&(I=$o8);Z0=Ws.pop();)if(a&&(Z0.value=+Z0.data.value),(K1=I(Z0.data))&&(TV=K1.length))for(Z0.children=Array(TV),dP=TV-1;dP>=0;--dP)Ws.push(D0=Z0.children[dP]=new mo(K1[dP])),D0.parent=Z0,D0.depth=Z0.depth+1;return z.eachBefore(Do5)}
function $o8(a){return a.children}
function lek(a){a.data=a.data.data}
function Do5(a){var I=0;do a.height=I;while((a=a.parent)&&a.height<++I)}
function mo(a){this.data=a;this.depth=this.height=0;this.parent=null}
function c2(a,I,z,Z0){function Ws(D0){return a(D0=new Date(+D0)),D0}
Ws.floor=Ws;Ws.ceil=function(D0){return a(D0=new Date(D0-1)),I(D0,1),a(D0),D0};
Ws.round=function(D0){var K1=Ws(D0),dP=Ws.ceil(D0);return D0-K1<dP-D0?K1:dP};
Ws.offset=function(D0,K1){return I(D0=new Date(+D0),K1==null?1:Math.floor(K1)),D0};
Ws.range=function(D0,K1,dP){var TV=[],qL;D0=Ws.ceil(D0);dP=dP==null?1:Math.floor(dP);if(!(D0<K1&&dP>0))return TV;do TV.push(qL=new Date(+D0)),I(D0,dP),a(D0);while(qL<D0&&D0<K1);return TV};
Ws.filter=function(D0){return c2(function(K1){if(K1>=K1)for(;a(K1),!D0(K1);)K1.setTime(K1-1)},function(K1,dP){if(K1>=K1)if(dP<0)for(;++dP<=0;)for(;I(K1,-1),!D0(K1););
else for(;--dP>=0;)for(;I(K1,1),!D0(K1););})};
z&&(Ws.count=function(D0,K1){cEP.setTime(+D0);nwP.setTime(+K1);a(cEP);a(nwP);return Math.floor(z(cEP,nwP))},Ws.every=function(D0){D0=Math.floor(D0);
return isFinite(D0)&&D0>0?D0>1?Ws.filter(Z0?function(K1){return Z0(K1)%D0===0}:function(K1){return Ws.count(0,K1)%D0===0}):Ws:null});
return Ws}
function eq(a){return c2(function(I){I.setDate(I.getDate()-(I.getDay()+7-a)%7);I.setHours(0,0,0,0)},function(I,z){I.setDate(I.getDate()+z*7)},function(I,z){return(z-I-(z.getTimezoneOffset()-I.getTimezoneOffset())*6E4)/6048E5})}
function Iv(a){return c2(function(I){I.setUTCDate(I.getUTCDate()-(I.getUTCDay()+7-a)%7);I.setUTCHours(0,0,0,0)},function(I,z){I.setUTCDate(I.getUTCDate()+z*7)},function(I,z){return(z-I)/6048E5})}
function vuv(a){if(0<=a.y&&a.y<100){var I=new Date(-1,a.m,a.d,a.H,a.M,a.S,a.L);I.setFullYear(a.y);return I}return new Date(a.y,a.m,a.d,a.H,a.M,a.S,a.L)}
function yV1(a){if(0<=a.y&&a.y<100){var I=new Date(Date.UTC(-1,a.m,a.d,a.H,a.M,a.S,a.L));I.setUTCFullYear(a.y);return I}return new Date(Date.UTC(a.y,a.m,a.d,a.H,a.M,a.S,a.L))}
function JD(a){return{y:a,m:0,d:1,H:0,M:0,S:0,L:0}}
function ou5(a){function I(Xm,c6){return function(b9){var sv=[],x_=-1,HM=0,Vb=Xm.length,KZ,cD;for(b9 instanceof Date||(b9=new Date(+b9));++x_<Vb;)if(Xm.charCodeAt(x_)===37){sv.push(Xm.slice(HM,x_));(HM=bbl[KZ=Xm.charAt(++x_)])!=null?KZ=Xm.charAt(++x_):HM=KZ==="e"?" ":"0";if(cD=c6[KZ])KZ=cD(b9,HM);sv.push(KZ);HM=x_+1}sv.push(Xm.slice(HM,x_));return sv.join("")}}
function z(Xm,c6){return function(b9){var sv=JD(1900);if(Z0(sv,Xm,b9,0)!=b9.length)return null;if("Q"in sv)return new Date(sv.Q);"p"in sv&&(sv.H=sv.H%12+sv.p*12);if("V"in sv){if(sv.V<1||sv.V>53)return null;"w"in sv||(sv.w=1);if("Z"in sv){b9=yV1(JD(sv.y));var x_=b9.getUTCDay();b9=x_>4||x_===0?KyP.ceil(b9):KyP(b9);b9=MGM.offset(b9,(sv.V-1)*7);sv.y=b9.getUTCFullYear();sv.m=b9.getUTCMonth();sv.d=b9.getUTCDate()+(sv.w+6)%7}else b9=c6(JD(sv.y)),x_=b9.getDay(),b9=x_>4||x_===0?fut.ceil(b9):fut(b9),b9=guO.offset(b9,
(sv.V-1)*7),sv.y=b9.getFullYear(),sv.m=b9.getMonth(),sv.d=b9.getDate()+(sv.w+6)%7}else if("W"in sv||"U"in sv)"w"in sv||(sv.w="u"in sv?sv.u%7:"W"in sv?1:0),x_="Z"in sv?yV1(JD(sv.y)).getUTCDay():c6(JD(sv.y)).getDay(),sv.m=0,sv.d="W"in sv?(sv.w+6)%7+sv.W*7-(x_+5)%7:sv.w+sv.U*7-(x_+6)%7;return"Z"in sv?(sv.H+=sv.Z/100|0,sv.M+=sv.Z%100,yV1(sv)):c6(sv)}}
function Z0(Xm,c6,b9,sv){for(var x_=0,HM=c6.length,Vb=b9.length,KZ;x_<HM;){if(sv>=Vb)return-1;KZ=c6.charCodeAt(x_++);if(KZ===37){if(KZ=c6.charAt(x_++),KZ=RW[KZ in bbl?c6.charAt(x_++):KZ],!KZ||(sv=KZ(Xm,b9,sv))<0)return-1}else if(KZ!=b9.charCodeAt(sv++))return-1}return sv}
var Ws=a.dateTime,D0=a.date,K1=a.time,dP=a.periods,TV=a.days,qL=a.shortDays,OY=a.months,$L=a.shortMonths,As=Ce(dP),aQ=rk(dP),nG=Ce(TV),Qd=rk(TV),U3=Ce(qL),WM=rk(qL),Ln=Ce(OY),cB=rk(OY),Tq=Ce($L),Z8=rk($L),ny={a:function(Xm){return qL[Xm.getDay()]},
A:function(Xm){return TV[Xm.getDay()]},
b:function(Xm){return $L[Xm.getMonth()]},
B:function(Xm){return OY[Xm.getMonth()]},
c:null,d:Gzh,e:Gzh,f:Rhv,H:cls,I:nuP,j:Kjc,L:Fjq,m:feg,M:kz0,p:function(Xm){return dP[+(Xm.getHours()>=12)]},
Q:$o0,s:DoL,S:yl0,u:woy,U:Uoc,V:YBc,w:ehc,W:Iev,x:null,X:null,y:dog,Y:aem,Z:hhg,"%":leM},B6={a:function(Xm){return qL[Xm.getUTCDay()]},
A:function(Xm){return TV[Xm.getUTCDay()]},
b:function(Xm){return $L[Xm.getUTCMonth()]},
B:function(Xm){return OY[Xm.getUTCMonth()]},
c:null,d:vuQ,e:vuQ,f:s2v,H:j2w,I:Eu8,j:Pzk,L:ouL,m:poc,M:zh0,p:function(Xm){return dP[+(Xm.getUTCHours()>=12)]},
Q:$o0,s:DoL,S:moQ,u:JlQ,U:Czw,V:rl5,w:Q20,W:Xog,x:null,X:null,y:Alw,Y:Hbk,Z:BX8,"%":leM},RW={a:function(Xm,c6,b9){return(c6=U3.exec(c6.slice(b9)))?(Xm.w=WM[c6[0].toLowerCase()],b9+c6[0].length):-1},
A:function(Xm,c6,b9){return(c6=nG.exec(c6.slice(b9)))?(Xm.w=Qd[c6[0].toLowerCase()],b9+c6[0].length):-1},
b:function(Xm,c6,b9){return(c6=Tq.exec(c6.slice(b9)))?(Xm.m=Z8[c6[0].toLowerCase()],b9+c6[0].length):-1},
B:function(Xm,c6,b9){return(c6=Ln.exec(c6.slice(b9)))?(Xm.m=cB[c6[0].toLowerCase()],b9+c6[0].length):-1},
c:function(Xm,c6,b9){return Z0(Xm,Ws,c6,b9)},
d:RhQ,e:RhQ,f:xok,H:clq,I:clq,j:qB0,L:Lxc,m:ZSg,M:Nik,p:function(Xm,c6,b9){return(c6=As.exec(c6.slice(b9)))?(Xm.p=aQ[c6[0].toLowerCase()],b9+c6[0].length):-1},
Q:Slv,s:iS0,S:uq8,u:Ti5,U:tVv,V:OSv,w:Wxm,W:VVm,x:function(Xm,c6,b9){return Z0(Xm,D0,c6,b9)},
X:function(Xm,c6,b9){return Z0(Xm,K1,c6,b9)},
y:bSk,Y:MVm,Z:gC0,"%":Gtc};ny.x=I(D0,ny);ny.X=I(K1,ny);ny.c=I(Ws,ny);B6.x=I(D0,B6);B6.X=I(K1,B6);B6.c=I(Ws,B6);return{format:function(Xm){var c6=I(Xm,ny);c6.toString=function(){return Xm};
return c6},
parse:function(Xm){var c6=z(Xm,vuv);c6.toString=function(){return Xm};
return c6},
utcFormat:function(Xm){var c6=I(Xm,B6);c6.toString=function(){return Xm};
return c6},
utcParse:function(Xm){var c6=z(Xm,yV1);c6.toString=function(){return Xm};
return c6}}}
function c8(a,I,z){var Z0=a<0?"-":"";a=(Z0?-a:a)+"";var Ws=a.length;return Z0+(Ws<z?Array(z-Ws+1).join(I)+a:a)}
function FxP(a){return a.replace($kg,"\\$&")}
function Ce(a){return new RegExp("^(?:"+a.map(FxP).join("|")+")","i")}
function rk(a){for(var I={},z=-1,Z0=a.length;++z<Z0;)I[a[z].toLowerCase()]=z;return I}
function Wxm(a,I,z){return(I=nq.exec(I.slice(z,z+1)))?(a.w=+I[0],z+I[0].length):-1}
function Ti5(a,I,z){return(I=nq.exec(I.slice(z,z+1)))?(a.u=+I[0],z+I[0].length):-1}
function tVv(a,I,z){return(I=nq.exec(I.slice(z,z+2)))?(a.U=+I[0],z+I[0].length):-1}
function OSv(a,I,z){return(I=nq.exec(I.slice(z,z+2)))?(a.V=+I[0],z+I[0].length):-1}
function VVm(a,I,z){return(I=nq.exec(I.slice(z,z+2)))?(a.W=+I[0],z+I[0].length):-1}
function MVm(a,I,z){return(I=nq.exec(I.slice(z,z+4)))?(a.y=+I[0],z+I[0].length):-1}
function bSk(a,I,z){return(I=nq.exec(I.slice(z,z+2)))?(a.y=+I[0]+(+I[0]>68?1900:2E3),z+I[0].length):-1}
function gC0(a,I,z){return(I=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(I.slice(z,z+6)))?(a.Z=I[1]?0:-(I[2]+(I[3]||"00")),z+I[0].length):-1}
function ZSg(a,I,z){return(I=nq.exec(I.slice(z,z+2)))?(a.m=I[0]-1,z+I[0].length):-1}
function RhQ(a,I,z){return(I=nq.exec(I.slice(z,z+2)))?(a.d=+I[0],z+I[0].length):-1}
function qB0(a,I,z){return(I=nq.exec(I.slice(z,z+3)))?(a.m=0,a.d=+I[0],z+I[0].length):-1}
function clq(a,I,z){return(I=nq.exec(I.slice(z,z+2)))?(a.H=+I[0],z+I[0].length):-1}
function Nik(a,I,z){return(I=nq.exec(I.slice(z,z+2)))?(a.M=+I[0],z+I[0].length):-1}
function uq8(a,I,z){return(I=nq.exec(I.slice(z,z+2)))?(a.S=+I[0],z+I[0].length):-1}
function Lxc(a,I,z){return(I=nq.exec(I.slice(z,z+3)))?(a.L=+I[0],z+I[0].length):-1}
function xok(a,I,z){return(I=nq.exec(I.slice(z,z+6)))?(a.L=Math.floor(I[0]/1E3),z+I[0].length):-1}
function Gtc(a,I,z){return(a=Dkw.exec(I.slice(z,z+1)))?z+a[0].length:-1}
function Slv(a,I,z){return(I=nq.exec(I.slice(z)))?(a.Q=+I[0],z+I[0].length):-1}
function iS0(a,I,z){return(I=nq.exec(I.slice(z)))?(a.Q=+I[0]*1E3,z+I[0].length):-1}
function Gzh(a,I){return c8(a.getDate(),I,2)}
function cls(a,I){return c8(a.getHours(),I,2)}
function nuP(a,I){return c8(a.getHours()%12||12,I,2)}
function Kjc(a,I){return c8(1+guO.count(NK(a),a),I,3)}
function Fjq(a,I){return c8(a.getMilliseconds(),I,3)}
function Rhv(a,I){return Fjq(a,I)+"000"}
function feg(a,I){return c8(a.getMonth()+1,I,2)}
function kz0(a,I){return c8(a.getMinutes(),I,2)}
function yl0(a,I){return c8(a.getSeconds(),I,2)}
function woy(a){a=a.getDay();return a===0?7:a}
function Uoc(a,I){return c8(lRQ.count(NK(a),a),I,2)}
function YBc(a,I){var z=a.getDay();a=z>=4||z===0?kLF(a):kLF.ceil(a);return c8(kLF.count(NK(a),a)+(NK(a).getDay()===4),I,2)}
function ehc(a){return a.getDay()}
function Iev(a,I){return c8(fut.count(NK(a),a),I,2)}
function dog(a,I){return c8(a.getFullYear()%100,I,2)}
function aem(a,I){return c8(a.getFullYear()%1E4,I,4)}
function hhg(a){a=a.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+c8(a/60|0,"0",2)+c8(a%60,"0",2)}
function vuQ(a,I){return c8(a.getUTCDate(),I,2)}
function j2w(a,I){return c8(a.getUTCHours(),I,2)}
function Eu8(a,I){return c8(a.getUTCHours()%12||12,I,2)}
function Pzk(a,I){return c8(1+MGM.count(Sp(a),a),I,3)}
function ouL(a,I){return c8(a.getUTCMilliseconds(),I,3)}
function s2v(a,I){return ouL(a,I)+"000"}
function poc(a,I){return c8(a.getUTCMonth()+1,I,2)}
function zh0(a,I){return c8(a.getUTCMinutes(),I,2)}
function moQ(a,I){return c8(a.getUTCSeconds(),I,2)}
function JlQ(a){a=a.getUTCDay();return a===0?7:a}
function Czw(a,I){return c8(vCk.count(Sp(a),a),I,2)}
function rl5(a,I){var z=a.getUTCDay();a=z>=4||z===0?yEt(a):yEt.ceil(a);return c8(yEt.count(Sp(a),a)+(Sp(a).getUTCDay()===4),I,2)}
function Q20(a){return a.getUTCDay()}
function Xog(a,I){return c8(KyP.count(Sp(a),a),I,2)}
function Alw(a,I){return c8(a.getUTCFullYear()%100,I,2)}
function Hbk(a,I){return c8(a.getUTCFullYear()%1E4,I,4)}
function BX8(){return"+0000"}
function leM(){return"%"}
function $o0(a){return+a}
function DoL(a){return Math.floor(+a/1E3)}
function lG(a){for(var I=a.length/6|0,z=Array(I),Z0=0;Z0<I;)z[Z0]="#"+a.slice(Z0*6,++Z0*6);return z}
function qT(a){return oC5(a[a.length-1])}
function wK_(a){var I=a.length;return function(z){return a[Math.max(0,Math.min(I-1,Math.floor(z*I)))]}}
function nuN(a){this._context=a}
function KjI(a){this._curve=a}
function feV(a,I,z){var Z0=a._x1-a._x0;I-=a._x1;var Ws=(a._y1-a._y0)/(Z0||I<0&&-0);a=(z-a._y1)/(I||Z0<0&&-0);return((Ws<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(Ws),Math.abs(a),.5*Math.abs((Ws*I+a*Z0)/(Z0+I)))||0}
function kzs(a,I){var z=a._x1-a._x0;return z?(3*(a._y1-a._y0)/z-I)/2:I}
function w0B(a,I,z){var Z0=a._x0,Ws=a._x1,D0=a._y1,K1=(Ws-Z0)/3;a._context.bezierCurveTo(Z0+K1,a._y0+K1*I,Ws-K1,D0-K1*z,Ws,D0)}
function UWw(a){this._context=a}
function yls(a){this._context=a}
function QU(a,I,z){this.k=a;this.x=I;this.y=z}
(function(a){a.length===1&&(a=Z(a));return{left:function(I,z,Z0,Ws){Z0==null&&(Z0=0);Ws==null&&(Ws=I.length);for(;Z0<Ws;){var D0=Z0+Ws>>>1;a(I[D0],z)<0?Z0=D0+1:Ws=D0}return Z0},
right:function(I,z,Z0,Ws){Z0==null&&(Z0=0);Ws==null&&(Ws=I.length);for(;Z0<Ws;){var D0=Z0+Ws>>>1;a(I[D0],z)>0?Ws=D0:Z0=D0+1}return Z0}}})(L);
var gwY={value:function(){}};
S.prototype=N.prototype={constructor:S,on:function(a,I){var z=this._,Z0=u(a+"",z),Ws,D0=-1,K1=Z0.length;if(arguments.length<2)for(;++D0<K1;){var dP;if(dP=Ws=(a=Z0[D0]).type){a:{dP=z[Ws];for(var TV=0,qL=dP.length;TV<qL;++TV)if((Ws=dP[TV]).name===a.name){Ws=Ws.value;break a}Ws=void 0}dP=Ws}if(dP)return Ws}else{if(I!=null&&typeof I!=="function")throw Error("Ee`"+I);for(;++D0<K1;)if(Ws=(a=Z0[D0]).type)z[Ws]=T(z[Ws],a.name,I);else if(I==null)for(Ws in z)z[Ws]=T(z[Ws],a.name,null);return this}},
copy:function(){var a={},I=this._,z;for(z in I)a[z]=I[z].slice();return new S(a)},
call:function(a,I){if((Ws=arguments.length-2)>0)for(var z=Array(Ws),Z0=0,Ws,D0;Z0<Ws;++Z0)z[Z0]=arguments[Z0+2];if(!this._.hasOwnProperty(a))throw Error("ye`"+a);D0=this._[a];Z0=0;for(Ws=D0.length;Z0<Ws;++Z0)D0[Z0].value.apply(I,z)},
apply:function(a,I,z){if(!this._.hasOwnProperty(a))throw Error("ye`"+a);a=this._[a];for(var Z0=0,Ws=a.length;Z0<Ws;++Z0)a[Z0].value.apply(I,z)}};
var XT={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/"},wo5=function(a){return function(){return this.matches(a)}};
if(typeof document!=="undefined"){var Xn=document.documentElement;if(!Xn.matches){var R6q=Xn.webkitMatchesSelector||Xn.msMatchesSelector||Xn.mozMatchesSelector||Xn.oMatchesSelector;wo5=function(a){return function(){return R6q.call(this,a)}}}}var UoI=wo5;
R.prototype={constructor:R,appendChild:function(a){return this._parent.insertBefore(a,this._next)},
insertBefore:function(a,I){return this._parent.insertBefore(a,I)},
querySelector:function(a){return this._parent.querySelector(a)},
querySelectorAll:function(a){return this._parent.querySelectorAll(a)}};
var IuO={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(IuO={mouseenter:"mouseover",mouseleave:"mouseout"}));var GL8=[null];g5.prototype=SY.prototype={constructor:g5,select:function(a){typeof a!=="function"&&(a=l(a));for(var I=this._groups,z=I.length,Z0=Array(z),Ws=0;Ws<z;++Ws)for(var D0=I[Ws],K1=D0.length,dP=Z0[Ws]=Array(K1),TV,qL,OY=0;OY<K1;++OY)(TV=D0[OY])&&(qL=a.call(TV,TV.__data__,OY,D0))&&("__data__"in TV&&(qL.__data__=TV.__data__),dP[OY]=qL);return new g5(Z0,
this._parents)},
filter:function(a){typeof a!=="function"&&(a=UoI(a));for(var I=this._groups,z=I.length,Z0=Array(z),Ws=0;Ws<z;++Ws)for(var D0=I[Ws],K1=D0.length,dP=Z0[Ws]=[],TV,qL=0;qL<K1;++qL)(TV=D0[qL])&&a.call(TV,TV.__data__,qL,D0)&&dP.push(TV);return new g5(Z0,this._parents)},
data:function(a,I){if(!a)return aQ=Array(this.size()),qL=-1,this.each(function(Ln){aQ[++qL]=Ln}),aQ;
var z=I?d:U,Z0=this._parents,Ws=this._groups;typeof a!=="function"&&(a=K(a));for(var D0=Ws.length,K1=Array(D0),dP=Array(D0),TV=Array(D0),qL=0;qL<D0;++qL){var OY=Z0[qL],$L=Ws[qL],As=$L.length,aQ=a.call(OY,OY&&OY.__data__,qL,Z0),nG=aQ.length,Qd=dP[qL]=Array(nG),U3=K1[qL]=Array(nG);As=TV[qL]=Array(As);z(OY,$L,Qd,U3,As,aQ,I);$L=OY=0;for(var WM;OY<nG;++OY)if(As=Qd[OY]){for(OY>=$L&&($L=OY+1);!(WM=U3[$L])&&++$L<nG;);As._next=WM||null}}K1=new g5(K1,Z0);K1._enter=dP;K1._exit=TV;return K1},
enter:function(){return new g5(this._enter||this._groups.map(v),this._parents)},
exit:function(){return new g5(this._exit||this._groups.map(v),this._parents)},
merge:function(a){var I=this._groups;a=a._groups;for(var z=I.length,Z0=Math.min(z,a.length),Ws=Array(z),D0=0;D0<Z0;++D0)for(var K1=I[D0],dP=a[D0],TV=K1.length,qL=Ws[D0]=Array(TV),OY,$L=0;$L<TV;++$L)if(OY=K1[$L]||dP[$L])qL[$L]=OY;for(;D0<z;++D0)Ws[D0]=I[D0];return new g5(Ws,this._parents)},
order:function(){for(var a=this._groups,I=-1,z=a.length;++I<z;)for(var Z0=a[I],Ws=Z0.length-1,D0=Z0[Ws],K1;--Ws>=0;)if(K1=Z0[Ws])D0&&D0!==K1.nextSibling&&D0.parentNode.insertBefore(K1,D0),D0=K1;return this},
sort:function(a){function I($L,As){return $L&&As?a($L.__data__,As.__data__):!$L-!As}
a||(a=h);for(var z=this._groups,Z0=z.length,Ws=Array(Z0),D0=0;D0<Z0;++D0){for(var K1=z[D0],dP=K1.length,TV=Ws[D0]=Array(dP),qL,OY=0;OY<dP;++OY)if(qL=K1[OY])TV[OY]=qL;TV.sort(I)}return(new g5(Ws,this._parents)).order()},
call:function(){var a=arguments[0];arguments[0]=this;a.apply(null,arguments);return this},
nodes:function(){var a=Array(this.size()),I=-1;this.each(function(){a[++I]=this});
return a},
node:function(){for(var a=this._groups,I=0,z=a.length;I<z;++I)for(var Z0=a[I],Ws=0,D0=Z0.length;Ws<D0;++Ws){var K1=Z0[Ws];if(K1)return K1}return null},
size:function(){var a=0;this.each(function(){++a});
return a},
empty:function(){return!this.node()},
each:function(a){for(var I=this._groups,z=0,Z0=I.length;z<Z0;++z)for(var Ws=I[z],D0=0,K1=Ws.length,dP;D0<K1;++D0)(dP=Ws[D0])&&a.call(dP,dP.__data__,D0,Ws);return this},
attr:function(a,I){var z=W(a);if(arguments.length<2){var Z0=this.node();return z.local?Z0.getAttributeNS(z.space,z.local):Z0.getAttribute(z)}return this.each((I==null?z.local?A:E:typeof I==="function"?z.local?L1:X:z.local?C:J)(z,I))},
style:function(a,I,z){return arguments.length>1?this.each((I==null?Fw:typeof I==="function"?Yt:GB)(a,I,z==null?"":z)):lH(this.node(),a)},
property:function(a,I){return arguments.length>1?this.each((I==null?RF:typeof I==="function"?f1:jf)(a,I)):this.node()[a]},
text:function(a){return arguments.length?this.each(a==null?n0:(typeof a==="function"?yq:r5)(a)):this.node().textContent},
html:function(a){return arguments.length?this.each(a==null?ZN:(typeof a==="function"?IO:GV)(a)):this.node().innerHTML},
append:function(a){var I=typeof a==="function"?a:G(a);return this.select(function(){return this.appendChild(I.apply(this,arguments))})},
insert:function(a,I){var z=typeof a==="function"?a:G(a),Z0=I==null?d5:typeof I==="function"?I:l(I);return this.select(function(){return this.insertBefore(z.apply(this,arguments),Z0.apply(this,arguments)||null)})},
remove:function(){return this.each(n8)},
clone:function(a){return this.select(a?tx:lq)},
datum:function(a){return arguments.length?this.property("__data__",a):this.node().__data__},
on:function(a,I,z){var Z0=uq(a+""),Ws=Z0.length,D0;if(arguments.length<2){var K1=this.node().__on;if(K1)for(var dP=0,TV=K1.length,qL;dP<TV;++dP){var OY=0;for(qL=K1[dP];OY<Ws;++OY)if((D0=Z0[OY]).type===qL.type&&D0.name===qL.name)return qL.value}}else{K1=I?iq:RO;z==null&&(z=!1);for(OY=0;OY<Ws;++OY)this.each(K1(Z0[OY],I,z));return this}},
dispatch:function(a,I){return this.each((typeof I==="function"?Fh:Qq)(a,I))}};
var Fym=0;Xw.prototype=function(){return new Xw}.prototype={constructor:Xw,
get:function(a){for(var I=this._;!(I in a);)if(!(a=a.parentNode))return;return a[I]},
set:function(a,I){return a[this._]=I},
remove:function(a){return this._ in a&&delete a[this._]},
toString:function(){return this._}};
var ii=1/.7,$WP=/^#([0-9a-f]{3})$/,DWg=/^#([0-9a-f]{6})$/,luP=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),vwv=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),ows=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),RKv=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*\\)$"),
cEy=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),nwy=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*\\)$"),dWQ={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};
vl(H6,IQ,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
vl(k5,Hl,oQ(H6,{brighter:function(a){a=a==null?ii:Math.pow(ii,a);return new k5(this.r*a,this.g*a,this.b*a,this.opacity)},
darker:function(a){a=a==null?.7:Math.pow(.7,a);return new k5(this.r*a,this.g*a,this.b*a,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"#"+Tg(this.r)+Tg(this.g)+Tg(this.b)},
toString:function(){var a=this.opacity;a=isNaN(a)?1:Math.max(0,Math.min(1,a));return(a===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))+(a===1?")":", "+a+")")}}));
vl(EK,Hy,oQ(H6,{brighter:function(a){a=a==null?ii:Math.pow(ii,a);return new EK(this.h,this.s,this.l*a,this.opacity)},
darker:function(a){a=a==null?.7:Math.pow(.7,a);return new EK(this.h,this.s,this.l*a,this.opacity)},
rgb:function(){var a=this.h%360+(this.h<0)*360,I=this.l,z=I+(I<.5?I:1-I)*(isNaN(a)||isNaN(this.s)?0:this.s);I=2*I-z;return new k5(ZD(a>=240?a-240:a+120,I,z),ZD(a,I,z),ZD(a<120?a+240:a-120,I,z),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 aut=Math.PI/180,jUt=180/Math.PI,sUM=4/29,Lu=6/29,hK5=3*Lu*Lu,Kyy=Lu*Lu*Lu;vl(wP,function(a,I,z,Z0){return arguments.length===1?un(a):new wP(a,I,z,Z0==null?1:Z0)},oQ(H6,{brighter:function(a){return new wP(this.l+18*(a==null?1:a),this.a,this.b,this.opacity)},
darker:function(a){return new wP(this.l-18*(a==null?1:a),this.a,this.b,this.opacity)},
rgb:function(){var a=(this.l+16)/116,I=isNaN(this.a)?a:a+this.a/500,z=isNaN(this.b)?a:a-this.b/200;I=.96422*rP(I);a=1*rP(a);z=.82521*rP(z);return new k5(K0(3.1338561*I-1.6168667*a-.4906146*z),K0(-.9787684*I+1.9161415*a+.033454*z),K0(.0719453*I-.2289914*a+1.4052427*z),this.opacity)}}));
vl(kL,dy,oQ(H6,{brighter:function(a){return new kL(this.h,this.c,this.l+18*(a==null?1:a),this.opacity)},
darker:function(a){return new kL(this.h,this.c,this.l-18*(a==null?1:a),this.opacity)},
rgb:function(){return un(this).rgb()}}));
var EwV=1.78277*-.29227-.1347134789;vl(Pw,f0,oQ(H6,{brighter:function(a){a=a==null?ii:Math.pow(ii,a);return new Pw(this.h,this.s,this.l*a,this.opacity)},
darker:function(a){a=a==null?.7:Math.pow(.7,a);return new Pw(this.h,this.s,this.l*a,this.opacity)},
rgb:function(){var a=isNaN(this.h)?0:(this.h+120)*aut,I=+this.l,z=isNaN(this.s)?0:this.s*I*(1-I),Z0=Math.cos(a);a=Math.sin(a);return new k5(255*(I+z*(-.14861*Z0+1.78277*a)),255*(I+z*(-.29227*Z0+-.90649*a)),255*(I+1.97294*Z0*z),this.opacity)}}));
var JEV=function z(I){function Z0(D0,K1){var dP=Ws((D0=Hl(D0)).r,(K1=Hl(K1)).r),TV=Ws(D0.g,K1.g),qL=Ws(D0.b,K1.b),OY=N4(D0.opacity,K1.opacity);return function($L){D0.r=dP($L);D0.g=TV($L);D0.b=qL($L);D0.opacity=OY($L);return D0+""}}
var Ws=BE(I);Z0.gamma=z;return Z0}(1),oC5=n5(function(I){var z=I.length-1;
return function(Z0){var Ws=Z0<=0?Z0=0:Z0>=1?(Z0=1,z-1):Math.floor(Z0*z),D0=I[Ws],K1=I[Ws+1];return o7((Z0-Ws/z)*z,Ws>0?I[Ws-1]:2*D0-K1,D0,K1,Ws<z-1?I[Ws+2]:2*K1-D0)}});
n5(function(I){var z=I.length;return function(Z0){var Ws=Math.floor(((Z0%=1)<0?++Z0:Z0)*z);return o7((Z0-Ws/z)*z,I[(Ws+z-1)%z],I[Ws%z],I[(Ws+1)%z],I[(Ws+2)%z])}});
var VkG=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bDF=new RegExp(VkG.source,"g"),Poh=180/Math.PI,YwL={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},AD,eKA,YBI,UC1,cOv=Y5(function(I){if(I==="none")return YwL;AD||(AD=document.createElement("DIV"),eKA=document.documentElement,YBI=document.defaultView);AD.style.transform=I;I=YBI.getComputedStyle(eKA.appendChild(AD),null).getPropertyValue("transform");eKA.removeChild(AD);I=I.slice(7,-1).split(",");return ys(+I[0],+I[1],+I[2],+I[3],
+I[4],+I[5])},"px, ","px)","deg)"),nCv=Y5(function(I){if(I==null)return YwL;
UC1||(UC1=document.createElementNS("http://www.w3.org/2000/svg","g"));UC1.setAttribute("transform",I);if(!(I=UC1.transform.baseVal.consolidate()))return YwL;I=I.matrix;return ys(I.a,I.b,I.c,I.d,I.e,I.f)},", ",")",")");
bq(pG);bq(N4);$h(pG);$h(N4);By(pG);var IuF=By(N4),Zy=0,EZ=0,pe=0,oEx,PY,vEw=0,UL=0,llP=0,jP=typeof performance==="object"&&performance.now?performance:Date,p0V=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(I){setTimeout(I,17)};
pV.prototype=wl.prototype={constructor:pV,restart:function(I,z,Z0){if(typeof I!=="function")throw new TypeError("Fe");Z0=(Z0==null?QL():+Z0)+(z==null?0:+z);this._next||PY===this||(PY?PY._next=this:oEx=this,PY=this);this._call=I;this._time=Z0;Yz()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Yz())}};
var kLQ=N("start","end","interrupt"),yE5=[],KxY=SY.prototype.constructor,ehI=0,ui=SY.prototype;R3.prototype=function(I){return SY().transition(I)}.prototype={constructor:R3,
select:function(I){var z=this._name,Z0=this._id;typeof I!=="function"&&(I=l(I));for(var Ws=this._groups,D0=Ws.length,K1=Array(D0),dP=0;dP<D0;++dP)for(var TV=Ws[dP],qL=TV.length,OY=K1[dP]=Array(qL),$L,As,aQ=0;aQ<qL;++aQ)($L=TV[aQ])&&(As=I.call($L,$L.__data__,aQ,TV))&&("__data__"in $L&&(As.__data__=$L.__data__),OY[aQ]=As,MkA(OY[aQ],z,Z0,aQ,OY,rg($L,Z0)));return new R3(K1,this._parents,z,Z0)},
filter:function(I){typeof I!=="function"&&(I=UoI(I));for(var z=this._groups,Z0=z.length,Ws=Array(Z0),D0=0;D0<Z0;++D0)for(var K1=z[D0],dP=K1.length,TV=Ws[D0]=[],qL,OY=0;OY<dP;++OY)(qL=K1[OY])&&I.call(qL,qL.__data__,OY,K1)&&TV.push(qL);return new R3(Ws,this._parents,this._name,this._id)},
merge:function(I){if(I._id!==this._id)throw Error();var z=this._groups;I=I._groups;for(var Z0=z.length,Ws=Math.min(Z0,I.length),D0=Array(Z0),K1=0;K1<Ws;++K1)for(var dP=z[K1],TV=I[K1],qL=dP.length,OY=D0[K1]=Array(qL),$L,As=0;As<qL;++As)if($L=dP[As]||TV[As])OY[As]=$L;for(;K1<Z0;++K1)D0[K1]=z[K1];return new R3(D0,this._parents,this._name,this._id)},
selection:function(){return new KxY(this._groups,this._parents)},
transition:function(){for(var I=this._name,z=this._id,Z0=++ehI,Ws=this._groups,D0=Ws.length,K1=0;K1<D0;++K1)for(var dP=Ws[K1],TV=dP.length,qL,OY=0;OY<TV;++OY)if(qL=dP[OY]){var $L=rg(qL,z);MkA(qL,I,Z0,OY,dP,{time:$L.time+$L.delay+$L.duration,delay:0,duration:$L.duration,ease:$L.ease})}return new R3(Ws,this._parents,I,Z0)},
call:ui.call,nodes:ui.nodes,node:ui.node,size:ui.size,empty:ui.empty,each:ui.each,on:function(I,z){var Z0=this._id;return arguments.length<2?rg(this.node(),Z0).on.on(I):this.each(Co0(Z0,I,z))},
attr:function(I,z){var Z0=W(I),Ws=Z0==="transform"?nCv:mWq;return this.attrTween(I,typeof z==="function"?(Z0.local?hKy:auY)(Z0,Ws,GL1(this,"attr."+I,z)):z==null?(Z0.local?eKv:Ywc)(Z0):(Z0.local?dWv:IuQ)(Z0,Ws,z+""))},
attrTween:function(I,z){var Z0="attr."+I;if(arguments.length<2)return(Z0=this.tween(Z0))&&Z0._value;if(z==null)return this.tween(Z0,null);if(typeof z!=="function")throw Error();var Ws=W(I);return this.tween(Z0,(Ws.local?sUk:jUY)(Ws,z))},
style:function(I,z,Z0){var Ws=I==="transform"?cOv:mWq;return z==null?this.styleTween(I,QUw(I,Ws)).on("end.style."+I,X08(I)):this.styleTween(I,typeof z==="function"?HDm(I,Ws,GL1(this,"style."+I,z)):AEc(I,Ws,z+""),Z0)},
styleTween:function(I,z,Z0){var Ws="style."+I;if(arguments.length<2)return(Ws=this.tween(Ws))&&Ws._value;if(z==null)return this.tween(Ws,null);if(typeof z!=="function")throw Error();return this.tween(Ws,BVY(I,z,Z0==null?"":Z0))},
text:function(I){return this.tween("text",typeof I==="function"?qw8(GL1(this,"text",I)):xWc(I==null?"":I+""))},
remove:function(){return this.on("end.remove",rEk(this._id))},
tween:function(I,z){var Z0=this._id;if(arguments.length<2){Z0=rg(this.node(),Z0).tween;for(var Ws=0,D0=Z0.length,K1;Ws<D0;++Ws)if((K1=Z0[Ws]).name===I)return K1.value;return null}return this.each((z==null?w0g:UWm)(Z0,I,z))},
delay:function(I){var z=this._id;return arguments.length?this.each((typeof I==="function"?Ewg:Pom)(z,I)):rg(this.node(),z).delay},
duration:function(I){var z=this._id;return arguments.length?this.each((typeof I==="function"?p0g:zKg)(z,I)):rg(this.node(),z).duration},
ease:function(I){var z=this._id;return arguments.length?this.each(mWs(z,I)):rg(this.node(),z).ease}};
var dWA={time:null,delay:0,duration:250,ease:function(I){return((I*=2)<=1?I*I*I:(I-=2)*I*I+2)/2}};
SY.prototype.transition=function(I){var z;if(I instanceof R3){var Z0=I._id;I=I._name}else Z0=++ehI,(z=dWA).time=QL(),I=I==null?null:I+"";for(var Ws=this._groups,D0=Ws.length,K1=0;K1<D0;++K1)for(var dP=Ws[K1],TV=dP.length,qL,OY=0;OY<TV;++OY)if(qL=dP[OY]){var $L=qL,As=I,aQ=Z0,nG=OY,Qd=dP,U3;if(!(U3=z))a:{U3=void 0;for(var WM=Z0;!(U3=qL.__transition)||!(U3=U3[WM]);)if(!(qL=qL.parentNode)){U3=(dWA.time=QL(),dWA);break a}}MkA($L,As,aQ,nG,Qd,U3)}return new R3(Ws,this._parents,I,Z0)};
["e","w"].map(Fyw);["n","s"].map(Fyw);"n e s w nw ne se sw".split(" ").map(Fyw);$W0.prototype=function(){return new $W0}.prototype={constructor:$W0,
moveTo:function(I,z){this._+="M"+(this._x0=this._x1=+I)+","+(this._y0=this._y1=+z)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(I,z){this._+="L"+(this._x1=+I)+","+(this._y1=+z)},
bezierCurveTo:function(I,z,Z0,Ws,D0,K1){this._+="C"+ +I+","+ +z+","+ +Z0+","+ +Ws+","+(this._x1=+D0)+","+(this._y1=+K1)},
rect:function(I,z,Z0,Ws){this._+="M"+(this._x0=this._x1=+I)+","+(this._y0=this._y1=+z)+"h"+ +Z0+"v"+ +Ws+"h"+-Z0+"Z"},
toString:function(){return this._}};
R91.prototype=Cos.prototype={constructor:R91,has:function(I){return" "+I in this},
get:function(I){return this[" "+I]},
set:function(I,z){this[" "+I]=z;return this},
remove:function(I){I=" "+I;return I in this&&delete this[I]},
clear:function(){for(var I in this)I[0]===" "&&delete this[I]},
keys:function(){var I=[],z;for(z in this)z[0]===" "&&I.push(z.slice(1));return I},
values:function(){var I=[],z;for(z in this)z[0]===" "&&I.push(this[z]);return I},
entries:function(){var I=[],z;for(z in this)z[0]===" "&&I.push({key:z.slice(1),value:this[z]});return I},
size:function(){var I=0,z;for(z in this)z[0]===" "&&++I;return I},
empty:function(){for(var I in this)if(I[0]===" ")return!1;return!0},
each:function(I){for(var z in this)z[0]===" "&&I(this[z],z.slice(1),this)}};
var da=Cos.prototype;cVP.prototype=function(I,z){var Z0=new cVP;if(I instanceof cVP)I.each(function(K1){Z0.add(K1)});
else if(I){var Ws=-1,D0=I.length;if(z==null)for(;++Ws<D0;)Z0.add(I[Ws]);else for(;++Ws<D0;)Z0.add(z(I[Ws],Ws,I))}return Z0}.prototype={constructor:cVP,
has:da.has,add:function(I){this[" "+I]=I;return this},
remove:da.remove,clear:da.clear,values:da.keys,size:da.size,empty:da.empty,each:da.each};var X00={},DWB={},fR5=QUl(",").parse,ktY=QUl("\t").parse;AEI(fR5);AEI(ktY);var Bq=function(I,z,Z0){z=new lu0(z==null?SB5:z,Z0==null?ibY:Z0,NaN,NaN,NaN,NaN);return I==null?z:z.addAll(I)}.prototype=lu0.prototype;
Bq.copy=function(){var I=new lu0(this._x,this._y,this._x0,this._y0,this._x1,this._y1),z=this._root,Z0,Ws;if(!z)return I;if(!z.length)return I._root=BVt(z),I;for(Z0=[{source:z,target:I._root=Array(4)}];z=Z0.pop();)for(var D0=0;D0<4;++D0)if(Ws=z.source[D0])Ws.length?Z0.push({source:Ws,target:z.target[D0]=Array(4)}):z.target[D0]=BVt(Ws);return I};
Bq.add=function(I){var z=+this._x.call(null,I),Z0=+this._y.call(null,I);return HDh(this.cover(z,Z0),z,Z0,I)};
Bq.addAll=function(I){var z,Z0,Ws=I.length,D0,K1,dP=Array(Ws),TV=Array(Ws),qL=Infinity,OY=Infinity,$L=-Infinity,As=-Infinity;for(Z0=0;Z0<Ws;++Z0)isNaN(D0=+this._x.call(null,z=I[Z0]))||isNaN(K1=+this._y.call(null,z))||(dP[Z0]=D0,TV[Z0]=K1,D0<qL&&(qL=D0),D0>$L&&($L=D0),K1<OY&&(OY=K1),K1>As&&(As=K1));$L<qL&&(qL=this._x0,$L=this._x1);As<OY&&(OY=this._y0,As=this._y1);this.cover(qL,OY).cover($L,As);for(Z0=0;Z0<Ws;++Z0)HDh(this,dP[Z0],TV[Z0],I[Z0]);return this};
Bq.cover=function(I,z){if(isNaN(I=+I)||isNaN(z=+z))return this;var Z0=this._x0,Ws=this._y0,D0=this._x1,K1=this._y1;if(isNaN(Z0))D0=(Z0=Math.floor(I))+1,K1=(Ws=Math.floor(z))+1;else if(Z0>I||I>D0||Ws>z||z>K1){var dP=D0-Z0,TV=this._root,qL;switch(qL=(z<(Ws+K1)/2)<<1|I<(Z0+D0)/2){case 0:do{var OY=Array(4);OY[qL]=TV;TV=OY}while(dP*=2,D0=Z0+dP,K1=Ws+dP,I>D0||z>K1);break;case 1:do OY=Array(4),OY[qL]=TV,TV=OY;while(dP*=2,Z0=D0-dP,K1=Ws+dP,Z0>I||z>K1);break;case 2:do OY=Array(4),OY[qL]=TV,TV=OY;while(dP*=
2,D0=Z0+dP,Ws=K1-dP,I>D0||Ws>z);break;case 3:do OY=Array(4),OY[qL]=TV,TV=OY;while(dP*=2,Z0=D0-dP,Ws=K1-dP,Z0>I||Ws>z)}this._root&&this._root.length&&(this._root=TV)}else return this;this._x0=Z0;this._y0=Ws;this._x1=D0;this._y1=K1;return this};
Bq.data=function(){var I=[];this.visit(function(z){if(!z.length){do I.push(z.data);while(z=z.next)}});
return I};
Bq.extent=function(I){return arguments.length?this.cover(+I[0][0],+I[0][1]).cover(+I[1][0],+I[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Bq.find=function(I,z,Z0){var Ws=this._x0,D0=this._y0,K1,dP,TV,qL,OY=this._x1,$L=this._y1,As=[],aQ=this._root,nG;aQ&&As.push(new Hq(aQ,Ws,D0,OY,$L));Z0==null?Z0=Infinity:(Ws=I-Z0,D0=z-Z0,OY=I+Z0,$L=z+Z0,Z0*=Z0);for(;nG=As.pop();)if(!(!(aQ=nG.node)||(K1=nG.x0)>OY||(dP=nG.y0)>$L||(TV=nG.x1)<Ws||(qL=nG.y1)<D0))if(aQ.length){nG=(K1+TV)/2;var Qd=(dP+qL)/2;As.push(new Hq(aQ[3],nG,Qd,TV,qL),new Hq(aQ[2],K1,Qd,nG,qL),new Hq(aQ[1],nG,dP,TV,Qd),new Hq(aQ[0],K1,dP,nG,Qd));if(aQ=(z>=Qd)<<1|I>=nG)nG=As[As.length-
1],As[As.length-1]=As[As.length-1-aQ],As[As.length-1-aQ]=nG}else if(nG=I-+this._x.call(null,aQ.data),Qd=z-+this._y.call(null,aQ.data),nG=nG*nG+Qd*Qd,nG<Z0){var U3=Math.sqrt(Z0=nG);Ws=I-U3;D0=z-U3;OY=I+U3;$L=z+U3;U3=aQ.data}return U3};
Bq.remove=function(I){if(isNaN(qL=+this._x.call(null,I))||isNaN(OY=+this._y.call(null,I)))return this;var z,Z0=this._root,Ws,D0=this._x0,K1=this._y0,dP=this._x1,TV=this._y1,qL,OY,$L,As,aQ,nG,Qd;if(!Z0)return this;if(Z0.length)for(;;){(aQ=qL>=($L=(D0+dP)/2))?D0=$L:dP=$L;(nG=OY>=(As=(K1+TV)/2))?K1=As:TV=As;if(!(z=Z0,Z0=Z0[Qd=nG<<1|aQ]))return this;if(!Z0.length)break;if(z[Qd+1&3]||z[Qd+2&3]||z[Qd+3&3]){var U3=z;var WM=Qd}}for(;Z0.data!==I;)if(!(Ws=Z0,Z0=Z0.next))return this;(I=Z0.next)&&delete Z0.next;
if(Ws)return I?Ws.next=I:delete Ws.next,this;if(!z)return this._root=I,this;I?z[Qd]=I:delete z[Qd];(Z0=z[0]||z[1]||z[2]||z[3])&&Z0===(z[3]||z[2]||z[1]||z[0])&&!Z0.length&&(U3?U3[WM]=Z0:this._root=Z0);return this};
Bq.removeAll=function(I){for(var z=0,Z0=I.length;z<Z0;++z)this.remove(I[z]);return this};
Bq.root=function(){return this._root};
Bq.size=function(){var I=0;this.visit(function(z){if(!z.length){do++I;while(z=z.next)}});
return I};
Bq.visit=function(I){var z=[],Z0,Ws=this._root,D0,K1,dP,TV,qL;for(Ws&&z.push(new Hq(Ws,this._x0,this._y0,this._x1,this._y1));Z0=z.pop();)if(!I(Ws=Z0.node,K1=Z0.x0,dP=Z0.y0,TV=Z0.x1,qL=Z0.y1)&&Ws.length){Z0=(K1+TV)/2;var OY=(dP+qL)/2;(D0=Ws[3])&&z.push(new Hq(D0,Z0,OY,TV,qL));(D0=Ws[2])&&z.push(new Hq(D0,K1,OY,Z0,qL));(D0=Ws[1])&&z.push(new Hq(D0,Z0,dP,TV,OY));(D0=Ws[0])&&z.push(new Hq(D0,K1,dP,Z0,OY))}};
Bq.visitAfter=function(I){var z=[],Z0=[],Ws;for(this._root&&z.push(new Hq(this._root,this._x0,this._y0,this._x1,this._y1));Ws=z.pop();){var D0=Ws.node;if(D0.length){var K1,dP=Ws.x0,TV=Ws.y0,qL=Ws.x1,OY=Ws.y1,$L=(dP+qL)/2,As=(TV+OY)/2;(K1=D0[0])&&z.push(new Hq(K1,dP,TV,$L,As));(K1=D0[1])&&z.push(new Hq(K1,$L,TV,qL,As));(K1=D0[2])&&z.push(new Hq(K1,dP,As,$L,OY));(K1=D0[3])&&z.push(new Hq(K1,$L,As,qL,OY))}Z0.push(Ws)}for(;Ws=Z0.pop();)I(Ws.node,Ws.x0,Ws.y0,Ws.x1,Ws.y1);return this};
Bq.x=function(I){return arguments.length?(this._x=I,this):this._x};
Bq.y=function(I){return arguments.length?(this._y=I,this):this._y};
var ObP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;vwA.prototype=ow_.prototype;ow_.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 Zbh,NXh={"%":function(I,z){return(I*100).toFixed(z)},
b:function(I){return Math.round(I).toString(2)},
c:function(I){return I+""},
d:function(I){return Math.round(I).toString(10)},
e:function(I,z){return I.toExponential(z)},
f:function(I,z){return I.toFixed(z)},
g:function(I,z){return I.toPrecision(z)},
o:function(I){return Math.round(I).toString(8)},
p:function(I,z){return xWI(I*100,z)},
r:xWI,s:function(I,z){var Z0=nEG(I,z);if(!Z0)return I+"";var Ws=Z0[0];Z0=Z0[1];Z0=Z0-(Zbh=Math.max(-8,Math.min(8,Math.floor(Z0/3)))*3)+1;var D0=Ws.length;return Z0===D0?Ws:Z0>D0?Ws+Array(Z0-D0+1).join("0"):Z0>0?Ws.slice(0,Z0)+"."+Ws.slice(Z0):"0."+Array(1-Z0).join("0")+nEG(I,Math.max(0,z+Z0-1))[0]},
X:function(I){return Math.round(I).toString(16).toUpperCase()},
x:function(I){return Math.round(I).toString(16)}},Ljt="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),yOw;
(function(I){return yOw=Wjw(I)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});C5.prototype={constructor:C5,reset:function(){this.s=this.t=0},
add:function(I){SBL(YI0,I,this.t);SBL(this,YI0.s,this.s);this.s?this.t+=YI0.t:this.s=YI0.t},
valueOf:function(){return this.s}};
var YI0=new C5,BM=Math.PI,AZ=BM/2,IeY=BM/4,wpP=BM*2,auf=BM/180,cS=Math.abs,hKP=Math.atan,Wjl=Math.atan2,Ht=Math.cos,YQ=Math.sin,fl_=Math.sqrt;new C5;new C5;new C5;var sUh=new C5;(function(I,z,Z0,Ws){return function(D0){function K1(Z8,ny){I(Z8,ny)&&D0.point(Z8,ny)}
function dP(Z8,ny){aQ.point(Z8,ny)}
function TV(){Tq.point=dP;aQ.lineStart()}
function qL(){Tq.point=K1;aQ.lineEnd()}
function OY(Z8,ny){cB.push([Z8,ny]);Qd.point(Z8,ny)}
function $L(){Qd.lineStart();cB=[]}
function As(){OY(cB[0][0],cB[0][1]);Qd.lineEnd();var Z8=Qd.clean(),ny=nG.result(),B6=ny.length,RW;cB.pop();WM.push(cB);cB=null;if(B6)if(Z8&1){if(B6=ny[0],(ny=B6.length-1)>0){U3||(D0.polygonStart(),U3=!0);D0.lineStart();for(Z8=0;Z8<ny;++Z8)D0.point((RW=B6[Z8])[0],RW[1]);D0.lineEnd()}}else B6>1&&Z8&2&&ny.push(ny.pop().concat(ny.shift())),Ln.push(ny.filter(guQ))}
var aQ=z(D0),nG=bbw(),Qd=z(nG),U3=!1,WM,Ln,cB,Tq={point:K1,lineStart:TV,lineEnd:qL,polygonStart:function(){Tq.point=OY;Tq.lineStart=$L;Tq.lineEnd=As;Ln=[];WM=[]},
polygonEnd:function(){Tq.point=K1;Tq.lineStart=TV;Tq.lineEnd=qL;var Z8=Ln,ny=Z8.length;var B6=-1;for(var RW=0,Xm,c6;++B6<ny;)RW+=Z8[B6].length;for(Xm=Array(RW);--ny>=0;)for(c6=Z8[ny],B6=c6.length;--B6>=0;)Xm[--RW]=c6[B6];Ln=Xm;Z8=WM;ny=Ws[0];RW=Ws[1];var b9=YQ(RW);B6=[YQ(ny),-Ht(ny),0];c6=Xm=0;sUh.reset();b9===1?RW=AZ+1E-6:b9===-1&&(RW=-AZ-1E-6);b9=0;for(var sv=Z8.length;b9<sv;++b9)if(HM=(x_=Z8[b9]).length){var x_,HM,Vb=x_[HM-1],KZ=Vb[0],cD=Vb[1]/2+IeY,e91=YQ(cD),doV=Ht(cD);for(cD=0;cD<HM;++cD,KZ=
jUf,e91=aeh,doV=HY,Vb=Il_){var Il_=x_[cD],jUf=Il_[0];HY=Il_[1]/2+IeY;var aeh=YQ(HY),HY=Ht(HY),TS=jUf-KZ,EwB=TS>=0?1:-1,Pow=EwB*TS,dCF=Pow>BM;e91*=aeh;sUh.add(Wjl(e91*EwB*YQ(Pow),doV*HY+e91*Ht(Pow)));Xm+=dCF?TS+EwB*wpP:TS;dCF^KZ>=ny^jUf>=ny&&(Vb=uXV(ibt(Vb),ibt(Il_)),TXQ(Vb),KZ=uXV(B6,Vb),TXQ(KZ),KZ=(dCF^TS>=0?-1:1)*KS0(KZ[2]),RW>KZ||RW===KZ&&(Vb[0]||Vb[1]))&&(c6+=dCF^TS>=0?1:-1)}}Z8=(Xm<-1E-6||Xm<1E-6&&sUh<-1E-6)^c6&1;Ln.length?(U3||(D0.polygonStart(),U3=!0),MGk(Ln,Gzm,Z8,Z0,D0)):Z8&&(U3||(D0.polygonStart(),
U3=!0),D0.lineStart(),Z0(null,null,1,D0),D0.lineEnd());U3&&(D0.polygonEnd(),U3=!1);Ln=WM=null},
sphere:function(){D0.polygonStart();D0.lineStart();Z0(null,null,1,D0);D0.lineEnd();D0.polygonEnd()}};
return Tq}})(function(){return!0},function(I){var z=NaN,Z0=NaN,Ws=NaN,D0;
return{lineStart:function(){I.lineStart();D0=1},
point:function(K1,dP){var TV=K1>0?BM:-BM,qL=cS(K1-z);if(cS(qL-BM)<1E-6)I.point(z,Z0=(Z0+dP)/2>0?AZ:-AZ),I.point(Ws,Z0),I.lineEnd(),I.lineStart(),I.point(TV,Z0),I.point(K1,Z0),D0=0;else if(Ws!==TV&&qL>=BM){cS(z-Ws)<1E-6&&(z-=Ws*1E-6);cS(K1-TV)<1E-6&&(K1-=TV*1E-6);qL=z;var OY=Z0,$L=K1,As,aQ,nG=YQ(qL-$L);Z0=cS(nG)>1E-6?hKP((YQ(OY)*(aQ=Ht(dP))*YQ($L)-YQ(dP)*(As=Ht(OY))*YQ(qL))/(As*aQ*nG)):(OY+dP)/2;I.point(Ws,Z0);I.lineEnd();I.lineStart();I.point(TV,Z0);D0=0}I.point(z=K1,Z0=dP);Ws=TV},
lineEnd:function(){I.lineEnd();z=Z0=NaN},
clean:function(){return 2-D0}}},function(I,z,Z0,Ws){I==null?(Z0*=AZ,Ws.point(-BM,Z0),Ws.point(0,Z0),Ws.point(BM,Z0),Ws.point(BM,0),Ws.point(BM,-Z0),Ws.point(0,-Z0),Ws.point(-BM,-Z0),Ws.point(-BM,0),Ws.point(-BM,Z0)):cS(I[0]-z[0])>1E-6?(I=I[0]<z[0]?BM:-BM,Z0=Z0*I/2,Ws.point(-I,Z0),Ws.point(0,Z0),Ws.point(I,Z0)):Ws.point(z[0],z[1])},[-BM,
-AZ]);new C5;new C5;new C5;new C5;RKG.prototype={constructor:RKG,point:function(I,z){this.stream.point(I,z)},
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()}};
Ht(30*auf);(function(I){return function(z){var Z0=new RKG,Ws;for(Ws in I)Z0[Ws]=I[Ws];Z0.stream=z;return Z0}})({point:function(I,z){this.stream.point(I*auf,z*auf)}});
ObN(function(I){return fl_(2/(1+I))}).invert=zm(function(I){return 2*KS0(I/2)});
ObN(function(I){return(I=I>1?0:I<-1?BM:Math.acos(I))&&I/YQ(I)}).invert=zm(function(I){return I});
fl_(3);zm(hKP);zm(KS0);zm(function(I){return 2*hKP(I)});
mo.prototype=VGh.prototype={constructor:mo,count:function(){return this.eachAfter(Fjs)},
each:function(I){var z,Z0=[this],Ws;do{var D0=Z0.reverse();for(Z0=[];z=D0.pop();)if(I(z),z=z.children){var K1=0;for(Ws=z.length;K1<Ws;++K1)Z0.push(z[K1])}}while(Z0.length);return this},
eachAfter:function(I){for(var z,Z0=[this],Ws=[],D0,K1;z=Z0.pop();)if(Ws.push(z),z=z.children)for(D0=0,K1=z.length;D0<K1;++D0)Z0.push(z[D0]);for(;z=Ws.pop();)I(z);return this},
eachBefore:function(I){for(var z,Z0=[this],Ws;z=Z0.pop();)if(I(z),z=z.children)for(Ws=z.length-1;Ws>=0;--Ws)Z0.push(z[Ws]);return this},
sum:function(I){return this.eachAfter(function(z){for(var Z0=+I(z.data)||0,Ws=z.children,D0=Ws&&Ws.length;--D0>=0;)Z0+=Ws[D0].value;z.value=Z0})},
sort:function(I){return this.eachBefore(function(z){z.children&&z.children.sort(I)})},
path:function(I){var z=this;var Z0=z;var Ws=I;if(Z0!==Ws){var D0=Z0.ancestors(),K1=Ws.ancestors(),dP=null;Z0=D0.pop();for(Ws=K1.pop();Z0===Ws;)dP=Z0,Z0=D0.pop(),Ws=K1.pop();Z0=dP}for(Ws=[z];z!==Z0;)z=z.parent,Ws.push(z);for(z=Ws.length;I!==Z0;)Ws.splice(z,0,I),I=I.parent;return Ws},
ancestors:function(){for(var I=this,z=[I];I=I.parent;)z.push(I);return z},
links:function(){var I=this,z=[];I.each(function(Z0){Z0!==I&&z.push({source:Z0.parent,target:Z0})});
return z},
copy:function(){return VGh(this).eachBefore(lek)}};
(function(I,z){this._=I;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=z}).prototype=Object.create(mo.prototype);
var cEP=new Date,nwP=new Date,hhV=c2(function(){},function(I,z){I.setTime(+I+z)},function(I,z){return z-I});
hhV.every=function(I){I=Math.floor(I);return isFinite(I)&&I>0?I>1?c2(function(z){z.setTime(Math.floor(z/I)*I)},function(z,Z0){z.setTime(+z+Z0*I)},function(z,Z0){return(Z0-z)/I}):hhV:null};
c2(function(I){I.setTime(Math.floor(I/1E3)*1E3)},function(I,z){I.setTime(+I+z*1E3)},function(I,z){return(z-I)/1E3},function(I){return I.getUTCSeconds()});
c2(function(I){I.setTime(Math.floor(I/6E4)*6E4)},function(I,z){I.setTime(+I+z*6E4)},function(I,z){return(z-I)/6E4},function(I){return I.getMinutes()});
c2(function(I){var z=I.getTimezoneOffset()*6E4%36E5;z<0&&(z+=36E5);I.setTime(Math.floor((+I-z)/36E5)*36E5+z)},function(I,z){I.setTime(+I+z*36E5)},function(I,z){return(z-I)/36E5},function(I){return I.getHours()});
var guO=c2(function(I){I.setHours(0,0,0,0)},function(I,z){I.setDate(I.getDate()+z)},function(I,z){return(z-I-(z.getTimezoneOffset()-I.getTimezoneOffset())*6E4)/864E5},function(I){return I.getDate()-1}),lRQ=eq(0),fut=eq(1);
eq(2);eq(3);var kLF=eq(4);eq(5);eq(6);c2(function(I){I.setDate(1);I.setHours(0,0,0,0)},function(I,z){I.setMonth(I.getMonth()+z)},function(I,z){return z.getMonth()-I.getMonth()+(z.getFullYear()-I.getFullYear())*12},function(I){return I.getMonth()});
var NK=c2(function(I){I.setMonth(0,1);I.setHours(0,0,0,0)},function(I,z){I.setFullYear(I.getFullYear()+z)},function(I,z){return z.getFullYear()-I.getFullYear()},function(I){return I.getFullYear()});
NK.every=function(I){return isFinite(I=Math.floor(I))&&I>0?c2(function(z){z.setFullYear(Math.floor(z.getFullYear()/I)*I);z.setMonth(0,1);z.setHours(0,0,0,0)},function(z,Z0){z.setFullYear(z.getFullYear()+Z0*I)}):null};
c2(function(I){I.setUTCSeconds(0,0)},function(I,z){I.setTime(+I+z*6E4)},function(I,z){return(z-I)/6E4},function(I){return I.getUTCMinutes()});
c2(function(I){I.setUTCMinutes(0,0,0)},function(I,z){I.setTime(+I+z*36E5)},function(I,z){return(z-I)/36E5},function(I){return I.getUTCHours()});
var MGM=c2(function(I){I.setUTCHours(0,0,0,0)},function(I,z){I.setUTCDate(I.getUTCDate()+z)},function(I,z){return(z-I)/864E5},function(I){return I.getUTCDate()-1}),vCk=Iv(0),KyP=Iv(1);
Iv(2);Iv(3);var yEt=Iv(4);Iv(5);Iv(6);c2(function(I){I.setUTCDate(1);I.setUTCHours(0,0,0,0)},function(I,z){I.setUTCMonth(I.getUTCMonth()+z)},function(I,z){return z.getUTCMonth()-I.getUTCMonth()+(z.getUTCFullYear()-I.getUTCFullYear())*12},function(I){return I.getUTCMonth()});
var Sp=c2(function(I){I.setUTCMonth(0,1);I.setUTCHours(0,0,0,0)},function(I,z){I.setUTCFullYear(I.getUTCFullYear()+z)},function(I,z){return z.getUTCFullYear()-I.getUTCFullYear()},function(I){return I.getUTCFullYear()});
Sp.every=function(I){return isFinite(I=Math.floor(I))&&I>0?c2(function(z){z.setUTCFullYear(Math.floor(z.getUTCFullYear()/I)*I);z.setUTCMonth(0,1);z.setUTCHours(0,0,0,0)},function(z,Z0){z.setUTCFullYear(z.getUTCFullYear()+Z0*I)}):null};
var bbl={"-":"",_:" ",0:"0"},nq=/^\s*\d+/,Dkw=/^%/,$kg=/[\\^$*+?|[\]().{}]/g,alH;(function(I){alH=ou5(I);fKI=alH.utcFormat;k1s=alH.utcParse;return alH})({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||fKI("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||k1s("%Y-%m-%dT%H:%M:%S.%LZ");lG("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
lG("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");lG("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");lG("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");lG("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");lG("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");lG("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
lG("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");lG("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");lG("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");lG("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");lG("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var Uky=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(lG);qT(Uky);var Ylv=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(lG);qT(Ylv);var e6c=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(lG);qT(e6c);var IRP=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(lG);
qT(IRP);var dk8=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(lG);qT(dk8);var aRk=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(lG);qT(aRk);var h6q=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(lG);qT(h6q);var sf5=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(lG);qT(sf5);var jfv=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(lG);qT(jfv);var ECq=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(lG);qT(ECq);var PU0=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(lG);qT(PU0);var ppk=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(lG);qT(ppk);var z6v=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(lG);qT(z6v);var mkm=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(lG);qT(mkm);var JOv=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(lG);qT(JOv);var CU5=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(lG);qT(CU5);var rOm=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(lG);qT(rOm);var QfP=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(lG);qT(QfP);var Xpm=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(lG);qT(Xpm);var AOv=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(lG);qT(AOv);var HSQ=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(lG);qT(HSQ);var Biy=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(lG);qT(Biy);var xk8=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(lG);qT(xk8);var qlm=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(lG);qT(qlm);var Lbv=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(lG);qT(Lbv);var ZNY=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(lG);qT(ZNY);var NL8=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(lG);qT(NL8);IuF(f0(300,.5,0),f0(-240,.5,1));IuF(f0(-100,.75,.35),f0(80,1.5,.8));IuF(f0(260,.75,.35),f0(80,1.5,.8));f0();Hl();wK_(lG("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
wK_(lG("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
wK_(lG("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
wK_(lG("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
nuN.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(I,z){I=+I;z=+z;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(I,z):this._context.moveTo(I,z);break;case 1:this._point=2;default:this._context.lineTo(I,z)}}};
(function(I){function z(Z0){return new KjI(I(Z0))}
z._curve=I;return z})(function(I){return new nuN(I)});
KjI.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(I,z){this._curve.point(z*Math.sin(I),z*-Math.cos(I))}};
UWw.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:w0B(this,this._t0,kzs(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(I,z){var Z0=NaN;I=+I;z=+z;if(I!==this._x1||z!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(I,z):this._context.moveTo(I,z);break;case 1:this._point=2;break;case 2:this._point=3;w0B(this,kzs(this,Z0=feV(this,I,z)),Z0);break;default:w0B(this,this._t0,Z0=feV(this,I,z))}this._x0=this._x1;this._x1=I;this._y0=this._y1;this._y1=z;this._t0=Z0}}};
(function(I){this._context=new yls(I)}.prototype=Object.create(UWw.prototype)).point=function(I,z){UWw.prototype.point.call(this,z,I)};
yls.prototype={moveTo:function(I,z){this._context.moveTo(z,I)},
closePath:function(){this._context.closePath()},
lineTo:function(I,z){this._context.lineTo(z,I)},
bezierCurveTo:function(I,z,Z0,Ws,D0,K1){this._context.bezierCurveTo(z,I,Ws,Z0,K1,D0)}};
QU.prototype={constructor:QU,scale:function(I){return I===1?this:new QU(this.k*I,this.x,this.y)},
translate:function(I,z){return I===0&z===0?this:new QU(this.k,this.x+this.k*I,this.y+this.k*z)},
apply:function(I){return[I[0]*this.k+this.x,I[1]*this.k+this.y]},
invert:function(I){return[(I[0]-this.x)/this.k,(I[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new QU(1,0,0);gYs=IQ;XT.svg=XT.svg;XT.xhtml=XT.xhtml;XT.xlink=XT.xlink;XT.xml=XT.xml;XT.xmlns=XT.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 y90="hammer_"+(Math.random()*1E6|0),wVl=function(){var L=document||document;if(!L[y90]){var Z=function(){(function(N,S,u,T){function W(wP,Ps,rP){return setTimeout(v(wP,rP),Ps)}
function V(wP,Ps,rP){return Array.isArray(wP)?(M(wP,rP[Ps],rP),!0):!1}
function M(wP,Ps,rP){var K0;if(wP)if(wP.forEach)wP.forEach(Ps,rP);else if(wP.length!==T){var RQ=0;for(K0=wP.length;RQ<K0;RQ++)Ps.call(rP,wP[RQ],RQ,wP)}else for(RQ in wP)wP.hasOwnProperty(RQ)&&Ps.call(rP,wP[RQ],RQ,wP)}
function G(wP,Ps,rP){for(var K0=Object.keys(Ps),RQ=0,I7=K0.length;RQ<I7;RQ++)if(!rP||rP&&wP[K0[RQ]]===T)wP[K0[RQ]]=Ps[K0[RQ]];return wP}
function D(wP,Ps){return G(wP,Ps,!0)}
function l(wP,Ps,rP){Ps=Ps.prototype;var K0=wP.prototype=Object.create(Ps);K0.constructor=wP;K0._super=Ps;rP&&G(K0,rP)}
function v(wP,Ps){return function(){return wP.apply(Ps,arguments)}}
function R(wP,Ps){return typeof wP=="function"?wP.apply(Ps?Ps[0]||T:T,Ps):wP}
function K(wP,Ps,rP){M(d(Ps),function(K0){wP.addEventListener(K0,rP,!1)})}
function U(wP,Ps,rP){M(d(Ps),function(K0){wP.removeEventListener(K0,rP,!1)})}
function d(wP){return wP.trim().split(/\s+/g)}
function h(wP,Ps,rP){if(wP.indexOf&&!rP)return wP.indexOf(Ps);for(var K0=0,RQ=wP.length;K0<RQ;K0++)if(rP&&wP[K0][rP]==Ps||!rP&&wP[K0]===Ps)return K0;return-1}
function E(wP,Ps,rP){for(var K0=[],RQ=[],I7=0,dy=wP.length;I7<dy;I7++){var kL=Ps?wP[I7][Ps]:wP[I7];h(RQ,kL)<0&&K0.push(wP[I7]);RQ[I7]=kL}rP&&(K0=Ps?K0.sort(function(f0,Pw){return f0[Ps]>Pw[Ps]}):K0.sort());
return K0}
function A(wP,Ps){for(var rP,K0=Ps[0].toUpperCase()+Ps.slice(1),RQ=0,I7=Fh.length;RQ<I7;RQ++)if(rP=(rP=Fh[RQ])?rP+K0:Ps,rP in wP)return rP;return T}
function J(wP,Ps){var rP=this;this.manager=wP;this.callback=Ps;this.element=wP.element;this.target=wP.options.inputTarget;this.domHandler=function(K0){R(wP.options.enable,[wP])&&rP.handler(K0)};
this.evEl&&K(this.element,this.evEl,this.domHandler);this.evTarget&&K(this.target,this.evTarget,this.domHandler);this.evWin&&K(N,this.evWin,this.domHandler)}
function C(wP){var Ps;JU?Ps=jf:Zb?Ps=f1:IQ?Ps=n0:Ps=RF;return new Ps(wP,X)}
function X(wP,Ps,rP){var K0=rP.pointers.length,RQ=rP.changedPointers.length,I7=Ps&1&&K0-RQ===0;rP.isFirst=!!I7;rP.isFinal=!!(Ps&12&&K0-RQ===0);I7&&(wP.session={});rP.eventType=Ps;Ps=wP.session;K0=rP.pointers;RQ=K0.length;Ps.firstInput||(Ps.firstInput=L1(rP));RQ>1&&!Ps.firstMultiple?Ps.firstMultiple=L1(rP):RQ===1&&(Ps.firstMultiple=!1);I7=Ps.firstInput;var dy=(RQ=Ps.firstMultiple)?RQ.center:I7.center,kL=rP.center=Fw(K0);rP.timeStamp=vl();rP.deltaTime=rP.timeStamp-I7.timeStamp;rP.angle=lH(dy,kL);rP.distance=
Yt(dy,kL);I7=rP.center;dy=Ps.offsetDelta||{};kL=Ps.prevDelta||{};var f0=Ps.prevInput||{};if(rP.eventType===1||f0.eventType===4)kL=Ps.prevDelta={x:f0.deltaX||0,y:f0.deltaY||0},dy=Ps.offsetDelta={x:I7.x,y:I7.y};rP.deltaX=kL.x+(I7.x-dy.x);rP.deltaY=kL.y+(I7.y-dy.y);rP.offsetDirection=GB(rP.deltaX,rP.deltaY);RQ?(I7=RQ.pointers,I7=Yt(K0[0],K0[1],Hl)/Yt(I7[0],I7[1],Hl)):I7=1;rP.scale=I7;RQ?(RQ=RQ.pointers,K0=lH(K0[1],K0[0],Hl)-lH(RQ[1],RQ[0],Hl)):K0=0;rP.rotation=K0;dy=Ps.lastInterval||rP;K0=rP.timeStamp-
dy.timeStamp;rP.eventType!=8&&(K0>25||dy.velocity===T)?(I7=dy.deltaX-rP.deltaX,dy=dy.deltaY-rP.deltaY,kL=I7/K0||0,f0=dy/K0||0,K0=kL,RQ=f0,kL=Xw(kL)>Xw(f0)?kL:f0,I7=GB(I7,dy),Ps.lastInterval=rP):(kL=dy.velocity,K0=dy.velocityX,RQ=dy.velocityY,I7=dy.direction);rP.velocity=kL;rP.velocityX=K0;rP.velocityY=RQ;rP.direction=I7;Ps=wP.element;a:{for(K0=rP.srcEvent.target;K0;){if(K0==Ps){K0=!0;break a}K0=K0.parentNode}K0=!1}K0&&(Ps=rP.srcEvent.target);rP.target=Ps;wP.emit("hammer.input",rP);wP.recognize(rP);
wP.session.prevInput=rP}
function L1(wP){for(var Ps=[],rP=0;rP<wP.pointers.length;rP++)Ps[rP]={clientX:SY(wP.pointers[rP].clientX),clientY:SY(wP.pointers[rP].clientY)};return{timeStamp:vl(),pointers:Ps,center:Fw(Ps),deltaX:wP.deltaX,deltaY:wP.deltaY}}
function Fw(wP){var Ps=wP.length;if(Ps===1)return{x:SY(wP[0].clientX),y:SY(wP[0].clientY)};for(var rP=0,K0=0,RQ=0;RQ<Ps;RQ++)rP+=wP[RQ].clientX,K0+=wP[RQ].clientY;return{x:SY(rP/Ps),y:SY(K0/Ps)}}
function GB(wP,Ps){return wP===Ps?1:Xw(wP)>=Xw(Ps)?wP>0?2:4:Ps>0?8:16}
function Yt(wP,Ps,rP){rP||(rP=bG);var K0=Ps[rP[0]]-wP[rP[0]];wP=Ps[rP[1]]-wP[rP[1]];return Math.sqrt(K0*K0+wP*wP)}
function lH(wP,Ps,rP){rP||(rP=bG);return Math.atan2(Ps[rP[1]]-wP[rP[1]],Ps[rP[0]]-wP[rP[0]])*180/Math.PI}
function RF(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;J.apply(this,arguments)}
function jf(){this.evEl=c4;this.evWin=Hy;J.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function f1(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};J.apply(this,arguments)}
function n0(){J.apply(this,arguments);var wP=v(this.handler,this);this.touch=new f1(this.manager,wP);this.mouse=new RF(this.manager,wP)}
function r5(wP,Ps){this.manager=wP;this.set(Ps)}
function yq(wP){if(wP.indexOf("none")>-1)return"none";var Ps=wP.indexOf("pan-x")>-1,rP=wP.indexOf("pan-y")>-1;return Ps&&rP?"pan-x pan-y":Ps||rP?Ps?"pan-x":"pan-y":wP.indexOf("manipulation")>-1?"manipulation":"auto"}
function ZN(wP){this.id=oQ++;this.manager=null;this.options=D(wP||{},this.defaults);wP=this.options.enable;this.options.enable=wP===T?!0:wP;this.state=1;this.simultaneous={};this.requireFail=[]}
function GV(wP){return wP==16?"down":wP==8?"up":wP==2?"left":wP==4?"right":""}
function IO(wP,Ps){return(Ps=Ps.manager)?Ps.get(wP):wP}
function d5(){ZN.apply(this,arguments)}
function n8(){d5.apply(this,arguments);this.pY=this.pX=null}
function lq(){d5.apply(this,arguments)}
function tx(){ZN.apply(this,arguments);this._input=this._timer=null}
function ut(){d5.apply(this,arguments)}
function oO(){d5.apply(this,arguments)}
function uq(){ZN.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function RO(wP,Ps){Ps=Ps||{};var rP=Ps.recognizers;Ps.recognizers=rP===T?RO.defaults.preset:rP;return new iq(wP,Ps)}
function iq(wP,Ps){Ps=Ps||{};this.options=D(Ps,RO.defaults);this.options.inputTarget=this.options.inputTarget||wP;this.handlers={};this.session={};this.recognizers=[];this.element=wP;this.input=C(this);this.touchAction=new r5(this,this.options.touchAction);hU(this,!0);M(Ps.recognizers,function(rP){var K0=this.add(new rP[0](rP[1]));rP[2]&&K0.recognizeWith(rP[2]);rP[3]&&K0.requireFailure(rP[2])},this)}
function hU(wP,Ps){var rP=wP.element;M(wP.options.cssProps,function(K0,RQ){rP.style[A(rP.style,RQ)]=Ps?K0:""})}
function Qq(wP,Ps){var rP=S.createEvent("Event");rP.initEvent(wP,!0,!0);rP.gesture=Ps;Ps.target.dispatchEvent(rP)}
var Fh=" webkit moz MS ms o".split(" "),g5=S.createElement("div"),SY=Math.round,Xw=Math.abs,vl=Date.now,oQ=1,H6=/mobile|tablet|ip(ad|hone|od)|android/i,IQ="ontouchstart"in N,JU=A(N,"PointerEvent")!==T,Zb=IQ&&H6.test(navigator.userAgent),bG=["x","y"],Hl=["clientX","clientY"];J.prototype={handler:function(){},
destroy:function(){this.evEl&&U(this.element,this.evEl,this.domHandler);this.evTarget&&U(this.target,this.evTarget,this.domHandler);this.evWin&&U(N,this.evWin,this.domHandler)}};
var k5={mousedown:1,mousemove:2,mouseup:4};l(RF,J,{handler:function(wP){var Ps=k5[wP.type];Ps&1&&wP.button===0&&(this.pressed=!0);Ps&2&&wP.which!==1&&(Ps=4);this.pressed&&this.allow&&(Ps&4&&(this.pressed=!1),this.callback(this.manager,Ps,{pointers:[wP],changedPointers:[wP],pointerType:"mouse",srcEvent:wP}))}});
var Tg={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Aj={2:"touch",3:"pen",4:"mouse",5:"kinect"},c4="pointerdown",Hy="pointermove pointerup pointercancel";N.MSPointerEvent&&(c4="MSPointerDown",Hy="MSPointerMove MSPointerUp MSPointerCancel");l(jf,J,{handler:function(wP){var Ps=this.store,rP=!1,K0=wP.type.toLowerCase().replace("ms","");K0=Tg[K0];var RQ=Aj[wP.pointerType]||wP.pointerType;K0&1&&(wP.button===0||RQ=="touch")?Ps.push(wP):K0&12&&(rP=!0);var I7=h(Ps,wP.pointerId,"pointerId");
I7<0||(Ps[I7]=wP,this.callback(this.manager,K0,{pointers:Ps,changedPointers:[wP],pointerType:RQ,srcEvent:wP}),rP&&Ps.splice(I7,1))}});
var EK={touchstart:1,touchmove:2,touchend:4,touchcancel:8};l(f1,J,{handler:function(wP){var Ps=EK[wP.type];var rP=Array.prototype.slice.call(wP.touches,0);var K0=this.targetIds;if(Ps&3&&rP.length===1)K0[rP[0].identifier]=!0,K0=[rP,rP];else{var RQ,I7=Array.prototype.slice.call(wP.targetTouches,0),dy=Array.prototype.slice.call(wP.changedTouches,0),kL=[];if(Ps===1)for(rP=0,RQ=I7.length;rP<RQ;rP++)K0[I7[rP].identifier]=!0;rP=0;for(RQ=dy.length;rP<RQ;rP++)K0[dy[rP].identifier]&&kL.push(dy[rP]),Ps&12&&
delete K0[dy[rP].identifier];K0=kL.length?[E(I7.concat(kL),"identifier",!0),kL]:void 0}K0&&this.callback(this.manager,Ps,{pointers:K0[0],changedPointers:K0[1],pointerType:"touch",srcEvent:wP})}});
l(n0,J,{handler:function(wP,Ps,rP){var K0=rP.pointerType=="mouse";if(rP.pointerType=="touch")this.mouse.allow=!1;else if(K0&&!this.mouse.allow)return;Ps&12&&(this.mouse.allow=!0);this.callback(wP,Ps,rP)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var ZD=A(g5.style,"touchAction"),un=ZD!==T;r5.prototype={set:function(wP){wP=="compute"&&(wP=this.compute());un&&(this.manager.element.style[ZD]=wP);this.actions=wP.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var wP=[];M(this.manager.recognizers,function(Ps){R(Ps.options.enable,[Ps])&&(wP=wP.concat(Ps.getTouchAction()))});
return yq(wP.join(" "))},
preventDefaults:function(wP){if(!un){var Ps=wP.srcEvent;wP=wP.offsetDirection;if(this.manager.session.prevented)Ps.preventDefault();else{var rP=this.actions,K0=rP.indexOf("none")>-1,RQ=rP.indexOf("pan-y")>-1;rP=rP.indexOf("pan-x")>-1;if(K0||RQ&&rP||RQ&&wP&6||rP&&wP&24)return this.preventSrc(Ps)}}},
preventSrc:function(wP){this.manager.session.prevented=!0;wP.preventDefault()}};
ZN.prototype={defaults:{},set:function(wP){G(this.options,wP);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(wP){if(V(wP,"recognizeWith",this))return this;var Ps=this.simultaneous;wP=IO(wP,this);Ps[wP.id]||(Ps[wP.id]=wP,wP.recognizeWith(this));return this},
dropRecognizeWith:function(wP){if(V(wP,"dropRecognizeWith",this))return this;wP=IO(wP,this);delete this.simultaneous[wP.id];return this},
requireFailure:function(wP){if(V(wP,"requireFailure",this))return this;var Ps=this.requireFail;wP=IO(wP,this);h(Ps,wP)===-1&&(Ps.push(wP),wP.requireFailure(this));return this},
dropRequireFailure:function(wP){if(V(wP,"dropRequireFailure",this))return this;wP=IO(wP,this);wP=h(this.requireFail,wP);wP>-1&&this.requireFail.splice(wP,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(wP){return!!this.simultaneous[wP.id]},
emit:function(wP){function Ps(RQ){rP.manager.emit(rP.options.event+(RQ?K0&16?"cancel":K0&8?"end":K0&4?"move":K0&2?"start":"":""),wP)}
var rP=this,K0=this.state;K0<8&&Ps(!0);Ps();K0>=8&&Ps(!0)},
tryEmit:function(wP){if(this.canEmit())return this.emit(wP);this.state=32},
canEmit:function(){for(var wP=0;wP<this.requireFail.length;wP++)if(!(this.requireFail[wP].state&33))return!1;return!0},
recognize:function(wP){wP=G({},wP);R(this.options.enable,[this,wP])?(this.state&56&&(this.state=1),this.state=this.process(wP),this.state&30&&this.tryEmit(wP)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
l(d5,ZN,{defaults:{pointers:1},attrTest:function(wP){var Ps=this.options.pointers;return Ps===0||wP.pointers.length===Ps},
process:function(wP){var Ps=this.state,rP=wP.eventType,K0=Ps&6;wP=this.attrTest(wP);return K0&&(rP&8||!wP)?Ps|16:K0||wP?rP&4?Ps|8:Ps&2?Ps|4:2:32}});
l(n8,d5,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var wP=this.options.direction;if(wP===30)return["none"];var Ps=[];wP&6&&Ps.push("pan-y");wP&24&&Ps.push("pan-x");return Ps},
directionTest:function(wP){var Ps=this.options,rP=!0,K0=wP.distance,RQ=wP.direction,I7=wP.deltaX,dy=wP.deltaY;RQ&Ps.direction||(Ps.direction&6?(RQ=I7===0?1:I7<0?2:4,rP=I7!=this.pX,K0=Math.abs(wP.deltaX)):(RQ=dy===0?1:dy<0?8:16,rP=dy!=this.pY,K0=Math.abs(wP.deltaY)));wP.direction=RQ;return rP&&K0>Ps.threshold&&RQ&Ps.direction},
attrTest:function(wP){return d5.prototype.attrTest.call(this,wP)&&(this.state&2||!(this.state&2)&&this.directionTest(wP))},
emit:function(wP){this.pX=wP.deltaX;this.pY=wP.deltaY;var Ps=GV(wP.direction);Ps&&this.manager.emit(this.options.event+Ps,wP);this._super.emit.call(this,wP)}});
l(lq,d5,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(wP){return this._super.attrTest.call(this,wP)&&(Math.abs(wP.scale-1)>this.options.threshold||this.state&2)},
emit:function(wP){this._super.emit.call(this,wP);wP.scale!==1&&this.manager.emit(this.options.event+(wP.scale<1?"in":"out"),wP)}});
l(tx,ZN,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(wP){var Ps=this.options,rP=wP.pointers.length===Ps.pointers,K0=wP.distance<Ps.threshold,RQ=wP.deltaTime>Ps.time;this._input=wP;if(!K0||!rP||wP.eventType&12&&!RQ)this.reset();else if(wP.eventType&1)this.reset(),this._timer=W(function(){this.state=8;this.tryEmit()},Ps.time,this);
else if(wP.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(wP){this.state===8&&(wP&&wP.eventType&4?this.manager.emit(this.options.event+"up",wP):(this._input.timeStamp=vl(),this.manager.emit(this.options.event,this._input)))}});
l(ut,d5,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(wP){return this._super.attrTest.call(this,wP)&&(Math.abs(wP.rotation)>this.options.threshold||this.state&2)}});
l(oO,d5,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return n8.prototype.getTouchAction.call(this)},
attrTest:function(wP){var Ps=this.options.direction;if(Ps&30)var rP=wP.velocity;else Ps&6?rP=wP.velocityX:Ps&24&&(rP=wP.velocityY);return this._super.attrTest.call(this,wP)&&Ps&wP.direction&&Xw(rP)>this.options.velocity&&wP.eventType&4},
emit:function(wP){var Ps=GV(wP.direction);Ps&&this.manager.emit(this.options.event+Ps,wP);this.manager.emit(this.options.event,wP)}});
l(uq,ZN,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(wP){var Ps=this.options,rP=wP.pointers.length===Ps.pointers,K0=wP.distance<Ps.threshold,RQ=wP.deltaTime<Ps.time;this.reset();if(wP.eventType&1&&this.count===0)return this.failTimeout();if(K0&&RQ&&rP){if(wP.eventType!=4)return this.failTimeout();rP=this.pTime?wP.timeStamp-this.pTime<Ps.interval:!0;K0=!this.pCenter||Yt(this.pCenter,wP.center)<Ps.posThreshold;this.pTime=wP.timeStamp;this.pCenter=wP.center;K0&&rP?this.count+=1:this.count=1;this._input=wP;if(this.count%Ps.taps===0)return this.hasRequireFailures()?
(this._timer=W(function(){this.state=8;this.tryEmit()},Ps.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))}});
RO.VERSION="2.0.2";RO.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[ut,{enable:!1}],[lq,{enable:!1},["rotate"]],[oO,{direction:6}],[n8,{direction:6},["swipe"]],[uq],[uq,{event:"doubletap",taps:2},["tap"]],[tx]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};iq.prototype={set:function(wP){G(this.options,wP);return this},
stop:function(wP){this.session.stopped=wP?2:1},
recognize:function(wP){var Ps=this.session;if(!Ps.stopped){this.touchAction.preventDefaults(wP);var rP=this.recognizers,K0=Ps.curRecognizer;if(!K0||K0&&K0.state&8)K0=Ps.curRecognizer=null;for(var RQ=0,I7=rP.length;RQ<I7;RQ++){var dy=rP[RQ];Ps.stopped===2||K0&&dy!=K0&&!dy.canRecognizeWith(K0)?dy.reset():dy.recognize(wP);!K0&&dy.state&14&&(K0=Ps.curRecognizer=dy)}}},
get:function(wP){if(wP instanceof ZN)return wP;for(var Ps=this.recognizers,rP=0;rP<Ps.length;rP++)if(Ps[rP].options.event==wP)return Ps[rP];return null},
add:function(wP){if(V(wP,"add",this))return this;var Ps=this.get(wP.options.event);Ps&&this.remove(Ps);this.recognizers.push(wP);wP.manager=this;this.touchAction.update();return wP},
remove:function(wP){if(V(wP,"remove",this))return this;var Ps=this.recognizers;wP=this.get(wP);Ps.splice(h(Ps,wP),1);this.touchAction.update();return this},
on:function(wP,Ps){var rP=this.handlers;M(d(wP),function(K0){rP[K0]=rP[K0]||[];rP[K0].push(Ps)});
return this},
off:function(wP,Ps){var rP=this.handlers;M(d(wP),function(K0){Ps?rP[K0].splice(h(rP[K0],Ps),1):delete rP[K0]});
return this},
emit:function(wP,Ps){this.options.domEvents&&Qq(wP,Ps);var rP=this.handlers[wP]&&this.handlers[wP].slice();if(rP&&rP.length){Ps.type=wP;Ps.preventDefault=function(){Ps.srcEvent.preventDefault()};
wP=0;for(var K0=rP.length;wP<K0;wP++)rP[wP](Ps)}},
destroy:function(){this.element&&hU(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
G(RO,{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:iq,Input:J,TouchAction:r5,Recognizer:ZN,AttrRecognizer:d5,Tap:uq,Pan:n8,Swipe:oO,Pinch:lq,Rotate:ut,Press:tx,on:K,off:U,each:M,merge:D,extend:G,inherit:l,bindFn:v,prefixed:A});
N[u]=RO})(window,document,"Hammer");
return window.Hammer}.call({});
Z.DOCUMENT=L;L[y90]=Z}return L[y90]};/*

 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 UHQ=function(L,Z){if(L.length!==Z.length)return!1;for(var N=0;N<L.length;++N)if(L[N]!==Z[N])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var YcN=_.O(["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"]),ext=YcN.next();!ext.done;ext=YcN.next()){var IKL=ext.value,dHq=document.createElement("link");dHq.rel="stylesheet";dHq.href=IKL;document.head.appendChild(dHq)};var snF,EpA,pzw,dYA,jnP,aIs,emh,IIB;snF={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};EpA={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:"*"};pzw={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};dYA=/[a-z0-9*]/;jnP=/U\+/;aIs=/^arrow/;emh=/^space(bar)?/;IIB=/^escape$/;_.Ub={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(L,Z){this._imperativeKeyBindings[L]=Z;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(L,Z){Z=mYG(Z);for(var N=0;N<Z.length;++N)if(P30(Z[N],L))return!0;return!1},
_collectKeyBindings:function(){var L=this.behaviors.map(function(Z){return Z.keyBindings});
L.indexOf(this.keyBindings)===-1&&L.push(this.keyBindings);return L},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(N){for(var S in N)this._addKeyBinding(S,N[S])},this);
for(var L in this._imperativeKeyBindings)this._addKeyBinding(L,this._imperativeKeyBindings[L]);for(var Z in this._keyBindings)this._keyBindings[Z].sort(function(N,S){N=N[0].hasModifiers;return N===S[0].hasModifiers?0:N?-1:1})},
_addKeyBinding:function(L,Z){mYG(L).forEach(function(N){this._keyBindings[N.event]=this._keyBindings[N.event]||[];this._keyBindings[N.event].push([N,Z])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(L){var Z=this._onKeyBindingEvent.bind(this,this._keyBindings[L]);this._boundKeyHandlers.push([this.keyEventTarget,L,Z]);this.keyEventTarget.addEventListener(L,Z)},this)},
_unlistenKeyEventListeners:function(){for(var L,Z,N;this._boundKeyHandlers.length;)L=this._boundKeyHandlers.pop(),Z=L[0],N=L[1],L=L[2],Z.removeEventListener(N,L)},
_onKeyBindingEvent:function(L,Z){this.stopKeyboardEventPropagation&&Z.stopPropagation();if(!Z.defaultPrevented)for(var N=0;N<L.length;N++){var S=L[N][0],u=L[N][1];if(P30(S,Z)&&(this._triggerKeyHandler(S,u,Z),Z.defaultPrevented))break}},
_triggerKeyHandler:function(L,Z,N){var S=Object.create(L);S.keyboardEvent=N;L=new CustomEvent(L.event,{detail:S,cancelable:!0});this[Z].call(this,L);L.defaultPrevented&&N.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
*/
_.DU({is:"iron-a11y-keys",_template:null,behaviors:[_.Ub],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(L){this.keyEventTarget=L},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(L){this.fire("keys-pressed",L.detail,{})}});_.Ya={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(L){this._setFocused(L.type==="focus")},
_disabledChanged:function(L){this.setAttribute("aria-disabled",L?"true":"false");this.style.pointerEvents=L?"none":"";L?(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 eQ={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(L){this._detectKeyboardFocus(L);L||this._setPressed(!1)},
_detectKeyboardFocus:function(L){this._setReceivedFocusFromKeyboard(!this.pointerDown&&L)},
_userActivate:function(L){this.active!==L&&(this.active=L,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(L){L=L.detail.keyboardEvent;var Z=_.g0(L).localTarget;this.isLightDescendant(Z)||(L.preventDefault(),L.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(L){L=_.g0(L.detail.keyboardEvent).localTarget;this.isLightDescendant(L)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(L,Z){Z&&Z!=L&&this.hasAttribute(Z)&&this.removeAttribute(Z)},
_activeChanged:function(L){this.toggles?this.setAttribute(this.ariaActiveAttribute,L?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},aKt=[_.Ub,
eQ];_.IN={IronButtonState:aKt,IronButtonStateImpl:eQ};_.dE={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.aN=function(L){_.aN[" "](L);this.type=L&&L.type||"default";this.key=L&&L.key;L&&"value"in L&&(this.value=L.value)};
_.aN.prototype.byKey=function(L){this.key=L;return this.value};
_.gd.Object.defineProperties(_.aN.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var L=this.type,Z=this.key;if(L&&Z)return hw[L]&&hw[L][Z]},
set:function(L){var Z=this.type,N=this.key;Z&&N&&(Z=hw[Z]=hw[Z]||{},L==null?delete Z[N]:Z[N]=L)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var L=hw[this.type];return L?Object.keys(L).map(function(Z){return hw[this.type][Z]},this):[]}}});
_.aN[" "]=function(){};
var hw={};_.DU({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(L,Z,N){L=new _.aN({type:L,key:Z});N!==void 0&&N!==L.value?L.value=N:this.value!==L.value&&(this.value=L.value);return L},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(L){L&&(this.value=this)},
byKey:function(L){return(new _.aN({type:this.type,key:L})).value}});var hxY;hxY=null;_.sb={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){hxY=new _.aN({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return hxY&&hxY.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(L){this.invalid=L===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(L);return!this.invalid},
_getValidity:function(L){return this.hasValidator()?this._validator.validate(L):!0}};var sjM={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"}},jjt=[_.dE,
_.sb,sjM];_.DU({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 _.aN({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(L){return this.name+":"+L},this)},
applyIcon:function(L,Z){this.removeIcon(L);if(Z=this._cloneIcon(Z,this.rtlMirroring&&this._targetIsRTL(L))){var N=_.g0(L.root||L);N.insertBefore(Z,N.childNodes[0]);return L._svgIcon=Z}return null},
removeIcon:function(L){L._svgIcon&&(_.g0(L.root||L).removeChild(L._svgIcon),L._svgIcon=null)},
_targetIsRTL:function(L){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(L&&L.nodeType!==Node.ELEMENT_NODE&&(L=L.host),this.__targetIsRTL=L&&window.getComputedStyle(L).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 L=Object.create(null);_.g0(this).querySelectorAll("[id]").forEach(function(Z){L[Z.id]=Z});
return L},
_cloneIcon:function(L,Z){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[L],this.size,Z)},
_prepareSvgClone:function(L,Z,N){if(L){L=L.cloneNode(!0);var S=document.createElementNS("http://www.w3.org/2000/svg","svg");Z=L.getAttribute("viewBox")||"0 0 "+Z+" "+Z;var u="pointer-events: none; display: block; width: 100%; height: 100%;";N&&L.hasAttribute("mirror-in-rtl")&&(u+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");S.setAttribute("viewBox",Z);S.setAttribute("preserveAspectRatio","xMidYMid meet");S.setAttribute("focusable","false");S.style&&(S.style.cssText=
u);S.appendChild(L).removeAttribute("id");return S}return null}});var EMQ=function(L){this.multi=!1;this.selection=[];this.selectCallback=L};
_.t=EMQ.prototype;_.t.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.t.clear=function(L){this.selection.slice().forEach(function(Z){(!L||L.indexOf(Z)<0)&&this.setItemSelected(Z,!1)},this)};
_.t.isSelected=function(L){return this.selection.indexOf(L)>=0};
_.t.setItemSelected=function(L,Z){if(L!=null&&Z!==this.isSelected(L)){if(Z)this.selection.push(L);else{var N=this.selection.indexOf(L);N>=0&&this.selection.splice(N,1)}this.selectCallback&&this.selectCallback(L,Z)}};
_.t.select=function(L){this.multi?this.toggle(L):this.get()!==L&&(this.setItemSelected(this.get(),!1),this.setItemSelected(L,!0))};
_.t.toggle=function(L){this.setItemSelected(L,!this.isSelected(L))};_.I_={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 EMQ(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.g0(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(L){return this.items?this.items.indexOf(L):-1},
select:function(L){this.selected=L},
selectPrevious:function(){var L=this.items.length,Z=L-1;this.selected!==void 0&&(Z=(Number(this._valueToIndex(this.selected))-1+L)%L);this.selected=this._indexToValue(Z)},
selectNext:function(){var L=0;this.selected!==void 0&&(L=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(L)},
selectIndex:function(L){this.select(this._indexToValue(L))},
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(L){this.listen(this,L,"_activateHandler")},
_removeListener:function(L){this.unlisten(this,L,"_activateHandler")},
_activateEventChanged:function(L,Z){this._removeListener(Z);this._addListener(L)},
_updateItems:function(){var L=_.g0(this).queryDistributedElements(this.selectable||"*");L=Array.prototype.filter.call(L,this._bindFilterItem);this._setItems(L)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var L=this._valueToItem(this.selected);L?this._selection.select(L):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(L){return!this._excludedLocalNames[L.localName]},
_valueToItem:function(L){return L==null?null:this.items[this._valueToIndex(L)]},
_valueToIndex:function(L){if(this.attrForSelected)for(var Z=0,N;N=this.items[Z];Z++){if(this._valueForItem(N)==L)return Z}else return Number(L)},
_indexToValue:function(L){if(this.attrForSelected){if(L=this.items[L])return this._valueForItem(L)}else return L},
_valueForItem:function(L){if(!L)return null;if(!this.attrForSelected)return L=this.indexOf(L),L===-1?null:L;var Z=L[no(this.attrForSelected)];return Z!=void 0?Z:L.getAttribute(this.attrForSelected)},
_applySelection:function(L,Z){this.selectedClass&&this.toggleClass(this.selectedClass,Z,L);this.selectedAttribute&&this.toggleAttribute.call(L,this.selectedAttribute,Z);this._selectionChange();this.fire("iron-"+(Z?"select":"deselect"),{item:L})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(L){return _.g0(L).observeNodes(function(Z){this._updateItems();this._updateSelected();this.fire("iron-items-changed",Z,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(L){L=L.target;for(var Z=this.items;L&&L!=this;){var N=Z.indexOf(L);if(N>=0){Z=this._indexToValue(N);this._itemActivate(Z,L);break}L=L.parentNode}},
_itemActivate:function(L,Z){this.fire("iron-activate",{selected:L,item:Z},{cancelable:!0}).defaultPrevented||this.select(L)}};var Pmt={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(L){this.multi?this._toggleSelected(L):this.selected=L},
multiChanged:function(L){this._selection.multi=L;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(L){return this._indexToValue(this.indexOf(L))},this).filter(function(L){return L!=null},this)):_.I_._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(L){L=L||[];L=(this._valuesToItems(L)||[]).filter(function(N){return N!==null&&N!==void 0});
this._selection.clear(L);for(var Z=0;Z<L.length;Z++)this._selection.setItemSelected(L[Z],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var L=this._selection.get();this.multi?(this._setSelectedItems(L),this._setSelectedItem(L.length?L[0]:null)):L!==null&&L!==void 0?(this._setSelectedItems([L]),this._setSelectedItem(L)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(L){var Z=this.selectedValues.indexOf(L);Z<0?this.push("selectedValues",L):this.splice("selectedValues",Z,1)},
_valuesToItems:function(L){return L==null?null:L.map(function(Z){return this._valueToItem(Z)},this)}},pVQ=[_.I_,
Pmt];var zxM;
_.jQ={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(L){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var Z=this._valueToItem(L);Z&&Z.hasAttribute("disabled")||(this._setFocusedItem(Z),Pmt.select.apply(this,arguments))},
_resetTabindices:function(){var L=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(Z){Z.setAttribute("tabindex",Z===L?"0":"-1");Z.setAttribute("aria-selected",this._selection.isSelected(Z))},this)},
_updateMultiselectable:function(L){L?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(L){if(this._MODIFIER_KEYS.indexOf(L.key)===-1){this.cancelDebouncer("_clearSearchText");var Z=this._searchText||"";Z+=(L.key&&L.key.length==1?L.key:String.fromCharCode(L.keyCode)).toLocaleLowerCase();L=Z.length;for(var N=0,S;S=this.items[N];N++)if(!S.hasAttribute("disabled")){var u=this.attrForItemTitle||"textContent";u=(S[u]||S.getAttribute(u)||"").trim();if(!(u.length<L)&&u.slice(0,L).toLocaleLowerCase()==Z){this._setFocusedItem(S);break}}this._searchText=Z;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var L=this.items.length,Z=Number(this.indexOf(this.focusedItem)),N=1;N<L+1;N++){var S=this.items[(Z-N+L)%L];if(!S.hasAttribute("disabled")){var u=_.g0(S).getOwnerRoot()||document;this._setFocusedItem(S);if(_.g0(u).activeElement==S)break}}},
_focusNext:function(){for(var L=this.items.length,Z=Number(this.indexOf(this.focusedItem)),N=1;N<L+1;N++){var S=this.items[(Z+N)%L];if(!S.hasAttribute("disabled")){var u=_.g0(S).getOwnerRoot()||document;this._setFocusedItem(S);if(_.g0(u).activeElement==S)break}}},
_applySelection:function(L,Z){Z?L.setAttribute("aria-selected","true"):L.setAttribute("aria-selected","false");_.I_._applySelection.apply(this,arguments)},
_focusedItemChanged:function(L,Z){Z&&Z.setAttribute("tabindex","-1");!L||L.hasAttribute("disabled")||this.disabled||(L.setAttribute("tabindex","0"),L.focus())},
_onIronItemsChanged:function(L){L.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var L=this.getAttribute("tabindex");_.jQ._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",L);_.jQ._shiftTabPressed=!1},1)},
_onFocus:function(L){!_.jQ._shiftTabPressed&&(L=_.g0(L).rootTarget,L===this||typeof L.tabIndex==="undefined"||this.isLightDescendant(L))&&(this._defaultFocusAsync=this.async(function(){var Z=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);Z?this._setFocusedItem(Z):this.items[0]&&this._focusNext()}))},
_onUpKey:function(L){this._focusPrevious();L.detail.keyboardEvent.preventDefault()},
_onDownKey:function(L){this._focusNext();L.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var L=this.focusedItem;L&&L.blur()},
_onKeydown:function(L){this.keyboardEventMatchesKeys(L,"up down esc")||this._focusWithKeyboardEvent(L);L.stopPropagation()},
_activateHandler:function(L){_.I_._activateHandler.call(this,L);L.stopPropagation()},
_disabledChanged:function(L){L?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};zxM=[pVQ,_.Ub,_.jQ];_.mHN={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(L){this.focusedItem&&(this.focusedItem.click(),L.detail.keyboardEvent.preventDefault())},
_onDownKey:function(L){this.focusedItem&&(this.focusedItem.click(),L.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(L){return L.ctrlKey||L.shiftKey||L.altKey||L.metaKey},
_onLeftKey:function(L){this._isSpecialKey(L.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),L.detail.keyboardEvent.preventDefault())},
_onRightKey:function(L){this._isSpecialKey(L.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),L.detail.keyboardEvent.preventDefault())},
_onKeydown:function(L){this.keyboardEventMatchesKeys(L,"up down left right esc")||this._focusWithKeyboardEvent(L)}};
_.J9V=[zxM,_.mHN];var CmI;CmI=new Set;_.Eb={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):(CmI.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(L){this.resizerShouldNotify(L)&&this._notifyDescendant(L)},this),this._fireResize())},
assignParentResizable:function(L){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=L)&&L._interestedResizables.indexOf(this)===-1&&(L._interestedResizables.push(this),L._subscribeIronResize(this))},
stopResizeNotificationsFor:function(L){var Z=this._interestedResizables.indexOf(L);Z>-1&&(this._interestedResizables.splice(Z,1),this._unsubscribeIronResize(L))},
_subscribeIronResize:function(L){L.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(L){L.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(L){this._notifyingDescendant?L.stopPropagation():LH||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(L){var Z=_.g0(L).rootTarget;Z!==this&&(Z.assignParentResizable(this),this._notifyDescendant(Z),L.stopPropagation())},
_parentResizableChanged:function(L){L&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(L){this.isAttached&&(this._notifyingDescendant=!0,L.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var L=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function N(){document.removeEventListener("readystatechange",N);L()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(Z){Z!==this&&Z._findParent()},this):(CmI.forEach(function(Z){Z!==this&&Z._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?CmI.delete(this):CmI.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
*/
_.r9M={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(L,Z){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);Z&&(L==="document"?this.scrollTarget=this._doc:typeof L==="string"?this.scrollTarget=(Z=this.domHost)&&Z.$?Z.$[L]:_.g0(this.ownerDocument).querySelector("#"+L):this._isValidScrollTarget()&&(this._oldScrollTarget=L,this._toggleScrollListener(this._shouldHaveListener,L)))},
_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(L){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,L):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
L)},set _scrollLeft(L){this.scrollTarget===this._doc?window.scrollTo(L,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=L)},scroll:function(L,Z){if(typeof L==="object"){var N=L.left;Z=L.top}else N=L;N=N||0;Z=Z||0;this.scrollTarget===this._doc?window.scrollTo(N,Z):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=N,this.scrollTarget.scrollTop=Z)},
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(L,Z){Z=Z===this._doc?window:Z;L?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),Z.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(Z.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(L){this._shouldHaveListener=L;this._toggleScrollListener(L,this.scrollTarget)}};_.DU({is:"iron-selector",_template:null,behaviors:[pVQ]});var PD={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(L){if(L.timing)for(var Z in L.timing)this.animationTiming[Z]=L.timing[Z];return this.animationTiming},
setPrefixedProperty:function(L,Z,N){for(var S={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[Z],u,T=0;u=S[T];T++)L.style[u]=N;L.style[Z]=N},
complete:function(){}};_.DU({is:"fade-in-animation",_template:null,behaviors:[PD],configure:function(L){return this._effect=new KeyframeEffect(L.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(L))}});_.DU({is:"fade-out-animation",_template:null,behaviors:[PD],configure:function(L){return this._effect=new KeyframeEffect(L.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(L))}});var Qjl=[{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(L,Z){for(var N in Z)L[N]=Z[N]},
_cloneConfig:function(L){var Z={isClone:!0};this._copyProperties(Z,L);return Z},
_getAnimationConfigRecursive:function(L,Z,N){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 S=L?this.animationConfig[L]:this.animationConfig;Array.isArray(S)||(S=[S]);if(S)for(var u,T=0;u=S[T];T++)if(u.animatable)u.animatable._getAnimationConfigRecursive(u.type||L,Z,N);else if(u.id){var W=Z[u.id];
W?(W.isClone||(Z[u.id]=this._cloneConfig(W),W=Z[u.id]),this._copyProperties(W,u)):Z[u.id]=u}else N.push(u)}},
getAnimationConfig:function(L){var Z={},N=[];this._getAnimationConfigRecursive(L,Z,N);for(var S in Z)N.push(Z[S]);return N}},
{_configureAnimations:function(L){var Z=[],N=[];if(L.length>0)for(var S,u=0;S=L[u];u++){var T=document.createElement(S.name);if(T.isNeonAnimation){var W=null;T.configure||(T.configure=function(){return null});
W=T.configure(S);N.push({result:W,config:S})}else console.warn(this.is+":",S.name,"not found!")}for(L=0;L<N.length;L++){W=N[L].result;S=N[L].config;try{typeof W.cancel!="function"&&(W=document.timeline.play(W))}catch(V){W=null,console.warn("Couldnt play","(",S.name,").",V)}W&&Z.push({neonAnimation:T,config:S,animation:W})}return Z},
_shouldComplete:function(L){for(var Z=!0,N=0;N<L.length;N++)if(L[N].animation.playState!="finished"){Z=!1;break}return Z},
_complete:function(L){for(var Z=0;Z<L.length;Z++)L[Z].neonAnimation.complete(L[Z].config);for(Z=0;Z<L.length;Z++)L[Z].animation.cancel()},
playAnimation:function(L,Z){var N=this.getAnimationConfig(L);if(N){this._active=this._active||{};this._active[L]&&(this._complete(this._active[L]),delete this._active[L]);var S=this._configureAnimations(N);if(S.length==0)this.fire("neon-animation-finish",Z,{bubbles:!1});else for(this._active[L]=S,N=0;N<S.length;N++)S[N].animation.onfinish=function(){this._shouldComplete(S)&&(this._complete(S),delete this._active[L],this.fire("neon-animation-finish",Z,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var L in this._active){var Z=this._active[L],N;for(N in Z)Z[N].animation&&Z[N].animation.cancel&&Z[N].animation.cancel()}this._active={}}}];var UU=function(L,Z){L=Error.call(this,L);this.message=L.message;"stack"in L&&(this.stack=L.stack);this.arg=Z;this.name=this.constructor.name;this.constructor=UU;this.__proto__=UU.prototype};
_.f(UU,Error);var XVN=SR(function(L){var Z=function(){return L.apply(this,arguments)||this};
_.f(Z,L);Z.prototype._marshalArgs=function(N,S,u){S=L.prototype._marshalArgs.call(this,N,S,u);if(this._legacyUndefinedCheck&&S.length>1)for(u=0;u<S.length;u++)if(S[u]===void 0||N[u].wildcard&&S[u].base===void 0)throw N=N[u].name,new UU("Argument '"+N+"' is undefined.",N);return S};
Z.prototype._addPropertyEffect=function(N,S,u){return L.prototype._addPropertyEffect.call(this,N,S,JYB(u,u&&u.info&&u.info.methodName))};
Z._addTemplatePropertyEffect=function(N,S,u){return L._addTemplatePropertyEffect.call(this,N,S,JYB(u))};
return Z}),A9M=_.DU.Class;
_.DU.Class=function(L,Z){return A9M(L,function(N){return Z?Z(XVN(N)):XVN(N)})};
var HM0=SR(function(L){var Z=XVN(L);L=function(){return Z.apply(this,arguments)||this};
_.f(L,Z);_.gd.Object.defineProperties(L.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return L}),BcN=N7.mixin;
N7.mixin=BcN?function(L){return HM0(BcN(L))}:HM0;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.pO=_.IN.IronButtonState;var Qdh=q4;_.C3P="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");var H7_=function(){return Math.random().toString(36).substring(7).split("").join(".")},AYH="@@redux/INIT"+H7_(),qy_="@@redux/REPLACE"+H7_();var LFL=typeof Symbol==="function"&&Symbol.observable||"@@observable";var xHQ=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var qct="top right bottom left width height size weight".split(" "),Lat=typeof MutationObserver!=="undefined",Z5O=xHQ&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,NKt=function(){this.mutationEventsAdded_=this.JSC$11759_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=ZcP(this.refresh.bind(this))},SWh=function(L,
Z){var N=L.observers_;
Z=N.indexOf(Z);~Z&&N.splice(Z,1);!N.length&&L.JSC$11759_connected_&&xHQ&&L.JSC$11759_connected_&&(document.removeEventListener("transitionend",L.onTransitionEnd_),window.removeEventListener("resize",L.refresh),L.mutationsObserver_&&(L.mutationsObserver_.disconnect(),Z5O&&(HTMLElement.prototype.attachShadow=Z5O)),L.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",L.refresh),L.mutationsObserver_=null,L.mutationEventsAdded_=!1,L.JSC$11759_connected_=!1)};
NKt.prototype.refresh=function(){i5h(this)&&this.refresh()};
var i5h=function(L){L=L.observers_.filter(function(Z){return uEY(Z),Z.activeObservations_.length>0});
L.forEach(function(Z){return TKY(Z)});
return L.length>0},tdq=function(L){if(xHQ&&!L.JSC$11759_connected_){document.addEventListener("transitionend",L.onTransitionEnd_);
window.addEventListener("resize",L.refresh);if(Lat){L.mutationsObserver_=new MutationObserver(L.refresh);var Z={attributes:!0,childList:!0,characterData:!0,subtree:!0};L.mutationsObserver_.observe(document,Z);Z5O&&(function u(S){var T=S.shadowRoot;T&&(L.mutationsObserver_.observe(T,Z),u(T));for(S=S.firstElementChild;S;)u(S),S=S.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var S=Z5O.apply(this,_.CG.apply(0,arguments));
L.mutationsObserver_.observe(S,Z);return S})}else document.addEventListener("DOMSubtreeModified",L.refresh),L.mutationEventsAdded_=!0;
L.JSC$11759_connected_=!0}};
NKt.prototype.onTransitionEnd_=function(L){var Z=L.propertyName===void 0?"":L.propertyName;qct.some(function(N){return!!~Z.indexOf(N)})&&this.refresh()};
var O50=null;var WaY=function(L,Z){for(var N=_.O(Object.keys(Z)),S=N.next();!S.done;S=N.next())S=S.value,Object.defineProperty(L,S,{value:Z[S],enumerable:!1,writable:!1,configurable:!0})};var z_=function(L){var Z;return(L==null?void 0:(Z=L.ownerDocument)==null?void 0:Z.defaultView)||globalThis};var Vd0={x:0,y:0,width:0,height:0},b50=typeof SVGGraphicsElement!=="undefined"?function(L){return L instanceof z_(L).SVGGraphicsElement}:function(L){return L instanceof z_(L).SVGElement&&typeof L.getBBox==="function"};var Mdq=function(L){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=L};
Mdq.prototype.isActive=function(){var L=this.target;if(xHQ)if(b50(L)){var Z=L.getBBox();Z={x:0,y:0,width:Z.width,height:Z.height}}else{var N=L.clientWidth,S=L.clientHeight;if(N||S){var u=z_(L).getComputedStyle(L);Z=ej(u["padding-top"]);var T=ej(u["padding-left"]),W=T+ej(u["padding-right"]),V=Z+ej(u["padding-bottom"]),M=ej(u.width),G=ej(u.height);u.boxSizing==="border-box"&&(Math.round(M+W)!==N&&(M-=NgG(u,"left","right")+W),Math.round(G+V)!==S&&(G-=NgG(u,"top","bottom")+V));L!==z_(L).document.documentElement&&
(L=Math.round(M+W)-N,S=Math.round(G+V)-S,Math.abs(L)!==1&&(M-=L),Math.abs(S)!==1&&(G-=S));Z={x:T,y:Z,width:M,height:G}}else Z=Vd0}else Z=Vd0;this.contentRect_=Z;return Z.width!==this.broadcastWidth||Z.height!==this.broadcastHeight};var gTO=function(L,Z){var N=Z.x;var S=Z.y;var u=Z.width;Z=Z.height;var T=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);WaY(T,{x:N,y:S,width:u,height:Z,top:S,right:N+u,bottom:Z+S,left:N});WaY(this,{target:L,contentRect:T})};var G5h=function(L,Z){var N=O50;this.activeObservations_=[];this.observations_=new Map;if(typeof L!=="function")throw new TypeError("We");this.callback_=L;this.controller_=N;this.callbackCtx_=Z};
G5h.prototype.observe=function(L){if(L===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(L instanceof z_(L).Element))throw new TypeError("Ye");var Z=this.observations_;Z.has(L)||(Z.set(L,new Mdq(L)),L=this.controller_,~L.observers_.indexOf(this)||L.observers_.push(this),L.JSC$11759_connected_||tdq(L),this.controller_.refresh())}};
G5h.prototype.unobserve=function(L){if(L===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(L instanceof z_(L).Element))throw new TypeError("Ye");var Z=this.observations_;Z.has(L)&&(Z.delete(L),Z.size||SWh(this.controller_,this))}};
G5h.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();SWh(this.controller_,this)};
var uEY=function(L){L.activeObservations_.splice(0);L.observations_.forEach(function(Z){Z.isActive()&&L.activeObservations_.push(Z)})},TKY=function(L){if(L.activeObservations_.length>0){var Z=L.callbackCtx_,N=L.activeObservations_.map(function(S){var u=S.target,T=S.contentRect_;
S.broadcastWidth=T.width;S.broadcastHeight=T.height;return new gTO(u,T)});
L.callback_.call(Z,N,Z);L.activeObservations_.splice(0)}};var mP=function(L){if(!(this instanceof mP))throw new TypeError("Ze");if(!arguments.length)throw new TypeError("Xe");O50||(O50=new NKt);this.observer_=new G5h(L,this)};
mP.prototype.observe=function(L){this.observer_.observe(L)};
mP.prototype.unobserve=function(L){this.observer_.unobserve(L)};
mP.prototype.disconnect=function(){this.observer_.disconnect()};var yR0=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:mP;var xd={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"},ZF={"2D":0,WebGL:1,WebGL2:2};ZF[ZF["2D"]]="2D";ZF[1]="WebGL";ZF[2]="WebGL2";var icP={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},uRP={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},S8L={},tJh={},OcB={},PX=function(L){return IM("Node",L,"childNodes")},EU=function(L){return IM("Node",L,"parentNode")},pH=function(L){return IM("Node",L,"parentElement")},mbA=function(L){return IM("Node",L,
"textContent")},iLH=function(L){return WFh(L,"getRootNode")()},aM=function(L){return L&&"host"in L?IM("ShadowRoot",L,"host"):null},hQ=function(L){return L&&"shadowRoot"in L?IM("Element",L,"shadowRoot"):null};var CH=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
CH.prototype.getId=function(L){if(!L)return-1;var Z,N;return(N=(Z=this.nodeMetaMap.get(L)||null)==null?void 0:Z.id)!=null?N:-1};
CH.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var FaQ=function(L,Z){var N=L.getId(Z);L.idNodeMap.delete(N);Z.childNodes&&Z.childNodes.forEach(function(S){return FaQ(L,S)})};
CH.prototype.has=function(L){return this.idNodeMap.has(L)};
CH.prototype.add=function(L,Z){this.idNodeMap.set(Z.id,L);this.nodeMetaMap.set(L,Z)};
CH.prototype.replace=function(L,Z){var N=this.idNodeMap.get(L)||null;N&&(N=this.nodeMetaMap.get(N))&&this.nodeMetaMap.set(Z,N);this.idNodeMap.set(L,Z)};
CH.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var lws=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,vBt=/^(?:[a-z+]+:)?\/\//i,oBP=/^www\..*/i,R$F=/^(data:)([^,]*),(.*)/i;var KFP=1,kkG=RegExp("[^a-z0-9-_:]"),zc,Cl0,Ubh=/^[^ \t\n\r\u000c]+/,wnt=/^[, \t\n\r\u000c]+/,dbh=new WeakMap;var N2,BX=function(L){return N2?function(){var Z=_.CG.apply(0,arguments);try{return L.apply(null,_.Pd(Z))}catch(N){if(!N2||N2(N)!==!0)throw N;}}:L};var Jw=function(L){this.generateIdFn=L;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
Jw.prototype.getId=function(L,Z,N,S){N=N||$Qt(this,L);L=S||DQQ(this,L);S=N.get(Z);S||(S=this.generateIdFn(),N.set(Z,S),L.set(S,Z));return S};
Jw.prototype.getIds=function(L,Z){var N=this,S=$Qt(this,L),u=DQQ(this,L);return Z.map(function(T){return N.getId(L,T,S,u)})};
Jw.prototype.reset=function(L){L?(this.iframeIdToRemoteIdMap.delete(L),this.iframeRemoteIdToIdMap.delete(L)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var $Qt=function(L,Z){var N=L.iframeIdToRemoteIdMap.get(Z);N||(N=new Map,L.iframeIdToRemoteIdMap.set(Z,N));return N},DQQ=function(L,Z){var N=L.iframeRemoteIdToIdMap.get(Z);
N||(N=new Map,L.iframeRemoteIdToIdMap.set(Z,N));return N};var QTw=function(L){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new Jw(fw_);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=L.mutationCb;this.wrappedEmit=L.wrappedEmit;this.stylesheetManager=L.stylesheetManager;this.recordCrossOriginIframes=L.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new Jw(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=L.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$11823_handleMessage.bind(this))},x6G=function(L,Z){L.iframes.set(Z,!0);
Z.contentWindow&&L.crossOriginIframeMap.set(Z.contentWindow,Z)},i2w=function(L,Z){L.loadListener=Z},Z2G=function(L,Z,N){L.mutationCb({adds:[{parentId:L.mirror.getId(Z),
nextId:null,node:N}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(L.recordCrossOriginIframes){var S;(S=Z.contentWindow)==null||S.addEventListener("message",L.JSC$11823_handleMessage.bind(L))}var u;(u=L.loadListener)==null||u.call(L,Z);Z.contentDocument&&Z.contentDocument.adoptedStyleSheets&&Z.contentDocument.adoptedStyleSheets.length>0&&kQG(L.stylesheetManager,Z.contentDocument.adoptedStyleSheets,L.mirror.getId(Z.contentDocument))};
QTw.prototype.JSC$11823_handleMessage=function(L){if(L.data.type==="rrweb"&&L.origin===L.data.origin&&L.source){var Z=this.crossOriginIframeMap.get(L.source);Z&&(Z=lil(this,Z,L.data.event))&&this.wrappedEmit(Z,L.data.isCheckout)}};
var lil=function(L,Z,N){switch(N.type){case 2:L.crossOriginIframeMirror.reset(Z);L.crossOriginIframeStyleMirror.reset(Z);vTl(L,N.data.node,Z);var S=N.data.node.id;L.crossOriginIframeRootIdMap.set(Z,S);oTq(L,N.data.node,S);return{timestamp:N.timestamp,type:3,data:{source:0,adds:[{parentId:L.mirror.getId(Z),nextId:null,node:N.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return N;case 5:return CO(L,N.data.payload,Z,["id","parentId","previousId","nextId"]),N;case 3:switch(N.data.source){case 0:return N.data.adds.forEach(function(u){CO(L,
u,Z,["parentId","nextId","previousId"]);vTl(L,u.node,Z);var T=L.crossOriginIframeRootIdMap.get(Z);T&&oTq(L,u.node,T)}),N.data.removes.forEach(function(u){CO(L,u,Z,["parentId",
"id"])}),N.data.attributes.forEach(function(u){CO(L,u,Z,["id"])}),N.data.texts.forEach(function(u){CO(L,u,Z,["id"])}),N;
case 12:case 6:case 1:return N.data.positions.forEach(function(u){CO(L,u,Z,["id"])}),N;
case 7:case 2:case 3:case 9:case 5:return CO(L,N.data,Z,["id"]),N;case 8:case 13:return CO(L,N.data,Z,["id"]),RHs(L,N.data,Z,["styleId"]),N;case 10:return N;case 14:return N.data.ranges.forEach(function(u){CO(L,u,Z,["start","end"])}),N;
case 15:return CO(L,N.data,Z,["id"]),RHs(L,N.data,Z,["styleIds"]),(S=N.data.styles)==null||S.forEach(function(u){RHs(L,u,Z,["styleId"])}),N}}return!1};
QTw.prototype.replace=function(L,Z,N,S){S=_.O(S);for(var u=S.next();!u.done;u=S.next())if(u=u.value,Array.isArray(Z[u])||typeof Z[u]==="number")Array.isArray(Z[u])?Z[u]=L.getIds(N,Z[u]):Z[u]=L.getId(N,Z[u]);return Z};
var CO=function(L,Z,N,S){L.replace(L.crossOriginIframeMirror,Z,N,S)},RHs=function(L,Z,N,S){L.replace(L.crossOriginIframeStyleMirror,Z,N,S)},vTl=function(L,Z,N){CO(L,Z,N,["id",
"rootId"]);"childNodes"in Z&&Z.childNodes.forEach(function(S){vTl(L,S,N)})},oTq=function(L,Z,N){Z.type===0||Z.rootId||(Z.rootId=N);
"childNodes"in Z&&Z.childNodes.forEach(function(S){oTq(L,S,N)})};var GQB=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},c5l=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.t=c5l.prototype;_.t.getId=function(L){var Z;return(Z=this.styleIDMap.get(L))!=null?Z:-1};
_.t.has=function(L){return this.styleIDMap.has(L)};
_.t.add=function(L,Z){if(this.has(L))return this.getId(L);Z=Z===void 0?this.id++:Z;this.styleIDMap.set(L,Z);this.idStyleMap.set(Z,L);return Z};
_.t.getStyle=function(L){return this.idStyleMap.get(L)||null};
_.t.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.t.generateId=function(){return this.id++};var nTY=function(){this.length=0;this.tail=this.head=null};
nTY.prototype.get=function(L){if(L>=this.length)throw Error("$e");for(var Z=this.head,N=0;N<L;N++){var S=void 0;Z=((S=Z)==null?void 0:S.next)||null}return Z};
var KaL=function(L,Z){var N={value:Z,previous:null,next:null};Z.__ln=N;if(Z.previousSibling&&"__ln"in Z.previousSibling){var S=Z.previousSibling.__ln.next;N.next=S;N.previous=Z.previousSibling.__ln;Z.previousSibling.__ln.next=N;S&&(S.previous=N)}else Z.nextSibling&&"__ln"in Z.nextSibling&&Z.nextSibling.__ln.previous?(S=Z.nextSibling.__ln.previous,N.previous=S,N.next=Z.nextSibling.__ln,Z.nextSibling.__ln.previous=N,S&&(S.next=N)):(L.head&&(L.head.previous=N),N.next=L.head,L.head=N);N.next===null&&
(L.tail=N);L.length++};
nTY.prototype.removeNode=function(L){var Z=L.__ln;this.head&&(Z.previous?(Z.previous.next=Z.next)?Z.next.previous=Z.previous:this.tail=Z.previous:(this.head=Z.next)?this.head.previous=null:this.tail=null,L.__ln&&delete L.__ln,this.length--)};
var k5l=function(L,Z){return L+"@"+Z},M71=function(){var L=this;
this.locked=this.JSC$11854_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(Z){Z.forEach(L.JSC$11854_processMutation);L.emit()};
this.emit=function(){if(!L.JSC$11854_frozen&&!L.locked){for(var Z=[],N=new Set,S=new nTY,u=function(l){for(var v=-2;v===-2;)v=(l=l&&l.nextSibling)&&L.mirror.getId(l);return v},T=function(l){var v=EU(l);
if(v&&TpB(l)){var R=!1;if(l.nodeType===Node.TEXT_NODE){var K=v.tagName;if(K==="TEXTAREA")return;K==="STYLE"&&L.addedSet.has(v)&&(R=!0)}v=sU(v)?L.mirror.getId(uGB(l)):L.mirror.getId(v);K=u(l);if(v===-1||K===-1)return KaL(S,l);if(R=JQ(l,{doc:L.doc,mirror:L.mirror,blockClass:L.blockClass,blockSelector:L.blockSelector,maskTextClass:L.maskTextClass,maskTextSelector:L.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:L.inlineStylesheet,maskInputOptions:L.maskInputOptions,maskTextFn:L.maskTextFn,
maskInputFn:L.maskInputFn,slimDOMOptions:L.slimDOMOptions,dataURLOptions:L.dataURLOptions,recordCanvas:L.recordCanvas,inlineImages:L.inlineImages,onSerialize:function(U){U.nodeName==="IFRAME"&&L.mirror.nodeMetaMap.get(U)&&x6G(L.iframeManager,U);StA(U,L.mirror)&&qtB(L.stylesheetManager,U);l&&hQ(l)&&LCG(L.shadowDomManager,hQ(l),L.doc)},
onIframeLoad:function(U,d){Z2G(L.iframeManager,U,d);U.contentWindow&&U.contentDocument&&N1B(L.shadowDomManager,U.contentWindow.Element,U.contentDocument)},
onStylesheetLoad:function(U,d){S4F(L.stylesheetManager,U,d)},
cssCaptured:R}))Z.push({parentId:v,nextId:K,node:R}),N.add(R.id)}};L.mapRemoves.length;)FaQ(L.mirror,L.mapRemoves.shift());
for(var W=_.O(L.movedSet),V=W.next();!V.done;V=W.next())V=V.value,WB_(L.removesSubTreeCache,V)&&!L.movedSet.has(EU(V))||T(V);W=_.O(L.addedSet);for(V=W.next();!V.done;V=W.next())V=V.value,bLh(L.droppedSet,V)||WB_(L.removesSubTreeCache,V)?bLh(L.movedSet,V)?T(V):L.droppedSet.add(V):T(V);for(V=null;S.length;){W=null;if(V){var M=L.mirror.getId(EU(V.value)),G=u(V.value);M!==-1&&G!==-1&&(W=V)}if(!W)for(V=S.tail;V;){var D=V;V=V.previous;if(D&&(M=L.mirror.getId(EU(D.value)),u(D.value)!==-1))if(M!==-1){W=D;
break}else if((M=EU(D.value))&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(M=aM(M),L.mirror.getId(M)!==-1)){W=D;break}}if(!W){for(;S.head;)S.removeNode(S.head.value);break}V=W.previous;S.removeNode(W.value);T(W.value)}T={texts:L.texts.map(function(l){var v=l.node,R=EU(v);R&&R.tagName==="TEXTAREA"&&L.genTextAreaValueMutation(R);return{id:L.mirror.getId(v),value:l.value}}).filter(function(l){return!N.has(l.id)}).filter(function(l){return L.mirror.has(l.id)}),
attributes:L.attributes.map(function(l){var v=l.attributes;if(typeof v.style==="string"){var R=JSON.stringify(l.styleDiff),K=JSON.stringify(l._unchangedStyles);R.length<v.style.length&&(R+K).split("var(").length===v.style.split("var(").length&&(v.style=l.styleDiff)}return{id:L.mirror.getId(l.node),attributes:v}}).filter(function(l){return!N.has(l.id)}).filter(function(l){return L.mirror.has(l.id)}),
removes:L.removes,adds:Z};if(T.texts.length||T.attributes.length||T.removes.length||T.adds.length)L.texts=[],L.attributes=[],L.attributeMap=new WeakMap,L.removes=[],L.addedSet=new Set,L.movedSet=new Set,L.droppedSet=new Set,L.removesSubTreeCache=new Set,L.movedMap={},L.mutationCb(T)}};
this.genTextAreaValueMutation=function(Z){var N=L.attributeMap.get(Z);N||(N={node:Z,attributes:{},styleDiff:{},_unchangedStyles:{}},L.attributes.push(N),L.attributeMap.set(Z,N));var S=Array.from(PX(Z),function(u){return mbA(u)||""}).join("");
N.attributes.value=GkL({element:Z,maskInputOptions:L.maskInputOptions,tagName:Z.tagName,type:$bs(Z),value:S,maskInputFn:L.maskInputFn})};
this.JSC$11854_processMutation=function(Z){if(!q8F(Z.target,L.mirror,L.slimDOMOptions))switch(Z.type){case "characterData":var N=mbA(Z.target);X$(Z.target,L.blockClass,L.blockSelector,!1)||N===Z.oldValue||L.texts.push({value:EBF(Z.target,L.maskTextClass,L.maskTextSelector,!0)&&N?L.maskTextFn?L.maskTextFn(N,xb_(Z.target)):N.replace(/[\S]/g,"*"):N,node:Z.target});break;case "attributes":N=Z.target;var S=Z.attributeName,u=Z.target.getAttribute(S);if(S==="value"){var T=$bs(N);u=GkL({element:N,maskInputOptions:L.maskInputOptions,
tagName:N.tagName,type:T,value:u,maskInputFn:L.maskInputFn})}if(X$(Z.target,L.blockClass,L.blockSelector,!1)||u===Z.oldValue)break;T=L.attributeMap.get(Z.target);if(N.tagName==="IFRAME"&&S==="src"&&!L.keepIframeSrcFn(u))if(N.contentDocument)break;else S="rr_src";T||(T={node:Z.target,attributes:{},styleDiff:{},_unchangedStyles:{}},L.attributes.push(T),L.attributeMap.set(Z.target,T));S==="type"&&N.tagName==="INPUT"&&(Z.oldValue||"").toLowerCase()==="password"&&N.setAttribute("data-rr-is-password","true");
if(!h$h(N.tagName,S))if(T.attributes[S]=awh(L.doc,N.tagName.toLowerCase(),S.toLowerCase(),u),S==="style"){if(!L.unattachedDoc)try{L.unattachedDoc=document.implementation.createHTMLDocument()}catch(G){L.unattachedDoc=L.doc}S=L.unattachedDoc.createElement("span");Z.oldValue&&S.setAttribute("style",Z.oldValue);u=_.O(Array.from(N.style));for(var W=u.next();!W.done;W=u.next()){W=W.value;var V=N.style.getPropertyValue(W),M=N.style.getPropertyPriority(W);V!==S.style.getPropertyValue(W)||M!==S.style.getPropertyPriority(W)?
T.styleDiff[W]=M===""?V:[V,M]:T._unchangedStyles[W]=[V,M]}S=_.O(Array.from(S.style));for(u=S.next();!u.done;u=S.next())u=u.value,N.style.getPropertyValue(u)===""&&(T.styleDiff[u]=!1)}else S==="open"&&N.tagName==="DIALOG"&&(N.matches("dialog:modal")?T.attributes.rr_open_mode="modal":T.attributes.rr_open_mode="non-modal");break;case "childList":X$(Z.target,L.blockClass,L.blockSelector,!0)||(Z.target.tagName==="TEXTAREA"?L.genTextAreaValueMutation(Z.target):(Z.addedNodes.forEach(function(G){return L.genAdds(G,
Z.target)}),Z.removedNodes.forEach(function(G){var D=L.mirror.getId(G),l=sU(Z.target)?L.mirror.getId(aM(Z.target)):L.mirror.getId(Z.target);
X$(Z.target,L.blockClass,L.blockSelector,!1)||q8F(G,L.mirror,L.slimDOMOptions)||L.mirror.getId(G)===-1||(L.addedSet.has(G)?(t7h(L.addedSet,G),L.droppedSet.add(G)):L.addedSet.has(Z.target)&&D===-1||LBf(Z.target,L.mirror)||(L.movedSet.has(G)&&L.movedMap[D+"@"+l]?t7h(L.movedSet,G):(L.removes.push({parentId:l,id:D,isShadow:sU(Z.target)&&jj(Z.target)?!0:void 0}),OL1(G,L.removesSubTreeCache))),L.mapRemoves.push(G))})))}};
this.genAdds=function(Z,N){if(!y50(L.processedNodeManager,Z,L)&&!L.addedSet.has(Z)&&!L.movedSet.has(Z)){if(L.mirror.nodeMetaMap.has(Z)){if(q8F(Z,L.mirror,L.slimDOMOptions))return;L.movedSet.add(Z);var S=null;N&&L.mirror.nodeMetaMap.has(N)&&(S=L.mirror.getId(N));S&&S!==-1&&(L.movedMap[k5l(L.mirror.getId(Z),S)]=!0)}else L.addedSet.add(Z),L.droppedSet.delete(Z);X$(Z,L.blockClass,L.blockSelector,!1)||(PX(Z).forEach(function(u){return L.genAdds(u)}),Z&&hQ(Z)&&PX(hQ(Z)).forEach(function(u){L.processedNodeManager.add(u,
L);
L.genAdds(u,Z)}))}}};
_.t=M71.prototype;_.t.init=function(L){var Z=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(N){Z[N]=L[N]})};
_.t.freeze=function(){this.JSC$11854_frozen=!0;this.canvasManager.freeze()};
_.t.unfreeze=function(){this.JSC$11854_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.t.isFrozen=function(){return this.JSC$11854_frozen};
_.t.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.t.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.t.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var HX=[],Lv=window.Proxy,vW0=["INPUT","TEXTAREA","SELECT"],oWt=new WeakMap;var waM=new Map,EWs=function(L,Z,N){if(L&&(jTh(L,Z)||typeof L==="object")){Z=L.constructor.name;var S=waM.get(N);S||(S=new Map,waM.set(N,S));S.has(Z)||S.set(Z,[]);N=S.get(Z);Z=N.indexOf(L);Z===-1&&(Z=N.length,N.push(L));return Z}},Pxh=function(L,Z,N){return L.map(function(S){return sTB(S,Z,N)})},jTh=function(L,Z){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(N){return typeof Z[N]===
"function"}).find(function(N){return L instanceof Z[N]})};var UQI=h9(["\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"]),
rj_=_.So(UQI.join(""));var HLG=function(L){var Z=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$11896_frozen=!1;this.JSC$11896_processMutation=function(M,G){if(Z.rafStamps.invokeId&&Z.rafStamps.latestId!==Z.rafStamps.invokeId||!Z.rafStamps.invokeId)Z.rafStamps.invokeId=Z.rafStamps.latestId;Z.pendingCanvasMutations.has(M)||Z.pendingCanvasMutations.set(M,[]);Z.pendingCanvasMutations.get(M).push(G)};
var N=L.sampling===void 0?"all":L.sampling,S=L.win,u=L.blockClass,T=L.blockSelector,W=L.recordCanvas,V=L.dataURLOptions;this.mutationCb=L.mutationCb;this.mirror=L.mirror;W&&N==="all"&&YWO(this,S,u,T);W&&typeof N==="number"&&eHh(this,N,S,u,T,{dataURLOptions:V})};
_.t=HLG.prototype;_.t.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.t.freeze=function(){this.JSC$11896_frozen=!0};
_.t.unfreeze=function(){this.JSC$11896_frozen=!1};
_.t.lock=function(){this.locked=!0};
_.t.unlock=function(){this.locked=!1};
var eHh=function(L,Z,N,S,u,T){var W=zXw(N,S,u,!0),V=new Map,M=oSw(QmA());M.onmessage=function(K){var U=K.data.id;V.set(U,!1);"base64"in K.data&&(K=K.data,L.mutationCb({id:U,type:ZF["2D"],commands:[{property:"clearRect",args:[0,0,K.width,K.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:K.base64}],type:K.type}]},0,0]}]}))};
var G=1E3/Z,D=0,l=function(){var K=[];N.document.querySelectorAll("canvas").forEach(function(U){X$(U,S,u,!0)||K.push(U)});
return K},v=function(K){D&&K-D<G||(D=K,l().forEach(function(U){var d,h,E,A,J;
return _.b(function(C){if(C.nextAddress==1){d=L.mirror.getId(U);if(V.get(d)||U.width===0||U.height===0)return C.return();V.set(d,!0);["webgl","webgl2"].includes(U.__context)&&(h=U.getContext(U.__context),((E=h)==null?void 0:(A=E.getContextAttributes())==null?void 0:A.preserveDrawingBuffer)===!1&&h.clear(h.COLOR_BUFFER_BIT));return C.yield(createImageBitmap(U),2)}J=C.yieldResult;M.postMessage({id:d,bitmap:J,width:U.width,height:U.height,dataURLOptions:T.dataURLOptions},[J]);_.w7(C)})}));
R=requestAnimationFrame(v)};
var R=requestAnimationFrame(v);L.resetObservers=function(){W();cancelAnimationFrame(R)}},YWO=function(L,Z,N,S){IiV(L);
dQl(L);var u=zXw(Z,N,S,!1),T=pFx(L.JSC$11896_processMutation.bind(L),Z,N,S),W=JLG(L.JSC$11896_processMutation.bind(L),Z,N,S);L.resetObservers=function(){u();T();W()}},dQl=function(L){requestAnimationFrame(function(){return aiQ(L)})},IiV=function(L){var Z=function(N){L.rafStamps.latestId=N;
requestAnimationFrame(Z)};
requestAnimationFrame(Z)},aiQ=function(L){L.pendingCanvasMutations.forEach(function(Z,N){var S=L.mirror.getId(N);
hHM(L,N,S)});
requestAnimationFrame(function(){return aiQ(L)})},hHM=function(L,Z,N){if(!L.JSC$11896_frozen&&!L.locked){var S=L.pendingCanvasMutations.get(Z);
if(S&&N!==-1){var u=S.map(function(T){T=Object.assign({},T);return delete T.type,T});
L.mutationCb({id:N,type:S[0].type,commands:u});L.pendingCanvasMutations.delete(Z)}}};var XF1=function(){this.nodeMap=new WeakMap;this.active=!1},y50=function(L,Z,N){return(L=L.nodeMap.get(Z))&&Array.from(L).some(function(S){return S!==N})};
XF1.prototype.add=function(L,Z){var N=this;this.active||(this.active=!0,requestAnimationFrame(function(){N.nodeMap=new WeakMap;N.active=!1}));
this.nodeMap.set(L,(this.nodeMap.get(L)||new Set).add(Z))};
XF1.prototype.destroy=function(){};var Bp1=function(L){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=L.mutationCb;this.scrollCb=L.scrollCb;this.bypassOptions=L.bypassOptions;this.mirror=L.mirror;this.init()};
Bp1.prototype.init=function(){this.reset();N1B(this,Element,document)};
var LCG=function(L,Z,N){if(jj(Z)&&!L.shadowDoms.has(Z)){L.shadowDoms.add(Z);var S=gW1(Object.assign({},L.bypassOptions,{doc:N,mutationCb:L.mutationCb,mirror:L.mirror,shadowDomManager:L}),Z);L.restoreHandlers.push(function(){return S.disconnect()});
L.restoreHandlers.push(D6H(Object.assign({},L.bypassOptions,{scrollCb:L.scrollCb,doc:Z,mirror:L.mirror})));setTimeout(function(){Z.adoptedStyleSheets&&Z.adoptedStyleSheets.length>0&&kQG(L.bypassOptions.stylesheetManager,Z.adoptedStyleSheets,L.mirror.getId(aM(Z)));L.restoreHandlers.push(yL0({mirror:L.mirror,stylesheetManager:L.bypassOptions.stylesheetManager},Z))},0)}},N1B=function(L,Z,N){L.restoreHandlers.push(dd(Z.prototype,"attachShadow",function(S){return function(u){u=S.call(this,u);
var T=hQ(this);T&&TpB(this)&&LCG(L,T,N);return u}}))};
Bp1.prototype.reset=function(){this.restoreHandlers.forEach(function(L){try{L()}catch(Z){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var rLG=function(L){this.trackedLinkElements=new WeakSet;this.styleMirror=new c5l;this.mutationCb=L.mutationCb;this.adoptedStyleSheetCb=L.adoptedStyleSheetCb},S4F=function(L,Z,N){"_cssText"in N.attributes&&L.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:N.id,attributes:N.attributes}]});qtB(L,Z)},qtB=function(L,Z){L.trackedLinkElements.has(Z)||L.trackedLinkElements.add(Z)},kQG=function(L,Z,N){if(Z.length!==0){N={id:N,
styleIds:[]};var S=[];Z=_.O(Z);for(var u=Z.next(),T={};!u.done;T={sheet$jscomp$3:void 0},u=Z.next())T.sheet$jscomp$3=u.value,u=void 0,L.styleMirror.has(T.sheet$jscomp$3)?u=L.styleMirror.getId(T.sheet$jscomp$3):(u=L.styleMirror.add(T.sheet$jscomp$3),S.push({styleId:u,rules:Array.from(T.sheet$jscomp$3.rules||CSSRule,function(W){return function(V,M){return{rule:bch(V,W.sheet$jscomp$3.href),index:M}}}(T))})),N.styleIds.push(u);
S.length>0&&(N.styles=S);L.adoptedStyleSheetCb(N)}};
rLG.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var ic,CxA,ALF;try{if(Array.from([1],function(L){return L*2})[0]!==2){var sAN=document.createElement("iframe");
document.body.appendChild(sAN);var jAM;Array.from=((jAM=sAN.contentWindow)==null?void 0:jAM.Array.from)||Array.from;document.body.removeChild(sAN)}}catch(L){console.debug("Unable to override Array.from",L)}var S9=new CH;var gF0="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(" "),M5L={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},b2x=null,T1s=null;var GAh={},FCL=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 cvw={text:1},lQw={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var ETq=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,PyO={CONSTANT:{isUnwrappable:function(L){return L instanceof AV},
unwrap:SNt},JAVASCRIPT:{isUnwrappable:function(L){return L instanceof _.NZ},
unwrap:ig},HTML:{isUnwrappable:function(L){return L instanceof Xt},
unwrap:function(L){return xV(L)}},
RESOURCE_URL:{isUnwrappable:function(L){return L instanceof Un},
unwrap:_.en},STRING:{isUnwrappable:function(L){return L instanceof Object},
unwrap:function(L){return String(L)}},
STYLE:{isUnwrappable:function(L){return typeof L==="string"},
unwrap:function(L){return L}},
URL:{isUnwrappable:function(L){return sn(L)},
unwrap:_.jn}},paQ={CONSTANT:nFh,JAVASCRIPT:nFh,HTML:function(L){L=L instanceof Xt?L:Af(String(L).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return xV(L)},
RESOURCE_URL:nFh,STRING:String,STYLE:nFh,URL:function(L,Z){L=ETq.test(L)?L:void 0;return L===void 0?Z:L}};var aQh=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,KC0=/[\t\n\f\r ]+/,kAP=/[\t\n\f\r ,]+/g,wcF=function(L,Z,N){return N},Oo={},zHs=function(){var L=function(){var S={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",S):S}(),Z=L.createHTML(""),N=L.createScript("");
L=L.createScriptURL("");return{INNOCUOUS_STRING:Z,INNOCUOUS_SCRIPT:N,INNOCUOUS_URL:L}}(),td=zHs.INNOCUOUS_STRING,dXA=zHs.INNOCUOUS_SCRIPT,IQ0=zHs.INNOCUOUS_URL;var mQM=function(L){var Z=hkt(L);return function(N,S,u,T){return T?Z(T,S,u,N):td}}({reportHandler:function(L,Z){if(L)try{throw Error(Z);
}catch(N){_.CA(N)}},
safeTypesBridge:function(L,Z,N){var S=PyO[Z];return S.isUnwrappable(L)&&(S=S.unwrap(L,N),S!==N)?S:(0,paQ[Z])(String(L),N)},
allowedIdentifierPrefixes:[""]});if(a6!==void 0)throw Error("bf");a6=mQM;if(a6!==mQM)throw Error("cf");W2("Injectable",[]);var O6H=W2("Inject",[["token",void 0]]),VR_=W2("Optional",[]);W2("Injectable",[]);var b6s=W2("Self",[]),MR1=W2("SkipSelf",[]);W2("Host",[]);var J5V={},Cyl=function(){};
Cyl.prototype.resolve=function(){throw Error("ef");};
Cyl.prototype.addProvider=function(){throw Error("ef");};var TSG=Function;var r5t=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,QAt=function(){this._reflect=window.Reflect};
_.t=QAt.prototype;_.t.factory=function(L){return function(){return new (Function.prototype.bind.apply(L,[null].concat(_.Pd(_.CG.apply(0,arguments)))))}};
_.t._zipTypesAndAnnotations=function(L,Z){var N=typeof L==="undefined"?Array(Z.length):Array(L.length);for(var S=0;S<N.length;S++)N[S]=typeof L==="undefined"?[]:L[S]!=Object?[L[S]]:[],Z&&jyB(Z[S])&&(N[S]=N[S].concat(Z[S]));return N};
_.t._ownParameters=function(L,Z){if(r5t.exec(L.toString()))return null;if(L.parameters&&L.parameters!==Z.parameters)return L.parameters;var N=L.ctorParameters;return N&&N!==Z.ctorParameters?(Z=typeof N==="function"?N():N,L=Z.map(function(S){return S&&S.type}),Z=Z.map(function(S){return S&&PYf(S.decorators)}),this._zipTypesAndAnnotations(L,Z)):jyB(this._reflect)&&jyB(this._reflect.getOwnMetadata)&&(Z=this._reflect.getOwnMetadata("parameters",L),(N=this._reflect.getOwnMetadata("design:paramtypes",L))||
Z)?this._zipTypesAndAnnotations(N,Z):Array(L.length).fill(void 0)};
_.t.parameters=function(L){if(!L.prototype)return[];var Z=Object.getPrototypeOf(L.prototype).constructor;(L=this._ownParameters(L,Z))||Z===Object||(L=this.parameters(Z));return L||[]};
_.t._ownAnnotations=function(L,Z){if(L.annotations&&L.annotations!==Z.annotations)return L=L.annotations,typeof L==="function"&&L.annotations&&(L=L.annotations),L;if(L.decorators&&L.decorators!==Z.decorators)return PYf(L.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",L)};
_.t.annotations=function(L){var Z=Object.getPrototypeOf(L.prototype).constructor;L=this._ownAnnotations(L,Z)||[];return(Z!==Object?this.annotations(Z):[]).concat(L)};
_.t._ownPropMetadata=function(L,Z){if(L.propMetadata&&L.propMetadata!==Z.propMetadata)return L=L.propMetadata,typeof L==="function"&&L.propMetadata&&(L=L.propMetadata),L;if(L.propDecorators&&L.propDecorators!==Z.propDecorators){var N=L.propDecorators,S={};Object.keys(N).forEach(function(u){S[u]=PYf(N[u])});
return S}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",L)};
_.t.propMetadata=function(L){var Z=Object.getPrototypeOf(L.prototype).constructor,N={};if(Z!==Object){var S=this.propMetadata(Z);Object.keys(S).forEach(function(T){N[T]=S[T]})}var u=this._ownPropMetadata(L,Z);
u&&Object.keys(u).forEach(function(T){var W=[];N.hasOwnProperty(T)&&W.push.apply(W,_.Pd(N[T]));W.push.apply(W,_.Pd(u[T]));N[T]=W});
return N};
_.t.getter=function(L){return function(Z){return Z[L]}};
_.t.setter=function(L){return function(Z,N){return Z[L]=N}};
_.t.method=function(L){return function(Z,N){if(!Z[L])throw Error("ff`"+L);return Z[L].apply(Z,N)}};var XaM=function(){};var A5t=function(L){this.reflectionCapabilities=L};
_.f(A5t,XaM);_.t=A5t.prototype;_.t.factory=function(L){return this.reflectionCapabilities.factory(L)};
_.t.parameters=function(L){return this.reflectionCapabilities.parameters(L)};
_.t.annotations=function(L){return this.reflectionCapabilities.annotations(L)};
_.t.propMetadata=function(L){return this.reflectionCapabilities.propMetadata(L)};
_.t.getter=function(L){return this.reflectionCapabilities.getter(L)};
_.t.setter=function(L){return this.reflectionCapabilities.setter(L)};
_.t.method=function(L){return this.reflectionCapabilities.method(L)};var Av_=new A5t(new QAt);var rE=function(L,Z){this.token=L;this.id=Z;if(L===void 0||L===null)throw Error("lf");};
_.gd.Object.defineProperties(rE.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return VT(this.token)}}});
_.gd.Object.defineProperties(rE,{JSC$11952_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return M2.JSC$11956_numberOfKeys}}});
var H5t=function(){this._allKeys=new Map};
H5t.prototype.get=function(L){if(L instanceof rE)return L;if(this._allKeys.has(L))return this._allKeys.get(L);var Z=new rE(L,rE.JSC$11952_numberOfKeys);this._allKeys.set(L,Z);return Z};
_.gd.Object.defineProperties(H5t.prototype,{JSC$11956_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var M2=new H5t;var gUP=function(L,Z,N){this.key=L;this.optional=Z;this.visibility=N},B1t=function(L){return new gUP(L,!1,null)},q4P=[],NSA=function(L,Z,N){this.key=L;
this.resolvedFactories=Z;this.multiProvider=N},LVw=function(L,Z,N,S){this.factory=L;
this.dependencies=Z;this.providerClass=N;this.providerValue=S};var Q0={},Xd=function(L,Z){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=Z===void 0?null:Z;L=_.O(L);for(Z=L.next();!Z.done;Z=L.next())this.addProvider(Z.value)};
_.t=Xd.prototype;_.t.addProvider=function(L){this.keyIdToIndex.set(L.key.id,this.keyIds.length);this.providers.push(L);this.keyIds.push(L.key.id);this.objs.push(Q0)};
_.t.resolve=function(L,Z){Z=Z===void 0?J5V:Z;return this._getByKey(M2.get(bc(L)),null,Z)};
_.t._new=function(L){if(this.constructedKeyIds[L.key.id])throw rvw(this,L.key);this.constructedKeyIds[L.key.id]=!0;return this._instantiateProvider(L)};
_.t._instantiateProvider=function(L){if(L.multiProvider){for(var Z=Array(L.resolvedFactories.length),N=0;N<L.resolvedFactories.length;++N)Z[N]=this._instantiate(L,L.resolvedFactories[N]);return Z}return this._instantiate(L,L.resolvedFactories[0])};
_.t._instantiate=function(L,Z){var N=this,S=Z.factory;try{var u=Z.dependencies.map(function(W){return N._getByReflectiveDependency(W)})}catch(W){throw W.addKey&&W.addKey(this,L.key),W;
}try{var T=S.apply(null,_.Pd(u))}catch(W){throw Qyf(this,W,L.key);}return T};
_.t._getByReflectiveDependency=function(L){return this._getByKey(L.key,L.visibility,L.optional?null:J5V)};
_.t._getByKey=function(L,Z,N){return L===BKO?this:Z instanceof b6s?this._getByKeySelf(L,N):this._getByKeyDefault(L,N,Z)};
_.t._getObjByKeyId=function(L){for(var Z=0;Z<this.keyIds.length;Z++)if(this.keyIds[Z]===L)return this.objs[Z]===Q0&&(this.objs[Z]=this._new(this.providers[Z])),this.objs[Z];return Q0};
_.t._throwOrNull=function(L,Z){if(Z!==J5V)return Z;throw CYx(this,L);};
_.t._getByKeySelf=function(L,Z){var N=this._getObjByKeyId(L.id);return N!==Q0?N:this._throwOrNull(L,Z)};
_.t._getByKeyDefault=function(L,Z,N){for(var S=N=N instanceof MR1?this.parent:this;N instanceof Xd;){var u=N._getObjByKeyId(L.id);if(u!==Q0)return u;N=N.parent}u=void 0;if(N!==null)try{var T=N.resolve(L.token,Z);if(T!==Q0)return T}catch(W){u=W}if(!(S instanceof Xd&&FVf(L.token))){if(u)throw u;return this._throwOrNull(L,Z)}for(T=S;T.parent instanceof Xd;)T=T.parent;T.addProvider(Se0({provide:L.token,useClass:L.token}));return T.resolve(L.token,Z)};
_.t.toString=function(){return this.displayName};
_.gd.Object.defineProperties(Xd.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+Gbx(this,function(L){return' "'+L.key.displayName+'" '}).join(", ")+"])"}}});
var BKO=M2.get(bc(Cyl));(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 xQY=window.XRegExp;var qWt=-1,LQL=function(L){addEventListener("pageshow",function(Z){Z.persisted&&(qWt=Z.timeStamp,L(Z))},!0)};var NIq=function(L,Z,N){var S=Z7t,u,T;return function(W){if(Z.value>=0&&(W||N)){var V;if((T=Z.value-((V=u)!=null?V:0))||u===void 0)u=Z.value,Z.delta=T,W=Z.value,Z.rating=W>S[1]?"poor":W>S[0]?"needs-improvement":"good",L(Z)}}};var Sy5=function(L){requestAnimationFrame(function(){return requestAnimationFrame(function(){return L()})})};var i7O=function(){var L=performance.getEntriesByType("navigation")[0];if(L&&L.responseStart>0&&L.responseStart<performance.now())return L};var uiq=function(){var L,Z;return(Z=(L=i7O())==null?void 0:L.activationStart)!=null?Z:0};var Aw=-1,TIh=new Set,tsQ=function(L){if(document.visibilityState==="hidden"){if(L.type==="visibilitychange")for(var Z=_.O(TIh),N=Z.next();!N.done;N=Z.next())N=N.value,N();isFinite(Aw)||(Aw=L.type==="visibilitychange"?L.timeStamp:0,removeEventListener("prerenderingchange",tsQ,!0))}},O7N=function(){if(Aw<0){var L=uiq(),Z,N;
Aw=(N=document.prerendering?void 0:(Z=globalThis.performance.getEntriesByType("visibility-state").filter(function(S){return S.name==="hidden"&&S.startTime>L})[0])==null?void 0:Z.startTime)!=null?N:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",tsQ,!0);addEventListener("prerenderingchange",tsQ,!0);LQL(function(){setTimeout(function(){Aw=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return Aw},
onHidden:function(S){TIh.add(S)}}};var WQN=function(){var L=L===void 0?-1:L;var Z=i7O(),N="navigate";qWt>=0?N="back-forward-cache":Z&&(document.prerendering||uiq()>0?N="prerender":document.wasDiscarded?N="restore":Z.type&&(N=Z.type.replace(/_/g,"-")));return{name:"LCP",value:L,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:N}};var D9G=new WeakMap;var VsO=function(L){var Z=Z===void 0?{}:Z;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var N=new PerformanceObserver(function(S){Promise.resolve().then(function(){L(S.getEntries())})});
N.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},Z));return N}}catch(S){}};var b7I=function(L){var Z=!1;return function(){Z||(L(),Z=!0)}};var MsO=function(L){document.prerendering?addEventListener("prerenderingchange",function(){return L()},!0):L()};var gpY=function(L){var Z=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?L():(L=b7I(L),addEventListener("visibilitychange",L,{once:!0,capture:!0}),Z(function(){L();removeEventListener("visibilitychange",L,{capture:!0})}))};var $9_=function(){};
$9_.prototype._processEntry=function(L){var Z;(Z=this._onBeforeProcessingEntry)==null||Z.call(this,L)};var Z7t=[2500,4E3],SPA=function(L){var Z=Z===void 0?{}:Z;MsO(function(){var N=O7N(),S=WQN(),u=lXP(Z),T=function(v){Z.reportAllChanges||(v=v.slice(-1));v=_.O(v);for(var R=v.next();!R.done;R=v.next())R=R.value,u._processEntry(R),R.startTime<N.firstHiddenTime&&(S.value=Math.max(R.startTime-uiq(),0),S.entries=[R],V())},W=VsO(T);
if(W){var V=NIq(L,S,Z.reportAllChanges);for(var M=b7I(function(){T(W.takeRecords());W.disconnect();V(!0)}),G=function(v){v.isTrusted&&(gpY(M),removeEventListener(v.type,G,{capture:!0}))},D=_.O(["keydown",
"click","visibilitychange"]),l=D.next();!l.done;l=D.next())addEventListener(l.value,G,{capture:!0});LQL(function(v){S=WQN();V=NIq(L,S,Z.reportAllChanges);Sy5(function(){S.value=performance.now()-v.timeStamp;V(!0)})})}})};var Gwt;var FQV;_.H=function(){return FQV!==void 0?FQV:FQV=document.createElement("template")};
document.head.appendChild(_.H().content);var $Yq;_.DU({_template:function(){if($Yq!==void 0)return $Yq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
var Z=L.content,N=Z.insertBefore;Gwt===void 0&&(Gwt=document.createElement("template"));var S=Gwt;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return $Yq=L},
is:"tp-yt-app-toolbar"});var DY5;var lIV;_.HD=function(){};
_.HD=_.DU({_template:function(){if(lIV!==void 0)return lIV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;DY5===void 0&&(DY5=document.createElement("template"));var S=DY5;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return lIV=L},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.HD.instance||(_.HD.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(L){this._text===L&&(L+="\u00a0");this._text="";this.async(function(){this._text=L},this.timeout)},
_onIronAnnounce:function(L){L.detail&&L.detail.text&&this.announce(L.detail.text)}});
_.HD.instance=null;_.HD.requestAvailability=function(){_.HD.instance||(_.HD.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.HD.instance):document.addEventListener("load",function(){document.body.appendChild(_.HD.instance)})};var vpq;var opt;/*

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

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 BD,yYN,wz5;BD=Element.prototype;yYN=BD.matches||BD.matchesSelector||BD.mozMatchesSelector||BD.msMatchesSelector||BD.oMatchesSelector||BD.webkitMatchesSelector;wz5=function(){};
_.YyI=function(L){var Z=UYh,N=[];return Z._collectTabbableNodes(L,N)?Z._sortByTabIndex(N):N};
_.t=wz5.prototype;_.t.isFocusable=function(L){return yYN.call(L,"input, select, textarea, button, object")?yYN.call(L,":not([disabled])"):yYN.call(L,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.t._normalizedTabIndex=function(L){return this.isFocusable(L)?(L=L.getAttribute("tabindex")||0,Number(L)):-1};
_.t._collectTabbableNodes=function(L,Z){if(L.nodeType!==Node.ELEMENT_NODE||!this._isVisible(L))return!1;var N=this._normalizedTabIndex(L),S=N>0;N>=0&&Z.push(L);if(L.localName==="content"||L.localName==="slot")N=_.g0(L).getDistributedNodes();else{var u;N=((u=_.g0(L).shadowRoot)!=null?u:_.g0(L.root||L)).children}for(L=0;L<N.length;L++)S=this._collectTabbableNodes(N[L],Z)||S;return S};
_.t._isVisible=function(L){var Z=L.style;return Z.visibility!=="hidden"&&Z.display!=="none"?(Z=window.getComputedStyle(L),Z.visibility!=="hidden"&&Z.display!=="none"):!1};
_.t._sortByTabIndex=function(L){var Z=L.length;if(Z<2)return L;var N=Math.ceil(Z/2);Z=this._sortByTabIndex(L.slice(0,N));L=this._sortByTabIndex(L.slice(N));return this._mergeSortByTabIndex(Z,L)};
_.t._mergeSortByTabIndex=function(L,Z){for(var N=[];L.length>0&&Z.length>0;)this._hasLowerTabOrder(L[0],Z[0])?N.push(Z.shift()):N.push(L.shift());return N.concat(L,Z)};
_.t._hasLowerTabOrder=function(L,Z){L=Math.max(L.tabIndex,0);Z=Math.max(Z.tabIndex,0);return L===0||Z===0?Z>L:L>Z};
var UYh=new wz5;var emM;var IIV;_.DU({_template:function(){if(IIV!==void 0)return IIV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;emM===void 0&&(emM=document.createElement("template"));var S=emM;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return IIV=L},
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&&_.g0(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.g0(this.parentNode).removeChild(this)},
_onTransitionend:function(L){L&&L.target===this&&this.complete()},
_openedChanged:function(L){L?this.prepare():(L=window.getComputedStyle(this),L.transitionDuration!=="0s"&&L.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 xa=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;rx(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)};
xa.prototype._bringOverlayAtIndexToFront=function(L){var Z=this._overlays[L];if(Z){var N=this._overlays.length-1,S=this._overlays[N];S&&this._shouldBeBehindOverlay(Z,S)&&N--;if(!(L>=N)){S=Math.max(this._getZ(_.dYQ(this)),this._minimumZ);for(this._getZ(Z)<=S&&this._applyOverlayZ(Z,S);L<N;)this._overlays[L]=this._overlays[L+1],L++;this._overlays[N]=Z}}};
xa.prototype.addOverlay=function(L){var Z=this._overlays.indexOf(L);if(Z>=0)this._bringOverlayAtIndexToFront(Z);else{Z=this._overlays.length;var N=this._overlays[Z-1],S=Math.max(this._getZ(N),this._minimumZ),u=this._getZ(L);N&&this._shouldBeBehindOverlay(L,N)&&(this._applyOverlayZ(N,S),Z--,S=Math.max(this._getZ(this._overlays[Z-1]),this._minimumZ));u<=S&&this._applyOverlayZ(L,S);this._overlays.splice(Z,0,L)}this.trackBackdrop()};
xa.prototype.removeOverlay=function(L){L=this._overlays.indexOf(L);L!==-1&&(this._overlays.splice(L,1),this.trackBackdrop())};
_.dYQ=function(L){return L._overlays[L._overlays.length-1]};
_.t=xa.prototype;_.t.trackBackdrop=function(){var L=this._overlayWithBackdrop();if(L||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(L)-1,this.backdropElement.opened=!!L,this.backdropElement.prepare()};
_.t._overlayWithBackdrop=function(){for(var L=this._overlays.length-1;L>=0;L--)if(this._overlays[L].withBackdrop)return this._overlays[L]};
_.t._getZ=function(L){var Z=this._minimumZ;if(L){var N,S,u=Number(((N=L.hostElement)!=null?N:L).style.zIndex||window.getComputedStyle((S=L.hostElement)!=null?S:L).zIndex);u===u&&(Z=u)}return Z};
_.t._setZ=function(L,Z){var N;((N=L.hostElement)!=null?N:L).style.zIndex=Z};
_.t._applyOverlayZ=function(L,Z){this._setZ(L,Z+2)};
_.t._overlayInPath=function(L){L=L||[];for(var Z=0;Z<L.length;Z++){var N=void 0;if(((N=L[Z].polymerController)!=null?N:L[Z])._manager===this)return L[Z]}};
_.t._onCaptureClick=function(L){var Z=this._overlays.length-1;if(Z!==-1)for(var N=_.g0(L).path,S,u;(S=this._overlays[Z])&&this._overlayInPath(N)!==((u=S.hostElement)!=null?u:S);)if(S._onCaptureClick(L),S.allowClickThrough)Z--;else break};
_.t._onCaptureFocus=function(L){var Z=_.dYQ(this);Z&&Z._onCaptureFocus(L)};
_.t._onCaptureKeyDown=function(L){var Z=_.dYQ(this);Z&&(_.Ub.keyboardEventMatchesKeys(L,"esc")?Z._onCaptureEsc(L):_.Ub.keyboardEventMatchesKeys(L,"tab")&&Z._onCaptureTab(L))};
_.t._shouldBeBehindOverlay=function(L,Z){return!L.alwaysOnTop&&Z.alwaysOnTop&&!Z.contains(L)};
_.gd.Object.defineProperties(xa.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 L=document.activeElement;L&&L instanceof Element!==!1||(L=document.body);for(;L.root&&_.g0(L.root).activeElement;)L=_.g0(L.root).activeElement;return L}}});
_.qR=new xa;var vU0=0,oU_=0,Ryx=null,cp1=[],Go=["wheel","mousewheel","DOMMouseScroll"],nUG;_.c("web_no_lock_on_touchstart_killswitch")&&(Go.push("touchstart"),Go.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;_.LT={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:_.qR},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var L;return this._focusedChild||_.g0((L=this.hostElement)!=null?L:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var L;return _.YyI((L=this.hostElement)!=null?L: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 L;this._observer=_.g0((L=this.hostElement)!=null?L:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var L;_.g0((L=this.hostElement)!=null?L:this).unobserveNodes(this._observer)}this._observer=null;for(var Z in this.__rafs)this.__rafs[Z]!==null&&cancelAnimationFrame(this.__rafs[Z]);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(L){this.fire("iron-overlay-canceled",L,{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 L;((L=this.hostElement)!=null?L:this).style.outline="none";var Z;((Z=this.hostElement)!=null?Z:this).style.display="none"}},
_openedChanged:function(L){if(L){var Z;((Z=this.hostElement)!=null?Z:this).removeAttribute("aria-hidden")}else{var N;((N=this.hostElement)!=null?N: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 L;if(this.withBackdrop&&!((L=this.hostElement)!=null?L:this).hasAttribute("tabindex")){var Z;((Z=this.hostElement)!=null?Z:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var N;((N=this.hostElement)!=null?N: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 L;((L=this.hostElement)!=null?L:this).style.display="none";var Z;((Z=this.hostElement)!=null?Z:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var L,Z;((L=this.hostElement)!=null?L:this).style.transition=((Z=this.hostElement)!=null?Z:this).style.webkitTransition="none";var N,S;((N=this.hostElement)!=null?N:this).style.transform=((S=this.hostElement)!=null?S:this).style.webkitTransform="none";var u;((u=this.hostElement)!=null?u:this).style.display=""},
_finishPositioning:function(){var L;((L=this.hostElement)!=null?L:this).style.display="none";this.scrollTop=this.scrollTop;var Z,N;((Z=this.hostElement)!=null?Z:this).style.transition=((N=this.hostElement)!=null?N:this).style.webkitTransition="";var S,u;((S=this.hostElement)!=null?S:this).style.transform=((u=this.hostElement)!=null?u:this).style.webkitTransform="";var T;((T=this.hostElement)!=null?T:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var L=this._manager.deepActiveElement,Z;if(!(Z=L===document.body))a:{for(;L;L=L.assignedSlot||L.parentNode||L.host)if(L===this){Z=!0;break a}Z=!1}Z&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(L){this.noCancelOnOutsideClick||this.cancel(L)},
_onCaptureFocus:function(L){if(this.withBackdrop){var Z=_.g0(L).path;Z.indexOf(this)===-1?(L.stopPropagation(),this._applyFocus()):this._focusedChild=Z[0]}},
_onCaptureEsc:function(L){this.noCancelOnEscKey||this.cancel(L)},
_onCaptureTab:function(L){if(this.withBackdrop){this.__ensureFirstLastFocusables();var Z=L.shiftKey,N=Z?this.__firstFocusableNode:this.__lastFocusableNode;Z=Z?this.__lastFocusableNode:this.__firstFocusableNode;if(N===Z)N=!0;else{var S=this._manager.deepActiveElement;N=S===N||S===this}N&&(L.preventDefault(),this._focusedChild=Z,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 L=this._focusableNodes;this.__firstFocusableNode=L[0];this.__lastFocusableNode=L[L.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(L,Z){var N=this.__rafs;N[L]!==null&&cancelAnimationFrame(N[L]);N[L]=requestAnimationFrame(function(){N[L]=null;Z.call(this)}.bind(this))},
__updateScrollObservers:function(L,Z,N){L&&Z&&this.__isValidScrollAction(N)?(N==="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),nUG=_._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()):(L=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),L!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(L,1),nUG=_._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(LH)for(var L=this;L;)L.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&L.host&&this.__rootNodes.push(L),L=L.host||L.assignedSlot||L.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(Z){Z.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(L){L.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(L){return L==="lock"||L==="refit"||L==="cancel"},
__onCaptureScroll:function(L){if(!(this.__isAnimating||_.g0(L).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(L)}},
__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)}};
_.Zs=[kwY,_.Eb,_.LT];_.DU({_template:function(){if(KQL!==void 0)return KQL;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;npL===void 0&&(npL=document.createElement("template"));var S=npL;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return KQL=L},
is:"tp-yt-iron-dropdown",behaviors:[_.Ya,_.Ub,_.Zs,Qjl],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 L=_.g0(this.$.content).getDistributedNodes(),Z=0,N=L.length;Z<N;Z++)if(L[Z].nodeType===Node.ELEMENT_NODE)return L[Z]},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(),_.LT._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.LT._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.LT._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var L=this.containedElement,Z=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),N=0;N<Z.length;N++)Z[N].node=L;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(L){this._readied&&(L?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var L=this.focusTarget||this.containedElement;L&&this.opened&&!this.noAutoFocus?L.focus():_.LT._applyFocus.apply(this,arguments)}});var aIl;var hmM;/*

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 snO=new _.aN({type:"iconset"});
_.DU({_template:function(){if(hmM!==void 0)return hmM;var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;aIl===void 0&&(aIl=document.createElement("template"));
var S=aIl;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return hmM=L},
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(L){L=(L||"").split(":");this._iconName=L.pop();this._iconsetName=L.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&&_.g0(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=snO.byKey(this._iconsetName)){var L=this._iconset.applyIcon(this,this._iconName,this.theme);L&&L.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,_.g0(this.root).appendChild(this._img)}});var jn5;var EpQ;_.DU({_template:function(){if(EpQ!==void 0)return EpQ;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
var Z=L.content,N=Z.insertBefore;jn5===void 0&&(jn5=document.createElement("template"));var S=jn5;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return EpQ=L},
is:"tp-yt-iron-input",behaviors:[_.sb],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(){_.HD.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.g0(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.g0(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 L=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":L=/[0-9.,e-]/}return L},_bindValueChanged:function(L,Z){Z&&(L===void 0?Z.value=null:L!==Z.value&&(this.inputElement.value=L),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:L}))},
_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(L){var Z=L.keyCode==19||L.keyCode==20||L.keyCode==45||L.keyCode==46||L.keyCode==144||L.keyCode==145||L.keyCode>32&&L.keyCode<41||L.keyCode>111&&L.keyCode<124;return!(L.keyCode==8||L.keyCode==9||L.keyCode==13||L.keyCode==27)&&!(L.charCode==0&&Z)},
_onKeypress:function(L){if(this.allowedPattern||this.inputElement.type==="number"){var Z=this._patternRegExp;if(Z&&!(L.metaKey||L.ctrlKey||L.altKey)){this._patternAlreadyChecked=!0;var N=String.fromCharCode(L.charCode);this._isPrintable(L)&&!Z.test(N)&&(L.preventDefault(),this._announceInvalidCharacter("Invalid character "+N+" not entered."))}}},
_checkPatternValidity:function(){var L=this._patternRegExp;if(!L)return!0;for(var Z=0;Z<this.inputElement.value.length;Z++)if(!L.test(this.inputElement.value[Z]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var L=this.inputElement.checkValidity();L&&(this.required&&this.bindValue===""?L=!1:this.hasValidator()&&(L=_.sb.validate.call(this,this.bindValue)));this.invalid=!L;this.fire("iron-input-validate");return L},
_announceInvalidCharacter:function(L){this.fire("iron-announce",{text:L})},
_computeValue:function(L){return L}});var P3N;var pzh;var zm5=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),mYY=zm5&&zm5[1]>=8;
_.DU({_template:function(){if(pzh!==void 0)return pzh;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;P3N===void 0&&(P3N=document.createElement("template"));var S=P3N;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return pzh=L},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[XNx,_.Eb,_.r9M,yCh],_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 _.g0(_.g0(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var L=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,L-this._physicalCount)},set _virtualStart(L){L=this._clamp(L,0,this._maxVirtualStart);this.grid&&(L-=L%this._itemsPerRow);this._virtualStartVal=L},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(L){L%=this._physicalCount;L<0&&(L=this._physicalCount+L);this.grid&&(L-=L%this._itemsPerRow);this._physicalStartVal=L},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(L){this._physicalCountVal=L},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 L=this._firstVisibleIndexVal;if(L==null){var Z=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
L=this._iterateItems(function(N,S){Z+=this._getPhysicalSizeIncrement(N);if(Z>this._scrollPosition)return this.grid?S-S%this._itemsPerRow:S;if(this.grid&&this._virtualCount-1===S)return S-S%this._itemsPerRow})||0}return L},
get lastVisibleIndex(){var L=this._lastVisibleIndexVal;if(L==null){if(this.grid)L=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var Z=this._physicalTop+this._scrollOffset;this._iterateItems(function(N,S){Z<this._scrollBottom&&(L=S);Z+=this._getPhysicalSizeIncrement(N)})}this._lastVisibleIndexVal=L}return L},
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,_.FZ);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(L){this.style.webkitOverflowScrolling=L===this?"touch":"";this.style.overflowY=L===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.FZ)},
updateViewportBoundaries:function(){var L=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(L["padding-top"],10);this._isRTL=L.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var L=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),Z=L-this._scrollPosition,N=Z>=0;this._scrollPosition=L;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(Z)>this._physicalSize&&this._physicalSize>0?(Z-=this._scrollOffset,N=Math.round(Z/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=N,this._physicalStart+=N,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(L=this._getReusables(N),N?(this._physicalTop=L.physicalTop,this._virtualStart+=L.indexes.length,this._physicalStart+=L.indexes.length):(this._virtualStart=this._virtualStart-L.indexes.length,this._physicalStart=this._physicalStart-L.indexes.length),this._update(L.indexes,N?null:L.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),A2))},
_getReusables:function(L){var Z=[],N=this._hiddenContentSize*this._ratio,S=this._virtualStart,u=this._virtualEnd,T=this._physicalCount,W=this._physicalTop+this._scrollOffset;var V=this._physicalBottom+this._scrollOffset;var M=this._scrollPosition,G=this._scrollBottom;if(L){var D=this._physicalStart;V=M-W}else D=this._physicalEnd,V-=G;for(;;){var l=this._getPhysicalSizeIncrement(D);V-=l;if(Z.length>=T||V<=N)break;if(L){if(u+Z.length+1>=this._virtualCount)break;if(W+l>=M-this._scrollOffset)break;Z.push(D);
W+=l;D=(D+1)%T}else{if(S-Z.length<=0)break;if(W+this._physicalSize-l<=G)break;Z.push(D);W-=l;D=D===0?T-1:D-1}}return{indexes:Z,physicalTop:W-this._scrollOffset}},
_update:function(L,Z){if(!(L&&L.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(L);this._updateMetrics(L);if(Z)for(;Z.length;)L=Z.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(L);this._positionItems();this._updateScrollerSize()}},
_createPool:function(L){this._ensureTemplatized();var Z,N=Array(L);for(Z=0;Z<L;Z++){var S=this.stamp(null);N[Z]=S.root.querySelector("*");this._itemsParent.appendChild(S.root)}return N},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(L){L=this._clamp(this._physicalCount+L,3,this._virtualCount-this._virtualStart);L=this._convertIndexToCompleteRow(L);if(this.grid){var Z=L%this._itemsPerRow;Z&&L-Z<=this._physicalCount&&(L+=this._itemsPerRow);L-=Z}L-=this._physicalCount;Z=Math.round(this._physicalCount*.5);if(!(L<0)){if(L>0){Z=window.performance.now();[].push.apply(this._physicalItems,this._createPool(L));for(var N=0;N<L;N++)this._physicalSizes.push(0);this._physicalCount+=L;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=L);this._update();this._templateCost=(window.performance.now()-Z)/L;Z=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||Z===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,Z)),WL5):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,Z),A2))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var L=this._getReusables(!0);this._physicalTop=L.physicalTop;this._virtualStart+=L.indexes.length;this._physicalStart+=L.indexes.length;this._update(L.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 L={__key__:!0};L[this.as]=!0;L[this.indexAs]=!0;L[this.selectedAs]=!0;L.tabIndex=!0;this._instanceProps=L;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(L,Z){typeof Z!=="undefined"&&(this.notifyResize(),_.vL(),L&&this._updateGridMetrics())},
_itemsChanged:function(L){if(L.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,
_.FZ);else if(L.path==="items.splices"){this._adjustVirtualIndex(L.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(L.value.indexSplices.some(function(N){return N.addedCount>0||N.removed.length>0})){var Z=this._getActiveElement();
this.contains(Z)&&Z.blur()}L=L.value.indexSplices.some(function(N){return N.index+N.addedCount>=this._virtualStart&&N.index<=this._virtualEnd},this);
this._isClientFull()&&!L||this._debounce("_render",this._render,_.FZ)}else L.path!=="items.length"&&this._forwardItemPath(L.path,L.value)},
_forwardItemPath:function(L,Z){L=L.slice(6);var N=L.indexOf(".");N===-1&&(N=L.length);var S,u=this.modelForElement(this._offscreenFocusedItem),T=parseInt(L.substring(0,N),10);if(S=this._isIndexRendered(T)){var W=this._getPhysicalIndex(T);var V=this.modelForElement(this._physicalItems[W])}else u&&(V=u);V&&V[this.indexAs]===T&&(L=L.substring(N+1),L=this.as+(L?"."+L:""),V._setPendingPropertyOrPath(L,Z,!1,!0),V._flushProperties&&V._flushProperties(),S&&(this._updateMetrics([W]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(L){L.forEach(function(Z){Z.removed.forEach(this._removeItem,this);Z.index<this._virtualStart&&(Z=Math.max(Z.addedCount-Z.removed.length,Z.index-this._virtualStart),this._virtualStart+=Z,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=Z))},this)},
_removeItem:function(L){this.$.selector.deselect(L);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===L&&this._removeFocusedItem()},
_iterateItems:function(L,Z){var N,S;if(arguments.length===2&&Z)for(S=0;S<Z.length;S++){var u=Z[S];var T=this._computeVidx(u);if((N=L.call(this,u,T))!=null)return N}else{u=this._physicalStart;for(T=this._virtualStart;u<this._physicalCount;u++,T++)if((N=L.call(this,u,T))!=null)return N;for(u=0;u<this._physicalStart;u++,T++)if((N=L.call(this,u,T))!=null)return N}},
_computeVidx:function(L){return L>=this._physicalStart?this._virtualStart+(L-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+L},
_assignModels:function(L){this._iterateItems(function(Z,N){var S=this._physicalItems[Z],u=this.items&&this.items[N];if(u!=null){var T=this.modelForElement(S);T.__key__=null;this._forwardProperty(T,this.as,u);this._forwardProperty(T,this.selectedAs,this.$.selector.isSelected(u));this._forwardProperty(T,this.indexAs,N);this._forwardProperty(T,"tabIndex",this._focusedVirtualIndex===N?0:-1);this._physicalIndexForKey[T.__key__]=Z;T._flushProperties&&T._flushProperties(!0);S.removeAttribute("hidden")}else S.setAttribute("hidden",
"")},L)},
_updateMetrics:function(L){_.vL();var Z=0,N=0,S=this._physicalAverageCount,u=this._physicalAverage;this._iterateItems(function(T){N+=this._physicalSizes[T];this._physicalSizes[T]=this._physicalItems[T].offsetHeight;Z+=this._physicalSizes[T];this._physicalAverageCount+=this._physicalSizes[T]?1:0},L);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(N=this._itemsPerRow===1?N:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+Z-N,this._itemsPerRow=1);this._physicalAverageCount!==S&&(this._physicalAverage=Math.round((u*S+Z)/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 L=this._physicalTop;if(this.grid){var Z=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(N,S){var u=Math.floor(S%this._itemsPerRow*this._itemWidth+Z);this._isRTL&&(u*=-1);this.translate3d(u+"px",L+"px",0,this._physicalItems[N]);this._shouldRenderNextRow(S)&&(L+=this._rowHeight)})}else this._iterateItems(function(N){this.translate3d(0,L+"px",0,this._physicalItems[N]);
L+=this._physicalSizes[N]})},
_getPhysicalSizeIncrement:function(L){return this.grid?this._computeVidx(L)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[L]},
_shouldRenderNextRow:function(L){return L%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var L=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(L!==0){this._physicalTop=this._physicalTop-L;var Z=this._scrollPosition;!mYY&&Z>0&&this._resetScrollPosition(Z-L)}},
_resetScrollPosition:function(L){this.scrollTarget&&L>=0&&(this._scrollPosition=this._scrollTop=L)},
_updateScrollerSize:function(L){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((L=(L=(L=L||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(L){return this.scrollToIndex(this.items.indexOf(L))},
scrollToIndex:function(L){if(!(typeof L!=="number"||L<0||L>this.items.length-1)&&(_.vL(),this._physicalCount!==0)){L=this._clamp(L,0,this._virtualCount-1);if(!this._isIndexRendered(L)||L>=this._maxVirtualStart)this._virtualStart=this.grid?L-this._itemsPerRow*2:L-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var Z=this._physicalStart,N=this._virtualStart,S=0,u=this._hiddenContentSize;N<L&&
S<=u;)S+=this._getPhysicalSizeIncrement(Z),Z=(Z+1)%this._physicalCount,N++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+S);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)},_.FZ)},
selectItem:function(L){return this.selectIndex(this.items.indexOf(L))},
selectIndex:function(L){if(!(L<0||L>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(L)){var Z=this.modelForElement(this._physicalItems[this._getPhysicalIndex(L)]);Z&&(Z[this.selectedAs]=!0);this.updateSizeForIndex(L)}this.$.selector.selectIndex(L)}},
deselectItem:function(L){return this.deselectIndex(this.items.indexOf(L))},
deselectIndex:function(L){L<0||L>=this._virtualCount||(this._isIndexRendered(L)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(L)])[this.selectedAs]=!1,this.updateSizeForIndex(L)),this.$.selector.deselectIndex(L))},
toggleSelectionForItem:function(L){return this.toggleSelectionForIndex(this.items.indexOf(L))},
toggleSelectionForIndex:function(L){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(L):this.$.selector.isSelected(this.items[L]))?this.deselectIndex(L):this.selectIndex(L)},
clearSelection:function(){this._iterateItems(function(L){this.modelForElement(this._physicalItems[L])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(L){(L?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(L){var Z=this.modelForElement(L.target);if(Z){var N=_.g0(L).path[0];L=this._getActiveElement();var S=this._physicalItems[this._getPhysicalIndex(Z[this.indexAs])];if(N.localName!=="input"&&N.localName!=="button"&&N.localName!=="select"){N=Z.tabIndex;Z.tabIndex=-100;var u=L?L.tabIndex:-1;Z.tabIndex=N;L&&S!==L&&S.contains(L)&&u!==-100||this.toggleSelectionForItem(Z[this.as])}}},
_multiSelectionChanged:function(L){this.clearSelection();this.$.selector.multi=L},
updateSizeForItem:function(L){return this.updateSizeForIndex(this.items.indexOf(L))},
updateSizeForIndex:function(L){if(!this._isIndexRendered(L))return null;this._updateMetrics([this._getPhysicalIndex(L)]);this._positionItems();return null},
_manageFocus:function(){var L=this._focusedVirtualIndex;L>=0&&L<this._virtualCount?this._isIndexRendered(L)?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(L){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(L/this._itemsPerRow)*this._itemsPerRow:L},
_isIndexRendered:function(L){return L>=this._virtualStart&&L<=this._virtualEnd},
_isIndexVisible:function(L){return L>=this.firstVisibleIndex&&L<=this.lastVisibleIndex},
_getPhysicalIndex:function(L){return(this._physicalStart+(L-this._virtualStart))%this._physicalCount},
focusItem:function(L){this._focusPhysicalItem(L)},
_focusPhysicalItem:function(L){if(!(L<0||L>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(L)||this.scrollToIndex(L);var Z=this._physicalItems[this._getPhysicalIndex(L)],N=this.modelForElement(Z),S;N.tabIndex=-100;Z.tabIndex===-100&&(S=Z);S||(S=_.g0(Z).querySelector('[tabindex="-100"]'));N.tabIndex=0;this._focusedVirtualIndex=L;S&&S.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 L=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var Z=this.stamp(null);this._focusBackfillItem=Z.root.querySelector("*");this._itemsParent.appendChild(Z.root)}this._offscreenFocusedItem=this._physicalItems[L];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[L]=this._focusBackfillItem;this._focusedPhysicalIndex=L;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var L=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),Z=this._physicalItems[L];if(Z){var N=this.modelForElement(Z),S=this.modelForElement(this._offscreenFocusedItem);N[this.as]===S[this.as]?(this._focusBackfillItem=Z,N.tabIndex=-1,this._physicalItems[L]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(L){L=this.modelForElement(L.target);var Z=this.modelForElement(this._focusedItem),N=this._offscreenFocusedItem!==null,S=this._focusedVirtualIndex;L&&(Z===L?this._isIndexVisible(S)||this.scrollToIndex(S):(this._restoreFocusedItem(),Z&&(Z.tabIndex=-1),L.tabIndex=0,this._focusedVirtualIndex=S=L[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(S),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],N&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(L){switch(L.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&L.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&&L.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(L)}},
_clamp:function(L,Z,N){return Math.min(N,Math.max(Z,L))},
_debounce:function(L,Z,N){this._debouncers=this._debouncers||{};this._debouncers[L]=_.Gb(this._debouncers[L],N,Z.bind(this));_.FO(this._debouncers[L])},
_forwardProperty:function(L,Z,N){L._setPendingProperty(Z,N)},
_forwardHostPropV2:function(L,Z){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(N){N&&this.modelForElement(N).forwardHostProp(L,Z)},this)},
_notifyInstancePropV2:function(L,Z,N){knP(this.as,Z)&&(L=L[this.indexAs],Z==this.as&&(this.items[L]=N),this.notifyPath(wx(this.as,"items."+L,Z),N))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(L,Z,N){Z.indexOf(this.as+".")===0&&this.notifyPath("items."+L.__key__+"."+Z.slice(this.as.length+1),N)},
_forwardParentPath:function(L,Z){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(N){N&&this.modelForElement(N).notifyPath(L,Z)},this)},
_forwardParentProp:function(L,Z){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(N){N&&(this.modelForElement(N)[L]=Z)},this)},
_getActiveElement:function(){var L=this._itemsParent.node.domHost;return _.g0(L?L.root:document).activeElement},
_scrollTargetChanged:function(L,Z){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(Z)if(L==="document")this.scrollTarget=this._doc;else if(typeof L==="string"){var N,S;this.scrollTarget=(Z=(S=(N=this.domHost)==null?void 0:N.polymerController)!=null?S:this.domHost)&&Z.$?Z.$[L]:_.g0(this.ownerDocument).querySelector("#"+L)}else this._isValidScrollTarget()&&(this._oldScrollTarget=L,this._toggleScrollListener(this._shouldHaveListener,L))}});var JYV;var C35;var rY5=function(L,Z,N,S){L-=N;Z-=S;return Math.sqrt(L*L+Z*Z)},Qnh=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
KV_.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var fXt=function(L){L.maxRadius=0;L.mouseDownStart=0;L.mouseUpStart=0;L.xStart=0;L.yStart=0;L.xEnd=0;L.yEnd=0;L.containerMetrics=new KV_(L.element)};
kb1.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var L=Qnh()-this.mouseDownStart;this.mouseUpStart&&(L-=this.mouseUpElapsed);return L},get mouseUpElapsed(){return this.mouseUpStart?Qnh()-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 L=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(L*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-L/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 L=this.radius/(this.containerMetrics.size/2);var Z=this.xNow-this.containerMetrics.width/2;var N=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+Z+"px, "+N+"px)";this.waveContainer.style.transform="translate3d("+Z+"px, "+N+"px, 0)";this.wave.style.webkitTransform="scale("+L+","+L+")";this.wave.style.transform="scale3d("+L+","+L+",1)"},
downAction:function(L){var Z=this.containerMetrics.width/2,N=this.containerMetrics.height/2;fXt(this);this.mouseDownStart=Qnh();this.center?(this.xStart=Z,this.yStart=N):(this.xStart=L?L.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=L?L.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=Z,this.yEnd=N);L=this.containerMetrics;Z=this.xStart;N=this.yStart;this.maxRadius=Math.max(rY5(Z,N,0,0),rY5(Z,N,
L.width,0),rY5(Z,N,0,L.height),rY5(Z,N,L.width,L.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=Qnh())},
remove:function(){_.g0(_.g0(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.DU({_template:function(){if(C35!==void 0)return C35;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;JYV===void 0&&(JYV=document.createElement("template"));var S=JYV;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return C35=L},
is:"tp-yt-paper-ripple",behaviors:[_.Ub],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(){_.g0(this).parentNode.nodeType==11?this.keyEventTarget=_.g0(this).getOwnerRoot().host:this.keyEventTarget=_.g0(this).parentNode;var L=this.keyEventTarget;this.listen(L,"up","uiUpAction");this.listen(L,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(L){L.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var L=0;L<this.ripples.length;++L)if(!this.ripples[L].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(L){this.noink||this.downAction(L)},
downAction:function(L){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(L),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(L){this.noink||this.upAction(L)},
upAction:function(L){this.holdDown||(this.ripples.forEach(function(Z){Z.upAction(L)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var L=0;L<this.ripples.length;++L){var Z=this.ripples[L];Z.isOpacityFullyDecayed&&!Z.isRestingAtMaxRadius&&this.removeRipple(Z)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var L=new kb1(this);_.g0(this.$.waves).appendChild(L.waveContainer);this.$.background.style.backgroundColor=L.color;this.ripples.push(L);this._setAnimating(!0);return L},
removeRipple:function(L){var Z=this.ripples.indexOf(L);Z<0||(this.ripples.splice(Z,1),L.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var L;for(L=0;L<this.ripples.length;++L){var Z=this.ripples[L];Z.draw();this.$.background.style.opacity=Z.outerOpacity;Z.isOpacityFullyDecayed&&!Z.isRestingAtMaxRadius&&this.removeRipple(Z)}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(L,Z){Z!==void 0&&(L?this.downAction():this.upAction())}});var Nf={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(L){eQ._downHandler.call(this,L);this.pressed&&this.ensureRipple(L)},
ensureRipple:function(L){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var Z=this._rippleContainer||this.root;Z&&_.g0(Z).appendChild(this._ripple);if(L){Z=_.g0(this._rippleContainer||this);var N=_.g0(L).rootTarget;Z.deepContains(N)&&this._ripple.uiDownAction(L)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(L){this.hasRipple()&&(this._ripple.noink=L)}};var Xzh={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 L=1;this.disabled?L=0:this.active||this.pressed?L=4:this.receivedFocusFromKeyboard&&(L=3);this._setElevation(L)},
_computeKeyboardClass:function(L){this.toggleClass("keyboard-focus",L)},
_spaceKeyDownHandler:function(L){eQ._spaceKeyDownHandler.call(this,L);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(L){eQ._spaceKeyUpHandler.call(this,L);this.hasRipple()&&this._ripple.uiUpAction()}},AYt=[aKt,
_.Ya,Nf,Xzh];_.H7q={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(L){L&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=L)},
_createRipple:function(){var L=Nf._createRipple();L.id="ink";L.setAttribute("center","");L.classList.add("circle");return L}};
_.BIq=[aKt,_.Ya,Nf,_.H7q];_.xYV=[_.BIq,jjt,{_checkedChanged:function(){sjM._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){Nf._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var qyq;var LFI;var Zc5=function(){};
_.t=Zc5.prototype;_.t.registered=function(){};
_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t._tapHandler=function(){};
_.t._focusChanged=function(){};
_.t._detectKeyboardFocus=function(){};
_.t._userActivate=function(){};
_.t._upHandler=function(){};
_.t._asyncClick=function(){};
_.t._pressedChanged=function(){};
_.t._ariaActiveAttributeChanged=function(){};
_.t._activeChanged=function(){};
_.t._controlStateChanged=function(){};
_.t._changedButtonState=function(){};
_.t._focusBlurHandler=function(){};
_.t._disabledChanged=function(){};
_.t._changedControlState=function(){};
_.t._buttonStateChanged=function(){};
_.t._downHandler=function(){};
_.t.ensureRipple=function(){};
_.t.getRipple=function(){};
_.t.hasRipple=function(){};
_.t._createRipple=function(){};
_.t._noinkChanged=function(){};
_.t._computeKeyboardClass=function(){};
_.t._spaceKeyDownHandler=function(){};
_.t._spaceKeyUpHandler=function(){};
_.t._setPressed=function(){};
_.t._setPointerDown=function(){};
_.t._setReceivedFocusFromKeyboard=function(){};
_.t._setFocused=function(){};
_.t._setElevation=function(){};
Zc5=_.DU({_template:function(){if(LFI!==void 0)return LFI;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
var Z=L.content,N=Z.insertBefore;qyq===void 0&&(qyq=document.createElement("template"));var S=qyq;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return LFI=L},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[AYt],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?Xzh._calculateElevation.apply(this):this._setElevation(0)}});var NgY;var S8I;var ic5={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(L){_.c("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(L)},
_onDialogClickWrapped:function(L){_.c("dialog_behavior_no_tap_killswitch")||this._onDialogClick(L)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(L,Z){Z&&(L?(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(L){if(L){var Z;((Z=this.hostElement)!=null?Z:this).setAttribute("aria-modal","true")}else{var N;((N=this.hostElement)!=null?N:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(L){this.closingReason=this.closingReason||{};this.closingReason.confirmed=L},
_onDialogClick:function(L){for(var Z=_.g0(L).path,N=0,S,u=Z.indexOf((S=this.hostElement)!=null?S:this);N<u;N++)if(S=Z[N],S.hasAttribute&&(S.hasAttribute("dialog-dismiss")||S.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(S.hasAttribute("dialog-confirm"));this.close();L.stopPropagation();break}}},uR5=[_.Zs,
ic5];var Tgs=document.createElement("template");_.k(Tgs,'<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(Tgs.content);var tJM=document.createElement("template");_.k(tJM,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(tJM.content);_.DU({_template:function(){if(S8I!==void 0)return S8I;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
var Z=L.content,N=Z.insertBefore;NgY===void 0&&(NgY=document.createElement("template"));var S=NgY;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return S8I=L},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[uR5,Qjl],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 OcV;var WFM;_.DU({_template:function(){if(WFM!==void 0)return WFM;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;OcV===void 0&&(OcV=document.createElement("template"));var S=OcV;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return WFM=L},
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 L,Z,N;if(((L=window.ShadyDOM)==null?void 0:L.noPatch)!==!0&&((Z=window.ShadyDOM)==null?void 0:Z.noPatch)!=="on-demand"||((N=this.__shady_parentNode)==null?void 0:N.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(ic5)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var VJI=_.sc(['<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>']),bcM=_.IUY(VJI);bcM.setAttribute("style","display: none;");document.head.appendChild(bcM.content);var MJI;var gB5;var GkI;var FFI;_.DU({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[PD],configure:function(L){var Z=L.node,N=Z.getBoundingClientRect().height;return this._effect=new KeyframeEffect(Z,[{height:N/2+"px"},{height:N+"px"}],this.timingFromConfig(L))}});
_.DU({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[PD],configure:function(L){var Z=L.node,N=Z.getBoundingClientRect().width;return this._effect=new KeyframeEffect(Z,[{width:N/2+"px"},{width:N+"px"}],this.timingFromConfig(L))}});
_.DU({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[PD],configure:function(L){var Z=L.node,N=Z.getBoundingClientRect().width;return this._effect=new KeyframeEffect(Z,[{width:N+"px"},{width:N-N/20+"px"}],this.timingFromConfig(L))}});
_.DU({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[PD],configure:function(L){var Z=L.node,N=Z.getBoundingClientRect().height;this.setPrefixedProperty(Z,"transformOrigin","0 0");return this._effect=new KeyframeEffect(Z,[{height:N+"px",transform:"translateY(0)"},{height:N/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(L))}});var Sc={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},$bl=function(){};
_.t=$bl.prototype;_.t.registered=function(){};
_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t._focusBlurHandler=function(){};
_.t._changedControlState=function(){};
_.t._setFocused=function(){};
$bl=_.DU({_template:function(){if(FFI!==void 0)return FFI;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;GkI===void 0&&(GkI=document.createElement("template"));var S=GkI;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return FFI=L},
is:"tp-yt-paper-menu-button",behaviors:[_.Ub,_.Ya],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:Sc.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Sc.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:Sc.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 L=_.g0(this.$.content).getDistributedNodes(),Z=0,N=L.length;Z<N;Z++)if(L[Z].nodeType===Node.ELEMENT_NODE)return L[Z]},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(L,Z){L?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):Z!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(L){_.Ya._disabledChanged.apply(this,arguments);L&&this.opened&&this.close()},
__onIronOverlayCanceled:function(L){var Z=this.$.trigger;_.g0(L.detail).path.indexOf(Z)>-1&&L.preventDefault()}});
Object.keys(Sc).forEach(function(L){$bl[L]=Sc[L]});var Dbq=_.IN.IronButtonState,lwl=(0,_.wS)(HTMLElement);
_.DU({_template:function(){if(gB5!==void 0)return gB5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;MJI===void 0&&(MJI=document.createElement("template"));var S=MJI;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return gB5=L},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[Dbq,_.Ya,Nf,_.dE,_.sb],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(L){var Z=(0,_.dx)(this);Z.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:L});Z.shadowRoot.appendChild(L);return lwl.prototype._attachDom.call(this,L)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var L=this.contentElement;L&&L.selectedItem&&this._setSelectedItem(L.selectedItem)},
get contentElement(){for(var L=_.g0(this.$.content).getDistributedNodes(),Z=0,N=L.length;Z<N;Z++)if(L[Z].nodeType===Node.ELEMENT_NODE)return L[Z]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(L){this._setSelectedItem(L.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(L){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L)===this&&this.open()},
_selectedItemChanged:function(L){var Z="";L?Z=L.label||L.getAttribute("label")||L.textContent.trim():Z="";this.value=Z;this._setSelectedItemLabel(Z)},
_computeMenuVerticalOffset:function(L,Z){return Z?Z:L?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var L=this.opened?"true":"false",Z=this.contentElement;Z&&Z.setAttribute("aria-expanded",L)},
_computeLabelClass:function(L,Z,N){var S="label";if(L)N&&(S+=" label-is-hidden");else if(N||Z)S+=" label-is-floating";return S},
_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 vBL;var oB5;_.DU({is:"tp-yt-paper-icon-button",_template:function(){if(oB5!==void 0)return oB5;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;vBL===void 0&&(vBL=document.createElement("template"));var S=vBL;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return oB5=L},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.BIq],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(L,Z){var N=this.getAttribute("aria-label");N&&Z!=N||this.setAttribute("aria-label",L)}});var R$O;var c4t;_.ik=[aKt,_.Ya,{hostAttributes:{role:"option",tabindex:"0"}}];_.DU({_template:function(){if(c4t!==void 0)return c4t;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;R$O===void 0&&(R$O=document.createElement("template"));var S=R$O;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return c4t=L},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.ik]});var nBO;var KF5;var fwq={attached:function(){this.fire("addon-attached")},
update:function(){}};var kkY=1,y4L=1,wnL=1,UbM=[_.Ya,_.Ub,{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();!tp&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(L,Z){L?L=L+" "+Z:L=Z;return L},
_onAddonAttached:function(L){L=_.g0(L).rootTarget;if(L.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,L.id);else{var Z="paper-input-add-on-"+y4L++;L.id=Z;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,Z)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(L){_.Ya._focusBlurHandler.call(this,L);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var L=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",L);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(L){try{var Z=this.inputElement.selectionStart;this.value=L;this.inputElement.selectionStart=Z;this.inputElement.selectionEnd=Z}catch(N){this.value=L}},
_computeAlwaysFloatLabel:function(L,Z){return Z||L},
_updateAriaLabelledBy:function(){var L=_.g0(this.root).querySelector("label");if(L){if(L.id)var Z=L.id;else Z="paper-input-label-"+kkY++,L.id=Z;this._ariaLabelledBy=Z}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+wnL++)},
_onChange:function(L){this.shadowRoot&&this.fire(L.type,{sourceEvent:L},{node:this,bubbles:L.bubbles,cancelable:L.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var L=document.activeElement;L instanceof HTMLElement&&L!==document.body&&L!==document.documentElement||this._focusableElement.focus()}}}];var Y8L;var e$t;_.DU({_template:function(){if(e$t!==void 0)return e$t;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Y8L===void 0&&(Y8L=document.createElement("template"));var S=Y8L;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return e$t=L},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[fwq],properties:{_charCounterStr:{type:String,value:"0"}},update:function(L){if(L.inputElement){L.value=L.value||"";var Z=L.value.toString().length.toString();L.inputElement.hasAttribute("maxlength")&&(Z+="/"+L.inputElement.getAttribute("maxlength"));this._charCounterStr=Z}}});var Iwt;var dbM;_.DU({_template:function(){if(dbM!==void 0)return dbM;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Iwt===void 0&&(Iwt=document.createElement("template"));var S=Iwt;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return dbM=L},
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 no(this.attrForValue)},get _inputElement(){return _.g0(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(L){this._addons||(this._addons=[]);L=L.target;this._addons.indexOf(L)===-1&&(this._addons.push(L),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(L){this._handleValueAndAutoValidate(L.target)},
_onValueChanged:function(L){var Z=L.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,Z.value===void 0||Z.value===""))return;this._handleValueAndAutoValidate(L.target)},
_handleValue:function(L){var Z=this._inputElementValue;Z||Z===0||L.type==="number"&&!L.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:L,value:Z,invalid:this.invalid})},
_handleValueAndAutoValidate:function(L){this.autoValidate&&L&&(this.invalid=!(L.validate?L.validate(this._inputElementValue):L.checkValidity()));this._handleValue(L)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(L){if(this._addons)for(var Z,N=0;Z=this._addons[N];N++)Z.update(L)},
_computeInputContentClass:function(L,Z,N,S,u){var T="input-content";L?(u&&(T+=" label-is-hidden"),S&&!this.noUnfloatedLabelError&&(T+=" is-invalid")):(L=this.querySelector("label"),Z||u?(T+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",S?T+=" is-invalid":N&&(T+=" label-is-highlighted")):(L&&(this.$.labelAndInputContainer.style.position="relative"),S&&!this.noUnfloatedLabelError&&(T+=" is-invalid")));N&&(T+=" focused");return T},
_computeUnderlineClass:function(L,Z){var N="underline";Z?N+=" is-invalid":L&&(N+=" is-highlighted");return N},
_computeAddOnContentClass:function(L,Z){var N="add-on-content";Z?N+=" is-invalid":L&&(N+=" is-highlighted");return N}});var awM;var h$M;_.DU({_template:function(){if(h$M!==void 0)return h$M;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;awM===void 0&&(awM=document.createElement("template"));var S=awM;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return h$M=L},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[fwq],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(L){this._setInvalid(L.invalid)}});_.DU({is:"tp-yt-paper-input",_template:function(){if(KF5!==void 0)return KF5;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;nBO===void 0&&(nBO=document.createElement("template"));var S=nBO;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return KF5=L},
behaviors:[UbM,_.dE],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 s85;var j8L;_.DU({_template:function(){if(j8L!==void 0)return j8L;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=
L.content,N=Z.insertBefore;s85===void 0&&(s85=document.createElement("template"));var S=s85;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return j8L=L},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.ik]});var EBO;var PlV;_.DU({_template:function(){if(PlV!==void 0)return PlV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
var Z=L.content,N=Z.insertBefore;EBO===void 0&&(EBO=document.createElement("template"));var S=EBO;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return PlV=L},
is:"tp-yt-paper-item-body"});var pnt;var z$M;var mbQ=function(){};
_.t=mbQ.prototype;_.t.indexOf=function(){};
_.t.selectPrevious=function(){};
_.t.selectNext=function(){};
_.t.selectIndex=function(){};
_.t.forceSynchronousItemUpdate=function(){};
_.t._checkFallback=function(){};
_.t._addListener=function(){};
_.t._removeListener=function(){};
_.t._activateEventChanged=function(){};
_.t._updateItems=function(){};
_.t._selectSelected=function(){};
_.t._filterItem=function(){};
_.t._valueToItem=function(){};
_.t._valueToIndex=function(){};
_.t._indexToValue=function(){};
_.t._valueForItem=function(){};
_.t._observeItems=function(){};
_.t._itemActivate=function(){};
_.t.multiChanged=function(){};
_.t._updateAttrForSelected=function(){};
_.t._updateSelected=function(){};
_.t._selectMulti=function(){};
_.t._selectionChange=function(){};
_.t._toggleSelected=function(){};
_.t._valuesToItems=function(){};
_.t.registered=function(){};
_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t.select=function(){};
_.t._resetTabindices=function(){};
_.t._updateMultiselectable=function(){};
_.t._focusWithKeyboardEvent=function(){};
_.t._clearSearchText=function(){};
_.t._focusPrevious=function(){};
_.t._focusNext=function(){};
_.t._applySelection=function(){};
_.t._focusedItemChanged=function(){};
_.t._onIronItemsChanged=function(){};
_.t._onShiftTabDown=function(){};
_.t._onFocus=function(){};
_.t._onUpKey=function(){};
_.t._onDownKey=function(){};
_.t._onEscKey=function(){};
_.t._onKeydown=function(){};
_.t._activateHandler=function(){};
_.t._disabledChanged=function(){};
_.t._setSelectedItem=function(){};
_.t._setItems=function(){};
_.t._setSelectedItems=function(){};
_.t._setFocusedItem=function(){};
mbQ=_.DU({_template:function(){if(z$M!==void 0)return z$M;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
var Z=L.content,N=Z.insertBefore;pnt===void 0&&(pnt=document.createElement("template"));var S=pnt;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return z$M=L},
is:"tp-yt-paper-listbox",behaviors:[zxM],hostAttributes:{role:"listbox"}});var J45;var ClN;var r4L={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(L,Z){return[L||Z?"active":"",Z?"cooldown":""].join(" ")},
__activeChanged:function(L,Z){this.__setAriaHidden(!L);this.__coolingDown=!L&&Z},
__altChanged:function(L){this.setAttribute("aria-label",L||"loading")},
__setAriaHidden:function(L){L?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.DU({_template:function(){if(ClN!==void 0)return ClN;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;J45===void 0&&(J45=document.createElement("template"));var S=J45;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return ClN=L},
is:"tp-yt-paper-spinner",behaviors:[r4L]});var Q8t;var XnO;_.DU({_template:function(){if(XnO!==void 0)return XnO;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Q8t===void 0&&(Q8t=document.createElement("template"));var S=Q8t;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return XnO=L},
is:"tp-yt-paper-spinner-lite",behaviors:[r4L]});var A4t;var Hc0;_.DU({_template:function(){if(Hc0!==void 0)return Hc0;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;A4t===void 0&&(A4t=document.createElement("template"));var S=A4t;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return Hc0=L},
is:"tp-yt-paper-tab",behaviors:[_.Ya,_.IN.IronButtonState,Nf],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 L=_.g0(this).parentNode;return!!L&&!!L.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(L){if(this.link){var Z=this.queryEffectiveChildren("a");Z&&L.target!==Z&&Z.click()}}});var Bg5;var xbq;var q8O=_.sc(['<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>']),LBt=_.IUY(q8O);document.head.appendChild(LBt.content);_.DU({_template:function(){if(xbq!==void 0)return xbq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Bg5===void 0&&(Bg5=document.createElement("template"));var S=Bg5;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return xbq=L},
is:"tp-yt-paper-tabs",behaviors:[_.Eb,_.J9V],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(L){_.g0(this).querySelectorAll("tp-yt-paper-tab").forEach(L?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(L){L.setAttribute("noink","")},
_removeNoinkAttribute:function(L){L.removeAttribute("noink")},
_computeScrollButtonClass:function(L,Z,N,S){return!Z||N?"hidden":L?S?"hidden":"not-visible":""},
_computeTabsContentClass:function(L,Z){var N="tabs-content";L&&(N+=" scrollable");if(!L||Z)N+=" fit-container";return N},
_computeSelectionBarClass:function(L,Z){var N="selection-bar";L?N+=" hidden":Z&&(N+=" align-bottom");return N},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(L){return""+L},
_onIronSelect:function(L){this._tabChanged(L.detail.item,this._previousTab);this._previousTab=L.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();_.jQ._activateHandler.apply(this,arguments)},
_scheduleActivation:function(L,Z){this._pendingActivationItem=L;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,Z)},
_delayedActivationHandler:function(){var L=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;L.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(L){L.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(L,Z){this.scrollable&&this._affectScroll(Z&&-Z.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(L){this.$.tabsContainer.scrollLeft+=L;L=this.$.tabsContainer.scrollLeft;this._leftHidden=L===0||this.hideScrollButtons;this._rightHidden=L===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(L,Z){if(L){var N=this.$.tabsContent.getBoundingClientRect(),S=N.width,u=L.getBoundingClientRect();N=u.left-N.left;this._pos={width:this._calcPercent(u.width,S),left:this._calcPercent(N,S)};if(this.noSlide||Z==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var T=Z.getBoundingClientRect();Z=this.items.indexOf(Z);L=this.items.indexOf(L);this.$.selectionBar.classList.add("expand");
L=Z<L;this._isRTL&&(L=!L);L?this._positionBar(this._calcPercent(u.left+u.width-T.left,S)-5,this._left):this._positionBar(this._calcPercent(T.left+T.width-u.left,S)-5,this._calcPercent(N,S)+5);this.scrollable&&this._scrollToSelectedIfNeeded(u.width,N)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(L,Z){Z-=this.$.tabsContainer.scrollLeft;Z<0?this.$.tabsContainer.scrollLeft+=Z:(Z+=L-this.$.tabsContainer.offsetWidth,Z>0&&(this.$.tabsContainer.scrollLeft+=Z))},
_calcPercent:function(L,Z){return 100*L/Z},
_positionBar:function(L,Z){L=L||0;Z=Z||0;this._width=L;this._left=Z;this.transform("translateX("+Z+"%) scaleX("+L/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var L=this.$.selectionBar.classList;L.contains("expand")?(L.remove("expand"),L.add("contract"),this._positionBar(this._pos.width,this._pos.left)):L.contains("contract")&&L.remove("contract")}});var ZL5;var Npq;_.DU({_template:function(){if(Npq!==void 0)return Npq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;ZL5===void 0&&(ZL5=document.createElement("template"));var S=ZL5;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return Npq=L},
is:"tp-yt-paper-textarea",behaviors:[UbM,_.dE],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(L){this.$.input.textarea.selectionStart=L},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(L){this.$.input.textarea.selectionEnd=L},_ariaLabelledByChanged:function(L){this._focusableElement.setAttribute("aria-labelledby",L)},
_ariaDescribedByChanged:function(L){this._focusableElement.setAttribute("aria-describedby",L)},
get _focusableElement(){return this.inputElement.textarea}});var StQ;var iLt;/*

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 uGV=function(){};
_.t=uGV.prototype;_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t._tapHandler=function(){};
_.t._focusChanged=function(){};
_.t._detectKeyboardFocus=function(){};
_.t._userActivate=function(){};
_.t._upHandler=function(){};
_.t._spaceKeyDownHandler=function(){};
_.t._spaceKeyUpHandler=function(){};
_.t._asyncClick=function(){};
_.t._pressedChanged=function(){};
_.t._ariaActiveAttributeChanged=function(){};
_.t._activeChanged=function(){};
_.t._controlStateChanged=function(){};
_.t._changedButtonState=function(){};
_.t._focusBlurHandler=function(){};
_.t._disabledChanged=function(){};
_.t._changedControlState=function(){};
_.t._downHandler=function(){};
_.t.ensureRipple=function(){};
_.t.getRipple=function(){};
_.t.hasRipple=function(){};
_.t._noinkChanged=function(){};
_.t._focusedChanged=function(){};
_.t.registered=function(){};
_.t._invalidChanged=function(){};
_.t.hasValidator=function(){};
_.t.validate=function(){};
_.t._getValidity=function(){};
_.t._requiredChanged=function(){};
_.t._valueChanged=function(){};
_.t._checkedChanged=function(){};
_.t._buttonStateChanged=function(){};
_.t._setPressed=function(){};
_.t._setPointerDown=function(){};
_.t._setReceivedFocusFromKeyboard=function(){};
_.t._setFocused=function(){};
uGV=_.DU({is:"tp-yt-paper-toggle-button",_template:function(){if(iLt!==void 0)return iLt;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;StQ===void 0&&(StQ=document.createElement("template"));var S=StQ;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return iLt=L},
behaviors:[_.xYV],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");_.bN(this,function(){_.Xl(this,"pan-y")})},
_ontrack:function(L){L=L.detail;L.state==="start"?this._trackStart(L):L.state==="track"?this._trackMove(L):L.state==="end"&&this._trackEnd(L)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(L){L=L.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+L:L)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+L:L));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 L=Nf._createRipple();L.id="ink";L.setAttribute("recenters","");L.classList.add("circle","toggle-ink");return L}});var TpV;var t7M;_.DU({_template:function(){if(t7M!==void 0)return t7M;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;TpV===void 0&&(TpV=document.createElement("template"));var S=TpV;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return t7M=L},
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 L=_.g0(this).parentNode,Z=_.g0(this).getOwnerRoot(),N;this.for?N=_.g0(Z).querySelector("#"+this.for):N=L.nodeType==Node.DOCUMENT_FRAGMENT_NODE?Z.host:L;return N},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(L){L==="entry"?this.show():L==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.g0(this).textContent.trim()===""){for(var L=!0,Z=_.g0(this).getEffectiveChildNodes(),N=0;N<Z.length;N++)if(Z[N].textContent.trim()!==""){L=!1;break}if(L)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 L=this.offset;this.marginTop!=14&&this.offset==14&&(L=this.marginTop);var Z=this.offsetParent.getBoundingClientRect(),N=this._target.getBoundingClientRect(),S=this.getBoundingClientRect(),u=(N.width-S.width)/2,T=(N.height-S.height)/2,W=N.left-Z.left,V=N.top-Z.top;switch(this.position){case "top":var M=W+u;var G=V-S.height-L;break;case "bottom":M=W+u;G=V+N.height+L;break;case "left":M=W-S.width-L;G=V+T;break;case "right":M=W+N.width+
L,G=V+T}this.fitToVisibleBounds?(Z.left+M+S.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,M)+"px",this.style.right="auto"),Z.top+G+S.height>window.innerHeight?(this.style.bottom=Z.height+"px",this.style.top="auto"):(this.style.top=Math.max(-Z.top,G)+"px",this.style.bottom="auto")):(this.style.left=M+"px",this.style.top=G+"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(L){L!==500&&this.updateStyles({"--paper-tooltip-delay-in":L+"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(L){if(L==="entry"&&this.animationEntry!=="")return this.animationEntry;if(L==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[L]&&typeof this.animationConfig[L][0].name==="string"){if(this.animationConfig[L][0].timing&&this.animationConfig[L][0].timing.delay&&this.animationConfig[L][0].timing.delay!==0){var Z=this.animationConfig[L][0].timing.delay;L==="entry"?this.updateStyles({"--paper-tooltip-delay-in":Z+"ms"}):L==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":Z+
"ms"})}return this.animationConfig[L][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 OL0=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(OL0,_.On);var WBq=_.l9(OL0,[0,_.xT]);var uk=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(uk,_.On);var V7M=[3,4],bLM=[5,6];var M70=[0,V7M,bLM,_.Zw,-1,_.A5,_.Nb,-1,o5Y,Rvl];var gW0=_.l9(uk,M70),GQV=_.v6(M70);var FBt=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(FBt,_.On);var $6h=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f($6h,_.On);var D6t=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(D6t,_.On);var l3L=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(l3L,_.On);var vWN=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(vWN,_.On);var TK=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(TK,_.On);TK.prototype.getSource=function(){return _.oA(this,1)};
TK.prototype.getMessage=function(){return _.va(this,4)};
TK.prototype.getData=function(){return _.lp(this,vWN,8)};var oWL=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(oWL,_.On);var tc=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(tc,_.On);var OF=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(OF,_.On);var Wb=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Wb,_.On);Wb.prototype.getUrl=function(){return _.va(this,1)};
Wb.prototype.setUrl=function(L){return _.dF(this,1,L)};
Wb.prototype.hasUrl=function(){return _.K8(_.t5(this,1))!=null};var RX5=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(RX5,_.On);var cLI=[3];var nWL=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(nWL,_.On);var VY=function(L){var Z=new nWL;return _.vx(Z,2,L)};
nWL.prototype.getLanguage=function(){return ca(this,4,bk)};
var KBQ=function(L){var Z=VY(1);return _.kV(Z,6,bk,L)},bk=[3,
4,5,6];var f3Y=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(f3Y,_.On);var Mf=function(L){var Z=new f3Y;return _.vx(Z,1,L)},gf=function(L,Z){return _.kV(L,2,kQY,Z)},kQY=[2,
3,4,5];var yLN=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(yLN,_.On);var GK=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(GK,_.On);var wFl=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(wFl,_.On);var U6O=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(U6O,_.On);var Yt5=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Yt5,_.On);var eXl=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(eXl,_.On);var I35=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(I35,_.On);var FN=function(L){return _.lp(L,OF,5)};var d65=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(d65,_.On);d65.prototype.getValue=function(){return Di(this,1)};var a3Y=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(a3Y,_.On);var $Z=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f($Z,_.On);$Z.prototype.getMetadata=function(){return _.f5(this,Yt5,7,Ds)};
$Z.prototype.hasMetadata=function(){return _.Wa(this,Yt5,7,Ds)};
var hXY=_.X6A($Z),Ds=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var lk=function(L){this.JSC$12176_name_=L;this.files_=[];this.directories_=[];this.directoryMap_={}};
lk.prototype.getName=function(){return this.JSC$12176_name_};var ow=function(L,Z){this.callback_=Z;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new lk("");sTV(this,L,this.rootDirectory_);vb(this)},sTV=function(L,Z,N){for(var S=0;S<Z.length;S++){var u=Z[S];
u.isFile?(L.fileOps_++,u.file((0,_.hr)(L.handleFileSuccess_,L,N),(0,_.hr)(L.handleFileError_,L))):L.unscannedDirectories_.push(new jTM(u,N))}},vb=function(L){if(L.unscannedDirectories_.length>0&&L.directoryOps_<5&&!L.hasError_){L.directoryOps_++;
var Z=L.unscannedDirectories_.shift(),N=Z.entry,S=new lk(N.name);Z=Z.parent;Z.directoryMap_[S.getName()]=S;Z.directories_.push(S);N=N.createReader();N.readEntries((0,_.hr)(L.handleDirectorySuccess_,L,N,S),(0,_.hr)(L.handleDirectoryError_,L))}L.directoryOps_!=0||L.fileOps_!=0||L.unscannedDirectories_.length!=0&&!L.hasError_||L.callback_(L.rootDirectory_.files_,L.rootDirectory_.directories_,L.hasError_)};
ow.prototype.handleDirectorySuccess_=function(L,Z,N){sTV(this,N,Z);N.length==0?(this.directoryOps_--,vb(this)):L.readEntries((0,_.hr)(this.handleDirectorySuccess_,this,L,Z),(0,_.hr)(this.handleDirectoryError_,this))};
ow.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;vb(this)};
ow.prototype.handleFileSuccess_=function(L,Z){L.files_.push(Z);this.fileOps_--;vb(this)};
ow.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;vb(this)};
var jTM=function(L,Z){this.entry=L;this.parent=Z};var Rw=function(L){_.Kc.call(this);_.Gl(L,"drop",this.onObjectsDropped_,!1,this);_.Gl(L,"dragenter",this.onFilesDragged_,!1,this);_.Gl(L,"dragover",this.onFilesDragged_,!1,this);_.Gl(L,"dragleave",this.onDragLeave_,!1,this);_.Gl(L,"dragend",this.onDragLeave_,!1,this)};
_.Qk(Rw,_.Kc);var EWl=function(L,Z){_.vn.call(this,"f");this.files=L;this.directories=Z};
_.Qk(EWl,_.vn);var PxM=function(){_.vn.call(this,"h")};
_.Qk(PxM,_.vn);var pFs=function(){_.vn.call(this,"i")};
_.Qk(pFs,_.vn);var zXh=function(){_.vn.call(this,"g")};
_.Qk(zXh,_.vn);Rw.prototype.onObjectsDropped_=function(L){var Z=this;L.preventDefault();var N=L.event_.dataTransfer;if((L=N&&N.items)&&L.length>0&&L[0].webkitGetAsEntry){N=[];for(var S=[],u=0;u<L.length;u++){var T=L[u].webkitGetAsEntry();T?N.push(T):S.push(L[u])}new ow(N,function(W,V,M){M?Z.dispatchEvent(new zXh("Error occurred while reading from the file system.")):Z.dispatchEvent(new EWl(W,V,S))})}else(L=N&&N.files)&&this.dispatchEvent(new EWl(Array.from(L),[]))};
Rw.prototype.onFilesDragged_=function(L){L.type==="dragenter"&&this.dispatchEvent(new PxM);L.preventDefault()};
Rw.prototype.onDragLeave_=function(){this.dispatchEvent(new pFs)};var m6Y=function(L,Z){this.JSC$12199_name_=L;this.inputElement_=Z};
m6Y.prototype.getName=function(){return this.JSC$12199_name_};
m6Y.prototype.getInputElement=function(){return this.inputElement_};var cb=function(L,Z,N){Z=Z===void 0?"single_file":Z;N=N===void 0?[]:N;_.Kc.call(this);this.overlayTarget_=L;this.parentOverlay_=L!=null?L.parentNode:_.wZ("scotty-overlay-parent");this.selectorType_=Z;this.acceptTypes_=N;this.overlay_=JLY(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.f(cb,_.Kc);
var JLY=function(L,Z,N,S){var u=document.createElement("input");u.setAttribute("type","file");u.setAttribute("name","Filedata");_.Gl(u,"change",L.onFilesSelected_,!1,L);N==="multiple_file"&&(u.multiple="true");N==="single_directory"&&(u.webkitdirectory="true");S.length>0&&u.setAttribute("accept",S.join(","));u.style.position="absolute";u.style.overflow="hidden";u.style.height="0px";u.style.width="0px";u.style.opacity="0";u.setAttribute("aria-hidden","true");u.setAttribute("tabIndex",-1);if(L.overlayTarget_!=
null)return u.style.height=Z.offsetHeight+"px",u.style.width=Z.offsetWidth+"px",L.parentOverlay_&&(L.parentOverlay_.style.position="relative"),_.dI(u,Z),Pz(u,new _.zF(Z.offsetLeft,Z.offsetTop)),u;L.parentOverlay_.appendChild(u);return u};
cb.prototype.click=function(){this.overlay_.click()};
cb.prototype.onFilesSelected_=function(L){a:{try{var Z=(new XMLHttpRequest).upload!==void 0;break a}catch(G){}Z=!1}if(Z){var N;L=Array.from((N=L.target.files)!=null?N:[]);N=[];if(this.selectorType_==="single_directory"&&(_.qH||Wx||_.xM)){N=new lk("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(Z=0;Z<L.length;Z++)for(var S=L[Z],u=S.webkitRelativePath.split("/"),T=N,W=0;W<u.length;W++){var V=u[W];if(W==u.length-1){V!="."&&T.files_.push(S);break}var M=T.directoryMap_[V];M==void 0&&(V=
M=new lk(V),T.directoryMap_[V.getName()]=V,T.directories_.push(V));T=M}N=N.directories_}this.dispatchEvent(new CxQ(L,N,null))}else L=L.target.value,L.match(/^c:\\fakepath\\/i)&&(L=L.substring(12)),this.dispatchEvent(new CxQ([],[],new m6Y(L,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=JLY(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var CxQ=function(L,Z){_.vn.call(this,"j");this.files=L;this.directories=Z};
_.f(CxQ,_.vn);var rLY=function(L){this.uploadUrl_=L};var QTh=function(){_.Kc.call(this)};
_.Qk(QTh,_.Kc);var nT=function(L){_.vn.call(this,L)};
_.Qk(nT,_.vn);var KT=function(L){_.vn.call(this,L)};
_.Qk(KT,_.vn);var XF0=function(L,Z,N,S,u){_.Kc.call(this);N=document.createElement("form");N.setAttribute("method",Z);N.setAttribute("enctype","multipart/form-data");N.setAttribute("encoding","multipart/form-data");Z=document.createElement("input");Z.setAttribute("type","hidden");Z.setAttribute("name","metadata");Z.setAttribute("value",u);N.appendChild(Z);N.appendChild(S);this.JSC$12216_form_=N;L=new _.j9(L);_.Z4(L,"upload_protocol","multipart");this.JSC$12216_url_=L.toString();this.JSC$12216_request_=new Ob;this.state_=
"Ready";this.JSC$12216_errorDescription_=null;this.JSC$12216_eventHandler_=new _.oM(this);_.Ky(this,this.JSC$12216_eventHandler_);this.JSC$12216_eventHandler_.listen(this.JSC$12216_request_,"success",this.onTransferSuccess_);this.JSC$12216_eventHandler_.listen(this.JSC$12216_request_,"error",this.onTransferError_)};
_.f(XF0,QTh);_.t=XF0.prototype;_.t.run=function(){this.state_="Transferring";var L=this.JSC$12216_request_,Z=this.JSC$12216_form_;if(L.JSC$11484_active_)throw Error("ue");var N=new _.j9(this.JSC$12216_url_||Z.action);L.JSC$11484_form_=Z;Z=L.JSC$11484_form_;N=_.rw(N.toString());N!==void 0&&(Z.action=N);Zmh(L)};
_.t.getResponseCode=function(){return null};
_.t.getResponseText=function(){return this.JSC$12216_request_&&this.JSC$12216_request_.getResponseText()||null};
_.t.JSC$29730_getErrorDescription=function(){return this.JSC$12216_errorDescription_};
_.t.cancel=function(){this.JSC$12216_request_&&this.JSC$12216_request_.abort();this.state_="Cancelled";this.dispatchEvent(new nT("o"))};
_.t.pause=function(){};
_.t.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new nT("l"))};
_.t.onTransferError_=function(){this.JSC$12216_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new nT("n"))};var fT=function(){_.I8.call(this)};
_.f(fT,_.I8);fT.prototype.createXhr=function(){var L=_.I8.prototype.createXhr.call(this);L.upload&&(L.upload.onprogress=(0,_.hr)(this.onProgress_,this));return L};
fT.prototype.onProgress_=function(L){this.dispatchEvent(L)};var ALO=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},Bp0=function(L,Z){var N=L.attempt_+1;
if(L.maxAttempts_>0&&N>L.maxAttempts_)return!1;N==0?Z():L.delayCallId_=U8(function(){L.delayCallId_=null;Z()},HLY(L),L);
L.attempt_=N;return!0};
ALO.prototype.reset=function(){this.delayCallId_&&_.iH.clearTimeout(this.delayCallId_);this.attempt_=-1};
var HLY=function(L){var Z=250*Math.pow(2,L.attempt_);L.maxDelayMs_>=0&&(Z=Math.min(Z,L.maxDelayMs_));return Z};var wLf=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var kZ=function(){_.Kc.call(this);this.JSC$12226_request_=this.state_=null;this.JSC$12226_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12226_bytesTransferred_=0;this.retryIterator_=new ALO;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12226_errorDescription_=null;this.JSC$12226_eventHandler_=new _.oM(this);_.Ky(this,this.JSC$12226_eventHandler_);this.JSC$12226_url_=this.blob_=null;this.JSC$12226_method_=void 0;this.chunkSize_=this.JSC$12226_metadata_=
this.JSC$12226_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12226_responseText_=this.JSC$12226_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Qk(kZ,QTh);_.t=kZ.prototype;_.t.run=function(){yY(this)};
_.t.getResponseCode=function(){return this.JSC$12226_responseCode_};
_.t.getResponseText=function(){return this.JSC$12226_responseText_};
_.t.JSC$29730_getErrorDescription=function(){return this.JSC$12226_errorDescription_};
_.t.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12226_eventHandler_.removeAll();this.JSC$12226_request_&&this.JSC$12226_request_.abort();this.retryIterator_.reset();var L=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(L==="Upload"||L==="Query")L=new fT,L.JSC$9795_withCredentials_=this.JSC$12226_withCredentials_,L.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12226_bytesTransferred_=
0;this.dispatchEvent(new nT("o"))}};
_.t.pause=function(){this.pauseRequested_=!0};
var yY=function(L){var Z=L.state_;L.pauseRequested_?(L.pauseRequested_=!1,L.stateAfterUnpausing_=Z,L.state_="Paused"):Bp0(L.retryIterator_,function(){switch(L.state_){case "Start":L.JSC$12226_request_=new fT;var N=_.Py.clone(L.JSC$12226_headers_);L.blob_.size!=null&&(N["Content-Length"]=L.blob_.size);N=U9h(N);N["X-Goog-Upload-Protocol"]="resumable";N["X-Goog-Upload-Command"]="start";L.JSC$12226_eventHandler_.removeAll();L.JSC$12226_eventHandler_.listen(L.JSC$12226_request_,"complete",L.onStartComplete_);
L.JSC$12226_request_.JSC$9795_withCredentials_=L.JSC$12226_withCredentials_;L.JSC$12226_request_.send(L.JSC$12226_url_,L.JSC$12226_method_,L.JSC$12226_metadata_,N);L.lastCommandResponseCode_=null;L.dispatchEvent(new KT("q"));break;case "Upload":N=L.transferHandle_.uploadUrl_;var S=L.blob_.size;if(YoO()){var u=L.chunkSize_;var T=L.offset_+u>=S;S=U2I(L.blob_,L.offset_,T?S:L.offset_+u)}else L.offset_=0,S=L.blob_,T=!0;L.JSC$12226_request_=new fT;L.JSC$12226_request_.JSC$9795_withCredentials_=L.JSC$12226_withCredentials_;
L.JSC$12226_eventHandler_.removeAll();L.JSC$12226_eventHandler_.listen(L.JSC$12226_request_,"progress",L.onUploadProgress_);u=(0,_.hr)(L.JSC$12228_onUploadComplete_,L,L.offset_+S.size,T);L.JSC$12226_eventHandler_.listen(L.JSC$12226_request_,"complete",u);L.lastCommandResponseCode_=null;L.dispatchEvent(new KT("q"));T=Object.assign({},L.JSC$12226_headers_||{},{"X-Goog-Upload-Command":"upload"+(T?", finalize":""),"X-Goog-Upload-Offset":L.offset_});L.JSC$12226_request_.send(N,"POST",S,T);break;case "Query":L.JSC$12226_request_=
new fT;L.JSC$12226_eventHandler_.removeAll();L.JSC$12226_eventHandler_.listen(L.JSC$12226_request_,"complete",L.onQueryComplete_);N=Object.assign({},L.JSC$12226_headers_||{},{"X-Goog-Upload-Command":"query"});L.JSC$12226_request_.send(L.transferHandle_.uploadUrl_,"POST","",N);L.lastCommandResponseCode_=null;L.dispatchEvent(new KT("q"));break;default:throw Error("mf");}})||wf(L,"Transfer encountered too many consecutive failures.")},wf=function(L,Z){L.state_="Error";
L.JSC$12226_errorDescription_=Z;L.dispatchEvent(new nT("n"))};
kZ.prototype.onStartComplete_=function(L){var Z=L.target;this.lastCommandResponseCode_=Z.getStatus();this.dispatchEvent(new KT("r"));if(x6Y(Z))qtV(this,Z);else if(LCY(Z)){L=Ts(L.target.getAllResponseHeaders());for(var N in L)_.TB(N.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new nT("m"));N=FJ(L,"X-Goog-Upload-URL");L=(L=FJ(L,"X-Goog-Upload-Chunk-Granularity"))?parseInt(L,10):1;N===void 0||isNaN(L)||L<=0?wf(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
L)*L,this.transferHandle_=new rLY(N),this.dispatchEvent(new nT("p")),this.state_="Upload",this.retryIterator_.reset(),yY(this))}else yY(this)};
kZ.prototype.onUploadProgress_=function(L){this.JSC$12226_bytesTransferred_=this.offset_+L.loaded;this.dispatchEvent(new nT("k"))};
kZ.prototype.JSC$12228_onUploadComplete_=function(L,Z,N){var S=this,u,T;return _.b(function(W){switch(W.nextAddress){case 1:u=N.target;S.lastCommandResponseCode_=u.getStatus();S.dispatchEvent(new KT("r"));if(Z2Y(u)||u.getStatus()==404)return S.JSC$12226_bytesTransferred_=L,qtV(S,u),W.return();if(LCY(u)){W.jumpTo(2);break}if(!(T=S.detectCorruptedBlobEnabled_)){W.jumpTo(3);break}return W.yield(N1V(S),4);case 4:T=W.yieldResult;case 3:if(T)return wf(S,"Blob has been modified or corrupted."),W.return();
S.requireUploadRequestModification_=u.getStatus()==400;S.state_="Query";yY(S);return W.return();case 2:if(Z)return wf(S,"Got a non-final success response after issuing a finalize command."),W.return();S.JSC$12226_bytesTransferred_=L;S.offset_=L;S.retryIterator_.reset();yY(S);return W.return()}})};
kZ.prototype.onQueryComplete_=function(L){var Z=L.target;this.lastCommandResponseCode_=Z.getStatus();this.dispatchEvent(new KT("r"));x6Y(Z)?(Z.getStatus()===200&&(this.JSC$12226_bytesTransferred_=this.blob_.size),qtV(this,Z)):LCY(Z)?(L=Ts(L.target.getAllResponseHeaders()),L=parseInt(FJ(L,"X-Goog-Upload-Size-Received"),10),isNaN(L)?wf(this,"Server did not respond with current offset."):L<this.offset_?wf(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
L+"."):this.requireUploadRequestModification_&&this.offset_===L?wf(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<L&&this.retryIterator_.reset(),this.offset_=this.JSC$12226_bytesTransferred_=L,this.state_="Upload",yY(this))):yY(this)};
var qtV=function(L,Z){L.JSC$12226_responseCode_=Z.getStatus();var N=Ts(Z.getAllResponseHeaders());Yex(N);L.JSC$12226_responseText_=Z.getResponseText();L.state_="Response received";L.dispatchEvent(new nT("l"))},LCY=function(L){var Z=L.getStatus();
L=Ts(L.getAllResponseHeaders());L=FJ(L,"X-Goog-Upload-Status");return Z===200&&L==="active"},Z2Y=function(L){L=Ts(L.getAllResponseHeaders());
return FJ(L,"X-Goog-Upload-Status")==="final"},x6Y=function(L){if(Z2Y(L))return!0;
L=L.getStatus();return L>=400&&L<500},N1V=function(L){var Z;
return _.b(function(N){if(N.nextAddress==1){if(!L.blob_||L.originalBlobSize_<=0)return N.return(!1);if(L.blob_.size!==L.originalBlobSize_)return N.return(!0);_.RS(N,2);if(Z=U2I(L.blob_,0,1)){var S=N.yield,u=new C6,T=Mwh(u);u.reader_.readAsBinaryString(Z);N=S.call(N,T,4)}else N=N.return(!0);return N}if(N.nextAddress!=2)return N.return(L.blob_.size!==L.originalBlobSize_);_.yd(N);return N.return(!0)})};var S4O=function(L,Z,N,S,u,T){_.Kc.call(this);this.payload_=S;this.JSC$12229_url_=L;this.JSC$12229_method_=Z;this.JSC$12229_headers_=N;this.JSC$12229_metadata_=u;this.encoding_=T||"binary";L=new _.YU;this.boundary_="uploader-"+x$()+"-"+L.JSC$11333_toIsoString();this.JSC$12229_responseText_=this.JSC$12229_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12229_errorDescription_=null;this.JSC$12229_eventHandler_=new _.oM(this);_.Ky(this,this.JSC$12229_eventHandler_)};
_.f(S4O,QTh);_.t=S4O.prototype;
_.t.run=function(){var L=_.Py.clone(this.JSC$12229_headers_);this.payload_.length!=null&&(L["Content-Length"]=this.payload_.length);L=U9h(L);L["X-Goog-Upload-Protocol"]="multipart";L["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new fT;this.JSC$12229_eventHandler_.removeAll();this.JSC$12229_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12229_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12229_url_,this.JSC$12229_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12229_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",L)};
_.t.getResponseCode=function(){return this.JSC$12229_responseCode_};
_.t.getResponseText=function(){return this.JSC$12229_responseText_};
_.t.JSC$29730_getErrorDescription=function(){return this.JSC$12229_errorDescription_};
_.t.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12229_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new nT("o")))};
_.t.pause=function(){};
_.t.onTransferProgress_=function(){this.dispatchEvent(new nT("k"))};
_.t.onTransferComplete_=function(L){var Z=L.target.getStatus();Z===void 0||Z===-1?(this.JSC$12229_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new nT("n"))):(this.JSC$12229_responseCode_=Z,L=L.target,Z=Ts(L.getAllResponseHeaders()),Yex(Z),this.JSC$12229_responseText_=L.getResponseText(),this.state_="Complete",this.dispatchEvent(new nT("l")))};_.i2h=function(L,Z,N,S){S=S===void 0?!1:S;if(N instanceof m6Y)return new XF0(L,"POST",Z,N.getInputElement(),"");if(typeof N==="string"||N instanceof String)return new S4O(L,"POST",Z,N,"");var u=new kZ(void 0);u.JSC$12226_url_=L;u.JSC$12226_method_="POST";u.JSC$12226_headers_=Z;u.blob_=N;u.originalBlobSize_=N.size;u.JSC$12226_metadata_="";S&&(u.JSC$12226_withCredentials_=S);u.state_="Start";return u};var UF=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(UF,_.On);_.t=UF.prototype;_.t.getEnableSsEngine=function(){return _.$T(this,2)};
_.t.getEnableAwr=function(){return _.$T(this,3)};
_.t.getAlohaAutoGaRollout=function(){return _.$T(this,5)};
_.t.getEnableConfigurator=function(){return _.$T(this,6)};
_.t.getEnableMweb=function(){return _.$T(this,7)};
var T1l=function(){var L=uDt();return _.DF(L,7,!0)};
UF.prototype.getEnableCtlConsentCheckbox=function(){return _.$T(this,8)};
UF.prototype.getEnableIframe=function(){return _.$T(this,9)};
var uDt=function(){var L=new UF;L=_.DF(L,5,!0);L=_.DF(L,2,!0);L=_.DF(L,4,!1);L=_.DF(L,8,!0);return _.DF(L,9,!0)};
UF.prototype.getEnableScreenshotNudge=function(){return _.$T(this,10)};
var t5I=function(){var L=T1l();return _.DF(L,10,!0)};
UF.prototype.getEnableWebStartupConfigEndpoint=function(){return _.$T(this,11)};
UF.prototype.getEnableJunkNudge=function(){return _.$T(this,12)};
var H61=function(){var L=t5I();return _.DF(L,12,!0)};
_.t=UF.prototype;_.t.getEnableConfiguratorLocale=function(){return _.$T(this,13)};
_.t.getEnableTinyNoPointer=function(){return _.$T(this,14)};
_.t.getEnableSupportSessionLogging=function(){return _.$T(this,15)};
_.t.getEnableFileUploadForScreenshot=function(){return _.$T(this,16)};
_.t.getEnableDirectDeflectionForSingleCategory=function(){return _.$T(this,17)};
_.t.getEnableImageSanitization=function(){return _.$T(this,18)};
_.t.getEnableAlohaBinarySplit=function(){return _.$T(this,19)};
_.t.getEnableDbFeedbackIntents=function(){return _.$T(this,20)};
_.t.getEnableMarkMandatoryFieldsWithRequired=function(){return _.$T(this,21)};
_.t.getEnableFeedbackCategoryCustomUi=function(){return _.$T(this,22)};
_.t.getEnableRealtimeCtl=function(){return _.$T(this,23)};var Ap_=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Ap_,_.On);var ey_=[/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 d91="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 aXF=_.sc(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),hyx=_.sc(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var j1x,pL_,EUh,zy0;var O20,WCN;
O20=function(L,Z,N){L.timeOfStartCall=(new Date).getTime();var S=N||_.iH,u=S.document,T=L.nonce||_.ZS(S.document);T&&!L.nonce&&(L.nonce=T);if(L.flow=="help"){var W=_.LZ("document.location.href",S);!L.helpCenterContext&&W&&(L.helpCenterContext=W.substring(0,1200));W=!0;if(Z&&JSON&&JSON.stringify){var V=JSON.stringify(Z);(W=V.length<=1200)&&(L.psdJson=V)}W||(Z={invalidPsd:!0})}Z=[L,Z,N];S.GOOGLE_FEEDBACK_START_ARGUMENTS=Z;N=L.feedbackServerUri||"//www.google.com/tools/feedback";if(W=S.GOOGLE_FEEDBACK_START)W.apply(S,Z);
else{S=N+"/load.js?";for(var M in L)Z=L[M],Z==null||_.Q_(Z)||(S+=encodeURIComponent(M)+"="+encodeURIComponent(Z)+"&");L=Im(u).createElement("SCRIPT");T&&L.setAttribute("nonce",T);_.TE(L,_.YV(S));u.body.appendChild(L)}};
WCN=function(L,Z,N,S){var u,T;_.b(function(W){u=N||_.iH;var V=L.serverEnvironment==="DEV",M=N||_.iH;M=L.nonce||_.ZS(M.document);V={integrationKeys:{productId:L.productId,feedbackBucket:L.bucket,triggerId:L.triggerId},callbacks:{onClose:L.callback,onLoad:L.onLoadCallback},formContent:{locale:L.locale,disableScreenshot:L.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:L.abuseLink,additionalDataConsent:L.additionalDataConsent},initializationData:{isLocalServer:V,nonce:M,useNightlyRelease:V,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:L.feedbackServerUri,colorScheme:L.colorScheme},extraData:{productVersion:L.productVersion,authUser:L.authuser,configuratorId:L.configuratorId,customZIndex:L.customZIndex,tinyNoPointer:L.tinyNoPointer,
allowNonLoggedInFeedback:L.allowNonLoggedInFeedback,enableAnonymousFeedback:L.enableAnonymousFeedback}};Z&&(M=new Map(Object.entries(Z)),V.extraData.productSpecificData=M);T=V;return W.yield(rp1(T,S,u),0)})};
_.V5h=function(L,Z,N){try{if(L.flow==="help"){var S=L.helpCenterPath.replace(/^\//,"");_.Ls(N||window,"https://support.google.com/"+S)}else L.flow==="submit"?O20(L,Z,N):BS0(L.productId,L.feedbackServerUri).then(function(u){u=_.lp(u,UF,1);var T=!jFQ||(u==null?void 0:u.getEnableMweb()),W=!L.tinyNoPointer||(u==null?void 0:u.getEnableTinyNoPointer());!u||u.getAlohaAutoGaRollout()&&T&&W?WCN(L,Z,N,u):O20(L,Z,N)},function(u){u&&u.name!=="DuplicateFormError"&&O20(L,Z,N)})}catch(u){WCN(L,Z,N,null)}};
_.bp("userfeedback.api.startFeedback",_.V5h);var x9_=/https?:\/\/\S+\.\S+/,qeL=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],LPs=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var dhs=function(L){var Z=L.split(""),N=[-263237435,15,Z,function(S,u,T){var W=u.length;T.forEach(function(V,M,G){this.push(G[M]=u[(u.indexOf(V)-u.indexOf(this[M])+M+W--)%u.length])},S.split(""))},
function(S,u){S=(S%u.length+u.length)%u.length;u.splice(-S).reverse().forEach(function(T){u.unshift(T)})},
"response",function(){for(var S=64,u=[];++S-u.length-32;){switch(S){case 58:S-=14;case 91:case 92:case 93:continue;case 123:S=47;case 94:case 95:case 96:continue;case 46:S=95}u.push(String.fromCharCode(S))}return u},
null,12,1540023973,65941107,null,Z,function(S,u){for(S=(S%u.length+u.length)%u.length;S--;)u.unshift(u.pop())},
695603893,function(S){for(var u=S.length;u;)S.push(S.splice(--u,1)[0])},
"'[;'[(",function(S,u){S.push(u)},
null,function(S,u,T,W,V){return u(T,W,V)},
"continuation",Z,function(S,u){if(S.length!=0){u=(u%S.length+S.length)%S.length;var T=S[0];S[0]=S[u];S[u]=T}},
function(){for(var S=64,u=[];++S-u.length-32;){switch(S){case 91:S=44;continue;case 123:S=65;break;case 65:S-=18;continue;case 58:S=96;continue;case 46:S=95}u.push(String.fromCharCode(S))}return u},
'"),/]];'];N[7]=N;N[11]=N;N[18]=N;try{(((0,N[15])(N[21]),N[22])(N[11],N[9]),N[22])(N[new Date("1970-01-01T04:30:12.000+04:30")/1E3],N[1]),((0,N[22])(N[11],N[23]),N[4])(N[10],N[18]),(0,N[20])(N[21],N[14])<<(0,N[17])(N[18],N[1]),(0,N[4])(N[8],N[21]),(0,N[19])((0,N[19])((0,N[17])(N[7],N[9]),N[3],N[20],(0,N[6])(),N[2]),N[3],N[5],(0,N[15])(),N[2])}catch(S){return"aTlOUOubTO4AP____8P_"+L}return Z.join("")};_.b2s=new _.S5("runAttestationCommand");var M5I=new _.S5("verifyCommand");_.Oi=new _.S5("accessibilityContext");var gFN=new _.S5("accessibilityData");var GAM=new _.S5("profileCardCommand");var Yuw=new _.S5("signInEndpoint");var UyB=new _.S5("signOutEndpoint");var $XN;_.FCI=new _.S5("accountItemSectionRenderer");$XN=new _.S5("accountItemRenderer");_.DXL=new _.S5("saveCommandToSessionStorageAction");var lQh=new _.S5("crossAccountChannelTransferEndpoint");var cTt=new _.S5("getAccountMenuEndpoint");_.nyG=new _.S5("getAccountSwitcherEndpoint");var RSF=new _.S5("getAccountsListEndpoint");var vFQ=new _.S5("getAccountsListInnertubeEndpoint");_.oFl=new _.S5("addToToastAction");var Rkl=new _.S5("hideEnclosingAction");_.YZ=new _.S5("replaceEnclosingAction");var cvh=new _.S5("buttonRefreshAction");var nFM=new _.S5("adsControlFlowOpportunityReceivedCommand");var KCN=new _.S5("openAdAllowlistInstructionCommand");var fQh=new _.S5("videoMastheadAdPrimaryVideoRenderer");var kA5=new _.S5("displayAdRenderer");_.yvM=new _.S5("inFeedAdLayoutRenderer");var wcO=new _.S5("sequenceItemInPlayerAdLayoutRenderer");_.UXl=new _.S5("adSlotRenderer");var Y4O=new _.S5("adAvatarViewModel");var ek0=new _.S5("adBadgeViewModel");var IQN=new _.S5("adButtonViewModel");var dXQ=new _.S5("adImageViewModel");var XrF=new _.S5("reelsAdCardButtonedViewModel");var aQM=new _.S5("reelsPlayerOverlayLayoutViewModel");var hkL=new _.S5("updateConversationIdCommand");var sy5=new _.S5("showSchedulingPanelCommand");var jyV=new _.S5("backstageCommentsRenderer");var EFV=new _.S5("backstageImageRenderer");var PYt=new _.S5("backstagePostRenderer");var pc5=new _.S5("backstageZeroStateRenderer");var zkt=new _.S5("postRenderer");var mXV=new _.S5("sharedPostRenderer");var Jvl=new _.S5("createBackstagePostEndpoint");var CYs=new _.S5("getPostVideoPreviewEndpoint");var rvh=new _.S5("updateBackstagePostEndpoint");var Qyt=new _.S5("filterChipTransformCommand");var XcQ=new _.S5("insertRichSectionCommand");var tmA=new _.S5("talkToRecsDeselectCommand");var Vm1=new _.S5("talkToRecsNextCommand");var Tu0=new _.S5("talkToRecsSelectCommand");var Avq=new _.S5("talkToRecsUpdateTextCommand");_.iv=new _.S5("browseEndpoint");_.H25=new _.S5("confirmDialogEndpoint");var B1L=new _.S5("expandOnHoverCardRenderer");var xXO=new _.S5("lumiereShelfDetailsRenderer");var q45=new _.S5("revealBusinessEmailCommand");var LVh=new _.S5("validateChannelHandleCommand");var Z6q=new _.S5("channelCreationFormEndpoint");var NSQ=new _.S5("aboutChannelViewModel");var SeN=new _.S5("channelThumbnailWithLinkRenderer");var i6h=new _.S5("channelCreationServiceEndpoint");var uOL=new _.S5("updateChannelPageSettingsEndpoint");var ec=function(L){this.delegate=L},Iw=function(){ec.apply(this,arguments)};
_.f(Iw,ec);_.gd.Object.defineProperties(Iw.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(L){this.delegate.entityMetadata=L}}});var TSY=function(){Iw.apply(this,arguments)};
_.f(TSY,Iw);TSY.prototype.getAssociations=function(){return[]};
TSY.prototype.getTypeName=function(){return"channelHandle"};var f1h=new _.S5("webThumbnailDetailsExtensionData");var xSf=new _.S5("commandContext");var tRV=new _.S5("addVideoLinkAction");var O6t=new _.S5("banAuthorAction");var WV5=new _.S5("createCommentAction");var VRq=new _.S5("createCommentReplyAction");var b6l=new _.S5("createPollAction");var MR0=new _.S5("hideIdentityChipAction");var gU5=new _.S5("openUpdateCommentDialogAction");var Gbs=new _.S5("pinCommentAction");var FVt=new _.S5("removeCommentAction");var $9q=new _.S5("unpinCommentAction");var df=new _.S5("updateBackstagePollAction");var D9Y=new _.S5("updateCommentVoteAction");var lX5=new _.S5("commentThreadRenderer");var vUN=function(){Iw.apply(this,arguments)};
_.f(vUN,Iw);vUN.prototype.getAssociations=function(){return[]};
vUN.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var oUq=function(){Iw.apply(this,arguments)};
_.f(oUq,Iw);oUq.prototype.getAssociations=function(){return[]};
oUq.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.Rys=new _.S5("commentDialogRenderer");var cp0=new _.S5("reloadCommentsCommand");var nUY=new _.S5("updateCommentsSettingsEndpoint");var KVq=new _.S5("commentViewModel");var fXL=new _.S5("triStateButtonViewModel");var kb0=new _.S5("voiceReplyContainerViewModel");_.q2=new _.S5("commandExecutorCommand");var RX=new _.S5("emoji");var ypV=new _.S5("updateCreatorChannelInnertubeCommand");_.wLt=new _.S5("appendContinuationItemsAction");_.U9M=new _.S5("changeEngagementPanelVisibilityAction");_.k0=new _.S5("continuationCommand");var Yes=new _.S5("hideReportedCommentAction");var eyq=new _.S5("listMutationCommand");_.aw=new _.S5("openPopupAction");var IXN=new _.S5("persistSubscriptionsDisplayPreferencesCommand");var pLq;_.d90=new _.S5("playlistRemoveVideosAction");_.aXO=new _.S5("updatePlaylistAction");_.hys=new _.S5("addToPlaylistCommand");_.s15=new _.S5("endPlaylistCommand");_.j1s=new _.S5("recoverPlaylistCommand");_.EUM=new _.S5("refreshPlaylistCommand");_.PO0=new _.S5("refreshFormCommand");pLq=new _.S5("openOnePickAddVideoModalCommand");_.UAw=new _.S5("reloadContinuationItemsCommand");_.zyN=new _.S5("scrollToEngagementPanelCommand");var m9t=new _.S5("selectCountryCommand");var Jpt=new _.S5("showReloadUiCommand");var COq=new _.S5("undoFeedbackAction");var rp0=new _.S5("updateButtonAction");var Q1Y=new _.S5("updateSubscribeButtonAction");var XLM=new _.S5("updateToggleAction");var Apq=new _.S5("webNativeShareCommand");_.Nj=new _.S5("webCommandMetadata");_.hc=new _.S5("webHandleServiceEndpointExtension");var Rrx=new _.S5("webNavigationEndpointData");var H60=new _.S5("backgroundAudioPlaybackCommand");var BSN=new _.S5("copyLinkCommand");var x9q=new _.S5("playlistVotingRefreshPopupCommand");var qeI=new _.S5("selectChipCommand");var LPl=new _.S5("setCookieCommand");var ZON=new _.S5("setLocalStorageCommand");var NE5=new _.S5("setPrefStorageEntryCommand");var TEL;_.SbN=new _.S5("settingsUpdateCheckboxCommand");_.iON=new _.S5("settingsUpdateTextCommand");_.udl=new _.S5("settingsUpdateOptionsCommand");TEL=new _.S5("settingsUpdateSwitchCommand");_.tQs=new _.S5("settingsUpdateConnectedAppRendererCommand");var OO0=new _.S5("showCreatorChatbotEngagementPanelCommand");var WPO=new _.S5("updateTextInputFormFieldRendererCommand");var VQl=new _.S5("updateToggleButtonStateCommand");var bOO=new _.S5("updateUrlParamCommand");var MQY=new _.S5("webSubmitFormCommand");var gaL=new _.S5("channelSwitcherPageRenderer"),G_5=new _.S5("updateChannelSwitcherPageAction");_.Ei=new _.S5("continuationItemRenderer");_.sF=new _.S5("richItemRenderer");var FPl=new _.S5("richSectionRenderer");_.$Rs=new _.S5("richShelfRenderer");_.DRl=new _.S5("metadataBadgeRenderer");_.lc5=new _.S5("multiPageMenuNotificationSectionRenderer");_.vaL=new _.S5("playlistLoopButtonStateRenderer");var oa0=new _.S5("claimLegacyYoutubeChannelEndpoint");var RYY=new _.S5("getNotificationMenuEndpoint");var cwl=new _.S5("getSearchInVideoCommand");_.naq=new _.S5("getTranscriptEndpoint");_.ZW=new _.S5("signalServiceEndpoint");var KPY=new _.S5("verifyAgeEndpoint");var sGx=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(sGx,_.On);sGx.prototype.getPath=function(){return _.va(this,1)};
sGx.prototype.getValue=function(){return _.va(this,2)};var fc0=[0,_.J5,-1];var k_s=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(k_s,_.On);var hIH=_.l9(k_s,[0,_.XE,fc0]);var ywM=new _.S5("dismissalEndpoint");var wDI=new _.S5("elementsCommand");_.nY=new _.S5("innertubeCommand");var URl=new _.S5("multipleInlinePlaybackCommand");var ubx=new _.S5("loggingDirectives");var YbL=new _.S5("acknowledgeChannelTouStrikeCommand");var eYI=function(){Iw.apply(this,arguments)};
_.f(eYI,Iw);eYI.prototype.getAssociations=function(){return[]};
eYI.prototype.getTypeName=function(){return"booleanEntity"};var Ics=function(){Iw.apply(this,arguments)};
_.f(Ics,Iw);Ics.prototype.getAssociations=function(){return[]};
Ics.prototype.getTypeName=function(){return"stringEntity"};var jw=new _.S5("entityBatchUpdate");_.Wus=new _.S5("entityUpdateCommand");var dRq=function(){Iw.apply(this,arguments)};
_.f(dRq,Iw);dRq.prototype.getAssociations=function(){var L=[];this.delegate.alternateChannel&&L.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&L.push.apply(L,_.Pd(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&L.push(this.delegate.oneofChannelEntity);return[].concat(_.Pd(new Set(L)))};
dRq.prototype.getTypeName=function(){return"fakeChannel"};var acO=function(){Iw.apply(this,arguments)};
_.f(acO,Iw);acO.prototype.getAssociations=function(){var L=[];this.delegate.entryCollection&&L.push(this.delegate.entryCollection);return[].concat(_.Pd(new Set(L)))};
acO.prototype.getTypeName=function(){return"fakePlaylist"};
var hYl=function(){Iw.apply(this,arguments)};
_.f(hYl,Iw);hYl.prototype.getAssociations=function(){var L=[];this.delegate.parentPlaylist&&L.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var Z=_.O(this.delegate.entries),N=Z.next();!N.done;N=Z.next())L.push.apply(L,_.Pd((new sNl(N.value)).getAssociations()));return[].concat(_.Pd(new Set(L)))};
hYl.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var sNl=function(){ec.apply(this,arguments)};
_.f(sNl,ec);sNl.prototype.getAssociations=function(){var L=[];this.delegate.video&&L.push(this.delegate.video);return[].concat(_.Pd(new Set(L)))};var jNq=function(){Iw.apply(this,arguments)};
_.f(jNq,Iw);jNq.prototype.getAssociations=function(){var L=[];this.delegate.descriptionEntity&&L.push(this.delegate.descriptionEntity);this.delegate.creators&&L.push.apply(L,_.Pd(this.delegate.creators));this.delegate.theBiggestFan&&L.push(this.delegate.theBiggestFan);return[].concat(_.Pd(new Set(L)))};
jNq.prototype.getTypeName=function(){return"fakeVideo"};
var Ea0=function(){Iw.apply(this,arguments)};
_.f(Ea0,Iw);Ea0.prototype.getAssociations=function(){return[]};
Ea0.prototype.getTypeName=function(){return"fakeVideoDescription"};var P00=new _.S5("fantasyRosterViewModel");var pDq=new _.S5("addFollowUpSurveyCommand");var zYs=new _.S5("getSurveyCommand");var mR5=new _.S5("ratingSurveyOptionRenderer");_.Rj=new _.S5("feedbackEndpoint");var JwI=new _.S5("reportHistoryTableCellRenderer"),C0t=new _.S5("reportHistoryTableTextCellRenderer"),rwO=new _.S5("reportHistoryTableReasonCellRenderer");_.QNO=new _.S5("flagEndpoint");_.XDI=new _.S5("flowNextStepCommand");_.Awt=new _.S5("flowPrevStepCommand");var HO5=new _.S5("getFlowCommand");var BEV=new _.S5("submitFormWithValidationFlowCommand");_.xRM=new _.S5("updateFlowCommand");var qbO=function(){Iw.apply(this,arguments)};
_.f(qbO,Iw);qbO.prototype.getAssociations=function(){return[]};
qbO.prototype.getTypeName=function(){return"flowStateEntity"};var LZV=new _.S5("flowFormState");_.jc=new _.S5("flowStepRenderer");var ZTt=new _.S5("gameCardRenderer");var Nfs=new _.S5("accountLinkingStateChangedCommand");var SFN=function(){Iw.apply(this,arguments)};
_.f(SFN,Iw);SFN.prototype.getAssociations=function(){return[]};
SFN.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var iTt=new _.S5("changeMiniAppPlayStateCommand");var uNV=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(uNV,_.On);var EF=[1,2,3];var TfO=[0,EF,DcN,_.QM,Wk0];var tcs=_.l9(uNV,TfO),OTV=_.v6(TfO);var WZQ=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(WZQ,_.On);var VcN=[0,_.jd,_.J5];var bTY=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(bTY,_.On);var McO=[0,_.J5,_.jd,-1];var Pb=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Pb,_.On);var gZ5=_.v6([0,1,VcN,_.xT,McO]);var GK0=new _.S5("miniAppScoreChallengeViewModel");var FZN=new _.S5("miniGameCardViewModel");var $fs=new _.S5("teaserCardViewModel");var DfM=function(){Iw.apply(this,arguments)};
_.f(DfM,Iw);DfM.prototype.getAssociations=function(){return[]};
DfM.prototype.getTypeName=function(){return"logoEntity"};var ls0=new _.S5("feedbackItemRenderer");var vZQ=function(){Iw.apply(this,arguments)};
_.f(vZQ,Iw);vZQ.prototype.getAssociations=function(){return[]};
vZQ.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.oZh=new _.S5("playerInterstitialRenderer");var RoM=new _.S5("getKidsBlocklistPickerCommand");_.ccl=new _.S5("updateKidsBlacklistEndpoint");_.fm=new _.S5("likeEndpoint");var nZh,KZY,fsY;nZh=new _.S5("addChatItemAction");KZY=new _.S5("removeChatItemAction");fsY=new _.S5("markChatItemAsDeletedAction");_.kKt=new _.S5("setLiveChatCollapsedStateAction");var ycL=function(){Iw.apply(this,arguments)};
_.f(ycL,Iw);ycL.prototype.getAssociations=function(){return[]};
ycL.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var wbM=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(wbM,_.On);wbM.prototype.getPayloadCase=function(){return _.MQ(this,Ufl)};
var Ufl=[3,4];var YFt=[0,_.XE,[0,[1,2],_.QM,_.A5,[0,_.rK,1,_.rK]]];var eoN=[0,_.J5,-1];var Is5=[0,[1],_.QM];var pT=[0,[1,2],_.QM,_.A5,[0,_.xT]];var zK=[0,_.J5];var dfL=[0,[0,_.z5,_.p5,[0,_.rK,_.qQ,_.rK]],1,[0,_.z5]];var asl=[0,EW];var hoV=[0,EW];var swI=[0,hoV,asl];var jwq=[0,_.XE,[0,[1,2],_.QM,-1],_.z5];var EZq=[0,[2],1,_.A5,[0,_.rK,-1,jwq]];var PkO=[0,[1],_.A5,[0,_.rK,_.J5,_.qQ,1,jwq]];var pbQ=[0,_.p5,-1,O8Q,_.xT];var zot=[0,[0,sW,-3],-4];var mZ=[0,_.z5,-3,_.J5,_.z5,_.Zw,_.z5,YFt,_.z5,-2];var Jc=[0,_.XE,[0,[1,2],_.QM,-1],_.z5,_.J5];var mfM=[0,[3],pT,[0,[2,3,4],c0V,_.QM,-2],_.A5,[0,_.J5],_.jd];var JcV=[0,[3,5],_.J5,_.Pa,_.A5,[0,1,_.jd,_.xT],_.xT,_.A5,[0,_.xT,_.jd]];var Ckt=[0,2,_.Pa,_.J5,-1];var rcL=[0,Fkq];var QwI=[0,[3,4],2,b8V,_.QM,_.J5];var Xbh=[0,_.xT,-2,1,_.J5];var Acl=[0,_.J5,-1,_.xT];var HTl=[0,zK,function(){return CT},
zK,_.J5],BfL=[0,_.xT,zK,pT,function(){return CT},
_.J5],CT=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],zK,_.Pa,[0,_.z5,1,_.z5,1,_.z5,1,_.xT,-1,zK],[0,1,_.z5,2,_.z5,_.xT,_.z5],1,_.Pa,-1,_.J5,_.Pa,2,sW,[0,sW,_.Pa],_.J5,1,dfL,1,pT,_.Zw,1,[0,[0,_.XE,[0,_.J5,_.z5,_.xT]]],[0,_.z5,[0,_.jd,[0,_.qQ]],_.jd,1,[0,g5h,-1]],_.J5,[0,1,_.J5],76,_.A5,[0,pT,Jc,dfL,1,[0,_.XE,Jc]],1,_.A5,[0,pT,_.J5,_.z5],
_.A5,[0,pT,Is5],_.A5,[0,pT,Is5,_.Pa],_.A5,[0,pT,Is5],_.A5,[0,pT,_.XE,zK,pT,lPO],_.A5,[0,pT,zK,_.J5],_.A5,[0,pT,_.z5,mZ,-1,_.z5],4,_.A5,[0,pT,_.z5,_.Pa,mZ,_.z5],_.A5,[0,[4,9],pT,_.xT,_.Pa,_.QM,Jc,1,dfL,_.J5,_.QM,Xbh],_.A5,[0,pT,zK,pT,_.xT,_.J5],_.A5,[0,_.z5,pT,mZ,_.z5,_.J5],_.A5,[0,pT,zK,pT,_.xT,_.J5],1,_.A5,[0,pT,_.xT,_.J5,mZ],_.A5,[0,pT,_.xT,[0,_.J5,_.Pa],_.J5,_.Pa,_.J5,_.Ba,-2,3,Acl,_.XE,Acl,Acl,Xbh],_.A5,[0,pT,_.xT,PkO,_.XE,[0,hoV,EZq],zK,_.XE,swI,_.J5,1,_.xT,pbQ,zot,tYs,-1],_.A5,[0,pT,[0,_.qQ,
-1,PkO,_.XE,[0,hoV,EZq,asl],[0,_.Nb],1,_.rK],zK,_.J5],_.A5,[0,pT,Jc,_.J5,[0,_.p5]],_.A5,function(){return BfL},
_.A5,[0,pT,_.Pa,_.J5,-1,_.z5],_.A5,[0,[6,7],pT,_.XE,Ckt,_.xT,Jc,1,_.A5,QwI,_.A5,rcL],_.A5,[0,_.XE,Ckt,_.xT,_.z5],_.A5,[0,_.J5,DOI,-1],_.A5,[0,zK,_.XE,swI,_.J5],_.A5,[0,pT,zK,_.J5],_.A5,[0,_.Ba,_.J5],_.A5,[0,eoN],_.A5,[0,eoN],_.A5,[0,Jc],_.A5,[0,zK,Jc],_.A5,function(){return HTl},
_.A5,[0,zK,_.J5],_.A5,[0,zK,_.J5],1,_.A5,[0,_.z5,pT,mZ,_.z5,mZ],_.A5,[0,_.Nb],1,_.A5,[0],1,_.A5,[0,zK,_.xT,pT,_.xT],_.A5,[0,[1,2],_.A5,QwI,_.A5,rcL,_.Pa],_.A5,[0,_.Nb,Jc,JcV,_.J5,_.Pa],_.A5,[0,JcV,_.J5,_.Pa],_.A5,[0,pbQ,Jc,_.z5,zot],_.A5,mfM,_.A5,[0],_.A5,[0,_.J5,-1,_.jd],_.A5,[0,zK,_.J5],_.A5,[0,mfM,_.jd,_.J5],_.A5,[0,pT,mZ,_.z5],_.A5,[0,pT,mZ,_.z5],_.A5,[0,pbQ,zot,Jc,_.Zw,_.z5,tYs,-1],_.A5,[0,pT,mZ,_.z5]];var xfM=[0,_.XE,CT];var qFI=_.l9(wbM,[0,Ufl,1,_.jd,_.A5,[0,[18,22,24],xfM,3,[0,xfM],1,_.jd,[0,_.XE,[0,_.Pa,sW],_.Pa],1,CT,-1,[0,_.ma,-2,_.Zw,_.ma,-1,_.Zw,_.ma,YFt,_.ma,-2],um0,[!0,_.J5,[0,Is5,2,_.J5,_.Pa,_.z5,2,_.J5,_.Ba]],[0,[1,2,3],[5,6],_.A5,[0,_.rK],_.A5,[0,_.rK,-1],_.A5,[0,_.rK],1,_.A5,eoN,_.A5,[0,_.J5]],[0,CT,-1],_.Nb,CT,_.A5,CT,[0,xfM],_.jd,CT,_.A5,CT,_.J5,_.A5,CT],_.A5,hEM,_.jd]);var Lit=new _.S5("liveChatEndpoint");var ZF0=new _.S5("liveChatItemContextMenuEndpoint");var NMt=new _.S5("liveChatReplayEndpoint");_.S$h=new _.S5("emojiPickerRenderer");var iFt=new _.S5("liveChatAuthorBadgeViewModel");var uxO=new _.S5("deleteLiveChatMessageCommand");var TMO=new _.S5("liveChatActionEndpoint");var thQ=new _.S5("createLiveChatPollEndpoint");var OFO=new _.S5("manageLiveChatUserEndpoint");var Wil=new _.S5("moderateLiveChatEndpoint");_.Vht=new _.S5("sendLiveChatMessageEndpoint");var bFq=new _.S5("sendLiveChatVoteEndpoint");var MhO=new _.S5("clearLocationCommand");var g3t=new _.S5("resolveLocationCommand");var GWV=new _.S5("interactionLoggingCommandMetadata");var Fiq=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Fiq,_.On);var $UQ=function(L,Z){return _.lX(L,1,Z)};var DUs=[0,_.z5];var ljh=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(ljh,_.On);var v3s=function(L,Z){return YE(L,1,Fiq,Z)};ljh.prototype.JSC$12323_serializeBinary=Q7t([0,_.XE,DUs]);var cws={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 o3V={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"},
RTh={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 N5F={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"};_.r$H=new _.S5("logFlowLoggingEventCommand");_.OR=new _.S5("loggingContext");var cKQ=new _.S5("audioTrackSelectActionCommand");var n3L=new _.S5("captionLanguageSelectActionCommand");var Kiq=new _.S5("showAudioTrackPickerActionCommand");var fjh=new _.S5("showCaptionLanguageSelectActionCommand");var kWN=new _.S5("dismissDialogEndpoint");var yKO=new _.S5("dismissPlayerOverlayCommand");var w$V=new _.S5("hideItemSectionVideosByIdCommand");var UUV=new _.S5("showMiniplayerCommand");var Y$O=function(){Iw.apply(this,arguments)};
_.f(Y$O,Iw);Y$O.prototype.getAssociations=function(){return[]};
Y$O.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var eTh=function(){Iw.apply(this,arguments)};
_.f(eTh,Iw);eTh.prototype.getAssociations=function(){return[]};
eTh.prototype.getTypeName=function(){return"downloadStatusEntity"};var Ijs=function(){Iw.apply(this,arguments)};
_.f(Ijs,Iw);Ijs.prototype.getAssociations=function(){return[]};
Ijs.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var dU5=function(){Iw.apply(this,arguments)};
_.f(dU5,Iw);dU5.prototype.getAssociations=function(){var L=[];this.delegate.downloadsList&&L.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&L.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&L.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&L.push(this.delegate.refresh);return[].concat(_.Pd(new Set(L)))};
dU5.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var ajQ=function(){Iw.apply(this,arguments)};
_.f(ajQ,Iw);ajQ.prototype.getAssociations=function(){var L=[];this.delegate.refresh&&L.push(this.delegate.refresh);if(this.delegate.downloads)for(var Z=_.O(this.delegate.downloads),N=Z.next();!N.done;N=Z.next())L.push.apply(L,_.Pd((new hTM(N.value)).getAssociations()));return[].concat(_.Pd(new Set(L)))};
ajQ.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var hTM=function(){ec.apply(this,arguments)};
_.f(hTM,ec);hTM.prototype.getAssociations=function(){var L=[];this.delegate.video&&L.push(this.delegate.video);this.delegate.playlist&&L.push(this.delegate.playlist);this.delegate.videoItem&&L.push(this.delegate.videoItem);this.delegate.playlistItem&&L.push(this.delegate.playlistItem);return[].concat(_.Pd(new Set(L)))};var sBt=function(){Iw.apply(this,arguments)};
_.f(sBt,Iw);sBt.prototype.getAssociations=function(){var L=[];this.delegate.localImageEntities&&L.push.apply(L,_.Pd(this.delegate.localImageEntities));return[].concat(_.Pd(new Set(L)))};
sBt.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var jBs=function(){Iw.apply(this,arguments)};
_.f(jBs,Iw);jBs.prototype.getAssociations=function(){var L=[];this.delegate.playbackData&&L.push(this.delegate.playbackData);this.delegate.localImageEntities&&L.push.apply(L,_.Pd(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&L.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Pd(new Set(L)))};
jBs.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var E30=function(){Iw.apply(this,arguments)};
_.f(E30,Iw);E30.prototype.getAssociations=function(){return[]};
E30.prototype.getTypeName=function(){return"offlineabilityEntity"};var PDI=function(){Iw.apply(this,arguments)};
_.f(PDI,Iw);PDI.prototype.getAssociations=function(){var L=[];this.delegate.fakeChildren&&L.push.apply(L,_.Pd(this.delegate.fakeChildren));return[].concat(_.Pd(new Set(L)))};
PDI.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var p$t=function(){Iw.apply(this,arguments)};
_.f(p$t,Iw);p$t.prototype.getAssociations=function(){var L=[];this.delegate.video&&L.push(this.delegate.video);this.delegate.playbackData&&L.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&L.push(this.delegate.offlineVideoPolicy);return[].concat(_.Pd(new Set(L)))};
p$t.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var zTq=function(){Iw.apply(this,arguments)};
_.f(zTq,Iw);zTq.prototype.getAssociations=function(){return[]};
zTq.prototype.getTypeName=function(){return"continuationTokenEntity"};var mUY=function(){Iw.apply(this,arguments)};
_.f(mUY,Iw);mUY.prototype.getAssociations=function(){var L=[];this.delegate.channelOwner&&L.push(this.delegate.channelOwner);this.delegate.videos&&L.push.apply(L,_.Pd(this.delegate.videos));this.delegate.collaboratorChannels&&L.push.apply(L,_.Pd(this.delegate.collaboratorChannels));this.delegate.downloadState&&L.push(this.delegate.downloadState);this.delegate.refresh&&L.push(this.delegate.refresh);return[].concat(_.Pd(new Set(L)))};
mUY.prototype.getTypeName=function(){return"mainPlaylistEntity"};var JKq=function(){Iw.apply(this,arguments)};
_.f(JKq,Iw);JKq.prototype.getAssociations=function(){var L=[];this.delegate.video&&L.push(this.delegate.video);this.delegate.channelContributor&&L.push(this.delegate.channelContributor);return[].concat(_.Pd(new Set(L)))};
JKq.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var CD5=function(){ec.apply(this,arguments)};
_.f(CD5,ec);CD5.prototype.getAssociations=function(){var L=[];this.delegate.recommendedVideoMetadata&&L.push.apply(L,_.Pd((new rK5(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Pd(new Set(L)))};
var rK5=function(){ec.apply(this,arguments)};
_.f(rK5,ec);rK5.prototype.getAssociations=function(){var L=[];this.delegate.localImageEntities&&L.push.apply(L,_.Pd(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&L.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Pd(new Set(L)))};var QB5=function(){ec.apply(this,arguments)};
_.f(QB5,ec);QB5.prototype.getAssociations=function(){var L=[];this.delegate.playbackPosition&&L.push(this.delegate.playbackPosition);return[].concat(_.Pd(new Set(L)))};var X$L=function(){Iw.apply(this,arguments)};
_.f(X$L,Iw);X$L.prototype.getAssociations=function(){var L=[];this.delegate.owner&&L.push(this.delegate.owner);this.delegate.downloadState&&L.push(this.delegate.downloadState);this.delegate.userState&&L.push.apply(L,_.Pd((new QB5(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&L.push.apply(L,_.Pd((new CD5(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Pd(new Set(L)))};
X$L.prototype.getTypeName=function(){return"mainVideoEntity"};var AK5=function(){Iw.apply(this,arguments)};
_.f(AK5,Iw);AK5.prototype.getAssociations=function(){var L=[];this.delegate.userChannelDetails&&L.push(this.delegate.userChannelDetails);return[].concat(_.Pd(new Set(L)))};
AK5.prototype.getTypeName=function(){return"ytMainChannelEntity"};var HFl=function(){Iw.apply(this,arguments)};
_.f(HFl,Iw);HFl.prototype.getAssociations=function(){var L=[];this.delegate.channelOwner&&L.push(this.delegate.channelOwner);this.delegate.playbackPosition&&L.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&L.push.apply(L,_.Pd(this.delegate.localImageEntities));this.delegate.downloadStatus&&L.push(this.delegate.downloadStatus);return[].concat(_.Pd(new Set(L)))};
HFl.prototype.getTypeName=function(){return"ytMainVideoEntity"};var lA1=new _.S5("downloadsPageSmartDownloadsOptInBannerParams");var cys=new _.S5("downloadsPageUpsellBannerParams");var BMl=function(){Iw.apply(this,arguments)};
_.f(BMl,Iw);BMl.prototype.getAssociations=function(){return[]};
BMl.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var xUq=function(){Iw.apply(this,arguments)};
_.f(xUq,Iw);xUq.prototype.getAssociations=function(){return[]};
xUq.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var q$L=function(){Iw.apply(this,arguments)};
_.f(q$L,Iw);q$L.prototype.getAssociations=function(){return[]};
q$L.prototype.getTypeName=function(){return"macroMarkerEntity"};var Lc0=function(){Iw.apply(this,arguments)};
_.f(Lc0,Iw);Lc0.prototype.getAssociations=function(){return[]};
Lc0.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var ZfY=function(){Iw.apply(this,arguments)};
_.f(ZfY,Iw);ZfY.prototype.getAssociations=function(){return[]};
ZfY.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var NHO=function(){Iw.apply(this,arguments)};
_.f(NHO,Iw);NHO.prototype.getAssociations=function(){return[]};
NHO.prototype.getTypeName=function(){return"playerStateEntity"};var SOL=function(){Iw.apply(this,arguments)};
_.f(SOL,Iw);SOL.prototype.getAssociations=function(){return[]};
SOL.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var ifO=function(){Iw.apply(this,arguments)};
_.f(ifO,Iw);ifO.prototype.getAssociations=function(){return[]};
ifO.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var uIh=function(){Iw.apply(this,arguments)};
_.f(uIh,Iw);uIh.prototype.getAssociations=function(){return[]};
uIh.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.rf=new _.S5("dislikeButtonViewModel");_.QY=new _.S5("likeButtonViewModel");var THN=new _.S5("videoSummaryContentViewModel");var t3O=new _.S5("videoSummaryParagraphViewModel");var Of0=new _.S5("changeTimelyActionVisibilityCommand");var Wc5=new _.S5("hideEngagementPanelEndpoint");var V3q=new _.S5("refreshPanelEndpoint");var bft=new _.S5("scrollToSectionEndpoint");var M3t=new _.S5("seekToVideoTimestampCommand");_.oj=new _.S5("showEngagementPanelEndpoint");var gvY=new _.S5("showTransientPlayerScrimOverlayCommand");var G2N=new _.S5("toggleEngagementPanelCommand");_.FcV=new _.S5("createBroadcastCommand");var $vN=new _.S5("metadataUpdateCommand");var Dvs=function(){Iw.apply(this,arguments)};
_.f(Dvs,Iw);Dvs.prototype.getAssociations=function(){return[]};
Dvs.prototype.getTypeName=function(){return"featuredProductsEntity"};var laM=function(){Iw.apply(this,arguments)};
_.f(laM,Iw);laM.prototype.getAssociations=function(){return[]};
laM.prototype.getTypeName=function(){return"pinnedProductEntity"};var vvs=function(){Iw.apply(this,arguments)};
_.f(vvs,Iw);vvs.prototype.getAssociations=function(){return[]};
vvs.prototype.getTypeName=function(){return"trendingOfferEntity"};_.ov0=new _.S5("merchandiseShelfRenderer");var RVM=new _.S5("shoppingContentLineItemViewModel");var ceV=new _.S5("gridMovieRenderer");_.nvL=new _.S5("movieRenderer");var Kch=function(){Iw.apply(this,arguments)};
_.f(Kch,Iw);Kch.prototype.getAssociations=function(){return[]};
Kch.prototype.getTypeName=function(){return"compositeSourceEntity"};var fas=function(){Iw.apply(this,arguments)};
_.f(fas,Iw);fas.prototype.getAssociations=function(){var L=[];this.delegate.compositeSourceKeys&&L.push.apply(L,_.Pd(this.delegate.compositeSourceKeys));return[].concat(_.Pd(new Set(L)))};
fas.prototype.getTypeName=function(){return"multiviewStagingEntity"};var k2Y=function(){Iw.apply(this,arguments)};
_.f(k2Y,Iw);k2Y.prototype.getAssociations=function(){var L=[];this.delegate.trackDownloadMetadatas&&L.push.apply(L,_.Pd(this.delegate.trackDownloadMetadatas));return[].concat(_.Pd(new Set(L)))};
k2Y.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var yes=function(){Iw.apply(this,arguments)};
_.f(yes,Iw);
yes.prototype.getAssociations=function(){var L=[];this.delegate.downloadedTracks&&L.push.apply(L,_.Pd(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&L.push.apply(L,_.Pd(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&L.push.apply(L,_.Pd(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&L.push.apply(L,_.Pd(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&L.push.apply(L,_.Pd(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
L.push.apply(L,_.Pd(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&L.push.apply(L,_.Pd(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&L.push.apply(L,_.Pd(this.delegate.metadataOnlyTracks));return[].concat(_.Pd(new Set(L)))};
yes.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var w3I=function(){Iw.apply(this,arguments)};
_.f(w3I,Iw);w3I.prototype.getAssociations=function(){var L=[];this.delegate.trackDownloadMetadatas&&L.push.apply(L,_.Pd(this.delegate.trackDownloadMetadatas));return[].concat(_.Pd(new Set(L)))};
w3I.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var UvL=function(){Iw.apply(this,arguments)};
_.f(UvL,Iw);UvL.prototype.getAssociations=function(){var L=[];this.delegate.playbackData&&L.push(this.delegate.playbackData);this.delegate.localImageEntities&&L.push.apply(L,_.Pd(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&L.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Pd(new Set(L)))};
UvL.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var YOt=function(){Iw.apply(this,arguments)};
_.f(YOt,Iw);
YOt.prototype.getAssociations=function(){var L=[];this.delegate.musicLibraryStatusEntity&&L.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&L.push.apply(L,_.Pd(this.delegate.primaryArtists));this.delegate.details&&L.push(this.delegate.details);this.delegate.userDetails&&L.push(this.delegate.userDetails);this.delegate.tracks&&L.push.apply(L,_.Pd(this.delegate.tracks));this.delegate.share&&L.push(this.delegate.share);this.delegate.downloadMetadata&&L.push(this.delegate.downloadMetadata);this.delegate.refresh&&
L.push(this.delegate.refresh);return[].concat(_.Pd(new Set(L)))};
YOt.prototype.getTypeName=function(){return"musicAlbumRelease"};
var eVt=function(){Iw.apply(this,arguments)};
_.f(eVt,Iw);eVt.prototype.getAssociations=function(){var L=[];this.delegate.albumRelease&&L.push(this.delegate.albumRelease);this.delegate.tracks&&L.push.apply(L,_.Pd(this.delegate.tracks));return[].concat(_.Pd(new Set(L)))};
eVt.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var IaL=function(){Iw.apply(this,arguments)};
_.f(IaL,Iw);IaL.prototype.getAssociations=function(){var L=[];this.delegate.albumRelease&&L.push(this.delegate.albumRelease);return[].concat(_.Pd(new Set(L)))};
IaL.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var dvI=function(){Iw.apply(this,arguments)};
_.f(dvI,Iw);dvI.prototype.getAssociations=function(){var L=[];this.delegate.details&&L.push(this.delegate.details);this.delegate.userDetails&&L.push(this.delegate.userDetails);return[].concat(_.Pd(new Set(L)))};
dvI.prototype.getTypeName=function(){return"musicArtist"};
var aat=function(){Iw.apply(this,arguments)};
_.f(aat,Iw);aat.prototype.getAssociations=function(){var L=[];this.delegate.parentArtist&&L.push(this.delegate.parentArtist);return[].concat(_.Pd(new Set(L)))};
aat.prototype.getTypeName=function(){return"musicArtistDetail"};
var hVO=function(){Iw.apply(this,arguments)};
_.f(hVO,Iw);hVO.prototype.getAssociations=function(){var L=[];this.delegate.parentArtist&&L.push(this.delegate.parentArtist);return[].concat(_.Pd(new Set(L)))};
hVO.prototype.getTypeName=function(){return"musicArtistUserDetail"};var suO=function(){Iw.apply(this,arguments)};
_.f(suO,Iw);suO.prototype.getAssociations=function(){return[]};
suO.prototype.getTypeName=function(){return"musicLibraryEdit"};var juM=function(){Iw.apply(this,arguments)};
_.f(juM,Iw);juM.prototype.getAssociations=function(){return[]};
juM.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var EvO=function(){Iw.apply(this,arguments)};
_.f(EvO,Iw);
EvO.prototype.getAssociations=function(){var L=[];this.delegate.tracks&&L.push.apply(L,_.Pd(this.delegate.tracks));this.delegate.refresh&&L.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&L.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&L.push(this.delegate.details);this.delegate.downloadMetadata&&L.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&L.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&L.push(this.delegate.userDetails);this.delegate.entryCollection&&
L.push(this.delegate.entryCollection);this.delegate.share&&L.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&L.push.apply(L,_.Pd((new Phq(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Pd(new Set(L)))};
EvO.prototype.getTypeName=function(){return"musicPlaylist"};
var Phq=function(){ec.apply(this,arguments)};
_.f(Phq,ec);Phq.prototype.getAssociations=function(){var L=[];this.delegate.creatorEntity&&L.push(this.delegate.creatorEntity);return[].concat(_.Pd(new Set(L)))};var p3Q=function(){Iw.apply(this,arguments)};
_.f(p3Q,Iw);p3Q.prototype.getAssociations=function(){return[]};
p3Q.prototype.getTypeName=function(){return"musicShare"};var zVI=function(){Iw.apply(this,arguments)};
_.f(zVI,Iw);
zVI.prototype.getAssociations=function(){var L=[];this.delegate.musicLibraryStatusEntity&&L.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&L.push.apply(L,_.Pd(this.delegate.artists));this.delegate.audioModeVersion&&L.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&L.push(this.delegate.videoModeVersion);this.delegate.userDetails&&L.push(this.delegate.userDetails);this.delegate.details&&L.push(this.delegate.details);this.delegate.albumRelease&&L.push(this.delegate.albumRelease);this.delegate.share&&
L.push(this.delegate.share);this.delegate.libraryEdit&&L.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&L.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&L.push(this.delegate.playbackPosition);this.delegate.lyrics&&L.push(this.delegate.lyrics);return[].concat(_.Pd(new Set(L)))};
zVI.prototype.getTypeName=function(){return"musicTrack"};
var mvq=function(){Iw.apply(this,arguments)};
_.f(mvq,Iw);mvq.prototype.getAssociations=function(){var L=[];this.delegate.parentTrack&&L.push(this.delegate.parentTrack);return[].concat(_.Pd(new Set(L)))};
mvq.prototype.getTypeName=function(){return"musicTrackDetail"};
var JeN=function(){Iw.apply(this,arguments)};
_.f(JeN,Iw);JeN.prototype.getAssociations=function(){var L=[];this.delegate.parentTrack&&L.push(this.delegate.parentTrack);return[].concat(_.Pd(new Set(L)))};
JeN.prototype.getTypeName=function(){return"musicTrackUserDetail"};var hZ=new _.S5("musicResponsiveListItemRenderer");var dAw=new _.S5("addToPlaylistEndpoint");var ChN=new _.S5("captionPickerEndpoint");var reM=new _.S5("suggestStats");var Quq=new _.S5("backstageImageUploadEndpoint");var X3M=new _.S5("createBackstagePostDialogEndpoint");_.Ae0=new _.S5("createCommentReplyDialogEndpoint");_.Hft=new _.S5("updateCommentDialogEndpoint");_.BHh=new _.S5("updateCommentReplyDialogEndpoint");var xvt=new _.S5("menuEndpoint");var ln1=new _.S5("modalEndpoint");var qOI=new _.S5("playlistEditorEndpoint");var LAl=new _.S5("copyTextEndpoint");var ZKl,NeL;ZKl=new _.S5("shareEndpoint");NeL=new _.S5("shareEntityEndpoint");_.Sjt=new _.S5("shareEntityServiceEndpoint");_.KsB=new _.S5("userFeedbackEndpoint");_.so=new _.S5("watchEndpoint");var trF=new _.S5("watchPlaylistEndpoint");var iKt=new _.S5("addUpcomingEventReminderEndpoint");_.XN=new _.S5("getCommentsFromInboxCommand");var ufQ=new _.S5("notificationOptOutEndpoint");var TeV=new _.S5("recordNotificationInteractionsEndpoint");var tKQ=new _.S5("removeUpcomingEventReminderEndpoint");var eS_=new _.S5("getDownloadActionCommand");_.OK0=new _.S5("offlineOrchestrationActionCommand");var WAV=function(){Iw.apply(this,arguments)};
_.f(WAV,Iw);WAV.prototype.getAssociations=function(){return[]};
WAV.prototype.getTypeName=function(){return"captionTrack"};var VK5=function(){Iw.apply(this,arguments)};
_.f(VK5,Iw);VK5.prototype.getAssociations=function(){return[]};
VK5.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var bKl=function(){Iw.apply(this,arguments)};
_.f(bKl,Iw);bKl.prototype.getAssociations=function(){return[]};
bKl.prototype.getTypeName=function(){return"offlineVideoPolicy"};var MKq=function(){Iw.apply(this,arguments)};
_.f(MKq,Iw);MKq.prototype.getAssociations=function(){return[]};
MKq.prototype.getTypeName=function(){return"offlineVideoStreams"};var gXt=function(){Iw.apply(this,arguments)};
_.f(gXt,Iw);gXt.prototype.getAssociations=function(){var L=[];this.delegate.transfer&&L.push(this.delegate.transfer);this.delegate.adsPlaybackData&&L.push.apply(L,_.Pd(this.delegate.adsPlaybackData));this.delegate.drmLicense&&L.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&L.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&L.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Pd(new Set(L)))};
gXt.prototype.getTypeName=function(){return"playbackData"};var Gx0=function(){Iw.apply(this,arguments)};
_.f(Gx0,Iw);Gx0.prototype.getAssociations=function(){return[]};
Gx0.prototype.getTypeName=function(){return"refresh"};var FAY=function(){Iw.apply(this,arguments)};
_.f(FAY,Iw);FAY.prototype.getAssociations=function(){var L=[];this.delegate.offlineVideoStreams&&L.push.apply(L,_.Pd(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&L.push.apply(L,_.Pd(this.delegate.captionTrack));return[].concat(_.Pd(new Set(L)))};
FAY.prototype.getTypeName=function(){return"transfer"};var $Nq=function(){Iw.apply(this,arguments)};
_.f($Nq,Iw);$Nq.prototype.getAssociations=function(){return[]};
$Nq.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var DNN=new _.S5("showMoreDrawerCommand");var lA0=new _.S5("updateEngagementPanelContentCommand");var vXq=new _.S5("getPdgBuyFlowCommand");var oXh=new _.S5("liveChatPurchaseMessageEndpoint");var Ru0=new _.S5("openSuperStickerBuyFlowCommand");var cyl=new _.S5("updatePdgFeatureEnablementCommand");var nXO=function(){Iw.apply(this,arguments)};
_.f(nXO,Iw);nXO.prototype.getAssociations=function(){return[]};
nXO.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var KAI=function(){Iw.apply(this,arguments)};
_.f(KAI,Iw);KAI.prototype.getAssociations=function(){return[]};
KAI.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.fA0=new _.S5("pdgCommentChipRenderer");_.kxh=new _.S5("permissionRoleBottomBarRenderer");_.yyt=new _.S5("updatePermissionRoleCommand");var wSt=new _.S5("prefetchWatchCommand");var UNh=new _.S5("updatePlayerErrorMessageCommand");var Kpx=new _.S5("toggleCaptionsVisibilityCommand");_.Yjl=new _.S5("quickActionsViewModel");var euL=new _.S5("playerResponse");var IAh=new _.S5("playlistRenderer");_.dNh=new _.S5("playlistVideoListRenderer");_.Ac=new _.S5("playlistEditEndpoint");var aAY=new _.S5("createImagePollCommand");var huY=new _.S5("createQuizCommand");var s30=new _.S5("quizRenderer");var j35=new _.S5("uploadedVideoRenderer");var EXh=new _.S5("decorateMessageEndpoint");var PMq=new _.S5("lpOfferCardOptionViewModel");var pSM=new _.S5("sfvAudioItemPlaybackCommand");var zut=function(){Iw.apply(this,arguments)};
_.f(zut,Iw);zut.prototype.getAssociations=function(){return[]};
zut.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.Hb=new _.S5("reelNonVideoContentEndpoint");_.Ox=new _.S5("reelWatchEndpoint");_.Bb=new _.S5("reelItemRenderer");var mN5=new _.S5("reelMetapanelViewModel");_.JyI=new _.S5("reelNonVideoContentRenderer");_.CMt=new _.S5("reelPlayerOverlayRenderer");var ryO=new _.S5("shortsLockupViewModel");var Q3N=new _.S5("sponsorButtonViewModel");var XSh=new _.S5("reelItemWatchResponse");var Ayl=new _.S5("textBadgeRenderer");_.xZ=new _.S5("buttonRenderer");_.qf=new _.S5("toggleButtonRenderer");var Ent=new _.S5("switchButtonViewModel");_.HKs=new _.S5("confirmDialogRenderer");var BeM;BeM=new _.S5("menuRenderer");_.xN0=new _.S5("menuFlexibleItemRenderer");var qjh=new _.S5("pollRenderer");_.Lys=new _.S5("backgroundPromoRenderer");var NVN;_.ZDQ=new _.S5("chipCloudRenderer");NVN=new _.S5("chipCloudChipRenderer");var Swh=new _.S5("dropdownRenderer");var iDM=new _.S5("gridVideoRenderer");_.uP5=new _.S5("itemSectionRenderer");_.TVh=new _.S5("messageRenderer");var tkN=new _.S5("sortFilterHeaderRenderer");_.LF=new _.S5("videoRenderer");var ODt=new _.S5("resolveUrlCommandMetadata");var Wyq=function(){Iw.apply(this,arguments)};
_.f(Wyq,Iw);Wyq.prototype.getAssociations=function(){return[]};
Wyq.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.VkY=new _.S5("getAnswerCommand");_.uv=new _.S5("searchEndpoint");var bDO=new _.S5("genAiRichTextViewModel");var Yg_=new _.S5("overviewAnswerViewModel");var MkQ=new _.S5("videoOverviewViewModel");var gwt=new _.S5("addToPlaylistServiceEndpoint");var GL0=new _.S5("clearSearchHistoryEndpoint");var Fyh=new _.S5("clearWatchHistoryEndpoint");var $WN=new _.S5("webSerializedServiceEndpointExtension");_.DWV=new _.S5("createCommentEndpoint");var luN=new _.S5("createCommentReplyEndpoint");var vwQ=new _.S5("performCommentActionEndpoint");var owq=new _.S5("updateCommentEndpoint");var RKY=new _.S5("updateCommentReplyEndpoint");_.Zj=new _.S5("createPlaylistServiceEndpoint");var cE5=new _.S5("deletePlaylistEndpoint");var nw5=new _.S5("deleteVideoEndpoint");var I6s=new _.S5("getReportFormEndpoint");var Ky5=new _.S5("modifyChannelNotificationPreferenceEndpoint");var J6P;_.tu=new _.S5("offlinePlaylistEndpoint");J6P={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 CS_;_.uj=new _.S5("offlineVideoEndpoint");CS_={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 fuL=new _.S5("pingingEndpoint");_.kLO=new _.S5("selectActiveIdentityEndpoint");var yEL=new _.S5("setSettingEndpoint");var OpL=new _.S5("undoFeedbackEndpoint");var w0V=new _.S5("unsubscribeEndpoint");_.UWh=new _.S5("updatedMetadataEndpoint");var YwI=function(){Iw.apply(this,arguments)};
_.f(YwI,Iw);YwI.prototype.getAssociations=function(){return[]};
YwI.prototype.getTypeName=function(){return"settingEntity"};_.eKQ=new _.S5("updateLocalAppSettingCommand");var s2Y=new _.S5("saveImageToDeviceEndpoint");var j2l=new _.S5("shareImageCommand");var Eu0=new _.S5("sharingProviderDataCommand");var PzM=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(PzM,_.On);var poI=[0,_.J5,-1];PzM.prototype.JSC$12530_serializeBinary=Q7t(poI);var zhs=_.v6(poI);var moO=new _.S5("userMentionSuggestionRenderer");var JlO=new _.S5("liveChatTunnelCommand");var Czl=new _.S5("showSponsorshipsGiftOfferDialogCommand");var rlL=new _.S5("sponsorshipsScrollableShelfViewModel");var Q2s=new _.S5("updateUpcomingEventReminderButtonStateCommand");var XoV=new _.S5("upcomingEventReminderButtonStateRenderer");var All=new _.S5("subscribeEndpoint");var HbM=new _.S5("registerTasksCommand");var BX0=new _.S5("hideSheetCommand");var xoM=new _.S5("hideSnackbarCommand");var qBs=new _.S5("showDialogCommand");_.bgL=new _.S5("showSheetCommand");var LxI=new _.S5("showSnackbarCommand");var ZSV=function(){Iw.apply(this,arguments)};
_.f(ZSV,Iw);ZSV.prototype.getAssociations=function(){return[]};
ZSV.prototype.getTypeName=function(){return"chipEntity"};var NiM=function(){Iw.apply(this,arguments)};
_.f(NiM,Iw);NiM.prototype.getAssociations=function(){return[]};
NiM.prototype.getTypeName=function(){return"dismissState"};_.nl=new _.S5("avatarViewModel");var SlQ=new _.S5("badgeViewModel");_.NU=new _.S5("buttonViewModel");_.Sh=new _.S5("chipViewModel");var iBh=new _.S5("collectionThumbnailViewModel");var iSs=new _.S5("contentPreviewImageViewModel");var uq0=new _.S5("decoratedAvatarViewModel");_.xhB=new _.S5("engagementBarViewModel");_.TiL=new _.S5("imageBannerViewModel");var tVQ=new _.S5("lockupContentMetadataRowExtension");_.OSY=new _.S5("lockupMetadataViewModel");_.Wxh=new _.S5("lockupViewModel");var VVh=new _.S5("avatarStackViewModel");_.bSM=new _.S5("contentMetadataViewModel");var MVh=function(){Iw.apply(this,arguments)};
_.f(MVh,Iw);MVh.prototype.getAssociations=function(){return[]};
MVh.prototype.getTypeName=function(){return"pageHeaderEntity"};_.gCs=new _.S5("pageHeaderViewModel");var GtI=new _.S5("snackbarViewModel");var FxN=new _.S5("thumbnailHoverOverlayToggleActionsViewModel");_.iD=new _.S5("toggleButtonViewModel");var $kV=function(){Iw.apply(this,arguments)};
_.f($kV,Iw);$kV.prototype.getAssociations=function(){return[]};
$kV.prototype.getTypeName=function(){return"votingEntity"};_.qZ1=new _.S5("votingViewModel");var Dkl=new _.S5("sectionHeaderViewModel");var lRO=new _.S5("notifyDropdownOptionSelectedCommand");var Mvh=new _.S5("listViewModel");_.gm=new _.S5("listItemViewModel");var SdP=new _.S5("toggleableListItemViewModel");var vCM=new _.S5("dialogHeaderViewModel");var oCL=function(){Iw.apply(this,arguments)};
_.f(oCL,Iw);oCL.prototype.getAssociations=function(){return[]};
oCL.prototype.getTypeName=function(){return"dataFreshnessEntity"};var c7P=new _.S5("suspenseViewModel");var R6t=function(){Iw.apply(this,arguments)};
_.f(R6t,Iw);R6t.prototype.getAssociations=function(){return[]};
R6t.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var cOY=function(){Iw.apply(this,arguments)};
_.f(cOY,Iw);cOY.prototype.getAssociations=function(){return[]};
cOY.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var nCY=function(){Iw.apply(this,arguments)};
_.f(nCY,Iw);nCY.prototype.getAssociations=function(){return[]};
nCY.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.Kxt=new _.S5("transcriptSubmitCaptionCorrectionCommand");var fRL=function(){Iw.apply(this,arguments)};
_.f(fRL,Iw);fRL.prototype.getAssociations=function(){return[]};
fRL.prototype.getTypeName=function(){return"buttonEntity"};var T4t=new _.S5("unpluggedStringRunImage");var ktt=new _.S5("tabViewModel");var yOl=new _.S5("tabbedViewModel");var wpN=function(){Iw.apply(this,arguments)};
_.f(wpN,Iw);wpN.prototype.getAssociations=function(){return[]};
wpN.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.Uk5=new _.S5("updateDescriptionAction");var YlY=new _.S5("updateToggleButtonTextAction");var e6I=new _.S5("showFullscreenPlayerControlsCommand");var IRN=new _.S5("updateVideoMetadataCommand");_.dk0=new _.S5("autoplaySwitchButtonRenderer");var KM;_.aRM=new _.S5("multiMarkersPlayerBarRenderer");KM=new _.S5("chapterRenderer");var h6t=new _.S5("heatMarkerRenderer");var Rqt=new _.S5("heatmapRenderer");var sfL=new _.S5("smartSkipPlayerScrimOverlayRenderer");var jfY=new _.S5("timedMarkerDecorationRenderer");var jxh=new _.S5("postWebToNativeMessageCommand");var RL=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(RL,_.On);RL.prototype.getMethodName=function(){return _.va(this,1)};var ECt=[0,_.J5,-2];RL.prototype.JSC$12552_serializeBinary=Q7t(ECt);var PUs=_.l9(RL,ECt);var ppM=new _.S5("whitelistEditEndpoint");var z6Y=new _.S5("clearUrlParamCommand");var mkh=new _.S5("commerceActionCommand");_.JOY=new _.S5("getPaymentInstrumentsParamsCommand");var CUL=new _.S5("getPaymentsClientTokenCommand");var rOh=new _.S5("googlePaymentBillingCommand");var QfN=new _.S5("googlePaymentPurchaseManagerCommand");_.Xph=new _.S5("logGtmCommand");var AOQ=new _.S5("updateCardItemOnClickCommand");_.HSO=new _.S5("ypcPauseSubscriptionCommand");_.Bi5=new _.S5("ypcResumeSubscriptionCommand");var xk0=function(){Iw.apply(this,arguments)};
_.f(xk0,Iw);xk0.prototype.getAssociations=function(){return[]};
xk0.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var qlh=function(){Iw.apply(this,arguments)};
_.f(qlh,Iw);qlh.prototype.getAssociations=function(){return[]};
qlh.prototype.getTypeName=function(){return"commerceCartListEntity"};var LbY=function(){Iw.apply(this,arguments)};
_.f(LbY,Iw);LbY.prototype.getAssociations=function(){return[]};
LbY.prototype.getTypeName=function(){return"iconBadgeEntity"};var ZNt=function(){Iw.apply(this,arguments)};
_.f(ZNt,Iw);ZNt.prototype.getAssociations=function(){return[]};
ZNt.prototype.getTypeName=function(){return"pdpStateEntity"};var NL0=function(){Iw.apply(this,arguments)};
_.f(NL0,Iw);NL0.prototype.getAssociations=function(){return[]};
NL0.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var oq0=new _.S5("ypcOffersEndpoint");var SqQ=new _.S5("cardItemRenderer"),iNt=new _.S5("cardItemTextRenderer");var uol=new _.S5("commerceCartItemQuantityPickerRenderer");var TLY=new _.S5("linkCardRenderer");var YdG=new _.S5("quantityIncrementerButtonViewModel");var trO=new _.S5("quantityIncrementerViewModel");var ONt=new _.S5("themedImageViewModel");_.WbQ=new _.S5("ypcCancelRecurrenceEndpoint");var VrM=new _.S5("ypcCompleteTransactionEndpoint");_.bNt=new _.S5("ypcGetCartEndpoint");_.hu=new _.S5("ypcGetOffersEndpoint");_.uD=new _.S5("ypcHandleTransactionEndpoint");var MrI=new _.S5("ypcLogWalletAnalyticDataEndpoint");_.ggN=new _.S5("ypcRedeemCodeEndpoint");var G9Y=new _.S5("ypcUpdateFopEndpoint");gf(Mf(1),VY(4));Bys((new MessageChannel).port2);var FbV=function(){this.register=new Map},KPG=function(L,Z,N){L=L+"_"+Z;
TW.register.has(L)?N=TW.register.get(L):(N=N(),TW.register.set(L,N));return N},$1O=function(L){L=_.O(L.register.values());
for(var Z=L.next();!Z.done;Z=L.next())_.ZK(Z.value,"ABORTED")};
FbV.prototype.clear=function(){$1O(this);this.register.clear()};
var TW=new FbV;var iO0=Date.now().toString();var tQx=TEt();var FPs={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 D10,v2;D10=1;v2=function(L){this.veData=L};
_.Mg=function(L){return new v2({trackingParams:L})};
_.Ll=function(L,Z,N,S,u,T){var W=D10++;return new v2({veType:L,veCounter:W,elementIndex:N,dataElement:Z,youtubeData:S,jspbYoutubeData:u,loggingDirectives:T})};
_.t=v2.prototype;
_.t.getAsJson=function(){var L={};this.veData.trackingParams!==void 0?L.trackingParams=this.veData.trackingParams:(L.veType=this.veData.veType,this.veData.veCounter!==void 0&&(L.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(L.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(L.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(L.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(L.isCounterfactual=!0);
return L};
_.t.getAsJspb=function(){var L=new g6t;this.veData.trackingParams!==void 0?L.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.kT(L,2,this.veData.veType),this.veData.veCounter!==void 0&&_.kT(L,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.kT(L,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.lX(L,5,!0));if(this.veData.dataElement!==void 0){var Z=this.veData.dataElement.getAsJspb();_.fG(L,7,Z)}this.veData.youtubeData!==void 0&&_.fG(L,8,this.veData.jspbYoutubeData);
return L};
_.t.toString=function(){return JSON.stringify(this.getAsJson())};
_.t.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.t.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.bp("yt_logging_screen.getRootVeType",MQG);_.bp("yt_logging_screen.getCurrentCsn",_.RH);_.bp("yt_logging_screen.getCttAuthInfo",nv);_.bp("yt_logging_screen.setCurrentScreen",_.Kv);var lHh=function(){this.events=new Map},vgY=function(L){var Z=[];
L=_.O(L.events.values());for(var N=L.next();!N.done;N=L.next())Z.push(N.value);return Z};
lHh.prototype.clear=function(){this.events.clear()};var RBV=function(){this.logTransport=new ogL;this.loggedEventRegister=new lHh;this.unloggedEventRegister=new lHh;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12589_flushTimer=new _.vX(this.flushInterval);this.JSC$12589_flushTimer.listen("tick",this.flush,!1,this)};
RBV.prototype.flush=function(){if(this.eventsCount){var L={loggedEvents:vgY(this.loggedEventRegister),unloggedEvents:vgY(this.unloggedEventRegister)};if(_.c("export_player_version_to_ytconfig")){var Z;(Z=_.X7("PLAYER_CLIENT_VERSION"))?(Z=Z.split("-")[0].replace(/\./g,""),Z=isNaN(Number(Z))?"0":Z):Z="";var N=_.X7("PLAYER_CLIENT_VERSION");if(N){N=N.split("-");var S="";N.length>1&&(S=N[N.length-1]);N=Sb0(S.startsWith("canary_experiment")?"canary":S.startsWith("canary_control")?"control":"none")}else N=
"CLIENT_CANARY_STATE_UNKNOWN";L.dimensions={playerClientVersion:Z,playerCanaryState:N}}this.logTransport.flush(L);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12589_flushTimer.enabled&&this.JSC$12589_flushTimer.stop()}};
var cIq=function(L){tK==null&&(tK=new RBV);var Z=tK;var N=Z.loggedEventRegister;L.dimensions=L.dimensions||{};L.dimensions.csn=_.RH()||"";var S=lcP(L.dimensions).join(";");if(L.records!=null)if(N.events.has(S)){var u;(u=N.events.get(S).records)==null||u.push.apply(u,_.Pd(L.records))}else N.events.set(S,L);Z.JSC$12589_flushTimer.enabled||Z.JSC$12589_flushTimer.start();Z.eventsCount++;Z.eventsCount>=100&&Z.flush()};var ogL=function(){};
ogL.prototype.flush=function(L,Z){_.c("enable_client_sli_logging")&&_.mS("sliEventBatch",L,{sendIsolatedPayload:!!Z})};var tK;var KbY;KbY=function(L){var Z=ngh;L=L===void 0?{}:L;Z=Z.name;var N=na_("SUCCESS");cIq({dimensions:L,records:[{name:Z,state:"SLI_STATE_END",status:N}]})};
_.fc1=function(L,Z,N,S){this.name=L;this.sliId=Z;this.timeoutMs=N;this.statusOnTimeout=S;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.fc1.prototype.getId=function(){return this.sliId};
_.LM=function(L,Z){Z=Z===void 0?{}:Z;L.ongoing||(L.ongoing=!0,L.dimensions=Z,L.logSliId=rYP(),cIq({dimensions:L.dimensions,records:[{name:L.name,state:"SLI_STATE_START",sliId:L.logSliId}]}),L.timeoutMs>0&&(L.timeoutHandle=setTimeout(function(){_.ZK(L,L.statusOnTimeout)},L.timeoutMs)))};
_.ZK=function(L,Z){L.ongoing&&(L.timeoutMs>0&&clearTimeout(L.timeoutHandle),L.ongoing=!1,Z={dimensions:L.dimensions,records:[{name:L.name,status:na_(Z),state:"SLI_STATE_END",sliId:L.logSliId}]},TW.register.delete(L.name+"_"+L.sliId),cIq(Z))};var ngh=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var fHV=function(){Iw.apply(this,arguments)};
_.f(fHV,Iw);fHV.prototype.getAssociations=function(){return[]};
fHV.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var m_x=new _.S5("highlightTextDecoratorColorMapExtension");var pu_=new _.S5("styleRunColorMapExtension");var Icx=_.sc(["data-"]),hYs={};var jN_={};var O$=function(L){this.wrappedPromise_=L===void 0?null:L;this.state_=0;this.JSC$12620_value_=null};
O$.prototype.then=function(L,Z,N){return this.wrappedPromise_?this.wrappedPromise_.then(L,Z,N):this.state_===1&&L?(L=L.call(N,this.JSC$12620_value_))&&typeof L.then==="function"?L:_.W$(L):this.state_===2&&Z?(L=Z.call(N,this.JSC$12620_value_))&&typeof L.then==="function"?L:_.k9s(L):this};
O$.prototype.getValue=function(){return this.JSC$12620_value_};
O$.prototype.isRejected=function(){return this.state_==2};
VuV(O$);_.k9s=function(L){var Z=new O$;L=L===void 0?null:L;Z.state_=2;Z.JSC$12620_value_=L===void 0?null:L;return Z};
_.W$=function(L){var Z=new O$;L=L===void 0?null:L;Z.state_=1;Z.JSC$12620_value_=L===void 0?null:L;return Z};var qbF="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var yI5=["load","abort","error"],Vn=function(L,Z,N){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12640_maxAspectRatio_=L;this.disableAnimation_=Z===void 0?!1:Z;this.disableExifRotation_=N===void 0?!1:N;this.JSC$12640_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12640_reject_=this.resolve_=null};
Vn.prototype.transform=function(L){var Z=this;this.mime_=L.type;xB(G0q(L),this.dataUrlRead_,this.readError_,this);xB(g0h(L.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(N,S){Z.resolve_=N;Z.JSC$12640_reject_=S})};
Vn.prototype.dataUrlRead_=function(L){this.dataUrl_=L;this.angle_!=null&&wAI(this)};
Vn.prototype.exifRead_=function(L){if(this.disableExifRotation_)this.angle_=0;else{a:if(L=new DataView(L),L.byteLength<2||L.getUint16(0)!==65496)L=-2;else{for(var Z=2,N=L.byteLength;Z<N;){var S=L.getUint16(Z),u=L.getUint16(Z+2);if(S===65505){Z+=4;S=L.getUint32(Z);u=L.getUint16(Z+4);if(S!==1165519206||u!==0)break;Z+=6;S=L.getUint16(Z)===18761;Z+=L.getUint32(Z+4,S);u=L.getUint16(Z,S);Z+=2;for(var T=0;T<u;T++){if(L.getUint16(Z,S)===274){Z+=8;L=L.getUint16(Z,S);break a}Z+=12}}else if(S>>8!==255)break;
else Z+=u+2}L=-1}switch(L){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&&wAI(this)};
Vn.prototype.readError_=function(){this.JSC$12640_reject_()};
var wAI=function(L){VV(L.JSC$12640_image_,yI5,L.completeTransform_,!1,L);L.JSC$12640_image_.src=_.mY(L.dataUrl_).toString();L.JSC$12640_image_.src!=zi.toString()&&L.JSC$12640_image_.src.substr(0,11)==="data:image/"||L.JSC$12640_reject_()};
Vn.prototype.completeTransform_=function(){if(this.JSC$12640_image_.src!=zi.toString()){var L=_.mY(this.dataUrl_),Z=this.JSC$12640_image_.naturalHeight?this.JSC$12640_image_.naturalWidth/this.JSC$12640_image_.naturalHeight:null;this.invalidAspectRatio=Z>this.JSC$12640_maxAspectRatio_||Z<1/this.JSC$12640_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var N=this.JSC$12640_image_.naturalWidth,S=this.JSC$12640_image_.naturalHeight,u=Z=0,T=this.JSC$12640_image_.naturalHeight?this.JSC$12640_image_.naturalWidth/
this.JSC$12640_image_.naturalHeight:null;T>this.JSC$12640_maxAspectRatio_?(N=this.JSC$12640_maxAspectRatio_*S,Z=(N-this.JSC$12640_image_.naturalWidth)/2,this.cropped=!0):T<1/this.JSC$12640_maxAspectRatio_?(S=this.JSC$12640_maxAspectRatio_*N,u=(S-this.JSC$12640_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)T=N,N=S,S=T,T=Z,Z=u,u=T;switch(this.angle_){case 90:u-=N;break;case 180:Z-=N;u-=S;break;case 270:Z-=
S}this.cropped||this.angle_%360!==0?(L=document.createElement("canvas"),L.width=N||1,L.height=S||1,this.JSC$12640_image_.naturalWidth&&this.JSC$12640_image_.naturalHeight&&(N=L.getContext("2d"),N.rotate(Math.PI/180*this.angle_),N.drawImage(this.JSC$12640_image_,Z,u,this.JSC$12640_image_.naturalWidth,this.JSC$12640_image_.naturalHeight)),this.transformedData=_.mY(L.toDataURL(this.mime_))):this.transformedData=L}else this.transformedData=L;this.resolve_(this)}};var bD=function(L,Z){_.vn.call(this,L);this.value=Z};
_.f(bD,_.vn);
var MU=function(L,Z,N,S,u,T,W){W=W===void 0?!1:W;_.Kc.call(this);var V=this;this.JSC$12645_url_=L;this.channelId_=Z;this.maxFileSizeMb_=N;this.JSC$12645_maxAspectRatio_=S;this.dropZoneEl_=u;this.rejectInvalidAspectRatio_=W;this.selectButtonEl_=T;this.JSC$12645_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Rw(this.dropZoneEl_);this.selectOverlay_=new cb(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12645_image_=this.transfer_=null;this.handler_=new _.oM(this);_.Ky(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(T,"click",function(){V.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.f(MU,_.Kc);MU.prototype.disposeInternal=function(){for(var L=this.selectButtonEl_.nextSibling;L&&L.parentNode&&L.tagName=="INPUT";)L.parentNode.removeChild(L),L=this.selectButtonEl_.nextSibling;this.cancel();_.Kc.prototype.disposeInternal.call(this)};
MU.prototype.uploadPromise=function(){if(this.JSC$12645_image_==null)return null;this.uploadPromise_||U1I(this);return this.uploadPromise_};
MU.prototype.cancel=function(){Yqq(this);this.JSC$12645_image_=null};
var Yqq=function(L){L.transfer_&&L.transfer_.cancel();L.transfer_=null;L.uploadPromise_=null;L.resolve_=null;L.JSC$12645_reject_=null},U1I=function(L){Yqq(L);
L.transfer_=_.i2h(L.JSC$12645_url_,{"X-YouTube-ChannelId":L.channelId_},L.JSC$12645_image_);L.handler_.listenOnce(L.transfer_,"l",L.JSC$12647_onUploadComplete_);L.handler_.listenOnce(L.transfer_,"n",L.onUploadError_);L.transfer_.run();L.uploadPromise_=new Promise(function(Z,N){L.resolve_=Z;L.JSC$12645_reject_=N})};
_.t=MU.prototype;_.t.onChange_=function(L){L.files.length&&(this.JSC$12645_image_=L.files[0],this.JSC$12645_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12645_image_=null,this.dispatchEvent(new bD("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(U1I(this),(new Vn(this.JSC$12645_maxAspectRatio_)).transform(this.JSC$12645_image_).then((0,_.hr)(this.onPreview_,this),(0,_.hr)(this.onPreviewError_,this))))};
_.t.onPreview_=function(L){if(L.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12645_image_=null),this.dispatchEvent(new bD("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;L.cropped&&this.dispatchEvent(new bD("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new bD("yt.comments.ImageUploadOverlay.CHANGE_EVENT",L.transformedData))};
_.t.onPreviewError_=function(){this.JSC$12645_image_=null;this.dispatchEvent(new bD("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.t.onHover_=function(L){L.stopPropagation();L.preventDefault();if(L.type==="dragover")L=!0;else if(L.type==="dragleave")L=!1;else return;this.dispatchEvent(new bD("yt.comments.ImageUploadOverlay.HOVER_EVENT",L))};
_.t.JSC$12647_onUploadComplete_=function(){var L=(0,_.a8L)(this.transfer_.getResponseText());this.resolve_(L.encryptedBlobId)};
_.t.onUploadError_=function(){this.JSC$12645_reject_();Yqq(this)};var eB0=function(L){L=L||{};var Z={},N={};this.url=L.url||"";this.args=L.args||_.Py.clone(Z);this.assets=L.assets||{};this.attrs=L.attrs||_.Py.clone(N);this.fallback=L.fallback||null;this.fallbackMessage=L.fallbackMessage||null;this.html5=!!L.html5;this.disable=L.disable||{};this.loaded=!!L.loaded;this.messages=L.messages||{}};
eB0.prototype.clone=function(){var L=new eB0,Z;for(Z in this)if(this.hasOwnProperty(Z)){var N=this[Z];_.qI(N)=="object"?L[Z]=_.Py.clone(N):L[Z]=N}return L};var IHs,d1L,aHt,aL,s9O,j9O,EgV,P7Y,pA0,zB0,m1t,JIV,C7Q,rIN,Q9V,XAQ,AIQ,HNl,BLl,x1t,qql,LU5,ZJI,NaV,SLq,iJO,u3t,Tat,tq0,XYw,OJL,WUl,VqQ,bJq,MqQ,g1N,GeL,FUq,$P5,DPN,QGs,lpL,v1M,o1q,Rcs,ckq,n1l,KUO,fps,ket,yk5,w75,UPl,YLq,ecq,IpO,gM,dPt,apt,hcV,svL,jvQ,E1q,P_s,p7L,zcQ,mPL,JkO,C_N,rkq,Qvs,X7M,AkQ,HJl,BaI,xPL,Cd_,qLY,LnI,ZPq,NC0,S5L,iPM,ucO,TC5,tTY,OPL,WnY,VTO,bPM,MTt,g2q,Gul,Fnl,$lq,Dlt,lLh,v2O,o2q,R4I,ctl,n2Y;IHs=["account/accounts_list"];d1L=["acknowledge_channel_tou_strike"];aHt=["notification/add_upcoming_event_reminder"];
_.hBM=["att/get"];aL=["browse","music/browse","unplugged/browse"];s9O=["channel/claim_legacy_youtube_channel"];j9O=["history/clear_search_history"];EgV=["history/clear_watch_history"];P7Y=["comment/perform_comment_action"];pA0=["comment/get_comment_replies"];zB0=["ypc/commerce_action"];m1t=["backstage/create_post"];JIV=["live/create_broadcast"];C7Q=["channel/create_channel"];rIN=["comment/create_comment_reply"];Q9V=["comment/create_comment"];XAQ=["live_chat/create_poll"];AIQ=["playlist/create"];
HNl=["decorate_message"];BLl=["live_chat/delete_message"];x1t=["playlist/delete"];qql=["video/delete"];LU5=["like/dislike"];ZJI=["dismissal/dismiss"];NaV=["flag/flag"];SLq=["flow"];iJO=["account/account_menu"];u3t=["playlist/get_add_to_playlist"];Tat=["get_answer"];tq0=["channel/get_channel_creation_form"];XYw=["offline/get_download_action"];OJL=["kids/get_kids_blocklist_picker"];WUl=["live_chat/get_item_context_menu"];VqQ=["live_chat/get_live_chat_message_buy_flow"];bJq=["live_chat/get_live_chat_replay"];
MqQ=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];g1N=["live_chat/get_live_chat_super_sticker_buy_flow"];GeL=["notification/get_notification_menu"];FUq=["playlist/get_settings_editor"];$P5=["backstage/get_post_video_preview"];DPN=["account/get_profile_card"];QGs=["share/get_share_panel"];lpL=["share/get_sharing_provider_data"];v1M=["get_survey"];o1q=["notification/get_unseen_count"];Rcs=["get_user_mention_suggestions"];ckq=["get_watch"];n1l=["guide"];
KUO=["feedback"];fps=["kids/update_blacklist"];ket=["like/like"];yk5=["live_chat/live_chat_action"];w75=["live_chat/manage_user"];UPl=["video_manager/metadata_update"];YLq=["live_chat/moderate"];ecq=["notification/modify_channel_preference"];IpO=["notification/opt_out"];gM=["get_panel","get_posts_by_host_panel"];dPt=["player"];apt=["browse/edit_playlist"];hcV=["notification/record_interactions"];svL=["reel/reel_item_watch"];jvQ=["reel/reel_watch_sequence"];E1q=["like/removelike"];P_s=["notification/remove_upcoming_event_reminder"];
p7L=["flag/get_form"];zcQ=["miniapp/report_value"];mPL=["navigation/resolve_url"];JkO=["channel/reveal_business_email"];C_N=["in_video/search"];rkq=["search","sfv/search","unplugged/search"];Qvs=["live_chat/send_message"];X7M=["live_chat/send_live_chat_vote"];AkQ=["account/set_setting"];HJl=["submit_caption_correction"];BaI=["submit_form"];xPL=["subscription/subscribe"];Cd_=["get_transcript"];qLY=["resolve_location","unplugged/resolve_location"];LnI=["subscription/unsubscribe"];ZPq=["backstage/update_post"];
NC0=["channel_edit/update_channel_page_settings"];S5L=["comment/update_comment_reply"];iPM=["comment/update_comment"];ucO=["comment/update_comments_settings"];TC5=["creator/update_creator_channel"];tTY=["pdg/update_enablement"];OPL=["updated_metadata"];WnY=["channel_edit/validate_channel_handle"];VTO=["verify_age"];bPM=["next","unplugged/watch_next"];MTt=["whitelist/edit"];g2q=["ypc/cancel_recurrence"];Gul=["ypc/complete_transaction"];Fnl=["ypc/get_cart"];$lq=["ypc/get_fix_instrument_params"];
Dlt=["ypc/get_offers"];lLh=["ypc/get_payment_instruments_params"];v2O=["ypc/handle_transaction"];o2q=["ypc/log_payment_server_analytics"];R4I=["ypc/pause_subscription"];ctl=["ypc/redeem_code"];n2Y=["ypc/resume_subscription"];var Kn0=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,
74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,
235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,
156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,
45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,
18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,
54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,
196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,277848,173191,173192,173193,101951,171502,196043,
198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,
111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,
223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,
130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,
102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var Sz=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.bp("yt.msgs_",Sz);var GW=new _.iY("ACTION_ROUTER_TOKEN");_.Fx=function(){this.autonavState_=_.c("kevlar_is_pupi_enabled")?2:bTG()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Fx.prototype.getState=function(){return this.autonavState_};
_.Fx.prototype.pause=function(L){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=L):this.autonavState_==1&&(this.disabledAutonavPauseReason_=L)};
_.Fx.prototype.setState=function(L,Z,N){Z&&(this.autoplayChangedByUser=!0);Z=this.autonavState_===3||L===3;this.autonavState_!=L&&(this.autonavState_=L,L!=3&&_.McF(L==2),L=_.c("kevlar_is_pupi_enabled")?N||Z:!0,_.SS.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,L,N))};
_.Fx.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.CM(_.Fx);var $3=function(){this.hasRun=!1};var Dj={},nZw=(Dj.auto_search="LATENCY_ACTION_AUTO_SEARCH",Dj.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Dj.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Dj.app_startup="LATENCY_ACTION_APP_STARTUP",Dj.browse="LATENCY_ACTION_BROWSE",Dj.cast_splash="LATENCY_ACTION_CAST_SPLASH",Dj.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Dj.channels="LATENCY_ACTION_CHANNELS",Dj.chips="LATENCY_ACTION_CHIPS",Dj.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Dj.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Dj.editor="LATENCY_ACTION_EDITOR",Dj.embed="LATENCY_ACTION_EMBED",Dj.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Dj.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Dj.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Dj.explore="LATENCY_ACTION_EXPLORE",Dj.favorites="LATENCY_ACTION_FAVORITES",Dj.home="LATENCY_ACTION_HOME",Dj.inboarding="LATENCY_ACTION_INBOARDING",Dj.landing="LATENCY_ACTION_LANDING",Dj.learning="LATENCY_ACTION_LEARNING",
Dj.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Dj.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Dj.library="LATENCY_ACTION_LIBRARY",Dj.live="LATENCY_ACTION_LIVE",Dj.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Dj.management="LATENCY_ACTION_MANAGEMENT",Dj.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Dj.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Dj.onboarding="LATENCY_ACTION_ONBOARDING",Dj.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
Dj.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Dj.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Dj.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Dj.prebuffer="LATENCY_ACTION_PREBUFFER",Dj.prefetch="LATENCY_ACTION_PREFETCH",Dj.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Dj.profile_switcher="LATENCY_ACTION_LOGIN",Dj.projects="LATENCY_ACTION_PROJECTS",Dj.reel_watch="LATENCY_ACTION_REEL_WATCH",Dj.results="LATENCY_ACTION_RESULTS",Dj.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
Dj.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Dj.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Dj.review="LATENCY_ACTION_REVIEW",Dj.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Dj.search_ui="LATENCY_ACTION_SEARCH_UI",Dj.search_suggest="LATENCY_ACTION_SUGGEST",Dj.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Dj.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Dj.seek="LATENCY_ACTION_PLAYER_SEEK",Dj.settings="LATENCY_ACTION_SETTINGS",Dj.store="LATENCY_ACTION_STORE",
Dj.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Dj.tenx="LATENCY_ACTION_TENX",Dj.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Dj.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Dj.watch="LATENCY_ACTION_WATCH",Dj.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Dj["watch,watch7"]="LATENCY_ACTION_WATCH",Dj["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Dj["watch,watch7ad"]="LATENCY_ACTION_WATCH",Dj["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Dj.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
Dj.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Dj.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Dj.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Dj.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Dj.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Dj.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Dj.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Dj),EZ_=0;var CkH=function(L,Z){U4.call(this,1,arguments);this.timer=Z};
_.f(CkH,U4);var JcB=new jss("aft-recorded",CkH);var yct=_.iH.ytLoggingGelSequenceIdObj_||{};_.bp("ytLoggingGelSequenceIdObj_",yct);var lD=_.iH.ytLoggingLatencyUsageStats_||{};_.bp("ytLoggingLatencyUsageStats_",lD);var v$=function(){this.cleanupJob=0},YFf=function(){v$.instance||(v$.instance=new v$);
return v$.instance};
_.t=v$.prototype;_.t.baseline=function(L,Z,N){oB(this,"baseline_"+L)||_.mS("latencyActionBaselined",{clientActionNonce:L},{timestamp:Z,cttAuthInfo:N})};
_.t.tick=function(L,Z,N,S){oB(this,"tick_"+L+"_"+Z)||_.mS("latencyActionTicked",{tickName:L,clientActionNonce:Z},{timestamp:N,cttAuthInfo:S})};
_.t.info=function(L,Z,N){var S=Object.keys(L).join("");oB(this,"info_"+S+"_"+Z)||(L=Object.assign({},L),L.clientActionNonce=Z,_.mS("latencyActionInfo",L,{cttAuthInfo:N}))};
_.t.jspbInfo=function(L,Z,N){for(var S="",u=0;u<Ev(L).length;u++)Ev(L)[u]!==void 0&&(S=u===0?S.concat(""+u):S.concat("_"+u));oB(this,"info_"+S+"_"+Z)||(_.dF(L,2,Z),Z={cttAuthInfo:N},N=_.c("jspb_sparse_encoded_pivot")?new hV([{}]):new hV,_.kV(N,7,wvh,L),wbh("latencyActionInfo",N,Z))};
_.t.span=function(L,Z,N){var S=Object.keys(L).join("");oB(this,"span_"+S+"_"+Z)||(L.clientActionNonce=Z,_.mS("latencyActionSpan",L,{cttAuthInfo:N}))};
var oB=function(L,Z){lD[Z]=lD[Z]||{count:0};var N=lD[Z];N.count++;N.time=(0,_.GT)();L.cleanupJob||(L.cleanupJob=_.sI(_.ro,function(){var S=(0,_.GT)(),u;for(u in lD)lD[u]&&S-lD[u].time>6E4&&delete lD[u];L&&(L.cleanupJob=0)},5E3));
return N.count>5?(N.count===6&&Math.random()*1E5<1&&(N=new _.sr("CSI data exceeded logging limit with key",Z.split("_")),Z.indexOf("plev")>=0||_.Q7(N)),!0):!1};var fLQ,kut;fLQ=window;kut=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Mj=fLQ.performance||fLQ.mozPerformance||fLQ.msPerformance||fLQ.webkitPerformance||new kut;var mfh=!1,IsP=!1,rct=(0,_.hr)(_.Mj.clearResourceTimings||_.Mj.webkitClearResourceTimings||_.Mj.mozClearResourceTimings||_.Mj.msClearResourceTimings||_.Mj.oClearResourceTimings||_.on,_.Mj);var yth=window;yth.ytcsi&&(yth.ytcsi.infoGel=_.lB,yth.ytcsi.tick=_.Rq);var S$w=function(L){U4.call(this,1,arguments);this.csn=L};
_.f(S$w,U4);var mJB=new jss("screen-created",S$w),v3x=[],NMf=ljw,o3B=0,wR=new Map,iFf=new Map,uxF=new Map;var PCt=Symbol("Ef"),PB=new WeakMap;var RB=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},W9=function(){RB.instance||(RB.instance=new RB);
return RB.instance};
_.t=RB.prototype;_.t.setClient=function(L){this.client=L};
_.t.JSC$12726_newScreen=function(){this.clear();this.csn=_.RH()};
_.t.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.t.reportShown=function(L,Z,N){var S=this.JSC$12726_getTrackingParams(L),u=L.visualElement?L.visualElement:S;Z=this.shownElements.has(u);var T=this.visibleState.get(u);this.shownElements.add(u);this.visibleState.set(u,!0);L.impressionLog&&!Z&&L.impressionLog();if(S||L.visualElement)if(N=wNL(this,L,N))if(u=UlO(this,L),c$(this,L)||u){S=L.visualElement?L.visualElement:_.Mg(S);var W=L.interactionLoggingClientData;u||Z?c$(this,L)&4?T||g3f(this.client,N,S,W):c$(this,L)&1&&!Z&&Vhf(this.client,N,S,W):Vhf(this.client,
N,S,W)}};
_.t.reportHidden=function(L,Z,N){var S=this.JSC$12726_getTrackingParams(L),u=L.visualElement?L.visualElement:S;Z=this.hiddenElements.has(u);var T=this.visibleState.get(u);this.hiddenElements.add(u);this.visibleState.set(u,!1);if(T===!1)return!0;if(!S&&!L.visualElement)return!1;N=wNL(this,L,N);if(!N||!c$(this,L)&&UlO(this,L))return!1;S=L.visualElement?L.visualElement:_.Mg(S);c$(this,L)&8?GWB(this.client,N,S):c$(this,L)&2&&!Z&&(L=this.client,Z=ya({cttAuthInfo:nv(N)||void 0},N),S={csn:N,ve:S.getAsJson(),
eventType:2},N==="UNDEFINED_CSN"?Y6("visualElementHidden",Z,S):L?pA("visualElementHidden",S,L,Z):_.mS("visualElementHidden",S,Z));return!0};
_.t.JSC$12726_getTrackingParams=function(L){var Z=this.getData(L),N,S;if(_.c("il_use_view_model_logging_context")&&(Z==null?0:(N=Z.context)==null?0:(S=N.loggingContext)==null?0:S.loggingDirectives))return Z.context.loggingContext.loggingDirectives.trackingParams||"";var u,T;if(Z==null?0:(u=Z.rendererContext)==null?0:(T=u.loggingContext)==null?0:T.loggingDirectives)return Z.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(Z==null?0:Z.loggingDirectives)return Z.loggingDirectives.trackingParams||
"";var W;return((W=L.veContainer)==null?0:W.trackingParams)?L.veContainer.trackingParams:(Z==null?void 0:Z.trackingParams)||""};
_.t.JSC$12726_elementShouldLogGesture=function(L,Z){L=this.getData(L);return!!((Math.floor(Number(L&&L.loggingDirectives&&L.loggingDirectives.gestures&&L.loggingDirectives.gestures.types||""))||0)&Z)};
_.t.JSC$12726_getNearestParentVe=function(L){var Z=this.JSC$12726_getTrackingParams(L);return L.visualElement?L.visualElement:Z?_.Mg(Z):L.parentElement?this.JSC$12726_getNearestParentVe(L.parentElement):null};
var wNL=function(L,Z,N){var S=_.RH(N);return L.csn===null||S===L.csn||N?S:(L=new _.sr("VisibilityLogger called before newScreen",{caller:Z.tagName,previous_csn:L.csn,current_csn:S}),_.Q7(L),null)};
RB.prototype.getData=function(L){var Z,N=L.data||((Z=L.props)==null?void 0:Z.data);if(!N||L.isWebComponentWrapper){var S;N=(S=PB.get(L))==null?void 0:S[PCt]}return N};
var UlO=function(L,Z){var N;return!((N=L.getData(Z))==null||!N.loggingDirectives)},c$=function(L,Z){L=L.getData(Z);
return Math.floor(Number(L&&L.loggingDirectives&&L.loggingDirectives.visibility&&L.loggingDirectives.visibility.types||""))||1};var nF;nF=function(){};
_.Ng=function(){nF.instance||(nF.instance=new nF);return nF.instance};
nF.prototype.setClient=function(L){_.B8(W9().setClient).bind(W9())(L)};
_.Y5l=function(){_.Ng();_.B8(W9().JSC$12726_newScreen).bind(W9())()};
nF.prototype.clear=function(){_.B8(W9().clear).bind(W9())()};
nF.prototype.reportShown=function(L,Z,N){_.B8(W9().reportShown).bind(W9())(L,Z,N)};
nF.prototype.reportHidden=function(L,Z,N){return _.B8(W9().reportHidden).bind(W9())(L,Z,N)};
var zNB=function(L,Z){return _.B8(W9().JSC$12726_getTrackingParams).bind(W9())(Z)},pHP=function(L,Z){return _.B8(W9().JSC$12726_getNearestParentVe).bind(W9())(Z)};var KF,e4Y;KF=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};
_.tC=function(){KF.instance||(KF.instance=new KF);return KF.instance};
KF.prototype.setClient=function(L){this.client=L};
e4Y=function(L,Z,N){N=N===void 0?{}:N;_.B8(function(){var S,u,T,W=((S=_.n(Z==null?void 0:Z.commandMetadata,_.Nj))==null?void 0:S.rootVe)||((u=_.n(Z==null?void 0:Z.commandMetadata,GWV))==null?void 0:(T=u.screenVisualElement)==null?void 0:T.uiType);if(W){S=_.n(Z==null?void 0:Z.commandMetadata,ODt);if(S==null?0:S.parentTrackingParams){var V=_.Mg(S.parentTrackingParams);if(S.parentCsn)var M=S.parentCsn}else N.clickedVisualElement?V=N.clickedVisualElement:Z.clickTrackingParams&&(V=_.Mg(Z.clickTrackingParams));
a:{S=_.n(Z,_.so);u=_.n(Z,trF);if(S){if(u=gZP(S,"VIDEO")){S={token:u,videoId:S.videoId};break a}}else if(u&&(S=gZP(u,"PLAYLIST"))){S={token:S,playlistId:u.playlistId};break a}S=void 0}N=Object.assign({},{cttAuthInfo:S,parentCsn:M},N);if(_.c("expectation_logging")){var G;N.loggingExpectations=((G=_.n(Z==null?void 0:Z.commandMetadata,GWV))==null?void 0:G.loggingExpectations)||void 0}_.fF(L,W,V,N)}else _.Q7(new _.sr("Error: Trying to create a new screen without a rootVeType",Z))})()};
_.fF=function(L,Z,N,S){S=S===void 0?{}:S;_.B8(function(){Kn0.includes(Z)||(_.Q7(new _.sr("createClientScreen() called with a non-page VE",Z)),Z=83769);S.isHistoryNavigation||(L.forwardHistoryStack=[],L.backHistoryStack.push({rootVe:Z,key:S.key||""}));L.graftQueue=[];L.stateChangedQueue=[];S.dataPromises?ILI(L,Z,N,S):dll(L,Z,N,S)})()};
_.aLM=function(L,Z,N){N=N===void 0?0:N;_.B8(function(){Z.then(function(S){L.pendingScreenCreation.has(N)&&L.pendingScreenFn&&L.pendingScreenFn();var u=_.RH(N),T=_.oH(N);if(u&&T){var W={automatedLogEventSource:3},V;(S==null?0:(V=S.response)==null?0:V.trackingParams)&&UT(L.client,u,T,_.Mg(S.response.trackingParams),!1,W);var M;(S==null?0:(M=S.playerResponse)==null?0:M.trackingParams)&&UT(L.client,u,T,_.Mg(S.playerResponse.trackingParams),!1,W)}})})()};
KF.prototype.graftServerVe=function(L,Z,N){var S=this;return _.B8(function(){var u=_.Mg(L);_.k3(S,u,Z,N);return u})()};
_.zDs=function(L,Z,N,S){return _.c("enable_client_ve_spec")&&Z.clientVeSpec?(Z=_.Ll(Z.clientVeSpec.uiType,void 0,Z.clientVeSpec.elementIndex,Z.clientVeSpec.clientYoutubeData,void 0,Z),_.k3(L,Z,N,S)?Z:null):Z.trackingParams?L.graftServerVe(Z.trackingParams,N,S):null};
_.Si=function(L,Z,N,S){return _.B8(function(){if(!Z.veType)return _.rY(new _.sr("Error: Trying to graft a client VE without a veType.")),null;if(Z.visibilityTypes){var u=Z.visibilityTypes.reduce(function(T,W){return T|W});
u={visibility:{types:String(u)}}}u=_.Ll(Z.veType,Z.visualElement,Z.elementIndex,Z.clientYouTubeData,void 0,u);return _.k3(L,u,N,S)?u:null})()};
_.k3=function(L,Z,N,S){S=S===void 0?0:S;return _.B8(function(){if(L.pendingScreenCreation.has(S))return L.graftQueue.push([Z,N]),!0;var u=_.RH(S),T=N||_.oH(S);if(u&&T){if(_.c("combine_ve_grafts")){var W=L.cachedVisualElements.get(T.toString());W?W.push(Z):(L.cachedRootVisualElements.set(T.toString(),T),L.cachedVisualElements.set(T.toString(),[Z]));L.attachTimeout||(L.attachTimeout=_.sI(_.ro,function(){h4q(L,u)},1200))}else UT(L.client,u,T,Z);
return!0}return!1})()};
_.yn=function(L,Z,N){N=N===void 0?0:N;var S=L.recurringGrafts.get(N)||new Map;if(_.c("smarter_ve_dedupping"))for(var u=Array.from(S.keys()),T=0;T<u.length;T++){var W=void 0,V=void 0;var M=Z;var G=u[T];G.isClientVe()&&M.isClientVe()?(W=M.getAsJson(),V=G.getAsJson(),M=W.veType!==V.veType||W.elementIndex!==V.elementIndex||W.dataElement!==V.dataElement||M.getLoggingDirectives()!==G.getLoggingDirectives()?!1:!0):M=G.veData.trackingParams!==void 0&&M.veData.trackingParams!==void 0?((V=M.veData)==null?void 0:
V.trackingParams)===((W=G.veData)==null?void 0:W.trackingParams):!1;if(M)return}else if(S.has(Z))return;S.set(Z,void 0);L.recurringGrafts.set(N,S);_.RH(N)==="UNDEFINED_CSN"||L.pendingScreenCreation.has(N)||_.k3(L,Z,void 0,N)};
_.wM=function(L,Z,N,S){S=_.RH(S===void 0?0:S);if(!S)return!1;$UA(L.client,S,Z,N);return!0};
_.U$=function(L,Z,N,S){if(!Z)return!1;S=_.RH(S===void 0?0:S);if(!S)return!1;$UA(L.client,S,_.Mg(Z),N);return!0};
_.ew=function(L,Z){var N=Z.getScreenLayer&&Z.getScreenLayer();if(Z.visualElement)return _.wM(L,Z.visualElement,void 0,N);Z=zNB(_.Ng(),Z);return _.U$(L,Z,void 0,N)};
KF.prototype.clickCommand=function(L,Z,N){return _.U$(this,L.clickTrackingParams,Z,N===void 0?0:N)};
KF.prototype.stateChanged=function(L,Z,N){this.visualElementStateChanged(_.Mg(L),Z,N===void 0?0:N)};
KF.prototype.visualElementStateChanged=function(L,Z,N){N=N===void 0?0:N;N===0&&this.pendingScreenCreation.has(N)?this.stateChangedQueue.push([L,Z]):this.logStateChanged(L,Z,N)};
KF.prototype.logStateChanged=function(L,Z,N){N=N===void 0?0:N;var S=_.RH(N);L=L||_.oH(N);return S&&L?(DUx(this.client,S,L,Z),!0):!1};
var ILI=function(L,Z,N,S){S=S===void 0?{}:S;L.pendingScreenCreation.add(S.layer||0);L.pendingScreenFn=function(){dll(L,Z,N,S);var W=_.oH(S.layer);if(W){for(var V=_.O(L.graftQueue),M=V.next();!M.done;M=V.next())M=M.value,_.k3(L,M[0],M[1]||W,S.layer);W=_.O(L.stateChangedQueue);for(V=W.next();!V.done;V=W.next())V=V.value,L.logStateChanged(V[0],V[1])}};
N||_.RH(S.layer)||L.pendingScreenFn();if(S.dataPromises)for(var u=_.O(S.dataPromises),T=u.next();!T.done;T=u.next())_.aLM(L,T.value,S.layer);else _.CA(Error("Ff"))},dll=function(L,Z,N,S){S=S===void 0?{}:S;
var u=void 0;S.layer||(S.layer=0);u=S.parentLayer!==void 0?S.parentLayer:S.layer;var T=_.RH(u);u=_.oH(u);var W=N||u,V;W&&(S.parentCsn!==void 0?V={clientScreenNonce:S.parentCsn,visualElement:W}:T&&T!=="UNDEFINED_CSN"&&(V={clientScreenNonce:T,visualElement:W}));var M,G=_.X7("EVENT_ID");T==="UNDEFINED_CSN"&&G&&(M={servletData:{serializedServletEventId:G}});_.c("combine_ve_grafts")&&T&&h4q(L,T);_.c("no_client_ve_attach_unless_shown")&&W&&T&&Wis(W,T);try{var D=_.TMF(L.client,Z,V,S.csnToClone,S.cttAuthInfo,
M,S.implicitGestureType,void 0,S.loggingExpectations)}catch(R){_.Xv(R,{rootVeType:Z,rootVe:u,parentVisualElement:N,currentCsn:T,parentEl:V,csnToClone:S.csnToClone});_.CA(R);return}_.Kv(D,Z,S.layer,S.cttAuthInfo);T&&T!=="UNDEFINED_CSN"&&u&&!$Rx(T)&&GWB(L.client,T,u,!0);L.backHistoryStack[L.backHistoryStack.length-1]&&!L.backHistoryStack[L.backHistoryStack.length-1].csn&&(L.backHistoryStack[L.backHistoryStack.length-1].csn=D||"");_.lB({clientScreenNonce:D});_.Y5l();var l=_.oH(S.layer);T&&T!=="UNDEFINED_CSN"&&
l&&(_.c("web_mark_root_visible")||_.c("music_web_mark_root_visible"))&&_.dR(D,l);L.pendingScreenCreation.delete(S.layer||0);L.pendingScreenFn=void 0;var v;(v=L.recurringGrafts.get(S.layer))==null||v.forEach(function(R,K){R?_.k3(L,K,R,S.layer):l&&_.k3(L,K,l,S.layer)});
sds(L)},sds=function(L){for(var Z=0;Z<L.afterNewScreenOneOffJobs.length;Z++){var N=L.afterNewScreenOneOffJobs[Z];
try{N()}catch(S){_.CA(S)}}for(Z=L.afterNewScreenOneOffJobs.length=0;Z<L.afterNewScreenRecurringJobs.length;Z++){N=L.afterNewScreenRecurringJobs[Z];try{N()}catch(S){_.CA(S)}}},h4q=function(L,Z){if(Z===void 0)for(var N=G_P(),S=0;S<N.length;S++)N[S]!==void 0&&h4q(L,N[S]);
else L.cachedVisualElements.forEach(function(u,T){(T=L.cachedRootVisualElements.get(T))&&thA(L.client,Z,T,u)}),L.cachedVisualElements.clear(),L.cachedRootVisualElements.clear(),L.attachTimeout=void 0};var Y3=function(L){L=L===void 0?{layer:0}:L;this.hasRun=!1;this.createScreenConfig=L;L={};this.oFA=(L.response=!1,L.playerResponse=!1,L)};
_.f(Y3,$3);Y3.prototype.validate=function(L){return!(!L.data||!L.data.response&&!L.data.playerResponse)};
Y3.prototype.handle=function(L){var Z=_.tC(),N=this.createScreenConfig.layer;L.data.response&&L.data.response.trackingParams&&!this.oFA.response&&(Z.graftServerVe(L.data.response.trackingParams,void 0,N),this.oFA.response=!0);L.data.playerResponse&&L.data.playerResponse.trackingParams&&!this.oFA.playerResponse&&(Z.graftServerVe(L.data.playerResponse.trackingParams,void 0,N),this.oFA.playerResponse=!0)};var eh=function(){this.ox=_.hS();this.g0=[];this.bcm=0};
eh.prototype.processChunk=function(L){if(L){for(var Z=_.O(this.g0),N=Z.next();!N.done;N=Z.next())N=N.value,N.validate(L)&&(N.handle(L),N.hasRun=!0);_.Rq("np"+this.bcm);this.bcm++}};var pq={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},kW0={rootSpan:function(){return pq.stack[0]}};var E2t=function(){var L=jdt;this.observers=[];this.value=L};
_.t=E2t.prototype;_.t.subscribe=function(L){var Z=this;if(L.idx!=null)throw Error("Hf");L.idx=this.observers.length;this.observers.push(L);return function(){var N=Z.observers[Z.observers.length-1];Z.observers[L.idx]=N;N.idx=L.idx;Z.observers.pop()}};
_.t.update=function(L){this.value=L(this.value);this.notify()};
_.t.mutate=function(L){L(this.value);this.notify()};
_.t.set=function(L){this.value=L;this.notify()};
_.t.notify=function(){for(var L=_.O(this.observers),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;try{Z(this.value)}catch(N){}}};var bpA,PKL,mlI;_.qd=function(L,Z,N,S,u,T,W,V){W=W===void 0?[]:W;V=V===void 0?[]:V;this.buildCommandPayload=L;this.navigate=Z;this.handleServiceRequest=N;this.sendAction=S;this.JSC$12773_screenManager=u;this.commandResolverMap=T;this.autoLogResolverAllowlist=W;this.metaCommandClickLoggingDenylist=V;this.pendingCommands=new Set;this.isTracingEnabled=!1;PKL(this)};
bpA=function(L,Z,N,S){var u=AHh,T=H41,W=_.tC(),V=pN0;N=N===void 0?[]:N;S=S===void 0?[]:S;_.qd.instance=new _.qd(L,Z,u,T,W,V,N,S)};
PKL=function(L){if(!L.isTracingEnabled&&Ki_("command")){var Z=L.resolveCommand;L.resolveCommand=function(N,S){a:{for(u in N)if(Object.prototype.hasOwnProperty.call(N,u)){var u={commandType:u};break a}u={}}return yKF("command",u,Z.bind(this,N,S))};
L.isTracingEnabled=!0}};
mlI=function(L,Z,N){if(!L.commandResolverMap)return!1;var S=Ijx(Z,L.commandResolverMap);return S?((L.autoLogResolverAllowlist.some(function(u){return!!_.n(Z,u)})||(N==null?0:N.forceClickLogging))&&z4Y(L,Z,N),S instanceof Promise?S.then(function(u){u.resolve(Z,N)}):S.resolve(Z,N),!0):!1};
_.qd.prototype.resolveCommand=function(L,Z){var N=this,S=Jtq(L);if(mlI(this,L,Z))return!0;if(S)return CKt(this,L,Z);if(!this.buildCommandPayload)return UUB(L,"Unhandled command by buildCommandPayload"),!1;var u=this.buildCommandPayload(L,Z);if(Z==null?0:Z.commandController)u.commandController=Z.commandController;if(u.type===0){if(!this.navigate)return Y$F(L,"navigate"),!1;if(!rtt(u.command))return UUB(L,"Page requests need to specify a url"),!1;_.c("logging_avoid_blocking_during_navigation")&&_.k0_().transition("application_navigating");
L=this.navigate(u)||[];DTL(L).then(function(){N.pendingCommands.delete(u.command)});
return!0}if(u.type===1){if(!this.handleServiceRequest)return Y$F(L,"handleServiceRequest"),!1;(Z==null?0:Z.forceClickLogging)&&z4Y(this,u.command,Z);L=this.handleServiceRequest(u);DTL(L).then(function(){N.pendingCommands.delete(u.command)});
return!0}if(u.type===2){if(!this.sendAction)return Y$F(L,"sendAction"),!1;z4Y(this,u.command,Z);this.sendAction(u);return!0}return!1};
var z4Y=function(L,Z,N){if((N==null||!N.disableClickTracking)&&L.JSC$12773_screenManager)if(Z.clickTrackingParams&&_.c("log_click_with_layer_from_element_in_command_handler")){var S;N=N==null?void 0:(S=N.form)==null?void 0:S.element;L.JSC$12773_screenManager.clickCommand(Z,null,N&&N.getScreenLayer&&N.getScreenLayer())}else Z.clickTrackingParams?L.JSC$12773_screenManager.clickCommand(Z):!_.c("disable_clicked_visual_element_in_command_handler")&&(N==null?0:N.clickedVisualElement)&&_.wM(L.JSC$12773_screenManager,
N.clickedVisualElement)},Jtq=function(L){var Z=!!_.n(L,_.q2),N;
L=((N=_.n(L,_.ZW))==null?void 0:N.signal)==="CLIENT_SIGNAL";return Z||L},CKt=function(L,Z,N){var S=_.n(Z,_.q2);
if(S)var u=(S==null?void 0:S.commands)||[];else{var T;if(((T=_.n(Z,_.ZW))==null?void 0:T.signal)==="CLIENT_SIGNAL"){var W;u=((W=_.n(Z,_.ZW))==null?void 0:W.actions)||[]}}if(u){(S=QdM(L,u))&&z4Y(L,Z,N);Z=_.O(u);for(u=Z.next();!u.done;u=Z.next()){u=u.value;try{var V=Object.assign({},N);S&&(V.disableClickTracking=!0);L.resolveCommand(u,V)}catch(M){M instanceof Error&&_.CA(M)}}return!0}UUB(Z,"Could not handle the meta command");return!1},QdM=function(L,Z){return Z.every(function(N){return L.metaCommandClickLoggingDenylist.some(function(S){return!!_.n(N,
S)})})},rtt=function(L){var Z;
return!((Z=_.n(L==null?void 0:L.commandMetadata,_.Nj))==null||!Z.url)};var IB=function(){$3.apply(this,arguments)};
_.f(IB,$3);IB.prototype.validate=function(L){var Z,N;return!this.hasRun&&!!((Z=L.data.response)==null?0:(N=Z.onResponseReceivedEndpoints)==null?0:N.length)};
IB.prototype.handle=function(L){var Z=_.qd.instance;L=_.O(L.data.response.onResponseReceivedEndpoints);for(var N=L.next();!N.done;N=L.next())Z.resolveCommand(N.value)};var XNs,AtQ,HPV;
XNs=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=_.xP();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.dM=function(){AtQ||(AtQ=new XNs);return AtQ};
HPV=function(){var L=_.dM();L.miniplayerButtonActivation=!1;L.userActivation=!1;L.playlistWatchPageActivation=!1;L.productDetailsPageActivation=!1;L.miniAppPageActivation=!1;L.playablesDestPageActivation=!1;L.lockupActivation=!1;L.showMiniplayerCommandActivation=!1;L.playlistSuggestionsShelfActivation=!1;L.mediaSessionPipActivation=!1;L.watchPipActivation=!1;L.watchWhileActivation=!1;L.shortsPipActivation=!1;L.companionCanvasActivation=!1};
_.BCN=function(){var L=_.dM(),Z=L.mediaSessionPipActivation,N=L.watchPipActivation,S=L.watchWhileActivation,u=L.playlistWatchPageActivation,T=L.lockupActivation,W=L.showMiniplayerCommandActivation,V=L.navigatingAwayFromWatchDeletedVideo,M=L.shortsPipActivation,G=L.playlistSuggestionsShelfActivation,D=L.productDetailsPageActivation,l=L.miniAppPageActivation,v=L.playablesDestPageActivation,R=L.companionCanvasActivation;return!L.miniplayerButtonActivation&&!u&&!G&&!D&&!l&&!v&&!T&&!W&&!Z&&!N&&!S&&!M&&
!R||V};var JFs;_.aB=_.m2("FEwhat_to_watch","/",3854);_.C8B=_.m2("FEdownloads","/feed/downloads",42352);JFs=_.m2("FEmusic_offline","browse/FEmusic_offline",42352);var E9=function(L,Z){Z=Z===void 0?[]:Z;var N=N===void 0?[]:N;Z=Qnw.apply(null,[Xzw.apply(null,_.Pd(Z))].concat(_.Pd(N)));this.store=xYB(L,void 0,Z)};
E9.prototype.getState=function(){return this.store.getState()};
E9.prototype.dispatch=function(L){return this.store.dispatch(L)};
E9.prototype.subscribe=function(L){return this.store.subscribe(L)};
E9.prototype.replaceReducer=function(L){return this.store.replaceReducer(L)};
E9.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.hK=function(L,Z,N){var S=Z(L.getState());return L.subscribe(function(){var u=Z(L.getState());if(u!==S){var T=S;S=u;N(u,T)}})};var nvt;_.Mr=function(L,Z,N){return _.XK({type:"REPLACE_ENTITY",payload:{entityPayload:N,entityType:L,key:Z}})};
nvt=function(L){return _.XK({type:"REPLACE_ENTITIES",payload:L})};
_.vt=function(L,Z,N,S){return _.XK({type:"UPDATE_ENTITY",payload:{entityPayload:N,entityType:L,key:Z,mergeOption:S}})};var rKP=function(L){var Z=this;L=L===void 0?[]:L;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;L.forEach(function(N){Z.append(N)})};
_.t=rKP.prototype;_.t.getLength=function(){return this.totalLength};
_.t.append=function(L){var Z=this.arrays.length===0?!1:(Z=this.arrays[this.arrays.length-1])&&Z.buffer===L.buffer&&Z.byteOffset+Z.length===L.byteOffset;Z?(Z=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(Z.buffer,Z.byteOffset,Z.length+L.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(L);this.totalLength+=L.length};
_.t.split=function(L){for(var Z=new rKP,N=new rKP,S=_.O(this.arrays),u=S.next();!u.done;u=S.next())u=u.value,L>=u.length?(Z.append(u),L-=u.length):L?(Z.append(new Uint8Array(u.buffer,u.byteOffset,L)),N.append(new Uint8Array(u.buffer,u.byteOffset+L,u.length-L)),L=0):N.append(u);return{headView:Z,tailView:N}};
_.t.isFocused=function(L){return L>=this.arrayPos&&L<this.arrayPos+this.arrays[this.arrayIdx].length};
_.t.focus=function(L){if(!this.isFocused(L))for(L<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=L&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var xlQ=function(L,Z){L.focus(Z);return L.arrays[L.arrayIdx][Z-L.arrayPos]};(function(){var L=function(S){return new Uint8Array(S)},Z=function(S){for(var u=new Uint8Array(S.length),T=0;T<S.length;T++)u[T]=S[T];
return u},N=new Uint8Array([1]);
return N.length===1&&N[0]===1?L:Z})();
var PDL=Array(1024),E31=window.TextDecoder?new TextDecoder:void 0,zT_=window.TextEncoder?new TextEncoder:void 0;var CDP=function(L){this.arrayView=L;this.pos=0;this.pendingTagAndType=-1},Aq=function(L){var Z=xlQ(L.arrayView,L.pos);
++L.pos;if(Z<128)return Z;for(var N=Z&127,S=1;Z>=128;)Z=xlQ(L.arrayView,L.pos),++L.pos,S*=128,N+=(Z&127)*S;return N},QBP=function(L,Z){var N=L.pendingTagAndType;
for(L.pendingTagAndType=-1;L.pos+1<=L.arrayView.totalLength;){N<0&&(N=Aq(L));var S=N>>3,u=N&7;if(S===Z)return!0;if(S>Z){L.pendingTagAndType=N;break}N=-1;switch(u){case 0:Aq(L);break;case 1:L.pos+=8;break;case 2:S=Aq(L);L.pos+=S;break;case 5:L.pos+=4}}return!1};var AKP=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=JK_(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},x6=function(L,Z){Z=L.pos+Z;
if(!(L.buf.length>=Z)){for(var N=L.buf.length*2;N<Z;)N*=2;L.buf=JK_(N,L.wasm,L.buf.subarray(0,L.pos));L.view=new DataView(L.buf.buffer,L.buf.byteOffset,L.buf.byteLength)}},BB=function(L,Z){if(Z>268435455){x6(L,4);
for(var N=Z&1073741823,S=0;S<4;S++)L.view.setUint8(L.pos,N&127|128),N>>=7,L.pos+=1;Z=Math.floor(Z/268435456)}for(x6(L,4);Z>127;)L.view.setUint8(L.pos,Z&127|128),Z>>=7,L.pos+=1;L.view.setUint8(L.pos,Z);L.pos+=1};for(var HFs={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},X$t={},q5N=_.O(Object.entries(HFs)),LOt=q5N.next();!LOt.done;LOt=q5N.next()){var ZWM=_.O(LOt.value),NAL=ZWM.next().value,S0Y=ZWM.next().value,iWM=NAL,uA0=S0Y;uA0&&(X$t[uA0]=iWM)};var xU_=function(L,Z){L=L===void 0?{}:L;switch(Z.type){case "ENTITY_LOADED":return Z.payload.reduce(function(S,u){var T,W=(T=u.options)==null?void 0:T.persistenceOption;if(W&&W!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&W!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return S;if(!u.entityKey)return _.CA(Error("Jf")),S;if(u.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!u.payload)return u=new _.sr("REPLACE entity mutation is missing a payload",{entityKey:u.entityKey}),_.CA(u),S;var V=(0,_.Py.getAnyKey)(u.payload);
return Lc1(S,V,u.entityKey,u.payload[V])}if(u.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{u=u.entityKey;try{var M=_.HB(u).entityType;V=Lc1(S,M,u);break a}catch(l){if(l instanceof Error){u=new _.sr("Failed to deserialize entity key",{entityKey:u,originalMessage:l.message});_.CA(u);V=S;break a}throw l;}V=void 0}return V}if(u.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!u.payload)return u=new _.sr("UPDATE entity mutation is missing a payload",{entityKey:u.entityKey}),_.CA(u),S;V=(0,_.Py.getAnyKey)(u.payload);
var G,D;return ZfG(S,V,u.entityKey,u.payload[V],(G=u.fieldMask)==null?void 0:(D=G.mergeOptions)==null?void 0:D.repeatedFieldsMergeOption)}return S},L);
case "REPLACE_ENTITY":var N=Z.payload;return Lc1(L,N.entityType,N.key,N.entityPayload);case "REPLACE_ENTITIES":return Object.keys(Z.payload).reduce(function(S,u){var T=Z.payload[u];return Object.keys(T).reduce(function(W,V){return Lc1(W,u,V,T[V])},S)},L);
case "UPDATE_ENTITY":return N=Z.payload,ZfG(L,N.entityType,N.key,N.entityPayload,N.mergeOption);default:return L}};var NHF;var TAN=!1,s$,jh,E$,P$,pF,tB5=function(L){_.ag.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!TAN){var Z,N=new Uint8Array(256),S=new Uint8Array(256);var u=1;for(Z=0;Z<256;Z++)N[u]=Z,S[Z]=u,u^=u<<1^(u>>7&&283);s$=new Uint8Array(256);jh=ZT(256);E$=ZT(256);P$=ZT(256);pF=ZT(256);for(var T=0;T<256;T++){u=T?S[255^N[T]]:0;u^=u<<1^u<<2^u<<3^u<<4;u=u&255^u>>>8^99;s$[T]=u;Z=u<<1^(u>>7&&283);var W=Z^u;jh[T]=Z<<24|u<<16|u<<8|W;E$[T]=W<<24|jh[T]>>>8;P$[T]=u<<24|E$[T]>>>
8;pF[T]=u<<24|P$[T]>>>8}TAN=!0}u=ZT(44);for(N=0;N<4;N++)u[N]=L[4*N]<<24|L[4*N+1]<<16|L[4*N+2]<<8|L[4*N+3];for(S=1;N<44;N++)L=u[N-1],N%4||(L=(s$[L>>16&255]^S)<<24|s$[L>>8&255]<<16|s$[L&255]<<8|s$[L>>>24],S=S<<1^(S>>7&&283)),u[N]=u[N-4]^L;this.key=u};
_.f(tB5,_.ag);
tB5.prototype.encrypt=function(L){var Z=L.length;L=new Uint8Array(L.buffer.slice(L.byteOffset,L.byteOffset+Z));for(var N=this.cipherBlock,S=0;S<Z&&this.blockOffset<16;)L[S++]^=N[this.blockOffset++];for(var u=Z-(Z-S)%16;S<u;)OW0(this),L[S++]^=N[0],L[S++]^=N[1],L[S++]^=N[2],L[S++]^=N[3],L[S++]^=N[4],L[S++]^=N[5],L[S++]^=N[6],L[S++]^=N[7],L[S++]^=N[8],L[S++]^=N[9],L[S++]^=N[10],L[S++]^=N[11],L[S++]^=N[12],L[S++]^=N[13],L[S++]^=N[14],L[S++]^=N[15];if(S<Z)for(OW0(this),this.blockOffset=0;S<Z;)L[S++]^=
N[this.blockOffset++];return L};
var OW0=function(L){for(var Z=L.key,N=L.counter[0]^Z[0],S=L.counter[1]^Z[1],u=L.counter[2]^Z[2],T=L.counter[3]^Z[3],W=3;W>=0&&!(L.counter[W]=-~L.counter[W]);W--);for(var V,M,G=4;G<40;)W=jh[N>>>24]^E$[S>>16&255]^P$[u>>8&255]^pF[T&255]^Z[G++],V=jh[S>>>24]^E$[u>>16&255]^P$[T>>8&255]^pF[N&255]^Z[G++],M=jh[u>>>24]^E$[T>>16&255]^P$[N>>8&255]^pF[S&255]^Z[G++],T=jh[T>>>24]^E$[N>>16&255]^P$[S>>8&255]^pF[u&255]^Z[G++],N=W,S=V,u=M;L=L.cipherBlock;W=Z[40];L[0]=s$[N>>>24]^W>>>24;L[1]=s$[S>>16&255]^W>>16&255;L[2]=
s$[u>>8&255]^W>>8&255;L[3]=s$[T&255]^W&255;W=Z[41];L[4]=s$[S>>>24]^W>>>24;L[5]=s$[u>>16&255]^W>>16&255;L[6]=s$[T>>8&255]^W>>8&255;L[7]=s$[N&255]^W&255;W=Z[42];L[8]=s$[u>>>24]^W>>>24;L[9]=s$[T>>16&255]^W>>16&255;L[10]=s$[N>>8&255]^W>>8&255;L[11]=s$[S&255]^W&255;W=Z[43];L[12]=s$[T>>>24]^W>>>24;L[13]=s$[N>>16&255]^W>>16&255;L[14]=s$[S>>8&255]^W>>8&255;L[15]=s$[u&255]^W&255};var WOQ=!1;(function(){var L=function(S){return new Uint8Array(S)},Z=function(S){for(var u=new Uint8Array(S.length),T=0;T<S.length;T++)u[T]=S[T];
return u},N=new Uint8Array([1]);
return N.length===1&&N[0]===1?L:Z})();
var zW;var MBY=function(L){a:{if(!WOQ&&!Wx){if(zW){var Z=zW;break a}zW=(Z=window.crypto)==null?void 0:Z.subtle;var N,S,u;if(((N=zW)==null?0:N.importKey)&&((S=zW)==null?0:S.sign)&&((u=zW)==null?0:u.encrypt)){Z=zW;break a}zW=void 0}Z=void 0}Z&&(this.nativeEncryptor=new VBq(L,Z));this.encryptorPolyfill=new bWl(L)};
MBY.prototype.encrypt=function(L,Z){var N=this,S;return _.b(function(u){switch(u.nextAddress){case 1:if(!N.nativeEncryptor){u.jumpTo(2);break}_.RS(u,3);return u.yield(N.nativeEncryptor.encrypt(L,Z),5);case 5:return u.return(u.yieldResult);case 3:S=_.yd(u),_.Q7(S),WOQ=!0,N.nativeEncryptor=void 0;case 2:return u.return(N.encryptorPolyfill.encrypt(L,Z))}})};
MBY.prototype.decrypt=function(L,Z){return this.encrypt(L,Z)};
var VBq=function(L,Z){this.JSC$12846_aesKey=L;this.subtleCrypto=Z};
VBq.prototype.encrypt=function(L,Z){var N=this,S;return _.b(function(u){if(u.nextAddress==1)return _.RS(u,2),u.yield(gG5(N,L,Z),4);if(u.nextAddress!=2)return u.return(u.yieldResult);S=_.yd(u);_.Q7(S);WOQ=!0;throw S;})};
var gG5=function(L,Z,N){var S,u;return _.b(function(T){switch(T.nextAddress){case 1:if(L.cryptoKey){T.jumpTo(2);break}return T.yield(L.subtleCrypto.importKey("raw",L.JSC$12846_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:L.cryptoKey=T.yieldResult;case 2:return S={name:"AES-CTR",counter:N,length:128},T.yield(L.subtleCrypto.encrypt(S,L.cryptoKey,Z),4);case 4:return u=T.yieldResult,T.return(new Uint8Array(u))}})},bWl=function(L){this.JSC$12849_aesKey=L};
bWl.prototype.encrypt=function(L,Z){this.encryptor||(this.encryptor=new tB5(this.JSC$12849_aesKey));for(var N=this.encryptor,S=0;S<4;S++)N.counter[S]=Z[S*4]<<24|Z[S*4+1]<<16|Z[S*4+2]<<8|Z[S*4+3];N.blockOffset=16;return this.encryptor.encrypt(L)};
bWl.prototype.decrypt=function(L,Z){return this.encrypt(L,Z)};var Gy0={},uIw=go("yt-idb-pref-storage",{objectStores:(Gy0.prefs={addedAtVersion:1},Gy0),shared:!1,upgrade:function(L,Z){Z(1)&&LA(qO(L,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.mi=function(L){this.token=L};
_.mi.getInstance=function(){return _.b(function(L){return L.return(new Promise(function(Z){_.MO().then(function(N){N?(_.mi.instance||(_.mi.instance=new _.mi(N)),Z(_.mi.instance)):Z(void 0)})}))})};
_.mi.prototype.get=function(L){var Z=this,N,S,u;return _.b(function(T){if(T.nextAddress==1)return T.yield(TH0(Z.token),2);if(T.nextAddress!=3)return N=T.yieldResult,T.yield(N.get("prefs",L),3);S=T.yieldResult;if(!S)return T.return();u=(0,_.GT)();return S.expirationTimestampMs<=u?T.return():T.return(S.value)})};
_.mi.prototype.set=function(L,Z,N){N=N===void 0?31536E3:N;var S=this,u,T,W;return _.b(function(V){if(V.nextAddress==1)return u=(0,_.GT)(),T={key:L,value:Z,expirationTimestampMs:u+N*1E3},V.yield(TH0(S.token),2);W=V.yieldResult;return V.yield(W.put("prefs",T),0)})};
_.mi.prototype.remove=function(L){var Z=this,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(TH0(Z.token),2);N=S.yieldResult;return S.yield(N.delete("prefs",L),0)})};var JK={},FO0=(JK.INVALID_ENCODER_VERSION="Invalid encoder version",JK.KEY_CREATION_FAILED="Failed to create encoder key",JK.UNKNOWN_DECODE_ERROR="Failed to decode PES data",JK.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",JK.WRONG_DATA_TYPE="Encoder cannot process the data type",JK),Ne=function(L,Z){Z=Z===void 0?{}:Z;_.sr.call(this,FO0[L],Object.assign({},{name:"PESEncoderError",type:L},Z));this.type=L;this.level="WARNING";Object.setPrototypeOf(this,Ne.prototype)};
_.f(Ne,_.sr);var CF=function(){};
CF.prototype.encode=function(L,Z){try{return this.encodeImpl(L,Z)}catch(N){V3_(N,Of1)}};
CF.prototype.decode=function(L,Z){try{return this.decodeImpl(L,Z)}catch(N){V3_(N,WcP)}};
var $wq=function(L,Z,N){var S;return _.b(function(u){if(u.nextAddress==1)return _.RS(u,2),u.yield(L.decodeAsyncImpl(Z,N),4);if(u.nextAddress!=2)return u.return(u.yieldResult);S=_.yd(u);V3_(S,WcP);_.w7(u)})};
CF.prototype.decodeAsyncImpl=function(L,Z){return Promise.resolve(this.decodeImpl(L,Z))};var rM=function(L,Z){this.aesEncryptor=L;this.aesEncryptorAsync=Z};
_.f(rM,CF);rM.prototype.encodeImpl=function(L,Z){Z=bfH(Z);L=(new TextEncoder).encode(JSON.stringify(L));return this.aesEncryptor.encrypt(L,Z)};
rM.prototype.decodeImpl=function(L,Z){if(!(L instanceof Uint8Array))throw t3F(1);var N=new TextDecoder;Z=bfH(Z);L=this.aesEncryptor.decrypt(L,Z);return JSON.parse(N.decode(L))};
rM.prototype.decodeAsyncImpl=function(L,Z){var N=this,S,u,T;return _.b(function(W){if(W.nextAddress==1){if(!(L instanceof Uint8Array))throw t3F(1);S=new TextDecoder;u=bfH(Z);return W.yield(N.aesEncryptorAsync.decrypt(L,u),2)}T=W.yieldResult;return W.return(JSON.parse(S.decode(T)))})};var M3H={accountLinkStatusEntity:SFN,booleanEntity:eYI,buttonEntity:fRL,captionTrack:WAV,channelHandle:TSY,chipEntity:ZSV,commerceAcquisitionClientPayloadEntity:xk0,commerceCartListEntity:qlh,compositeSourceEntity:Kch,multiviewStagingEntity:fas,contextNoteFeedEntityPayload:vUN,contextNoteUserRatingEntityPayload:oUq,continuationTokenEntity:zTq,downloadQualityPickerEntity:Y$O,downloadsPageRefreshTokenEntity:Ijs,downloadsPageViewConfigurationEntity:BMl,downloadStatusEntity:eTh,dismissState:NiM,sfvAudioItemCurrentlyPlayingEntity:zut,
emojiFountainDataEntity:cOY,emojiCustomizationSetEntity:R6t,fakeChannel:dRq,fakePlaylist:acO,fakePlaylistEntryCollection:hYl,fakeVideo:jNq,fakeVideoDescription:Ea0,featuredProductsEntity:Dvs,flowStateEntity:qbO,iconBadgeEntity:LbY,interstitialInteractionStateEntity:vZQ,likeButtonAnimationEntity:xUq,liveChatPollStateEntity:ycL,dataFreshnessEntity:oCL,liveViewerLeaderboardChatEntryPointStateEntity:nXO,liveViewerLeaderboardPointsEntity:KAI,liveReactionsDataEntity:nCY,logoEntity:DfM,macroMarkerEntity:q$L,
mainDownloadsLibraryEntity:dU5,mainDownloadsListEntity:ajQ,mainPlaylistDownloadStateEntity:sBt,mainPlaylistEntity:mUY,mainPlaylistVideoEntity:JKq,mainVideoDownloadStateEntity:jBs,mainVideoEntity:X$L,markersEngagementPanelSyncEntity:Lc0,markersVisibilityOverrideEntity:ZfY,musicAlbumReleaseDetail:eVt,musicAlbumReleaseDownloadMetadataEntity:k2Y,musicAlbumRelease:YOt,musicAlbumReleaseUserDetail:IaL,musicArtistDetail:aat,musicArtist:dvI,musicArtistUserDetail:hVO,musicDownloadsLibraryEntity:yes,musicLibraryEdit:suO,
musicLibraryStatusEntity:juM,musicPlaylist:EvO,musicPlaylistDownloadMetadataEntity:w3I,musicShare:p3Q,musicTrackDetail:mvq,musicTrackDownloadMetadataEntity:UvL,musicTrack:zVI,musicTrackUserDetail:JeN,offlineOrchestrationActionWrapperEntity:VK5,offlineVideoPolicy:bKl,offlineVideoStreams:MKq,offlineabilityEntity:E30,orchestrationWebSamplingEntity:PDI,pageHeaderEntity:MVh,pdpStateEntity:ZNt,pinnedProductEntity:laM,playbackData:gXt,playerStateEntity:NHO,quantityIncrementerEntity:NL0,refresh:Gx0,saveToPlaylistListEntity:Wyq,
selectedChipIndexEntityPayload:SOL,settingEntity:YwI,stringEntity:Ics,suggestedFeedbackChipStateEntity:ifO,transfer:FAY,trendingOfferEntity:vvs,videoDownloadContextEntity:$Nq,videoOverviewAsyncDataEntity:fHV,videoPlaybackPositionEntity:wpN,votingEntity:$kV,ytMainChannelEntity:AK5,youchatPendingResponseEntity:uIh,ytMainDownloadedVideoEntity:p$t,ytMainVideoEntity:HFl};var Dwt,vGt,tN,ov1,RVh,cPV,KOl,nGM,Rjt;Dwt=function(L,Z){this.JSC$12868_wrapped=L;this.JSC$12868_encoderRegistry=Z;this.changedKeys={}};
vGt=function(L,Z){return l$t(L.JSC$12868_encoderRegistry,Z.version).decode(Z.data,Z.key)};
_.oGY=function(L,Z,N){return L.JSC$12868_wrapped.objectStore("EntityStore").get(Z).then(function(S){if(S){if(N&&S.entityType!==N)throw Error("Kf");return vGt(L,S)}})};
tN=function(L,Z,N){return N?(N=N.map(function(S){return _.oGY(L,S,Z)}),xs.all(N)):L.JSC$12868_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(Z)).then(function(S){return S.map(function(u){return vGt(L,u)})})};
_.vvx=function(L,Z,N){var S=BMs(Z),u=l$t(L.JSC$12868_encoderRegistry,1),T=Object.assign({},Z);return L.JSC$12868_wrapped.objectStore("EntityStore").get(S).then(function(W){if(W){if(W.entityType!==N)throw Error("Kf");T.entityMetadata||(W=vGt(L,W),T.entityMetadata=W.entityMetadata)}}).then(function(){var W={key:S,
entityType:N,data:u.encode(T,S),version:1};return xs.all([L.JSC$12868_wrapped.objectStore("EntityStore").put(W),Rjt(L,T,N)])}).then(function(){cPV(L,S,N);
return S})};
ov1=function(L,Z){var N=_.HB(Z).entityType;return xs.all([L.JSC$12868_wrapped.objectStore("EntityStore").delete(Z),nGM(L,Z)]).then(function(){cPV(L,Z,N)})};
RVh=function(L,Z,N,S){var u=l$t(L.JSC$12868_encoderRegistry,1);return _.oGY(L,Z,S).then(function(T){if(T){T=jBx(T,N);var W={key:Z,entityType:S,data:u.encode(T,Z),version:1};return xs.all([L.JSC$12868_wrapped.objectStore("EntityStore").put(W),Rjt(L,T,S)])}}).then(function(){cPV(L,Z,S);
return Z})};
cPV=function(L,Z,N){var S=L.changedKeys[N];S||(S=new Set,L.changedKeys[N]=S);S.add(Z)};
KOl=function(L,Z,N){var S=BMs(Z);N=gvG(N);if(!N)return xs.resolve([]);N=new N(Z);L=L.JSC$12868_wrapped.objectStore("EntityAssociationStore");Z=[];N=_.O(N.getAssociations());for(var u=N.next();!u.done;u=N.next())Z.push(L.put({parentEntityKey:S,childEntityKey:u.value}));return xs.all(Z).then(function(T){return T.map(function(W){return W[1]})})};
nGM=function(L,Z){return L.JSC$12868_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(Z))};
Rjt=function(L,Z,N){var S=BMs(Z);return nGM(L,S).then(function(){return KOl(L,Z,N)})};var f$5=function(){};
_.f(f$5,CF);f$5.prototype.encodeImpl=function(L){return L};
f$5.prototype.decodeImpl=function(L){if(L instanceof Uint8Array)throw t3F(0);return L};var $v0=function(){this.cacheMap={};this.cacheMap[0]=new f$5;if(!_.c("aes_pes_encoder_killswitch")){var L=this.cacheMap;try{var Z=_.ae();var N=bfH(Z);var S=new rM(new bWl(N),new MBY(N))}catch(u){throw L=u instanceof Error?new Ne("KEY_CREATION_FAILED",{originalMessage:u.message}):new Ne("KEY_CREATION_FAILED"),_.CA(L),L;}L[1]=S}},l$t=function(L,Z){Z=Z===void 0?0:Z;
L=L.cacheMap[Z];if(!L)throw Z=new Ne("INVALID_ENCODER_VERSION",{encoderVersion:Z}),_.CA(Z),Z;return L};var i2=function(L,Z){_.ag.call(this);this.token=L;this.JSC$12882_encoderRegistry=Z;this.observers=[];L=new _.iH.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.ae());L.onmessage=this.JSC$12882_handleMessage.bind(this);this.channel=L};
_.f(i2,_.ag);_.Ta=function(L,Z,N){var S,u,T,W;return _.b(function(V){if(V.nextAddress==1)return V.yield(ifF(L.token),2);if(V.nextAddress!=3)return S=V.yieldResult,V.yield(_.TT(S,["EntityStore","EntityAssociationStore"],Z,function(M){u=new Dwt(M,L.JSC$12882_encoderRegistry);return N(u)}),3);
T=V.yieldResult;u&&(W=u.changedKeys,Object.keys(W).length>0&&(L.channel.postMessage(W),kyt(L,W)));return V.return(T)})};
i2.prototype.observe=function(L){var Z=this;this.observers.push(L);return function(){var N=Z.observers.indexOf(L);N>=0&&Z.observers.splice(N,1)}};
var gK1=function(L){var Z;return _.b(function(N){if(N.nextAddress==1)return N.yield(_.Ta(L,{mode:"readonly",enableRetries:!0},function(S){return S.JSC$12868_wrapped.objectStore("EntityStore").getAll()}),2);
Z=N.yieldResult;return N.return(Promise.all(Z.filter(function(S){return!!S}).map(function(S){var u,T;
return _.b(function(W){if(W.nextAddress==1){u=S.key;T=S.entityType;var V=W.yield;var M=$wq(l$t(L.JSC$12882_encoderRegistry,S.version),S.data,S.key);return V.call(W,M,2)}return W.return({key:u,entityType:T,data:W.yieldResult})})})))})};
i2.prototype.JSC$12882_handleMessage=function(L){kyt(this,L.data)};
var kyt=function(L,Z){L=_.O(L.observers);for(var N=L.next();!N.done;N=L.next())N=N.value,N(Z)};
i2.prototype.disposeInternal=function(){this.channel.close()};
var G20;var Qn,wiL,p3A;Qn={};_.yPq=(Qn.mainVideoEntity="mainVideoEntityActionMetadata",Qn.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Qn.musicTrack="musicTrackEntityActionMetadata",Qn.musicPlaylist="musicPlaylistEntityActionMetadata",Qn);wiL=new _.iY("DOWNLOADS_ENTITY_TYPE_MAP");_.F8=_.qj("","downloadsPageViewConfigurationEntity");p3A=_.qj("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.oXw=_.qj("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.qj("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.qj("SMART_DOWNLOADS_ENABLED","settingEntity");_.qj("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var k2G=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var dvL=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];_.UwV={isLeaderTab:!0};var OK1={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var Xx=window,wn=Xx.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",tk0=Xx.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||U9,mW_=Xx.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Z2,QbY=Xx.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||ruI,Jut=Xx.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||ils,ieL=Xx.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||VCL;var TVw;ai({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 NXw=JEB(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(L){return L}}}),eg0=JEB(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(L){return L}}}),X01=new Map;var ibf=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],qw1;var Y0t=function(L){return _.XK({type:"SET_EPHEMERAL_ACTION",payload:L})};_.ejY={ephemeralAction:null};var I$Y=function(L){return _.XK({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:L})};_.dw0={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var UoL={sharedUi:function(L,Z){L=L===void 0?_.dw0:L;switch(Z.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},L,{animatedThumbnailEnabled:Z.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},L,{inlinePreviewEnabled:Z.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},L,{currentPageType:Z.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},L,{currentPageSubType:Z.payload});case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},
L,{persistentPanelVisible:Z.payload});default:return L}},
a11y:Yd({ephemeralAction:function(L,Z){L=L===void 0?_.ejY.ephemeralAction:L;switch(Z.type){case "SET_EPHEMERAL_ACTION":return Z.payload;default:return L}}}),
entities:q$t};_.VGw={playlistId:"",inviteLinkURL:""};_.a$I={continuationCommand:{}};var RhA=Yd({continuationCommand:function(L,Z){L=L===void 0?_.a$I.continuationCommand:L;switch(Z.type){case "SET_CONTINUATION_COMMAND":return Z.payload.continuationCommand;default:return L}}});_.MGh={currentFormId:"",commandsMap:{}};var cl_=Yd({isLeaderTab:function(L,Z){L=L===void 0?_.UwV.isLeaderTab:L;switch(Z.type){case "SET_IS_LEADER_TAB":var N,S;return(S=Z==null?void 0:(N=Z.payload)==null?void 0:N.isLeaderTab)!=null?S:L;default:return L}}});var sas;_.hj0=function(L){return _.XK({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:L}})};
sas=function(L){return _.XK({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:L}})};_.AK={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var woP=Yd({isDesktopSmallWidth:function(L,Z){L=L===void 0?_.AK.isDesktopSmallWidth:L;switch(Z.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return Z.payload.isDesktopSmallWidth;default:return L}},
isShortsActive:function(L,Z){L=L===void 0?_.AK.isShortsActive:L;switch(Z.type){case "SET_IS_SHORTS_ACTIVE":return Z.payload.isShortsActive;default:return L}},
isWatchWhileMode:function(L,Z){L=L===void 0?_.AK.isWatchWhileMode:L;switch(Z.type){case "SET_IS_WATCH_WHILE_MODE":return Z.payload.isWatchWhileMode;default:return L}},
playerState:function(L,Z){L=L===void 0?_.AK.playerState:L;switch(Z.type){case "SET_PLAYER_STATE":return Z.payload.playerState;default:return L}},
isFullscreen:function(L,Z){L=L===void 0?_.AK.isFullscreen:L;switch(Z.type){case "SET_IS_FULLSCREEN":return Z.payload.isFullscreen;default:return L}},
isSmallScreenSqueezeback:function(L,Z){L=L===void 0?_.AK.isSmallScreenSqueezeback:L;switch(Z.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return Z.payload.isSmallScreenSqueezeback;default:return L}},
isShortsPipActive:function(L,Z){L=L===void 0?_.AK.isShortsPipActive:L;switch(Z.type){case "SET_IS_SHORTS_PIP_ACTIVE":return Z.payload.isShortsPipActive;default:return L}},
isPlaybackStarted:function(L,Z){L=L===void 0?_.AK.isPlaybackStarted:L;switch(Z.type){case "SET_IS_PLAYBACK_STARTED":return Z.payload.isPlaybackStarted;default:return L}}});_.Gzw={currentMode:"canvas-hidden"};var ehL=function(){return function(L){return function(Z){var N=L(Z);_.XJ(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[Z],!0);return N}}};var jaN,hWB;jaN=new _.qe;_.HQ=new _.iY("WATCH_PLAYER_PROMISE_TOKEN");_.EGO=new _.qe;_.PuO=new _.iY("SHORTS_PLAYER_PROMISE_TOKEN");hWB=new _.iY("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var IeG=function(){return function(L){return function(Z){Z.type==="ENTITY_LOADED"&&_.GR().resolve(_.HQ).then(function(N){var S;(S=N.dispatchReduxAction)==null||S.call(N,Z)});
return L(Z)}}};_.pil={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var nu0=Yd({additionalContext:function(L,Z){L=L===void 0?_.pil.additionalContext:L;switch(Z.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var N;return(N=Z.payload)!=null?N:"";default:return L}},
impersonatedChannelUrl:function(L,Z){L=L===void 0?_.pil.impersonatedChannelUrl:L;switch(Z.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var N;return(N=Z.payload)!=null?N:"";default:return L}},
selectedVideoIds:function(L,Z){L=L===void 0?_.pil.selectedVideoIds:L;switch(Z.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var N={};return Object.assign({},L,(N[Z.payload]=!0,N));case "VIDEO_UNSELECTED":return Z=Z.payload,L=Object.assign({},L),delete L[Z],L;default:return L}}});_.zjN={parentClickTrackingParams:""};var KjL=Yd({parentClickTrackingParams:function(L,Z){L=L===void 0?_.zjN.parentClickTrackingParams:L;switch(Z.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return Z.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return L}}});var mw5=function(L){return _.XK({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:L})};_.JPQ={stepStates:{}};var feB=Yd({stepStates:function(L,Z){L=L===void 0?_.JPQ.stepStates:L;switch(Z.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var N=L,S=Z.payload,u,T,W;L={};Z={selectionStates:Object.assign({},(W=(u=N[S.stepId])==null?void 0:u.selectionStates)!=null?W:{},(L[S.token]={isSelected:S.isSelected},L)),userQuery:(T=N[S.stepId])==null?void 0:T.userQuery};u={};return Object.assign({},N,(u[S.stepId]=Z,u));case "TALK_TO_RECS_UPDATE_USER_QUERY":return u=L,T=Z.payload,
W={selectionStates:Object.assign({},(S=(N=u[T.stepId])==null?void 0:N.selectionStates)!=null?S:{}),userQuery:{userQuery:T.userQuery,token:T.userQueryToken}},N={},Object.assign({},u,(N[T.stepId]=W,N));default:return L}}});var CuY,rPh,Xis;CuY=function(L){return _.XK({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:L})};
rPh=function(L){return _.XK({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:L})};
_.lm=function(L){return _.XK({type:"SET_CURRENT_PAGE_TYPE",payload:L})};
_.Qat=function(L){return _.XK({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:L})};
Xis=function(L){return _.XK({type:"SET_CHIP_BAR_IS_STICKY",payload:L})};_.$o1={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"};_.APL=function(L){return _.XK({type:"SET_PLAYER_STATE",payload:{playerState:L}})};_.H$={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:leh(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var kzx=Yd({isTheaterMode:function(L,Z){L=L===void 0?leh():L;switch(Z.type){case "SET_IS_THEATER_MODE":return Z.payload.isTheaterMode;default:return L}},
isWatchActive:function(L,Z){L=L===void 0?_.H$.isWatchActive:L;switch(Z.type){case "SET_IS_WATCH_ACTIVE":return Z.payload.isWatchActive;default:return L}},
isLearningJourneyActive:function(L,Z){L=L===void 0?_.H$.isLearningJourneyActive:L;switch(Z.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return Z.payload.isLearningJourneyActive;default:return L}},
isWatchFullscreen:function(L,Z){L=L===void 0?_.H$.isWatchFullscreen:L;switch(Z.type){case "SET_IS_WATCH_FULLSCREEN":return Z.payload.isWatchFullscreen;default:return L}},
isWatchNarrowWidth:function(L,Z){L=L===void 0?_.H$.isWatchNarrowWidth:L;switch(Z.type){case "SET_IS_WATCH_NARROW_WIDTH":return Z.payload.isWatchNarrowWidth;default:return L}},
isSwatcherooActive:function(L,Z){L=L===void 0?_.H$.isSwatcherooActive:L;switch(Z.type){case "SET_IS_SWATCHEROO_ACTIVE":return Z.payload.isSwatcherooActive;default:return L}},
isWatchRetroMode:function(L,Z){L=L===void 0?_.H$.isWatchRetroMode:L;switch(Z.type){case "SET_IS_WATCH_RETRO_MODE":return Z.payload.isWatchRetroMode;default:return L}},
isLiveChatCollapsed:function(L,Z){L=L===void 0?_.H$.isLiveChatCollapsed:L;switch(Z.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return Z.payload.isLiveChatCollapsed;default:return L}},
openEngagementPanels:function(L,Z){L=L===void 0?_.H$.openEngagementPanels:L;var N=[].concat(_.Pd(L));switch(Z.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return N.push(Z.payload.panelToAdd),N;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return N.splice(N.indexOf(Z.payload.panelToRemove),1),N;default:return L}},
playerState:function(L,Z){L=L===void 0?_.H$.playerState:L;switch(Z.type){case "SET_PLAYER_STATE":return Z.payload.playerState;default:return L}},
watchScrollTop:function(L,Z){L=L===void 0?_.H$.watchScrollTop:L;switch(Z.type){case "SET_WATCH_SCROLL_TOP":return Z.payload.watchScrollTop;default:return L}},
watchWindowSize:function(L,Z){L=L===void 0?_.H$.watchWindowSize:L;switch(Z.type){case "SET_WATCH_WINDOW_SIZE":return Z.payload.watchWindowSize;default:return L}}});_.HW0={surveyFeedbackData:{feedbackTokens:[]}};var ylx=Yd({surveyFeedbackData:function(L,Z){L=L===void 0?_.HW0.surveyFeedbackData:L;switch(Z.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return Z.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},L,Z.payload);default:return L}}});_.vuA={};var aew=void 0;_.c("web_enable_redux_store_on_demand")||(aew=doB());var BAt=function(L,Z,N){var S=this;this.listId=L;this.JSC$13026_updateCallback=Z;this.isOfflineVideoCallback=N;_.Pv().subscribe(function(){S.handleUpdate()})};
BAt.prototype.getPlaylistData=function(){var L=_.Pv().getState().entities;if(this.listId&&this.listId!=="PPSV"){var Z=BHw(L,this.listId,!0),N=_.qj(this.listId,"mainPlaylistEntity"),S,u;L=L==null?void 0:(S=L.mainPlaylistEntity)==null?void 0:(u=S[N])==null?void 0:u.title;return hhB(Z,L,this.listId)}Z=_.aaH(kxw(L));L=_.aaH(_.$Q(L));L=Z.concat(L);return hhB(L)};
BAt.prototype.getPlaylistId=function(){return this.listId};
BAt.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13026_updateCallback(this.listId,this.getPlaylistData(),{})};var B$=function(L,Z,N,S){S=S===void 0?[]:S;this.JSC$13029_playlistNetworkManager=L;this.listId=Z;this.JSC$13029_updateCallback=N;this.videoIds=S;this.pendingUpdates=[];this.currentIndex=0};
B$.prototype.JSC$13029_setCurrentIndex=function(L){this.currentIndex=L};
B$.prototype.setListId=function(L){this.listId=L};
var xwL=function(L,Z){L.currentCreateRequest&&L.currentCreateRequest.cancel(Z);L.currentUpdateRequest&&L.currentUpdateRequest.cancel(Z);L.currentRefreshRequest&&L.currentRefreshRequest.cancel(Z)};
B$.prototype.delete=function(){xwL(this,"PROXY DELETED")};
B$.prototype.addVideos=function(L,Z,N){var S=this;N!==void 0?this.videoIds.splice.apply(this.videoIds,[N,0].concat(_.Pd(L))):this.videoIds.push.apply(this.videoIds,_.Pd(L));this.listId||this.currentCreateRequest?(L.forEach(function(u,T){u={addedVideoId:u,action:"ACTION_ADD_VIDEO"};N&&(u.addedVideoPosition=N+T);S.pendingUpdates.push(u)}),x3(this)):q0V(this,Z.onCreateListCommand)};
var LE5=function(L,Z,N,S,u){Et_(L.videoIds,Z,N);Z>L.currentIndex&&N<=L.currentIndex?L.JSC$13029_setCurrentIndex(L.currentIndex+1):Z===L.currentIndex?L.JSC$13029_setCurrentIndex(N):Z<L.currentIndex&&N>=L.currentIndex&&L.JSC$13029_setCurrentIndex(L.currentIndex-1);L.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:S,movedSetVideoIdPredecessor:u});x3(L)},q0V=function(L,Z){xwL(L,"OBSOLETE");
L.currentCreateRequest=Z$s(L.JSC$13029_playlistNetworkManager,Z,L.videoIds);_.wg(L.currentCreateRequest,function(){L.currentCreateRequest=void 0}).then(function(N){L.setListId(N.playlistId);
L.pendingUpdates.length>0?x3(L):NUt(L)})},x3=function(L){if(L.pendingUpdates.length!==0&&(L.currentRefreshRequest&&L.currentRefreshRequest.cancel("OBSOLETE"),!L.currentUpdateRequest&&!L.currentCreateRequest)){var Z=L.pendingUpdates.splice(0,L.pendingUpdates.length);
L.currentUpdateRequest=L.JSC$13029_playlistNetworkManager.updatePlaylist(L.listId,Z);_.wg(L.currentUpdateRequest,function(){L.currentUpdateRequest=void 0}).then(function(){L.pendingUpdates.length>0?x3(L):NUt(L)}).thenCatch(function(){L.pendingUpdates.unshift.apply(L.pendingUpdates,_.Pd(Z))})}},NUt=function(L){L.currentRefreshRequest=_.SEY(L.JSC$13029_playlistNetworkManager,L.listId,L.currentIndex,L.videoIds[L.currentIndex]);
_.wg(L.currentRefreshRequest,function(){L.currentRefreshRequest=void 0}).then(function(Z){L.JSC$13029_updateCallback(Z.playlistId,Z.playlistPanelRenderer,Z.autoplayRenderer)})};
B$.prototype.size=function(){return this.videoIds.length};var i$M=function(L,Z,N,S){S=S===void 0?[]:S;B$.call(this,L,Z,N,S);this.JSC$13029_playlistNetworkManager=L;this.listId=Z;this.JSC$13029_updateCallback=N;this.videoIds=S};
_.f(i$M,B$);_.qU=function(L,Z,N,S,u,T,W){u=u===void 0?[]:u;W=W===void 0?O8:W;B$.call(this,L,Z,N,u);this.JSC$13029_playlistNetworkManager=L;this.listId=Z;this.JSC$13029_updateCallback=N;this.onAuthChange=S;this.videoIds=u;this.storage=T;this.cookieReader=W;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.H9(_.ro,this.checkLoggedInStatusChange.bind(this),1E3)};
_.f(_.qU,B$);_.t=_.qU.prototype;_.t.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.H9(_.ro,this.checkLoggedInStatusChange.bind(this),1E3)};
_.t.JSC$13029_setCurrentIndex=function(L){B$.prototype.JSC$13029_setCurrentIndex.call(this,L);this.store()};
_.t.delete=function(){_.ro.cancelJob(this.queueSapisIdJob);B$.prototype.delete.call(this)};
_.t.setListId=function(L){B$.prototype.setListId.call(this,L);this.store()};
_.t.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var usM=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],TUt=["playerResponse","videoDetails"],t4Q=["response","currentVideoEndpoint","watchEndpoint","videoId"],O$I=["response","currentVideoEndpoint","watchEndpoint","playlistId"],WEI=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],V4I=["response","contents","twoColumnWatchNextResults","playlist","playlist"],b$O=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
M4M=["response","contents","twoColumnWatchNextResults"];var Lf={},poL=(Lf.WEB_UNPLUGGED="^unplugged/",Lf.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Lf.WEB_UNPLUGGED_OPS="^unplugged/",Lf.WEB_UNPLUGGED_PUBLIC="^unplugged/",Lf.WEB_CREATOR="^creator/",Lf.WEB_KIDS="^kids/",Lf.WEB_EXPERIMENTS="^experiments/",Lf.WEB_MUSIC="^music/",Lf.WEB_REMIX="^music/",Lf.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Lf.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Lf);var MrL,Z$s;MrL=function(L,Z){this.networkManager=L;this.innertubeTransportService=Z};
Z$s=function(L,Z,N){if(!_.n(Z,_.Zj))return _.$N(Error("Of"));_.n(Z,_.Zj).videoIds=N;N={create_playlist_title:_.iB("QUEUE",void 0,"Queue")};return Eu1(_.aV(L.innertubeTransportService,Z,N),s2G)};
_.SEY=function(L,Z,N,S){Z={videoId:S,playlistId:Z,playlistIndex:N};N=_.pk(bPM);return Eu1(_.Za(L.innertubeTransportService,Z,N),Pzh)};
MrL.prototype.updatePlaylist=function(L,Z){return Eu1(_.aV(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:L,actions:Z}}),j2s)};var g7t=function(L){this.storage=L},GNh;
g7t.prototype.store=function(L,Z){Z=Z===void 0?0:Z;if(this.storage&&L.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",L),this.storage.set("TLPQindex",String(Z)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(N){}};
g7t.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
g7t.prototype.getPlaylistId=function(){if(!this.storage)return null;var L=null;try{L=this.storage.get("TLPQplaylist")}catch(Z){}return L};var Czs=["navigationEndpoint","watchEndpoint","videoId"],JlF=["nextButtonVideo","watchEndpoint","videoId"];_.VJ=new _.iY("NETWORK_TOKEN");_.mR=new _.iY("PAGE_TOKEN");_.Nv=new _.iY("PLAYLIST_TOKEN");var FEl;FEl=new _.iY("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.bv=new _.iY("INNERTUBE_TRANSPORT_TOKEN");var $tQ,S3,lOQ,v7t,Rit,c8M;$tQ=new Set(["ci","cr","carml"]);S3=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13076_parkedJobs=new Map;this.parkedProcessors=new Map};
_.ih=function(){S3.instance||(S3.instance=new S3);return S3.instance};
S3.prototype.onAny=function(L){return _.DtO(this,L,2)};
S3.prototype.parkOrScheduleJob=function(L,Z,N,S,u){_.uh(this,N)?_.DK().addJob(L,Z,S):(u&&(L=lOQ(L),v7t(this,L,Z,N,u)),u=this.JSC$13076_parkedJobs.get(N),u||(this.JSC$13076_parkedJobs.set(N,[]),u=this.JSC$13076_parkedJobs.get(N)),u.push({job:L,priority:Z,delay:S}))};
S3.prototype.addListener=function(L,Z,N){N&&(Z=lOQ(Z),v7t(this,Z,0,L,N));N=this.parkedProcessors.get(L);N||(this.parkedProcessors.set(L,[]),N=this.parkedProcessors.get(L));N.push(Z)};
S3.prototype.processSignal=function(L){if(!_.uh(this,L)){this.inProgressSignals.add(L);var Z=this.JSC$13076_parkedJobs.get(L);if(Z){Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())N=N.value,_.DK().addJob(N.job,N.priority,N.delay);this.JSC$13076_parkedJobs.delete(L)}if(Z=this.parkedProcessors.get(L)){Z=_.O(Z);for(N=Z.next();!N.done;N=Z.next())N=N.value,N();this.parkedProcessors.delete(L)}this.signals.push(L);this.inProgressSignals.delete(L)}};
_.uh=function(L,Z){return $tQ.has(Z)||_.Ah("IS_HOMEPAGE_COLD")||_.Ah("IS_RESULTS_PAGE_COLD")||_.Ah("IS_WATCH_PAGE_COLD")?L.signals.indexOf(Z)>=0:!0};
lOQ=function(L){var Z=!1;return function(){Z||(Z=!0,L())}};
v7t=function(L,Z,N,S,u){if(o7h.has(S))_.DK().addJob(Z,N,u);else{var T=L.compoundSignals.get(S);T&&_.DK().addJob(function(){_.uh(L,S)||(T.isTimeoutConditionSatisfied?_.DK().addJob(Z,N):T.timeoutConditionObservers.push(function(){_.DK().addJob(Z,N)}))},N,u)}};
_.DtO=function(L,Z,N){if(Z.length>1){var S=[],u=Object.create(null);Z=_.O(Z);for(var T=Z.next();!T.done;T=Z.next())T=T.value,u[T]||(S.push(T),u[T]=!0);Z=S}if(Z.length===1)return Z[0];T=Z;S="";u=N===2?"|":"&";T.sort();T=_.O(T);for(var W=T.next();!W.done;W=T.next())S+=W.value+u;if(!L.compoundSignals.get(S)){u=0;T=[];W=_.O(Z);for(var V=W.next();!V.done;V=W.next())V=V.value,u++,_.uh(L,V)||T.push(V);(N=N===2)&&u>T.length||!N&&!T.length?L.signals.push(S):Rit(L,S,N,Z,T)}return S};
Rit=function(L,Z,N,S,u){var T=u.length,W=function(){N||--T===0?L.processSignal(Z):c8M(L,Z)};
u=_.O(u);for(var V=u.next();!V.done;V=u.next())L.addListener(V.value,W);L.compoundSignals.set(Z,{signals:S,isOnAny:N,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});c8M(L,Z)};
c8M=function(L,Z){if(!_.uh(L,Z)){var N=L.compoundSignals.get(Z);if(N&&!N.isTimeoutConditionSatisfied){for(var S=!1,u=0,T=0,W=_.O(N.signals),V=W.next();!V.done;V=W.next()){var M=V.value;V=!_.uh(L,M);o7h.has(M)?S=!0:(M=L.compoundSignals.get(M))?V&&!M.isTimeoutConditionSatisfied&&(T++,N.isInitialized||M.timeoutConditionObservers.push(function(){c8M(L,Z)})):V&&u++}N.isInitialized=!0;
N.isOnAny?S&&(N.isTimeoutConditionSatisfied=!0):u===0&&T===0&&(N.isTimeoutConditionSatisfied=!0);if(N.isTimeoutConditionSatisfied)for(N=_.O(N.timeoutConditionObservers),S=N.next();!S.done;S=N.next())S=S.value,S()}}};
S3.prototype.processSignal=S3.prototype.processSignal;S3.prototype.parkOrScheduleJob=S3.prototype.parkOrScheduleJob;S3.prototype.onAny=S3.prototype.onAny;_.bp("ytsignals.getInstance",_.ih);S3.prototype.onAny=S3.prototype.onAny;S3.prototype.parkOrScheduleJob=S3.prototype.parkOrScheduleJob;S3.prototype.processSignal=S3.prototype.processSignal;var o7h=new Set(["eop","eocs","dl","pcl"]);_.yk=new _.iY("MINIPLAYER_SERVICE");var T2,n7M,KEh;T2=function(L,Z,N){var S=_.SS.getInstance();if(!GNh){var u=new mj1;var T=void 0,W=_.X7("ID_TOKEN");W&&u.isAvailable()&&(T=new pZ(u,"yt-queue"+W));GNh=new g7t(T)}u=GNh;T=_.ih();this.JSC$13083_actionRouter=S;this.JSC$13083_pageManager=L;this.playlistManager=Z;this.JSC$13083_playlistNetworkManager=N;this.storage=u;this.signals=T;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.te=function(){if(!n7M){var L=_.GR(),Z=L.resolve(_.gv(_.mR)),N=L.resolve(_.gv(_.VJ)),S=L.resolve(_.gv(_.Nv));L=L.resolve(_.bv);n7M=new T2(Z,S,new MrL(N,L))}return n7M};
KEh=function(L,Z,N){if(N){var S;if(((S=L.responsePlaylistData)==null?void 0:S.playlistId)!==N)return}L.responsePlaylistData&&(N=BX1(Z,L.responsePlaylistData),L.responsePlaylistData=(0,_.Py.unsafeClone)(L.responsePlaylistData),qBx(L.responsePlaylistData,N));N=L.temporaryItems.findIndex(function(u){return u.videoId===Z});
N>-1&&L.temporaryItems.splice(N,1);_.OO(L,_.W3(L,L.response?L.response.autoplayRenderer:void 0))};
_.fOL=function(L,Z){if(L.responsePlaylistData){var N=xoh(Z,L.responsePlaylistData);qBx(L.responsePlaylistData,N);if(L.queueProxy){var S=L.queueProxy;N<0||(S.videoIds.splice(N,1),N<S.currentIndex&&S.JSC$13029_setCurrentIndex(S.currentIndex-1),S.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:Z}),x3(S))}}_.OO(L,_.W3(L,L.response?L.response.autoplayRenderer:void 0))};
T2.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.OO(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
T2.prototype.setPlaylistData=function(L,Z,N){this.temporaryItems=[];this.listId=L;this.responsePlaylistData=Z;_.OO(this,_.W3(this,N))};
var kNq=function(L){return(L==null?0:L.playlistId)?L.playlistId:"PPSV"},y8Y=function(L){return L&&L.playlistId?L.playlistId==="PPSV"?!0:Ae1(_.Pv().getState().entities,L.playlistId):!1};
T2.prototype.isPlayingOfflineVideo=function(){return this.response?y8Y(this.response):!1};
T2.prototype.closeMiniplayer=function(L){var Z=this.queueProxy&&this.queueProxy.size()<=1,N=_.GR().resolve(_.yk);if(!this.queueProxy||Z)this.queueProxy&&this.clearQueue(),N.close(!0);else{N.pipController.getWindow()&&window.focus();Z=this.responsePlaylistData;var S=this.temporaryItems.length+(Z&&Z.contents?Z.contents.length:0);Z=_.iB("QUEUE_CLEARED_UNPLURALIZED")||_.uB("QUEUE_CLEARED",S);Z=_.m3(Z);N=_.iB("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");S=_.iB("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.uB("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",S);var u=_.iB("MINIPLAYER_CLOSE",void 0,"Close"),T=_.iB("CANCEL",void 0,"Cancel");_.Pc(this.JSC$13083_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.s9(N),dialogMessages:[_.s9(S)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.s9(u),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
Z]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.s9(T)}}}}}}],L)}};
_.W3=function(L,Z){var N={},S=L.response;N.autoplayRenderer=Z;if(!L.responsePlaylistData&&!L.temporaryItems.length)return!S||!S.hasRelatedVideoData&&_.c("kevlar_prefetch_data_augments_network_data")||(N.playerData={rvs:S.relatedVideoArgs,endScreenRenderer:S.endScreenRenderer}),N;N.playerData={};if(L.index===void 0)return _.CA(Error("Qf")),N;N.panel=L.responsePlaylistData?(0,_.Py.unsafeClone)(L.responsePlaylistData):{titleText:_.s9(_.iB("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
Z=N.panel;if(Z.contents)for(var u=_.O(L.temporaryItems),T=u.next();!T.done;T=u.next())Z.contents.push({playlistPanelVideoRenderer:T.value});L.queueProxy&&S&&S.playingVideo&&S.playingVideoId&&!Hbh(S.playingVideoId,N.panel)&&(Z=S.playingVideo,u=N.panel,T=L.index,u.contents&&u.contents.splice(T===void 0?0:T,0,{playlistPanelVideoRenderer:Z}));S&&S.playingVideoId&&(Z=L.index,u=N.panel,Z=!u.contents||Z>=u.contents.length?void 0:u.contents[Z].playlistPanelVideoRenderer,Z&&Z.videoId===S.playingVideoId||(Z=
BX1(S.playingVideoId,N.panel),L.index=Z!==-1?Z:L.index?L.index-1:0));Z=Als(L.index+1,N.panel);u=void 0;L.index>0&&(u=Als(L.index-1,N.panel));if(u||Z)N.autoplayRenderer=rlt(Z,u,N.autoplayRenderer);!Z&&(S==null?0:S.relatedVideoArgs)&&(N.playerData.rvs=S.relatedVideoArgs);S=S?S.playlistIndexOffset:0;L.queueProxy?Nih(N.panel,L.index,S,XoB,!0,!0,!0):Nih(N.panel,L.index,S);N.playerData.playlistPanelRenderer=N.panel;return N};
T2.prototype.openToast=function(L){_.GR().resolve(_.yk).openToast(L,_.iB("ADDED_TO_QUEUE",void 0,"Added to queue"))};
T2.prototype.isMiniplayerActive=function(){return _.GR().resolve(_.yk).isMiniplayerActive()};
_.OO=function(L,Z){L.playlistManager.setAutoplayRenderer(Z.autoplayRenderer||null);L.playlistManager.setPlaylistData(Z.panel||null);Z.playerData&&L.playlistManager.setPlayerPlaybackControlData(Z.playerData)};var iSx="#";var wet={},UtQ={},YEq={},ei0={},IOY={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:(wet.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",wet),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:(UtQ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",UtQ),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:(YEq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",YEq),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:(ei0.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",ei0),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 pph=[{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:IOY},{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:IOY}}];var YlG;_.xQ=[[["YmRyYXVrNWVwN2tpbmQjczU=","ZXlzaWRvbDNzdmFsdWUjZXFm"],"RU5UX0tJTkRfU1RBUlQjNGk0MDFpMm44amY3QURfUExBQ0VN"]];
YlG=[[["bXg0c3UxMXByaW1hcnkjdTBvb3Q=",null,null],[null,["c3VsdHMtcmVuZGVyZXIjMWdoMjl3ZDV6bnI0eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJl","Mnpkc3R5bGUtc2NvcGUjd2QxM2s1bmxo"],null],["cG5vbWFzdGhlYWQtYWQjdWg1czlzYzMy",["LWdyaWQtcmVuZGVyZXIjNHhyeGh6Y2oxOWlreXRkLXJpY2g="],null],[null,["LWdyaWQtcmVuZGVyZXIjeDJjejFyNzJjdmQweXRkLXJpY2g=","Ymdjc3R5bGUtc2NvcGUjM3R3bHJ6a3ln"],null],[null,["cHJvbW8tcmVuZGVyZXIja2x4czY4bDRyaHp6eXRkLWJhbm5lci0=","eWZrc3R5bGUtc2NvcGUjaWcwdHBza3Rl"],null],[null,["LXNsb3QtcmVuZGVyZXIjcm01a3E1NzRuM2ZzeXRkLWFk"],
null]],[["d28zenBsYXllci1hZHMjYjVpdHB6N3E=",null,null]]];_.Bv=["bG9iYWxDYWxsYmFja3MjM2h6MjJwb3UxZXZzZw==","bWFsaXR5RGV0ZWN0ZWQjdGt0ZXZiczNtNHdhb25BYm5vcg==","eTQ4OG84bW9uQWRTa2lwI2xrcDc=","bGF5ZXJfcmVzcG9uc2Uja3Voc3M0d3duZHN3cmF3X3A=","czlydzgybTFhZFNsb3RzI2FsNg=="];_.Vx="bG9iYWxDYWxsYmFja3MjM2h6MjJwb3UxZXZzZw== bWFsaXR5RGV0ZWN0ZWQjdGt0ZXZiczNtNHdhb25BYm5vcg== eTQ4OG84bW9uQWRTa2lwI2xrcDc= bGF5ZXJfcmVzcG9uc2Uja3Voc3M0d3duZHN3cmF3X3A= dGlwbGVfc2tpcHNfa3MjaGU1anBhN2c2ZGR0d2ViX3BsYXlsaXN0X3F1ZXVlX211bA== bDJ3MmQ4YWJfc2FfZWYjcTdubzVv czlydzgybTFhZFNsb3RzI2FsNg==".split(" ");var bh;bh=function(L,Z,N){this.syM=L;this.isAsync=Z;this.rSU=N};
_.qlw=[new bh("b.f_",!1,0),new bh("j.s_",!1,2),new bh("r.s_",!1,4),new bh("e.h_",!1,6),new bh("i.s_",!0,8),new bh("s.t_",!1,10),new bh("p.h_",!1,12),new bh("s.i_",!1,14),new bh("f.i_",!1,16),new bh("a.b_",!1,18),new bh("a.o_",!1),new bh("g.o_",!1,22),new bh("p.i_",!1,24),new bh("p.m_",!1),new bh("n.k_",!0,20),new bh("i.f_",!1),new bh("a.s_",!0),new bh("m.c_",!1),new bh("n.h_",!1,26),new bh("o.p_",!1),new bh("m.p_",!0,28),new bh("o.a_",!1),new bh("d.p_",!1),new bh("e.i_",!1)].reduce(function(L,Z){L[Z.syM]=
Z;return L},{});var dtN=function(){};
dtN.prototype.flush=function(L,Z){L=L===void 0?[]:L;Z=Z===void 0?!1:Z;if(_.c("enable_client_streamz_web")){L=_.O(L);for(var N=L.next();!N.done;N=L.next())N=tUh(N.value),this.rootSpec&&_.fG(N,2,this.rootSpec),N={serializedIncrementBatch:_.jY(N.JSC$9606_serializeBinary())},_.mS("streamzIncremented",N,{sendIsolatedPayload:Z})}};
var Wxw=function(){};
_.f(Wxw,dtN);var aON=function(L){var Z=new L8L;var N=new BZh;N=_.dF(N,1,"botguard");L=_.dF(N,2,L);this.rootSpec=_.kV(Z,1,Zh0,L)};
_.f(aON,dtN);var X8,hi5=new Map;var aRh,bSh,oCt,GtL,Dks,wp0,sft,ktf;aRh=2;bSh=2;oCt=2;GtL=2;Dks=2;wp0=2;sft=2;ktf=new ZQ0;var jps,E7O;jps=function(){this.ongoingFlowNonces=new Map};
_.ZC=function(){E7O||(E7O=new jps);return E7O};
_.LX=function(L,Z,N){return{eventType:{flowEventNamespace:L,flowEventType:Z},metadata:N,statusCode:void 0,csn:void 0,can:void 0}};
_.ZNf=function(L,Z){var N=_.ZC(),S=PVY(N,Z,!0);N.logFlowEvent(L,Z,S,void 0)};
jps.prototype.logFlowEvent=function(L,Z,N,S){Z={flowNonce:N||PVY(this,Z),flowType:Z,flowEventType:L.eventType};L.metadata&&(Z.flowMetadata=L.metadata);L.statusCode!==void 0&&(Z.flowEventStatus=L.statusCode);L.csn&&(Z.csn=L.csn);L.can&&(Z.can=L.can);_.mS("flowEvent",Z,S)};
var PVY=function(L,Z,N){N=N===void 0?!1:N;var S=L.ongoingFlowNonces.get(Z);if(!S||N)S=lc(16),L.ongoingFlowNonces.set(Z,S);return S};_.pet=new LzI;var TLG={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 Mv=function(L,Z,N,S,u,T,W){N=N===void 0?!1:N;S=S===void 0?!1:S;T=T===void 0?_.te():T;this.hasRun=!1;this.sIx=L;this.joI=Z;this.xzh=N;this.fromHistory=S;this.previousVideoId=u;this.ff7=T;this.tempData=W;this.lfA=new _.NoO};
_.f(Mv,$3);Mv.prototype.validate=function(L){return!(!L.data.playerResponse||L.data.page!=="watch"&&L.data.page!=="learning_journey_watch"&&L.data.page!=="shorts"||this.hasRun)};
Mv.prototype.handle=function(L){var Z=this,N=_.n(L.endpoint,_.so),S=_.n(L.endpoint,_.Ox);if(_.c("kevlar_continue_playback_without_player_response")&&(N==null?0:N.videoId)&&this.previousVideoId&&(N==null?void 0:N.videoId)===this.previousVideoId&&(N==null?0:N.continuePlayback)&&!this.fromHistory)this.sIx.resolve();else{var u={};N?u.watch_endpoint=N:S&&(u.watch_endpoint=S,S.endTimeSeconds&&(u.end=S.endTimeSeconds));L.data.page==="watch"?(L.data.filler||this.xzh||(_.Kq("cfg"),_.SS.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(u,ziO(this,L.endpoint)),_.c("enable_masthead_quartile_ping_fix")&&Object.assign(u,mtt(this)),Object.assign(u,void 0),L.data.forceExternalPlaylist&&(u.external_list=!0)):L.data.page==="shorts"?_.SS.getInstance().triggerAction("yt-start-loading-shorts"):L.data.page==="learning_journey_watch"&&_.SS.getInstance().triggerAction("yt-start-loading-learning-journey");if(N=this.joI()){try{N.loadVideoWithPlayerResponse(L.data.playerResponse,u),N.getPlayerPromise().then(this.sIx.resolve)}catch(T){_.CA(T),
this.sIx.resolve()}this.hasRun=!0;N.getPlayerPromise().then(function(T){T.addEventListener("onAbnormalityDetected",function(){var W=L.data.playerResponse,V=T.getVideoData().cpn;sft=0;_.spt=V;if(V=xk1(W))Z.lfA.increment("IN_PLAYER"),_.NJ(5),_.c("ab_st_vid_ks")?T.pauseVideo(!0):T.stopVideo(),W.playabilityStatus=Object.assign({},W.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:V}}),W.videoDetails=void 0,_.SS.getInstance().triggerOptionalAction("yt-updated-playability-status",
W.playabilityStatus)})})}else _.Q7(Error("Tf"))}};
var ziO=function(L,Z){var N=_.n(Z,_.so);if(Z&&N&&N.playlistId&&N.videoId&&(L=L.ff7,L.queueProxy?(L=L.queueProxy,N=L.listId===N.playlistId?L.attributionData.get(N.videoId):void 0):N=void 0,N))return{queue_info:N}},mtt=function(L){var Z;
if((Z=L.tempData)==null?0:Z.adpings)return{adpings:L.tempData.adpings}};var gH=function(L,Z,N){this.hasRun=!1;this.cZV=L;this.qGI=Z;this.pHh=N};
_.f(gH,$3);gH.prototype.validate=function(L){return!!_.Py.getValueByKeys.apply(null,[L.data].concat(_.Pd(M4M)))};
gH.prototype.handle=function(L){var Z=this;this.cZV.promise.then(function(){var N=L.data;var S=_.Py.getValueByKeys.apply(null,[N].concat(_.Pd(usM))),u=_.Py.getValueByKeys.apply(null,[N].concat(_.Pd(V4I))),T=_.Py.getValueByKeys.apply(null,[N].concat(_.Pd(t4Q)));var W=(W=_.Py.getValueByKeys.apply(null,[N].concat(_.Pd(TUt))))?{videoId:W.videoId,thumbnail:W.thumbnail,title:W.title?_.s9(W.title):void 0,shortBylineText:W.author?_.s9(W.author):void 0}:void 0;var V=void 0;_.c("web_get_playlist_id_from_current_endpoint_ks")||
(V=_.Py.getValueByKeys.apply(null,[N].concat(_.Pd(O$I))));var M=_.Py.getValueByKeys.apply(null,[N].concat(_.Pd(b$O))),G=_.Py.getValueByKeys.apply(null,[N].concat(_.Pd(WEI))),D=!!M||!!G&&!!G.results&&G.results.length>0,l=0;u&&u.currentIndex&&u.localCurrentIndex&&(l=u.currentIndex-u.localCurrentIndex);u&&u.playlistId&&(V=u.playlistId);N={rawResponse:N,autoplayRenderer:S,hasRelatedVideoData:D,playingVideo:W,playingVideoId:T,playlistPanelRenderer:u,playlistId:V,playlistIndex:u&&u.currentIndex,relatedVideoArgs:M,
endScreenRenderer:G,playlistIndexOffset:l};a:{S=Z.pHh;u=Z.qGI;S.response=N;if(y8Y(N))S.downloadPlaylistProxy&&S.downloadPlaylistProxy.getPlaylistId()===kNq(N)||(S.downloadPlaylistProxy=new BAt(kNq(N),S.setPlaylistData.bind(S),S.isPlayingOfflineVideo.bind(S))),S.responsePlaylistData=S.downloadPlaylistProxy.getPlaylistData(),S.listId=kNq(N),S.index=0;else if(N.playlistPanelRenderer&&N.playlistId&&N.autoplayRenderer)N.playlistId.startsWith("TLPQ")?S.queueProxy?S.listId===N.playlistId?(S.index=N.playlistIndex,
S.responsePlaylistData=N.playlistPanelRenderer,S.queueProxy.JSC$13029_setCurrentIndex(S.index)):N.playingVideoId&&S.index!==void 0&&u.clientParams.autoSaveToQueue&&(S.index+=1,S.queueProxy.JSC$13029_setCurrentIndex(S.index),S.queueProxy.addVideos([N.playingVideoId],{},S.index)):(S.queueProxy=new _.qU(S.JSC$13083_playlistNetworkManager,N.playlistId,S.setPlaylistData.bind(S),S.clearQueue.bind(S),_.LxL(N.playlistPanelRenderer),S.storage),S.responsePlaylistData=N.playlistPanelRenderer,S.listId=N.playlistId,
S.index=N.playlistIndex):(S.index=N.playlistIndex,S.listId!==N.playlistId&&S.clearQueue(),S.responsePlaylistData=N.playlistPanelRenderer,S.listId=N.playlistId,S.playlistProxy=new i$M(S.JSC$13083_playlistNetworkManager,N.playlistId,S.setPlaylistData.bind(S),_.LxL(N.playlistPanelRenderer)));else if(!S.queueProxy)S.responsePlaylistData=void 0;else if(N.playingVideoId&&u.clientParams.autoSaveToQueue){if(S.index===void 0){_.CA(Error("Pf"));S.clearQueue();break a}S.queueProxy.videoIds.includes(N.playingVideoId)||
(S.index+=1,S.queueProxy.JSC$13029_setCurrentIndex(S.index),S.queueProxy.addVideos([N.playingVideoId],{},S.index))}_.OO(S,_.W3(S,S.response.autoplayRenderer))}})};var J8q=function(L,Z){Z=Z===void 0?_.te():Z;eh.call(this);this.g0.push(new gH(this.ox,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},Z));this.g0.push(new Mv(this.ox,L,!1,!1));_.c("web_response_commands_chunk_processor")&&this.g0.push(new IB)};
_.f(J8q,eh);J8q.prototype.processChunk=function(L){L&&L.data.player===void 0&&this.ox.resolve();eh.prototype.processChunk.call(this,L)};var G2=function(L,Z){L=L===void 0?{layer:0}:L;this.hasRun=!1;this.createScreenConfig=L;this.ku7=Z};
_.f(G2,$3);G2.prototype.validate=function(L){return!(this.hasRun||!L.endpoint)};
G2.prototype.handle=function(L){var Z=_.tC(),N,S,u=(S=_.n((N=L.endpoint)==null?void 0:N.commandMetadata,_.Nj))==null?void 0:S.rootVe;this.ku7&&u?_.fF(Z,u,this.ku7,this.createScreenConfig):e4Y(Z,L.endpoint,this.createScreenConfig);this.hasRun=!0};var FI=function(L,Z){this.hasRun=!1;this.hih=L;this.previousVideoId=Z};
_.f(FI,$3);FI.prototype.validate=function(L){return _.c("kevlar_continue_playback_without_player_response")&&(L=_.n(L.endpoint,_.so),(L==null?0:L.videoId)&&this.previousVideoId&&(L==null?void 0:L.videoId)===this.previousVideoId&&(L==null?0:L.continuePlayback))?!1:this.hih.bcm===0};
FI.prototype.handle=function(L){_.SS.getInstance().triggerAction("yt-stop-old-player",L.data,!0)};var CVl=function(L){L=L===void 0?{layer:0}:L;eh.call(this);this.g0.push(new FI(this));this.g0.push(new G2(L));this.g0.push(new Y3(L))};
_.f(CVl,eh);var $v=function(){$3.apply(this,arguments)};
_.f($v,$3);$v.prototype.validate=function(L){return!!L.data.preconnect};
$v.prototype.handle=function(L){_.Rq("bc");L=_.O(L.data.preconnect);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,(new Image).src=Z};var r80=function(L,Z,N,S,u,T,W){N=N===void 0?{layer:0}:N;T=T===void 0?_.te():T;eh.call(this);if(S)if(u){u=T;this.g0.push(new gH(this.ox,Z,u));this.g0.push(new $v);var V,M;this.g0.push(new Mv(this.ox,L,!1,!((V=Z.clientParams)==null||!V.fromHistory),(M=Z.clientParams)==null?void 0:M.previousVideoId,u,Z.tempData));var G;this.g0.push(new FI(this,(G=Z.clientParams)==null?void 0:G.previousVideoId));var D;(D=Z.clientParams)!=null&&D.fromHistory||(N.layer||(N=Object.assign({},N,{layer:0})),this.g0.push(new G2(N,
W)),this.g0.push(new Y3(N)))}else this.g0.push(new gH(this.ox,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},T)),this.g0.push(new Mv(this.ox,L,!1,!1));else this.g0.push(new FI(this)),this.g0.push(new G2(N)),this.g0.push(new Y3(N));_.c("web_response_commands_chunk_processor")&&S&&this.g0.push(new IB)};
_.f(r80,eh);r80.prototype.processChunk=function(L){L&&L.data.player===void 0&&this.ox.resolve();eh.prototype.processChunk.call(this,L)};var Qpt=function(){this.hasRun=this.hasRun=!1};
_.f(Qpt,$3);Qpt.prototype.validate=function(L){return!this.hasRun&&!(!L.data.csn||!L.data.rootVe)};
Qpt.prototype.handle=function(L){this.hasRun=!0;_.Kv(L.data.csn,L.data.rootVe,3)};var Xeq=function(L,Z,N){N=N===void 0?{layer:0}:N;eh.call(this);this.g0.push(new Mv(this.ox,L));this.g0.push(new G2(N));this.g0.push(new Y3(N))};
_.f(Xeq,eh);var A8t=function(L,Z,N,S,u){N=N===void 0?{layer:0}:N;S=S===void 0?_.te():S;eh.call(this);var T=!!Z&&!!Z.clientParams&&!!Z.clientParams.miniplayer;T&&this.g0.push(new Qpt);this.g0.push(new gH(this.ox,Z,S));this.g0.push(new $v);var W,V;this.g0.push(new Mv(this.ox,L,T,!((W=Z.clientParams)==null||!W.fromHistory),(V=Z.clientParams)==null?void 0:V.previousVideoId,S,Z.tempData));var M;this.g0.push(new FI(this,(M=Z.clientParams)==null?void 0:M.previousVideoId));var G;(G=Z.clientParams)!=null&&G.fromHistory||
(N.layer||(N=Object.assign({},N,{layer:T?3:0})),this.g0.push(new G2(N,u)),this.g0.push(new Y3(N)));_.c("web_response_commands_chunk_processor")&&this.g0.push(new IB)};
_.f(A8t,eh);var Da,xtQ;Da={};
_.H$h=(Da["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Da["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Da["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Da["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Da["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Da["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Da["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Da);_.lh=new _.Bx("yt-edu");_.BU5=function(){this.JSC$13181_eduDisplayedThisLoad_={}};
xtQ=function(L){var Z=_.BU5.getInstance();var N=_.lQ("kevlar_tooltip_impression_cap");Z=N&&parseInt(_.lh.get(L+"-impression")||0,10)>=N||_.lh.get(L+"-dismissed")?!1:(N=_.H$h[L])&&!Z.JSC$13181_eduDisplayedThisLoad_[N.setKey||L]&&(N.titleText&&_.iB(N.titleText)||N.bodyText&&_.iB(N.bodyText))?!0:!1;if(!Z)return null;Z=_.H$h[L];if(!Z)return null;N=Z.bodyText?_.iB(Z.bodyText):void 0;var S=Z.titleText?_.iB(Z.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:Z.position,popup:{bubbleHintRenderer:{text:S?
_.s9(S):void 0,detailsText:N?_.s9(N):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.s9(_.iB("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:L}}]}}}}}}}},{eduImpressionAction:{key:L}}]};
_.CM(_.BU5);var NL1=!1;for(var qEt="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),LH5=[],v3=6;v3>=1;v3--)LH5.push({columnCount:v3,query:v3==1?0:v3*2*107-4+32,className:"grid-"+v3+"-columns",width:v3*2*107+"px"});_.ou=function(L){this.actionRouter_=L=L===void 0?_.SS.getInstance():L;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.ZzI(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.ZzI=function(L){var Z=L.documentWidth_-(L.miniGuideVisible_?72:0)-(L.guidePersistentAndVisible_?240:0)-(L.persistentPanelVisible_?400:0);return LH5.find(function(N){return Z>N.query})};
_.CM(_.ou);var NGY=function(){var L=this;this.JSC$13193_keyboardInUse=!1;document.addEventListener("keydown",function(){L.onKeydown()});
document.addEventListener("mousedown",function(){L.JSC$13193_keyboardInUse=!1})},Sht;
NGY.prototype.isKeyBoardInUse=function(){return this.JSC$13193_keyboardInUse};
NGY.prototype.onKeydown=function(){this.JSC$13193_keyboardInUse=!0};var izM,nf;_.Ru=new _.Bx("yt-mentions");_.c3=function(){};
izM=function(L,Z){return nf(Z,"drag-to-reorder-edu-displayed")};
nf=function(L,Z,N,S,u,T){N=N===void 0?"OPEN_POPUP_POSITION_TOP":N;if(Z){if(_.Ru.get(Z))return;_.Ru.set(Z,!0,S)}if(u&&T!==void 0){Z=Number(_.Ru.get(u)||0);if(Z>=T)return;_.Ru.set(u,Z+1)}return[{openPopupAction:{popupType:"HINT",position:N,popup:{bubbleHintRenderer:{detailsText:L,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.CM(_.c3);var uat,TGh,taO;uat=function(L,Z,N,S){this.JSC$13203_taskManager_=L;this.onFulfilled_=typeof Z==="function"?Z:null;this.onRejected_=typeof N==="function"?N:null;this.JSC$13203_context_=S};
TGh=function(L,Z){L.onFulfilled_&&_.Gq(L.JSC$13203_taskManager_,function(){L.onFulfilled_.call(L.JSC$13203_context_,Z)})};
taO=function(L,Z){L.onRejected_&&_.Gq(L.JSC$13203_taskManager_,function(){L.onRejected_.call(L.JSC$13203_context_,Z)})};
_.Kf=function(L){this.JSC$13206_taskManager_=L;this.callbacks_=[]};
_.Kf.prototype.then=function(L,Z,N){this.callbacks_.push(new uat(this.JSC$13206_taskManager_,L,Z,N));return this};
_.Kf.prototype.onSuccess=function(L){this.callbacks_.forEach(function(Z){TGh(Z,L)})};
_.Kf.prototype.onFailure=function(L){this.callbacks_.forEach(function(Z){taO(Z,L)})};
_.Kf.prototype.cancel=function(){this.callbacks_.length=0};
VuV(_.Kf);_.ONf=null;_.MV=new _.iY("ACTIVITY_TOKEN");var Ozs;_.G1=new _.iY("PAGE_REQUEST_TOKEN");Ozs=new _.iY("FETCH_PBJ_TOKEN");_.WHM=function(L){if(L.validatedFragments_.length==0)return null;if(!L.mergedPrefetchedData_){for(var Z=[],N=_.O(L.validatedFragments_),S=N.next();!S.done;S=N.next()){S=_.O(L.fragmentConfiguration_[S.value].graftedKeys);for(var u=S.next();!u.done;u=S.next())(u=L.prefetchedData_[u.value].trackingParams)&&Z.push(u)}L.mergedPrefetchedData_={};Object.assign(L.mergedPrefetchedData_,L.prefetchedData_,{clientSideGrafts:Z})}return L.mergedPrefetchedData_};var Vat;_.ff=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
Vat=function(L,Z,N){if(_.WbA(Z))return L.prefetchCache_.get(_.Vrh(Z,N))};_.kv=new _.iY("NAVIGATION_TOKEN");var bz0=function(L){var Z=this;var N=N===void 0?gg0():N;var S=S===void 0?_.GR().resolve(_.kv):S;this.onePickCommand=L;this.JSC$13278_playlistNetworkManager=N;this.navigationManager=S;this.videoPickerBuilder=_.bNf("yt-addtoplaylist");_.YVM(nPt(Kgt(cdt(this.videoPickerBuilder.setTitle(L.modalTitle).setSize(1E3).addView(kDI()).addView(fbY())).addView("youtube"),L.selectButtonLabel)),function(u){Z.handleAction(u)})};
bz0.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
bz0.prototype.handleAction=function(L){var Z=this;if(L&&this.onePickCommand.listId&&L.action==="picked"&&L.docs){var N=[];L.docs.forEach(function(S){N.push({addedVideoId:S.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13278_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,N).then(function(){_.c("playlist_add_video_hard_reload_killswitch")?Z.navigationManager.reload():MaY(Z.navigationManager)})}};var g4q=function(){if(this.constructor===g4q)throw new TypeError("Vf");};
_.t=g4q.prototype;_.t.dispose=function(){};
_.t.disconnect=function(){};
_.t.reconnect=function(){};
_.t.observe=function(L,Z,N){return{element:L,option:N}};
_.t.unobserveByKey=function(){};var G9G=function(L,Z){Z=Z===void 0?0:Z;g4q.call(this);this.viewroot=L;this.defaultPrescanHeight=Z;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),L?{root:L,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.f(G9G,g4q);_.t=G9G.prototype;_.t.dispose=function(){this.disconnect();this.handlers.clear()};
_.t.disconnect=function(L){this.isConnected=!1;this.pauseObservingUntilReconnect=L===void 0?!1:L;this.observer.disconnect();L=_.O(this.prescanObservers.values());for(var Z=L.next();!Z.done;Z=L.next())Z.value.disconnect()};
_.t.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var L=_.O(this.handlers),Z=L.next();!Z.done;Z=L.next()){var N=_.O(Z.value);Z=N.next().value;var S=N.next().value;N=!1;S=_.O(S.keys());for(var u=S.next();!u.done;u=S.next())if((u=u.value)&&u.state==="prescan"){N=!0;break}N&&GUN(this,Z).observe(Z);this.observer.observe(Z)}}};
_.t.handleObserveEvent=function(L){L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var N=this.handlers.get(Z.target);if(N){var S=Z.isIntersecting;N=_.O(N);for(var u=N.next();!u.done;u=N.next()){var T=_.O(u.value);u=T.next().value;T=T.next().value;u&&(u.state==="visible"&&S||u.state==="hidden"&&!S)&&(T(Z.target,u.state),u.calledOnce&&this.unobserveByKey({element:Z.target,option:u}))}}}};
_.t.handlePrescanEvent=function(L){L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var N=this.handlers.get(Z.target);if(N&&Z.isIntersecting){N=_.O(N);for(var S=N.next();!S.done;S=N.next()){var u=_.O(S.value);S=u.next().value;u=u.next().value;S&&S.state==="prescan"&&(u(Z.target,S.state),S.calledOnce&&this.unobserveByKey({element:Z.target,option:S}))}}}};
_.t.observe=function(L,Z,N){var S=(S=this.handlers.get(L))&&S.has(N)?{element:L,option:N}:void 0;if(S)return S;S={element:L,option:N};this.handlers.has(L)||this.handlers.set(L,new Map);var u=this.handlers.get(L);u&&!u.has(N)&&u.set(N,Z);this.pauseObservingUntilReconnect||(N.state==="prescan"&&GUN(this,L).observe(L),this.observer.observe(L));return S};
_.t.unobserveByKey=function(L){var Z=this.handlers.get(L.element);if(Z&&Z.has(L.option)){Z.delete(L.option);if(L&&L.option.state==="prescan")for(var N=_.O(this.prescanObservers.values()),S=N.next();!S.done;S=N.next())S.value.unobserve(L.element);Z.size===0&&(this.handlers.delete(L.element),this.observer.unobserve(L.element))}};
var GUN=function(L,Z){var N=L.defaultPrescanHeight;Z.hasAttribute("prescan-height")&&(Z=Number(Z.getAttribute("prescan-height")),isNaN(Z)||(N=Z));if(L.prescanObservers.has(N))return L.prescanObservers.get(N);Z="-0.1px -0.1px "+N+"px -0.1px";Z=new IntersectionObserver(L.handlePrescanEvent.bind(L),L.viewroot?{root:L.viewroot,rootMargin:Z}:{rootMargin:Z});L.prescanObservers.set(N,Z);return Z};var FHY=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],$0V=function(){var L,Z=this;this.JSC$13295_actionRouter=L=L===void 0?_.SS.getInstance():L;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return Z.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return Z.visibilityObservedElementHandlerKeys}}},D05,v4t,cbl;
$0V.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.c("kevlar_use_vimio_behavior")&&_.X7("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=FbB())};
$0V.prototype.dispose=function(){this.visibilityMonitor&&_.nc(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
$0V.prototype.handleVisibilityRefreshed=function(){for(var L=_.O(this.targetMap.entries()),Z=L.next();!Z.done;Z=L.next()){var N=_.O(Z.value);Z=N.next().value;N=N.next().value;_.ltV(this,Z,N)}};
_.RL0=function(L,Z,N){v4t(L,N);var S=_.o4M(L,Z);S.element=N;L.targetedElements.set(N,Z);_.ltV(L,Z,S)};
v4t=function(L,Z){var N=L.targetedElements.get(Z);if(N){var S=L.targetMap.get(N);S&&(delete S.element,L.targetMap.set(N,S));L.targetedElements.delete(Z);L.visibilityObserver&&L.visibilityObservedElementHandlerKeys&&(N=L.visibilityObservedElementHandlerKeys.get(Z))&&(L.visibilityObserver.unobserveByKey(N),L.visibilityObservedElementHandlerKeys.delete(Z))}};
_.ltV=function(L,Z,N){var S=N.action,u=N.element;u&&S&&(FHY.includes(Z)||_.X7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||L.visibilityMonitor&&L.visibilityMonitor.isNodeVisible(u)?cbl(L,Z,N):L.visibilityObserver&&(L.visibilityObservedElementHandlerKeys||(L.visibilityObservedElementHandlerKeys=new WeakMap),S=L.visibilityObserver.observe(u,function(){cbl(L,Z,N);L.visibilityObservedElementHandlerKeys.delete(u)},{calledOnce:!0,
state:"visible"}),L.visibilityObservedElementHandlerKeys.set(u,S)))};
cbl=function(L,Z,N){var S=N.action;(N=N.element)&&S&&(_.Pc(L.JSC$13295_actionRouter,[S],N),L.targetMap.delete(Z),L.targetedElements.delete(N),L.triggeredTargets.add(Z))};
_.o4M=function(L,Z){var N=L.targetMap.get(Z);N||(N={},L.targetMap.set(Z,N));return N};
_.yx=function(){D05||(D05=new $0V);return D05};var n40=document.createElement("div");n40.style.touchAction="pan-down";var $1F=n40.style.touchAction==="pan-down";var KHM,ftl;KHM=function(){this.hammerFn=wVl();this.JSC$13303_screenManager=_.tC();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Ll(83615);_.yn(this.JSC$13303_screenManager,this.ve);D11()};
_.wH=function(){ftl||(ftl=new KHM);return ftl};
KHM.prototype.registerTouchEvents=function(L,Z,N){var S=_.CG.apply(3,arguments),u=this.hammerFn(L,{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}]]});N&&u.set({touchAction:N});this.nodeManagerMapping.set(L,u);var T=
lHw(Z);S=_.O(S);for(var W=S.next();!W.done;W=S.next()){W=W.value;if(W.includes("swipe")||W.includes("pinch")||W.includes("pan"))W.includes("swipe")?u.get("swipe").set({enable:!0,direction:T,velocity:.2}):W.includes("pinch")?u.get("pinch").set({enable:!0}):W.includes("pan")&&(u.get("pan").set({enable:!0,direction:T}),u.get("swipe").set({enable:!0,direction:T,velocity:.2}),u.get("swipe").recognizeWith("pan"));kUs(this,L,u,W)}};
var kUs=function(L,Z,N,S){N.on(S,function(u){if(S.includes("pinch"))L.lastPinchTime=Date.now();else if(S.includes("swipe")&&Date.now()-L.lastPinchTime<400)return;u.pointerType!=="mouse"&&(u=S==="doubletap"?{coordinates:u.center}:S.includes("pan")?u:S.includes("swipe")?{target:u.target}:{},Z.dispatchEvent(new CustomEvent(S,{bubbles:!0,composed:!0,detail:u})))})};
KHM.prototype.unregisterTouchEvents=function(L){var Z=_.CG.apply(1,arguments),N=this.nodeManagerMapping.get(L);if(N){Z=_.O(Z);for(var S=Z.next();!S.done;S=Z.next())N.off(S.value);this.nodeManagerMapping.delete(L);L.style.touchAction="unset"}};var ybY=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var vgG=null;_.MJ={getLocalStorage:_.Rn(function(){try{var L=new zZ_;var Z=L.isAvailable()?L:null}catch(N){return null}return Z?new _.cX(Z):null}),
getSessionStorage:_.Rn(function(){var L=new mj1;return L.isAvailable()?new _.cX(L):null})};var wUQ=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},j9F=function(){wUQ.instance||(wUQ.instance=new wUQ);
return wUQ.instance},EgB=function(L){var Z=L.networkEvents;
L.networkEvents=[];return _.c("enable_network_monitoring")?Z:[]};var U0l;U0l={};_.YhI=go("yt-serviceworker-metadata",{objectStores:(U0l.auth={addedAtVersion:1},U0l["resource-manifest-assets"]={addedAtVersion:2},U0l),shared:!0,upgrade:function(L,Z){Z(1)&&qO(L,"resource-manifest-assets");Z(2)&&qO(L,"auth")},
version:2});var fHB=self.location.origin+"/";k9x([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);k9x([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);k9x([/\.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\//]);k9x([/purge_shell=1/]);var eLh=void 0;eLh=eLh===void 0?[]:eLh;
for(var ItI=[],d0V=_.O(tz0),at0=d0V.next();!at0.done;at0=d0V.next())ItI.push({key:at0.value});for(var hLl=_.O(eLh),srL=hLl.next();!srL.done;srL=hLl.next())ItI.push(srL.value);var jrL,$e=_.iH==null?void 0:(jrL=_.iH.performance)==null?void 0:jrL.memory,U1L=!1,P7G={},IHx={},DC={},lv=navigator;var UO=function(L){this.JSC$13348_expiringStorage=new Er(L)};
UO.prototype.set=function(L,Z,N){N=N!==void 0?Date.now()+N:void 0;this.JSC$13348_expiringStorage.set(L,Z,N)};
UO.prototype.get=function(L){return this.JSC$13348_expiringStorage.get(L)};
UO.prototype.remove=function(L){this.JSC$13348_expiringStorage.remove(L)};var XAA=_.sc(["https://www.youtube.com/",""]),AIA=_.sc(["https://studio.youtube.com/",""]),LUP="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",BLs=null,u3H;var E4V=_.sc(["https://www.youtube.com/iframe_api"]),Yv=function(){this.playerResolver_=_.hS();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.on;this.playbackDurationSeconds_=0},PPN=function(L){var Z=function(){return window.YT&&typeof window.YT.ready==="function"};
if(Z())return _.xP(window.YT);var N=_.hS(),S=_.wZ("SCRIPT");S.onload=S.onreadystatechange=function(){S.readyState&&S.readyState!="loaded"&&S.readyState!="complete"||(S.onload=_.on,S.onreadystatechange=_.on,S.onerror=_.on,Z()?N.resolve(window.YT):N.reject(new _.sr("Failed to load the iframe player library","script.onload",S.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
S.onerror=function(u){S.onload=_.on;S.onreadystatechange=_.on;S.onerror=_.on;N.reject(new _.sr("Failed to load the iframe player library","script.onerror",u&&u.target&&u.target.src))};
_.TE(S,_.vy(E4V));L.insertBefore(S,L.firstChild);return N.promise},pUq=function(L,Z,N){var S,u;
_.b(function(T){switch(T.nextAddress){case 1:return L.playbackEndedCallback_=N,_.RS(T,2),T.yield(PPN(Z.parentElement||null),4);case 4:S=T.yieldResult;_.SX(T,3);break;case 2:return u=_.yd(T),u instanceof _.sr&&u.args&&u.args[0]=="script.onerror"?_.Q7(u):_.CA(u),T.return();case 3:S.ready(function(){return new S.Player(Z,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:L.onPlayerReady_.bind(L),onStateChange:L.onPlayerStateChange_.bind(L),
onCueRangeExit:L.onCueRangeExit_.bind(L)}})}),_.w7(T)}})};
_.t=Yv.prototype;_.t.getPlayerPromise=function(){return this.playerPromise_};
_.t.onPlayerReady_=function(L){this.playerResolver_.resolve(L.target)};
_.t.onPlayerStateChange_=function(L){if(L.data==YT.PlayerState.PLAYING){L=L.target;var Z=L.getCurrentTime();L.addCueRange("playback",Z,Z+this.playbackDurationSeconds_)}};
_.t.onCueRangeExit_=function(L){L.data=="playback"&&(L.target.stopVideo(),this.playbackEndedCallback_())};
_.t.stopVideo=function(){this.playerPromise_.then(function(L){L.stopVideo()})};
var zLl=function(L){L.playerVars_&&L.playerPromise_.then(function(Z){typeof Z.cueVideoByPlayerVars!="function"?_.Q7(new _.sr("vmh: player API not ready","cueVideoByPlayerVars",typeof Z.cueVideoByPlayerVars)):Z.cueVideoByPlayerVars(L.playerVars_)})};
Yv.prototype.playVideo=function(){var L=this;this.playerVars_&&this.playerPromise_.then(function(Z){typeof Z.loadVideoByPlayerVars!="function"?(Z=new _.sr("vmh: player API not ready","loadVideoByPlayerVars",typeof Z.loadVideoByPlayerVars),_.CA(Z)):Z.loadVideoByPlayerVars(L.playerVars_)})};
var m0Q=function(L,Z,N,S,u){Z&&(N===void 0&&(N=0),S===void 0&&(S=0),L.playbackDurationSeconds_=S/1E3,L.playerVars_={adformat:"17_8",videoId:Z,suggestedQuality:"hd720",startSeconds:N/1E3,player_params:u})};
Yv.prototype.mute=function(){this.playerPromise_.then(function(L){L.mute()})};
Yv.prototype.unMute=function(){this.playerPromise_.then(function(L){L.unMute()})};var MqA=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var e3;e3=function(){this.tokenJars={};if(this.cookiesEnabled=_.dv()){var L=_.eZ.get("CONSISTENCY",void 0);L&&Jbt(this,{encryptedTokenJarContents:L})}};
_.Get=function(){e3.instance||(e3.instance=new e3);return e3.instance};
e3.prototype.handleResponse=function(L,Z){if(!Z)throw Error("$f");var N,S;Z=((N=Z.innerTubeRequest.context)==null?void 0:(S=N.request)==null?void 0:S.consistencyTokenJars)||[];var u;(L=(u=L.responseContext)==null?void 0:u.consistencyTokenJar)&&this.replace(Z,L)};
e3.prototype.replace=function(L,Z){L=_.O(L);for(var N=L.next();!N.done;N=L.next())delete this.tokenJars[N.value.encryptedTokenJarContents];Jbt(this,Z)};
var Jbt=function(L,Z){if(Z.encryptedTokenJarContents&&(L.tokenJars[Z.encryptedTokenJarContents]=Z,typeof Z.expirationSeconds==="string")){var N=Number(Z.expirationSeconds);setTimeout(function(){delete L.tokenJars[Z.encryptedTokenJarContents]},N*1E3);
L.cookiesEnabled&&_.Ie("CONSISTENCY",Z.encryptedTokenJarContents,N,void 0,!0)}};var CPY,Iu;CPY=window.location.hostname.split(".").slice(-2).join(".");_.eD=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var L=_.X7("LOCATION_PLAYABILITY_TOKEN");_.X7("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=rbI(this))&&(L=this.localStorage.get("yt-location-playability-token"));L&&(this.locationPlayabilityToken=L,this.mostRecentPosition=void 0)};
_.eD.getInstance=function(){Iu=_.LZ("yt.clientLocationService.instance");Iu||(Iu=new _.eD,_.bp("yt.clientLocationService.instance",Iu));return Iu};
_.eD.prototype.setLocationOnInnerTubeContext=function(L){L.client||(L.client={});if(this.mostRecentPosition)L.client.locationInfo||(L.client.locationInfo={}),L.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),L.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),L.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),L.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)L.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.eD.prototype.handleResponse=function(L){var Z;L=(Z=L.responseContext)==null?void 0:Z.locationPlayabilityToken;L!==void 0&&(this.locationPlayabilityToken=L,this.mostRecentPosition=void 0,_.X7("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=rbI(this))&&this.localStorage.set("yt-location-playability-token",L,15552E3):_.Ie("YT_CL",JSON.stringify({loctok:L}),15552E3,CPY,!0))};
var rbI=function(L){return L.localStorage===void 0?new _.Bx("yt-client-location"):L.localStorage};
_.eD.prototype.clearLocationPlayabilityToken=function(L){L==="TVHTML5"?(this.localStorage=rbI(this))&&this.localStorage.remove("yt-location-playability-token"):_.aWP("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.eD.prototype.getCurrentPositionFromGeolocation=function(){var L=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var Z=!1,N=1E4;_.X7("INNERTUBE_CLIENT_NAME")==="MWEB"&&(Z=!0,N=15E3);return new Promise(function(S,u){navigator.geolocation.getCurrentPosition(function(T){L.mostRecentPosition=T;S(T)},function(T){u(T)},{enableHighAccuracy:Z,
maximumAge:0,timeout:N})})};
_.eD.prototype.createUnpluggedLocationInfo=function(L){var Z={};L=L.coords;if(L==null?0:L.latitude)Z.latitudeE7=Math.floor(L.latitude*1E7);if(L==null?0:L.longitude)Z.longitudeE7=Math.floor(L.longitude*1E7);if(L==null?0:L.accuracy)Z.locationRadiusMeters=Math.round(L.accuracy);return Z};
_.eD.prototype.createLocationInfo=function(L){var Z={};L=L.coords;if(L==null?0:L.latitude)Z.latitudeE7=Math.floor(L.latitude*1E7);if(L==null?0:L.longitude)Z.longitudeE7=Math.floor(L.longitude*1E7);return Z};var Qrh=function(L,Z){var N=w0();L||(L="unknown");Z||(Z="unknown");L="MAIN_APP_WEB_PAGE_TYPE_"+L.toUpperCase();L in o3V||(L="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");Z="MAIN_APP_WEB_REQUEST_TYPE_"+Z.toUpperCase();Z in RTh||(Z="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.LM(N,{mainAppWeb:{pageType:L,requestType:Z,isShellLoad:_.Ah("IS_SHELL_LOAD",!1)}})},XUM={start:function(){_.LM(ywh(),{mainAppWeb:_.Is()})},
success:function(){_.ZK(ywh(),"SUCCESS")},
failure:function(){_.ZK(ywh(),"FAILURE")},
cancelled:function(){_.ZK(ywh(),"CANCELLED")}};var AbM,Hzs,v1h;AbM=_.sc(["/sw.js"]);Hzs=_.sc(["/sw.js?0"]);_.BGQ=_.vy(AbM);v1h=_.vy(Hzs);var x0O=function(){var L=Error.apply(this,arguments);this.message=L.message;"stack"in L&&(this.stack=L.stack)};
_.f(x0O,Error);_.hz.prototype.load=function(L){this.megabloxUrl_=_.X7("YPC_MB_URL");_.Uo(this.megabloxUrl_,(0,_.hr)(function(){L&&L()},this))};
_.sDx=function(L,Z,N,S,u,T,W,V,M,G,D){_.Rcx(M);L.load((0,_.hr)(function(){try{var l=T?T:_.X7("HL"),v=_.X7("SESSION_INDEX");_.TfF("client",function(){GTM("59",{helpCenterPath:"/youtube",locale:l,window:window}).JSC$9974_loadChatSupport({authuser:String(v)})})}catch(R){throw dr(10,D,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),u&&u(R),_.CA(R),R;
}qhM(this,Z,N,S,u,T,W,V,M,G,D)},L))};
_.hz.prototype.openFixFlowDialog=function(L,Z,N,S){this.load((0,_.hr)(function(){try{LGN(this,_.LZ("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(L).withIntegratorCallback(Z).load(N,S)}catch(u){throw _.CA(u),u;}},this))};
var LGN=function(L,Z,N,S){var u=Z.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.c("enable_window_constrained_buy_flow_dialog")&&(u=u.usingPopupStyle(_.LZ("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));S&&(u=u.usingCloseCallback(S));Z.bootstrap.fromPaymentsUrl(L.megabloxUrl_);L=Z.bootstrap.asMashupMode(u);N=N?N:_.X7("HL");L.usingGaiaIndex(_.X7("SESSION_INDEX")).usingLocale(N).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.c("enable_google_payments_buyflow_material2_style_web")?
L.usingStyle(":m2;pc=#444;ac=#065fd4"):L.usingStyle(":md;pc=#444;ac=#065fd4");return L},qhM=function(L,Z,N,S,u,T,W,V,M,G,D){try{var l=_.LZ("payments.business.integration");
if(!l)throw new x0O("payments.business.integration is undefined");var v=l.standaloneContextAuthId.forUserId(),R=LGN(L,l,T,function(){n1s(!1);V&&V()});
W&&R.usingServerAnalyticsEventHandler(W);var K=R.inStandaloneContext(v).buyFlow(function(U){if(U&&(!U.integratorData||U.integratorData===""||U.error))if(U.error!=null)if(String(U.error)==="-1")_.ck_(M);else{var d=String(U.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";dr(10,D,d,U.debugCode);_.as(d,M,U.debugCode);d=new _.sr("PAYMENT_ERROR_MESSAGE::"+U.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+U.internalErrorDetails);
_.CA(d)}else dr(10,D,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.as("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",M,"EMPTY_INTEGRATOR_DATA"),_.CA(Error("cg"));N&&(n1s(!1),N(U))}).withEncryptedParameters(Z);
G&&K.withClientParameters($LO(_.agt(G)));K.load(function(){dr(24,D);_.fq("ttc",void 0,"commerce_transaction");vB("commerce_transaction");S&&(S(),n1s(!0))},function(U){if(U==null?0:U.debugCode)var d=U==null?void 0:U.debugCode;
else if(!U||(U==null?0:U.debugCode))d="EMPTY_LOAD_FAILURE_ERROR",_.CA(Error(d));else{d="EMPTY_LOAD_FAILURE_DEBUG_CODE";var h=new _.sr("LOAD_FAILURE:"+U.message," DEBUG_CODE:"+d);_.CA(h)}dr(10,D,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",d);_.as("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",M,d);_.CA(U);u&&u(U)})}catch(U){throw U instanceof x0O&&(dr(10,D,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),u&&u(U)),_.CA(U),U;
}};var Ztl;Ztl=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.dF_=function(L,Z){Z=Z===void 0?!1:Z;L=Ztl.test(L)?_.YV(L):null;!Z&&window.payments||!L?(L=_.hS(),Z=L.promise,L.resolve()):Z=_.ZHV(L,{attributes:{"data-payments-main":"",id:"payment-lib"}});return Z};var NQs;NQs=_.sc(["//www.googletagmanager.com/gtm.js?id=",""]);_.dH=function(L,Z){_.QB(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:Z}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.X7("GL")}),Z=_.wZ("SCRIPT"),Z.async=!0,_.TE(Z,_.vy(NQs,L)),Z.id="gtm",L=document.getElementsByTagName("script"),L.length==0?document.head.appendChild(Z):(L=L[0],L.parentNode.insertBefore(Z,L)))};
_.au=function(L){if(L=JSON.parse(L))window.dataLayer=window.dataLayer||[],window.dataLayer.push(L)};var SmQ,itt;SmQ=_.sc(["https://clients2.google.com/gr/gr_sync.js"]);_.ePL=function(){};
_.ePL.prototype.init=function(){if(itt()){var L=_.hS();L.resolve();return L.promise}return _.ZHV(_.vy(SmQ)).then(function(){if(!itt())throw Error("dg");},function(){throw Error("eg");
})};
_.I5t=function(){if(!itt())return"";var L=window.google.gr;L.init({async:{schedule:"sync"},merchantId:"youtube"});L.start();L=L.finish();return L==null?"":L};
itt=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.e=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.f(_.e,PolymerFakeBaseClassWithoutHtml);_.Ok=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.f(_.Ok,PolymerFakeBaseClassWithoutHtml);var KUF=window.ShadyDOM;var ucF,S5t,tTG,OPt,VTF,bPh,he,rr;ucF=_.c("enable_shadydom_free_scoped_query_methods");S5t=_.c("enable_shadydom_free_scoped_node_methods");tTG=_.c("enable_shadydom_free_scoped_readonly_properties_batch_one");OPt=_.c("enable_shadydom_free_parent_node");VTF=_.c("enable_shadydom_free_children");bPh=_.c("enable_shadydom_free_last_child");he=window.ShadyDOM;_.qJ=he&&he.noPatch&&he.wrap?he.wrap:he?function(L){return he.patch(L)}:function(L){return L};
rr=function(L){if(L instanceof ShadowRoot)this.host=(0,_.qJ)(L.host),this.root=L;else if(L.$$){this.host=(0,_.qJ)(L);var Z;this.root=(Z=L.root)!=null?Z:this.host}else if(L.polymerController){this.host=(0,_.qJ)(L);var N;this.root=(N=this.host.shadowRoot)!=null?N:this.host}else this.root=this.host=(0,_.qJ)(L)};
iPh();TCP();MTH();g2_();WnG();var ujt={querySelector:function(L,Z){Z=keH(Z,Pq(L));L=_.pX(L);return z7(L).prototype.querySelector.call(L,Z)},
querySelectorAll:function(L,Z){Z=keH(Z,Pq(L));L=_.pX(L);return z7(L).prototype.querySelectorAll.call(L,Z)}},TQQ={appendChild:function(L,Z){var N=Pq(L),S=_.Ex(Z);
return _.ZP_(_.pX(L),N?_.Jz(Z,N,S):Z)},
cloneNode:function(L,Z){var N=_.Ex(L);L=_.pX(L);Z=z7(L).prototype.cloneNode.call(L,Z);return N?CX(Z,N):Z},
contains:function(L,Z){var N=Pq(L),S=_.Ex(Z);return N!==S?!1:NC1(L,Z)},
insertBefore:function(L,Z,N){var S=Pq(L),u=_.Ex(Z);L=_.pX(L);Z=S?_.Jz(Z,S,u):Z;return z7(L).prototype.insertBefore.call(L,Z,N)},
removeChild:function(L,Z){var N=Pq(L);L=_.pX(L);Z=N?CX(Z,N):Z;return z7(L).prototype.removeChild.call(L,Z)},
replaceChild:function(L,Z,N){var S=Pq(L),u=_.Ex(Z);Z=S?_.Jz(Z,S,u):u?CX(Z,u):Z;N=S?CX(N,S):N;L=_.pX(L);return z7(L).prototype.replaceChild.call(L,Z,N)},
getRootNode:function(L,Z){Z=Z===void 0?{composed:!0}:Z;var N;if(((N=Z)!=null?N:{}).composed)L=jvA(L);else{Z=L;for(L=w7P(L);L;)Z=L,L=YL_(L);L=Z}return L}},Fns=tTG?{firstChild:AkA,
nextSibling:rk_,previousSibling:X7h,firstElementChild:HJs,lastElementChild:xPt,nextElementSibling:C_0,previousElementSibling:Qvx,childNodes:qLG}:{};OPt&&(Fns.parentNode=JkF);VTF&&(Fns.children=LnL);bPh&&(Fns.lastChild=BaL);ucF&&Gus(ujt);S5t&&Gus(TQQ);$l_();var Dlf=function(L){this.node=L instanceof ShadowRoot?L.host:L};
lLw();v2F();var cts=new WeakMap;var Kn1=Symbol("Cd");var UlF=new Set(["tap","track","down","up"]),Y5s=_.c("pbcm_fi_query_decorators");var sO=function(){return _.Ok.apply(this,arguments)||this};
_.f(sO,_.Ok);_.t=sO.prototype;_.t.getState=function(){return this.store.getState()};
_.t.dispatch=function(L){this.store.dispatch(L)};
_.t.beforeRegister=function(){if(this&&typeof this==="object"){var L;var Z=!!this.useSignals||!((L=this.polymerController)==null||!L.useSignals)}else Z=!1;if(!Z&&this.properties)for(Z=_.O(Object.keys(this.properties)),L=Z.next();!L.done;L=Z.next()){var N=L.value;L=this.properties[N];if(L.selector){if(L.computed)throw Error("kg");N=["reduxPropertiesRecomputeTrigger",'"'+N+'"'].concat(_.Pd(L.selectorArgs||[])).join(",");L.computed="recomputeReduxSelector("+N+")"}}};
_.t.attached=function(){var L=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){L.reduxPropertiesRecomputeTrigger++}));
_.c("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.t.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.t.recomputeReduxSelector=function(L,Z){var N=_.CG.apply(2,arguments),S=this.properties[Z].selector;if(!S)throw Error("ig`"+Z);return S.apply(null,[this.store.getState()].concat(_.Pd(N)))};
_.t.select=function(L){var Z=_.CG.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return L.apply(null,[this.store.getState()].concat(_.Pd(Z)))};
_.gd.Object.defineProperties(sO.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
sO.prototype.recomputeReduxSelector=sO.prototype.recomputeReduxSelector;_.r([_.Y(),_.Q("design:type",Number)],sO.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.r([_.Wh()],sO);var j3=[],aLh={},R_=function(){return F$.apply(this,arguments)||this};
_.f(R_,F$);R_.prototype._addPropertyEffect=function(L,Z,N){if(Z==="__observeEffects"&&N){var S,u=(S=N.info.method)!=null?S:N.info.methodName;if(u){var T=this[u];this[u]=function(){j3.push(u);try{T==null||T.apply(this,arguments)}finally{j3.pop()}}}}_.Ue._addPropertyEffect.apply(this,[L,
Z,N])};
R_.prototype._setPendingProperty=function(L,Z,N){if(j3.length){var S=j3[j3.length-1],u;(u=aLh[this.is])!=null&&u.has(S)||(h4_(this.is,S),_.mS("polymerPropertyChangedInObserver",{componentName:this.is,observerName:S}))}return _.Ue._setPendingProperty.apply(this,[L,Z,N])};
_.r([i7F()],R_);var sdx=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),E2f,Md={};_.c("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Md);var F4=function(){return _.Ok.apply(this,arguments)||this};
_.f(F4,_.Ok);F4.prototype._setUnmanagedPropertyToNode=function(L,Z,N){L.loggingStatus&&(L.loggingStatus.isDeclarativeExternal=!0);if(N!==L[Z]||typeof N==="object")L[Z]=N;L.is&&L.polymerController&&L.polymerController!==L&&gD(L.is,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");L.loggingStatus&&(L.loggingStatus.isDeclarativeExternal=!1)};
_.r([_.Wh()],F4);jdH()&&(Zf.prototype._setUnmanagedPropertyToNode=(new F4)._setUnmanagedPropertyToNode);_.q50={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(L){},set polymerController(L){}}]};var o_=function(){var L=F$.apply(this,arguments)||this;L.json=function(){};
return L};
_.f(o_,F$);o_.prototype.equals=function(L,Z){return L===Z};
o_.prototype.isEmpty=function(L){var Z;(Z=!L)||(Z=_.Jx(L)&&L.length===0);return Z};
_.r([i7F()],o_);var tHh=function(L){L=uOt(L);Xd.call(this,L)};
_.f(tHh,Xd);tHh.prototype.addProvider=function(L){L=L.key?L:uOt([L])[0];var Z=this.keyIdToIndex.get(L.key.id);if(Z){if(Jt_(L,this.providers[Z]))throw Error("lg`"+L.key.displayName);}else Xd.prototype.addProvider.call(this,L)};
var OtI=new tHh([]);var WGs=!1;var HPB={};WGs||(AtA(),WGs=!0);
HPB.InjectBehavior={initializeInjection:function(){var L=this.provide;try{if((L=L!=null?L:[])&&L.length>0)for(var Z=uOt(L),N=_.O(Z),S=N.next();!S.done;S=N.next())OtI.addProvider(S.value);var u=new Set;CKf(this.behaviors||[],u);Z={};for(var T=_.O(u),W=T.next();!W.done;W=T.next()){var V=W.value;V.inject&&Object.assign(Z,V.inject)}this.inject&&Object.assign(Z,this.inject);for(var M=_.O(Object.keys(Z)),G=M.next();!G.done;G=M.next()){var D=G.value,l=Z[D];try{this[D]=OtI.resolve(l)}catch(v){throw v;}}}catch(v){throw Error(v.message);
}}};var xlA;var LOf=/\bclass\b/.test(function(){}.toString()),S0G=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var VHt=function(L){this.wasDefined=!0;Array.isArray(L)||L instanceof Array?(this.JSC$13506_getImpl=L[0],this.JSC$13506_setImpl=L[1]):this.JSC$13506_getImpl=L};
_.t=VHt.prototype;_.t.getWithPath=function(L){return TA0(this.JSC$13506_getImpl(),L)};
_.t.setWithPath=function(L,Z){var N=this;if(L.length)throw Error("mg");if(!this.JSC$13506_setImpl)throw Error("ng");UK(function(){N.JSC$13506_setImpl(Z)})};
_.t.notifyPath=function(){throw Error("og");};
_.t.notifySplices=function(){throw Error("pg");};
_.t.getChangeRecordSignal=function(L,Z){var N=this;if(L.length)throw Error("qg");return function(){var S=N.getWithPath(L);return{path:Z!=null?Z:"",base:S,value:S}}};
_.t.getSplicesSignal=function(){throw Error("rg");};
_.t.getPathMutationSignal=function(){throw Error("sg");};
_.t.pop=function(){throw Error("tg");};
_.t.push=function(){throw Error("ug");};
_.t.splice=function(){throw Error("vg");};
_.t.unshift=function(){throw Error("wg");};var EO=function(L){var Z=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(L)||L instanceof Array?(this.JSC$13511_getImpl=L[0],this.JSC$13511_setImpl=L[1]):this.JSC$13511_getImpl=L;this.wasDefined=!1;_.cE(function(){Z.wasDefined=Z.JSC$13511_getImpl()!==void 0})};
EO.prototype.getWithPath=function(L){return TA0(this.JSC$13511_getImpl(),L)};
EO.prototype.setWithPath=function(L,Z){var N=this;if(L[L.length-1]!=="*"&&L[L.length-1]!=="splices"){var S=_.cE(function(){return N.getWithPath([])});
if(L.length===0){if(!this.JSC$13511_setImpl)throw Error("xg");if(S===Z)return;this.wasDefined||(this.wasDefined=Z!==void 0);UK(function(){N.JSC$13511_setImpl(Z)})}else{for(var u=0;u<L.length-1;u++){if(!S)return;
S=S[L[u]]}u=L[L.length-1];S&&(S[u]=Z);this.wasDefined||(this.wasDefined=L.length>1||Z!==void 0)}btM(this,L,{pathComponents:L,value:Z})}};
EO.prototype.notifyPath=function(L,Z){L.length===0?Z&&this.setWithPath(L,Z.value):btM(this,L,{pathComponents:L,value:Z==null?void 0:Z.value,fallbackWhenUndefined:Z==null?void 0:Z.value})};
var btM=function(L,Z,N,S){if(L.setMutationSignal){var u=++L.mutationIndex,T=[L.observedPath],W=L.observedPath,V;Z.length===0&&(V=W);for(var M=0;M<Z.length;M++){var G=W.subPaths[Z[M]];if(!G)break;T.push(G);W=G;M===Z.length-1&&(V=G)}for(Z=!1;T.length;)W=T.shift(),W.data={index:u,mutation:N,spliceMutationIndex:S},Z||(Z=W===V),Z&&T.push.apply(T,_.Pd(Object.values(W.subPaths)));UK(function(){L.setMutationSignal(u)})}};
EO.prototype.notifySplices=function(L,Z){var N=this,S=_.cE(function(){return N.getWithPath(L)}),u=[].concat(_.Pd(L),["splices"]);
btM(this,u,{pathComponents:u,value:{indexSplices:Z}});if(S==null?0:S.length)Z=this.mutationIndex,u=[].concat(_.Pd(L),["length"]),btM(this,u,{pathComponents:u,value:S.length},Z)};
var MHl=function(L,Z,N,S,u,T){L.notifySplices(N,[{index:S,addedCount:u,removed:T,object:Z,type:"splice"}])},gYl=function(L,Z){L=L.observedPath;
for(var N=0;N<Z.length;N++){var S=Z[N],u=L.subPaths[S];u||(u={pathComponents:Z.slice(0,N+1),subPaths:{}},L.subPaths[S]=u);L=u}},FGt=function(L,Z,N){gYl(L,Z);
if(!L.getMutationSignal){var S=_.O(_.nh(L.mutationIndex,void 0,"sNBMCd"));L.getMutationSignal=S.next().value;L.setMutationSignal=S.next().value}var u=L.getMutationSignal;return _.wJ(function(){u();return N(GZt(L,Z))},void 0,"zvsXEd")};
EO.prototype.getChangeRecordSignal=function(L,Z){var N=this,S=this.mutationIndex,u;return FGt(this,L,function(T){if(T&&T.index>S){var W=T.mutation;S=T.index;u=void 0}T=_.cE(function(){return N.getWithPath(L)});
if(W){var V=W.pathComponents[W.pathComponents.length-1],M=[].concat(_.Pd(W.pathComponents));if(V==="splices"||V==="length")return{base:T,path:(Z?[Z].concat(_.Pd(M)):M).join("."),value:W.value};var G=L.length>M.length?L:M,D;return{base:T!=null?T:W.fallbackWhenUndefined,path:(Z?[Z].concat(_.Pd(G)):G).join("."),value:(D=_.cE(function(){return N.getWithPath(G)}))!=null?D:W.fallbackWhenUndefined}}u||(u={base:T,
path:(Z?[Z].concat(_.Pd(L)):L).join("."),value:T});return u})};
EO.prototype.getSplicesSignal=function(L){var Z=this.mutationIndex,N;return FGt(this,L,function(S){if(S&&S.index>Z&&S.spliceMutationIndex!==Z){var u=S.mutation;Z=S.index;N=void 0}return u&&u.pathComponents[u.pathComponents.length-1]==="splices"?N=S=u.value:N})};
EO.prototype.getPathMutationSignal=function(L){var Z=this;gYl(this,L);if(!this.getMutationSignal){var N=_.O(_.nh(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=N.next().value;this.setMutationSignal=N.next().value}var S=this.getMutationSignal,u=this.mutationIndex,T;return _.wJ(function(){S();var W=GZt(Z,L);if(W&&W.index>u&&W.mutation&&tBP(W.mutation.pathComponents,L)){var V=W.mutation;u=W.index}if(!T||u!==T.index){var M,G;W=(G=_.cE(function(){return Z.getWithPath(L)}))!=null?G:(M=V)==null?
void 0:M.fallbackWhenUndefined;
T={index:u,value:W}}return T},void 0,"RXYC9b")};
var GZt=function(L,Z){L=L.observedPath;Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())L=L.subPaths[N.value];return L.data};
EO.prototype.pop=function(L){var Z=this,N=_.cE(function(){return Z.getWithPath(L)});
if(!(N instanceof Array))throw Error("yg");var S=N.length>0,u=N.pop();S&&MHl(this,N,L,N.length,0,[u]);return u};
EO.prototype.push=function(L){var Z=_.CG.apply(1,arguments),N=this,S=_.cE(function(){return N.getWithPath(L)});
if(!(S instanceof Array))throw Error("zg");var u=S.length,T=S.push.apply(S,_.Pd(Z));Z.length&&MHl(this,S,L,u,Z.length,[]);return T};
EO.prototype.splice=function(L,Z,N){var S=_.CG.apply(3,arguments),u=this,T=_.cE(function(){return u.getWithPath(L)});
if(!(T instanceof Array))throw Error("Ag");Z<0?Z=T.length-Math.floor(-Z):Z&&(Z=Math.floor(Z));var W=T.splice.apply(T,[Z,N].concat(_.Pd(S)));(S.length||W.length)&&MHl(this,T,L,Z,S.length,W);return W};
EO.prototype.unshift=function(L){var Z=_.CG.apply(1,arguments),N=this,S=_.cE(function(){return N.getWithPath(L)});
if(!(S instanceof Array))throw Error("Bg");var u=S.unshift.apply(S,_.Pd(Z));Z.length&&MHl(this,S,L,0,Z.length,[]);return u};var P3=function(L,Z,N){this.model=L;this.unknownSignalResolver=Z;this.options=N;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];Z=_.O($w_());L=Z.next().value;Z=Z.next().value;this.owner=L;this.disposeImpl=Z};
P3.prototype.dispose=function(){if(!this.isDisposed){for(var L=_.O(this.childSignalProxies),Z=L.next();!Z.done;Z=L.next())Z.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var $xh=function(L,Z){L=_.OK(L.owner);try{Z()}finally{_.OK(L)}};
P3.prototype.effect=function(L){$xh(this,function(){_.Ch(L,"g")})};
var DxM=function(L,Z){L.options!=null||(L.options={});var N;(N=L.options).immutableProps!=null||(N.immutableProps=new Set);L.options.immutableProps.add(Z)},zj0=function(L,Z){Z=""+Z;
lJL(L,Z);var N,S;if((N=L.options)==null?0:(S=N.immutableProps)==null?0:S.has(Z))return!0;var u;if((u=L.model.__signalCache)==null?0:u.has(Z))N=L.model.__signalCache.get(Z),Array.isArray(N)&&DxM(L,Z);var T,W,V;return(V=(T=L.options)==null?void 0:(W=T.immutableProps)==null?void 0:W.has(Z))!=null?V:!1},vYq=function(L,Z){var N;
L.unknownSignalResolver&&(N=L.unknownSignalResolver(Z));var S,u;((S=L.options)==null?0:(u=S.immutableProps)==null?0:u.has(Z))?N!=null||(N=new VHt(_.nh(L.model[Z],void 0,"By5iP"))):N!=null||(N=new EO(_.nh(L.model[Z],void 0,"CXghNc")));var T=L.model.hostElement;Object.defineProperty(L.model,Z,{get:function(){pN1(T,Z);return N.getWithPath([])},
set:function(W){GX(T,Z);L.setWithPath([Z],W)},
configurable:!0});return N},lJL=function(L,Z){var N,S,u;
((N=L.model.__signalCache)==null||!N.has(Z))&&((S=L.options)==null?0:(u=S.externalSignalProps)==null?0:u.has(Z))&&L.model[Z]},fd=function(L,Z){Z=""+Z;
var N=L.signalCache[Z];if(N!==void 0)return N;N=!1;lJL(L,Z);var S;if((S=L.model.__signalCache)==null?0:S.has(Z))if(N=L.model.__signalCache.get(Z),Array.isArray(N))N=!0,DxM(L,Z);else return L.signalCache[Z]=L.model.__signalCache.get(Z).signal,L.signalCache[Z];var u,T;S=(T=(u=L.options)==null?void 0:u.reactivityMode)!=null?T:0;var W,V;if(!((W=L.options)==null?0:(V=W.reactiveProps)==null?0:V.has(Z))&&!N&&S===1)throw Error("Cg`"+Z);u=N?oYQ(L,Z):vYq(L,Z);return L.signalCache[Z]=u},oYQ=function(L,Z){var N=
Object.getOwnPropertyDescriptor(L.model.constructor.prototype,Z),S=function(){return L.model[Z]};
return new VHt(N&&N.get&&!N.set?S:[S,function(u){L.model[Z]=u}])};
P3.prototype.getWithPath=function(L){var Z=_.O(L);L=Z.next().value;Z=uI(Z);pN1(this.model.hostElement,""+L);return fd(this,L).getWithPath(Z)};
P3.prototype.setWithPath=function(L,Z){if(L.length){GX(this.model.hostElement,L.join("."));var N=_.O(L);L=N.next().value;N=uI(N);fd(this,L).setWithPath(N,Z)}};
P3.prototype.getPathMutationSignal=function(L){var Z=_.O(L);L=Z.next().value;Z=uI(Z);return fd(this,L).getPathMutationSignal(Z)};
P3.prototype.notifyPath=function(L,Z){var N=_.O(L);L=N.next().value;N=uI(N);fd(this,L).notifyPath(N,Z)};
var RNV=function(L,Z){if(Z.type==="literal")return function(){return{rootWasDefined:!0,value:Z.value}};
var N=nd(Z.path),S=_.O(N),u=S.next().value;S=uI(S);var T,W;if(Z.type==="path"&&(N.length===1||((T=L.options)==null?0:(W=T.immutableProps)==null?0:W.has(u))))return function(){var l=L.getWithPath(N.slice(0,1));l=TA0(l,N.slice(1));return{rootWasDefined:fd(L,N[0]).wasDefined,value:l}};
var V=fd(L,u);if(Z.type==="path"){var M=V.getPathMutationSignal(S);return function(){var l,v=(l=M())==null?void 0:l.value;return{rootWasDefined:V.wasDefined,value:v}}}if(Z.type==="splices"){var G=V.getSplicesSignal(S);
return function(){var l=G();return{rootWasDefined:V.wasDefined,value:l}}}var D=V.getChangeRecordSignal(S,""+u);
return function(){var l=D();return{rootWasDefined:V.wasDefined,value:l}}},gGP=function(L,Z,N){var S=N.map(function(V){return RNV(L,V)}),u=N.length===0,T=[],W=N.length!==1||N[0].type!=="path"?!1:!0;
L.effect(function(){for(var V=S.length,M=[],G=!!T.length,D=0;D<V;D++){var l=S[D](),v=l.rootWasDefined;l=l.value;u||(u=v);M[D]=l;W&&(M[D+V]=G?T[D]:M[D],T[D]=l)}u&&rJ(L.owner,function(){return void Z.apply(null,_.Pd(M))})})},OW1=function(L,Z,N,S,u){var T=fd(L,Z);
u!==void 0&&T.setWithPath([],u);gGP(L,function(){var W=_.CG.apply(0,arguments);GX(L.model.hostElement,Z,!0);T.setWithPath([],N.apply(null,_.Pd(W)))},S)};
P3.prototype.arrayPush=function(L){var Z=_.CG.apply(1,arguments),N=_.O(L),S=N.next().value;N=uI(N);S=fd(this,S);return S.push.apply(S,[N].concat(_.Pd(Z)))};
P3.prototype.arraySplice=function(L,Z,N){var S=_.CG.apply(3,arguments),u=_.O(L),T=u.next().value;u=uI(u);T=fd(this,T);return T.splice.apply(T,[u,Z,N].concat(_.Pd(S)))};
P3.prototype.arrayUnshift=function(L){var Z=_.CG.apply(1,arguments),N=_.O(L),S=N.next().value;N=uI(N);S=fd(this,S);return S.unshift.apply(S,[N].concat(_.Pd(Z)))};
P3.prototype.notifySplices=function(L,Z){var N=_.O(L);L=N.next().value;N=uI(N);fd(this,L).notifySplices(N,Z)};var c$0=!0,nYO=!1,J8_=!1,KG0=!1,fJt=0;KG0=!1;fJt=0;c$0=!0;nYO=J8_=!1;var cPB=/([^\s]+?)\(([\s\S]*)\)/,vGf=/\.([^.]+)$/,KOs=/\\,/g,Dwf=/&comma;/g,l$f=/\\(.)/g,nGh=[],oGG={"*":"wildcard",splices:"splices"};var a$L=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"),Y0f=/[A-Z]/,kZq=["class","hidden","id","on-dom-change"],sax=new Set([].concat(_.Pd(kZq),
["if","notify-dom-change","restamp"])),ja0=new Set([].concat(_.Pd(kZq),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),EGF=new Set(["restamp"]);var PP0=new Set(["className","id"]);var JPA=Symbol(),BAf=window;var ush=window;var M4h=0,O$L=0,kD=[],b$F=0,t4A=!1,V4L=document.createTextNode("");(new window.MutationObserver(WEL)).observe(V4L,{characterData:!0});var wD=new Map,yr=0,y$q=function(L){this.mappedHandleId=L},GNw=function(L,Z,N,S){this.mappedHandleId=L;
var u=this;this.mappedHandleId=L;this.callback=Z;this.waitTime=N;this.schedulerPriority=S;this.handleId=_.ro.addJob(function(){u.callback();wD.delete(u.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.f(GNw,y$q);GNw.prototype.cancel=function(){_.ro.cancelJob(this.handleId);wD.delete(this.mappedHandleId)};
var FEs=function(L,Z){this.mappedHandleId=L;var N=this;this.mappedHandleId=L;this.callback=Z;this.handleId=g7H(function(){N.callback();wD.delete(N.mappedHandleId)})};
_.f(FEs,y$q);FEs.prototype.cancel=function(){var L=this.handleId-O$L;L<0||kD.length<=L||(kD[L]=null);wD.delete(this.mappedHandleId)};var v7f=function(){};
v7f.prototype.cancel=function(){this.jobHandle!==void 0&&($tA(this.jobHandle),this.jobHandle=void 0)};
v7f.prototype.run=function(L,Z,N){var S=this;this.cancel();this.callback=L;this.jobHandle=_.Uk(function(){L();S.callback=void 0},Z,N)};
v7f.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var DtF=new WeakMap;var wZO=SR(function(L){for(var Z=L,N=0;N<3;N++)Z=Object.getPrototypeOf(Z);delete Z.prototype.connectedCallback;var S=function(){return L.apply(this,arguments)||this};
_.f(S,L);S.prototype._attachDom=function(u){if(!u)return null;var T=(0,_.qJ)(this.hostElement);T.attachShadow({mode:"open",shadyUpgradeFragment:u});T.shadowRoot.appendChild(u);return T.shadowRoot};
S.prototype._takeAttributes=function(){for(var u=this.hostElement.attributes,T=0;T<u.length;T++){var W=u[T],V=void 0,M=void 0;(M=(V=this).__attributeReaction)==null||M.call(V,W.name,null,W.value)}};
S.prototype._readyClients=function(){L.prototype._readyClients.call(this);this.root=this};
S.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);L.prototype.connectedCallback.call(this)};
_.gd.Object.defineProperties(S,{template:{configurable:!0,enumerable:!0,get:function(){return S.prototype._template}}});
return S}),Uxq=SR(function(L){var Z=function(){return L.apply(this,arguments)||this};
_.f(Z,L);Z.prototype.created=function(){if(this.__notifyEffects)for(var N=_.O(Object.values(this.__notifyEffects)),S=N.next();!S.done;S=N.next()){S=_.O(S.value);for(var u=S.next();!u.done;u=S.next())u.value.fn=n7h}if(this.__reflectEffects)for(N=_.O(Object.values(this.__reflectEffects)),S=N.next();!S.done;S=N.next())for(S=_.O(S.value),u=S.next();!u.done;u=S.next())u.value.fn=KEw};
Z.prototype._addEventListenerToNode=function(N,S,u){N=eA(N);rx(N,S,u)||L.prototype._addEventListenerToNode.call(this,N,S,u)};
Z.prototype._removeEventListenerFromNode=function(N,S,u){N=eA(N);Qb(N,S,u)||L.prototype._removeEventListenerFromNode.call(this,N,S,u)};
Z.prototype._propertiesChanged=function(N,S,u){if(this.__dataToNotify&&this.__notifyEffects)for(var T=_.O(Object.keys(this.__dataToNotify)),W=T.next();!W.done;W=T.next()){W=W.value;var V=c8h(W);this.__notifyEffects[V]||delete this.__dataToNotify[W]}else this.__dataToNotify=null;L.prototype._propertiesChanged.call(this,N,S,u)};
Z.prototype.fire=function(N,S,u){S=S===void 0?{}:S;var T;return _.QT(eA((T=u==null?void 0:u.node)!=null?T:this),N,S,u)};
Z.prototype._ensureAttribute=function(N,S){var u=eA(this);u.hasAttribute(N)||Kd(u,S,N)};
Z.prototype.isLightDescendant=function(N){var S=eA(this);return eA(S)!==N&&_.QJ(S).contains(N)&&_.QJ(S).getRootNode()===_.QJ(N).getRootNode()};
return Z});
_.Ya.ready=function(){var L;((L=this.hostElement)!=null?L:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var Z;((Z=this.hostElement)!=null?Z:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Eb._subscribeIronResize=function(L){var Z;((Z=L.hostElement)!=null?Z:L).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Eb._unsubscribeIronResize=function(L){var Z;((Z=L.hostElement)!=null?Z:L).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var y8G=[Array,Boolean,Date,Number,Object,String],dD=function(L,Z,N,S){this.polySiInfo=L;this.polySiParams=Z;this.polySiContext=N;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;S||this instanceof HTMLElement&&(S=this);if(!S)throw Error("Jg");this.allowedProps=Z.allowedProps;this.hostElement=S;this.is=L.is;this.upgradeDisabled=!!Z.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");L=new Set(Z.reactiveSchemas.filter(function(u){return u.type!==
"observe"}).map(function(u){return u.propertyKey}));
this.signalProxy=new P3(this,void 0,{reactiveProps:L,reactivityMode:Z.reactivityMode});this.__dataHasAccessor={};Z=_.O(Z.reactiveSchemas);for(L=Z.next();!L.done;L=Z.next())L=L.value,L.type==="signal"&&(this.__dataHasAccessor[L.propertyKey]=!0);this.upgradeDisabled||YmO(this)};
dD.prototype.getExtraMethodsToForward=function(){return[]};
var YmO=function(L){L.polySiContext.didRegister||(L.registered(),L.polySiContext.didRegister=!0);L.polySiContext.finalizedTemplate||(L.polySiContext.finalizedTemplate={},L.polySiParams.templateGetter&&(L.polySiContext.finalizedTemplate.processedTemplate=TUf(L.polySiParams.templateGetter,L.polySiParams.is)));eN0(L);var Z=L.hostElement;Z.loggingStatus!=null||(Z.loggingStatus={});Z.loggingStatus.isInitializing=!0;_.cE(function(){return void L.created()});
Z.loggingStatus.isInitializing=!1;L.isPolySiElementConnected&&IJt(L)},IJt=function(L){L.didCallReady||(_.cE(function(){return void L.ready()}),L.didCallReady=!0);
L.isAttached=!0;L.attached()};
_.t=dD.prototype;_.t.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||IJt(this)};
_.t.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.t.attributeChangedCallback=function(L,Z,N){if(this.upgradeDisabled)L==="disable-upgrade"&&N===null&&(this.upgradeDisabled=!1,YmO(this));else if(Z!==N){var S=_.To(L),u=this.polySiContext.typesForSignals[S];if(u&&(!this.reflecting||_.c("polysi_attribute_changed_serializing_killswitch"))){switch(u){case Object:try{var T=JSON.parse(N)}catch(V){T=N}break;case Array:try{T=JSON.parse(N)}catch(V){T=null}break;case Date:T=isNaN(N)?String(N):Number(N);T=new Date(T);break;case Boolean:T=N!==null;break;case Number:T=
Number(N);break;default:T=N}this[S]=T}S=_.O(this.polySiParams.behaviors);for(u=S.next();!u.done;u=S.next())T=void 0,(T=u.value.attributeChanged)==null||T.call(this,L,Z,N);var W;(W=this.attributeChanged)==null||W.call(this,L,Z,N)}};
_.t.attributeChangedCallbackWrapper=function(L,Z,N){this.attributeChangedCallback(L,Z,N)};
_.t.setPropertiesFromInitialAttributeValues=function(){for(var L=0;L<this.hostElement.attributes.length;L++){var Z=this.hostElement.attributes[L];(Z.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(Z.name))&&this.attributeChangedCallback(Z.name,null,Z.value)}};
_.t.created=function(){this.provide=this.polySiParams.provide;var L;(L=this.initializeInjection)==null||L.call(this);L=_.O(this.polySiParams.reactiveSchemas);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.type==="signal"&&(this.mutablePropNames.add(Z.propertyKey),fd(this.signalProxy,Z.propertyKey));kN_(this,this.polySiInfo,this.polySiParams.behaviors);L=_.O(this.polySiParams.reactiveSchemas);for(Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.type==="signal"&&Z.value!==void 0&&(this.signalProxy.model[Z.propertyKey]=
typeof Z.value==="function"?Z.value.call(this):Z.value);if(this.polySiParams.signalProperties)for(L=_.O(this.polySiParams.signalProperties),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var N=void 0;((N=this.__signalCache)==null?0:N.has(Z))||(this.signalProxy.model[Z]=void 0)}KG0||dxI(this);fOt(this);L=_.O(this.polySiParams.behaviors);for(Z=L.next();!Z.done;Z=L.next())N=void 0,(N=Z.value.created)==null||N.call(this);var S;(S=this.polySiInfo.created)==null||S.call(this)};
_.t.registered=function(){var L=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var Z=Object.getPrototypeOf(this);Z.addReactiveSchema=function(V){L.polySiParams.reactiveSchemas.push(V)};
for(var N=_.O(this.polySiParams.behaviors),S=N.next();!S.done;S=N.next()){var u=void 0;(u=S.value.beforeRegister)==null||u.call(Z)}var T;(T=this.polySiInfo.beforeRegister)==null||T.call(Z);Z.addReactiveSchema=UtA;N=_.O(this.polySiParams.behaviors);for(S=N.next();!S.done;S=N.next())u=void 0,(u=S.value.registered)==null||u.call(Z);var W;(W=this.polySiInfo.registered)==null||W.call(Z)};
_.t.ready=function(){var L;(L=this.beforeReady)==null||L.call(this);KG0&&dxI(this);var Z;if(L=(Z=this.polySiContext.finalizedTemplate)==null?void 0:Z.processedTemplate){L=i$h(L.template,L.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:L.hasInsertionPoint,thisCtx:this});Z=L.nodesById;L=L.root;var N=this.hostElement;var S=S===void 0?!1:S;N=(0,_.qJ)(N);if(!N.attachShadow)throw Error("Id");if(!N.shadowRoot||S)N.attachShadow({mode:"open",shadyUpgradeFragment:L}),N.shadowRoot.appendChild(L);
this.root=N.shadowRoot;this.$=Z}aJY(this);S=_.O(this.polySiParams.behaviors);for(Z=S.next();!Z.done;Z=S.next())L=void 0,(L=Z.value.ready)==null||L.call(this);var u;(u=this.polySiInfo.ready)==null||u.call(this)};
_.t.attached=function(){for(var L=_.O(this.polySiParams.behaviors),Z=L.next();!Z.done;Z=L.next()){var N=void 0;(N=Z.value.attached)==null||N.call(this)}var S;(S=this.polySiInfo.attached)==null||S.call(this)};
_.t.detached=function(){for(var L=_.O(this.polySiParams.behaviors),Z=L.next();!Z.done;Z=L.next()){var N=void 0;(N=Z.value.detached)==null||N.call(this)}var S;(S=this.polySiInfo.detached)==null||S.call(this)};
var eN0=function(L){for(var Z=_.O(L.polySiParams.behaviors),N=Z.next();!N.done;N=Z.next())if(N=N.value,N.listeners)for(var S in N.listeners)SEG(L,L.hostElement,S,N.listeners[S]);if(L.polySiInfo.listeners)for(var u in L.polySiInfo.listeners)SEG(L,L.hostElement,u,L.polySiInfo.listeners[u])},SEG=function(L,Z,N,S,u){L=uA1(L,S,u);
rx(Z,N,L)||Z.addEventListener(N,L);return L},dxI=function(L){for(var Z=_.O(L.polySiParams.reactiveSchemas),N=Z.next();!N.done;N=Z.next())N=N.value,N.type==="compute"||N.type==="computeWithMethod"?WOA(L.signalProxy,N,L):N.type==="redux"?MBG(L.signalProxy,N,L.store):N.type==="signal"&&N.readOnly&&bWs(L.signalProxy,N)},aJY=function(L){for(var Z=_.O(L.polySiParams.reactiveSchemas),N=Z.next(),S={};!N.done;S={schema$jscomp$12:void 0},N=Z.next())S.schema$jscomp$12=N.value,S.schema$jscomp$12.type==="notify"?
Gy1(L.signalProxy,S.schema$jscomp$12,L.hostElement):S.schema$jscomp$12.type==="observe"?FO1(L.signalProxy,S.schema$jscomp$12,L):S.schema$jscomp$12.type==="reflect"&&L.signalProxy.effect(function(T){return function(){var W=L.signalProxy.getWithPath([T.schema$jscomp$12.propertyKey]);
L.reflecting=!0;kyf(L.hostElement,T.schema$jscomp$12.propertyKey,W,!0);L.reflecting=!1}}(S));
if(L.reflectedAttributes)for(Z=_.O(Object.entries(L.reflectedAttributes)),S=Z.next(),N={};!S.done;N={key$jscomp$935:void 0,value$jscomp$9930:void 0},S=Z.next()){var u=_.O(S.value);S=u.next().value;u=u.next().value;N.key$jscomp$935=S;N.value$jscomp$9930=u;L.signalProxy.effect(function(T){return function(){L.reflecting=!0;kyf(L.hostElement,T.key$jscomp$935,(0,T.value$jscomp$9930)(),!0);L.reflecting=!1}}(N))}};
_.t=dD.prototype;_.t._setPendingProperty=function(L,Z){this.set(L,Z);return!1};
_.t._enableProperties=function(){};
_.t._setPendingPropertyOrPath=function(L,Z){this.notifyPath(L,Z);return!1};
_.t._addPropertyEffect=function(){};
_.t._stampTemplate=function(){throw Error("Kg");};
_.t.fire=function(L,Z,N){Z=Z===void 0?{}:Z;N=N===void 0?{}:N;var S,u,T={bubbles:(S=N.bubbles)!=null?S:!0,cancelable:!!N.cancelable,composed:(u=N.composed)!=null?u:!0},W;return _.QT(YE_((W=N.node)!=null?W:this.hostElement),L,Z,T)};
_.t.get=function(L,Z){var N=nd(L);return Z?TA0(Z,N):L==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(N)};
_.t.linkPaths=function(){};
_.t.listen=function(L,Z,N){L=YE_(L);this.boundListeners!=null||(this.boundListeners=new WeakMap);var S=this.boundListeners.get(L);S||(S={},this.boundListeners.set(L,S));var u=Z+N;S[u]||(S[u]=SEG(this,L,Z,N))};
_.t.notifyPath=function(L,Z){this.signalProxy.notifyPath(nd(L),arguments.length===2?{value:Z}:void 0)};
_.t.canNotifyPath=function(L){return this.mutablePropNames.has(L)&&!zj0(this.signalProxy,L)};
_.t.notifySplices=function(L,Z){this.signalProxy.notifySplices(nd(L),Z)};
_.t.pop=function(L){var Z=this.signalProxy;L=nd(L);var N=_.O(L);L=N.next().value;N=uI(N);return fd(Z,L).pop(N)};
_.t.push=function(L){var Z=_.CG.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[nd(L)].concat(_.Pd(Z)))};
_.t.set=function(L,Z,N){if(N)throw Error("Lg");L==="hidden"?this.hostElement.hidden=!!Z:this.signalProxy.setWithPath(nd(L),Z)};
_.t.setProperties=function(L){L=_.O(Object.entries(L));for(var Z=L.next();!Z.done;Z=L.next()){var N=_.O(Z.value);Z=N.next().value;N=N.next().value;this[Z]=N}};
_.t.splice=function(L,Z,N){var S=_.CG.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[nd(L),Z,N].concat(_.Pd(S)))};
_.t.unlinkPaths=function(){};
_.t.unlisten=function(L,Z,N){L=YE_(L);if(this.boundListeners){var S=this.boundListeners.get(L);if(S){N=Z+N;var u=S[N];u&&(Qb(L,Z,u)||L.removeEventListener(Z,u),delete S[N])}}};
_.t.unshift=function(L){var Z=_.CG.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[nd(L)].concat(_.Pd(Z)))};
_.gd.Object.defineProperties(dD.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 mtH=[Array,Boolean,Date,Number,Object,String];var r81=!1;var pf=function(){var L=HTMLElement.apply(this,arguments)||this;L.restamp=!1;L.notifyDomChange=!1;L.JSC$13619_didCallConnected=!1;L.JSC$13619_renderDebouncer=null;L.disableTemplateUpdateSignalImpl=a_()?void 0:_.nh(!1,void 0,"Ofhkwb");var Z;L.getDisableTemplateUpdate=(Z=L.disableTemplateUpdateSignalImpl)==null?void 0:Z[0];var N;L.setDisableTemplateUpdate=(N=L.disableTemplateUpdateSignalImpl)==null?void 0:N[1];return L};
_.f(pf,HTMLElement);var hN0=function(L){L.conditionSignalImpl!=null||(L.conditionSignalImpl=new EO(_.nh(!1,void 0,"gE52Fb")));return L.conditionSignalImpl};
_.t=pf.prototype;_.t.showHideChildren=function(L){szM(this,L,this.if)};
_.t.attributeChangedCallback=function(L,Z,N){if(this.JSC$13619_didCallConnected)throw Error("Pg`"+L);L==="notify-dom-change"?this.notifyDomChange=N!==null:L==="restamp"&&(this.restamp=N!==null)};
_.t.debounceRender=function(){this.JSC$13619_renderDebouncer=_.Gb(this.JSC$13619_renderDebouncer,A2,this.JSC$13619_renderImpl.bind(this));_.FO(this.JSC$13619_renderDebouncer)};
_.t.disconnectedCallback=function(){var L=(0,_.qJ)(this).parentNode;(!L||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in L&&!L.host)&&jzl(this)};
_.t.connectedCallback=function(){var L=this;this.JSC$13619_didCallConnected=!0;c$0?Qpf():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.c("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){hN0(L).getWithPath([]);L.debounceRender()})};
_.t.render=function(){_.vL()};
_.t.JSC$13619_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var L=this.if,Z=!1;if(L){this.hasInstance()||(EYN(this),Z=!0);a:{var N=(0,_.qJ)(this).parentNode;if(this.hasInstance()){var S=this.instance.children;if((S==null?0:S.length)&&(0,_.qJ)(this).previousSibling!==S[S.length-1])for(var u=0;u<S.length;u++)(0,_.qJ)(N).insertBefore(S[u],this)}else{if(!N){N=!1;break a}PZh(this,N)}N=!0}if(!N)return}else this.restamp&&jzl(this);szM(this,!1,L);L&&!Z&&EYN(this);nYO&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.t.hasInstance=function(){return!!this.instance};
var PZh=function(L,Z){var N=L.parentSignalProxy;if(a_()){var S=_.O(_.nh(!0,void 0,"dkzufd"));var u=S.next().value;S=S.next().value;N=L.parentSignalProxy}else{var T;var W=new P3((T=pZY(L))!=null?T:{},function(M){var G=fd(L.parentSignalProxy,M).getChangeRecordSignal([]);M=_.nh(void 0,void 0,"iG8Uwe");var D=new EO(M);W.effect(function(){if(L.getDisableTemplateUpdate&&!L.getDisableTemplateUpdate()){var l=G();D.notifyPath(nd(l.path),{value:l.value})}});
return D});
L.parentSignalProxy.childSignalProxies.push(W);var V=N=W}N=i$h(L.templateInfo,L.templateInfo.nodeInfoList,N,{eventListenerHost:L.eventListenerHost,hasInsertionPoint:L.templateInfo.hasInsertionPoint,thisCtx:L.eventListenerHost,enabledSignal:a_()?u:void 0,getModel:function(){return pZY(L)}}).root;
L.instance={root:N,children:[],hidden:!1,signalProxy:V,getTemplateUpdatesEnabled:u,setTemplateUpdatesEnabled:S};V=_.O(N.childNodes);for(u=V.next();!u.done;u=V.next())L.instance.children.push(u.value);(0,_.qJ)(Z).insertBefore(L.instance.root,L)},pZY=function(L){if((L=L.parentSignalProxy.model)&&!L.hostElement){var Z={},N;
for(N in L)L.hasOwnProperty(N)&&(Z[N]=L[N]);return Z}},jzl=function(L){if(L.instance){var Z=L.instance.children;
if(Z.length){var N=(0,_.qJ)(Z[0]).parentNode;if(N){N=(0,_.qJ)(N);for(var S=0;S<Z.length;S++)N.removeChild(Z[S])}}a_()?L.instance.setTemplateUpdatesEnabled(!1):L.instance.signalProxy.dispose();L.instance=void 0}},szM=function(L,Z,N){Z=Z||!N;
L.instance&&L.instance.hidden!==Z&&(L.instance.hidden=Z,CVs(Z,L.instance.children))},EYN=function(L){if(a_()){var Z=L.instance;
Z&&rJ(L.parentSignalProxy.owner,function(){return!Z.getTemplateUpdatesEnabled()})&&Z.setTemplateUpdatesEnabled(!0)}else L.setDisableTemplateUpdate(!1)};
_.gd.Object.defineProperties(pf.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var L=this;return rJ(this.parentSignalProxy.owner,function(){return hN0(L).getWithPath([])})},
set:function(L){L||(a_()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));hN0(this).setWithPath([],!!L)}}});
_.gd.Object.defineProperties(pf,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",pf);var zNV=[],z2=function(){var L=HTMLElement.apply(this,arguments)||this;L.as="item";L.indexAs="index";L.itemsIndexAs="itemsIndex";L.targetFramerate=20;L.notifyDomChange=!1;L.isDetached=!1;L.JSC$13626_renderDebouncer=null;L.instances=[];L.chunkingId=null;L.chunkCount=null;L.shouldMeasureChunk=!1;L.shouldContinueChunking=!1;L.renderStartTime=null;L.JSC$13626_didCallConnected=!1;return L};
_.f(z2,HTMLElement);var mxq=function(L){L.itemSignalImpl!=null||(L.itemSignalImpl=new EO(_.nh(zNV,void 0,"YBrqgf")));return L.itemSignalImpl},J$t=function(L,Z){Array.isArray(Z)||(Z=zNV);
mxq(L).setWithPath([],Z)};
_.t=z2.prototype;_.t.showHideChildren=function(L){for(var Z=_.O(this.instances),N=Z.next();!N.done;N=Z.next())CVs(L,N.value.children)};
_.t.notifyPath=function(L,Z){L=nd(L);L[0]==="items"&&(L.length===1?J$t(this,Z):mxq(this).setWithPath(L.slice(1),Z))};
_.t.canNotifyPath=function(L){return L==="items"};
_.t.attributeChangedCallback=function(L,Z,N){if(this.JSC$13626_didCallConnected)throw Error("Qg`"+L);L==="as"?this.as=N:L==="index-as"?this.indexAs=N:L==="items-index-as"?this.itemsIndexAs=N:L==="initial-count"?this.initialCount=Number(N):L==="notify-dom-change"?this.notifyDomChange=N!==null:L==="target-framerate"&&(this.targetFramerate=Number(N))};
_.t.disconnectedCallback=function(){this.isDetached=!0;for(var L=0;L<this.instances.length;L++)CZh(this,L);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.t.connectedCallback=function(){var L=this,Z=mxq(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var u=Z(),T=nd(u.path);if(T[0]===void 0||T[0]==="splices"||T[0]==="length")L.debounceRender();else{var W=T[0];if(W=L.instances[typeof W==="string"?Math.floor(Number(W)):W])T=[L.as].concat(_.Pd(T.slice(1))),W.signalProxy.notifyPath(T,u)}});
this.JSC$13626_didCallConnected=!0;c$0?Qpf():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var N=(0,_.qJ)((0,_.qJ)(this).parentNode),S=0;S<this.instances.length;S++)N.insertBefore(this.instances[S].root,this);this.chunkingId&&this.render()}};
_.t.debounceRender=function(){this.JSC$13626_renderDebouncer=_.Gb(this.JSC$13626_renderDebouncer,A2,this.JSC$13626_renderImpl.bind(this));_.FO(this.JSC$13626_renderDebouncer)};
_.t.render=function(){this.debounceRender();_.vL()};
_.t.JSC$13626_renderImpl=function(){var L=this;if(!this.parentSignalProxy.isDisposed){var Z=this.items,N=r$t(this,Z.length);QzN(this,Z,N);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){L.chunkingId=null;if(L.shouldMeasureChunk){var S=performance.now()-L.renderStartTime;L.chunkCount=Math.round(Math.ceil(1E3/L.targetFramerate)/S*L.chunkCount)||1}L.shouldContinueChunking&&L.debounceRender()}));
nYO&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var r$t=function(L,Z){var N=Z,S=L.instances.length;if(L.initialCount){if(L.chunkCount){var u=Math.min(Math.max(Z-S,0),L.chunkCount);N=Math.min(S+u,Z)}else N=Math.min(Z,L.initialCount),u=Math.max(N-S,0),L.chunkCount=u||1;L.shouldMeasureChunk=u===L.chunkCount;L.shouldContinueChunking=N<Z;L.renderStartTime=performance.now()}return N},QzN=function(L,Z,N){for(var S=0;S<N;S++){var u=L.instances[S],T=Z[S];
u?(u.signalProxy.setWithPath([L.as],T),u.signalProxy.setWithPath([L.indexAs],S)):XZt(L,T,S)}for(Z=L.instances.length-1;Z>=S;Z--)N=L,u=Z,CZh(N,u),_.O(N.instances.splice(u,1)).next().value.signalProxy.dispose()},CZh=function(L,Z){L=L.instances[Z];
Z=(0,_.qJ)(L.root);for(var N=0;N<L.children.length;N++)Z.appendChild(L.children[N])},XZt=function(L,Z,N){var S={};
Z=Object.assign({},A$I(L),(S[L.as]=Z,S[L.indexAs]=N,S[L.itemsIndexAs]=N,S));var u=new P3(Z,function(W){if(W!==L.as&&W!==L.indexAs){if(W===L.itemsIndexAs)return fd(u,L.indexAs);var V=fd(L.parentSignalProxy,W).getChangeRecordSignal([]);W=_.nh(void 0,void 0,"T21Pqc");var M=new EO(W);u.effect(function(){var G=V();M.notifyPath(nd(G.path),{value:G.value})});
return M}});
L.parentSignalProxy.childSignalProxies.push(u);S=i$h(L.templateInfo,L.templateInfo.nodeInfoList,u,{eventListenerHost:L.eventListenerHost,getModel:function(){var W={};return Object.assign({},A$I(L),(W[L.as]=u.model[L.as],W[L.indexAs]=u.model[L.indexAs],W[L.itemsIndexAs]=u.model[L.indexAs],W))},
hasInsertionPoint:L.templateInfo.hasInsertionPoint,thisCtx:L.eventListenerHost,methodInvocationRequirement:fJt,enabledSignal:L.stampingEnabled}).root;Z={root:S,children:[],signalProxy:u};S=_.O(S.childNodes);for(var T=S.next();!T.done;T=S.next())Z.children.push(T.value);S=(S=L.instances[N+1])?S.children[0]:L;(0,_.qJ)((0,_.qJ)(L).parentNode).insertBefore(Z.root,S);L.instances[N]=Z},A$I=function(L){if((L=L.parentSignalProxy.model)&&!L.hostElement){var Z={},N;
for(N in L)L.hasOwnProperty(N)&&(Z[N]=L[N]);return Z}};
z2.prototype.itemForElement=function(L){var Z=this,N=this.instances.find(function(S){return S.children.includes(L)});
if(N)return rJ(this.parentSignalProxy.owner,function(){return N.signalProxy.getWithPath([Z.as])})};
z2.prototype.indexForElement=function(L){var Z=this.instances.findIndex(function(N){return N.children.includes(L)});
return Z>=0?Z:void 0};
_.gd.Object.defineProperties(z2.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var L=this;return rJ(this.parentSignalProxy.owner,function(){return mxq(L).getWithPath([])})},
set:function(L){J$t(this,L)}},
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}}});
_.gd.Object.defineProperties(z2,{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",z2);var Htt,BQY;_.mc=new _.iY("STATE_STORE_TOKEN");Htt=new _.iY("SELECT_TOKEN");BQY=new _.iY("DISPATCH_TOKEN");var qEH={getSelectFn:function(){var L;return(L=_.GR().resolve(_.gv(Htt)))!=null?L:Xe_},
getDispatchFn:function(){var L;return(L=_.GR().resolve(_.gv(BQY)))!=null?L:_.hJ().dispatch.bind(_.hJ())},
getAppStore:function(){return _.GR().resolve(_.mc)}},A8f,xtA=!1;var Shf,jdt={traceAllComponents:_.c("web_tracing_all_components"),exportToCsi:_.c("web_tracing_export_to_csi"),enabledSpansArray:_.oe("web_tracing_enabled_spans"),exportToDevTools:_.c("web_tracing_export_to_devtools"),sessionReplayEvents:_.lQ("web_tracing_session_replay"),maxBreadcrumbs:_.lQ("tel_max_breadcrumbs",0)};Shf=new E2t;var Ozx=function(){};var uaf=void 0;var xxq=function(){};
xxq.prototype.hasAttribute=function(L){if(L==="dir")return!1;if(L==="disable-upgrade"){var Z,N;return(N=(Z=this.hostElement)==null?void 0:Z.hasAttribute("disable-upgrade"))!=null?N:!1}throw Error("Rg`"+L);};
xxq.prototype.attributeChangedCallbackWrapper=function(L,Z,N){if(L==="disable-upgrade"&&this.__isUpgradeDisabled&&N===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var S;((S=this.hostElement)!=null?S:this).isConnected&&this.connectedCallback()}else Z===N||this.__isReflecting||this.attributeChangedCallback(L,Z,N)};
xxq.prototype.getExtraMethodsToForward=function(){for(var L=this,Z=[],N=_.O(qmq),S=N.next(),u={};!S.done;u={tagName$jscomp$67:void 0,name$jscomp$628:void 0},S=N.next())u.name$jscomp$628=S.value,S=void 0,u.name$jscomp$628==="_setPendingProperty"?(u.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),S=function(T){return function(W,V,M){gD(T.tagName$jscomp$67,W,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return L._setPendingProperty(W,V,M)}}(u)):S=function(T){return function(){return L[T.name$jscomp$628].apply(L,
_.Pd(_.CG.apply(0,arguments)))}}(u),Z.push([u.name$jscomp$628,
S]);return Z};
for(var bz1=Uxq(wZO((0,_.wS)(xxq))),FHG=["disabled","disable-upgrade"],LNO=(0,_.wS)(function(){}),ZIl=new Set(Object.getOwnPropertyNames(LNO.prototype)),o4h=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Pd(ZIl))),D0P=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),qmq=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),N4h=new Set([].concat(_.Pd(D0P),_.Pd(qmq),_.Pd(ZIl))),SXY=_.O(N4h),iI0=SXY.next();!iI0.done;iI0=SXY.next())sdx.add(iI0.value);var v4H={created:function(){fOt(this);this.initializeInjection()}};var U0s=!1,mL=window.ShadyDOM,jrt=["appendChild","insertBefore","removeChild","replaceChild"],srt=[Node];mL&&srt.push(mL.Wrapper);var CPG,rbL,Abh={};var JJ,Cd=new Set;var SmA=new Set("context didCallReady is info params signalProxy".split(" ")),ujH="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),TQA="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var ubs=Yd({entities:q$t}),T4L=new E9(ubs);var t6O=function(){return _.Ok.apply(this,arguments)||this};
_.f(t6O,_.Ok);_.gd.Object.defineProperties(t6O.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return T4L}}});
_.r([_.Wh()],t6O);_.Je=[sO.prototype,t6O.prototype];_.Cf={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var L=this,Z={};setTimeout(function(){var N;return _.QT((N=L.hostElement)!=null?N:L,"yt-live-chat-add-tooltip-target",Z)},0);
this.handler_=Z.handler},
detached:function(){if(this.handler_){var L;this.handler_.removeElementFromSupportingTooltips((L=this.hostElement)!=null?L:this)}this.handler_=null}}};_.xD=new _.iY("ICON_MANAGER_TOKEN");var OIq=[48,20,18,16,15,13,12],wZF=new Map,c$1=new Set,vY_=new Set,RNB=new Set,lJt=new Set,oYA=new Set,KG1=new Promise(function(L){var Z=!1,N=!1,S=!1,u=[],T=function(W){if("detail"in W)if(W=W.detail,W.name==="yt-icons")nYF(W),Z=!0;else if(W.name==="yt-sys-icons")nYF(W),N=!0;else{var V;((V=W.name)==null?0:V.includes("yt-sys-icons"))&&W.size!==24&&(nYF(W,!0),u.push(W.size),u.length===OIq.length&&(S=!0))}Z&&N&&S&&(window.removeEventListener("iron-iconset-added",T),L())};
window.addEventListener("iron-iconset-added",T)}),kZ_=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"]]);_.rH={};_.rH.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.jM,computeHref_:function(L,Z){Z=Z===void 0?!1:Z;if(!L||L.commandExecutorCommand)return null;var N=g9x(L,Z);return Z||N!==null?N?_.c("enable_polymer_resin")?_.mY(N).toString():N:null:(_.Q7(new _.sr("computeHref was null",this.is,L)),null)},
computeOptionalHref_:function(L){return this.computeHref_(L,!0)},
computeNofollow_:function(L){return L?ilx(L)?"nofollow":null:null},
computeIcon_:function(L){return L&&L.iconType?_.Bh(L.iconType):""},
resolveCommand:function(L,Z,N){Z=Z===void 0?{}:Z;return _.LY(L,this.hostElement,Z,N===void 0?!1:N)}};var V65,Qx;_.WNt={};V65=null;
Qx={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_=FbB(this.viewroot));_.Uk(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var L=this;this.unobserve_();if(_.c("kevlar_vimio_use_shared_monitor"))dxL(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 Z=[];this.visibilityOptionVisible_&&Z.push(this.visibilityObserver.observe(this.hostElement,function(){return L.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&Z.push(this.visibilityObserver.observe(this.hostElement,function(){return L.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&Z.push(this.visibilityObserver.observe(this.hostElement,function(){return L.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=Z}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){Ux_(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 L=_.rF(this.parentNode,function(N){var S,u=(S=N.polymerController)!=null?S:N;return!!u.getVisibilityObserverForChild&&u.getVisibilityObserverForChild()},!0);
if(L){var Z;this.localVisibilityObserver_=((Z=L.polymerController)!=null?Z:L).getVisibilityObserverForChild()}else V65||(V65=FbB()),this.localVisibilityObserver_=V65;return this.localVisibilityObserver_},visibilityCallback:function(L){L?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.c("kevlar_use_vimio_behavior")||(Qx={});Qx&&!_.c("kevlar_use_vimio_behavior")&&(delete Qx.attached,delete Qx.detached);_.WNt.YtVisibilityObserverBehavior=[Qx];var bIt={};bIt.YtVisualElementBehavior=[_.WNt.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.c("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.c("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var L=this.getScreenLayer&&this.getScreenLayer(),Z=this.getVisibilityLogger();Z&&Z.reportShown(this,void 0,L)}},
onHidden:function(){if(_.c("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.c("kevlar_vimio_use_shared_monitor")){var L=this.getScreenLayer&&this.getScreenLayer(),Z=this.getVisibilityLogger();Z&&Z.reportHidden(this,void 0,L)}},
getVisibilityLogger:function(){return _.c("kevlar_use_vimio_behavior")?_.Ng():null},
shouldSkipLogging:function(){if(_.X7("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var L=this.getParentRenderer&&this.getParentRenderer();if(!L)return!1;var Z,N=(Z=L.polymerController)!=null?Z:L;if(!N.data)return!1;L=this.data.trackingParams;L=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:L;var S;Z=(S=N.data)==null?void 0:S.trackingParams;var u,T;Z=((u=N.data)==null?0:u.loggingDirectives)?(T=N.data)==null?void 0:T.loggingDirectives.trackingParams:Z;return L&&Z&&L===
Z}}];var szh=new Map,g$;var EfG=function(L){this.layer=L},NH=function(L){return L.layer!==void 0?L.layer:L.parent?NH(L.parent):L.layer=0};var mx_;_.B={};mx_=0;_.B.YtRendererBehavior=[_.rH.YtComponentBehavior,bIt.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_:_.c("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var L,Z;(Z=(L=this.monitorScrollElement)!=null?L:this.hostElement)==null||Z.removeEventListener("scroll",_.Nd(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();aJG(this.hostElement);v4t(_.yx(),this.hostElement);PB.delete(this.hostElement)},
registerRenderer:function(L){var Z;((Z=L.polymerController)!=null?Z:L).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(L),this.markDirty())},
unregisterRenderer_:function(L){this.useVimio_||(this.childCache_.delete(L),this.markDirty())},
attached:function(){var L=this,Z=this.getParentRenderer();if(Z){var N,S,u;(S=(N=(u=Z.polymerController)!=null?u:Z).registerRenderer)==null||S.call(N,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var T,W;(W=(T=this.monitorScrollElement)!=null?T:this.hostElement)==null||W.addEventListener("scroll",_.Nd(this,this.onScroll))}_.ro.addJob(function(){jzs(L.hostElement)},8);
N=new EfG(this.screenLayer||void 0);(Z=PB.get(Z))&&Z.layerNode&&(N.parent=Z.layerNode);Z={};RTw(this.hostElement,(Z.isRenderer=!0,Z.layerNode=N,Z[PCt]=this.data,Z))},
getParentRenderer:function(){for(var L=this.hostElement.parentNode,Z,N;L&&((Z=PB.get(L))==null||!Z.isRenderer)&&!((N=L.polymerController)!=null?N:L).isRenderer_;)L=L.parentNode||L.host;return L},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.c("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Ah("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.c("debug_web_ve_data")&&this.data.trackingParams){var L="";try{L=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(N){_.CA(N)}if(L){var Z=YTf(L,1);Z!==void 0&&(this.hostElement.dataset.veIndex=String(Z));L=YTf(L,2);
L!==void 0&&(this.hostElement.dataset.ve=String(L))}}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,_.c("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Mg(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Si(_.tC(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var L=this.data.targetId;_.RL0(_.yx(),L,this.hostElement)}else v4t(_.yx(),this.hostElement)},
onScroll:function(){var L=Date.now();L-this.lastHandledScroll_<50||(this.lastHandledScroll_=L,this.markDirty())},
markDirty:function(){_.c("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():J$f(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var L=this.getParentRenderer();if(L&&(L=PB.get(L))&&L.layerNode)return NH(L.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Pd(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var L=0;L<this.data.impressionEndpoints.length;L++)this.sendImpression(this.data.impressionEndpoints[L]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(L){L.clickTrackingParams&&delete L.clickTrackingParams;var Z,N;(L==null?0:(Z=L.commandMetadata)==null?0:(N=Z.webCommandMetadata)==null?0:N.sendPost)?_.H2(this.hostElement,[L,{impression:!0}]):_.B2(this.hostElement,[L],this.hostElement)},
logExplicitClick:function(L){var Z=_.RH(this.getScreenLayer());if(Z){var N,S=(N=L.polymerController)!=null?N:L;L=S.visualElement;S=S.trackingParams||S.clickTrackingParams;!L&&S&&(L=_.Mg(S));L&&_.sT(Z,L)}}}];var M6t={},XI=function(){return _.Ok.apply(this,arguments)||this};
_.f(XI,_.Ok);XI.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
XI.prototype.onPdgItemBehaviorClick=XI.prototype.onPdgItemBehaviorClick;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],XI.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],XI.prototype,"data",void 0);_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],XI.prototype,"onPdgItemBehaviorClick",null);_.r([_.Wh()],XI);M6t.YtPdgLiveChatItemBehavior=[XI.prototype,_.B.YtRendererBehavior];var g8t;var GPQ;_.Ae={};_.Ae.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var H3=function(){var L=F$.apply(this,arguments)||this;L.switchTemplateAtRegistration=!1;return L};
_.f(H3,F$);H3.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||XZH(this),_.o7w(this,"doRender"),this.doRender())};
H3.prototype.debounceRender=function(){this.templatingFn&&_.YD(this,"doRender",this.doRender)};
H3.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.CA(Error("ah"))};
H3.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.r([i7F()],H3);var FNt=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,B3={},xx_=(B3[1]={filterString:null,isUnwrappable:null,unwrap:null},B3[2]={filterString:function(L,Z,N){return qV(N)},
isUnwrappable:function(L){return L instanceof Xt},
unwrap:function(L){return xV(L)}},B3[3]={filterString:function(L,Z,N){return FNt.test(N)?N:zi.toString()},
isUnwrappable:function(L){return sn(L)},
unwrap:function(L){return _.jn(L)}},B3[4]={filterString:function(){return zi.toString()},
isUnwrappable:function(L){return L instanceof Un},
unwrap:function(L){return _.en(L).toString()}},B3[5]={filterString:function(L,Z,N){return N},
isUnwrappable:function(L){return typeof L==="string"},
unwrap:function(L){return L.toString()}},B3[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(L){return L instanceof _.NZ},
unwrap:function(L){return ig(L)}},B3[8]={filterString:function(L,Z,N){N=String(N).toLowerCase();
return YVh(L,Z,N)?N:"zClosurez"},
isUnwrappable:null,unwrap:null},B3[10]={filterString:null,isUnwrappable:null,unwrap:null},B3);gx[HE["default"]]=LNF;var ZIs=[];(function(){var L=W8;W8=function(Z){L==null||L(Z);Dh(function(){for(var N=0;N<Z.length;N++)N4w(Z[N])})}})();var $_Q=function(){var L=_.Ok.apply(this,arguments)||this;L.hasUnmounted=!1;return L};
_.f($_Q,_.Ok);_.t=$_Q.prototype;_.t.beforeRegister=function(){var L=this.doIdomRender;this.templatingFn?_.CA(Error("$g")):(this.templatingFn=L,this.switchTemplateAtRegistration=!0,BQG(this))};
_.t.attached=function(){};
_.t.detached=function(){N4w(this.hostElement)};
_.t.renderIdom=function(){throw Error("ch");};
_.t.doIdomRender=function(){var L=this;f7H(this.hostElement,function(){L.renderIdom()})};
_.r([_.Wh()],$_Q);var D_Y=[H3.prototype,$_Q.prototype];var ln0,v8l=function(){return ln0!==void 0?ln0:ln0=document.createElement("template")};
document.head.appendChild(v8l().content);var o8t;var Rrs,cAt=function(){return Rrs!==void 0?Rrs:Rrs=document.createElement("template")};
document.head.appendChild(cAt().content);var n8L;var KN0=document.head,fnq=KN0.appendChild,kP5;if(n8L===void 0){var yAN=document.createElement("template");_.k(yAN,"\x3c!--css-build:shady--\x3e");yAN.content.insertBefore(cAt().content.cloneNode(!0),yAN.content.firstChild);n8L=yAN}kP5=n8L;fnq.call(KN0,kP5.content);var wut,U_t=function(){return wut!==void 0?wut:wut=document.createElement("template")};
document.head.appendChild(U_t().content);var YXQ;var erN=document.head,InO=erN.appendChild,d_Q;if(YXQ===void 0){var anI=document.createElement("template");_.k(anI,"\x3c!--css-build:shady--\x3e");anI.content.insertBefore(U_t().content.cloneNode(!0),anI.content.firstChild);YXQ=anI}d_Q=YXQ;InO.call(erN,d_Q.content);var hrL=document.head,shl=hrL.appendChild,jhQ;if(o8t===void 0){var E8V=document.createElement("template");_.k(E8V,"\x3c!--css-build:shady--\x3e");E8V.content.insertBefore(v8l().content.cloneNode(!0),E8V.content.firstChild);o8t=E8V}jhQ=o8t;shl.call(hrL,jhQ.content);var P6M,puq=function(){return P6M!==void 0?P6M:P6M=document.createElement("template")};
document.head.appendChild(puq().content);var zrh;_.d$=new _.iY("DARK_THEME_TOKEN");var C6f=new _.S5("accessibilityProperties");var JAG=new _.S5("layoutProperties");var rAB=new _.S5("imageType");var m_s={};if("ytAttributedStringLinkHoverColor"in m_s)throw Error("fh`ytAttributedStringLinkHoverColor");(function(L,Z){m_s[L]="value"in Z&&"unit"in Z?OI_(L,Z):function(N){try{return Z(N)}catch(S){throw Error("dh`"+L+"`"+S.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var JAY=function(L){var Z=this;this.holdTime=L===void 0?500:L;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(N){var S=new CustomEvent("LONG_PRESS"),u;(u=N.changedTouches[0].target)==null||u.dispatchEvent(S)};
this.ontouchstart=function(N){Z.longPressTimeout=_.SW(_.ro,function(){Z.onlongpress(N);Z.longPressOccurred=!0},Z.holdTime)};
this.ontouchmove=function(){_.ro.cancelJob(Z.longPressTimeout);Z.longPressTimeout=NaN;Z.longPressOccurred=!1;Z.moveOccurred=!0};
this.ontouchend=function(N){if(Z.longPressTimeout&&!Z.longPressOccurred&&!Z.moveOccurred){var S;(S=N.changedTouches[0].target)==null||S.dispatchEvent(new Event("click"))}_.ro.cancelJob(Z.longPressTimeout);Z.longPressTimeout=NaN;Z.longPressOccurred=!1;Z.moveOccurred=!1}};var kPP=function(L,Z){JAY.call(this,Z);var N=this;this.callback=L;this.onlongpress=function(S){var u;(u=N.callback)==null||u.call(N,S)}};
_.f(kPP,JAY);var yA0=function(L,Z){var N=Object.assign({},Z);L=_.O(new Map([["ontouchstart",L.ontouchstart],["ontouchend",L.ontouchend],["ontouchmove",L.ontouchmove]]));for(var S=L.next(),u={};!S.done;u={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},S=L.next()){var T=_.O(S.value);S=T.next().value;T=T.next().value;u.eventName$jscomp$103=S;u.eventHandler$jscomp$2=T;Z[u.eventName$jscomp$103]=function(W){return function(V){var M;(M=N[W.eventName$jscomp$103])==null||M.call(N,V);(0,W.eventHandler$jscomp$2)(V)}}(u)}};_.$s=new _.iY("COMMAND_HANDLER_TOKEN");var V6P=new _.S5("parallelCommand");var g8f=new _.S5("performOnceCommand");var M6f=new _.S5("serialCommand");var GPA=void 0;var C6t=function(){this.data=[];this.consumer=null};
C6t.prototype.push=function(L){this.consumer?this.consumer(L):this.data.push(L)};var ab={};_.nh(ab,void 0,"sgPmTd");_.nh(null,void 0,"jypsq");_.nh(null,void 0,"mWiOof");var aYH=new C6t;var cAf=[P9t,p6Q,zML,JfV,mqL,EVV,C9t,rft];var zrw=new _.S5("bracketTextDecorator");var ei=new _.S5("highlightTextDecorator");_.hC=new _.iY("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var shs=function(){},rAV;
(rAV=window.requestIdleCallback)==null||rAV.bind(window);var E8B={calledOnce:!1,state:"visible"},jhA={calledOnce:!1,state:"hidden"};var QhY=new _.iY("ICON_WIZ_COMPONENT_TOKEN");_.T0=_.p(function(L){var Z=L.icon;var N=L.active;var S=L.className;var u=L.style;var T=L.dataSelected;var W=L.dataDisabled;var V=L.role;var M=L.animateIcon;var G=L.themeOverride;var D=L.ariaHidden;var l=L.ariaExpanded;var v=L.ariaLabel;var R=L.tabindex;var K=L.id;var U=L.size;var d=L.iconFilter;var h=L.gradientColor;var E=L.onKeydown;return _.g(_.F,{cond:Z,then:function(){var A=_.GR().resolve(QhY);return _.g(A,{icon:Z,dataSelected:T,dataDisabled:W,animateIcon:M,themeOverride:G,ariaExpanded:l,tabindex:R,
id:K,active:N,size:U,role:V,className:S,ariaHidden:D,ariaLabel:v,style:function(){return u!=null&&u()||U==null||!U()?u==null?void 0:u():"width: "+(U==null?void 0:U())+"px;height: "+((U==null?void 0:U())+"px;")},
iconFilter:d,gradientColor:h,onKeydown:E})}})},"k");
_.T0.idomCompat={callbacks:{onKeydown:!0}};var O3A=window.devicePixelRatio||1;var MgA=new Map([["yt_outline_bag_black_24","bag"]]);var xv=function(L){var Z=this;this.margin=.1;this.whenInViewportWithMargin=L;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){Z.requestScan()});
window.addEventListener("touchend",function(){Z.requestScan()});
window.addEventListener("updateui",function(){Z.requestScan()});
var N=new _.Sw((0,_.hr)(this.requestScan,this),100);window.addEventListener("scroll",function(){N.fire()},!0);
window.addEventListener("resize",(0,_.hr)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){Z.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.hr)(this.requestScan,this))};
xv.prototype.observe=function(L){this.observationTargets.includes(L)||this.observationTargets.push(L)};
xv.prototype.unobserve=function(L){this.observationTargets=this.observationTargets.filter(function(Z){return Z!==L})};
xv.prototype.requestScan=function(){var L=this;this.scanRequested||(Dh(function(){Xuq(L)}),this.scanRequested=!0)};
var Xuq=function(L){var Z=(1+L.margin)*(document.documentElement.clientHeight||window.innerHeight);L.observationTargets=L.observationTargets.filter(function(N){var S=N.getBoundingClientRect();(S=Z>S.top&&!!S.height)&&L.whenInViewportWithMargin(N);return!S&&N.parentNode});
L.scanRequested=!1};
xv.prototype.disconnect=function(){this.observationTargets=[]};var AAM,B4t;AAM=_.O(_.nh(DaP(),void 0,"O3X2wd"));_.HIM=AAM.next().value;B4t=AAM.next().value;window.addEventListener("resize",function(){B4t(DaP())});var x_O={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},qXM=void 0,LIO=window.innerWidth,Z3s=window.innerHeight;window.addEventListener("resize",function(){qXM=void 0});var NOL;if("IntersectionObserver"in window)NOL=oA1();else{if(qXM===void 0){var Sfq;Sfq="matchMedia"in window?window.matchMedia(x_O.landscape+","+x_O.portrait).matches:void 0;qXM=Sfq!==void 0?Sfq:LIO>=930&&Z3s>=550||LIO>=550&&Z3s>=930}NOL=qXM?{observe:function(L){Dh(function(){var Z;(Z=L.onViewportEntered)==null||Z.call(L)})},
unobserve:function(){}}:new xv(function(L){Dh(function(){var Z;
(Z=L.onViewportEntered)==null||Z.call(L)})})}var l1t=NOL;var i3l=_.p(function(L){var Z=!1,N=_.t2("img",function(S){_.zs(function(){Z=!0;S.onload=null})});
_.ph(function(){var S,u=(S=L.data)==null?void 0:S.call(L),T,W=(T=L.getSrc)==null?void 0:T.call(L).cb,V;S=(V=L.config)==null?void 0:V.call(L);if(V=N.value)if(T=function(G,D){if(!Z)return W?W(G,D):G},nAH(V,S),_.c("web_image_dont_reload_same_src")&&cGA(V,u,T))_.c("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 M;RJF(V,u||null,T,S,(M=L.lazy)==null?void 0:M.call(L))}},"zS0jKb");
return _.g("img",{el:N})},"m");
i3l.idomCompat=!0;_.ji=_.p(function(L){var Z=function(){var N,S=L.data(),u,T,W,V,M,G,D,l,v,R,K,U,d,h,E,A,J,C,X,L1,Fw,GB,Yt,lH,RF,jf,f1,n0,r5;var yq={contentMode:(u=L.contentMode)==null?void 0:u.call(L),loadedClass:(T=L.loadedClass)==null?void 0:T.call(L),isPreloaded:(W=L.isPreloaded)==null?void 0:W.call(L),notifyOnLoaded:(V=L.notifyOnLoaded)==null?void 0:V.call(L),notifyOnUnloaded:(M=L.notifyOnUnloaded)==null?void 0:M.call(L),preferredThumbnail:(G=L.preferredThumbnail)==null?void 0:G.call(L),preserveHeight:(D=L.preserveHeight)==
null?void 0:D.call(L),preserveWidth:(l=L.preserveWidth)==null?void 0:l.call(L),objectPosition:(v=L.objectPosition)==null?void 0:v.call(L),targetWidth:(R=L.targetWidth)==null?void 0:R.call(L),targetHeight:(K=L.targetHeight)==null?void 0:K.call(L),shouldShowPlaceholder:(U=L.shouldShowPlaceholder)==null?void 0:U.call(L),useWidth:(d=L.useWidth)==null?void 0:d.call(L),isToggled:(h=L.isToggled)==null?void 0:h.call(L),alt:(E=L.alt)==null?void 0:E.call(L),className:(A=L.className)==null?void 0:A.call(L),
onerror:L.onerror,onload:L.onload,style$:((J=L.style$)==null?void 0:J.call(L))||((C=L.style)==null?void 0:C.call(L)),color:(X=L.color)==null?void 0:X.call(L),width:(L1=L.width)==null?void 0:L1.call(L),height:(Fw=L.height)==null?void 0:Fw.call(L),"aria-hidden$":(n0=(GB=L["aria-hidden$"])==null?void 0:GB.call(L))!=null?n0:(Yt=L.ariaHidden)==null?void 0:Yt.call(L),draggable:(lH=L.draggable)==null?void 0:lH.call(L),"data-disabled$":(r5=(RF=L["data-disabled$"])==null?void 0:RF.call(L))!=null?r5:(jf=L.dataDisabled)==
null?void 0:jf.call(L),size:(f1=L.size)==null?void 0:f1.call(L)};return kdf(S,yq,(N=L.hideOn404)==null?void 0:N.call(L))};
return _.g(_.EM,null,_.g(_.hh,{when:function(){var N;return((N=Z())==null?void 0:N.type)==="image"}},function(){return _.g(i3l,{data:function(){return Z().image},
getSrc:{cb:function(N,S){var u=Z().image.sources,T=Z().config.isPreloaded,W=Z().config.useWidth,V=Z().config.targetWidth,M=Z().config.targetHeight,G=Z().config.preferredThumbnail;return _.WIA(S,u,T,W,V,M,G)||""}},
config:function(){var N=Z().config,S;for(S in N)N[S]===void 0&&delete N[S];return N},
lazy:L.renderLazy})}),_.g(_.hh,{when:function(){var N;
return((N=Z())==null?void 0:N.type)==="icon"}},function(){return _.g(_.T0,{icon:function(){return Z().iconName},
role:function(){return Z().config.role},
className:function(){return Z().config.className},
style:function(){return Z().config.style$+";width: "+(Z().config.width+"px;height: ")+(Z().config.height+"px;color: ")+(Z().config.color+";")},
ariaLabel:function(){return Z().config["aria-label$"]},
ariaHidden:function(){return Z().config["aria-hidden$"]},
dataDisabled:function(){return Z().config["data-disabled$"]},
active:function(){return Z().config.isToggled},
size:function(){return Z().config.size}})}))},"n");
_.ji.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var uYt=function(L){return function(Z){return _.g(mr_,null,function(){var N=Z.data(),S=_.JW(Z.config);return _.g(be,null,function(){return void L(N,S)})})}}(eJw),Uaw=_.p(function(L){var Z=function(u){var T,W=_.P9(function(R){T=m8(function(){for(var K=_.O(l()),U=K.next();!U.done;U=K.next()){U=I1x(U.value);
U=typeof U==="string"?document.createTextNode(U):U;if(!(U instanceof Node)){K=new _.sr("Part is not a node",U,typeof U);_.CA(K);break}R.appendChild(U)}})});
var V=_.c("web_wiz_attributed_string_skip_empty")?u:pY(function(){return Xu_(u())},{isEqual:w1h});
var M=_.jA(L.config),G=function(){var R,K=V();return!((R=M())==null||!R.ariaLabel)||!(K.commandRuns&&K.commandRuns.length!==0||K.paragraphStyleRuns&&K.paragraphStyleRuns.length!==0)},D=pY(M,{isEqual:a1f}),l=function(){var R=QhG(V(),D());
HIh(R,D());return V().content?NOt(V().content,R).parts:[]},v=!0;
_.ph(function(){V();D();if(v)v=!1;else{var R=l();Promise.resolve().then(function(){var K=W.value;if(K){K.innerText="";var U;(U=T)==null||U();T=_.pn(K,function(){return _.g(da1,{parts:R})},"o")}})}},"S2CIIe");
return _.g("span",{el:W,class:function(){return V()&&InF(V(),M())},
dir:function(){var R;return((R=M())==null?0:R.userInput)?"auto":void 0},
"aria-label":function(){var R;return G()?(R=M())==null?void 0:R.ariaLabel:void 0},
role:function(){return G()?"text":void 0}})},N=_.c("web_wiz_attributed_string_skip_empty")?pY(function(){var u,T=(u=L.text)==null?void 0:u.call(L);
if(T)return u=Xu_(T),(u==null?0:u.content)?u:void 0},{isEqual:w1h}):L.text,S;
return((S=L.config)==null?0:S.renderedFromFormattedString)?Z(N):_.g(_.F,{cond:N,then:Z})},"q");
Uaw.idomCompat=!0;_.qv=_.p(function(L){var Z=_.jA(L.text),N=hJ1(L);L.renderedFromFormattedString!==void 0&&(N.renderedFromFormattedString=!0);return _.c("attr_string_reactive")?_.g(Uaw,{text:Z,config:N}):_.g(_.F,{cond:function(){var S;return Z()&&((S=Xu_(Z()))==null?void 0:S.content)},
then:function(){return _.g(uYt,{data:L.text,config:N})},
debugInstance:"Apcuac"})},"r");
_.qv.idomCompat=!0;var maf="";CNH({beforeVisit:function(L){L.type.TAG_NAME&&(maf=L.type.TAG_NAME)},
afterRender:function(L,Z){var N;maf=(N=Z==null?void 0:Z.type)!=null?N:""},
didPatch:function(){maf=""}});var sKx=function(L,Z,N){Z=Z===void 0?"unknown":Z;N=N===void 0?{}:N;_.sr.call(this,L+" ("+Z+")",Object.assign({},{name:"YtWcwError",tagName:Z},N));Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(sKx,_.sr);_.JC=new WeakMap;_.mW=!1;var zJB,JGH,p1L;_.LK=Symbol("hh");_.zl=Symbol("ih");zJB=Symbol("jh");JGH=new Set(Object.getOwnPropertyNames(Element.prototype));p1L=Symbol("kh");var TOY=_.p(function(L){return _.g("yt-attributed-string",{"aria-label":L.ariaLabel,hidden:L.hidden,id:L.id,class:L.className,"force-default-style":L.forceDefaultStyle},_.g(_.qv,{text:L.data,ariaLabel:L.ariaLabel,ellipsisTruncate:L.ellipsisTruncate,isOverlay:L.isOverlay,linkInheritColor:L.linkInheritColor,noPreWrap:L.noPreWrap,noWrap:L.noWrap,userInput:L.userInput,noEndpoints:L.noEndpoints,headerRuns:L.headerRuns,isHeadline:L.isHeadline}))},"s");
_.c("web_wiz_attributed_string")&&_.CY(TOY,"yt-attributed-string",{props:{ariaHidden:_.LK,ariaLabel:_.LK,className:_.LK,ellipsisTruncate:_.LK,isOverlay:_.LK,linkInheritColor:_.LK,noEndpoints:_.LK,noStyleRuns:_.LK,noLinkColor:_.LK,noPreWrap:_.LK,noWrap:_.LK,skipOnClick:_.LK,userInput:_.LK,headerRuns:_.LK,isHeadline:_.LK,id:_.LK,data:_.LK,hidden:_.LK,forceDefaultStyle:_.LK,text:_.zl,disableUpgrade:_.zl,disable:_.zl,slot:_.zl}});var ZA=function(){return _.e.apply(this,arguments)||this};
_.f(ZA,_.e);ZA.prototype.renderIdom=function(){this.data&&!this.disable&&(this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns},eJw(this.data,this.config))};
_.r([_.y(D_Y),_.Q("design:type",Object)],ZA.prototype,"ytIdomTemplatingBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ZA.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ZA.prototype,"ariaLabel",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],ZA.prototype,"disable",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],ZA.prototype,"ellipsisTruncate",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],ZA.prototype,"isOverlay",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],ZA.prototype,"linkInheritColor",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],ZA.prototype,"noPreWrap",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],ZA.prototype,"noWrap",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],ZA.prototype,"userInput",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],ZA.prototype,"noEndpoints",void 0);_.r([_.Y(),_.Q("design:type",Array)],ZA.prototype,"headerRuns",void 0);
_.r([_.ch({is:"yt-attributed-string",disableElementRegistration:!0})],ZA);
_.c("web_wiz_attributed_string")||_.m(ZA,"yt-attributed-string",function(){if(zrh===void 0){var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
L.content.insertBefore(puq().content.cloneNode(!0),L.content.firstChild);zrh=L}L=zrh;return L},{mode:2});var tgh,O3Q,BOP;tgh=function(){this.firstThumbnailLoaded=!1};
_.WIQ=function(){O3Q||(O3Q=new tgh);return O3Q};
BOP=function(L){var Z=_.WIQ();Z.firstThumbnailLoaded||(Z.firstThumbnailLoaded=!0,_.Rq("ftl",L))};
tgh.prototype.reset=function(){this.firstThumbnailLoaded=!1};var rGt=0,H3F=new WeakMap,X1L=0,XZ=new Set;var VgI,b3Q=function(){return VgI!==void 0?VgI:VgI=document.createElement("template")};
document.head.appendChild(b3Q().content);var MgQ;var Zu1,SA0,NN;_.B9=_.iH.caches;NN=function(){};
NN.prototype.open=function(L){return _.B9.open(gAI(L))};
NN.prototype.has=function(L){return _.B9.has(gAI(L))};
NN.prototype.delete=function(L){return _.B9.delete(gAI(L))};
NN.prototype.match=function(L,Z){var N=this,S,u,T,W,V,M;return _.b(function(G){switch(G.nextAddress){case 1:return G.yield(N.keys(),2);case 2:S=G.yieldResult,u=_.O(S),T=u.next();case 3:if(T.done){G.jumpTo(5);break}W=T.value;return G.yield(N.open(W),6);case 6:return V=G.yieldResult,G.yield(V.match(L,Z),7);case 7:if(M=G.yieldResult)return G.return(M);T=u.next();G.jumpTo(3);break;case 5:return G.return()}})};
var iuB=function(){};
_.f(iuB,NN);var gAI=function(L){if(L.includes(":"))throw Error("nh`"+L);return L+":"+_.ae("CacheStorage get")};
iuB.prototype.keys=function(){var L,Z,N,S,u,T,W,V,M;return _.b(function(G){if(G.nextAddress==1)return L=[],Z=_.ae("CacheStorage keys"),G.yield(_.B9.keys(),2);N=G.yieldResult;S=_.O(N);for(u=S.next();!u.done;u=S.next())T=u.value,W=_.L6A(T),V=W.originalName,M=W.datasyncId,M===Z&&L.push(V);return G.return(L)})};var SK=function(){var L=_.e.apply(this,arguments)||this;L.objectURL=null;L.loadTime=Infinity;return L};
_.f(SK,_.e);_.t=SK.prototype;_.t.renderIdom=function(){qfh(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&KI0(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.t.objectFitToContentMode=function(L){switch(L){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.t.logThumbnailFailureVe=function(){var L=_.Ll(197497);_.k3(_.tC(),L);var Z=_.RH();Z&&L&&Z&&_.aq(Z,[L])};
_.t.loadImageFromCacheIfExists=function(L){var Z=this,N=L.target;(N==null?0:N.src)&&TBH(N.src).then(function(S){Z.objectURL=_.Jf(S).toString();Z.setSrc(N,Z.objectURL)}).catch(function(){})};
_.t.onError=function(L){var Z=this;if(_.c("web_use_cache_for_image_fallback")){var N=L.target;N&&TBH(N.src).then(function(S){Z.objectURL=_.Jf(S).toString();Z.setSrc(N,Z.objectURL)}).catch(function(){_.c("kevlar_woffle_log_thumbnail_failure_ve")&&Z.logThumbnailFailureVe();
_.c("kevlar_woffle_fallback_image")&&Z.setSrc(N,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.t.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.t.setConfig=function(){var L=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(Z){L.loadImageFromCacheIfExists(Z);L.revokeObjectURL();xax(L.hostElement)},
onerror:function(Z){L.onError(Z)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.c("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.t.setSrc=function(L,Z){Z&&(L.src=Z)};
_.r([_.y(D_Y),_.Q("design:type",Object)],SK.prototype,"ytIdomTemplatingBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],SK.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],SK.prototype,"alt",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],SK.prototype,"ftlEligible",void 0);_.r([_.Y(),_.Q("design:type",Number)],SK.prototype,"height",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],SK.prototype,"notifyOnLoaded",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],SK.prototype,"notifyOnUnloaded",void 0);_.r([_.Y(),_.Q("design:type",String)],SK.prototype,"objectFit",void 0);_.r([_.Y(),_.Q("design:type",String)],SK.prototype,"objectPosition",void 0);_.r([_.Y(),_.Q("design:type",String)],SK.prototype,"preferredThumbnail",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],SK.prototype,"preserveHeight",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],SK.prototype,"preserveWidth",void 0);
_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],SK.prototype,"useWidth",void 0);_.r([_.Y({value:function(){return!_.Ah("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.Q("design:type",Boolean)],SK.prototype,"shouldRenderLazy",void 0);_.r([_.Y(),_.Q("design:type",Number)],SK.prototype,"width",void 0);_.r([_.ch({is:"yt-image",disableElementRegistration:!0})],SK);
_.m(SK,"yt-image",function(){if(MgQ===void 0){var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);L.content.insertBefore(b3Q().content.cloneNode(!0),L.content.firstChild);
MgQ=L}L=MgQ;return L},{mode:2});var iM=function(){return _.e.apply(this,arguments)||this};
_.f(iM,_.e);iM.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var L=_.KY(this.data.onVisibleCommand);L&&this.ytComponentBehavior.resolveCommand(L)}};
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],iM.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],iM.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Ae.YtVisibilityBehavior),_.Q("design:type",Object)],iM.prototype,"ytVisibilityBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],iM.prototype,"data",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],iM);
_.m(iM,"yt-bumper-user-edu-content-view-model",function(){if(GPQ===void 0){var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;g8t===void 0&&(g8t=document.createElement("template"));var S=g8t;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);GPQ=L}L=GPQ;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Gdl;var FIN,$a5=function(){if(FIN!==void 0)return FIN;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Gdl===void 0&&(Gdl=document.createElement("template"));var S=Gdl;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return FIN=L};var Da5;_.uM={};Da5=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"]);_.uM.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var L=this.getContext_();return L?L.getTaskManager():_.ro},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var L=_.QT(this.hostElement,"yt-get-context-provider",{});L.detail&&L.detail.contextProvider?this.cachedProviderNode_=L.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return Da5.has(this.hostElement.localName)},
getNetworkManager:function(){var L=this.getContext_();if(L)return L.getNetworkManager()}};var MpF,l1L,oA0,vAq;_.Tx=function(L){var Z=l1L.get(L);if(Z&&(Z=Z.pop()))return vAq++,Z;oA0++;try{var N=document.createElement(L)}catch(S){throw new _.sr("ElementPool failed to create element",L,S.message);}return N};
MpF=function(L){var Z=L.is;if(Z){var N=l1L.get(Z);N||(N=[],l1L.set(Z,N));var S=_.X7("ELEMENT_POOL_CONFIG")||{};N.length>=(S[Z]!==void 0?S[Z]:_.X7("ELEMENT_POOL_DEFAULT_CAP",0))||N.push(L)}else _.Q7(new _.sr("Element pool should only handle custom elements:",L.nodeName))};
l1L=new Map;oA0=0;vAq=0;var xN=new WeakMap,bu_=new WeakMap;var cGQ;_.ty=function(L,Z,N){N=N===void 0?_.DK():N;this.JSC$13892_defaultPriority=L;this.signal=Z;this.scheduler=N;this.nextJobDescriptor=0;this.JSC$13892_parkedJobs=[];this.scheduledJobs=new Map};
_.Oj=function(L,Z){if(Z){var N=_.ih();L.signal&&!_.uh(N,L.signal)?(N.addListener(L.signal,function(){L.processSignal()}),L.JSC$13892_parkedJobs.push({job:Z,
priority:void 0})):RJO(L,Z)}};
cGQ=function(L,Z){if(Z!==L.JSC$13892_defaultPriority){L.JSC$13892_defaultPriority=Z;for(var N=_.O(L.scheduledJobs.values()),S=N.next();!S.done;S=N.next())S=S.value,L.scheduler.cancelJob(S.jobId),S.jobId=L.scheduler.addJob(S.jobWrapper,Z)}};
_.ty.prototype.flushJobs=function(){cGQ(this,10);this.processSignal()};
_.ty.prototype.cancel=function(){for(var L=_.O(this.scheduledJobs),Z=L.next();!Z.done;Z=L.next()){var N=_.O(Z.value);Z=N.next().value;N=N.next().value;this.scheduler.cancelJob(N.jobId);this.scheduledJobs.delete(Z)}this.JSC$13892_parkedJobs=[]};
_.ty.prototype.processSignal=function(){for(var L=_.O(this.JSC$13892_parkedJobs),Z=L.next();!Z.done;Z=L.next())Z=Z.value,RJO(this,Z.job,Z.priority);this.JSC$13892_parkedJobs=[]};
var RJO=function(L,Z,N){N=N||L.JSC$13892_defaultPriority;if(N===10)AC(Z);else{var S=L.nextJobDescriptor++,u=function(){Z();L.scheduledJobs.delete(S)},T=L.scheduler.addJob(u,N);
L.scheduledJobs.set(S,{jobWrapper:u,jobId:T,priority:N})}};var nAt;_.WS={};nAt={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.WS.YtRendererstamperBehavior=[_.uM.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 L in this.stampDom){var Z=this.stampDom[L];Z&&Z.id&&this.addReactiveSchema({type:"observe",method:{methodName:OuP(Z.id),args:[{type:"wildcard",path:L}]}})}else{(L=(this.constructor.generatedFrom||this).observers)||(L=[]);for(Z in this.stampDom){var N=this.stampDom[Z];N&&N.id&&L.push(OuP(N.id)+"("+Z+".*)")}this.constructor.generatedFrom.observers=L}},
addStampDomObserverFns_:function(){for(var L in this.stampDom){var Z=this.stampDom[L];Z.id?(this[OuP(Z.id)]=this.rendererStamperObserver_.bind(this,L,Z.id),this.hasDataPath_[L]=!1):(Z=new _.sr("Bad rendererstamper config",this.is+":"+L),_.CA(Z))}},
rendererStamperObserver_:function(L,Z,N){if(N.path==L){if(N.value===void 0&&!this.hasDataPath_[L])return;this.hasDataPath_[L]=N.value!==void 0}this.rendererStamperApplyChangeRecord_(L,Z,N)},
rendererStamperApplyChangeRecord_:function(L,Z,N){var S=this.renderJobsMap_[Z],u=null;L==N.path?(N=N.value,_.Jx(N)||(N=N===void 0||N===null?[]:[N]),L=this.stampDom[L],L.mapping&&(u=this.stampDomArray_.bind(this,N,Z,L.mapping,L.reuseComponents,L.events,L.stamperStableList)),S&&S.cancel(),N=L.usePageScheduler?this.getTaskManager():void 0,S||L.initialRenderPriority==void 0)?L.renderPriority==void 0||S||(S=new _.ty(L.renderPriority,L.waitForSignal,N),this.renderJobsMap_[Z]=S):(S=new _.ty(L.initialRenderPriority,
L.waitForSignal,N),this.renderJobsMap_[Z]=S,u=function(T,W){T();cGQ(W,10)}.bind(this,u,S)):u=L+".splices"==N.path?this.stampDomArraySplices_.bind(this,L,Z,N.value):this.forwardRendererStamperChanges_.bind(this,L,Z,N);
S?_.Oj(S,u):u()},
forwardRendererStamperChanges_:function(L,Z,N){var S=N.path.slice(L.length+1),u=this.getStampContainer_(Z),T=S.indexOf("."),W=S.substring(0,T),V=!1,M=0,G=parseInt(W,0);if(W[0]=="#"){V=parseInt(W.substring(1),0);G=this.get(L);var D=this.get([L,W]);G[V]==D?M=V:M=G.indexOf(D);V=!0}else isNaN(G)||(M=G,V=!0);V&&(S=S.substring(W.length+1),T=S.indexOf("."));W=this.polymerDom(u).children[M];var l;if(u=(l=W==null?void 0:W.polymerController)!=null?l:W)S="data"+S.slice(T),typeof u.notifyPath!=="function"?_.Q7(new _.sr("notifyPath missing",
this.is+": "+L+", "+Z)):N.value?u.notifyPath(S,N.value):u.notifyPath(S)},
stampDomArraySplices_:function(L,Z,N){if(N&&N.indexSplices){var S=this.getStampContainer_(Z);if(S){for(var u=this.polymerDom(S),T=VpF(this.stampDom[L].reuseComponents),W=N.indexSplices.length,V=0;V<W;V++){for(var M=N.indexSplices[V],G=u.children[M.index],D=M.removed.length;D>0;D--)G&&G.parentElement&&(this.polymerDom(G.parentElement).removeChild(G),T&&MpF(G),G=u.children[M.index]);D=this.stampDom[L].mapping;for(var l=M.index+M.addedCount,v=document.createDocumentFragment(),R=T,K=M.index;K<l;K++){var U=
M.object[K],d=tpB(D,U);if(d){var h=D[d];U=U[d];d=this.getComponentName_(h,U);var E=G?xN.has(G):!1;R&&G&&G.is==d&&E?(d=G,this.telemetry_.reuse++,G=G.nextElementSibling):R&&G&&E?(d=this.createComponent_(h,U,T),E=this.polymerDom(G).nextElementSibling,u.insertBefore(d,E),GSG(this.is,u,G,T),G=E):(R=!1,d=this.createComponent_(h,U,T),v.appendChild(d));this.deferRenderStamperBinding_(d,h,U)}else h=new _.sr("Unimplemented type",L,Z,S.tagName,Object.keys(U)[0]),_.CA(h)}u.insertBefore(v,G)}this.flushRenderStamperComponentBindings_();
this.stampDom[L].events&&_.QT(this.hostElement,"yt-rendererstamper-finished",{container:S})}else L=new _.sr("Container object not found",Z,this.hostElement?this.hostElement.is:""),_.CA(L)}},
stampDomArray_:function(L,Z,N,S,u,T){var W=this.getStampContainer_(Z);if(W)if(Z=this.polymerDom(W),S=VpF(S),L){var V=0,M=0,G;if(T=T===void 0?_.Ah("STAMPER_STABLE_LIST",!1):T||!1)for(G=Z.firstElementChild;G&&!xN.has(G)&&L.length>M;){T=L[M];var D=tpB(N,T);if(D){if(this.getComponentName_(N[D],T[D])!=G.is){var l=this.createComponent_(N[D],T[D],S),v=_.g0(G).nextElementSibling;v?Z.insertBefore(l,v):Z.appendChild(l);GSG(this.is,Z,G,S);G=l}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(G,N[D],
T[D]);V++;M++;G=this.polymerDom(G).nextElementSibling}else M++}F6w(this.is,Z,V,S);V=G;if(L.length>M){T=document.createDocumentFragment();for(D=L.length;M<D;M++)if(l=L[M],v=tpB(N,l))G=this.createComponent_(N[v],l[v],S),this.deferRenderStamperBinding_(G,N[v],l[v]),T.appendChild(G);V&&this.polymerDom(V).parentNode&&G&&!xN.has(G)?Z.insertBefore(T,V):Z.appendChild(T)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();u&&_.QT(this.hostElement,"yt-rendererstamper-finished",{container:W})}else F6w(this.is,
Z,0,S);else L=new _.sr("Container object not found",Z,this.hostElement?this.hostElement.is:""),_.CA(L)},
polymerDom:function(L){return this.minimizePipBreakages?L:_.g0(L)},
getStampContainer_:function(L){return this.$&&this.$[L]||_.QJ(this.hostElement).querySelector("#"+L)},
getComponentName_:function(L,Z){return typeof L==="string"?L:L.matcher?L.matcher.call(this,Z):L.component},
createComponent_:function(L,Z,N){L=this.getComponentName_(L,Z);try{var S=Cd.has(L);if(N&&!S){var u=_.Tx(L);try{_.Ld(u)}catch(T){N="Failed to clear styles for "+L+".",T.message&&(N+=" Original error: "+T.message),_.Q7(new _.sr(N))}}else u=document.createElement(L)}catch(T){return u="YtRendererStamperBehavior failed to create "+L+".",T.message&&(u+=" Original description: "+T.message),T.message="YtRendererStamperBehavior failed to create element",_.Xv(T,u),nAt.hasOwnProperty(L)?_.Q7(T):_.CA(T),document.createElement("SPAN")}this.telemetry_.create++;
return u},
deferRenderStamperBinding_:function(L,Z,N){this.deferredBindingTasks_.push({component:L,typeOrConfig:Z,data:N})},
flushRenderStamperComponentBindings_:function(){for(var L=0,Z=this.deferredBindingTasks_.length;L<Z;L++){var N=this.deferredBindingTasks_[L];if(!N)break;var S=void 0,u=void 0,T=void 0,W=void 0,V=N.component,M=N.typeOrConfig;N=N.data;var G=(W=V.polymerController)!=null?W:V;W=V.loggingStatus;try{W&&(W.isRendererStamper=!0);if(typeof M!=="string"){for(T in M.attributes)M.attributes[T]===!0?V.setAttribute(T,""):M.attributes[T]===!1?V.removeAttribute(T):V.setAttribute(T,M.attributes[T]);for(u in M.params)G[u]=
M.params[u],V!==G&&gD(V.localName,u,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(S in M.properties){var D=M.properties[S];if(D){var l=W61(D);G[S]=this.get(l);V!==G&&gD(V.localName,S,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(S==="on-tap"||S==="on-click"){var v=this.get(l);V.addEventListener("click",v);bu_.set(V,{property:S,listener:{type:"element",eventName:"click",handler:v}})}}else{var R=new _.sr("Undefined property binding",S);_.CA(R)}}}if(M.classListBinding){var K=W61(M.classListBinding),
U=K?this[K]:null;if(U)for(S=0;S<U.length;S++)_.Az(V,U[S],!0)}G.data=N}finally{W&&(W.isRendererStamper=!1)}if(S=xN.get(V))V.hidden=!1,xN.delete(V),_.ro.cancelJob(S)}this.deferredBindingTasks_.length=0}}];_.CY(_.p(function(L){function Z(){N().seconds&&T(Sww({seconds:Number(N().seconds)-Date.now()/1E3}))}
var N=L.targetTimestamp;L=L.className;var S=_.O(_.nh("",void 0,"Lqijgf")),u=S.next().value,T=S.next().value;_.zp(function(){Z();var W=setInterval(function(){Z()},1E3);
_.zs(function(){clearInterval(W)})});
return _.g("yt-countdown",{class:_.qg("ytCountDownHost",L)},_.g("div",null,u))},"u"),"yt-countdown",{props:{targetTimestamp:_.LK,
className:_.zl}});_.VG=new _.iY("KEY_MANAGER_TOKEN");var nIf={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"};_.bM=_.p(function(L){var Z=_.t2("a",L.ref),N=L.aTagConfig?L.aTagConfig:_.wJ(function(){var S,u,T,W,V;var M=(V=_.KY((T=L.command)==null?void 0:T.call(L)))!=null?V:(W=L.command)==null?void 0:W.call(L);return _.kN({innertubeCommand:M,skipOnClick:(S=L.skipOnClick)==null?void 0:S.call(L),defaultTarget:(u=L.target)==null?void 0:u.call(L)})||{}},void 0,"TAvz0");
_.ph(function(){_.c("mweb_get_endpoint_from_atag_command")||(Z.value._data=N()._data,Z.value.params=N().params)},"dcjvAe");
return _.g("a",{el:Z,href:function(){return N().href$},
rel:function(){return N().rel$},
class:function(){var S,u;return(u=N().className)!=null?u:(S=L.className)==null?void 0:S.call(L)},
style:function(){var S;if((S=L.style)==null?0:S.call(L))return L.style();var u;return((u=L.disabled)==null?0:u.call(L))?"pointer-events:none":""},
"aria-haspopup":function(){return!!N()["aria-haspopup$"]},
"force-new-state":NV(function(){return N()["force-new-state$"]}),
title:NV(function(){var S,u;return(u=N().title$)!=null?u:(S=L.title)==null?void 0:S.call(L)}),
role:NV(function(){var S;return((S=L.role)==null?void 0:S.call(L))||N().role$}),
target:NV(function(){return N().target$}),
dir:NV(function(){var S;return((S=L.dir)==null?void 0:S.call(L))||N().dir}),
tabindex:function(){var S;return N().tabindex$?Number(N().tabindex$):(S=L.tabIndex)==null?void 0:S.call(L)},
"aria-hidden":function(){var S,u;return(u=N()["aria-hidden$"])!=null?u:(S=L.ariaHidden)==null?void 0:S.call(L)},
"aria-label":function(){var S,u;return(u=N()["aria-label$"])!=null?u:(S=L.ariaLabel)==null?void 0:S.call(L)},
"aria-current":L.ariaCurrent,"aria-disabled":L.disabled,"aria-labelledby":L.ariaLabelledby,"aria-describedby":L.ariaDescribedby,"aria-selected":L.ariaSelected,"tab-identifier":L.tabIdentifier,"on:pointerdown":_.Z9(function(S){var u,T;return void((T=(u=N()).onpointerdown)==null?void 0:T.call(u,S))}),
"on:click":_.Z9(function(S){var u,T;(T=(u=N()).onclick)==null||T.call(u,S);var W;(W=L.onClick)==null||W.call(L,S)}),
"on:focusin":_.Z9(function(S){var u;(u=L.onFocusin)==null||u.call(L,S)}),
"on:focusout":_.Z9(function(S){var u;(u=L.onFocusout)==null||u.call(L,S)})},L.children)},"w");var enx={duration:1E3,easing:"ease",fill:"forwards"};YA0.componentType=hW;var ays={duration:1E3,easing:"ease",fill:"forwards"},kdt=_.p(function(L){var Z=_.t2("animated-rolling-character"),N=void 0,S=function(){var V,M;return Eo((V=L.character)==null?void 0:V.call(L))||Eo((M=L.previousCharacter)==null?void 0:M.call(L))},u=_.O(_.nh(0,void 0,"CYT8Ob")),T=u.next().value,W=u.next().value;
_.zp(function(){if(window.ResizeObserver&&_.c("web_fix_rolling_numbers_zoom_safari")){var V=new _.Sw(function(){var G,D,l=Math.round(((D=(G=Z.value.querySelector("div"))==null?void 0:G.getBoundingClientRect().height)!=null?D:0)*100)/100;l&&W(l)},500),M=new ResizeObserver(function(){V.fire()});
M.observe(Z.value);_.zs(function(){M.disconnect();V.dispose()})}});
_.ph(function(){var V=_.c("web_fix_rolling_numbers_zoom_safari")?T:L.marginMultiplier;if(V()){var M;(M=N)==null||M.cancel();if(S()){var G;M=((G=L.previousCharacter)==null?0:G.call(L))?Number(L.previousCharacter())+10:L.rollUp()?0:30;var D;if((D=L.shouldAnimate)==null||!D.call(L)){var l,v;M-=dKB((l=L.character)==null?void 0:l.call(L),(v=L.previousCharacter)==null?void 0:v.call(L),L.rollUp(),M)}}else{M=L.rollUp()?0:2;var R;(R=L.shouldAnimate)!=null&&R.call(L)||(G=M,D=L.rollUp()?-1:1,M=G-D)}Z.value.style.marginTop=
"-"+M*V()+"px";var K;if((K=L.shouldAnimate)==null?0:K.call(L)){var U,d;N=hnf(Z.value,(U=L.character)==null?void 0:U.call(L),(d=L.previousCharacter)==null?void 0:d.call(L),L.rollUp(),M,S(),V())}else{var h;Z.value.style.display=((h=L.character)==null?0:h.call(L))?"":"none"}}},"CA6Pmf");
return _.g("animated-rolling-character",{el:Z,class:"animatedRollingCharacterHost"},_.g(_.F,{cond:S,then:function(){return _.g(KIN,null)},
else:function(){return _.g(f1M,{character:L.character})}}))},"z");
kdt.idomCompat=!0;var s5f=_.c("web_enable_sink_animated_rolling_character_and_number")?kdt:YA0,yGO=_.c("web_enable_sink_animated_rolling_character_and_number")?kdt:IyG(YA0),KIN=_.p(function(){for(var L=[],Z=1;Z<30;Z++)L.push(_.g("div",null,Z%10));return _.g(_.F7,null,_.g("div",null,"\u00a0"),L,_.g("div",null,"\u00a0"))},"A"),f1M=_.p(function(L){var Z=L.character;
return _.g(_.F7,null,_.g("div",null,"\u00a0"),_.g(_.F,{cond:function(){return!(Z==null?0:Z())||_.V_(Z==null?void 0:Z())},
then:function(){return _.g("div",null,"\u00a0")},
else:function(){return _.g("div",null,Z)}}),_.g("div",null,"\u00a0"))},"B");j5L.componentType=hW;var w1M=_.p(function(L){var Z=void 0,N=void 0,S=function(){var T;return((T=L.fontSizeMultiplier)==null?0:T.call(L))?L.heightPx()*L.fontSizeMultiplier():L.heightPx()},u=_.wJ(function(){if(!L.numberText())return[];
var T,W,V=((T=L.forceRollUp)==null?void 0:T.call(L))||!N||!((W=L.numberValue)==null?0:W.call(L))||N<L.numberValue(),M,G=L.numberText();T=S();W=!((M=L.shouldAnimate)==null||!M.call(L));M=[];var D=0,l=0,v=(Z?Z.replace(/\D/g,"").length:0)-(G?G.replace(/\D/g,"").length:0),R=Z?Z.split(/(\d)/).filter(Boolean):[];for(G=G.split(/(\d)/).filter(Boolean);v<0;){var K=G[l];M.push({character:K,rollUp:V,marginMultiplier:T,shouldAnimate:W});l++;Eo(K)&&v++}for(;D<v;)K=R[D],M.push({previousCharacter:K,rollUp:V,marginMultiplier:T,
shouldAnimate:W}),D++,Eo(K)||v++;for(;l<G.length;)v=G[l],K=R[D],Eo(v)===Eo(K)?(l++,D++):Eo(v)?(D++,v=void 0):Eo(K)&&(l++,K=void 0),M.push({character:v,previousCharacter:K,rollUp:V,marginMultiplier:T,shouldAnimate:W});Z=L.numberText();var U;N=(U=L.numberValue)==null?void 0:U.call(L);return M},void 0,"kWiBv");
return _.g("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return L.numberText()?["height: "+S()+"px;","line-height: "+L.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.g(_.ju,{each:u,keyBy:"INDEX"},function(T){return _.g(yGO,{character:function(){return T().character},
previousCharacter:function(){return T().previousCharacter},
marginMultiplier:function(){return T().marginMultiplier},
rollUp:function(){return T().rollUp},
shouldAnimate:function(){return T().shouldAnimate}})}))},"C");
w1M.idomCompat=!0;_.Uah=_.c("web_enable_sink_animated_rolling_character_and_number")?w1M:IyG(j5L);var Yfs=function(L,Z){this.fillAnimation=new Animation(zn1(L),document.timeline);this.strokeAnimation=new Animation(mKA(Z),document.timeline)};
Yfs.prototype.play=function(){var L,Z;(Z=(L=this.fillAnimation).play)==null||Z.call(L);var N,S;(S=(N=this.strokeAnimation).play)==null||S.call(N)};
Yfs.prototype.cancel=function(){var L,Z;(Z=(L=this.fillAnimation).cancel)==null||Z.call(L);var N,S;(S=(N=this.strokeAnimation).cancel)==null||S.call(N)};_.MN=_.p(function(L){var Z=L.model;var N=L.pointerDownEvent;var S=L.pointerUpEvent;var u=L.pointerLeaveEvent;var T=L.hovered;L=_.t2("yt-touch-feedback-shape");var W=_.t2("div"),V=_.t2("div"),M=_.O(_.i4(function(){return(S==null?0:S())||(u==null?0:u())?!1:!(N==null||!N())||!1})),G=M.next().value,D=M.next().value,l=void 0,v=function(){!l&&V.value&&W.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(l=new Yfs(V.value,W.value));
var E;(E=l)==null||E.play()},R=function(){var E;
(E=l)==null||E.cancel()},K=function(){var E;
(E=l)==null||E.cancel()};
_.ph(function(){(S==null?0:S())&&v()},"bg756c");
_.ph(function(){(N==null?0:N())&&R()},"QAes8c");
_.ph(function(){(u==null?0:u())&&K()},"YaFbrc");
M=_.Z9(function(){v();D(!1)});
var U=_.Z9(function(){R();D(!0)}),d=_.Z9(function(){K();
D(!1)});
_.zs(function(){if(l){var E;(E=l)==null||E.cancel();l=void 0}});
var h={};G=_.qg("yt-spec-touch-feedback-shape",function(){return JXh(Z().color)},function(){return CiB(Z().thumbnailSize,!!Z().isExtended)},(h["yt-spec-touch-feedback-shape--focused"]=function(){return!!Z().focused&&!Z().disabled},h["yt-spec-touch-feedback-shape--circular"]=function(){return!!Z().circular},h["yt-spec-touch-feedback-shape--down"]=G,h["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!Z().triggerEvents},h["yt-spec-touch-feedback-shape--hovered"]=function(){return T==
null?void 0:T()},h));
return _.g("yt-touch-feedback-shape",{el:L,class:G,style:_.u4({"margin-top":function(){return Z().customTopExtend?"-"+Z().customTopExtend+"px":void 0}}),
"on:mousedown":U,"on:mouseup":M,"on:pointerleave":d,"on:touchstart":U,"on:touchend":M,"aria-hidden":!0},_.g(_.F,{cond:function(){return!!Z().hoverEffect},
then:function(){return _.g("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.u4({"border-radius":function(){return Z().borderRadius},
background:function(){var E;if(E=Z().hoverEffect){for(var A=[],J=_.O((E==null?void 0:E.lightingTechniques)||[]),C=J.next();!C.done;C=J.next())switch(C.value){case 2:var X=C=void 0,L1=void 0,Fw=void 0;A.push("linear-gradient(180deg, "+((C=E)==null?void 0:(X=C.palette)==null?void 0:X.keyLight)+", "+((L1=E)==null?void 0:(Fw=L1.palette)==null?void 0:Fw.background)+")")}var GB,Yt;A.push((GB=Z().hoverEffect)==null?void 0:(Yt=GB.palette)==null?void 0:Yt.background);E=A.join(", ")}else E=void 0;return E}})})}}),
_.g("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.u4({"border-radius":function(){return Z().borderRadius},
"border-color":function(){var E,A;return(E=Z().touchEffect)==null?void 0:(A=E.palette)==null?void 0:A.background}}),
el:W}),_.g("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.u4({"border-radius":function(){return Z().borderRadius},
"background-color":function(){var E,A;return(E=Z().touchEffect)==null?void 0:(A=E.palette)==null?void 0:A.background}}),
el:V}))},"I");
_.MN.idomCompat=!0;var eJh={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 ge=_.vs();ge=ge.toLowerCase();if(_.bH(ge,"android")){var I1s=ge.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);I1s&&parseFloat(I1s[1])<100||ge.match("("+Object.keys(eJh).join("|")+")")};var da0=_.p(function(L){return _.g(_.F,{cond:L.aTagConfig,then:function(Z){return _.g(_.bM,{aTagConfig:Z,disabled:L.disabled,className:L.className,style:L.style,title:L.title,ariaLabel:L.ariaLabel,ariaCurrent:function(){var N,S;return((N=L.toggleable)==null?void 0:N.call(L))&&((S=L.toggled)==null?void 0:S.call(L))},
ref:L.ref},L.children)},
else:function(){return _.g("button",{el:_.P9(L.ref),"on:click":_.Z9(function(Z){var N;return(N=L.onClick)==null?void 0:N.call(L,Z)}),
class:L.className,title:L.title,style:L.style,disabled:L.disabled,"aria-pressed":function(){var Z,N;return((Z=L.toggleable)==null?0:Z.call(L))?!((N=L.toggled)==null||!N.call(L)):void 0},
"aria-label":L.ariaLabel,"aria-disabled":L.visiblyDisabled,"aria-hidden":L.ariaHidden,tabindex:L.tabIndex},L.children)}})},"J"),hJ0=_.p(function(L){var Z=L.data;
var N=L.hasIconLeading;var S=L.hasIconLeadingTrailing;var u=L.hasIconTrailing;var T=L.iconButton;var W=L.iconClassName;var V=L.secondaryIconClassName;var M=L.icon;var G=L.secondaryIcon;var D=L.textContentClassName;return _.g(Gx,{className:"",style:"display: inherit; justify-content: center"},_.g(_.F,{debugInstance:"V4z1Uc",cond:function(){return M&&(N()||S()||(T==null?void 0:T()))},
then:function(){return _.g(Gx,null,_.g("div",{class:W,"aria-hidden":"true"},M==null?void 0:M()))}}),_.g(_.F,{debugInstance:"ok3btb",
cond:function(){return(Z().buttonText||Z().animatedTextProps||Z().formattedButtonText)&&!(T==null?0:T())},
then:function(){return _.g(Gx,null,_.g(a1t,{className:D,iconPosition:function(){return Z().iconPosition},
text:function(){return Z().buttonText},
oneOffCustomTextWrap:function(){return Z().oneOffCustomTextWrap},
formattedButtonText:function(){return Z().formattedButtonText},
animatedTextProps:function(){return Z().animatedTextProps}}))}}),_.g(_.F,{debugInstance:"DO5Rz",
cond:u,then:function(){return _.g(Gx,null,_.g("div",{class:W},M==null?void 0:M()))}}),_.g(_.F,{debugInstance:"bnojSc",
cond:S,then:function(){return _.g(Gx,null,_.g("div",{class:V},G==null?void 0:G()))}}),_.g(_.F,{debugInstance:"HN3kad",
cond:function(){return!Z().disabled&&!0},
then:function(){return _.g(_.MN,{model:function(){var l=Z();return{color:l.style==="overlay-dark"?4:l.style==="overlay"?l.type==="filled"?4:3:l.type==="filled"||l.style==="call-to-action-inverse"||l.style==="mono-inverse"?2:1}}})}}))},"K"),a1t=_.p(function(L){var Z=function(){var N,S;
return((N=L.iconPosition)==null?void 0:N.call(L))==="icon-with-label"||((S=L.oneOffCustomTextWrap)==null?void 0:S.call(L))};
return _.g("div",{class:L.className,"aria-hidden":function(){var N,S,u;return((N=L.ariaHidden)==null?void 0:N.call(L))&&(!((S=L.animatedTextProps)==null||!S.call(L))||!((u=L.formattedButtonText)==null||!u.call(L)))}},_.g(_.EM,null,_.g(_.hh,{when:function(){var N;
return(N=L.animatedTextProps)==null?void 0:N.call(L)}},function(){return _.g(_.Uah,{numberText:function(){return L.animatedTextProps().numberText},
numberValue:function(){return L.animatedTextProps().numberValue},
heightPx:function(){return L.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return L.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return L.animatedTextProps().shouldAnimate},
forceRollUp:function(){return L.animatedTextProps().forceRollUp}})}),_.g(_.hh,{when:function(){var N;
return(N=L.formattedButtonText)==null?void 0:N.call(L)}},function(){return _.g(_.qv,{text:function(){return Object.assign({},L.formattedButtonText(),{lineBreakMode:Z()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":L.formattedButtonText().lineBreakMode,
alignment:Z()?"TEXT_ALIGNMENT_CENTER":L.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!Z()}})}),_.g(_.hh,{when:function(){var N,S;
return((N=L.iconPosition)==null?void 0:N.call(L))==="icon-with-label"&&((S=L.text)==null?void 0:S.call(L))}},function(){return _.g(_.qv,{text:function(){return{content:L.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.g(_.sM,null,function(){return L.text})))},"L"),sKs=_.p(function(L){return _.g(_.F,{debugInstance:"kM7Sgc",
cond:L.hasLabel,then:function(){var Z;return _.g("label",{class:L.className},L.children,(Z=L.textContent)==null?void 0:Z.call(L))},
else:function(){return L.children}})},"M"),Gx=_.p(function(L){return L.children},"N");var jKN=_.p(function(L){var Z=_.P9(),N=_.O(_.nh(void 0,void 0,"Ug77pc")),S=N.next().value,u=N.next().value;N=_.O(_.nh(void 0,void 0,"XGf7Zb"));var T=N.next().value,W=N.next().value;N=_.O(_.nh(0,void 0,"Ygnx7b"));var V=N.next().value,M=N.next().value;N=_.Z9(function(){switch(V()){case 1:M(2);break;case 3:var D,l;(l=(D=Z.value).hidePopover)==null||l.call(D);M(0);u(void 0);W(void 0)}});
_.ph(function(){if(L.show()){var D;u((D=L.children)==null?void 0:D.call(L));var l;W((l=L.location)==null?void 0:l.call(L));switch(V()){case 0:var v,R;(R=(v=Z.value).showPopover)==null||R.call(v);M(1);break;case 3:M(1);var K,U;(U=(K=Z.value).hidePopover)==null||U.call(K);var d,h;(h=(d=Z.value).showPopover)==null||h.call(d)}}else switch(V()){case 2:M(3);break;case 1:var E,A;(A=(E=Z.value).hidePopover)==null||A.call(E);u(void 0);W(void 0);M(0)}},"lOyibf");
_.m0(function(){});
var G={};return _.g("yt-popover",{popover:"manual",el:Z,style:_.u4({left:function(){var D;return(D=T())==null?void 0:D.left},
top:function(){var D;return(D=T())==null?void 0:D.top},
bottom:function(){var D;return(D=T())==null?void 0:D.bottom},
right:function(){var D;return(D=T())==null?void 0:D.right}}),
class:_.qg("ytPopoverComponentHost",L.classNames,(G.ytPopoverComponentHostClosing=function(){return V()===3},G.ytPopoverComponentHostSeeThrough=function(){var D;
return((D=L.seeThrough)==null?void 0:D.call(L))===!0},G)),
"on:animationend":N},S)},"P");var EAO={left:"0px",right:"auto",top:"0px",bottom:"auto"},P5t=function(){var L=this;this.registerTooltipElement=function(N){var S;L.tooltipElement=(S=N.querySelector("yt-popover"))!=null?S:void 0};
var Z=_.O(_.nh(void 0,void 0,"z4iHWd"));this.state=Z.next().value;this.setState=Z.next().value;Z=_.O(_.nh(void 0,void 0,"uKDcaf"));this.schedulerJobID=Z.next().value;this.setSchedulerJobID=Z.next().value},Lsw=function(L,Z){var N=OC,S=_.ro.addJob(function(){var u=p1I(N,L,Z);
N.setState({text:Z.text,location:u,anchor:L,offset:Z.offset})},4,Z.delay);
N.setSchedulerJobID(S)},ZwB=function(){var L=OC,Z=L.schedulerJobID();
Z&&(_.ro.cancelJob(Z),L.setSchedulerJobID(void 0));L.setState(void 0)};
P5t.prototype.notify=function(L,Z){var N;((N=this.state())==null?void 0:N.anchor)===L&&(N=p1I(this,L,Z),this.setState({text:Z.text,location:N,anchor:L,offset:Z.offset}))};
var p1I=function(L,Z,N){var S=Z.getBoundingClientRect();Z=window.innerWidth;var u=window.innerHeight,T=N.location,W=N.offset;N=N.text;if(L=L.tooltipElement){var V=getComputedStyle(L);L=V.font;var M=tS(V.lineHeight),G=tS(V.paddingLeft),D=tS(V.paddingRight),l=tS(V.paddingTop);V=tS(V.paddingBottom);var v=document.createElement("canvas").getContext("2d");v.font=L;N={width:v.measureText(N).width+G+D,height:M+l+V}}else N=void 0;L=N;if(!L)return EAO;N=L.width;L=L.height;G=W+L;l=W+N;M=S.top>=G;G=u-S.bottom>=
G;D=S.left>=l;l=Z-S.right>=l;V=T;switch(T){case "top":!M&&G&&(V="bottom");break;case "bottom":!G&&M&&(V="top");break;case "left":!D&&l&&(V="right");break;case "right":!l&&D&&(V="left")}switch(V){case "top":T=S.left+S.width/2-N/2;S=S.top-L-W;break;case "bottom":T=S.left+S.width/2-N/2;S=S.bottom+W;break;case "left":T=S.left-N-W;S=S.top+S.height/2-L/2;break;case "right":T=S.right+W;S=S.top+S.height/2-L/2;break;default:T=S.left+S.width/2-N/2,S=S.bottom+W}W=Object.assign({},EAO);T+N>Z?(W.right="0px",W.left=
"auto"):(W.left=Math.round(Math.max(0,T)+window.scrollX)+"px",W.right="auto");S+L>u?(W.bottom="0px",W.top="auto"):(W.top=Math.round(Math.max(0,S)+window.scrollY)+"px",W.bottom="auto");return W};var OC;OC=new P5t;_.zJV=_.p(function(){var L=_.wJ(function(){var N;return(N=OC.state())==null?void 0:N.text},void 0,"jgLmfd"),Z=_.wJ(function(){var N;
return(N=OC.state())==null?void 0:N.location},void 0,"zV1Udb");
return _.g("yt-tooltip",{class:"ytTooltipContainerHost",el:_.P9(OC.registerTooltipElement),"aria-hidden":"true"},_.g(jKN,{classNames:"ytTooltipContainerContent",location:Z,show:function(){return!!L()},
seeThrough:!0},L))},"Q");var jbt=VX("stamper-context");_.Ff=_.p(function(L){var Z=L.data;var N=L.icon;var S=L.iconName;var u=L.animateIcon;var T=L.secondaryIcon;var W=L.secondaryIconName;var V=L.focusedOverride;var M=L.clientOnlyWizTooltipsEnabled;Sss();var G=rXF(Z),D=G.size,l=G.style;L=G.disabled;var v=G.onTap,R=G.alignByText,K=G.aTagConfig,U=G.customColors,d=G.segmentedPosition,h=G.toggled,E=G.toggleable,A=G.accessibilityLabel,J=G.onToggle,C=G.iconPosition,X=G.oneOffCustomTextWrap,L1=G.disableTextEllipsis,Fw=G.disableBackdropFilter,GB=G.tooltipText,
Yt=G.ariaHidden,lH=G.tabIndex,RF=G.buttonText,jf=G.formattedButtonText,f1=G.animatedTextProps,n0=G.onClickRateLimitMs,r5=HuB(Z,N,T,S,W,V,u),yq=r5.type;N=r5.shouldFocus;S=r5.hasIconLeading;u=r5.hasIconTrailing;var ZN=r5.hasIconLeadingTrailing,GV=r5.hasIconOnly;T=r5.hasIconOnly40;var IO=r5.hasIconWithLabel;W=r5.iconButton;var d5=r5.visiblyDisabled;V=r5.overrideSmallSizeIcon;G=r5.iconToRender;r5=r5.secondaryIconToRender;var n8=_.O(N2h(GB)).next().value,lq=function(RO){v==null||v(RO);E()&&(J==null||J(RO))},
tx=_.wJ(function(){return n0==null?void 0:n0()},void 0,"wrF7V"),ut=_.wJ(function(){return tx()?ISL(lq,tx()):lq},void 0,"fG5dyf"),oO={},uq={};
return _.g(sKs,{className:_.qg("yt-spec-button-shape-with-label",(oO["yt-spec-button-shape-with-label--is-overlay"]=function(){return l()==="overlay"||l()==="overlay-dark"},oO)),
hasLabel:IO,textContent:function(){return _.g(a1t,{text:RF,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:X,iconPosition:C,formattedButtonText:jf,animatedTextProps:f1})}},_.g(da0,{aTagConfig:K,
className:_.qg("yt-spec-button-shape-next",function(){return BB1(yq())},function(){return d5()?void 0:xK0(l())},function(){return qA1(D())},(uq["yt-spec-button-shape-next--disabled"]=d5,uq["yt-spec-button-shape-next--focused"]=N,uq["yt-spec-button-shape-next--icon-trailing"]=u,uq["yt-spec-button-shape-next--icon-leading"]=S,uq["yt-spec-button-shape-next--icon-leading-trailing"]=ZN,uq["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return ZN()&&!(RF()||jf())},uq["yt-spec-button-shape-next--icon-button"]=
function(){return GV()||IO()},uq["yt-spec-button-shape-next--icon-only-default"]=T,uq["yt-spec-button-shape-next--align-by-text"]=R,uq["yt-spec-button-shape-next--segmented-start"]=function(){return d()==="start"},uq["yt-spec-button-shape-next--segmented-end"]=function(){return d()==="end"},uq["yt-spec-button-shape-next--override-small-size-icon"]=V,uq["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=X,uq["yt-spec-button-shape-next--disable-text-ellipsis"]=L1,uq["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Fw()&&!_.c("web_disable_backdrop_filter")},uq)),
style:function(){var RO=U();if(RO){var iq=RO.color;var hU=RO.backgroundColor;RO=RO.borderColor;var Qq="";iq&&(Qq+="color: "+iq+";");hU&&(Qq+="background-color: "+hU+";");RO&&(Qq+="border-color: "+RO+";");iq={style:Qq}}else iq={};return iq.style},
onClick:function(RO){ut()(RO)},
disabled:L,ariaLabel:A,toggleable:E,toggled:h,title:function(){return(M==null?0:M())||!GB()?"":GB()},
visiblyDisabled:d5,ariaHidden:Yt,tabIndex:lH,ref:function(RO){(M==null?0:M())&&n8(RO)}},_.g(hJ0,{data:Z,
hasIconLeading:S,hasIconLeadingTrailing:ZN,hasIconTrailing:u,iconButton:W,icon:G,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:r5})))},"S");
_.Ff.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.$X=_.p(function(L){var Z=L.data;var N=L.className;var S=L.style;var u=L.useOutlinedIcon;var T=L.buttonOverrides;var W=L.animatedTextProps;var V=L.onClick;var M=L.target;var G=_.t2("button-view-model",function(J){J.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var C=Z().targetId;C&&_.RL0(_.yx(),C,J);return function(){v4t(_.yx(),J)}}),D=function(){return Z().iconName},l=_.VB(function(J){a:{var C=Z().entityKey,X=Z().buttonEntitySelectorType;
if(X&&C)switch(X){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":J=(J=_.LV(J,C))?{isHidden:J.adsState==="ADS_STATE_NONE"||J.adsState==="ADS_STATE_UNKNOWN"}:void 0;break a;default:J={isHidden:!1};break a}J=void 0}return J}),v,R=(v=_.GR().resolve(_.gv(_.d$)))==null?void 0:v(),K=function(){var J=Z();
var C=T==null?void 0:T(),X=W==null?void 0:W(),L1=M==null?void 0:M();if(J){var Fw=Vlf(J.type);var GB=!!J.title||!!J.titleFormatted;var Yt=!(!J.iconName&&!J.iconImage);GB=Yt&&!GB?"icon-only":Yt?J.iconTrailing||J.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;GB==="icon-only-40"&&(Fw="text");var lH;Yt=(lH=C==null?void 0:C.state)!=null?lH:bwF(J.state);var RF,jf=(RF=C==null?void 0:C.disabled)!=null?RF:J.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||J.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.c("web_button_vm_refactor_disabled")){var f1;jf=(f1=C==null?void 0:C.disabled)!=null?f1:Yt==="disabled"}X=X&&X.numberText&&!isNaN(Number(X.numberValue))?X:void 0;RF=Object;f1=RF.assign;lH=J.title;var n0=J.titleFormatted,r5=J.accessibilityText,yq=Wsh(J.style),ZN=Mlw(J.buttonSize);L1=OwP(J,G,jf,V,L1);jf=jf&&!J.onDisabledTap;var GV=T2P(J,G),IO=J.customFontColor,d5=J.customBackgroundColor;var n8=J.customBorderColor;var lq=J.customDarkThemeFontColor,tx=J.customDarkThemeBackgroundColor,ut=J.customDarkThemeBorderColor;
IO=R&&lq?lq:IO;d5=R&&tx?tx:d5;n8=R&&ut?ut:n8;n8={color:IO?_.Rs(IO):void 0,backgroundColor:d5?_.Rs(d5):void 0,borderColor:n8?_.Rs(n8):void 0};J=f1.call(RF,{},{buttonText:lH,formattedButtonText:n0,animatedTextProps:X,accessibilityLabel:r5,style:yq,type:Fw,state:Yt,size:ZN,iconPosition:GB,onTap:L1,disabled:jf,aTagConfig:GV,customColors:n8,tooltipText:J.tooltip},C)}else J={style:"mono",type:"text",state:"active",size:"M"};J.focused=h();return J},U=function(){return XIs(K(),!!Z().iconName)};
L=_.O(_.nh(!1,void 0,"yZ8hab"));v=L.next().value;var d=L.next().value,h=v;L=_.Z9(function(){var J=_.GR().resolve(_.gv(_.VG));J&&d(J.isKeyBoardInUse());return!1});
v=_.Z9(function(){d(!1);return!1});
_.ph(function(){var J,C=_.n(Z==null?void 0:(J=Z())==null?void 0:J.onVisible,_.nY);C&&_.fY(C,{disableClickTracking:!0})},"G9MlKd");
var E=function(){var J;return(Z==null?0:(J=Z())==null?0:J.iconImage)?{sources:[Z().iconImage]}:void 0},A=_.c("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.g("button-view-model",{el:G,class:_.qg("ytSpecButtonViewModelHost",N),"on:focusin":L,"on:focusout":v},_.g(_.F,{cond:function(){var J,C;return!((C=Z().entityKey&&Z().buttonEntitySelectorType&&((J=l())==null?void 0:J.isHidden))!=null&&C)},
then:function(){return _.g(_.F,{cond:E,then:function(J){return _.g(_.Ff,{data:K,icon:function(){return _.g(_.ji,{data:J,alt:"",targetWidth:U,targetHeight:U,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:A})},
else:function(){return _.g(_.Ff,{data:K,icon:function(){return _.g(_.T0,{icon:D,active:function(){return(u==null?0:u())?!1:K().toggled},
animateIcon:function(){var J;return!!(S==null?0:(J=S())==null?0:J.animateIcon)},
size:U})},
clientOnlyWizTooltipsEnabled:A})}})}}))},"U");
_.$X.idomCompat={callbacks:{onClick:!0}};_.CY(_.p(function(L){return _.g("yt-button-view-model",{id:L.id,class:_.qg(L.scopingClassName,L.classes),icon:function(){var Z;return(Z=L.icon)==null?void 0:Z.call(L)},
"dialog-dismiss":function(){var Z;return((Z=L.dialogDismiss)==null?0:Z.call(L))?"":void 0}},_.g(_.$X,{data:function(){var Z;
return(Z=L.data)==null?void 0:Z.call(L)},
className:function(){var Z;return(Z=L.className)==null?void 0:Z.call(L)},
style:function(){var Z;return(Z=L.style)==null?void 0:Z.call(L)},
useOutlinedIcon:function(){var Z;return(Z=L.useOutlinedIcon)==null?void 0:Z.call(L)},
buttonOverrides:function(){var Z;return(Z=L.buttonOverrides)==null?void 0:Z.call(L)},
animatedTextProps:function(){var Z;return(Z=L.animatedTextProps)==null?void 0:Z.call(L)},
onClick:function(Z){var N;return(N=L.onClick)==null?void 0:N.call(L,Z)}}))},"V"),"yt-button-view-model",{props:{data:_.LK,
className:_.LK,style:_.LK,useOutlinedIcon:_.LK,buttonOverrides:_.LK,animatedTextProps:_.LK,onClick:_.zl,scopingClassName:_.LK,id:_.LK,icon:_.LK,dialogDismiss:_.LK,classes:_.LK,target:_.zl}});_.CY(_.p(function(L){var Z=L.data;var N=L.id;var S=L.className;var u=L.iconName;var T=L.animateIcon;var W=L.secondaryIconName;L=_.O(_.nh(!1,void 0,"TtJl8"));var V=L.next().value,M=L.next().value,G=function(){var l=_.GR().resolve(_.gv(_.VG));l&&M(l.isKeyBoardInUse())},D=function(){M(!1)};
L=_.t2("yt-button-shape",function(l){if(_.GR().resolve(_.gv(_.VG)))return l.addEventListener("focusin",G),l.addEventListener("focusout",D),function(){l.removeEventListener("focusin",G);l.removeEventListener("focusout",D)}});
return _.g("yt-button-shape",{el:L,id:N,class:S},_.g(_.F,{cond:Z,then:function(){return _.g(_.Ff,{data:Z,iconName:u,secondaryIconName:W,focusedOverride:V,animateIcon:T})}}))},"W"),"yt-button-shape",{props:{data:_.LK,
id:_.LK,className:_.LK,iconName:_.LK,animateIcon:_.LK,secondaryIconName:_.LK,clientOnlyWizTooltipsEnabled:_.LK,disableUpgrade:_.LK},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var DA=function(){var L=_.e.apply(this,arguments)||this;L.isGoalActive=!0;return L};
_.f(DA,_.e);DA.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
DA.prototype.progressBarChanged=function(){var L=_.QJ(this.hostElement).querySelector("#progress-bar-progress"),Z,N,S,u=(S=Number((Z=this.creatorGoalState)==null?void 0:Z.currentGoalCount)/Number((N=this.creatorGoalState)==null?void 0:N.totalGoalCount)*100)!=null?S:0,T;L.style.width=((T=Math.min(u,100))!=null?T:0)+"%"};
DA.prototype.goalStateChanged=function(){var L;this.isGoalActive=((L=this.creatorGoalState)==null?void 0:L.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var Z;L={"--yt-progress-bar-color":CZw((Z=this.creatorGoalState)==null?void 0:Z.progressBarColor)};_.Ld(this.hostElement,L)};
DA.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.gd.Object.defineProperties(DA.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var L;return this.isGoalActive&&!((L=this.creatorGoalState)==null||!L.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.creatorGoalState)==null?0:L.endTimestampMs){var Z;L=Number((Z=this.creatorGoalState)==null?void 0:Z.endTimestampMs)/1E3;return{seconds:String(L)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.creatorGoalState)==null?0:L.themedTargetImage){var Z;L=_.n((Z=this.creatorGoalState)==null?void 0:Z.themedTargetImage,ONt);return this.isAppDarkTheme()?L==null?void 0:L.imageDark:L==null?void 0:L.imageLight}}}});
_.gd.Object.defineProperties(DA,{template:{configurable:!0,enumerable:!0,get:function(){return $a5()}}});
DA.prototype.goalStateChanged=DA.prototype.goalStateChanged;DA.prototype.progressBarChanged=DA.prototype.progressBarChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],DA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Je),_.Q("design:type",Object)],DA.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],DA.prototype,"ytRendererBehavior",void 0);
_.r([_.Y({selectorArgs:["data.creatorGoalEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"creatorGoalEntity",Z)}}),
_.Q("design:type",Object)],DA.prototype,"creatorGoalState",void 0);_.r([_.Y(),_.Q("design:type",Object)],DA.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],DA.prototype,"isGoalActive",void 0);_.r([_.w("creatorGoalState","isGoalActive"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],DA.prototype,"shouldShowCountdown",null);_.r([_.w("creatorGoalState"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DA.prototype,"endTimestamp",null);
_.r([_.w("creatorGoalState"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DA.prototype,"targetIconThemedImage",null);_.r([_.iA("creatorGoalState.currentGoalCount"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DA.prototype,"progressBarChanged",null);_.r([_.iA("creatorGoalState.creatorGoalState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DA.prototype,"goalStateChanged",null);
_.r([_.ch({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],DA);_.m(DA,"yt-creator-goal-progress-flow-view-model",function(){return $a5()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var mat;var JGt;var lM=function(){return _.e.apply(this,arguments)||this};
_.f(lM,_.e);lM.prototype.attached=function(){var L,Z,N;if(this==null?0:(L=this.data)==null?0:(Z=L.pdgPurchasedBumperLoggingDirectives)==null?0:(N=Z.loggingDirectives)==null?0:N.trackingParams){var S,u,T;Fsw(this==null?void 0:(S=this.data)==null?void 0:(u=S.pdgPurchasedBumperLoggingDirectives)==null?void 0:(T=u.loggingDirectives)==null?void 0:T.trackingParams)}};
lM.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],lM.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],lM.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],lM.prototype,"data",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],lM);
_.m(lM,"yt-live-chat-item-bumper-view-model",function(){if(JGt===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;mat===void 0&&(mat=document.createElement("template"));var S=mat;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);JGt=L}L=JGt;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var C55;var rGL;_.EC=function(L,Z){this.data=L;this.actions=Z;this.data=L;this.actions=Z};
_.Y0=function(){};_.vS={};_.vS.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(L,Z){$MB(this.hostElement,L,Z)},
getNavigationEndpointPopupAction:function(L){return DMP(L,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(L,Z){l_s(this.hostElement,L,Z,this.openPopupConfig)}};var wCx=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.o3={};
_.o3.YtEndpointBehavior=[_.vS.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.X7("openPopupConfig");(this.useClickHandler=_.Ah("useClickHandler",!1))?this.hostElement.addEventListener("click",ZU(this,this.onEndpointClick_)):(rx(this.hostElement,"tap",ZU(this,this.onEndpointTap_)),rx(this.hostElement,"touchend",ZU(this,this.onEndpointTouchEnd_)));rx(this.hostElement,"touchstart",ZU(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
ZU(this,this.onEndpointTapStart_))},
onEndpointClick_:function(L){R8F(this.hostElement,L,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(L){var Z=this.hostElement,N=this.openPopupConfig,S=this.disableCommandHandlerOverride;S=S===void 0?!1:S;var u=vrh(L);if(u){u.href&&fX(u.href);var T=L.detail;var W=T.sourceEvent;T=T.preventer;W=W.button!==void 0?W.button===0&&!b4(W):T?!b4(T):!0;u.data&&W&&orP(Z,u,L,N,S)}},
onEndpointTouchEnd_:function(L){b4(L)||vrh(L)&&L.preventDefault()},
onEndpointTapStart_:function(L){khh(L)}}];_.nK={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(L){for(var Z=_.SS.getInstance(),N=_.O(Object.keys(L)),S=N.next();!S.done;S=N.next()){var u=S.value;S=L[u];if(this&&this[S]){var T=Z.actionRoutingMap.get(u);T||(T=new Map,Z.actionRoutingMap.set(u,T));Z.registerActionHandler(this,u,this[S].bind(this),T)}else u=Error("md"),u.params=S,_.H8(u)}},
unregisterActionMap:function(L){_.ue(_.SS.getInstance(),L,this)}}]};var G0=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_"+(_.c("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.c("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.c("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:_.c("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:_.c("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:_.c("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var g9;var F6=new Map;var a__=window.matchMedia("(forced-colors: active)").matches;var QKt;var X1I;var AGh=new _.iY("LOTTIE_LOADER_TOKEN");_.KK=_.p(function(L){var Z=L.data;var N=L.className;var S=L.animationName;var u=L.animationRef;var T=L.elRefForInterop;var W=_.OV("lottie-component"),V;_.zs(function(){var G;return void((G=V)==null?void 0:G.destroy())});
var M;_.ph(function(){var G=_.JW(S);if(G!==M){M=G;var D=Object.assign({},{animationName:G,animationRef:_.JW(u)},_.JW(Z));try{_.GR().resolve(AGh)().then(function(R){var K;(K=V)==null||K.destroy();var U,d;K=(d=T==null?void 0:(U=T())==null?void 0:U.value)!=null?d:W.value;U=D.animationRef;d=D.listeners;R=R.loadAnimation(Object.assign({},{container:K},D.animationConfig));U&&(U.lottieEl=R);if(d)for(K=_.O(Object.entries(d)),U=K.next();!U.done;U=K.next())d=_.O(U.value),U=d.next().value,(d=d.next().value)&&
R.addEventListener(U,d);V=R})}catch(R){G=R;
var l="LottieComponent error.";G.message&&(l+=" Original description: "+G.message);_.Xv(G,l);_.Q7(G);var v;((v=D.listeners)==null?0:v.error)&&D.listeners.error(G)}}},"nrJISd");
return _.g(bv_,{cond:function(){return!(T==null?0:T())},
then:function(){return _.g("lottie-component",{class:_.qg("ytLottieComponentHost",N),el:W})}})},"Y");_.CY(_.p(function(L){return _.g("ytd-lottie-player",{id:L.id,hidden:L.hidden,class:L.className,"aria-label":L.ariaLabel,style:"display: block;"},_.g(_.KK,{data:L.data,animationName:function(){var Z;return((Z=L.data().animationConfig)==null?void 0:Z.name)||""},
animationRef:function(){return L.data().animationRef}}))},"Z"),"ytd-lottie-player",{props:{data:_.LK,
id:_.LK,hidden:_.LK,className:_.LK,ariaLabel:_.LK}});var fK=function(){var L=_.e.apply(this,arguments)||this;L.animationRef={};L.delhiIconsEnabled=_.c("enable_web_delhi_icons");return L};
_.f(fK,_.e);_.t=fK.prototype;
_.t.handlePropertyChange=function(){var L=this.animatedIcon,Z=this.active,N=this.isDarkTheme;if(L){var S=this.previousActive!==Z;this.previousActive=Z;this.animationRef.lottieEl?S&&this.toggleAnimation(Z,L.totalFrames):Z?this.initializeAnimationAsToggled(L.lottiePlayerProps,L.totalFrames):this.initializeAnimationAsUntoggled(L.lottiePlayerProps);L.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=L.type;this.lottiePlayerProps=this.computeLottiePlayerProps(L,N)}};
_.t.computeLottiePlayerProps=function(L,Z){var N=this.deepCloneLottiePlayerProps(L);Z?(Z=L.nameDarkTheme,L=L.pathDarkTheme):(Z=L.name,L=L.path);N.animationConfig.name=Z;(Z=F6.get(L))?N.animationConfig.animationData=Z:N.animationConfig.path=L;return N};
_.t.initializeAnimationAsToggled=function(L,Z){L.animationConfig.initialSegment=[Z-1,Z]};
_.t.initializeAnimationAsUntoggled=function(L){L.animationConfig.initialSegment=void 0};
_.t.toggleAnimation=function(L,Z){if(L){var N;(N=this.animationRef.lottieEl)==null||N.playSegments([0,Z],!0)}else{var S;(S=this.animationRef.lottieEl)==null||S.playSegments([0,1],!0)}};
_.t.deepCloneLottiePlayerProps=function(L){var Z=Object.assign({},L.lottiePlayerProps.animationConfig);L=Object.assign({},L.lottiePlayerProps);L.animationConfig=Z;return L};
fK.prototype.handlePropertyChange=fK.prototype.handlePropertyChange;_.r([_.Y(),_.Q("design:type",Object)],fK.prototype,"animatedIcon",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],fK.prototype,"active",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],fK.prototype,"isDarkTheme",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],fK.prototype,"animatedIconType",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],fK.prototype,"previousActive",void 0);
_.r([_.Y(),_.Q("design:type",Object)],fK.prototype,"lottiePlayerProps",void 0);_.r([_.Y(),_.Q("design:type",Object)],fK.prototype,"animationRef",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],fK.prototype,"delhiIconsEnabled",void 0);_.r([_.iA("animatedIcon","active","isDarkTheme"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fK.prototype,"handlePropertyChange",null);_.r([_.ch({is:"yt-animated-icon",disableElementRegistration:!0})],fK);
_.m(fK,"yt-animated-icon",function(){if(X1I===void 0){var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;QKt===void 0&&(QKt=document.createElement("template"));var S=QKt;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);X1I=L}L=X1I;return L},{mode:2});var H3O;var BO5;var pCB=_.p(function(L){var Z=_.OV("span"),N=Jh(function(){return{value:null,cancelled:!1}});
_.zs(function(){N.cancelled=!0});
var S=_.wJ(L.data,{equals:function(u,T){return u.iconName===T.iconName&&u.iconStyle===T.iconStyle&&u.iconSize===T.iconSize&&u.iconSetName===T.iconSetName&&u.iconSelected===T.iconSelected}},"AoOoyf");
_.ph(function(){var u,T=(u=L.options)==null?void 0:u.call(L);Prx(Z,N,S(),T)},"Tie9e");
return _.g("span",{class:"yt-icon-shape",el:Z})},"aa");
pCB.idomCompat=!0;var N8s=["youtube_fill","youtube_outline"];var xas=new _.aN({type:"iconset",value:void 0}),kX=function(){var L=_.e.apply(this,arguments)||this;L.isDarkTheme=document.documentElement.hasAttribute("dark");L.iconName="";L.iconsetName="yt-icons";L.iconset=null;L.missingIconSet=!1;L.iconType=null;L.iconShapeDataSignal=_.nh(void 0,void 0,"ZwOn2");L.renderingOptionsSignal=_.nh({iconWidth:"100%",iconHeight:"100%",iconFilter:L.iconFilter,iconColor:L.gradientColor},void 0,"UgqF6d");L.wizHasRendered=!1;L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return L};
_.f(kX,_.e);kX.prototype.onDarkModeToggledAction=function(L){L!==this.isDarkTheme&&(this.isDarkTheme=L)};
kX.prototype.handlePropertyChange=function(){var L=this,Z,N,S,u,T,W,V,M,G,D,l,v,R,K,U,d,h;return _.b(function(E){switch(E.nextAddress){case 1:if(Z=!L.icon&&!L.iconName||!L.isAttached)return E.return();N=L;S=N.icon;u=N.size;T=N.defaultToFilled;W=N.active;V=N.targetContainer;L.toggleContainerClass(V);_.c("kevlar_use_wil_icons")&&S&&(M=Dxh(S),L.iconType=M.length?M[1]:null);if(S){E.jumpTo(2);break}L.iconsetName="";L.iconName="";return E.yield(L.renderIcon(V,S),3);case 3:return E.return();case 2:G=qfM(S);
D=Dxh(G);D.length&&(L.iconsetName=D[0],L.iconName=D[1]);if(!_.c("kevlar_use_wil_icons")){E.jumpTo(4);break}l=kX;v=L6Q;R=L.iconType;K=L.active;U=L.defaultToFilled;d=L.size;h=L.iconsetName;return E.yield(Zu0(),6);case 6:return E.yield(v.call(l,R,K,U,d,h,E.yieldResult),5);case 5:L.iconShapeData=E.yieldResult;case 4:if(L.shouldRenderIconShape(V)){E.jumpTo(7);break}return E.yield(L.determineIconSet(G,W,T,u,V),7);case 7:return E.yield(L.renderIcon(V,S),0)}})};
kX.prototype.toggleContainerClass=function(L){L?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var qfM=function(L){return!_.c("default_to_innertube_icon")||L.indexOf(":")>0?L:_.Bh(L)};
_.t=kX.prototype;_.t.determineIconSet=function(L,Z,N,S){var u=this;return _.b(function(T){return T.nextAddress==1?_.c("kevlar_system_icons")||_.X7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.X7("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?T.yield(u.switchToYtSysIconset(L,Z,N,S),3):T.jumpTo(2):T.nextAddress!=2?T.return():T.yield(u.useYtSysIconsetForMissingIcons(L,Z,N,S),0)})};
_.t.switchToYtSysIconset=function(L,Z,N,S){var u=this,T,W,V,M,G,D,l;return _.b(function(v){switch(v.nextAddress){case 1:if(!L||u.iconsetName!=="yt-icons"&&u.iconsetName!=="yt-sys-icons"){v.jumpTo(0);break}T=Dxh(L);W=T[1];W=_.y$_(W);_.c("enable_polymer_icons_replace_underscores_dash")&&W.includes("_filled")&&(W=W.replace(/_filled/g,"-filled"));return v.yield(Hh(W,!0),3);case 3:return V=v.yieldResult,v.yield(Hh(W,!1),4);case 4:if((M=v.yieldResult)||Z&&V)u.iconsetName="yt-sys-icons";u.iconName=u.getIconName(W,
Z,N,M,V);if(S===24){v.jumpTo(0);break}G="yt-sys-icons"+S+":"+u.iconName;return v.yield(Hh(G,!1,!0),6);case 6:return D=v.yieldResult,v.yield(Hh(G,!0,!0),7);case 7:l=v.yieldResult;u.iconName=u.getIconName(W,Z,N,D,l);if(!Z&&D||Z&&l)u.iconsetName="yt-sys-icons"+S;_.w7(v)}})};
_.t.getIconName=function(L,Z,N,S,u){L.includes("-filled")&&(L=L.replace("-filled",""));return u&&(Z||N)?L+"-filled":L};
_.t.useYtSysIconsetForMissingIcons=function(L,Z,N,S){var u=this,T,W;return _.b(function(V){if(V.nextAddress==1)return u.iconsetName!=="yt-icons"?V.jumpTo(0):V.yield(Hh(u.iconName,!1,!1,!0),3);if(V.nextAddress!=4)return T=V.yieldResult,V.yield(Hh(u.iconName,!1),4);W=V.yieldResult;if(T||!W)return V.jumpTo(0);u.iconsetName="yt-sys-icons";return V.yield(u.switchToYtSysIconset(L,Z,N,S),0)})};
_.t.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var Zu0=function(){return _.b(function(L){try{return L.return(_.GR().resolve(_.xD))}catch(Z){return L.return(new Promise(function(N){_.ih().parkOrScheduleJob(function(){N(_.GR().resolve(_.xD))},2,"ci")}))}})},L6Q=function(L,Z,N,S,u,T){S=S===void 0?24:S;
if(L){L=L.toLowerCase();var W=L.endsWith("_filled")||L.endsWith("-filled");Z={iconName:L,iconStyle:(Z===void 0?0:Z)||(N===void 0?0:N)||W?"youtube_fill":"youtube_outline",iconSize:S,iconSetName:u===void 0?"yt-icons":u};N=!!T.resolveIcon(Z);N||(Z.iconSize=void 0,N=!!T.resolveIcon(Z));!N&&W&&(Z.iconName=L.substring(0,L.length-7),Z.iconSize=S,N=!!T.resolveIcon(Z),N||(Z.iconSize=void 0,N=!!T.resolveIcon(Z)));N||(Z.iconStyle=void 0,N=!!T.resolveIcon(Z));N||_.Q7(new _.sr("Icon not supported",{iconName:Z.iconName,
iconStyle:Z.iconStyle,iconSize:Z.iconSize,iconType:L}));return N?Z:void 0}};
_.t=kX.prototype;_.t.shouldRenderIconShape=function(L){if(!_.c("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;L=this.getContainer(L);return!h8A(L,this.icon)};
_.t.renderIcon=function(L,Z){var N=this,S,u,T,W,V,M,G,D;return _.b(function(l){switch(l.nextAddress){case 1:if(Z&&N.icon!==Z)return l.return();S=N.getContainer(L);u=h8A(S,N.icon);if(N.shouldRenderIconShape(L)&&N.iconType)return N.applyIconShape(u,S),l.return();N.removeIconShape();if(!S)return l.return();N.iconName===""&&N.iconset&&S&&(N.removeStaticIcon(N.iconset,S),u&&N.removeAnimatedIcon(S));if(N.iconName===""&&N.iconset||!N.iconsetName||!xas)return l.return();N.iconset=xas.byKey(N.iconsetName);
if(!N.iconset)return N.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Nd(N,N.onIconsetAdded)),l.return();N.missingIconSet&&(N.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Nd(N,N.onIconsetAdded)));W=(T=u||N.isAnimatedIcon?I_G(N.icon):void 0)&&!T.lazyLoad;M=T&&((V=T)==null?void 0:V.lazyLoad)&&(T.lottiePlayerProps.animationConfig.animationData?!0:F6.get(N.isDarkTheme?T.pathDarkTheme:T.path)?!0:!1);if(W||M)return N.applyAnimatedIcon(S,T,N.iconset),l.return();if(M||
(G=T)==null||!G.lazyLoad){l.jumpTo(2);break}D=j0H(T,N.isDarkTheme);N.applyStaticIcon(N.iconset,S,N.iconName,L,u);return l.yield(D,3);case 3:return l.yield(N.renderIcon(N.targetContainer,N.icon),4);case 4:return l.return();case 2:N.applyStaticIcon(N.iconset,S,N.iconName,L,u),_.w7(l)}})};
_.t.getContainer=function(L){var Z,N=(Z=jvA(this.hostElement))==null?void 0:Z.host;Z=!!N&&!!N.polymerController;if(!L||Z)return L?this.getTargetContainer(L,N):this.hostElement};
_.t.getTargetContainer=function(L,Z){var N=_.QJ(Z).querySelector("#"+L);N||(L=new _.sr("yt-icon container missing",Z.is,L),_.CA(L));return N};
_.t.applyStaticIcon=function(L,Z,N,S,u){u&&this.removeAnimatedIcon(Z);this.removeIconShape();u=u&&!!this.iconType&&!!this.iconShapeData&&_.c("kevlar_use_wil_icons");try{u?this.applyIconShape(!1,Z):L.applyIcon(Z,N)}catch(T){this.handleError(T,S,Z)}};
_.t.applyIconShape=function(L,Z){this.iconset&&Z&&(this.removeStaticIcon(this.iconset,Z),L&&this.removeAnimatedIcon(Z));L={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var N=_.O(this.iconShapeDataSignal);Z=N.next().value;N=N.next().value;var S=_.O(this.renderingOptionsSignal),u=S.next().value;S=S.next().value;N(this.iconShapeData);S(L);if(!this.wizHasRendered)for(this.wizHasRendered=!0,L=_.O(z8t(Z,u)).next().value;L.firstChild;)_.QJ(this.hostElement).appendChild(L.firstChild)};
_.t.removeIconShape=function(){if(_.c("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.t.removeStaticIcon=function(L,Z){L.removeIcon(Z)};
_.t.applyAnimatedIcon=function(L,Z,N){this.removeStaticIcon(N,L);this.removeIconShape();var S;N=this.animatedIconElement&&((S=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:S.type)===Z.type;if(this.animatedIconElement&&N){this.animatedIconElement.polymerController.animatedIcon=Z;var u;((u=this.animatedIconElement)==null?void 0:u.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(L),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=Z,this.animatedIconElement.polymerController.active=this.active,_.c("delhi_modern_web_player_icons")?(Z=dM1(L,this.icon)&&L.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=Z?Z.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.c("kevlar_use_wil_icons")?
L.insertBefore(this.animatedIconElement,L.childNodes[0]):(L=_.QJ(L),L.insertBefore(this.animatedIconElement,L.childNodes[0]))};
_.t.removeAnimatedIcon=function(L){_.c("kevlar_use_wil_icons")?this.animatedIconElement&&L.contains(this.animatedIconElement)&&L.removeChild(this.animatedIconElement):(L=_.QJ(L),this.animatedIconElement&&L.contains(this.animatedIconElement)&&L.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.t.handleError=function(L,Z,N){_.Xv(L,this.iconName,Z,N);Z=h8A(N,this.icon);var S=!1;window.location.href.includes("JpymaW6Lh2w")?S=!0:N._svgIcon&&(N=(N=N._svgIcon.parentNode)?N.tagName:"unknown",_.Xv(L,N),N==="YT-ICON"&&L.name==="NotFoundError"?S=!0:L.name==="NotFoundError"&&Z&&(S=!0));S?_.Q7(L):_.CA(L)};
_.gd.Object.defineProperties(kX,{template:{configurable:!0,enumerable:!0,get:function(){if(BO5===void 0){var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;
H3O===void 0&&(H3O=document.createElement("template"));var S=H3O;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);BO5=L}L=BO5;return L}}});
kX.prototype.handlePropertyChange=kX.prototype.handlePropertyChange;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],kX.prototype,"actionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",String)],kX.prototype,"icon",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],kX.prototype,"active",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],kX.prototype,"defaultToFilled",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],kX.prototype,"isAnimatedIcon",void 0);
_.r([_.Y({value:24}),_.Q("design:type",Number)],kX.prototype,"size",void 0);_.r([_.Y({value:""}),_.Q("design:type",String)],kX.prototype,"targetContainer",void 0);_.r([_.Y(),_.Q("design:type",Object)],kX.prototype,"animatedIconElement",void 0);_.r([_.Y(),_.Q("design:type",Object)],kX.prototype,"isDarkTheme",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],kX.prototype,"ariaHidden",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],kX.prototype,"ariaLabel",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],kX.prototype,"role",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],kX.prototype,"tabindex",void 0);_.r([_.Y(),_.Q("design:type",String)],kX.prototype,"style",void 0);_.r([_.Y(),_.Q("design:type",String)],kX.prototype,"iconFilter",void 0);_.r([_.Y(),_.Q("design:type",String)],kX.prototype,"gradientColor",void 0);
_.r([_.iA("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],kX.prototype,"handlePropertyChange",null);_.r([_.ch({is:"yt-icon",noInjection:!0})],kX);var mMx="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),CrB=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var NBh={};NBh.YtPlaintextBehavior=[_.Ub,{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(L){L.preventDefault();L=L.clipboardData.getData("text/plain");document.execCommand("insertText",!1,L)},
preventRichTextFormatting_:function(L){_.NQ&&(L=L.detail.keyboardEvent,L.stopImmediatePropagation(),L.preventDefault())}}];var SAN;var iuV;var yG=function(){var L=_.e.apply(this,arguments)||this;L.ignoreShadyDom=!1;L.hasChange_=!1;L.hasSetTitle_=!1;L.useIOObserverForVisibilityLogging_=_.c("kevlar_use_vimio_behavior")&&_.X7("INNERTUBE_CLIENT_NAME")==="WEB";L.ytFormattedStringObserverHandlerKeys_=void 0;return L};
_.f(yG,_.e);_.t=yG.prototype;_.t.created=function(){this.useIOObserverForVisibilityLogging_=_.c("kevlar_use_vimio_behavior")&&_.X7("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.t.ready=function(){_.X7("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_()};
_.t.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.t.detached=function(){this.unobserveIOObservers_()};
_.t.clearContents_=function(){for(var L=this.getRoot(),Z=L.lastChild;Z&&Z.tagName!=="STYLE";){try{L.removeChild(Z)}catch(N){break}Z=L.lastChild}};
_.t.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var L=_.O(this.ytFormattedStringObserverHandlerKeys_),Z=L.next();!Z.done;Z=L.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(Z.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.t.resetForAttributedString=function(){var L=this.getRoot();!L.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),L.appendChild(this.ytAttributedStringElementRef))};
_.t.resetForFormattedString=function(){var L=this.getRoot(),Z=L.querySelector("yt-attributed-string");Z&&(this.ytAttributedStringElementRef=L.removeChild(Z))};
_.t.textChanged=function(){this.textChanged_(this.text)};
_.t.textChanged_=function(L){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!L||!L.runs&&!L.simpleText;if(_.c("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var Z=this.hostElement.firstChild;Z&&Z.nodeName==="FONT";){var N=Z;Z=Z.nextSibling;this.hostElement.removeChild(N)}Z=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
N=L.simpleText;var S;!N&&((S=L.runs)==null?void 0:S.length)===1&&this.isSimpleString_(L.runs[0])&&(N=L.runs[0].text);N!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.X7("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(N!==void 0){try{Z.textContent=N}catch(u){}Z.textContent||(this.isEmpty=!0)}else L=L.runs,N!==void 0&&(L=[{text:N}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),L&&this.updateText_(L),
Z.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.t.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)};
_.t.computeAriaLabel_=function(L){return L};
_.t.computeEllipsisTruncateStyling=function(L,Z){return L&&!Z};
_.t.computeUseAttributedString=function(L){return _.c("web_replace_formatted_with_attributed_string")&&t6F(L)&&!this.disableAttributedString&&!this.enableContentEditable};
_.t.setNodeStyle_=function(L,Z){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.c("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?Z.removeAttribute("dir"):Z.setAttribute("dir","auto");Z.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");Z.style.color="";var N=null;this.noStyles||(L.bold&&(Z.classList.add("bold"),N="bold"),L.deemphasize&&(Z.classList.add("deemphasize"),N="deemphasize"),L.italics&&Z.classList.add("italic"),
L.strikethrough&&Z.classList.add("strikethrough"),L.errorUnderline&&(Z.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),L.bracket&&Z.classList.add("bracket"),L.textColor&&(Z.style.color=_.vq(L.textColor)));N!==Z.getAttribute("style-target")&&(N?Z.setAttribute("style-target",N):Z.removeAttribute("style-target"))};
_.t.setUpVisibilityLogging_=function(L,Z){var N=this;this.setNodeTrackingParams_(L,Z);var S;((S=Z.data)==null?0:S.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(L=this.ytRendererBehavior.visibilityObserver.observe(Z,function(u){var T=N.ytRendererBehavior.getVisibilityLogger();T&&T.reportShown(u)},this.ytRendererBehavior.visibilityOptionVisible_),Z=this.ytRendererBehavior.visibilityObserver.observe(Z,function(u){var T=N.ytRendererBehavior.getVisibilityLogger();
T&&T.reportHidden(u)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(L),this.ytFormattedStringObserverHandlerKeys_.push(Z))};
_.t.setNodeTrackingParams_=function(L,Z){Z.data||(Z.data={});if((L=L.loggingDirectives?L.loggingDirectives.trackingParams:null)||Z.data.trackingParams)Z.data.trackingParams=L};
_.t.computeHasLinkOnly_=function(L){return!(!L||L.length!==1||this.noEndpoints||!L[0].navigationEndpoint)};
_.t.getRoot=function(){var L=this.buildScopeDomOptions();return this.enableContentEditable?_.QJ(_.QJ(this.hostElement,L).querySelector("[contenteditable]")):_.QJ(this.hostElement,L)};
_.t.fixContenteditableScope=function(){var L=function(Z){Z&&(Z.nodeType===1&&Z.classList&&(Z.classList.add("style-scope"),Z.classList.add("yt-formatted-string")),Z.childNodes&&Z.childNodes.forEach(function(N){L(N)}))};
L(this.getRoot())};
_.t.updateText_=function(L){for(var Z=L.length,N=this.getRoot(),S=N.firstChild;S&&S.nodeName==="STYLE";)S=S.nextSibling;for(var u=0;u<Z&&S;){var T=L[u],W=_.c("remove_cr_char")&&T.text?T.text.replace("\r",""):T.text;if(this.isSimpleString_(T)&&!this.useMixedDirectionFormattedStrings)if(S.nodeName==="#text"){S.textContent!=W&&(S.textContent=W);u++;S=S.nextSibling;continue}else break;if(_.n(T,RX))break;else if(!this.noEndpoints&&T.navigationEndpoint){if(S.nodeName!=="A")break;this.setDataOnAnchor_(S,
T.navigationEndpoint)}else if(S.nodeName!=="SPAN")break;this.setNodeStyle_(T,S);this.setUpVisibilityLogging_(T,S);S.textContent!=W&&(S.textContent=W);u++;S=S.nextSibling}if(S)for(T=N.lastChild,S=u?S.previousSibling:null;T&&T!=S;){try{N.removeChild(T)}catch(V){break}T=N.lastChild}u!==Z&&this.addTextNodes_(L,u)};
_.t.addTextNodes_=function(L,Z){for(var N=document.createDocumentFragment(),S=L.length;Z<S;Z++){var u=L[Z],T=_.c("remove_cr_char")&&u.text?u.text.replace("\r",""):u.text;if(this.isSimpleString_(u)&&!this.useMixedDirectionFormattedStrings)N.appendChild(document.createTextNode(T));else{var W=_.n(u,RX);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=_.r$(W.image.thumbnails,
this.emojiSize);(u=this.get("image.accessibility.accessibilityData.label",W))?V.alt=u:W.shortcuts&&W.shortcuts.length>0?V.alt=W.shortcuts[0]:W.emojiId&&(V.alt=W.emojiId);N.appendChild(V);this.hasEmoji=!0}}else!this.noEndpoints&&u.navigationEndpoint?(V=document.createElement("a"),V.classList.add("yt-simple-endpoint"),V.setAttribute("spellcheck","false"),this.setDataOnAnchor_(V,u.navigationEndpoint)):V=document.createElement("span"),this.setNodeStyle_(u,V),this.setUpVisibilityLogging_(u,V),V.appendChild(document.createTextNode(T)),
N.appendChild(V)}}this.getRoot().appendChild(N)};
_.t.isSimpleString_=function(L){return(this.noEndpoints||!L.navigationEndpoint)&&!_.n(L,RX)&&(this.noStyles||!(L.bold||L.deemphasize||L.italics||L.strikethrough||L.errorUnderline||L.bracket||L.textColor))&&!L.loggingDirectives};
_.t.getRawText=function(){return _.jM(this.text)};
_.t.getFirstRunText=function(){var L;if(((L=this.text)==null?0:L.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.t.setFirstRunText=function(L){var Z;((Z=this.text)==null?0:Z.runs)&&this.text.runs[0]&&(this.text.runs[0].text=L,this.textChanged_(this.text))};
_.t.setDataOnAnchor_=function(L,Z){var N=this;!_.c("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(Z)||this.isSignalServiceEndpoint_(Z)?(L.onclick=this.serviceEndpointHandler_(Z),Q8(L,"#")):Nm1({text:this.text,command:Z},function(){GqA(L,Z,N.target)})};
_.t.isServiceEndpoint_=function(L){var Z;return!((Z=_.n(L==null?void 0:L.commandMetadata,_.Nj))==null||!Z.sendPost)};
_.t.isSignalServiceEndpoint_=function(L){return!!_.n(L,_.ZW)};
_.t.serviceEndpointHandler_=function(L){var Z=this;return function(N){_.H2(Z.hostElement,[L]);N.preventDefault()}};
_.t.overrideAriaLabelChanged_=function(){var L=this.getRoot();this.enableContentEditable&&L&&L.setAttribute("aria-label",this.overrideAriaLabel)};
_.t.enableContentEditableChanged_=function(){var L=this,Z=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),Z=_.QJ(this.hostElement,Z),!Z.lastChild||Z.lastChild instanceof HTMLElement&&Z.lastChild.id!=="contenteditable-root"){var N=document.createElement("div");N.id="contenteditable-root";N.setAttribute("contenteditable","true");N.setAttribute("dir","auto");N.onfocus=function(){L.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
Z.appendChild(N);this.overrideAriaLabel&&N.setAttribute("aria-label",this.overrideAriaLabel)}}else N=_.XB(this.hostElement).firstChild,N instanceof HTMLElement&&N.id==="contenteditable-root"&&_.QJ(this.hostElement,Z).removeChild(N)};
_.t.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.t.getNodesForVisibilityLogging_=function(){return _.A9(this.getRoot().childNodes,function(L){var Z;return!((Z=L.data)==null||!Z.trackingParams)})};
_.t.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.t.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var L=this.ytRendererBehavior.getVisibilityLogger();L&&this.getNodesForVisibilityLogging_().forEach(function(Z){L.reportShown(Z)})}};
_.t.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var L=this.ytRendererBehavior.getVisibilityLogger();L&&this.getNodesForVisibilityLogging_().forEach(function(Z){L.reportHidden(Z)})}};
_.gd.Object.defineProperties(yG.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.c("enable_mixed_direction_formatted_strings")}}});
yG.prototype.enableContentEditableChanged_=yG.prototype.enableContentEditableChanged_;yG.prototype.overrideAriaLabelChanged_=yG.prototype.overrideAriaLabelChanged_;yG.prototype.ellipsisTruncateChanged_=yG.prototype.ellipsisTruncateChanged_;yG.prototype.textChanged=yG.prototype.textChanged;_.r([_.y(NBh.YtPlaintextBehavior),_.Q("design:type",Object)],yG.prototype,"ytPlaintextBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],yG.prototype,"ytComponentBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],yG.prototype,"text",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],yG.prototype,"noEndpoints",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],yG.prototype,"noStyles",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yG.prototype,"isDarkTheme",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],yG.prototype,"splitLines",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yG.prototype,"forceDefaultStyle",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yG.prototype,"ellipsisTruncate",void 0);_.r([_.Y(),_.Q("design:type",Object)],yG.prototype,"ignoreShadyDom",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.Q("design:type",Boolean)],yG.prototype,"ellipsisTruncateStyling",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.Q("design:type",String)],yG.prototype,"ariaLabel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yG.prototype,"isEmpty",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.Q("design:type",Boolean)],yG.prototype,"hasLinkOnly_",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],yG.prototype,"hasEmoji",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],yG.prototype,"disableAttributedString",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],yG.prototype,"isOverlay",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],yG.prototype,"linkInheritColor",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],yG.prototype,"noPreWrap",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],yG.prototype,"userInput",void 0);_.r([_.Y({value:16}),_.Q("design:type",Number)],yG.prototype,"emojiSize",void 0);_.r([_.Y(),_.Q("design:type",String)],yG.prototype,"target",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],yG.prototype,"enableContentEditable",void 0);_.r([_.Y(),_.Q("design:type",String)],yG.prototype,"overrideAriaLabel",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],yG.prototype,"respectHtmlDir",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],yG.prototype,"respectLangDir",void 0);_.r([_.w("plaintextOnly"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],yG.prototype,"useMixedDirectionFormattedStrings",null);_.r([_.Y({computed:"computeUseAttributedString(text)"}),_.Q("design:type",Boolean)],yG.prototype,"useYtAttributedString",void 0);
_.r([_.iA("text"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yG.prototype,"textChanged",null);_.r([_.iA("ellipsisTruncate"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yG.prototype,"ellipsisTruncateChanged_",null);_.r([_.iA("overrideAriaLabel"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yG.prototype,"overrideAriaLabelChanged_",null);
_.r([_.iA("enableContentEditable"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yG.prototype,"enableContentEditableChanged_",null);_.r([_.ch({is:"yt-formatted-string",disableElementRegistration:!0})],yG);
_.m(yG,"yt-formatted-string",function(){if(iuV===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;SAN===void 0&&(SAN=document.createElement("template"));var S=SAN;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);iuV=L}L=iuV;return L});var u9t;var TBt;var tpV;var Ou5;var we=function(){var L=_.e.apply(this,arguments)||this;L.focused=!1;L.disabled=!1;L.isOverlay=!1;return L};
_.f(we,_.e);we.prototype.triggerDown=function(){if(!this.disabled){_.Az(this.hostElement,"down",!0);var L;(L=this.currentAnimation)==null||L.cancel()}};
we.prototype.triggerUp=function(){if(!this.disabled){_.Az(this.hostElement,"down",!1);var L=this.fillElement;var Z=this.strokeElement;typeof GroupEffect==="function"?(L=new GroupEffect([zn1(L),mKA(Z)]),L=new Animation(L,document.timeline)):L=new Yfs(L,Z);this.currentAnimation=L;var N;(N=this.currentAnimation)==null||N.play()}};
_.r([_.TX(".stroke"),_.Q("design:type",HTMLElement)],we.prototype,"strokeElement",void 0);_.r([_.TX(".fill"),_.Q("design:type",HTMLElement)],we.prototype,"fillElement",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],we.prototype,"focused",void 0);_.r([_.Y(),_.Q("design:type",Object)],we.prototype,"disabled",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],we.prototype,"isOverlay",void 0);_.r([_.ch({is:"yt-interaction",disableElementRegistration:!0})],we);
_.m(we,"yt-interaction",function(){if(Ou5===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;tpV===void 0&&(tpV=document.createElement("template"));var S=tpV;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Ou5=L}L=Ou5;return L},{mode:2});var Uj=function(){return _.e.apply(this,arguments)||this};
_.f(Uj,_.e);_.t=Uj.prototype;_.t.ready=function(){var L=this,Z=_.QJ(this.hostElement).querySelector("#button");Z.addEventListener("focus",function(){Sht||(Sht=new NGY);L.keyboardFocused=Sht.isKeyBoardInUse()});
Z.addEventListener("blur",function(){L.keyboardFocused=!1;L.rippleUp_()})};
_.t.computeTabIndex_=function(L){return L?-1:0};
_.t.computeButtonAriaPressed_=function(L){if(this.toggleable)return L?"true":"false"};
_.t.rippleDown_=function(){_.QJ(this.hostElement).querySelector("#interaction").triggerDown()};
_.t.rippleUp_=function(){_.QJ(this.hostElement).querySelector("#interaction").triggerUp()};
_.t.onPressedChanged_=function(){var L=_.XB(_.QJ(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.XB(_.QJ(this.hostElement).querySelector("#button")).children[0];L&&(L.active=this.pressed)};
Uj.prototype.onPressedChanged_=Uj.prototype.onPressedChanged_;Uj.prototype.rippleUp_=Uj.prototype.rippleUp_;Uj.prototype.rippleDown_=Uj.prototype.rippleDown_;_.r([_.Y(),_.Q("design:type",String)],Uj.prototype,"label",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Uj.prototype,"disabled",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Uj.prototype,"pressed",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uj.prototype,"toggleable",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],Uj.prototype,"untabbable",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Uj.prototype,"keyboardFocused",void 0);_.r([_.SA("down"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uj.prototype,"rippleDown_",null);_.r([_.SA("up"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uj.prototype,"rippleUp_",null);
_.r([_.iA("pressed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uj.prototype,"onPressedChanged_",null);_.r([_.ch({is:"yt-icon-button",disableElementRegistration:!0})],Uj);
_.m(Uj,"yt-icon-button",function(){if(TBt===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;u9t===void 0&&(u9t=document.createElement("template"));var S=u9t;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);TBt=L}L=TBt;return L},{mode:2});var W60;var VpO=function(){var L=document.body,Z=L.appendChild;if(W60===void 0){var N=document.createElement("template");_.k(N,'\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>');
W60=N}N=W60;Z.call(L,N.content)};
document.body?VpO():window.addEventListener("DOMContentLoaded",VpO);var buq=_.sc(["aria-"]),YX={};YX.YtRenderButtonBehavior=[_.B.YtRendererBehavior,_.o3.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!!_.GR().resolve(_.gv(_.VG))&&_.c("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 L=this.computeHref_(this.endpoint,!0);L?Q8(this.elements_.endpoint,L):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){L=this.buttonClass.split(" ");L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,_.Az(this.hostElement,Z,!0),this.elements_.button&&_.Az(this.elements_.button,Z,!0),this.elements_.text&&_.Az(this.elements_.text,Z,!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&&(L=null,this.buttonAccessibility&&(L=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=L:L?_.O3([_.Fr(buq)],this.elements_.button,"aria-label",L):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var L=_.GR().resolve(_.gv(_.VG));L&&(this.keyboardFocused=L.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Tx("tp-yt-paper-tooltip"):document.createElement("tp-yt-paper-tooltip"),this.elements_.tooltip.position=this.buttonTooltipPosition,this.elements_.tooltip.offset=8,this.elements_.tooltip.fitToVisibleBounds=!0,_.g0(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.g0(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(L,Z){if(Z)for(L=Z.split(" "),L=_.O(L),Z=L.next();!Z.done;Z=L.next())Z=Z.value,_.Az(this.hostElement,Z,!1),this.elements_.button&&_.Az(this.elements_.button,Z,!1),this.elements_.text&&_.Az(this.elements_.text,Z,!1)},
buttonIconChanged_:function(L){this.elements_.icon?L?(this.elements_.icon.icon=L,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.g0(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.xe(this.hostElement,"is-paper-button-with-icon",!1)):L&&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"&&_.g0(this.elements_.button).appendChild(this.elements_.icon):_.g0(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.xe(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(L){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,L){var Z=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(L){case "yt_icon_button_with_label":Z=!0;_.Az(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();L=_.g0(this.elements_.button).firstElementChild;
this.elements_.icon=L;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.g0(this.elements_.endpoint).appendChild(this.elements_.button);_.g0(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Tx("tp-yt-paper-button"):document.createElement("tp-yt-paper-button");this.elements_.text=this.getFormattedString_();
this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;this.elements_.button.raised=this.buttonRaised;_.g0(this.elements_.button).appendChild(this.elements_.text);_.g0(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":Z=!0,this.elements_.button=this.getYtIconButton_(),L=_.g0(this.elements_.button).firstElementChild,this.elements_.icon=L,this.setIconActive_(this.elements_.icon),
_.g0(this.elements_.endpoint).appendChild(this.elements_.button)}_.xe(this.hostElement,"is-icon-button",Z);_.xe(this.hostElement,"is-paper-button",!Z);_.xe(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 N;_.QJ((N=this.container.hostElement)!=null?N:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.g0(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(L){if(L!=void 0||this.disabled)this.disabled=L,this.elements_.button&&(this.elements_.button.disabled=L)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(L){_.c("kevlar_system_icons")&&L&&this.data&&(this.data.isSelected!==void 0?L.active=this.data.isSelected:this.data.isToggled!==void 0&&(L.active=this.data.isToggled))},
observeBasicPalette_:function(L){_.$0(this.hostElement,L)},
disabledChanged_:function(L){this.data&&this.set("data.isDisabled",L)},
onYtButtonTap_:function(L){if(this.disabled)L.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.H2(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(L=this.disableCommandHandlerOverride,!this.data||!this.data.command||L||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.c("handle_service_request_actions")||_.H2(this.hostElement,[this.serviceEndpoint]),
_.QT(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.c("handle_service_request_actions")?(L=[],this.serviceEndpoint&&L.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&L.push(this.data.command),L.length&&_.B2(this.hostElement,L,this.hostElement)):this.data&&this.data.command&&(L=this.data.command,L.accountUnlinkCommand||L.accountLinkCommand||L.insertAdCommand||L.insertHighlightMarkerCommand||
L.createLivestreamHighlightClipCommand||L.getVideoUploadFeedbackCommand||L.musicDeletePrivatelyOwnedEntityCommand||L.ypcCancelRecurrenceEndpoint||L.getMultiSelectCommandEndpoint?_.H2(this.hostElement,[L]):_.B2(this.hostElement,[L],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 L,Z=_.QJ((L=this.container.hostElement)!=null?L:this.container);Z.lastChild&&Z.lastChild.tagName!="STYLE";)try{Z.removeChild(Z.lastChild)}catch(N){break}},
getYtIconButton_:function(){var L=this.reuseEnabled_()?_.Tx("yt-icon-button"):document.createElement("yt-icon-button"),Z=_.g0(L).firstElementChild;if(Z&&Z.is!="yt-icon"){for(Z=_.g0(L);Z.lastChild;)Z.removeChild(Z.lastChild);Z=null}Z||(Z=this.getIcon_(),this.setIconActive_(Z),_.g0(L).appendChild(Z));return L},
reuseEnabled_:function(){return _.c("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Tx("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Tx("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.MpO={};
_.MpO.YtButtonBehavior=[YX.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var L=this.data;L&&(this._setEndpoint(this.computeEndpoint_(L)),this._setServiceEndpoint(this.computeServiceEndpoint_(L)),this._setCommand(this.computeCommand_(L)),this._setButtonIcon(this.computeButtonIcon_(L)),this._setButtonText(this.computeButtonText_(L,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(L)),this._setButtonTooltip(this.computeTooltip_(L)),this._setButtonClass(this.computeButtonClass_(L)),this._setIconPositionType(this.computeIconPositionType_(L)),this.updateRenderedElements())},
setPressedState:function(L){var Z;if((Z=this.elements_)==null?0:Z.button)this.elements_.button.pressed=!!L},
computeIconPositionType_:function(L){return L&&L.iconPosition||null},
computeEndpoint_:function(L){var Z=L&&L.navigationEndpoint,N=this.get("data.command.commandMetadata.webCommandMetadata.url"),S=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return Z?Z:L&&L.command&&L.command.modalEndpoint?L.command:N&&!S&&L.command?L.command:null},
computeServiceEndpoint_:function(L){var Z=L&&L.serviceEndpoint,N=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return Z?Z:N&&L.command?L.command:null},
computeCommand_:function(L){return L&&L.command||null},
computeButtonIcon_:function(L){return L&&L.icon&&L.icon.iconType?_.Bh(L.icon.iconType):null},
computeButtonText_:function(L,Z){return!Z&&L&&L.text||null},
computeAccessibility_:function(L){return this.get("accessibilityData.accessibilityData",L)||L&&L.accessibility||(L&&L.text?{label:this.getSimpleString(L.text)}:null)},
computeTooltip_:function(L){return L?L.isDisabled&&L.disabledTooltip||L.tooltip||null:null},
computeButtonClass_:function(L){var Z=L&&L.style?L.style.toLowerCase().replace(/_/g,"-")+" ":"";Z+=L&&L.size?L.size.toLowerCase().replace(/_/g,"-")+" ":"";L.colorData&&L.colorData.basicColorPaletteData&&L.colorData.basicColorPaletteData.borderColor&&(Z+="palette-with-border");return Z.trim()}}];var D9={};var gIL;var GSY;var F6h,$KL=function(){return F6h!==void 0?F6h:F6h=document.createElement("template")};
document.head.appendChild($KL().content);var DKq;var lyL,vIV=function(){return lyL!==void 0?lyL:lyL=document.createElement("template")};
document.head.appendChild(vIV().content);var oIt;var Rns,cXO=function(){return Rns!==void 0?Rns:Rns=document.createElement("template")};
document.head.appendChild(cXO().content);var nIt;var K6h=document.head,fyt=K6h.appendChild,kSq;if(nIt===void 0){var yXQ=document.createElement("template");_.k(yXQ,"\x3c!--css-build:shady--\x3e");yXQ.content.insertBefore(cXO().content.cloneNode(!0),yXQ.content.firstChild);nIt=yXQ}kSq=nIt;fyt.call(K6h,kSq.content);var wIN=document.head,UKt=wIN.appendChild,YAN;if(oIt===void 0){var ens=document.createElement("template");_.k(ens,"\x3c!--css-build:shady--\x3e");ens.content.insertBefore(vIV().content.cloneNode(!0),ens.content.firstChild);oIt=ens}YAN=oIt;UKt.call(wIN,YAN.content);var IyY=document.head,dKV=IyY.appendChild,ayl;if(DKq===void 0){var hnt=document.createElement("template");_.k(hnt,"\x3c!--css-build:shady--\x3e");hnt.content.insertBefore($KL().content.cloneNode(!0),hnt.content.firstChild);DKq=hnt}ayl=DKq;dKV.call(IyY,ayl.content);var s5t;_.l4("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");s5t=_.c("web_button_rework")&&_.Ah("BUTTON_REWORK")||_.c("web_button_rework_with_live");_.eK=function(){return _.e.apply(this,arguments)||this};
_.f(_.eK,_.e);_.eK.prototype.created=function(){this.openPopupConfig=_.X7("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.eK.prototype.onYtNavigate_=function(L){var Z=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(L.detail.endpoint);Z&&(this.ytOpenPopupBehavior.openPopup(Z),L.stopPropagation(),L.preventDefault())};
_.gd.Object.defineProperties(_.eK,{template:{configurable:!0,enumerable:!0,get:function(){if(GSY===void 0){var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
var Z=L.content,N=Z.insertBefore;gIL===void 0&&(gIL=document.createElement("template"));var S=gIL;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);GSY=L}L=GSY;return L}}});
_.eK.prototype.onYtNavigate_=_.eK.prototype.onYtNavigate_;_.r([_.y(_.vS.YtOpenPopupBehavior),_.Q("design:type",Object)],_.eK.prototype,"ytOpenPopupBehavior",void 0);_.r([_.y(_.MpO.YtButtonBehavior),_.Q("design:type",Object)],_.eK.prototype,"ytButtonBehavior",void 0);_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],_.eK.prototype,"onYtNavigate_",null);
_.r([_.ch({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:s5t})],_.eK);var j5I;var EIY=_.c("web_button_rework")&&_.Ah("BUTTON_REWORK")||_.c("web_button_rework_with_live"),I3=function(){var L=_.e.apply(this,arguments)||this;L.isPressed=!1;L.forceIconButton=!1;L.forceIconOnly=!1;L.forceModernIconButton=!1;L.skipCommandHandling=!1;L.alignByText=!1;L.fitToVisibleBounds=!0;L.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};L.onTap=function(Z){_.QT(L.hostElement,"yt-service-request-sent-button-renderer",Z)};
return L};
_.f(I3,_.e);_.t=I3.prototype;_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.t.onClick=function(L){var Z,N=this.disabled||((Z=this.data)==null?void 0:Z.isDisabled);Z=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");N&&Z&&L.stopPropagation()};
_.t.computeIcon=function(){var L,Z,N=(L=this.data)==null?void 0:(Z=L.icon)==null?void 0:Z.iconType;if(N)return _.Bh(N)};
_.t.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.t.handleUpdateButtonAction=function(L){L=_.n(L,rp0);var Z=_.n(L==null?void 0:L.updatedButton,_.xZ);if(this.data&&L&&Z){var N=this.data;N.targetId&&L.targetId&&N.targetId===L.targetId&&(this.data=Z)}};
_.gd.Object.defineProperties(I3.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var L=this;if(this.data){var Z=B2_({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.QT(L.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.QT(L.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});Z.alignByText=this.alignByText;return Z}}}});
_.gd.Object.defineProperties(I3,{template:{configurable:!0,enumerable:!0,get:function(){if(j5I===void 0){var L=document.createElement("template");_.k(L,'\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>');j5I=L}L=j5I;return L}}});
I3.prototype.onClick=I3.prototype.onClick;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],I3.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],I3.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],I3.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],I3.prototype,"isPressed",void 0);
_.r([_.Y(),_.Q("design:type",Object)],I3.prototype,"forceIconButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],I3.prototype,"forceIconOnly",void 0);_.r([_.Y(),_.Q("design:type",Object)],I3.prototype,"forceModernIconButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],I3.prototype,"skipCommandHandling",void 0);_.r([_.Y(),_.Q("design:type",Object)],I3.prototype,"alignByText",void 0);_.r([_.Y(),_.Q("design:type",Object)],I3.prototype,"buttonTooltipPosition",void 0);
_.r([_.Y(),_.Q("design:type",Object)],I3.prototype,"fitToVisibleBounds",void 0);_.r([_.Y({computed:"computeTooltip(data)"}),_.Q("design:type",Object)],I3.prototype,"tooltip",void 0);_.r([_.Y(),_.Q("design:type",Object)],I3.prototype,"overrides",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],I3.prototype,"disabled",void 0);_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],I3.prototype,"onClick",null);
_.r([_.w("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],I3.prototype,"computedButtonShape",null);_.r([_.ch({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!EIY,cssBuildOptOut:!0}),_.ch({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!EIY,cssBuildOptOut:!0})],I3);var PiN;var pIL;var de=function(){var L=_.e.apply(this,arguments)||this;L.empty_=!0;L.loadTime=Infinity;L.pendingPaint=!1;L.hasChange_=!1;L.oldThumbnail_=null;L.oldDelayedSrc_="";L.objectURL_=null;return L};
_.f(de,_.e);_.t=de.prototype;_.t.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.t.ready=function(){var L=this.shouldShowPlaceholder_();_.Az(this.hostElement,"no-transition",!0);L&&this.hostElement.classList.add("with-placeholder")};
_.t.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.t.isThumbPreloaded_=function(L){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",L)};
_.t.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||zn0};
_.t.computeThumbnailSrc_=function(L){return L&&L.thumbnails?_.r$(L.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.t.computeAlt_=function(){var L=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&L||""};
_.t.thumbnailChanged_=function(){var L=_.O([this.thumbnail,this.oldThumbnail_]),Z=L.next().value;L=L.next().value;this.oldThumbnail_=Z;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(L=this.computeThumbnailSrc_(L),this.computeThumbnailSrc_(Z)===L))return;_.c("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(Z)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):Z&&_.Ah("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.bN(this,this.onReload_):_.bN(this,this.onShow_):this.resetImage_();Z&&(this.hostElement.style.opacity=""+Z.opacity)}};
_.t.delayedSrcChanged_=function(){var L=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===L||this.resetImage_()};
_.t.setSrc_=function(L){L?(_.QJ(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.QJ(this.hostElement).querySelector("#img").src=L):(_.QJ(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.t.resetImage_=function(){qfh(this.hostElement);this.empty_=!0;this.setSrc_(zn0);this.ytRendererBehavior.invalidate(!1)};
_.t.observePlaceholderColor_=function(){var L=this.thumbnail&&this.thumbnail.placeholderColor;L?this.hostElement.style.backgroundColor=_.vq(L):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.t.onLoad_=function(){_.QJ(this.hostElement).querySelector("#img").src&&_.QJ(this.hostElement).querySelector("#img").src!==zn0&&(xax(this.hostElement),this.notifyOnLoaded&&_.QT(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.t.onError_=function(){var L=this;if(_.c("web_use_cache_for_image_fallback"))TBH(_.QJ(this.hostElement).querySelector("#img").src).then(function(Z){L.objectURL_=_.Jf(Z).toString();L.setSrc_(L.objectURL_)}).catch(function(){_.c("kevlar_woffle_fallback_image")&&L.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.t.onPrescanVisible=function(){this.onShow_()};
_.t.onVisible=function(){if(_.c("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.t.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var L=this.computeSrc_();L!==_.QJ(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(L))}};
_.t.onReload_=function(){this.empty_=!1;var L=this.computeSrc_();L!==_.QJ(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(L))};
_.t.shouldShowPlaceholder_=function(){return _.c("kevlar_thumbnail_bg")};
de.prototype.observePlaceholderColor_=de.prototype.observePlaceholderColor_;de.prototype.delayedSrcChanged_=de.prototype.delayedSrcChanged_;de.prototype.thumbnailChanged_=de.prototype.thumbnailChanged_;_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],de.prototype,"alt",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],de.prototype,"ariaHidden",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],de.prototype,"ariaLabel",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],de.prototype,"hidden",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],de.prototype,"id",void 0);_.r([_.y(_.Ae.YtVisibilityBehavior),_.Q("design:type",Object)],de.prototype,"ytVisibilityBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],de.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",String)],de.prototype,"delayedSrc",void 0);
_.r([_.Y(),_.Q("design:type",Object)],de.prototype,"thumbnail",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],de.prototype,"loaded",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],de.prototype,"notifyOnLoaded",void 0);_.r([_.Y(),_.Q("design:type",Number)],de.prototype,"height",void 0);_.r([_.Y(),_.Q("design:type",Number)],de.prototype,"width",void 0);_.r([_.Y({value:function(){return"width"}}),
_.Q("design:type",String)],de.prototype,"dimension",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],de.prototype,"fit",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],de.prototype,"fitHeight",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],de.prototype,"fitWidth",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],de.prototype,"objectFit",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],de.prototype,"objectPosition",void 0);_.r([_.Y(),_.Q("design:type",String)],de.prototype,"preferredThumbnail",void 0);_.r([_.Y({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.Q("design:type",String)],de.prototype,"alt_",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],de.prototype,"sharedTooltipText",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],de.prototype,"ftlEligible",void 0);_.r([_.Y({value:void 0}),_.Q("design:type",String)],de.prototype,"observeHiddenOption",void 0);_.r([_.Y({value:"observe_once"}),_.Q("design:type",String)],de.prototype,"observePrescanOption",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],de.prototype,"roundedContainer",void 0);
_.r([_.Vr("thumbnail"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],de.prototype,"thumbnailChanged_",null);_.r([_.Vr("delayedSrc"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],de.prototype,"delayedSrcChanged_",null);_.r([_.iA("thumbnail.placeholderColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],de.prototype,"observePlaceholderColor_",null);
_.r([_.ch({is:"yt-img-shadow",disableElementRegistration:!0})],de);var zn0=_.Ah("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.rD()(de,"yt-img-shadow",function(){if(pIL===void 0){var L=document.createElement("template");_.k(L,'\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">');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;PiN===void 0&&(PiN=document.createElement("template"));var S=PiN;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);pIL=L}L=pIL;return L},{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 Zp1;_.a3=new _.iY("SCREEN_MANAGER_TOKEN");Zp1=new _.iY("LOG_INITIAL_SCREEN_TOKEN");var mKQ=_.oV({entities:{}});_.hy=_.RV(mKQ)(mKQ.entities,{selectSfvAudioItemPlaybackState:function(L,Z){var N,S;L=(S=_.Lk(L,"sfvAudioItemCurrentlyPlayingEntity",Z))!=null?S:void 0;return(N=L==null?void 0:L.sfvAudioItemPlaybackState)!=null?N:void 0},
playlistLoopStateEntitySelector:Lp_,toggleMenuServiceItemEntitySelector:ZRH});_.sj=_.p(function(L){function Z(L1){return _.n(L1,_.NU)}
function N(){var L1=S().isTogglingDisabled||U()&&S().toggledIsTogglingDisabled,Fw=L1||v()?U():!U();d(Fw);E(!1);if(!L1){var GB;(GB=W)==null||GB(!!Fw)}var Yt;((Yt=T)==null?0:Yt())||_.U$(_.GR().resolve(_.a3),S().trackingParams);var lH;if(!Fw||!Z(S().defaultButtonViewModel)||(lH=T)!=null&&lH()){var RF;!Z(S().toggledButtonViewModel)||((RF=T)==null?0:RF())||_.U$(_.GR().resolve(_.a3),Z(S().toggledButtonViewModel).trackingParams)}else _.U$(_.GR().resolve(_.a3),Z(S().defaultButtonViewModel).trackingParams)}
var S=L.data,u=L.buttonShapeOverrides,T=L.disableExplicitClickLogging,W=L.onToggle,V=L.style,M=L.useOutlinedIcon,G=L.className,D=function(){var L1,Fw;return U()?(L1=L.animatedTextPropsToggled)==null?void 0:L1.call(L):(Fw=L.animatedTextPropsDefault)==null?void 0:Fw.call(L)},l=_.wJ(function(){return D()?Object.assign({},D(),{shouldAnimate:h()}):void 0},void 0,"Zp4uoe"),v=function(){var L1;
return((L1=C())==null?void 0:L1.isToggled)!==void 0},R=_.O(_.i4(function(){var L1,Fw,GB;
return v()?(L1=C())==null?void 0:L1.isToggled:(GB=u==null?void 0:(Fw=u())==null?void 0:Fw.toggled)!=null?GB:S().isToggled})),K=R.next().value;
R=R.next().value;var U=K,d=R;R=_.O(_.i4(function(){var L1,Fw;return(L1=L.animatedTextPropsToggled)==null?void 0:(Fw=L1.call(L))==null?void 0:Fw.shouldAnimate}));
K=R.next().value;R=R.next().value;var h=K,E=R;K=_.O(_.nh(!1,void 0,"mq3Zfe"));var A=K.next().value,J=K.next().value,C=_.VB(function(L1){a:{var Fw=S().entityKey,GB=S().toggledStateEntitySelectorType;if(GB)switch(GB){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!Fw)break;L1=_.hy.selectSfvAudioItemPlaybackState(L1,Fw);if(L1==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){L1={isToggled:!0};break a}if(L1){L1={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":L1=
{isToggled:_.iRs(L1).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":L1={isToggled:_.iRs(L1).includes("engagement-panel-live-chat-item-section")};break a;default:_.Q7(new _.sr("Error: entitySelectorType defined but not matched in selector.",L1,GB))}L1=void 0}return L1}),X=function(){return Object.assign({},u==null?void 0:u(),{onToggle:N,
toggleable:!0,toggled:U(),focused:A()})};
return _.g("toggle-button-view-model",{"on:focusin":_.Z9(function(){var L1=_.GR().resolve(_.gv(_.VG));L1&&J(L1.isKeyBoardInUse());return!1}),
"on:focusout":_.Z9(function(){J(!1);return!1})},_.g(_.F,{cond:function(){return U()?Z(S().toggledButtonViewModel):Z(S().defaultButtonViewModel)},
then:function(L1){return _.g(_.$X,{data:L1,className:G,style:V,useOutlinedIcon:M,buttonOverrides:X,animatedTextProps:l})}}))},"ca");
_.sj.idomCompat={callbacks:{onToggle:!0}};_.CY(_.p(function(L){return _.g("yt-toggle-button-view-model",{class:function(){var Z;return(Z=L.scopingClassName)==null?void 0:Z.call(L)}},_.g(_.sj,{data:function(){var Z;
return(Z=L.data)==null?void 0:Z.call(L)},
buttonShapeOverrides:function(){var Z;return(Z=L.overrides)==null?void 0:Z.call(L)},
animatedTextPropsDefault:function(){var Z;return(Z=L.animatedTextPropsDefault)==null?void 0:Z.call(L)},
animatedTextPropsToggled:function(){var Z;return(Z=L.animatedTextPropsToggled)==null?void 0:Z.call(L)},
disableExplicitClickLogging:function(){var Z;return(Z=L.disableExplicitClickLogging)==null?void 0:Z.call(L)},
onToggle:function(Z){var N;return(N=L.onToggle)==null?void 0:N.call(L,Z)},
style:function(){var Z;return(Z=L.style)==null?void 0:Z.call(L)},
useOutlinedIcon:function(){var Z;return(Z=L.useOutlinedIcon)==null?void 0:Z.call(L)},
className:function(){var Z;return(Z=L.className)==null?void 0:Z.call(L)}}))},"da"),"yt-toggle-button-view-model",{props:{data:_.LK,
buttonShapeOverrides:_.LK,overrides:_.LK,animatedTextPropsDefault:_.LK,animatedTextPropsToggled:_.LK,disableExplicitClickLogging:_.LK,onToggle:_.zl,style:_.LK,useOutlinedIcon:_.LK,className:_.LK,scopingClassName:_.LK}});var jK=function(){return _.e.apply(this,arguments)||this};
_.f(jK,_.e);jK.prototype.onTap=function(L){L.stopPropagation();L=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.vt("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:L})):this.ytLiveChatReduxBehavior.dispatch(_.Mr("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:L}))};
_.gd.Object.defineProperties(jK.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.engagementState)==null?void 0:L.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var L=_.n(this.data.toggleButton,_.iD),Z;if(Number(((Z=this.likeCountState)==null?void 0:Z.likeCountIfIndifferentNumber)||"0")===0){var N;Z=((N=this.data.likeCountPlaceholder)==null?void 0:N.content)||""}else{var S,u,T;Z=((S=this.likeCountState)==null?void 0:(u=S.likeCountIfIndifferent)==null?void 0:u.content)||((T=this.data.likeCountPlaceholder)==null?void 0:T.content)||""}var W,V;N=((W=this.likeCountState)==null?void 0:(V=
W.likeCountIfLiked)==null?void 0:V.content)||"1";W=_.n(L.toggledButtonViewModel,_.NU);return Object.assign({},L,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.n(L.defaultButtonViewModel,_.NU),{title:Z})},toggledButtonViewModel:{buttonViewModel:Object.assign({},W,{title:N})}})}}}});
jK.prototype.onTap=jK.prototype.onTap;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],jK.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Je),_.Q("design:type",Object)],jK.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],jK.prototype,"data",void 0);
_.r([_.Y({selectorArgs:["data.likeCountEntityKey"],selector:ueF}),_.Q("design:type",Object)],jK.prototype,"likeCountState",void 0);_.r([_.Y({selectorArgs:["data.engagementStateKey"],selector:grF}),_.Q("design:type",Object)],jK.prototype,"engagementState",void 0);_.r([_.w("data","engagementState"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],jK.prototype,"isLiked",null);
_.r([_.w("data","likeCountState","isLiked"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jK.prototype,"toggleButton",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],jK.prototype,"onTap",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],jK);
_.m(jK,"yt-live-chat-like-button-view-model",function(){if(rGL===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;C55===void 0&&(C55=document.createElement("template"));var S=C55;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);rGL=L}L=rGL;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var JXM;var CiV;var Ej=function(){return _.e.apply(this,arguments)||this};
_.f(Ej,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ej.prototype,"data",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],Ej);
_.m(Ej,"yt-live-chat-paid-message-footer-renderer",function(){if(CiV===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;JXM===void 0&&(JXM=document.createElement("template"));var S=JXM;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);CiV=L}L=CiV;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var rXO;var Q55;var XIl;var AXt,HuV=function(){if(AXt!==void 0)return AXt;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;XIl===void 0&&(XIl=document.createElement("template"));var S=XIl;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return AXt=L};var PS=function(){return _.e.apply(this,arguments)||this};
_.f(PS,_.e);PS.prototype.onTap=function(L){L.stopPropagation()};
_.gd.Object.defineProperties(PS.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var L=_.n(this.data.replyButton,_.NU),Z,N,S,u,T,W,V,M=Number(((Z=this.replyCountState)==null?void 0:Z.replyCountNumber)||"0")===0?(N=this.data)==null?void 0:(S=N.replyCountPlaceholder)==null?void 0:S.content:((u=this.replyCountState)==null?void 0:(T=u.replyCount)==null?void 0:T.content)||((W=this.data)==null?void 0:(V=W.replyCountPlaceholder)==null?void 0:V.content)||"",G;return Object.assign({},
L,{title:M,accessibilityText:(G=this.replyCountState)==null?void 0:G.replyButtonAccessibilityText})}}}});
_.gd.Object.defineProperties(PS,{template:{configurable:!0,enumerable:!0,get:function(){return HuV()}}});
PS.prototype.onTap=PS.prototype.onTap;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],PS.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Je),_.Q("design:type",Object)],PS.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],PS.prototype,"data",void 0);
_.r([_.Y({selectorArgs:["data.replyCountEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"replyCountEntity",Z)}}),
_.Q("design:type",Object)],PS.prototype,"replyCountState",void 0);_.r([_.w("data","replyCountState"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],PS.prototype,"buttonViewModel",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],PS.prototype,"onTap",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],PS);
_.m(PS,"yt-live-chat-reply-button-view-model",function(){return HuV()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var BB0;var xKN;var pK=function(){var L=_.e.apply(this,arguments)||this;L.ariaLabel="";return L};
_.f(pK,_.e);
pK.prototype.dataChanged=function(){for(var L=(0,_.qJ)(_.QJ(this.hostElement).querySelector("#image"));L.firstChild;)L.removeChild(L.firstChild);if(this.data)if(this.data.icon){var Z=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(Z.polymerController.icon="yt-sys-icons:shield-filled",Z.polymerController.defaultToFilled=!0):Z.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();L.appendChild(Z)}else if(this.data.customThumbnail){Z=document.createElement("img");
var N=_.C5P(this.data.customThumbnail.thumbnails,16);N?(Z.src=N,L.appendChild(Z),Z.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Q7(new _.sr("Could not compute URL for thumbnail",this.data.customThumbnail))}};
pK.prototype.identity=function(L){return L};
pK.prototype.computeType=function(L){return X4(L||void 0)};
pK.prototype.dataChanged=pK.prototype.dataChanged;_.r([_.Y(),_.Q("design:type",Object)],pK.prototype,"data",void 0);_.r([_.Y({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.Q("design:type",Object)],pK.prototype,"ariaLabel",void 0);_.r([_.Y({computed:"computeType(data)",reflectToAttribute:!0}),_.Q("design:type",String)],pK.prototype,"type",void 0);
_.r([_.Y({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.Q("design:type",String)],pK.prototype,"sharedTooltipText",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.c("live_chat_enable_new_moderator_badge")}}),
_.Q("design:type",Boolean)],pK.prototype,"enableNewModeratorBadge",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pK.prototype,"dataChanged",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],pK);
_.m(pK,"yt-live-chat-author-badge-renderer",function(){if(xKN===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;BB0===void 0&&(BB0=document.createElement("template"));var S=BB0;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);xKN=L}L=xKN;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var qA0;var Lsh;var zx=function(){return _.e.apply(this,arguments)||this};
_.f(zx,_.e);_.t=zx.prototype;_.t.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"}}}}};
_.t.computeBadgesInsideChip=function(L){return L?L.filter(function(Z){return X4(Z.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.t.computeBadgesOutsideChip=function(L){return this.prependChatBadges||!L?[]:L.filter(function(Z){Z=X4(Z.liveChatAuthorBadgeRenderer);return Z!=="verified"&&Z!=="owner"})};
_.t.computeBadgesBeforeChip=function(L){return this.prependChatBadges&&L?L.filter(function(Z){Z=X4(Z.liveChatAuthorBadgeRenderer);return Z!=="verified"&&Z!=="owner"}):[]};
_.t.computeIsHighlighted=function(L,Z){var N=!!WGx(L,"owner"),S=!!WGx(L,"verified");L=!!WGx(L,"moderator");return(N||S&&!L)&&!Z};
_.t.computeAuthorType=function(L){return OtL(L)};
_.t.computeAuthorClass=function(L,Z){return Z?(L?L+" ":"")+"single-line":L};
_.t.onSeedColorChanged=function(){_.c("live_chat_author_name_color_usernames")||_.c("live_chat_seed_color_usernames")||_.c("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):_.c("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
zx.prototype.onSeedColorChanged=zx.prototype.onSeedColorChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],zx.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],zx.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],zx.prototype,"authorName",void 0);_.r([_.Y(),_.Q("design:type",Array)],zx.prototype,"authorBadges",void 0);
_.r([_.Y({computed:"computeAuthorType(authorBadges)"}),_.Q("design:type",String)],zx.prototype,"authorType",void 0);_.r([_.Y({computed:"computeAuthorClass(authorType, singleLine)"}),_.Q("design:type",String)],zx.prototype,"authorClass",void 0);_.r([_.Y({computed:"computeBadgesInsideChip(authorBadges)"}),_.Q("design:type",Array)],zx.prototype,"badgesInsideChip",void 0);_.r([_.Y({computed:"computeBadgesOutsideChip(authorBadges)"}),_.Q("design:type",Array)],zx.prototype,"badgesOutsideChip",void 0);
_.r([_.Y({computed:"computeBadgesBeforeChip(authorBadges)"}),_.Q("design:type",Array)],zx.prototype,"badgesBeforeChip",void 0);_.r([_.Y({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],zx.prototype,"isHighlighted",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],zx.prototype,"singleLine",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],zx.prototype,"disableHighlighting",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],zx.prototype,"dashboardMoneyFeed",void 0);_.r([_.Y({value:_.c("live_chat_prepend_badges"),reflectToAttribute:!0}),_.Q("design:type",Boolean)],zx.prototype,"prependChatBadges",void 0);_.r([_.Y(),_.Q("design:type",String)],zx.prototype,"authorNameColor",void 0);_.r([_.TX("#author-name"),_.Q("design:type",HTMLDivElement)],zx.prototype,"username",void 0);
_.r([_.iA("authorNameColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zx.prototype,"onSeedColorChanged",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],zx);
_.m(zx,"yt-live-chat-author-chip",function(){if(Lsh===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;qA0===void 0&&(qA0=document.createElement("template"));var S=qA0;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Lsh=L}L=Lsh;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var ZwV;var N2M;var mA=function(){var L=_.e.apply(this,arguments)||this;L.debounceCommand=_.cz(function(Z){L.ytComponentBehavior.resolveCommand(Z)},1500);
return L};
_.f(mA,_.e);mA.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var L=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",Z,N,S=this.isHearted?(Z=this.data)==null?void 0:Z.unheartCommand:(N=this.data)==null?void 0:N.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.vt("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:L}));(L=_.KY(S))&&this.debounceCommand(L)}};
_.gd.Object.defineProperties(mA.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var L,Z;if(!((L=this.data)==null?0:(Z=L.creatorThumbnail)==null?0:Z.sources))return{};L={thumbnails:[]};Z={};Z.url=this.data.creatorThumbnail.sources[0].url;L.thumbnails.push(Z);return L}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.engagementState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((Z=this.engagementState)==null?void 0:Z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.engagementState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((Z=this.engagementState)==null?void 0:Z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.engagementState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return((L=this.engagementState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((Z=this.engagementState)==null?void 0:Z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((N=this.engagementState)==null?void 0:N.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}}});
mA.prototype.onTap=mA.prototype.onTap;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],mA.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Je),_.Q("design:type",Object)],mA.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],mA.prototype,"data",void 0);
_.r([_.Y({selectorArgs:["data.engagementStateKey"],selector:grF}),_.Q("design:type",Object)],mA.prototype,"engagementState",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mA.prototype,"thumbnailDetails",null);_.r([_.w("data","engagementState"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],mA.prototype,"isHearted",null);_.r([_.w("data","engagementState"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],mA.prototype,"isEditable",null);
_.r([_.w("data","engagementState"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],mA.prototype,"showCreatorView",null);_.r([_.w("data","engagementState"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],mA.prototype,"showButton",null);_.r([_.w("data","isHearted"),_.Q("design:type",String),_.Q("design:paramtypes",[])],mA.prototype,"label",null);_.r([_.w("data","isHearted"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mA.prototype,"heartHoverText",null);
_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mA.prototype,"onTap",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],mA);
_.m(mA,"yt-live-chat-creator-heart-view-model",function(){if(N2M===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;ZwV===void 0&&(ZwV=document.createElement("template"));var S=ZwV;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);N2M=L}L=N2M;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Jy=function(L,Z){this.serviceId=new VSh(L,Z)};
Jy.prototype.toString=function(){return this.serviceId.toString()};var Ssl=function(){this.internalMap={}};
_.t=Ssl.prototype;_.t.contains=function(L){return Object.prototype.hasOwnProperty.call(this.internalMap,L)};
_.t.get=function(L){if(this.contains(L))return this.internalMap[L]};
_.t.set=function(L,Z){this.internalMap[L]=Z};
_.t.getKeys=function(){return Object.keys(this.internalMap)};
_.t.remove=function(L){delete this.internalMap[L]};var CK=function(){this.mappings=new Ssl;this.errorCallbacks=new Set};
CK.prototype.getModuleId=function(L){return L.serviceId.getModuleId()};
CK.prototype.get=function(L){var Z=this.mappings.get(L.toString());return iwM(this,Z,L)};
CK.prototype.getMultipleAsync=function(){var L=_.CG.apply(0,arguments),Z=this,N=L.map(function(M){return Z.getModuleId(M)}),S=L.map(function(M){return Z.mappings.get(M.toString())}).filter(function(M){return M});
if(S.length===L.length)return _.xP(S.map(function(M,G){return iwM(Z,M,L[G])}));
var u=py().loadMultiple(N);S=_.yz(N.map(function(M){return u[M]}));
var T=document.hidden,W=-1,V=_.lQ("get_async_timeout_ms",-1);V>-1&&(W=setTimeout(function(){_.Q7(new _.sr("Module timeout.",N,T,document.hidden))},V));
return _.wg(S.then(function(){return L.map(function(M){return iwM(Z,Z.mappings.get(M.toString()),M)})}).thenCatch(function(M){for(var G=_.O(Z.errorCallbacks),D=G.next();!D.done;D=G.next())D=D.value,D(M);
throw M;}),function(){clearTimeout(W)})};
CK.prototype.registerService=function(L,Z){this.mappings.set(L.toString(),{type:"mapping",value:Z});return L};
var iwM=function(L,Z,N){switch(Z.type){case "mapping":return Z.value;case "factory":return Z=Z.value(),L.mappings.set(N.toString(),{type:"mapping",value:Z}),Z;default:return _.Xh(Z)}};
CK.prototype.onLoadError=function(L){var Z=this;this.errorCallbacks.add(L);return function(){Z.errorCallbacks.delete(L)}};
_.re=new CK;var upL=function(){};
_.t=upL.prototype;
_.t.JSC$14167_getRequest=function(L,Z,N){Z=Z===void 0?{}:Z;N=N===void 0?G6L:N;var S=Z;if(this.isNavigationCommand()){var u,T=(u=_.n(L==null?void 0:L.commandMetadata,_.Nj))==null?void 0:u.url;S=_.FU_(L.clickTrackingParams,!0,!1,T,this.JSC$14167_getClientScreen(S))}else S=_.FU_(L.clickTrackingParams,!1,this.includeCsn);S={context:S};if(u=this.getExtension(L))return this.JSC$14167_buildRequest(S,u,Z),u=this.getApiUrl(L),T=Object.assign({},{command:L},this.getRequestConfig(L,Z)),S={input:u,requestShell:aH(u),
innerTubeRequest:S,config:T},S.config.authStrategy?S.config.authStrategy.identity=N:S.config.authStrategy={identity:N},(L=this.JSC$14167_getRequestKey(L,Z))&&!S.config.requestKey&&(S.config.requestKey=L),S;L=new _.sr("Error: Failed to create Request from Command.",L);_.CA(L)};
_.t.getApiUrl=function(L){var Z=_.pk(this.getApiPaths(L)),N;(L=(N=_.n(L.commandMetadata,_.Nj))==null?void 0:N.apiUrl)&&(Z=L);return mRP(zYx(Z))};
_.t.isNavigationCommand=function(){return!1};
_.t.JSC$14167_getClientScreen=function(){};
_.t.JSC$14167_getRequestKey=function(){};
_.t.getRequestConfig=function(){};
_.gd.Object.defineProperties(upL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var QG=function(){};
_.f(QG,upL);QG.prototype.JSC$14174_getStoreKey=function(){};
QG.prototype.JSC$14167_getRequestKey=function(L,Z){Z=Z===void 0?{}:Z;return this.JSC$14174_getStoreKey(L,Z)};var Xf=function(){};
_.f(Xf,QG);Xf.prototype.JSC$14167_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:aH("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Xf.prototype.getApiPaths=function(){return[]};
Xf.prototype.getExtension=function(){};
Xf.prototype.JSC$14167_buildRequest=function(){};var T25={},tlN=(T25.GET_DATASYNC_IDS=yB(Xf),T25);var Ow5,WsM,Vlt,$MV,Ay,GhI,bwO,grO,Mlh;Ow5="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");WsM=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.IV=function(L,Z,N,S,u,T,W,V,M){this.endpointMap=L;this.networkManager=Z;this.authService=N;this.responseProcessorMap=S;this.innertubeResponseStore=u;this.contextProcessors=T;this.asyncContextProcessors=W;this.localInnertubeRouter=V;this.requestSequencer=M;this.inflightRequests=new Map;L.signalEndpointMap||(L.signalEndpointMap={});L.signalEndpointMap=Object.assign({},tlN,L.signalEndpointMap)};
Vlt=function(L,Z,N,S,u,T,W,V,M){if(_.IV.instance!==void 0){if(S=_.IV.instance,L=[L!==S.endpointMap,Z!==S.networkManager,N!==S.authService,u!==S.innertubeResponseStore,T!==S.contextProcessors,W!==S.asyncContextProcessors,V!==S.localInnertubeRouter],L.some(function(G){return G}))throw new _.sr("InnerTubeTransportService is already initialized",L);
}else _.IV.instance=new _.IV(L,Z,N,S,u,T,W,V,M)};
_.aV=function(L,Z,N){var S=S===void 0?G6L:S;var u=bwO(L,Z);return u?new _.kE(function(T,W){var V,M,G,D,l;return _.b(function(v){switch(v.nextAddress){case 1:return v.yield(u,2);case 2:V=v.yieldResult;M=V.JSC$14167_getRequest(Z,N,S);if(!M){W(new _.sr("Error: Failed to build request for command.",Z));v.jumpTo(0);break}fX(M.input);D=((G=M.requestShell)==null?void 0:G.mode)==="cors"?"cors":void 0;if(L.authService.syncHeaders){l=Mlh(M.config,D);v.jumpTo(4);break}return v.yield(grO(M.config,D),5);case 5:l=
v.yieldResult;case 4:T(GhI(L,M,l)),_.w7(v)}})}):_.$N(new _.sr("Error: No request builder found for command.",Z))};
$MV=function(L,Z,N,S){var u=u===void 0?G6L:u;var T,W,V,M,G,D,l,v,R,K,U,d,h,E,A,J,C,X;return _.b(function(L1){switch(L1.nextAddress){case 1:T=WpH(Z,L.endpointMap);if(!T)throw new _.sr("Error: No streaming request builder found for command",Z);W=T.JSC$14167_getRequest(Z,N,u);if(!W)throw new _.sr("Failed to build YtRequest for streaming Command",Z);if((V=L.localInnertubeRouter)==null||!V.shouldPreferLocalResponse(W.input,W.innerTubeRequest)){L1.jumpTo(2);break}return L1.yield(L.localInnertubeRouter.localInnertubeResponse(W.input,
W.innerTubeRequest),3);case 3:return M=L1.yieldResult,G={},M.playerResponse&&(Ay(L,M.playerResponse,W),G.player=M.playerResponse,(D=S)==null||D(G,M)),M.watchNextResponse&&(Ay(L,M.watchNextResponse,W),G.content=M.watchNextResponse,(l=S)==null||l(G,M)),L1.return(G);case 2:R=((v=W.requestShell)==null?void 0:v.mode)==="cors"?"cors":void 0;if(L.authService.syncHeaders){K=Mlh(W.config,R);L1.jumpTo(4);break}return L1.yield(grO(W.config,R),5);case 5:K=L1.yieldResult;case 4:return h=(d=(U=W.requestShell)==
null?void 0:U.headers)!=null?d:{},W.requestShell=Object.assign({},W.requestShell,{headers:Object.assign({},h,K)}),E=Object.assign({},W.requestShell),A=JSON.stringify(W.innerTubeRequest),W.requestShell.method==="POST"&&(E=Object.assign({},E,{body:A})),J=function(Fw,GB){Ay(L,GB.playerResponse||GB.watchNextResponse||GB.reelItemWatchResponse||GB.reelWatchSequenceResponse,W);S==null||S(Fw,GB)},C={},L1.yield(Fsh(L.networkManager,W.input,E,J),6);
case 6:return C=L1.yieldResult,((X=W.config)==null?0:X.responseTick)&&_.Rq(W.config.responseTick),L1.return(C)}})};
_.Za=function(L,Z,N,S,u){u=u===void 0?{authStrategy:{identity:G6L}}:u;var T=T===void 0?!0:T;var W=function(){};
W=ZF1(qFL(N));Z.context||(Z.context=_.FU_(S,T));return new _.kE(function(V){var M,G,D,l,v;return _.b(function(R){if(R.nextAddress==1)return M=zYx(N),G=_.d0(M),L.authService.syncHeaders?(D=Mlh(u,G),R.jumpTo(2)):R.yield(grO(u,G),3);R.nextAddress!=2&&(D=R.yieldResult);l=mRP(zYx(N));v={input:l,requestShell:aH(l),innerTubeRequest:Z,config:u};V(GhI(L,v,D,W));_.w7(R)})})};
Ay=function(L,Z,N){var S;if(Z&&!(Z==null?0:(S=Z.sequenceMetaData)==null?0:S.skipProcessing)&&L.responseProcessorMap){S=_.O(Ow5);for(var u=S.next();!u.done;u=S.next())u=u.value,L.responseProcessorMap[u]&&L.responseProcessorMap[u].handleResponse(Z,N)}};
GhI=function(L,Z,N,S){S=S===void 0?function(){}:S;
var u,T,W,V,M,G,D,l,v,R,K,U,d,h,E,A,J,C,X,L1,Fw,GB,Yt,lH,RF,jf,f1,n0,r5,yq,ZN,GV,IO,d5,n8,lq,tx,ut,oO,uq;return _.b(function(RO){switch(RO.nextAddress){case 1:W=(u=Z.config)==null?void 0:(T=u.storeStrategy)==null?void 0:T.storeKey;if(!(W&&L.innertubeResponseStore&&L.innertubeResponseStore.has(W))||((V=Z.config)==null?0:(M=V.storeStrategy)==null?0:M.disableCache)){RO.jumpTo(2);break}return RO.yield(L.innertubeResponseStore.get(W),3);case 3:if((G=RO.yieldResult)&&!G.isExpired())return RO.return(Promise.resolve(_.m4(G)));
case 2:if(!((D=Z)==null?0:(l=D.innerTubeRequest)==null?0:l.context)){RO.jumpTo(4);break}v=Z.innerTubeRequest.context;if(!(L.asyncContextProcessors&&L.asyncContextProcessors.length>0)){RO.jumpTo(5);break}R=[];K=_.O(L.asyncContextProcessors);for(U=K.next();!U.done;U=K.next())d=U.value,h=d.processContext(Z),h.wrappedPromise_&&R.push(h.wrappedPromise_);if(!(R.length>0)){RO.jumpTo(5);break}return RO.yield(Promise.all(R),5);case 5:E=_.O(L.contextProcessors||[]),A=E.next();case 8:if(A.done){RO.jumpTo(4);
break}J=A.value;return RO.yield(J.processContext(v),9);case 9:A=E.next();RO.jumpTo(8);break;case 4:if((C=L.localInnertubeRouter)==null||!C.shouldPreferLocalResponse(Z.input,Z.innerTubeRequest)){RO.jumpTo(12);break}return RO.yield(L.localInnertubeRouter.localInnertubeResponse(Z.input,Z.innerTubeRequest),13);case 13:return X=RO.yieldResult,Ay(L,X,Z),RO.return(X);case 12:return(GB=(Fw=Z.config)==null?void 0:Fw.requestKey)&&L.inflightRequests.has(GB)?L1=L.inflightRequests.get(GB):(Yt=JSON.stringify(Z.innerTubeRequest),
jf=(RF=(lH=Z.requestShell)==null?void 0:lH.headers)!=null?RF:{},Z.requestShell=Object.assign({},Z.requestShell,{headers:Object.assign({},jf,N)}),f1=Object.assign({},Z.requestShell),Z.requestShell.method==="POST"&&(f1=Object.assign({},f1,{body:Yt})),((n0=Z.config)==null?0:n0.requestTick)&&_.Rq(Z.config.requestTick),r5=function(){return L.networkManager.fetch(Z.input,f1,Z.config)},L1=L.requestSequencer?DM5(L.requestSequencer,Z,r5):r5(),GB&&L.inflightRequests.set(GB,L1)),RO.yield(L1,14);
case 14:(yq=RO.yieldResult)&&_.c("web_streaming_player")&&Array.isArray(yq)&&(yq=yq[0].playerResponse);if(yq&&"error"in yq&&((ZN=yq)==null?0:(GV=ZN.error)==null?0:GV.details))for(IO=yq.error.details,d5=_.O(IO),n8=d5.next();!n8.done;n8=d5.next())lq=n8.value,(tx=lq["@type"])&&WsM.indexOf(tx)>-1&&(delete lq["@type"],yq=lq);GB&&L.inflightRequests.has(GB)&&L.inflightRequests.delete(GB);((ut=Z.config)==null?0:ut.responseTick)&&_.Rq(Z.config.responseTick);if(yq||(oO=L.localInnertubeRouter)==null||!oO.canProvideFallbackResponse(Z.input,
Z.innerTubeRequest)){RO.jumpTo(15);break}return RO.yield(L.localInnertubeRouter.localFallbackInnertubeResponse(Z.input,Z.innerTubeRequest),16);case 16:yq=RO.yieldResult;case 15:return Ay(L,yq,Z),((uq=Z.config)==null?0:uq.processorTick)&&_.Rq(Z.config.processorTick),S(),RO.return(yq||void 0)}})};
_.d9=function(L,Z){return ORf(Z,L.endpointMap)};
bwO=function(L,Z){L=V_t(Z,L.endpointMap);if(L!==void 0)return Promise.resolve(L)};
grO=function(L,Z){var N,S,u,T;return _.b(function(W){if(W.nextAddress==1){u=(N=L)==null?void 0:(S=N.authStrategy)==null?void 0:S.sessionIndex;var V=W.yield;var M=_.xP(ANF({sessionIndex:u}));return V.call(W,M,2)}T=W.yieldResult;return W.return(Promise.resolve(Object.assign({},bRG(Z),T)))})};
Mlh=function(L,Z){var N;L=L==null?void 0:(N=L.authStrategy)==null?void 0:N.sessionIndex;N=ANF({sessionIndex:L});return Object.assign({},bRG(Z),N)};var l_l,vrM,or5,R8O,cMN,nrO,khM,yMM,xX,wCs,UMY,f_t,YsQ;l_l=0;vrM=/tone[1-5]/;or5=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");R8O="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
cMN=Number.MAX_SAFE_INTEGER;nrO=RegExp("\ufe0f","g");_.HS=function(L){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;L&&_.KsV(this,L)};
_.KsV=function(L,Z){try{_.yZ(Z,{context:L,onSuccess:function(S,u){Array.isArray(u)?L.load(u):(S=new _.sr("Emoji manager JSON response was not an array!",{response:u}),_.CA(S))},
onError:function(S){S=new _.sr("Failed to retrieve emoji manager initial JSON data!",{url:Z,statusCode:_.Re(S).toString()});_.Q7(S)}})}catch(S){var N=new _.sr("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:Z});
_.Q7(N)}};
_.HS.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.HS.prototype.load=function(L,Z){if(Z)if(L.length)L=L.concat(Z.emojis);else{this.emojis=Z.emojis;this.emojiMap=Z.emojiMap;this.emojiShortcutMap=Z.emojiShortcutMap;this.emojiShortcutCharMap=f_t(Z);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=Z.emojiRegex;return}this.emojis=[].concat(_.Pd(new Set(this.emojis.concat(L))));this.hasInitializedShortcutCharMap=!1;L=Array(this.emojis.length);for(Z=0;Z<this.emojis.length;Z++){var N=this.emojis[Z];if(N.emojiId){this.emojiMap[N.emojiId]=N;this.emojiMap[N.emojiId].index=
Z;for(var S=0;N.shortcuts&&S<N.shortcuts.length;S++)this.emojiShortcutMap[N.shortcuts[S].toLocaleLowerCase()]=N;L[Z]=N.isCustomEmoji&&N.shortcuts?N.shortcuts[0]:N.emojiId}}L.sort(function(u,T){return T.length-u.length});
if(L.length)try{this.emojiRegex=new RegExp(L.join("|").replace("*","\\*"),"gi")}catch(u){this.emojiRegex=/$./}else this.emojiRegex=/$./};
khM=function(L,Z){Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next()){var S=N.value;if(S.emojiId&&L.emojiMap[S.emojiId]){N=Object.assign({},L.emojiMap[S.emojiId],S);L.emojiMap[S.emojiId]=N;var u=void 0;N.index&&((u=L.emojis[N.index])==null?void 0:u.emojiId)===S.emojiId&&(L.emojis[N.index]=N);S=void 0;if((S=N.shortcuts)==null?0:S.length)for(L.hasInitializedShortcutCharMap=!1,S=_.O(N.shortcuts),u=S.next();!u.done;u=S.next())L.emojiShortcutMap[u.value.toLocaleLowerCase()]=N}}};
yMM=function(L){var Z,N;_.b(function(S){if(S.nextAddress==1)return S.yield(_.mi.getInstance(),2);if(S.nextAddress!=3)return(Z=S.yieldResult)?S.yield(Z.get("ytlc-emoji-pref"),3):S.return();(N=S.yieldResult)&&khM(L,Object.keys(N).map(function(u){return{emojiId:u,stickyPrefId:N[u]}}).filter(function(u){return!!u.emojiId&&!!u.stickyPrefId}));
_.w7(S)})};
_.BS=function(L,Z,N){return(L=L.emojiMap[Z])&&(!L.isLocked||N!==void 0&&N)?L:void 0};
xX=function(L,Z,N){N=_.BS(L,Z,N===void 0?!1:N);var S=Z.match("\u200d");N&&L.skinTone!==0&&(L=(S==null?void 0:S.length)===1?_.BS(L,Z.replace("\u200d",or5[L.skinTone]+"\u200d")):_.BS(L,Z+or5[L.skinTone]))&&(N=L);return N};
wCs=function(L,Z){var N=L.emojiMap[Z];return(N==null?0:N.stickyPrefId)?L.emojiMap[N.stickyPrefId]:xX(L,Z)};
_.XM=function(L,Z){L=L.emojiShortcutMap[Z.toLocaleLowerCase()];return!L||L.isLocked?null:L};
UMY=function(L,Z,N){return f_t(L,N===void 0?!1:N)[Z]||{}};
f_t=function(L,Z){Z=Z===void 0?!1:Z;if(!L.hasInitializedShortcutCharMap){L.hasInitializedShortcutCharMap=!0;for(var N=0;N<L.emojis.length;N++){var S=L.emojis[N];if(!(S.isLocked||Z&&S.isCustomEmoji&&S.emojiId&&!L.pickerCustomEmojiIds.includes(S.emojiId)))for(var u=0;S.shortcuts&&u<S.shortcuts.length;u++){var T=S.shortcuts[u];T.startsWith(":_")&&S.isCustomEmoji&&(L.emojiShortcutCharMap[":_"]==null&&(L.emojiShortcutCharMap[":_"]=Object.create(null)),L.emojiShortcutCharMap[":_"][T]=S);if(!(T.length<3||
!S.isCustomEmoji&&vrM.test(T))){var W=T.substr(0,3).toLocaleLowerCase();L.emojiShortcutCharMap[W]==null&&(L.emojiShortcutCharMap[W]=Object.create(null));L.emojiShortcutCharMap[W][T]=S}}}}return L.emojiShortcutCharMap};
_.HS.prototype.createEmoji=function(L,Z){Z=Z===void 0?!0:Z;var N=document.createElement("img");L.isCustomEmoji||N.classList.add("small-emoji");N.classList.add("emoji");N.classList.add("yt-formatted-string");N.src=L.image?_.r$(L.image.thumbnails,this.emojiSize)||"":"";var S=void 0;L.image&&L.image.accessibility&&L.image.accessibility.accessibilityData&&(S=L.image.accessibility.accessibilityData.label);N.alt=S?S:(L.isCustomEmoji&&L.shortcuts?L.shortcuts[0]:L.emojiId)||"";L.isCustomEmoji&&(N.dataset.emojiId=
L.emojiId);_.BV&&(N.setAttribute("contenteditable","false"),N.setAttribute("unselectable","on"));Z&&(L.shortcuts&&L.shortcuts.length&&N.setAttribute("shared-tooltip-text",L.shortcuts[0]),N.id="emoji-"+l_l++);return N};
_.HS.prototype.createDocumentFragment=function(L,Z,N,S){Z=Z===void 0?!1:Z;N=N===void 0?!0:N;S=S===void 0?!1:S;L=L.replace(nrO,"");for(var u=document.createDocumentFragment(),T=0,W,V=0;(W=this.emojiRegex.exec(L))!=null;){var M=_.BS(this,W[0])||_.XM(this,W[0]);!M||M.isCustomEmoji&&!Z||(M=this.createEmoji(M,N),T!==W.index&&u.appendChild(document.createTextNode(L.substring(T,W.index))),u.appendChild(M),T=W.index+W[0].length,V++)}if(!S||V)return u.appendChild(document.createTextNode(L.substr(T))),u};
YsQ=function(L,Z,N){var S,u,T,W,V,M,G,D,l;return _.b(function(v){if(v.nextAddress==1){if(!Z.emojiId||!L.emojiMap[Z.emojiId])return v.return();S=Object.assign({},L.emojiMap[Z.emojiId],{stickyPrefId:N});L.emojiMap[Z.emojiId]=S;Z.index&&((u=L.emojis[Z.index])==null?void 0:u.emojiId)===Z.emojiId&&(L.emojis[Z.index]=S);if((T=Z.shortcuts)==null?0:T.length)for(L.hasInitializedShortcutCharMap=!1,W=_.O(Z.shortcuts),V=W.next();!V.done;V=W.next())M=V.value,L.emojiShortcutMap[M.toLocaleLowerCase()]=S;return v.yield(_.mi.getInstance(),
2)}if(v.nextAddress!=4)return(G=v.yieldResult)?v.yield(G.get("ytlc-emoji-pref"),4):v.jumpTo(0);l=(D=v.yieldResult)!=null?D:{};l[Z.emojiId]=N;return v.yield(G.set("ytlc-emoji-pref",l,cMN),0)})};
_.qN=new _.HS;var dM0;_.LD={};
dM0={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.c("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:_.c("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 hN(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 L=_.QJ(this.hostElement||this).querySelector("#inline-action-button-container");L&&L.setAttribute("aria-hidden","true");this.menuButton=_.QJ(this.hostElement).querySelector("#menu-button")},
attached:function(){var L=this.menuButton;L&&(L.addEventListener("focusin",_.Nd(this,this.onMenuButtonFocus_)),L.addEventListener("focusout",_.Nd(this,this.onMenuButtonBlur_)))},
detached:function(){var L=this.menuButton;L&&(L.removeEventListener("focusin",_.Nd(this,this.onMenuButtonFocus_)),L.removeEventListener("focusout",_.Nd(this,this.onMenuButtonBlur_)))},
identity:_.sG,truthy:function(L){return!!L},
computeTimestampString:function(L){return L?L.timestampText?this.getSimpleString(L.timestampText):this.TIME_FORMATTER.format(new Date(L.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(L){return L},
computeMenuVisible_:function(L,Z){return L||Z},
computeHasInlineActionButtons:function(L){if(!L)return!1;var Z,N;return!((Z=L.inlineActionButtons)==null||!Z.length)||!((N=L.additionalInlineActionButtons)==null||!N.length)},
createDocumentFragmentFromString:function(L){var Z=_.qN.createDocumentFragment.bind(_.qN),N;if((N=this.participantsManager)==null||!N.viewerRegex)return Z(L);N=document.createDocumentFragment();for(var S=0,u;(u=this.participantsManager.viewerRegex.exec(L))!=null;){if(u.index>0){var T=":"+u[0]+":";if((_.BS(_.qN,T)||_.XM(_.qN,T))&&L.indexOf(T)===u.index-1)continue}N.appendChild(Z(L.substring(S,u.index)));S=document.createElement("span");S.appendChild(Z(u[0]));S.classList.add("mention");N.appendChild(S);
S=u.index+u[0].length}N.appendChild(Z(L.substring(S)));return N},
createDocumentFragment:function(L){var Z=document.createDocumentFragment();if(L.simpleText)return Z.appendChild(this.createDocumentFragmentFromString(L.simpleText)),Z;if(!L.runs)return Z;for(var N=0;N<L.runs.length;N++){var S=L.runs[N];if(S.emoji)Z.appendChild(_.qN.createEmoji(S.emoji));else if(S.text)if(S.navigationEndpoint){var u=document.createElement("a");u.classList.add("yt-simple-endpoint");GqA(u,S.navigationEndpoint);_.QJ(u).appendChild(this.createDocumentFragmentFromString(S.text));Z.appendChild(u)}else Z.appendChild(this.createDocumentFragmentFromString(S.text))}return Z},
hasModerationOverlayVisible:function(){var L;return((L=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:L.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(L){L.composedPath().some(function(Z){return(Z=Z instanceof Element?Z:null)?Z.tagName&&(Z.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||Z.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.c("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(L)},
colorFromDecimal:function(L){return CZw(L)},
markAsDeleted:function(L,Z){this.set("data.deletedStateMessage",L);this.set("data.showOriginalContentMessage",Z)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(L){if(this.data.contextMenuEndpoint){var Z=_.GR().resolve(_.VJ),N=this.data.contextMenuEndpoint,S;(S=_.IV.instance)&&_.d9(S,N)?(Z=e8Y(Z,N),S=_.Za(S,{},Z)):S=_.I_Y(Z,N);S.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);L&&L.stopPropagation()}},
handleGetContextMenuResponse_:function(L){var Z=_.IV.instance;Z&&_.d9(Z,{liveChatEndpoint:{}})||(L=L.response);L.liveChatItemContextMenuSupportedRenderers&&L.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(L.liveChatItemContextMenuSupportedRenderers.menuRenderer);L.actions&&_.XJ(this.hostElement,"yt-live-chat-actions",[L.actions])},
handleGetContextMenuError:function(L){if(L instanceof Error||L instanceof Object||L instanceof String)var Z=L;_.CA(new _.sr("Error encountered calling GetLiveChatItemContextMenu",Z))},
showContextMenu_:function(L){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:L}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.QT(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.QT(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.LD.YtLiveChatItemBehavior=[dM0,_.rH.YtComponentBehavior,_.vS.YtOpenPopupBehavior];_.Zu=function(){};var a_q;var h8Q;var s05;var j0t;var NW=function(){var L=_.e.apply(this,arguments)||this;L.active=!1;L.identity=_.sG;return L};
_.f(NW,_.e);NW.prototype.dataChanged=function(){this.active=!1};
NW.prototype.onClick=function(){_.QT(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
NW.prototype.dataChanged=NW.prototype.dataChanged;_.r([_.Y(),_.Q("design:type",Object)],NW.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],NW.prototype,"active",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],NW.prototype,"dataChanged",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],NW);
_.m(NW,"yt-live-chat-text-input-field-suggestion",function(){if(j0t===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;s05===void 0&&(s05=document.createElement("template"));var S=s05;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);j0t=L}L=j0t;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});_.Sk=function(L,Z,N){return CustomEvent.call(this,L,{detail:{value:Z,path:N}})||this};
_.f(_.Sk,CustomEvent);_.io=function(){var L=_.e.apply(this,arguments)||this;L.viewerName=null;L.actionMap={"yt-live-chat-actions":"onChatMessage_"};L.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];L.PARTICIPANT_TIME_USEC_=3E8;return L};
_.f(_.io,_.e);_.t=_.io.prototype;_.t.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.t.addParticipant=function(L){var Z=_.sFA(this.participants,L,function(S,u){S=S[Object.keys(S)[0]];u=u[Object.keys(u)[0]];S=String(_.jM(S.authorName)).toLowerCase();u=String(_.jM(u.authorName)).toLowerCase();return S<u?-1:S==u?0:1}.bind(this));
if(Z>=0){var N=this.participants[Z];N[Object.keys(N)[0]].timestampUsec&&this.splice("participants",Z,1,L)}else this.splice("participants",-Z-1,0,L);L=L[Object.keys(L)[0]];Z=_.jM(L.authorName).toLocaleLowerCase();N=Z.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(N)||(this.allParticipantsCharMap_[N]={});this.allParticipantsCharMap_[N][Z]=L};
_.t.getAuthorsFromPrefix=function(L){return this.allParticipantsCharMap_.hasOwnProperty(L)?this.allParticipantsCharMap_[L]:null};
_.t.computeViewerRegex_=function(L){if(!L)return null;L=L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var Z=L.indexOf("@")===0&&_.c("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(Z+L.replace(/ /g,"\\s*")+"|^"+L.replace(/ /g,"\\s*")+"$|^"+L.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+L.replace(/ /g,"\\s*")+"$|(?<=\\s)"+L.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.t.checkForStaleParticipants_=function(){var L=this;this.trimOldParticipants_();this.asyncHandle_&&$tA(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.Uk(function(){L.checkForStaleParticipants_()},3E4))};
_.t.onChatMessage_=function(L){var Z=this,N=Date.now()*1E3;L.forEach(function(S){if(S=_.n(S,nZh)){S=S.item;var u=Object.keys(S)[0];Z.SUPPORTED_ITEM_TYPES_.indexOf(u)!=-1&&S[u].timestampUsec>=N-Z.PARTICIPANT_TIME_USEC_&&Z.addParticipant(S)}},this);
this.checkForStaleParticipants_()};
_.t.trimOldParticipants_=function(){for(var L=Date.now()*1E3,Z=this.participants.length-1;Z>=0;Z--){var N=this.participants[Z];N=N[Object.keys(N)[0]];N.timestampUsec&&N.timestampUsec<L-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",Z,1)}};
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],_.io.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],_.io.prototype,"viewerName",void 0);_.r([_.Y({computed:"computeViewerRegex_(viewerName)"}),_.Q("design:type",Object)],_.io.prototype,"viewerRegex",void 0);_.r([_.Y({value:function(){return[]},
notify:!0}),_.Q("design:type",Array)],_.io.prototype,"participants",void 0);_.r([_.ch({is:"yt-live-chat-participants-manager",noInjection:!0})],_.io);var Ers=/.*([:@#].*?)$/,uo=/\u00a0/g,Prs=String.fromCharCode(160),pCV={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"},TL=function(){var L=_.e.apply(this,arguments)||this;L.disabled=!1;L.liveChatRichMessageInput=null;L.messageInput=null;L.isValidWithNoInputText=!1;L.suggestions=[];L.emojiManager=_.qN;L.inputMethodEditorActive=
!1;L.suggestionIndex=-1;L.JSC$14225_lastSuggestionRange=null;return L};
_.f(TL,_.e);_.t=TL.prototype;_.t.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.t.attached=function(){_.xM&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.t.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.t.dataChanged=function(){if(!this.ignoreColorMapping){var L=!1,Z={},N;for(N in pCV)this.data&&this.data.hasOwnProperty(N)&&(Z[pCV[N]]=this.colorFromDecimal(this.data[N]),L=!0);L&&_.Ld(this.hostElement,Z)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.t.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.t.colorFromDecimal=function(L){L=Math.floor(Number(L));return"rgba("+[L>>16&255,L>>8&255,L&255,(L>>24&255)/255].join()+")"};
_.t.preventDrag=function(L){L.dataTransfer&&(L.dataTransfer.dropEffect="none");L.preventDefault()};
_.t.preventResize=function(L){L.returnValue=!1};
_.t.onInputChange=function(){var L=this.characterCount,Z=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&Z&&Z.remove();if(!Z&&this.characterCount>this.maxCharacterLimit){var N=window.getSelection();if(N){var S=N.getRangeAt(0);N.removeAllRanges();N.addRange(S)}}if(N=this.getCurrentRange())S=this.calculateTextBeforeRange(N),this.completeEmojisInRange(N,S,!0)||this.updateSuggestions(N,S);S=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(S);
_.QT(this.hostElement,"yt-live-chat-message-input-change",S);Z&&this.characterCount===0&&Z.remove();N&&N.commonAncestorContainer.parentElement.id==="input"&&N.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>L):N&&!N.collapsed&&N.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(L=this.input.childNodes.length-1;L>=0;L--)this.input.childNodes[L].nodeName==="BR"&&this.input.childNodes[L].remove()};
_.t.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.t.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var L=this.getCurrentRange();L&&L.commonAncestorContainer.parentElement.id==="input"&&L.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.t.mergeOverflowText=function(L){if(L){var Z=document.createRange();Z.selectNodeContents(L);Z=Z.extractContents();this.input.insertBefore(Z,L)}};
_.t.checkRangeAtEndOfInput=function(){var L=this.getCurrentRange();if(L){var Z=_.QJ(this.hostElement).querySelector("#overflow-text"),N=document.createRange();Z&&Z.previousSibling?Z.previousSibling instanceof HTMLImageElement?N.selectNode(Z.previousSibling):N.selectNodeContents(Z.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?N.selectNode(this.input.lastChild):N.selectNodeContents(this.input.lastChild));N.collapse(!1);return N.isPointInRange(L.startContainer,
L.startOffset)}return!1};
_.t.handleOverflowText=function(L){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var Z=_.QJ(this.hostElement).querySelector("#overflow-text"),N=this.getCurrentRange();this.input.normalize();L=this.checkRangeAtEndOfInput()&&L;this.mergeOverflowText(Z);for(var S,u=0,T=0,W,V=this.input.childNodes,M=0;M<V.length;M++){var G=V[M];G instanceof Text?(T+=G.textContent.length,T>this.maxCharacterLimit&&(S=G,u=this.maxCharacterLimit+G.textContent.length-T)):G instanceof HTMLImageElement&&
(S=void 0,T=G.dataset.emojiId&&((S=this.data)==null?0:S.emojiCharacterCount)?T+this.data.emojiCharacterCount:T+G.alt.length,S=this.input,u=M);if(T>this.maxCharacterLimit&&S){W=document.createRange();W.collapse(!1);Z?(T=this.input.lastChild.previousSibling,T instanceof Text?W.setEnd(this.input.lastChild.previousSibling,T.textContent.length):T instanceof HTMLImageElement&&W.setEnd(this.input,this.input.childNodes.length-1)):W.selectNodeContents(this.input);W.setStart(S,u);break}}W&&(S=!1,N&&(L=W.isPointInRange(N.startContainer,
N.startOffset-1)),Z||(Z=document.createElement("span"),Z.id="overflow-text",Z.textContent="",Z.setAttribute("contenteditable","true"),_.QJ(_.QJ(this.hostElement).querySelector("#input")).appendChild(Z),S=!0),Z&&(N=W.extractContents(),Z.insertBefore(N,Z.firstChild),L&&Z.firstChild&&(N=document.createRange(),S?N.setStartAfter(Z.lastChild):N.setStartAfter(Z.firstChild),N.collapse(!0),Z=window.getSelection(),Z.removeAllRanges(),Z.addRange(N))))}};
_.t.checkForDuplicateSpans=function(){for(var L=0;L<this.input.childNodes.length;L++){var Z=this.input.childNodes[L];if(Z.nodeName==="SPAN"){var N=document.createRange();N.selectNodeContents(Z);N=N.extractContents();this.input.insertBefore(N,Z);Z.remove()}}this.handleOverflowText(!0)};
_.t.getCurrentRange=function(){var L=window.getSelection();return L&&L.rangeCount?L.getRangeAt(0).cloneRange():null};
_.t.getInputRange=function(){var L=this.getCurrentRange();if(L){for(var Z=L.commonAncestorContainer,N=!1,S=_.QJ(this.hostElement).querySelector("#input");Z;){if(Z===S){N=!0;break}Z=Z.parentNode}N||(L=null)}L||(L=this.getRangeAtEnd());return L};
_.t.getRangeAtEnd=function(){var L=document.createRange(),Z=_.QJ(this.hostElement).querySelector("#input").lastChild;!Z||Z.nodeName!=="#text"&&Z.nodeName!=="SPAN"?(L.selectNodeContents(_.QJ(this.hostElement).querySelector("#input")),L.collapse(!1)):Z.nodeName==="#text"?L.setStart(Z,Z.textContent.length):L.setStart(Z,Z.childNodes.length);return L};
_.t.getChatParticipantSuggestions=function(L,Z,N,S){var u=_.c("live_chat_enable_handles_web_text_input_update");if(Z)for(var T in Z)if(T.indexOf(L)===0||u&&T.indexOf(N+L)===0){var W=Z[T],V=_.jM(W.authorName);S.push({suggestion:{author:!0,authorType:N,image:W.authorPhoto,alt:V,text:V}});if(S.length>=64)break}};
_.t.getSuggestions=function(L){var Z=[],N=L.substring(0,3),S=UMY(_.qN,N,!0);if(S)for(var u in S)if(u.toLocaleLowerCase().indexOf(L)===0){var T=S[u];if(T&&T.emojiId){if(T=wCs(_.qN,T.emojiId)){var W=void 0,V=void 0,M=void 0,G=void 0,D=((W=T.image)==null?0:(V=W.accessibility)==null?0:(M=V.accessibilityData)==null?0:M.label)||T.isCustomEmoji?(G=T.shortcuts)==null?void 0:G[0]:T.emojiId;Z.push({suggestion:{emoji:!0,image:T.image,alt:D,text:u,textToInsertWhenSelected:T.isCustomEmoji?u:D}})}if(Z.length>=
64)break}}if(!this.participantsManager)return null;if(N.indexOf("@")===0||N.indexOf("#")===0)S=N.charAt(0),L=L.substring(1),u=_.c("live_chat_enable_handles_web_text_input_update"),N.indexOf("@")===0&&u&&(u=this.participantsManager.getAuthorsFromPrefix(N.substring(0,2)),this.getChatParticipantSuggestions(L,u,S,Z)),N=N.substring(1),N=this.participantsManager.getAuthorsFromPrefix(N),this.getChatParticipantSuggestions(L,N,S,Z);return Z?Z.sort(function(l,v){return v.suggestion.text<l.suggestion.text?-1:
v.suggestion.text===l.suggestion.text?0:1}):null};
_.t.insertSuggestion=function(L){var Z=_.c("live_chat_enable_handles_web_text_input_update"),N=L.authorType;Z=L.text.indexOf(N)===0&&Z?L.text+Prs:N+L.text+Prs;L.emoji?this.insertTextAtRange(this.JSC$14225_lastSuggestionRange,L.textToInsertWhenSelected||""):L.author&&this.insertTextAtRange(this.JSC$14225_lastSuggestionRange,Z)};
_.t.updateSuggestionsAtCaret=function(){var L=this.getCurrentRange();L&&this.updateSuggestions(L,this.calculateTextBeforeRange(L))};
_.t.offsetStartOfRangeBy=function(L,Z){for(;Z>0;)if(L.startOffset-Z>=0){L.setStart(L.startContainer,L.startOffset-Z);break}else{Z=L.startContainer instanceof HTMLImageElement?Z-L.startContainer.alt.length:Z-L.startOffset;var N=L.startContainer.previousSibling;if(!N){L.setStart(L.startContainer,0);break}if(_.c("live_chat_require_space_for_autocomplete_emoji")){var S=void 0,u=void 0;L.setStart(N,((S=N)==null?void 0:(u=S.textContent)==null?void 0:u.length)||0)}else L.setStart(N,N.childNodes.length||
0)}};
_.t.updateSuggestions=function(L,Z){var N=this;this.JSC$14225_lastSuggestionRange&&(this.JSC$14225_lastSuggestionRange.detach(),this.JSC$14225_lastSuggestionRange=null);if((Z=Ers.exec(Z))&&Z.length&&(Z=Z[Z.length-1].toLocaleLowerCase(),Z.length>2&&(this.offsetStartOfRangeBy(L,Z.length),this.JSC$14225_lastSuggestionRange=L,(L=this.getSuggestions(Z))&&L.length))){this.suggestions=L;_.bN(this,function(){_.QJ(N.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(L.length-1);return}this.dropdown.opened=!1};
_.t.completeEmojisInRange=function(L,Z,N){var S=Z.replace(/[\s\xa0]+$/,"");Z=Z.length-S.length;S=S.split(" ");S=S[S.length-1].trim().toLocaleLowerCase();var u=S.lastIndexOf(":");if(N&&!Z&&u!==S.length-1)return!1;u!==-1&&(N=S.lastIndexOf(":",u-1),N!==-1&&(S=S.substring(N)));if((N=_.XM(_.qN,S))&&N.emojiId){N=wCs(_.qN,N.emojiId)||null;this.offsetStartOfRangeBy(L,S.length+Z);var T,W,V,M;S=(((T=N)==null?0:T.isCustomEmoji)?(W=N)==null?void 0:(V=W.shortcuts)==null?void 0:V[0]:(M=N)==null?void 0:M.emojiId)||
"";Z&&(S+=Prs);this.insertTextAtRange(L,S);this.dropdown.opened=!1;return!0}return!1};
_.t.onSuggestion=function(L){this.insertSuggestion(L.detail);this.dropdown.opened=!1};
_.t.onKeyPress=function(L){L.keyCode===13&&(L.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.QT(this.hostElement,"yt-live-chat-send-message"))};
_.t.completeEmojis=function(){var L=document.createRange(),Z=_.QJ(this.hostElement).querySelector("#input").lastChild;Z?L.setStart(Z,Z.childNodes.length):(L.selectNodeContents(_.QJ(this.hostElement).querySelector("#input")),L.collapse(!1));this.completeEmojisInRange(L,this.calculateTextBeforeRange(L),_.c("live_chat_require_space_for_autocomplete_emoji"))};
_.t.maybePreventTextFormatting=function(L){!_.NQ||!L.ctrlKey&&!L.metaKey||L.keyCode!==66&&L.keyCode!==73||(L.stopImmediatePropagation(),L.preventDefault())};
_.t.onKeyDown=function(L){this.maybePreventTextFormatting(L);if(this.dropdown.opened)switch(L.keyCode){case 27:this.dropdown.opened=!1;L.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;L.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);L.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),L.preventDefault()}};
_.t.onKeyUp=function(L){switch(L.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.BV)this.onInputChange()};
_.t.changeSuggestionIndex=function(L){if(this.dropdown.opened){var Z=_.QJ(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<Z.children.length&&(Z.children[this.suggestionIndex].active=!1);var N=this.suggestions.length;this.suggestionIndex=(L+N)%N;L=Z.children[this.suggestionIndex];L.active=!0;Z.scrollTop=L.offsetTop}};
_.t.onInputPaste=function(L){L.preventDefault();(L=L.clipboardData)&&L.types&&(L=L.getData("text/plain")||"",L=L.replace(/\n/g,""),this.insertText(L));(L=this.getCurrentRange())&&L.commonAncestorContainer.parentElement.id==="input"&&L.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.t.onFocus=function(){this._setFocused(!0)};
_.t.onBlur=function(){this._setFocused(!1)};
_.t.insertText=function(L){this.insertTextAtRange(this.getInputRange(),L)};
_.t.insertTextAtRange=function(L,Z){if(L&&(L.collapsed||L.deleteContents(),Z=_.qN.createDocumentFragment(Z,!0,!1))){for(var N=_.O((Z==null?void 0:Z.childNodes)||[]),S=N.next();!S.done;S=N.next()){S=S.value;var u=void 0,T=void 0,W=void 0,V=void 0,M=void 0;(W=(u=window)==null?void 0:(T=u.ShadyCSS)==null?void 0:T.ScopingShim)==null||(M=(V=W).scopeNode)==null||M.call(V,S,this.hostElement.localName)}N=Z.lastChild;L.insertNode(Z);this.focused||this.input.focus();if(this.focused){L=L.cloneRange();L.selectNodeContents(N);
L.collapse(!1);if(Z=window.getSelection())Z.removeAllRanges(),Z.addRange(L);L.commonAncestorContainer.parentElement.id==="input"&&L.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}L=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(L);_.QT(this.hostElement,"yt-live-chat-message-input-change",L)}};
_.t.setLiveChatRichMessageInput=function(L){_.QJ(_.QJ(this.hostElement).querySelector("#input")).textContent="";if(L&&L.textSegments){for(var Z=0;Z<L.textSegments.length;Z++){var N=L.textSegments[Z];N.text?_.QJ(_.QJ(this.hostElement).querySelector("#input")).appendChild(_.qN.createDocumentFragment(N.text,!0,!1)):N.emojiId&&(N=_.BS(_.qN,N.emojiId))&&_.QJ(_.QJ(this.hostElement).querySelector("#input")).appendChild(_.qN.createEmoji(N,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.t.setText=function(L){this.setLiveChatRichMessageInput(L?{textSegments:[{text:L}]}:null)};
_.t.calculateTextBeforeRange=function(L){var Z="",N=L.startContainer;if(N&&N instanceof Text){var S;Z=((S=N.textContent)==null?void 0:S.substring(0,L.startOffset))||"";N=N.previousSibling}for(;N&&N instanceof Text;)Z=N.textContent+Z,N=N.previousSibling;return Z.replace(uo," ")};
_.t.calculateLiveChatRichMessageInput=function(){for(var L=[],Z="",N=_.QJ(_.QJ(this.hostElement).querySelector("#input")).childNodes,S=0;S<N.length;S++){var u=N[S];u instanceof Text?Z+=u.textContent:u instanceof HTMLImageElement&&(u.dataset.emojiId?(Z&&(L.push({text:Z.replace(uo," ")}),Z=""),L.push({emojiId:u.dataset.emojiId})):Z+=u.alt)}Z&&L.push({text:Z.replace(uo," ")});if(N=_.QJ(this.hostElement).querySelector("#overflow-text")){Z="";N=N.childNodes;for(S=0;S<N.length;S++)u=N[S],u instanceof Text?
Z+=u.textContent:u instanceof HTMLImageElement&&(u.dataset.emojiId?(Z&&(L.push({text:Z.replace(uo," ")}),Z=""),L.push({emojiId:u.dataset.emojiId})):Z+=u.alt);Z&&L.push({text:Z.replace(uo," ")})}return{textSegments:L}};
_.t.computeCharacterCount=function(L){if(!L||!L.textSegments)return 0;for(var Z=0,N=0;N<L.textSegments.length;N++){var S=L.textSegments[N];if(S.text)Z+=S.text.length;else if(S.emojiId){var u=void 0;if((u=this.data)==null?0:u.emojiCharacterCount)Z+=this.data.emojiCharacterCount;else{var T=u=void 0,W=void 0;Z+=((T=_.BS(_.qN,(u=S)==null?void 0:u.emojiId))==null?void 0:(W=T.shortcuts)==null?void 0:W[0].length)||0}}}return Z};
_.t.characterCountChanged=function(){_.QT(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.t.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Sk("focused-changed",this.focused))};
_.t.focus=function(){this.setFocus(!1)};
_.t.focusAtEnd=function(){this.setFocus(!0)};
_.t.setFocus=function(L){L=L?this.getRangeAtEnd():this.getInputRange();_.QJ(this.hostElement).querySelector("#input").focus();var Z=window.getSelection();Z&&(Z.removeAllRanges(),Z.addRange(L))};
_.t.insertEmoji=function(L){var Z,N=((L==null?0:L.isCustomEmoji)?(Z=L.shortcuts)==null?void 0:Z[0]:L==null?void 0:L.emojiId)||"";this.insertText(N)};
_.t.computeText=function(L){if(!L||!L.textSegments)return"";for(var Z="",N=0;N<L.textSegments.length;N++){var S=L.textSegments[N];if(S.text)Z+=S.text;else if(S.emojiId){var u=void 0,T=void 0,W=void 0;Z+=((T=_.BS(_.qN,(u=S)==null?void 0:u.emojiId))==null?void 0:(W=T.shortcuts)==null?void 0:W[0])||""}}return Z};
_.t.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.gd.Object.defineProperties(TL.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.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}}});
TL.prototype.focusedChanged=TL.prototype.focusedChanged;TL.prototype.characterCountChanged=TL.prototype.characterCountChanged;TL.prototype.onSuggestion=TL.prototype.onSuggestion;TL.prototype.onMessageSet=TL.prototype.onMessageSet;TL.prototype.dataChanged=TL.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],TL.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],TL.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],TL.prototype,"disabled",void 0);_.r([_.w("disabled"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],TL.prototype,"inputTabIndex",null);_.r([_.w("data.maxCharacterLimit"),_.Y({readOnly:!0,notify:!0}),_.Q("design:type",Number),_.Q("design:paramtypes",[])],TL.prototype,"maxCharacterLimit",null);
_.r([_.w("liveChatRichMessageInput"),_.Y({readOnly:!0,notify:!0}),_.Q("design:type",Number),_.Q("design:paramtypes",[])],TL.prototype,"characterCount",null);_.r([_.w("maxCharacterLimit, characterCount"),_.Y({readOnly:!0,notify:!0}),_.Q("design:type",Number),_.Q("design:paramtypes",[])],TL.prototype,"remainingCharacterCount",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],TL.prototype,"isChatMessageInput",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],TL.prototype,"inputExpanded",void 0);_.r([_.Y({readOnly:!0,notify:!0}),_.Q("design:type",Object)],TL.prototype,"liveChatRichMessageInput",void 0);_.r([_.Y(),_.Q("design:type",Object)],TL.prototype,"messageInput",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],TL.prototype,"ignoreColorMapping",void 0);_.r([_.w("characterCount"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],TL.prototype,"hasText",null);
_.r([_.Y(),_.Q("design:type",Object)],TL.prototype,"isValidWithNoInputText",void 0);_.r([_.w("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.Y(),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],TL.prototype,"isInputValid",null);_.r([_.Y({readOnly:!0,value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],TL.prototype,"focused",void 0);_.r([_.Y(),_.Q("design:type",Array)],TL.prototype,"suggestions",void 0);
_.r([_.Y(),_.Q("design:type",_.HS)],TL.prototype,"emojiManager",void 0);_.r([_.Y(),_.Q("design:type",_.io)],TL.prototype,"participantsManager",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],TL.prototype,"noUnderline",void 0);_.r([_.Y(),_.Q("design:type",Object)],TL.prototype,"inputMethodEditorActive",void 0);_.r([_.TX("#dropdown"),_.Q("design:type",Object)],TL.prototype,"dropdown",void 0);_.r([_.TX("#input"),_.Q("design:type",HTMLElement)],TL.prototype,"input",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],TL.prototype,"dataChanged",null);_.r([_.iA("messageInput"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],TL.prototype,"onMessageSet",null);_.r([_.SA("yt-live-chat-select-suggestion"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],TL.prototype,"onSuggestion",null);
_.r([_.iA("characterCount"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],TL.prototype,"characterCountChanged",null);_.r([_.iA("focused"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],TL.prototype,"focusedChanged",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],TL);
_.z8L=_.m(TL,"yt-live-chat-text-input-field-renderer",function(){if(h8Q===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;a_q===void 0&&(a_q=document.createElement("template"));var S=a_q;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);h8Q=L}L=h8Q;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var tE=function(){var L=_.e.apply(this,arguments)||this;L.buttonOverrides={style:"overlay",type:"filled"};L.allowAnimations=!1;L.modern=_.c("web_button_rework_with_live");L.noPadding=!1;return L};
_.f(tE,_.e);_.t=tE.prototype;_.t.shouldSupportInlineActionButtons=function(){return!0};
_.t.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"}}}}};
_.t.ready=function(){var L=document.querySelector("yt-live-chat-app");L&&L.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.t.attached=function(){this.allowAnimations=!1};
_.t.dataChanged=function(){if(this.data){var L={"--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)};_.Ld(this.hostElement,L);this.allowAnimations=!0}};
_.t.messageChanged=function(){var L,Z=(L=this.data)==null?void 0:L.message;L=_.QJ(_.QJ(this.hostElement).querySelector("#message"));L.textContent="";Z&&L.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(Z))};
_.t.computeShowOnlyHeader=function(L,Z){return!L||L.pdgLikeButton||L.replyButton||L.buyFlowButton?!1:this.isEmpty(L,Z)&&!L.footer};
_.t.computeShowFooterDivider=function(L,Z,N){return L?!!L.footer&&!this.isEmpty(L,Z)&&!N:!1};
_.t.computeIsUserEditable=function(L){return!!L.inputField};
_.t.computeHasHeartButton=function(L){return(L==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(L==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(L==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.t.computeNoveltyImage=function(L){if(L.headerOverlayImage&&L.headerOverlayImage.thumbnails.length){var Z=L.headerOverlayImage.thumbnails[0],N,S;if((N=L.pdgPurchasedNoveltyLoggingDirectives)==null?0:(S=N.loggingDirectives)==null?0:S.trackingParams){var u,T;Fsw((u=L.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(T=u.loggingDirectives)==null?void 0:T.trackingParams)}return Z.width||0}return 0};
_.t.computeAuthorPhotoSize=function(L){return(L==null?0:L.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.t.inputFocus=function(){var L=_.QJ(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");L&&L.focus()};
_.t.inputInsertEmoji=function(L){var Z=_.QJ(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");Z&&Z.insertEmoji(L)};
_.t.inputMessage=function(){var L=_.QJ(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),Z;return L&&((Z=this.data)==null?0:Z.inputField)?(L.completeEmojis(),_.UC(L.liveChatRichMessageInput)):null};
_.t.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.t.isEmpty=function(L,Z){return L?L.empty||!(L.message||L.inputField||Z):!0};
_.t.onLowerBuyButtonClick=function(){var L,Z=_.n((L=this.data)==null?void 0:L.buyButton,_.xZ);Z&&Z.trackingParams&&!Qz0(Z.command)&&(L=_.Mg(Z.trackingParams))&&(Z=_.RH())&&_.sT(Z,L)};
_.t.shouldSupportWholeItemClick=function(){return!0};
_.gd.Object.defineProperties(tE.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?0:L.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
tE.prototype.isDeletedChanged=tE.prototype.isDeletedChanged;tE.prototype.messageChanged=tE.prototype.messageChanged;tE.prototype.dataChanged=tE.prototype.dataChanged;_.r([_.y(M6t.YtPdgLiveChatItemBehavior),_.Q("design:type",Object)],tE.prototype,"ytPdgLiveChatItemBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Je),_.Q("design:type",Object)],tE.prototype,"ytLiveChatReduxBehavior",void 0);
_.r([_.y(_.LD.YtLiveChatItemBehavior),_.Q("design:type",_.Zu)],tE.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],tE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],tE.prototype,"data",void 0);_.r([_.Y({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:grF}),_.Q("design:type",Object)],tE.prototype,"engagementState",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.Q("design:type",Boolean)],tE.prototype,"isUserEditable",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.Q("design:type",Boolean)],tE.prototype,"hasHeartButton",void 0);_.r([_.Y({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],tE.prototype,"showOnlyHeader",void 0);
_.r([_.Y({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],tE.prototype,"showFooterDivider",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Object)],tE.prototype,"allowAnimations",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],tE.prototype,"dashboardMoneyFeed",void 0);_.r([_.Y({computed:"computeNoveltyImage(data)"}),_.Q("design:type",Number)],tE.prototype,"noveltyWidth",void 0);
_.r([_.Y({computed:"computeAuthorPhotoSize(data)"}),_.Q("design:type",Number)],tE.prototype,"authorPhotoSize",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],tE.prototype,"modern",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],tE.prototype,"noPadding",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"dataChanged",null);
_.r([_.iA("data.message"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"messageChanged",null);_.r([_.w("data","dashboardMoneyFeed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],tE.prototype,"hideLowerBumper",null);_.r([_.iA("isDeleted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"isDeletedChanged",null);
_.r([_.P({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],tE);
_.m(tE,"yt-live-chat-paid-message-renderer",function(){if(Q55===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;rXO===void 0&&(rXO=document.createElement("template"));var S=rXO;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Q55=L}L=Q55;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var mMs;var JML;var Ow=function(){var L=_.Ok.apply(this,arguments)||this;L._noAccessors=!0;return L};
_.f(Ow,_.Ok);Ow.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.X7("openPopupConfig")};
_.r([_.y(_.vS.YtOpenPopupBehavior),_.Q("design:type",Object)],Ow.prototype,"ytOpenPopupBehavior",void 0);_.r([_.Wh()],Ow);_.W0=[_.vS.YtOpenPopupBehavior,Ow.prototype];var CrV;var sC=[_.iv,Z6q,_.Ac,_.uv,_.so,_.naq,_.Ox,_.VkY,_.Rj,eS_];_.c("web_watch_get_updated_metadata_response_processing")&&sC.push(_.UWh);_.c("web_continuation_response_processing")&&sC.push(_.k0);var fZB=new _.iY("RESPONSE_RECEIVED_COMMANDS"),yTt=new _.iY("RESPONSE_RECEIVED_COMMANDS");var oyw="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),vyA=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],l6F=["GET_UNSEEN_NOTIFICATION_COUNT"];var V$=function(){var L=_.Ok.apply(this,arguments)||this;L._noAccessors=!0;L.serviceEndpointHandlers=[];return L};
_.f(V$,_.Ok);V$.prototype.created=function(){var L=this;this.endpointHandlerActionMap={"yt-service-request":function(Z,N,S,u){var T;return DA0(L.hostElement,Z,N,S,u,L.serviceEndpointHandlers,(T=L.onEntitiesUpdated)==null?void 0:T.bind(L))}}};
V$.prototype.attached=function(){_.ie(_.SS.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
V$.prototype.detached=function(){_.ue(_.SS.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.r([_.Wh()],V$);_.rMN=[V$.prototype];var Q0M,XCM=function(){return Q0M!==void 0?Q0M:Q0M=document.createElement("template")};
document.head.appendChild(XCM().content);var AMt;var HwV=document.head,B2q=HwV.appendChild,xMt;if(AMt===void 0){var qst=document.createElement("template");_.k(qst,"\x3c!--css-build:shady--\x3e");qst.content.insertBefore(XCM().content.cloneNode(!0),qst.content.firstChild);AMt=qst}xMt=AMt;B2q.call(HwV,xMt.content);var Lpq,ZRt=function(){return Lpq!==void 0?Lpq:Lpq=document.createElement("template")};
document.head.appendChild(ZRt().content);var N_h;var SgL=document.head,iRl=SgL.appendChild,ueO;if(N_h===void 0){var T_O=document.createElement("template");_.k(T_O,"\x3c!--css-build:shady--\x3e");T_O.content.insertBefore(ZRt().content.cloneNode(!0),T_O.content.firstChild);N_h=T_O}ueO=N_h;iRl.call(SgL,ueO.content);var t_h;_.l4("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.l4("sharingRendererButtons","buttonRenderer","ytd-button-renderer");t_h=_.c("web_button_rework")&&_.Ah("BUTTON_REWORK")||_.c("web_button_rework_with_live");_.bo=function(){var L=_.e.apply(this,arguments)||this;L.isPressed=!1;L.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return L};
_.f(_.bo,_.e);_.t=_.bo.prototype;_.t.created=function(){this.showTooltips=!0};
_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.onHintIdChanged=function(){var L=this,Z,N,S=(Z=this.ytButtonBehavior.data)==null?void 0:(N=Z.hint)==null?void 0:N.hintRenderer;if(S&&S.hintId){Z=_.Ad(this.hostElement,"yt-get-opened-popups-action");Z=(Z&&Z.length===1?Z[0]:[]).length>0;var u=null;S.hintId!=="sponsor-pre-purchase"||Z?S.hintId.startsWith("sponsor-post-purchase")&&!Z?u=xtQ("membership-manage"):S.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!Z&&(u=xtQ("membership-freebie-join")):u=xtQ("membership-join");u&&_.ro.addLowPriorityJob(function(){for(var T=
_.O(u),W=T.next();!W.done;W=T.next())L.ytComponentBehavior.resolveCommand(W.value)})}};
_.t.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.t.onYtNavigate=function(L){var Z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(L.detail.endpoint);Z&&(L.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(Z))};
_.t.onYtServiceRequestSent=function(L,Z){this.handleServiceRequestActions(Z);_.QT(this.hostElement,"yt-service-request-sent-button-renderer")};
_.t.onServiceRequestCompleted=function(L,Z){this.handleServiceRequestActions(Z);_.QT(this.hostElement,"yt-service-request-completed-button-renderer")};
_.t.updateButton=function(L){var Z;if(L=(Z=_.n(L,rp0))==null?void 0:Z.updatedButton)this.ytButtonBehavior.data=_.n(L,_.xZ)};
_.t.handleUpdateButtonAction=function(L){var Z=this.ytButtonBehavior.data;Z.targetId&&L.updateButtonAction.targetId&&Z.targetId===L.updateButtonAction.targetId&&this.updateButton(L)};
_.t.handleServiceRequestActions=function(L){if(L=L.actions)for(var Z=0;Z<L.length;Z++)this.updateButton(L[Z])};
_.gd.Object.defineProperties(_.bo,{template:{configurable:!0,enumerable:!0,get:function(){if(CrV===void 0){var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);CrV=L}L=CrV;return L}}});
_.bo.prototype.onServiceRequestCompleted=_.bo.prototype.onServiceRequestCompleted;_.bo.prototype.onYtServiceRequestSent=_.bo.prototype.onYtServiceRequestSent;_.bo.prototype.onYtNavigate=_.bo.prototype.onYtNavigate;_.bo.prototype.onPressedStateChanged=_.bo.prototype.onPressedStateChanged;_.bo.prototype.onHintIdChanged=_.bo.prototype.onHintIdChanged;_.r([_.Y(),_.Q("design:type",Object)],_.bo.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],_.bo.prototype,"isPressed",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],_.bo.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.MpO.YtButtonBehavior),_.Q("design:type",Object)],_.bo.prototype,"ytButtonBehavior",void 0);_.r([_.y(_.W0),_.Q("design:type",Object)],_.bo.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],_.bo.prototype,"ytComponentBehavior",void 0);
_.r([_.y(YX.YtRenderButtonBehavior),_.Q("design:type",Object)],_.bo.prototype,"ytRenderButtonBehavior",void 0);_.r([_.iA("data.hint.hintRenderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],_.bo.prototype,"onHintIdChanged",null);_.r([_.iA("isPressed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],_.bo.prototype,"onPressedStateChanged",null);
_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],_.bo.prototype,"onYtNavigate",null);_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],_.bo.prototype,"onYtServiceRequestSent",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],_.bo.prototype,"onServiceRequestCompleted",null);_.r([_.P({is:"ytd-button-renderer",disableElementRegistration:t_h})],_.bo);var MW=function(){var L=_.e.apply(this,arguments)||this;L.modern=_.c("web_button_rework_with_live");L.buttonOverrides={style:"overlay",type:"filled"};return L};
_.f(MW,_.e);_.t=MW.prototype;_.t.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"}}}}};
_.t.ready=function(){var L=document.querySelector("yt-live-chat-app");L&&L.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.t.dataChanged=function(){if(this.data&&this.data.sticker){var L=_.r$(this.data.sticker.thumbnails,this.stickerWidth);L||_.a6G(L).thenCatch(function(){_.Q7(new _.sr("Failed to load Super Sticker with url",L))})}};
_.t.computeAuthorPhotoSize=function(L){return(L==null?0:L.isV2Style)?32:40};
_.t.computeIsV2Style=function(L){return(L==null?0:L.isV2Style)?!0:!1};
_.t.onStickerLoaded=function(L){var Z,N,S;(Z=_.jD(L))==null||(N=Z.parentNode)==null||(S=N.classList)==null||S.add("sticker-loaded")};
_.t.computeNoveltyImageWidth=function(L){var Z,N;if(L==null?0:(Z=L.headerOverlayImage)==null?0:(N=Z.thumbnails)==null?0:N.length){Z=L.headerOverlayImage.thumbnails[0];var S,u;if((S=L.pdgPurchasedNoveltyLoggingDirectives)==null?0:(u=S.loggingDirectives)==null?0:u.trackingParams){var T,W;Fsw((T=L.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(W=T.loggingDirectives)==null?void 0:W.trackingParams)}return Z.width||0}return 0};
_.t.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.t.updateStickerStyles=function(){var L=this.data;L&&(L={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(L.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(L.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(L.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(L.authorNameTextColor)},
_.Ld(this.hostElement,L))};
_.t.onBuyButtonClick=function(){var L,Z=_.n((L=this.data)==null?void 0:L.buyButton,_.xZ);Z&&!Qz0(Z.command)&&this.ytRendererBehavior.logExplicitClick(Z)};
_.t.shouldSupportWholeItemClick=function(){return!0};
_.gd.Object.defineProperties(MW.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 L;return((L=this.data)==null?0:L.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
MW.prototype.updateStickerStyles=MW.prototype.updateStickerStyles;MW.prototype.isDeletedChanged=MW.prototype.isDeletedChanged;MW.prototype.onStickerLoaded=MW.prototype.onStickerLoaded;MW.prototype.dataChanged=MW.prototype.dataChanged;_.r([_.y(M6t.YtPdgLiveChatItemBehavior),_.Q("design:type",Object)],MW.prototype,"ytPdgLiveChatItemBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],MW.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.LD.YtLiveChatItemBehavior),_.Q("design:type",_.Zu)],MW.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],MW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],MW.prototype,"data",void 0);
_.r([_.Y({computed:"computeAuthorPhotoSize(data)"}),_.Q("design:type",Number)],MW.prototype,"authorPhotoSize",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],MW.prototype,"isDeleted",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],MW.prototype,"dashboardMoneyFeed",void 0);_.r([_.Y({computed:"computeNoveltyImageWidth(data)"}),_.Q("design:type",Number)],MW.prototype,"noveltyWidth",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],MW.prototype,"modern",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.Q("design:type",Boolean)],MW.prototype,"isV2Style",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],MW.prototype,"dataChanged",null);_.r([_.SA("yt-img-shadow-loaded"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],MW.prototype,"onStickerLoaded",null);
_.r([_.w("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],MW.prototype,"stickerWidth",null);_.r([_.w("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],MW.prototype,"stickerHeight",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],MW.prototype,"hasHeartButton",null);_.r([_.w("data","dashboardMoneyFeed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],MW.prototype,"hideLowerBumper",null);
_.r([_.iA("isDeleted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],MW.prototype,"isDeletedChanged",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],MW.prototype,"updateStickerStyles",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],MW);
_.m(MW,"yt-live-chat-paid-sticker-renderer",function(){if(JML===void 0){var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;mMs===void 0&&(mMs=document.createElement("template"));var S=mMs;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);JML=L}L=JML;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var ORt;var Wpt;var V_L,bRY=function(){return V_L!==void 0?V_L:V_L=document.createElement("template")};
document.head.appendChild(bRY().content);var M_Y,gyN=function(){return M_Y!==void 0?M_Y:M_Y=document.createElement("template")};
document.head.appendChild(gyN().content);var GCL;var Fph,$A0=function(){return Fph!==void 0?Fph:Fph=document.createElement("template")};
document.head.appendChild($A0().content);var DAN;var l6O=document.head,vyQ=l6O.appendChild,oyh;if(DAN===void 0){var RSO=document.createElement("template");_.k(RSO,"\x3c!--css-build:shady--\x3e");RSO.content.insertBefore($A0().content.cloneNode(!0),RSO.content.firstChild);DAN=RSO}oyh=DAN;vyQ.call(l6O,oyh.content);var cTL=document.head,nyY=cTL.appendChild,Kps;if(GCL===void 0){var gV=document.createElement("template");_.k(gV,"\x3c!--css-build:shady--\x3e");gV.content.insertBefore(gyN().content.cloneNode(!0),gV.content.firstChild);gV.content.insertBefore(bRY().content.cloneNode(!0),gV.content.firstChild);GCL=gV}Kps=GCL;nyY.call(cTL,Kps.content);var GL=function(){var L=_.Ok.apply(this,arguments)||this;L.focusedIndex=0;L.verticalOffset=0;L.verticalAlign="top";L.dynamicAlign=!0;return L};
_.f(GL,_.Ok);GL.prototype.emojiUrl=function(L){L=_.BS(this.emojiManager,L);if(!L)return"";var Z;L=(Z=L.image)==null?void 0:Z.thumbnails;return _.r$(L,24)||""};
var f6h=function(L){var Z;L.emojiVariants&&(Z=L.data)!=null&&Z.target&&_.bN(L,function(){L.set("verticalOffset",-1*L.hostElement.clientHeight);var N=_.QJ(L.hostElement).querySelector("img");N&&N.focus()})};
_.t=GL.prototype;_.t.onKeyboardEnter=function(){};
_.t.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.t.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.t.onKeyDown=function(L){switch(L.keyCode){case 13:this.onKeyboardEnter();L.preventDefault();break;case 40:this.changeFocus(1);L.preventDefault();break;case 38:this.changeFocus(-1);L.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.t.onYtEmojiSelect=function(L){var Z=this,N,S,u,T,W,V,M,G;return _.b(function(D){if(D.nextAddress==1)return S=(N=Z.data)==null?void 0:N.emoji,W=((u=S)==null?void 0:u.stickyPrefId)||((T=S)==null?void 0:T.emojiId),M=(V=L.detail)==null?void 0:V.emojiId,W&&M&&W!==M?D.yield((G=Z.emojiManager)==null?void 0:YsQ(G,S,M),2):D.return();_.XJ(Z.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[S,M]);_.w7(D)})};
_.t.changeFocus=function(L){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+L+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(L=_.QJ(this.hostElement).querySelector("#variants"))&&L.children[this.focusedIndex].focus())};
_.gd.Object.defineProperties(GL.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
GL.prototype.onYtEmojiSelect=GL.prototype.onYtEmojiSelect;GL.prototype.onKeyDown=GL.prototype.onKeyDown;GL.prototype.onEmojiVariantsChanged=GL.prototype.onEmojiVariantsChanged;GL.prototype.onVerticalOffsetOrPositionTargetChanged=GL.prototype.onVerticalOffsetOrPositionTargetChanged;_.r([_.y(_.Zs),_.Q("design:type",Object)],GL.prototype,"ironOverlayBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],GL.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",_.HS)],GL.prototype,"emojiManager",void 0);
_.r([_.Y(),_.Q("design:type",Object)],GL.prototype,"emojiVariants",void 0);_.r([_.Y(),_.Q("design:type",Object)],GL.prototype,"focusedIndex",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],GL.prototype,"positionTarget",null);_.r([_.Y({reflectToAttribute:!0}),_.w("verticalOffset","data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],GL.prototype,"isPositioned",null);_.r([_.Y(),_.Q("design:type",Object)],GL.prototype,"verticalOffset",void 0);
_.r([_.Y(),_.Q("design:type",Object)],GL.prototype,"verticalAlign",void 0);_.r([_.Y(),_.Q("design:type",Object)],GL.prototype,"dynamicAlign",void 0);_.r([_.iA("verticalOffset","positionTarget"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],GL.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.r([_.iA("emojiVariants"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],GL.prototype,"onEmojiVariantsChanged",null);
_.r([_.SA("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent]),_.Q("design:returntype")],GL.prototype,"onKeyDown",null);_.r([_.SA("yt-emoji-select"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype",Promise)],GL.prototype,"onYtEmojiSelect",null);_.r([_.Wh()],GL);var kCt=[GL.prototype];var yTL;var wJt;var UAh=/medium-light|medium-dark|light|medium|dark/,Ygq=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,eSq=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),FP=function(){var L=_.e.apply(this,arguments)||this;L.userSelection={left:null,right:null};L.scrollAction="lock";L.isEmojiDraftInProgress=!1;return L};
_.f(FP,_.e);_.t=FP.prototype;_.t.onClick=function(L){L=_.jD(L);L instanceof HTMLImageElement&&this.selectOrUpdateEmoji(L)};
_.t.selectOrUpdateEmoji=function(L){var Z=L.getAttribute("selection");Z&&(Z==="default"?_.QT(this.hostElement,"yt-emoji-select",_.BS(this.emojiManager,L.id)):Z==="left"?this.userSelection=Object.assign({},this.userSelection,{left:L.src}):Z==="right"?this.userSelection=Object.assign({},this.userSelection,{right:L.src}):Z==="user"&&this.userSelection.left&&this.userSelection.right&&_.QT(this.hostElement,"yt-emoji-select",_.BS(this.emojiManager,L.id)))};
_.t.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.t.onMultiSelectorThumbnailRowChanged=function(){var L,Z,N;((L=this.data)==null?0:(Z=L.emoji)==null?0:(N=Z.multiSelectorThumbnailRow)==null?0:N.length)&&this.openSelector()};
_.t.getThumbnailFromEmojiRow=function(L){var Z,N;return(L==null?void 0:(Z=L.thumbnails)==null?void 0:(N=Z[0])==null?void 0:N.url)||""};
_.t.getEmojiAltTextForPartialSelector=function(L){var Z;return((Z=this.getThumbnailFromEmojiRow(L).match(Ygq))==null?void 0:Z[0])||""};
_.t.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.t.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.t.getRowSelection=function(L){return["left","right"][L]};
_.t.getIdFromComposedEmoji=function(L){return(L==null?void 0:L.emojiId)||""};
_.t.getEmojiFromPartialSelections=function(L,Z){if(!L&&!Z)return null;var N,S,u=(N=this.data)==null?void 0:(S=N.emoji)==null?void 0:S.variantIds;if(!u||!u.length)return null;var T;L=(T=L.match(UAh))==null?void 0:T[0];var W;Z=(W=Z.match(UAh))==null?void 0:W[0];if(!L||!Z)return null;var V=eSq.get(L);W=eSq.get(Z);if(V===W){W=Array.from(eSq.values()).filter(function(G){return G!==V}).join("|");
var M=new RegExp("^((?!("+W+")).)*"+V+"$")}else M=new RegExp(V+".*"+W);return(u=u.find(function(G){return M.test(G)}))&&_.BS(this.emojiManager,u)||null};
_.t.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var L,Z=this.ytEmojiSelectorBehavior.emojiUrl(((L=this.data.emoji)==null?void 0:L.emojiId)||"");_.QJ(this.hostElement).querySelector('[selection="user"]').src.includes(Z)||(this.isEmojiDraftInProgress=!0)}};
_.t.onDomChange=function(){f6h(this.ytEmojiSelectorBehavior)};
_.t.getFocusableElements=function(){return _.QJ(this.hostElement).querySelectorAll("img").filter(function(L){return L.getAttribute("role")==="option"})};
_.t.changeFocus=function(L){var Z=this.getFocusableElements();Z!=null&&Z.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+L+Z.length)%Z.length,this.ytEmojiSelectorBehavior.focusedIndex<Z.length&&(L=Z[this.ytEmojiSelectorBehavior.focusedIndex])&&L.focus())};
_.t.onKeyboardEnter=function(){var L=this.getFocusableElements();L!=null&&L.length&&(L=L[this.ytEmojiSelectorBehavior.focusedIndex])&&L instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(L),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.gd.Object.defineProperties(FP.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var L=this,Z,N,S;return this.emojiManager&&((Z=this.data)==null?0:(N=Z.emoji)==null?0:(S=N.variantIds)==null?0:S.length)?this.data.emoji.variantIds.map(function(u){return!!u&&_.BS(L.emojiManager,u)}).filter(function(u){return!!u}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var L,Z=(L=this.userSelection)==null?void 0:L.left,N;L=(N=this.userSelection)==null?void 0:N.right;return Z&&L?this.getEmojiFromPartialSelections(Z,L):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.composedEmojiSelection)==null?0:L.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var Z;L=(Z=this.userSelection)==null?void 0:Z.left;var N;Z=(N=this.userSelection)==null?void 0:N.right;if(!L&&!Z){var S;return this.ytEmojiSelectorBehavior.emojiUrl(((S=this.data.emoji)==null?void 0:S.emojiId)||"")}return L&&!Z?L:!L&&Z?Z:""}}});
FP.prototype.onMultiSelectorThumbnailRowChanged=FP.prototype.onMultiSelectorThumbnailRowChanged;FP.prototype.onClick=FP.prototype.onClick;_.r([_.y(_.Zs),_.Q("design:type",Object)],FP.prototype,"ironOverlayBehavior",void 0);_.r([_.y(kCt),_.Q("design:type",Object)],FP.prototype,"ytEmojiSelectorBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],FP.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",_.HS)],FP.prototype,"emojiManager",void 0);
_.r([_.Y(),_.Q("design:type",Object)],FP.prototype,"userSelection",void 0);_.r([_.Y(),_.Q("design:type",Object)],FP.prototype,"scrollAction",void 0);_.r([_.Y(),_.Q("design:type",Object)],FP.prototype,"isEmojiDraftInProgress",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],FP.prototype,"emojiVariants",null);_.r([_.w("data","userSelection"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],FP.prototype,"composedEmojiSelection",null);
_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[MouseEvent]),_.Q("design:returntype")],FP.prototype,"onClick",null);_.r([_.iA("data.emoji.multiSelectorThumbnailRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],FP.prototype,"onMultiSelectorThumbnailRowChanged",null);_.r([_.w("data","userSelection","composedEmojiSelection"),_.Q("design:type",String),_.Q("design:paramtypes",[])],FP.prototype,"draftEmojiUrl",null);
_.r([_.ch({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],FP);
_.m(FP,"yt-emoji-multi-person-selector",function(){if(wJt===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;yTL===void 0&&(yTL=document.createElement("template"));var S=yTL;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);wJt=L}L=wJt;return L},{mode:2});var I6l;var dAh;var $w=function(){var L=_.e.apply(this,arguments)||this;L.tooltip_=null;return L};
_.f($w,_.e);_.t=$w.prototype;_.t.dataChanged_=function(){var L;if((L=this.data)==null?0:L.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.QJ(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.qJ)(this.tooltip_).textContent=this.data.tooltip};
_.t.computeTargetId=function(){var L;return((L=this.data)==null?void 0:L.targetId)||""};
_.t.computeId_=function(L){return L};
_.t.computeIcon_=function(L){return _.Bh(L)};
_.t.onTap_=function(){this.active=!this.active;_.QT(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.t.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("active-changed",this.active))};
_.gd.Object.defineProperties($w.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var L,Z;if((L=this.data)==null?0:(Z=L.icon)==null?0:Z.iconType)return this.data.icon.iconType==="SUPER_STICKER";var N,S;return((N=this.data)==null?void 0:(S=N.icon)==null?void 0:S.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
$w.prototype.activeChangedForBinding=$w.prototype.activeChangedForBinding;$w.prototype.dataChanged_=$w.prototype.dataChanged_;_.r([_.y(_.Cf.YtLiveChatTooltipTargetingBehavior),_.Q("design:type",Object)],$w.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],$w.prototype,"data",void 0);_.r([_.Y({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.Q("design:type",String)],$w.prototype,"id",void 0);
_.r([_.Y({computed:"computeTargetId(data.targetId)"}),_.Q("design:type",String)],$w.prototype,"targetId",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],$w.prototype,"active",void 0);_.r([_.Y({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.Q("design:type",String)],$w.prototype,"icon",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$w.prototype,"dataChanged_",null);
_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],$w.prototype,"iconFilled",null);_.r([_.iA("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$w.prototype,"activeChangedForBinding",null);_.r([_.ch({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],$w);
_.m($w,"yt-emoji-picker-category-button-renderer",function(){if(dAh===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;I6l===void 0&&(I6l=document.createElement("template"));var S=I6l;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);dAh=L}L=dAh;return L},{mode:2});var a6Y;var hSN;var Du=function(){var L=_.e.apply(this,arguments)||this;L.ariaLabel=null;L.ariaActivedescendant=null;L.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};L.JSC$14290_ignoreNextFocus_=!1;L.longPressTimeoutId=-1;return L};
_.f(Du,_.e);_.t=Du.prototype;_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.t.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.t.emojiChanged_=function(){this.changeFocus_(0,!1);for(var L=_.tC(),Z=0;Z<this.emoji.length;Z++){var N={veType:88013,elementIndex:Z},S=this.emoji[Z];S.isCustomEmoji&&(S=document.querySelector(("#"+S.emojiId).replace("/","\\/")))&&(N=_.Si(L,N))&&(S.visualElement=N)}};
_.t.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.t.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.t.emojiSkinToneChanged_=function(L){this.skinTone=L};
_.t.dataChanged=function(){this.data&&this.data.emojiData&&khM(this.emojiManager,this.data.emojiData)};
_.t.emojiUrl=function(L){L=this.getEmoji(L);if(!L)return"";var Z;L=(Z=L.image)==null?void 0:Z.thumbnails;return _.r$(L,24)||""};
_.t.emojiAlt=function(L){var Z=this.get("image.accessibility.accessibilityData.label",L);return Z?Z:L.isCustomEmoji?L.shortcuts[0]:L.emojiId};
_.t.emojiAriaLabel=function(L){return L.shortcuts?L.shortcuts[0]:""};
_.t.emojiAriaSelected=function(L,Z,N){return L&&N==Z?"true":"false"};
_.t.getEmoji=function(L){if(this.emojiManager)return this.shouldUseStickyPreferences?wCs(this.emojiManager,L):xX(this.emojiManager,L)};
_.t.computeId_=function(L){return L.categoryId||""};
_.t.computeEmoji=function(L){var Z=this;return this.emojiManager?L.emojiIds?L.emojiIds.map(function(N){return N?_.BS(Z.emojiManager,N):null}).filter(hS0):L.emojiData?L.emojiData.map(function(N){var S=!!N.emojiId&&_.BS(Z.emojiManager,N.emojiId);
return S?Object.assign({},S,N):null}).filter(hS0):[]:[]};
_.t.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.t.computeAriaLabel_=function(L){return _.jM(L)};
_.t.computeAriaActivedescendant_=function(L,Z){return L&&L[Z]?L[Z].emojiId||"":""};
_.t.handleLongPressEmojiWithVariants=function(L,Z){this.changeFocusToEmoji(L.emojiId,!1);this.openVariantSelector(L,Z)};
_.t.onMouseDown=function(L){var Z=this;this.hostElement!==document.activeElement&&(this.JSC$14290_ignoreNextFocus_=!0);if(L.button===0){var N=_.jD(L);if(N instanceof HTMLImageElement){var S=_.QJ(this.hostElement).querySelector("#repeat").itemForElement(N);this.emojiContainsVariants(S)&&(this.longPressTimeoutId=setTimeout(function(){Z.handleLongPressEmojiWithVariants(S,N)},500))}}};
_.t.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.t.onFocus=function(){this.JSC$14290_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14290_ignoreNextFocus_=!1};
_.t.onBlur_=function(){this.showFocus=!1};
_.t.emojiContainsVariants=function(L){return!!(L&&L.variantIds&&L.variantIds.length)};
_.t.onClick=function(L){clearTimeout(this.longPressTimeoutId);L=_.jD(L);if(L instanceof HTMLImageElement){var Z=L.id;this.changeFocusToEmoji(Z,!1);var N=this.getEmoji(Z),S;if(S=this.shouldUseStickyPreferences&&this.emojiContainsVariants(N)){var u;S=!((u=this.emojiManager.emojiMap[Z])!=null&&u.stickyPrefId)}S?(u=_.QJ(this.hostElement).querySelector("#repeat").itemForElement(L),this.openVariantSelector(u,L)):_.QT(this.hostElement,"yt-emoji-select",N)}};
_.t.isActiveEmojiWithVariants=function(L,Z){return L&&Z?Z.stickyPrefId?L===Z.stickyPrefId:L===Z.emojiId:!1};
_.t.onCloseEmojiVariantSelector=function(L){this.activeEmojiWithVariantsId===L&&(this.activeEmojiWithVariantsId="")};
_.t.onMouseOver_=function(L){L=_.jD(L);L instanceof HTMLImageElement&&_.QT(this.hostElement,"yt-emoji-hover",_.BS(this.emojiManager,L.id))};
_.t.changeFocus_=function(L,Z){this.focusedIndex=(this.focusedIndex+L+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(L=this.emoji[this.focusedIndex],Z&&(this.showFocus=!0,_.QJ(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.QT(this.hostElement,"yt-emoji-hover",L)))};
_.t.changeFocusToEmoji=function(L,Z){if(L){var N=this.emoji.findIndex(function(S){return S.emojiId===L});
N!==-1&&this.changeFocus_(N-this.focusedIndex,Z)}};
_.t.onKeyDown_=function(L){switch(L.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var Z=this.emoji[this.focusedIndex];if(Z&&Z.emojiId){if(this.emojiContainsVariants(Z)){var N=_.QJ(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(Z,N)}else _.QT(this.hostElement,"yt-emoji-select",xX(this.emojiManager,Z.emojiId)),this.hostElement.focus();L.preventDefault()}}break;case 40:this.changeFocus_(1,!0);L.preventDefault();break;case 38:this.changeFocus_(-1,!0),
L.preventDefault()}};
_.t.onEmojiStickyPreferenceChanged=function(L,Z){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&L.emojiId&&L.variantIds&&L.variantIds.includes(Z)&&this.activeEmojiWithVariantsId!==Z&&this.setStickyEmojiPreference(L.emojiId,Z)};
_.t.openVariantSelector=function(L,Z){this.activeEmojiWithVariantsId=L.stickyPrefId||L.emojiId||"";_.QT(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:L,target:Z})};
_.t.setStickyEmojiPreference=function(L,Z){if(this.data){var N=this.emoji.findIndex(function(u){return u.emojiId===L});
if(N!==-1){var S=this.emoji[N];S.stickyPrefId=Z;this.set("emoji."+N,Object.assign({},S));this.activeEmojiWithVariantsId=Z}}};
Du.prototype.onKeyDown_=Du.prototype.onKeyDown_;Du.prototype.onMouseOver_=Du.prototype.onMouseOver_;Du.prototype.onClick=Du.prototype.onClick;Du.prototype.onBlur_=Du.prototype.onBlur_;Du.prototype.onFocus=Du.prototype.onFocus;Du.prototype.onMouseUp=Du.prototype.onMouseUp;Du.prototype.onMouseDown=Du.prototype.onMouseDown;Du.prototype.dataChanged=Du.prototype.dataChanged;Du.prototype.disableIncrementalLoadingChanged_=Du.prototype.disableIncrementalLoadingChanged_;Du.prototype.emojiManagerChanged_=Du.prototype.emojiManagerChanged_;
Du.prototype.emojiChanged_=Du.prototype.emojiChanged_;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Du.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Du.prototype,"data",void 0);_.r([_.Y({computed:"computeId_(data)"}),_.Q("design:type",String)],Du.prototype,"id",void 0);_.r([_.Y({computed:"computeEmoji(data)"}),_.Q("design:type",Array)],Du.prototype,"emoji",void 0);_.r([_.Y(),_.Q("design:type",Number)],Du.prototype,"skinTone",void 0);
_.r([_.Y(),_.Q("design:type",_.HS)],Du.prototype,"emojiManager",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Du.prototype,"disableIncrementalLoading",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],Du.prototype,"focusedIndex",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Du.prototype,"showFocus",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.Q("design:type",Object)],Du.prototype,"ariaLabel",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.Q("design:type",Object)],Du.prototype,"ariaActivedescendant",void 0);_.r([_.Y({value:60}),_.Q("design:type",Number)],Du.prototype,"domRepeatTargetFramerate",void 0);_.r([_.Y({value:1}),_.Q("design:type",Number)],Du.prototype,"domRepeatInitialCount",void 0);_.r([_.Y({value:""}),_.Q("design:type",String)],Du.prototype,"activeEmojiWithVariantsId",void 0);
_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Du.prototype,"shouldUseStickyPreferences",void 0);_.r([_.iA("emoji"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Du.prototype,"emojiChanged_",null);_.r([_.iA("emojiManager"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Du.prototype,"emojiManagerChanged_",null);
_.r([_.iA("disableIncrementalLoading"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Du.prototype,"disableIncrementalLoadingChanged_",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Du.prototype,"dataChanged",null);_.r([_.SA("mousedown"),_.Q("design:type",Function),_.Q("design:paramtypes",[Object]),_.Q("design:returntype")],Du.prototype,"onMouseDown",null);
_.r([_.SA("mouseup"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Du.prototype,"onMouseUp",null);_.r([_.SA("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Du.prototype,"onFocus",null);_.r([_.SA("blur"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Du.prototype,"onBlur_",null);
_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Du.prototype,"onClick",null);_.r([_.SA("mouseover"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Du.prototype,"onMouseOver_",null);_.r([_.SA("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Du.prototype,"onKeyDown_",null);
_.r([_.ch({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],Du);
_.m(Du,"yt-emoji-picker-category-renderer",function(){if(hSN===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;a6Y===void 0&&(a6Y=document.createElement("template"));var S=a6Y;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);hSN=L}L=hSN;return L},{mode:2});var sRt;var jRl;var EyL;var P1t;var lo=function(){var L=_.e.apply(this,arguments)||this;L.ariaLabel=null;L.ariaActivedescendant=null;L.getFormattedStringRawText=_.jM;L.JSC$14296_ignoreNextFocus_=!1;return L};
_.f(lo,_.e);_.t=lo.prototype;_.t.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")};
_.t.emojiUrl=function(L){var Z,N;L=(Z=xX(this.emojiManager,L,!0))==null?void 0:(N=Z.image)==null?void 0:N.thumbnails;return _.r$(L,24)||""};
_.t.emojiAlt=function(L){var Z=this.get("image.accessibility.accessibilityData.label",L);return Z?Z:L.isCustomEmoji?L.shortcuts[0]:L.emojiId};
_.t.emojiId=function(L){return"emoji"+L};
_.t.computeId_=function(L){return L.categoryId||""};
_.t.computeAriaActivedescendant_=function(L){return this.emoji&&L<this.emoji.length?this.emojiId(L):""};
_.t.emojiChanged_=function(){this.changeFocus_(0,!1);for(var L=_.tC(),Z=0;Z<this.emoji.length;Z++){var N={veType:88013,elementIndex:Z},S=this.emoji[Z];S.isCustomEmoji&&(S=document.querySelector(("#"+S.emojiId).replace("/","\\/")))&&(N=_.Si(L,N))&&(S.visualElement=N)}};
_.t.computeEmoji_=function(L){var Z=this;return this.emojiManager?L.emojiIds.map(function(N){return _.BS(Z.emojiManager,N,!0)}).filter(sRf):[]};
_.t.titleOffsetChanged_=function(){var L=this.hostElement.getBoundingClientRect(),Z=_.QJ(this.hostElement).querySelector("#title").getBoundingClientRect();L=Math.max(0,Math.min(this.titleOffset,L.height-Z.height));_.QJ(this.hostElement).querySelector("#title").style.top=L+"px"};
_.t.onEmojiMouseOver_=function(L){_.QT(this.hostElement,"yt-emoji-hover",L.model.item)};
_.t.onEmojiTap_=function(L){this.data.command&&(L=nrF(_.GR().resolve(_.gv(qC)),this.data.command,L),_.QT(this.hostElement,"yt-navigate",L))};
_.t.emojiAriaLabel=function(L){return L.shortcuts[0]};
_.t.emojiAriaSelected=function(L,Z,N){return L&&N==Z?"true":"false"};
_.t.changeFocus_=function(L,Z){var N=this.emoji.length;this.focusedIndex=(this.focusedIndex+L+N)%N;L=this.emoji[this.focusedIndex];if(Z){var S;(S=_.QJ(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||S.scrollIntoView(!1);_.QT(this.hostElement,"yt-emoji-hover",L)}};
_.t.onMouseDown_=function(){this.JSC$14296_ignoreNextFocus_=!0};
_.t.onFocus_=function(){this.JSC$14296_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14296_ignoreNextFocus_=!1};
_.t.onBlur_=function(){this.showFocus=!1};
_.t.onKeyDown_=function(L){switch(L.keyCode){case 13:this.onEmojiTap_(L);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);L.preventDefault();break;case 38:this.changeFocus_(-1,!0),L.preventDefault()}};
lo.prototype.onKeyDown_=lo.prototype.onKeyDown_;lo.prototype.onBlur_=lo.prototype.onBlur_;lo.prototype.onFocus_=lo.prototype.onFocus_;lo.prototype.onMouseDown_=lo.prototype.onMouseDown_;lo.prototype.onEmojiTap_=lo.prototype.onEmojiTap_;lo.prototype.titleOffsetChanged_=lo.prototype.titleOffsetChanged_;lo.prototype.emojiChanged_=lo.prototype.emojiChanged_;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],lo.prototype,"ytComponentBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],lo.prototype,"data",void 0);_.r([_.Y({computed:"computeId_(data)"}),_.Q("design:type",String)],lo.prototype,"id",void 0);_.r([_.Y({computed:"computeEmoji_(data)"}),_.Q("design:type",Array)],lo.prototype,"emoji",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],lo.prototype,"titleOffset",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.Q("design:type",Object)],lo.prototype,"ariaLabel",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.Q("design:type",Object)],lo.prototype,"ariaActivedescendant",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],lo.prototype,"showFocus",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],lo.prototype,"focusedIndex",void 0);_.r([_.Y(),_.Q("design:type",_.HS)],lo.prototype,"emojiManager",void 0);
_.r([_.iA("emoji"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lo.prototype,"emojiChanged_",null);_.r([_.iA("titleOffset"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lo.prototype,"titleOffsetChanged_",null);_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],lo.prototype,"onEmojiTap_",null);
_.r([_.SA("mousedown"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lo.prototype,"onMouseDown_",null);_.r([_.SA("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lo.prototype,"onFocus_",null);_.r([_.SA("blur"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lo.prototype,"onBlur_",null);
_.r([_.SA("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],lo.prototype,"onKeyDown_",null);_.r([_.ch({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],lo);
_.m(lo,"yt-emoji-picker-upsell-category-renderer",function(){if(P1t===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;EyL===void 0&&(EyL=document.createElement("template"));var S=EyL;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);P1t=L}L=P1t;return L},{mode:2});var pJV;var zSL;var v0=function(){var L=_.e.apply(this,arguments)||this;L.scrollAction="lock";L.verticalAlign="top";return L};
_.f(v0,_.e);_.t=v0.prototype;_.t.onClick=function(L){L=_.jD(L);L instanceof HTMLImageElement&&_.QT(this.hostElement,"yt-emoji-select",_.BS(this.emojiManager,L.id))};
_.t.openSelector=function(){this.ironOverlayBehavior.open()};
_.t.onDomChange=function(){f6h(this.ytEmojiSelectorBehavior)};
_.t.computeIsFamilySelector=function(L){var Z;return(L==null?void 0:(Z=L.emoji)==null?void 0:Z.emojiId)==="\ud83d\udc6a"};
_.t.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var L=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];L&&L.emojiId&&(_.QT(this.hostElement,"yt-emoji-select",_.BS(this.emojiManager,L.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.gd.Object.defineProperties(v0.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var L=this,Z,N,S;return this.emojiManager&&((Z=this.data)==null?0:(N=Z.emoji)==null?0:(S=N.variantIds)==null?0:S.length)?this.data.emoji.variantIds.map(function(u){return!!u&&_.BS(L.emojiManager,u)}).filter(function(u){return!!u}):[]}}});
v0.prototype.onClick=v0.prototype.onClick;_.r([_.y(_.Zs),_.Q("design:type",Object)],v0.prototype,"ironOverlayBehavior",void 0);_.r([_.y(kCt),_.Q("design:type",Object)],v0.prototype,"ytEmojiSelectorBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],v0.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",_.HS)],v0.prototype,"emojiManager",void 0);_.r([_.Y(),_.Q("design:type",Object)],v0.prototype,"scrollAction",void 0);_.r([_.Y(),_.Q("design:type",Object)],v0.prototype,"verticalAlign",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.Q("design:type",Boolean)],v0.prototype,"isFamilySelector",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],v0.prototype,"emojiVariants",null);_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[MouseEvent]),_.Q("design:returntype")],v0.prototype,"onClick",null);_.r([_.ch({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],v0);
_.m(v0,"yt-emoji-variant-selector",function(){if(zSL===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;pJV===void 0&&(pJV=document.createElement("template"));var S=pJV;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);zSL=L}L=zSL;return L},{mode:2});var mAM=/:/g,JTt=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],oU=function(){var L=_.e.apply(this,arguments)||this;L.emojiVariantSelector=null;L.emojiMultiPersonSelector=null;L.identity=_.sG;L.lastAnimationTime_=0;L.animationStart_=null;L.animationEnd_=null;return L};
_.f(oU,_.e);_.t=oU.prototype;
_.t.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}}};
_.t.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.qN)};
_.t.attached=function(){_.BV&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&yMM(this.emojiManager)};
_.t.dataChanged=function(){var L;if((L=this.data)==null?0:L.categories){L=this.emojiManager;var Z=this.getCustomEmojiIds();L.pickerCustomEmojiIds=[].concat(_.Pd(R8O),_.Pd(Z))}};
_.t.getCustomEmojiIds=function(){var L,Z=(L=this.data.categories)==null?void 0:L.find(function(T){var W;return((W=T.emojiPickerCategoryRenderer)==null?void 0:W.categoryId)&&JTt.includes(T.emojiPickerCategoryRenderer.categoryId)}),N;
L=(N=this.data.categories)==null?void 0:N.find(function(T){return T.emojiPickerUpsellCategoryRenderer});
var S,u;return[Z==null?void 0:(S=Z.emojiPickerCategoryRenderer)==null?void 0:S.emojiIds,L==null?void 0:(u=L.emojiPickerUpsellCategoryRenderer)==null?void 0:u.emojiIds].flat().filter(function(T){return!!T})};
_.t.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.t.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.t.updateCategoriesAndPlaceholderInternal=function(L,Z){var N=this;L&&Z&&(this.categories=L.categories||[],this.categoryButtons=L.categoryButtons||[],this.resetPlaceholder(),this.search="",_.Uk(function(){N.updateButtons_()}))};
_.t.computeId_=function(L){return L.id||""};
_.t.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(L){return L.emojiPickerCategoryRenderer&&L.emojiPickerCategoryRenderer.emojiData}):!1};
_.t.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.t.onShowEmojiVariantSelector=function(L){var Z=L.detail.emojiData;Z.variantIds&&Z.variantIds.length&&(Z.multiSelectorThumbnailRow&&Z.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:Z,target:L.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:Z,target:L.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.t.onIronOverlayClosed=function(L){var Z=wCs(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");Z&&L.composedPath&&(L.composedPath().includes(_.QJ(this.hostElement).querySelector("#emoji-variant-selector"))||L.composedPath().includes(_.QJ(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.XJ(this.hostElement,"yt-close-emoji-variant-selector",[Z.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.t.onEmojiVariantSelectorMouseup=function(L){var Z=L.target.firstChild;this.variantSelectorOpened&&Z&&_.Uk(function(){Z.noCancelOnOutsideClick=!1},100)};
_.t.onEmojiVariantSelectorMousedown=function(L){L=L.target.firstChild;this.variantSelectorOpened&&L&&(L.noCancelOnOutsideClick=!1)};
_.t.onSelectCategory_=function(L){var Z=this.search!="";this.search="";for(var N=_.QJ(this.hostElement).querySelector("#categories").children,S=0;S<N.length;S++){var u=N[S];if(u.id==L.detail.categoryId){Z?(_.QJ(this.hostElement).querySelector("#categories").scrollTop=u.offsetTop,this.updateButtons_()):(this.animationStart_=_.QJ(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=u.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.t.onEmojiHover_=function(L){this.placeholder=L.detail.shortcuts?L.detail.shortcuts[0]:""};
_.t.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.t.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.t.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.t.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.t.computeSearchCategory_=function(L){L=L.replace(mAM,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();L=L.split(" ");for(var Z=[],N=this.emojiManager.emojis,S=0;S<N.length;S++){var u=N[S];if(u.searchTerms)for(var T=0;T<u.searchTerms.length;T++){for(var W=u.searchTerms[T].toLocaleLowerCase(),V=!1,M=0;M<L.length;M++)if(W.indexOf(L[M])!=-1){V=!0;break}if(V&&(!u.isCustomEmoji||!u.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(u.emojiId))){Z.push(u.emojiId);
break}}}return{categoryId:-1,emojiIds:Z}};
_.t.computeSearchEmptyMessage_=function(L,Z){return L&&Z&&Z.emojiIds&&Z.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.t.computeSearching_=function(L){return this.emojiManager&&L.replace(mAM,"").length>1};
_.t.computeSkinToneHidden=function(){var L;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((L=this.data)==null||!L.hideSkinTonePicker)};
_.t.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.t.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.t.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.t.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.t.selectSkinTone_=function(L){L=Number(L.target.getAttribute("tone"));this.set("emojiManager.skinTone",L);_.XJ(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[L]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.t.skinToneChanged_=function(){_.QJ(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var L=_.QJ(this.hostElement).querySelector("#dropdown-content").children,Z=0;Z<L.length;Z++)Z===this.skinTone?L[Z].setAttribute("selected",""):L[Z].removeAttribute("selected")};
_.t.animateScroll_=function(L){this.lastAnimationTime_||(this.lastAnimationTime_=L);L-=this.lastAnimationTime_;L<200?(_.QJ(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*L/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.QJ(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.t.searchChanged_=function(){this.updateButtons_()};
_.t.updateButtons_=function(){var L=null;if(!this.search)for(var Z=_.QJ(this.hostElement).querySelector("#categories").scrollTop,N=_.QJ(this.hostElement).querySelector("#categories").children,S=0;S<N.length;S++){var u=N[S];u.offsetTop<=Z&&(L=u.id)}Z=_.QJ(this.hostElement).querySelector("#category-buttons").children;for(N=0;N<Z.length;N++)S=Z[N],S.active=S.id===L};
oU.prototype.searchChanged_=oU.prototype.searchChanged_;oU.prototype.skinToneChanged_=oU.prototype.skinToneChanged_;oU.prototype.onEmojiHover_=oU.prototype.onEmojiHover_;oU.prototype.onSelectCategory_=oU.prototype.onSelectCategory_;oU.prototype.onShowEmojiVariantSelector=oU.prototype.onShowEmojiVariantSelector;oU.prototype.updateCategoriesAndPlaceholder_=oU.prototype.updateCategoriesAndPlaceholder_;oU.prototype.dataChanged=oU.prototype.dataChanged;
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],oU.prototype,"data",void 0);_.r([_.Y({value:function(){return[]}}),
_.Q("design:type",Array)],oU.prototype,"categories",void 0);_.r([_.Y({value:function(){return[]}}),
_.Q("design:type",Array)],oU.prototype,"categoryButtons",void 0);_.r([_.Y({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],oU.prototype,"disableScroll",void 0);_.r([_.Y({computed:"computeId_(data)",reflectToAttribute:!0}),_.Q("design:type",String)],oU.prototype,"id",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],oU.prototype,"selected",void 0);
_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],oU.prototype,"disableIncrementalLoading",void 0);_.r([_.Y(),_.Q("design:type",String)],oU.prototype,"placeholder",void 0);_.r([_.Y({value:""}),_.Q("design:type",String)],oU.prototype,"search",void 0);_.r([_.Y({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],oU.prototype,"searching",void 0);_.r([_.Y({computed:"computeSearchCategory_(search)"}),_.Q("design:type",Object)],oU.prototype,"searchCategory",void 0);
_.r([_.Y({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.Q("design:type",Object)],oU.prototype,"searchEmptyMessage",void 0);_.r([_.Y({computed:"identity(emojiManager.skinTone)"}),_.Q("design:type",Number)],oU.prototype,"skinTone",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],oU.prototype,"skinToneOpened",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],oU.prototype,"variantSelectorOpened",void 0);
_.r([_.Y({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.Q("design:type",Boolean)],oU.prototype,"skinToneHidden",void 0);_.r([_.Y(),_.Q("design:type",_.HS)],oU.prototype,"emojiManager",void 0);_.r([_.Y(),_.Q("design:type",Object)],oU.prototype,"emojiVariantSelector",void 0);_.r([_.Y(),_.Q("design:type",Object)],oU.prototype,"emojiMultiPersonSelector",void 0);
_.r([_.Y({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.Q("design:type",Boolean)],oU.prototype,"shouldUseStickyPreferences",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oU.prototype,"dataChanged",null);_.r([_.iA("data","selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oU.prototype,"updateCategoriesAndPlaceholder_",null);
_.r([_.SA("yt-show-emoji-variant-selector"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],oU.prototype,"onShowEmojiVariantSelector",null);_.r([_.SA("yt-emoji-picker-select-category"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],oU.prototype,"onSelectCategory_",null);_.r([_.SA("yt-emoji-hover"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],oU.prototype,"onEmojiHover_",null);
_.r([_.iA("skinTone"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oU.prototype,"skinToneChanged_",null);_.r([_.iA("search"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oU.prototype,"searchChanged_",null);_.r([_.ch({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],oU);
_.m(oU,"yt-emoji-picker-renderer",function(){if(jRl===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;sRt===void 0&&(sRt=document.createElement("template"));var S=sRt;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);jRl=L}L=jRl;return L},{mode:2});var RU=function(){var L=_.e.apply(this,arguments)||this;L.emojiManager=_.qN;L.isDarkTheme=document.documentElement.hasAttribute("dark");L.selectedIndex=1;L.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return L};
_.f(RU,_.e);_.t=RU.prototype;_.t.handleEmojiCustomizationVisible=function(L){this.emojiPickerRenderer.selected=L;this.selectedIndex=1;L?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.t.emojiCustomizationSetChanged=function(){var L;(L=this.data)!=null&&L.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Bs(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.t.updateSaveButtonState=function(L){var Z;(Z=this.data)!=null&&Z.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Mr("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:L}))};
_.t.emojiUrl=function(L){L=_.BS(this.emojiManager,L);if(!L)return"";var Z;L=(Z=L.image)==null?void 0:Z.thumbnails;return _.r$(L,24)||""};
_.t.emojiAlt=function(L){var Z=_.BS(this.emojiManager,L);if(!Z)return L;var N,S,u,T=(Z==null?void 0:(N=Z.image)==null?void 0:(S=N.accessibility)==null?void 0:(u=S.accessibilityData)==null?void 0:u.label)||"";return T?T:Z.isCustomEmoji?Z.shortcuts[0]:Z.emojiId||L};
_.t.emojiAriaLabel=function(L){var Z,N;return((Z=_.BS(this.emojiManager,L))==null?void 0:(N=Z.shortcuts)==null?void 0:N[0])||L};
_.t.onEmojiClick=function(L){L.model.index!==0&&(this.selectedIndex=L.model.index)};
_.t.onEmojiSelect=function(L){L=L.detail;var Z,N;((Z=this.data)==null?0:Z.emojiCustomizationSetEntityKey)&&((N=this.emojiCustomizationSet)==null?0:N.emojiId)&&L.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,L.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Mr("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,L.emojiId,this.selectedIndex)}))};
_.t.canEditEmoji=function(L,Z,N){L=L.indexOf(Z);return L===N||L===0||N===0?!1:!0};
_.t.getUpdatedEmojiIdList=function(L,Z,N){var S=L.indexOf(Z);L=[].concat(_.Pd(L));S>=0&&(L[S]=L[N]);L[N]=Z;return L};
_.gd.Object.defineProperties(RU,{template:{configurable:!0,enumerable:!0,get:function(){if(Wpt===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;ORt===void 0&&(ORt=document.createElement("template"));var S=ORt;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Wpt=L}L=Wpt;return L}}});
RU.prototype.onEmojiSelect=RU.prototype.onEmojiSelect;_.r([_.y(_.Je),_.Q("design:type",Object)],RU.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],RU.prototype,"ytActionHandlerBehavior",void 0);_.r([_.TX("yt-emoji-picker-renderer"),_.Q("design:type",Object)],RU.prototype,"emojiPickerRenderer",void 0);
_.r([_.Y({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"emojiCustomizationSetEntity",Z)},
observer:"emojiCustomizationSetChanged"}),_.Q("design:type",Object)],RU.prototype,"emojiCustomizationSet",void 0);_.r([_.Y(),_.Q("design:type",Object)],RU.prototype,"originalEmojiSet",void 0);_.r([_.Y(),_.Q("design:type",_.HS)],RU.prototype,"emojiManager",void 0);_.r([_.Y(),_.Q("design:type",Object)],RU.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],RU.prototype,"isDarkTheme",void 0);_.r([_.Y(),_.Q("design:type",Object)],RU.prototype,"selectedIndex",void 0);
_.r([_.SA("yt-emoji-select"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],RU.prototype,"onEmojiSelect",null);_.r([_.ch({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],RU);var C1l;var rTq;var QRQ;var XJs;var c0=function(){var L=_.e.apply(this,arguments)||this;L.authorBadges=[];return L};
_.f(c0,_.e);_.t=c0.prototype;_.t.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.t.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]]"}}}}}};
_.t.dataChanged=function(){var L=OtL(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",L)};
_.t.updateMessage=function(){var L=this.data.message,Z=_.QJ(_.QJ(this.hostElement).querySelector("#message"));Z.textContent="";L&&Z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(L))};
_.t.shouldSupportWholeItemClick=function(){return!0};
_.t.onShowOriginalClick=function(L){L.preventDefault();this.showOriginal=!0};
_.t.computeShowBar=function(L,Z,N){return L&&Z||N};
_.t.computeAuthorBadges=function(L){return L.authorBadges||[]};
_.t.computeAuthorIsOwner=function(L){return!!WGx(L.authorBadges,"owner")};
_.t.computeAuthorNameColor=function(L){var Z;if(_.c("live_chat_author_name_color_usernames")&&(L==null?0:(Z=L.authorName)==null?0:Z.simpleText))return _.FGH(_.$xw(L.authorName.simpleText));if(_.c("live_chat_seed_color_usernames")&&(L==null?0:L.authorSeedColorArgb))return _.FGH(_.AJ(L.authorSeedColorArgb));if(_.c("live_chat_colored_usernames"))return"#cc0000";var N;return _.c("live_chat_simple_color_usernames")&&(L==null?0:(N=L.authorName)==null?0:N.simpleText)&&(L==null?0:L.authorUsernameColorLight)&&
(L==null?0:L.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.AJ(L.authorUsernameColorDark):_.AJ(L.authorUsernameColorLight):""};
c0.prototype.updateMessage=c0.prototype.updateMessage;c0.prototype.dataChanged=c0.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.LD.YtLiveChatItemBehavior),_.Q("design:type",_.Zu)],c0.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],c0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],c0.prototype,"data",void 0);
_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],c0.prototype,"showOriginal",void 0);_.r([_.Y({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],c0.prototype,"isDimmed",void 0);_.r([_.Y({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],c0.prototype,"showBar",void 0);
_.r([_.Y({computed:"computeAuthorBadges(data)"}),_.Q("design:type",Array)],c0.prototype,"authorBadges",void 0);_.r([_.Y({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],c0.prototype,"authorIsOwner",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],c0.prototype,"inCollapsedBanner",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],c0.prototype,"inBanner",void 0);
_.r([_.Y({value:_.c("live_chat_hide_avatars"),reflectToAttribute:!0}),_.Q("design:type",Boolean)],c0.prototype,"avatarHidden",void 0);_.r([_.Y({computed:"computeAuthorNameColor(data)"}),_.Q("design:type",String)],c0.prototype,"authorNameColor",void 0);_.r([_.Y(),_.Q("design:type",_.io)],c0.prototype,"participantsManager",void 0);_.r([_.Y({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.Q("design:type",Object)],c0.prototype,"filledButtonOverrides",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],c0.prototype,"dataChanged",null);_.r([_.iA("data.message"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],c0.prototype,"updateMessage",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],c0);
_.m(c0,"yt-live-chat-text-message-renderer",function(){if(XJs===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;QRQ===void 0&&(QRQ=document.createElement("template"));var S=QRQ;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);XJs=L}L=XJs;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var nD=function(){var L=_.e.apply(this,arguments)||this;L.tonalButtonOverrides={type:"tonal",style:"overlay"};return L};
_.f(nD,_.e);
nD.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]]"}}}}}};
nD.prototype.shouldSupportInlineActionButtons=function(){return!0};
nD.prototype.shouldSupportWholeItemClick=function(){return!0};
_.gd.Object.defineProperties(nD.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.LD.YtLiveChatItemBehavior),_.Q("design:type",_.Zu)],nD.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],nD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],nD.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",_.io)],nD.prototype,"participantsManager",void 0);
_.r([_.Y(),_.Q("design:type",Object)],nD.prototype,"tonalButtonOverrides",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data.infoDialogButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],nD.prototype,"hasInfoDialogButton",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],nD);
_.m(nD,"yt-live-chat-auto-mod-message-renderer",function(){if(rTq===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;C1l===void 0&&(C1l=document.createElement("template"));var S=C1l;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);rTq=L}L=rTq;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var ATl;var HR5;var B_O;var xAs=function(){return _.e.apply(this,arguments)||this};
_.f(xAs,_.e);_.r([_.Y(),_.Q("design:type",Object)],xAs.prototype,"data",void 0);_.r([_.P({is:"ytd-factoid-renderer",disableElementRegistration:!0})],xAs);
_.m(xAs,"ytd-factoid-renderer",function(){if(B_O!==void 0)return B_O;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return B_O=L},{mode:1});var KD=function(){return _.e.apply(this,arguments)||this};
_.f(KD,_.e);KD.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.r([_.Y(),_.Q("design:type",Object)],KD.prototype,"data",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],KD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],KD);
_.m(KD,"yt-live-chat-channel-activity-reputation-renderer",function(){if(HR5===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;ATl===void 0&&(ATl=document.createElement("template"));var S=ATl;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);HR5=L}L=HR5;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var qgY;var Let;var fD=function(){return _.e.apply(this,arguments)||this};
_.f(fD,_.e);fD.prototype.ready=function(){var L=document.querySelector("yt-live-chat-app");L&&L.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],fD.prototype,"menuFocused",void 0);_.r([_.Y(),_.Q("design:type",Object)],fD.prototype,"data",void 0);_.r([_.y(_.LD.YtLiveChatItemBehavior),_.Q("design:type",_.Zu)],fD.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],fD);
_.m(fD,"yt-live-chat-donation-announcement-renderer",function(){if(Let===void 0){var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;qgY===void 0&&(qgY=document.createElement("template"));var S=qgY;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Let=L}L=Let;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var ZrM;var Nz5,Sut=function(){if(Nz5!==void 0)return Nz5;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;ZrM===void 0&&(ZrM=document.createElement("template"));var S=ZrM;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return Nz5=L};var kw=function(){return _.e.apply(this,arguments)||this};
_.f(kw,_.e);_.gd.Object.defineProperties(kw,{template:{configurable:!0,enumerable:!0,get:function(){return Sut()}}});
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],kw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],kw.prototype,"data",void 0);_.r([_.ch({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],kw);_.m(kw,"yt-live-chat-empty-feed-view-model",function(){return Sut()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var irt;var u15;var y$=function(){return _.e.apply(this,arguments)||this};
_.f(y$,_.e);y$.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"}}}}}};
_.gd.Object.defineProperties(y$.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var L,Z;return{runs:[{text:(L=this.data)==null?void 0:(Z=L.channelName)==null?void 0:Z.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var L=[],Z;if((Z=this.data)==null||!Z.channelBadges)return L;var N;Z=_.O((N=this.data)==null?void 0:N.channelBadges);for(N=Z.next();!N.done;N=Z.next()){N=_.n(N.value,iFt);var S=void 0,u=void 0;if((S=N)==null?0:(u=S.badgeImage)==null?0:u.sources)S=void 0,u={liveChatAuthorBadgeRenderer:{tooltip:N.tooltip,accessibility:{accessibilityData:{label:(S=_.n(N.rendererContext,_.Oi))==null?void 0:S.label}}}},N.badgeImage.sources[0].clientResource?u.liveChatAuthorBadgeRenderer.icon=
{iconType:N.badgeImage.sources[0].clientResource.imageName}:u.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:N.badgeImage.sources},L.push(u)}return L}}});
_.r([_.Y(),_.Q("design:type",Object)],y$.prototype,"data",void 0);_.r([_.w("data.channelName"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],y$.prototype,"channelName",null);_.r([_.w("data.channelBadges"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],y$.prototype,"channelBadges",null);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],y$.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],y$);
_.m(y$,"yt-live-chat-identity-view-model",function(){if(u15===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;irt===void 0&&(irt=document.createElement("template"));var S=irt;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);u15=L}L=u15;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Tz5;var tFt;var Ort;var WeN;var wV=function(){var L=_.e.apply(this,arguments)||this;L.hidden=!1;L.supportsInlineActionButtons=!0;return L};
_.f(wV,_.e);wV.prototype.ready=function(){var L;((L=document.querySelector("yt-live-chat-app"))==null?0:L.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
wV.prototype.dataChanged=function(L){var Z=(0,_.qJ)(_.QJ(this.hostElement).querySelector("#detail-text"));Z.textContent="";(L==null?0:L.detailText)&&Z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(L.detailText))};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],wV.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.LD.YtLiveChatItemBehavior),_.Q("design:type",_.Zu)],wV.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],wV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y({observer:"dataChanged"}),_.Q("design:type",Object)],wV.prototype,"data",void 0);
_.r([_.Y({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.Q("design:type",Object)],wV.prototype,"hidden",void 0);_.r([_.P({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],wV);
_.m(wV,"yt-live-chat-legacy-paid-message-renderer",function(){if(WeN===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Ort===void 0&&(Ort=document.createElement("template"));var S=Ort;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);WeN=L}L=WeN;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var VFM;var brQ;var MFt={},Uw=function(){return _.Ok.apply(this,arguments)||this};
_.f(Uw,_.Ok);Uw.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Uw.prototype.onLiveChatMembershipItemBehaviorClick=Uw.prototype.onLiveChatMembershipItemBehaviorClick;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uw.prototype,"data",void 0);_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Uw.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.r([_.Wh()],Uw);
MFt.YtLiveChatMembershipItemBehavior=[Uw.prototype,_.B.YtRendererBehavior];var Yw=function(){var L=_.e.apply(this,arguments)||this;L.supportsInlineActionButtons=!0;L.hasPrimaryHeaderText=!1;L.showOnlyHeader=!1;L.authorBadges=[];L.modern=_.c("web_button_rework_with_live");L.buttonOverrides={style:"overlay",type:"filled"};return L};
_.f(Yw,_.e);_.t=Yw.prototype;_.t.shouldSupportInlineActionButtons=function(){return!0};
_.t.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.t.ready=function(){var L=document.querySelector("yt-live-chat-app");L&&L.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.t.messageChanged=function(){var L=this.data.message,Z=(0,_.qJ)(_.QJ(this.hostElement).querySelector("#message"));Z.textContent="";L&&Z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(L))};
_.t.computeHasPrimaryHeaderText=function(L){return!(!L||!L.headerPrimaryText)};
_.t.computeShowOnlyHeader=function(L,Z){return this.isMessageEmpty(L,Z)};
_.t.computeAuthorBadges=function(L){return L.authorBadges||[]};
_.t.isMessageEmpty=function(L,Z){return!L||L.empty?!0:!L.message&&!L.inputField&&!Z};
_.t.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.t.getInputElement=function(){return _.QJ(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.t.inputFocus=function(){var L=this.getInputElement();L&&L.focus()};
_.t.inputInsertEmoji=function(L){var Z=this.getInputElement();Z&&Z.insertEmoji(L)};
_.t.inputMessage=function(){var L=this.getInputElement();return L&&this.data.inputField?(L.completeEmojis(),_.UC(L.liveChatRichMessageInput)):null};
_.t.onFooterButtonClick=function(){this.data.footerButton&&_.QT(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.t.shouldSupportWholeItemClick=function(){return!0};
Yw.prototype.isDeletedChanged=Yw.prototype.isDeletedChanged;Yw.prototype.messageChanged=Yw.prototype.messageChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.LD.YtLiveChatItemBehavior),_.Q("design:type",_.Zu)],Yw.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.y(MFt.YtLiveChatMembershipItemBehavior),_.Q("design:type",Object)],Yw.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yw.prototype,"data",void 0);_.r([_.Y({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],Yw.prototype,"hasPrimaryHeaderText",void 0);_.r([_.Y({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Q("design:type",Object)],Yw.prototype,"showOnlyHeader",void 0);
_.r([_.Y({computed:"computeAuthorBadges(data)"}),_.Q("design:type",Array)],Yw.prototype,"authorBadges",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Yw.prototype,"modern",void 0);_.r([_.iA("data.message"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yw.prototype,"messageChanged",null);_.r([_.iA("isDeleted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yw.prototype,"isDeletedChanged",null);
_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Yw);
_.m(Yw,"yt-live-chat-membership-item-renderer",function(){if(brQ===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;VFM===void 0&&(VFM=document.createElement("template"));var S=VFM;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);brQ=L}L=brQ;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var gc0;var GOV;var ek=function(){return _.e.apply(this,arguments)||this};
_.f(ek,_.e);ek.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ek.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ek.prototype,"data",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],ek);
_.m(ek,"yt-live-chat-mode-change-message-renderer",function(){if(GOV===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;gc0===void 0&&(gc0=document.createElement("template"));var S=gc0;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);GOV=L}L=GOV;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Fet;var $yM;var IU=function(){return _.e.apply(this,arguments)||this};
_.f(IU,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.LD.YtLiveChatItemBehavior),_.Q("design:type",_.Zu)],IU.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],IU.prototype,"data",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],IU);
_.m(IU,"yt-live-chat-moderation-message-renderer",function(){if($yM===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Fet===void 0&&(Fet=document.createElement("template"));var S=Fet;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);$yM=L}L=$yM;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Dys;var lEV;var dV=function(){var L=_.e.apply(this,arguments)||this;L.modern=_.c("web_button_rework");return L};
_.f(dV,_.e);dV.prototype.onClick=function(){var L;if((L=this.data)!=null&&L.onClickCommand){var Z;_.qd.instance.resolveCommand((Z=this.data)==null?void 0:Z.onClickCommand)}};
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],dV.prototype,"modern",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Je),_.Q("design:type",Object)],dV.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.y(_.LD.YtLiveChatItemBehavior),_.Q("design:type",_.Zu)],dV.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],dV.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],dV.prototype,"data",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],dV);
_.m(dV,"yt-live-chat-offer-click-count-message-renderer",function(){if(lEV===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Dys===void 0&&(Dys=document.createElement("template"));var S=Dys;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);lEV=L}L=lEV;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var vcM;var oct=function(){return _.e.apply(this,arguments)||this};
_.f(oct,_.e);_.r([_.Y(),_.Q("design:type",Object)],oct.prototype,"data",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],oct);
_.m(oct,"yt-live-chat-placeholder-item-renderer",function(){if(vcM===void 0){var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);vcM=L}L=vcM;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var RW5;var c6l;var ncq=new hN(7),aU=function(){var L=_.e.apply(this,arguments)||this;L.data={};return L};
_.f(aU,_.e);aU.prototype.dataChanged=function(){var L;((L=this.data)==null?0:L.class)&&_.Az(this.hostElement,this.data.class,!0);var Z;((Z=this.oldData)==null?0:Z.class)&&_.Az(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
aU.prototype.computeTimestampString=function(L){return ncq.format(new Date(L/1E3))};
aU.prototype.dataChanged=aU.prototype.dataChanged;_.r([_.Y(),_.Q("design:type",Object)],aU.prototype,"data",void 0);_.r([_.Y({computed:"computeTimestampString(data.timestampUsec)"}),_.Q("design:type",String)],aU.prototype,"timestampString",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aU.prototype,"dataChanged",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],aU);
_.m(aU,"yt-live-chat-server-error-message",function(){if(c6l===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;RW5===void 0&&(RW5=document.createElement("template"));var S=RW5;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);c6l=L}L=c6l;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var KeO;var fEM;var hE=function(){var L=_.e.apply(this,arguments)||this;L.defaultToFilledIcon=!1;return L};
_.f(hE,_.e);hE.prototype.computeHasPrimaryColorIcon=function(L){return L==="SPARK"||L==="SPONSORSHIP_STAR"};
hE.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.LD.YtLiveChatItemBehavior),_.Q("design:type",_.Zu)],hE.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],hE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],hE.prototype,"defaultToFilledIcon",void 0);_.r([_.Y(),_.Q("design:type",Object)],hE.prototype,"data",void 0);
_.r([_.Y({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],hE.prototype,"hasPrimaryColorIcon",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],hE);
_.m(hE,"yt-live-chat-viewer-engagement-message-renderer",function(){if(fEM===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;KeO===void 0&&(KeO=document.createElement("template"));var S=KeO;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);fEM=L}L=fEM;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var kOI;var sw=function(){var L=_.e.apply(this,arguments)||this;L.modernUpdate=!1;L.buttonStyle="overlay";L.buttonType="filled";return L};
_.f(sw,_.e);sw.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
sw.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],sw.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],sw.prototype,"modernUpdate",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],sw.prototype,"buttonStyle",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],sw.prototype,"buttonType",void 0);
_.r([_.P({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],sw);
_.m(sw,"ytd-ad-hover-text-button-renderer",function(){if(kOI!==void 0)return kOI;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return kOI=L},{mode:1});var y6l;var jk=function(){var L=_.e.apply(this,arguments)||this;L.buttonOverrides={size:"XS"};L.modern=_.c("web_button_rework");return L};
_.f(jk,_.e);jk.prototype.onHelpTap=function(L){this.data&&this.data.informationDialog&&(_.QT(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),L.preventDefault(),L.stopPropagation())};
_.r([_.Y(),_.Q("design:type",Object)],jk.prototype,"buttonOverrides",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],jk.prototype,"modern",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],jk.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],jk);
_.m(jk,"ytd-live-chat-purchased-product-message-renderer",function(){if(y6l!==void 0)return y6l;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return y6l=L},{mode:1});var wm5;var UyV;var Ew=function(){var L=_.e.apply(this,arguments)||this;L.isContainerDeleted=!1;return L};
_.f(Ew,_.e);Ew.prototype.onContextMenuClick=function(L){this.ytLiveChatItemBehavior.showContextMenu(L)};
Ew.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))};
Ew.prototype.isContainerDeletedChanged=Ew.prototype.isContainerDeletedChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.LD.YtLiveChatItemBehavior),_.Q("design:type",_.Zu)],Ew.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ew.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ew.prototype,"isContainerDeleted",void 0);
_.r([_.Y(),_.Q("design:type",String)],Ew.prototype,"deletedStateMessage",void 0);_.r([_.iA("isContainerDeleted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ew.prototype,"isContainerDeletedChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],Ew);
_.m(Ew,"ytd-sponsorships-live-chat-header-renderer",function(){if(UyV!==void 0)return UyV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return UyV=L},{mode:1});var P0=function(){var L=_.e.apply(this,arguments)||this;L.modern=_.c("web_button_rework_with_live");L.buttonOverrides={style:"overlay",type:"filled"};return L};
_.f(P0,_.e);P0.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]]"}}}}}};
P0.prototype.onCtaButtonClick=function(){var L,Z=_.n((L=this.data)==null?void 0:L.optInPrompt,_.xZ);if(L=this.maybeGetButtonCommand(Z)){var N;(N=_.tC())==null||N.clickCommand(L)}};
P0.prototype.maybeGetButtonCommand=function(L){return!L||!L.command||_.n(L.command,Czl)===void 0&&_.n(L.command,JlO)===void 0?null:L.command};
P0.prototype.shouldHideOptinPrompt=function(L,Z){return!L||Z};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],P0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.LD.YtLiveChatItemBehavior),_.Q("design:type",_.Zu)],P0.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],P0.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],P0.prototype,"modern",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],P0);
_.m(P0,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(wm5!==void 0)return wm5;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return wm5=L},{mode:1});var Yuh;var pD=function(){return _.e.apply(this,arguments)||this};
_.f(pD,_.e);pD.prototype.onContextMenuClick=function(L){this.ytLiveChatItemBehavior.showContextMenu(L)};
pD.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))};
pD.prototype.isDeletedChanged=pD.prototype.isDeletedChanged;_.r([_.y(_.LD.YtLiveChatItemBehavior),_.Q("design:type",_.Zu)],pD.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],pD.prototype,"data",void 0);_.r([_.iA("isDeleted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pD.prototype,"isDeletedChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],pD);
_.m(pD,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Yuh!==void 0)return Yuh;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Yuh=L},{mode:1});var zL=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return L};
_.f(zL,_.e);_.t=zL.prototype;
_.t.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"}}}};
_.t.handleLiveChatAction=function(L){_.n(L,fsY)?this.handleMarkChatItemAsDeletedAction(_.n(L,fsY)):_.n(L,KZY)&&this.handleRemoveChatItemAction(_.n(L,KZY))};
_.t.handleLiveChatActions=function(L){L.forEach(this.handleLiveChatAction,this)};
_.t.handleMarkChatItemAsDeletedAction=function(L){var Z=this,N;((N=this.data)==null?0:N.items)&&this.data.items.forEach(function(S,u){var T=Object.keys(S)[0];Object.values(S)[0].id===L.targetItemId&&Z.markAsDeleted("data.items",u,T,L.deletedStateMessage,L.showOriginalContentMessage)})};
_.t.handleRemoveChatItemAction=function(L){var Z=this,N;((N=this.data)==null?0:N.items)&&this.data.items.forEach(function(S,u){Object.values(S)[0].id===L.targetItemId&&Z.splice("data.items",u,1)})};
_.t.markAsDeleted=function(L,Z,N,S,u){L=[L,Z,N].join(".");this.set(L+".deletedStateMessage",S);this.set(L+".showOriginalContentMessage",u)};
_.r([_.Y(),_.Q("design:type",Object)],zL.prototype,"data",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],zL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],zL.prototype,"ytActionHandlerBehavior",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],zL);
_.m(zL,"yt-live-chat-item-display-list-renderer",function(){if(tFt===void 0){var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Tz5===void 0&&(Tz5=document.createElement("template"));var S=Tz5;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);tFt=L}L=tFt;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var eWY;var IEQ,dyI=function(){if(IEQ!==void 0)return IEQ;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;eWY===void 0&&(eWY=document.createElement("template"));var S=eWY;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return IEQ=L};var my=function(){var L=_.e.apply(this,arguments)||this;L.isHeader=!1;return L};
_.f(my,_.e);my.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.gd.Object.defineProperties(my,{template:{configurable:!0,enumerable:!0,get:function(){return dyI()}}});
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],my.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],my.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],my.prototype,"isHeader",void 0);_.r([_.ch({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],my);_.m(my,"yt-live-chat-item-display-renderer",function(){return dyI()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var aEY,hWV,pmh,PSL;
aEY={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}};hWV={home:"eohps",search:"eosps",watch:"eowps"};_.sCh=["watch","search","home"];
_.JE=function(){this.JSC$14407_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14407_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.X7("PRECONSTRUCTION_DELAY",0);this.signals_=_.ih();this.targetPage_=""};
_.JE.prototype.init=function(L,Z){L=L===void 0?"":L;Z=Z===void 0?null:Z;if(this.JSC$14407_isInitialized_)this.abort();else if(this.JSC$14407_isInitialized_=!0,L&&_.jCh(this,L),Z){var N=_.uh(this.signals_,"pcl")?0:10,S=function(){for(var u=0,T;T=_.sCh[u++];)T!=L&&T!=Z&&this.pendingPages_.push(T);_.EcQ(this)}.bind(this);
this.signals_.parkOrScheduleJob(S,N,"pcl")}};
_.JE.prototype.abort=function(){this.fragmentJobId_&&(_.ro.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);PSL(this)};
_.jCh=function(L,Z){L.JSC$14407_isInitialized_&&!L.targetPage_&&(L.targetPage_=Z,pmh(L,Z),L.isInitialPass_=!1,pmh(L,Z),L.signals_.processSignal(hWV[L.targetPage_]),PSL(L),_.EcQ(L))};
_.EcQ=function(L){L.pendingPages_.length&&!L.pagePreparerJobId_&&(L.pagePreparerJobId_=_.sI(_.ro,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.jCh(this,this.pendingPages_.shift())}.bind(L),L.DEFAULT_DELAY_))};
pmh=function(L,Z){if(Z=aEY[Z])for(var N in Z){var S=!1,u=N;N.charAt(0)=="~"&&(S=!0,u=N.substring(1));var T=Z[N];T=typeof T=="object"?T:{count:T};Z[N]=T;T.componentName=u;T.count>0&&(L.isInitialPass_?S||L.isSeenDuringInitialPass_[u]||(L.JSC$14407_queue_.push({componentName:u,count:1,signals:T.signals}),L.isSeenDuringInitialPass_[u]=!0,T.count--):L.JSC$14407_queue_.push(T))}};
PSL=function(L){L.JSC$14407_queue_.length=0;L.targetPage_="";L.isInitialPass_=!0;L.signals_.processSignal("eop")};
_.JE.getInstance=function(){return _.pm(_.JE)};var zWN=function(){this.signals=_.ih();this.init()};
zWN.prototype.startPreconstruction=function(){_.JE.getInstance().init(_.Ah("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
zWN.prototype.init=function(){myQ(this);window.Polymer&&qoL&&SqA();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var L=_.iH.ytcsi;if(L&&L.gt&&(L=L.gt())&&L.tick&&(L.tick.aft>0||L.tick.pbs>0)&&(_.Ah("IS_HOMEPAGE_COLD")||_.Ah("IS_RESULTS_PAGE_COLD")||_.Ah("IS_WATCH_PAGE_COLD"))){J65(this);break a}pq1(JcB,this.onNotifications,this)}};
var myQ=function(L){var Z=function(){L.signals.processSignal("dl")};
document.readyState==="complete"?(_.Zx(Error("th"),"WARNING"),Z()):_.$gF(window,"load",Z)};
zWN.prototype.onNotifications=function(L){L.timer||(_.Ah("IS_HOMEPAGE_COLD")||_.Ah("IS_RESULTS_PAGE_COLD")||_.Ah("IS_WATCH_PAGE_COLD"))&&J65(this)};
var J65=function(L){L.signals.parkOrScheduleJob(function(){L.signals.processSignal("eocs")},10,"eor")};
new zWN;var CSq=function(){return _.Ok.apply(this,arguments)||this};
_.f(CSq,_.Ok);_.gd.Object.defineProperties(CSq.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.c("enable_entity_store_from_dependency_injection")?_.hJ():_.Pv()}}});
_.r([_.Wh()],CSq);_.CD=[sO.prototype,CSq.prototype];var r6Y=["ytd-rich-shelf-renderer"],rV=function(){var L=_.Ok.apply(this,arguments)||this;L._noAccessors=!0;L.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";L.followUpDialogPromise=null;L.followUpDialogPromiseResolve=null;L.followUpDialogPromiseReject=null;return L};
_.f(rV,_.Ok);_.t=rV.prototype;_.t.dismissibleItemIsDismissedChanged_=function(L){_.c("kevlar_fluid_dismiss")&&(L?_.QT(this.hostElement,"yt-dismissible-item-dismissed"):_.QT(this.hostElement,"yt-dismissible-item-undismissed"))};
_.t.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.t.dismissibleItemReset_=function(){var L=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 _.kE(function(Z,N){L.followUpDialogPromiseResolve=Z;L.followUpDialogPromiseReject=N});
_.QT(this.hostElement,"yt-enable-lockup-interaction")};
_.t.dismissibleItemOnYtServiceRequestSent_=function(L,Z){Z.actions&&this.dismissibleItemProcessActions(Z.actions,L)};
_.t.dismissibleItemOnRequestSent=function(L){if(_.c("web_button_rework"))for(var Z=_.O(L.detail),N=Z.next();!N.done;N=Z.next()){var S=void 0;(N=(S=_.n(N.value,_.ZW))==null?void 0:S.actions)&&this.dismissibleItemProcessActions(N,L)}};
_.t.dismissibleItemOnCommandSent=function(L,Z){Z&&this.dismissibleItemProcessActions(Z,L)};
_.t.setAndGetDismissedContentId=function(L){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+L};
_.t.replayDismissAction=function(L){this.dismissibleItemProcessActions([L])};
_.t.dismissibleItemProcessActions=function(L,Z){for(var N=0;N<L.length;N++){var S=L[N],u=void 0;((u=_.n(S,_.q2))==null?0:u.commands)&&this.dismissibleItemProcessActions(_.n(S,_.q2).commands,Z);if(_.n(S,_.YZ)){if(u=_.n(S,_.YZ),!u.replaceParentSection||r6Y.includes(this.hostElement.nodeName.toLowerCase()))u.groupDismissal&&jRs(this,u.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(u),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Mr("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:S})),S=void 0,(S=Z)==null||S.stopPropagation()}else if(_.n(S,Rkl))this.dismissibleItemHandleHideEnclosingAction_(),S=void 0,(S=Z)==null||S.stopPropagation();else if(_.n(S,COq))S=_.n(S,COq),u=void 0,((u=S)==null?0:u.targetGroupId)&&jRs(this,{targetGroupId:S.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Mr("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
S=void 0,(S=Z)==null||S.stopPropagation();else if(_.n(S,_.ZW))(S=_.n(S,_.ZW).actions)&&_.B2(this.hostElement,S,this.hostElement),S=void 0,(S=Z)==null||S.stopPropagation();else{var T=u=void 0;((u=_.n(S,_.xE))==null?void 0:u.signal)!=="TELL_US_WHY"||((T=_.n(S,_.xE))==null?0:T.targetId)&&_.c("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),S=void 0,(S=Z)==null||S.stopPropagation())}}};
_.t.dismissibleItemOnYtServiceRequestCompleted_=function(L,Z){var N=this.get("feedbackResponses.0.followUpDialog",Z.data);N?this.followUpDialogPromiseResolve(N):Z.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(Z.actions,L)};
_.t.dismissibleItemHandleReplaceEnclosingAction_=function(L){this.dismissedRenderer=L.item;this.isDismissed=!0;var Z=null;(Z=_.QJ(this.hostElement).querySelector("#dismissed"))&&_.bN(this,function(){_.OI(Z)});
_.QT(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.t.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.t.dismissibleItemHandleUndoFeedbackAction_=function(){_.QT(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.t.dismissibleItemHandleTellUsWhySignalAction_=function(){var L=this;this.followUpDialogPromise.then(function(Z){L.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:Z}})})};
rV.prototype.dismissibleItemOnYtServiceRequestCompleted_=rV.prototype.dismissibleItemOnYtServiceRequestCompleted_;rV.prototype.dismissibleItemOnCommandSent=rV.prototype.dismissibleItemOnCommandSent;rV.prototype.dismissibleItemOnRequestSent=rV.prototype.dismissibleItemOnRequestSent;rV.prototype.dismissibleItemOnYtServiceRequestSent_=rV.prototype.dismissibleItemOnYtServiceRequestSent_;rV.prototype.dismissibleItemDataChanged_=rV.prototype.dismissibleItemDataChanged_;
rV.prototype.dismissibleItemIsDismissedChanged_=rV.prototype.dismissibleItemIsDismissedChanged_;_.r([_.y(_.W0),_.Q("design:type",Object)],rV.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],rV.prototype,"ytdReduxBehavior",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],rV.prototype,"isDismissed",void 0);_.r([_.Y(),_.Q("design:type",Object)],rV.prototype,"dismissedRenderer",void 0);
_.r([_.iA("isDismissed"),_.Q("design:type",Function),_.Q("design:paramtypes",[Boolean]),_.Q("design:returntype")],rV.prototype,"dismissibleItemIsDismissedChanged_",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],rV.prototype,"dismissibleItemDataChanged_",null);
_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],rV.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.r([_.SA("yt-service-request-sent-button-renderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],rV.prototype,"dismissibleItemOnRequestSent",null);
_.r([_.SA("yt-dismissible-item-action"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Array]),_.Q("design:returntype")],rV.prototype,"dismissibleItemOnCommandSent",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],rV.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.r([_.Wh()],rV);_.Q$=[_.W0,_.CD,rV.prototype];var XP=function(){var L=_.Ok.apply(this,arguments)||this;L.disableGridStateAware=!1;L.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};L.currentGridClass="";return L};
_.f(XP,_.Ok);XP.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.bN(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var L=this.gridStateAwareGetElement();_.Az(L,"grid",!0)}};
XP.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
XP.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.QJ(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
XP.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var L="grid-disabled";else{L=_.ou.getInstance();var Z=this.get("pageSubtype");L=Z&&qEt.includes(Z)?"grid-disabled":L.currentSnapState_?L.currentSnapState_.className:null}(Z=this.gridStateAwareGetElement())&&L!==this.currentGridClass&&(L&&_.Az(Z,L,!0),this.currentGridClass&&_.Az(Z,this.currentGridClass,!1),this.currentGridClass=L)};
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],XP.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",String)],XP.prototype,"gridStateAwareSizingElementSelector",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],XP.prototype,"disableGridStateAware",void 0);_.r([_.Wh()],XP);_.AE=[XP.prototype,_.nK.YtActionHandlerBehavior];_.H0=new _.iY("GUIDE_TOKEN");var xw;_.B0={};xw=function(){var L=_.Ok.apply(this,arguments)||this;L.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 L};
_.f(xw,_.Ok);_.t=xw.prototype;_.t.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.t.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var L=_.GR().resolve(_.gv(_.H0));L&&(this.guidePersistentAndVisible=L.getGuidePersistentAndVisible(),this.activeEndpoint=L.getActiveEndpoint(),this.guideOpened=L.getGuideOpened(),this.miniGuideVisible=L.getMiniGuideVisible())};
_.t.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.t.handleGuideStateAction=function(L){this.guidePersistentAndVisible=L};
_.t.handleMiniGuideStateAction=function(L){this.miniGuideVisible=L};
_.t.handleGuideOpenedAction=function(L){this.guideOpened=L};
_.t.handleActiveEndpointAction=function(L){this.activeEndpoint=L};
xw.prototype.onActiveEndpointChange=xw.prototype.onActiveEndpointChange;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],xw.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],xw.prototype,"guidePersistentAndVisible",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],xw.prototype,"miniGuideVisible",void 0);_.r([_.Y(),_.Q("design:type",Object)],xw.prototype,"activeEndpoint",void 0);
_.r([_.iA("activeEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xw.prototype,"onActiveEndpointChange",null);_.r([_.Y(),_.Q("design:type",Boolean)],xw.prototype,"guideOpened",void 0);_.r([_.Wh()],xw);_.B0.YtdGuideStateAwareBehavior=[];_.B0.YtdGuideStateAwareBehavior.push(xw.prototype,_.nK.YtActionHandlerBehavior);var QCI=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],qW=function(){var L=_.Ok.apply(this,arguments)||this;L.hoverJobId=0;L.JSC$14434_touched=!1;return L};
_.f(qW,_.Ok);_.t=qW.prototype;_.t.created=function(){this.useExpandableTooltip=!QCI.includes(this.is)};
_.t.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.t.detached=function(){this.useExpandableTooltip=!1};
_.t.lockupOnDown=function(L){this.interactionElement&&!_.PQ(_.sx(L),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.t.lockupOnUp=function(L){this.interactionElement&&!_.PQ(_.sx(L),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.t.onTouchStart=function(){this.JSC$14434_touched=!0};
_.t.lockupOnMouseEnter=function(){var L=this,Z=_.lQ("kevlar_lockup_hover_delay",-1);this.JSC$14434_touched&&Z>=0?(_.ro.cancelJob(this.hoverJobId),this.hoverJobId=_.ro.addJob(function(){L.lockupIsHovered=!0},8,Z),this.JSC$14434_touched=!1):this.lockupIsHovered=!0};
_.t.lockupOnMouseLeave=function(){this.hoverJobId&&(_.ro.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.t.lockupOnPopupClosed=function(L,Z){var N;((N=Z.popupRenderer)==null?void 0:N.is)==="ytd-menu-popup-renderer"&&(L=Z.popupRenderer.veData,Z=_.RH(),L&&Z&&_.hq(Z,[L]))};
_.t.lockupOnLockupRequested=function(L){var Z=L.detail.videoIds[0],N;L.detail&&Z===((N=this.data)==null?void 0:N.videoId)&&(L.detail.returnValue=[this.data])};
_.t.lockupOnYtServiceRequestSent=function(L,Z){if(L=Z.actions)for(var N=0;N<L.length;N++){var S=L[N];if(S.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&Z.ajaxPromise){var u=void 0,T=(u=_.n(Z.endpoint,_.Ac))==null?void 0:u.playlistId;u=void 0;S=(u=S.removedVideoId)!=null?u:"";KEh(_.te(),S,T)}else S.action==="ACTION_REMOVE_VIDEO"&&Z.ajaxPromise&&(T=void 0,S=(T=S.setVideoId)!=null?T:"",_.fOL(_.te(),S))}};
_.t.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.t.lockupOnLockupEnabled=function(){if(!this.$){var L=_.GR().resolve(_.mR).getCurrentPage(),Z=this.getParentRenderer?this.getParentRenderer():void 0;_.Q7(new _.sr("component not ready",this.is,this.isAttached,L==null?void 0:L.is,Z==null?void 0:Z.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
qW.prototype.lockupOnLockupEnabled=qW.prototype.lockupOnLockupEnabled;qW.prototype.lockupOnLockupDisabled=qW.prototype.lockupOnLockupDisabled;qW.prototype.lockupOnYtServiceRequestSent=qW.prototype.lockupOnYtServiceRequestSent;qW.prototype.lockupOnLockupRequested=qW.prototype.lockupOnLockupRequested;qW.prototype.lockupOnPopupClosed=qW.prototype.lockupOnPopupClosed;qW.prototype.lockupOnMouseLeave=qW.prototype.lockupOnMouseLeave;qW.prototype.lockupOnMouseEnter=qW.prototype.lockupOnMouseEnter;
qW.prototype.onTouchStart=qW.prototype.onTouchStart;qW.prototype.lockupOnUp=qW.prototype.lockupOnUp;qW.prototype.lockupOnDown=qW.prototype.lockupOnDown;_.r([_.Y(),_.Q("design:type",Object)],qW.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],qW.prototype,"lockupIsHovered",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],qW.prototype,"lockupTouchTriggered",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],qW.prototype,"useExpandableTooltip",void 0);
_.r([_.TX("#interaction"),_.Q("design:type",Object)],qW.prototype,"interactionElement",void 0);_.r([_.SA("down"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],qW.prototype,"lockupOnDown",null);_.r([_.SA("up"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],qW.prototype,"lockupOnUp",null);
_.r([_.SA("touchstart"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qW.prototype,"onTouchStart",null);_.r([_.SA("mouseenter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qW.prototype,"lockupOnMouseEnter",null);_.r([_.SA("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qW.prototype,"lockupOnMouseLeave",null);
_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],qW.prototype,"lockupOnPopupClosed",null);_.r([_.SA("yt-lockup-requested"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],qW.prototype,"lockupOnLockupRequested",null);
_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],qW.prototype,"lockupOnYtServiceRequestSent",null);_.r([_.SA("yt-disable-lockup-interaction"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qW.prototype,"lockupOnLockupDisabled",null);
_.r([_.SA("yt-enable-lockup-interaction"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qW.prototype,"lockupOnLockupEnabled",null);_.r([_.Wh()],qW);_.Lb=[qW.prototype];_.Xm0={YtdReduxBehavior:[]};_.Xm0.YtdReduxBehavior.push.apply(_.Xm0.YtdReduxBehavior,_.CD);var Ze=function(){var L=_.Ok.apply(this,arguments)||this;L._noAccessors=!0;L.disableNowPlaying=!1;L.disableTooltips=!1;L.useHoveredProperty=!1;L.hovered=!1;L.isThumbnailHovered_=!1;L.addBackground=_.c("kevlar_thumbnail_bg");L.nowPlaying=!1;L.disableRounding=!1;L.size="small";return L};
_.f(Ze,_.Ok);_.t=Ze.prototype;_.t.computeThumbnailOverlaySidePanelWidth_=function(L,Z){return L-Z};
_.t.computeSize=function(L,Z){if(!this.disableRounding){if(!L&&!Z)return"small";L=Math.max(L||0,Z||0);return L>=256?"large":L>=96?"medium":"small"}};
_.t.computeFinalHoveredState_=function(L,Z,N){return this.nowPlaying?!1:_.c("kevlar_thumbnail_fluid")&&L?Z:N};
_.t.computeHoverOverlays_=function(L,Z){return L&&Z?Z:void 0};
_.t.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.t.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.t.checkMiniplayer_=function(){var L;if(((L=this.data)==null?0:L.playlistSetVideoId)&&_.c("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{L=_.dM();var Z=L.currentEndpoint;!this.disableNowPlaying&&Z&&_.n(Z,_.so)&&this.data?(Z=_.n(Z,_.so),this.nowPlaying=this.data.playlistId?Z.playlistId===this.data.playlistId:Z.videoId===this.data.videoId,this.isVideoPlaying=L==null?void 0:L.isVideoPlaying):this.nowPlaying=!1}};
Ze.prototype.checkMiniplayer_=Ze.prototype.checkMiniplayer_;Ze.prototype.onMouseLeave_=Ze.prototype.onMouseLeave_;Ze.prototype.onMouseEnter_=Ze.prototype.onMouseEnter_;Ze.prototype.computeHoverOverlays_=Ze.prototype.computeHoverOverlays_;Ze.prototype.computeFinalHoveredState_=Ze.prototype.computeFinalHoveredState_;Ze.prototype.computeSize=Ze.prototype.computeSize;Ze.prototype.computeThumbnailOverlaySidePanelWidth_=Ze.prototype.computeThumbnailOverlaySidePanelWidth_;
_.r([_.y(_.CD),_.Q("design:type",Object)],Ze.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ze.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Number)],Ze.prototype,"height",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Ze.prototype,"bottomSidePanel",void 0);_.r([_.Y(),_.Q("design:type",Number)],Ze.prototype,"width",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ze.prototype,"disableNowPlaying",void 0);
_.r([_.Y({selector:_.Ri}),_.Q("design:type",Boolean)],Ze.prototype,"miniplayerIsActive",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ze.prototype,"disableTooltips",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ze.prototype,"useHoveredProperty",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ze.prototype,"hovered",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ze.prototype,"isThumbnailHovered_",void 0);
_.r([_.Y({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.Q("design:type",Boolean)],Ze.prototype,"finalHoveredState_",void 0);_.r([_.Y({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.Q("design:type",Number)],Ze.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Ze.prototype,"addBackground",void 0);
_.r([_.Y({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.Q("design:type",Object)],Ze.prototype,"hoverOverlays_",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Ze.prototype,"nowPlaying",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Ze.prototype,"isVideoPlaying",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ze.prototype,"disableRounding",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.Q("design:type",Object)],Ze.prototype,"size",void 0);_.r([_.SA("mouseenter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ze.prototype,"onMouseEnter_",null);_.r([_.SA("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ze.prototype,"onMouseLeave_",null);
_.r([_.iA("data","disableNowPlaying","miniplayerIsActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ze.prototype,"checkMiniplayer_",null);_.r([_.Wh()],Ze);var A6q=[Ze.prototype];_.No={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(L,Z){return L+":"+_.Hs(Z)},
getPlayerListener_:function(L,Z,N){L=this.getPlayerListenerKey_(L,Z);Z=this.playerListeners_.get(L);N&&this.playerListeners_.delete(L);return Z},
savePlayerListener_:function(L,Z){var N=Z.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(L,Z),N);return N},
listenToPlayerEvent:function(L,Z,N){N=this.savePlayerListener_(Z,N);L.addEventListener(Z,N)},
listenToPlayerEvents:function(L,Z){Z.forEach(function(N,S){this.listenToPlayerEvent(L,S,N)}.bind(this))},
unlistenFromPlayerEvent:function(L,Z,N){N=this.getPlayerListener_(Z,N,!0);L.removeEventListener(Z,N)},
unlistenFromPlayerEvents:function(L,Z){Z.forEach(function(N,S){this.unlistenFromPlayerEvent(L,S,N)}.bind(this))}}};
_.SG=function(){};_.Hrq=new _.iY("PLAYER_API_TOKEN");var zSt=!1,rT_,JTH=!1,XJx;var X6=function(L,Z,N,S,u){_.ag.call(this);var T=this;this.playerId=Z;this.webPlayerContextConfig=S;this.ajB=u;this.eCX=!1;this.api={};this.tEC=this.rIc=null;this.cvU=new _.Ur;this.lH={};this.qAc=this.zNG=this.elementId=this.abm=this.config=null;this.jrB=!1;this.vn=this.bNC=null;this.pyc={};this.rlA=["onReady"];this.lastError=null;this.mfV=NaN;this.xtx={};this.gqA=0;this.yO=this.targetElement=L;_.Ky(this,this.cvU);Bzs(this);N?this.gqA=setTimeout(function(){T.loadNewVideoConfig(N)},0):S&&(xyO(this),
quq(this))};
_.f(X6,_.ag);X6.prototype.getId=function(){return this.playerId};
X6.prototype.loadNewVideoConfig=function(L){if(!this.isDisposed()){this.gqA&&(clearTimeout(this.gqA),this.gqA=0);var Z=L||{};Z instanceof eB0||(Z=new eB0(Z));this.config=Z;this.setConfig(L);quq(this);this.isReady()&&LDl(this)}};
var xyO=function(L){var Z;L.webPlayerContextConfig?Z=L.webPlayerContextConfig.rootElementId:Z=L.config.attrs.id;L.elementId=Z||L.elementId;L.elementId==="video-player"&&(L.elementId=L.playerId,L.webPlayerContextConfig?L.webPlayerContextConfig.rootElementId=L.playerId:L.config.attrs.id=L.playerId);var N;((N=L.yO)==null?void 0:N.id)===L.elementId&&(L.elementId+="-player",L.webPlayerContextConfig?L.webPlayerContextConfig.rootElementId=L.elementId:L.config.attrs.id=L.elementId)};
X6.prototype.setConfig=function(L){this.abm=L;this.config=ZEN(L);xyO(this);if(!this.zNG){var Z;this.zNG=NWh(this,((Z=this.config.args)==null?void 0:Z.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var N;if((N=this.config)==null?0:N.attrs)L=this.config.attrs,(Z=L.width)&&this.yO&&(this.yO.style.width=Ey(Number(Z)||Z,!0)),(L=L.height)&&this.yO&&(this.yO.style.height=Ey(Number(L)||L,!0))};
X6.prototype.getConfig=function(){return this.abm};
var LDl=function(L){if(L.config&&L.config.loaded!==!0)if(L.config.loaded=!0,!L.config.args||L.config.args.autoplay!=="0"&&L.config.args.autoplay!==0&&L.config.args.autoplay!==!1){var Z;L.api.loadVideoByPlayerVars((Z=L.config.args)!=null?Z:null)}else L.api.cueVideoByPlayerVars(L.config.args)},iEO=function(L){var Z=!0,N=L.getPlayerElement();
N&&L.config&&(Z=N.dataset.version===S1Q(L));return Z&&!!_.LZ("yt.player.Application.create")},quq=function(L){if(!L.isDisposed()&&!L.jrB){var Z=iEO(L);
if(Z&&(L.getPlayerElement()?"html5":null)==="html5")L.qAc="html5",L.isReady()||uFL(L);else if(TWL(L),L.qAc="html5",Z&&L.vn&&L.targetElement)L.targetElement.appendChild(L.vn),uFL(L);else{L.config&&(L.config.loaded=!0);var N=!1;L.bNC=function(){N=!0;var S=t$V(L,"player_bootstrap_method")?_.LZ("yt.player.Application.createAlternate")||_.LZ("yt.player.Application.create"):_.LZ("yt.player.Application.create");var u=L.config?ZEN(L.config):void 0;S&&S(L.targetElement,u,L.webPlayerContextConfig,L.ajB);uFL(L)};
L.jrB=!0;Z?L.bNC():(_.Uo(S1Q(L),L.bNC),(Z=OE5(L))&&Vc0(Z||""),WDO(L)&&!N&&_.bp("yt.player.Application.create",null))}}};
X6.prototype.getPlayerElement=function(){var L=_.QB(document,this.elementId);!L&&this.yO&&this.yO.querySelector&&(L=this.yO.querySelector("#"+this.elementId));return L};
var uFL=function(L){if(!L.isDisposed()){var Z=L.getPlayerElement(),N=!1;Z&&Z.getApiInterface&&Z.getApiInterface()&&(N=!0);if(N){L.jrB=!1;if(!t$V(L,"html5_remove_not_servable_check_killswitch")){var S;if((Z==null?0:Z.isNotServable)&&L.config&&(Z==null?0:Z.isNotServable((S=L.config.args)==null?void 0:S.video_id)))return}V$q(L)}else L.mfV=setTimeout(function(){uFL(L)},50)}},V$q=function(L){Bzs(L);
L.eCX=!0;var Z=L.getPlayerElement();if(Z){L.rIc=bEN(L,Z,"addEventListener");L.tEC=bEN(L,Z,"removeEventListener");var N=Z.getApiInterface();N=N.concat(Z.getInternalApiInterface());for(var S=L.api,u=0;u<N.length;u++){var T=N[u];S[T]||(S[T]=bEN(L,Z,T))}}for(var W in L.lH)L.lH.hasOwnProperty(W)&&L.rIc&&L.rIc(W,L.lH[W]);LDl(L);L.zNG&&L.zNG(L.api);L.cvU.publish("onReady",L.api)},bEN=function(L,Z,N){var S=Z[N];
return function(){var u=_.CG.apply(0,arguments);try{return L.lastError=null,S.apply(Z,u)}catch(T){if(N!=="sendAbandonmentPing")throw T.params=N,L.lastError=T,u=new _.sr("PlayerProxy error in method call",{error:T,method:N,playerId:L.playerId}),u.level="WARNING",u;}}},Bzs=function(L){L.eCX=!1;
if(L.tEC)for(var Z in L.lH)L.lH.hasOwnProperty(Z)&&L.tEC(Z,L.lH[Z]);for(var N in L.xtx)L.xtx.hasOwnProperty(N)&&clearTimeout(Number(N));L.xtx={};L.rIc=null;L.tEC=null;Z=L.api;for(var S in Z)Z.hasOwnProperty(S)&&(Z[S]=null);Z.addEventListener=function(u,T){L.addEventListener(u,T)};
Z.removeEventListener=function(u,T){L.removeEventListener(u,T)};
Z.destroy=function(){L.dispose()};
Z.getLastError=function(){return L.getLastError()};
Z.getPlayerType=function(){return L.getPlayerType()};
Z.getCurrentVideoConfig=function(){return L.getConfig()};
Z.loadNewVideoConfig=function(u){L.loadNewVideoConfig(u)};
Z.isReady=function(){return L.isReady()}};
X6.prototype.isReady=function(){return this.eCX};
X6.prototype.addEventListener=function(L,Z){var N=this;this.isDisposed();var S=NWh(this,Z);S&&(_.p1(this.rlA,L)||this.lH[L]||(Z=M$l(this,L),this.rIc&&this.rIc(L,Z)),this.cvU.subscribe(L,S),L==="onReady"&&this.isReady()&&setTimeout(function(){S(N.api)},0))};
X6.prototype.removeEventListener=function(L,Z){this.isDisposed()||(Z=NWh(this,Z))&&this.cvU.unsubscribe(L,Z)};
var NWh=function(L,Z){var N=Z;if(typeof Z==="string"){if(L.pyc[Z])return L.pyc[Z];N=function(){var S=_.CG.apply(0,arguments),u=_.LZ(Z);if(u)try{u.apply(_.iH,S)}catch(T){throw S=new _.sr("PlayerProxy error when executing callback",{error:T}),S.level="ERROR",S;}};
L.pyc[Z]=N}return N?N:null},M$l=function(L,Z){var N=function(S){var u=function(){L.isDisposed();
if(!L.isDisposed())try{L.cvU.publish(Z,S!=null?S:void 0)}catch(V){var W=new _.sr("PlayerProxy error when creating global callback",{error:V.message,event:Z,playerId:L.playerId,data:S,originalStack:V.stack,componentStack:V.componentStack});W.level="WARNING";throw W;}};
if(t$V(L,"web_player_publish_events_immediately"))u();else{var T=setTimeout(function(){u();_.Py.remove(L.xtx,String(T))},0);
_.Py.add(L.xtx,String(T),!0)}};
return L.lH[Z]=N};
X6.prototype.getPlayerType=function(){return this.qAc||(this.getPlayerElement()?"html5":null)};
X6.prototype.getLastError=function(){return this.lastError};
var TWL=function(L){L.cancel();Bzs(L);L.qAc=null;L.config&&(L.config.loaded=!1);var Z=L.getPlayerElement();Z&&(iEO(L)||!WDO(L)?L.vn=Z:(Z&&Z.destroy&&Z.destroy(),L.vn=null));L.targetElement&&_.es(L.targetElement)};
X6.prototype.cancel=function(){this.bNC&&_.Ea1(S1Q(this),this.bNC);clearTimeout(this.mfV);this.jrB=!1};
X6.prototype.disposeInternal=function(){TWL(this);if(this.vn&&this.config&&this.vn.destroy)try{this.vn.destroy()}catch(Z){var L=new _.sr("PlayerProxy error during disposal",{error:Z});L.level="ERROR";throw L;}this.pyc=null;for(L in this.lH)this.lH.hasOwnProperty(L)&&delete this.lH[L];this.abm=this.config=this.api=null;delete this.targetElement;delete this.yO;_.ag.prototype.disposeInternal.call(this)};
var WDO=function(L){var Z,N;L=(Z=L.config)==null?void 0:(N=Z.args)==null?void 0:N.fflags;return!!L&&L.indexOf("player_destroy_old_version=true")!==-1},S1Q=function(L){return L.webPlayerContextConfig?L.webPlayerContextConfig.jsUrl:(L=L.config.assets)?L.js:""},OE5=function(L){return L.webPlayerContextConfig?L.webPlayerContextConfig.cssUrl:(L=L.config.assets)?L.css:""},t$V=function(L,Z){if(L.webPlayerContextConfig)var N=L.webPlayerContextConfig.serializedExperimentFlags;
else{var S;if((S=L.config)==null?0:S.args)N=L.config.args.fflags}return(N||"").split("&").includes(Z+"=true")},ZEN=function(L){for(var Z={},N=_.O(Object.keys(L)),S=N.next();!S.done;S=N.next()){S=S.value;
var u=L[S];Z[S]=typeof u==="object"?_.Py.clone(u):u}return Z};var qgG={},xAx="player_uid_"+(Math.random()*1E9>>>0);var iz=function(L,Z,N,S,u,T){Z=Z===void 0?document.createElement("div"):Z;this.webPlayerContextConfig=L;this.container=Z;this.commandResolver=N;this.apiResolver=NzP();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.qe;S||T?gmL(this):GH0(this);this.pendingPlayerResponse=S;this.pendingWatchNextResponse=u;this.pendingPlayerVars=T;FDV(this)};
iz.prototype.loadVideoWithPlayerResponse=function(L,Z,N){this.loadVideo(L,Z,N)};
iz.prototype.loadVideoWithPlayerVars=function(L){return this.loadVideo(void 0,void 0,L)};
iz.prototype.destroy=function(L){if(L=_.QB(document,L))L=xAx+"_"+_.Hs(L),(L=qgG[L])&&L.dispose()};
var Dsq=function(L,Z){var N;_.b(function(S){if(S.nextAddress==1)return L.pendingWatchNextResponse=Z,L.synchronousApi?(N=L.synchronousApi,S.jumpTo(2)):S.yield(L.api,3);S.nextAddress!=2&&(N=S.yieldResult);if(!$sO(L,N))return S.return();L.pendingWatchNextResponse&&(N.updateVideoData({raw_watch_next_response:L.pendingWatchNextResponse}),L.pendingWatchNextResponse=void 0);_.w7(S)})},$sO=function(L,Z){var N;
if(!(Z==null?0:(N=Z.isReady)==null?0:N.call(Z))){var S;_.Q7(new _.sr("playerApi is falsey",{synchronousApi:L.synchronousApi,apiResolved:L.apiResolver.resolved,playerApiUndefined:Z===void 0,playerApiNull:Z===null,playerApiReady:(Z==null?void 0:(S=Z.isReady)==null?void 0:S.call(Z))===!0,playerApiMethods:Z?Object.keys(Z):[]}));return!1}return!0},lVY=function(L,Z){if(typeof L[Z]==="function")return L[Z]()},vms=function(L){var Z=window,N,S=(N=Z.ytplayer)==null?void 0:N.bootstrapPlayerContainer;
if((N=S==null?void 0:S.firstElementChild)&&_.Cc(N,"html5-video-player")){var u,T,W=(u=Z.ytplayer)==null?void 0:(T=u.bootstrapWebPlayerContextConfig)==null?void 0:T.contextId;u=L.webPlayerContextConfig.contextId;if(W&&W===u){S!==L.container&&(S=!1,lVY(N,"getPlayerState")===2&&(S=!0),L.container.appendChild(N),S||lVY(N,"playVideo"));var V;if((V=Z.ytplayer)==null?0:V.bootstrapPlayerResponse)L.bootstrapPlayerResponse=Z.ytplayer.bootstrapPlayerResponse}}},FDV=function(L){var Z,N,S,u,T;
_.b(function(W){if(W.nextAddress==1)return L.pageReadyOrDataAvailable?W.jumpTo(2):W.yield(L.pageReadyOrDataAvailableResolver.promise,2);if(W.nextAddress!=4)return!_.c("kevlar_player_unified_player_loading")||mAh()&&C1s()?W.jumpTo(4):W.yield(HRP(),4);vms(L);if(L.pendingPlayerResponse||L.pendingPlayerVars)Z=B_F(L.pendingPlayerResponse,L.pendingWatchNextResponse,L.pendingPlayerVars),L.pendingPlayerResponse&&L.pendingPlayerResponse===L.bootstrapPlayerResponse&&(Z.loaded=!0),L.bootstrapPlayerResponse=
void 0;N=Zrh(L.container,Z,L.webPlayerContextConfig);((S=Z)==null?0:S.loaded)&&L.pendingWatchNextResponse?(Dsq(L,L.pendingWatchNextResponse),L.pendingPlayerResponse=void 0,L.pendingPlayerVars=void 0):omQ(L);u=function(V){N.removeEventListener("onReady",u);L.synchronousApi=V;L.apiResolver.resolve(V)};
N.addEventListener("onReady",u);L.commandResolver!==void 0&&(T=L.commandResolver,N.addEventListener("innertubeCommand",function(V){T(V)}));
_.w7(W)})};
iz.prototype.loadVideo=function(L,Z,N){var S=this,u,T,W,V,M,G,D,l,v;return _.b(function(R){if(R.nextAddress==1)return S.pendingPlayerResponse=L,S.pendingWatchNextResponse=Z,S.pendingPlayerVars=N,gmL(S),S.synchronousApi?(u=S.synchronousApi,R.jumpTo(2)):R.yield(S.api,3);R.nextAddress!=2&&(u=R.yieldResult);if(!$sO(S,u))return R.return(new Promise(function(){}));
W=new Promise(function(K){T=K});
V=function(){var K=u.getPlayerResponse();K&&(u.removeEventListener("onVideoDataChange",V),T(K))};
u.addEventListener("onVideoDataChange",V);if(S.pendingPlayerResponse||S.pendingPlayerVars)S.pendingPlayerResponse&&S.pendingPlayerResponse===S.bootstrapPlayerResponse?(T(S.pendingPlayerResponse),S.pendingWatchNextResponse&&Dsq(S,S.pendingWatchNextResponse)):(M=B_F(S.pendingPlayerResponse,S.pendingWatchNextResponse,S.pendingPlayerVars),(v=(G=S.pendingPlayerResponse)==null?void 0:(D=G.playerConfig)==null?void 0:(l=D.playbackStartConfig)==null?void 0:l.startPaused)?u.cueVideoByPlayerVars(M.args):u.loadVideoByPlayerVars(M.args)),
omQ(S),S.bootstrapPlayerResponse=void 0;return R.return(W)})};
var GH0=function(L){if(document.readyState==="complete"||document.readyState==="interactive")gmL(L);else{var Z=function(){document.removeEventListener("DOMContentLoaded",Z);gmL(L)};
document.addEventListener("DOMContentLoaded",Z)}},gmL=function(L){L.pageReadyOrDataAvailable=!0;
L.pageReadyOrDataAvailableResolver.resolve()},omQ=function(L){L.pendingPlayerResponse=void 0;
L.pendingWatchNextResponse=void 0;L.pendingPlayerVars=void 0};
_.gd.Object.defineProperties(iz.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var uz=function(L){j5.call(this,L===void 0?"document_active":L);var Z=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(N){Z.transition("document_disposed",{event:N})});
window.addEventListener("beforeunload",function(N){Z.transition("document_disposed_preventable",{event:N})});
window.addEventListener("unload",function(N){Z.transition("document_disposed",{event:N});Z.hasRun=new Map})};
_.f(uz,j5);
uz.prototype.runPreventableDispose=function(L,Z){if(!this.hasRun.get("document_disposed_preventable")){L(Z==null?void 0:Z.event);var N,S;if((Z==null?0:(N=Z.event)==null?0:N.defaultPrevented)||(Z==null?0:(S=Z.event)==null?0:S.returnValue)){Z.event.returnValue||(Z.event.returnValue=!0);Z.event.defaultPrevented||Z.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
uz.prototype.runDispose=function(L,Z){this.hasRun.get("document_disposed")?this.transition("document_active"):(L(Z==null?void 0:Z.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
uz.prototype.runFlush=function(L,Z){L(Z==null?void 0:Z.event);this.transition("document_active")};
uz.prototype.runActive=function(){};var Tz=function(L){j5.call(this,L===void 0?"document_visibility_unknown":L);var Z=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(N){document.visibilityState==="visible"?Z.transition("document_visible",{event:N}):Z.transition("document_hidden",
{event:N})});
_.c("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(N){Z.transition("document_backgrounded",{event:N})}),window.addEventListener("focus",function(N){Z.transition("document_foregrounded",{event:N})}))};
_.f(Tz,j5);Tz.prototype.runVisible=function(L,Z){L(Z==null?void 0:Z.event);_.c("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Tz.prototype.runHidden=function(L,Z){L(Z==null?void 0:Z.event);_.c("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Tz.prototype.runBackgrounded=function(L,Z){L(Z==null?void 0:Z.event)};
Tz.prototype.runForegrounded=function(L,Z){L(Z==null?void 0:Z.event)};var tl=function(){this.teardownLifecycle=new uz;this.visibilityLifecycle=new Tz};
tl.prototype.install=function(){var L=_.CG.apply(0,arguments),Z=this;L.forEach(function(N){Z.teardownLifecycle.install(N)});
L.forEach(function(N){Z.visibilityLifecycle.install(N)})};var OB=function(){tl.call(this);var L={};this.install((L.document_disposed={callback:this.abortSlisAndFlush},L));_.c("combine_ve_grafts")&&(L={},this.install((L.document_disposed={callback:this.flushInteractionLoggingAttachVes},L)));L={};this.install((L.flush_logs={callback:this.logFinalPayload},L));_.c("web_log_cfg_cee_ks")||_.sI(_.ro,RwI)};
_.f(OB,tl);var SuH=function(){OB.loggingInstance||(OB.loggingInstance=new OB);return OB.loggingInstance};
OB.prototype.logFinalPayload=function(){if(_.c("web_fp_via_jspb")){var L=new yNt,Z=_.RH();Z&&_.dF(L,1,Z);Z=_.c("jspb_sparse_encoded_pivot")?new hV([{}]):new hV;_.kV(Z,380,wvh,L);wbh("finalPayload",Z);_.c("web_fp_via_jspb_and_json")&&_.mS("finalPayload",{csn:_.RH()})}else _.mS("finalPayload",{csn:_.RH()})};
OB.prototype.abortSlisAndFlush=function(){$1O(TW);tK!=null&&tK.flush()};
OB.prototype.flushInteractionLoggingAttachVes=function(){h4q(_.tC())};
var RwI=function(){var L=_.X7("CLIENT_EXPERIMENT_EVENTS");if(L){var Z=SYG();L=_.O(L);for(var N=L.next();!N.done;N=L.next())N=N.value,Z(N)&&_.mS("genericClientExperimentEvent",{eventType:N});delete _.rj.CLIENT_EXPERIMENT_EVENTS}};var cnL={};
cnL.YtPlayerBehavior=[_.No.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 L=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.qe;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;irf(function(){L.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Xl(this,"pan-down"),_.c("kevlar_pinch_fullscreen")&&_.wH().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.c("kevlar_pinch_fullscreen")&&_.wH().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(L,Z,N){var S=this;AS(this.useUnifiedPlayer_());if(this.mainAppPlayer_)AS(!1,"MainAppPlayer already created.");else{var u=_.c("kevlar_player_container_query_killswitch")?this.$.container:_.QJ(this.hostElement).querySelector("#container");this.mainAppPlayer_=new iz(this.getWebPlayerContextConfig_(),u,function(T){return _.LY(T,S.hostElement)},L,Z,N);
this.mainAppPlayer_.api.then(function(T){S.player_=T;S.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&jaN.resolve(T)})}},
loadVideoWithPlayerResponse:function(L,Z){var N=this;if(this.useUnifiedPlayer_()){var S=this.watchNextData,u,T=(u=L.videoDetails)==null?void 0:u.videoId,W,V,M;(u=(W=this.watchNextData)==null?void 0:(V=W.currentVideoEndpoint)==null?void 0:(M=V.watchEndpoint)==null?void 0:M.videoId)&&T!=u&&(S=void 0,_.c("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(L,S,Z):this.createMainAppPlayer_(L,S,Z);this.mainAppPlayer_.api.then(function(){_.QT(N.hostElement,
"yt-player-updated")})}else this.update(Eyt(L,Z))},
loadVideoWithPlayerVars:function(L){var Z=this;this.useUnifiedPlayer_()?(_.c("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(L):this.createMainAppPlayer_(void 0,void 0,L),this.mainAppPlayer_.api.then(function(){_.QT(Z.hostElement,"yt-player-updated")})):this.update({args:L})},
update:function(L){var Z=this;if(this.useUnifiedPlayer_())AS(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(L);var N=XDL(L.args);N&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==N&&Object.assign(L.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(L).then(function(S){_.QT(Z.hostElement,"yt-player-updated",_.c("kevlar_player_updated_obsolete_player_killswitch")?
S:void 0)})}_.rY(new _.sr("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(L){var Z=this,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(Z.getPlayerPromise(),2);N=S.yieldResult;if(!N)throw Error("vh");L&&Z.updatePlayerPlaylist_(L);_.w7(S)})},
acquireApi_:function(L){var Z=this;if(this.useUnifiedPlayer_())AS(!1,"Invalid method call in kevlar_unified_player.");else return _.ro.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(AS(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(N){Z.shouldAutoplay_(L)?N.loadVideoByPlayerVars(L.args):N.cueVideoByPlayerVars(L.args)})):this.initPlayerPromise_=this.initPlayerContainer_(L),this.initPlayerPromise_},
initPlayerContainer_:function(L){var Z=this;if(this.useUnifiedPlayer_())AS(!1,"Invalid method call in kevlar_unified_player.");else return AS(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Q7(Error("wh")),AS(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.c("kevlar_player_container_query_killswitch")?this.$.container:_.QJ(this.hostElement).querySelector("#container"),HRP().then(function(){var N=Z.initPlayer_(L);Z.playerResolver_.resolve(N);
return N})},
onPlayerReady_:function(L,Z){this.useUnifiedPlayer_()?AS(!1,"Invalid method call in kevlar_unified_player."):(L.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&jaN.resolve(L),Z(L))},
maybeCallApiMethodOnElement_:function(L,Z){if(typeof L[Z]==="function")return L[Z]()},
maybeAdoptBootstrapPlayer_:function(){var L=window,Z,N=(Z=L.ytplayer)==null?void 0:Z.bootstrapPlayerContainer;if((Z=N==null?void 0:N.firstElementChild)&&Z.classList.contains("html5-video-player")){var S,u,T=(S=L.ytplayer)==null?void 0:(u=S.bootstrapWebPlayerContextConfig)==null?void 0:u.contextId;S=this.getWebPlayerContextConfig_().contextId;if(T&&T===S){N!==this.playerContainer_&&(N=!1,this.maybeCallApiMethodOnElement_(Z,"getPlayerState")===2&&(N=!0),this.playerContainer_.appendChild(Z),N||this.maybeCallApiMethodOnElement_(Z,
"playVideo"));var W;if((W=L.ytplayer)==null?0:W.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=L.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(L){var Z=this;if(this.useUnifiedPlayer_())AS(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(N){Z.maybeAdoptBootstrapPlayer_();var S=L?P1H(L):void 0;S&&S==Z.bootstrapPlayerResponse_&&(L.loaded=!0);S=Z.playerContainer_;var u=Z.getWebPlayerContextConfig_();S=Zrh(S,L,u);Z.player_=S;Z.onPlayerReadyEvent_=Z.onPlayerReady_.bind(Z,Z.player_,N);Z.player_.addEventListener("onReady",Z.onPlayerReadyEvent_);Z.player_.addEventListener("innertubeCommand",
Z.onPlayerInnerTubeCommand_.bind(Z))})},
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(L){L.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(L){L.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var L=_.GR().resolve(_.mR).getCurrentPage();L&&L.getScrollTop()<=0?_.Xl(this,"pan-down"):_.Xl(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(L){L.isFullscreen()||L.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(L){L.isFullscreen()&&L.toggleFullscreen()})},
updatePlayerPlaylist_:function(L){var Z=this,N,S,u;return _.b(function(T){if(T.nextAddress==1)return N=_.GR().resolve(_.gv(_.Nv)),S=!!(N&&N.playlistComponent&&N.playlistComponent.loopOn),T.yield(Z.getPlayerPromise(),2);var W=u=T.yieldResult,V=W.updatePlaylist,M=[];if(_.c("kevlar_player_playlist_use_local_index")){var G,D;var l=(D=(G=L.localCurrentIndex)!=null?G:L.currentIndex)!=null?D:0}else{var v;l=(v=L.currentIndex)!=null?v:0}if(L.contents)for(G=0;G<L.contents.length;G++)if((D=L.contents[G])&&D.playlistPanelVideoRenderer)if(Q2x(D)){D=
D.playlistPanelVideoRenderer;v="";D.shortBylineText&&(v=_.jM(D.shortBylineText));var R="";D.title?R=_.jM(D.title):D.unplayableText&&(R=_.jM(D.unplayableText));M.push({author:v,title:R,encrypted_id:D.videoId})}else G<l&&--l;V.call(W,{index:l,list:L.playlistId?L.playlistId:"",loop:S,playlist_title:L.title,playlist_length:M.length,video:M,fetch:0,external_list:"1",title:L.title?L.title:"",playlist_author:L.ownerName?_.jM(L.ownerName):void 0});_.w7(T)})},
focusOnPlayer:function(){_.bN(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var L=this.playerContainer_.querySelector(".html5-video-player");L&&(_.Wo(_.GR().resolve(_.MV)),L.focus())}})},
preparePlayer:function(){var L=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(Z){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")Z();else{var N=function(){document.removeEventListener("DOMContentLoaded",N);Z()};
document.addEventListener("DOMContentLoaded",N)}})).then(function(){return HRP()}).then(function(){L.initPlayerPromise_||L.preparePlayerJobId_||(L.preparePlayerJobId_=_.sI(_.ro,function(){L.initPlayerPromise_||(L.initPlayerPromise_=L.initPlayerContainer_())}))}):_.rY(new _.sr("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(L){this.useUnifiedPlayer_()?AS(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(L)||(L.args.autoplay="0")},
shouldAutoplay_:function(L){if(this.useUnifiedPlayer_())AS(!1,"Invalid method call in kevlar_unified_player.");else{var Z=this.get("args.el",L);return Z&&Z!="detailpage"&&this.isMiniplayerActive_()||Z&&(Z=="sponsorshipsoffer"||Z=="handlesclaiming")&&this.get("args.autoplay",L)=="0"?!1:(L=P1H(L))&&this.get("playerConfig.playbackStartConfig.startPaused",L)?!1:!0}},
isMiniplayerActive_:function(){return _.GR().resolve(_.yk).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var L=this.getPlayer();if(L){var Z=L.getPlayerState();_.c("kevlar_player_check_ad_state_on_stop")&&(Z=L.getPlayerState(L.getPresentingPlayerType()));Z!=5&&L.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(L,Z,N){N=N===void 0?!1:N;var S=this,u,T,W,V;return _.b(function(M){if(M.nextAddress==1)return Z||(Z=S.hostElement),u=S.useUnifiedPlayer_()?!!S.mainAppPlayer_:!!S.initPlayerPromise_,u?M.yield(S.getPlayerPromise(),2):(N?L.insertBefore(Z,L.firstChild):L.appendChild(Z),M.return());T=M.yieldResult;W=T.getPlayerState(T.getPresentingPlayerType());V=!1;if(W==-1||W==1||W==3)V=!0;N?L.insertBefore(Z,L.firstChild):L.appendChild(Z);V&&T.playVideo();T.setSize(NaN,NaN);_.w7(M)})},
watchNextDataChanged_:function(L){var Z=this;L&&(this.useUnifiedPlayer_()&&_.c("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&Dsq(this.mainAppPlayer_,L):this.getPlayerPromise().then(function(N){N.updateVideoData(Z.computeWatchNextPlayerVars_(L))}))},
computeWatchNextPlayerVars_:function(L){if(this.useUnifiedPlayer_()&&_.c("kevlar_unified_player_update_watch_next_killswitch"))AS(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:L}},
maybeSendAbandonmentPing_:function(){var L=this.getPlayer();L&&L.getPlayerState()!=5&&L.getPlayerState()!=0&&L.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var L=_.X7("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(L=Object.assign({},L),L.rootElementId=this.playerId);L.serializedExperimentIds&&L.serializedExperimentFlags||_.Q7(Error("xh"));return L},
hasWebPlayerContextConfig_:function(){return!!_.X7("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(L){this.useUnifiedPlayer_()?AS(!1,"Invalid method call in kevlar_unified_player."):_.LY(L,this.hostElement)},
useUnifiedPlayer_:function(){var L=_.c("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.c("kevlar_unified_player")||L}}];var nmh={};nmh.YtPlaylistPanelBehavior=[_.B.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(L){L=L.detail;if(L.actions.loop!=void 0||L.actions["yt-icons:loop"]!=void 0)this.loopOn=L.actions.loop||L.actions["yt-icons:loop"];if(L.actions.shuffle!=void 0||L.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=L.actions.shuffle||L.actions["yt-icons:shuffle"]},
setMenuData_:function(L){if(!L||!L.playlistButtons||L.isInfinite)return null;for(var Z=L.playlistButtons.menuRenderer.topLevelButtons,N=Z.length,S=0;S<N;S++)if(Z[S].toggleButtonRenderer){var u=Z[S].toggleButtonRenderer;u.defaultIcon.iconType=="LOOP"&&this.loopOn?u.isToggled=this.loopOn:u.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(u.isToggled=this.shuffleOn)}return L.playlistButtons}}];_.VK={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(L,Z,N){var S=this.getClickTarget_(Z);if(S&&this.isClickAllowed_(S)){Z.preventDefault();L=(0,_.Py.unsafeClone)(L);var u=this.getContainerBoundingRect();Z=this.getRelativeClickXy_(Z,u);this.expandEndpointUrlMacros_(L,{NX:Z[0],NY:Z[1],NB:S.code});N&&this.truncateWebCommendMetadataUrl_(L);_.QT(this.hostElement,"yt-navigate",{endpoint:L})}},
getClickTarget_:function(L){if(!this.clickTargetMap)return null;L=_.sx(L)||[];L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;if(Z===_.QJ(this.hostElement).querySelector("#menu"))break;if(Z=this.clickTargetMap.get(Z.id))return Z}return null},
getRelativeClickXy_:function(L,Z){var N=Math.round(L.detail.x-Z.left);L=Math.round(L.detail.y-Z.top);return N<0||L<0?[null,null]:[N,L]},
getContainerBoundingRect:function(){return _.QJ(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(L,Z){for(var N=_.O(L.loggingUrls||[]),S=N.next();!S.done;S=N.next())S=S.value,S.baseUrl&&(S.baseUrl=gRB(S.baseUrl,Z));L.urlEndpoint&&L.urlEndpoint.url&&(L.urlEndpoint.url=gRB(L.urlEndpoint.url,Z));L.commandMetadata&&L.commandMetadata.webCommandMetadata&&L.commandMetadata.webCommandMetadata.url&&(L.commandMetadata.webCommandMetadata.url=gRB(L.commandMetadata.webCommandMetadata.url,Z))},
truncateWebCommendMetadataUrl_:function(L){if(L.commandMetadata&&L.commandMetadata.webCommandMetadata&&L.commandMetadata.webCommandMetadata.url){var Z=L.commandMetadata.webCommandMetadata.url,N=Z.indexOf("&pp=");if(N>0){var S=Z.indexOf("&",N+1);L.commandMetadata.webCommandMetadata.url=S>N&&S<Z.length?Z.slice(0,N)+Z.slice(S):Z.slice(0,N)}}},
configureClickTargets:function(L,Z,N){this.containerId=L;this.clickTargetMap=new Map;L=_.O(Z);for(Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.location){var S=N.get(Z.location);S&&(_.Az(_.QJ(this.hostElement).querySelector("#"+S),"yt-simple-endpoint",this.isClickAllowed_(Z)),this.clickTargetMap.set(S,Z))}},
isClickAllowed_:function(L){return L.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||L.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||L.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||L.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.bz={};
_.bz.YtLazyListBehavior=[_.uM.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 L=(this.constructor.generatedFrom||this).observers;L||(L=[]);L.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
L}},
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 L=this.renderElementsOutsideVisibleArea_;L&&(cGQ(L,4),L.processSignal())},
deepLazyListObserver_:function(L){var Z=this;if(L){var N=L.value||[];if(this.itemsPath==L.path){var S=this.nonDeferredItemCount;L=0;S>-1&&N.length>S&&(L=_.X7("REMAINING_DOVA_DEFERRED_CHUNKS",-1));L>0?(S>0&&(S=N.slice(0,S),this.setInitialItemsOnDataChanged(S)),(S=this.renderElementsOutsideVisibleArea_)?S.cancel():(S=this.renderElementsOutsideVisibleArea_=new _.ty(2,"eocs"),_.$gF(window,"scroll",function(){return Z.renderDeferredElements()})),_.Oj(S,function(){Z.setInitialItemsOnDataChanged(N)}),_.Qc("REMAINING_DOVA_DEFERRED_CHUNKS",
L-1)):this.setInitialItemsOnDataChanged(N)}else if(this.itemsPath+".splices"==L.path)this.onItemsUpdated_(N);
else S="shownItems"+L.path.substr(this.itemsPath.length),this.useSignals&&S==="shownItems.length"||this.notifyPath(S,L.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(L){L&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(L),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(L){L=L.indexSplices;for(var Z=0,N=L.length;Z<N;Z++){var S=L[Z];if(S.index<this.shownCount&&(S.removed&&this.splice("shownItems",S.index,S.removed.length),S.addedCount)){var u=S.object.slice(S.index,S.index+S.addedCount);S=["shownItems",S.index,0];S.push.apply(S,u);this.splice.apply(this,S)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(L){this.cancelPendingTasks_();L||(L=[]);this.items_=L;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&&(_.Ah("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.bN(this,this.tryRenderChunk_)))},
fillRange_:function(L,Z){this.canShowMore&&this.items_&&(L=this.items_.slice(L,Z),L.unshift("shownItems"),this.push.apply(this,L),this.shownCount=Z,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var L=this;this.canShowMore&&_.YD(this,"renderChunk",function(){L.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Ah("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.Gq(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var L=this.renderElementsOutsideVisibleArea_;L&&(L.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var L=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(L-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=L;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(L){return Math.ceil(1E3/L)},
onCanShowMoreUpdated_:function(L){this.data&&this.items_!==null&&(L?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(L){!this.shouldUseTaskManager()&&this.data&&(!L&&this.canShowMore?(_.o7w(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):L&&this.partiallyRenderedItems_.has(this.items_)&&(_.c("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Gz;_.Mo={};
Gz=function(){var L=_.Ok.apply(this,arguments)||this;L.atStart=!0;L.atEnd=!0;L.startIndex=0;L.endIndex=0;L.scrollCount=0;L.initialStartIndex=0;L.disableScrollEventListener=!1;L.useFloorScrolling=!1;L.isSearch=!1;L.dragging=!1;L.dragMouseStart=0;L.dragOffsetStart=0;L.disableWheelScroll=!1;L.centerListItems=!1;L.offset=0;L.minComponentWidth=0;L.marginWidthRight=0;L.marginWidthLeft=0;L.setButtonsStateRequested=!1;L.itemsVisibilityObserver=null;L.fullyVisibleItemsIndices=[];L.JSC$14496_onWheelScroll=function(Z){if(L.isSearch&&
!L.disableWheelScroll&&_.c("desktop_enable_dmpanel_wheel_scroll")){var N=Z.shiftKey?Math.abs(Z.deltaY)>Math.abs(Z.deltaX)?Z.deltaY:Z.deltaX:Z.deltaX;N!==0&&(Z.preventDefault(),L.ytLazyListBehavior.fillRemainingListItems(),L.offset+=N,gX(L),L.reposition_())}};
L.onPointerDown=function(Z){KDN(L)&&(L.dragMouseStart=Z.clientX,L.dragOffsetStart=L.offset,L.dragging=!0)};
L.onPointerMove=function(Z){KDN(L)&&L.dragging&&(L.ytLazyListBehavior.fillRemainingListItems(),L.offset=L.dragOffsetStart-(Z.clientX-L.dragMouseStart),gX(L),L.reposition_())};
L.onPointerUp=function(){KDN(L)&&(L.dragging=!1)};
return L};
_.f(Gz,_.Ok);var fVQ=function(L){var Z=_.QJ(L.hostElement).querySelector("#items").children;if(!Z)return 0;var N=0;L=_.O(L.fullyVisibleItemsIndices);for(var S=L.next();!S.done;S=L.next())N+=Z[S.value].clientWidth;return N},KDN=function(L){return L.isSearch&&_.c("desktop_enable_dmpanel_click_drag_scroll")};
Gz.prototype.created=function(){this.cachedViewportWidth=_.X7("initialInnerWidth")||window.innerWidth;this.JSC$14496_cachedViewportHeight=_.X7("initialInnerHeight")||window.innerHeight;_.X7("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Qc("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Gz.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.c("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();kH5(this)};
Gz.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.c("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var L;(L=this.itemsVisibilityObserver)==null||L.disconnect();this.itemsVisibilityObserver=null;var Z;(Z=this.itemsObserver)==null||Z.disconnect()};
var kH5=function(L){var Z=_.QJ(L.hostElement).querySelector("#scroll-container");if(Z){if(!L.itemsVisibilityObserver){var N=window.getComputedStyle(Z).marginRight;L.itemsVisibilityObserver=new IntersectionObserver(function(S){yn5(L,S)},{root:Z,
rootMargin:N,threshold:.98})}if(Z=_.QJ(L.hostElement).querySelector("#items"))L.itemsObserver=new N$Y(Z,function(S){wPN(L,S)})}},wPN=function(L,Z){UsM(L)&&(Array.from(Z.addedNodes).filter(function(N){return N.nodeType===Node.ELEMENT_NODE}).forEach(function(N){L.itemsVisibilityObserver&&L.itemsVisibilityObserver.observe(N)}),Array.from(Z.removedNodes).filter(function(N){return N.nodeType===Node.ELEMENT_NODE}).forEach(function(N){L.itemsVisibilityObserver&&L.itemsVisibilityObserver.unobserve(N)}))},
yn5=function(L,Z){var N=new Set(L.fullyVisibleItemsIndices);
Z=_.O(Z);for(var S=Z.next();!S.done;S=Z.next()){S=S.value;var u=S.target.parentElement;u?(u=Array.from(u.children).indexOf(S.target),S.isIntersecting?N.add(u):N.has(u)&&N.delete(u)):_.Q7(new _.sr("Parent element not found",S.target.nodeName))}L.fullyVisibleItemsIndices=Array.from(N).sort(function(T,W){return T-W});
N.size===0?_.Q7(new _.sr("No visible entries in horizontal list")):(L.startIndex=L.fullyVisibleItemsIndices[0],L.endIndex=L.fullyVisibleItemsIndices[L.fullyVisibleItemsIndices.length-1])},UsM=function(L){L.data?L=(L=L.data)&&L.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===L.itemSizeConstraint:!1:L=!1;
return L};
_.t=Gz.prototype;_.t.addScrollEventListeners=function(){var L=_.QJ(this.hostElement).querySelector("#scroll-container");L.style.touchAction="pan-y";L.addEventListener("wheel",this.JSC$14496_onWheelScroll);L.addEventListener("pointerdown",this.onPointerDown);L.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.t.removeScrollEventListeners=function(){var L=_.QJ(this.hostElement).querySelector("#scroll-container");L.removeEventListener("wheel",this.JSC$14496_onWheelScroll);L.removeEventListener("pointerdown",this.onPointerDown);L.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.t.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.bN(this,this.setStartIndex,[this.initialStartIndex])};
_.t.reposition_=function(){var L=_.X7("HTML_DIR")=="rtl"?"":"-",Z=_.QJ(this.hostElement).querySelector("#items");Z&&(Z.style.transform="translateX("+L+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.t.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.bN(this,this.setButtonsState_))};
_.t.setButtonsState_=function(){this.setButtonsStateRequested=!1;var L=_.QJ(this.hostElement).querySelector("#items").firstElementChild;if(L){this.minComponentWidth||(this.minComponentWidth=Y1t(this,L));L=_.QJ(this.hostElement).querySelector("#scroll-container").clientWidth;var Z=_.QJ(this.hostElement).querySelector("#items");Z=_.c("kevlar_horizontal_list_scroll_width_killswitch")?Z.clientWidth:Z.scrollWidth;var N=this.get(this.ytLazyListBehavior.itemsPath,this);if(N){var S=Math.round(L/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+S,N.length)-1)}this.ytLazyListBehavior.canShowMore?Z+this.minComponentWidth>=this.offset+L&&(this.atEnd=!1):this.atEnd=this.offset+L>=Z-20?!0:!1;this.atStart=this.offset<=20}};
_.t.setStartIndex=function(L){if(!this.minComponentWidth){var Z=_.QJ(this.hostElement).querySelector("#items").firstElementChild;if(!Z)return;this.minComponentWidth=Y1t(this,Z)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*L;gX(this);this.reposition_()};
_.t.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.vL();var L=_.QJ(this.hostElement).querySelector("#scroll-container").clientWidth;_.c("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=Y1t(this,_.QJ(this.hostElement).querySelector("#items").firstElementChild));L=this.useFloorScrolling?Math.floor(L/this.minComponentWidth)||1:Math.round(L/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&ew0(this);this.offset+=UsM(this)?
fVQ(this):L*this.minComponentWidth;gX(this);this.reposition_();this.scrollCount++};
_.t.prevClick_=function(){var L=_.QJ(this.hostElement).querySelector("#scroll-container").clientWidth;L=this.useFloorScrolling?Math.floor(L/this.minComponentWidth)||1:Math.round(L/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=UsM(this)?fVQ(this):this.minComponentWidth*this.scrollCount-1):this.offset-=UsM(this)?fVQ(this):L*this.minComponentWidth;this.centerListItems&&ew0(this);gX(this);this.reposition_()};
_.t.onIronResize_=function(){this.resizeSupportEnabled&&_.bN(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.t.onItemsTransitionEnd_=function(L){_.jD(L)===_.QJ(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.t.onChildElementFocus_=function(L){L=L.target.closest("#items > *");var Z=_.QJ(this.hostElement).querySelector("#scroll-container");if(Z.contains(L)){if(_.c("web_horizontal_list_behavior_focus_killswitch"))if(L.offsetLeft<this.offset)this.offset=Math.abs(L.offsetLeft)<L.clientWidth?0:L.offsetLeft;else if(L.offsetLeft+L.clientWidth>this.offset+Z.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.vL(),this.offset=L.offsetLeft+L.clientWidth-Z.clientWidth;else return;else{var N=_.QJ(this.hostElement).querySelector("#items"),
S=_.X7("HTML_DIR")==="rtl",u=S?N.clientWidth-L.offsetLeft:L.offsetLeft;N=S?N.clientWidth-(L.offsetLeft+L.clientWidth):L.offsetLeft+L.clientWidth;var T=S?u>this.offset+Z.clientWidth:u<this.offset,W=S?N<this.offset:N>this.offset+Z.clientWidth,V=S?T:W;if(S?W:T)Z=S?N:u,this.offset=Math.abs(Z)<L.clientWidth?0:Z;else if(V)this.ytLazyListBehavior.fillRemainingListItems(),_.vL(),this.offset=(S?u:N)-Z.clientWidth;else return}gX(this);this.reposition_()}};
_.t.observeShownItems_=function(){this.reset()};
_.t.checkComponentWidthResize=function(){var L=_.QJ(this.hostElement).querySelector("#items").firstElementChild;L&&(L=Y1t(this,L),this.centerListItems||L!==this.minComponentWidth)&&(this.minComponentWidth=L,this.offset=L*this.scrollCount,this.centerListItems&&ew0(this),gX(this),this.reposition_())};
var Y1t=function(L,Z){var N=window.getComputedStyle(Z).marginRight;N=Math.floor(Number(N.replace("px","")));var S=window.getComputedStyle(Z).marginLeft;S=Math.floor(Number(S.replace("px","")));L.centerListItems&&!L.marginWidthRight&&(L.marginWidthRight=N,L.marginWidthLeft=S);return L.resizeSupportEnabled?Z.getBoundingClientRect().width+N:Z.offsetWidth+N},gX=function(L){var Z=_.QJ(L.hostElement).querySelector("#scroll-container").clientWidth,N=_.QJ(L.hostElement).querySelector("#items").clientWidth;
L.offset<0?L.offset=0:L.offset+Z>=N&&(L.offset=N-Z)},ew0=function(L){L.offset-=(_.QJ(L.hostElement).querySelector("#scroll-container").clientWidth+L.marginWidthRight-L.minComponentWidth)/2-L.marginWidthLeft};
_.gd.Object.defineProperties(Gz.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var L=_.X7("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(L==-1)L=this.JSC$14496_cachedViewportHeight,L=L>1320?5:L>1020?4:L>730?3:L>430?2:1;else if(L==0)return 0;_.Qc("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",L-1);L=_.X7("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(L>-1)return L;L=this.cachedViewportWidth;L=L>1600?6:L>1400?5:L>1300?4:L>1090?5:L>870?4:L>660?3:2;_.Qc("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
L);return L},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.c("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Gz.prototype.observeShownItems_=Gz.prototype.observeShownItems_;Gz.prototype.onChildElementFocus_=Gz.prototype.onChildElementFocus_;Gz.prototype.onItemsTransitionEnd_=Gz.prototype.onItemsTransitionEnd_;Gz.prototype.onIronResize_=Gz.prototype.onIronResize_;Gz.prototype.prevClick_=Gz.prototype.prevClick_;Gz.prototype.nextClick_=Gz.prototype.nextClick_;Gz.prototype.setButtonsState_=Gz.prototype.setButtonsState_;Gz.prototype.requestButtonsStateUpdate_=Gz.prototype.requestButtonsStateUpdate_;
Gz.prototype.reposition_=Gz.prototype.reposition_;Gz.prototype.reset=Gz.prototype.reset;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.bz.YtLazyListBehavior),_.Q("design:type",Object)],Gz.prototype,"ytLazyListBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gz.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Gz.prototype,"atStart",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Gz.prototype,"atEnd",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gz.prototype,"startIndex",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gz.prototype,"endIndex",void 0);_.r([_.Y({value:6}),_.Q("design:type",Number)],Gz.prototype,"initialCount",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gz.prototype,"scrollCount",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gz.prototype,"initialStartIndex",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Gz.prototype,"disableScrollEventListener",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gz.prototype,"supportComponentResize",void 0);_.r([_.Y({value:function(){var L=this;return function(){return L.prevClick_()}}}),
_.Q("design:type",Function)],Gz.prototype,"boundPrevClick",void 0);_.r([_.Y({value:function(){var L=this;return function(){return L.nextClick_()}}}),
_.Q("design:type",Function)],Gz.prototype,"boundNextClick",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gz.prototype,"useFloorScrolling",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gz.prototype,"isSearch",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gz.prototype,"dragging",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gz.prototype,"dragMouseStart",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gz.prototype,"dragOffsetStart",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Gz.prototype,"disableWheelScroll",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gz.prototype,"centerListItems",void 0);_.r([_.SA("iron-resize"),_.iA("guideOpened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Gz.prototype,"onIronResize_",null);_.r([_.SA("transitionend"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Gz.prototype,"onItemsTransitionEnd_",null);
_.r([_.SA("focusin"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Gz.prototype,"onChildElementFocus_",null);_.r([_.iA("shownItems"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Gz.prototype,"observeShownItems_",null);_.r([_.Wh()],Gz);_.Mo.YtdHorizontalListBehavior=[];_.Mo.YtdHorizontalListBehavior.push(_.Eb,_.B.YtRendererBehavior,_.bz.YtLazyListBehavior,_.B0.YtdGuideStateAwareBehavior,Gz.prototype);var TzP=["APP_STATE","PI"];var FX,$u=function(L){this.hostElement=L},De=function(L,Z){if(Z&&(VFh(Z.viewableCommands)||VFh(Z.endOfSessionCommands))){var N=MFH(Z.viewableCommands);
Z=MFH(Z.endOfSessionCommands);if(!FX){var S=_.lQ("custom_active_view_tos_timeout_ms");FX=S>0&&S!==36E5?new jcx(brA(),S):new jcx(brA())}PLP(FX,L.hostElement);prf(FX,L.hostElement,N,Z)}},lz=function(L){FX&&PLP(FX,L.hostElement)};var IVY=_.sc(["about:blank"]),dsq={pushState:window.history.pushState,replaceState:window.history.replaceState};var vo=function(L){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=L;this.internalPushState=L.pushState.bind(L);this.internalReplaceState=L.replaceState.bind(L)};
vo.prototype.init=function(){this.initialized=!0};
vo.prototype.pushState=function(L,Z){this.initialized||this.init();this.internalPushState&&this.internalPushState(L,"",Z)};
vo.prototype.replaceState=function(L,Z){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(L,"",Z)};
vo.prototype.getState=function(){return this.history&&this.history.state};var aVQ=function(L){var Z=function(){var N=L.apply(this,arguments)||this;N.boundHistoryPushState=!1;N.boundHistoryReplaceState=!1;N.debugInfo={};return N};
_.f(Z,L);Z.prototype.init=function(){var N=_.wZ("IFRAME");_.qq(N,_.vy(IVY));N.sandbox="allow-same-origin";N.style.display="none";this.iframe=N;document.body.appendChild(N);this.bindHistoryStateFunctions();L.prototype.init.call(this)};
Z.prototype.bindHistoryStateFunctions=function(){var N=this,S=[],u;this.iframe&&((u=this.iframe.contentWindow)==null?0:u.history)&&(u=this.iframe.contentWindow.history)&&(S.push(u),Object.getPrototypeOf(u)&&S.push(Object.getPrototypeOf(u)));window.history&&S.push(window.history);u=window.history;Object.getPrototypeOf(u)&&S.push(Object.getPrototypeOf(u));S.push(dsq);u=function(W){for(var V=null,M=0;M<S.length;M++){var G=S[M][W];if(typeof G==="function"){V=G.bind(window.history);N.debugInfo[W]=M;break}}return V};
if(!this.boundHistoryReplaceState){var T=u("replaceState");T&&(this.internalReplaceState=T,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(u=u("pushState"))&&(this.internalPushState=u,this.boundHistoryPushState=!0)};
return Z}(vo),hwY=function(){return aVQ.call(this,window.history)||this};
_.f(hwY,aVQ);hwY.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var o2=function(L){this.browserHistory=L;this.initialized=!1};
o2.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
o2.prototype.pushState=function(L,Z){this.initialized||this.init();this.browserHistory.pushState(L,Z)};
o2.prototype.replaceState=function(L,Z){this.initialized||this.init();this.browserHistory.replaceState(L,Z)};
o2.prototype.handlePopstate=function(L){return L.state};_.soV=function(L,Z,N,S,u){this.endpoint=L;this.forward=Z;this.historyEntry=N;this.JSC$30421_savedComponentState=S;this.legacyBorder=u===void 0?!1:u};var jos=function(L,Z){this.rootData=L;this.scrollTop=Z};_.R2=new _.iY("EPHEMERAL_STORE_TOKEN");_.co=function(L){this.data=Object.assign({},L);var Z;(Z=this.data.innertubeResponse)==null||delete Z.frameworkUpdates};
_.co.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.GT)()};
_.m4=function(L){return Object.assign({},L.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var Emt=function(){this.maxSize=100;this.timeToDataCache=new Map};
Emt.prototype.get=function(L){var Z=this.timeToDataCache.get(L);Z&&(this.timeToDataCache.delete(L),this.timeToDataCache.set(L,Z));if(Z&&Z.rootData&&(_.c("web_use_response_store_for_history_cache")||_.c("mweb_use_new_history_manager"))){var N=_.GR().resolve(_.R2),S=PE0(Z),u=!!S;if(S){if(S.content){var T=nb(N,S.content);u&&T?Z.rootData.response=_.m4(T):u=!1}S.player&&(T=nb(N,S.player),u&&T?Z.rootData.playerResponse=_.m4(T):u=!1);S.reelSequence&&(N=nb(N,S.reelSequence),u&&N?Z.rootData.reelWatchSequenceResponse=
_.m4(N):u=!1)}u||(this.timeToDataCache.delete(L),Z=void 0)}return Z};
Emt.prototype.set=function(L,Z){if(Z.rootData&&(_.c("web_use_response_store_for_history_cache")||_.c("mweb_use_new_history_manager"))){var N=PE0(Z),S=Object.assign({},Z.rootData);N&&(N.content&&Z.rootData.response&&(pPq(this,N.content,Z.rootData.response),S.response=null),N.player&&Z.rootData.playerResponse&&(pPq(this,N.player,Z.rootData.playerResponse),S.playerResponse=null),N.reelSequence&&Z.rootData.reelWatchSequenceResponse&&(pPq(this,N.reelSequence,Z.rootData.reelWatchSequenceResponse),S.reelWatchSequenceResponse=
null));Z=new jos(S,Z.scrollTop)}this.timeToDataCache.has(L)?this.timeToDataCache.delete(L):this.timeToDataCache.size>=this.maxSize&&(N=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(N.value));this.maxSize!==0&&this.timeToDataCache.set(L,Z)};
Emt.prototype.clear=function(){this.timeToDataCache.clear()};
var PE0=function(L){var Z=_.GR().resolve(_.gv(_.G1)),N;if((N=L.rootData)==null?0:N.endpoint)return Z==null?void 0:vOt(Z,L.rootData.endpoint);var S;_.Q7(new _.sr("History snapshot response data does not contain endpoint",(S=L.rootData)==null?void 0:S.url));return null},pPq=function(L,Z,N){if(L.maxSize>0){var S;
(L=(S=N.responseContext)==null?void 0:S.maxAgeSeconds)&&Number(L)>0&&(S=_.GR().resolve(_.R2),N=x0(N,L),S.put(Z,new _.co(N)))}};var zwQ=function(L,Z,N){this.endpoint=Z;this.JSC$30427_savedComponentState=N===void 0?null:N;this.entryTime=L};var FeH=1;var Kb=function(L){var Z=function(){var N=L.apply(this,[].concat(_.Pd(_.CG.apply(0,arguments))))||this;N.historyEntryTime=0;N.historySnapshotCache=N.createHistoryCache();return N};
_.f(Z,L);Z.prototype.createHistoryCache=function(){return new Emt};
Z.prototype.saveAndReplace=function(N,S,u){var T=window.location.href;var W=W===void 0?{}:W;var V=(V=this.browserHistory.getState())&&V.entryTime?V.entryTime:$yh();N=this.createNewHistoryEntry(N,W,V);this.saveSnapshot(V,S,u);this.replaceState(N,T||window.location.href)};
Z.prototype.saveAndPush=function(N,S,u,T,W){W=W===void 0?{}:W;this.saveSnapshot(this.historyEntryTime,u,T);u=this.historySnapshotCache;T=this.historyEntryTime;var V=u.timeToDataCache.keys();V=_.O(V);for(var M=V.next();!M.done;M=V.next())M=M.value,M>T&&u.timeToDataCache.delete(M);S=this.createNewHistoryEntry(S,W);this.pushState(S,N)};
Z.prototype.saveSnapshot=function(N,S,u){this.historySnapshotCache.set(N,new jos(S,u))};
Z.prototype.createNewHistoryEntry=function(N,S,u){u=u===void 0?$yh():u;return new zwQ(u,N,S)};
Z.prototype.handlePopstate=function(N){var S=L.prototype.handlePopstate.call(this,N),u=null,T=null,W=!1,V=null;S&&S.entryTime&&(V=this.historySnapshotCache.get(S.entryTime)||null,W=S.entryTime>this.historyEntryTime,this.historyEntryTime=S.entryTime,u=S.endpoint,T=S.JSC$30427_savedComponentState);this.handleHistoryCacheLoad(new _.soV(u,W,V,T),N);return S};
Z.prototype.pushState=function(N,S){Number(N==null?void 0:N.entryTime)>=0&&(this.historyEntryTime=N.entryTime);L.prototype.pushState.call(this,N,S)};
Z.prototype.replaceState=function(N,S){Number(N==null?void 0:N.entryTime)>=0&&(this.historyEntryTime=N.entryTime);L.prototype.replaceState.call(this,N,S)};
Z.prototype.handleHistoryCacheLoad=function(){};
return Z}(o2),msl=function(){var L=Kb.call(this,new hwY)||this;
L.dispatchElement=null;L.entryIndex=0;return L};
_.f(msl,Kb);_.t=msl.prototype;_.t.init=function(L){L=L===void 0?!0:L;Kb.prototype.init.call(this);this.initialized||(L||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.t.handlePopstate=function(L){var Z=null;L.state||(Z="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Kb.prototype.handlePopstate.call(this,L);var N=new CustomEvent("yt-history-pop",{cancelable:!0});_.XJ(this.dispatchElement,"yt-history-pop",[N,{errorMsg:Z}]);_.Ad(this.dispatchElement,"yt-close-all-popups-action");if(!N.defaultPrevented){N=_.GR().resolve(_.mR);Z=N.getCurrentData();var S=N.getCurrentPage();N=0;S?(S=_.XJ(this.dispatchElement,"yt-get-page-offset",
[S]),S.length>0&&(N=S[0])):_.Q7(new _.sr("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:Z?Z.page:"undefined"}));Z&&(Z.csn=_.RH());this.saveSnapshot(this.historyEntryTime,Z,N)}return Kb.prototype.handlePopstate.call(this,L)};
_.t.handleHistoryCacheLoad=function(L,Z){L.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.O(_.Ad(this.dispatchElement,"yt-history-will-navigate",[Z])).next().value||_.XJ(this.dispatchElement,"yt-history-load",[Z,L]))};
_.t.pushState=function(L,Z){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var N=new _.sr("history.pushState is not a function",this.getDebugString());_.CA(N)}Kb.prototype.pushState.call(this,L,Z)};
_.t.replaceState=function(L,Z){if(!this.browserHistory.boundHistoryReplaceState){var N=new _.sr("history.replaceState is not a function",this.getDebugString());_.CA(N)}Kb.prototype.replaceState.call(this,L,Z)};
_.t.saveAndPush=function(L,Z,N,S,u){u=u===void 0?{}:u;N&&(N.csn=_.RH());Kb.prototype.saveAndPush.call(this,L,Z,N,S,u)};
_.t.getDebugString=function(){var L=[];this.initialized&&L.push("i");this.browserHistory.boundHistoryReplaceState&&L.push("bhr");this.browserHistory.boundHistoryPushState&&L.push("bhs");"replaceState"in this.browserHistory.debugInfo&&L.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&L.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&L.push("ei:"+String(this.entryIndex));return L.join(",")};
_.fb=function(L,Z){L.init(!0);var N=L.browserHistory.getState();L.replaceState(N,BQ(Z))};
msl.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.ku=new _.iY("DESKTOP_HISTORY_MANAGER_TOKEN");var JnM=[10,20,30,40,50,60],yK=function(){this.currentPartitionIndex=0},CEQ=function(L){KbY({mainAppWeb:_.Is(),
survivalSli:{partitionMinute:L,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},rnY=function(L){KbY({mainAppWeb:_.Is(),
survivalSli:{partitionMinute:L,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},QoQ=function(L){return L.currentPartitionIndex>=0&&L.currentPartitionIndex<JnM.length?JnM[L.currentPartitionIndex]:-1},XPs=function(L){return L.currentPartitionIndex>0&&L.currentPartitionIndex-1<JnM.length?JnM[L.currentPartitionIndex-1]:-1};
yK.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var L=XPs(this);L>0&&rnY(L);L=QoQ(this);L>0&&CEQ(L);Anq(this)}};
var Anq=function(L){var Z=QoQ(L);if(Z>0){var N=XPs(L);N<0&&(N=0);L.intervalId=_.ro.addJob(function(){var S=XPs(L);S>0&&rnY(S);S=QoQ(L);S>0&&CEQ(S);Anq(L)},3,(Z-N)*6E4);
L.currentPartitionIndex+=1}else L.currentPartitionIndex=-1};var HEq=function(L){RM.call(this,L,132);this.isDocument=L===document.documentElement};
_.f(HEq,RM);HEq.prototype.calculateScrollDelta=function(L,Z,N){var S=0;L<Z?S=L<Z-100?-48:-8:L>Z+N&&(S=L>Z+N+100?48:8);return S};
HEq.prototype.JSC$11398_onMouseMove=function(L){this.isDocument||(L.clientX=L.event_.pageX,L.clientY=L.event_.pageY);RM.prototype.JSC$11398_onMouseMove.call(this,L)};_.BWq=function(L,Z){var N=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14550_dragListGroup=null;this.onDraggerCreated=function(S){var u=S.JSC$11394_dragger;u.scrollTarget_=N.scrollElement;S=S.draggerEl;u&&S.menuOpened&&u.setEnabled(!1)};
this.onDragStart=function(S){var u=S.draggerEl;S=S.currDragItem;var T=Object.assign({},S==null?void 0:S.data);T.trackingParams=void 0;u.data=T;u.style.position="absolute";u.style.width=(S==null?void 0:S.clientWidth)+"px";u.style.zIndex="2030";u.onDrag&&u.onDrag();S=_.Jj(u);(T=S.querySelector("ytd-app"))?_.QJ(T).appendChild(u):S.body.appendChild(u);N.dragScrollSupport=new HEq(N.scrollElement);N.dragScrollSupport.horizontalScrolling_=!1;u=N.dragScrollSupport;u.constrainScroll_=!!u.margin_&&!1};
this.onDrop=function(S){N.handleDrop(S);N.dragScrollSupport&&(_.W4(N.dragScrollSupport),N.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(N.JSC$14550_dragListGroup){var S=N.JSC$14550_dragListGroup;k0q(S,S.currDragItem_)}};
this.handleDrop=Z};
_.wX=function(L){L.JSC$14550_dragListGroup&&(_.nc(L.JSC$14550_dragListGroup,DVI,L.onDragStart),_.nc(L.JSC$14550_dragListGroup,R_Q,L.onDragStart),L.JSC$14550_dragListGroup.dispose(),L.JSC$14550_dragListGroup=null);L.dragScrollSupport&&(_.W4(L.dragScrollSupport),L.dragScrollSupport=null);L.scrollElement.removeEventListener("scroll",L.onReorderableScroll)};
_.xsh=function(L,Z,N,S){S=S===void 0?"":S;_.wX(L);N&&(L.scrollElement=N);L.JSC$14550_dragListGroup=new rS;L.JSC$14550_dragListGroup.hysteresisDistance_=2;n0t(L.JSC$14550_dragListGroup,Z);L.JSC$14550_dragListGroup.draggerElClasses_=gP("dragging").split(" ");S&&KRO(L.JSC$14550_dragListGroup,function(u){var T=u||document,W=null;T.getElementsByClassName?W=T.getElementsByClassName(S)[0]:W=ix5("*",S,u);return W||u});
_.Gl(L.JSC$14550_dragListGroup,FRI,L.onDraggerCreated);_.Gl(L.JSC$14550_dragListGroup,DVI,L.onDragStart);_.Gl(L.JSC$14550_dragListGroup,R_Q,L.onDrop);L.JSC$14550_dragListGroup.init();L.scrollElement.addEventListener("scroll",L.onReorderableScroll,{passive:!0})};
_.gd.Object.defineProperties(_.BWq.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var q1t=function(){this.skipNextNavigation=!1},Lft=function(L,Z,N){if(!Z)return!1;
if(L.skipNextNavigation)return L.skipNextNavigation=!1;if(_.n(N,_.Lo))return!1;var S,u,T;if((S=_.n(N,_.iv))==null?0:(u=S.browseEndpointContextSupportedConfigs)==null?0:(T=u.browseEndpointContextMainConfig)==null?0:T.skipConfirmation)return!1;var W;return((W=_.n(Z.commandMetadata,_.Nj))==null?void 0:W.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
q1t.prototype.showConfirmationDialog=function(L,Z){this.navigateParams=Z;this.customConfirmationCommand?_.GR().resolve(_.$s).resolveCommand(this.customConfirmationCommand):(Z={openPopupAction:{popup:{confirmDialogRenderer:{title:_.s9(_.iB("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.s9(_.iB("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.s9(_.iB("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.s9(_.iB("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.SS.getInstance().triggerAction("yt-open-popup-action",Z,L))};
q1t.prototype.cancelPendingNavigation=function(){var L;((L=this.navigateParams)==null?void 0:L.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var ZgQ=function(){},SaQ=function(L,Z,N,S,u,T,W){N=N===void 0?{}:N;
W=W===void 0?{}:W;var V=_.GR().resolve(_.G1),M,G=(M=_.n(Z,_.Lo))==null?void 0:M.url;return G?qzw(V,G,N,window.location.href,function(D,l){NtQ(L,D,l,!1,!0,N,T,S)},function(){return!1}):YM(V,Z,N,window.location.href,T7(Z),function(D,l){NtQ(L,D,l,!1,!0,N,T,S)},u,W)},NtQ=function(L,Z,N,S,u,T,W,V){if(!L.JSC$14565_chunkHandler)if(N.page==="learning_journey_watch"&&_.c("web_enable_canvas_on_learning_journey")){var M=!_.n(V,_.iv);
u=u||S;if(M)if(u){if(_.c("kevlar_continue_playback_without_player_response")){var G;var D=(G=_.n(V,_.so))==null?void 0:G.videoId}S={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:S,previousVideoId:D},tempData:T}}else S={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else S={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};L.JSC$14565_chunkHandler=new r80(_.CV,S,W,M,u)}else if(N.page==="watch"||N.page==="learning_journey_watch")if(u||S){if(_.c("kevlar_continue_playback_without_player_response")){var l;
M=(l=_.n(V,_.so))==null?void 0:l.videoId}L.JSC$14565_chunkHandler=new A8t(_.CV,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:S,previousVideoId:M},tempData:T},W)}else L.JSC$14565_chunkHandler=new J8q(_.CV);else N.page==="shorts"&&u&&!S?L.JSC$14565_chunkHandler=new Xeq(_.CV,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:T},W):L.JSC$14565_chunkHandler=new CVl(W);L.JSC$14565_chunkHandler.processChunk({endpoint:Z,data:N});return L.JSC$14565_chunkHandler.ox.promise},
ig0=function(L,Z,N,S,u){(N=_.WHM(N))&&NtQ(L,Z,N,!1,!0,S,void 0,u)};_.uV5=new _.iY("NAVIGATION_SERVICE_TOKEN");var Tts=function(){this.pendingNavigationPromise=null};
_.t=Tts.prototype;_.t.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.t.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.t.addEventListener=function(){throw Error("yh");};
_.t.dispatchEvent=function(){throw Error("yh");};
_.t.removeEventListener=function(){throw Error("yh");};var tvs=new _.iY("APP_ROOT");var lEB=null;var OgL=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],UB=function(){_.Kc.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];WfM(this)};
_.f(UB,_.Kc);UB.prototype.verifyUser=function(){var L=WfM(this),Z=L.logout;if(!L.sessionChange)return!0;this.dispatchEvent("ytsessionchange");Z&&this.dispatchEvent("ytuserinvalid");return!1};
var WfM=function(L){var Z=OgL.map(function(u){var T;return(T=_.eZ.get(u))!=null?T:""}),N=Z.some(function(u,T){return L.sessionCookies&&L.sessionCookies[T]!==""&&u===""}),S=Z.some(function(u,T){return L.sessionCookies&&L.sessionCookies[T]!==u});
L.sessionCookies=Z;return{logout:N,sessionChange:S}};
UB.prototype.clearTimeout=function(){this.scheduledJobId&&(_.ro.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var KeF=new _.iY("POSTMESSAGE_TUNNEL_TOKEN");var RWP=["/parent_tools","/file_download","/artist_roster"],y6s=[P9t,p6Q,zML,JfV,mqL,EVV,C9t,rft];var Yu=new _.iY("NAVIGATION_CONFIRMATION_SERVICE");var Vv0="/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(" "),bgI=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],eG=function(L,Z){this.pendingNavigationPromise=null;this.JSC$14588_clientRoot=L;this.historyManager=Z;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 ZgQ;this.debugString=L.is;L={"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};_.ie(_.SS.getInstance(),L,this.JSC$14588_clientRoot)},$SO,DSI,loq,vHV,FfO;
_.f(eG,Tts);eG.prototype.reload=function(){_.ke(window.location.href)};
var MaY=function(L){L.currentEndpoint&&_.n(L.currentEndpoint,_.Ox)?L.reload():L.currentEndpoint&&L.navigate(L.currentEndpoint,!0,void 0,{disableCache:!0})};
eG.prototype.navigate=function(L,Z,N,S,u,T,W,V){Z=Z===void 0?!1:Z;N=N===void 0?{}:N;S=S===void 0?{}:S;var M=_.GR().resolve(Yu),G;if(!W&&Lft(M,(G=this.currentEndpoint)!=null?G:void 0,L))return M.showConfirmationDialog(this.JSC$14588_clientRoot.parentElement,{endpoint:L,reload:Z,params:N,tempData:S,requestType:u,createScreenConfig:T}),!1;var D=_.ih();_.uh(D,"eocs")||D.parkOrScheduleJob(function(){D.processSignal("eocs")},10,"eor");
vch();W=T7(L);M=S.autonav==="1";G=_.RH();UB.instance||(UB.instance=new UB);var l=UB.instance.verifyUser(),v;if(_.c("enable_dark_theme_only_on_shorts")){var R=document.documentElement.hasAttribute("dark"),K=_.wr(!0)==="USER_INTERFACE_THEME_DARK";if(W==="shorts"){if(!R)if(_.c("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var U;_.ke((U=_.n(L==null?void 0:L.commandMetadata,_.Nj))==null?void 0:U.url,void 0,void 0,window.top)}}else{var d;_.ke(_.TR((d=_.n(L==
null?void 0:L.commandMetadata,_.Nj))==null?void 0:d.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.c("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!R){var h;_.ke(_.TR((h=_.n(L==null?void 0:L.commandMetadata,_.Nj))==null?void 0:h.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(K!==R){var E;_.ke(_.TR((E=_.n(L==null?void 0:L.commandMetadata,_.Nj))==null?void 0:E.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(W==="watch"){if(MvM(_.GR().resolve(_.yk),
L)&&(l||_.c("fix_miniplayer_navigation_killswitch")))return!1;_.c("block_all_player_prefetch_requests")||(v=Vat(_.pm(_.ff),L,M))}else{var A,J=(A=_.n(this.currentEndpoint,_.so))==null?void 0:A.videoId;J&&_.mi.getInstance().then(function(jf){jf&&jf.set("yt-miniplayer-shown-video-id",J)})}v&&(N.frags=v.missingFragments_.join(","));
U=null;var C;d=(C=_.n(L==null?void 0:L.commandMetadata,_.Nj))==null?void 0:C.ignoreNavigation;if(!d)if(_.c("kevlar_command_url")){var X;U=(X=_.n(L==null?void 0:L.commandMetadata,_.Nj))==null?void 0:X.url}else U=_.SSw(L,N);if(U&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&U==this.lastNavigationUrl)return _.lB({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.ZK(w0(),"CANCELLED")}U&&(this.lastNavigationUrl=U);LbG();_.Qc("IS_HOMEPAGE_COLD",
!1);_.Qc("IS_RESULTS_PAGE_COLD",!1);_.Qc("IS_WATCH_PAGE_COLD",!1);L.loggingUrls&&L.loggingUrls.forEach(function(jf){jf.baseUrl&&_.NC(jf.baseUrl)});
_.eWG(L,T?T.layer:0)&&_.c("kevlar_flush_logs_on_away_navigation")&&_.JV();if(wmP(L))return!1;Qrh(W,u);if(!U)return d||_.Q7(new _.sr("Can't construct url for endpoint",L)),_.ZK(w0(),"FAILURE"),!1;_.ocf();C=L&&_.n(L,_.iv)&&_.n(L,_.iv).browseId.startsWith("UC");N=(X=_.c("enable_dark_theme_only_on_shorts")&&W==="shorts"?!1:_.Ux()&&document.documentElement.hasAttribute("dark")!==_.yJ())?{themeRefresh:1}:{};X&&!_.dv()&&_.wr()==="USER_INTERFACE_THEME_DARK"&&(N.theme="dark");C=X||gH0(U)&&!C&&!_.c("kevlar_disable_url_allowlist");
l||(C=!0);if(C||_.X7("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var L1;var Fw=(L1=window.top)==null?void 0:L1.location.href}catch(jf){var GB;Fw=(GB=jf)==null?void 0:GB.message}_.Q7(new _.sr("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Fw}))}L=_.c("kevlar_redirect_on_window_killswitch")?window.top:window;fX(U);_.ke(_.TR(U,N),void 0,void 0,L);_.ZK(w0(),"ABORTED");return!1}_.c("kevlar_early_popup_close")&&_.XJ(this.JSC$14588_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14565_chunkHandler=void 0;var Yt;Fw=T7((Yt=this.currentEndpoint)!=null?Yt:void 0);(Yt=W==="shorts"&&Fw==="shorts")||_.Xbw();_.B8(dft)("nr",void 0);M&&_.lB({webInfo:{navigationReason:"an"}});L.clickTrackingParams&&(S.itct=L.clickTrackingParams,S.csn=G);qqs(S);S.endpoint=JSON.stringify(L);_.c("enable_unknown_lact_fix_on_html5")&&(_.GR().resolve(_.MV),S.lact=_.Fv());_.Py.isEmpty(S)||_.pv(U,S);!_.c("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(T=Object.assign({},{layer:0},T,{parentLayer:3}));this.pendingNavigationPromise=T=SaQ(this.pageFetcher,L,S,this.currentEndpoint,this.JSC$14588_isNetworkPromiseStale.bind(this),T,V);T=T.then(this.handleNavigateSuccess.bind(this,T,L,v,S),this.handleNavigateFail.bind(this,T,L));_.dM().navigationFinishPromise=T;Z={endpoint:L,pageType:W,url:BQ(U),reload:!!Z,noProgressBar:Yt};u&&(Z.type=u);var lH;u=_.SD((lH=this.currentEndpoint)!=null?lH:null);lH=_.SD(L!=null?L:null);this.fireEvent("yt-navigate-start",
Z);var RF;(RF=_.GR().resolve(_.gv(_.uV5)))==null||RF.publish("navigation-start",{sourcePageSubtype:u,destinationPageSubtype:lH});v&&ig0(this.pageFetcher,L,v,S,this.currentEndpoint);return!0};
eG.prototype.JSC$14588_isNetworkPromiseStale=function(L){return L!=this.pendingNavigationPromise};
var GrN=function(L,Z,N,S,u){var T=T7(Z);Z={endpoint:Z,pageType:T};u&&(Z.errorMessage=u);_.Q7(N);Z.navigationDoneMs=_.Rq("nd");Z.navigationErrorReason=S;L.fireEvent("yt-navigate-error",Z)};
eG.prototype.handleNavigateFail=function(L,Z,N){var S=void 0;N instanceof _.ko&&(S=N,Zlx(N));if(this.JSC$14588_isNetworkPromiseStale(L))return _.$N(S);_.ZK(w0(),"FAILURE");GrN(this,Z,N,"101");return _.$N(N)};
eG.prototype.handleNavigateSuccess=function(L,Z,N,S,u){if(this.JSC$14588_isNetworkPromiseStale(L))return _.xP();this.pendingNavigationPromise=null;if(!u)return Z=new _.sr("Missing data in response for navigation endpoint",Z),_.$N(Z);if(u.reload)return window.location.reload(!0),_.xP();N&&(L={},_.Py.extend(L,_.WHM(N),u),u=L);var T,W;N=(T=u)==null?void 0:(W=T.timing)==null?void 0:W.responseStart;N!=null&&_.Rq("srt",N);_.Rq("pdc");var V,M;T=(V=u)==null?void 0:(M=V.timing)==null?void 0:M.info;T!=null&&
(V=_.B8(_.jw_)(T),_.lB(V));_.ZK(w0(),"SUCCESS");FfO(this,Z,u,1,S);return _.xP()};
var gH0=function(L){var Z=L;_.c("kevlar_no_redirect_to_classic_2_ks")||(Z=(new _.j9(L)).getPath());if(Z==="/"||Z==="/red")return!1;var N=!0;Vv0.forEach(function(S){L.indexOf(S)===0&&(N=!1)});
bgI.forEach(function(S){var u=S.url;_.c(S.expFlag)&&L.indexOf(u)===0&&(N=!1)});
return N};
eG.prototype.publishPageData=function(L){this.fireEvent("yt-page-data-fetched",{pageData:L})};
$SO=function(L,Z,N,S,u,T){var W=null;Z.page!=="watch"&&Z.page!=="learning_journey_watch"||S?Z.filler||_.XJ(L.JSC$14588_clientRoot,"yt-stop-old-player",[Z]):W=NtQ(L.pageFetcher,u,Z,N,!1,T,void 0,L.currentEndpoint);if(W)return W.then(L.publishPageData.bind(L,Z));L.publishPageData(Z);return _.xP()};
DSI=function(L,Z,N){var S=null;if(!N)return S=new _.sr("Empty data",L.debugString,Z);var u=N.response;if(!u)return S;var T={endpointType:T7(Z)||"unknown"};u.responseContext?(u=u.responseContext.errors)&&(S=new _.sr("Errors in response context",L.debugString,Z,u,T)):S=u.error||u.errorMetadata?new _.sr("Errors in response",L.debugString,Z,u.error,u.errorMetadata,T):new _.sr("responseContext missing",L.debugString,Z,Object.keys(u).sort().join(","),T);var W,V,M,G;if(L=N==null?void 0:(W=N.response)==null?
void 0:(V=W.responseContext)==null?void 0:(M=V.webResponseContextExtensionData)==null?void 0:(G=M.webResponseContextDebugData)==null?void 0:G.debugErrorMessages)for(W=0;W<L.length;W++);return S};
loq=function(L){var Z,N,S,u;return L==null?void 0:(Z=L.response)==null?void 0:(N=Z.responseContext)==null?void 0:(S=N.errors)==null?void 0:(u=S.error)==null?void 0:u["0"]};
vHV=function(L,Z){var N;if(N=Z.url&&!Z.url.startsWith("/clip"))N=Z.url,N=!_.c("webfe_parse_debug_param_in_resolveurl_service")&&L.searchDebugUrlMatcher.test(N)||W2G(N)?!0:!1;if(N)W2G(Z.url)&&_.uQ(window.location.href).themeRefresh?(Z=_.zo(Z.url,"themeRefresh"),_.fb(L.historyManager,Z)):Z.url&&!gc1(Z.url)&&_.fb(L.historyManager,Z.url);else if(Z.endpoint){var S,u,T;(N=(S=Z.endpoint)==null?void 0:(u=S.commandMetadata)==null?void 0:(T=u.webCommandMetadata)==null?void 0:T.url)&&!gc1(N)&&_.fb(L.historyManager,
N);N&&Z.url&&N!=Z.url&&!Z.url.match("playnext=1")&&new _.sr("Response url mismatch in response data",L.debugString,N,Z.url)}};
_.oHl=function(L,Z,N,S,u,T,W,V){T=T===void 0?!1:T;var M=_.GR().resolve(Yu),G;if(!V&&Lft(M,(G=L.currentEndpoint)!=null?G:void 0,Z))return M.showConfirmationDialog(L.JSC$14588_clientRoot.parentElement,{endpoint:Z,data:N,navigationType:S,tempData:u,isMiniplayer:T,isForwardHistoryNavigation:W==null?void 0:W.forward}),_.xP();L.pageFetcher.JSC$14565_chunkHandler=void 0;return FfO(L,Z,N,S,u,T)};
FfO=function(L,Z,N,S,u,T){T=T===void 0?!1:T;L.isMiniplayerExpansion=T;var W=S===2;L.currentEndpoint=Z;L.numNavigations++;L.numNavigations&&(P7G.navigationCount=L.numNavigations);_.Qc("NUM_NAV",L.numNavigations);var V=DSI(L,Z,N);if(V)return GrN(L,Z,V,"102",loq(N)),_.$N(V);var M,G,D,l;V=N.rootVe||(N==null?void 0:(M=N.response)==null?void 0:(G=M.responseContext)==null?void 0:(D=G.webResponseContextExtensionData)==null?void 0:(l=D.ytConfigData)==null?void 0:l.rootVisualElementType);!W&&N&&vHV(L,N);var v,
R;M=N==null?void 0:(v=N.response)==null?void 0:(R=v.responseContext)==null?void 0:R.maxAgeSeconds;if(!W&&!isNaN(M)){var K;_.c("kevlar_use_response_ttl_to_invalidate_cache")?K=(0,_.GT)()+1E3*M:_.c("kevlar_always_invalidate_cache")&&(K=0);isNaN(K)||(N.expirationTime=K)}_.pm(_.ff).prefetchCache_.clear();W||N.page!=="watch"||N.type!=="reduced"&&S!==1?S=$SO(L,N,W,!!T,Z,u):(L.publishPageData(N),S=_.xP());u=S.then(function(){var U=T7(Z);U={endpoint:Z,pageType:U,fromHistory:W,response:N};U.navigationDoneMs=
_.Rq("nd");L.fireEvent("yt-navigate-finish",U);var d;(d=_.GR().resolve(_.gv(_.uV5)))==null||d.publish("navigation-end")});
N.csn&&V&&N.clientSideGrafts&&S.then(L.attachClientSideGrafts.bind(L,N,_.oH()));return u};
_.t=eG.prototype;_.t.attachClientSideGrafts=function(L,Z){L.clientSideGrafts&&Z&&L.clientSideGrafts.forEach(function(N){if(Z&&N){var S=_.Mg(N);_.c("combine_ve_grafts")?_.tC().graftServerVe(N,Z):_.ez(L.csn,Z,S)}})};
_.t.handleSignalActionHistoryBack=function(){window.history.back()};
_.t.handleSignalActionCloseWindow=function(){window.close()};
_.t.handleSignalActionReloadPage=function(){this.reload()};
_.t.handleSignalActionSoftReloadPage=function(){MaY(this)};
_.t.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.t.fireEvent=function(L,Z){L=new CustomEvent(L,{bubbles:!0,cancelable:!1,composed:!0,detail:Z});this.dispatchEvent(L)};
_.t.addEventListener=function(L,Z){this.JSC$14588_clientRoot.addEventListener(L,Z)};
_.t.dispatchEvent=function(L){return this.JSC$14588_clientRoot.dispatchEvent(L)};
_.t.removeEventListener=function(L,Z){this.JSC$14588_clientRoot.removeEventListener(L,Z)};
eG[F2]=[tvs,_.ku];_.iaP=new Jy("browse","h8y2qb");_.u_1=new Jy("search","JzFVk");_.TbL=new Jy("shorts","xwEKAe");_.t0h=new Jy("watchFixie","nmfa2d");_.Oa1=new Jy("watchFlexy","CF909");_.WTw=new Jy("watchGrid","Tm0L3c");_.V0f=new Jy("watchLearningJourney","L3n37");var Rgt;var col=function(){return _.e.apply(this,arguments)||this};
_.f(col,_.e);_.gd.Object.defineProperties(col,{template:{configurable:!0,enumerable:!0,get:function(){if(Rgt===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);Rgt=L}L=Rgt;return L}}});
_.r([_.y(cnL.YtPlayerBehavior),_.Q("design:type",Object)],col.prototype,"ytPlayerBehavior",void 0);_.r([_.P({is:"ytd-player"})],col);var nHt;var KfQ;var fos;var I2=function(){var L=_.e.apply(this,arguments)||this;L.forceModernIconButton=!1;L.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return L};
_.f(I2,_.e);I2.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]]"}}}}}};
I2.prototype.handleAccountLinkingStateChangedCommand=function(L){if(L=_.n(L,Nfs)){var Z,N=(Z=this.data)==null?void 0:Z.providerKey;Z=L.providerKey;N&&Z&&N.id===Z.id&&N.subject===Z.subject&&(L=L.linked,L!==void 0&&(this.set("data.linked",L),this.notifyPath("data.linked"),_.c("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(L)))}};
I2.prototype.setPlayerAccountLinkState=function(L){var Z=new ljh;v3s(Z,$UQ(new Fiq,L));var N=_.CV();N&&N.getPlayerPromise().then(function(S){S.setAccountLinkState(_.jY(Z.JSC$12323_serializeBinary(),4));S.updateAccountLinkingConfig(L)})};
I2.prototype.handleShowAccountLinkDialog=function(){var L=this.get("button.buttonRenderer.command");L&&_.Lq([L],this.hostElement)};
_.gd.Object.defineProperties(I2.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}}}});
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],I2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],I2.prototype,"ytRendererBehavior",void 0);_.r([_.y([_.nK.YtActionHandlerBehavior]),_.Q("design:type",Object)],I2.prototype,"actionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],I2.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],I2.prototype,"overrides",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],I2.prototype,"forceModernIconButton",void 0);_.r([_.Y({value:"bottom"}),_.Q("design:type",String)],I2.prototype,"buttonTooltipPosition",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],I2.prototype,"forceIconButton",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],I2.prototype,"disableTextTransform",void 0);
_.r([_.w("data","data.linked","data.isWarning"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],I2.prototype,"button",null);_.r([_.P({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],I2);
_.m(I2,"ytd-account-link-button-renderer",function(){if(fos!==void 0)return fos;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return fos=L},{mode:1});var krl;var yo0=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],dX=function(){return _.e.apply(this,arguments)||this};
_.f(dX,_.e);dX.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
dX.prototype.updateButtonActiveState=function(){var L=this,Z=!!yo0.find(function(N){return L.currentState===N});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.c("enable_web_delhi_icons")&&(Z=!1);this.button&&(this.button.isPressed=Z)};
_.gd.Object.defineProperties(dX.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.playlistLoopStateEntity)==null?void 0:L.state)||((Z=this.data)==null?void 0:Z.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var L=void 0,Z;if(this.currentState&&((Z=this.data)==null?0:Z.states)){Z=_.O(this.data.states);for(var N=Z.next();!N.done;N=Z.next()){N=_.n(N.value,_.vaL);var S=void 0;if(((S=N)==null?void 0:S.state)===this.currentState){L=N;break}}}return L}}});
dX.prototype.updateButtonActiveState=dX.prototype.updateButtonActiveState;_.r([_.y(_.CD),_.Q("design:type",Object)],dX.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],dX.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Y({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.hy.playlistLoopStateEntitySelector}),_.Q("design:type",Object)],dX.prototype,"playlistLoopStateEntity",void 0);_.r([_.Y(),_.Q("design:type",Object)],dX.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],dX.prototype,"forceIconOnly",void 0);_.r([_.TX("ytd-button-renderer"),_.Q("design:type",_.bo)],dX.prototype,"button",void 0);
_.r([_.w("data","playlistLoopStateEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dX.prototype,"currentState",null);_.r([_.iA("currentButtonStateRenderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dX.prototype,"updateButtonActiveState",null);_.r([_.w("currentState"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dX.prototype,"currentButtonStateRenderer",null);
_.r([_.P({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],dX);
_.m(dX,"ytd-playlist-loop-button-renderer",function(){if(krl!==void 0)return krl;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return krl=L},
{mode:1});var wjQ;var USh=_.iB("DOWNLOAD",{},"Download"),Yat=_.iB("DOWNLOADING",{},"Downloading"),egN=_.iB("DOWNLOADED",{},"Downloaded"),IoV=_.iB("RETRY",{},"Retry"),a2=function(){var L=_.e.apply(this,arguments)||this;L.forceIconButton=!1;L.forceIconOnly=!1;L.overrides=!1;L.buttonTooltipPosition=!1;L.styleActionButton=!1;L.disableTextTransform=!1;L.downloadProgress=0;L.isDownloadComplete=!1;L.isHidden=!0;L.transferState="TRANSFER_STATE_UNKNOWN";L.isVideoDeletedByUser=!1;L.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return L};
_.f(a2,_.e);_.t=a2.prototype;_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.dataChanged=function(){var L;(L=this.data)!=null&&L.text||(L=_.Kk(_.Pv().getState(),this.videoId),this.updateButtonState(L))};
_.t.computeVideoId=function(L){return L};
_.t.computePlayerStateEntityKey=function(L){return L};
_.t.showHideButton=function(){this.updateButtonVisibility()};
_.t.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var L;((L=this.playerStateEntity)==null?void 0:L.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};
_.t.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.t.updateButtonState=function(L){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==Yat||!_.Wv(L))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(L){case "TRANSFER_STATE_UNKNOWN":L=USh;var Z="OFFLINE_DOWNLOAD";var N="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":L=IoV;Z="OFFLINE_DOWNLOAD";N="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":L=egN;Z="OFFLINE_PIN";N="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":L=
Yat;Z="OFFLINE_DOWNLOADING_ZERO";N="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":L=IoV;Z="OFFLINE_DOWNLOAD";N="ACTION_RETRY";break;default:L=USh,Z="OFFLINE_DOWNLOAD",N="ACTION_ADD"}this.isVideoDeletedByUser&&(L=USh,Z="OFFLINE_DOWNLOAD",N="ACTION_ADD");var S=Object.assign({},this.data);S.text=_.s9(L);S.tooltip=L;S.icon={iconType:Z};S.size="SIZE_DEFAULT";S.style="STYLE_DEFAULT";_.n(S.command,_.uj)&&(_.n(S.command,_.uj).action=N);this.set("data",S)}};
_.t.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var L="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?L="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?L="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?L="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?L="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?L="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(L="OFFLINE_PIN",this.isDownloadComplete=!0);var Z;L!==((Z=this.data.icon)==null?void 0:Z.iconType)&&(Z=Object.assign({},this.data),Z.text=_.s9(Yat),Z.tooltip=Yat,Z.icon={iconType:L},_.n(Z.command,_.uj)&&(_.n(Z.command,_.uj).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",Z))}};
a2.prototype.updateProgress=a2.prototype.updateProgress;a2.prototype.onTransferStateChanged=a2.prototype.onTransferStateChanged;a2.prototype.showHideButton=a2.prototype.showHideButton;a2.prototype.dataChanged=a2.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],a2.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],a2.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],a2.prototype,"forceIconButton",void 0);
_.r([_.Y(),_.Q("design:type",Object)],a2.prototype,"forceIconOnly",void 0);_.r([_.Y(),_.Q("design:type",Object)],a2.prototype,"overrides",void 0);_.r([_.Y(),_.Q("design:type",Object)],a2.prototype,"buttonTooltipPosition",void 0);_.r([_.Y(),_.Q("design:type",Object)],a2.prototype,"styleActionButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],a2.prototype,"disableTextTransform",void 0);
_.r([_.Y({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.Q("design:type",String)],a2.prototype,"videoId",void 0);_.r([_.Y({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.Q("design:type",String)],a2.prototype,"playerStateEntityKey",void 0);_.r([_.Y(),_.Q("design:type",Object)],a2.prototype,"data",void 0);_.r([_.Y({selector:kQ,selectorArgs:["videoId"]}),_.Q("design:type",Object)],a2.prototype,"downloadProgress",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],a2.prototype,"isDownloadComplete",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],a2.prototype,"isHidden",void 0);_.r([_.Y({selector:_.Kk,selectorArgs:["videoId"]}),_.Q("design:type",String)],a2.prototype,"transferState",void 0);_.r([_.Y({selector:_.xN1,selectorArgs:["videoId"]}),_.Q("design:type",Object)],a2.prototype,"isVideoDeletedByUser",void 0);
_.r([_.Y({selector:ryF,selectorArgs:["videoId"]}),_.Q("design:type",Object)],a2.prototype,"offlineabilityState",void 0);_.r([_.Y({selector:_.LV,selectorArgs:["playerStateEntityKey"]}),_.Q("design:type",Object)],a2.prototype,"playerStateEntity",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],a2.prototype,"showTooltips",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],a2.prototype,"sendCommandWhenDisabled",void 0);
_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],a2.prototype,"disabled",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],a2.prototype,"dataChanged",null);_.r([_.Vr("offlineabilityState","playerStateEntity"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],a2.prototype,"showHideButton",null);
_.r([_.Vr("transferState","isVideoDeletedByUser"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],a2.prototype,"onTransferStateChanged",null);_.r([_.Vr("downloadProgress"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],a2.prototype,"updateProgress",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],a2);
_.m(a2,"ytd-download-button-renderer",function(){if(wjQ!==void 0)return wjQ;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return wjQ=L},{mode:2});var dS0;var aot,hgM=function(){if(aot!==void 0)return aot;var L=document.createElement("template");_.k(L,'\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 aot=L};var skY=_.c("web_button_rework")&&_.Ah("BUTTON_REWORK")||_.c("web_button_rework_with_live"),jkh=_.lQ("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,hl=function(){var L=_.e.apply(this,arguments)||this;L.isPressed=!1;L.forceIconButton=!1;L.forceIconOnly=!1;L.forceModernIconButton=!1;L.alignByText=!1;L.isShorts=!1;L.animatedText=!1;L.shouldAnimate=!1;L.JSC$14626_browserSupportsAnimation=_.c("web_supports_animations_api");L.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};L.onTap=function(){var Z;if((Z=L.data)==null||!Z.defaultNavigationEndpoint){var N;Z=!((N=L.data)==null?0:N.isToggled);var S;if((S=L.data)==null||!S.preventAutoToggle){L.shouldAnimate=!1;L.disableTextUpdateJobId&&_.ro.cancelJob(L.disableTextUpdateJobId);L.disableTextUpdateJobId=_.ro.addLowPriorityJob(function(){L.disableTextUpdateJobId=void 0},jkh);
var u;L.set("data.isToggled",!((u=L.data)==null?0:u.isToggled));N=L.getInnertubeIcon();S={toggled:Z,actions:{}};N&&(S.actions[N.toLowerCase()]=Z);_.QT(L.hostElement,"yt-toggle-button",S)}}};
return L};
_.f(hl,_.e);_.t=hl.prototype;_.t.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.ro.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.toggle=function(L){var Z;this.set("data.isToggled",L!==void 0?L:!((Z=this.data)==null?0:Z.isToggled))};
_.t.handleUpdateToggleButtonStateCommand=function(L){if(this.data){L=_.n(L,VQl);var Z,N,S,u=(Z=this.data)==null?void 0:(N=Z.toggleButtonSupportedData)==null?void 0:(S=N.toggleButtonIdData)==null?void 0:S.id;u&&L&&u===(L==null?void 0:L.buttonId)&&this.set("data.isToggled",L.toggled)}};
_.t.handleUpdateToggleButtonTextAction=function(L){if(this.data){L=_.n(L,YlY);var Z,N,S,u=(Z=this.data)==null?void 0:(N=Z.toggleButtonSupportedData)==null?void 0:(S=N.toggleButtonIdData)==null?void 0:S.id;u&&L&&u===(L==null?void 0:L.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=L.defaultNumericalValue,this.set("data.defaultText",L.defaultText),this.set("data.toggledText",L.toggledText),this.shouldAnimate=!1)}};
_.t.getInnertubeIcon=function(){var L=this.data;if(L){var Z,N,S=((Z=L.defaultIcon)==null?0:Z.iconType)?(N=L.defaultIcon)==null?void 0:N.iconType:null,u,T;Z=((u=L.toggledIcon)==null?0:u.iconType)?(T=L.toggledIcon)==null?void 0:T.iconType:S;return L.isToggled?Z:S}};
_.t.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.gd.Object.defineProperties(hl.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var L={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$14626_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var Z=L.renderer;var N=L.element;var S=L.toggled;var u=L.onTapCallback;var T=L.commandClientArgs;var W=L.overrides;var V=L.forceIcon;var M=L.forceModernIconButton;var G=L.forceDisabled;var D=L.useAnimatedText;var l=L.animatedTextProps;L=aEG(Z,S);V=!Z.defaultIcon||!V&&Z.defaultText?Z.defaultIcon?"leading":void 0:M?"icon-only":"icon-only-40";V==="icon-only-40"&&(L.type="text");var v;M=Object;var R=M.assign,K;a:switch((K=
Z.style)==null?void 0:K.styleType){case "STYLE_COMPACT_GRAY":K={size:"S"};break a;default:K={size:"M"}}var U=!!S;var d=(d=S&&Z.toggledText||Z.defaultText)?_.oX(d):void 0;D?(D=_.jM(S&&Z.toggledText||Z.defaultText))&&l&&!isNaN(Number(l.numberValue))?(l.numberText=D,S&&(l.numberValue+=1),D=l):D=void 0:D=void 0;var h,E,A,J;var C=(l=((E=S?Z.toggledAccessibilityData||((C=Z.toggledText)==null?void 0:C.accessibility):Z.accessibilityData||((h=Z.defaultText)==null?void 0:h.accessibility))==null?void 0:(A=E.accessibilityData)==
null?void 0:A.label)||((J=Z.accessibility)==null?void 0:J.label))?l:_.jM(S&&Z.toggledText||Z.defaultText);G=G===void 0?Z.isDisabled:G;N=dyL(Z,S,u,N,T);S=IEA(Z,S);S!=null&&S.length?(S=_.kN({innertubeCommand:o8H(S),forceNewState:!0}),S=yV(S)?S:void 0):S=void 0;Z=R.call(M,{},L,K,{iconPosition:V},W,{focused:!1,toggled:U,toggleable:!0,formattedButtonText:d,animatedTextProps:D,accessibilityLabel:C,disabled:G,onTap:N,aTagConfig:S},rM0((v=Z.colorData)==null?void 0:v.basicColorPaletteData));Z.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(Z.type="filled");return Z}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var L=this.getInnertubeIcon();if(L)return _.Bh(L)}}});
hl.prototype.resetAnimation=hl.prototype.resetAnimation;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],hl.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],hl.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],hl.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],hl.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Object)],hl.prototype,"isPressed",void 0);_.r([_.Y(),_.Q("design:type",Object)],hl.prototype,"forceIconButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],hl.prototype,"forceIconOnly",void 0);_.r([_.Y(),_.Q("design:type",Object)],hl.prototype,"forceModernIconButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],hl.prototype,"alignByText",void 0);_.r([_.Y(),_.Q("design:type",Object)],hl.prototype,"overrides",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],hl.prototype,"disabled",void 0);_.r([_.Y(),_.Q("design:type",Object)],hl.prototype,"isShorts",void 0);_.r([_.Y(),_.Q("design:type",Object)],hl.prototype,"buttonTooltipPosition",void 0);_.r([_.Y(),_.Q("design:type",Object)],hl.prototype,"animatedText",void 0);_.r([_.Y(),_.Q("design:type",String)],hl.prototype,"textNumberValue",void 0);_.r([_.Y({computed:"computeTooltip(data, data.isToggled)"}),_.Q("design:type",Object)],hl.prototype,"tooltip",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hl.prototype,"resetAnimation",null);_.r([_.w("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],hl.prototype,"computedButtonShape",null);_.r([_.w("data.*"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],hl.prototype,"computedIcon",null);
_.r([_.P({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],hl);skY&&_.m(hl,"ytd-toggle-button-renderer",hgM,{mode:_.Qr("kevlar_poly_si_batch_j081")?1:2});var EHh=_.p(function(L){function Z(G){var D;return _.b(function(l){if(l.nextAddress==1)return(D=!sCw(G,V())||!V().enabled)?l.jumpTo(2):l.yield(zW0(),3);l.nextAddress!=2&&(D=l.yieldResult);if(D)return l.return();N();setTimeout(function(){W(!1)},1500);
_.w7(l)})}
function N(){setTimeout(function(){W(!0);var G;(G=S.lottieEl)==null||G.goToAndPlay(0)},150)}
var S=_.SC(),u=_.O(_.nh(!1,void 0,"UfUosc")),T=u.next().value,W=u.next().value,V=_.jA(L.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.m0(function(){var G,D;((G=L.settings)==null?void 0:(D=G.call(L))==null?void 0:D.uniqueId)==="this is not intended behavior"&&_.Q7(new _.sr("Smartimation Settings is undefined"))});
_.ph(function(){V().experimentEnabled&&(V().enabled?jCw(Z):(W(!1),EcA(Z)),_.zs(function(){EcA(Z)}))},"IHhVmc");
_.ph(function(){V().timings.join("");V().experimentEnabled&&(PSt(V()),_.zs(function(){pmw(V())}))},"fsfhOe");
var M=_.wJ(function(){var G=S,D=V().uniqueId+"-border",l,v;var R="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((v=(l=_.GR().resolve(_.gv(_.d$)))==null?void 0:l())!=null&&v?"dark":"light")+"_v2.json";return{animationRef:G,animationConfig:{name:D,autoplay:!1,loop:!1,path:R}}},void 0,"UWvUGe");
u={};return _.g("yt-smartimation",{class:_.qg(L.className,"smartimation",(u["smartimation--experiment-enabled"]=function(){return V().experimentEnabled},u["smartimation--active-border"]=T,u["smartimation--enable-masking"]=myA(),u))},_.g(_.F,{cond:function(){return V().experimentEnabled},
then:function(){return _.g("div",{class:"smartimation__border"},_.g(_.KK,{className:"smartimation__border-gradient",data:M,animationName:function(){return M().animationConfig.name}}))}}),_.g("div",{class:"smartimation__content"},L.children))},"ga");
EHh.idomCompat=!0;_.CY(EHh,"yt-smartimation",{props:{className:_.LK,settings:_.LK}});var sB=function(){var L=_.e.apply(this,arguments)||this;L.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};L.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};L.shouldEnableSmartimation=!1;return L};
_.f(sB,_.e);sB.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
sB.prototype.onDataChanged=function(){var L,Z;this.shouldEnableSmartimation=(((L=this.data)==null?void 0:(Z=L.timedAnimationData)==null?void 0:Z.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
sB.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var L=_.n(this.data.likeButton,_.qf),Z=_.n(this.data.dislikeButton,_.qf);return!!((L==null?0:L.isToggled)||(Z==null?0:Z.isToggled))};
sB.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]]"}}}}}};
_.gd.Object.defineProperties(sB.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=((L=this.data)==null?void 0:(Z=L.timedAnimationData)==null?void 0:Z.animationTiming)||[];return{uniqueId:"like-dislike",timings:N,enabled:this.shouldEnableSmartimation,experimentEnabled:N.length>0}}}});
sB.prototype.onDataChanged=sB.prototype.onDataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],sB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],sB.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],sB.prototype,"likeButtonOverride",void 0);_.r([_.Y(),_.Q("design:type",Object)],sB.prototype,"dislikeButtonOverride",void 0);
_.r([_.w("shouldEnableSmartimation"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],sB.prototype,"smartimationSettings",null);_.r([_.iA("data"),_.SA("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sB.prototype,"onDataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],sB);
_.m(sB,"ytd-segmented-like-dislike-button-renderer",function(){if(dS0!==void 0)return dS0;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return dS0=L},{mode:1});var PfL;var pjl;(pjl=document.body)==null||pjl.setAttribute("rounded-container","");var zgL={};zgL.YtToggleButtonBehavior=[_.nK.YtActionHandlerBehavior,YX.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 L=this.data.isToggled;if(!this.isModal_(L)){if(!this.data.preventAutoToggle){this.toggle();var Z={toggled:this.data.isToggled,actions:{}};Z.actions[this.buttonIcon]=this.data.isToggled;_.QT(this.hostElement,"yt-toggle-button",Z)}Z=this.data.defaultServiceEndpoint||null;var N=this.data.toggledServiceEndpoint||null;if(Z&&N||Z&&this.data.preventAutoToggle)L=L?N:Z,Z=this.disableCommandHandlerOverride,_.c("killswitch_toggle_button_behavior_resolve_command")||Z?_.H2(this.hostElement,
[L]):_.LY(L,this.hostElement),_.QT(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:L})}},
stateChanged_:function(){var L=this.data;if(L){var Z=L.isToggled;this._setEndpoint(this.computeEndpoint_(L));this._setServiceEndpoint(this.computeServiceEndpoint_(L));this._setButtonIcon(this.computeButtonIcon_(L,Z));this._setButtonText(this.computeButtonText_(L,Z));this._setButtonAccessibility(this.computeAccessibility_(L,Z));this._setButtonTooltip(this.computeTooltip_(L,Z));this._setButtonClass(this.computeButtonClass_(L,Z));this._setIconPositionType(this.computeIconPositionType_(L));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=Z):this.elements_.button.setAttribute("aria-pressed",Z));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=Z)}},
shouldSetIconActiveState_:function(){return _.c("kevlar_system_icons")},
toggle:function(L){this.set("data.isToggled",L!==void 0?L:!this.data.isToggled);_.c("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(L){if(L){var Z,N;return!!((Z=this.data)==null?0:(N=Z.toggledServiceEndpoint)==null?0:N.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(L){return L&&L.defaultNavigationEndpoint||null},
computeButtonIcon_:function(L,Z){var N=L&&L.defaultIcon?_.Bh(L.defaultIcon.iconType):null;L=L&&L.toggledIcon?_.Bh(L.toggledIcon.iconType):N;return Z?L:N},
handleUpdateToggleButtonStateCommand_:function(L){L=L.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==L.buttonId&&this.toggle(L.toggled)},
computeButtonText_:function(L,Z){return L?Z&&L.toggledText||L.defaultText||null:null},
computeAccessibility_:function(L,Z){return L?(Z?this.get("toggledAccessibilityData.accessibilityData",L):this.get("accessibilityData.accessibilityData",L))||L.accessibility||null:null},
computeTooltip_:function(L,Z){return L?Z&&L.toggledTooltip||L.defaultTooltip||null:null},
computeButtonClass_:function(L,Z){if(!L)return"";var N="",S=L.toggledStyle||L.style;if(Z=Z?S:L.style){Z.styleType&&(Z=Z.styleType);try{N+=Z.toLowerCase().replace(/_/g,"-")+" "}catch(u){_.Xv(u,Z,typeof Z),_.Q7(u)}}if(L=L.size){L.sizeType&&(L=L.sizeType);try{N+=L.toLowerCase().replace(/_/g,"-")+" "}catch(u){_.Xv(u,L,typeof L),_.Q7(u)}}return N.trim()},
computeIconPositionType_:function(L){return L&&L.iconPosition||null},
computeServiceEndpoint_:function(L){var Z=L&&L.serviceEndpoint,N=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return Z?Z:N&&L.command?L.command:null},
handleUpdateToggleButtonTextAction_:function(L){L=L.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==L.buttonId&&(this.set("data.defaultText",L.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",L.toggledText),this.notifyPath("data.toggledText"))}}];_.l4("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var mSI=_.c("web_button_rework")&&_.Ah("BUTTON_REWORK")||_.c("web_button_rework_with_live"),jG=function(){var L=_.e.apply(this,arguments)||this;L.systemIcons=_.c("kevlar_system_icons");L.roundedContainer=!0;return L};
_.f(jG,_.e);jG.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
jG.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var L=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var Z={toggled:!!this.data.isToggled,actions:{}};Z.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var N,S;Z.actions.playlistId=(N=this.data.defaultServiceEndpoint)==null?void 0:(S=N.playlistEditEndpoint)==null?void 0:S.playlistId;_.QT(this.hostElement,"yt-toggle-button",Z)}(L=L?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(L)}};
jG.prototype.onYtNavigate=function(L){var Z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(L.detail.endpoint);Z&&(L.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(Z))};
_.gd.Object.defineProperties(jG,{template:{configurable:!0,enumerable:!0,get:function(){if(PfL===void 0){var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);PfL=L}L=PfL;return L}}});
jG.prototype.onYtNavigate=jG.prototype.onYtNavigate;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],jG.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.W0),_.Q("design:type",Object)],jG.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.y(zgL.YtToggleButtonBehavior),_.Q("design:type",Object)],jG.prototype,"ytToggleButtonBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],jG.prototype,"data",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],jG.prototype,"showTooltips",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],jG.prototype,"systemIcons",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],jG.prototype,"roundedContainer",void 0);_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],jG.prototype,"onYtNavigate",null);
_.r([_.P({is:"ytd-toggle-button-renderer",disableElementRegistration:mSI})],jG);var JoN,CfN;_.EB=new _.iY("PANEL_CONTROLLER_TOKEN");_.Po=new _.iY("SHEET_CONTROLLER_TOKEN");_.pb=new _.iY("DIALOG_CONTROLLER_TOKEN");JoN=new _.iY("DIALOG_CONTAINER_TOKEN");CfN=new _.iY("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.zz=new _.iY("PERSISTENT_PANEL_CONTROLLER_TOKEN");var xyF=_.iB("DOWNLOAD",{},"Download"),qu_=_.iB("DOWNLOADING",{},"Downloading"),LDs=_.iB("DOWNLOADED",{},"Downloaded"),ZE0=_.iB("RETRY",{},"Retry");var ro5=_.p(function(L){var Z=TWt,N=function(){return""},S=NWw(L.data),u=S1A(L.data),T=iEF(L.data),W=uFt(L.data);
Z=function(){var V=L.data(),M=Hr_(V,S(),u(),T(),W()),G=!!V.videoId,D=M.text;return{title:G?D:void 0,tooltip:G?void 0:D,accessibilityText:D,onTap:M.onTap,iconName:M.iconType,style:V.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:M.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:V.buttonSize}};
N={};N=_.qg("ytDownloadButtonViewModelHost",(N.ytDownloadButtonViewModelIsHidden=function(){var V=L.data(),M=W();return V.playlistId||M()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||M()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},N));
return _.g("download-button-view-model",{class:N},_.g(_.$X,{data:Z}))},"ha");
ro5.idomCompat=!0;var FDB=new _.iY("SUBMIT_API_SERVICE_TOKEN");var M$s,gmt,$sF={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var ds_=new _.iY("RENDERER_LOGGER_TOKEN");var Ush=new _.iY("RENDERER_STAMPER_OPTIONS_TOKEN");var lVG;_.Vm=new OmL;lVG=new Map;var Y1f="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),IVG=["notificationTextRenderer","notificationMultiActionRenderer"],
ew1="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),wP0=vmx(function(L){return _.JW(L==null?void 0:L.targetId)}).useUpdatableData;var ynP=0;_.bj.debugName="EjJbCe";var QkV=_.p(function(L){var Z=L.data;L=L.className;_.zp(function(){Z().formId||_.CA(Error("Ch"))});
var N=_.bE0(function(){return Z().formId},function(){return Z().beforeSubmitCommand},function(){return Z().afterSubmitCommand}),S=N.submitForm,u=N.isValid,T=N.isSubmitting,W=function(){return{state:Z().isDisabled||!u()||T()?"disabled":"active"}};
return _.g("yt-submit-button-view-model",{class:_.qg("ytSubmitButtonViewModelHost",L)},_.g(_.bj,{data:function(){return Z().button}},{buttonViewModel:function(V){return _.g(_.$X,{data:V.data,
buttonOverrides:W,onClick:S})}}))},"ka");var Ao0=_.p(function(L){var Z=L.backgroundLottieRef;var N=L.foregroundLottieRef;var S=L.children;var u=L.wrapperClass;var T=L.disableAnimation;L=function(){return(_.c("web_animated_actions")||_.c("web_animated_actions_v2"))&&!(T==null?0:T())};
return _.g("yt-animated-action",{class:_.qg("ytAnimatedActionHost",u)},_.g("div",{class:"ytAnimatedActionContentWithBackground"},_.g(_.F,{cond:L,then:function(){return _.g(Xjt,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:Z==null?void 0:Z(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(aVA()?"dark":"light")+"_v5.json"}}}})}}),S),_.g(_.F,{cond:L,
then:function(){return _.g(Xjt,{lottiePlayerProps:function(){return{animationRef:N==null?void 0:N(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(aVA()?"dark":"light")+"_v4.json"}}}})}}))},"la");
Ao0.idomCompat=!0;var Xjt=_.p(function(L){var Z=L.wrapperClass;var N=L.lottieClass;var S=L.lottiePlayerProps;return _.g("div",{class:_.qg("ytAnimatedActionLottie",Z),"aria-hidden":"true"},_.g(_.KK,{className:N,data:S,animationName:function(){return S().animationConfig.name}}))},"ma");var hwG={isOpen:!1};var jox={isAllowed:!1};var PE1={errorMessage:"",title:"",privacy:"",isDisabled:!0};var zwA={isOpen:!1};var Jnh={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var Hgl={response:void 0};var rnG=function(L,Z){L=L===void 0?Hgl:L;switch(Z.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},L,{response:Z.payload});default:return L}};var BtI={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var QoA=function(L,Z){L=L===void 0?BtI:L;switch(Z.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},L,{nextDisabled:Z.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},L,{nextCommand:Z.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},L,{footerSubmissionData:Z.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},L,{isImpersonationValid:Z.payload});default:return L}};var xSt={reportFormData:void 0,reportDetailsFormData:void 0};var XPx=function(L,Z){L=L===void 0?xSt:L;switch(Z.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},L,{reportFormData:Z.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},L,{reportDetailsFormData:Z.payload});default:return L}};var qat=void 0;_.c("mweb_enable_redux_store_on_demand")||(qat=new E9(An_()));var mj=_.c("enable_web_delhi_icons");var LrN=_.p(function(L){L=_.Ek(L,{themeOverride:void 0,animationRef:{}});var Z=L.animatedIconType,N=L.active,S=L.themeOverride,u=L.animationRef;L=L.staticIconFn;var T=_.O(_.nh(void 0,void 0,"l48agc")),W=T.next().value,V=T.next().value,M=function(){a:{var d=Z();var h=S==null?void 0:S();var E;h=(h==null?void 0:h.useDarkTheme)||((E=_.GR().resolve(_.gv(_.d$)))==null?void 0:E());switch(d){case "LIKE":qat||(qat=new E9(An_()));d=(d=cXF(qat.getState()))&&d.animationLightUrl&&d.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:h?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:h?d.animationDarkUrl:d.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(d){h=d;break a}h="animated_like_icon_"+(h?"dark":"light")+"_"+(mj?"v5":"v4");h={lottiePlayerProps:{animationConfig:{name:h,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+h+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(mj?" animated-like-icon-delhi":"")}}},totalFrames:mj?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":h={lottiePlayerProps:{animationConfig:{name:h?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(h?"dark":"light")+(mj?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(mj?" animated-subscribe-icon-delhi":"")}}},totalFrames:mj?120:79,lazyLoad:!1};break a}h=
void 0}return h},G=function(){var d,h;
return(h=(d=M())==null?void 0:d.lottiePlayerProps.animationConfig.name)!=null?h:""},D=function(){if(M()){var d=M().lottiePlayerProps.animationConfig.path;
return F6.get(d)||W()}};
T=_.O(_.nh(!1,void 0,"sDrGId"));var l=T.next().value;T=T.next().value;var v=BW_(T),R=function(){var d=M(),h,E,A;return(A=d==null?void 0:(h=d.lottiePlayerProps.animationConfig)==null?void 0:(E=h.rendererSettings)==null?void 0:E.className)!=null?A:""},K=void 0,U=void 0;
_.ph(function(){var d=M(),h=G(),E=D(),A=l(),J=N();if(d&&(U!==h&&(U=h,K=J,h=u(),v.animationConfig=d.lottiePlayerProps.animationConfig,v.animationRef=h,E&&(v.animationConfig.animationData=E,v.animationConfig.path=void 0),h=d.lottiePlayerProps.animationConfig.path,!F6.get(h)&&d.lazyLoad&&h&&HE_(h,V)),!(A||d.lazyLoad&&!E))){if(E=!u().lottieEl)J?(A=d.totalFrames,v.animationConfig.initialSegment=[A-1,A]):v.animationConfig.initialSegment=void 0;if(K!==J&&!E)if(E=u(),J){var C;(C=E.lottieEl)==null||C.playSegments([0,
d.totalFrames],!0)}else{var X;(X=E.lottieEl)==null||X.playSegments([0,1],!0)}K=J}},"RQVZ1d");
return _.g("animated-icon",{class:"ytAnimatedIconHost"},_.g(_.F,{cond:function(){var d,h;return!((d=M())==null||!d.lottiePlayerProps.animationConfig.path||((h=M())==null?0:h.lazyLoad)&&!D()||l())},
then:function(){return _.g(_.KK,{data:v,animationName:G,className:R,animationRef:u})},
else:L}))},"oa");_.Jl=_.p(function(L){var Z=_.t2("yt-subscribe-button-view-model"),N=_.t2("div"),S=_.t2("div"),u=_.SC(),T=_.SC(),W=_.SC(),V=_.OS(ZgA,function(){return L.data().stateEntityStoreKey}),M=_.OS(NtA,function(){var ZN,GV;
return(GV=(ZN=L.data().notificationStateEntityStoreKeys)==null?void 0:ZN.subsNotificationStateKey)!=null?GV:""}),G=function(){return!L.data().enableSubscribeButtonPostClickAnimation},D=_.O(_.nh(0,void 0,"YtsSKb")),l=D.next().value,v=D.next().value;
D=_.O(_.nh(0,void 0,"V6JxRe"));var R=D.next().value,K=D.next().value;D=_.O(_.nh(!1,void 0,"JUCSZ"));var U=D.next().value,d=D.next().value;D=_.O(_.nh(!1,void 0,"oV6jwf"));var h=D.next().value,E=D.next().value;D=_.O(_.nh(!1,void 0,"hK1Whe"));var A=D.next().value,J=D.next().value,C;D=_.O(_.nh(!1,void 0,"Asaolf"));var X=D.next().value,L1=D.next().value,Fw=function(){E(!0);_.Gq(_.ro,function(){E(!1)},1500)};
_.ph(function(){var ZN=h();_.cE(function(){ZN&&!G()&&V()&&$SF(u,T,W)})},"Qq6Hsf");
_.ph(function(){var ZN=V();_.cE(function(){if(!G()&&ZN){var GV;((GV=L.animateWidth)==null?0:GV.call(L))&&FfF(Z.value,!!ZN.subscribed,l(),R());var IO,d5;((IO=C)==null?0:IO.subscribed)||!ZN.subscribed||ZN.key!==((d5=C)==null?void 0:d5.key)||Fw();C=ZN}})},"hog8te");
D=_.wJ(function(){var ZN,GV,IO,d5=L.data(),n8=!((ZN=V())==null||!ZN.subscribed);ZN=!((GV=L.isOverlay)==null||!GV.call(L));GV=U()?Z:void 0;var lq=(IO=M())==null?void 0:IO.state;IO=X();Gr0(d5,lq);return LfH({model:d5,subscribed:n8,isOverlay:ZN,element:GV,notificationState:lq,disableTextEllipsis:!0,focused:IO})},void 0,"hc1PRd");
var GB=function(){var ZN;if(!G()&&((ZN=L.animateWidth)==null?0:ZN.call(L))&&(N==null?0:N.value)&&(S==null?0:S.value)&&!A()){ZN=V();var GV=_.O((ZN==null?0:ZN.subscribed)?[N,S]:[S,N]),IO=GV.next().value;GV=GV.next().value;IO=Math.ceil(IO.value.getBoundingClientRect().width);GV=Math.ceil(GV.value.getBoundingClientRect().width);v(IO);K(GV);FfF(Z.value,!(ZN==null||!ZN.subscribed),IO,GV);J(!0)}},Yt=_.Z9(function(ZN){GB();
var GV=V();GV&&(ZN.detail.endpoint.subscribeEndpoint||ZN.detail.endpoint.unsubscribeEndpoint)&&Vv1(Z.value,!GV.subscribed,GV)}),lH=function(){var ZN=_.GR().resolve(_.gv(_.VG));
ZN&&L1(ZN.isKeyBoardInUse())},RF=function(){L1(!1)};
_.TD("yt-player-subscribe",function(ZN){var GV=V();GV&&ZN===L.data().channelId&&Vv1(Z.value,!0,GV)});
_.TD("yt-player-unsubscribe",function(ZN){var GV=V();GV&&ZN===L.data().channelId&&Vv1(Z.value,!1,GV)});
_.TD("yt-update-subscribe-button-action",function(ZN){ZN=_.n(ZN,Q1Y);var GV=V();GV&&ZN&&ZN.channelId===L.data().channelId&&Vv1(Z.value,!!ZN.subscribed,GV)});
_.m0(function(){Z.value&&(Z.value.addEventListener("focusin",lH),Z.value.addEventListener("focusout",RF));var ZN=_.sI(_.ro,function(){GB()});
d(!0);_.zs(function(){_.ro.cancelJob(ZN);Z.value&&(Z.value.removeEventListener("focusin",lH),Z.value.removeEventListener("focusout",RF))})});
var jf=function(){var ZN,GV,IO;if(IO=!((ZN=V())==null||!ZN.subscribed))ZN=!!L.data().disableNotificationBell,IO=(GV=M())==null?void 0:GV.state,IO=!ZN&&!!IO;return IO},f1=function(){var ZN;
return!((ZN=V())==null?0:ZN.subscribed)},n0=function(){var ZN,GV;
if(GV=f1()){GV=!!L.data().disableNotificationBell;var IO=(ZN=M())==null?void 0:ZN.state;GV=!GV&&!!IO}return GV},r5={},yq={};
return _.g("yt-subscribe-button-view-model",{class:_.qg(L.className,"ytSubscribeButtonViewModelHost",(r5.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var ZN,GV;return!((ZN=V())==null||!ZN.subscribed)&&((GV=L.animateWidth)==null?void 0:GV.call(L))&&h()},r5.ytSubscribeButtonViewModelHostHidden=function(){var ZN;
return!((ZN=V())==null?0:ZN.subscribed)&&L.data().hideWhenUnsubscribed},r5)),
el:Z,"on:yt-service-request-sent":Yt},_.g(Ao0,{backgroundLottieRef:u,foregroundLottieRef:T,wrapperClass:_.qg("ytSubscribeButtonViewModelAnimatedActionWrapper",(yq.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var ZN;return((ZN=L.animateWidth)==null?void 0:ZN.call(L))&&h()},yq.ytSubscribeButtonViewModelStaticWidth=function(){var ZN;
return!((ZN=L.animateWidth)==null?0:ZN.call(L))},yq)),
disableAnimation:G},_.g("div",{el:N,class:"ytSubscribeButtonViewModelContainer"},_.g(_.Ff,{data:D,icon:function(){return _.g(_.F,{cond:jf,then:function(){var ZN=function(){var GV;return Wfh((GV=M())==null?void 0:GV.state)};
return _.g(_.F,{cond:function(){return G()||ZN()!=="NOTIFICATIONS_NONE"},
then:function(){return _.g(_.T0,{icon:ZN})},
else:function(){return _.g(LrN,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:W})}})}})},
secondaryIconName:function(){return jf()?"EXPAND":void 0}}))),_.g("div",{el:S,
class:"ytSubscribeButtonViewModelInvisible"},_.g(_.F,{cond:function(){var ZN;return((ZN=L.animateWidth)==null?void 0:ZN.call(L))&&!G()&&!A()},
then:function(){return _.g(_.Ff,{data:_.wJ(function(){var ZN;return LfH({model:L.data(),subscribed:f1(),isOverlay:!((ZN=L.isOverlay)==null||!ZN.call(L)),element:Z,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var ZN;return n0()?Wfh((ZN=M())==null?void 0:ZN.state):void 0},
secondaryIconName:function(){return n0()?"EXPAND":void 0}})}})))},"ra");
_.Jl.idomCompat=!0;var Z_O=_.p(function(L){var Z=L.data;var N=_.OS(ZgA,function(){return Z().subscriptionStateEntityKey});
return _.g(_.F,{cond:function(){var S=Z(),u=N();return!S.hideWhenUnsubscribed||(u==null?0:u.subscribed)?_.n(Z().button,_.NU):void 0},
then:function(S){return _.g("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.g(_.$X,{data:S,buttonOverrides:function(){return{toggled:!0}}}))}})},"sa");
Z_O.idomCompat=!0;var NNY,Cb;NNY=_.p(function(L){return _.g(_.bj,{data:function(){return L.actionRow().actions}},{buttonViewModel:function(Z){var N=Z.data;
return _.g(Cb,{isRow:L.isRow,isIconOnlyButton:function(){return DSL(N())},
useIntrinsicWidth:L.useIntrinsicWidth},_.g(_.$X,{data:N}))},
subscribeButtonViewModel:function(Z){return _.g(Cb,{isRow:L.isRow},_.g(_.Jl,{data:Z.data,isOverlay:!1,animateWidth:function(){return!L.isRow()}}))},
downloadButtonViewModel:function(Z){var N=Z.data;return _.g(Cb,{isRow:L.isRow,isIconOnlyButton:function(){return!!N().playlistId}},_.g(ro5,{data:N}))},
submitButtonViewModel:function(Z){var N=Z.data;return _.g(Cb,{isRow:L.isRow,isIconOnlyButton:function(){var S=N();return DSL(_.n(S==null?void 0:S.button,_.NU))}},_.g(QkV,{data:N}))},
toggleButtonViewModel:function(Z){var N=Z.data;return _.g(Cb,{isRow:L.isRow,isIconOnlyButton:function(){var S=N();return DSL(_.n(S.isToggled?S.toggledButtonViewModel:S.defaultButtonViewModel,_.NU))}},_.g(_.sj,{data:N}))},
subscribePlusButtonViewModel:function(Z){return _.g(Cb,{isRow:L.isRow},_.g(Z_O,{data:Z.data}))}})},"ta");
Cb=_.p(function(L){var Z={};return _.g("div",{class:_.qg("ytFlexibleActionsViewModelAction",(Z.ytFlexibleActionsViewModelActionRowAction=L.isRow,Z.ytFlexibleActionsViewModelActionIntrinsicWidth=L.useIntrinsicWidth,Z.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,Z.ytFlexibleActionsViewModelActionIconOnlyButton=L.isIconOnlyButton,Z))},L.children)},"ua");
_.rX=_.p(function(L){var Z=function(){var S;return((S=L.layout)==null?void 0:S.call(L))===1},N={};
return _.g("yt-flexible-actions-view-model",{class:_.qg("ytFlexibleActionsViewModelHost",L.className,(N.ytFlexibleActionsViewModelInline=function(){return!Z()},N.ytFlexibleActionsViewModelScrollable=function(){return L.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},N))},_.g(_.ju,{each:function(){return L.data().actionsRows||[]}},function(S){return _.g(_.F,{cond:Z,
then:function(){return _.g("div",{class:"ytFlexibleActionsViewModelActionRow"},_.g(NNY,{actionRow:S,isRow:Z,useIntrinsicWidth:function(){return!!L.data().respectActionIntrinsicWidth}}))},
else:function(){return _.g(NNY,{actionRow:S,isRow:Z})}})}))},"va");_.CY(_.rX,"yt-flexible-actions-view-model",{props:{data:_.LK,layout:_.LK,justifyContentOverride:_.LK,className:_.LK}});_.QK=_.p(function(L){var Z=_.OS(fV,function(){var u;return(u=L.data().dislikeEntityKey)!=null?u:""}),N=_.wJ(function(){var u=Z();
return u?u.likeStatus==="DISLIKE":_.n(L.data().toggleButtonViewModel,_.iD).isToggled},void 0,"fNr9he"),S=_.wJ(function(){return Object.assign({},_.n(L.data().toggleButtonViewModel,_.iD),{isToggled:N()})},void 0,"AezoCc");
return _.g("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.g(_.sj,{data:S,buttonShapeOverrides:L.buttonShapeOverrideables,onToggle:function(u){var T=Z();T&&u!==(T.likeStatus==="DISLIKE")&&T.key&&_.sk(_.vt("likeStatusEntity",T.key,{likeStatus:u?"DISLIKE":"INDIFFERENT",hadUserInteraction:u}))}}))},"wa");
_.QK.idomCompat=!0;_.XX=_.p(function(L){var Z=_.c("web_supports_animations_api"),N=pY(function(v){var R=G();if(!v){var K,U;return{numberText:(U=R==null?void 0:(K=R.likeCountIfIndifferent)==null?void 0:K.content)!=null?U:"",numberValue:Number(R==null?void 0:R.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var d;K=(R==null?void 0:(d=R.likeCountIfIndifferent)==null?void 0:d.content)!==v.numberText;if(V()||!K)return v;var h;return{numberText:(R==null?void 0:(h=R.likeCountIfIndifferent)==null?void 0:h.content)||
"",numberValue:Number(R==null?void 0:R.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!R}}),S=pY(function(v){var R=G();
if(!v){var K,U;return{numberText:(U=R==null?void 0:(K=R.likeCountIfLiked)==null?void 0:K.content)!=null?U:"",numberValue:Number(R==null?void 0:R.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var d;K=(R==null?void 0:(d=R.likeCountIfIndifferent)==null?void 0:d.content)!==v.numberText;if(V()||!K)return v;var h;return{numberText:(R==null?void 0:(h=R.likeCountIfLiked)==null?void 0:h.content)||"",numberValue:Number(R==null?void 0:R.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!R}}),u=_.O(_.nh(void 0,
void 0,"xldjge")),T=u.next().value,W=u.next().value,V=T,M=_.OS(fV,function(){var v,R;
return(R=(v=L.data())==null?void 0:v.likeStatusEntityKey)!=null?R:""}),G=_.OS(ueF,function(){var v,R;
return((v=L.likeCountEntity)==null?void 0:(R=v.call(L))==null?void 0:R.key)||""}),D=_.wJ(function(){var v;
return((v=M())==null?void 0:v.likeStatus)==="LIKE"},void 0,"B3od5e"),l=function(){var v;
return Z&&!((v=L.likeCountEntity)==null||!v.call(L))};
return _.g("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.g(_.sj,{data:function(){var v=Object,R=v.assign,K;var U=_.n((K=L.data())==null?void 0:K.toggleButtonViewModel,_.iD);return R.call(v,{},U||{},{isToggled:D()})},
buttonShapeOverrides:L.buttonShapeOverrideables,animatedTextPropsDefault:function(){return l()?N():void 0},
animatedTextPropsToggled:function(){return l()?S():void 0},
onToggle:function(v){lo_(v,M(),V(),W)},
style:function(){var v;return((v=L.disableIconAnimation)==null?0:v.call(L))?void 0:{animateIcon:"true"}}}))},"xa");
_.XX.idomCompat=!0;var SQQ=_.p(function(L){var Z=function(){return _.n(L.data().likeButtonViewModel,_.QY)},N=function(){var u;
return((u=Z())==null?void 0:u.likeStatusEntityKey)||""},S=_.wJ(function(){var u,T;
var W=(T=_.OS(fV,N)())!=null?T:(u=Z())==null?void 0:u.likeStatusEntity;u=L.data();var V;u=(u==null?void 0:(V=u.timedAnimationData)==null?void 0:V.animationTiming)||[];return{uniqueId:"like-dislike",timings:u,enabled:(W==null?void 0:W.likeStatus)==="INDIFFERENT"&&u.length>0,experimentEnabled:u.length>0}},void 0,"zZ3GQb");
return _.g("segmented-like-dislike-button-view-model",{class:_.qg("ytSegmentedLikeDislikeButtonViewModelHost",L.className),"button-renderer":!0},_.g(EHh,{settings:S},_.g("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.g(_.F,{cond:Z,then:function(u){return _.g(_.XX,{data:u,likeCountEntity:function(){return L.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.c("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.g(_.F,{cond:function(){return _.n(L.data().dislikeButtonViewModel,_.rf)},
then:function(u){return _.g(_.QK,{data:u,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"ya");
SQQ.idomCompat=!0;_.CY(SQQ,"segmented-like-dislike-button-view-model",{props:{data:_.LK,className:_.LK}});var i_V=_.p(function(L){var Z=L.data;var N=L.className;var S=L.setMinWidth;var u=L.forceIconOnly;var T=_.t2("account-link-button-view-model"),W=_.OS(_.vHB,function(){var v;return(v=Z().accountLinkStatusEntityKey)!=null?v:""}),V=_.OS(_.vHB,function(){var v;
return(v=Z().accountLinkStatusSecondaryEntityKey)!=null?v:""}),M=function(){if(!_.c("web_account_link_secondary_killswitch")){var v,R;
return((v=W())==null?void 0:v.linked)||((R=V())==null?void 0:R.linked)}var K;return(K=W())==null?void 0:K.linked};
_.ph(function(){var v=W();if(v){var R=v3s(new ljh,$UQ(new Fiq,!!v.linked));_.Z7().then(function(K){K&&(K.setAccountLinkState(_.jY(R.JSC$12323_serializeBinary(),4)),K.updateAccountLinkingConfig(!!v.linked))})}},"IvZF7");
var G=function(){return _.n(Z().toggleButtonViewModel,_.iD)};
_.TD("yt-signal-action-show-account-link-dialog",function(){if(G()){var v=M()?G().toggledButtonViewModel:G().defaultButtonViewModel;v=_.n(v,_.NU);var R;if((R=W())==null?0:R.isWarning){R=_.n(Z().warningButtonViewModel,_.NU);if(!R){_.Zx(Error("Dh"));return}v=R}var K;(R=_.KY((K=v)==null?void 0:K.onTap))&&_.Lq([R],T.value)}else _.Zx(Error("Eh"))});
var D=function(){var v=G();return Object.assign({},v,{isToggled:M()})},l=function(){return(u==null?0:u())?{iconPosition:"icon-only"}:{}};
return _.g("account-link-button-view-model",{class:_.qg("ytwAccountLinkButtonViewModelHost",N,function(){return(S==null?0:S())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:T,"button-renderer":!0},_.g("div",null,_.g(_.F,{cond:function(){var v;if((v=W())==null?0:v.isWarning)return(v=_.n(Z().warningButtonViewModel,_.NU))||_.Zx(Error("Dh")),v},
then:function(v){return _.g(_.$X,{data:v,buttonOverrides:l})},
else:function(){return _.g(_.sj,{data:D,buttonShapeOverrides:l})}})))},"Aa");_.CY(i_V,"account-link-button-view-model",{props:{data:_.LK,className:_.zl,setMinWidth:_.zl,forceIconOnly:_.zl}});_.l4("menuRenderer","menuRenderer","ytd-menu-renderer");
var u00={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"}},
TNO=_.c("web_fix_missing_action_buttons")?100:200,Al=function(){var L=_.e.apply(this,arguments)||this;L.safeArea=!_.c("kevlar_flex_menu_safe_area_killswitch");L.tonalOverride=!1;L.threeDotSize="M";L.isOverlay=!1;L.useOverlayDark=!1;L.topLevelIconsOnly=!1;L.JSC$14759_lastWidth=0;L.maybeUpdateFlexibleMenu=function(){_.c("web_fix_missing_action_buttons")?requestAnimationFrame(L.maybeUpdateFlexibleMenuImpl):L.maybeUpdateFlexibleMenuImpl()};
L.maybeUpdateFlexibleMenuImpl=function(){var Z;if((Z=L.data)!=null&&Z.flexibleItems){L.maybeFlushDebouncer();Z=L.hostElement.clientWidth;var N=Z>L.JSC$14759_lastWidth,S,u=((S=L.topLevelButtonsContainer)==null?void 0:S.scrollHeight)||0,T;S=((T=L.flexibleItemButtonsContainer)==null?void 0:T.scrollHeight)||0;T=L.hostElement.scrollHeight>Math.max(u,S)+8;N?(L.resetFlexibleItems(),L.JSC$14759_lastWidth=L.hostElement.clientWidth,L.maybeUpdateFlexibleMenu()):T&&(L.shrinkFlexibleMenu(),L.JSC$14759_lastWidth=
Z)}};
L.computeThreeDotButtonShape=function(){if(L.tonalOverride)return Object.assign({},{onTap:function(){L.onOverflowTap()},
iconPosition:"icon-only",style:L.isOverlay?L.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:L.threeDotSize,state:"active",accessibilityLabel:L.computeAccessibilityLabel(L.data)},L.threeDotButtonOverride)};
L.onOverflowTap=function(){if(L.data.fetchMenuCommand)_.GR().resolve(_.$s).resolveCommand(L.data.fetchMenuCommand,{form:{element:L.hostElement}});else if(L.data.isDisabled&&L.data.disabledCommand)_.LY(L.data.disabledCommand,L.hostElement);else{var Z=L.createMenuRendererVe(),N={items:L.items};L.data.menuPopupAccessibility&&(N.menuPopupAccessibility=L.data.menuPopupAccessibility);L.data.footer&&(N.footer=L.data.footer);Z={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:N},veData:Z}};
_.GR().resolve(_.Po).openSheet({openPopupActionCommand:Z},L.hostElement)}};
return L};
_.f(Al,_.e);_.t=Al.prototype;_.t.updateButtonOverrides=function(){if(!_.c("menu_renderer_label_update_upkillswitch")){var L=_.QJ(this.hostElement).querySelector("yt-button-view-model");L&&(L.buttonOverrides=this.buttonOverrides)}};
_.t.computeHasItems=function(){var L;return((L=this.topLevelButtonData)==null?void 0:L.length)||this.hasFlexibleItems};
_.t.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.t.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Ld(this.hostElement,{"--ytd-menu-renderer-button-color":_.vq(this.data.iconColor)}))};
_.t.onStamperFinished=function(){this.JSC$14759_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.t.setupFlexibleMenu=function(){var L=this,Z;(Z=this.data)!=null&&Z.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Sw(this.maybeUpdateFlexibleMenu,TNO,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){L.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))};
_.t.maybeFlushDebouncer=function(){if(_.c("web_replace_formatted_with_attributed_string")){var L;(L=this.topLevelButtons)==null||L.forEach(function(N){var S;(N=(S=N.getElementsByTagName("yt-attributed-string"))==null?void 0:S[0])&&Rif(N)});
var Z;(Z=this.flexibleItemButtons)==null||Z.forEach(function(N){var S;(N=(S=N.getElementsByTagName("yt-attributed-string"))==null?void 0:S[0])&&Rif(N)})}};
_.t.resetFlexibleItems=function(){var L;if((L=this.data)!=null&&L.flexibleItems){_.c("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var Z;this.flexAsTopLevelButtons=(Z=this.data.flexibleItems)==null?void 0:Z.map(function(N){return _.n(N,_.xN0).topLevelButton});
_.c("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.t.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.t.shrinkFlexibleMenu=function(){var L;(L=this.flexAsTopLevelButtons)!=null&&L.length&&(this.flexAsTopLevelButtons=[].concat(_.Pd(this.flexAsTopLevelButtons.slice(0,-1))))};
_.t.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:u00,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:u00,events:!0}}};
_.t.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.t.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.t.detached=function(){this.icon="MORE_VERT"};
_.t.computeTopLevelButtonData=function(L){if(!L)return[];var Z;L=(Z=L==null?void 0:L.topLevelButtons)!=null?Z:[];return _.Py.unsafeClone([].concat(_.Pd(L)))};
_.t.computeItems=function(L,Z){if(!L)return[];var N=[];if(Z){var S=(L.flexibleItems||[]).map(function(W){return _.n(W,_.xN0)});
S=_.O(S);for(var u=S.next();!u.done;u=S.next())u=u.value,Z.includes(u.topLevelButton)||(u=u.menuItem)&&N.push(u)}var T;L=(T=L==null?void 0:L.items)!=null?T:[];return[].concat(_.Pd(N),_.Pd(L))};
_.t.computeMenuActive=function(L,Z){return L||Z};
_.t.onPopupOpened=function(){this.overlayOpen=!0;_.QT(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.t.onPopupClosed=function(){this.overlayOpen=!1;_.QT(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.t.onPopupCanceled=function(){this.overlayOpen=!1;_.QT(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.t.computeAccessibilityLabel=function(L){return this.get("accessibility.accessibilityData.label",L)};
_.t.isHidden=function(L,Z){return this.tonalOverride||!L?!0:L.fetchMenuCommand||L.isDisabled&&L.disabledCommand?!1:!(Z==null?0:Z.length)};
_.t.isModernOverflowHidden=function(L,Z){return this.tonalOverride&&L?L.fetchMenuCommand?!1:!(Z==null?0:Z.length):!0};
_.t.createMenuRendererVe=function(){var L=this.data.trackingParams,Z=_.RH(),N=_.oH();return L&&Z&&N?(L=_.Mg(L),N=_.Ll(7591),_.c("combine_ve_grafts")?_.k3(_.tC(),N,L):_.ez(Z,L,N),N):null};
_.gd.Object.defineProperties(Al.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.flexAsTopLevelButtons)==null||!L.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Al.prototype.onPopupCanceled=Al.prototype.onPopupCanceled;Al.prototype.onPopupClosed=Al.prototype.onPopupClosed;Al.prototype.onPopupOpened=Al.prototype.onPopupOpened;Al.prototype.tonalOverrideChanged=Al.prototype.tonalOverrideChanged;Al.prototype.resetFlexibleItems=Al.prototype.resetFlexibleItems;Al.prototype.setupFlexibleMenu=Al.prototype.setupFlexibleMenu;Al.prototype.iconButtonColorChanged=Al.prototype.iconButtonColorChanged;Al.prototype.updateButtonOverrides=Al.prototype.updateButtonOverrides;
_.r([_.y(_.W0),_.Q("design:type",Object)],Al.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Al.prototype,"ytRendererstamperBehavior",void 0);_.r([_.TX("#button-shape"),_.Q("design:type",HTMLElement)],Al.prototype,"buttonShape",void 0);_.r([_.TX("#button"),_.Q("design:type",Object)],Al.prototype,"button",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Al.prototype,"data",void 0);_.r([_.Y({computed:"computeTopLevelButtonData(data)"}),_.Q("design:type",Array)],Al.prototype,"topLevelButtonData",void 0);_.r([_.Y(),_.Q("design:type",Array)],Al.prototype,"flexAsTopLevelButtons",void 0);_.r([_.Y({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.Q("design:type",Array)],Al.prototype,"items",void 0);_.r([_.Y({value:"MORE_VERT"}),_.Q("design:type",String)],Al.prototype,"icon",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Al.prototype,"safeArea",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.Q("design:type",Boolean)],Al.prototype,"menuActive",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Al.prototype,"menuFocused",void 0);_.r([_.Y({value:"bottom"}),_.Q("design:type",String)],Al.prototype,"buttonTooltipPosition",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Al.prototype,"overlayOpen",void 0);
_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],Al.prototype,"forceIconButton",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Al.prototype,"styleActionButton",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Al.prototype,"disableTextTransformOnButtons",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Al.prototype,"tonalOverride",void 0);_.r([_.Y(),_.Q("design:type",Object)],Al.prototype,"threeDotSize",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Al.prototype,"threeDotButtonOverride",void 0);_.r([_.Y(),_.Q("design:type",Object)],Al.prototype,"isOverlay",void 0);_.r([_.Y(),_.Q("design:type",Object)],Al.prototype,"useOverlayDark",void 0);_.r([_.Y({computed:"computeButtonOverride(tonalOverride)"}),_.Q("design:type",Object)],Al.prototype,"buttonOverride",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Al.prototype,"hasCustomIconColor",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("flexAsTopLevelButtons"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Al.prototype,"hasFlexibleItems",null);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.Q("design:type",Boolean)],Al.prototype,"hasItems",void 0);_.r([_.Y(),_.Q("design:type",Object)],Al.prototype,"topLevelIconsOnly",void 0);
_.r([_.iA("topLevelIconsOnly"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Al.prototype,"updateButtonOverrides",null);_.r([_.w("topLevelIconsOnly"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Al.prototype,"buttonOverrides",null);_.r([_.TX("#top-level-buttons-computed"),_.Q("design:type",HTMLElement)],Al.prototype,"topLevelButtonsContainer",void 0);_.r([_.tJ(".top-level-buttons > *"),_.Q("design:type",Array)],Al.prototype,"topLevelButtons",void 0);
_.r([_.TX("#flexible-item-buttons"),_.Q("design:type",HTMLElement)],Al.prototype,"flexibleItemButtonsContainer",void 0);_.r([_.tJ("#flexible-item-buttons > *"),_.Q("design:type",Array)],Al.prototype,"flexibleItemButtons",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Al.prototype,"iconButtonColorChanged",null);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Al.prototype,"setupFlexibleMenu",null);_.r([_.Vr("topLevelIconsOnly"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Al.prototype,"resetFlexibleItems",null);_.r([_.iA("tonalOverride"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Al.prototype,"tonalOverrideChanged",null);
_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Al.prototype,"onPopupOpened",null);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Al.prototype,"onPopupClosed",null);_.r([_.SA("yt-popup-canceled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Al.prototype,"onPopupCanceled",null);
_.m(Al,"ytd-menu-renderer",function(){if(KfQ===void 0){var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);KfQ=L}L=KfQ;return L},{mode:2});var t8h;var O_5;_.Ho=_.p(function(L){var Z=L.data;var N=function(){if(Z().icon)a:{var S={iconName:Z().icon};for(var u=_.GR().resolve(_.xD),T=_.O([12,24]),W=T.next();!W.done;W=T.next()){var V=W.value;W=Object.assign({},S,{iconStyle:"youtube_fill",iconSize:V});V=Object.assign({},S,{iconStyle:"youtube_outline",iconSize:V});if(u.resolveIcon(W)){S=W;break a}if(u.resolveIcon(V)){S=V;break a}}S=void 0}else S=void 0;return S};
L={};return _.g("badge-shape",{class:_.qg("yt-badge-shape",function(){return fox(Z().type)},(L["yt-badge-shape--overlay"]=function(){return Z().isOverlay},L["yt-badge-shape--ads-include-dot"]=function(){return Z().adsIncludeDot},L["yt-badge-shape--thumbnail-badge"]=function(){a:switch(Z().type){case 17:case 18:case 19:var S=!0;
break a;default:S=!1}return S},L["yt-badge-shape--status-badge"]=function(){a:switch(Z().type){case 12:case 13:case 14:case 15:case 16:var S=!0;
break a;default:S=!1}return S},L["yt-badge-shape--no-text"]=function(){return!Z().text},L["yt-badge-shape--modern"]=function(){return Z().modern||_.c("web_modern_badge_shape")},L)),
style:_.u4({"background-color":function(){var S;return(S=Z().customColors)==null?void 0:S.backgroundColor}}),
role:function(){return Z().accessibilityText?"img":void 0},
"aria-label":function(){return Z().accessibilityText}},_.g(_.F,{cond:function(){return Z().animation},
then:function(S){return _.g(_.KK,{className:"yt-badge-shape__icon",data:S,animationName:function(){return S().animationConfig.name||""}})}}),_.g(_.F,{cond:function(){var S;
return N()&&!((S=Z())==null?0:S.animation)},
then:function(){return _.g("div",{class:"yt-badge-shape__icon"},_.g(pCB,{data:function(){return N()}}))}}),_.g("div",{class:"yt-badge-shape__text"},function(){var S;
return(S=Z())==null?void 0:S.text}))},"Ba");
_.Ho.idomCompat=!0;_.CY(_.Ho,"badge-shape",{props:{data:_.LK}});var Bo=function(){var L=_.e.apply(this,arguments)||this;L.systemIcons=_.c("kevlar_system_icons");L.animated=_.c("animated_live_badge_icon");L.useBadgeShape=_.c("web_badge_shape_defrag");return L};
_.f(Bo,_.e);_.t=Bo.prototype;_.t.addTooltips=function(){for(var L=_.QJ(this.hostElement).querySelectorAll(".badge"),Z=0,N;N=L[Z++];){var S=this.repeatElement.itemForElement(N);N=_.QJ(N);N.lastChild&&N.lastChild.is==="tp-yt-paper-tooltip"&&N.removeChild(N.lastChild);if(S=S.metadataBadgeRenderer&&S.metadataBadgeRenderer.tooltip){var u=_.Tx("tp-yt-paper-tooltip");(0,_.qJ)(u).textContent=S;u.setAttribute("position","top");u.setAttribute("aria-hidden","true");N.appendChild(u)}}};
_.t.badgesChanged=function(){var L=this;_.ih().parkOrScheduleJob(function(){L.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.t.standaloneRoundedBadgeChanged=function(){var L=this.useRoundedBadge?this.useRoundedBadge:void 0;L&&(this.useRoundedBadge=L)};
_.t.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.t.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.t.computeStyle=function(L){_.c("enable_html5_teal_ad_badge")&&L==="BADGE_STYLE_TYPE_AD"&&(L="badge-style-type-ad-alternate");_.c("kevlar_ytb_live_badges")&&L==="BADGE_STYLE_TYPE_LIVE_NOW"&&(L="badge-style-type-live-now-alternate");return L?L.toLowerCase().replace(/_/g,"-"):""};
_.t.computeRole=function(L){return this.computeAriaLabel(L)?"img":"status"};
_.t.computeAriaLabel=function(L){var Z;return(L==null?void 0:(Z=L.accessibilityData)==null?void 0:Z.label)||(L==null?void 0:L.label)};
_.t.computeBadgeShape=function(L){if(L){var Z,N;var S=nHH(L.style);var u=KfA(L.style),T=L.label,W=((Z=L.accessibilityData)==null?void 0:Z.label)||L.label;a:switch(L.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":Z=!0;break a;default:Z=!1}var V=(N=L.icon)==null?void 0:N.iconType;a:switch(L.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":L=!0;break a;default:L=!1}S={type:S,brNzRatingBadgeType:u,text:T,accessibilityText:W,
isOverlay:Z,icon:V!=="PREMIUM"?V:void 0,modern:_.c("web_modern_badge_view_model"),adsIncludeDot:L}}else S={};return S};
_.t.updateComputedBadges=function(L,Z,N){var S=this;(Z=Z?[Z]:N?[N]:void 0)?this.computedBadges=Z:this.computedBadges=L==null?void 0:L.filter(function(u){var T;if((T=u.metadataBadgeRenderer)==null?0:T.groups){T=!1;u=_.O(u.metadataBadgeRenderer.groups);for(var W=u.next();!W.done;W=u.next()){W=W.value;var V=void 0;T=T||((V=S.hiddenBadgeGroups)==null?void 0:V.includes(W))}return!T}return!0})};
_.t.useFilledIcons=function(L){return _.c("kevlar_system_icons")&&(L==="AUDIO_BADGE"||L==="CHECK_CIRCLE_THICK"||L==="OFFICIAL_ARTIST_BADGE"||L==="SPONSORSHIP_STAR"||L==="PERSON_RADAR_FILLED"||L==="PERSON_RADAR")};
_.t.computeBadgeShapeStyle=function(L){return this.useBadgeShape?L==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||L==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":L==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.t.computeIcon=function(L){var Z,N;L=L==null?void 0:(Z=L.metadataBadgeRenderer)==null?void 0:(N=Z.icon)==null?void 0:N.iconType;if(L!=="PREMIUM"&&L)return _.Bh(L)};
_.t.computeStandaloneBadge=function(L){var Z;L=L==null?void 0:(Z=L.icon)==null?void 0:Z.iconType;return L==="PREMIUM_STANDALONE"||L==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Bo.prototype.hiddenBadgeGroupsChanged=Bo.prototype.hiddenBadgeGroupsChanged;Bo.prototype.standaloneBadgeChanged=Bo.prototype.standaloneBadgeChanged;Bo.prototype.standaloneRoundedBadgeChanged=Bo.prototype.standaloneRoundedBadgeChanged;Bo.prototype.badgesChanged=Bo.prototype.badgesChanged;_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bo.prototype,"hidden",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Bo.prototype,"componentBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Array)],Bo.prototype,"badges",void 0);_.r([_.Y(),_.Q("design:type",Object)],Bo.prototype,"topStandaloneBadge",void 0);_.r([_.Y(),_.Q("design:type",Object)],Bo.prototype,"bottomStandaloneBadge",void 0);_.r([_.Y(),_.Q("design:type",Object)],Bo.prototype,"computedBadges",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bo.prototype,"mediumFontAdBadge",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bo.prototype,"useRoundedBadge",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bo.prototype,"largeFontAdBadge",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bo.prototype,"overlayAd",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bo.prototype,"overlayPremium",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bo.prototype,"noDotAdBadge",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bo.prototype,"collectionTruncate",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bo.prototype,"isThumbnailBadge",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bo.prototype,"wrapBadges",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Number)],Bo.prototype,"numBadgesInRow",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Bo.prototype,"systemIcons",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Bo.prototype,"animated",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Bo.prototype,"useBadgeShape",void 0);_.r([_.Y({value:[]}),_.Q("design:type",Array)],Bo.prototype,"hiddenBadgeGroups",void 0);_.r([_.TX("#repeat"),_.Q("design:type",lA)],Bo.prototype,"repeatElement",void 0);_.r([_.Vr("badges"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bo.prototype,"badgesChanged",null);
_.r([_.Vr("useRoundedBadge"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bo.prototype,"standaloneRoundedBadgeChanged",null);_.r([_.Vr("topStandaloneBadge","bottomStandaloneBadge"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bo.prototype,"standaloneBadgeChanged",null);_.r([_.Vr("hiddenBadgeGroups"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bo.prototype,"hiddenBadgeGroupsChanged",null);
_.r([_.P({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Bo);
var Wrh=_.rD()(Bo,"ytd-badge-supported-renderer",function(){if(O_5===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);O_5=L}L=O_5;return L},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Qr("kevlar_poly_si_batch_j053")?1:2});var xu=function(){var L=_.e.apply(this,arguments)||this;L.iconType="STAR";L.standardizeIconSize=_.c("kevlar_system_icons");L.mediaHoverOverlayInitialVisibility=_.c("enable_top_landscape_image_button_command_web");L.noBottomMargin=!1;L.thumbnailObjectFit="CONTAIN";L.thumbnailFitHeight=!0;L.actionMap={"yt-mute-ad-action":"handleMuteAd"};return L};
_.f(xu,_.e);_.t=xu.prototype;_.t.created=function(){this.activeView=new $u(this.hostElement)};
_.t.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"}}}};
_.t.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",xu.JSC$14771_DEFAULT_CLICK_LOCATION_BEHAVIOR,xu.JSC$14771_CLICK_LOCATION_ID_MAP))};
_.t.onTap=function(L){this.onTapOrClick(L)};
_.t.onTapOrClick=function(L){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,L,!1)};
_.t.updateMediaBackgroundImage=function(){var L=this.get("data.image.thumbnail.thumbnails");L&&(L=_.r$(L,0))&&_.Ld(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+L+")"})};
_.t.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var L=0;L<this.data.impressionEndpoints.length;L++){var Z=this.data.impressionEndpoints[L];Z.clickTrackingParams&&delete Z.clickTrackingParams;_.GR().resolve(_.$s).resolveCommand(Z,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var N;((N=this.data)==null?0:N.activeView)&&De(this.activeView,this.data.activeView)}};
_.t.handleMuteAd=function(){};
_.t.attached=function(){var L=this;_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lz(L.activeView)})};
_.t.detached=function(){_.c("stop_av_measurement_on_detach")&&lz(this.activeView)};
_.gd.Object.defineProperties(xu.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.data)==null||!L.titleText)return"";var Z;return _.iB("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((Z=this.data)==null?void 0:Z.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?0:L.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?0:L.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?0:L.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?0:L.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?0:L.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 L;return!((L=this.data)==null||!L.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"}}});
xu.prototype.onTap=xu.prototype.onTap;xu.prototype.dataChanged=xu.prototype.dataChanged;
xu.JSC$14771_CLICK_LOCATION_ID_MAP=_.c("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"]]);
xu.JSC$14771_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.c("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"}];_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],xu.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.Q$),_.Q("design:type",Object)],xu.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],xu.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.VK.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],xu.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.y([_.nK.YtActionHandlerBehavior]),_.Q("design:type",Object)],xu.prototype,"actionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],xu.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Object)],xu.prototype,"clickCommand",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.vv}),_.Q("design:type",Boolean)],xu.prototype,"miniMode",void 0);_.r([_.Y(),_.Q("design:type",String)],xu.prototype,"iconType",void 0);_.r([_.w("data.titleText"),_.Q("design:type",String),_.Q("design:paramtypes",[])],xu.prototype,"titleAriaLabel",null);_.r([_.w("data.rating"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xu.prototype,"getRating",null);
_.r([_.w("data.price"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xu.prototype,"getPrice",null);_.r([_.w("data.thirdLine"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xu.prototype,"getThirdLine",null);_.r([_.w("data.fourthLine"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xu.prototype,"getFourthLine",null);_.r([_.w("data.fifthLine"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xu.prototype,"getFifthLine",null);
_.r([_.w("getRating"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],xu.prototype,"computeRatingHidden",null);_.r([_.w("getPrice"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],xu.prototype,"computePriceHidden",null);_.r([_.w("getThirdLine"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],xu.prototype,"computeThirdLineHidden",null);_.r([_.w("getFourthLine"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],xu.prototype,"computeFourthLineHidden",null);
_.r([_.w("getFifthLine"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],xu.prototype,"computeFifthLineHidden",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.energyIcon"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],xu.prototype,"hasEnergyIcon",null);_.r([_.w("computePriceHidden","computeRatingHidden"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],xu.prototype,"computeSecondaryTextHidden",null);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xu.prototype,"standardizeIconSize",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xu.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xu.prototype,"noBottomMargin",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data.layout"),_.Q("design:type",String),_.Q("design:paramtypes",[])],xu.prototype,"layout",null);
_.r([_.w("data.layout"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xu.prototype,"mediaThumbnailWidth",null);_.r([_.w("layout"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],xu.prototype,"useRoundedBadge",null);_.r([_.Y(),_.Q("design:type",String)],xu.prototype,"thumbnailObjectFit",void 0);_.r([_.Y(),_.Q("design:type",Object)],xu.prototype,"thumbnailFitHeight",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xu.prototype,"dataChanged",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],xu.prototype,"onTap",null);_.r([_.P({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],xu);
_.m(xu,"ytd-display-ad-renderer",function(){if(t8h!==void 0)return t8h;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return t8h=L},{mode:1});var V8M;var b_O;var M8Y;var krs=new Map;var glh=!1;var qo=function(){var L=_.e.apply(this,arguments)||this;L.DEFAULT_TOOLTIP_OFFSET="10";L.TOOLTIP_OFFSET_NO_BANNER="-8";L.badges=null;L.noEndpoints=!1;L.wrapText=!1;L.forceVerified=!1;L.tooltipPosition="top";L.compactStyle=!1;L.height=0;L.lineHeight=0;return L};
_.f(qo,_.e);_.t=qo.prototype;_.t.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.t.attached=function(){var L=this;this.observer=new MutationObserver(function(Z,N){L.handleResized();N.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.t.detached=function(){this.observer&&this.observer.disconnect()};
_.t.logTooltipEvent=function(){_.c("kevlar_wiz_tooltip_event_killswitch")||glh||(_.yo1("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),glh=!0)};
_.t.handleWindowResized=function(){this.handleResized()};
_.t.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")))};
_.t.onHeightChanged=function(){if(this.verified){var L=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.X7("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=L:this.textContainerEl.style.marginRight=L}};
_.t.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.X7("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.t.handleResized=function(){var L=this;this.verified&&_.ro.addLowPriorityJob(function(){L.fitBackgroundToText();var Z=getComputedStyle(L.hostElement).lineHeight;Z&&(Z=Z.match(/\d+/))&&Z.length&&(L.lineHeight=Number(Z[0]));L.height=L.lineHeight&&!L.wrapText?L.lineHeight:L.textEl.offsetHeight})};
_.t.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var L=document.createRange(),Z=_.QJ(this.textEl).children;Z.length>0?L.selectNodeContents(Z[0]):L.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(L.getBoundingClientRect().width)+"px"}};
_.t.computeChannelBadgeStyle=function(L){var Z;if((L==null?0:(Z=L.runs)==null?0:Z.length)&&L.runs[0].textColor)return"--ytd-badge-icon-color:"+_.vq(L.runs[0].textColor)+";"};
_.gd.Object.defineProperties(qo.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"?_.s9(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var L=this.get("badges.0.metadataBadgeRenderer.tooltip");if(L)return L}return _.jM(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
qo.prototype.onLineHeightChanged=qo.prototype.onLineHeightChanged;qo.prototype.onHeightChanged=qo.prototype.onHeightChanged;qo.prototype.onChannelNameChanged=qo.prototype.onChannelNameChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],qo.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],qo.prototype,"badges",void 0);_.r([_.Y(),_.Q("design:type",Object)],qo.prototype,"channelName",void 0);
_.r([_.Y(),_.Q("design:type",Object)],qo.prototype,"noEndpoints",void 0);_.r([_.Y(),_.Q("design:type",Object)],qo.prototype,"wrapText",void 0);_.r([_.Y(),_.Q("design:type",Object)],qo.prototype,"forceVerified",void 0);_.r([_.Y(),_.Q("design:type",Object)],qo.prototype,"tooltipPosition",void 0);_.r([_.Y(),_.Q("design:type",String)],qo.prototype,"tooltip",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],qo.prototype,"hasChannelArt",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],qo.prototype,"compactStyle",void 0);_.r([_.TX("#text-container"),_.Q("design:type",HTMLElement)],qo.prototype,"textContainerEl",void 0);_.r([_.TX("#text"),_.Q("design:type",Object)],qo.prototype,"textEl",void 0);_.r([_.TX("#verified-tooltip"),_.Q("design:type",HTMLElement)],qo.prototype,"verifiedTooltip",void 0);_.r([_.Y(),_.Q("design:type",Object)],qo.prototype,"height",void 0);
_.r([_.Y(),_.Q("design:type",Object)],qo.prototype,"lineHeight",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("badges","forceVerified"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],qo.prototype,"verified",null);_.r([_.w("badges","verified"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],qo.prototype,"hideBadges",null);_.r([_.w("channelName"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],qo.prototype,"formattedName",null);
_.r([_.w("badges","verified","formattedName"),_.Q("design:type",String),_.Q("design:paramtypes",[])],qo.prototype,"tooltipText",null);_.r([_.w("hasChannelArt"),_.Q("design:type",String),_.Q("design:paramtypes",[])],qo.prototype,"tooltipOffset",null);_.r([_.iA("channelName"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qo.prototype,"onChannelNameChanged",null);
_.r([_.iA("height"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qo.prototype,"onHeightChanged",null);_.r([_.iA("lineHeight","height"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qo.prototype,"onLineHeightChanged",null);_.r([_.P({is:"ytd-channel-name",disableElementRegistration:!0})],qo);
_.m(qo,"ytd-channel-name",function(){if(M8Y!==void 0)return M8Y;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return M8Y=L},{mode:_.Qr("kevlar_poly_si_batch_j036")?1:2});var LS=function(){var L=_.e.apply(this,arguments)||this;L.standardizeIconSize=_.c("kevlar_system_icons");return L};
_.f(LS,_.e);LS.prototype.basicPaletteChanged=function(){var L;(L=this.data.color)!=null&&L.basicColorPaletteData&&_.$0(this.hostElement,this.data.color.basicColorPaletteData)};
LS.prototype.useFilledIcons=function(L){return _.c("kevlar_system_icons")&&(L==="CHECK_CIRCLE_THICK"||L==="OFFICIAL_ARTIST_BADGE")};
_.gd.Object.defineProperties(LS.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return this.data.authorCreator||((L=this.data)==null?void 0:(Z=L.color)==null?void 0:(N=Z.basicColorPaletteData)==null?void 0:N.backgroundColor)}}});
LS.prototype.basicPaletteChanged=LS.prototype.basicPaletteChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],LS.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],LS.prototype,"standardizeIconSize",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data.authorUnifiedVerified"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],LS.prototype,"verified",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],LS.prototype,"creator",null);_.r([_.iA("data.color.basicColorPaletteData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],LS.prototype,"basicPaletteChanged",null);_.r([_.P({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],LS);
_.m(LS,"ytd-author-comment-badge-renderer",function(){if(b_O!==void 0)return b_O;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return b_O=L},{mode:1});var GjN;var ZR=function(){return _.e.apply(this,arguments)||this};
_.f(ZR,_.e);ZR.prototype.computeThumbnailWidth=function(L){if(L==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ZR.prototype,"data",void 0);_.r([_.Y({computed:"computeIcon_(data.icon)"}),_.Q("design:type",String)],ZR.prototype,"icon",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],ZR.prototype,"surface",void 0);
_.r([_.Y({reflectToAttribute:!0,value:_.c("enable_shrink_image_size_on_web_posts_singleton")}),_.Q("design:type",Boolean)],ZR.prototype,"searchSxsUx",void 0);_.r([_.Y({reflectToAttribute:!0,value:_.c("enable_community_page_on_desktop")}),_.Q("design:type",Boolean)],ZR.prototype,"useSmallerPostImageAttachments",void 0);_.r([_.P({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],ZR);
_.m(ZR,"ytd-backstage-image-renderer",function(){if(GjN!==void 0)return GjN;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return GjN=L},{mode:1});var FrQ;var Nk=function(){var L=_.e.apply(this,arguments)||this;L.isLoading=!1;L.selectedItemIndex=-1;return L};
_.f(Nk,_.e);_.t=Nk.prototype;_.t.computeIsChannelOwner=function(L){if(!L)return!0;L=L[0];return!(L&&(L.signinEndpoint||L.selectServiceEndpoint))};
_.t.computeIsImagePoll=function(L){return(L==null?void 0:L.type)==="POLL_TYPE_IMAGE"};
_.t.computeIsTotalVotesDisabled=function(L){return!(L==null?0:L.totalVotes)};
_.t.thumbnailSrc=function(L){var Z,N,S,u;return(L==null?0:(Z=L.thumbnails)==null?0:(N=Z[0])==null?0:N.url)?_.mY((S=L.thumbnails)==null?void 0:(u=S[0])==null?void 0:u.url):void 0};
_.t.progressWidth=function(L){return"width:"+(L?L*100:0)+"%;"};
_.t.textAreaWidth=function(L){return this.isImagePoll?null:"width:"+(L?L*100:0)+"%;"};
_.t.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.t.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var L=this.data.choices,Z=0;Z<L.length;Z++)if(L[Z].selected){this.selectedItemIndex=Z;break}};
_.t.onPopupClosed=function(L,Z){L=Number(this.pollVotes.selected);Z.confirmed&&(this.selectChoice(L,!1),_.XJ(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.t.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.t.onYtCommentPollRevert=function(L,Z){Z&&(this.selectChoice(Z.selectedChoiceIndex,!0),this.set("data.totalVotes",Z.totalVotes))};
_.t.onYtServiceRequestSent=function(L,Z){if(Z.actions)for(L=0;L<Z.actions.length;L++){var N=Z.actions[L];_.n(N,df)&&this.set("data.totalVotes",_.n(N,df).totalVotes)}};
_.t.onYtServiceRequestCompleted=function(L){var Z=this.get("detail.data.actionResults.0.feedback",L);L=this.get("detail.data.actionResults.0.status",L);if(Z==="FEEDBACK_DESELECT"||Z==="FEEDBACK_SELECT")this.isLoading=!1,L==="STATUS_FAILED"?_.QT(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.t.getEndpoint=function(L,Z){return Z===L?this.data.choices[Z].deselectServiceEndpoint||null:this.data.choices[L].selectServiceEndpoint||null};
_.t.selectChoice=function(L,Z){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var N=0;N<this.data.choices.length;N++){var S;if(L===this.selectedItemIndex){var u=!1;var T=S=null}else S=(u=N===L)?this.data.choices[N].voteRatioIfSelected:this.data.choices[N].voteRatioIfNotSelected,T=u?this.data.choices[N].votePercentageIfSelected:this.data.choices[N].votePercentageIfNotSelected;this.set("data.choices."+N+".voteRatio",S);
this.set("data.choices."+N+".votePercentage",T);this.set("data.choices."+N+".selected",u)}Z||(this.isLoading=!0,(Z=this.getEndpoint(L,this.selectedItemIndex))&&_.GR().resolve(_.$s).resolveCommand(Z,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===L?-1:L};
_.gd.Object.defineProperties(Nk.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Nk.prototype.onYtServiceRequestCompleted=Nk.prototype.onYtServiceRequestCompleted;Nk.prototype.onYtServiceRequestSent=Nk.prototype.onYtServiceRequestSent;Nk.prototype.onYtCommentPollRevert=Nk.prototype.onYtCommentPollRevert;Nk.prototype.onPopupClosed=Nk.prototype.onPopupClosed;Nk.prototype.dataChanged=Nk.prototype.dataChanged;_.r([_.y(_.ik),_.Q("design:type",Object)],Nk.prototype,"paperItemBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.W0),_.Q("design:type",Object)],Nk.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Nk.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Nk.prototype,"isLoading",void 0);_.r([_.Y({computed:"computeIsChannelOwner(data.choices)"}),_.Q("design:type",Boolean)],Nk.prototype,"isChannelOwner",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.Q("design:type",Boolean)],Nk.prototype,"isImagePoll",void 0);_.r([_.Y({computed:"computeIsTotalVotesDisabled(data)"}),_.Q("design:type",Boolean)],Nk.prototype,"isTotalVotesDisabled",void 0);_.r([_.Y(),_.Q("design:type",Object)],Nk.prototype,"previousPollInfo",void 0);_.r([_.Y(),_.Q("design:type",Object)],Nk.prototype,"selectedItemIndex",void 0);_.r([_.TX("#poll-votes"),_.Q("design:type",Object)],Nk.prototype,"pollVotes",void 0);
_.r([_.w("isChannelOwner"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Nk.prototype,"endpointStyle",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Nk.prototype,"dataChanged",null);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],Nk.prototype,"onPopupClosed",null);
_.r([_.SA("yt-comment-poll-revert"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],Nk.prototype,"onYtCommentPollRevert",null);_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],Nk.prototype,"onYtServiceRequestSent",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Nk.prototype,"onYtServiceRequestCompleted",null);_.r([_.P({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Nk);
_.m(Nk,"ytd-backstage-poll-renderer",function(){if(FrQ!==void 0)return FrQ;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return FrQ=L},{mode:2});var $DN;var DDl={autoplay:!1,loop:!1},lB5={simpleText:""},SV=function(){var L=_.e.apply(this,arguments)||this;L.isLoading=!1;L.usesPanelLockup=!1;L.selectedItemIndex=-1;L.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},DDl,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});L.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},DDl,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});L.correctnessAnimationProps=[];L.correctnessAnimationRefs=[];return L};
_.f(SV,_.e);_.t=SV.prototype;_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.t.computeIsChannelOwner=function(L){if(!L)return!0;L=L[0];return!(L&&(L.signinEndpoint||L.selectServiceEndpoint))};
_.t.computeIsTotalVotesDisabled=function(L){return!(L==null?0:L.totalVotes)};
_.t.computeIsImageQuiz=function(L){return(L==null?void 0:L.type)==="POLL_TYPE_IMAGE"};
_.t.onExplanationChanged=function(){this.expander.reset()};
_.t.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var L=this.data.choices;if(L){this.maybeInitializeQuizLotties(L);for(var Z=0;Z<L.length;Z++)if(L[Z].isSelected||this.isChannelOwner&&L[Z].isCorrect){this.selectedItemIndex=Z;return}this.selectedItemIndex=-1}}};
_.t.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var L=this.selectedItemIndex,Z=Number(this.quizVotes.selected);this.selectChoice(Z);this.sendVoteAction(Z,L);this.quizVotes.selected=-1;var N;L=!((N=this.data)==null?0:N.enableAnimation);this.maybePlayAnswerAnimations(L)}};
_.t.onYtCommentPollRevert=function(L,Z){Z&&(this.selectChoice(Z.selectedChoiceIndex),this.set("data.totalVotes",Z.totalVotes))};
_.t.onYtServiceRequestSent=function(L,Z){if(Z.actions)for(L=_.O(Z.actions),Z=L.next();!Z.done;Z=L.next())(Z=_.n(Z.value,df))&&this.set("data.totalVotes",Z.totalVotes)};
_.t.onYtServiceRequestCompleted=function(L){var Z=this.get("detail.data.actionResults.0.feedback",L);L=this.get("detail.data.actionResults.0.status",L);if(Z==="FEEDBACK_DESELECT"||Z==="FEEDBACK_SELECT")this.isLoading=!1,L==="STATUS_FAILED"?_.QT(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.t.getAnimationPropsForChoiceIndex=function(L,Z){return Z[L]};
_.t.maybePlayAnswerAnimations=function(L){L=L===void 0?!1:L;var Z;if((Z=this.data)!=null&&Z.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){Z=_.O(this.correctnessAnimationRefs);for(var N=Z.next();!N.done;N=Z.next()){var S=void 0,u=void 0;(S=N.value)==null||(u=S.lottieEl)==null||u.stop()}if(!(this.selectedItemIndex<0)){Z=0;L&&(Z=this.isCorrect?37:25);var T,W;(T=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(W=T.lottieEl)==null||W.goToAndPlay(L?Z:0,!0);if(!(this.isCorrect||
(T=this.data.choices.findIndex(function(D){return D.isCorrect}),T<0))){var V,M;
(M=(V=this.correctnessAnimationRefs[T])==null?void 0:V.lottieEl)==null||M.goToAndPlay(37,!0);var G;V=(G=this.fadeContainers)==null?void 0:G.item(T);!L&&V&&this.fadeIn(V)}}}};
_.t.thumbnailSrc=function(L){var Z,N,S,u;return(L==null?0:(Z=L.thumbnails)==null?0:(N=Z[0])==null?0:N.url)?_.mY((S=L.thumbnails)==null?void 0:(u=S[0])==null?void 0:u.url):void 0};
_.t.a11yVotedText=function(L,Z){var N,S,u=((N=this.data)==null?void 0:(S=N.correctVotedText)==null?void 0:S.simpleText)||"",T,W;N=((T=this.data)==null?void 0:(W=T.votedText)==null?void 0:W.simpleText)||"";if(!Z)return"";var V,M;if((V=this.data)==null?0:(M=V.choices)==null?0:M[L].isCorrect)return u;var G,D;return((G=this.data)==null?0:(D=G.choices)==null?0:D[L].isSelected)?N:""};
_.t.getEndpoint=function(L,Z){return Z===L?this.data.choices[L].deselectServiceEndpoint||null:this.data.choices[L].selectServiceEndpoint||null};
_.t.sendVoteAction=function(L,Z){if(L=this.getEndpoint(L,Z))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(L)};
_.t.selectChoice=function(L){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var Z=0;Z<this.data.choices.length;Z++)this.set("data.choices."+Z+".isSelected",L===this.selectedItemIndex?!1:Z===L);this.selectedItemIndex=this.selectedItemIndex===L?-1:L};
_.t.maybeInitializeQuizLotties=function(L){var Z=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=L.map(function(N){return{animationConfig:N.isCorrect?Z.baseCorrectLottiePlayerAnimationConfig:Z.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){Z.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(N){return N.animationRef||{}})};
_.t.fadeIn=function(L){L.classList.add("fade-in");_.H9(_.ro,function(){L.classList.remove("fade-in")},900)};
_.gd.Object.defineProperties(SV.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.c("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.jM(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 L,Z;return((L=this.data)==null?void 0:(Z=L.choices)==null?void 0:Z.some(function(N){return N.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null||!L.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?lB5:this.data.choices[this.selectedItemIndex].explanation||lB5}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null||!L.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
SV.prototype.onYtServiceRequestCompleted=SV.prototype.onYtServiceRequestCompleted;SV.prototype.onYtServiceRequestSent=SV.prototype.onYtServiceRequestSent;SV.prototype.onYtCommentPollRevert=SV.prototype.onYtCommentPollRevert;SV.prototype.dataChanged=SV.prototype.dataChanged;SV.prototype.onExplanationChanged=SV.prototype.onExplanationChanged;_.r([_.y(_.ik),_.Q("design:type",Object)],SV.prototype,"paperItemBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],SV.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],SV.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.uM.YtTaskEmitterBehavior),_.Q("design:type",Object)],SV.prototype,"ytTaskEmitterBehavior",void 0);_.r([_.y(_.W0),_.Q("design:type",Object)],SV.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],SV.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Object)],SV.prototype,"isLoading",void 0);_.r([_.Y(),_.Q("design:type",Object)],SV.prototype,"usesPanelLockup",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.Q("design:type",Boolean)],SV.prototype,"isChannelOwner",void 0);_.r([_.Y({computed:"computeIsTotalVotesDisabled(data)"}),_.Q("design:type",Boolean)],SV.prototype,"isTotalVotesDisabled",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.Q("design:type",Boolean)],SV.prototype,"isImageQuiz",void 0);_.r([_.Y(),_.Q("design:type",Object)],SV.prototype,"previousQuizInfo",void 0);_.r([_.Y(),_.Q("design:type",Object)],SV.prototype,"selectedItemIndex",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data","usesPanelLockup"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],SV.prototype,"shouldUseModernUi",null);
_.r([_.tJ(".fade-container"),_.Q("design:type",Object)],SV.prototype,"fadeContainers",void 0);_.r([_.Y(),_.Q("design:type",Array)],SV.prototype,"correctnessAnimationProps",void 0);_.r([_.w("explanation","showCorrectAnswer"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],SV.prototype,"showExplanation",null);_.r([_.w("isChannelOwner","isAttempted"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],SV.prototype,"showCorrectAnswer",null);
_.r([_.w("isChannelOwner","isAttempted","data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],SV.prototype,"isQuizAnsweringDisabled",null);_.r([_.w("isQuizAnsweringDisabled"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],SV.prototype,"endpointStyle",null);_.r([_.w("data","selectedItemIndex"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],SV.prototype,"isAttempted",null);
_.r([_.w("data","selectedItemIndex"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],SV.prototype,"explanation",null);_.r([_.w("data","selectedItemIndex"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],SV.prototype,"isCorrect",null);_.r([_.TX("ytd-expander"),_.Q("design:type",Object)],SV.prototype,"expander",void 0);_.r([_.TX("#quiz-votes"),_.Q("design:type",Object)],SV.prototype,"quizVotes",void 0);
_.r([_.iA("explanation"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],SV.prototype,"onExplanationChanged",null);_.r([_.iA("data","isChannelOwner"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],SV.prototype,"dataChanged",null);_.r([_.SA("yt-comment-quiz-revert"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],SV.prototype,"onYtCommentPollRevert",null);
_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],SV.prototype,"onYtServiceRequestSent",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],SV.prototype,"onYtServiceRequestCompleted",null);_.r([_.P({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],SV);
_.m(SV,"ytd-backstage-quiz-renderer",function(){if($DN!==void 0)return $DN;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return $DN=L},{mode:1});var vl5;var iU=function(){return _.e.apply(this,arguments)||this};
_.f(iU,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],iU.prototype,"data",void 0);_.r([_.P({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],iU);
_.m(iU,"ytd-post-uploaded-video-renderer",function(){if(vl5!==void 0)return vl5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return vl5=L},{mode:1});var olY;var uU=function(){return _.e.apply(this,arguments)||this};
_.f(uU,_.e);uU.prototype.useFilledIcons=function(L){return L==="SPONSORSHIP_STAR"};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],uU.prototype,"data",void 0);_.r([_.P({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],uU);
var RfO=_.rD()(uU,"ytd-sponsors-only-badge-renderer",function(){if(olY===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);olY=L}L=olY;return L},{allowedProps:["data"],
mode:1});var cgh;var Tt=function(){return _.e.apply(this,arguments)||this};
_.f(Tt,_.e);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Tt.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Tt.prototype,"data",void 0);_.r([_.P({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Tt);
_.m(Tt,"ytd-child-video-renderer",function(){if(cgh!==void 0)return cgh;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return cgh=L},{mode:1});var nlN;var KrV;var tO=function(){var L=_.e.apply(this,arguments)||this;L.size=0;L.fallbackImageSize={height:void 0,width:9999};L.webModernCollections=!1;return L};
_.f(tO,_.e);_.t=tO.prototype;_.t.computeBlurredImageSize=function(L){return L?{height:L*2,width:L*2}:this.fallbackImageSize};
_.t.computeImageSize=function(L){return L?{height:L,width:L}:this.fallbackImageSize};
_.t.computeObjectFit=function(L){return L?"FILL":"CONTAIN"};
_.t.computePreserve=function(L){return L?!0:!1};
_.t.setBackground=function(){var L,Z;if((L=this.data)==null?0:(Z=L.thumbnail)==null?0:Z.sampledThumbnailColor)L=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+L.red+","+L.green+","+L.blue+",1)"};
tO.prototype.setBackground=tO.prototype.setBackground;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],tO.prototype,"ytRendererBehavior",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],tO.prototype,"watchFeedThumbnail",void 0);_.r([_.Y(),_.Q("design:type",Object)],tO.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],tO.prototype,"size",void 0);
_.r([_.Y({computed:"computeBlurredImageSize(size)"}),_.Q("design:type",Object)],tO.prototype,"blurredImageSize",void 0);_.r([_.Y({computed:"computeImageSize(size)"}),_.Q("design:type",Object)],tO.prototype,"imageSize",void 0);_.r([_.Y({computed:"computePreserve(size)"}),_.Q("design:type",String)],tO.prototype,"preserve",void 0);_.r([_.Y({computed:"computeObjectFit(size)"}),_.Q("design:type",String)],tO.prototype,"objectFit",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],tO.prototype,"webModernCollections",void 0);_.r([_.iA("data.thumbnail.sampledThumbnailColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tO.prototype,"setBackground",null);_.r([_.P({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],tO);
_.m(tO,"ytd-playlist-custom-thumbnail-renderer",function(){if(KrV!==void 0)return KrV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return KrV=L},{mode:1});var fBt;var Ol=function(){return _.e.apply(this,arguments)||this};
_.f(Ol,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ol.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ol.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Number)],Ol.prototype,"width",void 0);_.r([_.P({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Ol);
_.m(Ol,"ytd-playlist-video-thumbnail-renderer",function(){if(fBt!==void 0)return fBt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return fBt=L},{mode:1});var kjQ;var Wp=function(){return _.e.apply(this,arguments)||this};
_.f(Wp,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Wp.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Number)],Wp.prototype,"width",void 0);_.r([_.P({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Wp);
_.m(Wp,"ytd-show-custom-thumbnail-renderer",function(){if(kjQ!==void 0)return kjQ;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return kjQ=L},{mode:1});var ygY;var Vw=function(){return _.e.apply(this,arguments)||this};
_.f(Vw,_.e);Vw.prototype.useFilledIcons=function(L){return L==="MUSIC"||L==="COURSE"};
Vw.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=cq(this.overlayColor,"0.8");else if(this.overlayColor){var L=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+L.red+","+L.green+","+L.blue+",0.8)"}};
_.gd.Object.defineProperties(Vw.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)}}});
Vw.prototype.overlayColorChanged=Vw.prototype.overlayColorChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Vw.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Vw.prototype,"overlayColor",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data.icon","data.text"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Vw.prototype,"overlayStyle",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data.icon","data.text"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Vw.prototype,"overlayTextStyle",null);_.r([_.iA("overlayColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vw.prototype,"overlayColorChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],Vw);
_.m(Vw,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(ygY!==void 0)return ygY;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return ygY=L},{mode:1});var wk0;var bU=function(){var L=_.e.apply(this,arguments)||this;L.active=!1;return L};
_.f(bU,_.e);bU.prototype.computeIsSpinnerHidden=function(L){return(L==null?void 0:L.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
bU.prototype.computeOverlayIcon=function(L){return(L==null?void 0:L.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(L==null?void 0:L.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],bU.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],bU.prototype,"active",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],bU);
_.m(bU,"ytd-thumbnail-overlay-downloading-renderer",function(){if(wk0!==void 0)return wk0;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return wk0=L},{mode:1});var UDL;var Mk=function(){return _.e.apply(this,arguments)||this};
_.f(Mk,_.e);_.gd.Object.defineProperties(Mk.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Mk.prototype,"data",void 0);_.r([_.w("data.text"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Mk.prototype,"text",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Mk);
_.m(Mk,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(UDL!==void 0)return UDL;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return UDL=L},{mode:1});var YQq,efs=function(){if(YQq!==void 0)return YQq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return YQq=L};var gi=function(){return _.e.apply(this,arguments)||this};
_.f(gi,_.e);_.gd.Object.defineProperties(gi,{template:{configurable:!0,enumerable:!0,get:function(){return efs()}}});
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],gi.prototype,"animateEqualizer",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],gi);_.rD()(gi,"ytd-thumbnail-overlay-equalizer",function(){return efs()},{allowedProps:["animateEqualizer"],
mode:1});var IBI;var Gt=function(){var L=_.e.apply(this,arguments)||this;L.nowPlayingBadge=_.c("web_now_playing_badge");L.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return L};
_.f(Gt,_.e);Gt.prototype.activeChanged=function(){var L=this;_.c("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.bN(this,function(){_.QT(L.hostElement,"yt-playlist-lockup-now-playing-active",L)})};
Gt.prototype.onMiniplayerPlayStateChanged=function(L){var Z,N=(Z=_.n(_.dM().currentEndpoint,_.so))==null?void 0:Z.videoId;this.isVideoPlaying=L&&(_.c("web_limit_now_playing_animation_killswitch")||this.videoId===N)};
Gt.prototype.activeChanged=Gt.prototype.activeChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Gt.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gt.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Gt.prototype,"isVideoPlaying",void 0);_.r([_.Y(),_.Q("design:type",String)],Gt.prototype,"videoId",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Gt.prototype,"equalizerOnly",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Gt.prototype,"isActive",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Gt.prototype,"nowPlayingBadge",void 0);_.r([_.iA("isActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Gt.prototype,"activeChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],Gt);
_.m(Gt,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(IBI!==void 0)return IBI;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return IBI=L},{mode:1});var dDV;var Fq=function(){return _.e.apply(this,arguments)||this};
_.f(Fq,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Fq.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Fq.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Fq);
_.m(Fq,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(dDV!==void 0)return dDV;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return dDV=L},{mode:_.Qr("kevlar_poly_si_batch_j025")?1:2});var aBM;var $C=function(){return _.e.apply(this,arguments)||this};
_.f($C,_.e);$C.prototype.onDurationChanged=function(){var L,Z;_.QJ(this.hostElement).querySelector("#progress").style.width=((Z=(L=this.data)==null?void 0:L.percentDurationWatched)!=null?Z:0)+"%"};
$C.prototype.onDurationChanged=$C.prototype.onDurationChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],$C.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],$C.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],$C.prototype,"isLive",void 0);_.r([_.iA("data.percentDurationWatched"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$C.prototype,"onDurationChanged",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],$C);
_.m($C,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(aBM!==void 0)return aBM;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return aBM=L},{mode:1});var hfO;var DR=function(){var L=_.e.apply(this,arguments)||this;L.bottomPanel=!1;L.richGridOverlay=!1;L.watchFeedOverlay=!1;L.isCompact=!1;return L};
_.f(DR,_.e);DR.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.gd.Object.defineProperties(DR.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?void 0:(Z=L.icon)==null?void 0:Z.iconType)==="PLAY_ALL"&&_.c("kevlar_system_icons")}}});
DR.prototype.widthChanged=DR.prototype.widthChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],DR.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Number)],DR.prototype,"width",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DR.prototype,"bottomPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DR.prototype,"richGridOverlay",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DR.prototype,"watchFeedOverlay",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DR.prototype,"isCompact",void 0);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],DR.prototype,"isIconFilled",null);_.r([_.iA("width","watchFeedOverlay"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DR.prototype,"widthChanged",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],DR);
_.m(DR,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(hfO!==void 0)return hfO;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return hfO=L},{mode:1});var sPL;var jPO=["CLIP","SHORTS"],lU=function(){var L=_.e.apply(this,arguments)||this;L.animated=_.c("animated_live_badge_icon");L.hasIcon=!1;L.updateTimerIntervalId=0;L.timeSinceLive=0;return L};
_.f(lU,_.e);_.t=lU.prototype;_.t.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.t.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.t.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.t.hasIconOrText=function(){var L,Z;return!!(((L=this.data)==null?0:L.icon)||((Z=this.data)==null?0:Z.text))};
_.t.initializeLiveBadgeTimer=function(){var L=this,Z,N=(Z=this.liveBadgeData)==null?void 0:Z.startTimestampSec;if(N&&this.canShowLiveBadgeTimer()){var S;Z=Number((S=this.liveBadgeData)==null?void 0:S.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(N);this.updateTimerIntervalId=_.nZ(function(){L.canShowLiveBadgeTimer()?L.timeSinceLive++:(L.timeSinceLive=0,window.clearInterval(L.updateTimerIntervalId))},Z)}else this.timeSinceLive=0};
_.t.canShowLiveBadgeTimer=function(){var L=Date.now(),Z,N;return L<(Number((Z=this.liveBadgeData)==null?void 0:Z.endTimestampSec)-1)*1E3&&L>Number((N=this.liveBadgeData)==null?void 0:N.startTimestampSec)*1E3};
_.gd.Object.defineProperties(lU.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.wjA(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 L;return(L=this.data)==null?void 0:L.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 jPO.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
lU.prototype.initializeLiveBadgeTimer=lU.prototype.initializeLiveBadgeTimer;lU.prototype.dataChanged=lU.prototype.dataChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],lU.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],lU.prototype,"data",void 0);_.r([_.Y({computed:"computeIcon_(data.icon)"}),_.Q("design:type",String)],lU.prototype,"icon",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],lU.prototype,"animated",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.Q("design:type",Boolean)],lU.prototype,"hideTimeStatus",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],lU.prototype,"hasIcon",void 0);_.r([_.Y(),_.Q("design:type",Object)],lU.prototype,"timeSinceLive",void 0);_.r([_.w("data","timeSinceLive"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],lU.prototype,"badgeShapeData",null);
_.r([_.w("data","overlayType"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],lU.prototype,"hideBadgeShape",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lU.prototype,"dataChanged",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.style"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],lU.prototype,"overlayStyle",null);
_.r([_.w("data.liveBadgeData"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],lU.prototype,"liveBadgeData",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.type"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],lU.prototype,"overlayType",null);_.r([_.w("overlayType","overlayStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],lU.prototype,"useFilledIcon",null);
_.r([_.Vr("liveBadgeData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lU.prototype,"initializeLiveBadgeTimer",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],lU);
_.m(lU,"ytd-thumbnail-overlay-time-status-renderer",function(){if(sPL!==void 0)return sPL;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return sPL=L},{mode:_.Qr("kevlar_poly_si_batch_j035")?1:2});var Els;var vp=function(){return _.e.apply(this,arguments)||this};
_.f(vp,_.e);vp.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"}}}}};
vp.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(L){if(this.hasPlaybackProgressBar)return{percentDurationWatched:L.percentDurationWatched}};
vp.prototype.computeHasPlaybackProgressBar=function(L){return!!L.percentDurationWatched&&L.percentDurationWatched>0};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],vp.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],vp.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.Q("design:type",Boolean)],vp.prototype,"hasPlaybackProgressBar",void 0);
_.r([_.P({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],vp);
_.m(vp,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(Els!==void 0)return Els;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Els=L},{mode:1});var PWN;var pkh=_.p(function(L){var Z=L.data;var N=L.children;var S=function(){return!!Z().doubleStack},u=function(){return!!Z().includeStackHeight};
return _.g("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!Z().experimentEnabled}},_.g(_.F,{cond:Z,
then:function(){var T={};return _.g(_.F7,null,_.g(_.F,{cond:u,then:function(){var W={};return _.g("div",{class:_.qg("ytCollectionsStackSpacer",(W.ytCollectionsStackSpacerDoubleStack=S,W))})}}),_.g("div",{class:_.qg((T.ytCollectionsStackRelativeStack=u,T))},_.g(_.F,{cond:S,
then:function(){var W={};return _.g("div",{class:_.qg("ytCollectionsStackCollectionStack2",function(){return Z().customClassName2ndStack},(W.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return Z().enableResponsiveMode},W)),
style:_.u4({"background-color":function(){return Yaf(Z())}})})}}),_.g("div",{class:_.qg("ytCollectionsStackCollectionStack1",function(){return Z().customClassName1stStack},function(){return USw(Z().thumbnailSize?Z().thumbnailSize:"medium")}),
style:_.u4({"background-color":function(){return Yaf(Z())}})}),N))}}))},"Ca");_.CY(pkh,"yt-collections-stack",{props:{data:_.LK}});var of=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};L.webModernCollections=!1;L.isSearch=!1;L.isDoubleStack=!1;L.thumbnailSize="medium";return L};
_.f(of,_.e);_.t=of.prototype;
_.t.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]]"}}}}}};
_.t.getThumbnailDetails=function(L){if(L!=null&&L.thumbnailRenderer){var Z=L.thumbnailRenderer,N;if((N=Z.playlistVideoThumbnailRenderer)==null?0:N.thumbnail)return Z.playlistVideoThumbnailRenderer.thumbnail;var S;if((S=Z.playlistCustomThumbnailRenderer)==null?0:S.thumbnail)return Z.playlistCustomThumbnailRenderer.thumbnail;L=L.thumbnailRenderer;var u;if((u=L.showCustomThumbnailRenderer)==null?0:u.thumbnail)return L.showCustomThumbnailRenderer.thumbnail}};
_.t.computeOverlayColor=function(L){var Z,N;if((Z=this.getThumbnailDetails(L))==null?0:(N=Z.darkColorPalette)==null?0:N.section2Color)return this.getThumbnailDetails(L).darkColorPalette.section2Color;var S;return(S=this.getThumbnailDetails(L))==null?void 0:S.sampledThumbnailColor};
_.t.computeWebModernCollections=function(L){if(L==null||!L.thumbnailOverlays)return!1;L=_.O(L.thumbnailOverlays);for(var Z=L.next();!Z.done;Z=L.next()){var N=void 0;if((N=Z.value)==null?0:N.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.t.computeNavigationEndpoint=function(L){return hTh(L==null?void 0:L.navigationEndpoint)};
_.gd.Object.defineProperties(of.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var L=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:L==null?void 0:L.sampledThumbnailColor,vibrantColorPalette:L==null?void 0:L.vibrantColorPalette,darkColorPalette:L==null?void 0:L.darkColorPalette,experimentEnabled:!0}}}});
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],of.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],of.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(A6q),_.Q("design:type",Object)],of.prototype,"ytdThumbnailBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],of.prototype,"componentBehavior",void 0);
_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],of.prototype,"watchFeedThumbnail",void 0);_.r([_.Y(),_.Q("design:type",Number)],of.prototype,"customThumbnailSize",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],of.prototype,"hideAria",void 0);_.r([_.Y(),_.Q("design:type",Object)],of.prototype,"data",void 0);_.r([_.Y({computed:"computeOverlayColor(data)"}),_.Q("design:type",Object)],of.prototype,"overlayColor",void 0);
_.r([_.Y({computed:"computeWebModernCollections(data)"}),_.Q("design:type",Object)],of.prototype,"webModernCollections",void 0);_.r([_.Y({computed:"computeNavigationEndpoint(data)"}),_.Q("design:type",Object)],of.prototype,"computedNavigationEndpoint",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],of.prototype,"isSearch",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],of.prototype,"isDoubleStack",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],of.prototype,"thumbnailSize",void 0);_.r([_.w("data","isDoubleStack","thumbnailSize"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],of.prototype,"collectionStack",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],of);
_.m(of,"ytd-playlist-thumbnail",function(){if(PWN!==void 0)return PWN;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return PWN=L},{mode:_.Qr("kevlar_poly_si_batch_j025")?1:2});var zfs;_.CY(_.p(function(L){return _.g("yt-text-view-model",{class:_.qg("ytTextViewModelHost")},_.g(_.qv,{text:function(){return L.data().text}}))},"Da"),"yt-text-view-model",{props:{data:_.LK}});var Rf=function(){var L=_.e.apply(this,arguments)||this;L.noEndpoints=!1;L.amsterdamPostMvp=_.c("web_amsterdam_post_mvp_playlists");L.badges=[];L.transferState="TRANSFER_STATE_UNKNOWN";return L};
_.f(Rf,_.e);_.t=Rf.prototype;_.t.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.t.getMetadata=function(L){if(!L)return[];var Z=[],N=L.shortViewCountText||L.viewCountText;N&&Z.push(_.jM(N));L.publishedTimeText&&Z.push(_.jM(L.publishedTimeText));L.upcomingEventData&&L.upcomingEventData.upcomingEventText&&Z.push(_.FM(_.jM(L.upcomingEventData.upcomingEventText),Number(L.upcomingEventData.startTime)));return Z};
_.t.observeDataForBylineSeparator=function(){this.data&&_.Az(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.t.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.vq(this.metadataColor)};
_.t.getSimpleString=function(L){return _.jM(L)};
_.t.isBylineHidden=function(L){return this.noByline||!((L==null?0:L.longBylineText)||(L==null?0:L.shortBylineText))};
_.t.isMetadataHidden=function(L){var Z;return((Z=this.getMetadata(L))==null?void 0:Z.length)===0};
_.t.isBylineMetadataSeparatorHidden=function(L){return this.isMetadataHidden(L)||!this.shouldShowVideoInfo};
_.t.isLongByline=function(L,Z){return Z&&!(L==null||!L.longBylineText)};
_.gd.Object.defineProperties(Rf.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var L;return this.amsterdamPostMvp&&!((L=this.data)==null||!L.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 L;return!((L=this.data)==null||!L.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Rf.prototype.metadataColorChanged=Rf.prototype.metadataColorChanged;Rf.prototype.observeDataForBylineSeparator=Rf.prototype.observeDataForBylineSeparator;_.r([_.y(_.CD),_.Q("design:type",Object)],Rf.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Rf.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Rf.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Rf.prototype,"noEndpoints",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Rf.prototype,"isSlimShort",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Rf.prototype,"radioMeta",void 0);_.r([_.Y({selector:_.KV}),_.Q("design:type",Object)],Rf.prototype,"isGridViewEnabled",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Rf.prototype,"richMeta",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Rf.prototype,"amsterdamPostMvp",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],Rf.prototype,"noByline",void 0);_.r([_.Y({computed:"isLongByline(data, radioMeta)"}),_.Q("design:type",Boolean)],Rf.prototype,"longByline",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Rf.prototype,"truncateMetadataLine",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Rf.prototype,"miniMode",void 0);_.r([_.Y(),_.Q("design:type",Number)],Rf.prototype,"metadataColor",void 0);
_.r([_.Y(),_.Q("design:type",Array)],Rf.prototype,"badges",void 0);_.r([_.Y({selector:_.Kk,selectorArgs:["data.videoId"]}),_.Q("design:type",String)],Rf.prototype,"transferState",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Rf.prototype,"isDownloading",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Rf.prototype,"typographyBump",void 0);_.r([_.TX("#metadata-line"),_.Q("design:type",HTMLElement)],Rf.prototype,"metadataLine",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Rf.prototype,"observeDataForBylineSeparator",null);_.r([_.iA("metadataColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Rf.prototype,"metadataColorChanged",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Rf.prototype,"shouldShowVideoInfo",null);
_.r([_.w("badges"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Rf.prototype,"inlineBadgeClass",null);_.r([_.w("longByline"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Rf.prototype,"longBylineClass",null);_.r([_.w("data","longByline"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Rf.prototype,"bylineText",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Rf.prototype,"hasAttributedBylineText",null);
_.r([_.w("isGridViewEnabled","data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Rf.prototype,"watchFeedBigThumbs",null);_.r([_.P({is:"ytd-video-meta-block",disableElementRegistration:!0})],Rf);
_.m(Rf,"ytd-video-meta-block",function(){if(zfs!==void 0)return zfs;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return zfs=L},{mode:_.Qr("kevlar_poly_si_batch_j080")?1:2});_.l4("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var cp=function(){var L=_.e.apply(this,arguments)||this;L.displayItemCount=2;L.isBackstagePlaylist=!1;L.isPostCompactPlaylist=!1;L.shouldShowChannelThumbnail=!1;return L};
_.f(cp,_.e);_.t=cp.prototype;_.t.computeFirstVideos=function(L,Z){return L===void 0||Z===void 0?[]:L.slice(0,Z)};
_.t.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var L=this.data.thumbnailRenderer;L.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",L.playlistVideoThumbnailRenderer.thumbnail);L.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",L.playlistCustomThumbnailRenderer.thumbnail)}};
_.t.computeThumbnailHeight=function(L,Z,N,S,u){return S?u==="BIG"?280:u==="MASSIVE"?337:234:N?240:Z?72:L?118:138};
_.t.computeThumbnailWidth=function(L,Z,N,S,u){return S?u==="MEDIUM"?450:u==="BIG"?500:u==="MASSIVE"?600:420:N?360:Z?128:L?210:246};
_.t.computeUseBiggerThumbs=function(L){return L&&_.c("enable_desktop_search_bigger_thumbs")};
_.t.computeShouldShowChannelThumbnail=function(L,Z){return L&&!(Z==null||!Z.channelThumbnail)};
_.gd.Object.defineProperties(cp.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
cp.prototype.dataChanged=cp.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Lb),_.Q("design:type",Object)],cp.prototype,"ytdLockupBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],cp.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],cp.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],cp.prototype,"displayItemCount",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],cp.prototype,"isBackstagePlaylist",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],cp.prototype,"isPostCompactPlaylist",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],cp.prototype,"isSearch",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.Q("design:type",Boolean)],cp.prototype,"useBiggerThumbs",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.vW("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],cp.prototype,"biggerThumbsStyle",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],cp.prototype,"isDownloads",void 0);_.r([_.Y({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.Q("design:type",Object)],cp.prototype,"shouldShowChannelThumbnail",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cp.prototype,"dataChanged",null);
_.r([_.w("isSearch"),_.Q("design:type",String),_.Q("design:paramtypes",[])],cp.prototype,"stackThumbnailSize",null);_.r([_.P({is:"ytd-playlist-renderer",disableElementRegistration:!0})],cp);
_.m(cp,"ytd-playlist-renderer",function(){if(nlN===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);nlN=L}L=nlN;return L},{mode:1});var mDh;var JgY;var nS=function(){var L=_.e.apply(this,arguments)||this;L.startX=0;return L};
_.f(nS,_.e);nS.prototype.onEndpointMouseDown=function(L){this.startX=L.clientX};
nS.prototype.onEndpointClick=function(L){this.startX!==L.clientX&&(L.preventDefault(),L.stopPropagation())};
nS.prototype.computeObjectFit=function(L){return L==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||L==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||L==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
nS.prototype.computeCardStyle=function(L){return L?L.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.gd.Object.defineProperties(nS.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?void 0:(Z=L.searchRefinementCardRendererStyle)==null?void 0:Z.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}}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],nS.prototype,"data",void 0);_.r([_.Y({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.Q("design:type",Number)],nS.prototype,"objectFit",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.Q("design:type",String)],nS.prototype,"cardStyle",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],nS.prototype,"roundContainer",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],nS.prototype,"isAlbumCard",null);_.r([_.w("data","isAlbumCard"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],nS.prototype,"collectionStack",null);_.r([_.P({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],nS);
_.m(nS,"ytd-search-refinement-card-renderer",function(){if(JgY!==void 0)return JgY;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return JgY=L},{mode:1});var CWs;var KS=function(){var L=_.e.apply(this,arguments)||this;L.isRichGrid=!1;return L};
_.f(KS,_.e);_.r([_.Y(),_.Q("design:type",Object)],KS.prototype,"data",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],KS.prototype,"componentBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],KS.prototype,"ytdReduxBehavior",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],KS.prototype,"isRichGrid",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.vv}),_.Q("design:type",Boolean)],KS.prototype,"miniMode",void 0);
_.r([_.P({is:"ytd-game-details-renderer",disableElementRegistration:!0})],KS);
_.m(KS,"ytd-game-details-renderer",function(){if(CWs!==void 0)return CWs;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return CWs=L},{mode:1});var rgt;var QPM;var fS=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return L};
_.f(fS,_.e);_.t=fS.prototype;_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.currentStateData=function(L){var Z=L||this.data;return Z&&Z.states&&Z.currentStateId!=null?Z.states.find(function(N){return N.stateId===Z.currentStateId})||null:null};
_.t.currentStateRendererData=function(L){return(L=this.currentStateData(L))&&L.state&&L.state.buttonRenderer?L.state.buttonRenderer:null};
_.t.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())};
_.t.computeButtonIcon=function(L){L=this.currentStateRendererData(L);var Z;return(L==null?0:(Z=L.icon)==null?0:Z.iconType)?L.icon.iconType.toLowerCase():null};
_.t.computeAccessibility=function(L){return(L=this.currentStateRendererData(L))&&L.accessibilityData?L.accessibilityData.accessibilityData||null:null};
_.t.computeButtonClass=function(L){var Z=this.currentStateRendererData(L);if(!Z)return"";L="";var N=Z.style;N&&(L+=N.toLowerCase().replace(/_/g,"-")+" ");(Z=Z.size)&&(L+=Z.toLowerCase().replace(/_/g,"-")+" ");return L.trim()};
_.t.computeServiceEndpoint=function(L){if(!L)return null;var Z=L&&L.serviceEndpoint,N=this.get("command.commandMetadata.webCommandMetadata.sendPost",L);return Z?Z:N&&L.command?L.command:null};
_.t.computeBellMenuItemParams=function(L){var Z;L=(Z=_.n(L==null?void 0:L.command,_.q2))==null?void 0:Z.commands;if(!L||L.length===0)return null;Z=_.n(L[0],_.aw);var N,S;return(Z==null?0:(N=Z.popup)==null?0:(S=N.menuPopupRenderer)==null?0:S.items)?Z.popup.menuPopupRenderer.items.map(function(u){return u.menuServiceItemRenderer.trackingParams}):null};
_.t.handleBellMenuOpenSelectedAction=function(L){var Z=L.trackingParams,N=this.computeBellMenuItemParams(this.data);this.data&&Z&&N&&N.includes(Z)&&this.ytRenderButtonBehavior._setButtonIcon(L.icon.iconType.toLowerCase())};
_.t.onYtServiceRequestCompleted=function(L,Z){(L=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",Z))&&this.set("data",L)};
_.t.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.t.resetState=function(){this.set("data.currentStateId",3)};
_.t.onYtButtonTapHandler=function(){if(this.data){var L=this.currentStateRendererData(this.data);L&&this.ytRendererBehavior.logExplicitClick(L)}};
fS.prototype.onYtServiceRequestError=fS.prototype.onYtServiceRequestError;fS.prototype.onYtServiceRequestCompleted=fS.prototype.onYtServiceRequestCompleted;fS.prototype.stateChanged=fS.prototype.stateChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],fS.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.y(YX.YtRenderButtonBehavior),_.Q("design:type",Object)],fS.prototype,"ytRenderButtonBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],fS.prototype,"data",void 0);_.r([_.Vr("data","data.currentStateId"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fS.prototype,"stateChanged",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],fS.prototype,"onYtServiceRequestCompleted",null);_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],fS.prototype,"onYtServiceRequestError",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],fS);
_.m(fS,"ytd-subscription-notification-toggle-button-renderer",function(){if(QPM!==void 0)return QPM;var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return QPM=L},{mode:1});var XkV;var kC=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};L.tapHandler=function(){if(L.data){var Z=L.currentStateRendererData();Z&&L.ytRendererBehavior.logExplicitClick(Z)}};
return L};
_.f(kC,_.e);_.t=kC.prototype;_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.currentStateData=function(){var L=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(Z){return Z.stateId===L.data.currentStateId})||null:null};
_.t.currentStateRendererData=function(){var L=this.currentStateData();return L&&L.state&&L.state.buttonRenderer?L.state.buttonRenderer:null};
_.t.computeAccessibilityLabel=function(){var L,Z,N;return(L=this.currentStateRendererData())==null?void 0:(Z=L.accessibilityData)==null?void 0:(N=Z.accessibilityData)==null?void 0:N.label};
_.t.computeBellMenuItemParams=function(){var L,Z,N=(Z=_.n((L=this.data)==null?void 0:L.command,_.q2))==null?void 0:Z.commands;if(!N||N.length===0)return null;L=_.n(N[0],_.aw);var S,u;return(L==null?0:(S=L.popup)==null?0:(u=S.menuPopupRenderer)==null?0:u.items)?L.popup.menuPopupRenderer.items.map(function(T){return T.menuServiceItemRenderer.trackingParams}):null};
_.t.handleBellMenuOpenSelectedAction=function(L){var Z=L.trackingParams,N=this.computeBellMenuItemParams();if(this.data&&Z&&N&&N.includes(Z)&&(L==null||!L.isDisabled)){var S;((S=_.n(L.serviceEndpoint,_.ZW))==null?void 0:S.signal)!=="CLIENT_SIGNAL"&&(this.icon=L.icon.iconType)}};
_.t.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.t.onYtServiceRequestCompleted=function(L,Z){if(L=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",Z))this.icon=void 0,this.set("data",L)};
_.t.onYtServiceRequestError=function(){this.icon=void 0};
_.gd.Object.defineProperties(kC.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var L=this.data,Z=this.textLabel,N=this.hostElement,S=this.computeAccessibilityLabel(),u=this.tapHandler,T=this.isOverlay?"overlay":"mono",W=(L==null?0:L.disableButton)?"disabled":"active";Z=Z?_.oX(Z):void 0;return{style:T,type:"tonal",state:W,size:"M",focused:!1,formattedButtonText:Z,iconPosition:"leading-trailing",onTap:IoB(L,u,N),accessibilityLabel:S}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var L=this.currentStateRendererData(),Z,N,S=(N=this.icon)!=null?N:L==null?void 0:(Z=L.icon)==null?void 0:Z.iconType;if(S)return _.Bh(S)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=(L=this.data)==null?void 0:(Z=L.secondaryIcon)==null?void 0:Z.iconType;if(N)return _.Bh(N)}}});
kC.prototype.onYtServiceRequestError=kC.prototype.onYtServiceRequestError;kC.prototype.onYtServiceRequestCompleted=kC.prototype.onYtServiceRequestCompleted;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],kC.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],kC.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],kC.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],kC.prototype,"textLabel",void 0);
_.r([_.Y(),_.Q("design:type",String)],kC.prototype,"icon",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],kC.prototype,"isOverlay",void 0);_.r([_.w("data.*","textLabel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],kC.prototype,"computedButtonShape",null);_.r([_.w("data.*","icon"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],kC.prototype,"computedIcon",null);_.r([_.w("computedIcon"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],kC.prototype,"computedAnimateIcon",null);
_.r([_.w("data.*"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],kC.prototype,"computedSecondaryIcon",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],kC.prototype,"onYtServiceRequestCompleted",null);_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],kC.prototype,"onYtServiceRequestError",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],kC);
_.m(kC,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(XkV!==void 0)return XkV;var L=document.createElement("template");_.k(L,'\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 XkV=L},{mode:_.Qr("kevlar_poly_si_batch_j081")?1:2});var AgO;_.CY(Ao0,"yt-animated-action",{props:{backgroundLottieRef:_.LK,foregroundLottieRef:_.LK,wrapperClass:_.LK,disableAnimation:_.LK},unsafeExternallySettableAttributes:new Set(["key"])});var yw=function(){var L=_.e.apply(this,arguments)||this;L.animatedActionEnabled=_.c("web_animated_actions");L.foregroundLottieRef={};L.backgroundLottieRef={};L.forceIconOnly=!1;L.showTextWhileAnimating=!1;L.keyboardFocused=!1;L.isAnimating=!1;L.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return L};
_.f(yw,_.e);_.t=yw.prototype;_.t.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.t.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]]"}}}}}};
_.t.attached=function(){this.keyboardFocused=!1};
_.t.onYtServiceRequestSent=function(L,Z){(this.get("endpoint.subscribeEndpoint",Z)||this.get("endpoint.unsubscribeEndpoint",Z))&&this.updateSubscriptionState(!this.subscribed)};
_.t.onYtServiceRequestCompleted=function(L,Z){(L=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",Z.data))&&this.bellButton&&(this.bellButton.data=L)};
_.t.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Ld(this.hostElement)};
_.t.onPlayerSubscribe=function(L){this.isCompactRed()||L!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.t.onPlayerUnsubscribe=function(L){this.isCompactRed()||L!==this.data.channelId||this.updateSubscriptionState(!1)};
_.t.handleUpdateSubscribeButtonAction=function(L){L=_.n(L,Q1Y);var Z;L&&L.channelId===((Z=this.data)==null?void 0:Z.channelId)&&this.updateSubscriptionState(!!L.subscribed)};
_.t.computeButtonStyle=function(L){return this.get("style.styleType",L)||null};
_.t.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.t.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.t.updateSubscriptionState=function(L){if(L!==this.subscribed){this.set("data.subscribed",L);var Z,N=(Z=this.data)==null?void 0:Z.subscribedEntityKey;N&&this.ytdReduxBehavior.dispatch(_.Mr("subscriptionStateEntity",N,{key:N,subscribed:L}));this.isCompactRed()||_.QT(this.hostElement,"yt-subscription-changed",L);L||(_.XJ(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!L),L&&this.hasBellButton&&this.startAnimation())}};
_.t.startAnimation=function(){var L=this;if(!this.isAnimating){var Z=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var N;(N=this.backgroundLottieRef.lottieEl)==null||N.goToAndPlay(0);var S;(S=this.foregroundLottieRef.lottieEl)==null||S.goToAndPlay(0);_.ro.addJob(function(){L.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.ro.addJob(function(){L.updateContainerToFitContent(!!L.subscribed,!0)},2,1500);
_.ro.addJob(function(){L.isAnimating=!1},2,Z)}};
_.t.maybeAnimateBellIcon=function(){var L=_.XB(this.hostElement).querySelector("yt-animated-icon");if(L){var Z;(Z=L.animationRef.lottieEl)==null||Z.goToAndPlay(0)}};
_.t.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.t.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.t.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var L;this.unsubscribedWidth=(L=this.subscribeButtonShape)==null?void 0:L.getBoundingClientRect().width}var Z;this.subscribedWidth=(Z=this.bellButton)==null?void 0:Z.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.t.updateContainerToFitContent=function(L,Z){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(L?(L=this.subscribedWidth,Z=this.isAnimating&&!Z,this.subscribedIconOnlyWidth===void 0||Z||(L=this.subscribedIconOnlyWidth),this.hostElement.style.width=L+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.t.clearContainerSize=function(){this.hostElement.style.width=""};
_.t.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.t.maybeSetSubscribedButtonIconOnlyWidth=function(){var L=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 Z;L.subscribedIconOnlyWidth=(Z=L.bellButton)==null?void 0:Z.getBoundingClientRect().width;requestAnimationFrame(function(){if(L.bellButton){var N;L.bellButton.textLabel=
(N=L.data)==null?void 0:N.subscribedButtonText}})})))};
_.gd.Object.defineProperties(yw.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 L;return(L=this.data)==null?void 0:L.subscribedButtonText}var Z;return this.forceIconOnly?void 0:(Z=this.data)==null?void 0:Z.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=((L=this.data)==null?void 0:(Z=L.timedAnimationData)==null?void 0:Z.animationTiming)||[];return{uniqueId:"subscribe",timings:N,enabled:N.length>0&&!this.subscribed,experimentEnabled:N.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var L;return!this.subscribed&&((L=this.data)==null?void 0:L.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 L={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var Z=L.renderer;var N=L.element;var S=L.subscribed;var u=L.commandController;var T=L.isOverlay;L=L.stopPropagation;var W=skG(Z,S);T&&(W.style="overlay");T=Object;var V=T.assign,M;a:switch((M=Z.style)==null?void 0:M.styleType){case "COMPACT_GRAY":case "COMPACT_RED":M={size:"S"};break a;default:M={size:"M"}}var G=hgh(Z,
S);var D=(D=S?Z.subscribedButtonText:Z.unsubscribedButtonText)?_.oX(D):void 0;return V.call(T,{},W,M,{focused:!1,toggled:S,accessibilityLabel:G,formattedButtonText:D,onTap:aof(Z,S,N,u,L)})}}}});
yw.prototype.onMouseDown=yw.prototype.onMouseDown;yw.prototype.onDataChanged=yw.prototype.onDataChanged;yw.prototype.observedSubscribed=yw.prototype.observedSubscribed;yw.prototype.onYtServiceRequestCompleted=yw.prototype.onYtServiceRequestCompleted;yw.prototype.onYtServiceRequestSent=yw.prototype.onYtServiceRequestSent;yw.prototype.maybeUpdateBellButtonText=yw.prototype.maybeUpdateBellButtonText;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],yw.prototype,"ytComponentBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],yw.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],yw.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],yw.prototype,"data",void 0);
_.r([_.Y({selectorArgs:["data.subscribedEntityKey"],selector:ZgA}),_.Q("design:type",Object)],yw.prototype,"subscriptionStateEntity",void 0);_.r([_.Y({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],yw.prototype,"subscribed",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yw.prototype,"branded",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yw.prototype,"animatedActionEnabled",void 0);
_.r([_.Y(),_.Q("design:type",Object)],yw.prototype,"foregroundLottieRef",void 0);_.r([_.Y(),_.Q("design:type",Object)],yw.prototype,"backgroundLottieRef",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yw.prototype,"overlayButton",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.Q("design:type",Object)],yw.prototype,"buttonStyle",void 0);_.r([_.Y(),_.Q("design:type",Object)],yw.prototype,"forceIconOnly",void 0);
_.r([_.Y(),_.Q("design:type",Object)],yw.prototype,"showTextWhileAnimating",void 0);_.r([_.Y({value:function(){return!!_.GR().resolve(_.gv(_.VG))&&_.c("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Q("design:type",Boolean)],yw.prototype,"useKeyboardFocused",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yw.prototype,"keyboardFocused",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yw.prototype,"isAnimating",void 0);_.r([_.w("data.notificationPreferenceButton.*"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],yw.prototype,"hasBellButton",null);
_.r([_.iA("subscribedButtonText"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yw.prototype,"maybeUpdateBellButtonText",null);_.r([_.w("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],yw.prototype,"subscribedButtonText",null);_.r([_.w("data.timedAnimationData.animationTiming","subscribed"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],yw.prototype,"smartimationSettings",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],yw.prototype,"subscribeButtonHidden",null);_.r([_.Y({reflectToAttribute:!0}),_.w("subscribed","hasBellButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],yw.prototype,"subscribeButtonInvisible",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("subscribed"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],yw.prototype,"unsubscribeButtonHidden",null);_.r([_.TX("ytd-subscription-notification-toggle-button-renderer-next"),_.Q("design:type",Object)],yw.prototype,"bellButton",void 0);_.r([_.TX("#subscribe-button-shape"),_.Q("design:type",HTMLElement)],yw.prototype,"subscribeButtonShape",void 0);
_.r([_.w("overlayButton","subscribed","data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],yw.prototype,"buttonShape",null);_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],yw.prototype,"onYtServiceRequestSent",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],yw.prototype,"onYtServiceRequestCompleted",null);
_.r([_.iA("subscribed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yw.prototype,"observedSubscribed",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yw.prototype,"onDataChanged",null);_.r([_.SA("mousedown"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],yw.prototype,"onMouseDown",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],yw);
_.m(yw,"ytd-subscribe-button-renderer",function(){if(AgO!==void 0)return AgO;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return AgO=L},{mode:1});var wi=function(){var L=_.e.apply(this,arguments)||this;L.isRichGrid=!1;return L};
_.f(wi,_.e);wi.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"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],wi.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],wi.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wi.prototype,"isRichGrid",void 0);_.r([_.P({is:"ytd-game-card-renderer",disableElementRegistration:!0})],wi);
_.m(wi,"ytd-game-card-renderer",function(){if(rgt!==void 0)return rgt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return rgt=L},{mode:1});var Ul={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.c("defer_menus")&&!ybY?0:void 0,waitForSignal:"eocs"};var H_t;var BNV;var YC=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return L};
_.f(YC,_.e);_.t=YC.prototype;_.t.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.t.onSeriesReminderStateEntityChange=function(){var L,Z,N;((L=this.eventReminderStateEntity)==null?0:L.key)&&((Z=this.seriesReminderStateEntity)==null?void 0:Z.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((N=this.eventReminderStateEntity)==null?void 0:N.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Mr("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.t.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.t.onYtServiceRequestError=function(){var L;this.updateReminderStateEntitiesFromButtonState((L=this.data)==null?void 0:L.currentState)};
_.t.handleUpdateUpcomingEventReminderButtonStateCommand=function(L){if(L=_.n(L,Q2s)){var Z,N=(Z=this.data)==null?void 0:Z.targetId;N&&L.targetId===N&&_.Uk(this.updateReminderStateEntitiesFromButtonState.bind(this,L.state))}};
_.t.getButtonStateFromReminderState=function(){var L;if(((L=this.seriesReminderStateEntity)==null?void 0:L.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var Z;if(((Z=this.eventReminderStateEntity)==null?void 0:Z.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var N,S;if(((N=this.seriesReminderStateEntity)==null?void 0:N.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((S=this.eventReminderStateEntity)==
null?void 0:S.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var u;return(u=this.data)==null?void 0:u.currentState};
_.t.updateReminderStateEntitiesFromButtonState=function(L){if(L){switch(L){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":L="UPCOMING_EVENT_REMINDER_STATE_NONE";var Z="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":L="UPCOMING_EVENT_REMINDER_STATE_SINGLE";Z="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":L="UPCOMING_EVENT_REMINDER_STATE_NONE";Z="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var N;
((N=this.eventReminderStateEntity)==null?0:N.key)&&this.ytdReduxBehavior.dispatch(_.Mr("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:L})));var S;((S=this.seriesReminderStateEntity)==null?0:S.key)&&this.ytdReduxBehavior.dispatch(_.Mr("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:Z})))}};
_.gd.Object.defineProperties(YC.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var L=this.getButtonStateFromReminderState(),Z,N;if(L&&((Z=this.data)==null?0:(N=Z.states)==null?0:N.length))for(Z=_.O(this.data.states),N=Z.next();!N.done;N=Z.next()){N=N.value;var S=void 0;if(((S=_.n(N,XoV))==null?void 0:S.state)===L)return _.n(N,XoV)}}}});
YC.prototype.onYtServiceRequestError=YC.prototype.onYtServiceRequestError;YC.prototype.onYtServiceRequestCompleted=YC.prototype.onYtServiceRequestCompleted;YC.prototype.onSeriesReminderStateEntityChange=YC.prototype.onSeriesReminderStateEntityChange;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],YC.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],YC.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],YC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],YC.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],YC.prototype,"data",void 0);_.r([_.Y({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:SaA}),_.Q("design:type",Object)],YC.prototype,"eventReminderStateEntity",void 0);
_.r([_.Y({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(L,Z){return _.Lk(L.entities,"sportsSeriesReminderStateEntity",Z)}}),
_.Q("design:type",Object)],YC.prototype,"seriesReminderStateEntity",void 0);_.r([_.w("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],YC.prototype,"currentButtonStateRenderer",null);_.r([_.iA("seriesReminderStateEntity"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],YC.prototype,"onSeriesReminderStateEntityChange",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],YC.prototype,"onYtServiceRequestCompleted",null);_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],YC.prototype,"onYtServiceRequestError",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],YC);
_.m(YC,"ytd-upcoming-event-reminder-button-renderer",function(){if(BNV!==void 0)return BNV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
return BNV=L},{mode:1});var xDl;var eV=function(){return _.e.apply(this,arguments)||this};
_.f(eV,_.e);eV.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.gd.Object.defineProperties(eV.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(_.c("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],eV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],eV.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],eV.prototype,"shelfDismissal",void 0);_.r([_.w("data.responseText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],eV.prototype,"text",null);
_.r([_.w("data.responseText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],eV.prototype,"textAriaLabel",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],eV);
_.m(eV,"ytd-notification-multi-action-renderer",function(){if(xDl!==void 0)return xDl;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return xDl=L},{mode:1});var qQq;var If=function(){return _.e.apply(this,arguments)||this};
_.f(If,_.e);If.prototype.ready=function(){var L=this;_.QJ(this.hostElement).querySelector("#undo").addEventListener("tap",function(){L.onUndoTap()})};
If.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.GR().resolve(_.$s).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],If.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],If);
_.m(If,"ytd-notification-text-renderer",function(){if(qQq!==void 0)return qQq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return qQq=L},{mode:1});var L9t;var di=function(){var L=_.e.apply(this,arguments)||this;L.mouseOverDelayJobId=0;L.fadeInImageDelayJobId=0;L.startTimeMs=-1;L.loadingStartTimeMs=-1;L.loadingEndTimeMs=-1;L.hasVideoPreview=!1;return L};
_.f(di,_.e);_.t=di.prototype;_.t.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.t.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.t.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.t.showThumbnail=function(){var L=this;this.csn=_.RH();_.Kq("fmth");_.ro.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.H9(_.ro,function(){L.loadingStartTimeMs=(0,_.GT)();var Z=_.QJ(L.hostElement).querySelector("#thumbnail");Z.complete?L.displayMouseOverImage():Z.addEventListener("load",_.Nd(L,L.displayMouseOverImage))},150):_.Az(_.QJ(this.hostElement).querySelector("#play"),"show",!0)};
_.t.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.t.onTap=function(){this.removeVideoPreview()};
_.t.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var L=this.videoId,Z=this.csn,N=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,S=this.startTimeMs,u=this.hasVideoPreview,T=_.Mg(this.trackingParams),W={isMovingThumbnail:u};u&&S>0&&(N>0&&(W.movingThumbnailLoadingDurationMs=Math.round(N)),W.durationHoveredMs=Math.round((0,_.GT)()-S));L&&(W.videoId=L);_.jz(Z,T,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:W});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.t.removeVideoPreview=function(){_.ro.cancelJob(this.mouseOverDelayJobId);_.ro.cancelJob(this.fadeInImageDelayJobId);var L=_.QJ(this.hostElement).querySelector("#thumbnail");_.Az(L,"fade-in",!1);L.removeEventListener("load",_.Nd(this,this.displayMouseOverImage));L=_.QJ(this.hostElement).querySelector("#play");_.Az(L,"fade-in",!1);_.Az(L,"show",!1)};
_.t.displayMouseOverImage=function(){var L=_.QJ(this.hostElement).querySelector("#thumbnail"),Z=_.QJ(this.hostElement).querySelector("#play");this.isImageAvailable(L)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.GT)(),this.startTimeMs=(0,_.GT)(),this.fadeInImageDelayJobId=_.H9(_.ro,function(){_.Az(L,"fade-in",!0)},50)):_.Az(Z,"fade-in",!0)};
_.t.computeThumbnail=function(L,Z){var N;L&&L.movingThumbnailDetails&&L.movingThumbnailDetails.thumbnails&&Z?N=_.r$(L.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):N=Z?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(N)return _.mY(N)};
_.t.isImageAvailable=function(L){return!(!L.src||L.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||L.naturalWidth===120)};
di.prototype.onTap=di.prototype.onTap;di.prototype.dataChanged=di.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],di.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],di.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],di.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],di.prototype,"csn",void 0);_.r([_.Y(),_.Q("design:type",Object)],di.prototype,"trackingParams",void 0);
_.r([_.Y(),_.Q("design:type",String)],di.prototype,"videoId",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],di.prototype,"isAttachedAndDataSet",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],di.prototype,"dataChanged",null);_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],di.prototype,"onTap",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],di);
_.m(di,"ytd-moving-thumbnail-renderer",function(){if(L9t!==void 0)return L9t;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return L9t=L},{mode:1});var ZCY;_.Bt=function(L){this.hostElement=L;this.eventSink=null;this.eventList=[]};
_.Bt.prototype.shouldForward=function(){var L,Z;return(Z=(L=this.eventSink)==null?void 0:L.isConnected)!=null?Z:document.body.contains(this.eventSink)};
_.Bt.prototype.start=function(L,Z){this.eventSink&&this.stop();for(var N=0;N<L.length;N++)this.hostElement.addEventListener(L[N],_.Nd(this,this.forwardEvent));var S;this.eventSink=(S=Z.hostElement)!=null?S:Z;this.eventList=L};
_.Bt.prototype.stop=function(){for(var L=0;L<this.eventList.length;L++)this.hostElement.removeEventListener(this.eventList[L],_.Nd(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Bt.prototype.forwardEvent=function(L,Z){this.shouldForward()&&(L.stopPropagation(),this.eventSink instanceof Element?_.QT(this.eventSink,L.type,Z):_.Q7(new _.sr("eventSink is not an element")))};_.af={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Bt(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(L,Z){this.forwarder_.start(L,Z)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var hO=function(){return _.e.apply(this,arguments)||this};
_.f(hO,_.e);_.t=hO.prototype;_.t.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=_.X7("HTML_DIR")==="rtl"?"right":"left"};
_.t.dataChanged=function(){this.popupOpen=!1};
_.t.computeAriaLabel=function(L){return _.n(L,gFN).label};
_.t.onTap=function(L){L.stopPropagation();L.preventDefault();this.data.command&&_.GR().resolve(_.$s).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.t.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.t.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
hO.prototype.onPopupClosed=hO.prototype.onPopupClosed;hO.prototype.onPopupOpened=hO.prototype.onPopupOpened;hO.prototype.onTap=hO.prototype.onTap;hO.prototype.dataChanged=hO.prototype.dataChanged;_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],hO.prototype,"eventForwardingBehavior",void 0);_.r([_.y(_.pO),_.Q("design:type",Object)],hO.prototype,"ironButtonState",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],hO.prototype,"componentBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],hO.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,value:-1}),_.Q("design:type",Number)],hO.prototype,"tabindex",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.Q("design:type",Object)],hO.prototype,"ariaLabel",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],hO.prototype,"disableTooltips",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],hO.prototype,"popupOpen",void 0);
_.r([_.Y(),_.Q("design:type",Element)],hO.prototype,"eventSink",void 0);_.r([_.TX("#tooltip"),_.Q("design:type",Object)],hO.prototype,"tooltip",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hO.prototype,"dataChanged",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],hO.prototype,"onTap",null);
_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hO.prototype,"onPopupOpened",null);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hO.prototype,"onPopupClosed",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],hO);
_.m(hO,"ytd-thumbnail-overlay-button-renderer",function(){if(ZCY!==void 0)return ZCY;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return ZCY=L},{mode:1});var NhN;var sl=function(){return _.e.apply(this,arguments)||this};
_.f(sl,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],sl.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],sl.prototype,"disableAnimation",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],sl.prototype,"rounded",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],sl.prototype,"transparentBackground",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],sl.prototype,"noPadding",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],sl);
_.m(sl,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(NhN!==void 0)return NhN;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return NhN=L},{mode:1});var SHI;var jV=function(){return _.e.apply(this,arguments)||this};
_.f(jV,_.e);jV.prototype.computeIconPosition=function(L){return this.get("iconPosition",L)||null};
jV.prototype.computeIconStyle=function(L){return this.get("iconStyle",L)||null};
jV.prototype.computeIsIconStyleFilled=function(L){if(!L)return!1;var Z;return L.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((Z=L.icon)==null?void 0:Z.iconType)==="ERROR_BLACK"};
_.r([_.Y(),_.Q("design:type",Object)],jV.prototype,"data",void 0);_.r([_.Y({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],jV.prototype,"iconPosition",void 0);_.r([_.Y({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],jV.prototype,"iconStyle",void 0);_.r([_.Y({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],jV.prototype,"iconStyleFilled",void 0);
_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],jV);
_.m(jV,"ytd-thumbnail-overlay-icon-renderer",function(){if(SHI!==void 0)return SHI;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return SHI=L},{mode:1});var iC5;var El=function(){return _.e.apply(this,arguments)||this};
_.f(El,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],El.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],El.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],El);
_.m(El,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(iC5!==void 0)return iC5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return iC5=L},{mode:1});var uS0;var Pp=function(){var L=_.e.apply(this,arguments)||this;L.isPreviewLoading=!1;return L};
_.f(Pp,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Pp.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Pp.prototype,"isPreviewLoading",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Pp);
_.m(Pp,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(uS0!==void 0)return uS0;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return uS0=L},{mode:1});var Ths;var pS=function(){return _.e.apply(this,arguments)||this};
_.f(pS,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],pS.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],pS);
_.m(pS,"ytd-thumbnail-overlay-pinking-renderer",function(){if(Ths!==void 0)return Ths;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Ths=L},{mode:1});var tI0;var zt=function(){var L=_.e.apply(this,arguments)||this;L.disableTooltips=!1;L.isLoading=!1;L.useExpandableTooltip=!1;L.toggled=!1;L.hovered=!1;L.mouseoverDelayJobId=0;L.toggleDelayJobId=0;L.expandAnimationDelayJobId=0;return L};
_.f(zt,_.e);_.t=zt.prototype;_.t.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");_.QJ(this.hostElement).querySelector("#tooltip").position=_.X7("HTML_DIR")==="rtl"?"right":"left"};
_.t.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.ro.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.ro.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.ro.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.t.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.ro.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.ro.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.ro.cancelJob(this.expandAnimationDelayJobId)};
_.t.computeIcon=function(L,Z,N){return(L=N?Z:L)&&L.iconType?_.Bh(L.iconType):void 0};
_.t.computeAriaLabel=function(L,Z,N){return _.n(N?Z:L,gFN).label};
_.t.computeTooltip=function(L,Z,N){return N?Z:L};
_.t.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.t.computeIconOnHover=function(L,Z){if((L==null?0:L.iconType)&&!Z)return _.Bh(L.iconType)};
_.t.onTap=function(L){var Z=this;L.stopPropagation();L.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(L=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(L),this.useExpandableTooltip&&(this.toggleDelayJobId=_.H9(_.ro,function(){Z.hovered=!1;Z.data&&!Z.data.toggledServiceEndpoint&&(Z.expandAnimationDelayJobId=_.H9(_.ro,function(){Z.set("data.isToggled",
!1)},200))},2E3))};
_.t.onMouseenter=function(){var L=this;this.mouseoverDelayJobId=_.H9(_.ro,function(){L.hovered=!0},300)};
_.t.onMouseleave=function(){_.ro.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.t.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.t.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.t.onServiceRequestCompleted=function(L,Z){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(Z)||this.set("data.isToggled",!this.data.isToggled)};
_.t.serviceRequestWasSuccessful=function(L){return _.n(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.Ac)?L.data.status==="STATUS_SUCCEEDED":!0};
zt.prototype.onServiceRequestCompleted=zt.prototype.onServiceRequestCompleted;zt.prototype.onPopupClosed=zt.prototype.onPopupClosed;zt.prototype.onPopupOpened=zt.prototype.onPopupOpened;zt.prototype.onMouseleave=zt.prototype.onMouseleave;zt.prototype.dataChanged=zt.prototype.dataChanged;_.r([_.y(_.pO),_.Q("design:type",Object)],zt.prototype,"ironButtonState",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],zt.prototype,"ytComponentBehavior",void 0);
_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],zt.prototype,"ytEventForwardingBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],zt.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.Q("design:type",Object)],zt.prototype,"ariaLabel",void 0);_.r([_.Y(),_.Q("design:type",Object)],zt.prototype,"disableTooltips",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],zt.prototype,"popupOpen",void 0);_.r([_.Y(),_.Q("design:type",Object)],zt.prototype,"isLoading",void 0);_.r([_.Y(),_.Q("design:type",Element)],zt.prototype,"eventSink",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],zt.prototype,"useExpandableTooltip",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.Q("design:type",Object)],zt.prototype,"toggled",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],zt.prototype,"hovered",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.Q("design:type",Object)],zt.prototype,"iconOnHover",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zt.prototype,"dataChanged",null);
_.r([_.SA("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zt.prototype,"onMouseleave",null);_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zt.prototype,"onPopupOpened",null);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zt.prototype,"onPopupClosed",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],zt.prototype,"onServiceRequestCompleted",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],zt);
_.m(zt,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(tI0!==void 0)return tI0;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return tI0=L},{mode:_.Qr("kevlar_poly_si_batch_j053")?1:2});var OCQ;var W9l=_.p(function(L){var Z=L.data;var N=L.thumbnailSize;var S=function(){return Z().enableSegmentView};
return _.g("yt-thumbnail-overlay-progress-bar-view-model",{class:_.qg("ytThumbnailOverlayProgressBarHost",function(){return jkw(N==null?void 0:N())})},_.g(_.F,{cond:S,
then:function(){return _.g("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.g("div",{class:_.D7("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+Z().startPercent+"%"}}),_.g("div",{class:_.D7("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+Z().segmentDurationPercent+"%"}},_.g("div",{class:_.D7("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.g("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.g("div",null," ",function(){return Z().segmentLabel})),_.g("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.g("div",{class:_.D7("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.g(_.F,{cond:function(){return!S()&&Z().startPercent},
then:function(){var u={};return _.g("div",{class:_.D7("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(u.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.c("web_enable_modern_progress_bar_overlay"),u))},_.g("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+Z().startPercent+"%"}}))}}))},"Ea");
W9l.idomCompat=!0;var VIq=_.p(function(L){var Z=_.SC(),N=_.VB(function(u){var T,W,V;a:{var M=(T=L.data())==null?void 0:T.animationActivationTargetId;T=((W=L.data())==null?void 0:W.animationActivationEntityKey)||"";W=(V=L.data())==null?void 0:V.animationActivationEntitySelectorType;if(T&&M)switch(W){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":u=_.LV(u,T);V=_.GR().resolve(_.gv(_.yk));M=!!(u&&u.videoId===M&&(V==null?0:V.isMiniplayerActive()));M={activated:M,playAnimation:M&&u.playerState==="PLAYER_STATE_PLAYING"};
break a}M=void 0}return M});
_.ph(function(){var u;if((u=N())==null?0:u.activated){var T;if((T=N())==null?0:T.playAnimation){var W;(W=Z.lottieEl)==null||W.goToAndPlay(0)}else{var V;(V=Z.lottieEl)==null||V.goToAndStop(0)}}},"DbQiXd");
var S=function(){var u,T=!((u=N())==null||!u.activated);if(L.data()){u=L.data();var W=void 0;u.icon&&(W=_.TOG(u.icon),W=gAL(W));var V=void 0,M;if((M=u.backgroundColor)==null?0:M.lightTheme){var G;V={backgroundColor:cq((G=u.backgroundColor)==null?void 0:G.lightTheme,"0.8")}}if(u.text||W||T){if(T&&u.lottieData&&Z){G=u.lottieData;var D,l,v;M={animationConfig:{name:G.url,path:G.url,autoplay:(D=G.settings)==null?void 0:D.autoplay,loop:(v=(l=G.settings)==null?void 0:l.loop)!=null?v:!0},animationRef:Z}}else M=
void 0;if(T)D=17;else b:switch(u.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":D=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":D=19;break b;default:D=17}T={type:D,text:T&&u.animatedText?u.animatedText:u.text,icon:W,customColors:V,animation:M}}else T=void 0}else T=void 0;return T};
return _.g("yt-thumbnail-badge-view-model",{class:_.qg("ytThumbnailBadgeViewModelHost",L.class)},_.g(_.F,{cond:S,then:function(){return _.g(_.Ho,{data:function(){return S()}})}}))},"Ga");var bCI=_.p(function(L){var Z={},N={};return _.g("yt-thumbnail-bottom-overlay-view-model",{class:_.qg("ytThumbnailBottomOverlayViewModelHost",(Z.ytThumbnailBottomOverlayViewModelHostBackground=function(){return L.data().enableGradientBackground},Z))},_.g(_.bj,{data:function(){return L.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(S){return _.g(W9l,{data:S.data,
thumbnailSize:L.thumbnailSize})}}),_.g("div",{class:_.qg("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var S;
return EHw((S=L.thumbnailSize)==null?void 0:S.call(L))},(N.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var S;
return(S=L.isClip)==null?void 0:S.call(L)},N.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var S;
return!_.c("web_enable_modern_progress_bar_overlay")&&((S=L.thumbnailSize)==null?void 0:S.call(L))==="small"},N))},_.g(_.bj,{data:function(){return L.data().badge}},{thumbnailBadgeViewModel:function(S){return _.g(VIq,{data:S.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.g(_.bj,{data:function(){return L.data().badges}},{thumbnailBadgeViewModel:function(S){return _.g(VIq,{data:S.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ha");
bCI.idomCompat=!0;_.CY(bCI,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.zl,thumbnailSize:_.zl,isClip:_.zl}});var Ao1={calledOnce:!1,state:"visible"},Hgs={calledOnce:!1,state:"hidden"};var mx=_.p(function(L){var Z=L.data;var N=L.className;L=L.alwaysShow;var S=_.zgt(),u={};return _.g("thumbnail-hover-overlay-view-model",{el:_.P9(_.cT(function(){return Z().rendererContext})),
class:_.qg("ytThumbnailHoverOverlayViewModelHost",N,(u.ytThumbnailHoverOverlayViewModelHostForceHover=L,u)),"aria-label":function(){var T;return(T=_.n(Z().rendererContext,_.Oi))==null?void 0:T.label},
role:function(){return _.ob(Z().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.ob(Z().rendererContext)!==void 0?0:void 0},
"on:keypress":S},_.g("div",{class:_.qg("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(Z().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var T="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:T="ytThumbnailHoverOverlayViewModelStyleCover"}return T})},_.g(_.F,{cond:function(){return Z().icon},
then:function(T){return _.g(_.ji,{data:T,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.g(_.F,{cond:function(){return Z().text},
then:function(T){return _.g(_.qv,{text:T,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ja");
mx.idomCompat=!0;var MIt=_.p(function(L){var Z=L.data;return _.g(_.bj,{data:function(){return Z==null?void 0:Z().overlays}},{thumbnailHoverOverlayViewModel:mx})},"Ka");
MIt.idomCompat=!0;var gql={};var Gvt=_.p(function(L){var Z=L.data;var N=L.image;var S=L.state;var u=L.iconType;var T=L.overlays;var W=L.isOverlay;var V=_.OV("div");L=_.O(_.nh(!0,void 0,"AA4e7b"));var M=L.next().value,G=L.next().value,D=function(){return!!Z().onTap},l=_.jA(u,"LIVE");
_.ph(function(){var R=Z();requestAnimationFrame(function(){if(V.value===null)var K=!0;else{var U=V.value;K=R.badgeText;var d=qaf(R.size);K in gql?U=gql[K]:(U=U.clientWidth,gql[K]=U);(K=U>d)?V.value.style.display="none":V.value.style.visibility="visible"}G(K)})},"vNdN8b");
var v=function(){var R={};return R["yt-spec-avatar-shape__image"]=!0,R["yt-spec-avatar-shape__image--ads-app"]=Z().type===1,R["yt-spec-avatar-shape__image--inscribed-square"]=Z().type===2,R};
return _.g("yt-avatar-shape",null,_.g("div",{el:_.P9(Z_F(D,{keydown:function(R){if(R.key==="Enter"){var K;(K=R.currentTarget)==null||K.click()}},
click:function(R){var K,U;return void((U=(K=Z()).onTap)==null?void 0:U.call(K,R))}})),
class:function(){var R={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},K=Z();R=(R[K.clusterLayoutConfig?i_B(K.clusterLayoutConfig):u01(K.size)]=!0,R["yt-spec-avatar-shape__button--tappable"]=D(),R);(K=Z().avatarButtonCustomClassName)&&(R[K]=!0);return _.D7(R)},
"aria-label":function(){return D()?Z().accessibilityText:""},
role:function(){return D()?"button":void 0},
tabindex:function(){return D()?0:void 0}},_.g("div",{class:function(){var R,K=Z(),U=S==null?void 0:S(),d=W==null?void 0:W(),h=!((R=K.decorations)==null||!R.includes(2)||K.size!=="medium"&&K.size!=="large"),E=K.size==="tiny"||K.size==="extra-small",A,J,C,X,L1={};
R=(L1["yt-spec-avatar-shape--live-ring"]=!!(((A=K.decorations)==null?0:A.includes(0))&&t8w(K.size)),L1["yt-spec-avatar-shape--stories-watched"]=h&&!(U==null||!U.storiesWatched),L1["yt-spec-avatar-shape--stories-unwatched"]=h&&!(U==null?0:U.storiesWatched),L1["yt-spec-avatar-shape--background-border"]=O_P(K.decorations)&&!E,L1["yt-spec-avatar-shape--background-border-thin"]=O_P(K.decorations)&&E,L1["yt-spec-avatar-shape__on-select-border"]=!((J=K.decorations)==null||!J.includes(4)),L1["yt-spec-avatar-shape__white-border"]=
!((C=K.decorations)==null||!C.includes(5)),L1["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((X=K.decorations)==null?0:X.includes(5))&&E),L1["yt-spec-avatar-shape--is-overlay"]=!!d,L1);return _.D7(R)},
style:function(){a:{var R=Z().clusterLayoutConfig;if(R){b:{var K=R.numAvatarsInCluster;var U=R.avatarIndex;if(U!==K-1){switch(R.clusterSize){case "small":R="32";break;case "medium":R="36";break;case "40":R="40";break;default:K=void 0;break b}K="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+R+"x"+R+"_avatars_"+K+"_index_"+U+".svg"}else K=void 0}if(K){K=_.u4({"-webkit-mask-image":"url("+K+")","mask-image":"url("+K+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}K=void 0}return K}},_.g("div",{class:function(){var R={};
var K=Z();R=(R[K.clusterLayoutConfig?NNG(K.clusterLayoutConfig):SQA(K.size)]=!0,R["yt-spec-avatar-shape--no-margin"]=O_P(Z().decorations),R["yt-spec-avatar-shape--square"]=Z().type===2,R);return _.D7(R)}},_.g(_.ji,{data:N,
alt:function(){return!D()&&Z().accessibilityText?Z().accessibilityText:""},
targetWidth:function(){return TNF(Z().size)},
targetHeight:function(){return TNF(Z().size)},
className:function(){return _.D7(v())}}),_.g(_.F,{cond:function(){var R;
return((R=Z().decorations)==null?void 0:R.includes(0))&&t8w(Z().size)},
then:function(){return _.g("div",{class:function(){var R={};R=(R["yt-spec-avatar-shape__live-badge"]=!0,R["yt-spec-avatar-shape__live-badge--badge-small"]=Z().size==="small",R["yt-spec-avatar-shape__live-badge--badge-medium"]=Z().size==="medium"||Z().size==="48",R["yt-spec-avatar-shape__live-badge--badge-large"]=Z().size==="large",R["yt-spec-avatar-shape__live-badge--badge-extra-large"]=Z().size==="extra-large"||Z().size==="extra-extra-large"||Z().size==="giant",R);return _.D7(R)}},_.g(_.F,{cond:function(){return Z().badgeText},
then:function(R){return _.g("div",{class:"yt-spec-avatar-shape__badge-text",el:V},R)}}),_.g(_.F,{cond:M,
then:function(){return _.g("div",{class:"yt-spec-avatar-shape__badge-icon"},_.g(_.T0,{icon:l,size:function(){a:switch(Z().size){case "extra-large":var R=16;break a;default:R=13}return R}}))}}))}}),_.g(_.F,{cond:function(){var R,K;
return((R=Z().decorations)==null?void 0:R.includes(1))||((K=Z().decorations)==null?void 0:K.includes(0))&&!t8w(Z().size)},
then:function(){return _.g("div",{class:function(){var R=Z(),K,U,d={};var h=(d["yt-spec-avatar-shape__live-dot"]=!((K=R.decorations)==null||!K.includes(0)||t8w(R.size)),d["yt-spec-avatar-shape__new-content"]=!((U=R.decorations)==null||!U.includes(1)),d);return _.D7(h)}})}}),_.g(_.F,{cond:function(){return!!T},
then:function(){return _.g("div",{class:function(){var R={};R=Object.assign((R["yt-spec-avatar-shape__image-overlays"]=!0,R),v());return _.D7(R)}},T==null?void 0:T())}})))))},"Na");
Gvt.idomCompat={callbacks:{overlays:!0}};_.JO=_.p(function(L){function Z(){N().endpoint&&_.w$(N().endpoint)}
var N=L.data;var S=L.decorations;var u=L.avatarButtonCustomClassName;var T=L.isOverlay;var W=L.clusterLayoutConfig;return _.g("avatar-view-model",null,_.g(_.F,{cond:function(){return N().image},
then:function(V){return _.g(Gvt,{data:function(){return V8h({data:N(),onTap:N().endpoint?Z:void 0,decorations:S==null?void 0:S(),badgeText:void 0,accessibilityText:N().accessibilityText,avatarButtonCustomClassName:u==null?void 0:u(),clusterLayoutConfig:W==null?void 0:W()})},
image:V,iconType:"RADAR_LIVE",overlays:function(){return _.g(MIt,{data:N})},
isOverlay:T})}}))},"Oa");
_.JO.idomCompat=!0;_.CS=_.p(function(L){var Z=L.data;L=L.className;var N=_.OV("yt-decorated-avatar-view-model"),S=function(){return _.n(Z().avatar,_.nl)},u=_.wJ(function(){var T,W=Z(),V=S(),M=_.ob(Z().rendererContext),G=(T=N.value)!=null?T:void 0,D;
if(V){G={data:W,avatar:V,onTap:M,element:G};T=G.data;W=G.avatar;V=G.onTap;M=G.element;G=G.commandController;V=V?Gj0(V,M,G):void 0;M=[];T.liveData&&M.push(0);var l;G=(l=T.liveData)==null?void 0:l.liveBadgeText;l=(D=_.n(T.rendererContext,_.Oi))==null?void 0:D.label;D=V8h({data:W,onTap:V,decorations:M,badgeText:G,accessibilityText:l?l:T.a11yLabel})}else D={size:"medium"};return D},void 0,"c00kWd");
return _.g("yt-decorated-avatar-view-model",{class:_.qg("ytDecoratedAvatarViewModelHost",L),el:N},_.g(_.F,{cond:function(){var T;return(T=S())==null?void 0:T.image},
then:function(T){return _.g(Gvt,{data:u,image:T,iconType:"RADAR_LIVE",overlays:function(){return _.g(MIt,{data:S})}})}}))},"Pa");
_.CS.idomCompat=!0;_.ri=_.p(function(L){var Z=function(){var V;return Object.assign({},L.data(),(V=L.overrides)==null?void 0:V.call(L))},N=function(){return _.Rb(Z().rendererContext)},S=function(){var V=Z().avatars,M,G;
return(G=(M=(V==null?0:V[0])?_.n(V[0],_.nl):void 0)==null?void 0:M.avatarImageSize)!=null?G:"AVATAR_SIZE_UNKNOWN"},u=function(){return glw(Z())},T=function(){if(Z().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var V=void 0;
else if((V=L.decorations)==null?0:V.call(L))V=L.decorations();else{V=Z();var M=0;V.avatars&&(M+=V.avatars.length);V.decoratedText&&(M+=1);V=M>1?[3]:[]}return V},W={};
return _.g("yt-avatar-stack-view-model",{el:_.P9(_.cT(function(){return Z().rendererContext})),
class:_.qg("yt-avatar-stack-view-model",L.className,(W["yt-avatar-stack-view-model--tappable"]=N,W["yt-avatar-stack-view-model--is-overlay"]=L.isOverlay,W["yt-avatar-stack-view-model--medium-text"]=L.useMediumText,W)),tabindex:function(){return N()?0:void 0},
role:function(){return N()?"link":void 0},
"aria-label":function(){var V,M;return(M=(V=_.n(Z().rendererContext,_.Oi))==null?void 0:V.label)!=null?M:""}},_.g(_.F,{cond:function(){var V;
return Z().avatars&&!((V=L.hideAvatar)==null?0:V.call(L))},
then:function(){return _.g("div",{class:"yt-avatar-stack-view-model__avatars"},_.g(_.F,{cond:function(){return Z().decoratedText},
then:function(V){var M={};return _.g("div",{class:_.qg("yt-avatar-stack-view-model__text-container",(M["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return S()==="AVATAR_SIZE_XXS"||S()==="AVATAR_SIZE_XS"},M["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var G;
return((G=L.isOverlay)==null?void 0:G.call(L))&&(S()==="AVATAR_SIZE_XXS"||S()==="AVATAR_SIZE_XS")},M)),
style:_.u4({width:function(){return u().avatarSizeInPx+"px"},
height:function(){return u().avatarSizeInPx+"px"}})},_.g(_.qv,{text:V,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.g("div",{style:function(){return _.u4(u().avatarStackStyle)()},
class:function(){return u().avatarStackClass}},_.g(_.bj,{data:function(){return u().avatars.reverse()}},{avatarViewModel:function(V,M){return _.g("div",{style:function(){var G,D;
return _.u4((D=(G=u()).avatarStyle)==null?void 0:D.call(G,M()))()},
class:function(){return u().avatarClass}},_.g(_.JO,{data:V.data,
decorations:T,avatarButtonCustomClassName:function(){return u().avatarButtonCustomClassName},
isOverlay:L.isOverlay,clusterLayoutConfig:function(){var G,D;return(D=(G=u()).clusterLayoutConfig)==null?void 0:D.call(G,M())}}))},
decoratedAvatarViewModel:function(V,M){return _.g("div",{style:function(){var G,D;return _.u4((D=(G=u()).avatarStyle)==null?void 0:D.call(G,M()))()},
class:function(){return u().avatarClass}},_.g(_.CS,{data:V.data}))}})))}}),_.g(_.F,{cond:function(){return Z().text},
then:function(V){return _.g(_.qv,{text:V,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Qa");
_.ri.idomCompat=!0;_.CY(_.p(function(L){var Z=L.data;var N=L.thumbnailSize;return _.g("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.g("div",{class:_.qg("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return FrA(N==null?void 0:N())})},_.g(_.bj,{data:function(){return Z().avatarStack}},{avatarStackViewModel:function(S){return _.g(_.ri,{data:S.data,
decorations:[5]})}})))},"Ra"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.LK,
thumbnailSize:_.LK}});var F9t=_.p(function(L){L=_.Ek(L,{hidden:!1});var Z=L.data;L=L.hidden;return _.g("yt-thumbnail-overlay-title-view-model",{class:_.qg("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(Z().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var N="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:N="ytThumbnailOverlayTitleViewModelPositionTop"}return N}),
hidden:L},_.g(_.F,{cond:function(){return Z().leadingContent},
then:function(N){return _.g("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.g(_.bj,{data:N},{decoratedAvatarViewModel:_.CS}))}}),_.g("div",null,_.g(_.qv,{text:function(){return Z().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.g(_.F,{cond:function(){return Z().subtitle},
then:function(){return _.g(_.qv,{text:function(){return Z().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Sa");
F9t.idomCompat=!0;_.CY(F9t,"yt-thumbnail-overlay-title-view-model",{props:{data:_.LK,hidden:_.LK}});_.$55=_.p(function(L){L=_.Ek(L,{isClip:!1});var Z=L.data,N=L.thumbnailSize,S={};return _.g("yt-thumbnail-overlay-badge-view-model",{class:_.qg("yt-thumbnail-overlay-badge-view-model",function(){a:switch(Z().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var u="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:u="yt-thumbnail-overlay-badge-view-model--bottom-end"}return u},function(){return $D0(N==null?void 0:N())},(S["yt-thumbnail-overlay-badge-view-model--clip"]=L.isClip,
S))},_.g(_.bj,{data:function(){return Z().thumbnailBadges}},{thumbnailBadgeViewModel:function(u){return _.g(VIq,{data:u.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ta");
_.$55.idomCompat=!0;_.CY(_.$55,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.LK,thumbnailSize:_.LK,isClip:_.LK}});var D5t=_.p(function(L){var Z=L.data;L=L.hidden;var N=_.wJ(function(){return Z().indicatorCount||0},void 0,"AbKnMc"),S={};
return _.g("yt-page-indicator-view-model",{class:_.qg("ytPageIndicatorViewModelHost",(S.ytPageIndicatorViewModelIndicatorHidden=function(){return!Z().indicatorCount},S)),
hidden:L},_.g(_.ju,{each:function(){return Array(N())}},function(u,T){var W={};
return _.g("div",{class:_.qg("ytPageIndicatorViewModelIndicator",(W.ytPageIndicatorViewModelIndicatorSelected=function(){return Z().selectedIndex===T()},W))})}))},"Ua");
D5t.idomCompat=!0;_.CY(D5t,"yt-page-indicator-view-model",{props:{data:_.LK,hidden:_.LK}});var Qw=function(){var L=_.e.apply(this,arguments)||this;L.eventSink=function(){return L};
L.disableInteraction=!1;L.noRoundedCorners=!1;L.isPreviewLoading=!1;L.isOriginalAspectRatio=!1;L.computedObjectFit=!1;L.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return L};
_.f(Qw,_.e);_.t=Qw.prototype;
_.t.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:_.c("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"}}};
_.t.onImageLoaded=function(){this.loaded=!0};
_.t.onImageUnloaded=function(){this.loaded=!1};
_.t.computeRichThumbnail=function(L,Z,N,S){if(L&&Z&&!S&&!_.c("disable_moving_thumbs_handling")&&!N)return Z};
_.t.computeImageWidth=function(L,Z){return Z||9999};
_.t.computeIsOriginalAspectRatio=function(L){return L};
_.t.computeIsLive=function(L){if(L==null?0:L.badges)for(var Z=0;Z<L.badges.length;Z++){var N=L.badges[Z];if(N.metadataBadgeRenderer&&N.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(L==null?0:L.thumbnailOverlays)for(Z=0;Z<L.thumbnailOverlays.length;Z++)if(N=L.thumbnailOverlays[Z],N.thumbnailOverlayTimeStatusRenderer&&N.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.t.computeObjectFit=function(L,Z){return Z||(L?"CONTAIN":"")};
_.t.computeNavigationEndpoint=function(L,Z,N){return L?Z:N};
_.t.computeHasClip=function(L){L=_.O(L||[]);for(var Z=L.next();!Z.done;Z=L.next())if(Z.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.t.computeOverlayColor=function(L){var Z;return(L==null?0:(Z=L.darkColorPalette)==null?0:Z.section2Color)?L.darkColorPalette.section2Color:L==null?void 0:L.sampledThumbnailColor};
_.gd.Object.defineProperties(Qw.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return Pi0(this.width)}}});
Qw.prototype.onImageUnloaded=Qw.prototype.onImageUnloaded;Qw.prototype.onImageLoaded=Qw.prototype.onImageLoaded;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Qw.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Qw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(A6q),_.Q("design:type",Object)],Qw.prototype,"ytdThumbnailBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Qw.prototype,"componentBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Qw.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Qw.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Qw.prototype,"circular",void 0);
_.r([_.Y({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.Q("design:type",Object)],Qw.prototype,"richThumbnail",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.Q("design:type",Boolean)],Qw.prototype,"hasClip",void 0);_.r([_.Y(),_.Q("design:type",Object)],Qw.prototype,"eventSink",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Qw.prototype,"queued",void 0);
_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Qw.prototype,"richGridThumbnail",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Qw.prototype,"useExpandableTooltip",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Qw.prototype,"useUntranslatedNavigationEndpoint",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Qw.prototype,"disableInteraction",void 0);
_.r([_.Y({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.Q("design:type",Object)],Qw.prototype,"computedNavigationEndpoint",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Qw.prototype,"nowPlayingEqualizerOnly",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],Qw.prototype,"hidePlaybackStatus",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],Qw.prototype,"objectFit",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Qw.prototype,"noRoundedCorners",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Qw.prototype,"watchFeedThumbnail",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Qw.prototype,"isPreviewLoading",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.Q("design:type",Object)],Qw.prototype,"isOriginalAspectRatio",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.Q("design:type",Object)],Qw.prototype,"computedObjectFit",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.Q("design:type",Boolean)],Qw.prototype,"isLiveVideo",void 0);
_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],Qw.prototype,"loaded",void 0);_.r([_.Y({computed:"computeOverlayColor(data.thumbnail)"}),_.Q("design:type",Object)],Qw.prototype,"overlayColor",void 0);_.r([_.Y({selector:_.aAG}),_.Q("design:type",Boolean)],Qw.prototype,"inlinePreviewIsEnabled",void 0);_.r([_.Y(),_.Q("design:type",Number)],Qw.prototype,"width",void 0);
_.r([_.w("inlinePreviewIsEnabled"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Qw.prototype,"isPreviewDisabled",null);_.r([_.w("width"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Qw.prototype,"thumbnailSize",null);_.r([_.SA("image-loaded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qw.prototype,"onImageLoaded",null);
_.r([_.SA("image-unloaded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qw.prototype,"onImageUnloaded",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-thumbnail"})],Qw);
var lmt=_.rD()(Qw,"ytd-thumbnail",function(){if(OCQ===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);OCQ=L}L=OCQ;return L},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var vlP=function(L){var Z=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15031_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15031_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(N){vq0(Z,N)};
this.onLockupMouseLeaveFn=function(N){N=N.relatedTarget;var S,u;((S=document.getElementsByTagName("ytd-video-preview"))==null?0:(u=S.item(0))==null?0:u.contains(N))||(Z.terminateVideoPreview(),Xq(Z))};
this.onThumbnailMouseDownFn=function(){Z.terminateVideoPreview();Xq(Z)};
this.onTouchStart=function(){Z.JSC$15031_touched=!0};
this.mediaRenderer=L.mediaRenderer;this.thumbnailElement=L.thumbnailElement;this.lockupElement=L.lockupElement;this.videoPreviewOptsInput=L.videoPreviewOpts;oqN(this);AO(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)):
_.Q7(Error("Fh")):_.Q7(Error("Gh")):Rth(this)},jy=function(L){Rth(L);
var Z;(Z=L.lockupElement)==null||Z.removeEventListener("mouseenter",L.onMouseMoveFn);var N;(N=L.lockupElement)==null||N.removeEventListener("mouseleave",L.onLockupMouseLeaveFn);var S;(S=L.lockupElement)==null||S.removeEventListener("touchstart",L.onTouchStart);var u;(u=L.thumbnailElement)==null||u.removeEventListener("mousedown",L.onThumbnailMouseDownFn);Xq(L)},oqN=function(L){L.inlinePreviewIsEnabledForUser=_.Pv().getState().ui.inlinePreviewIsEnabled;
L.unsubscribeFromInlinePreviewIsEnabled=_.hK(_.Pv(),_.aAG,function(Z){(L.inlinePreviewIsEnabledForUser=Z)||Xq(L)});
L.JSC$15031_unsubscribeFromInlinePreviewIsActive=_.hK(_.Pv(),_.dNw,function(Z){(L.inlinePreviewIsActive=Z)||Xq(L)})},Rth=function(L){L.unsubscribeFromInlinePreviewIsEnabled();
L.unsubscribeFromInlinePreviewIsEnabled=function(){};
L.JSC$15031_unsubscribeFromInlinePreviewIsActive();L.JSC$15031_unsubscribeFromInlinePreviewIsActive=function(){}},vq0=function(L,Z){Z.buttons>0||(Z=_.lQ("kevlar_lockup_hover_delay",-1),L.JSC$15031_touched&&Z>=0?(_.ro.cancelJob(L.videoPreviewJobId),L.videoPreviewJobId=_.H9(_.ro,function(){c75(L)},Z),L.JSC$15031_touched=!1):c75(L))},WvP=function(L){L.videoPreviewJobId=_.H9(_.ro,function(){return _.b(function(Z){return Z.yield(nqQ(L,{isAutoplay:!0}),0)})})},c75=function(L){!L.previewTriggered&&AO(L)&&
(L.inlinePreviewIsActive&&L.terminateVideoPreview(),L.previewTriggered=!0,L.mediaRenderer.isInlinePreviewTriggered=!0,_.ro.cancelJob(L.videoPreviewJobId),L.videoPreviewJobId=_.H9(_.ro,function(){return _.b(function(Z){return Z.yield(nqQ(L),0)})}))},nqQ=function(L,Z){Z=Z===void 0?{}:Z;
var N=Z.isAutoplay===void 0?!1:Z.isAutoplay;var S,u,T,W;return _.b(function(V){if(V.nextAddress==1){if(!AO(L))return V.return();S=L.getVideoPreviewOpts();if(!S)return V.return();N&&(S.isAutoplay=!0);return(T=(u=_.Ad(L.mediaRenderer.hostElement,"yt-open-video-preview-action",[S]))&&u[0])?V.yield(u[0],3):V.jumpTo(2)}V.nextAddress!=2&&(T=V.yieldResult===1);if(T){var M=(W=L.mediaRenderer)==null?void 0:W.data;M&&(lBP(M)?delete M.inlinePlayerData:"inlinePlaybackEndpoint"in M&&delete M.inlinePlaybackEndpoint)}_.w7(V)})};
vlP.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var L,Z;if((Z=(L=this.videoPreviewOptsInput)==null?void 0:L.videoPreviewData)!=null)L=Z;else if(L=this.mediaRenderer.data)if(lBP(L))L={inlinePlaybackEndpoint:_.KY(L.inlinePlayerData.onVisible),navigationEndpoint:_.KY(L.onTap),thumbnail:"image"in L?L.image:L.thumbnail,thumbnailOverlays:void 0,accessibilityText:DDs(L)};else if("multipleInlinePlaybackEndpoint"in L){var N=_.n(_.n(L.multipleInlinePlaybackEndpoint,wDI),URl);if(N!=
null&&N.playerDescriptors){Z=[];N=_.O(N.playerDescriptors);for(var S=N.next();!S.done;S=N.next())S=S.value,Z.push({inlinePlaybackEndpoint:S.inlinePlaybackEndpoint,navigationEndpoint:S.navigationEndpoint,thumbnail:S.thumbnail,thumbnailOverlays:S.thumbnailOverlays,accessibilityText:DDs(L)});L=Z}else L=void 0}else L={inlinePlaybackEndpoint:L.inlinePlaybackEndpoint,navigationEndpoint:L.navigationEndpoint,thumbnail:L.thumbnail,thumbnailOverlays:L.thumbnailOverlays,accessibilityText:DDs(L)};else L=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:L,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var AO=function(L){var Z;if(Z=L.inlinePreviewIsEnabledForUser)Z=(L=L.mediaRenderer.data)?"inlinePlaybackEndpoint"in L&&L.inlinePlaybackEndpoint||lBP(L)&&L.inlinePlayerData||"multipleInlinePlaybackEndpoint"in L&&L.multipleInlinePlaybackEndpoint?!0:!1:!1;return Z};
vlP.prototype.terminateVideoPreview=function(){_.XJ(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Xq=function(L){_.ro.cancelJob(L.videoPreviewJobId);L.inlinePreviewIsActive=!1;L.previewTriggered=!1;L.mediaRenderer.isInlinePreviewTriggered=!1};var K95=_.sc(["#"]),Hp=function(){var L=_.e.apply(this,arguments)||this;L.isDisabled=!1;return L};
_.f(Hp,_.e);_.t=Hp.prototype;
_.t.configureRendererStamper=function(){return{"data.menu":Ul,"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"}}}};
_.t.attached=function(){this.updateInlinePreviewHoverListeners()};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.getMetadata=function(L){var Z=[];if(L.metadataText&&Object.keys(L.metadataText).length>0){var N=this.ytRendererBehavior.getSimpleString(L.metadataText);L.upcomingEventData&&L.upcomingEventData.upcomingEventText&&(N=_.FM(N,Number(L.upcomingEventData.startTime)));Z.push(N)}else L.shortViewCountText&&Z.push(this.ytRendererBehavior.getSimpleString(L.shortViewCountText)),L.publishedTimeText&&Z.push(this.ytRendererBehavior.getSimpleString(L.publishedTimeText)),L.upcomingEventData&&L.upcomingEventData.upcomingEventText&&
(N=this.ytRendererBehavior.getSimpleString(L.upcomingEventData.upcomingEventText),Z.push(_.FM(N,Number(L.upcomingEventData.startTime))));return Z};
_.t.calculateBylineText=function(L){return L.shortBylineText?L.shortBylineText:L.bylineText?L.bylineText:null};
_.t.calculateIsDisabled=function(L){return!!L.isDisabled};
_.t.computeHrefWithDefault=function(L){return this.ytComponentBehavior.computeHref_(L)||_.Osx(K95)};
_.t.onDetailsTap=function(L){var Z=this.data&&this.data.navigationEndpoint;Z&&!_.PQ(_.sx(L)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.c("kevlar_grid_video_renderer_killswitch")?_.QT(this.hostElement,"yt-navigate",{endpoint:Z}):this.ytComponentBehavior.resolveCommand(Z))};
_.t.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15038_inlinePreviewHoverListener=Kl({mediaRenderer:this,lockupElement:_.QJ(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.QJ(this.hostElement).querySelector("ytd-thumbnail")})};
_.t.clearInlinePreviewHoverListeners=function(){var L;(L=this.JSC$15038_inlinePreviewHoverListener)==null||jy(L)};
_.t.computeThumbnailWidth=function(L,Z){return Z&&Z>0?Z:L?360:210};
_.t.computeNumBadgesInRow=function(L){var Z;return((Z=L.badges)==null?void 0:Z.length)||0};
_.t.computeShowChannelThumbnail=function(L,Z){var N;return Z&&!!(L==null?0:(N=L.channelThumbnailSupportedRenderers)==null?0:N.channelThumbnailWithLinkRenderer)};
_.gd.Object.defineProperties(Hp.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.JSC$15038_inlinePreviewHoverListener)==null?0:AO(L))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
Hp.prototype.dataChanged=Hp.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Hp.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Hp.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],Hp.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.y(_.Lb),_.Q("design:type",Object)],Hp.prototype,"ytdLockupBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Hp.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Hp.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Hp.prototype,"noEndpoints",void 0);_.r([_.Y({computed:"calculateBylineText(data)"}),_.Q("design:type",Object)],Hp.prototype,"bylineText",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Hp.prototype,"isSearch",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Hp.prototype,"isDownloading",void 0);_.r([_.Y({reflectToAttribute:!0,value:0}),_.Q("design:type",Number)],Hp.prototype,"width",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.Q("design:type",Object)],Hp.prototype,"isDisabled",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Hp.prototype,"dataChanged",null);_.r([_.w("lockupIsHovered"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Hp.prototype,"isHovered",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Hp.prototype,"hasAttributedBylineText",null);
_.r([_.w("bylineText","hasAttributedBylineText"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Hp.prototype,"showBylineText",null);_.r([_.P({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Hp);
_.m(Hp,"ytd-grid-video-renderer",function(){if(H_t!==void 0)return H_t;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return H_t=L},{mode:_.Qr("kevlar_poly_si_batch_j047")?1:2});var fmt;var Bp=function(){var L=_.e.apply(this,arguments)||this;L.roundedContainer=!0;L.skipRoundingTop=!1;L.disableTopPadding=!1;L.amsterdamEnabled=_.c("enable_desktop_amsterdam_info_panels");L.extractOverlay=!1;return L};
_.f(Bp,_.e);Bp.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Bp.prototype.onClick=function(L){var Z,N=(Z=this.data)==null?void 0:Z.sourceEndpoint;!_.PQ(_.sx(L),this.hostElement,["A".toString()])&&N&&_.QT(this.hostElement,"yt-navigate",{endpoint:N})};
_.gd.Object.defineProperties(Bp.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 L;return!((L=this.data)==null||!L.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var L,Z;return(Z=(L=this.data)==null?void 0:L.paragraphMaxLines)!=null?Z:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Bp.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Bp.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Bp.prototype,"showVerticalDividers",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Bp.prototype,"roundedContainer",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Bp.prototype,"skipRoundingTop",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Bp.prototype,"disableTopPadding",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bp.prototype,"amsterdamEnabled",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Bp.prototype,"extractOverlay",void 0);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Bp.prototype,"showMetadataAtTop",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Bp.prototype,"showMetadataBelowTitle",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.menu"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Bp.prototype,"hasMenu",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data.truncateParagraphs"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Bp.prototype,"truncateParagraphs",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.paragraphMaxLines"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Bp.prototype,"paragraphMaxLines",null);
_.r([_.Y({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.w("data.background"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Bp.prototype,"background",null);_.r([_.P({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Bp);
_.m(Bp,"ytd-info-panel-content-renderer",function(){if(fmt!==void 0)return fmt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return fmt=L},{mode:_.Qr("kevlar_poly_si_batch_j076")?1:2});var kvQ;var y7s;var wrM;var U5l;var xC=function(){return _.e.apply(this,arguments)||this};
_.f(xC,_.e);xC.prototype.computeStyle=function(L){return L};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],xC.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],xC.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Q("design:type",String)],xC.prototype,"style_",void 0);_.r([_.ch({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],xC);
_.m(xC,"yt-channel-thumbnail-with-link-renderer",function(){if(U5l===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;wrM===void 0&&(wrM=document.createElement("template"));var S=wrM;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);U5l=L}L=U5l;return L},{mode:2});var qk=function(){return _.e.apply(this,arguments)||this};
_.f(qk,_.e);qk.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"}}}};
qk.prototype.computeTitleStyle=function(L){return L||null};
qk.prototype.computeAvatarStyle=function(L){return L||null};
qk.prototype.computeShowNavigationButton=function(L,Z){return!(L==null||!L.navigationButton||Z)};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],qk.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],qk.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.Q("design:type",String)],qk.prototype,"titleStyle",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.Q("design:type",String)],qk.prototype,"avatarStyle",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],qk.prototype,"hideNavigationButton",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],qk.prototype,"isModernSd",void 0);_.r([_.P({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],qk);
_.m(qk,"ytd-rich-list-header-renderer",function(){if(y7s!==void 0)return y7s;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return y7s=L},{mode:_.Qr("kevlar_poly_si_batch_j058")?1:2});var LN=function(){return _.e.apply(this,arguments)||this};
_.f(LN,_.e);LN.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]]"}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],LN.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],LN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],LN.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],LN.prototype,"isSearch",void 0);_.r([_.P({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],LN);
_.m(LN,"ytd-preview-card-renderer",function(){if(kvQ!==void 0)return kvQ;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return kvQ=L},{mode:1});var YHI;var ZH=function(){return _.e.apply(this,arguments)||this};
_.f(ZH,_.e);ZH.prototype.configureRendererStamper=function(){return{"data.menu":Ul}};
ZH.prototype.dataChanged=function(){var L=this.get("colorExtractionPalette.section1Color",this.data);L=_.vq(L);_.Ld(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":L})};
ZH.prototype.computeCardStyle=function(L){return this.get("style.value",L)||null};
ZH.prototype.dataChanged=ZH.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],ZH.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ZH.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.Q("design:type",String)],ZH.prototype,"cardStyle",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ZH.prototype,"dataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],ZH);
_.m(ZH,"ytd-compact-channel-recommendation-card-renderer",function(){if(YHI!==void 0)return YHI;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return YHI=L},{mode:1});var etL;var ImI;var N1=function(){var L=_.e.apply(this,arguments)||this;L.alignAuto=!1;L.collapsed=!0;L.isToggled=!1;L.alwaysCollapsed=!1;L.canToggle=!0;L.collapsedHeight=80;L.disableToggle=!1;L.alwaysToggleable=!1;L.reversed=!1;L.shouldUseNumberOfLines=!1;L.recomputeOnResize=!1;L.canToggleJobId=0;L.lastReversed=!1;return L};
_.f(N1,_.e);_.t=N1.prototype;_.t.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.t.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.t.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var L=_.QJ(this.hostElement),Z=L.childNodes,N=document.createDocumentFragment(),S=L.childNodes.length-1;S>=0;S--)_.QJ(N).appendChild(Z[S]);_.c("enable_shadydom_free_scoped_node_methods")?_.XB(this.hostElement).appendChild(N):L.appendChild(N)}};
_.t.ready=function(){var L=this;_.Uk(function(){L.initChildrenObserver()},1)};
_.t.attached=function(){var L;(L=this.resizeObserver)==null||L.observe(this.content)};
_.t.detached=function(){this.detachObserver()};
_.t.toggle=function(L,Z){this.canToggle&&(this.isToggled=Z,_.QT(this.hostElement,"yt-refit"),L&&L.stopPropagation())};
_.t.reset=function(){this.childrenChanged()};
_.t.onIronResize=function(){this.recomputeOnResize&&!_.c("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.t.computeIsMoreVisible=function(L,Z){return L&&!Z};
_.t.computeShouldUseNumberOfLines=function(L){try{return!!L&&window.CSS.supports("-webkit-line-clamp","1")}catch(Z){}return!1};
_.t.computeIsLessVisible=function(L,Z){return L&&Z};
_.t.observeCollapsedHeightAndMaxLines=function(){var L=this.collapsedHeight,Z=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Ld(this.hostElement,{"--ytd-expander-max-lines":""+Z,"--ytd-expander-collapsed-height":""}):_.Ld(this.hostElement,{"--ytd-expander-collapsed-height":L+"px","--ytd-expander-max-lines":""})};
_.t.handleMoreTap=function(L){this.disableToggle||(_.QT(this.hostElement,"yt-expander-more-tapped"),this.toggle(L,!0))};
_.t.handleLessTap=function(L){_.QT(this.hostElement,"yt-expander-less-tapped");this.toggle(L,!1)};
_.t.initChildrenObserver=function(){var L=this;this.observer=new MutationObserver(function(){L.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.c("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.Sw(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var Z;(Z=L.resizeThrottle)==null||Z.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.t.childrenChanged=function(){var L=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){AC(function(){L.canToggleJobId=0;L.calculateCanCollapse()})}))};
_.t.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};
_.t.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.t.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("collapsed-changed",this.collapsed))};
_.t.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("is-toggled-changed",this.isToggled))};
_.t.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("can-toggle-changed",this.canToggle))};
_.gd.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;_.r([_.y(_.Eb),_.Q("design:type",Object)],N1.prototype,"ironResizableBehavior",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],N1.prototype,"alignAuto",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],N1.prototype,"collapsed",void 0);_.r([_.Y(),_.Q("design:type",Object)],N1.prototype,"isToggled",void 0);_.r([_.Y(),_.Q("design:type",Object)],N1.prototype,"alwaysCollapsed",void 0);
_.r([_.Y(),_.Q("design:type",Object)],N1.prototype,"canToggle",void 0);_.r([_.Y(),_.Q("design:type",Object)],N1.prototype,"collapsedHeight",void 0);_.r([_.Y(),_.Q("design:type",Object)],N1.prototype,"disableToggle",void 0);_.r([_.Y(),_.Q("design:type",Object)],N1.prototype,"alwaysToggleable",void 0);_.r([_.Y(),_.Q("design:type",Object)],N1.prototype,"reversed",void 0);_.r([_.Y(),_.Q("design:type",Number)],N1.prototype,"maxNumberOfLines",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.Q("design:type",Object)],N1.prototype,"shouldUseNumberOfLines",void 0);_.r([_.Y(),_.Q("design:type",Object)],N1.prototype,"recomputeOnResize",void 0);_.r([_.TX("#content"),_.Q("design:type",HTMLDivElement)],N1.prototype,"content",void 0);_.r([_.Vr("alwaysToggleable"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],N1.prototype,"alwaysToggleableChanged",null);
_.r([_.Vr("isToggled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],N1.prototype,"toggledChanged",null);_.r([_.w("canToggleJobId"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],N1.prototype,"isResetting",null);_.r([_.iA("reversed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],N1.prototype,"reversedChanged",null);
_.r([_.SA("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],N1.prototype,"onIronResize",null);_.r([_.iA("maxNumberOfLines","collapsedHeight"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],N1.prototype,"observeCollapsedHeightAndMaxLines",null);_.r([_.iA("collapsed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],N1.prototype,"collapsedChangedForBinding",null);
_.r([_.iA("isToggled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],N1.prototype,"isToggledChangedForBinding",null);_.r([_.iA("canToggle"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],N1.prototype,"canToggleChangedForBinding",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-expander"})],N1);
_.m(N1,"ytd-expander",function(){if(ImI!==void 0)return ImI;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ImI=L},{mode:1});var Sr=function(){return _.e.apply(this,arguments)||this};
_.f(Sr,_.e);Sr.prototype.computeIsCarousel=function(L){return!!L.isCarousel};
Sr.prototype.observeLightsourcePalette=function(){var L,Z=(L=this.data)==null?void 0:L.vibrantsourceColorPaletteData;Z&&_.$0(this.hostElement,Z)};
Sr.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Sr.prototype.observeLightsourcePalette=Sr.prototype.observeLightsourcePalette;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Sr.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Sr.prototype,"data",void 0);_.r([_.Y({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Sr.prototype,"isCarousel",void 0);
_.r([_.iA("data.vibrantsourceColorPaletteData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Sr.prototype,"observeLightsourcePalette",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Sr);
_.m(Sr,"ytd-media-upsell-renderer",function(){if(etL!==void 0)return etL;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return etL=L},{mode:2});var d5Y;var i7=function(){var L=_.e.apply(this,arguments)||this;L.JSC$15065_playerEvents=new Map;L.listeningToPlayer=!1;L.startX=0;L.active=!1;L.shouldShowButtons=_.c("web_buttons_hidden_killswitch");L.isHighlighted=!1;L.useHighlightStyling=_.c("web_enable_deeper_metadata_highlight_styling");L.modern=_.c("kevlar_modern_sd");L.enableProblemWalkthrough=_.c("problem_walkthrough_sd");return L};
_.f(i7,_.e);_.t=i7.prototype;
_.t.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}}}}}};
_.t.created=function(){this.JSC$15065_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.t.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Nd(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Nd(this,this.onActiveUpdate))};
_.t.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Nd(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Nd(this,this.onActiveUpdate))};
_.t.onDataChanged=function(){this.removePlayerListeners()};
_.t.onColorPaletteChange=function(){var L={},Z;if(_.wr()==="USER_INTERFACE_THEME_DARK"&&((Z=this.data)==null?0:Z.darkColorPalette)){var N=this.data.darkColorPalette;L["--ytd-macro-markers-list-item-background-color"]=_.Rs(this.get("section2Color",N))}else{var S;_.wr()==="USER_INTERFACE_THEME_LIGHT"&&((S=this.data)==null?0:S.lightColorPalette)&&(N=this.data.lightColorPalette,L["--ytd-macro-markers-list-item-background-color"]=_.Rs(this.get("section3Color",N)))}N?(L["--ytd-macro-markers-list-item-title-color"]=
_.Rs(this.get("primaryTitleColor",N)),L["--ytd-macro-markers-list-item-secondary-color"]=_.Rs(this.get("secondaryTitleColor",N)),L["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Rs(this.get("section1Color",N)),this.customButtonProperties={customColors:{color:_.Rs(this.get("primaryTitleColor",N))}},this.useColorSampling=!0):(L["--ytd-macro-markers-list-item-background-color"]="initial",L["--ytd-macro-markers-list-item-title-color"]="initial",L["--ytd-macro-markers-list-item-secondary-color"]=
"initial",L["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Ld(this.hostElement,L)};
_.t.onEndpointMouseDown=function(L){this.startX=L.clientX};
_.t.onEndpointClick=function(L){var Z=this,N,S,u;return _.b(function(T){if(T.nextAddress==1){if(Z.startX!==L.clientX)return L.preventDefault(),T.return();Z.data&&Z.ytRendererBehavior.logExplicitClick(Z.data);if(!Z.seekWithAnimationOnClick)return T.jumpTo(0);if(L.button!==0||L.shiftKey||L.altKey||L.metaKey||L.ctrlKey||_.PQ(_.sx(L),Z.hostElement,["BUTTON".toString()]))return T.return();L.stopPropagation();L.preventDefault();return Z.data?T.yield(_.r9().getPlayerPromise(),3):T.return()}N=T.yieldResult;
u=(S=_.n(Z.data.onTap,_.so))==null?void 0:S.startTimeSeconds;u!==void 0&&N.seekToTimeWithAnimation(u*1E3,_.jM(Z.data.title));_.w7(T)})};
_.t.computeLayout=function(L){return L};
_.t.computeIsHighlighted=function(L){return!!L};
_.t.computeCarouselType=function(L){return L};
_.t.hideModernCarousel=function(L){return this.modern&&this.hideThumbnail(L)};
_.t.hideThumbnail=function(L){return this.enableProblemWalkthrough&&L!==null&&L==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.t.onRepeatButtonToggle=function(L){var Z=this;L.detail.toggled&&_.r9().getPlayerPromise().then(function(N){Z.ytPlayerListenerBehavior.listenToPlayerEvents(N,Z.JSC$15065_playerEvents);Z.listeningToPlayer=!0})};
_.t.onLoopRangeChange=function(L){var Z=_.QJ(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(Z){var N=Z.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",Z.polymerController.data);if(N){var S=Number(N.endTimeMs);if(Number(N.startTimeMs)!==(L==null?void 0:L.startTimeMs)||S!==(L==null?void 0:L.endTimeMs))Z.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.t.removePlayerListeners=function(){var L=this;this.listeningToPlayer&&_.r9().getPlayerPromise().then(function(Z){L.ytPlayerListenerBehavior.unlistenFromPlayerEvents(Z,L.JSC$15065_playerEvents);L.listeningToPlayer=!1})};
_.t.onActiveUpdate=function(L){this.active=L.detail.active};
i7.prototype.onColorPaletteChange=i7.prototype.onColorPaletteChange;i7.prototype.onDataChanged=i7.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.No.YtPlayerListenerBehavior),_.Q("design:type",_.SG)],i7.prototype,"ytPlayerListenerBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],i7.prototype,"data",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],i7.prototype,"useCustomColors",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],i7.prototype,"active",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],i7.prototype,"shouldShowButtons",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.Q("design:type",String)],i7.prototype,"layout",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.Q("design:type",Object)],i7.prototype,"isHighlighted",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],i7.prototype,"useHighlightStyling",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],i7.prototype,"modern",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],i7.prototype,"enableProblemWalkthrough",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.Q("design:type",String)],i7.prototype,"carouselType",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],i7.prototype,"useColorSampling",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],i7.prototype,"seekWithAnimationOnClick",void 0);_.r([_.Y(),_.Q("design:type",Object)],i7.prototype,"customButtonProperties",void 0);
_.r([_.TX("#repeat-button"),_.Q("design:type",HTMLElement)],i7.prototype,"repeatButton",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],i7.prototype,"onDataChanged",null);_.r([_.iA("data.lightColorPalette","data.darkColorPalette"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],i7.prototype,"onColorPaletteChange",null);_.r([_.P({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],i7);
_.m(i7,"ytd-macro-markers-list-item-renderer",function(){if(d5Y!==void 0)return d5Y;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return d5Y=L},{mode:1});var am5;var hts;var u7=function(){return _.e.apply(this,arguments)||this};
_.f(u7,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],u7.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],u7);
_.m(u7,"ytd-title-and-button-list-header-renderer",function(){if(hts!==void 0)return hts;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return hts=L},{mode:1});var scq;var jcs=new _.iY("BUTTON_RENDERER_WIZ_TOKEN"),Eqh=new _.iY("BUTTON_RENDERER_TOKEN");_.T9=_.p(function(L){var Z=_.GR().resolve(_.gv(jcs));if(Z)return _.g(Z,Object.assign({},L,{overrides:L.buttonOverrides}));var N=_.GR().resolve(Eqh);return N?_.g(mr_,null,function(){return _.g(be,null,function(){var S,u,T,W,V,M,G,D,l,v,R,K;return void N(L.data(),{onButtonClickCallback:L.onButtonClickCallback,shouldShowIcons:(S=L.shouldShowIcons)==null?void 0:S.call(L),icon:(u=L.icon)==null?void 0:u.call(L),processAllEndpoints:(T=L.processAllEndpoints)==null?void 0:T.call(L),preventDefault:(W=L.preventDefault)==
null?void 0:W.call(L),stopPropagation:(V=L.stopPropagation)==null?void 0:V.call(L),disableButtonRendererClickHandling:(M=L.disableButtonRendererClickHandling)==null?void 0:M.call(L),className:(G=L.className)==null?void 0:G.call(L),buttonOverrides:(D=L.buttonOverrides)==null?void 0:D.call(L),forceModernIconButton:(l=L.forceModernIconButton)==null?void 0:l.call(L),isSubscribe:(v=L.isSubscribe)==null?void 0:v.call(L),alignByText:(R=L.alignByText)==null?void 0:R.call(L),forceDisabled:(K=L.forceDisabled)==
null?void 0:K.call(L)})})}):_.g(_.F7,null)},"Va");
_.T9.idomCompat=!0;var PL5=_.p(function(L){var Z=L.data,N=_.jA(L.useSquareAspectRatio,!1);return _.g("dismissed-mini-game-card-view-model",null,_.g(_.F,{cond:function(){var S,u;return(S=Z().responseText)==null?void 0:(u=S.runs)==null?void 0:u.length},
then:function(){var S={};return _.g("div",{class:_.qg("yt-mini-game-card-view-model__dismissed-card",(S["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!N()},S["yt-mini-game-card-view-model--dismissed-square-card"]=N,S))},_.g("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.g(_.F,{cond:function(){return Z().responseText.runs[0].text},
then:function(u){return _.g("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:u},u)}}),_.g(_.bj,{data:function(){return Z().buttons}},{buttonRenderer:_.T9,
buttonViewModel:_.$X})))}}))},"Wa");var QcV=_.p(function(L){L=_.Ek(L,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var Z=L.data,N=L.useFullWidth,S=L.isDesktopWeb,u=L.addSearchResultTopMargin,T=function(){return Z().layout},W=function(){return Z().title},V=function(){return Z().metadataText?Z().metadataText:Z().genre},M=function(){return Z().channelName},G=function(){return Z().image},D=function(){return Z().colorPalette},l=function(){return Z().actionButton},v=function(){return Z().overflowButton},
R=function(){return Z().avatar},K=function(){var E={};
E=_.qg("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(E["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return S()},E));
return _.g("div",{class:E},_.g(prt,{imageData:G,colorPalette:D}),_.g(ztt,{onTap:function(){return Z().onTap},
imageData:G,accessibilityText:function(){return Z().accessibilityText},
overlayBadgeText:function(){return Z().overlayBadgeText},
iconName:function(){return Z().iconName},
unplayableInlinePlaybackIconName:function(){return Z().unplayableInlinePlaybackIconName},
isDesktopWeb:S}),_.g(_.F,{cond:function(){return!S()},
then:function(){return _.g(_.F7,null,_.g(m5q,{layout:T,colorPalette:D,isDesktopWeb:S,overflowButton:v,avatar:R,onTap:function(){return Z().onTap},
genre:V,title:W,channelName:M}),_.g(J7I,{actionButton:l}))}}))},U=function(){var E={};
E=_.qg((E["yt-mini-game-card-view-model--search-result-desktop"]=function(){return S()},E["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!S()},E["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return u()},E));
return _.g("div",{class:E},K(),_.g(CLI,{description:function(){return Z().description},
isDesktopWeb:S,title:W,genre:V,onTap:function(){return Z().onTap},
actionButton:l,overflowButton:v,avatar:R,channelName:M}))},d=function(){var E={};
E=_.qg("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(E["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return S()},E["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return S()&&Z().width===135},E["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return S()},E["yt-mini-game-card-view-model--big-metadata-font"]=function(){return Z().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},E["yt-mini-game-card-view-model--use-full-width"]=
function(){return N()},E["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!l()},E));
return _.g("div",{class:E},_.g(r7h,{colorPalette:D,isDesktopWeb:S,onTap:function(){return Z().onTap},
accessibilityText:function(){return Z().accessibilityText},
overlayBadgeText:function(){return Z().overlayBadgeText},
iconName:function(){return Z().iconName},
unplayableInlinePlaybackIconName:function(){return Z().unplayableInlinePlaybackIconName},
actionButton:l,imageData:G}),_.g(m5q,{layout:T,colorPalette:D,isDesktopWeb:S,overflowButton:v,avatar:R,onTap:function(){return Z().onTap},
genre:V,title:W,channelName:M}))},h=function(){var E={};
E=_.qg("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(E["yt-mini-game-card-view-model--square-card-desktop"]=function(){return S()},E["yt-mini-game-card-view-model--use-full-width"]=function(){return N()},E));
return _.g("div",{class:E},_.g(ztt,{onTap:function(){return Z().onTap},
imageData:G,accessibilityText:function(){return Z().accessibilityText},
overlayBadgeText:function(){return Z().overlayBadgeText},
iconName:function(){return Z().iconName},
unplayableInlinePlaybackIconName:function(){return Z().unplayableInlinePlaybackIconName},
isDesktopWeb:S}),_.g(m5q,{layout:T,colorPalette:D,isDesktopWeb:S,overflowButton:v,avatar:R,onTap:function(){return Z().onTap},
genre:V,title:W,channelName:M}))};
return _.g("mini-game-card-view-model",{class:L.className},_.g(_.EM,null,_.g(_.hh,{when:function(){return T()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return d()}),_.g(_.hh,{when:function(){return T()==="MINI_APP_LAYOUT_SQUARE"}},function(){return h()}),_.g(_.hh,{when:function(){return T()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return U()})))},"Xa");
QcV.idomCompat=!0;var J7I=_.p(function(L){var Z=_.jA(L.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.g(_.bj,{data:L.actionButton},{buttonViewModel:function(N){return _.g("div",{class:Z},_.g(_.$X,{data:N.data}))}})},"Ya"),ztt=_.p(function(L){var Z=L.onTap;
var N=L.imageData;var S=L.accessibilityText;var u=L.overlayBadgeText;var T=L.iconName;var W=L.unplayableInlinePlaybackIconName;L=L.isDesktopWeb;return _.g(_.bM,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:Z},_.g(_.ji,{data:N,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(S==null?void 0:S())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.g(XrO,{overlayBadgeText:u,iconName:T,unplayableInlinePlaybackIconName:W,isDesktopWeb:L}))},"Za"),XrO=_.p(function(L){var Z=L.overlayBadgeText;
var N=L.iconName;var S=L.unplayableInlinePlaybackIconName;var u=L.isDesktopWeb;return _.g("div",{class:"yt-mini-game-card-view-model__badge-container"},_.g(_.F,{cond:N,then:function(T){return _.g("div",{class:"yt-mini-game-card-view-model__badge"},_.g("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.g(_.T0,{icon:T,className:"yt-mini-game-card-view-model__icon",size:12}),_.g("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},Z)))}}),_.g(_.F,{cond:function(){return!N()&&
Z()},
then:function(){return _.g("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},Z)}}),_.g(_.F,{cond:function(){return S()&&u()},
then:function(){return _.g("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.g(_.T0,{icon:S,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"$a"),prt=_.p(function(L){var Z=L.colorPalette;
var N=L.imageData;var S=function(){return Z().vibrantColorPalette?Z().vibrantColorPalette.section2Color:Z().sectionTwoColor};
return _.g(_.F7,null,_.g("div",{class:"yt-mini-game-card-view-model__background-base",style:_.u4({"background-color":function(){return cq(S(),"1")}})}),_.g("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.u4({"background-image":function(){return"url("+N().sources[0].url+")"}})}),_.g("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.u4({background:function(){return"linear-gradient(180deg,\n    "+cq(S(),".8")+" 0%,\n    "+cq(S(),".4")+" 25%,\n    "+cq(Z().vibrantColorPalette?Z().vibrantColorPalette.section4Color:Z().sectionFourColor,".8")+" 100%)"}})}))},"ab"),m5q=_.p(function(L){var Z=L.layout;
var N=L.colorPalette;var S=L.overflowButton;var u=L.avatar;var T=L.onTap;var W=L.title;var V=L.channelName;var M=L.genre;var G=function(){var D;return Z()!=="MINI_APP_LAYOUT_SQUARE"&&((D=N())==null?0:D.textPrimaryColor)?"color: "+cq(N().textPrimaryColor,".7"):""};
return _.g("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.g(_.F,{cond:u,then:function(){return _.g("div",{class:"yt-mini-game-card-view-model__avatar"},_.g(_.bj,{data:u},{avatarViewModel:_.JO}))}}),_.g(_.bM,{command:T,
className:"yt-mini-game-card-view-model__metadata-details"},_.g("h3",{class:"yt-mini-game-card-view-model__title",title:W},W),_.g(_.F,{cond:u,then:function(){return _.g("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.g("span",{class:"yt-mini-game-card-view-model__genre",title:V,style:G},V),_.g("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:G},M))},
else:function(){return _.g("span",{class:"yt-mini-game-card-view-model__genre",title:M},M)}})),_.g("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.g(_.bj,{data:S},{buttonViewModel:function(D){var l=D.data;
return _.g(_.$X,{data:function(){return Object.assign({},l(),{customFontColor:Z()==="MINI_APP_LAYOUT_SINGLETON"?l().customFontColor:void 0})}})}})))},"bb"),r7h=_.p(function(L){var Z=L.colorPalette;
var N=L.isDesktopWeb;var S=L.onTap;var u=L.accessibilityText;var T=L.overlayBadgeText;var W=L.iconName;var V=L.unplayableInlinePlaybackIconName;var M=L.actionButton;L=L.imageData;return _.g("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.g(prt,{imageData:L,colorPalette:Z}),_.g(ztt,{onTap:S,imageData:L,accessibilityText:u,overlayBadgeText:T,iconName:W,unplayableInlinePlaybackIconName:V,isDesktopWeb:N}),_.g(_.F,{cond:function(){return M==null?void 0:M()},
then:function(){return _.g(J7I,{actionButton:M})}}))},"cb"),CLI=_.p(function(L){var Z=L.description;
var N=L.isDesktopWeb;var S=L.title;var u=L.genre;var T=L.onTap;var W=L.actionButton;var V=L.overflowButton;var M=L.avatar;L=L.channelName;var G={};G=_.qg("yt-mini-game-card-view-model--search-result-metadata-wrapper",(G["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=N,G["yt-mini-game-card-view-model--show-unplayable-on-hover"]=N,G["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!N()},G));
var D={};D=_.qg("yt-mini-game-card-view-model__search-result-info-row",(D["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!N()},D));
return _.g("div",{class:G},_.g("div",{class:D},_.g(_.bM,{command:T,className:"yt-mini-game-card-view-model__metadata-details"},_.g("h3",{class:"yt-mini-game-card-view-model__title",title:S},S),_.g("span",{class:"yt-mini-game-card-view-model__genre",title:u},u)),_.g(J7I,{actionButton:W,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.g("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.g(_.bj,{data:V},{buttonViewModel:_.$X}))),_.g("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.g("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.g("div",{class:"yt-mini-game-card-view-model__avatar"},_.g(_.bj,{data:M},{avatarViewModel:function(l){var v=l.data;return _.g(_.JO,{data:function(){return Object.assign({},v(),{avatarImageSize:N()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.g(_.bM,{command:T,
className:"yt-mini-game-card-view-model__description"},_.g("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},L)),_.g(_.bM,{command:T,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.g("div",null)))),_.g(_.F,{cond:N,then:function(){return _.g(_.bM,{command:T,className:"yt-mini-game-card-view-model__description"},Z)}}))},"db");_.CY(QcV,"mini-game-card-view-model",{props:{data:_.LK,className:_.LK,useFullWidth:_.LK,isDesktopWeb:_.LK,addSearchResultTopMargin:_.LK}});_.CY(PL5,"dismissed-mini-game-card-view-model",{props:{data:_.LK,useSquareAspectRatio:_.LK}});var tI=function(){var L=_.e.apply(this,arguments)||this;L.isSearch=!1;L.isRichGrid=!1;return L};
_.f(tI,_.e);_.t=tI.prototype;_.t.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.t.dismissibleItemOnYtServiceRequestSent=function(L,Z){Z.actions&&this.dismissibleItemProcessActions(L,Z.actions)};
_.t.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.t.dataChanged=function(){this.dismissibleItemReset()};
_.t.dismissibleItemProcessActions=function(L,Z){for(var N=0;N<Z.length;N++){var S=Z[N];_.n(S,_.YZ)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.n(S,_.YZ)),L.stopPropagation())}};
_.t.dismissibleItemHandleReplaceEnclosingAction=function(L){this.dismissedRenderer=L.item;this.isDismissed=!0};
_.gd.Object.defineProperties(tI.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var L;return!!this.data&&!((L=this.dismissedRenderer)==null?0:L.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.dismissedRenderer)==null||!L.notificationMultiActionRenderer)}}});
tI.prototype.dataChanged=tI.prototype.dataChanged;tI.prototype.dismissibleItemOnRequestSent=tI.prototype.dismissibleItemOnRequestSent;tI.prototype.dismissibleItemOnYtServiceRequestSent=tI.prototype.dismissibleItemOnYtServiceRequestSent;_.r([_.Y(),_.Q("design:type",Object)],tI.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],tI.prototype,"isSearch",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],tI.prototype,"isDismissed",void 0);
_.r([_.Y(),_.Q("design:type",Object)],tI.prototype,"dismissedRenderer",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],tI.prototype,"isRichGrid",void 0);_.r([_.w("data.layout"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],tI.prototype,"useSquareAspectRatio",null);_.r([_.w("data","dismissedRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],tI.prototype,"showCard",null);
_.r([_.w("data","dismissedRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],tI.prototype,"showDismissed",null);_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],tI.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.r([_.SA("yt-service-request-sent-button-renderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],tI.prototype,"dismissibleItemOnRequestSent",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tI.prototype,"dataChanged",null);_.r([_.ch({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],tI);
_.m(tI,"ytd-mini-game-card-view-model",function(){if(scq!==void 0)return scq;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return scq=L},{mode:_.Qr("kevlar_poly_si_batch_j081")?1:2});var A7t;var HCL;var Oq=function(){return _.Gc.apply(this,arguments)||this};
_.f(Oq,_.Gc);Oq.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
Oq.prototype.getContinuationUrl=function(L){var Z={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(Z.itct=this.data.clickTrackingParams);return _.t3(L,Z)};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Oq.prototype,"data",void 0);_.r([_.ch({is:"yt-reload-continuation",noInjection:!0})],Oq);var Bhh;var x55;var WA=function(){var L=_.e.apply(this,arguments)||this;L.notificationData={};return L};
_.f(WA,_.e);_.t=WA.prototype;_.t.isMenuExpanded=function(L){return L&&L.length<=1?"undefined":"false"};
_.t.dataChanged_=function(){this.selected=void 0;var L=this.computeSelectedIndex_(this.data);L>=0&&(this.selected=L);L=this.data&&this.data.length>1;_.Az(this.hostElement,"has-items",L);_.QJ(this.hostElement).querySelector("#label").tabIndex=L?0:-1};
_.t.onDropdownOpen=function(){var L=_.RH();if(this.parentTrackingParams&&this.data){var Z=_.Mg(this.parentTrackingParams);this.data.forEach(function(N){L&&Z&&N.trackingParams&&(N=_.Mg(N.trackingParams),_.ez(L,Z,N),_.aq(L,[N]))})}else this.parentTrackingParams||_.Q7(new _.sr("No parent tracking params passed in for yt-dropdown-menu."))};
_.t.hasNotification=function(L){var Z;if(L.targetId&&((Z=this.notificationData)==null?0:Z.targetId)){var N;return L.targetId===((N=this.notificationData)==null?void 0:N.targetId)}};
_.t.computeSelectedIndex_=function(L){if(L)for(var Z=0,N=L.length;Z<N;Z++)if(L[Z].selected)return Z;return-1};
_.t.computeLabel_=function(L){return this.data&&L!=void 0?this.data[L].title:""};
_.t.computeShowIcon_=function(L,Z){return!Z&&!!L};
_.t.computeVerticalOffset_=function(L){return L?36:0};
_.t.computeEndpoint_=function(L){return L.endpoint||L.navigationEndpoint};
_.t.onLabelClick_=function(L){this.data&&this.data.length<=1?L.stopPropagation():this.menuExpanded="true"};
_.t.onIronActivate_=function(L){L=L.detail.item;var Z=_.QJ(this.hostElement).querySelector("#repeat").itemForElement(L);if(Z&&Z.trackingParams){var N=_.RH(),S=_.Mg(Z.trackingParams);N&&_.sT(N,S)}if(Z&&Z.serviceEndpoint)_.c("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(Z.serviceEndpoint):_.H2(this.hostElement,[Z.serviceEndpoint]),_.QT(this.hostElement,"yt-playlist-reloading");else a:{if((Z=L.querySelector("yt-supported-renderers"))&&
(Z=Z.rendererElement)&&Z.is=="yt-reload-continuation"){Z.trigger();break a}(L=L.querySelector("yt-reload-continuation"))&&L.trigger()}};
_.t.onTap_=function(L){L.preventDefault()};
_.t.onItemTap_=function(L){this.ytEndpointBehavior.onEndpointTap_(L)};
_.t.onLinkFocus_=function(L){try{var Z=L.target}catch(S){}if(Z){var N=Z.querySelector("tp-yt-paper-item");N&&_.YD(this,"focus",function(){N.focus()})}};
_.t.onMenuClose_=function(){this.menuExpanded="false"};
_.t.isLabelIconActive_=function(L){return L==="true"};
_.t.computeHasSubtitle_=function(L){return!!L};
_.t.computeHrefForItem_=function(L){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(L))};
_.t.updateSelectedFromBinding=function(L){this.selected=L.detail.value};
_.gd.Object.defineProperties(WA.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
WA.prototype.onMenuClose_=WA.prototype.onMenuClose_;WA.prototype.onTap_=WA.prototype.onTap_;WA.prototype.onIronActivate_=WA.prototype.onIronActivate_;WA.prototype.onDropdownOpen=WA.prototype.onDropdownOpen;WA.prototype.dataChanged_=WA.prototype.dataChanged_;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],WA.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.o3.YtEndpointBehavior),_.Q("design:type",Object)],WA.prototype,"ytEndpointBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Array)],WA.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],WA.prototype,"parentTrackingParams",void 0);_.r([_.Y(),_.Q("design:type",Object)],WA.prototype,"selected",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],WA.prototype,"useLabel",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],WA.prototype,"useComputedAriaLabel",void 0);_.r([_.Y(),_.Q("design:type",String)],WA.prototype,"icon",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],WA.prototype,"iconLabel",void 0);_.r([_.Y(),_.Q("design:type",String)],WA.prototype,"ariaLabel",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],WA.prototype,"disabled",void 0);_.r([_.Y({computed:"isMenuExpanded(data)"}),_.Q("design:type",String)],WA.prototype,"menuExpanded",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],WA.prototype,"closeOnActivate",void 0);
_.r([_.Y({reflectToAttribute:!0,value:_.c("web_modern_buttons")}),_.Q("design:type",Boolean)],WA.prototype,"modernButtons",void 0);_.r([_.Y(),_.Q("design:type",Object)],WA.prototype,"notificationData",void 0);_.r([_.w("ariaLabel, selected"),_.Y(),_.Q("design:type",String),_.Q("design:paramtypes",[])],WA.prototype,"computedAriaLabel",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],WA.prototype,"dataChanged_",null);
_.r([_.SA("paper-dropdown-open"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],WA.prototype,"onDropdownOpen",null);_.r([_.SA("iron-activate"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],WA.prototype,"onIronActivate_",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],WA.prototype,"onTap_",null);
_.r([_.SA("iron-overlay-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],WA.prototype,"onMenuClose_",null);_.r([_.ch({is:"yt-dropdown-menu",disableElementRegistration:!0})],WA);
_.m(WA,"yt-dropdown-menu",function(){if(x55===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Bhh===void 0&&(Bhh=document.createElement("template"));var S=Bhh;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);x55=L}L=x55;return L},{mode:2});var VQ=function(){var L=_.e.apply(this,arguments)||this;L.hasNotification=!1;return L};
_.f(VQ,_.e);VQ.prototype.computeId=function(L){return L};
VQ.prototype.computeHorizontalAlign=function(L){return L?"right":"left"};
VQ.prototype.computeAccessibilityLabel=function(L){var Z,N;return((Z=L.accessibility)==null?void 0:(N=Z.accessibilityData)==null?void 0:N.label)||null};
VQ.prototype.notificationDataChanged=function(){var L;this.hasNotification=!!this.notificationData&&!((L=this.data)==null?0:L.icon)};
VQ.prototype.notificationDataChanged=VQ.prototype.notificationDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Cf.YtLiveChatTooltipTargetingBehavior),_.Q("design:type",Object)],VQ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],VQ.prototype,"data",void 0);_.r([_.Y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Q("design:type",String)],VQ.prototype,"id",void 0);
_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],VQ.prototype,"isRightAligned",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],VQ.prototype,"disabled",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],VQ.prototype,"closeOnActivate",void 0);_.r([_.Y(),_.Q("design:type",Object)],VQ.prototype,"notificationData",void 0);_.r([_.Y(),_.Q("design:type",Object)],VQ.prototype,"hasNotification",void 0);
_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],VQ.prototype,"useComputedAriaLabel",void 0);_.r([_.iA("notificationData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VQ.prototype,"notificationDataChanged",null);_.r([_.ch({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],VQ);
_.m(VQ,"yt-sort-filter-sub-menu-renderer",function(){if(HCL===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;A7t===void 0&&(A7t=document.createElement("template"));var S=A7t;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);HCL=L}L=HCL;return L},{mode:2});var qHN=_.p(function(L){var Z=L.data;var N=_.Z9(function(){var T=Z().onTap;(T=_.n(T,_.nY))&&_.GR().resolve(_.$s).resolveCommand(T);return!1}),S=function(){return{sources:[{url:Z().thumbnailUrl,
width:120,height:90}]}},u=function(){return Z().rating&&Z().ratingA11yLabel&&Z().reviewsCount&&Z().reviewsCountA11yLabel};
return _.g("place-data-view-model",null,_.g(_.F,{cond:function(){return Z().placeName&&Z().placeCategory},
then:function(){return _.g("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":N},_.g(_.ji,{data:S,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.g(_.bM,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return Z().onTap}},_.g("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return Z().placeName}},function(){return Z().placeName})),_.g("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.g(_.F,{cond:u,
then:function(){return _.g("div",{class:_.qg("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.g("span",{class:"score",title:function(){return Z().ratingA11yLabel}},function(){return Z().rating}),_.g("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.g(_.T0,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.g("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return Z().reviewsCountA11yLabel}},function(){return Z().reviewsCount}))},
else:function(){return _.g("div",{class:_.qg("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.g("div",{class:_.qg("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.g("span",{class:"category",
title:function(){return Z().placeCategory}},function(){return Z().placeCategory}))))}}))},"eb");
qHN.idomCompat=!0;_.CY(qHN,"place-data-view-model",{props:{data:_.LK}});var LqO=new _.iY("INLINE_PLAYBACK_HOOK_TOKEN");var Zjh=_.oV({sharedUi:_.dw0});_.Y9=_.RV(Zjh)(Zjh.sharedUi,{animatedThumbnailEnabledSelector:function(L){return L.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(L){return L.inlinePreviewEnabled},
currentPageTypeSelector:function(L){return L.currentPageType},
currentPageSubTypeSelector:function(L){return L.currentPageSubType},
persistentPanelVisibleSelector:function(L){return L.persistentPanelVisible}});var Nlh=function(L){this.setActiveSlideIndex=L;this.jobIds=[];this.isSlideshowPlaying=!1},ukh=function(L,Z){L.isSlideshowPlaying||(L.isSlideshowPlaying=!0,SJl(L),ijO(L,Z,0))},SJl=function(L){_.H9(_.ro,function(){L.setActiveSlideIndex(0)},1)},ijO=function(L,Z,N){L.jobIds.push(_.H9(_.ro,function(){var S=N<Z-1?N+1:0;
L.setActiveSlideIndex(S);ijO(L,Z,S)},1800))};var Tls=new _.iY("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");var txq=new _.iY("IMAGE_ON_LOAD_HANDLER_TOKEN");var Ojs=_.p(function(L){return _.g("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.g(_.F,{cond:function(){var Z;return(Z=L.data())==null?void 0:Z.thumbnail},
then:function(Z){return _.g(_.ji,{data:Z,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"fb");_.Wqt=_.p(function(L){var Z=L.data;var N=L.lockupExperiments;L={};return _.g("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.g("div",{class:_.qg("ytThumbnailOverlayButtonViewModelButton",(L.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var S;return N&&((S=N())==null?void 0:S.useLegacySizedIconButton)},L))},_.g(_.bj,{data:function(){return Z().overlayButton}},{buttonViewModel:function(S){return _.g(_.$X,{data:S.data,
buttonOverrides:function(){var u;return N&&((u=N())==null?0:u.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"gb");
_.Wqt.idomCompat=!0;var VxV=_.p(function(L){return _.g("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Z9(function(Z){Z.preventDefault();return!1})},_.g(_.bj,{data:function(){return L.data().buttons}},{toggleButtonViewModel:function(Z){return _.g("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.g(_.sj,{data:Z.data}))}}))},"hb");
VxV.idomCompat=!0;var bj5=_.p(function(L){var Z=function(){var N;return((N=_.n(L.data().rendererContext,_.Oi))==null?void 0:N.label)||""};
return _.g("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.g(_.F,{cond:function(){return L.data().image},
then:function(){return _.g("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.g(_.ji,{data:function(){return L.data().image},
alt:Z}))}}),_.g(_.F,{cond:function(){return L.data().text},
then:function(){return _.g("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return L.data().text})}}))},"ib");var MxM;MxM=_.Y9.animatedThumbnailEnabledSelector;_.b7=_.p(function(L){var Z=[],N=function(){var v,R;return Pi0((v=L.width)==null?void 0:v.call(L),(R=L.height)==null?void 0:R.call(L))},S=_.GR().resolve(_.gv(txq)),u=_.t2("yt-thumbnail-view-model",function(){Z.push("elRef.value set");
var v;(v=L.playbackRef)==null||v.call(L,{thumbnailElRef:u,thumbnail:L.data().image,thumbnailOverlays:L.data().overlays,thumbnailSize:N()})});
_.m0(function(){Z.push("onInit");_.zs(function(){Z.push("onCleanup")})});
var T=_.VB(MxM),W=function(){var v,R;return(R=(v=L.aspectRatio)==null?void 0:v.call(L))!=null?R:0},V=function(){return(L.data().image?_.uYH(L.data().image):W())<=1&&W()===0},M=function(){return V()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},G=function(){u.value||_.Q7(new _.sr("Thumbnail elRef.value is null",Z.join("\n")));
S&&u.value&&S(u.value)},D=function(){var v,R;
return((v=L.hovered)==null?void 0:v.call(L))&&N()!=="large"&&((R=L.data().overlays)==null?void 0:R.some(function(K){return _.n(K,FxN)}))},l={};
return _.g("yt-thumbnail-view-model",{class:_.qg("ytThumbnailViewModelHost",L.className,function(){return RfF(W())},function(){var v,R;
a:{var K=N(),U=(v=L.disableRounding)==null?void 0:v.call(L);v=(R=L.isClip)==null?void 0:R.call(L);if(!U&&!v)switch(K){case "large":R="ytThumbnailViewModelLarge";break a;case "small":R="ytThumbnailViewModelSmall";break a;default:R="ytThumbnailViewModelMedium";break a}R=void 0}return R},(l.ytThumbnailViewModelCinematic=V,l)),
style:_.u4({"background-color":function(){var v,R=V()?(v=L.data().backgroundColor)==null?void 0:v.lightTheme:void 0;return R?cq(R,"1"):void 0}}),
el:u},_.g(_.F,{cond:V,then:function(){return _.g("div",{class:"ytThumbnailViewModelBlurredImage"},_.g(_.ji,{data:function(){return L.data().image},
alt:"",contentMode:M,targetWidth:L.width,onload:G}))}}),_.g("div",{class:"ytThumbnailViewModelImage"},_.g(_.ji,{data:function(){return L.data().image},
alt:"",contentMode:M,targetWidth:L.width,onload:G}),null),_.g(_.bj,{data:function(){return D()?void 0:L.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:F9t,thumbnailOverlayBadgeViewModel:function(v){return _.g(_.$55,{data:v.data,thumbnailSize:N,isClip:L.isClip})},
thumbnailBottomOverlayViewModel:function(v){return _.g(bCI,{data:v.data,thumbnailSize:N,isClip:L.isClip})},
thumbnailOverlayFullViewModel:bj5,thumbnailOverlayButtonViewModel:function(v){return _.g(_.Wqt,{data:v.data,lockupExperiments:L.lockupExperiments})},
channelDisclosureViewModel:function(v){v=v.data;var R;return _.g("div",null,(R=_.GR().resolve(_.gv(Tls)))==null?void 0:R({data:v}))}}),_.g(_.bj,{data:function(){var v;
return((v=L.hovered)==null?0:v.call(L))?L.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(v){return _.g(mx,{data:v.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:VxV}),_.g(_.bj,{data:function(){var v;return((v=L.hovered)==null?0:v.call(L))&&T()?L.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:Ojs}),_.g(_.F,{cond:L.isClip,then:function(){return _.g("div",{class:"ytPinkingNsHost"},_.g("svg",{class:"ytPinkingNsPinkingLeft"},_.g("defs",null,_.g("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.g("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.g("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.g("svg",{class:"ytPinkingNsPinkingRight"},_.g("defs",null,_.g("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.g("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.g("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"jb");
_.b7.idomCompat={callbacks:{playbackRef:!0}};var gzQ=_.p(function(L){var Z=_.O(_.nh(-1,void 0,"RW2Ole")),N=Z.next().value,S=Z.next().value;_.m0(function(){var u=new Nlh(S);ukh(u,L.data().thumbnails.length);_.zs(function(){if(u.isSlideshowPlaying){u.isSlideshowPlaying=!1;for(var T=u.jobIds,W=0,V=T.length;W<V;W++)_.ro.cancelJob(T[W]);u.jobIds.length=0}})});
return _.g("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.g(_.bj,{data:function(){return L.data().thumbnails}},{thumbnailViewModel:function(u,T){return _.g("div",{class:function(){var W=!L.data().primaryThumbnail,V=T(),M=N(),G=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
W&&V===0&&G.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");V<=M&&G.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return G.join(" ")}},_.g(_.b7,{data:u.data,
disableRounding:L.disableRounding}))}}))},"kb");
gzQ.idomCompat=!0;var cgw=new _.iY("DWELL_DETECTOR_REGISTRY_TOKEN");var FqQ=_.p(function(L){var Z=nl0(L.triggeringElement),N=function(){return!!L.data().primaryThumbnail},S=function(){var T,W=(T=L.data())==null?void 0:T.maxHeight,V;
T=(V=L.maxHeight)==null?void 0:V.call(L);return W!=null&&T!=null?Math.min(W,T):T!=null?T:W},u=function(){var T=S();
if(T){var W;if(N()&&(W=L.includeStackHeight)!=null&&W.call(L)){var V;W=((V=L.doubleStack)==null?0:V.call(L))?8:4}else W=0;T=T-W-1;if(!(T<0)){V=Math;W=V.ceil;var M,G;var D=EIG((G=(M=L.aspectRatio)==null?void 0:M.call(L))!=null?G:0);return W.call(V,T*D)}}};
return _.g("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.u4({height:function(){return S()?S()+"px":void 0},
width:function(){return u()?u()+"px":void 0}})},_.g(Gft,{stackEnabled:N,
thumbnailSize:function(){var T,W;return Pi0((T=L.width)==null?void 0:T.call(L),(W=L.height)==null?void 0:W.call(L))},
doubleStack:L.doubleStack,stackColor:function(){return L.data().stackColor},
includeStackHeight:L.includeStackHeight},_.g(_.bj,{data:function(){return L.data().primaryThumbnail}},{thumbnailViewModel:function(T){var W={};
return _.g(_.b7,{data:T.data,width:L.width,height:L.height,aspectRatio:L.aspectRatio,disableRounding:L.disableRounding,className:_.qg((W.ytCollectionThumbnailViewModelHostHasStacks=N,W)),hovered:L.hovered,playbackRef:L.playbackRef})}}),_.g(_.F,{cond:function(){var T;
return Z()&&((T=L.data().thumbnails)==null?void 0:T.length)},
then:function(){return _.g("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.g(gzQ,{data:L.data,disableRounding:function(){return!N()}}))}})))},"lb");
FqQ.idomCompat={callbacks:{playbackRef:!0}};
var Gft=_.p(function(L){var Z=L.children;var N=L.stackEnabled;var S=L.thumbnailSize;var u=L.doubleStack;var T=L.stackColor;var W=L.includeStackHeight;var V,M=(V=_.GR().resolve(_.gv(_.d$)))==null?void 0:V();return _.g(_.F,{cond:N,then:function(){return _.g(pkh,{data:function(){var G,D;return{experimentEnabled:!0,thumbnailSize:S(),doubleStack:u==null?void 0:u(),color:M?T==null?void 0:(G=T())==null?void 0:G.darkTheme:T==null?void 0:(D=T())==null?void 0:D.lightTheme,enableResponsiveMode:!1,includeStackHeight:W==
null?void 0:W()}}},Z)},
else:function(){return Z}})},"mb");var $pt=new _.iY("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var gL;_.M1={calledOnce:!0,state:"visible"};gL={calledOnce:!0,state:"hidden"};_.G9=_.p(function(L){var Z=L.data;var N=L.customCommandResolver;var S=L.className;var u=L.delayedClassName;var T=L.animationEntityKey;var W=L.isCompactWidth;var V=L.isContentWidth;L=_.O(_.nh(!1,void 0,"pC3tUb"));var M=L.next().value,G=L.next().value,D=_.jA(T,""),l=_.OS(oIH,D),v=function(){var lH,RF;return(RF=(lH=l())==null?void 0:lH.value)!=null?RF:!1},R=function(){_.sk(_.Mr("booleanEntity",D(),{key:D(),
value:!0}));C=void 0};
T=_.O(_.i4(v));var K=T.next().value,U=T.next().value;T=_.O(_.i4(v));var d=T.next().value,h=T.next().value;T=_.O(_.i4(function(){var lH;return v()?(lH=Z().styleTransitionConfig)==null?void 0:lH.destinationStyle:void 0}));
var E=T.next().value,A=T.next().value,J=function(){var lH=Object.assign({},Z(),E()&&{style:E()});var RF,jf,f1=lH.label,n0=(RF=lH.interaction)==null?void 0:(jf=RF.accessibility)==null?void 0:jf.label;RF=lH.iconImage?lH.label&&lH.label.content?lH.iconLeading?"leading":"trailing":"icon-only":void 0;lH={formattedButtonText:f1,accessibilityLabel:n0,style:ygG(lH.style),type:wk1(lH.style),state:"active",size:kjA(lH.size),iconPosition:RF,disabled:!1,aTagConfig:fBf(lH,N)};_.c("enable_desktop_vdcbg_components")&&
(lH.focused=M());return lH},C;
T=_.$b({visibilityCallback:function(lH){var RF,jf=(RF=Z().interaction)==null?void 0:RF.onFirstVisible;lH&&jf&&_.w$(jf)},
showOption:_.M1});var X=function(){return XIs(J(),!!Z().iconImage)};
L={};var L1={};S=_.qg(function(){return"ytwAdButtonViewModelHost"},function(){return Z().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var lH=!!Z().delayedAppearanceConfig,RF=K();
return lH?RF?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var lH=!!Z().delayedAppearanceConfig,RF=d();
return lH?RF?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!Z().delayedAppearanceConfig||K()?u==null?void 0:u():""},(L.ytwAdButtonViewModelHostCompactWidth=function(){return W==null?void 0:W()},L),(L1.ytwAdButtonViewModelHostContentWidth=function(){return V==null?void 0:V()},L1),S!=null?S:"");
var Fw=function(){var lH,RF=(lH=Z().delayedAppearanceConfig)==null?void 0:lH.delayedInvisibleSeconds;RF&&(C=_.Gq(_.ro,function(){U(!0);GB()},RF*1E3))},GB=function(){var lH,RF=(lH=Z().delayedAppearanceConfig)==null?void 0:lH.delayedVisibleSeconds;
RF&&(C=_.Gq(_.ro,function(){h(!0);Yt()},RF*1E3))},Yt=function(){var lH,RF=(lH=Z().styleTransitionConfig)==null?void 0:lH.styleTransitionSeconds,jf,f1=(jf=Z().styleTransitionConfig)==null?void 0:jf.destinationStyle;
RF&&f1?C=_.Gq(_.ro,function(){A(f1);R()},RF*1E3):R()};
_.m0(function(){Fw()});
_.zs(function(){C&&_.ro.cancelJob(C)});
return _.g("ad-button-view-model",{"on:focusin":_.Z9(_.c("enable_desktop_vdcbg_components")?function(){var lH=_.GR().resolve(_.gv(_.VG));lH&&G(lH.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.Z9(_.c("enable_desktop_vdcbg_components")?function(){G(!1);return!1}:void 0),
class:S,el:_.P9(T),style:_.u4({"transition-duration":"0.3s"})},_.g(_.F,{cond:J,then:function(){return _.g(_.Ff,{data:J,icon:function(){return _.g(_.F,{cond:function(){return Z().iconImage},
then:function(lH){return _.g(_.ji,{data:lH,alt:"",targetWidth:X,targetHeight:X,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ob");var DpV=_.p(function(L){var Z=L.data;L=function(){return Z().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var N=_.$b({visibilityCallback:function(T){var W,V=(W=Z().interaction)==null?void 0:W.onFirstVisible;T&&V&&_.w$(V)},
showOption:_.M1}),S={},u={};return _.g("ad-button-group-view-model",{class:_.qg("ytwAdButtonGroupViewModelHost",(S.ytwAdButtonGroupViewModelHostCompactWidth=L,S)),el:_.P9(N)},_.g("div",{class:_.qg("ytwAdButtonGroupViewModelHostSecondaryButton",(u.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=L,u))},_.g(_.bj,{data:function(){return Z().secondaryAdButton}},{adButtonViewModel:function(T){return _.g(_.G9,{data:T.data})}})),_.g("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.g(_.bj,
{data:function(){return Z().primaryAdButton}},{adButtonViewModel:function(T){return _.g(_.G9,{data:T.data})}})))},"pb");var ldV=_.p(function(L){var Z=function(){var N;return((N=L.data())==null?void 0:N.answers)||[]};
return _.g("yt-survey-icons",{class:"ytSurveyIconsHost"},_.g("div",{class:"ytSurveyIconsHeader"},_.g("div",{class:"ytSurveyIconsTitle"},function(){var N;return(N=L.data())==null?void 0:N.text}),_.g("div",null,_.g(_.Ff,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var N;(N=L.onDismiss)==null||N.call(L)}}},
iconName:"DISMISSAL"}))),_.g("div",null,_.g("div",{class:"ytSurveyIconsAnswers"},_.g(_.ju,{each:function(){return Z()},
keyBy:"INDEX"},function(N,S){return _.g("div",null,_.g(_.Ff,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var u;(u=L.onSelect)==null||u.call(L,N(),S)}}},
icon:function(){return _.g(_.T0,{icon:function(){var u,T;return(u=N())==null?void 0:(T=u.icon)==null?void 0:T.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.g("div",{class:"ytSurveyIconsAnswersText"},_.g("div",null,function(){return Z().length?Z()[0].text:""}),_.g("div",null,function(){return Z().length?Z()[Z().length-1].text:""}))))},"qb");var vzt=_.p(function(L){var Z=_.P9(_.cT(function(){var M;return(M=L.data())==null?void 0:M.rendererContext},void 0,void 0,void 0,!0)),N=_.O(_.nh(!1,void 0,"GW0yjf")),S=N.next().value,u=N.next().value,T=_.OS(oHs,function(){var M;
return(M=L.data().keys)==null?void 0:M.surveyEntityKey}),W=_.OS(Rgf,function(){var M;
return(M=L.data().keys)==null?void 0:M.surveyStateEntityKey});
_.TD("ytd-slimline-survey-show-action",function(){u(!1)});
var V=function(){var M,G;var D=(M=W())==null?void 0:(G=M.questionStack)==null?void 0:G[0];if(D!==void 0){var l,v;return(l=T())==null?void 0:(v=l.questions)==null?void 0:v[D]}};
N={};return _.g("yt-slimline-survey-view-model",{el:Z,class:_.qg("ytSlimlineSurveyViewModelHost",(N.ytSlimlineSurveyViewModelCollapsed=function(){return S()},N))},_.g("div",{class:"ytSlimlineSurveyViewModelContainer"},_.g(_.F,{cond:function(){var M;
return((M=V())==null?void 0:M.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.g(ldV,{data:function(){return V()},
onSelect:function(M,G){var D,l;return _.b(function(v){u(!0);if(l=(D=L.data())==null?void 0:D.onSelectRating)_.w$(l),_.sk(CuY(G));_.w7(v)})},
onDismiss:function(){u(!0);var M;var G=(M=T())==null?void 0:M.dismissalFeedbackToken;M=G?{feedbackEndpoint:{feedbackToken:G}}:void 0;M&&_.fY(M,{form:{element:Z.value}})}})}})))},"rb");var ozQ=_.p(function(L){return _.g("yt-table-view-model",{class:_.qg("ytTableViewModelHost",L.className)},_.g(_.ju,{each:function(){return L.data().rows||[]}},function(Z){return _.g("div",{class:"ytTableViewModelRow"},_.g(_.ju,{each:function(){return(Z==null?void 0:Z.cells)||[]}},function(N,S){var u,T={};
return _.g("span",{class:_.qg((T.ytTableViewModelRowLabel=function(){return S()===0&&L.data().showHorizontalHeaders},T.ytTableViewModelCell=function(){return!L.data().showHorizontalHeaders||S()>0},T))},(u=N.text)==null?void 0:u.content)}))}))},"sb");var RFQ=_.p(function(L){return _.g("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.g(_.bj,{data:function(){var Z;return(Z=L.data())==null?void 0:Z.attachments}},{flexibleActionsViewModel:function(Z){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(_.rX,{data:Z.data,
layout:function(){var N;return((N=L.lockupStyle())==null?void 0:N.arrangement)===1?0:1},
justifyContentOverride:function(){var N;return((N=L.lockupStyle())==null?void 0:N.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(Z){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(vzt,{data:Z.data}))},
expandableMetadataViewModel:function(Z){Z=Z.data;var N;return _.g("div",{class:_.qg("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(N=_.GR().resolve(_.gv($pt)))==null?void 0:N({data:Z}))},
adButtonGroupViewModel:function(Z){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(DpV,{data:Z.data}))},
adButtonViewModel:function(Z){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(_.G9,{data:Z.data,isCompactWidth:!0}))},
tableViewModel:function(Z){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(ozQ,{data:Z.data}))}}))},"tb");var aBh=_.lQ("rich_grid_min_item_width",310),IBL=_.lQ("rich_grid_max_item_width",500);var cFl=_.p(function(L){var Z=L.data;return _.g("br-nz-badge-shape",{class:_.qg(function(){return zfx(Z().brNzRatingBadgeType)}),
role:function(){return Z().accessibilityText?"img":void 0},
"aria-label":function(){return Z().accessibilityText}},function(){var N;
return(N=Z())==null?void 0:N.text})},"ub");_.Fo=_.p(function(L){var Z=function(){var N=L.data(),S,u;if(N){var T=!((S=L.workaroundShortsIsThumbnailBadge)==null||!S.call(L));S=(u=L.modern)==null?void 0:u.call(L);var W;a:switch(N.badgeStyle){case "BADGE_OVERLAY":u=!0;break a;default:u=!1}N={type:T?17:mDw(N.badgeStyle),brNzRatingBadgeType:JgG(N.badgeStyle),text:N.badgeText,icon:N.iconName,isOverlay:u,modern:S||_.c("web_modern_badge_view_model"),accessibilityText:N.accessibilityLabel||((W=_.n(N.rendererContext,_.Oi))==null?void 0:W.label)}}else N=
void 0;return N};
return _.g("yt-badge-view-model",{class:_.qg("ytBadgeViewModelHost",L.class)},_.g(_.EM,null,_.g(_.hh,{when:function(){var N;return!((N=Z())==null||!N.brNzRatingBadgeType)}},function(){return _.g(cFl,{data:function(){return Z()}})}),_.g(_.hh,{when:function(){return!!Z()&&!Z().brNzRatingBadgeType}},function(){return _.g(_.Ho,{data:function(){return Z()}})})))},"vb");
_.Fo.idomCompat=!0;var rgf,CWx;rgf=16/9;CWx=2/3;_.$g=_.p(function(L){var Z=L.data;var N=L.className;var S=L.imageSizeConfig;var u=L.notifyOnLoaded;var T=function(){return Z().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},W=function(){var v;
return _.Rb((v=Z())==null?void 0:v.rendererContext)};
L={};L=(L.ytContentPreviewImageViewModelHost=!0,L.ytContentPreviewImageViewModelCircleImage=function(){return T()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},L.ytContentPreviewImageViewModelTappable=function(){return W()},L);
var V=function(){var v,R;return(R=(v=_.n(Z().rendererContext,_.Oi))==null?void 0:v.label)!=null?R:""},M=function(){return XkB(Z())},G=function(){var v=QPh(T(),Z().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",S==null?void 0:S(),AgF(M()),Z().layoutWidth,Z().layoutHeight),R=Object.assign({},v);
v.width&&(R.width=Math.round(v.width));v.height&&(R.height=Math.round(v.height));v.maxWidth&&(R.maxWidth=Math.round(v.maxWidth));v.maxHeight&&(R.maxHeight=Math.round(v.maxHeight));return R},D=_.wJ(function(){return G().height},void 0,"CxFlJb"),l=_.wJ(function(){return G().width},void 0,"lb8Jhd");
return _.g("yt-content-preview-image-view-model",{el:_.P9(_.cT(function(){var v;return(v=Z())==null?void 0:v.rendererContext})),
role:function(){return W()?"link":void 0},
tabindex:function(){return W()?0:void 0},
class:_.qg(N,L,function(){var v=T();var R=S==null?void 0:S();v=v==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||v==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||v==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||v==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(R==null?void 0:R.size)!=null&&R.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(R==null?void 0:R.size)!=null&&R.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return v}),
style:function(){var v=G(),R=[];v.width&&R.push("width: "+v.width+"px");v.height&&R.push("height: "+v.height+"px");v.maxWidth&&R.push("max-width: "+v.maxWidth+"px");v.maxHeight&&R.push("max-height: "+v.maxHeight+"px");v.fullWidth&&R.push("width: 100%");return R.join(";")}},_.g(_.F,{cond:M,
then:function(v){return _.g(_.ji,{data:v,alt:V,"data-disabled$":function(){return!V()},
notifyOnLoaded:u,targetWidth:l,targetHeight:D,preserveWidth:function(){return!!l()},
preserveHeight:function(){return!!D()}})}}),_.g(_.bj,{data:function(){var v;
return(v=Z())==null?void 0:v.overlays}},{thumbnailHoverOverlayViewModel:mx,
thumbnailOverlayButtonViewModel:_.Wqt}))},"wb");
_.$g.idomCompat=!0;var DH=_.p(function(L){var Z=L.data;var N=L.className;var S=L.useSmallLayout;var u=L.useMediumText;L=L.useHeavyText;var T={};return _.g("yt-attribution-view-model",{el:_.P9(_.cT(function(){var W;return(W=Z())==null?void 0:W.rendererContext})),
class:_.qg(N,(T.ytAttributionViewModelHost=!0,T.ytAttributionViewModelMediumText=u,T.ytAttributionViewModelHeavyText=L,T))},_.g(_.F,{cond:function(){return _.Rb(Z().rendererContext)},
then:function(){return _.g("button",{class:"ytAttributionViewModelTappable"},_.g(nzV,{data:Z,useSmallLayout:S}))},
else:function(){return _.g(nzV,{data:Z,useSmallLayout:S})}}))},"xb"),nzV=_.p(function(L){var Z=L.data;
var N=L.useSmallLayout;var S=function(){return{size:(N==null?0:N())?16:24}};
return _.g(_.F7,null,_.g(_.bj,{data:function(){return Z().contentPreviewImage}},{contentPreviewImageViewModel:function(u){return _.g(_.$g,{data:u.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:S})}}),_.g(_.bj,{data:function(){return Z().badge}},{badgeViewModel:function(u){return _.g(_.Fo,{data:u.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.g(_.F,{cond:function(){return Z().text},
then:function(){return _.g(_.qv,{text:function(){return Z().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.g(_.F,{cond:function(){return Z().suffix},
then:function(){return _.g(_.qv,{text:function(){return Z().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"yb");
DH.idomCompat=!0;var Kq5,fdV,kfY,yFl,wOl;Kq5=_.p(function(L){var Z=L.delimiter;var N=L.max;var S=L.index;var u=L.isStandalone;return _.g(_.F,{cond:function(){return N()-1>S()},
then:function(){var T={};return _.g("span",{class:_.qg("yt-content-metadata-view-model__delimiter",(T["yt-content-metadata-view-model__delimiter--standalone"]=u,T)),"aria-hidden":!0},Z)}})},"zb");
fdV=_.p(function(L){var Z=L.metadataPart;var N=L.maxLines;return _.g(_.qv,{text:function(){return Z().text},
linkInheritColor:!0,className:function(){return H_f(N())},
userInput:!0})},"Ab");
kfY=_.p(function(L){var Z=L.metadataPart;var N=L.maxLines;return _.g(_.F,{cond:function(){return Z().tooltip},
then:function(S){return _.g("span",{title:S,role:"tooltip"},_.g(fdV,{metadataPart:Z,maxLines:N}))},
else:function(){return _.g(fdV,{metadataPart:Z,maxLines:N})}})},"Bb");
yFl=_.p(function(L){var Z=L.metadataPart;var N=L.isOverlay;var S=L.useMediumText;var u=L.hideAvatar;var T=function(){return Z().maxLines!==void 0?Z().maxLines:1};
return _.g(_.F7,null,_.g(_.bj,{data:function(){return Z().avatarStack}},{avatarStackViewModel:function(W){return _.g(_.ri,{data:W.data,
isOverlay:N,useMediumText:S,hideAvatar:u})},
badgeViewModel:_.Fo}),_.g(_.F,{cond:function(){return Z().leadingIcon},
then:function(W){return _.g(_.T0,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return W().name},
size:function(){return W().width}})}}),_.g(_.F,{cond:function(){return Z().text},
then:function(){return _.g(kfY,{metadataPart:Z,maxLines:T})}}),_.g(_.F,{cond:function(){return Z().icon},
then:function(W){return _.g(_.T0,{className:"yt-content-metadata-view-model__icon",icon:function(){return W().name},
size:function(){return W().width}})}}))},"Cb");
wOl=_.p(function(L){var Z=L.metadataRow;var N=L.isInline;var S=L.delimiter;var u=L.isOverlay;var T=L.useMediumText;var W=L.extensions;var V=function(){var G,D=W==null?void 0:(G=W())==null?void 0:G.lockupMetadata;G=Z();var l,v;return!!((D==null?0:(l=D.byline)==null?0:l.hideAvatar)&&((v=_.n(G,tVQ))==null?void 0:v.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},M=function(){return Z().metadataParts||[]};
L={};return _.g("div",{class:_.qg("yt-content-metadata-view-model__metadata-row",(L["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=N,L["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var G,D=W==null?void 0:(G=W())==null?void 0:G.lockupMetadata;G=Z();var l,v;return!!((D==null?0:(l=D.byline)==null?0:l.addPadding)&&((v=_.n(G,tVQ))==null?void 0:v.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},L["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var G;
return!!(W==null?0:(G=W())==null?0:G.lockupMetadata)&&Z().badges&&!Z().metadataParts},L))},_.g(_.bj,{data:function(){return Z().badges}},{badgeViewModel:function(G){return _.g("div",{class:"yt-content-metadata-view-model__badge"},_.g(_.Fo,{data:G.data}))}}),_.g(_.ju,{each:M},function(G,D){return _.g(_.F7,null,_.g(yFl,{metadataPart:G,
isOverlay:u,useMediumText:T,hideAvatar:V}),_.g(Kq5,{delimiter:S,max:function(){return M().length},
index:D,isStandalone:!1}))}),_.g(_.F,{cond:function(){return Z().isSpacerRow&&!N()},
then:function(){return _.g("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Db");
_.l7=_.p(function(L){L=_.Ek(L,{layout:0,isOverlay:!1});var Z=L.data,N=L.layout,S=L.isOverlay,u=L.useMediumText,T=L.extensions,W=function(){return N()===0},V=function(){var G;
return((G=Z().metadataRows)==null?void 0:G.filter(function(D){var l,v=T==null?void 0:(l=T())==null?void 0:l.lockupMetadata,R,K;l=!!((v==null?0:(R=v.description)==null?0:R.hideDescription)&&((K=_.n(D,tVQ))==null?void 0:K.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var U,d;return!((v==null?0:(U=v.spacer)==null?0:U.hideSpacer)&&((d=_.n(D,tVQ))==null?void 0:d.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||l)}))||[]},M={};
return _.g("yt-content-metadata-view-model",{class:_.qg(L.className,"yt-content-metadata-view-model",(M["yt-content-metadata-view-model--inline"]=W,M["yt-content-metadata-view-model--tappable"]=function(){return _.Rb(Z().rendererContext)},M["yt-content-metadata-view-model--medium-text"]=u,M)),
el:_.P9(_.cT(function(){return Z().rendererContext}))},_.g(_.ju,{each:V},function(G,D){return _.g(_.F7,null,_.g(wOl,{metadataRow:G,
isInline:W,delimiter:function(){return Z().delimiter},
isOverlay:S,useMediumText:u,extensions:T}),_.g(_.F,{cond:function(){return W()&&!G.isSpacerRow},
then:function(){return _.g(Kq5,{delimiter:function(){return Z().delimiter},
max:function(){return V().length},
index:D,isStandalone:!0})}}))}))},"Eb");
_.l7.idomCompat=!0;var Upl=_.p(function(L){var Z=_.GR().resolve(_.gv(_.d$)),N={};return _.g("yt-lockup-metadata-view-model",{class:_.qg("yt-lockup-metadata-view-model",function(){a:{var S=L.lockupStyle();if(S==null?0:S.isOverlay)S="yt-lockup-metadata-view-model--overlay";else switch(S==null?void 0:S.arrangement){case 1:S="yt-lockup-metadata-view-model--horizontal";break a;default:S="yt-lockup-metadata-view-model--vertical"}}return S},function(){a:{var S=L.lockupStyle();
if(S==null?0:S.isTiny)S="yt-lockup-metadata-view-model--tiny";else switch(S==null?void 0:S.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":S="yt-lockup-metadata-view-model--compact";break a;default:S="yt-lockup-metadata-view-model--standard"}}return S},(N["yt-lockup-metadata-view-model--overlay"]=function(){var S;
return(S=L.lockupStyle())==null?void 0:S.isOverlay},N["yt-lockup-metadata-view-model--card"]=function(){var S;
return(S=L.lockupStyle())==null?void 0:S.isCard},N["yt-lockup-metadata-view-model--centered"]=function(){var S;
return(S=L.lockupStyle())==null?void 0:S.isCentered},N["yt-lockup-metadata-view-model--typography-bump"]=function(){var S;
return(S=L.lockupStyle())==null?void 0:S.typographyBump},N["yt-lockup-metadata-view-model--legacy-typography"]=function(){var S;
return(S=L.lockupStyle())==null?void 0:S.useLegacyTypography},N["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var S;
return(S=L.lockupStyle())==null?void 0:S.useRichGridLegacyTypography},N))},_.g(_.bj,{data:function(){return L.data().image}},{avatarStackViewModel:function(S){return _.g("div",{class:"yt-lockup-metadata-view-model__avatar"},_.g(_.ri,{data:S.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(S){return _.g("div",{class:"yt-lockup-metadata-view-model__avatar"},_.g(_.JO,{data:S.data}))},
decoratedAvatarViewModel:function(S){return _.g("div",{class:"yt-lockup-metadata-view-model__avatar"},_.g(_.CS,{data:S.data}))}}),_.g("div",{class:"yt-lockup-metadata-view-model__text-container"},_.g("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var S;return(S=L.data().title)==null?void 0:S.content}},_.g(_.F,{cond:function(){return L.data().title},
then:function(S){return _.g(_.bM,{command:L.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.u4({color:function(){var u;a:{var T=L.lockupStyle();var W=(u=L.hovered)==null?void 0:u.call(L);u=!(Z==null||!Z());var V;if((T==null?0:(V=T.onFocusEffect)==null?0:V.textPrimaryColor)&&W&&(T=u?T.onFocusEffect.textPrimaryColor.darkTheme:T.onFocusEffect.textPrimaryColor.lightTheme)){T=nX(T);break a}T=void 0}return T}}),
ariaLabel:L.lockupAccessibilityLabel},_.g(_.qv,{text:S,userInput:!0}))}})),_.g("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.u4({color:function(){var S;a:{var u=L.lockupStyle();var T=(S=L.hovered)==null?void 0:S.call(L);S=!(Z==null||!Z());var W;if((u==null?0:(W=u.onFocusEffect)==null?0:W.textSecondaryColor)&&T&&(u=S?u.onFocusEffect.textSecondaryColor.darkTheme:u.onFocusEffect.textSecondaryColor.lightTheme)){u=nX(u);break a}u=void 0}return u}})},_.g(_.bj,{data:function(){return L.data().metadata}},{contentMetadataViewModel:function(S){return _.g(_.l7,{data:S.data,
layout:1,useMediumText:function(){var u,T;return((u=L.lockupStyle())==null?void 0:u.typographyBump)||((T=L.lockupStyle())==null?void 0:T.useRichGridLegacyTypography)},
extensions:function(){var u,T,W,V;return{lockupMetadata:{byline:{hideAvatar:((u=L.lockupStyle())==null?void 0:u.arrangement)===0,addPadding:((T=L.lockupStyle())==null?void 0:T.arrangement)===1},description:{hideDescription:!((W=L.lockupStyle())==null||!W.compactMetadata)},spacer:{hideSpacer:!((V=L.lockupStyle())==null||!V.compactMetadata)}}}}})}})),_.g(_.bj,{data:function(){return L.data().attribution}},{attributionViewModel:function(S){return _.g("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.g(DH,{data:S.data,
useSmallLayout:!0}))}})),_.g("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.g(_.bj,{data:function(){return L.data().menuButton}},{buttonViewModel:function(S){return _.g(_.$X,{data:S.data,
buttonOverrides:function(){var u;return((u=L.lockupStyle())==null?0:u.isOverlay)?{style:"overlay"}:void 0}})}})))},"Fb");
Upl.idomCompat=!0;var YJV=_.p(function(L){var Z=_.t2("notification-multi-action-renderer");_.zp(function(){requestAnimationFrame(function(){_.OI(Z.value)})});
var N={},S={},u={};return _.g("notification-multi-action-renderer",{class:_.qg("ytNotificationMultiActionRendererHost",(N.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var T;return(T=L.useLegacyShelfStyle)==null?void 0:T.call(L)},N)),
el:Z},_.g("span",{"aria-live":"polite",class:_.qg("ytNotificationMultiActionRendererTextContainer",(S.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var T;return(T=L.useLegacyShelfStyle)==null?void 0:T.call(L)},S))},_.g(_.qv,{text:function(){return L.data().responseText}})),_.g("div",{class:_.qg("ytNotificationMultiActionRendererButtonContainer",(u.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var T;
return(T=L.useLegacyShelfStyle)==null?void 0:T.call(L)},u))},_.g(_.bj,{data:function(){var T;
return(T=L.data().buttons)==null?void 0:T.map(function(W){if(W=W.buttonRenderer){var V,M=Object,G=M.assign,D=(V=W.icon)==null?void 0:V.iconType;V=(V=W.command||W.serviceEndpoint||W.navigationEndpoint)?{innertubeCommand:V}:void 0;W={buttonViewModel:G.call(M,{},{iconName:D,onTap:V,trackingParams:W.trackingParams,titleFormatted:W.text?_.oX(W.text):void 0},xDs(W))}}else W=void 0;return W}).filter(function(W){return!!W})}},{buttonViewModel:function(T,W){return _.g("div",null,_.g(_.$X,{data:T.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var V;return((V=L.useModernStyles)==null?0:V.call(L))?{type:W()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Hb");var eFt=_.p(function(L){var Z=_.t2("notification-text-renderer");_.zp(function(){requestAnimationFrame(function(){_.OI(Z.value)})});
return _.g("notification-text-renderer",{el:Z,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.g(_.qv,{text:function(){return L.data().successResponseText}}))},"Jb");_.vA=_.p(function(L){var Z=_.OS(Ogt,function(){var S;return qQ_((S=L.contentId)==null?void 0:S.call(L))}),N=function(){var S;
return _.n((S=Z())==null?void 0:S.command,_.YZ)};
return _.g(_.F,{cond:function(){var S;if(!(S=N())){var u;S=_.n((u=Z())==null?void 0:u.command,Rkl)}return S},
then:function(){return _.g(_.F,{cond:N,then:function(){var S={};return _.g("div",{class:_.qg("ytDismissibleItemReplacedContent",function(){var u;return L9H((u=L.aspectRatio)==null?void 0:u.call(L))})},_.g("div",{class:_.qg((S.ytDismissibleItemAspectRatioContainer=function(){var u;
return((u=L.aspectRatio)==null?void 0:u.call(L))!==void 0},S))},_.g(_.bj,{data:function(){var u;
return(u=N())==null?void 0:u.item}},{notificationMultiActionRenderer:function(u){return _.g(YJV,{data:u.data,
useModernStyles:L.useModernStyle,useLegacyShelfStyle:L.useLegacyShelfStyle})},
notificationTextRenderer:eFt})))}})},
else:L.children})},"Kb");_.IdL=_.p(function(L){var Z=L.data;var N=L.customCommandResolver;L=_.P9(_.$b({visibilityCallback:function(T){var W,V=(W=Z().interaction)==null?void 0:W.onFirstVisible;T&&V&&_.w$(V)},
showOption:_.M1}));var S=function(){var T;return((T=Z().interaction)==null?0:T.onTap)?function(W){var V;KrB(W,(V=Z().interaction)==null?void 0:V.onTap,N)}:void 0},u=function(){var T,W=Z(),V=S(),M=(T=_.n(Z().rendererContext,_.Oi))==null?void 0:T.label;
a:switch(W.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":T=1;break a;default:T=0}return{size:SHL(W.size),type:T,onTap:V,accessibilityText:M}};
return _.g("ad-avatar-view-model",{class:function(){var T;return((T=Z().interaction)==null?0:T.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:L},_.g(_.F,{cond:function(){return Z().image},
then:function(T){return _.g(Gvt,{data:u,image:T})}}))},"Lb");_.o9=_.p(function(L){var Z=_.Ek(L,{hasDot:!1,usedInMasthead:!1}),N=Object.assign({},Z),S=Z.data,u=Z.hasDot;L=Z.customCommandResolver;var T=Z.usedInMasthead,W=(delete N.data,delete N.hasDot,delete N.customCommandResolver,delete N.usedInMasthead,N);Z=function(){return S().style};
Z!==void 0&&Z!==null||_.Zx(Error("Hh"));L=_.k9(function(){return S().interaction},L);
return _.g("ad-badge-view-model",{class:_.qg(function(){var V;return((V=S().interaction)==null?0:V.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var V=W.adRenderingContextType(),M=T();
S();return V!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||M?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.P9(L)},_.g(_.Ho,{data:function(){var V;S();return{type:2,text:(V=S().label)==null?void 0:V.content,adsIncludeDot:u(),isOverlay:S().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Mb");var dpq;_.R9=_.p(function(L){var Z=L.data;var N=L.customCommandResolver;var S=L.adRenderingContextType;return _.g("ad-details-line-view-model",{class:function(){var u;return((u=Z().interaction)==null?0:u.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.P9(_.$b({visibilityCallback:function(u){var T,W=(T=Z().interaction)==null?void 0:T.onFirstVisible;u&&W&&_.w$(W)},
showOption:_.M1}),_.k9(function(){return Z().interaction},N))},_.g(_.F,{cond:function(){return Z().style},
then:function(u){return _.g(_.ju,{each:function(){var T;return((T=Z())==null?void 0:T.attributes)||[]},
keyBy:"INDEX"},function(T){return _.g(dpq,{attribute:T,style:u,adRenderingContextType:function(){return S()}})})}}))},"Nb");
dpq=_.p(function(L){var Z=L.attribute;var N=L.style;var S=L.adRenderingContextType;return _.g(_.F,{cond:function(){return Z().text},
then:function(u){return _.g(_.qv,{text:u,className:function(){var T=S();N();return T==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ob");var adN=_.p(function(L){var Z=L.data;var N=L.typographyBump;var S=function(){return Z().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
L={};return _.g(_.F7,null,_.g("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.g(_.qv,{text:function(){return Z().headline},
className:_.qg("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(L.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return S==null?void 0:S()},L.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(N==null?void 0:N())&&!(S==null?0:S())},L)),
linkInheritColor:!0}),_.g(_.F,{cond:function(){return Z().description},
then:function(u){var T={};return _.g(_.qv,{text:u,className:_.qg("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(T.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return S==null?void 0:S()},T.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(N==null?void 0:N())&&!(S==null?0:S())},T)),
linkInheritColor:!0})}}),_.g(_.F,{cond:function(){return Z().secondaryDescription},
then:function(u){var T={};return _.g(_.qv,{text:u,className:_.qg("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(T.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return N==null?void 0:N()},T)),
linkInheritColor:!0})}}),_.g("div",{class:function(){return S()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.g(_.F,{cond:function(){return Z().adAvatar},
then:function(){return _.g("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.g(_.bj,{data:function(){return Z().adAvatar}},{adAvatarViewModel:_.IdL}))}}),_.g(_.bj,{data:function(){return Z().adBadge}},{adBadgeViewModel:function(u){return _.g(_.o9,{data:u.data,
hasDot:function(){return!!Z().adDetailsLine},
adRenderingContextType:function(){return Z().adRenderingContextType}})}}),_.g(_.bj,{data:function(){return Z().adDetailsLine}},{adDetailsLineViewModel:function(u){return _.g(_.R9,{data:u.data,
adRenderingContextType:function(){return Z().adRenderingContextType}})}}))),_.g("div",{class:function(){return S()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.g(_.bj,{data:function(){return Z().menu}},{buttonViewModel:function(u){return _.g(_.$X,{data:u.data,
buttonOverrides:function(){a:switch(Z().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var T="S";break a;default:T="M"}return{size:T}}})}})))},"Pb"),hFq=_.p(function(L){var Z=L.data;
var N=L.noBottomMargin;var S=L.useVideoLockupTopPadding;var u=L.typographyBump;L={};L=_.qg("ytwFeedAdMetadataViewModelHostMetadata",(L.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return N==null?void 0:N()},L.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return S==null?void 0:S()},L));
var T=function(){return Z().adBadge};
T!==void 0&&T!==null||_.Zx(Error("Ih"));T={};var W={};return _.g(_.F7,null,_.g(_.F,{cond:function(){return Z().adAvatar},
then:function(){return _.g("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.g(_.bj,{data:function(){return Z().adAvatar}},{adAvatarViewModel:function(V){return _.g(_.IdL,{data:V.data})}}))}}),_.g("div",{class:L},_.g("div",{class:_.qg("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(T.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return u==null?void 0:u()},T.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(u==
null?void 0:u())&&_.c("web_enable_typography_bump_v2")},T))},_.g(_.qv,{text:function(){return Z().headline},
linkInheritColor:!0})),_.g(_.F,{cond:function(){return Z().description},
then:function(V){return _.g(_.qv,{text:V,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.g("div",{class:function(){return Z().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.c("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.g(_.bj,{data:function(){return Z().adBadge}},
{adBadgeViewModel:function(V){return _.g(_.o9,{data:V.data,
hasDot:function(){return!!Z().adDetailsLine},
adRenderingContextType:function(){return Z().adRenderingContextType}})}}),_.g(_.bj,{data:function(){return Z().adDetailsLine}},{adDetailsLineViewModel:function(V){return _.g(_.R9,{data:V.data,
adRenderingContextType:function(){return Z().adRenderingContextType}})}})),_.g(_.F,{cond:function(){return Z().secondaryDescription},
then:function(V){return _.g(_.qv,{text:V,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.g("div",{class:_.qg("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(W.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return S==null?void 0:S()},W))},_.g(_.bj,{data:function(){return Z().menu}},{buttonViewModel:_.$X})))},"Qb"),cA=_.p(function(L){var Z=L.data;
var N=L.noBottomMargin;var S=L.listenToTapEvent;var u=L.setTouchEndHandler;var T=L.useVideoLockupTopPadding;var W=L.typographyBump;L=_.$b({visibilityCallback:function(l){var v,R=(v=Z().interaction)==null?void 0:v.onFirstVisible;l&&R&&_.w$(R)},
showOption:_.M1});var V=_.k9(function(){return Z().interaction},void 0,function(){return S==null?void 0:S()}),M=_.O(_.nh(!1,void 0,"a2FSrb")),G=M.next().value,D=M.next().value;
M=_.Z9(function(l){(u==null?0:u())&&!G()&&(l.currentTarget.click(),D(!0),setTimeout(function(){D(!1)},100));
return!1});
return _.g("feed-ad-metadata-view-model",{class:function(){var l;return((l=Z().interaction)==null?0:l.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.P9(L,V),"on:touchend":M},_.g(_.EM,null,_.g(_.hh,{when:function(){return Z().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.g(adN,{data:Z,
typographyBump:W})}),_.g(_.hh,{when:function(){return Z().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.g(hFq,{data:Z,
noBottomMargin:N,useVideoLockupTopPadding:T,typographyBump:W})})))},"Rb");var sEl,jE0;sEl=_.Y9.inlinePreviewEnabledSelector;_.nN=_.p(function(L){return _.g("yt-lockup-view-model",{class:_.qg(L.className,"yt-lockup-view-model--wrapper")},_.g(_.vA,{contentId:function(){return L.data().contentId},
useModernStyle:!0,aspectRatio:function(){var Z,N;return((Z=L.containerType)==null?void 0:Z.call(L))!==3?PW0(L.data().contentType,(N=L.force16By9ThumbnailAspectRatio)==null?void 0:N.call(L)):void 0}},function(){return _.g(jE0,Object.assign({},L))}))},"Sb");
jE0=_.p(function(L){L=_.Ek(L,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var Z=L.data,N=L.containerLayoutConfig,S=L.containerType,u=L.sizing,T=L.protectBackground,W=L.typographyBump,V=L.force16By9ThumbnailAspectRatio,M=L.thumbnailFixedWidth,G=L.thumbnailTargetWidth,D=L.lockupExperiments,l=L.elementsPerRow,
v=_.GR().resolve(_.gv(_.d$));L=_.P9(_.cT(function(){var f1;return(f1=Z())==null?void 0:f1.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 R=_.VB(sEl),K=_.GR().resolve(_.gv(LqO)),U=K?{}:void 0,d=function(){var f1,n0,r5;return(r5=(n0=_.n((f1=Z())==null?void 0:f1.rendererContext,_.Oi))==null?void 0:n0.label)!=null?r5:void 0},h=function(){var f1;
return(f1=_.n(Z().metadata,_.OSY))==null?void 0:f1.endorsement},E=function(){var f1=N==null?void 0:N(),n0;
if(f1==null?0:f1.containerType){var r5=(n0=Z())==null?void 0:n0.contentType;n0=D();var yq=W(),ZN=G(),GV=T();f1=Object.assign({},pkw(sPt(f1),wm(f1.responsiveSize),yq,r5,f1.force16By9ThumbnailAspectRatio,ZN,GV,n0),{thumbnailFixedWidth:f1.contentPreviewWidth})}else f1=pkw(S(),u(),W(),(r5=Z())==null?void 0:r5.contentType,V(),G(),T(),D());return f1};
K&&U&&K({enabled:function(){return R()},
itemPlaybackModel:function(){return Z().itemPlayback},
thumbnailElRef:function(){return U.thumbnailElRef},
containerElRef:L,options:function(){var f1=U.thumbnailOverlays||[],n0=h(),r5;!n0||((r5=D())==null?0:r5.onFocusEffect)||f1.push(n0);var yq,ZN;return{thumbnail:U.thumbnail,thumbnailOverlays:f1,accessibilityText:d(),thumbnailSize:U.thumbnailSize,enableRounding:E().isCollection,containPlayerWithinThumbnail:E().isCollection,mouseleaveCallback:function(){C(!1)},
trackingParams:(yq=_.n(Z().rendererContext,_.OR))==null?void 0:(ZN=yq.loggingDirectives)==null?void 0:ZN.trackingParams}}});
var A=0;K=_.O(_.nh(!1,void 0,"dCI3sc"));var J=K.next().value,C=K.next().value;K=_.O(_.nh(!1,void 0,"fnxRwc"));var X=K.next().value,L1=K.next().value;K=_.Z9(function(){X()?(_.ro.cancelJob(A),A=_.ro.addJob(function(){C(!0)},8,32)):C(!0);
return!0});
var Fw=_.Z9(function(f1){f1=f1.relatedTarget;var n0=document.querySelector("ytd-video-preview");f1&&n0&&n0.contains(f1)||(A&&(_.ro.cancelJob(A),A=0),C(!1))});
_.zs(function(){A&&(_.ro.cancelJob(A),A=0)});
var GB=Nh0(function(){L1(!0)}),Yt=GB.touchFeedbackEvents,lH=GB.touchFeedbackOnPointerUp,RF=GB.touchFeedbackOnPointerDown;
GB=GB.touchFeedbackOnPointerLeave;var jf={};return _.g(_.F7,null,_.g("div",{el:L,class:_.qg("yt-lockup-view-model",function(){a:{var f1=E();if(f1.isOverlay)f1="yt-lockup-view-model--overlay";else switch(f1.arrangement){case 1:f1="yt-lockup-view-model--horizontal";break a;default:f1="yt-lockup-view-model--vertical"}}return f1},function(){a:{var f1=E();
if(f1.isOverlay)f1="yt-lockup-view-model--overlay";else{switch(f1.collectionStackNumber){case 1:f1="yt-lockup-view-model--collection-stack-1";break a;case 2:f1="yt-lockup-view-model--collection-stack-2";break a}f1=void 0}}return f1},function(){var f1;
return _.BNB((f1=Z())==null?void 0:f1.contentId)},(jf["yt-lockup-view-model--card"]=function(){return E().isCard},jf["yt-lockup-view-model--compact"]=function(){return E().isTiny||E().sizing!=="STANDARD"},jf["yt-lockup-view-model--protect-background"]=T,jf["yt-lockup-view-model--add-margins"]=function(){return E().addMarginForFullbleed},jf["yt-lockup-view-model--centered"]=function(){return E().isCentered},jf["yt-lockup-view-model--fullbleed"]=function(){return E().fullbleed},jf["yt-lockup-view-model--single-column-grid"]=
function(){return l()===1&&S()===2},jf["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var f1;
return(f1=D())==null?void 0:f1.useRichGridLegacyMargin},jf)),
"on:mousedown":RF,"on:mouseleave":Fw,"on:mouseup":lH,"on:mouseover":K,"on:touchstart":RF,"on:touchend":lH,"on:pointerleave":GB},_.g(_.MN,{model:function(){var f1,n0,r5=Object,yq=r5.assign,ZN=(U==null?void 0:U.thumbnailSize)||"small";a:{var GV=E();var IO=!!(h()&&((f1=D())==null?0:f1.onFocusEffect));switch((U==null?void 0:U.thumbnailSize)||"small"){case "small":f1=4;break;case "large":f1=12;break;default:f1=8}if(IO)GV=f1+24;else{switch(GV.collectionStackNumber){case 1:GV=f1+8;break a;case 2:GV=f1+12;
break a}GV=void 0}}ZN={thumbnailSize:ZN,triggerEvents:!0,customTopExtend:GV};var d5;GV=(n0=D())==null?void 0:n0.onFocusEffect;IO=!(v==null||!v());if(GV){var n8,lq;n0=IO?(n8=GV.onFocusColor)==null?void 0:n8.darkTheme:(lq=GV.onFocusColor)==null?void 0:lq.lightTheme;var tx,ut;n8=IO?(tx=GV.keyLightColor)==null?void 0:tx.darkTheme:(ut=GV.keyLightColor)==null?void 0:ut.lightTheme;var oO;tx=IO?(d5=GV.touchResponseColor)==null?void 0:d5.darkTheme:(oO=GV.touchResponseColor)==null?void 0:oO.lightTheme;d5={background:n0!==
void 0?nX(n0):void 0,keyLight:n8!==void 0?nX(n8):void 0};oO=[];ut=_.O(GV.lightingTechniques||[]);for(n8=ut.next();!n8.done;n8=ut.next())switch(n8.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":oO.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":oO.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":oO.push(3)}d5={hoverEffect:{palette:d5,lightingTechniques:oO},touchEffect:{palette:{background:tx!==void 0?nX(tx):void 0}}}}else d5={};return yq.call(r5,{},ZN,d5)},
hovered:function(){return J()},
pointerDownEvent:Yt.pointerDownEvent,pointerUpEvent:Yt.pointerUpEvent,pointerLeaveEvent:Yt.pointerLeaveEvent}),_.g(_.F,{cond:function(){var f1;return h()&&J()&&((f1=D())==null?void 0:f1.onFocusEffect)},
then:function(){return _.g("div",{class:"yt-lockup-view-model__endorsement"},_.g(_.bj,{data:function(){return h()}},{attributionViewModel:function(f1){return _.g(DH,{data:f1.data,
useHeavyText:!0})}}))}}),_.g(_.bM,{command:function(){var f1;
return _.ob((f1=Z())==null?void 0:f1.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return M()&&E().arrangement===1?"width: "+M():""}},_.g(_.bj,{data:function(){var f1;
return(f1=Z())==null?void 0:f1.contentImage}},{thumbnailViewModel:function(f1){return _.g(_.b7,{data:f1.data,
aspectRatio:function(){return E().aspectRatio},
disableRounding:function(){return E().disableRounding},
width:G,hovered:function(){return J()&&!(R()&&Z().itemPlayback)},
isClip:function(){var n0;return((n0=Z())==null?void 0:n0.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:olG(U),lockupExperiments:function(){return D()}})},
collectionThumbnailViewModel:function(f1){return _.g(FqQ,{data:f1.data,aspectRatio:function(){return E().aspectRatio},
disableRounding:function(){return E().disableRounding},
width:G,doubleStack:function(){return E().collectionStackNumber===2},
hovered:function(){return J()&&!(R()&&Z().itemPlayback)},
playbackRef:olG(U)})},
decoratedAvatarViewModel:_.CS})),_.g("div",{class:"yt-lockup-view-model__metadata"},_.g(_.bj,{data:function(){var f1;return(f1=Z())==null?void 0:f1.metadata}},{lockupMetadataViewModel:function(f1){return _.g(Upl,{data:f1.data,
hovered:J,lockupStyle:E,lockupCommand:function(){var n0;return _.ob((n0=Z())==null?void 0:n0.rendererContext)},
lockupAccessibilityLabel:function(){return d()}})},
feedAdMetadataViewModel:function(f1){return _.g(cA,{data:f1.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:W})}}),_.g(_.bj,{data:function(){var f1;
return(f1=Z())==null?void 0:f1.attachmentSlot}},{lockupAttachmentsViewModel:function(f1){return _.g(RFQ,{data:f1.data,
lockupStyle:E})}}))),_.g(_.bj,{data:function(){var f1;
return(f1=Z())==null?void 0:f1.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(f1){return _.g(RFQ,{data:f1.data,
lockupStyle:E})}}))},"Tb");
_.nN.idomCompat=!0;_.CY(_.nN,"yt-lockup-view-model",{props:{data:_.LK,containerLayoutConfig:_.LK,containerType:_.LK,sizing:_.LK,protectBackground:_.LK,typographyBump:_.LK,thumbnailFixedWidth:_.LK,thumbnailTargetWidth:_.LK,force16By9ThumbnailAspectRatio:_.LK,className:_.LK,lockupExperiments:_.LK,elementsPerRow:_.LK}});var tI1,Ezs=_.p(function(L){var Z=_.Ek(L,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),N=Z.text,S=Z.alwaysShowTruncationText;L=Z.truncationText;var u=Z.onTextClick,T=Z.maxLines,W=Z.disableTextMask,V=Z.textStyle,M=Z.accessibilityLabel,G=Z.textSize,D=Z.alwaysTruncateAtMaxLines,l=Z.expandOnClick;Z=_.O(_.nh(!1,void 0,"EzA1q"));var v=Z.next().value,R=Z.next().value;Z=_.Z9(function(){l()&&R(!v());u==null||u()});
var K=function(){a:switch(G()){case "medium":var X=2;break a;case "large":X=2.2;break a;default:X=1.8}return X},U=VI_(N,function(){return v()?Infinity:T()},K,W,D,v),d=U.isTruncated;
N=U.displayText;D=U.contentRef;var h=U.hiddenRef,E=U.placeholderTruncationTextRef,A=U.hiddenTruncationTextRef;U=U.truncationTextRef;var J={},C={};return _.g("truncated-text",{class:_.qg((J["yt-truncated-text"]=!0,J["yt-truncated-text--overlay"]=function(){return V()==="overlay"},J["yt-truncated-text--medium-text"]=function(){return G()==="medium"},J["yt-truncated-text--large-text"]=function(){return G()==="large"},J["yt-truncated-text--primary-text"]=function(){return V()==="primary-text"},J)),
"on:click":Z,style:function(){return"line-height: "+K()+"rem;"}},_.g("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:D,style:function(){return v()?"":"max-height: "+T()*K()+"rem;"}},_.g(_.qv,{text:N}),_.g("button",{"aria-disabled":!0,
disabled:!0,class:"yt-truncated-text__inline-button",el:E,style:function(){return"line-height: "+K()+"rem;"}},_.g(_.qv,{text:L}))),_.g("truncated-text-content",{class:_.qg("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:h,style:function(){return v()?"":"max-height: "+T()*K()+"rem;"},
"aria-hidden":"true"},_.g(_.qv,{text:N}),_.g("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:A,style:function(){return"line-height: "+K()+"rem;"}},_.g(_.qv,{text:L}))),_.g("button",{"aria-label":M,
class:_.qg((C["yt-truncated-text__absolute-button"]=function(){return!W()},C["yt-truncated-text__bottom-button"]=function(){return W()},C["yt-truncated-text--hidden"]=function(){return!(!v()&&(S!=null&&S()||d()))},C)),
el:U,style:function(){return"line-height: "+K()+"rem;"}},_.g(_.qv,{text:L})))},"Vb");
Ezs.idomCompat={callbacks:{onTextClick:!0}};var zFs=_.p(function(L){var Z=L.data;L=L.className;var N=_.wJ(function(){return MIH(Z())},void 0,"uDhDke"),S=_.g(_.F7,null,_.g(_.F,{cond:function(){return Z().heroText||Z().image},
then:function(){return _.g(P8Y,{data:Z})}}),_.g(pOI,{data:Z,
sizeSmall:function(){return Z().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.g("yt-video-attribute-view-model",{class:L},_.g("div",{class:function(){var u=Z();a:switch(u.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var T="yt-video-attribute-view-model--vertical";break a;default:T="yt-video-attribute-view-model--horizontal"}a:switch(u.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(u.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(u.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var M="yt-video-attribute-view-model--metadata-header";break a;default:M=""}a:switch(u.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var G="yt-video-attribute-view-model--container-card";break a;default:G=""}return["yt-video-attribute-view-model",T,W,
V,M,G,MIH(u)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.u4({"background-color":function(){var u=Z();if(u.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var T="";else{T=u.lightColorPalette;u=u.darkColorPalette;var W,V=((W=_.GR().resolve(_.gv(_.d$)))==null?0:W())&&u?u:T;T=(T=V==null?void 0:V.section2Color)?_.Rs(T):""}return T}})},_.g(_.F,{cond:N,
then:function(){return _.g(_.bM,{className:"yt-video-attribute-view-model__content-container",command:N,role:"group",ariaLabel:function(){return Z().title}},S)},
else:function(){return _.g("div",{class:"yt-video-attribute-view-model__content-container"},S)}})))},"Wb");
zFs.idomCompat=!0;var P8Y=_.p(function(L){var Z=L.data;var N,S=(N=_.GR().resolve(_.gv(_.d$)))==null?void 0:N(),u=function(){return S&&Z().darkThemeImage?Z().darkThemeImage:Z().image},T=_.wJ(function(){return gqs(Z())},void 0,"UDqj0b");
return _.g("div",{class:"yt-video-attribute-view-model__hero-section"},_.g(_.EM,null,_.g(_.hh,{when:u},function(){return _.g(_.ji,{data:function(){return u()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.g(_.hh,{when:function(){return Z().heroText}},function(){return _.g("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.g("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return Z().heroText}))})),_.g(_.F,{cond:function(){return Z().overflowMenuOnTap},
then:function(){return _.g("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.g(_.Ff,{data:T,iconName:"MORE_VERT"}))}}))},"Xb");
P8Y.idomCompat=!0;var pOI=_.p(function(L){var Z=L.data;L=L.sizeSmall;var N=function(){return Z().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},S=_.wJ(function(){return yV(_.kN({innertubeCommand:MIH(Z())}))?"link":MIH(Z())?"button":"group"},void 0,"e2MmYe"),u={};
return _.g("div",{class:_.qg("yt-video-attribute-view-model__metadata",(u["yt-video-attribute-view-model--small-font"]=L,u)),role:S},_.g("h1",{class:"yt-video-attribute-view-model__title"},function(){return Z().title}),_.g(_.F,{cond:function(){return Z().subtitle},
then:function(){return _.g("h4",{class:"yt-video-attribute-view-model__subtitle"},_.g(_.F,{cond:N,then:function(){return _.g(Ezs,{text:function(){return bCL(Z().subtitle)},
truncationText:function(){return bCL(Z().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.g("span",null,function(){return Z().subtitle})}}))}}),_.g(_.F,{cond:function(){return Z().secondarySubtitle},
then:function(T){return _.g("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.g(_.qv,{text:function(){var W=T();if(W!=null&&W.attachmentRuns){for(var V=[],M=_.O(W.attachmentRuns),G=M.next();!G.done;G=M.next())G=G.value,G.element&&V.push(Object.assign({},G,{element:Object.assign({},G.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}}))}}),_.g(_.bj,
{data:function(){return Z().buttonViewModel}},{buttonViewModel:function(T){return _.g(_.$X,{data:T.data,
className:"yt-video-attribute-view-model__button"})}}))},"Yb");
pOI.idomCompat=!0;_.CY(zFs,"yt-video-attribute-view-model",{props:{data:_.LK,className:_.LK}});var KN=function(){var L=_.e.apply(this,arguments)||this;L.useHighlightStyling=_.c("web_enable_deeper_metadata_highlight_styling");L.isSearch=!1;L.JSC$15274_lastScrollContainerWidth=NaN;L.pageLoadingFromNavigation=!1;L.currentIndex=0;L.supportComponentResize=!1;return L};
_.f(KN,_.e);_.t=KN.prototype;
_.t.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}}}}}};
_.t.attached=function(){document.addEventListener("yt-page-type-changed",_.Nd(this,this.onPageChange))};
_.t.detached=function(){document.removeEventListener("yt-page-type-changed",_.Nd(this,this.onPageChange))};
_.t.getItemsPath=function(){return"data.cards"};
_.t.onIronResize=function(){this.updateListStyles()};
_.t.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var L;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(L=this.data)==null?void 0:L.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.c("problem_walkthrough_sd")&&!!this.centerItems};
_.t.computeCardListStyle=function(L){return L||null};
_.t.computeEmpty=function(L){return!this.get("cards.length",L)};
_.t.computeThumbnailStyle=function(L){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",L)||null};
_.t.computeHasSubtitle=function(L){return!!this.get("header.richListHeaderRenderer.subtitle",L)};
_.t.computeInitialCountNumber=function(L){return this.hasSquareMiniApp&&L==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&L==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:L==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:L==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:L==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&L==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.t.computeUseFloorScrolling=function(L){return L==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.t.computeHasGameCard=function(L){return(L=this.get("cards",L))?L.some(function(Z){return Z.gameCardRenderer}):!1};
_.t.computeCenterHeaderTitle=function(L){return!(L==null||!L.centerHeaderTitle)};
_.t.computeHasPortraitMiniApp=function(L){return(L=L==null?void 0:L.cards)?L.some(function(Z){return Z.miniGameCardViewModel&&Z.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.t.computeHasSquareMiniApp=function(L){return(L=L==null?void 0:L.cards)?L.some(function(Z){return Z.miniGameCardViewModel&&Z.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.t.computeHasSkinnyWidthPortraitMiniApp=function(L){return(L=L==null?void 0:L.cards)?L.some(function(Z){return Z.miniGameCardViewModel&&Z.miniGameCardViewModel.width===135}):!1};
_.t.computeCenterItems=function(L){return!!L};
_.t.computeHasInfoPanel=function(L){var Z;return L==null?void 0:(Z=L.cards)==null?void 0:Z.some(function(N){return N.infoPanelContentRenderer})};
_.t.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.t.getItemByIndex=function(L){var Z=this.items.children;return Z&&Z.length>L?Z[L]:void 0};
_.t.onPageChange=function(){var L=this;this.pageLoadingFromNavigation=!0;_.ro.addJob(function(){L.pageLoadingFromNavigation=!1;_.Ad(L.hostElement,"yt-terminate-video-preview-action")},8)};
_.t.updateListStyles=function(){if(_.c("problem_walkthrough_sd")&&this.JSC$15274_scrollContainer!==void 0){var L=this.JSC$15274_scrollContainer.clientWidth;L!==this.JSC$15274_lastScrollContainerWidth&&(this.JSC$15274_lastScrollContainerWidth=L,_.Ld(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(L*.8,415)+"px"}),_.QT(this.hostElement,"iron-resize"))}};
_.gd.Object.defineProperties(KN.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.c("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return!!((L=this.data)==null?0:(Z=L.cards)==null?0:(N=Z[0])==null?0:N.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return!!((L=this.data)==null?0:(Z=L.cards)==null?0:(N=Z[0])==null?0:N.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return _.c("enable_desktop_amsterdam_info_panels")&&!!((L=this.data)==null?0:(Z=L.cards)==null?0:(N=Z[0])==null?0:N.infoPanelContentRenderer)}}});
KN.prototype.dataChanged=KN.prototype.dataChanged;KN.prototype.onIronResize=KN.prototype.onIronResize;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],KN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Mo.YtdHorizontalListBehavior),_.Q("design:type",Object)],KN.prototype,"ytdHorizontalListBehavior",void 0);
_.r([_.y(_.Q$),_.Q("design:type",Object)],KN.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],KN.prototype,"data",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],KN.prototype,"useCustomColors",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],KN.prototype,"useHighlightStyling",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.Q("design:type",Object)],KN.prototype,"cardListStyle",void 0);_.r([_.Y({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.Q("design:type",Boolean)],KN.prototype,"empty",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.Q("design:type",Boolean)],KN.prototype,"hasSubtitle",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.Q("design:type",Boolean)],KN.prototype,"thumbnailStyle",void 0);_.r([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.Q("design:type",Boolean)],KN.prototype,"hasGameCard",void 0);_.r([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.Q("design:type",Boolean)],KN.prototype,"centerHeaderTitle",void 0);
_.r([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.Q("design:type",Boolean)],KN.prototype,"hasPortraitMiniApp",void 0);_.r([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.Q("design:type",Boolean)],KN.prototype,"hasSquareMiniApp",void 0);_.r([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.Q("design:type",Boolean)],KN.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.r([_.Y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.Q("design:type",Boolean)],KN.prototype,"hasInfoPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],KN.prototype,"isSearch",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],KN.prototype,"inlineStructuredDescription",void 0);_.r([_.TX("#scroll-container"),_.Q("design:type",HTMLDivElement)],KN.prototype,"JSC$15274_scrollContainer",void 0);
_.r([_.Y({computed:"computeInitialCountNumber(data.style.type)"}),_.Q("design:type",Number)],KN.prototype,"initialCount",void 0);_.r([_.Y({computed:"computeUseFloorScrolling(data.style.type)"}),_.Q("design:type",Boolean)],KN.prototype,"useFloorScrolling",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.Q("design:type",Boolean)],KN.prototype,"centerItems",void 0);_.r([_.Y(),_.Q("design:type",Object)],KN.prototype,"pageLoadingFromNavigation",void 0);
_.r([_.Y(),_.Q("design:type",Object)],KN.prototype,"currentIndex",void 0);_.r([_.Y(),_.Q("design:type",Number)],KN.prototype,"scrollCount",void 0);_.r([_.Y(),_.Q("design:type",Object)],KN.prototype,"supportComponentResize",void 0);_.r([_.TX("#items"),_.Q("design:type",HTMLDivElement)],KN.prototype,"items",void 0);_.r([_.SA("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],KN.prototype,"onIronResize",null);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],KN.prototype,"dataChanged",null);_.r([_.Y({reflectToAttribute:!0}),_.w("inlineStructuredDescription"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],KN.prototype,"hideNavigationButton",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],KN.prototype,"modernChapters",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],KN.prototype,"hasVideoAttributeViewModels",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],KN.prototype,"modernInfoPanels",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],KN);
_.m(KN,"ytd-horizontal-card-list-renderer",function(){if(am5!==void 0)return am5;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return am5=L},{mode:_.Qr("kevlar_poly_si_batch_j072")?1:2});var mpq=_.p(function(L){var Z=L.data;var N={};return _.g("video-summary-content-view-model",{class:_.qg("videoSummaryContentViewModelHost",L.className,(N.videoSummaryContentViewModelHostIsSearch=L.isSearch,N))},_.g(_.ju,{each:function(){var S=[],u=Z().paragraphs;if(u==null||!u.length)return[];for(var T=0;T<u.length;T++){var W=_.n(u[T],t3O),V=void 0;T>0&&(V=_.n(u[T-1],t3O));V&&!!V.marker===!!W.marker?S[S.length-1].paragraphs.push(W):S.push({isList:!!W.marker,paragraphs:[W]})}return S},
keyBy:"INDEX"},function(S){return _.g(_.F,{cond:function(){return S().isList},
then:function(){return _.g("ul",{class:"videoSummaryContentViewModelList"},_.g(_.ju,{each:function(){return S().paragraphs},
keyBy:"INDEX"},function(u){return _.g("li",{class:"videoSummaryContentViewModelListItem"},_.g(_.qv,{text:function(){return u().text}}))}))},
else:function(){return _.g("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.g(_.ju,{each:function(){return S().paragraphs},
keyBy:"INDEX"},function(u){return _.g("p",{class:"videoSummaryContentViewModelParagraph"},_.g(_.qv,{text:function(){return u().text}}))}))}})}),_.g(_.F,{cond:function(){return!!_.n(Z().likeButtonViewModel,_.QY)&&!!_.n(Z().dislikeButtonViewModel,_.rf)},
then:function(){return _.g("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.g("div",{class:"videoSummaryContentViewModelLikeButton"},_.g(_.XX,{data:function(){return _.n(Z().likeButtonViewModel,_.QY)},
disableIconAnimation:!0})),_.g(_.QK,{data:function(){return _.n(Z().dislikeButtonViewModel,_.rf)}}))}}))},"Zb");
mpq.idomCompat=!0;_.CY(mpq,"video-summary-content-view-model",{props:{data:_.LK,isSearch:_.LK,className:_.LK}});var fN=function(){var L=_.e.apply(this,arguments)||this;var Z,N;L.isExpanded=(N=(Z=L.data)==null?void 0:Z.isExpanded)!=null?N:!1;L.disableExpand=!1;L.showProminentLabel=!1;L.showRightSideLabel=!0;L.toggleExpandableContent=function(S){L.disableExpand||(S.stopPropagation(),_.z0(_.sx(S),L.hostElement,["info","expanded-subtitle"])||(L.isExpanded=!L.isExpanded,L.ytRendererBehavior.logExplicitClick(L.data),L.JSC$15285_cardList&&!_.c("expandable_metadata_a11y_fix_ks")&&_.bN(L,function(){_.tV(L.hostElement)})))};
L.useSquareThumbnail=!1;L.startX=0;return L};
_.f(fN,_.e);_.t=fN.prototype;_.t.computeUseSquareThumbnail=function(){var L;return(L=this.data)==null?void 0:L.useSquareThumbnail};
_.t.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"}}}}};
_.t.dataChanged=function(){if(this.data){var L,Z;this.isExpanded=(Z=(L=this.data)==null?void 0:L.isExpanded)!=null?Z:!1;var N,S,u,T;if(L=this.isDarkTheme()?(N=this.data)==null?void 0:(S=N.colorData)==null?void 0:S.darkColorPalette:(u=this.data)==null?void 0:(T=u.colorData)==null?void 0:T.lightColorPalette){var W,V;if((W=this.data)==null?0:(V=W.colorData)==null?0:V.vibrantColorPalette)L.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.$0(this.hostElement,L)}}};
_.t.isExpandedChanged=function(){this.isExpanded&&this.JSC$15285_cardList&&_.QT(this.JSC$15285_cardList,"iron-resize")};
_.t.computeIsExpanded=function(L){return!!L.isExpanded};
_.t.computeShowProminentLabel=function(L,Z){var N;return!!(L==null?0:(N=L.header)==null?0:N.showLeadingCollapsedLabel)&&!Z};
_.t.computeShowRightSideLabel=function(L,Z){var N;return!(L==null?0:(N=L.header)==null?0:N.showLeadingCollapsedLabel)&&!Z};
_.t.captureContentClick=function(L){if(!this.disableExpand)if(_.c("expandable_metadata_fix_killswitch")){var Z=L.target;_.wyh(Z,"ytd-macro-markers-list-item-renderer")||L.stopPropagation();(Z==null?void 0:Z.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.z0(_.sx(L),this.hostElement,["items"])||_.PQ(_.sx(L),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.t.timestampClick=function(L){L.stopPropagation();var Z,N;(L=(Z=this.data)==null?void 0:(N=Z.header)==null?void 0:N.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(L)};
_.t.onDown=function(L){L.stopPropagation();this.startX=L.detail?L.detail.x:0};
_.t.onUp=function(L){this.skipKeyInteraction(L)&&L.stopPropagation()};
_.t.skipKeyInteraction=function(L){var Z=L.target;if((Z==null?void 0:Z.id)==="scroll-container"||(Z==null?void 0:Z.id)==="items"||L.detail&&L.detail.x!==this.startX)return!0;L=_.sx(L);L=_.O(L);for(Z=L.next();!Z.done;Z=L.next()){Z=Z.value;if(Z===this.hostElement)break;if(Z.hasAttribute&&Z.hasAttribute("skip-key-interaction"))return!0}return!1};
_.t.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.gd.Object.defineProperties(fN.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var L;return!!_.n((L=this.data)==null?void 0:L.expandedContent,THN)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var L;return!!_.n((L=this.data)==null?void 0:L.expandedContent,_.Wxh)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!((L=this.data)==null||!L.useCustomColors)&&!((Z=this.data)==null||!Z.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!!((L=this.data)==null?0:(Z=L.header)==null?0:Z.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!!((L=this.data)==null?0:(Z=L.header)==null?0:Z.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!!((L=this.data)==null?0:(Z=L.header)==null?0:Z.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
fN.prototype.onUp=fN.prototype.onUp;fN.prototype.onDown=fN.prototype.onDown;fN.prototype.isExpandedChanged=fN.prototype.isExpandedChanged;fN.prototype.dataChanged=fN.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],fN.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],fN.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],fN.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],fN.prototype,"isExpanded",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],fN.prototype,"disableExpand",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],fN.prototype,"isSearch",void 0);
_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],fN.prototype,"isWatch",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.Q("design:type",Object)],fN.prototype,"showProminentLabel",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.Q("design:type",Object)],fN.prototype,"showRightSideLabel",void 0);
_.r([_.Y({value:!1,reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fN.prototype,"hasVideoSummary",null);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fN.prototype,"hasLockupViewModel",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data","isWatch"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fN.prototype,"useCustomColors",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data","isExpanded"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fN.prototype,"showInfoButton",null);_.r([_.w("data","isExpanded"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fN.prototype,"showTimestamp",null);_.r([_.w("data","isExpanded"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fN.prototype,"showExpandedSubtitle",null);
_.r([_.w("data","isExpanded"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fN.prototype,"showThumbnail",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],fN.prototype,"useVppShoppingDestinationStyle",null);_.r([_.Y(),_.Q("design:type",Object)],fN.prototype,"toggleExpandableContent",void 0);_.r([_.TX("ytd-horizontal-card-list-renderer"),_.Q("design:type",Object)],fN.prototype,"JSC$15285_cardList",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.Q("design:type",Object)],fN.prototype,"useSquareThumbnail",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fN.prototype,"dataChanged",null);_.r([_.iA("isExpanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fN.prototype,"isExpandedChanged",null);
_.r([_.SA("down"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],fN.prototype,"onDown",null);_.r([_.SA("up"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],fN.prototype,"onUp",null);_.r([_.P({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],fN);
_.m(fN,"ytd-expandable-metadata-renderer",function(){if(mDh!==void 0)return mDh;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return mDh=L},{mode:1});var JFl,C8V=function(){if(JFl!==void 0)return JFl;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return JFl=L};_.CY(_.ri,"yt-avatar-stack-view-model",{props:{className:_.LK,data:_.LK,overrides:_.LK,isOverlay:_.LK,useMediumText:_.LK,decorations:_.LK,hideAvatar:_.LK}});_.l4("itemSectionRenderer","videoRenderer","ytd-video-renderer");var kg=function(){var L=_.e.apply(this,arguments)||this;L.disableExpand=!1;L.shouldShowChannelInfo=!1;L.hasAttributedBylineText=!1;L.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return L};
_.f(kg,_.e);_.t=kg.prototype;_.t.computeUseSearchUi=function(){var L,Z;return this.isSearch||((L=this.data)==null?void 0:(Z=L.style)==null?void 0:Z.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.t.computeUseThreeLineTitle=function(){var L;return((L=this.data)==null?void 0:L.maxTitleLines)===3};
_.t.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.c("polymer_video_renderer_defer_menu")&&!ybY?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"}}}};
_.t.attached=function(){_.Az(this.hostElement,"blue-links",_.c("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.xe(_.QJ(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var L=this.get("data.buttons.buttonRenderer.serviceEndpoint"),Z;L&&((Z=_.n(L.commandMetadata,_.hc))==null?0:Z.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(L);this.updateInlinePreviewHoverListeners()};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15290_inlinePreviewHoverListener=Kl({mediaRenderer:this,lockupElement:this.JSC$15290_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.t.clearInlinePreviewHoverListeners=function(){var L;(L=this.JSC$15290_inlinePreviewHoverListener)==null||jy(L)};
_.t.onTextWrapperClick=function(L){var Z,N,S=this.hideTranslation?(Z=this.data)==null?void 0:Z.untranslatedNavigationEndpoint:(N=this.data)==null?void 0:N.navigationEndpoint;Z=_.z0(_.sx(L),this.hostElement,["expandable-metadata"]);!S||Z&&!_.c("expandable_metadata_fix_killswitch")||_.PQ(_.sx(L),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.QT(this.hostElement,"yt-navigate",{endpoint:S})};
_.t.computeThumbnailWidth=function(L,Z,N,S,u){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:S?u==="MASSIVE"?600:u==="BIG"?500:u==="MEDIUM"?450:420:N?360:Z?128:L?210:246};
_.t.computeUseBiggerThumbs=function(L){return L&&_.c("enable_desktop_search_bigger_thumbs")};
_.t.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.t.computeHasAttributedBylineText=function(){var L;return!((L=this.data)==null||!L.attributedBylineText)};
_.t.computeVideoStyle=function(){if(_.c("enable_video_style")){var L,Z;return(L=this.data)==null?void 0:(Z=L.style)==null?void 0:Z.value}};
_.t.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.t.handleHideItemSectionVideosByIdCommand=function(L){var Z;L=(Z=_.n(L,w$V))==null?void 0:Z.videoId;this.data&&this.data.videoId===L&&(this.isHidden=!0)};
_.t.getMetadataSnippetContainerClass=function(L){return L?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.t.computeTitleText=function(L,Z,N){return L?N:Z};
_.t.computeDescriptionSnippet=function(L,Z,N){return L?N:Z};
_.t.computeSnippetText=function(L,Z,N){return L?N:Z};
_.t.computeNavigationEndpoint=function(L,Z){return L?Z==null?void 0:Z.untranslatedNavigationEndpoint:Z==null?void 0:Z.navigationEndpoint};
_.t.hideInlineTitleIcon=function(L,Z){return L||!Z};
_.gd.Object.defineProperties(kg.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 L;return(L=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?L:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return!!(this==null?0:(L=this.data)==null?0:(Z=L.channelThumbnailSupportedRenderers)==null?0:(N=Z.channelThumbnailWithLinkRenderer)==null?0:N.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var L;return!!_.n((L=this.data)==null?void 0:L.avatar,VVh)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.JSC$15290_inlinePreviewHoverListener)==null?0:AO(L))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.gd.Object.defineProperties(kg,{template:{configurable:!0,enumerable:!0,get:function(){return C8V()}}});
kg.prototype.dataChanged=kg.prototype.dataChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],kg.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],kg.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.y(_.Lb),_.Q("design:type",Object)],kg.prototype,"ytdLockupBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],kg.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],kg.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],kg.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],kg.prototype,"isBackstageVideo",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],kg.prototype,"isPostCompactVideo",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],kg.prototype,"isHistory",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],kg.prototype,"isRichGridVideoPost",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],kg.prototype,"isHidden",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],kg.prototype,"isSearch",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.Q("design:type",Boolean)],kg.prototype,"useSearchUi",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.Q("design:type",Boolean)],kg.prototype,"useThreeLineTitle",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.Q("design:type",Boolean)],kg.prototype,"useBiggerThumbs",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.Q("design:type",Object)],kg.prototype,"videoStyle",void 0);_.r([_.Y({computed:"computeDisableExpand(videoStyle)"}),_.Q("design:type",Object)],kg.prototype,"disableExpand",void 0);
_.r([_.Y({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.Q("design:type",Object)],kg.prototype,"shouldShowChannelInfo",void 0);_.r([_.Y({computed:"computeHasAttributedBylineText(data)"}),_.Q("design:type",Object)],kg.prototype,"hasAttributedBylineText",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.vW("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],kg.prototype,"biggerThumbsStyle",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.Q("design:type",String)],kg.prototype,"inlineTitleIcon",void 0);_.r([_.Y({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.Q("design:type",Object)],kg.prototype,"computedNavigationEndpoint",void 0);_.r([_.Y({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"searchVideoResultEntity",Z)}}),
_.Q("design:type",Object)],kg.prototype,"searchVideoResultEntity",void 0);_.r([_.TX("ytd-thumbnail"),_.Q("design:type",HTMLElement)],kg.prototype,"thumbnail",void 0);_.r([_.TX("#dismissible"),_.Q("design:type",HTMLElement)],kg.prototype,"JSC$15290_dismissibleMedia",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],kg.prototype,"dataChanged",null);
_.r([_.w("searchVideoResultEntity"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],kg.prototype,"hideTranslation",null);_.r([_.w("searchVideoResultEntity"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],kg.prototype,"hiddenBadgeGroups",null);_.r([_.w("data","useAvatar"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],kg.prototype,"shouldShowChannelThumbnail",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],kg.prototype,"useAvatar",null);
_.r([_.w("lockupIsHovered"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],kg.prototype,"isHovered",null);_.r([_.P({is:"ytd-video-renderer",disableElementRegistration:!0})],kg);_.m(kg,"ytd-video-renderer",function(){return C8V()},{mode:_.Qr("kevlar_poly_si_batch_j047")?1:2});var yQ=function(){var L=_.e.apply(this,arguments)||this;L.editDialog=null;L.roundedContainer=!0;L.isLoading=!1;L.isRichGrid=!1;L.isRichGridRepost=!1;L.reduceSidePaddings=_.c("reduce_side_paddings_in_shelf");L.JSC$15297_spinnerEl=null;return L};
_.f(yQ,_.e);_.t=yQ.prototype;
_.t.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"}}}};
_.t.contentTextChanged=function(){this.expander.reset()};
_.t.dataChanged=function(){var L=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var Z=0,N=this.data.actions&&this.data.actions.length;Z<N;Z++)this.openEditDialog(_.n(this.data.actions[Z],gU5));if((Z=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(Z=this.get("buttonRenderer.hint.hintRenderer.hintId",Z))&&Z.startsWith("share-post-hint")){var S=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(S){_.c3.getInstance();var u=nf(_.s9(_.iB("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.ro.addLowPriorityJob(function(){_.B2(L.hostElement,u,S)})}}}};
_.t.updatePoll=function(L){L>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.t.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15297_spinnerEl||(this.JSC$15297_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.QJ(this.hostElement).appendChild(this.JSC$15297_spinnerEl));this.JSC$15297_spinnerEl&&(this.JSC$15297_spinnerEl.active=this.isLoading)};
_.t.onYtNavigate=function(L){var Z=this.get("updateCommentDialogEndpoint",L.detail.endpoint);Z&&(this.openEditDialog(Z),L.stopPropagation())};
_.t.onYtCommentboxDismiss=function(){this.editDialog=null};
_.t.onYtCommentPollRevert=function(L,Z){Z&&this.updatePoll(Z.selectedChoiceIndex)};
_.t.onYtServiceRequestSent=function(L,Z){var N;Z.endpoint&&(_.n(Z.endpoint,owq)||_.n(Z.endpoint,vwQ)&&((N=_.n(Z.endpoint,vwQ))==null||!N.clientActions))&&(this.isLoading=!0);if(Z.actions)for(L=0;L<Z.actions.length;L++)N=Z.actions[L],_.n(N,df)&&(N=this.get("updateBackstagePollAction.selectedChoiceIndex",N),N==void 0&&(N=-1),this.updatePoll(N))};
_.t.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.t.openEditDialog=function(L){L&&L.dialog&&(this.editDialog=L.dialog,L=this.editDialogEl.firstElementChild)&&(L.focus(),L.openDialog&&L.openDialog())};
_.t.computeIsPostHidden=function(L,Z){return!!L||Z};
_.t.computeSurfaceType=function(L){return L?L.toLowerCase().replace(/_/g,"-"):""};
_.t.computeUsesCompactLockup=function(L){return L==="BACKSTAGE_SURFACE_TYPE_HOME"||L==="BACKSTAGE_SURFACE_TYPE_SEARCH"||L==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||L==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||L==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||L==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.t.computeShowWithoutToolbar=function(L){return!L.actionButtons&&!L.actionMenu};
_.t.computePostAttachment=function(L){if(L.backstageAttachment){if(_.n(L.backstageAttachment,qjh))return"poll";if(_.n(L.backstageAttachment,s30))return"quiz";if(_.n(L.backstageAttachment,_.LF))return"video";if(_.n(L.backstageAttachment,j35))return"uploaded-videos";if(_.n(L.backstageAttachment,EFV))return L.contentText?"image":"image-only";if(_.n(L.backstageAttachment,IAh))return"playlist"}return"none"};
_.t.computePostTabIndex=function(L){return L?0:-1};
_.t.computeButtonTooltipPosition=function(L){return this.computeUsesCompactLockup(L)?"top":"bottom"};
_.t.computeHasText=function(L){return!(L==null||!L.contentText)};
_.t.onTap=function(L){var Z,N;if(((Z=this.data)==null?0:Z.navigationEndpoint)&&((N=this.data)==null?void 0:N.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var S;((S=this.data)==null?0:S.navigationEndpoint)&&!_.PQ(_.sx(L)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.QT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.gd.Object.defineProperties(yQ.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.voteCount)||_.s9("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,qjh))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,j35))}}});
yQ.prototype.onYtServiceRequestCompleted=yQ.prototype.onYtServiceRequestCompleted;yQ.prototype.onYtServiceRequestSent=yQ.prototype.onYtServiceRequestSent;yQ.prototype.onYtCommentPollRevert=yQ.prototype.onYtCommentPollRevert;yQ.prototype.onYtCommentboxDismiss=yQ.prototype.onYtCommentboxDismiss;yQ.prototype.onYtNavigate=yQ.prototype.onYtNavigate;yQ.prototype.isLoadingChanged=yQ.prototype.isLoadingChanged;yQ.prototype.dataChanged=yQ.prototype.dataChanged;yQ.prototype.contentTextChanged=yQ.prototype.contentTextChanged;
_.r([_.y(_.Q$),_.Q("design:type",Object)],yQ.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],yQ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],yQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],yQ.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],yQ.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Object)],yQ.prototype,"editDialog",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yQ.prototype,"roundedContainer",void 0);_.r([_.Y(),_.Q("design:type",Object)],yQ.prototype,"isLoading",void 0);_.r([_.Y({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.Q("design:type",String)],yQ.prototype,"surface",void 0);
_.r([_.Y({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],yQ.prototype,"usesCompactLockup",void 0);_.r([_.Y({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],yQ.prototype,"showWithoutToolbar",void 0);_.r([_.Y({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.Q("design:type",String)],yQ.prototype,"attachment",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yQ.prototype,"isRichGrid",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yQ.prototype,"isRichGridRepost",void 0);_.r([_.Y({reflectToAttribute:!0,value:_.c("use_better_post_dismissals")}),_.Q("design:type",Boolean)],yQ.prototype,"useBetterPostDismissals",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yQ.prototype,"reduceSidePaddings",void 0);
_.r([_.Y({computed:"computeHasText(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],yQ.prototype,"hasText",void 0);_.r([_.TX("#expander"),_.Q("design:type",Object)],yQ.prototype,"expander",void 0);_.r([_.TX("#action-buttons"),_.Q("design:type",Object)],yQ.prototype,"actionButtons",void 0);_.r([_.TX("#edit-dialog"),_.Q("design:type",HTMLElement)],yQ.prototype,"editDialogEl",void 0);
_.r([_.iA("data.contentText"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yQ.prototype,"contentTextChanged",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yQ.prototype,"dataChanged",null);_.r([_.iA("isLoading"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yQ.prototype,"isLoadingChanged",null);
_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],yQ.prototype,"onYtNavigate",null);_.r([_.SA("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yQ.prototype,"onYtCommentboxDismiss",null);_.r([_.SA("yt-comment-poll-revert"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],yQ.prototype,"onYtCommentPollRevert",null);
_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],yQ.prototype,"onYtServiceRequestSent",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],yQ.prototype,"onYtServiceRequestCompleted",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],yQ.prototype,"voteCount",null);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],yQ.prototype,"commentCount",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],yQ.prototype,"hasPoll",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],yQ.prototype,"hasUploadedVideo",null);_.r([_.P({is:"ytd-post-renderer",disableElementRegistration:!0})],yQ);
_.m(yQ,"ytd-post-renderer",function(){if(V8M!==void 0)return V8M;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return V8M=L},{mode:1});var rF0;var QEY;var wL=function(){return _.e.apply(this,arguments)||this};
_.f(wL,_.e);wL.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],wL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Mo.YtdHorizontalListBehavior),_.Q("design:type",Object)],wL.prototype,"ytdHorizontalListBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],wL.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],wL.prototype,"data",void 0);
_.r([_.Y({value:"$.items.children"}),_.Q("design:type",String)],wL.prototype,"itemsPath",void 0);_.r([_.Y({value:1}),_.Q("design:type",Number)],wL.prototype,"initialCount",void 0);_.r([_.Y({reflectToAttribute:!0,value:_.c("enable_community_page_on_desktop")}),_.Q("design:type",Boolean)],wL.prototype,"useSmallerPostImageAttachments",void 0);_.r([_.Y(),_.Q("design:type",String)],wL.prototype,"surface",void 0);_.r([_.P({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],wL);
_.m(wL,"ytd-post-multi-image-renderer",function(){if(QEY!==void 0)return QEY;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return QEY=L},{mode:_.Qr("kevlar_poly_si_batch_j079")?1:2});var XOV={"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"}}},
Uq=function(){var L=_.e.apply(this,arguments)||this;L.hasInlineCommentSection=!1;L.editDialog=null;L.isLoading=!1;L.shouldHideAuthor=!1;L.shouldShowVideoTime=!1;L.isInEngagementPanel=!1;L.hideBorder=!1;L.usesFullLockup=!1;L.shouldShowMenuInCompactView=!1;L.JSC$15312_spinnerEl=null;L.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return L};
_.f(Uq,_.e);_.t=Uq.prototype;_.t.configureRendererStamper=function(){return XOV};
_.t.computeIsPollHeaderEnabled=function(L){return(L==null?void 0:L.pollMetadataIcon)!=null};
_.t.getPublishTimeStampString=function(L,Z){Z=new Date((Number(Z)-60*((new Date).getTimezoneOffset()-(new Date(Number(Z)*1E3)).getTimezoneOffset()))*1E3);Z=(new hN(10)).format(Z);if(L&&L.runs&&L.runs.length)for(var N=0;N<L.runs.length;N++)L.runs[N].text&&(L.runs[N].text=L.runs[N].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",Z));return L};
_.t.created=function(){this.JSC$15312_spinnerEl=null};
_.t.contentTextChanged=function(){this.expander.reset()};
_.t.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var L;if((L=this.data)==null?0:L.actions){L=_.O(this.data.actions);for(var Z=L.next();!Z.done;Z=L.next())this.openEditDialog(_.n(Z.value,gU5))}};
_.t.handleSignalActionOpenPostCommentDialogAction=function(){_.QJ(this.hostElement).querySelector("#action-buttons").reply()};
_.t.updatePoll=function(L,Z){Z&&this.set("data.pollMetadataVoteCountText",Z);this.hasInlineCommentSection&&(L=L>=0,Z=_.QJ(this.hostElement).querySelector("#action-buttons"),L?Z.reply():Z.hideReplyDialog())};
_.t.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15312_spinnerEl||(this.JSC$15312_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.QJ(this.hostElement).appendChild(this.JSC$15312_spinnerEl));this.JSC$15312_spinnerEl&&(this.JSC$15312_spinnerEl.active=this.isLoading)};
_.t.onYtNavigate=function(L){var Z=this.get("updateCommentDialogEndpoint",L.detail.endpoint);Z&&(this.openEditDialog(Z),L.stopPropagation())};
_.t.onYtCommentboxDismiss=function(){this.editDialog=null};
_.t.onYtCommentPollRevert=function(L,Z){Z&&this.updatePoll(Z.selectedChoiceIndex,Z.totalVotes)};
_.t.onYtServiceRequestSent=function(L,Z){L.stopPropagation();L=_.n(Z.endpoint,vwQ);if(_.n(Z.endpoint,owq)||L&&!L.clientActions)this.isLoading=!0;if(Z.actions)for(L=0;L<Z.actions.length;L++){var N=Z.actions[L],S=_.n(N,df);S&&(N=this.get("updateBackstagePollAction.selectedChoiceIndex",N),N===void 0&&(N=-1),this.updatePoll(N,S.totalVotes))}};
_.t.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.t.openEditDialog=function(L){L&&L.dialog&&(this.editDialog=L.dialog,L=this.editDialogElement.firstElementChild)&&(L.focus(),L.openDialog&&L.openDialog())};
_.t.computeIsBodyHidden=function(L,Z){return!!L||Z};
_.gd.Object.defineProperties(Uq.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var L=this.data,Z=L.showPostAuthorBackgroundHighlight,N=L.postAuthorBadgeType,S=L.authorEndpoint;if(!Z&&N!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&N!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var u,T,W;L=_.s9(((u=L.authorText)==null?void 0:(T=u.runs)==null?void 0:(W=T[0])==null?void 0:W.text)||"");u=void 0;switch(N){case "POST_AUTHOR_BADGE_TYPE_ARTIST":u={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":u={iconType:Z?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:L,authorEndpoint:S,authorCreator:Z,icon:u}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var L,Z;if((L=this.data)==null?0:(Z=L.pollMetadataIcon)==null?0:Z.iconType)return _.Bh(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.voteCount)||_.s9("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,qjh))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,s30))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,j35))}}});
Uq.prototype.onYtServiceRequestCompleted=Uq.prototype.onYtServiceRequestCompleted;Uq.prototype.onYtServiceRequestSent=Uq.prototype.onYtServiceRequestSent;Uq.prototype.onYtCommentPollRevert=Uq.prototype.onYtCommentPollRevert;Uq.prototype.onYtCommentboxDismiss=Uq.prototype.onYtCommentboxDismiss;Uq.prototype.onYtNavigate=Uq.prototype.onYtNavigate;Uq.prototype.isLoadingChanged=Uq.prototype.isLoadingChanged;Uq.prototype.dataChanged=Uq.prototype.dataChanged;Uq.prototype.contentTextChanged=Uq.prototype.contentTextChanged;
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Uq.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Uq.prototype,"rendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Uq.prototype,"rendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],Uq.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.TX("#contentTextExpander"),_.Q("design:type",Object)],Uq.prototype,"expander",void 0);_.r([_.TX("#edit-dialog"),_.Q("design:type",Element)],Uq.prototype,"editDialogElement",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uq.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uq.prototype,"hasInlineCommentSection",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uq.prototype,"editDialog",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uq.prototype,"isLoading",void 0);
_.r([_.Y({computed:"computeIsPollHeaderEnabled(data)"}),_.Q("design:type",Boolean)],Uq.prototype,"isPollHeaderEnabled",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uq.prototype,"shouldHideAuthor",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uq.prototype,"shouldShowVideoTime",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uq.prototype,"isInEngagementPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uq.prototype,"hideBorder",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uq.prototype,"usesFullLockup",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uq.prototype,"shouldShowMenuInCompactView",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Uq.prototype,"authorCommentBadge",null);_.r([_.w("isInEngagementPanel"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Uq.prototype,"postTextMaxLines",null);
_.r([_.w("data.icon.iconType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Uq.prototype,"pollIcon",null);_.r([_.iA("data.contentText"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uq.prototype,"contentTextChanged",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uq.prototype,"dataChanged",null);
_.r([_.iA("isLoading"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uq.prototype,"isLoadingChanged",null);_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Uq.prototype,"onYtNavigate",null);_.r([_.SA("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uq.prototype,"onYtCommentboxDismiss",null);
_.r([_.SA("yt-comment-poll-revert"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],Uq.prototype,"onYtCommentPollRevert",null);_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],Uq.prototype,"onYtServiceRequestSent",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Uq.prototype,"onYtServiceRequestCompleted",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Uq.prototype,"voteCount",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Uq.prototype,"commentCount",null);
_.r([_.w("data.backstageAttachment"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Uq.prototype,"hasPoll",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Uq.prototype,"hasQuiz",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Uq.prototype,"hasUploadedVideo",null);_.r([_.P({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Uq);
_.m(Uq,"ytd-backstage-post-renderer",function(){if(rF0!==void 0)return rF0;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return rF0=L},{mode:1});var AFl;var Yg=function(){var L=_.e.apply(this,arguments)||this;L.editDialog=null;L.showExpandButton=!1;L.isRichGrid=!1;L.usesFullLockup=!1;return L};
_.f(Yg,_.e);_.t=Yg.prototype;_.t.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"}}}};
_.t.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.t.computeShowExpandButton=function(L){return this.usesCompactLockup||L&&L.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.t.computeUsesCompactLockup=function(L){return!!L.condensedContent};
_.t.computeShowFullContentText=function(L){return!L};
_.t.onYtNavigate=function(L){L=this.get("updateCommentDialogEndpoint",L.detail.endpoint);this.openEditDialog(L)};
_.t.onYtCommentboxDismiss=function(){this.editDialog=null};
_.t.openEditDialog=function(L){L&&L.dialog&&(this.editDialog=L.dialog,L=this.repostEditDialogEl.firstElementChild)&&(L.focus(),L.openDialog&&L.openDialog())};
_.t.onTap=function(L){if(this.data){var Z=null;this.usesCompactLockup&&!_.PQ(_.sx(L)||[],this.hostElement,["YT-IMG-SHADOW"])?Z=this.get("navigationEndpoint",this.data):L.target===this.moreButtonEl&&(Z=this.get("navigationEndpoint",L.target.data));Z&&_.QT(this.hostElement,"yt-navigate",{endpoint:Z})}};
Yg.prototype.onYtCommentboxDismiss=Yg.prototype.onYtCommentboxDismiss;Yg.prototype.onYtNavigate=Yg.prototype.onYtNavigate;Yg.prototype.dataChanged=Yg.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Yg.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yg.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Yg.prototype,"editDialog",void 0);_.r([_.Y({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Yg.prototype,"usesCompactLockup",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Yg.prototype,"showExpandButton",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Yg.prototype,"isRichGrid",void 0);
_.r([_.Y({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Yg.prototype,"showFullContentText",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Yg.prototype,"usesFullLockup",void 0);_.r([_.TX("#more"),_.Q("design:type",Object)],Yg.prototype,"moreButtonEl",void 0);_.r([_.TX("#repost-content-text"),_.Q("design:type",HTMLElement)],Yg.prototype,"repostContentTextEl",void 0);
_.r([_.TX("#repost-edit-dialog"),_.Q("design:type",HTMLElement)],Yg.prototype,"repostEditDialogEl",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yg.prototype,"dataChanged",null);_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Yg.prototype,"onYtNavigate",null);
_.r([_.SA("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yg.prototype,"onYtCommentboxDismiss",null);_.r([_.P({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Yg);
_.m(Yg,"ytd-shared-post-renderer",function(){if(AFl!==void 0)return AFl;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return AFl=L},{mode:1});var Hjs;var BlN;var er=function(){return _.e.apply(this,arguments)||this};
_.f(er,_.e);er.prototype.attached=function(){var L=this;this.networkStatusManager||(this.networkStatusManager=new _.iR,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){L.onlineHandler()}))};
er.prototype.detached=function(){var L=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){L.onlineHandler()}),delete this.networkStatusManager)};
er.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],er.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],er.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],er.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],er);
_.m(er,"ytd-reload-page-button-renderer",function(){if(BlN!==void 0)return BlN;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
return BlN=L},{mode:1});var xpY={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"},I9=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return L};
_.f(I9,_.e);_.t=I9.prototype;_.t.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.t.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.t.computeHasBodyText=function(L){return!!L.bodyText};
_.t.computeButtons=function(L){var Z=[];L.ctaButton&&Z.push(L.ctaButton);L.secondaryButton&&Z.push(L.secondaryButton);return Z};
_.t.computeRendererStyle=function(L){return L.style?L.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():L.icon?"":"no-icon"};
_.t.getIconName=function(L,Z){Z=Z===void 0?!1:Z;if(L===void 0)return"";L=this.get("icon.iconType",L);var N;_.c("enable_hlp_client_icon_pick")?N=this.getThemedIcon(L,Z):N=L;(Z=xpY[N])||(Z="yt-icons");return[Z,N].join(":")};
_.t.getThemedIcon=function(L,Z){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(L)?Z?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(L)?Z?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":L};
_.t.isThumbnail=function(L){return!!L.thumbnail};
_.t.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.t.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],I9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],I9.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],I9.prototype,"data",void 0);
_.r([_.Y({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Q("design:type",String)],I9.prototype,"rendererStyle",void 0);_.r([_.Y({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.Q("design:type",String)],I9.prototype,"iconName",void 0);_.r([_.Y({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],I9.prototype,"thumbnail",void 0);_.r([_.Y({computed:"computeButtons(data)"}),_.Q("design:type",Array)],I9.prototype,"buttons",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],I9.prototype,"isDarkTheme",void 0);_.r([_.Y({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],I9.prototype,"hasBodyText",void 0);_.r([_.P({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],I9);
_.m(I9,"ytd-background-promo-renderer",function(){if(Hjs!==void 0)return Hjs;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Hjs=L},{mode:1});var qJL;var dL=function(){return _.e.apply(this,arguments)||this};
_.f(dL,_.e);_.gd.Object.defineProperties(dL.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S,u,T;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(L=this.data)==null?void 0:(Z=L.thumbnail)==null?void 0:Z.sampledThumbnailColor,vibrantColorPalette:(N=this.data)==null?void 0:(S=N.thumbnail)==null?void 0:S.vibrantColorPalette,darkColorPalette:(u=this.data)==null?void 0:(T=u.thumbnail)==null?void 0:T.darkColorPalette,experimentEnabled:!0}}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],dL.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dL.prototype,"collectionStack",null);_.r([_.P({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],dL);
_.m(dL,"ytd-compact-station-renderer",function(){if(qJL!==void 0)return qJL;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return qJL=L},{mode:1});var L7s;var a9=function(){var L=_.e.apply(this,arguments)||this;L.isRichGrid=!1;return L};
_.f(a9,_.e);a9.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]]"}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],a9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],a9.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],a9.prototype,"isRichGrid",void 0);_.r([_.P({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],a9);
_.m(a9,"ytd-grid-channel-renderer",function(){if(L7s!==void 0)return L7s;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return L7s=L},{mode:1});var Zit;var hI=function(){return _.e.apply(this,arguments)||this};
_.f(hI,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],hI.prototype,"data",void 0);_.r([_.P({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],hI);
_.m(hI,"ytd-grid-movie-playlist-renderer",function(){if(Zit!==void 0)return Zit;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Zit=L},{mode:1});var NT0;var sq=function(){var L=_.e.apply(this,arguments)||this;L.downloadProgress=0;L.transferState="TRANSFER_STATE_UNKNOWN";L.modernButtons=_.c("web_modern_buttons");return L};
_.f(sq,_.e);sq.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
sq.prototype.configureRendererStamper=function(){return{"data.menu":Ul}};
sq.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
sq.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.c("woffle_playlist_renderer_killswitch")){var L,Z=Ob0(this.entityInfo,this.transferState,this.downloadProgress,(L=this.data)==null?void 0:L.playlistId,this.isOnline);L=Z.viewPlaylistText;var N=Z.badges;Z=Z.thumbnailOverlays;this.isDownloads=!!L||!!N;this.set("data.viewPlaylistText",L);N&&N.length>0&&this.set("data.badges",N);Z&&Z.length>0&&this.set("data.thumbnailOverlays",
Z)}};
_.gd.Object.defineProperties(sq.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 L;return!((L=this.data)==null?0:L.menu)}}});
sq.prototype.transferStateChanged=sq.prototype.transferStateChanged;sq.prototype.dataChanged=sq.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Lb),_.Q("design:type",Object)],sq.prototype,"ytdLockupBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],sq.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],sq.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Y({selector:_.mNP,selectorArgs:["data.playlistId"]}),_.Q("design:type",Object)],sq.prototype,"downloadProgress",void 0);_.r([_.Y({selector:_.fk,selectorArgs:["data.playlistId"]}),_.Q("design:type",Object)],sq.prototype,"transferState",void 0);_.r([_.Y({selector:zuH,selectorArgs:["data.playlistId"]}),_.Q("design:type",Object)],sq.prototype,"entityInfo",void 0);_.r([_.Y({selector:_.nk}),_.Q("design:type",Boolean)],sq.prototype,"isOnline",void 0);
_.r([_.Y(),_.Q("design:type",Object)],sq.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],sq.prototype,"downloadRenderData",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],sq.prototype,"modernButtons",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],sq.prototype,"isDownloads",void 0);_.r([_.w("transferState"),_.Y({reflectToAttribute:!0}),_.Q("design:type",String),_.Q("design:paramtypes",[])],sq.prototype,"downloadState",null);
_.r([_.w("data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],sq.prototype,"menuHidden",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sq.prototype,"dataChanged",null);_.r([_.Vr("transferState","downloadProgress","isOnline"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sq.prototype,"transferStateChanged",null);
_.r([_.P({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],sq);
_.m(sq,"ytd-grid-playlist-renderer",function(){if(NT0!==void 0)return NT0;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return NT0=L},{mode:1});var S7q;var jr=function(){return _.e.apply(this,arguments)||this};
_.f(jr,_.e);jr.prototype.configureRendererStamper=function(){return{"data.menu":Ul,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.gd.Object.defineProperties(jr.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S,u,T;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(L=this.data)==null?void 0:(Z=L.thumbnail)==null?void 0:Z.sampledThumbnailColor,vibrantColorPalette:(N=this.data)==null?void 0:(S=N.thumbnail)==null?void 0:S.vibrantColorPalette,darkColorPalette:(u=this.data)==null?void 0:(T=u.thumbnail)==null?void 0:T.darkColorPalette,experimentEnabled:!0}}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],jr.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.Lb),_.Q("design:type",Object)],jr.prototype,"ytdLockupBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],jr.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],jr.prototype,"data",void 0);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jr.prototype,"collectionStack",null);_.r([_.P({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],jr);
_.m(jr,"ytd-grid-radio-renderer",function(){if(S7q!==void 0)return S7q;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return S7q=L},{mode:1});var iit;var Eq=function(){return _.e.apply(this,arguments)||this};
_.f(Eq,_.e);Eq.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Eq.prototype.computeNavigationEndpoint=function(L){return hTh(L==null?void 0:L.navigationEndpoint)};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Eq.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Lb),_.Q("design:type",Object)],Eq.prototype,"ytdLockupBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Eq.prototype,"data",void 0);_.r([_.Y({computed:"computeNavigationEndpoint(data)"}),_.Q("design:type",Object)],Eq.prototype,"computedNavigationEndpoint",void 0);
_.r([_.P({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Eq);
_.m(Eq,"ytd-grid-show-renderer",function(){if(iit!==void 0)return iit;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return iit=L},{mode:1});var uCM;_.PA=function(L){this.playerClient=L};
_.TT5=function(L,Z,N){N=N===void 0?{}:N;return L.playerClient.setOption("ad",Z,N)};
_.PA.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.PA.prototype.executeCommand=function(L,Z){this.getOptions().includes("executeCommand")?_.TT5(this,"executeCommand",{command:L,layoutId:Z}):_.eC("Calling executeCommand when adModule is not loaded")};var pN=function(){return _.e.apply(this,arguments)||this};
_.f(pN,_.e);pN.prototype.getLayoutId=function(){var L=_.LZ("yt.www.ads.eventcache.getLastCompanionData");return L?(L=L())&&L.layoutId:null};
pN.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var L=_.CV(),Z=this.getLayoutId(),N=this.data.clickthroughEndpoint;L&&Z&&_.c("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?L.getPlayerPromise().then(function(S){(new _.PA(S)).executeCommand(N,Z)}):_.QT(this.hostElement,"yt-navigate",{endpoint:N})}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],pN.prototype,"data",void 0);_.r([_.P({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],pN);
_.m(pN,"ytd-shopping-companion-item-renderer",function(){if(uCM!==void 0)return uCM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return uCM=L},{mode:1});var tOl;var z9=function(){var L=_.e.apply(this,arguments)||this;L.isExpandableContent=!1;return L};
_.f(z9,_.e);_.gd.Object.defineProperties(z9.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return((L=this.data)==null?void 0:L.price)||((Z=this.data)==null?void 0:(N=Z.dealsData)==null?void 0:N.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var L,Z;if((L=this.data)!=null&&L.dealsData&&((Z=this.data)==null||!Z.priceReplacementText)){L=this.data.dealsData;var N,S,u;return((N=L.salesData)==null?void 0:N.originalPrice)||((S=L.priceDropData)==null?void 0:S.referencePrice)||((u=L.promotionData)==null?void 0:u.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var L,Z;return(L=this.data)==null?void 0:(Z=L.dealsData)==null?void 0:Z.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],z9.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],z9.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],z9.prototype,"isExpandableContent",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"showCta",null);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"ctaText",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"hasPriceTopPosition",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"hasPriceBottomPosition",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"useNewStyle",null);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"showPriceReplacementText",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"priceValue",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"showDeal",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"showAffiliateDisclaimer",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"useSaleStyle",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"useFromBrandCtaStyle",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"useFromVendorCtaStyle",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"useShoppingCollectionCtaStyle",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],z9);
_.m(z9,"ytd-vertical-product-card-renderer",function(){if(tOl!==void 0)return tOl;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return tOl=L},{mode:1});var Oit;var mb=function(){return _.e.apply(this,arguments)||this};
_.f(mb,_.e);mb.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],mb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Lb),_.Q("design:type",Object)],mb.prototype,"ytdLockupBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],mb.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],mb);
_.m(mb,"ytd-grid-movie-renderer",function(){if(Oit!==void 0)return Oit;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Oit=L},{mode:1});var W7t;var JI=function(){var L=_.e.apply(this,arguments)||this;L.roundedFix=_.c("web_enable_merch_item_rounding_fix");L.itemStyle="small-item";return L};
_.f(JI,_.e);JI.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var L,Z,N,S,u=(Z=_.n((L=this.data)==null?void 0:L.buttonCommand,_.oFl))==null?void 0:(N=Z.item)==null?void 0:(S=N.notificationTextRenderer)==null?void 0:S.successResponseText;u&&_.Gvf(this.hostElement,u)}};
_.gd.Object.defineProperties(JI.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?void 0:L.isProductPlaceholder)!==void 0&&((Z=this.data)==null?void 0:Z.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.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}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],JI.prototype,"roundedFix",void 0);_.r([_.Y(),_.Q("design:type",Object)],JI.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],JI.prototype,"itemStyle",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],JI.prototype,"hasPrice",null);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],JI.prototype,"hasPriceReplacementText",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],JI.prototype,"hasAdditionalFeesText",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],JI.prototype,"hasAffiliateDisclaimer",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],JI.prototype,"isProductPlaceholder",null);
_.r([_.Y(),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],JI.prototype,"hideOpenInNewIcon",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],JI.prototype,"ariaLabel",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],JI);
_.m(JI,"ytd-merch-shelf-item-renderer",function(){if(W7t!==void 0)return W7t;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return W7t=L},{mode:1});_.CY(_.p(function(L){return _.g("button-card-view-model",{el:_.P9(_.cT(function(){return L.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return L.data().title},
role:"button"},_.g(_.MN,{model:{}}),_.g("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.g("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.g(_.F,{cond:function(){return L.data().image},
then:function(Z){return _.g(_.ji,{data:Z,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.g("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return L.data().title})))},"$b"),"button-card-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){L=_.Ek(L,{className:void 0});var Z=L.data;L=L.className;var N=_.wJ(function(){return Z().onTapCommand},void 0,"SXkP9e");
return _.g("ytd-shopping-item-card",{class:_.qg("ytdShoppingItemCardHost",L)},_.g(_.bM,{command:N,className:"ytdShoppingItemCardHostLink"},_.g("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.g(_.bj,{data:function(){return Z().thumbnailViewModel}},{thumbnailViewModel:function(S){return _.g(_.b7,{data:S.data,
aspectRatio:3})}})),_.g("div",null,_.g("p",{class:"ytdShoppingItemCardHostItemTitle"},_.g(_.qv,{text:function(){return Z().itemTitle}})),_.g("p",{class:"ytdShoppingItemCardHostPrice"},_.g(_.qv,{text:function(){return Z().priceOrStatus}})))))},"ac"),"ytd-shopping-item-card",{props:{data:_.LK,
className:_.LK}});var VO5={isAdsVideo:!0},bit={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},MOI={showPlayerControls:!1,videoPreviewDurationMs:15E3},gnl={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var dm=null,F9f={};var lmf="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(" "),CN={},vq1=(CN.FEwhat_to_watch="home",CN.FEhashtag="hashtag",CN.FEtrending="trending",CN.FEhistory="history",CN.SPunlimited="premium",CN.FEmemberships_and_purchases="paid_memberships",CN.SPredeem_code="redeem",CN.SPverify_location="locate",CN.SPminor_moment="minor_moment",
CN.FEmini_app_container="mini_app",CN.FEnews_destination="news",CN.SPopen_in_app="open_in_app",CN.FEexplore="explore",CN.FEsubscriptions="subscriptions",CN.FEsfv_audio_pivot="sfv_audio_pivot",CN.FEplaylist_aggregation="playlist_aggregation",CN);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");_.xP("init");var G8h=function(){},lzV=_.p(function(L){var Z=L.data;
var N=L.inlineMetadata;var S=L.aspectRatio;var u=L.scrimStyle;var T=L.className;var W=L.useDefaultStyle;var V=L.titleStyle;var M=new G8h,G=_.c("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",D=_.wJ(function(){return(W==null?0:W())?G==="SHORTS_LOCKUP_STYLE_SLIM":Z().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"xq9ok"),l=_.wJ(function(){return _.JW(N)||D()||!1},void 0,"neizSe"),v=function(){return(u==null?void 0:u())!==void 0?u==null?void 0:u():1},
R=_.wJ(function(){return Z().belowThumbnailMetadata||!l()},void 0,"HdmMMe");
L=_.$b({visibilityCallback:function(Fw){var GB=Z().onFirstVisible;Fw&&GB&&_.w$(GB)},
showOption:{calledOnce:!0,state:"visible"}});var K=_.P9(),U={},d=_.qg(function(){return D(),"shortsLockupViewModelHostThumbnailContainer"},(U.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.JW(S)===1},U.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.JW(S)===2},U.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.c("web_shorts_2_by_3_lockups_study")&&!_.c("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
U)),h=_.wJ(function(){if(_.JW(S)===1)return 1;
_.JW(S);return 2},void 0,"ZRUa3c"),E,A=function(){if(M){var Fw;
(Fw=E)==null||jy(Fw);var GB;if(M.hostElement&&((GB=M.data)==null?0:GB.inlinePlayerData)){Fw=Object.assign({},gnl);var Yt,lH;((Yt=M.data)==null?void 0:(lH=Yt.inlinePlayerData)==null?void 0:lH.maxPlaybackLengthSec)!==void 0&&(Fw.videoPreviewDurationMs=M.data.inlinePlayerData.maxPlaybackLengthSec*1E3);E=Kl({mediaRenderer:M,lockupElement:M.hostElement,thumbnailElement:K.value,videoPreviewOpts:Fw})}}};
_.ph(function(){M&&(M.data=Z(),A())},"c4oj4d");
var J=_.wJ(function(){return Z().thumbnail},void 0,"CJHyHc");
U=_.wJ(function(){return Z().badge},void 0,"g31PIe");
var C=_.wJ(function(){return Z().onTap},void 0,"CJCUBc"),X={},L1={};
return _.g("ytm-shorts-lockup-view-model",{el:_.P9(function(Fw){M&&(M.hostElement=Fw)},A,L),
class:_.qg("shortsLockupViewModelHost",T)},_.g(_.F7,null,_.g(_.bM,{command:C,className:_.qg("shortsLockupViewModelHostEndpoint",(X.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!R()},X),"reel-item-endpoint",""),
ariaHidden:function(){return!l()},
tabIndex:function(){return l()?0:-1}},_.g("div",{el:K,
class:_.qg("shortsLockupViewModelHostThumbnailParentContainer",(L1.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!D()},L1))},_.g(_.F,{cond:J,
then:function(){return _.g("div",{class:d},_.g(_.ji,{data:function(){var Fw;return(Fw=J==null?void 0:J())!=null?Fw:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.g(_.bj,{data:function(){return Z().thumbnailViewModel}},{thumbnailViewModel:function(Fw){return _.g(_.b7,{data:Fw.data,
aspectRatio:function(){return h()},
disableRounding:function(){return D()}})}}),null),_.g(_.F,{cond:l,
then:function(){return _.g(F7I,{data:Z,scrimStyle:v,useDefaultStyle:W,titleStyle:V})}}),_.g(_.bj,{data:U},{badgeViewModel:function(Fw){return _.g(_.Fo,{data:Fw.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.g(_.F,{cond:function(){return l()&&Z().menuOnTap},
then:function(){return _.g($Bs,{data:Z,inlineMetadata:!0})}}),_.g(_.F,{cond:R,
then:function(){return _.g(DBI,{data:Z,useDefaultStyle:W,inlineMetadata:l})}})))},"cc"),F7I=_.p(function(L){var Z=L.data;
var N=L.scrimStyle;var S=L.useDefaultStyle;var u=L.titleStyle;var T=_.c("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",W=S&&_.c("web_hide_primary_text_for_pivot_panel"),V=_.wJ(function(){return(S==null?0:S())?T==="SHORTS_LOCKUP_STYLE_SLIM":Z().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"eqtoN");
L={};L=_.qg("shortsLockupViewModelHostInlineMetadata",(L.shortsLockupViewModelHostMetadataRounded=function(){return!V()},L.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(N==null?void 0:N())===3&&!_.c("enable_shorts_lockup_new_scrim")},L.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(N==null?void 0:N())===3&&_.c("enable_shorts_lockup_new_scrim")},L.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(N==null?void 0:N())===2||(N==null?void 0:
N())===4},L.shortsLockupViewModelHostShowOverPlayer=function(){return!0},L),"image-overlay-text");
var M={};return _.g("div",{class:L},_.g("h3",{class:_.qg("shortsLockupViewModelHostMetadataTitle",(M.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(N==null?void 0:N())===4},M.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return Z().belowThumbnailMetadata},M.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(u==null?void 0:u())===1},M.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(u==null?void 0:u())===2},M)),
"aria-label":function(){return Z().accessibilityText}},_.g(_.F,{cond:function(){var G;
return!((G=Z().overlayMetadata)==null||!G.primaryText)&&!W},
then:function(){return _.g(_.qv,{text:function(){var G;return(G=Z().overlayMetadata)==null?void 0:G.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.g(_.F,{cond:function(){var G;
return(G=Z().overlayMetadata)==null?void 0:G.secondaryText},
then:function(){return _.g(vnQ,{data:Z,scrimStyle:N,className:void 0})}}))},"dc"),DBI=_.p(function(L){var Z=L.data;
var N=L.useDefaultStyle;var S=L.inlineMetadata;var u=_.c("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",T=_.wJ(function(){return(N==null?0:N())?u==="SHORTS_LOCKUP_STYLE_SLIM":Z().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"rFGYIe"),W=_.P9(),V;
L=_.Z9(function(R){if(_.vT(_.lj(R),W.value,["AVATAR-VIEW-MODEL"]))return!1;var K;(K=V)==null||K.click();return!1});
var M=_.wJ(function(){return Z().belowThumbnailMetadata||Z().overlayMetadata},void 0,"yJVuMb"),G=function(){return Z().menuOnTap&&!S()},D=function(){var R;
return(R=M())==null?void 0:R.avatar},l={},v={};
return _.g("div",{class:_.qg(function(){return T()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(l.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!D()},l.shortsLockupViewModelHostOutsideMetadataHasMenu=G,l)),
"on:click":L,el:W,role:"presentation"},_.g(_.bj,{data:D},{avatarViewModel:function(R){return _.g("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.g(_.JO,{data:R.data}))}}),_.g("div",null,_.g("h3",{class:_.qg("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(v.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var R,K;
return!((R=M())==null?0:(K=R.primaryText)==null?0:K.content)},v.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=S,v)),
role:"presentation"},_.g(_.bM,{ref:function(R){return void(V=R)},
command:function(){return Z().onTap},
className:_.qg("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var R,K;return(R=M())==null?void 0:(K=R.primaryText)==null?void 0:K.content},
"aria-label":function(){return Z().accessibilityText}},_.g(_.F,{cond:function(){var R;
return(R=M())==null?void 0:R.primaryText},
then:function(R){return _.g(_.qv,{text:R,noEndpoints:!0,noStyleRuns:!0})}}))),_.g(_.F,{cond:function(){var R;
return(R=M())==null?void 0:R.secondaryText},
then:function(R){return _.g("div",{class:_.qg("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.g(_.qv,{text:R,noStyleRuns:!0}))}})),_.g(_.F,{cond:G,
then:function(){return _.g($Bs,{data:Z,inlineMetadata:!1})}}))},"ec"),vnQ=_.p(function(L){var Z=L.data;
var N=L.scrimStyle;L=L.className;var S={};return _.g("div",{class:_.qg((S.shortsLockupViewModelHostMetadataSubhead=function(){return(N==null?void 0:N())!==4},S.shortsLockupViewModelHostMetadataSubheadNew=_.c("enable_shorts_lockup_new_scrim"),S.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(N==null?void 0:N())===4},S),L),
"aria-hidden":"true"},_.g(_.qv,{text:function(){var u;return(u=Z().overlayMetadata)==null?void 0:u.secondaryText},
noStyleRuns:!0}))},"fc"),$Bs=_.p(function(L){var Z=L.data;
var N=L.inlineMetadata;L={};L=_.qg((L.shortsLockupViewModelHostInlineMetadataMenu=function(){return N()},L.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!N()},L.shortsLockupViewModelHostShowOverPlayer=function(){return!0},L),"image-overlay-text");
return _.g("div",{class:L},_.g(_.Ff,{data:function(){return{style:N()?"overlay":"mono",accessibilityLabel:Z().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(S){S.preventDefault();S.stopPropagation();var u=_.kN({elementsCommand:Z().menuOnTap,forceNewState:!0});if(u==null?0:u.onclick)u.onclick(S)}}},
iconName:"MORE_VERT"}))},"gc");var on5=_.p(function(L){var Z=L.data;var N=L.inlineMetadata;var S=L.aspectRatio;var u=L.scrimStyle;var T=L.className;var W=L.useDefaultStyle;L=_.wJ(function(){var V=Z().entityId;return V?V.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.g("ytm-shorts-lockup-view-model-v2",{class:_.qg("shortsLockupViewModelHost",T)},_.g(_.vA,{contentId:L,aspectRatio:function(){return(S==null?void 0:S())===1?1:(S==null?void 0:S())===2?2:4}},function(){return _.g(lzV,{data:Z,
inlineMetadata:N,aspectRatio:S,scrimStyle:u,className:T,useDefaultStyle:W})}))},"hc");_.CY(on5,"ytm-shorts-lockup-view-model-v2",{props:{data:_.zl,inlineMetadata:_.zl,aspectRatio:_.zl,scrimStyle:_.zl,className:_.zl,useDefaultStyle:_.zl,titleStyle:_.zl}});var R7t=16/9*210,rL=function(){var L=_.e.apply(this,arguments)||this;L.isExpandableContent=!1;L.hideShelfHeader=!1;L.engagementPanel=!1;L.buttonClasses=["arrow"];L.isSearch=!1;L.disableScrollEventListener=!1;L.containsLockup=!1;L.overrideArrowPositionForProductCard=!1;L.overrideArrowPositionForShoppingItemCard=!1;L.overrideArrowPositionForReelItems=!1;L.overrideArrowPositionForGridMovie=!1;L.overrideArrowPositionToCenter=!1;L.isSearchPostShelf=!1;L.overrideArrowPositionForMixedShelf=!1;L.overrideArrowPositionForMixedShelfShortsOnly=
!1;L.hasBigThumbsReelItems=!1;L.shouldUseMixedListHeight=!1;L.shouldUseShortsListHeight=!1;L.gridVideoWidth=0;L.isSearchVodShelf=!1;L.disableWheelScroll=!1;L.sizing="COMPACT";L.shortsLockupAspectRatio=0;return L};
_.f(rL,_.e);_.t=rL.prototype;
_.t.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]]"}}}}};
_.t.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.c("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.t.computeInitialCountNumber=function(L){if(!L)return 6;var Z=L.items.some(function(T){return!!T.topicRecommendationsChipRenderer}),N=L.items.some(function(T){return!!T.displayAdRenderer}),S=this.computeShouldListItemsHaveEqualHeight(L),u=L.items.some(function(T){return!!T.gridPlaylistRenderer});
L=L.items.some(function(T){return!!T.shoppingItemCardViewModel});
return Z?9:N?8:u||S?10:L?7:6};
_.t.computeContainsPost=function(L){return!!L&&!!L.items&&L.items.some(function(Z){return!!Z.postRenderer})};
_.t.computeContainsLockup=function(){if(_.c("web_horizontal_list_lockup_arrow_killswitch"))return!1;var L,Z;return(L=this.data)==null?void 0:(Z=L.items)==null?void 0:Z.some(function(N){return!!N.lockupViewModel})};
_.t.maybeUpdateLockupAspectRatio=function(){var L,Z;if(this.computeContainsLockup()&&((L=this.data)==null?0:(Z=L.items)==null?0:Z.length)){var N;L=PW0((N=this.data.items[0].lockupViewModel)==null?void 0:N.contentType,this.data.force16By9ThumbnailAspectRatio);N=pIt(L);N=this.computeLockupWidth()/N;_.Ld(this.hostElement,{"--yt-horizontal-list-content-height":N+"px"})}};
_.t.computeOverrideArrowPositionForProductCard=function(L){if(this.isExpandableContent)return!1;var Z;return!!(L==null?0:(Z=L.items)==null?0:Z.some(function(N){return!!N.verticalProductCardRenderer}))};
_.t.computeOverrideArrowPositionForShoppingItemCard=function(L){var Z;return!!(L==null?0:(Z=L.items)==null?0:Z.some(function(N){return!!N.shoppingItemCardViewModel}))};
_.t.computeOverrideArrowPositionForReelItemRenderer=function(L){return this.containsReelItemRenderer(L)};
_.t.computeHasBigThumbsReelItems=function(L,Z){return L&&this.containsReelItemRenderer(Z)};
_.t.computeShouldListItemsHaveEqualHeight=function(L){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(L==null?void 0:L.itemSizeConstraint)};
_.t.computeShouldListItemsHaveShortsHeight=function(L){return this.computeShouldListItemsHaveEqualHeight(L)&&!this.containsGridVideoRenderer(L)};
_.t.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.t.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.t.containsReelItemRenderer=function(L){var Z;return!!(L==null?0:(Z=L.items)==null?0:Z.some(function(N){return!(!N.reelItemRenderer&&!N.shortsLockupViewModel)}))};
_.t.containsGridVideoRenderer=function(L){var Z;return!!(L==null?0:(Z=L.items)==null?0:Z.some(function(N){return!!N.gridVideoRenderer||!!N.lockupViewModel}))};
_.t.computeContainsGridMovieRenderer=function(L){var Z;return!!(L==null?0:(Z=L.items)==null?0:Z.some(function(N){return!!N.gridMovieRenderer}))};
_.t.computeOverrideArrowPositionToCenter=function(L){return this.computeIsSearchPostShelf(L)};
_.t.computeIsSearchPostShelf=function(L){var Z;return!!(L==null?0:(Z=L.items)==null?0:Z.some(function(N){var S,u;return((u=(S=N.postRenderer)==null?void 0:S.surface)!=null?u:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.t.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(L){var Z;return!!(L==null?0:(Z=L.items)==null?0:Z.some(function(N){var S,u,T;return((T=(S=N.backgroundPromoRenderer)==null?void 0:(u=S.style)==null?void 0:u.value)!=null?T:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.t.computeIsSearchVodShelf=function(L,Z){return L&&this.containsGridVideoRenderer(Z)};
_.t.computeDisableWheelScroll=function(L,Z){return this.computeIsSearchVodShelf(L,Z)};
_.t.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.t.computeShortsLockupAspectRatio=function(){return 1};
_.t.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Ld(this.hostElement,{"--ytd-reel-item-thumbnail-height":R7t+"px"})};
rL.prototype.dataChanged=rL.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],rL.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],rL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Mo.YtdHorizontalListBehavior),_.Q("design:type",Object)],rL.prototype,"ytdHorizontalListBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],rL.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Object)],rL.prototype,"isExpandableContent",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"hideShelfHeader",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"engagementPanel",void 0);_.r([_.Y(),_.Q("design:type",Array)],rL.prototype,"buttonClasses",void 0);_.r([_.Y(),_.Q("design:type",Object)],rL.prototype,"isSearch",void 0);
_.r([_.Y(),_.Q("design:type",Object)],rL.prototype,"disableScrollEventListener",void 0);_.r([_.Y({computed:"computeInitialCountNumber(data)"}),_.Q("design:type",Number)],rL.prototype,"initialCount",void 0);_.r([_.Y({computed:"computeContainsPost(data)"}),_.Q("design:type",Boolean)],rL.prototype,"supportComponentResize",void 0);_.r([_.Y({computed:"computeContainsPost(data)"}),_.Q("design:type",Boolean)],rL.prototype,"containsPost",void 0);
_.r([_.Y({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"containsLockup",void 0);_.r([_.Y({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],rL.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.r([_.Y({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"overrideArrowPositionForProductCard",void 0);_.r([_.Y({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.r([_.Y({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"overrideArrowPositionForReelItems",void 0);_.r([_.Y({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"overrideArrowPositionForGridMovie",void 0);
_.r([_.Y({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"overrideArrowPositionToCenter",void 0);_.r([_.Y({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"isSearchPostShelf",void 0);_.r([_.Y({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.r([_.Y({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.r([_.Y({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"hasBigThumbsReelItems",void 0);
_.r([_.Y({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"shouldUseMixedListHeight",void 0);_.r([_.Y({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"shouldUseShortsListHeight",void 0);_.r([_.Y({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"gridVideoWidth",void 0);
_.r([_.Y({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"isSearchVodShelf",void 0);_.r([_.Y({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.Q("design:type",Object)],rL.prototype,"disableWheelScroll",void 0);_.r([_.Y({computed:"computeSizing(isSearch)"}),_.Q("design:type",Object)],rL.prototype,"sizing",void 0);
_.r([_.Y({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.Q("design:type",Object)],rL.prototype,"shortsLockupAspectRatio",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],rL.prototype,"dataChanged",null);
_.m(rL,"yt-horizontal-list-renderer",function(){if(nHt===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);nHt=L}L=nHt;return L},{mode:1});var cRV=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
cRV.prototype.subscribe=function(L,Z){var N=this.subscriptions.get(L);if(!N)return function(){};
N.add(Z);return function(){N.delete(Z)}};
cRV.prototype.unsubscribe=function(L,Z){(L=this.subscriptions.get(L))&&L.delete(Z)};
cRV.prototype.publish=function(L,Z){Z=Z===void 0?{}:Z;(L=this.subscriptions.get(L))&&L.forEach(function(N){N(Z)})};var nnN;var K7I=[10,12,14,16,18,20,24,28,32,36],fzO=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],QQ=function(){var L=_.e.apply(this,arguments)||this;L.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";L.hideOverflow=!1;L.useRoboto=!1;L.fontClass="";L.overflown=!1;L.actionMap={"yt-window-resized":"resize"};return L};
_.f(QQ,_.e);_.t=QQ.prototype;
_.t.attached=function(){var L=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();_.bN(this,function(){L.resize()});
if(!_.BV){var Z,N,S;(Z=document)==null||(N=Z.fonts)==null||(S=N.ready)==null||S.then(function(){L.resize()})}};
_.t.dataChanged=function(){this.resize()};
_.t.guideIsExpandedChanged=function(){this.resize()};
_.t.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 L=this.getMaxNumLines(),Z=this.getMinFont(),N=this.getMaxFont(),S=this.useRoboto?K7I:fzO;for(S=S.filter(function(T){return T<=N&&T>=Z});S.length>1;){var u=Math.floor(S.length/2);
this.updateFontSize(S[u]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=L)S=S.slice(u,S.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>L)S=S.slice(0,u);else break}this.updateFontSize(S[S.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(L)}};
_.t.handleOverflow=function(L){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>L&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",L.toString()))};
_.t.updateFontSize=function(L){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+L;this.textNode.classList.add(this.fontClass)};
_.t.getMaxFont=function(){var L=this.useRoboto?K7I:fzO;L=L[L.length-1];return this.maxFontSize&&this.maxFontSize<=L?this.maxFontSize:L};
_.t.getMinFont=function(){var L=(this.useRoboto?K7I:fzO)[0];return this.minFontSize&&this.minFontSize>=L?this.minFontSize:L};
_.t.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.t.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.t.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.jM(this.text).split("\n").length-1:Infinity};
_.t.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Jh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
QQ.prototype.guideIsExpandedChanged=QQ.prototype.guideIsExpandedChanged;QQ.prototype.dataChanged=QQ.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],QQ.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],QQ.prototype,"actionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],QQ.prototype,"text",void 0);
_.r([_.Y(),_.Q("design:type",String)],QQ.prototype,"fontFamily",void 0);_.r([_.Y(),_.Q("design:type",Number)],QQ.prototype,"maxWidth",void 0);_.r([_.Y(),_.Q("design:type",Number)],QQ.prototype,"maxHeight",void 0);_.r([_.Y(),_.Q("design:type",Number)],QQ.prototype,"maxFontSize",void 0);_.r([_.Y(),_.Q("design:type",Number)],QQ.prototype,"minFontSize",void 0);_.r([_.Y(),_.Q("design:type",Number)],QQ.prototype,"maxLines",void 0);_.r([_.Y(),_.Q("design:type",Object)],QQ.prototype,"hideOverflow",void 0);
_.r([_.Y({selector:_.UNw}),_.Q("design:type",Boolean)],QQ.prototype,"guideIsExpanded",void 0);_.r([_.TX("#container"),_.Q("design:type",HTMLElement)],QQ.prototype,"containerNode",void 0);_.r([_.TX("#text"),_.Q("design:type",HTMLElement)],QQ.prototype,"textNode",void 0);_.r([_.Vr("text"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],QQ.prototype,"dataChanged",null);
_.r([_.Vr("guideIsExpanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],QQ.prototype,"guideIsExpandedChanged",null);_.r([_.P({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],QQ);
_.m(QQ,"yt-dynamic-sizing-formatted-string",function(){if(nnN!==void 0)return nnN;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return nnN=L},{mode:1});var k8I;_.yRN=function(L){_.NL.call(this,L)};
_.f(_.yRN,_.NL);var wgQ=function(L){_.NL.call(this,L)};
_.f(wgQ,_.yRN);var Xo=function(){return _.e.apply(this,arguments)||this};
_.f(Xo,_.e);Xo.prototype.onTapSuspendedChannel=function(){var L;if((L=this.data)!=null&&L.serviceEndpoint){var Z,N;(L=(N=_.n((Z=this.data)==null?void 0:Z.serviceEndpoint,_.Lo))==null?void 0:N.url)?_.ke(L,void 0,void 0,window.top):(Z=new wgQ("Did not handle suspended account tap. No appealUrl."),_.CA(Z))}else Z=new wgQ("Did not handle suspended account tap. No serviceEndpoint."),_.CA(Z)};
Xo.prototype.onTap=function(){var L=this,Z=_.tC(),N,S=(N=_.Si(Z,{veType:7116}))!=null?N:void 0;_.ew(Z,{visualElement:S});_.KX();this.saveRoleText();var u;if((u=this.data)==null?0:u.youtubeSuspended)this.onTapSuspendedChannel();else{var T=!1,W,V;(Z=(V=_.n((W=this.data)==null?void 0:W.serviceEndpoint,_.kLO))==null?void 0:V.supportedTokens)&&Z.forEach(function(M){if(M.accountSigninToken)if(T=!0,L.onAccountItemTap)L.onAccountItemTap(M.accountSigninToken.signinUrl);else _.ke(M.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!T){if(W=this.get("serviceEndpoint",this.data))T=!0,this.ytComponentBehavior.resolveCommand(W);T||_.rY(new wgQ("Did not handle account switch tap. No token."))}}};
Xo.prototype.saveRoleText=function(){if(this.data){var L=this.data,Z=L.channelDelegationRole;if(Z){var N,S=(N=_.n(L==null?void 0:L.serviceEndpoint,_.kLO))==null?void 0:N.supportedTokens;if(!S){var u,T,W,V;S=(u=_.n(L==null?void 0:L.serviceEndpoint,_.aw))==null?void 0:(T=u.popup)==null?void 0:(W=T.confirmDialogRenderer)==null?void 0:(V=W.confirmButton)==null?void 0:V.buttonRenderer;var M;S=(M=_.n(S==null?void 0:S.command,_.q2))==null?void 0:M.commands;if(!S)return;var G;S=(G=_.n(S[1],_.kLO))==null?
void 0:G.supportedTokens}if(S){M=void 0;G=_.O(S);for(S=G.next();!S.done;S=G.next())if(S=S.value,S.datasyncIdToken){M=S.datasyncIdToken.datasyncIdToken;break}if(M){var D;a:{if(_.rI0()&&(G=_.Jqs(M+"::pom"))){G=new UO(G);break a}G=void 0}(D=G)==null||D.set("role_text",Z);if((u3H?u3H:window.location).href.indexOf("studio")!==-1&&(D=Q9B())){G=D.src?(new URL(D.src)).origin:"*";var l;(l=D.contentWindow)==null||l.postMessage({action:"save_pom_role",datasyncId:M,roleText:Z},G)}}}}}};
_.gd.Object.defineProperties(Xo.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=(L=this.data)==null?void 0:(Z=L.accountPhoto)==null?void 0:Z.thumbnails;return N&&N.length>0&&(N[0].height===36||N[0].height===48)?N[0].height:40}}});
Xo.prototype.onTap=Xo.prototype.onTap;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Xo.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Xo.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!1}),_.Q("design:type",Function)],Xo.prototype,"onAccountItemTap",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Xo.prototype,"enableRingForActiveAccount",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Xo.prototype,"thumbnailSize",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xo.prototype,"onTap",null);_.r([_.P({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Xo);
_.m(Xo,"ytd-account-item-renderer",function(){if(k8I!==void 0)return k8I;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return k8I=L},{mode:1});var UBV;var AI=function(){return _.e.apply(this,arguments)||this};
_.f(AI,_.e);AI.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.GR().resolve(_.$s).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],AI.prototype,"data",void 0);_.r([_.P({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],AI);
_.m(AI,"ytd-identity-chip-renderer",function(){if(UBV!==void 0)return UBV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return UBV=L},{mode:1});var Y7I;var e7V;var IzV;var dBh;var HA=function(){var L=_.e.apply(this,arguments)||this;L.richItemMinWidth=_.lQ("wn_grid_min_item_width",310);L.isShorts=!1;L.isWatchNext=!1;L.isExploreHub=!1;return L};
_.f(HA,_.e);_.gd.Object.defineProperties(HA.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var L=[],Z=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Ld(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var N;if(((N=this.data)==null?0:N.rows)&&Z)for(Z*=this.data.rows,N=0;N<Z;N++)L.push({});return L}}});
_.r([_.y(_.CD),_.Q("design:type",Object)],HA.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],HA.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.oi,value:3}),_.Q("design:type",Number)],HA.prototype,"itemsPerRow",void 0);_.r([_.Y({selector:_.wSf,value:6}),_.Q("design:type",Number)],HA.prototype,"slimItemsPerRow",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Number)],HA.prototype,"richItemMinWidth",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.vv}),_.Q("design:type",Boolean)],HA.prototype,"miniMode",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],HA.prototype,"isShorts",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],HA.prototype,"isWatchNext",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],HA.prototype,"isExploreHub",void 0);
_.r([_.w("isExploreHub"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Object),_.Q("design:paramtypes",[])],HA.prototype,"shimmerAnimation",null);_.r([_.w("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],HA.prototype,"cardItems",null);_.r([_.P({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],HA);
_.azO=_.rD()(HA,"ytd-ghost-grid-renderer",function(){if(dBh===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);dBh=L}L=dBh;return L},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.CY(_.p(function(L){var Z=_.Ek(L,{numberOfComments:3}).numberOfComments,N=_.Ek(L,{isInitialLoad:!1}).isInitialLoad,S=_.Ek(L,{engagementPanel:!1}).engagementPanel,u=function(){return Math.min(Number(Z==null?void 0:Z())||20,20)};
return _.g("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.g(_.F,{cond:function(){return!(S==null?0:S())&&(N==null?void 0:N())},
then:function(){return _.g("div",{class:"ytGhostCommentsComments"},_.g("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.g("div",{class:_.qg("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.g("div",{class:_.qg("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.g("div",{class:"ytGhostCommentsGhostCard"},_.g("div",{class:"ytGhostCommentsAvatar"},_.g("div",{class:"ytGhostCommentsCircle"})),_.g("div",{class:"ytGhostCommentsComments"},_.g("div",{class:"ytGhostCommentsMeta"},
_.g("div",{class:_.qg("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.g("div",{class:_.qg("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.g("div",{class:"ytGhostCommentsComments"},_.g(_.ju,{each:function(){return Array((u==null?void 0:u())||3)}},function(){return _.g("div",{class:"ytGhostCommentsGhostCard"},_.g("div",{class:"ytGhostCommentsAvatar"},_.g("div",{class:"ytGhostCommentsCircle"})),_.g("div",{class:"ytGhostCommentsHost"},_.g("div",{class:"ytGhostCommentsMeta"},
_.g("div",{class:_.qg("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.g("div",{class:_.qg("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.g("div",{class:_.qg("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.g("div",{class:"ytGhostCommentsGhostLikeDislike"},_.g("div",{class:_.qg("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.g("div",{class:_.qg("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"ic"),"yt-ghost-comments",{props:{numberOfComments:_.LK,
isInitialLoad:_.LK,engagementPanel:_.LK},unsafeExternallySettableAttributes:new Set(["hidden"])});_.l4("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var BA=function(){var L=_.e.apply(this,arguments)||this;L.isOverridable=!1;L.spinnerActive=!1;L.showButton=!1;L.isCommentsSection=!1;L.engagementPanel=!0;L.isShortsGrid=!1;L.isShortsPage=!1;L.isWatchPage=!1;L.originalShowButton=!1;L.endOfList=!1;return L};
_.f(BA,_.e);_.t=BA.prototype;_.t.resetIntersectionObserver=function(){var L;(L=this.observer)==null||L.disconnect();this.observer=void 0};
_.t.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var L,Z;((L=this.data)==null?void 0:L.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((Z=this.data)==null?0:Z.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.t.initializeIntersectionObserver=function(){var L=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(Z){Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())N.value.isIntersecting&&(L.triggerContinuation(),L.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.t.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]]"}}}}}};
_.t.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var L;((L=this.data)==null?0:L.continuationEndpoint)&&(L=_.n(this.data.continuationEndpoint,_.k0))&&this.ytdReduxBehavior.dispatch(_.XK({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:L}}))};
_.t.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.t.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.t.onServiceRequestCompleted=function(L,Z){if(!_.c("kevlar_hide_spinner_on_empty_continuation_killswitch")){var N;(N=Z.actions)!=null&&N.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.t.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.t.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.t.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.t.numberOfGhostCommentsChanged=function(){var L=3;if(this.engagementPanel){var Z,N,S;L=Math.floor(((((Z=this.hostElement)==null?void 0:(N=Z.parentElement)==null?void 0:(S=N.parentElement)==null?void 0:S.scrollHeight)||108)-108)/108);L=this.isInitialLoad?Math.max(L,3):3}Z=[].concat(_.Pd(this.hostElement.querySelectorAll("yt-ghost-comments")));Z=_.O(Z);for(N=Z.next();!N.done;N=Z.next())N=N.value,N.numberOfComments=L,N.isInitialLoad=this.isInitialLoad,N.engagementPanel=this.engagementPanel};
_.t.detached=function(){this.resetIntersectionObserver()};
_.gd.Object.defineProperties(BA.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
BA.prototype.numberOfGhostCommentsChanged=BA.prototype.numberOfGhostCommentsChanged;BA.prototype.continuationTriggerOffsetChanged=BA.prototype.continuationTriggerOffsetChanged;BA.prototype.showButtonChanged=BA.prototype.showButtonChanged;BA.prototype.onYtServiceRequestCompletedForButtonRenderer=BA.prototype.onYtServiceRequestCompletedForButtonRenderer;BA.prototype.onServiceRequestCompleted=BA.prototype.onServiceRequestCompleted;BA.prototype.onYtServiceRequestSentForButtonRenderer=BA.prototype.onYtServiceRequestSentForButtonRenderer;
BA.prototype.observeData=BA.prototype.observeData;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],BA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],BA.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Ae.YtVisibilityBehavior),_.Q("design:type",Object)],BA.prototype,"ytVisibilityBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],BA.prototype,"ytComponentBehavior",void 0);
_.r([_.y(_.CD),_.Q("design:type",Object)],BA.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],BA.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],BA.prototype,"isOverridable",void 0);_.r([_.Y(),_.Q("design:type",Object)],BA.prototype,"spinnerActive",void 0);_.r([_.Y(),_.Q("design:type",Object)],BA.prototype,"showButton",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BA.prototype,"isCommentsSection",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BA.prototype,"engagementPanel",void 0);_.r([_.Y(),_.Q("design:type",Object)],BA.prototype,"isShortsGrid",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.IAw}),_.Q("design:type",Object)],BA.prototype,"isShortsPage",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.eut}),_.Q("design:type",Object)],BA.prototype,"isWatchPage",void 0);_.r([_.Y(),_.Q("design:type",Number)],BA.prototype,"continuationTriggerOffset",void 0);
_.r([_.Y(),_.Q("design:type",Object)],BA.prototype,"endOfList",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],BA.prototype,"isInitialLoad",void 0);_.r([_.TX("ytd-button-renderer"),_.Q("design:type",_.bo)],BA.prototype,"buttonRenderer",void 0);_.r([_.Y(),_.Q("design:type",Object)],BA.prototype,"buttonOverrides",void 0);
_.r([_.Y(),_.w("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],BA.prototype,"showGhostCardComments",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BA.prototype,"observeData",null);
_.r([_.SA("yt-service-request-sent-button-renderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BA.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],BA.prototype,"onServiceRequestCompleted",null);
_.r([_.SA("yt-service-request-completed-button-renderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BA.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.r([_.Vr("showButton"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BA.prototype,"showButtonChanged",null);
_.r([_.Vr("continuationTriggerOffset"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BA.prototype,"continuationTriggerOffsetChanged",null);_.r([_.iA("isInitialLoad","engagementPanel"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BA.prototype,"numberOfGhostCommentsChanged",null);_.r([_.P({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],BA);
_.m(BA,"ytd-continuation-item-renderer",function(){if(IzV!==void 0)return IzV;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return IzV=L},{mode:1});var h7L;var xg=function(){var L=_.e.apply(this,arguments)||this;L.downloadProgress=0;L.transferState="TRANSFER_STATE_UNKNOWN";L.downloadState="DOWNLOAD_STATE_UNKNOWN";L.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";L.offlineVideoPolicyExpirationTimestamp=0;L.downloadedVideoPlaybackPosition=0;return L};
_.f(xg,_.e);xg.prototype.dataChanged=function(){var L;this.videoData=_.n((L=this.data)==null?void 0:L.renderer,iDM);this.transferStateChanged()};
xg.prototype.downloadProgressChanged=function(){if(this.entityInfo){var L=Object.assign({},this.videoData),Z=Wjs(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),N=Z.publishedTimeText,S=Z.badges;L.shortViewCountText=Z.shortViewCountText;L.publishedTimeText=N;L.badges=S;this.set("videoData",L)}};
xg.prototype.transferStateChanged=function(){if(this.entityInfo){var L=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",Z=_.Wv(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!O9(this.entityInfo.policyEntity),N=Object.assign({},this.videoData),S=Wjs(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),u=S.publishedTimeText,T=S.badges;N.shortViewCountText=
S.shortViewCountText;N.publishedTimeText=u;N.badges=T;N.isDisabled=Z;N.isWatched=this.downloadedVideoPlaybackPosition>0;N.navigationEndpoint=Z?void 0:dUP(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var W;L&&((W=this.videoData)==null?0:W.videoId)&&!_.c("dl_resume_click_killswitch")&&(N.isDisabled=!1,N.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});N.thumbnailOverlays=tG1(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",N)}};
xg.prototype.transferStateChanged=xg.prototype.transferStateChanged;xg.prototype.downloadProgressChanged=xg.prototype.downloadProgressChanged;xg.prototype.dataChanged=xg.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],xg.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],xg.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Object)],xg.prototype,"videoData",void 0);_.r([_.Y({selector:kQ,selectorArgs:["videoData.videoId"]}),_.Q("design:type",Object)],xg.prototype,"downloadProgress",void 0);_.r([_.Y(),_.Q("design:type",Number)],xg.prototype,"relativeDateReference",void 0);_.r([_.Y({selector:_.Kk,selectorArgs:["videoData.videoId"]}),_.Q("design:type",Object)],xg.prototype,"transferState",void 0);
_.r([_.Y({selector:qjw,selectorArgs:["videoData.videoId"]}),_.Q("design:type",Object)],xg.prototype,"downloadState",void 0);_.r([_.Y({selector:j3P,selectorArgs:["videoData.videoId"]}),_.Q("design:type",Object)],xg.prototype,"offlinePolicyAction",void 0);_.r([_.Y({selector:EXw,selectorArgs:["videoData.videoId"]}),_.Q("design:type",Object)],xg.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.r([_.Y({selector:yE,selectorArgs:["videoData.videoId"]}),_.Q("design:type",Object)],xg.prototype,"downloadedVideoPlaybackPosition",void 0);_.r([_.Y({selector:pSh,selectorArgs:["videoData.videoId"]}),_.Q("design:type",Object)],xg.prototype,"entityInfo",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],xg.prototype,"isDownloading",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xg.prototype,"dataChanged",null);
_.r([_.Vr("downloadProgress"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xg.prototype,"downloadProgressChanged",null);_.r([_.Vr("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xg.prototype,"transferStateChanged",null);
_.r([_.P({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],xg);
_.m(xg,"ytd-downloaded-video-grid-video-renderer",function(){if(h7L!==void 0)return h7L;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return h7L=L},{mode:_.Qr("kevlar_poly_si_batch_j025")?1:2});var s$L;var q1=function(){};
q1.prototype.resolve=function(L,Z){var N=this;return _.b(function(S){return S.yield(N.resolveCommand(L,Z),0)})};var j$t,LJ;j$t=vmx(function(L){return L.targetId},{shouldPersist:!1});
LJ=j$t.updateData;_.EnL=j$t.useUpdatableData;var Pbt,pgO;Pbt=vmx(function(L){return L.targetId});
pgO=Pbt.updateData;_.z7t=Pbt.useUpdatableData;var mBV=nqA.bind(null,LJ),JRN=nqA.bind(null,pgO);(function(L,Z,N){var S=_.n(N==null?void 0:N.updatedRenderer,_.dNh);return S?L({targetId:Z},function(){return S}):!1}).bind(null,LJ);var Zp=function(){};
_.f(Zp,q1);Zp.prototype.resolveCommand=function(L){var Z;return _.b(function(N){Z=_.n(L,_.UAw);if(!Z)return N.return();mBV(Z.targetId,Z);_.w7(N)})};var NP=function(){var L=_.Ok.apply(this,arguments)||this;L.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return L};
_.f(NP,_.Ok);_.t=NP.prototype;_.t.configureContinuationPathMap=function(){return{}};
_.t.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.t.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.t.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.t.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.t.handleAppendContinuationItemsAction=function(L){var Z=_.n(L,_.wLt);if(this.data&&this.data.targetId&&Z&&this.continuationPathMap&&Z.targetId===this.data.targetId){var N=tCw(L),S=N&&this.continuationPathMap[N];if(S&&N)if(L=this.get(S,this.data)){a:{for(N=0;N<L.length;N++){var u=L[N],T=void 0,W=!!_.n((T=_.n(u,FPl))==null?void 0:T.content,_.Lys);if(_.n(u,_.Ei)||W)break a}N=L.length}S="data."+S;Z.continuationItems?N===L.length-1?(this.pop(S),this.push.apply(this,[S].concat(_.Pd(Z.continuationItems)))):
N===L.length?this.push.apply(this,[S].concat(_.Pd(Z.continuationItems))):this.splice.apply(this,[S,N,1].concat(_.Pd(Z.continuationItems))):this.splice(S,N,1);(_.c("web_enable_voting_animation")||_.c("enable_music_web_cairo_voting_animation"))&&_.QT(this.hostElement,"yt-append-continuation-items-action-finished");_.QT(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Q7(new _.sr("append continuation items does not exist",N));else _.Q7(new _.sr("append continuation path does not exist",
N))}};
_.t.handleReloadContinuationItemsCommand=function(L){var Z=_.n(L,_.UAw);if(this.data&&Z){if(_.c("web_client_explore_hub")||_.c("web_explore_hub_on_hover")||_.c("web_client_explore_hub_on_hover"))try{_.GR().resolve(Zp).resolveCommand(L)}catch(T){}if(this.data.targetId&&this.continuationPathMap&&Z.targetId===this.data.targetId&&(!_.c("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||Z.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var N,S=(N=Z.slot)==null?void 0:
N.replace("RELOAD_CONTINUATION_SLOT_","");N=(L=tCw(L)+"-"+(S==null?void 0:S.toLowerCase()))&&this.continuationPathMap[L];if(!N||!L||!S)_.Q7(new _.sr("reload continuation path does not exist",L));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(Z)){if(Z.replaceWithFirstItem){var u;this.set("data."+N,((u=Z.continuationItems)==null?0:u.length)?Z.continuationItems[0]:{})}else this.set("data."+N,Z.continuationItems?Z.continuationItems:[]);this.continuationIsReloading=
!1;_.QT(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.t.handleShowReloadUiCommand=function(L){L=_.n(L,Jpt);var Z;((Z=this.data)==null?0:Z.targetId)&&(L==null?0:L.targetId)&&L.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
NP.prototype.observeData=NP.prototype.observeData;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],NP.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],NP.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],NP.prototype,"data",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],NP.prototype,"continuationIsReloading",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],NP.prototype,"observeData",null);_.r([_.Wh()],NP);_.Sq=[_.rH.YtComponentBehavior,_.nK.YtActionHandlerBehavior,NP.prototype];_.i_={};_.i_.YtNextContinuationBehavior=[_.uM.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",_.Nd(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Nd(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(L,Z){L.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,Z,{}):(L={locationRetrieved:function(N){this.makeNextContinuationRequest_(N,Z,{})}.bind(this)},_.QT(this.hostElement,"yt-retrieve-location",L))},
makeNextContinuationRequest_:function(L,Z,N){_.Kq("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();L=Z(L);var S;this.canUseContextualNetworkManager_()&&(S=this.getNetworkManager());S||(S=_.GR().resolve(_.VJ));Z=_.IV.instance;if(_.X7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&Z){S=_.pk([L.startsWith("/")?L.substr(1):L]);var u,T;N=_.Za(Z,{},S,N==null?void 0:(u=N.context)==null?void 0:(T=u.clickTracking)==null?void 0:T.clickTrackingParams).then(function(W){return{response:W}})}else N=
this.nextContinuation.usePost?S.postData(L,N):S.fetchData(L);
N.then(this.updateNextContinuationData_.bind(this,L));this.pendingContinuationRequest_=N;this.startListeningForNavigate_()},
updateNextContinuationData_:function(L,Z){var N=this;_.Kq("ncl");this.pendingContinuationRequest_=void 0;if(Z){var S={};this.nextContinuation&&(S=this.nextContinuation);if(Z.response&&Z.response.continuationContents&&Z.response.continuationContents[S.continuationType]){L=Z.response.continuationContents[S.continuationType];var u=S.header||"data.header",T=L[S.responseHeaderKey||"header"];T&&this.set(u,T);u=S.contentsArray||"data.contents";T=this.getContents_(L,S.responseContentsKey||"contents")||[];
this.pathExists_(u)?(T.unshift(u),this.push.apply(this,T)):this.set(u,T);T&&(K9P(_.tC(),Z.response,this.hostElement,function(W){_.XJ(N.hostElement,"yt-store-grafted-ve-action",[W])}),_.QT(this.hostElement,"yt-next-continuation-data-updated",{continuationData:Z,
page:this,contentsArray:u}));this.set(S.continuationsArray||"data.continuations",L[S.responseContinuationsKey||"continuations"]||[])}else Z.reload?_.Q7(new _.sr("Reloading from continuation is unsupported")):Z.responseContext&&Z.responseContext.errors||(delete Z.xsrf_token,delete Z.timing,delete Z.endpoint,delete Z.csn,Z.responseContext&&delete Z.responseContext.serviceTrackingParams,u={request:_.TR(L,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(Z).sort()},Z.response&&(u.responseContentKeys=
Object.keys(Z.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(u.continuationType=this.nextContinuation.continuationType.substr(0,256)),Z=new _.sr("Malformed continuation",u),L.indexOf("/comment_service_ajax")==0?_.Q7(Z):_.CA(Z)),this.set(S.continuationsArray||"data.continuations",[])}else _.rY(new _.sr("Missing continuation response",L))},
getContents_:function(L,Z){Z=Z.split(".");return _.Py.getValueByKeys(L,Z)},
pathExists_:function(L){var Z=this;L=L.toString().split(".");for(var N=0;N<L.length;N++)if(Z=Z[L[N]],Z===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var Cb0;var rRs;var u_=function(){var L=_.e.apply(this,arguments)||this;L.triggered_=!1;return L};
_.f(u_,_.e);_.t=u_.prototype;_.t.attached=function(){this.maybeTriggerAutoload()};
_.t.detached=function(){this.hasBeenTriggered_=!1};
_.t.onPrescanVisible=function(){this.onShow()};
_.t.onShow=function(){this.showButton||this.trigger()};
_.t.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.QT(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.t.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.t.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.t.computeLabel_=function(L,Z){return L===void 0?null:L.label||!Z?L.label:this.showMoreText_};
_.t.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.t.getContinuationUrl=function(L){var Z={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(Z.itct=this.data.clickTrackingParams);return _.t3(L,Z)};
_.t.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
u_.prototype.showButtonChanged_=u_.prototype.showButtonChanged_;u_.prototype.observeData_=u_.prototype.observeData_;_.r([_.y(_.Ae.YtVisibilityBehavior),_.Q("design:type",Object)],u_.prototype,"ytVisibilityBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],u_.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],u_.prototype,"showButton",void 0);
_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],u_.prototype,"showIcon",void 0);_.r([_.Y({computed:"computeLabel_(data, showButton)"}),_.Q("design:type",Object)],u_.prototype,"label",void 0);_.r([_.Y({value:_.s9(_.iB("SHOW_MORE",void 0,"Show More"))}),_.Q("design:type",Object)],u_.prototype,"showMoreText_",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],u_.prototype,"spinnerActive_",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],u_.prototype,"hasBeenTriggered_",void 0);
_.r([_.Y({value:void 0}),_.Q("design:type",String)],u_.prototype,"observeVisibleOption",void 0);_.r([_.Y({value:void 0}),_.Q("design:type",String)],u_.prototype,"observeHiddenOption",void 0);_.r([_.Y({value:"observe_once"}),_.Q("design:type",Object)],u_.prototype,"observePrescanOption",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],u_.prototype,"observeData_",null);
_.r([_.iA("showButton"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],u_.prototype,"showButtonChanged_",null);_.r([_.ch({is:"yt-next-continuation",disableElementRegistration:!0})],u_);
_.m(u_,"yt-next-continuation",function(){if(rRs===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Cb0===void 0&&(Cb0=document.createElement("template"));var S=Cb0;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);rRs=L}L=rRs;return L},{mode:2});var Q$L;var Xgh;var Te=function(){return _.e.apply(this,arguments)||this};
_.f(Te,_.e);Te.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Te.prototype,"data",void 0);_.r([_.ch({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],Te);
_.m(Te,"yt-music-pass-small-feature-info-renderer",function(){if(Xgh===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Q$L===void 0&&(Q$L=document.createElement("template"));var S=Q$L;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Xgh=L}L=Xgh;return L},{mode:2});_.l4("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var tk=function(){var L=_.e.apply(this,arguments)||this;L.isCollapsible=!1;L.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return L};
_.f(tk,_.e);_.t=tk.prototype;_.t.computeIsCollapsible=function(L){return!!(((L==null?0:L.showMoreText)||(L==null?0:L.visibleRowCount))&&(L==null?0:L.isCollapsible))};
_.t.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"}}}};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.t.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.t.onIronResize=function(){var L=this;_.YD(this,"updateGridInitItems",function(){L.maybeUpdateInitialItemsDisplayed()})};
_.t.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var L=this.getVisibleWidth();L!==0&&(L=Math.floor(L/214)*(this.data.visibleRowCount||2),L!==this.initialCount&&(this.initialCount=L,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.t.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.t.computeExpandVisible=function(L,Z,N,S){return L&&Z&&N&&!!S&&!!S.showMoreText};
_.t.computeShowMoreButton=function(L){return{text:L,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.t.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.t.initCollapsed=function(){var L=this;this.ytLazyListBehavior.canShowMore=!1;var Z;(this.collapsed=!((Z=this.data)==null||!Z.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.bN(this,function(){_.Ad(L.hostElement,"yt-refit-popups-action")})};
_.t.fillRestIfNotCollapsible=function(){var L=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!L||this.ytLazyListBehavior.fillRemainingListItems()};
_.t.computeViewAllHidden=function(L,Z){return L||!Z.viewAllEndpoint};
tk.prototype.fillRestIfNotCollapsible=tk.prototype.fillRestIfNotCollapsible;tk.prototype.initCollapsed=tk.prototype.initCollapsed;tk.prototype.onIronResize=tk.prototype.onIronResize;tk.prototype.persistentGuideChanged=tk.prototype.persistentGuideChanged;_.r([_.y(_.Eb),_.Q("design:type",Object)],tk.prototype,"ironResizableBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],tk.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.bz.YtLazyListBehavior),_.Q("design:type",Object)],tk.prototype,"ytLazyListBehavior",void 0);_.r([_.y(_.i_.YtNextContinuationBehavior),_.Q("design:type",Object)],tk.prototype,"ytNextContinuationBehavior",void 0);_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],tk.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.y(_.Sq),_.Q("design:type",Object)],tk.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],tk.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],tk.prototype,"collapsed",void 0);_.r([_.Y(),_.Q("design:type",Number)],tk.prototype,"initialCount",void 0);_.r([_.Y({computed:"computeShowMoreButton(data.showMoreText)"}),_.Q("design:type",Object)],tk.prototype,"showMoreButton",void 0);
_.r([_.Y({computed:"computeIsCollapsible(data)"}),_.Q("design:type",Object)],tk.prototype,"isCollapsible",void 0);_.r([_.TX("#items"),_.Q("design:type",HTMLElement)],tk.prototype,"items",void 0);_.r([_.Vr("guidePersistentAndVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tk.prototype,"persistentGuideChanged",null);_.r([_.SA("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tk.prototype,"onIronResize",null);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tk.prototype,"initCollapsed",null);_.r([_.Vr("canShowMore"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tk.prototype,"fillRestIfNotCollapsible",null);_.r([_.P({is:"ytd-grid-renderer",disableElementRegistration:!0})],tk);
_.m(tk,"ytd-grid-renderer",function(){if(s$L!==void 0)return s$L;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return s$L=L},{mode:_.Qr("kevlar_poly_si_batch_j025")?1:2});var OL=function(){return _.e.apply(this,arguments)||this};
_.f(OL,_.e);
OL.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"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],OL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],OL.prototype,"data",void 0);_.r([_.P({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],OL);
_.m(OL,"ytd-carousel-ad-renderer",function(){if(e7V!==void 0)return e7V;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return e7V=L},{mode:1});var ARQ;var W7=function(){return _.e.apply(this,arguments)||this};
_.f(W7,_.e);_.t=W7.prototype;_.t.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"}}}};
_.t.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,W7.JSC$15493_CLICK_LOCATION_ID_MAP))};
_.t.onSitelinkTap=function(L){L.stopPropagation();var Z,N,S=L==null?void 0:(Z=L.model)==null?void 0:(N=Z.item)==null?void 0:N.onTap;S&&this.ytSparklesClickLocationBehavior.handleClick(S,L,!1)};
_.t.onTap=function(L){var Z=this.data&&this.data.content&&this.data.content.navigationEndpoint;Z&&this.ytSparklesClickLocationBehavior.handleClick(Z,L,!1)};
_.t.sendImpression=function(){if(this.data&&this.data.content)for(var L=_.O(this.data.content.impressionEndpoints||[]),Z=L.next();!Z.done;Z=L.next()){Z=_.O(Z.value.loggingUrls||[]);for(var N=Z.next();!N.done;N=Z.next())N=N.value,N.baseUrl&&S2(N.baseUrl,N.attributionSrcMode)}};
W7.prototype.onTap=W7.prototype.onTap;W7.prototype.dataChanged=W7.prototype.dataChanged;W7.JSC$15493_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"]]);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.VK.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],W7.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],W7.prototype,"data",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],W7.prototype,"dataChanged",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],W7.prototype,"onTap",null);_.r([_.P({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],W7);
_.m(W7,"ytd-promoted-sparkles-text-search-renderer",function(){if(ARQ!==void 0)return ARQ;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return ARQ=L},{mode:1});var HiY;var VR=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-mute-ad-action":"handleMuteAd"};return L};
_.f(VR,_.e);_.t=VR.prototype;_.t.created=function(){this.activeView=new $u(this.hostElement)};
_.t.configureRendererStamper=function(){return{"data.menu":{id:_.c("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]]"}}}}}};
_.t.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.t.computeHasAdBadge=function(L){return!(L==null||!L.adBadge)};
_.t.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",VR.JSC$15502_DEFAULT_AD_BADGE_RENDERER),_.Az(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&De(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,VR.JSC$15502_CLICK_LOCATION_ID_MAP))};
_.t.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var L;(((L=this.data)==null?void 0:L.impressionCommands)||[]).forEach(function(Z){Z=_.O(Z.loggingUrls||[]);for(var N=Z.next();!N.done;N=Z.next())N=N.value,N.baseUrl&&S2(N.baseUrl,N.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.t.onTap=function(L){var Z,N=(Z=this.data)==null?void 0:Z.navigationEndpoint,S;(Z=(S=this.data)==null?void 0:S.thumbnailNavigationEndpoint)&&_.z0(_.sx(L),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(Z,L,!1):N&&this.ytSparklesClickLocationBehavior.handleClick(N,L,!1)};
_.t.handleMuteAd=function(){this.collapsed=!0};
_.t.attached=function(){var L=this;_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lz(L.activeView)})};
_.t.detached=function(){_.c("stop_av_measurement_on_detach")&&lz(this.activeView)};
_.gd.Object.defineProperties(VR.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var L;return!(((L=this.data)==null?void 0:L.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var L;return!(((L=this.data)==null?void 0:L.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.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}}});
VR.prototype.dataChanged=VR.prototype.dataChanged;
VR.JSC$15502_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"]]);
VR.JSC$15502_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.iB("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],VR.prototype,"actionHandlerBehavior",void 0);
_.r([_.y(_.VK.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],VR.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],VR.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],VR.prototype,"collapsed",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.Q("design:type",Boolean)],VR.prototype,"useBiggerThumbs",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.vW("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],VR.prototype,"biggerThumbsStyle",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.c("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.Q("design:type",Boolean)],VR.prototype,"fixAlignmentSmallScreens",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs_square")}}),
_.Q("design:type",Boolean)],VR.prototype,"useBiggerThumbsSquare",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data.mediaHoverOverlay"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],VR.prototype,"hideHoverOverlay",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.promotedSparklesWebStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],VR.prototype,"webSearchLayout",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],VR.prototype,"webSearchLayoutLandscape",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],VR.prototype,"webSearchLayoutSquare",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data.promotedSparklesWebStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],VR.prototype,"sparklesCtaNoBackground",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.actionButton"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],VR.prototype,"hideActionButton",null);_.r([_.Y({computed:"computeButtonOverride(uiUpdate)"}),_.Q("design:type",Object)],VR.prototype,"buttonOverride",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.Q("design:type",Boolean)],VR.prototype,"hasNewAdBadge",void 0);_.r([_.w("data.promotedSparklesWebStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],VR.prototype,"useRoundedBadge",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VR.prototype,"dataChanged",null);_.r([_.P({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],VR);
_.m(VR,"ytd-promoted-sparkles-web-renderer",function(){if(HiY!==void 0)return HiY;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return HiY=L},{mode:1});var BT0;var b_=function(){var L=_.e.apply(this,arguments)||this;L.isInlinePreviewTriggered=!1;L.enableMonoStyle=_.c("enable_default_mono_cta_migration_web_client");return L};
_.f(b_,_.e);_.t=b_.prototype;_.t.created=function(){this.activeView=new $u(this.hostElement)};
_.t.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]]"}}}}}};
_.t.computeShowCta=function(L){return!(L==null||!L.ctaRenderer)};
_.t.onCtaClick=function(){var L,Z,N,S=(L=this.data)==null?void 0:(Z=L.ctaRenderer)==null?void 0:(N=Z.buttonRenderer)==null?void 0:N.command;S&&this.ytComponentBehavior.resolveCommand(S)};
_.t.onWatchButtonClick=function(){var L,Z,N,S=(L=this.data)==null?void 0:(Z=L.watchButtonRenderer)==null?void 0:(N=Z.buttonRenderer)==null?void 0:N.command;S&&this.ytComponentBehavior.resolveCommand(S)};
_.t.onTap=function(){};
_.t.dataChanged=function(){if(this.data){var L;_.c("enable_inline_muted_playback_on_web_search")&&((L=this.data)==null?0:L.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",b_.JSC$15506_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&De(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",b_.JSC$15506_DEFAULT_CLICK_LOCATION_BEHAVIOR,b_.JSC$15506_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(L=this.thumbnail.getElementsByTagName("a"),L.length>0&&(L=L.namedItem("thumbnail"))&&L.removeAttribute("href"));var Z;if(((Z=this.data)==null?0:Z.forceImpAutoplay)&&_.c("enable_force_imp_autoplay_on_desktop_search")){var N;(N=this.JSC$15507_inlinePreviewHoverListener)==null||WvP(N)}}};
_.t.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var L=_.O(this.data.impressionUrls),Z=L.next();!Z.done;Z=L.next())Z=Z.value,CAB(Z,Q_0(Z));this.data.impressionsFired=!0}};
_.t.maybeComputeHref=function(){return null};
_.t.computeIsShortDR=function(L){return!(L==null||!L.watchButtonRenderer)&&!(L==null||!L.ctaRenderer)&&!!this.enableShortDR};
_.t.computeIsNewUiOrShortDr=function(L){return!!this.enableUiUpdate||this.computeIsShortDR(L)};
_.t.computeIsNewUiAndNotShortDr=function(L){return!!this.enableUiUpdate&&!this.computeIsShortDR(L)};
_.t.computeHideAvatar=function(L){return!((L==null?0:L.channelThumbnail)&&this.computeIsNewUiOrShortDr(L))};
_.t.onClick=function(L){var Z,N=(Z=this.data)==null?void 0:Z.navigationEndpoint;if(this.enableShortDR&&N&&(_.n(N,_.so)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(N,L,!!_.n(N,_.so)),L.stopPropagation();else if(N&&_.n(N,_.so))this.ytSparklesClickLocationBehavior.handleClick(N,L,!0),L.stopPropagation();else if(N){var S,u;((S=this.data)==null?0:S.navigationEndpoint)&&((u=this.data)==null?0:u.adPlaybackContextParams)&&(Z=this.data.navigationEndpoint,L=this.data.adPlaybackContextParams,
Z.commandMetadata&&_.n(Z.commandMetadata,_.Nj)&&_.n(Z.commandMetadata,_.Nj).url&&(Z=_.uQ(_.n(Z.commandMetadata,_.Nj).url).adurl)&&_.QHw(Z)&&_.pv(_.e9(Z),{encoded_ad_playback_context:L}));this.ytComponentBehavior.resolveCommand(N)}};
_.t.computeButtonOverride=function(L){if(this.computeIsNewUiOrShortDr(L))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.t.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.t.onThumbnailContainerClick=function(L){this.onClick(L)};
_.t.computeThumbnailWidth=function(L,Z){return L?Z==="MASSIVE"?600:Z==="BIG"?500:Z==="MEDIUM"?450:420:360};
_.t.attached=function(){var L=this,Z;_.c("enable_inline_muted_playback_on_web_search")&&((Z=this.data)==null?0:Z.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lz(L.activeView)})};
_.t.detached=function(){var L;_.c("enable_inline_muted_playback_on_web_search")&&((L=this.data)==null?0:L.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.c("stop_av_measurement_on_detach")&&lz(this.activeView)};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15507_inlinePreviewHoverListener=Kl({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:VO5})};
_.t.clearInlinePreviewHoverListeners=function(){var L;(L=this.JSC$15507_inlinePreviewHoverListener)==null||jy(L)};
b_.prototype.dataChanged=b_.prototype.dataChanged;b_.prototype.onTap=b_.prototype.onTap;b_.JSC$15506_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.iB("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};b_.JSC$15506_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
b_.JSC$15506_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"}];_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],b_.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],b_.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.VK.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],b_.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.TX("#main-container"),_.Q("design:type",HTMLElement)],b_.prototype,"mainContainer",void 0);
_.r([_.Y(),_.Q("design:type",Object)],b_.prototype,"isInlinePreviewTriggered",void 0);_.r([_.Y(),_.Q("design:type",Object)],b_.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.Q("design:type",Boolean)],b_.prototype,"useBiggerThumbs",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.c("enable_video_display_compact_button_group_for_desktop_search")}}),
_.Q("design:type",Boolean)],b_.prototype,"enableShortDR",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.c("enable_vac_ui_update_for_desktop_search")}}),
_.Q("design:type",Boolean)],b_.prototype,"enableUiUpdate",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.vW("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],b_.prototype,"biggerThumbsStyle",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.Q("design:type",Boolean)],b_.prototype,"showCta",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.Q("design:type",Boolean)],b_.prototype,"isShortDr",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.Q("design:type",Boolean)],b_.prototype,"isShortDrOrNewUi",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.Q("design:type",Boolean)],b_.prototype,"isNewUiAndNotShortDr",void 0);_.r([_.Y({computed:"computeButtonOverride(data)"}),_.Q("design:type",Object)],b_.prototype,"buttonOverride",void 0);_.r([_.Y({computed:"computeSecondaryButtonOverride(data)"}),_.Q("design:type",Object)],b_.prototype,"secondaryButtonOverride",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],b_.prototype,"enableMonoStyle",void 0);
_.r([_.TX("ytd-thumbnail"),_.Q("design:type",HTMLElement)],b_.prototype,"thumbnail",void 0);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],b_.prototype,"onTap",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],b_.prototype,"dataChanged",null);_.r([_.P({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],b_);
_.m(b_,"ytd-promoted-video-renderer",function(){if(BT0!==void 0)return BT0;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return BT0=L},{mode:1});var xBh;var MP=function(){var L=_.e.apply(this,arguments)||this;L.useRoundedBadge=!0;L.sitelinkIds=[];return L};
_.f(MP,_.e);_.t=MP.prototype;
_.t.configureRendererStamper=function(){return{"data.menu":{id:_.c("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]]"}}}}}};
_.t.dataChanged=function(){var L;(L=this.data)!=null&&L.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,MP.JSC$15512_CLICK_LOCATION_ID_MAP)};
_.t.onTap=function(L){var Z,N=(Z=this.data)==null?void 0:Z.navigationCommand;N&&!_.z0(_.sx(L),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(N,L,!1)};
_.t.onSitelinkTap=function(L){var Z,N,S=L==null?void 0:(Z=L.model)==null?void 0:(N=Z.item)==null?void 0:N.onTap;S&&this.ytSparklesClickLocationBehavior.handleClick(S,L,!1)};
_.t.configureSitelinkClickTargets=function(){var L=this,Z,N,S=(Z=this.data)==null?void 0:(N=Z.clickLocationTargets)==null?void 0:N.find(function(u){return u.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
S&&_.QJ(this.hostElement).querySelectorAll(".sitelink").forEach(function(u){_.Az(u,"yt-simple-endpoint",!0);L.sitelinkIds.push(u.id);var T,W;(T=L.ytSparklesClickLocationBehavior)==null||(W=T.clickTargetMap)==null||W.set(u.id,S)})};
_.t.sendImpression=function(){var L,Z,N=((L=this.data)==null?void 0:(Z=L.impressionCommand)==null?void 0:Z.loggingUrls)||[];L=_.O(N);for(Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.baseUrl&&S2(Z.baseUrl,Z.attributionSrcMode)};
_.t.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.gd.Object.defineProperties(MP.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
MP.prototype.onTap=MP.prototype.onTap;MP.prototype.dataChanged=MP.prototype.dataChanged;MP.JSC$15512_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"]]);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.VK.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],MP.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],MP.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],MP.prototype,"showFavicon",null);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.Q("design:type",Boolean)],MP.prototype,"useBiggerThumbs",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.vW("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],MP.prototype,"biggerThumbsStyle",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.c("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.Q("design:type",Boolean)],MP.prototype,"enableThumbnailScalingFix",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],MP.prototype,"dataChanged",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],MP.prototype,"onTap",null);_.r([_.P({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],MP);
_.m(MP,"ytd-text-image-no-button-layout-renderer",function(){if(xBh!==void 0)return xBh;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return xBh=L},{mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});var q7V;var Ge=function(){var L=_.e.apply(this,arguments)||this;L.isInlinePlaybackState=!1;L.uiUpdate=_.c("web_modern_buttons");L.hideCta=_.c("hide_cta_for_home_web_video_ads");L.noBottomMargin=!1;L.animateInTimeStamp=_.lQ("hide_cta_for_home_web_video_ads_animate_in_time");L.animateInCta=!1;L.isHovered=!1;L.enableMonoStyle=_.c("enable_default_mono_cta_migration_web_client");L.player=null;L.JSC$15519_playerEvents=new Map;L.JSC$15519_preventProgressSaveTimer=null;L.delayedCtaJobId=null;return L};
_.f(Ge,_.e);_.t=Ge.prototype;_.t.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]]"}}}}}};
_.t.attached=function(){this.JSC$15519_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15519_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.c("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.t.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15519_playerEvents)};
_.t.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Ge.JSC$15518_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ge.JSC$15518_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.t.hoverChanged=function(){var L=this;this.delayedCtaJobId&&(_.ro.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.c("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.Gq(_.ro,function(){L.buttonContainer.classList.add("show-delayed-buttons")},_.lQ("delayed_cta_on_web_delay_milliseconds")))};
_.t.setPlayer=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1)return(Z=_.Ad(L.hostElement,"yt-get-inline-preview-player-action"))&&Z[0]?N.yield(Z[0].getPlayerPromise(),3):N.jumpTo(0);L.player=N.yieldResult;L.ytPlayerListenerBehavior.listenToPlayerEvents(L.player,L.JSC$15519_playerEvents);_.w7(N)})};
_.t.onPlaybackStart=function(){var L=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15519_preventProgressSaveTimer=_.H9(_.ro,function(){L.JSC$15519_preventProgressSaveTimer=null},1E4))};
_.t.onVideoProgress=function(L){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&L>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.t.resetPreventProgressSaveTimer=function(){_.ro.cancelJob(this.JSC$15519_preventProgressSaveTimer);this.JSC$15519_preventProgressSaveTimer=null};
_.t.getSimpleString=function(L){return _.jM(L)};
_.t.onClick=function(L){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var Z,N=(Z=this.data)==null?void 0:Z.navigationEndpoint,S;Z=(S=this.data)==null?void 0:S.channelEndpoint;var u,T;((T=_.n((u=this.data)==null?void 0:u.adCtaButton,_.xZ))==null?0:T.command)&&_.z0(_.sx(L),this.hostElement,["call-to-action"])||(Z&&_.z0(_.sx(L),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(Z,L,!1):!_.z0(_.sx(L),this.hostElement,
["secondary-button"])&&N&&(_.c("enable_short_dr_for_desktop_launchable")?(S=!!_.n(N,_.so),this.isInlinePlaybackState&&S&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(N,L,S)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(N,L,!0))))}};
_.t.updateWatchEndpointStartTime=function(){var L,Z;this.player&&((L=this.data)==null?0:L.inlinePlaybackEndpoint)&&((Z=this.data)==null?0:Z.navigationEndpoint)&&!this.JSC$15519_preventProgressSaveTimer&&(L=Math.floor(this.player.getCurrentTime()),_.n(this.data.navigationEndpoint,_.so).startTimeSeconds=L,_.n(this.data.inlinePlaybackEndpoint,_.so).startTimeSeconds=L)};
_.t.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.t.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.gd.Object.defineProperties(Ge.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.c("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!((L=this.data)==null||!L.watchButton)&&!((Z=this.data)==null||!Z.adCtaButton)}}});
Ge.prototype.hoverChanged=Ge.prototype.hoverChanged;Ge.prototype.dataChanged=Ge.prototype.dataChanged;
Ge.JSC$15518_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"]]);
Ge.JSC$15518_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"}];
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Ge.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Ge.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.VK.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],Ge.prototype,"ytSparklesClickLocationBehavior",void 0);
_.r([_.y(_.No.YtPlayerListenerBehavior),_.Q("design:type",_.SG)],Ge.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ge.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Ge.prototype,"isInlinePlaybackState",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Ge.prototype,"miniMode",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Ge.prototype,"uiUpdate",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Ge.prototype,"hideCta",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Ge.prototype,"noBottomMargin",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Ge.prototype,"animateInCta",void 0);_.r([_.Y({computed:"computeButtonOverride(uiUpdate)"}),_.Q("design:type",Object)],Ge.prototype,"buttonOverride",void 0);
_.r([_.Y({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.Q("design:type",Object)],Ge.prototype,"secondaryButtonOverride",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Ge.prototype,"isHovered",void 0);_.r([_.TX("#button-container"),_.Q("design:type",HTMLElement)],Ge.prototype,"buttonContainer",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Ge.prototype,"typographyBump",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("typographyBump"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ge.prototype,"typographyBumpV2",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Ge.prototype,"enableMonoStyle",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ge.prototype,"dataChanged",null);
_.r([_.iA("isHovered"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ge.prototype,"hoverChanged",null);_.r([_.w("data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ge.prototype,"isButtonGroup",null);_.r([_.P({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Ge);
_.m(Ge,"ytd-ad-inline-playback-meta-block",function(){if(q7V!==void 0)return q7V;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return q7V=L},{mode:_.Qr("kevlar_poly_si_batch_j065")?1:2});var L1V;var F3=function(){var L=_.e.apply(this,arguments)||this;L.noBottomMargin=!1;L.isInlinePreviewTriggered=!1;L.JSC$15524_activeViewMeasurementDataResolver=_.hS();return L};
_.f(F3,_.e);_.t=F3.prototype;_.t.created=function(){this.activeView=new $u(this.hostElement)};
_.t.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.t.attached=function(){var L=this;this.updateInlinePreviewHoverListeners();this.JSC$15524_activeViewMeasurementDataResolver.promise.then(function(Z){De(L.activeView,Z)});
_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lz(L.activeView)})};
_.t.detached=function(){this.clearInlinePreviewHoverListeners();_.c("stop_av_measurement_on_detach")&&lz(this.activeView)};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15524_inlinePreviewHoverListener=Kl({mediaRenderer:this,lockupElement:this.JSC$15524_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:VO5})};
_.t.clearInlinePreviewHoverListeners=function(){var L;(L=this.JSC$15524_inlinePreviewHoverListener)==null||jy(L)};
_.t.onDataChanged=function(){var L;((L=this.data)==null?0:L.activeView)&&this.JSC$15524_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",F3.JSC$15523_DEFAULT_CLICK_LOCATION_BEHAVIOR,F3.JSC$15523_CLICK_LOCATION_ID_MAP);this.thumbnail&&(L=this.thumbnail.getElementsByTagName("a"),L.length>0&&(L=L.namedItem("thumbnail"))&&L.removeAttribute("href"));var Z;if((Z=this.data)==
null?0:Z.forceImpAutoplay){var N;(N=this.JSC$15524_inlinePreviewHoverListener)==null||WvP(N)}};
_.t.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.t.onThumbnailContainerClick=function(L){if(this.data&&this.data.navigationEndpoint){var Z,N=(Z=this.data)==null?void 0:Z.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(N,L,!!_.n(N,_.so));L.stopPropagation()}};
_.t.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.t.impressionLog=function(){var L=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var Z,N,S=(N=_.n((Z=this.data)==null?void 0:Z.onImpression,_.q2))==null?void 0:N.commands;S&&(S.forEach(function(u){u.clickTrackingParams&&delete u.clickTrackingParams;L.ytComponentBehavior.resolveCommand(u)}),this.data.impressionsFired=!0)}};
_.gd.Object.defineProperties(F3.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.JSC$15524_inlinePreviewHoverListener)==null?0:AO(L))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
F3.prototype.onTypographyBumpChanged=F3.prototype.onTypographyBumpChanged;F3.prototype.onDataChanged=F3.prototype.onDataChanged;F3.JSC$15523_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);F3.JSC$15523_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"}];
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],F3.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],F3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],F3.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.Lb),_.Q("design:type",Object)],F3.prototype,"ytdLockupBehavior",void 0);
_.r([_.y(_.CD),_.Q("design:type",Object)],F3.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.VK.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],F3.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],F3.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],F3.prototype,"noBottomMargin",void 0);_.r([_.Y(),_.Q("design:type",Object)],F3.prototype,"isInlinePreviewTriggered",void 0);
_.r([_.Y({reflectToAttribute:!0,selector:_.vv}),_.Q("design:type",Boolean)],F3.prototype,"miniMode",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],F3.prototype,"typographyBump",void 0);_.r([_.TX("ytd-thumbnail"),_.Q("design:type",HTMLElement)],F3.prototype,"thumbnail",void 0);_.r([_.TX("#dismissible"),_.Q("design:type",HTMLElement)],F3.prototype,"JSC$15524_dismissibleMedia",void 0);
_.r([_.TX("ytd-ad-inline-playback-meta-block"),_.Q("design:type",HTMLElement)],F3.prototype,"adInlinePlaybackMetaBlock",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],F3.prototype,"onDataChanged",null);_.r([_.Vr("typographyBump"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],F3.prototype,"onTypographyBumpChanged",null);
_.r([_.w("lockupIsHovered"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],F3.prototype,"isHovered",null);_.r([_.P({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],F3);
_.m(F3,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(L1V!==void 0)return L1V;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return L1V=L},{mode:1});var ZBq;var $1=function(){var L=_.e.apply(this,arguments)||this;L.isInlinePreviewTriggered=!1;L.JSC$15527_activeViewMeasurementDataResolver=_.hS();return L};
_.f($1,_.e);_.t=$1.prototype;_.t.created=function(){this.activeView=new $u(this.hostElement)};
_.t.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.t.attached=function(){var L=this;this.updateInlinePreviewHoverListeners();this.JSC$15527_activeViewMeasurementDataResolver.promise.then(function(Z){De(L.activeView,Z)})};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15527_inlinePreviewHoverListener=Kl({mediaRenderer:this,lockupElement:this.JSC$15527_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:VO5})};
_.t.clearInlinePreviewHoverListeners=function(){var L;(L=this.JSC$15527_inlinePreviewHoverListener)==null||jy(L)};
_.t.onDataChanged=function(){var L;((L=this.data)==null?0:L.activeView)&&this.JSC$15527_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",$1.JSC$15526_DEFAULT_CLICK_LOCATION_BEHAVIOR,$1.JSC$15526_CLICK_LOCATION_ID_MAP);this.thumbnail&&(L=this.thumbnail.getElementsByTagName("a"),L.length>0&&(L=L.namedItem("thumbnail"))&&L.removeAttribute("href"))};
_.t.onThumbnailContainerClick=function(L){if(this.data&&this.data.navigationEndpoint){var Z,N=(Z=this.data)==null?void 0:Z.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(N,L,!0);L.stopPropagation()}};
_.t.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.t.impressionLog=function(){var L=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var Z,N,S=(N=_.n((Z=this.data)==null?void 0:Z.onImpression,_.q2))==null?void 0:N.commands;S&&(S.forEach(function(u){u.clickTrackingParams&&delete u.clickTrackingParams;_.GR().resolve(_.$s).resolveCommand(u,{form:{element:L.hostElement}})}),this.data.impressionsFired=!0)}};
_.gd.Object.defineProperties($1.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.JSC$15527_inlinePreviewHoverListener)==null?0:AO(L))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
$1.prototype.onDataChanged=$1.prototype.onDataChanged;$1.JSC$15526_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);$1.JSC$15526_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"}];_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],$1.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.Lb),_.Q("design:type",Object)],$1.prototype,"ytdLockupBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],$1.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.VK.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],$1.prototype,"ytSparklesClickLocationBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],$1.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],$1.prototype,"isInlinePreviewTriggered",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.vv}),_.Q("design:type",Boolean)],$1.prototype,"miniMode",void 0);_.r([_.TX("ytd-thumbnail"),_.Q("design:type",HTMLElement)],$1.prototype,"thumbnail",void 0);_.r([_.TX("#dismissible"),_.Q("design:type",HTMLElement)],$1.prototype,"JSC$15527_dismissibleMedia",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$1.prototype,"onDataChanged",null);_.r([_.w("lockupIsHovered"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],$1.prototype,"isHovered",null);_.r([_.P({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],$1);
_.m($1,"ytd-video-display-full-buttoned-renderer",function(){if(ZBq!==void 0)return ZBq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ZBq=L},{mode:1});var pl=function(L,Z,N,S){S=S===void 0?!1:S;_.NL.call(this,L);this.adsClientErrorMessage=N;this.aggressivelySample=S;this.args=[];Z&&this.args.push(Z)};
_.f(pl,_.NL);var ES=function(L,Z,N,S){S=S===void 0?!1:S;_.NL.call(this,L);this.adsClientErrorMessage=N;this.aggressivelySample=S;this.args=[];Z&&this.args.push(Z)};
_.f(ES,_.NL);var N6Y=function(L){_.ag.call(this);var Z=this;this.initializationFunction=L;this.instance=null;this.addOnDisposeCallback(function(){_.W4(Z.instance);Z.instance=null})};
_.f(N6Y,_.ag);N6Y.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.eC("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var ImL=function(){var L=new Map;[].forEach(function(Z){L.set(Z.JSC$30733_getType(),Z)});
this.getters=L};new Promise(function(){});var y7x=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"]]),fmH=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"}]]),Sd5=function(L){this.experimentApiProvider=L;L=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=L<.1};var Dp=function(L,Z,N,S){_.ag.call(this);this.adsControlFlowEventListeners=Z;this.adEventLogger=N;this.experimentApiProvider=S;this.adsControlFlowManagerHelper=L(this,this,this,this,this);_.Ky(this,this.adsControlFlowManagerHelper);L=_.O(Z);for(Z=L.next();!Z.done;Z=L.next())_.Ky(this,Z.value)};
_.f(Dp,_.ag);var iBM=function(L,Z,N,S){l_(L.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",Z,N,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,S);L=_.O(L.adsControlFlowEventListeners);for(S=L.next();!S.done;S=L.next())iBM(S.value,Z,N)};
_.t=Dp.prototype;_.t.onOpportunityProcessedExternallyManaged=function(L,Z,N,S){l_(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",L,N,Z,void 0,void 0,void 0,void 0,void 0,void 0,void 0,S)};
_.t.onSlotReceivedExternallyManaged=function(L,Z){v7(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",L,Z)};
_.t.onSlotEntered=function(L){if(ov(this.adsControlFlowManagerHelper,L)!=null){v7(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",L);this.adsControlFlowManagerHelper.onSlotEntered(L);for(var Z=_.O(this.adsControlFlowEventListeners),N=Z.next();!N.done;N=Z.next())N.value.onSlotEntered(L);if(ov(this.adsControlFlowManagerHelper,L)!=null&&ov(this.adsControlFlowManagerHelper,L).isOccupyingSlotType()&&Rv(this.adsControlFlowManagerHelper,L)&&!uLL(this.adsControlFlowManagerHelper,L)){var S;c7(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",L,(S=Rv(this.adsControlFlowManagerHelper,L))!=null?S:void 0);L=ov(this.adsControlFlowManagerHelper,L);L.slotLifecycleStage!=="entered"&&nJ(L.slot,L.slotLifecycleStage,"enterLayoutForSlot");L.slotLifecycleStage="rendering";L.registeredLayoutRenderingAdapter.startRendering(L.layout)}}};
_.t.onSlotExited=function(L){if(ov(this.adsControlFlowManagerHelper,L)!=null){v7(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",L);this.adsControlFlowManagerHelper.onSlotExited(L);for(var Z=_.O(this.adsControlFlowEventListeners),N=Z.next();!N.done;N=Z.next())N.value.onSlotExited(L);ov(this.adsControlFlowManagerHelper,L)!=null&&ov(this.adsControlFlowManagerHelper,L).markedForUnscheduleAfterOutboundAdapterRequests&&T6N(this,L)}};
_.t.onLayoutReceivedExternallyManaged=function(L,Z,N){L.managerLayer!=="core"&&c7(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",L,Z,N)};
var tLt=function(L,Z,N){if(ov(L.adsControlFlowManagerHelper,Z)!=null){c7(L.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Z,N);L=_.O(L.adsControlFlowEventListeners);for(var S=L.next();!S.done;S=L.next())tLt(S.value,Z,N)}};
Dp.prototype.onLayoutExited=function(L,Z,N){if(ov(this.adsControlFlowManagerHelper,L)!=null){c7(this.adEventLogger,kvA(N),L,Z);this.adsControlFlowManagerHelper.onLayoutExited(L,Z);for(var S=_.O(this.adsControlFlowEventListeners),u=S.next();!u.done;u=S.next())u.value.onLayoutExited(L,Z,N);(N=Rv(this.adsControlFlowManagerHelper,L))&&Z.layoutId===N.layoutId&&OBQ(this,L)}};
Dp.prototype.disposeInternal=function(){var L=W1s(this.adsControlFlowManagerHelper);L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next())T6N(this,Z.value);_.ag.prototype.disposeInternal.call(this)};
var T6N=function(L,Z){if(ov(L.adsControlFlowManagerHelper,Z)!=null)if(ov(L.adsControlFlowManagerHelper,Z).JSC$30763_isSlotExitRequested()||ov(L.adsControlFlowManagerHelper,Z).JSC$30763_isLayoutExitRequested())ov(L.adsControlFlowManagerHelper,Z).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(ov(L.adsControlFlowManagerHelper,Z).isOccupyingSlotType())ov(L.adsControlFlowManagerHelper,Z).markedForUnscheduleAfterOutboundAdapterRequests=!0,OBQ(L,Z);else if(ov(L.adsControlFlowManagerHelper,Z).JSC$30763_isSlotFillRequested())ov(L.adsControlFlowManagerHelper,
Z).markedForUnscheduleAfterOutboundAdapterRequests=!0,ov(L.adsControlFlowManagerHelper,Z)!=null&&(v7(L.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",Z),Z=ov(L.adsControlFlowManagerHelper,Z),Z.fulfillmentLifecycleStage="fill_cancel_requested",Z.registeredFulfillmentAdapter.cancelSlotFilling());else{var N=Rv(L.adsControlFlowManagerHelper,Z),S;L.experimentApiProvider.get();(S=_.c("h5_enable_layout_unscheduling_events"))&&(N?VLQ(L,Z,N):_.eC(Error("Lh"),Z,N,void 0,!1));v7(L.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",Z);var u=ov(L.adsControlFlowManagerHelper,Z),T=Z.slotEntryTrigger,W=u.registeredSlotEntryTriggerAdapters.get(T.triggerId);W&&(W.unregisterTrigger(T),u.registeredSlotEntryTriggerAdapters.delete(T.triggerId));T=_.O(Z.slotFulfillmentTriggers);for(W=T.next();!W.done;W=T.next()){W=W.value;var V=u.registeredFulfillmentTriggerAdapters.get(W.triggerId);V&&(V.unregisterTrigger(W),u.registeredFulfillmentTriggerAdapters.delete(W.triggerId))}T=_.O(Z.slotExpirationTriggers);
for(W=T.next();!W.done;W=T.next())if(W=W.value,V=u.registeredExpirationTriggerAdapters.get(W.triggerId))V.unregisterTrigger(W),u.registeredExpirationTriggerAdapters.delete(W.triggerId);u.hasLayout()&&(T=u.layout,KJ(u,T.layoutExitNormalTriggers),KJ(u,T.layoutExitSkipTriggers),KJ(u,T.layoutExitMuteTriggers),KJ(u,T.layoutExitUserInputSubmittedTriggers),KJ(u,T.layoutExitUserCancelledTriggers));u.registeredFulfillmentAdapter=void 0;u.registeredSlotAdapter!=null&&(u.registeredSlotAdapter.release(),u.registeredSlotAdapter=
void 0);u.registeredLayoutRenderingAdapter!=null&&(u.registeredLayoutRenderingAdapter.release(),u.registeredLayoutRenderingAdapter=void 0);u=L.adsControlFlowManagerHelper;ov(u,Z)&&(u=bBt(u,Z.slotType+"_"+Z.slotPhysicalPosition))&&u.delete(Z.slotId);v7(L.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",Z);L=_.O(L.adsControlFlowEventListeners);for(u=L.next();!u.done;u=L.next())u=u.value,u.onSlotUnscheduled(Z),N&&!S&&VLQ(u,Z,N)}},VLQ=function(L,Z,N){c7(L.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
Z,N);
c7(L.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",Z,N);L=_.O(L.adsControlFlowEventListeners);for(var S=L.next();!S.done;S=L.next())S=S.value,N&&VLQ(S,Z,N)},OBQ=function(L,Z){if(ov(L.adsControlFlowManagerHelper,Z)!=null&&ov(L.adsControlFlowManagerHelper,Z).isOccupyingSlotType()){var N=Rv(L.adsControlFlowManagerHelper,Z);
if(N&&uLL(L.adsControlFlowManagerHelper,Z)){if(ov(L.adsControlFlowManagerHelper,Z)!=null){var S=L.adEventLogger,u;var T=((u=fmH.get("abandoned"))==null?void 0:u.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";c7(S,T,Z,N);L=ov(L.adsControlFlowManagerHelper,Z);L.slotLifecycleStage!=="rendering"&&nJ(L.slot,L.slotLifecycleStage,"exitLayout");L.slotLifecycleStage="rendering_stop_requested";L.registeredLayoutRenderingAdapter.stopRendering(N,"abandoned")}}else{v7(L.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
Z);try{S=ov(L.adsControlFlowManagerHelper,Z);if(!S)throw new ES("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");S.slotLifecycleStage!=="enter_requested"&&S.slotLifecycleStage!=="entered"&&S.slotLifecycleStage!=="rendering"&&nJ(S.slot,S.slotLifecycleStage,"exitSlot");S.slotLifecycleStage="exit_requested";if(S.registeredSlotAdapter===void 0)throw S.slotLifecycleStage="scheduled",new ES("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
S.registeredSlotAdapter.exit()}catch(W){W instanceof ES&&W.adsClientErrorMessage?(MLV(L.adEventLogger,W.adsClientErrorMessage,Z),_.eC(W,Z,void 0,void 0,W.aggressivelySample)):(MLV(L.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",Z),_.eC(W,Z))}}}};var fJ=function(L,Z,N,S,u,T){_.ag.call(this);this.registry=L;this.experimentApiProvider=T;this.slotMap=new Map};
_.f(fJ,_.ag);var bBt=function(L,Z){return(L=L.slotMap.get(Z))?L:new Map},ov=function(L,Z){return bBt(L,Z.slotType+"_"+Z.slotPhysicalPosition).get(Z.slotId)},W1s=function(L){var Z=[];
L.slotMap.forEach(function(N){N=_.O(N.values());for(var S=N.next();!S.done;S=N.next())Z.push(S.value.slot)});
return Z};
fJ.prototype.onSlotEntered=function(L){L=ov(this,L);L.slotLifecycleStage!=="enter_requested"&&nJ(L.slot,L.slotLifecycleStage,"onSlotEntered");L.slotLifecycleStage="entered"};
var uLL=function(L,Z){L=ov(L,Z);return L.hasLayout()&&L.isRendering()},Rv=function(L,Z){(L=ov(L,Z))?L.hasLayout()&&!L.layout&&_.eC("Unexpected empty layout",Z):_.eC("Unexpected undefined slotState",Z);
return(L==null?void 0:L.layout)||null};
fJ.prototype.onSlotExited=function(L){L=ov(this,L);L.slotLifecycleStage!=="exit_requested"&&nJ(L.slot,L.slotLifecycleStage,"onSlotExited");L.slotLifecycleStage="scheduled"};
fJ.prototype.onLayoutExited=function(L,Z){L=ov(this,L);L.isPrimaryLayout(Z)&&(L.slotLifecycleStage!=="rendering_stop_requested"&&nJ(L.slot,L.slotLifecycleStage,"onLayoutExited"),L.slotLifecycleStage="entered")};
var KJ=function(L,Z){Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next()){N=N.value;var S=L.registeredLayoutExitTriggerAdapters.get(N.triggerId);S&&(S.unregisterTrigger(N),L.registeredLayoutExitTriggerAdapters.delete(N.triggerId))}},nJ=function(L,Z,N){_.eC("Slot stage was "+Z+" when calling method "+N,L)};var G4M=function(L){_.ag.call(this);this.deps=L;this.JSC$15577_adsControlFlowManager=gJN(this)};
_.f(G4M,_.ag);var gJN=function(L){var Z=new Dp(function(N,S,u,T){return new fJ(L.deps.registry,N,S,u,T,L.deps.experimentApiProvider)},new Set(ett(L.deps.registry).concat(L.deps.listeners)),L.deps.adEventLogger,L.deps.experimentApiProvider);
_.Ky(L,Z);return Z};var x2G=function(){};var F1Y=function(L,Z){_.ag.call(this);this.experimentApiProvider=L;this.eventLoggingSettingsProvider=Z;this.eventCount=0;this.premiumAdSeenEventLogger=qot()()};
_.f(F1Y,_.ag);F1Y.prototype.logEvent=function(L){l_(this,L)};
var v7=function(L,Z,N,S){l_(L,Z,void 0,void 0,void 0,N,void 0,void 0,void 0,N.adSlotLoggingData,void 0,void 0,S)},c7=function(L,Z,N,S,u){l_(L,Z,void 0,void 0,void 0,N,S?S:void 0,void 0,void 0,N.adSlotLoggingData,S?S.adLayoutLoggingData:void 0,void 0,u);
N=_.GR().resolve(_.gv(j2))==null?void 0:EI();Z=N==null?void 0:N.adsSeenHotConfig;N=N==null?void 0:N.adsHotConfig;(Z==null?0:Z.logOnAdsSeen)&&(N==null?0:N.webEnablePremiumAdsSeenLogging)&&$zL(L,S?S:void 0,u)},MLV=function(L,Z,N){l_(L,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,N,void 0,void 0,void 0,N.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:Z})},l_=function(L,Z,N,S,u,T,W,V,M,G,D,l,v){v=v===void 0?0:v;
DzN(L.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Z,"slot:",T,"layout:",W,"ping:",V,"Opportunity:",{opportunityType:N,associatedSlotId:S,slotsFromOpportunity:u,triggerBundle:M,adSlotLoggingData:G,adLayoutLoggingData:D});try{var R=function(){L.experimentApiProvider.get();if(Z!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){Z||_.eC("Empty PACF event type",T,W);var K=L.eventLoggingSettingsProvider.get();var U;(U=K.alwaysIncludeDebugData)||(K.experimentApiProvider.get(),U=
!1);K=U;U={eventType:Z,eventOrder:++L.eventCount};var d={};T&&(d.slotData=U5s(K,T));if(W){var h={type:W.layoutType,controlFlowManagerLayer:y7x.get(W.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};K&&(h.debugData={layoutId:W.layoutId});d.layoutData=h}V&&(d.pingData={pingDispatchStatus:V.dispatchStatus,serializedAdPingMetadata:V.ping.serializedAdPingMetadata,pingIndex:V.index});M&&(d.triggerData=wrh(M.trigger,M.category));N&&(d.opportunityData=YHL(K,N,S,u));U.adClientData=d;G&&(U.serializedSlotAdServingData=
G.serializedSlotAdServingDataEntry);D&&(U.serializedAdServingData=D.serializedAdServingDataEntry);l&&(U.errorInfo=l);_.mS("adsClientStateChange",{adsClientEvent:U})}};
v&&v>0?_.sI(_.DK(),function(){return R()},v):R()}catch(K){DzN(L.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.sI(_.DK(),function(){_.eC(K instanceof Error?K:String(K),T,W,{pacf_message:"exception during pacf logging"})})}},$zL=function(L,Z,N){if(Z){var S=Z.adLayoutLoggingData;
_.sI(_.DK(),function(){L.premiumAdSeenEventLogger!=null&&S&&_.mS("adsSeenClientLogging",{serializedAdServingDataEntry:S.serializedAdServingDataEntry})},N!=null?N:0)}};var lYh=function(L,Z){F1Y.call(this,L,Z)};
_.f(lYh,F1Y);var vJO=function(){},DzN=function(L,Z){return _.c(Z)};var RzY=function(){var L=new oJt;this.JSC$15602_adsControlFlowManager=(new G4M(L)).JSC$15577_adsControlFlowManager},oJt=function(){_.ag.call(this);
var L=this;this.experimentApiProvider=new N6Y(function(){return new vJO});
var Z=new N6Y(function(){return new Sd5(L.experimentApiProvider)});
this.adEventLogger=new lYh(this.experimentApiProvider,Z);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.f(oJt,_.ag);var cit=function(){},nJs,k1=function(){nJs||(nJs=new cit);
return nJs},yR=function(L){if(!L.JSC$15613_externallyManagedSlotAdapterCallback){var Z=(new RzY).JSC$15602_adsControlFlowManager;
L.JSC$15613_externallyManagedSlotAdapterCallback=Z}return L.JSC$15613_externallyManagedSlotAdapterCallback},K1t=function(L,Z,N){var S=Z.opportunityType,u=Error("Mh");
if(S!==void 0){var T=yR(L);iBM(T,S,void 0,N)}else _.eC(u,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});T=[];if(Z.adSlotAndLayoutMetadata!==void 0){Z=_.O(Z.adSlotAndLayoutMetadata);for(var W=Z.next();!W.done;W=Z.next()){var V=W.value;if(W=V.adSlotMetadata)if(T.push(W),L.onSlotReceivedExternallyManaged(W,N),V.adLayoutMetadata){V=_.O(V.adLayoutMetadata);for(var M=V.next();!M.done;M=V.next())L.onLayoutReceivedExternallyManaged(W,M.value,N)}else N>0&&_.eC("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
S,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else N>0&&_.eC("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+S,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else N>0&&_.eC("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+S,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(S!==void 0)L.onOpportunityProcessedExternallyManaged(S,T,void 0,N);else _.eC(u,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
cit.prototype.onSlotReceivedExternallyManaged=function(L,Z){L=PT(L);if(L instanceof ES)_.eC(L,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else yR(this).onSlotReceivedExternallyManaged(L,Z)};
cit.prototype.onLayoutReceivedExternallyManaged=function(L,Z,N){L=PT(L);Z=d5G(Z);if(L instanceof ES)_.eC(L,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(Z instanceof pl)_.eC(Z,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else yR(this).onLayoutReceivedExternallyManaged(L,Z,N)};
cit.prototype.onOpportunityProcessedExternallyManaged=function(L,Z,N,S){var u=[];Z=_.O(Z);for(var T=Z.next();!T.done;T=Z.next())T=PT(T.value),T instanceof ES?_.eC(T,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):u.push(T);yR(this).onOpportunityProcessedExternallyManaged(L,u,N,S)};
var fYh=function(L,Z){Z=PT(Z);if(Z instanceof ES)_.eC(Z,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var N=yR(L);v7(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",Z);N=_.O(N.adsControlFlowEventListeners);for(var S=N.next();!S.done;S=N.next())S=ov(S.value,Z),S.slotLifecycleStage!=="not_scheduled"&&nJ(S.slot,S.slotLifecycleStage,"onSlotScheduled"),S.slotLifecycleStage="scheduled";L=yR(L);v7(L.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",Z);L=_.O(L.adsControlFlowEventListeners);
for(N=L.next();!N.done;N=L.next())N.value.onSlotEntered(Z)}},k4L=function(L,Z){Z=PT(Z);
if(Z instanceof ES)_.eC(Z,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var N=yR(L);v7(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",Z);N=_.O(N.adsControlFlowEventListeners);for(var S=N.next();!S.done;S=N.next())S.value.onSlotExited(Z);L=yR(L);v7(L.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",Z);L=_.O(L.adsControlFlowEventListeners);for(N=L.next();!N.done;N=L.next())N.value.onSlotUnscheduled(Z)}},yi0=function(L,Z,N){Z=PT(Z);
N=d5G(N);if(Z instanceof ES)_.eC(Z,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(N instanceof pl)_.eC(N,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var S=yR(L);c7(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",Z,N);S=_.O(S.adsControlFlowEventListeners);for(var u=S.next();!u.done;u=S.next())u.value.onLayoutScheduled(Z,N);L=yR(L);c7(L.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Z,N);L=_.O(L.adsControlFlowEventListeners);
for(S=L.next();!S.done;S=L.next())tLt(S.value,Z,N)}},wa=function(L,Z,N){Z=PT(Z);
N=d5G(N);if(Z instanceof ES)_.eC(Z,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(N instanceof pl)_.eC(N,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var S=yR(L);c7(S.adEventLogger,kvA("normal"),Z,N);S=_.O(S.adsControlFlowEventListeners);for(var u=S.next();!u.done;u=S.next())u.value.onLayoutExited(Z,N,"normal");L=yR(L);L=_.O(L.adsControlFlowEventListeners);for(S=L.next();!S.done;S=L.next())VLQ(S.value,Z,N)}};_.av=_.p(function(L){var Z=_.Ek(L,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});L=Object.assign({},Z);var N=Z.data;Z=Z.customCommandResolver;var S=(delete L.data,delete L.customCommandResolver,L);L=_.$b({visibilityCallback:function(V,M){var G,D=(G=N().interaction)==null?void 0:G.onFirstVisible;V&&(D&&_.w$(D),S.setOnErrorHandler()&&amP(M))},
showOption:_.M1});Z=_.k9(function(){return N().interaction},Z,function(){var V;
return(V=S.listenToTapEvent)==null?void 0:V.call(S)});
var u=_.O(_.nh(!1,void 0,"wAC0Lc")),T=u.next().value,W=u.next().value;u=_.Z9(function(V){var M;((M=S.setTouchEndHandler)==null?0:M.call(S))&&!T()&&(V.currentTarget.click(),W(!0),setTimeout(function(){W(!1)},100));
return!1});
return _.g("ad-image-view-model",{class:function(){var V,M=[((V=N().interaction)==null?0:V.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],G;((G=S.isGridViewEnabled)==null?0:G.call(S))&&M.push("ytwAdImageViewModelHostInGridView");return M.join(" ")},
el:_.P9(L,Z),"on:touchend":u},_.g("div",{class:"ytwAdImageViewModelHostImageContainer"},_.g(_.ji,{data:function(){var V;return{sources:N().imageSources,contentMode:(V=N().imageProperties)==null?void 0:V.contentMode}},
alt:function(){var V,M;return((V=N().interaction)==null?void 0:(M=V.accessibility)==null?void 0:M.label)||""},
targetHeight:S.targetHeight,targetWidth:S.targetWidth,preserveHeight:S.preserveHeight,preserveWidth:S.preserveWidth,useWidth:S.useWidth,style:function(){var V,M;return"vertical-align: bottom;"+(((V=N().background)==null?0:V.color)?"background-color:"+_.vq((M=N().background)==null?void 0:M.color)+";":"")},
className:function(){return S.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var V,M;return(M=(V=S.setDraggable)==null?void 0:V.call(S))!=null?M:void 0}})))},"jc");var w5M=_.p(function(L){var Z=L.data,N=L.listenToTapEvent,S=function(){};
return _.g("ad-button-hover-overlay-view-model",{"on:click":_.Z9(function(u){if(_.c("enable_web_home_top_landscape_image_layout_legacy_click_command")){var T,W=(T=Z().interaction)==null?void 0:T.onTap;W&&_.QT(u.currentTarget,"yt-navigate",{endpoint:_.KY(W)})}}),
class:function(){var u;return((u=Z().interaction)==null?0:u.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.P9(_.$b({visibilityCallback:function(u){var T,W=(T=Z().interaction)==null?void 0:T.onFirstVisible;u&&W&&_.w$(W)},
showOption:_.M1}),_.k9(function(){return Z().interaction},void 0,function(){return!_.c("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(N==null?void 0:N())}))},function(){return _.c("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.g(_.bj,{data:function(){return Z().button}},{adButtonViewModel:function(u){return _.g(_.G9,{data:u.data,
customCommandResolver:S})}}):_.g(_.bj,{data:function(){return Z().button}},{adButtonViewModel:_.G9})}())},"kc");var zq;_.CY(_.p(function(L){var Z=L.data;L=_.$b({visibilityCallback:function(V,M){if(V){var G;(V=(G=Z().interaction)==null?void 0:G.onFirstVisible)&&_.w$(V);var D;if(G=(D=Z().adLayoutData)==null?void 0:D.activeViewData)mK(M,G),_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ju(M)})}else _.c("stop_av_measurement_on_detach")&&Ju(M)},
showOption:_.M1,hideOption:gL});var N=_.k9(function(){return Z().interaction},void 0,function(){return!0}),S=_.O(_.nh(!1,void 0,"VNDDT")),u=S.next().value,T=S.next().value;
S=_.Z9(function(){T(!0)});
var W=_.Z9(function(){T(!1)});
return _.g("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.P9(L,ztH,N),"on:mouseenter":S,"on:mouseleave":W},_.g("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.u4({"max-width":function(){return _.c("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.g("div",{class:function(){var V;
a:{var M;switch((V=_.n(Z().thumbnailImage,dXQ))==null?void 0:(M=V.imageProperties)==null?void 0:M.renderingAspect){case "RENDERING_ASPECT_SQUARE":V="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":V="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}V=void 0}return V}},_.g(_.bj,{data:function(){return Z().thumbnailImage}},{adImageViewModel:function(V){return _.g(_.av,
{data:V.data,
listenToTapEvent:!0,setTouchEndHandler:_.c("enable_top_landscape_image_experiment_dom_id_web")})}})),_.g("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.g(_.F,{cond:function(){var V,M,G;
return(V=_.n(Z().thumbnailImage,dXQ))==null?void 0:(M=V.imageProperties)==null?void 0:(G=M.overlayIcon)==null?void 0:G.iconImage},
then:function(V){return _.g(_.ji,{data:V,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.g("div",{class:function(){return u()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.g(_.bj,{data:function(){return Z().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(V){return _.g(w5M,
{data:V.data,
listenToTapEvent:!0})}}))),_.g("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.g(_.bj,{data:function(){return Z().feedAdMetadata}},{feedAdMetadataViewModel:function(V){return _.g(cA,{data:V.data,
listenToTapEvent:!0,setTouchEndHandler:_.c("enable_top_landscape_image_experiment_dom_id_web")})}})))},"lc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){var Z=L.data;L=_.$b({visibilityCallback:function(V,M){if(V){var G;(V=(G=Z().interaction)==null?void 0:G.onFirstVisible)&&_.w$(V);var D;if(G=(D=Z().adLayoutData)==null?void 0:D.activeViewData)mK(M,G),_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ju(M)})}else _.c("stop_av_measurement_on_detach")&&Ju(M)},
showOption:_.M1,hideOption:gL});var N=_.VB(_.KV),S=_.k9(function(){return Z().interaction}),u={},T={},W={};
return _.g("square-image-layout-view-model",{class:_.qg("ytwSquareImageLayoutViewModelHost",(u.ytwSquareImageLayoutViewModelHostColumn=N,u)),el:_.P9(L,m5_,S)},_.g("div",{class:_.qg("ytwSquareImageLayoutViewModelHostImage",(T.ytwSquareImageLayoutViewModelHostColumnImage=N,T))},function(){return _.g(_.bj,{data:function(){return Z().adImage}},{adImageViewModel:function(V){return _.g(_.av,{data:V.data,
isGridViewEnabled:N,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.g("div",{class:_.qg("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(W.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=N,W))},_.g(_.bj,{data:function(){return Z().feedAdMetadata}},{feedAdMetadataViewModel:cA}),function(){return _.g(_.bj,{data:function(){return Z().adButton}},{adButtonViewModel:function(V){var M={};
return _.g(_.G9,{data:V.data,className:_.qg((M.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,M.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=N,M))})}})}()))},"mc"),"square-image-layout-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){var Z=L.data;var N=L.noBottomMargin;var S=L.typographyBump;L=_.$b({visibilityCallback:function(l,v){if(l){var R;(l=(R=Z().interaction)==null?void 0:R.onFirstVisible)&&_.w$(l);var K;if(R=(K=Z().adLayoutData)==null?void 0:K.activeViewData)mK(v,R),_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ju(v)})}else _.c("stop_av_measurement_on_detach")&&Ju(v)},
showOption:_.M1,hideOption:gL});var u=_.k9(function(){return Z().interaction},void 0,function(){return _.c("enable_web_home_top_landscape_image_layout_level_click")}),T=function(){return Z().interaction};
T!==void 0&&T!==null||_.Zx(Error("Nh"));var W=function(){var l,v,R;return(l=_.n(Z().thumbnailImage,dXQ))==null?void 0:(v=l.background)==null?void 0:(R=v.backgroundImageSource)==null?void 0:R.imageSources};
T=_.O(_.nh(!1,void 0,"NFjwje"));var V=T.next().value,M=T.next().value;T=_.Z9(function(){M(!0)});
var G=_.Z9(function(){M(!1)}),D=function(){return V()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.g("top-landscape-image-layout-view-model",{class:function(){var l;return((l=Z().interaction)==null?0:l.onTap)&&_.c("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.P9(L,J7L,u),"on:mouseenter":T,"on:mouseleave":G},_.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.g(_.F,{cond:function(){return W()&&W().length>0},
then:function(){return _.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.u4({top:"0","background-image":function(){return"url("+String(W()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.g(_.F,{cond:function(){return!!Z().adButtonHoverOverlay},
then:function(){return _.g("div",{class:D},_.g(_.bj,{data:function(){return Z().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:w5M}))}}),_.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.g(_.bj,{data:function(){return Z().thumbnailImage}},{adImageViewModel:function(l){return _.g(_.av,{data:l.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.c("enable_web_home_top_landscape_image_layout_level_click")})}})),_.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.g(_.ji,{data:{sources:[{clientResource:{imageName:_.c("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.g(_.bj,{data:function(){return Z().feedAdMetadata}},{feedAdMetadataViewModel:function(l){return _.g(cA,{data:l.data,
noBottomMargin:function(){return N==null?void 0:N()},
listenToTapEvent:function(){return _.c("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return S==null?void 0:S()}})}})))},"nc"),"top-landscape-image-layout-view-model",{props:{data:_.LK,
noBottomMargin:_.LK,typographyBump:_.LK}});var Uzt=_.p(function(L){var Z=L.data,N=_.$b({visibilityCallback:function(u){var T,W=(T=Z().interaction)==null?void 0:T.onFirstVisible;u&&W&&_.w$(W)},
showOption:_.M1});L=_.k9(function(){return Z().interaction},L.customCommandResolver);
var S={};return _.g("ad-text-image-view-model",{class:_.qg("ytwAdTextImageViewModelHost",(S.ytwAdTextImageViewModelHostDarkBackground=function(){return Z().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},S)),
el:_.P9(N,L),"aria-label":function(){var u,T;return(u=Z().interaction)==null?void 0:(T=u.accessibility)==null?void 0:T.label}},_.g("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.g(_.qv,{text:function(){return Z().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.g(_.F,{cond:function(){return Z().overlayIcon},
then:function(u){return _.g("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.g(_.ji,{data:u,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"oc");var YdY=_.p(function(L){var Z=L.data;return _.g("feed-ad-sitelink-view-model",{class:function(){var N;return((N=Z().interaction)==null?0:N.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.P9(_.k9(function(){return Z().interaction},L.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var N,S;return(N=Z().interaction)==null?void 0:(S=N.accessibility)==null?void 0:S.label},
role:"link",tabindex:0},_.g(_.qv,{text:function(){return Z().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"pc");var ezY=_.p(function(L){var Z=L.data;L={};return _.g("feed-ad-sitelinks-carousel-view-model",{el:_.P9(_.$b({visibilityCallback:function(N){var S,u=(S=Z().interaction)==null?void 0:S.onFirstVisible;N&&u&&_.w$(u)},
showOption:_.M1})),class:_.qg("ytwFeedAdSitelinksCarouselViewModelHost",(L.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return Z().style==="FEED_AD_SITELINKS_STYLE_NONE"},L))},_.g(_.bj,{data:function(){return Z().sitelinks}},{feedAdSitelinkViewModel:YdY}))},"qc");_.CY(_.p(function(L){var Z=L.data;L=_.$b({visibilityCallback:function(W,V){if(W){var M;(W=(M=Z().interaction)==null?void 0:M.onFirstVisible)&&_.w$(W);var G;(M=(G=Z().adLayoutData)==null?void 0:G.activeViewData)&&mK(V,M)}},
showOption:_.M1});var N=_.O(_.nh(!1,void 0,"BzPhl")),S=N.next().value,u=N.next().value;N=_.Z9(function(){u(!0)});
var T=_.Z9(function(){u(!1)});
return _.g("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.P9(L),"on:mouseenter":N,"on:mouseleave":T},_.g("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.g("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.g(_.bj,{data:function(){return Z().textImage}},{adTextImageViewModel:Uzt})),_.g("div",{class:function(){return S()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.g(_.bj,{data:function(){return Z().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(W){return _.g(w5M,{data:W.data,
listenToTapEvent:!0})}}))),_.g("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.g(_.bj,{data:function(){return Z().feedAdMetadata}},{feedAdMetadataViewModel:function(W){return _.g(cA,{data:W.data,
listenToTapEvent:!0})}}),_.g(_.bj,{data:function(){return Z().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:ezY})))},"rc"),"text-image-no-button-layout-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){var Z=L.data;var N=L.typographyBump;return _.g("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.P9(_.$b({visibilityCallback:function(S,u){if(S){var T;(S=(T=Z().interaction)==null?void 0:T.onFirstVisible)&&_.w$(S);var W;(T=(W=Z().adLayoutData)==null?void 0:W.activeViewData)&&mK(u,T)}},
showOption:_.M1,hideOption:gL}))},_.g("div",null,_.g(_.bj,{data:function(){return Z().videoLockup}},{lockupViewModel:function(S){return _.g(_.nN,{data:S.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:N})}})))},"sc"),"video-display-button-group-layout-view-model",{props:{data:_.LK,
noBottomMargin:_.LK,typographyBump:_.LK}});_.CY(_.p(function(L){var Z=L.data;var N=L.className;var S=L.typographyBump;return _.g("video-display-compact-button-group-layout-view-model",{el:_.P9(_.$b({visibilityCallback:function(u,T){if(u){var W;(u=(W=Z().interaction)==null?void 0:W.onFirstVisible)&&_.w$(u);var V;(W=(V=Z().adLayoutData)==null?void 0:V.activeViewData)&&mK(T,W)}},
showOption:_.M1})),class:_.qg("videoDisplayCompactButtonGroupLayoutViewModelHost",N)},_.g(_.bj,{data:function(){return Z().videoLockup}},{lockupViewModel:function(u){return _.g(_.nN,{data:u.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:S})}}))},"tc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.LK,
className:_.LK,typographyBump:_.LK}});_.CY(_.p(function(L){var Z=L.data;var N=L.className;var S=L.typographyBump;return _.g("video-display-compact-buttoned-layout-view-model",{el:_.P9(_.$b({visibilityCallback:function(u,T){if(u){var W;(u=(W=Z().interaction)==null?void 0:W.onFirstVisible)&&_.w$(u);var V;(W=(V=Z().adLayoutData)==null?void 0:V.activeViewData)&&mK(T,W)}},
showOption:_.M1})),class:_.qg("videoDisplayCompactButtonedLayoutViewModelHost",N)},_.g(_.bj,{data:function(){return Z().videoLockup}},{lockupViewModel:function(u){return _.g(_.nN,{data:u.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:S})}}))},"uc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.LK,
className:_.LK,typographyBump:_.LK}});_.CY(_.p(function(L){var Z=L.data;var N=L.className;var S=L.typographyBump;var u=function(){return Z().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},T=_.VB(_.KV);
L=_.$b({visibilityCallback:function(G,D){if(G){var l=Z();G=l.adLayoutData;var v;(l=(v=l.interaction)==null?void 0:v.onFirstVisible)&&_.w$(l);(v=G==null?void 0:G.activeViewData)&&mK(D,v)}},
showOption:_.M1});var W=_.wJ(function(){return{containerType:u()&&T()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"mu2jrc"),V=_.wJ(function(){return u()&&T()?"":u()?"168px":"50%"},void 0,"qNDzkb"),M=_.wJ(function(){return u()&&T()?9999:void 0},void 0,"Ikn8Kb");
return _.g("video-display-compact-layout-view-model",{el:_.P9(L),class:_.qg("videoDisplayCompactLayoutViewModelHost",N)},_.g(_.bj,{data:function(){return Z().videoLockup}},{lockupViewModel:function(G){return _.g(_.nN,{data:G.data,
containerLayoutConfig:W,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:V,thumbnailTargetWidth:M,typographyBump:S})}}))},"vc"),"video-display-compact-layout-view-model",{props:{data:_.LK,
className:_.LK,typographyBump:_.LK}});_.CY(_.p(function(L){var Z=L.data;var N=L.typographyBump;return _.g("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.P9(_.$b({visibilityCallback:function(S,u){if(S){var T;(S=(T=Z().interaction)==null?void 0:T.onFirstVisible)&&_.w$(S);var W;(T=(W=Z().adLayoutData)==null?void 0:W.activeViewData)&&mK(u,T)}},
showOption:_.M1,hideOption:gL}))},_.g("div",null,_.g(_.bj,{data:function(){return Z().videoLockup}},{lockupViewModel:function(S){return _.g(_.nN,{data:S.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:N})}})))},"wc"),"video-display-full-layout-view-model",{props:{data:_.LK,
noBottomMargin:_.LK,typographyBump:_.LK}});_.IYs=_.p(function(L){var Z=L.data;L=_.t2("ad-card-badge-view-model");return _.g("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:L},_.g(_.F,{cond:function(){return Z().imageBadge},
then:function(N){return _.g(_.ji,{data:N,alt:""})}}))},"xc");var dzs=_.p(function(L){var Z=L.data;var N=L.customCommandResolver;return _.g("carousel-ad-card-image-view-model",{class:function(){var S;return((S=Z().interaction)==null?0:S.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.P9(_.$b({visibilityCallback:function(S){var u,T=(u=Z().interaction)==null?void 0:u.onFirstVisible;S&&T&&_.w$(T)},
showOption:_.M1}),_.k9(function(){return Z().interaction},N)),
"aria-label":function(){var S,u;return(S=Z().interaction)==null?void 0:(u=S.accessibility)==null?void 0:u.label}},_.g(_.bj,{data:function(){return Z().adImage}},{adImageViewModel:function(S){return _.g(_.av,{data:S.data,
customCommandResolver:N})}}),_.g("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.g(_.bj,{data:function(){return Z().badge}},{adCardBadgeViewModel:_.IYs})),_.g(_.MN,{model:{color:4}}))},"yc");var aYt=_.p(function(L){var Z=_.O(_.nh(0,void 0,"JJ0QQc")),N=Z.next().value;Z.next();var S=Z.next().value,u=_.O(_.nh(!1,void 0,"f6YICe"));Z=u.next().value;var T=u.next().value,W;_.zs(function(){clearTimeout(W)});
u=_.Z9(function(){var G;((G=L.animate)==null?0:G.call(L))?(T(!0),W=setTimeout(function(){T(!1);V()},200)):V();
return!1});
var V=function(){S(function(G){return(G+L.numShownItems())%L.data().length})},M={};
return _.g("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.g("div",{class:_.qg("ytwHorizontalCarouselCarouselWrapper")},_.g("div",{class:_.qg("ytwHorizontalCarouselCarouselInnerWrapper",(M.ytwHorizontalCarouselAnimating=Z,M))},_.g(_.ju,{each:L.data,keyBy:"INDEX"},function(G,D){return _.g("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.u4({"flex-basis":function(){return"calc((100% - (8px * "+(L.numShownItems()-1)+")) / "+L.numShownItems()+")"},
order:function(){var l=D-N();l<0&&(l+=L.data().length);return l}})},L.children(G,D))}))),_.g("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":u},L.nextButton()))},"zc");var hzq=_.p(function(L){var Z=L.data;var N=L.customCommandResolver;var S=L.expansive;return _.g("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.P9(_.$b({visibilityCallback:function(u){var T,W=(T=Z().interaction)==null?void 0:T.onFirstVisible;u&&W&&_.w$(W)},
showOption:_.M1}))},_.g(aYt,{data:function(){var u;return((u=Z())==null?void 0:u.carouselAdCards)||[]},
nextButton:function(){return _.g(_.bj,{data:function(){return Z().nextButton}},{buttonViewModel:function(u){var T=u.data;
return _.g(_.$X,{data:function(){return(S==null?0:S())?Object.assign({},T(),{style:"mono"}):T()},
className:_.c("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(u){return _.g(_.bj,{data:u},{carouselAdCardImageViewModel:function(T){return _.g(dzs,{data:T.data,customCommandResolver:N})}})}))},"Ac");var sx5=_.p(function(L){var Z=L.data;var N=L.customCommandResolver;var S=L.className;var u=L.buttonClassName;var T=L.animationEntityKey;var W=L.expansive;return _.g("carousel-button-view-model",{class:_.qg("ytwCarouselButtonViewModelHost",S)},_.g(_.bj,{data:function(){return Z().carousel}},{carouselAdCardCollectionViewModel:function(V){return _.g(hzq,{data:V.data,
customCommandResolver:N,expansive:W})}}),_.g(_.bj,{data:function(){return Z().button}},{adButtonViewModel:function(V){var M=V.data;
return _.g(_.G9,{data:function(){return(W==null?0:W())?Object.assign({},M(),{style:"AD_BUTTON_STYLE_TONAL"}):M()},
className:u,customCommandResolver:N,animationEntityKey:T})}}))},"Bc");_.jxM=_.p(function(L){var Z=L.data;L=L.className;var N=_.t2("pivot-button-view-model");_.m0(function(){var S;((S=Z())==null?0:S.backgroundColor)&&N.value.setAttribute("data-background-color",String(Z().backgroundColor))});
return _.g("pivot-button-view-model",{el:N,class:_.qg("ytwPivotButtonViewModelHost",L)},_.g(_.bM,{command:function(){var S=Z();S=S.onClickCommand?_.KY(S.onClickCommand):S.contentDescription?_.m3(S.contentDescription):void 0;return S},
ariaLabel:function(){return Z().contentDescription}},_.g(_.F,{cond:function(){return Z().thumbnail},
then:function(S){return _.g(_.ji,{data:S,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.g(_.F,{cond:function(){return Z().icon},
then:function(S){return _.g(_.T0,{icon:function(){return S().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Cc");_.EJQ=_.p(function(L){var Z=L.data;var N=L.buttonShapeOverrideables;return _.g("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.g(_.bj,{data:function(){return Z().buttonViewModels}},{buttonViewModel:function(S){return _.g(_.$X,{data:S.data,
buttonOverrides:N})},
likeButtonViewModel:function(S){return _.g(_.XX,{data:S.data,buttonShapeOverrideables:N})},
dislikeButtonViewModel:function(S){return _.g(_.QK,{data:S.data,buttonShapeOverrideables:N})},
toggleButtonViewModel:function(S){return _.g(_.sj,{data:S.data,buttonShapeOverrides:N})}}))},"Dc");var PsQ=_.p(function(L){var Z=L.avatar;var N=L.headline;var S=L.badge;var u=L.description;var T=L.expansive;L={};return _.g("yt-ad-metadata-shape",{class:_.qg("ytAdMetadataShapeHost",(L.ytAdMetadataShapeHostLarge=T,L))},_.g("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.g(_.F,{cond:Z,then:function(W){return _.g(_.IdL,{data:function(){return(T==null?0:T())?Object.assign({},W(),{size:"AD_AVATAR_SIZE_M"}):W()}})}}),_.g("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.g(_.qv,{text:N,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.g(_.F,{cond:S,then:function(W){return _.g(_.o9,{data:function(){return(T==null?0:T())?Object.assign({},W(),{style:"AD_BADGE_STYLE_STARK"}):W()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.g("h2",{class:"ytAdMetadataShapeHostDescription"},_.g(_.qv,{text:u,
linkInheritColor:!0,isHeadline:function(){return T==null?void 0:T()}})))},"Ec");var p5Y=_.p(function(L){var Z=L.data;var N=L.onShow;var S=L.expansive;L=_.k9(function(){return Z().interaction});
_.m0(function(){var T,W=(T=Z().animatedRenderingConfig)==null?void 0:T.delayedSecondsToVisible;if(W){var V=setTimeout(N,W*1E3);_.zs(function(){clearTimeout(V)})}});
var u={};return _.g("reels-ad-card-buttoned-view-model",{class:_.qg(function(){var T;return((T=Z().interaction)==null?0:T.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(u.ytwReelsAdCardButtonedViewModelHostExpansive=S,u)),
el:_.P9(L)},_.g(PsQ,{avatar:function(){return _.n(Z().avatar,Y4O)},
headline:function(){return Z().headline},
badge:function(){return _.n(Z().adBadge,ek0)},
description:function(){return Z().description},
expansive:S}),_.g(_.bj,{data:function(){return Z().ctaButton}},{adButtonViewModel:function(T){var W=T.data;
return _.g(_.G9,{data:function(){return(S==null?0:S())?Object.assign({},W(),{style:"AD_BUTTON_STYLE_FILLED"}):W()}})}}))},"Fc");var zzs=_.p(function(L){var Z=L.data;L=L.expansive;var N=_.c("web_ad_metadata_clickable")?_.k9(function(){return Z().interaction},void 0,function(){return _.c("web_ad_metadata_clickable")}):void 0,S={};
S=_.D7("ytwReelsAdMetadataViewModelHost",(S.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.c("web_ad_metadata_clickable"),S));return _.g("reels-ad-metadata-view-model",{class:S,el:_.P9(N)},_.g(PsQ,{avatar:function(){return _.n(Z().avatar,Y4O)},
headline:function(){return Z().headline},
badge:function(){return _.n(Z().adBadge,ek0)},
description:function(){return Z().description},
expansive:L}))},"Gc");var mzV={iconPosition:"icon-with-label",size:"L"},Jil=_.p(function(L){var Z=L.data;var N=L.overlayDensity;var S=L.extractOverlay;var u=L.extractActionBar;L=_.t2("reels-player-overlay-layout-view-model");var T=_.jA(N,0),W=function(){var R;return(R=Z().reelsAdCardButtonedEntityKey)!=null?R:""},V=function(){return W()+"/ad_button"},M=_.OS(oIH,W),G=function(){var R,K;
return(K=(R=M())==null?void 0:R.value)!=null?K:!1},D=_.VB(CLL),l=function(){var R;
return Object.assign({},mzV,(D()||!((R=u==null?void 0:u())!=null&&R))&&{style:"overlay-dark"})};
N={};var v={};return _.g("reels-player-overlay-layout-view-model",{class:_.qg("ytwReelsPlayerOverlayLayoutViewModelHost",(N.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!Z().extension},N.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},N.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return T()===1&&!(S==null?0:S())},N.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var R;
return(R=S==null?void 0:S())!=null?R:!1},N.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var R;
return(R=u==null?void 0:u())!=null?R:!1},N)),
"overlay-density":function(){return String(T())},
el:L},_.g("div",{class:_.qg("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(v.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},v))},_.g("div",{"aria-hidden":function(){return G()},
class:_.qg("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return G()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.u4({"transition-duration":function(){return A7H(Z())}})},_.g(_.bj,{data:function(){return Z().adMetadata}},{reelsAdMetadataViewModel:function(R){return _.g(zzs,{data:R.data,
expansive:function(){return T()===1}})}}),_.g(_.F,{cond:function(){return Z().extension},
then:function(R){return _.g("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.g(_.bj,{data:R},{adButtonViewModel:function(K){return _.g(_.G9,{data:K.data,animationEntityKey:V,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(K){return _.g(sx5,{data:K.data,animationEntityKey:V,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return T()===1}})}}))}})),_.g("div",{"aria-hidden":function(){return!G()},
class:_.qg("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return G()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.u4({"transition-duration":function(){return A7H(Z())}})},_.g(_.bj,{data:function(){return Z().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(R){return _.g(p5Y,{data:R.data,
onShow:function(){_.sk(_.Mr("booleanEntity",W(),{key:W(),value:!0}))},
expansive:function(){return T()===1}})}}))),_.g("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.g(_.bj,{data:function(){return Z().actions}},{reelActionBarViewModel:function(R){return _.g(_.EJQ,{data:R.data,
buttonShapeOverrideables:l})}}),_.g(_.bj,{data:function(){return Z().menu}},{buttonViewModel:function(R){return _.g(_.$X,{data:R.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},l(),{type:"tonal"})}})}}),_.g(_.bj,{data:function(){return Z().pivotButton}},{pivotButtonViewModel:function(R){return _.g(_.jxM,{data:R.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Hc");_.CY(Jil,"reels-player-overlay-layout-view-model",{props:{data:_.LK,overlayDensity:_.LK,extractOverlay:_.LK,extractActionBar:_.LK}});var hk=function(){var L=_.e.apply(this,arguments)||this;L.noBottomMargin=!1;L.overlayDensity=0;L.extractOverlay=!1;L.extractActionBar=!1;return L};
_.f(hk,_.e);_.t=hk.prototype;
_.t.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:_.c("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]]"}}}}}};
_.t.ready=function(){var L=this;irf(function(){L.isAttached&&sS(L.JSC$15658_storedAdSlotMetadata,L.JSC$15658_storedAdLayoutMetadata,L.adSlotMetadata,L.adLayoutMetadata)&&wa(k1(),L.JSC$15658_storedAdSlotMetadata,L.JSC$15658_storedAdLayoutMetadata)})};
_.t.attached=function(){sS(this.JSC$15658_storedAdSlotMetadata,this.JSC$15658_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&yi0(k1(),this.JSC$15658_storedAdSlotMetadata,this.JSC$15658_storedAdLayoutMetadata)};
_.t.detached=function(){sS(this.JSC$15658_storedAdSlotMetadata,this.JSC$15658_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&wa(k1(),this.JSC$15658_storedAdSlotMetadata,this.JSC$15658_storedAdLayoutMetadata)};
_.t.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.t.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15658_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15658_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15658_storedAdLayoutMetadata!==void 0&&this.JSC$15658_storedAdSlotMetadata!==void 0&&wa(k1(),this.JSC$15658_storedAdSlotMetadata,this.JSC$15658_storedAdLayoutMetadata),yi0(k1(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15658_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15658_storedAdSlotMetadata=this.adSlotMetadata)};
_.gd.Object.defineProperties(hk.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.adLayoutMetadata}}});
hk.prototype.onAdMetadataChanged=hk.prototype.onAdMetadataChanged;hk.prototype.onTypographyBumpChanged=hk.prototype.onTypographyBumpChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],hk.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],hk.prototype,"rendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],hk.prototype,"ytComponentBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],hk.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],hk.prototype,"noBottomMargin",void 0);_.r([_.Y(),_.Q("design:type",Object)],hk.prototype,"overlayDensity",void 0);_.r([_.Y(),_.Q("design:type",Object)],hk.prototype,"extractOverlay",void 0);_.r([_.Y(),_.Q("design:type",Object)],hk.prototype,"extractActionBar",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],hk.prototype,"typographyBump",void 0);
_.r([_.w("data.adLayoutMetadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],hk.prototype,"adLayoutMetadata",null);_.r([_.Y(),_.Q("design:type",Object)],hk.prototype,"adSlotMetadata",void 0);_.r([_.TX("ytd-video-display-full-buttoned-and-button-group-renderer"),_.Q("design:type",HTMLElement)],hk.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.r([_.iA("typographyBump"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hk.prototype,"onTypographyBumpChanged",null);_.r([_.iA("adLayoutMetadata","adSlotMetadata"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hk.prototype,"onAdMetadataChanged",null);_.r([_.P({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],hk);
_.m(hk,"ytd-in-feed-ad-layout-renderer",function(){if(Y7I!==void 0)return Y7I;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Y7I=L},
{mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});var CsO;var riV;_.CY(_.o9,"ad-badge-view-model",{props:{data:_.LK,hasDot:_.LK,customCommandResolver:_.zl,adRenderingContextType:_.zl,usedInMasthead:_.zl}});_.CY(_.G9,"ad-button-view-model",{props:{data:_.LK,customCommandResolver:_.zl,className:_.zl,delayedClassName:_.zl,animationEntityKey:_.zl,isCompactWidth:_.zl,isContentWidth:_.zl}});var sL=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return L};
_.f(sL,_.e);_.t=sL.prototype;_.t.computeHasLiveDescription=function(L){return!(L==null||!L.liveDescription)};
_.t.computeHasByline=function(L){return!(L==null||!L.byline)};
_.t.computeUsesAdButtonViewModel=function(L){return!!_.n(L==null?void 0:L.cta,IQN)};
_.t.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"}}}}}};
_.t.onYtToggleButton=function(L){var Z,N=(Z=this.data)==null?void 0:Z.videoReminderEntityKey;N&&this.ytdReduxBehavior.dispatch(_.Mr("upcomingEventReminderStateEntity",N,{key:N,state:L.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.t.attached=function(){this.updateChannelBanner()};
_.t.dataChanged=function(){this.updateChannelBanner()};
_.t.videoReminderStateChanged=function(){var L;this.videoReminderState&&_.n((L=this.data)==null?void 0:L.cta,_.qf)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.t.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var L=_.r$(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);L&&(L.startsWith("//")&&(L="https:"+L),this.hostElement.classList.add("channel-banner"),_.Ld(this.hostElement,{"--ytvmh-channel-banner":"url("+L+")"}))}else _.c("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.t.onPlayerReady=function(){this.onIronResize()};
_.t.maybeFlushDebouncer=function(){_.c("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(L){var Z;L=(Z=L.getElementsByTagName("yt-attributed-string"))==null?void 0:Z[0];Rif(L==null?void 0:L.polymerController)})};
_.t.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var L=_.QJ(this.hostElement).querySelector("#live-description"),Z;L&&((Z=this.data)==null?0:Z.shortLiveDescription)&&L.clientWidth<L.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
sL.prototype.onIronResize=sL.prototype.onIronResize;sL.prototype.videoReminderStateChanged=sL.prototype.videoReminderStateChanged;sL.prototype.dataChanged=sL.prototype.dataChanged;sL.prototype.onYtToggleButton=sL.prototype.onYtToggleButton;_.r([_.y(_.Eb),_.Q("design:type",Object)],sL.prototype,"ironResizableBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],sL.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],sL.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],sL.prototype,"data",void 0);_.r([_.Y({selectorArgs:["data.videoReminderEntityKey"],selector:SaA}),_.Q("design:type",Object)],sL.prototype,"videoReminderState",void 0);
_.r([_.Y({reflectToAttribute:!0,value:_.c("web_modern_buttons")}),_.Q("design:type",Boolean)],sL.prototype,"rounded",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.Q("design:type",Boolean)],sL.prototype,"hasLiveDescription",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.Q("design:type",Boolean)],sL.prototype,"hasByline",void 0);
_.r([_.Y({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.Q("design:type",String)],sL.prototype,"adRenderingContextType",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],sL.prototype,"isMasthead",void 0);_.r([_.Y({computed:"computeUsesAdButtonViewModel(data)"}),_.Q("design:type",Boolean)],sL.prototype,"usesAdButtonViewModel",void 0);
_.r([_.Y({reflectToAttribute:!0,value:_.c("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.Q("design:type",Boolean)],sL.prototype,"resizableAdBannerSafariFix",void 0);_.r([_.tJ("yt-formatted-string"),_.Q("design:type",Array)],sL.prototype,"formattedStrings",void 0);_.r([_.TX("#cta-button"),_.Q("design:type",HTMLElement)],sL.prototype,"ctaButton",void 0);
_.r([_.SA("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],sL.prototype,"onYtToggleButton",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sL.prototype,"dataChanged",null);_.r([_.iA("videoReminderState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sL.prototype,"videoReminderStateChanged",null);
_.r([_.SA("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sL.prototype,"onIronResize",null);_.r([_.P({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],sL);
_.m(sL,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(riV!==void 0)return riV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return riV=L},{mode:1});var QxQ;var jq=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};L.isLocked=!1;return L};
_.f(jq,_.e);_.t=jq.prototype;_.t.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.t.onExpandedChanged=function(){this.expanded&&_.Ad(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.t.onMouseOver=function(){this.maybeExpand()};
_.t.onTap=function(){this.maybeExpand()};
_.t.onExpandableTileExpanding=function(L){L!==this&&(this.expanded=!1)};
_.t.onExpandableTileLockAndCollapse=function(L){this.isLocked=!0;L!==this&&(this.expanded=!1)};
_.t.onExpandableTileUnlock=function(){this.isLocked=!1};
jq.prototype.onTap=jq.prototype.onTap;jq.prototype.onMouseOver=jq.prototype.onMouseOver;jq.prototype.onExpandedChanged=jq.prototype.onExpandedChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],jq.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],jq.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],jq.prototype,"expanded",void 0);_.r([_.Vr("expanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],jq.prototype,"onExpandedChanged",null);_.r([_.SA("mouseover"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],jq.prototype,"onMouseOver",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],jq.prototype,"onTap",null);
_.r([_.P({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],jq);
_.m(jq,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(QxQ!==void 0)return QxQ;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return QxQ=L},{mode:1});var X5h;var EL=function(){var L=_.e.apply(this,arguments)||this;L.buttonOverrides={style:"overlay"};L.useYtdPlayer=_.c("use_ytd_player_for_desktop_masthead");L.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};L.playbackFinished=!1;L.JSC$15672_playerManager=null;L.JSC$15672_mastheadCounter=new xuI;return L};
_.f(EL,_.e);_.t=EL.prototype;_.t.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"}}}};
_.t.created=function(){this.JSC$15672_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15672_playerManager=new Yv)};
_.t.ready=function(){var L=this;this.JSC$15672_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var Z=_.QJ(this.hostElement).querySelector("#player");this.useYtdPlayer?Z.style.display="none":(this.ytdPlayer.style.display="none",pUq(this.JSC$15672_playerManager,Z,function(){L.onPlaybackEnded()}),_.QJ(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var N;
((N=L.data)==null?0:N.navigationEndpoint)&&_.QT(L.hostElement,"yt-navigate",{endpoint:L.data.navigationEndpoint})}))};
_.t.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15672_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.t.attached=function(){var L=this;_.Uk(function(){L.maybePlayVideo()})};
_.t.maybePlayVideo=function(){var L=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$15672_playerManager.playVideo(),this.getPlayerPromise().then(function(){L.JSC$15672_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.t.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15672_playerManager.stopVideo()};
_.t.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var L,Z={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((L=this.data.playbackStartMs)!=null?L:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(Z);this.setupYtdPlayer()}else m0Q(this.JSC$15672_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(zLl(this.JSC$15672_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.t.getPlayerPromise=function(){return this.JSC$15672_playerManager.getPlayerPromise()};
_.t.onYtToggleButton=function(L){this.useYtdPlayer?this.toggleMute(L.detail.toggled):L.detail.toggled?this.JSC$15672_playerManager.mute():this.JSC$15672_playerManager.unMute()};
_.t.onYtNavigate=function(L){var Z=tq1(L.detail.endpoint),N=OJt(this.data.clickthroughReportingData);Z&&N&&(L.detail.endpoint.watchEndpoint?L.detail.tempData=N:_.pv(Z,N,30))};
_.t.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.t.onExpandedChanged=function(){this.expanded?(_.Ad(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.t.onMouseOver=function(){this.maybeExpand()};
_.t.onTap=function(){this.maybeExpand()};
_.t.onExpandableTileExpanding=function(L){L!==this&&(this.stopVideo(),this.expanded=!1)};
_.t.onExpandableTileLockAndCollapse=function(L){L!==this&&(this.isLocked=!0,this.expanded=!1)};
_.t.onExpandableTileUnlock=function(){this.isLocked=!1};
_.t.lockAndCollapseExpandableTiles=function(){_.XJ(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.t.unlockExpandableTiles=function(){_.XJ(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.t.setupYtdPlayer=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1)return N.yield(L.ytdPlayer.getPlayerPromise(),2);Z=N.yieldResult;Z.addEventListener("onStateChange",function(S){L.onPlayerStateChange(S)});
Z.addEventListener("onCueRangeExit",function(S){L.onCueRangeExit(S)});
_.w7(N)})};
_.t.onPlayerStateChange=function(L){if(L===1&&(L=this.ytdPlayer.getPlayer())){var Z=L.getCurrentTime(),N,S,u=Z+((S=(N=this.data)==null?void 0:N.playbackDurationMs)!=null?S:0)/1E3;L.addCueRange("playback",Z,u);this.JSC$15672_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.t.onCueRangeExit=function(L){L==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.t.toggleMute=function(L){var Z=this,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(Z.ytdPlayer.getPlayerPromise(),2);N=S.yieldResult;L?N.mute():N.unMute();_.w7(S)})};
EL.prototype.onTap=EL.prototype.onTap;EL.prototype.onMouseOver=EL.prototype.onMouseOver;EL.prototype.onExpandedChanged=EL.prototype.onExpandedChanged;EL.prototype.onYtNavigate=EL.prototype.onYtNavigate;EL.prototype.onYtToggleButton=EL.prototype.onYtToggleButton;EL.prototype.dataChanged=EL.prototype.dataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],EL.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],EL.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],EL.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],EL.prototype,"expanded",void 0);_.r([_.Y(),_.Q("design:type",Object)],EL.prototype,"buttonOverrides",void 0);
_.r([_.Y(),_.Q("design:type",Object)],EL.prototype,"useYtdPlayer",void 0);_.r([_.TX("#ytd-player"),_.Q("design:type",Object)],EL.prototype,"ytdPlayer",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EL.prototype,"dataChanged",null);_.r([_.SA("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],EL.prototype,"onYtToggleButton",null);
_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],EL.prototype,"onYtNavigate",null);_.r([_.Vr("expanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EL.prototype,"onExpandedChanged",null);_.r([_.SA("mouseover"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EL.prototype,"onMouseOver",null);
_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EL.prototype,"onTap",null);_.r([_.P({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],EL);
_.m(EL,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(X5h!==void 0)return X5h;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return X5h=L},{mode:1});var Ai5;var P7=function(){return _.e.apply(this,arguments)||this};
_.f(P7,_.e);P7.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
P7.prototype.onShow=function(){var L=_.QJ(this.hostElement).querySelector("#live-description"),Z;L&&((Z=this.data)==null?0:Z.shortLiveDescription)&&L.clientWidth<L.scrollWidth&&this.hostElement.classList.add("short-live-description")};
P7.prototype.onYtToggleButton=function(L){var Z,N=(Z=this.data)==null?void 0:Z.videoReminderEntityKey;N&&this.ytdReduxBehavior.dispatch(_.Mr("upcomingEventReminderStateEntity",N,{key:N,state:L.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
P7.prototype.videoReminderStateChanged=function(){var L;this.videoReminderState&&_.n((L=this.data)==null?void 0:L.cta,_.qf)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
P7.prototype.videoReminderStateChanged=P7.prototype.videoReminderStateChanged;P7.prototype.onYtToggleButton=P7.prototype.onYtToggleButton;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],P7.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],P7.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],P7.prototype,"data",void 0);
_.r([_.Y({selectorArgs:["data.videoReminderEntityKey"],selector:SaA}),_.Q("design:type",Object)],P7.prototype,"videoReminderState",void 0);_.r([_.SA("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],P7.prototype,"onYtToggleButton",null);_.r([_.iA("videoReminderState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],P7.prototype,"videoReminderStateChanged",null);
_.r([_.P({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],P7);
_.m(P7,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(Ai5!==void 0)return Ai5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Ai5=L},{mode:_.Qr("kevlar_poly_si_batch_j065")?1:2});var HBY;var pJ=function(){var L=_.e.apply(this,arguments)||this;L.useYtdPlayer=_.c("use_ytd_player_for_desktop_masthead");L.buttonOverrides={style:"overlay"};L.JSC$15680_playerManager=null;L.JSC$15680_mastheadCounter=new xuI;L.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return L};
_.f(pJ,_.e);_.t=pJ.prototype;_.t.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"}}}};
_.t.created=function(){this.JSC$15680_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15680_playerManager=new Yv)};
_.t.ready=function(){var L=this;this.JSC$15680_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var Z;(Z=this.embeddedPlayer)==null||Z.remove()}else{var N;(N=this.ytdPlayer)==null||N.remove();pUq(this.JSC$15680_playerManager,this.embeddedPlayer,function(){L.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){L.data&&L.data.navigationEndpoint&&_.QT(L.hostElement,"yt-navigate",{endpoint:L.data.navigationEndpoint})})}};
_.t.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15680_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.t.dataChanged=function(){var L=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var Z=!this.data.disableAutoPlayback,N,S={autoplay:Z,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((N=this.data.playbackStartMs)!=null?N:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(Z?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(S);this.setupYtdPlayer()}else m0Q(this.JSC$15680_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(zLl(this.JSC$15680_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15680_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.XJ(L.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");L.JSC$15680_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.t.getPlayerPromise=function(){return this.JSC$15680_playerManager.getPlayerPromise()};
_.t.onYtToggleButton=function(L){this.useYtdPlayer?this.toggleMute(L.detail.toggled):L.detail.toggled?this.JSC$15680_playerManager.mute():this.JSC$15680_playerManager.unMute()};
_.t.onYtNavigate=function(L){var Z=tq1(L.detail.endpoint),N=OJt(this.data.clickthroughReportingData);Z&&N&&(L.detail.endpoint.watchEndpoint?L.detail.tempData=N:_.pv(Z,N,30))};
_.t.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15680_playerManager.stopVideo()};
_.t.setupYtdPlayer=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1)return N.yield(L.ytdPlayer.getPlayerPromise(),2);Z=N.yieldResult;Z.addEventListener("onStateChange",function(S){L.onPlayerStateChange(S)});
Z.addEventListener("onCueRangeExit",function(S){L.onCueRangeExit(S)});
_.w7(N)})};
_.t.onPlayerStateChange=function(L){if(L===1&&(L=this.ytdPlayer.getPlayer())){var Z=L.getCurrentTime(),N,S,u=Z+((S=(N=this.data)==null?void 0:N.playbackDurationMs)!=null?S:0)/1E3;L.addCueRange("playback",Z,u);_.XJ(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15680_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.t.onCueRangeExit=function(L){L==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.t.toggleMute=function(L){var Z=this,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(Z.ytdPlayer.getPlayerPromise(),2);N=S.yieldResult;L?N.mute():N.unMute();_.w7(S)})};
_.gd.Object.defineProperties(pJ.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var L,Z;if(!((L=this.data)==null?0:(Z=L.accessibilityData)==null?0:Z.label))return"Ad primary link";var N,S;return _.iB("AD_TITLE",{title:(N=this.data)==null?void 0:(S=N.accessibilityData)==null?void 0:S.label})}}});
pJ.prototype.onYtMastheadHidden=pJ.prototype.onYtMastheadHidden;pJ.prototype.onYtNavigate=pJ.prototype.onYtNavigate;pJ.prototype.onYtToggleButton=pJ.prototype.onYtToggleButton;pJ.prototype.dataChanged=pJ.prototype.dataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],pJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],pJ.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],pJ.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],pJ.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],pJ.prototype,"useYtdPlayer",void 0);_.r([_.TX("ytd-toggle-button-renderer"),_.Q("design:type",Object)],pJ.prototype,"muteButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],pJ.prototype,"buttonOverrides",void 0);
_.r([_.w("data.accessibilityData.label"),_.Q("design:type",String),_.Q("design:paramtypes",[])],pJ.prototype,"titleAriaLabel",null);_.r([_.TX("#replay-button"),_.Q("design:type",Object)],pJ.prototype,"replayButton",void 0);_.r([_.TX("#player-container"),_.Q("design:type",Object)],pJ.prototype,"playerContainer",void 0);_.r([_.TX("#player"),_.Q("design:type",Object)],pJ.prototype,"embeddedPlayer",void 0);_.r([_.TX("#ytd-player"),_.Q("design:type",Object)],pJ.prototype,"ytdPlayer",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pJ.prototype,"dataChanged",null);_.r([_.SA("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],pJ.prototype,"onYtToggleButton",null);_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],pJ.prototype,"onYtNavigate",null);
_.r([_.SA("yt-masthead-hidden"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pJ.prototype,"onYtMastheadHidden",null);_.r([_.P({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],pJ);
_.m(pJ,"ytd-video-masthead-ad-primary-video-renderer",function(){if(HBY!==void 0)return HBY;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return HBY=L},{mode:2});var B6h;var ze=function(){var L=_.e.apply(this,arguments)||this;L.collapsed=!1;L.impressionResolver=_.hS();L.JSC$15684_activeViewMeasurementDataResolver=_.hS();L.actionMap={"yt-mute-ad-action":"handleMuteAd"};return L};
_.f(ze,_.e);_.t=ze.prototype;_.t.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"}}}};
_.t.created=function(){this.activeView=new $u(this.hostElement)};
_.t.ready=function(){var L=this;_.QJ(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){L.expandAd()});
this.hostElement.addEventListener("yt-action",function(Z){if(Z.detail.actionName==="yt-service-request"){var N=Z.detail.args[1];N.videoMastheadAdMuteCommand&&(L.collapseAd(N.videoMastheadAdMuteCommand.encryptedMastheadId),Z.stopPropagation())}})};
_.t.attached=function(){var L=this;_.Uk(function(){L.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(Z){if(!L.collapsed){Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())N=N.value,S2(N.baseUrl,N.attributionSrcMode);L.data.impressionCommand=void 0}});
this.JSC$15684_activeViewMeasurementDataResolver.promise.then(function(Z){De(L.activeView,Z)});
_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lz(L.activeView)})};
_.t.dataChanged=function(){var L;((L=this.data.impressionCommand)==null?0:L.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var Z;((Z=this.data)==null?0:Z.activeView)&&this.JSC$15684_activeViewMeasurementDataResolver.resolve(this.data.activeView);(L=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(L.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.t.computeWidescreen=function(L){var Z;return!!(L&&((Z=_.n(L,fQh))==null?0:Z.isWidescreen))};
_.t.computeExpandable=function(L){return!!(L&&L.length>0)};
_.t.onIronResize=function(){if(this.expandable){var L=_.QJ(this.hostElement).querySelector("#expandable-tile-container :first-child");L&&!L.expanded&&(L.expanded=!0)}};
_.t.handleMuteAd=function(){this.collapseAd(null)};
_.t.restoreCollapsedState=function(L){this.collapsed=_.tq().get("HIDDEN_MASTHEAD_ID")===L};
_.t.collapseAd=function(L){if(L){var Z=_.tq();Z.set("HIDDEN_MASTHEAD_ID",L);Z.save()}(L=_.QJ(this.hostElement).querySelector("#video"))&&_.QT(L,"yt-masthead-hidden");this.collapsed=!0};
_.t.expandAd=function(){var L=_.tq();L.set("HIDDEN_MASTHEAD_ID",!1);L.save();location.reload()};
_.t.detached=function(){_.c("stop_av_measurement_on_detach")&&lz(this.activeView)};
ze.prototype.onIronResize=ze.prototype.onIronResize;ze.prototype.dataChanged=ze.prototype.dataChanged;_.r([_.y(_.Eb),_.Q("design:type",Object)],ze.prototype,"ironResizableBehavior",void 0);_.r([_.y(_.AE),_.Q("design:type",Object)],ze.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],ze.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ze.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ze.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ze.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.Q("design:type",Boolean)],ze.prototype,"widescreen",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.Q("design:type",Boolean)],ze.prototype,"expandable",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ze.prototype,"collapsed",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ze.prototype,"dataChanged",null);_.r([_.SA("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ze.prototype,"onIronResize",null);_.r([_.P({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],ze);
_.m(ze,"ytd-video-masthead-ad-v3-renderer",function(){if(B6h!==void 0)return B6h;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return B6h=L},{mode:2});var mU=function(){return _.e.apply(this,arguments)||this};
_.f(mU,_.e);_.t=mU.prototype;_.t.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.t.ready=function(){var L=this;irf(function(){L.isAttached&&sS(L.JSC$15689_storedAdSlotMetadata,L.JSC$15689_storedAdLayoutMetadata,L.adSlotMetadata,L.adLayoutMetadata)&&wa(k1(),L.JSC$15689_storedAdSlotMetadata,L.JSC$15689_storedAdLayoutMetadata)})};
_.t.attached=function(){sS(this.JSC$15689_storedAdSlotMetadata,this.JSC$15689_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&yi0(k1(),this.JSC$15689_storedAdSlotMetadata,this.JSC$15689_storedAdLayoutMetadata)};
_.t.detached=function(){sS(this.JSC$15689_storedAdSlotMetadata,this.JSC$15689_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&wa(k1(),this.JSC$15689_storedAdSlotMetadata,this.JSC$15689_storedAdLayoutMetadata)};
_.t.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15689_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15689_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15689_storedAdLayoutMetadata!==void 0&&this.JSC$15689_storedAdSlotMetadata!==void 0&&wa(k1(),this.JSC$15689_storedAdSlotMetadata,this.JSC$15689_storedAdLayoutMetadata),yi0(k1(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15689_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15689_storedAdSlotMetadata=this.adSlotMetadata)};
_.gd.Object.defineProperties(mU.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.adLayoutMetadata}}});
mU.prototype.onAdMetadataChanged=mU.prototype.onAdMetadataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],mU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],mU.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],mU.prototype,"data",void 0);_.r([_.w("data.adLayoutMetadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mU.prototype,"adLayoutMetadata",null);
_.r([_.Y(),_.Q("design:type",Object)],mU.prototype,"adSlotMetadata",void 0);_.r([_.iA("adLayoutMetadata","adSlotMetadata"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mU.prototype,"onAdMetadataChanged",null);_.r([_.P({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],mU);
_.m(mU,"ytd-page-top-ad-layout-renderer",function(){if(CsO!==void 0)return CsO;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return CsO=
L},{mode:_.Qr("kevlar_poly_si_batch_j070")?1:2});var xz5;var Jk=function(){var L=_.e.apply(this,arguments)||this;L.noBottomMargin=!1;L.overlayDensity=0;L.typographyBump=!1;L.extractOverlay=!1;L.extractActionBar=!1;return L};
_.f(Jk,_.e);_.t=Jk.prototype;
_.t.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]]"}}}}}};
_.t.ready=function(){var L=this;irf(function(){L.isAttached&&L.adSlotMetadata&&k4L(k1(),L.adSlotMetadata)})};
_.t.attached=function(){if(this.adSlotMetadata){var L;if(this.adSlotMetadata===((L=this.data)==null?void 0:L.adSlotMetadata))fYh(k1(),this.adSlotMetadata);else{var Z;_.Q7(Error("Oh`"+this.adSlotMetadata+"`"+((Z=this.data)==null?void 0:Z.adSlotMetadata)))}}};
_.t.detached=function(){this.adSlotMetadata&&k4L(k1(),this.adSlotMetadata)};
_.t.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.t.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&k4L(k1(),this.adSlotMetadata),fYh(k1(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.gd.Object.defineProperties(Jk.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=_.n((L=this.data)==null?void 0:(Z=L.fulfillmentContent)==null?void 0:Z.fulfilledLayout,_.yvM),S;return(L=(S=_.n(N==null?void 0:N.renderingContent,kA5))==null?void 0:S.layout)?L.toLowerCase().replace(/_/g,"-"):""}}});
Jk.prototype.onAdSlotMetadataChanged=Jk.prototype.onAdSlotMetadataChanged;Jk.prototype.onTypographyBumpChanged=Jk.prototype.onTypographyBumpChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Jk.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Jk.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Jk.prototype,"rendererBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Jk.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Jk.prototype,"noBottomMargin",void 0);_.r([_.Y(),_.Q("design:type",Object)],Jk.prototype,"overlayDensity",void 0);_.r([_.Y(),_.Q("design:type",Object)],Jk.prototype,"typographyBump",void 0);_.r([_.Y(),_.Q("design:type",Object)],Jk.prototype,"extractOverlay",void 0);_.r([_.Y(),_.Q("design:type",Object)],Jk.prototype,"extractActionBar",void 0);
_.r([_.TX("ytd-in-feed-ad-layout-renderer"),_.Q("design:type",HTMLElement)],Jk.prototype,"inFeedAdLayoutRenderer",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Jk.prototype,"layout",null);_.r([_.iA("typographyBump"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Jk.prototype,"onTypographyBumpChanged",null);
_.r([_.iA("data.adSlotMetadata"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Jk.prototype,"onAdSlotMetadataChanged",null);_.r([_.P({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Jk);
_.m(Jk,"ytd-ad-slot-renderer",function(){if(xz5!==void 0)return xz5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return xz5=L},{mode:_.Qr("kevlar_poly_si_batch_j077")?
1:2});var qdO;var CJ=function(){return _.e.apply(this,arguments)||this};
_.f(CJ,_.e);_.t=CJ.prototype;_.t.created=function(){this.activeView=new $u(this.hostElement)};
_.t.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"}}}};
_.t.maybeComputeHref=function(){return null};
_.t.onTap=function(){};
_.t.onThumbnailContainerClick=function(L){this.onClick(L)};
_.t.onClick=function(L){var Z,N=(Z=this.data)==null?void 0:Z.navigationEndpoint;N&&_.n(N,_.so)&&(this.ytSparklesClickLocationBehavior.handleClick(N,L,!1),L.stopPropagation())};
_.t.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var L=_.O(this.data.impressionUrls),Z=L.next();!Z.done;Z=L.next())Z=Z.value,CAB(Z,Q_0(Z));this.data.activeView&&De(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",CJ.JSC$15697_DEFAULT_CLICK_LOCATION_BEHAVIOR,CJ.JSC$15697_CLICK_LOCATION_ID_MAP);this.thumbnail&&(L=this.thumbnail.getElementsByTagName("a"),L.length>0&&(L=L.namedItem("thumbnail"))&&L.removeAttribute("href"))}};
_.t.attached=function(){var L=this;_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lz(L.activeView)})};
_.t.detached=function(){_.c("stop_av_measurement_on_detach")&&lz(this.activeView)};
_.gd.Object.defineProperties(CJ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
CJ.prototype.dataChanged=CJ.prototype.dataChanged;CJ.prototype.onTap=CJ.prototype.onTap;CJ.JSC$15697_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
CJ.JSC$15697_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"}];_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],CJ.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],CJ.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],CJ.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.VK.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],CJ.prototype,"ytSparklesClickLocationBehavior",void 0);
_.r([_.Y({selector:_.KV}),_.Q("design:type",Object)],CJ.prototype,"isGridViewEnabled",void 0);_.r([_.w("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],CJ.prototype,"watchFeedBigThumbs",null);_.r([_.w("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.Q("design:type",String),_.Q("design:paramtypes",[])],CJ.prototype,"thumbnailWidth",null);_.r([_.Y(),_.Q("design:type",Object)],CJ.prototype,"data",void 0);
_.r([_.TX("ytd-thumbnail"),_.Q("design:type",HTMLElement)],CJ.prototype,"thumbnail",void 0);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],CJ.prototype,"onTap",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],CJ.prototype,"dataChanged",null);_.r([_.P({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],CJ);
_.m(CJ,"ytd-compact-promoted-video-renderer",function(){if(qdO!==void 0)return qdO;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return qdO=L},{mode:1});var LoM;_.l4("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var ra=function(){return _.e.apply(this,arguments)||this};
_.f(ra,_.e);ra.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ra.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ra.prototype,"data",void 0);_.r([_.P({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],ra);
_.m(ra,"ytd-search-pyv-renderer",function(){if(LoM!==void 0)return LoM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return LoM=L},{mode:1});var ZeY;_.l4("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var QR=function(){var L=_.e.apply(this,arguments)||this;L.roundedContainer=!0;L.JSC$15705_handleOpenPostCommentDialogActionAfterStamp=!1;L.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return L};
_.f(QR,_.e);_.t=QR.prototype;
_.t.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}}};
_.t.onStampFinished=function(){this.JSC$15705_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.t.handleSignalActionOpenPostCommentDialogAction=function(){var L=_.QJ(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");L?L.openDialog():this.JSC$15705_handleOpenPostCommentDialogActionAfterStamp=!0};
_.t.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.t.computeHideBorder=function(){return this.isInEngagementPanel};
_.t.computeIsCompact=function(){return this.isInEngagementPanel};
_.t.computeUsesCompactLockup=function(L){return L==="BACKSTAGE_SURFACE_TYPE_HOME"||L==="BACKSTAGE_SURFACE_TYPE_SEARCH"||L==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||L==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||L==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||L==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.t.computeUsesFullLockup=function(){var L,Z=(L=this.data)==null?void 0:L.post,N;L=(N=_.n(Z,PYt))==null?void 0:N.surface;var S;N=(S=_.n(Z,mXV))==null?void 0:S.originalPost;var u;if(S=L||((u=_.n(N,PYt))==null?void 0:u.surface))return!this.computeUsesCompactLockup(S)&&this.useUpdatedRepostUi;var T;return((T=_.n(Z,mXV))==null?void 0:T.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.gd.Object.defineProperties(QR.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((Z=_.n((L=this.data)==null?void 0:L.post,PYt))==null?void 0:Z.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.useUpdatedRepostUi}}});
QR.prototype.onYtCommentModerationPanelEmpty=QR.prototype.onYtCommentModerationPanelEmpty;QR.prototype.onStampFinished=QR.prototype.onStampFinished;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],QR.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],QR.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],QR.prototype,"roundedContainer",void 0);_.r([_.Y({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],QR.prototype,"hideBorder",void 0);_.r([_.Y({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],QR.prototype,"isCompact",void 0);
_.r([_.Y({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],QR.prototype,"usesFullLockup",void 0);_.r([_.SA("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],QR.prototype,"onStampFinished",null);
_.r([_.SA("ytd-comment-moderation-panel-empty"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],QR.prototype,"onYtCommentModerationPanelEmpty",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],QR.prototype,"isInEngagementPanel",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],QR.prototype,"useUpdatedRepostUi",null);
_.r([_.P({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],QR);
_.m(QR,"ytd-backstage-post-thread-renderer",function(){if(ZeY!==void 0)return ZeY;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ZeY=L},{mode:1});var NkM;var X3=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return L};
_.f(X3,_.e);X3.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
X3.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var L=this.data.thumbnail.thumbnails;this.isDarkTheme&&(L=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(L=_.r$(L,24,void 0,"height"))?L:void 0}};
X3.prototype.onDarkModeToggledAction=function(L){this.isDarkTheme=L};
X3.prototype.computeHasText=function(){var L;return!((L=this.data)==null||!L.text)};
_.gd.Object.defineProperties(X3.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.mY(this.bannerImageUrl))+'");'}}});
X3.prototype.computeHasText=X3.prototype.computeHasText;X3.prototype.computeBannerImageUrl=X3.prototype.computeBannerImageUrl;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],X3.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],X3.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],X3.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],X3.prototype,"isDarkTheme",void 0);_.r([_.Y(),_.Q("design:type",String)],X3.prototype,"bannerImageUrl",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.Q("design:type",Boolean)],X3.prototype,"hasText",void 0);_.r([_.iA("data","isDarkTheme"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],X3.prototype,"computeBannerImageUrl",null);
_.r([_.iA("data.text"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],X3.prototype,"computeHasText",null);_.r([_.w("bannerImageUrl"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],X3.prototype,"bannerStyle",null);_.r([_.P({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],X3);
_.m(X3,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(NkM!==void 0)return NkM;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return NkM=L},{mode:1});var SZY;var Ak=function(){return _.e.apply(this,arguments)||this};
_.f(Ak,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ak.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ak.prototype,"data",void 0);_.r([_.P({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],Ak);
_.m(Ak,"ytd-backstage-zero-state-renderer",function(){if(SZY!==void 0)return SZY;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return SZY=L},{mode:1});var ieI;var H7=function(){return _.e.apply(this,arguments)||this};
_.f(H7,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],H7.prototype,"data",void 0);_.r([_.Y({computed:"computeIcon_(data.icon)"}),_.Q("design:type",String)],H7.prototype,"icon",void 0);_.r([_.P({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],H7);
_.m(H7,"ytd-post-filter-zero-state-renderer",function(){if(ieI!==void 0)return ieI;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ieI=L},{mode:1});var unt;var TkY={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},B7=function(){return _.e.apply(this,arguments)||this};
_.f(B7,_.e);B7.prototype.configureRendererStamper=function(){return TkY};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],B7.prototype,"rendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],B7.prototype,"data",void 0);_.r([_.Y({computed:"computeIcon_(data.icon)"}),_.Q("design:type",String)],B7.prototype,"icon",void 0);_.r([_.P({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],B7);
_.m(B7,"ytd-post-scheduling-zero-state-renderer",function(){if(unt!==void 0)return unt;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return unt=L},{mode:1});var tPt;var x1=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return L};
_.f(x1,_.e);x1.prototype.onTabsActivate=function(L){this.data&&this.data.tabs&&_.QT(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[L.detail.selected].navigationEndpoint})};
x1.prototype.shouldShowTotalCount=function(L){return L&&L.totalCount!==void 0};
x1.prototype.handleUpdatePostsTotalCountAction=function(L){var Z=this.get(["data.tabs",1,"totalCount"]),N=this.get("updatePostsTotalCountAction.updateType",L);L=this.get("updatePostsTotalCountAction.number",L);Z!==void 0&&N!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&L&&(N==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(Z)+L):N==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(Z)-L))};
_.gd.Object.defineProperties(x1.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var L=0,Z=this.data.tabs.length;L<Z;L++)if(this.data.tabs[L].selected)return L;return 0}}});
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],x1.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],x1.prototype,"rendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],x1.prototype,"data",void 0);_.r([_.w("data.tabs"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],x1.prototype,"selected",null);_.r([_.P({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],x1);
_.m(x1,"ytd-post-stream-filter-renderer",function(){if(tPt!==void 0)return tPt;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return tPt=L},{mode:1});var OeI;var qP=function(){return _.e.apply(this,arguments)||this};
_.f(qP,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],qP.prototype,"kevlarBehaviors",void 0);_.r([_.Y(),_.Q("design:type",Object)],qP.prototype,"data",void 0);_.r([_.P({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],qP);
_.m(qP,"ytd-channel-age-gate-renderer",function(){if(OeI!==void 0)return OeI;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return OeI=L},{mode:1});var Woh;_.l4("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var LP=function(){var L=_.e.apply(this,arguments)||this;L.data=null;return L};
_.f(LP,_.e);LP.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.gd.Object.defineProperties(LP.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return((L=this.data)==null?0:(Z=L.title)==null?0:(N=Z.runs)==null?0:N.length)?147:160}}});
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],LP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],LP.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],LP.prototype,"imageSizePx",null);_.r([_.P({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],LP);
_.m(LP,"ytd-channel-owner-empty-state-renderer",function(){if(Woh!==void 0)return Woh;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Woh=L},{mode:1});var VPt;var be5;var ZL=function(){var L=_.e.apply(this,arguments)||this;L.boundSubmitSearch=function(){L.submitSearch()};
L.boundClearSearch=function(){L.clearSearch()};
return L};
_.f(ZL,_.e);_.t=ZL.prototype;_.t.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]]"}}}}}};
_.t.toggleClearButton=function(){this.hideClearButton=sFQ||!this.input.value};
_.t.submitOnEnterKeyUp=function(L){L.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.t.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.t.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.t.submit=function(){_.QT(this.hostElement,"search-query-changed",this.input.value)};
ZL.prototype.toggleClearButton=ZL.prototype.toggleClearButton;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],ZL.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ZL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ZL.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],ZL.prototype,"hideClearButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],ZL.prototype,"boundSubmitSearch",void 0);_.r([_.Y(),_.Q("design:type",Object)],ZL.prototype,"boundClearSearch",void 0);_.r([_.TX("#input"),_.Q("design:type",Object)],ZL.prototype,"input",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ZL.prototype,"toggleClearButton",null);
_.r([_.P({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],ZL);
_.m(ZL,"ytd-channel-switcher-search-box-renderer",function(){if(be5!==void 0)return be5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return be5=L},{mode:1});var MPY;var Nl=function(){var L=_.e.apply(this,arguments)||this;L.boundSubmit=function(){L.submit()};
return L};
_.f(Nl,_.e);_.t=Nl.prototype;_.t.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"}}}}};
_.t.ready=function(){var L=this;this.form.addEventListener("submit",function(Z){return L.onSubmit(Z)})};
_.t.onSubmit=function(L){L.preventDefault();return!1};
_.t.toggleClearButton=function(){this.hideClearButton=sFQ||!this.input.value};
_.t.submitOnEnterKeyUp=function(L){L.keyCode===13&&this.submit()};
_.t.submit=function(){var L=this.data.endpoint,Z=(0,_.Py.unsafeClone)(L);_.n(Z,_.iv)?_.n(Z,_.iv).query=this.input.value:_.n(Z,_.uv)&&(_.n(Z,_.uv).query=this.input.value);var N=_.n(Z.commandMetadata,_.Nj);(N==null?0:N.url)?(N.url=_.HK(N.url,"query",this.input.value),_.QT(this.hostElement,"yt-navigate",{endpoint:Z})):_.n(Z,vFQ)?(_.n(Z,vFQ).channelSwitcherQuery=this.input.value,_.GR().resolve(_.$s).resolveCommand(Z,{form:{element:this.hostElement}})):(L=Error("Ph`"+JSON.stringify(L)),_.CA(L))};
_.t.getUrl=function(L){return this.get("commandMetadata.webCommandMetadata.url",L)};
Nl.prototype.toggleClearButton=Nl.prototype.toggleClearButton;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Nl.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Nl.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Nl.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Nl.prototype,"hideClearButton",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Nl.prototype,"boundSubmit",void 0);_.r([_.TX("#form"),_.Q("design:type",HTMLFormElement)],Nl.prototype,"form",void 0);_.r([_.TX("#input"),_.Q("design:type",Object)],Nl.prototype,"input",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Nl.prototype,"toggleClearButton",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Nl);
_.m(Nl,"ytd-search-box-renderer",function(){if(MPY!==void 0)return MPY;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return MPY=L},{mode:2});var ST=function(){var L=_.e.apply(this,arguments)||this;L.showSearchBox=!0;return L};
_.f(ST,_.e);ST.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ST.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ST.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ST.prototype,"showSearchBox",void 0);_.r([_.P({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],ST);
_.m(ST,"ytd-channel-switcher-header-renderer",function(){if(VPt!==void 0)return VPt;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return VPt=L},{mode:1});var gi0;var Gmq;var iK=function(){var L=_.e.apply(this,arguments)||this;L.isDisplayed=!0;return L};
_.f(iK,_.e);_.t=iK.prototype;_.t.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.dataChanged=function(){this.isDisplayed=!0};
_.t.computeType=function(L){return L||"UNKNOWN"};
_.t.onYtServiceRequestCompleted=function(L){L.stopPropagation();this.isDisplayed=!1};
_.t.onClose=function(){this.isDisplayed=!1};
iK.prototype.onYtServiceRequestCompleted=iK.prototype.onYtServiceRequestCompleted;iK.prototype.dataChanged=iK.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],iK.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],iK.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],iK.prototype,"data",void 0);
_.r([_.Y({computed:"computeType(data.type)",reflectToAttribute:!0}),_.Q("design:type",String)],iK.prototype,"type",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],iK.prototype,"isDisplayed",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iK.prototype,"dataChanged",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],iK.prototype,"onYtServiceRequestCompleted",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],iK);
_.m(iK,"ytd-alert-with-button-renderer",function(){if(Gmq!==void 0)return Gmq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Gmq=L},{mode:1});var uK=function(){var L=_.e.apply(this,arguments)||this;L.noResult=!1;L.enableAlertBanner=!1;L.dismissedAlertBanner=!1;L.hideCreateChannelButton=!1;L.boundDismissAlertBanner=function(){L.dismissAlertBanner()};
L.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return L};
_.f(uK,_.e);_.t=uK.prototype;_.t.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.t.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.t.updateChannelSwitcherAction=function(L){var Z;L=(Z=_.n(L,G_5))==null?void 0:Z.page;_.n(L,gaL)!==void 0&&(this.data=_.n(L,gaL))};
_.t.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]]"}}}}}};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.t.searchQueryChanged=function(L,Z){if(this.data&&this.data.contents&&this.data.contents.length){L=[];var N=[];this.hideCreateChannelButton=this.noResult=!1;for(var S=document.querySelectorAll("ytd-account-item-renderer"),u=_.O(S),T=u.next();!T.done;T=u.next())T=T.value,N.push(T),T.style.display="block";this.resetRightBorder(N);if(Z){this.hideCreateChannelButton=!0;for(N=1;N<this.data.contents.length;N++)if(T=this.data.contents[N],_.n(T,$XN)){var W=void 0,V=void 0;u=(W=_.n(T,$XN))==null?void 0:(V=
W.accountName)==null?void 0:V.simpleText;V=W=void 0;T=(W=_.n(T,$XN))==null?void 0:(V=W.channelHandle)==null?void 0:V.simpleText;(W=S[N-1])&&u&&_.ML(u,Z)?L.push(W):_.c("enable_handle_search_on_channel_switcher")&&W&&T&&_.ML(T.toString(),Z.toString())?L.push(W):W.style.display="none"}L.length===0&&(this.noResult=!0);this.resetRightBorder(L)}}};
_.t.resetRightBorder=function(L){for(var Z=0;Z<L.length;Z++)L[Z].style.borderRight=!this.hideCreateChannelButton&&(Z+2)%3===0||this.hideCreateChannelButton&&(Z+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.t.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.t.setShowSearchBox=function(L){if(L&&L.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var Z=0;Z<L.contents.length;Z++)_.n(L.contents[Z],_.Ei)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.t.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.gd.Object.defineProperties(uK.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null?0:L.contents)}}});
uK.prototype.onContinuationItemsUpdated=uK.prototype.onContinuationItemsUpdated;uK.prototype.searchQueryChanged=uK.prototype.searchQueryChanged;uK.prototype.onDataChanged=uK.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],uK.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],uK.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.Sq),_.Q("design:type",Object)],uK.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],uK.prototype,"data",void 0);_.r([_.TX("ytd-channel-switcher-header-renderer"),_.Q("design:type",Object)],uK.prototype,"channelSwitcherHeaderRenderer",void 0);_.r([_.Y(),_.Q("design:type",Object)],uK.prototype,"noResult",void 0);
_.r([_.Y(),_.Q("design:type",Object)],uK.prototype,"enableAlertBanner",void 0);_.r([_.Y(),_.Q("design:type",Object)],uK.prototype,"dismissedAlertBanner",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],uK.prototype,"hideCreateChannelButton",void 0);_.r([_.w("data.contents"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],uK.prototype,"isLoading",null);_.r([_.Y(),_.Q("design:type",Object)],uK.prototype,"boundDismissAlertBanner",void 0);
_.r([_.Y({computed:"computeButtonOverride()"}),_.Q("design:type",Object)],uK.prototype,"buttonOverride",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],uK.prototype,"onDataChanged",null);_.r([_.SA("search-query-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,String]),_.Q("design:returntype")],uK.prototype,"searchQueryChanged",null);
_.r([_.SA("yt-next-continuation-data-updated"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],uK.prototype,"onContinuationItemsUpdated",null);_.r([_.P({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],uK);
_.m(uK,"ytd-channel-switcher-page-renderer",function(){if(gi0!==void 0)return gi0;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return gi0=L},{mode:1});var Fot;var $hh;var Tu=function(){var L=_.e.apply(this,arguments)||this;L.images=[];L.selectedImageIndex=0;return L};
_.f(Tu,_.e);_.t=Tu.prototype;
_.t.ready=function(){_.Gl(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Gl(this.JSC$15750_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Gl(this.JSC$15750_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Gl(this.JSC$15750_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.t.onThumbnailClick=function(L){if(L=L.event_.detail)this.selectedImageIndex=this.images.indexOf(L)};
_.t.updateImageThumbnails=function(L){L=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:L.event_.detail});this.images.splice(this.selectedImageIndex,1,L);this.images=[].concat(_.Pd(this.images))};
_.t.cancelImageRepositions=function(){this.selectedImageIndex=0;_.QT(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.t.saveImageRepositions=function(){this.selectedImageIndex=0;_.QT(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.gd.Object.defineProperties(Tu.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var L=this;return(this.images||[]).map(function(Z,N){return{image:Z,selected:N===L.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Tu.prototype,"ytRendererstamperBehavior",void 0);_.r([_.TX("ytd-backstage-image-preview-renderer"),_.Q("design:type",Object)],Tu.prototype,"JSC$15750_imagePreviewContainer",void 0);_.r([_.TX(".thumbnail-images-container"),_.Q("design:type",HTMLElement)],Tu.prototype,"thumbnailImagesContainer",void 0);_.r([_.Y(),_.Q("design:type",Array)],Tu.prototype,"images",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Tu.prototype,"repositionInstructions",void 0);_.r([_.Y(),_.Q("design:type",Object)],Tu.prototype,"selectedImageIndex",void 0);_.r([_.w("images","selectedImageIndex"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],Tu.prototype,"thumbnailRendererDatas",null);_.r([_.w("images","selectedImageIndex"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Tu.prototype,"selectedImageData",null);
_.r([_.P({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Tu);
_.m(Tu,"ytd-backstage-multi-image-reposition-renderer",function(){if($hh!==void 0)return $hh;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return $hh=L},{mode:1});var tt=function(L,Z){_.Kc.call(this);this.uploadUrl=L;this.channelId=Z;this.imagesUploadData=[]};
_.f(tt,_.Kc);tt.prototype.getAllUploadStatuses=function(){var L=this,Z,N,S;return _.b(function(u){if(u.nextAddress==1)return u.yield(Dht(L),2);Z=u.yieldResult;N=Z.get("succeed");S=Z.get("failed");return u.return(N.concat(S))})};
var vi5=function(L){var Z,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(Dht(L),2);Z=S.yieldResult;N=Z.get("failed");N.length>0&&lgV(L,N);return S.return(L.getAllUploadStatuses())})},Dht=function(L){var Z,N,S,u,T,W,V;
return _.b(function(M){if(M.nextAddress==1)return Z=new Map,M.yield(Promise.allSettled(L.imagesUploadData.map(function(G){return G.uploadPromise})),2);
N=M.yieldResult;S=[];u=_.O(N);for(T=u.next();!T.done;T=u.next())W=T.value,W.status==="fulfilled"&&S.push(W.value);V=L.imagesUploadData.map(function(G){return G.image}).filter(function(G){return S.every(function(D){return D.id!==G.id})});
Z.set("succeed",S);Z.set("failed",V);return M.return(Z)})},lgV=function(L,Z){Z=_.O(Z);
for(var N=Z.next();!N.done;N=Z.next()){var S=L;N=N.value;oit(S,N.id)>=0&&S.cancel(N.id);var u=new RIQ(N),T=_.i2h(S.uploadUrl,{"X-YouTube-ChannelId":S.channelId},N.imageBlob);u.transfer=T;u.uploadPromise=cDY(T,N);S.imagesUploadData.push(u);T.run()}};
tt.prototype.cancel=function(L){var Z=oit(this,L);Z!==-1&&((Z=this.imagesUploadData[Z].transfer)&&Z.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(N){return N.image.id!==L}))};
var oit=function(L,Z){return L.imagesUploadData.findIndex(function(N){return N.image.id===Z})},cDY=function(L,Z){return new Promise(function(N,S){L.listen("l",function(){var u=L.getResponseText();
u?(u=JSON.parse(u).encryptedBlobId,Z.encryptedBlobId=u,N(Z)):S("upload failed")});
L.listen("n",function(){S("upload failed")})})},RIQ=function(L){this.image=L};var HCt=function(L,Z,N,S,u){this.id=L;this.imageBlob=Z;this.localImageSrc=N;this.naturalWidth=S;this.naturalHeight=u;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 ni0=[".jpeg",".jpg",".png"],O5=function(){var L=_.e.apply(this,arguments)||this;L.showImagesPreview=!1;L.pollOptions=[];L.errorMessage="";L.optionPlaceholderText="";L.optionDefaultText="";L.JSC$15761_imageId=0;L.maxFileSizeMb=0;L.maxAspectRatio=0;L.invalidFileSizeError="";L.invalidAspectRatioError="";L.invalidFileTypeError="";L.imageSelector=new cb(null,"single_file",ni0);return L};
_.f(O5,_.e);_.t=O5.prototype;_.t.ready=function(){_.Gl(this.imageSelector,"j",this.onImageSelect,!1,this);_.Gl(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Gl(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.t.dataChanged=function(){var L,Z,N=_.n((L=this.data)==null?void 0:(Z=L.cellTemplate)==null?void 0:Z.onEmptyCellTap,Quq);if(N&&N.uploadUrl&&N.channelId){var S;this.maxFileSizeMb=((S=N.imageValidationInfo)==null?void 0:S.maxFileSizeMb)||0;var u;this.maxAspectRatio=((u=N.imageValidationInfo)==null?void 0:u.allowedMaxAspectRatio)||0;var T;this.invalidFileSizeError=this.getSimpleString((T=this.data)==null?void 0:T.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 tt(N.uploadUrl,N.channelId)}};
_.t.onEditorInfoChange=function(){this.optionPlaceholderText=_.jM(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.jM(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.t.observeAddImageError=function(){this.errorMessage!==""&&_.QT(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.t.onPollOptionsChange=function(){for(var L=!1,Z=[],N=0;N<this.pollOptions.length;N++){var S=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(N+1);this.pollOptions[N].placeholderText!==S?(L=!0,Z.push(Object.assign({},this.pollOptions[N],{placeholderText:S}))):Z.push(this.pollOptions[N])}L&&(this.pollOptions=Z);this.isValid()?_.QT(this.hostElement,"yt-commentbox-post-enable"):_.QT(this.hostElement,"yt-commentbox-post-disable")};
_.t.createPollOptions=function(L){var Z=[],N;L=(N=L==null?void 0:L.minPollOptions)!=null?N:0;for(N=0;N<L;N++)Z.push(this.createPollOption());return Z};
_.t.onImageSelect=function(L){var Z=this,N,S,u,T,W,V;return _.b(function(M){if(M.nextAddress==1){if(Z.selectedImageIndex===void 0)return M.jumpTo(0);N=L.files[0];Z.errorMessage="";S=Z.validateImage(N);if(S!=="")return Z.errorMessage=S,M.return();u=new Vn(Z.maxAspectRatio,!1,!0);return M.yield(u.transform(N),3)}if(M.nextAddress!=4)return T=M.yieldResult,T.transformedData?T.invalidAspectRatio?(Z.errorMessage=Z.invalidAspectRatioError,M.return()):M.yield(Bhw(Z.JSC$15761_imageId,L.files[0],T.transformedData),
4):(Z.errorMessage=Z.invalidFileTypeError,M.return());W=M.yieldResult;Z.JSC$15761_imageId++;lgV(Z.uploadManager,[W]);V=Object.assign({},Z.pollOptions[Z.selectedImageIndex],{image:W});Z.pollOptions.splice(Z.selectedImageIndex,1,V);Z.refreshPollOptions();_.QT(Z.hostElement,"yt-backstage-poll-image-select");_.w7(M)})};
_.t.validateImage=function(L){return L.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.t.refreshPollOptions=function(){this.pollOptions=[].concat(_.Pd(this.pollOptions))};
_.t.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Pd(this.pollOptions),[this.createPollOption()]))};
_.t.onRemovePollOption=function(L){var Z=this.pollOptions[L.model.index];Z&&Z.image&&this.uploadManager.cancel(Z.image.id);this.pollOptions.splice(L.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.QT(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.t.onTextInput=function(){this.refreshPollOptions()};
_.t.onImageButtonClick=function(L){this.selectedImageIndex=L.model.index;this.imageSelector.click()};
_.t.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.t.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.t.saveImageRepositions=function(L){L=L.event_.detail;for(var Z=0,N=[],S=_.O(this.pollOptions),u=S.next();!u.done;u=S.next())u=u.value,u.image!==void 0?(u=Object.assign({},u,{image:L[Z]}),N.push(u),Z++):N.push(u);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Pd(N))};
_.t.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 L=0,Z=_.O(this.pollOptions),N=Z.next();!N.done;N=Z.next())if(N=N.value,N.optionText.trim()!==""||N.image!==void 0){if(!N.image||this.hasCustomOptionText&&N.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;L++}return L>=Number(this.editorInfo.minPollOptions)};
_.t.getAllUploadStatuses=function(){var L=this,Z,N,S,u;return _.b(function(T){if(T.nextAddress==1)return T.yield(L.uploadManager.getAllUploadStatuses(),2);Z=T.yieldResult;N=_.O(Z);for(S=N.next();!S.done;S=N.next())if(u=S.value,u.encryptedBlobId===void 0)return T.return(vi5(L.uploadManager));return T.return(Z)})};
_.t.getPostCreateOptions=function(){for(var L=[],Z=_.O(this.pollOptions),N=Z.next();!N.done;N=Z.next())N=N.value,N.image!==void 0&&L.push({text:this.hasCustomOptionText?N.optionText:N.placeholderText,image:N.image});return L};
_.t.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.t.createButtonRenderer=function(L,Z){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:L,accessibilityData:{accessibilityData:{label:this.getSimpleString(L)}},isDisabled:Z}};
_.t.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.t.computeThumbnailRendererData=function(L){return L?{image:L,selected:!1}:void 0};
_.t.getSimpleString=function(L){return _.jM(L)};
_.t.updateOptionTextFromBinding=function(L){if(L.target){var Z=Array.from(_.QJ(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(L.target);if(Z>=0){var N;this.pollOptions[Z].optionText=(N=L.detail.value)!=null?N:""}}};
_.gd.Object.defineProperties(O5.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var L,Z;return this.pollOptions.length<((Z=(L=this.editorInfo)==null?void 0:L.maxPollOptions)!=null?Z:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(L){return L.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(L){return L.image}).map(function(L){return L.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(L){return L.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var L,Z=(L=this.data)==null?void 0:L.addOptionButtonText;return Z?this.createButtonRenderer(Z,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var L,Z=(L=this.data)==null?void 0:L.repositionImagesButtonLabel;return Z?this.createButtonRenderer(Z,!this.hasImages):void 0}}});
O5.prototype.onPollOptionsChange=O5.prototype.onPollOptionsChange;O5.prototype.observeAddImageError=O5.prototype.observeAddImageError;O5.prototype.onEditorInfoChange=O5.prototype.onEditorInfoChange;O5.prototype.dataChanged=O5.prototype.dataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],O5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.TX("ytd-backstage-multi-image-reposition-renderer"),_.Q("design:type",Object)],O5.prototype,"imageRepositionContainer",void 0);
_.r([_.Y(),_.Q("design:type",Object)],O5.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],O5.prototype,"editorInfo",void 0);_.r([_.Y(),_.Q("design:type",tt)],O5.prototype,"uploadManager",void 0);_.r([_.Y(),_.Q("design:type",Object)],O5.prototype,"showImagesPreview",void 0);_.r([_.Y(),_.Q("design:type",Array)],O5.prototype,"pollOptions",void 0);_.r([_.Y(),_.Q("design:type",Object)],O5.prototype,"errorMessage",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],O5.prototype,"dataChanged",null);_.r([_.Vr("editorInfo"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],O5.prototype,"onEditorInfoChange",null);_.r([_.iA("errorMessage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],O5.prototype,"observeAddImageError",null);
_.r([_.Vr("pollOptions"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],O5.prototype,"onPollOptionsChange",null);_.r([_.w("pollOptions","editorInfo"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],O5.prototype,"isAllowedToAddOption",null);_.r([_.w("pollOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],O5.prototype,"hasImages",null);
_.r([_.w("pollOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],O5.prototype,"imagesToReposition",null);_.r([_.w("pollOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],O5.prototype,"hasCustomOptionText",null);_.r([_.w("data","isAllowedToAddOption"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],O5.prototype,"addOptionButton",null);_.r([_.w("data","hasImages"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],O5.prototype,"repositionImagesButton",null);
_.r([_.P({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],O5);
_.m(O5,"ytd-backstage-image-poll-editor-renderer",function(){if(Fot!==void 0)return Fot;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Fot=L},{mode:2});var Kot={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 fgl;var WN=function(){var L=_.e.apply(this,arguments)||this;L.a11yConfig=Kot;L.imageDisplayOffsetTop=0;L.imageDisplayOffsetLeft=0;L.pickerDisplayOffsetTop=0;L.pickerDisplayOffsetLeft=0;L.showPreviewContainer=!0;L.startPicker=!1;L.repositionOptional=!1;L.editOnlyMode=!1;L.savedImageDisplayOffsetTop=0;L.savedImageDisplayOffsetLeft=0;return L};
_.f(WN,_.e);_.t=WN.prototype;_.t.created=function(){_.HD.requestAvailability()};
_.t.ready=function(){};
_.t.onArrowKeysDown=function(L){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){L.detail.keyboardEvent.preventDefault();var Z=0,N=0,S="";switch(L.detail.keyboardEvent.key){case "ArrowUp":x5P(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?S=this.a11yConfig.reachBottomOfImage:Z=this.imageHeight*.05*-1;break;case "ArrowDown":x5P(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?S=this.a11yConfig.reachTopOfImage:
Z=this.imageHeight*.05;break;case "ArrowLeft":x5P(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?S=this.a11yConfig.reachRightOfImage:N=this.imageWidth*.05*-1;break;case "ArrowRight":x5P(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?S=this.a11yConfig.reachLeftOfImage:N=this.imageWidth*.05}S&&_.iB(S)&&_.QT(this.hostElement,"iron-announce",{text:_.iB(S)});if(N||Z)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+Z)),L=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),L=_.iB(this.a11yConfig.imageVerticalPosition,{x_percent:""+L,y_percent:""+(100-L)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+N)),L=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),L=_.iB(this.a11yConfig.imageHorizontalPosition,{x_percent:""+L,y_percent:""+(100-L)})),L&&_.QT(this.hostElement,"iron-announce",{text:L})}};
_.t.getPreviewPosition=function(L,Z,N,S){return Math.round(100*(L+Z*.5-N)/S)};
_.t.calculateDisplayPosition=function(){var L=this.imageData.naturalWidth,Z=this.imageData.naturalHeight;this.displayScale=Math.max(200/L,200/Z);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var N=L*this.displayScale*this.imageData.previewCoordinates.left,S=Z*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=Z>L?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-N;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=L>Z?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-S;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=L*this.displayScale;this.imageHeight=Z*this.displayScale};
_.t.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.t.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.t.getSignedPosition=function(L,Z,N){return Z==="X"&&_.X7("HTML_DIR")==="rtl"?N==="-"?L+"px":L*-1+"px":N==="-"?L*-1+"px":L+"px"};
_.t.pickerMove=function(L){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var Z=this.pickerOffsetX-L.clientX,N=this.pickerOffsetY-L.clientY;this.pickerOffsetX=L.clientX;this.pickerOffsetY=L.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
N)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-Z))}};
_.t.pickerMoveStart=function(L){this.startPicker=!0;this.pickerOffsetX=L.clientX;this.pickerOffsetY=L.clientY};
_.t.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var L=this.generateCropPreview();L&&_.QT(this.hostElement,"ytd-backstage-image-preview-coordinates-update",L)};
_.t.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.QT(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.t.deleteImage=function(){_.QT(this.hostElement,"ytd-backstage-image-preview-delete")};
_.t.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.t.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var L=this.generateCropPreview();L&&_.QT(this.hostElement,"ytd-backstage-image-preview-coordinates-save",L)};
_.t.getPreviewOffset=function(L,Z,N){return Z&&L?(N==="X"&&_.X7("HTML_DIR")==="rtl"?300/Z*L:300/Z*L*-1)+"px":"0px"};
_.t.getSimpleText=function(L){return L?_.jM(L):""};
_.t.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}};
_.gd.Object.defineProperties(WN.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var L=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.iB(this.a11yConfig.imageVerticalPosition,{x_percent:""+L,y_percent:""+(100-L)})+"\n"+_.iB(this.a11yConfig.verticalRepositionInstruction)}L=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.iB(this.a11yConfig.imageHorizontalPosition,{x_percent:""+L,y_percent:""+(100-L)})+"\n"+_.iB(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 L,Z,N=(L=this.instruction)==null?void 0:(Z=L.previewInstruction)==null?void 0:Z.editButtonLabel;return N?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:N,accessibilityData:{accessibilityData:{label:this.getSimpleText(N)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S,u=this.editOnlyMode?(L=this.instruction)==null?void 0:(Z=L.editInstruction)==null?void 0:Z.saveImagesButtonLabel:(N=this.instruction)==null?void 0:(S=N.editInstruction)==null?void 0:S.saveButtonLabel;return u?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:u,accessibilityData:{accessibilityData:{label:this.getSimpleText(u)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=(L=this.instruction)==null?void 0:(Z=L.previewInstruction)==null?void 0:Z.deleteButtonLabel;return N?{size:"SIZE_SMALL",text:N,accessibilityData:{accessibilityData:{label:this.getSimpleText(N)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=(L=this.instruction)==null?void 0:(Z=L.editInstruction)==null?void 0:Z.cancelButtonLabel;L=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return N?{style:L,size:"SIZE_SMALL",text:N,accessibilityData:{accessibilityData:{label:this.getSimpleText(N)}}}: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"}}});
WN.prototype.onEditOnlyModeUpdate=WN.prototype.onEditOnlyModeUpdate;WN.prototype.onImageChange=WN.prototype.onImageChange;_.r([_.Y(),_.Q("design:type",HCt)],WN.prototype,"imageData",void 0);_.r([_.Y(),_.Q("design:type",Object)],WN.prototype,"instruction",void 0);_.r([_.Y(),_.Q("design:type",Object)],WN.prototype,"a11yConfig",void 0);_.r([_.Y(),_.Q("design:type",Number)],WN.prototype,"imageWidth",void 0);_.r([_.Y(),_.Q("design:type",Number)],WN.prototype,"imageHeight",void 0);
_.r([_.Y(),_.Q("design:type",Number)],WN.prototype,"displayScale",void 0);_.r([_.Y(),_.Q("design:type",Object)],WN.prototype,"imageDisplayOffsetTop",void 0);_.r([_.Y(),_.Q("design:type",Object)],WN.prototype,"imageDisplayOffsetLeft",void 0);_.r([_.Y(),_.Q("design:type",Object)],WN.prototype,"pickerDisplayOffsetTop",void 0);_.r([_.Y(),_.Q("design:type",Object)],WN.prototype,"pickerDisplayOffsetLeft",void 0);_.r([_.Y(),_.Q("design:type",Object)],WN.prototype,"showPreviewContainer",void 0);
_.r([_.Y(),_.Q("design:type",Object)],WN.prototype,"startPicker",void 0);_.r([_.Y(),_.Q("design:type",Number)],WN.prototype,"pickerOffsetX",void 0);_.r([_.Y(),_.Q("design:type",Number)],WN.prototype,"pickerOffsetY",void 0);_.r([_.Y(),_.Q("design:type",Object)],WN.prototype,"repositionOptional",void 0);_.r([_.Y(),_.Q("design:type",Object)],WN.prototype,"editOnlyMode",void 0);_.r([_.TX("#picker-container"),_.Q("design:type",HTMLElement)],WN.prototype,"JSC$15774_pickerContainer",void 0);
_.r([_.TX("#picker"),_.Q("design:type",HTMLElement)],WN.prototype,"picker",void 0);_.r([_.TX("#preview-clipper"),_.Q("design:type",HTMLElement)],WN.prototype,"previewClipper",void 0);_.r([_.TX("#image-in-picker-background"),_.Q("design:type",HTMLImageElement)],WN.prototype,"JSC$15774_imageInBackground",void 0);_.r([_.TX("#image-in-picker"),_.Q("design:type",HTMLImageElement)],WN.prototype,"JSC$15774_imageInPicker",void 0);
_.r([_.TX("#image-in-preview-clipper"),_.Q("design:type",HTMLImageElement)],WN.prototype,"JSC$15774_imageInPreviewClipper",void 0);_.r([_.w("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],WN.prototype,"altLabelForImage",null);_.r([_.w("imageHeight","imageWidth"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],WN.prototype,"pickerSize",null);
_.r([_.w("imageHeight","imageWidth"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],WN.prototype,"imageOrientationStyle",null);_.r([_.w("instruction"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],WN.prototype,"editButton",null);_.r([_.w("instruction","editOnlyMode"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],WN.prototype,"saveButton",null);_.r([_.w("instruction"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],WN.prototype,"deleteButton",null);
_.r([_.w("instruction","editOnlyMode"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],WN.prototype,"cancelButton",null);_.r([_.w("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],WN.prototype,"cropOffsetTop",null);_.r([_.w("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],WN.prototype,"cropOffsetLeft",null);
_.r([_.w("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],WN.prototype,"pickerBackgroundStyle",null);_.r([_.w("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],WN.prototype,"pickerDisplayStyle",null);_.r([_.w("cropOffsetLeft","cropOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],WN.prototype,"imageInPickerStyle",null);
_.r([_.w("cropOffsetLeft","cropOffsetTop","pickerSize"),_.Q("design:type",String),_.Q("design:paramtypes",[])],WN.prototype,"previewClipperStyle",null);_.r([_.Vr("imageData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],WN.prototype,"onImageChange",null);_.r([_.Vr("editOnlyMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],WN.prototype,"onEditOnlyModeUpdate",null);
_.r([_.w("showPreviewContainer"),_.Q("design:type",String),_.Q("design:paramtypes",[])],WN.prototype,"pickerModeStyle",null);_.r([_.P({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],WN);
_.m(WN,"ytd-backstage-image-preview-renderer",function(){if(fgl!==void 0)return fgl;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return fgl=L},{mode:1});var kmq;var yD0={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 wYl;var Uhq;var VA=function(){var L=_.e.apply(this,arguments)||this;L.a11yConfig=yD0;L.imageDisplayOffsetTop=0;L.imageDisplayOffsetLeft=0;L.pickerDisplayOffsetTop=0;L.pickerDisplayOffsetLeft=0;L.cropCoordinatesSaved=!1;L.previewSize=0;L.startPicker=!1;L.repositionOptional=!1;return L};
_.f(VA,_.e);_.t=VA.prototype;_.t.created=function(){_.HD.requestAvailability()};
_.t.ready=function(){};
_.t.onArrowKeysDown=function(L){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){L.detail.keyboardEvent.preventDefault();var Z=0,N=0,S="";switch(L.detail.keyboardEvent.key){case "ArrowUp":qH0(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?S=this.a11yConfig.reachBottomOfImage:Z=this.imageHeight*.05*-1;break;case "ArrowDown":qH0(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?S=this.a11yConfig.reachTopOfImage:
Z=this.imageHeight*.05;break;case "ArrowLeft":qH0(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?S=this.a11yConfig.reachRightOfImage:N=this.imageWidth*.05*-1;break;case "ArrowRight":qH0(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?S=this.a11yConfig.reachLeftOfImage:N=this.imageWidth*.05}S&&_.iB(S)&&_.QT(this.hostElement,"iron-announce",{text:_.iB(S)});if(N||Z)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+Z)),L=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),L=_.iB(this.a11yConfig.imageVerticalPosition,{x_percent:""+L,y_percent:""+(100-L)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+N)),L=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),L=_.iB(this.a11yConfig.imageHorizontalPosition,{x_percent:""+L,y_percent:""+(100-L)})),L&&_.QT(this.hostElement,"iron-announce",{text:L})}};
_.t.getPreviewPosition=function(L,Z,N,S){return Math.round(100*(L+Z*.5-N)/S)};
_.t.displayImage=function(){var L=this.JSC$15785_pickerContainer.getBoundingClientRect().width,Z=this.JSC$15785_pickerContainer.getBoundingClientRect().height,N=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),S=this.JSC$15785_imageInBackground.naturalWidth,u=this.JSC$15785_imageInBackground.naturalHeight;this.displayScale=Math.max(N/S,N/u);this.imageWidth=S*this.displayScale;this.imageHeight=u*this.displayScale;this.pickerDisplayOffsetLeft=(L-N)/2;this.pickerDisplayOffsetTop=
(Z-N)/2;this.imageDisplayOffsetLeft=u>S?this.pickerDisplayOffsetLeft:(L-this.imageWidth)/2;this.imageDisplayOffsetTop=S>u?this.pickerDisplayOffsetTop:(Z-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.t.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15785_imageInBackground.src=this.imageData.toString(),this.JSC$15785_imageInPicker.src=this.imageData.toString(),this.JSC$15785_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.t.getSignedPosition=function(L,Z,N){return Z==="X"&&_.X7("HTML_DIR")==="rtl"?N==="-"?L+"px":L*-1+"px":N==="-"?L*-1+"px":L+"px"};
_.t.pickerMove=function(L){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var Z=this.pickerOffsetX-L.clientX,N=this.pickerOffsetY-L.clientY;this.pickerOffsetX=L.clientX;this.pickerOffsetY=L.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
N)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-Z))}};
_.t.pickerMoveStart=function(L){this.startPicker=!0;this.pickerOffsetX=L.clientX;this.pickerOffsetY=L.clientY};
_.t.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.t.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.QT(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.t.getPreviewOffset=function(L,Z,N,S){return Z&&L&&N?(S==="X"&&_.X7("HTML_DIR")==="rtl"?N/Z*L:N/Z*L*-1)+"px":"0px"};
_.t.getSimpleText=function(L){return L?_.jM(L):""};
_.t.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var L=this.cropOffsetTop/this.imageHeight,Z=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,N=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,S=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.QJ(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.QT(this.hostElement,"yt-img-crop-coordinates-update",{top:L,right:Z,bottom:N,left:S})}};
_.gd.Object.defineProperties(VA.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var L=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.iB(this.a11yConfig.imageVerticalPosition,{x_percent:""+L,y_percent:""+(100-L)})+"\n"+_.iB(this.a11yConfig.verticalRepositionInstruction)}L=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.iB(this.a11yConfig.imageHorizontalPosition,{x_percent:""+L,y_percent:""+(100-L)})+"\n"+_.iB(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 L,Z=(L=this.learnMore.runs[0])==null?void 0:L.navigationEndpoint,N;return((N=_.n(Z,_.Lo))==null?void 0:N.url)||void 0}}}});
VA.prototype.onImageDataChange=VA.prototype.onImageDataChange;_.r([_.Y(),_.Q("design:type",Object)],VA.prototype,"imageData",void 0);_.r([_.Y(),_.Q("design:type",Object)],VA.prototype,"instruction",void 0);_.r([_.Y(),_.Q("design:type",Object)],VA.prototype,"a11yConfig",void 0);_.r([_.Y(),_.Q("design:type",Number)],VA.prototype,"imageWidth",void 0);_.r([_.Y(),_.Q("design:type",Number)],VA.prototype,"imageHeight",void 0);_.r([_.Y(),_.Q("design:type",Number)],VA.prototype,"displayScale",void 0);
_.r([_.Y(),_.Q("design:type",Object)],VA.prototype,"imageDisplayOffsetTop",void 0);_.r([_.Y(),_.Q("design:type",Object)],VA.prototype,"imageDisplayOffsetLeft",void 0);_.r([_.Y(),_.Q("design:type",Object)],VA.prototype,"pickerDisplayOffsetTop",void 0);_.r([_.Y(),_.Q("design:type",Object)],VA.prototype,"pickerDisplayOffsetLeft",void 0);_.r([_.Y(),_.Q("design:type",Object)],VA.prototype,"cropCoordinatesSaved",void 0);_.r([_.Y(),_.Q("design:type",Object)],VA.prototype,"previewSize",void 0);
_.r([_.Y(),_.Q("design:type",Object)],VA.prototype,"startPicker",void 0);_.r([_.Y(),_.Q("design:type",Number)],VA.prototype,"pickerOffsetX",void 0);_.r([_.Y(),_.Q("design:type",Number)],VA.prototype,"pickerOffsetY",void 0);_.r([_.Y(),_.Q("design:type",Object)],VA.prototype,"repositionOptional",void 0);_.r([_.TX("#picker-container"),_.Q("design:type",HTMLElement)],VA.prototype,"JSC$15785_pickerContainer",void 0);_.r([_.TX("#picker"),_.Q("design:type",HTMLElement)],VA.prototype,"picker",void 0);
_.r([_.TX("#image-in-picker-background"),_.Q("design:type",HTMLImageElement)],VA.prototype,"JSC$15785_imageInBackground",void 0);_.r([_.TX("#image-in-picker"),_.Q("design:type",HTMLImageElement)],VA.prototype,"JSC$15785_imageInPicker",void 0);_.r([_.TX("#image-in-preview-clipper"),_.Q("design:type",HTMLImageElement)],VA.prototype,"JSC$15785_imageInPreviewClipper",void 0);_.r([_.TX("#full-image-as-preview"),_.Q("design:type",HTMLImageElement)],VA.prototype,"imageAsPreview",void 0);
_.r([_.w("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],VA.prototype,"altLabelForImage",null);_.r([_.w("imageHeight","imageWidth"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],VA.prototype,"pickerSize",null);_.r([_.w("imageHeight","imageWidth"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],VA.prototype,"imageOrientationStyle",null);
_.r([_.w("instruction.previewInstruction.editButtonLabel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],VA.prototype,"editButton",null);_.r([_.w("instruction.editInstruction.saveButtonLabel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],VA.prototype,"saveButton",null);_.r([_.w("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],VA.prototype,"cropOffsetTop",null);
_.r([_.w("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],VA.prototype,"cropOffsetLeft",null);_.r([_.w("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],VA.prototype,"pickerBackgroundStyle",null);_.r([_.w("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],VA.prototype,"pickerDisplayStyle",null);
_.r([_.w("cropOffsetLeft","cropOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],VA.prototype,"imageInPickerStyle",null);_.r([_.w("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.Q("design:type",String),_.Q("design:paramtypes",[])],VA.prototype,"previewClipperStyle",null);_.r([_.iA("imageData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VA.prototype,"onImageDataChange",null);
_.r([_.w("cropCoordinatesSaved"),_.Q("design:type",String),_.Q("design:paramtypes",[])],VA.prototype,"pickerModeStyle",null);_.r([_.w("instruction.editInstruction.learnMore"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],VA.prototype,"learnMore",null);_.r([_.w("learnMore"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],VA.prototype,"learnMoreUrl",null);_.r([_.ch({is:"yt-img-crop-picker",disableElementRegistration:!0})],VA);
_.m(VA,"yt-img-crop-picker",function(){if(Uhq===void 0){var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;wYl===void 0&&(wYl=document.createElement("template"));var S=wYl;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Uhq=L}L=Uhq;return L},{mode:2});var bK=function(){var L=_.e.apply(this,arguments)||this;L.errorMessage="";L.hasPreview=!1;L.isBackstagePost=!1;L.dismissButtonOverrides={size:"XS"};return L};
_.f(bK,_.e);_.t=bK.prototype;_.t.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"}}}};
_.t.detached=function(){this.removeOverlay()};
_.t.setPreview=function(L){_.QJ(this.hostElement).querySelector("#preview-picker").imageData=L;this.hasPreview=!0;_.QT(this.hostElement,"yt-backstage-image-select-preview")};
_.t.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var L=_.QJ(this.hostElement).querySelector("#dropzone");L.classList.remove("dragover");L.classList.remove("error");_.QT(this.hostElement,"yt-backstage-image-select-cancel")};
_.t.setupOverlay=function(){var L=this.imageUploadEndpoint;this.removeOverlay();if(L&&L.imageValidationInfo){var Z=_.QJ(this.hostElement).querySelector("#dropzone"),N=_.QJ(this.hostElement).querySelector("#select");this.overlay=new MU(L.uploadUrl,L.channelId,L.imageValidationInfo.maxFileSizeMb,L.imageValidationInfo.allowedMaxAspectRatio,Z,N,!0);_.Gl(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Gl(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Gl(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Gl(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Gl(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.t.removeOverlay=function(){this.overlay&&(_.nc(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.nc(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.nc(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.nc(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.nc(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.t.onDragOver=function(L){var Z=_.QJ(this.hostElement).querySelector("#dropzone");_.Az(Z,"dragover",L.value)};
_.t.onPreview=function(L){this.setPreview(L.value)};
_.t.onImageError=function(L){if(L.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var Z;L=(Z=this.data)==null?void 0:Z.fileSizeError}else if(L.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var N;L=(N=this.data)==null?void 0:N.invalidError}else if(L.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var S;L=(S=this.data)==null?void 0:S.invalidAspectRatioError}else return;this.errorMessage=_.jM(L);_.QJ(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.t.onImageAlert=function(L){this.onImageError(L)};
_.t.uploadPromise=function(){var L=this,Z=this.overlay&&this.overlay.uploadPromise();if(Z)return Z.catch(function(){throw Error(L.data?_.jM(L.data.uploadFailureError):"");})};
_.gd.Object.defineProperties(bK.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var L,Z;if((L=this.data)==null?0:(Z=L.icon)==null?0:Z.iconType)return _.Bh(this.data.icon.iconType)}}});
bK.prototype.setupOverlay=bK.prototype.setupOverlay;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],bK.prototype,"rendererStamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],bK.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],bK.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],bK.prototype,"imageUploadEndpoint",void 0);_.r([_.Y(),_.Q("design:type",Object)],bK.prototype,"errorMessage",void 0);
_.r([_.Y(),_.Q("design:type",MU)],bK.prototype,"overlay",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],bK.prototype,"hasPreview",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],bK.prototype,"isBackstagePost",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],bK.prototype,"selectionCancel",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],bK.prototype,"previewCancel",null);
_.r([_.w("data.icon.iconType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],bK.prototype,"icon",null);_.r([_.Y(),_.Q("design:type",Object)],bK.prototype,"dismissButtonOverrides",void 0);_.r([_.iA("imageUploadEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bK.prototype,"setupOverlay",null);_.r([_.P({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],bK);
_.m(bK,"ytd-backstage-image-select-renderer",function(){if(kmq!==void 0)return kmq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return kmq=L},{mode:1});var YZN;var eI0;var Ml=function(){var L=_.e.apply(this,arguments)||this;L.selected=!1;return L};
_.f(Ml,_.e);_.t=Ml.prototype;_.t.computeSelected=function(L){return L==null?void 0:L.selected};
_.t.computeTransform=function(L,Z,N){var S,u,T=(u=(S=this.imageContainer)==null?void 0:S.getBoundingClientRect())!=null?u:{width:0,height:0};S=Math.max(T.width/Z,T.height/N);N=N*S*L.top;return"translateX("+this.getSignedPosition(Z*S*L.left,"X","-")+") translateY("+this.getSignedPosition(N,"Y","-")+")"};
_.t.getSignedPosition=function(L,Z,N){return Z==="X"&&_.X7("HTML_DIR")==="rtl"?N==="-"?L+"px":L*-1+"px":N==="-"?L*-1+"px":L+"px"};
_.t.onClick=function(){var L;_.QT(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(L=this.data)==null?void 0:L.image)};
_.t.onKeyPress=function(L){if(L.keyCode===13)this.onClick()};
_.gd.Object.defineProperties(Ml.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?void 0:(Z=L.image)==null?void 0:Z.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.data)!=null&&L.image){var Z;L=(Z=this.data)==null?void 0:Z.image;return L.previewCoordinates.top!==0||L.previewCoordinates.left!==0?(Z=this.computeTransform(L.previewCoordinates,L.naturalWidth,L.naturalHeight),L.naturalHeight>=L.naturalWidth?"width:inherit;transform:"+Z+";":"height:inherit;transform:"+Z+";"):L.naturalHeight>=L.naturalWidth?"width:inherit;":"height:inherit;"}}}});
Ml.prototype.onKeyPress=Ml.prototype.onKeyPress;_.r([_.TX(".image-container"),_.Q("design:type",HTMLElement)],Ml.prototype,"imageContainer",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ml.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.Q("design:type",Object)],Ml.prototype,"selected",void 0);_.r([_.w("data.image"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ml.prototype,"thumbnailUrl",null);
_.r([_.w("data.image","data.image.previewCoordinates"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ml.prototype,"thumbnailStyle",null);_.r([_.SA("keypress"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Ml.prototype,"onKeyPress",null);_.r([_.P({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],Ml);
_.m(Ml,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(eI0!==void 0)return eI0;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return eI0=L},{mode:2});var gC=function(L,Z,N){N=N===void 0?!1:N;_.Kc.call(this);var S=this;this.dropZoneOverlay=new Rw(L);this.selectOverlay=N?new cb(Z,"multiple_file",["image/*"]):new cb(Z,"single_file",["image/*"]);this.handler=new _.oM(this);_.Ky(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(Z,"click",function(){S.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.f(gC,_.Kc);gC.prototype.onChange=function(L){var Z;(Z=L.files)!=null&&Z.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:L.files}))};var Gu=function(){var L=_.e.apply(this,arguments)||this;L.addImageErrorMessage="";L.errorMessage="";L.images=[];L.selectedImageIndex=0;L.modern=_.c("web_modern_buttons");L.maxNumImagesPerPost=_.lQ("max_num_images_per_post_web_ui");L.JSC$15800_imageId=0;return L};
_.f(Gu,_.e);_.t=Gu.prototype;_.t.created=function(){var L=this;this.JSC$15800_ytReorderableController=new _.BWq(100,function(Z){L.handleDrop(Z)})};
_.t.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.QT(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.t.observeDragToReorder=function(){var L=this;if(this.showImagesPreview){var Z,N=izM(_.c3.getInstance(),(Z=this.data)==null?void 0:Z.dragToReorderTooltip);_.ro.addLowPriorityJob(function(){_.B2(L.hostElement,N,L.thumbnailDragDropArea)})}};
_.t.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}}};
_.t.computeThumbnail=function(L){return(L==null?void 0:L.localImageSrc)||void 0};
_.t.onRendererstamperFinished=function(){_.xsh(this.JSC$15800_ytReorderableController,_.QJ(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.QJ(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.t.handleDrop=function(L){var Z=L.currDragItem;if(Z!=null&&Z.data){L=this.images[this.selectedImageIndex];var N=Z.data.image,S=this.images.indexOf(N)||0;Z=_.EG(Z.parentNode.children,Z);this.images.splice(S,1);this.images.splice(Z,0,N);this.images=[].concat(_.Pd(this.images));this.selectedImageIndex=this.images.indexOf(L)}};
_.t.setUpImagePicker=function(){var L=this.imageUploadEndpoint;L&&L.imageValidationInfo&&(this.uploadManager=new tt(L.uploadUrl,L.channelId),this.initialPicker||(this.initialPicker=new gC(this.dropzone,this.selectLink,!0),_.Gl(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new gC(this.addImageButtonContainer,this.addImageSelectButton),_.Gl(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Gl(this.JSC$15800_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Gl(this.JSC$15800_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Gl(_.QJ(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.t.detached=function(){this.initialPicker&&(_.nc(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.nc(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.wX(this.JSC$15800_ytReorderableController)};
_.t.onInitialSelectImages=function(L){var Z=this;return _.b(function(N){return N.yield(Z.onSelectImages(L,!1),0)})};
_.t.onAddImage=function(L){var Z=this;return _.b(function(N){return N.yield(Z.onSelectImages(L,!0),0)})};
_.t.onSelectImages=function(L,Z){var N=this,S,u,T,W,V,M,G,D,l,v,R,K,U,d,h,E,A,J,C,X;return _.b(function(L1){switch(L1.nextAddress){case 1:Z?N.addImageErrorMessage="":(N.images=[],N.errorMessage="");S=L.detail;u=N.validateImages([].concat(_.Pd(S)));if(u!=="")return Z?N.addImageErrorMessage=u:N.errorMessage=u,L1.return();T=[].concat(_.Pd(S)).map(function(Fw){return(new Vn(N.maxAspectRatio,!1,!0)).transform(Fw)});
return L1.yield(Promise.allSettled(T),2);case 2:W=L1.yieldResult,V=_.O(W.entries()),M=V.next();case 3:if(M.done){L1.jumpTo(5);break}G=M.value;D=_.O(G);l=D.next().value;v=D.next().value;R=l;K=v;if(K.status!=="fulfilled"){h=d=U=void 0;Z?N.addImageErrorMessage=_.jM((U=N.data)==null?void 0:U.invalidError):N.errorMessage=N.errorMessage===""?_.jM((d=N.data)==null?void 0:d.invalidError):_.jM((h=N.data)==null?void 0:h.multiFileError);L1.jumpTo(4);break}E=K.value;E.cropped&&_.QT(N.hostElement,"yt-backstage-multi-image-cropped");
if(E.invalidAspectRatio){C=J=A=void 0;Z?N.addImageErrorMessage=_.jM((A=N.data)==null?void 0:A.invalidAspectRatioError):N.errorMessage=N.errorMessage===""?_.jM((J=N.data)==null?void 0:J.invalidAspectRatioError):_.jM((C=N.data)==null?void 0:C.multiFileError);L1.jumpTo(4);break}return L1.yield(Bhw(N.JSC$15800_imageId,L.detail[R],E.transformedData),8);case 8:X=L1.yieldResult,N.images.push(X),N.JSC$15800_imageId++;case 4:M=V.next();L1.jumpTo(3);break;case 5:if(N.errorMessage!==""||N.addImageErrorMessage!==
"")return L1.return();Z?lgV(N.uploadManager,[N.images[N.images.length-1]]):lgV(N.uploadManager,N.images);N.images=[].concat(_.Pd(N.images));N.selectedImageIndex=Z?Math.max(N.images.length-1,0):0;_.QT(N.hostElement,"yt-backstage-multi-image-select");_.w7(L1)}})};
_.t.onThumbnailClick=function(L){if(L=L.event_.detail)this.selectedImageIndex=this.images.indexOf(L)};
_.t.validateImages=function(L){if(L.length>this.maxNumImagesPerPost){var Z;return _.jM((Z=this.data)==null?void 0:Z.multiImageExceedMaxImageCountError)}var N=1048576*this.maxFileSizeMb;L=L.filter(function(T){return T.size>N}).length;
if(L===0)return"";var S,u;L=L>1?(S=this.data)==null?void 0:S.multiFileError:(u=this.data)==null?void 0:u.fileSizeError;return _.jM(L)};
_.t.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Pd(this.images));this.selectedImageIndex=0};
_.t.repositionImage=function(L){this.images[this.selectedImageIndex].previewCoordinates=L.event_.detail;this.images=[].concat(_.Pd(this.images))};
_.t.getAllUploadStatuses=function(){var L=this,Z,N,S,u;return _.b(function(T){if(T.nextAddress==1)return T.yield(L.uploadManager.getAllUploadStatuses(),2);Z=T.yieldResult;N=_.O(Z);for(S=N.next();!S.done;S=N.next())if(u=S.value,u.encryptedBlobId===void 0)return T.return(vi5(L.uploadManager));return T.return(Z)})};
_.t.hasImages=function(){return this.images.length>0};
_.t.cancel=function(){for(var L=this.uploadManager,Z=_.O(L.imagesUploadData),N=Z.next();!N.done;N=Z.next())L.cancel(N.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.QT(this.hostElement,"yt-backstage-multi-image-cancel")};
_.gd.Object.defineProperties(Gu.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.imageUploadEndpoint)==null?void 0:(Z=L.imageValidationInfo)==null?void 0:Z.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.imageUploadEndpoint)==null?void 0:(Z=L.imageValidationInfo)==null?void 0:Z.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var L,Z;if((L=this.data)==null?0:(Z=L.icon)==null?0:Z.iconType)return _.Bh(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.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 L=this;return(this.images||[]).map(function(Z,N){return{renderer:{image:Z,selected:N===L.selectedImageIndex}}})}}});
Gu.prototype.setUpImagePicker=Gu.prototype.setUpImagePicker;Gu.prototype.onRendererstamperFinished=Gu.prototype.onRendererstamperFinished;Gu.prototype.observeDragToReorder=Gu.prototype.observeDragToReorder;Gu.prototype.observeAddImageError=Gu.prototype.observeAddImageError;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Gu.prototype,"rendererStamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);
_.r([_.TX("#dropzone"),_.Q("design:type",HTMLElement)],Gu.prototype,"dropzone",void 0);_.r([_.TX("#select-link"),_.Q("design:type",HTMLElement)],Gu.prototype,"selectLink",void 0);_.r([_.TX("#thumbnail-drag-drop-area"),_.Q("design:type",HTMLElement)],Gu.prototype,"thumbnailDragDropArea",void 0);_.r([_.TX("#add-image-button-container"),_.Q("design:type",HTMLElement)],Gu.prototype,"addImageButtonContainer",void 0);
_.r([_.TX("#add-image-button"),_.Q("design:type",HTMLElement)],Gu.prototype,"addImageSelectButton",void 0);_.r([_.TX("#image-preview-container"),_.Q("design:type",Object)],Gu.prototype,"JSC$15800_imagePreviewContainer",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gu.prototype,"addImageErrorMessage",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gu.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gu.prototype,"errorMessage",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Gu.prototype,"imageUploadEndpoint",void 0);_.r([_.Y(),_.Q("design:type",Array)],Gu.prototype,"images",void 0);_.r([_.Y(),_.Q("design:type",gC)],Gu.prototype,"initialPicker",void 0);_.r([_.Y(),_.Q("design:type",gC)],Gu.prototype,"addImagePicker",void 0);_.r([_.Y(),_.Q("design:type",tt)],Gu.prototype,"uploadManager",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gu.prototype,"selectedImageIndex",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Gu.prototype,"modern",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Gu.prototype,"maxNumImagesPerPost",void 0);_.r([_.w("imageUploadEndpoint"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Gu.prototype,"maxAspectRatio",null);_.r([_.w("imageUploadEndpoint"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Gu.prototype,"maxFileSizeMb",null);
_.r([_.w("data.icon.iconType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Gu.prototype,"dropIcon",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Gu.prototype,"selectionCancel",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Gu.prototype,"previewCancel",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Gu.prototype,"dataForAddImageButton",null);
_.r([_.w("errorMessage"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Gu.prototype,"dropzoneClass",null);_.r([_.w("images"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Gu.prototype,"showImagesPreview",null);_.r([_.w("images"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Gu.prototype,"containMaxImages",null);_.r([_.iA("addImageErrorMessage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Gu.prototype,"observeAddImageError",null);
_.r([_.iA("showImagesPreview"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Gu.prototype,"observeDragToReorder",null);_.r([_.w("images","selectedImageIndex"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Gu.prototype,"selectedImageData",null);_.r([_.w("images","selectedImageIndex"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],Gu.prototype,"thumbnailRenderers",null);
_.r([_.SA("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Gu.prototype,"onRendererstamperFinished",null);_.r([_.iA("imageUploadEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Gu.prototype,"setUpImagePicker",null);_.r([_.P({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Gu);
_.m(Gu,"ytd-backstage-multi-image-select-renderer",function(){if(YZN!==void 0)return YZN;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return YZN=L},{mode:1});var IgN;var dhl;var agL;var Fc=function(){var L=_.e.apply(this,arguments)||this;L.boundCaptureFocus=function(Z){L.onCaptureFocus(Z)};
return L};
_.f(Fc,_.e);_.t=Fc.prototype;_.t.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.t.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.t.onCaptureFocus=function(L){_.sx(L).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.t.getIconType=function(L){return L?"yt-icons:"+L.toLowerCase():null};
_.t.onSelect=function(){var L;if((L=this.data)==null?0:L.onSelectCommand)if(_.c("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var Z;((Z=_.n(this.data.onSelectCommand.commandMetadata,_.Nj))==null?0:Z.url)?_.QT(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.GR().resolve(_.$s).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.gd.Object.defineProperties(Fc.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.jM(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}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Fc.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Fc.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Fc.prototype,"data",void 0);_.r([_.TX("#item"),_.Q("design:type",HTMLElement)],Fc.prototype,"item",void 0);_.r([_.w("data.label"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Fc.prototype,"label",null);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Fc.prototype,"value",null);_.r([_.P({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Fc);
_.m(Fc,"ytd-privacy-dropdown-item-renderer",function(){if(agL!==void 0)return agL;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return agL=L},{mode:1});var $2=function(){var L=_.e.apply(this,arguments)||this;L.value="";L.label="";L.disabled=!1;return L};
_.f($2,_.e);_.t=$2.prototype;_.t.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"}}}};
_.t.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.t.dataChanged=function(){this.reset()};
_.t.valueChanged=function(){var L;if(this.value&&(L=this.data)!=null&&L.entries){L=_.O(this.data.entries);for(var Z=L.next();!Z.done;Z=L.next())if((Z=this.getRendererForEntry(Z.value))&&this.getItemRendererValue(Z)===this.value){this.label=this.ytComponentBehavior.getSimpleString(Z.label);break}}};
_.t.setInitialLabel=function(){if(this.data&&this.data.entries)for(var L=_.O(this.data.entries),Z=L.next();!Z.done;Z=L.next())if(Z=this.getRendererForEntry(Z.value)){if(Z.isSelected){this.label=this.ytComponentBehavior.getSimpleString(Z.label);break}this.data.label&&(this.label=this.data.label)}};
_.t.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var L=_.O(this.data.entries),Z=L.next();!Z.done;Z=L.next()){Z=this.getRendererForEntry(Z.value);var N=void 0;if((N=Z)==null?0:N.isSelected)return this.getItemRendererValue(Z)||-1}return-1};
_.t.getItemRendererValue=function(L){return"stringValue"in L||"int32Value"in L?L.stringValue||L.int32Value||null:null};
_.t.getRendererForEntry=function(L){return L.dropdownItemRenderer||L.privacyDropdownItemRenderer||L.navigationDropdownItemRenderer||null};
_.t.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("value-changed",this.value))};
_.t.updateValueFromBinding=function(L){this.value=L.detail.value};
$2.prototype.valueChangedForBinding=$2.prototype.valueChangedForBinding;$2.prototype.valueChanged=$2.prototype.valueChanged;$2.prototype.dataChanged=$2.prototype.dataChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],$2.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],$2.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],$2.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],$2.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],$2.prototype,"value",void 0);_.r([_.Y(),_.Q("design:type",Object)],$2.prototype,"label",void 0);_.r([_.TX("#entries"),_.Q("design:type",Object)],$2.prototype,"entries",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],$2.prototype,"disabled",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$2.prototype,"dataChanged",null);
_.r([_.Vr("value"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$2.prototype,"valueChanged",null);_.r([_.iA("value"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$2.prototype,"valueChangedForBinding",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],$2);
_.m($2,"ytd-flat-dropdown-renderer",function(){if(dhl!==void 0)return dhl;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return dhl=L},{mode:1});var hIt;var DL=function(){var L=_.e.apply(this,arguments)||this;L.quizOptions=[];L.explanationPlaceholderText="";L.optionPlaceholderText="";L.correctAnswerIndex=-1;L.isMarkAnswerTooltipShown=!1;L.timer=0;return L};
_.f(DL,_.e);_.t=DL.prototype;_.t.dataChanged=function(){this.optionPlaceholderText=_.jM(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.jM(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.t.onMarkCorrectAnswer=function(L){var Z,N=((Z=this.quizOptions[this.correctAnswerIndex])==null?void 0:Z.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[L.model.index]=Object.assign({},this.quizOptions[L.model.index],{explanationText:N,isCorrect:!0});this.correctAnswerIndex=L.model.index;this.quizOptions=[].concat(_.Pd(this.quizOptions))};
_.t.updatePlaceholderTexts=function(){for(var L=!1,Z=[],N=0;N<this.quizOptions.length;N++){var S=this.optionPlaceholderText+" "+(N+1),u=void 0;((u=this.quizOptions[N])==null?void 0:u.placeholderText)!==S?(L=!0,Z.push(Object.assign({},this.quizOptions[N],{placeholderText:S}))):Z.push(this.quizOptions[N])}L&&(this.quizOptions=Z);this.isValid()?_.QT(this.hostElement,"yt-commentbox-post-enable"):_.QT(this.hostElement,"yt-commentbox-post-disable")};
_.t.getSimpleString=function(L){return _.jM(L)};
_.t.createQuizOptions=function(L){var Z=[],N;L=(N=L==null?void 0:L.minQuizOptions)!=null?N:0;for(N=0;N<L;N++)Z.push(this.createQuizOption());return Z};
_.t.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Pd(this.quizOptions),[this.createQuizOption()]))};
_.t.onInput=function(){this.quizOptions=[].concat(_.Pd(this.quizOptions))};
_.t.onExplanationInput=function(){_.QT(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.t.onRemoveQuizOption=function(L){this.quizOptions.splice(L.model.index,1);L.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:L.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.Pd(this.quizOptions));this.quizOptions.length===0&&_.QT(this.hostElement,"yt-quiz-attachment-dismiss")};
_.t.updateHintRenderer=function(){var L=this;clearTimeout(this.timer);this.timer=setTimeout(function(){L.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.t.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var L=0,Z=0,N=_.O(this.quizOptions),S=N.next();!S.done;S=N.next()){S=S.value;var u=void 0;if(((u=S.optionText)==null?void 0:u.trim())!==""||S.isCorrect){S.isCorrect&&Z++;u=void 0;if(this.hasCustomOptionText&&((u=S.optionText)==null?void 0:u.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;L++}}return L>=
Number(this.editorInfo.minQuizOptions)&&Z===1};
_.t.getPostCreateOptions=function(){for(var L=[],Z=_.O(this.quizOptions),N=Z.next();!N.done;N=Z.next()){N=N.value;var S=void 0;((S=N.optionText)==null?void 0:S.trim())!==""&&L.push({pollOption:{text:N.optionText,explanation:N.explanationText},isCorrect:N.isCorrect})}return L};
_.t.getExplanationText=function(){var L;return((L=this.quizOptions[this.correctAnswerIndex])==null?void 0:L.explanationText)||""};
_.t.maybeDisplayMarkAnswerEduToolTip=function(){var L,Z,N,S,u,T,W;this.shouldShowMarkAnswerTooltip()&&((L=this.editorInfo)==null?0:(Z=L.markAnswerButton)==null?0:(N=Z.buttonRenderer)==null?0:(S=N.hint)==null?0:(u=S.hintRenderer)==null?0:(T=u.content)==null?0:(W=T.bubbleHintRenderer)==null?0:W.text)&&(_.c3.getInstance(),L=nf(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,(L==null?void 0:L.length)>0&&this.optionSelectors&&_.LY(L[0],this.optionSelectors[0]))};
_.t.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var L=0,Z=_.O(this.quizOptions),N=Z.next();!N.done;N=Z.next()){N=N.value;var S=void 0;((S=N.optionText)==null?void 0:S.trim())!==""&&L++;if(N.isCorrect)return!1}return L<2?!1:!0};
_.t.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.t.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.t.updateOptionTextFromBinding=function(L){if(L.target){var Z=Array.from(_.QJ(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(L.target);if(Z>=0){var N;this.quizOptions[Z].optionText=(N=L.detail.value)!=null?N:""}}};
_.gd.Object.defineProperties(DL.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=(L=this.editorInfo)==null?void 0:(Z=L.addOptionButton)==null?void 0:Z.buttonRenderer;N&&(N.style="STYLE_SUGGESTIVE",N.size="SIZE_SMALL",N.isDisabled=!this.isAllowedToAddOption);return(N==null?0:N.text)?N:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var L,Z;return this.quizOptions.length<((Z=(L=this.editorInfo)==null?void 0:L.maxQuizOptions)!=null?Z:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(L){var Z;return(Z=L.optionText)==null?void 0:Z.trim()})}}});
DL.prototype.updatePlaceholderTexts=DL.prototype.updatePlaceholderTexts;DL.prototype.dataChanged=DL.prototype.dataChanged;_.r([_.Y(),_.Q("design:type",Object)],DL.prototype,"editorInfo",void 0);_.r([_.Y(),_.Q("design:type",Array)],DL.prototype,"quizOptions",void 0);_.r([_.Y(),_.Q("design:type",Object)],DL.prototype,"explanationPlaceholderText",void 0);_.r([_.tJ(".option-selector-button"),_.Q("design:type",Array)],DL.prototype,"optionSelectors",void 0);
_.r([_.Vr("editorInfo"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DL.prototype,"dataChanged",null);_.r([_.w("editorInfo","isAllowedToAddOption","quizOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DL.prototype,"addAnswerButton",null);_.r([_.w("editorInfo","quizOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DL.prototype,"isAllowedToAddOption",null);
_.r([_.Vr("quizOptions"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DL.prototype,"updatePlaceholderTexts",null);_.r([_.w("quizOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DL.prototype,"hasCustomOptionText",null);_.r([_.P({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],DL);
_.m(DL,"ytd-backstage-quiz-editor-renderer",function(){if(hIt!==void 0)return hIt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return hIt=L},{mode:2});var sGs;var jGl=(Z2.FIRSTDAYOFWEEK+1)%7;var Eil;var Pdl=[],pYl=0,zII=0;pYl=0;zII=24;if(.25*(zII-pYl)<0)Eil=[];else{for(var mhY=pYl;mhY<zII;mhY+=.25)Pdl.push(mhY);Eil=Pdl}var JDt=Eil.map(function(L){L=L*60*60;return{secondsSinceMidnight:L,text:(new hN(7)).format(new Date(0,0,0,0,0,L))}});var Cdq;var lK=function(){var L=_.e.apply(this,arguments)||this;L.skipNextOpenDialog=!1;L.errorMessage="";L.previousMonthLabel=_.iB("PREVIOUS_MONTH_LABEL");L.nextMonthLabel=_.iB("NEXT_MONTH_LABEL");return L};
_.f(lK,_.e);_.t=lK.prototype;_.t.attached=function(){var L=this,Z=new MutationObserver(function(){L.JSC$15842_calendarMain.scrollHeight>0&&(Z.disconnect(),L.calendarConfig&&L.calendarConfig.selectedDate&&L.scrollToDate())});
Z.observe(this.JSC$15842_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){Z.disconnect()},1E3)};
_.t.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.t.onDateTextChange=function(){if(this.calendarConfig){var L=this.validateDateText();L.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(L.details)):this.textbox.setAttribute("invalid","")}};
_.t.handleDayClick=function(L){L.model.day.date&&(this.commitDate(L.model.day.date),this.dialog.close())};
_.t.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var L=Ojx(this.calendarConfig.selectedDate,this.renderData);L!==void 0&&this.JSC$15842_calendarMain.scrollToIndex(L)}};
_.t.scrollToNextMonth=function(){this.JSC$15842_calendarMain.scrollToIndex(this.JSC$15842_calendarMain.firstVisibleIndex+1)};
_.t.scrollToPrevMonth=function(){this.JSC$15842_calendarMain.firstVisibleIndex===0&&this.JSC$15842_calendarMain.scrollTo(0,0);this.JSC$15842_calendarMain.scrollToIndex(this.JSC$15842_calendarMain.firstVisibleIndex-1)};
_.t.onFormSubmit=function(L){L.preventDefault();this.calendarConfig&&(L=this.validateDateText(),L.isValid&&(this.commitDate(L.details),this.dialog.close()))};
_.t.onEscOrClickingOutside=function(L){L=L.detail.path&&!!L.detail.path.length&&L.detail.path[0];if(L.classList.contains("ytd-calendar-date-picker")){L===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var Z=0;Z<this.dropdownButton.children.length;Z++)this.dropdownButton.children[Z]===L&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}L=this.textbox.value!==this.dateText;Z=this.validateDateText();L&&Z.isValid&&this.commitDate(Z.details);this.dialog.close();this.textbox.value=
this.dateText};
_.t.commitDate=function(L){this.calendarConfig&&(this.set("calendarConfig.selectedDate",L),_.QT(this.hostElement,"ytd-calendar-date-selected",L))};
_.t.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var L=this.textbox.value;var Z=new Date;L=(new yFs(2)).parse(L,Z,{validate:!0})===L.length?Tlx(Z):void 0;if(!L)return this.errorMessage=_.iB("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};Z=this.calendarConfig.start;var N=this.calendarConfig.end;if(Zjw(L,Z))return this.errorMessage=_.iB("ENTER_DATE_OR_LATER",{allowed_date:ukw(Z)}),{isValid:!1,details:void 0};if(Zjw(N,L))return this.errorMessage=
_.iB("ENTER_DATE_OR_EARLIER",{allowed_date:ukw(N)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:L}};
_.gd.Object.defineProperties(lK.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?ukw(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var L=this.calendarConfig,Z=[],N=0;N<7;N++)Z.push(Z2.NARROWWEEKDAYS[(N+jGl)%7]);N=[];for(var S=new Date(L.start.year,L.start.month);S.getFullYear()<L.end.year||S.getFullYear()===L.end.year&&S.getMonth()<=L.end.month;){var u=N,T=u.push,W=S.getFullYear(),V=S.getMonth(),M=L,G=void 0,D=[],l=Object.freeze({extraCssClass:"invisible",debugClass:""}),v=new Date(W,V),R=Tlx(v);v=v.getDay();for(var K=Tlx(new Date);R.month===
V;){v!==jGl&&G||(G=Array.from({length:7}).fill(l),D.push(G));var U={date:{year:W,month:V,day:R.day},extraCssClass:"",debugClass:""};M.selectedDate&&U.date&&LqF(U.date,M.selectedDate)&&(U.extraCssClass+=" selected");if(Zjw(R,M.start)||Zjw(M.end,R))U.extraCssClass+=" disabled";LqF(R,K)&&(U.extraCssClass+=" today");U.extraCssClass=U.extraCssClass.trim();G[(v-jGl+7)%7]=U;R=SJs(R);v=(v+1)%7}T.call(u,{weeks:D,monthLabel:Z2.SHORTMONTHS[V]+" "+W,year:W,month:V,monthLabelExtraCssClass:D[0][2]===l?"shift-down-label":
""});S.setMonth(S.getMonth()+1)}return{months:N,daysOfWeekLabel:Z}}}}});
lK.prototype.onEscOrClickingOutside=lK.prototype.onEscOrClickingOutside;lK.prototype.scrollToDate=lK.prototype.scrollToDate;_.r([_.Y(),_.Q("design:type",Object)],lK.prototype,"calendarConfig",void 0);_.r([_.Y(),_.Q("design:type",Object)],lK.prototype,"skipNextOpenDialog",void 0);_.r([_.Y(),_.Q("design:type",Object)],lK.prototype,"errorMessage",void 0);_.r([_.Y(),_.Q("design:type",Object)],lK.prototype,"previousMonthLabel",void 0);
_.r([_.Y(),_.Q("design:type",Object)],lK.prototype,"nextMonthLabel",void 0);_.r([_.TX("#textbox"),_.Q("design:type",HTMLInputElement)],lK.prototype,"textbox",void 0);_.r([_.TX("#calendar-dialog"),_.Q("design:type",Object)],lK.prototype,"dialog",void 0);_.r([_.TX("#calendar-main"),_.Q("design:type",Object)],lK.prototype,"JSC$15842_calendarMain",void 0);_.r([_.TX("#date-picker"),_.Q("design:type",HTMLElement)],lK.prototype,"dropdownButton",void 0);
_.r([_.w("calendarConfig.selectedDate"),_.Q("design:type",String),_.Q("design:paramtypes",[])],lK.prototype,"dateText",null);_.r([_.w("calendarConfig","calendarConfig.selectedDate"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],lK.prototype,"renderData",null);_.r([_.iA("renderData","calendarConfig.selectedDate"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lK.prototype,"scrollToDate",null);
_.r([_.SA("iron-overlay-canceled"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],lK.prototype,"onEscOrClickingOutside",null);_.r([_.ch({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],lK);
_.m(lK,"ytd-calendar-date-picker",function(){if(Cdq!==void 0)return Cdq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Cdq=L},{mode:2});var rDl=_.iB("UTC_OFFSET_FORMAT",{utc_offset:(new hN("Z")).format(new Date)}),QGl=(new Date).getTimezoneOffset()*-60,XYh=new Date,ADO,Het=ai(XYh.getTimezoneOffset());ADO=jVN(P4Q(Het,XYh));var BkY=_.iB("LOCAL_TIME_GMT_LABEL",{gmt_text:ADO.replace("+0","+").replace("-0","-").replace(":00","")}),vN=function(){var L=_.e.apply(this,arguments)||this;L.selectedTimeIndex=0;L.selectedTimezoneIndex=0;L.timeOfDayOptions=JDt;return L};
_.f(vN,_.e);_.t=vN.prototype;_.t.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var L=ijF();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=L,this.selectedTimeIndex=0;else{var Z=tx_(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},L,{selectedDate:Z.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(N){return N.secondsSinceMidnight===Z.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.t.onDatePicked=function(L){this.selectedDate=L.detail};
_.t.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.QT(this.hostElement,"ytd-date-time-selection-cancelled")};
_.t.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var L=this.selectedDate;L=new Date(L.year,L.month,L.day);_.QT(this.hostElement,"ytd-date-time-selection-update",Math.floor(L.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+L.getTimezoneOffset()*60))}};
_.t.getTimezoneFormat=function(L){return L.localizedDisplayText?L.localizedDisplayText:_.iB("TIMEZONE_FORMAT",{utc_offset_text:""+L.localizedUtcOffset,city_name:""+L.localizedName})};
_.t.updateSelectedTimeIndexFromBinding=function(L){this.selectedTimeIndex=L.detail.value};
_.t.updateSelectedTimezoneIndexFromBinding=function(L){this.selectedTimezoneIndex=L.detail.value};
_.gd.Object.defineProperties(vN.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var L=this.data.timezoneOptions;var Z={name:"Etc/Unknown",localizedName:_.iB("LOCAL_TIME_LABEL"),localizedUtcOffset:rDl,utcOffsetSec:""+QGl,localizedDisplayText:BkY};L?L.length&&L[0].name!==Z.name&&(L[0].localizedDisplayText||(Z.localizedDisplayText=""),L.unshift(Z)):L=[Z];return L}}},
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]}}});
vN.prototype.onDateTimeTimezoneChange=vN.prototype.onDateTimeTimezoneChange;vN.prototype.onDatePicked=vN.prototype.onDatePicked;vN.prototype.updateDefaultSelectedValue=vN.prototype.updateDefaultSelectedValue;_.r([_.Y(),_.Q("design:type",Object)],vN.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],vN.prototype,"calendarConfig",void 0);_.r([_.Y(),_.Q("design:type",Object)],vN.prototype,"selectedDate",void 0);_.r([_.Y(),_.Q("design:type",Object)],vN.prototype,"selectedTimeIndex",void 0);
_.r([_.Y(),_.Q("design:type",Object)],vN.prototype,"selectedTimezoneIndex",void 0);_.r([_.TX("#time-listbox"),_.Q("design:type",Object)],vN.prototype,"timeListBox",void 0);_.r([_.TX("#timezone-listbox"),_.Q("design:type",Object)],vN.prototype,"timezoneListBox",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],vN.prototype,"rendererStamperBehavior",void 0);_.r([_.w("data.timezoneOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vN.prototype,"timeZones",null);
_.r([_.Vr("data","timeZones"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vN.prototype,"updateDefaultSelectedValue",null);_.r([_.w("selectedTimezoneIndex","timeZones"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vN.prototype,"selectedTimezone",null);_.r([_.w("selectedTimeIndex"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vN.prototype,"selectedTime",null);
_.r([_.SA("ytd-calendar-date-selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],vN.prototype,"onDatePicked",null);_.r([_.iA("selectedTimezone","selectedTime","selectedDate"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vN.prototype,"onDateTimeTimezoneChange",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],vN);
_.m(vN,"ytd-date-time-picker-renderer",function(){if(sGs!==void 0)return sGs;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return sGs=L},{mode:1});var xhV;var od=function(){var L=_.e.apply(this,arguments)||this;L.boundOnTapDismissButton=function(){L.dismissTapHandler()};
L.dismissButtonOverrides={size:"XS"};return L};
_.f(od,_.e);od.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}}}}}};
od.prototype.dismissTapHandler=function(){_.QT(this.hostElement,"yt-backstage-attachment-dismissed")};
od.prototype.computeAttachmentType=function(L){return L?L.backstageImageRenderer?"image":L.videoRenderer?"video":"none":"none"};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],od.prototype,"attachmentPreview",void 0);_.r([_.Y(),_.Q("design:type",Object)],od.prototype,"dismissButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],od.prototype,"boundOnTapDismissButton",void 0);
_.r([_.Y(),_.Q("design:type",Object)],od.prototype,"dismissButtonOverrides",void 0);_.r([_.Y({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.Q("design:type",String)],od.prototype,"attachmentType",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],od);
_.m(od,"ytd-backstage-dismissable-attachment",function(){if(xhV!==void 0)return xhV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return xhV=L},{mode:1});var qZ0;var Rd=function(){var L=_.e.apply(this,arguments)||this;L.selectedVideoId=void 0;L.picker=void 0;L.dismissButtonOverrides={size:"XS"};L.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return L};
_.f(Rd,_.e);_.t=Rd.prototype;_.t.onServiceRequestCompleted=function(L){L.stopPropagation()};
_.t.handleAddVideoPreviewAction=function(L){L=this.get("addVideoPreviewAction",L);this.onGetVideoPreviewSuccess(L)};
_.t.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}}}}}};
_.t.onLaunchVideoPicker=function(L){var Z=this,N=_.jM(this.get("addVideoLinkAction.title",L)),S=this.get("addVideoLinkAction.onePickHostId",L);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",L);S&&(this.picker||(N=_.YVM(_.bNf(S).setTitle(N).addView(kDI()).addView(fbY()),function(u){Z.onPickVideo(u)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",L)||N.addView("youtube"),this.picker=N.build()),this.picker.setVisible(!0))};
_.t.onPickVideo=function(L){if(L)if(L.action==="cancel")_.QT(this.hostElement,"yt-video-link-button-cancel");else if(L.action==="picked"){L=L.docs;if(!L||L.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(L=(L==null?0:L.length)?L[0]:void 0)?L.id:void 0;this.setVideoPreview()}};
_.t.setVideoPreview=function(){var L=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){L.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.t.onGetVideoPreviewSuccess=function(L){if(L&&L.videoPreview&&L.cancelButton)this.videoPreview=L.videoPreview,this.cancelButton=L.cancelButton,_.QT(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.t.onGetVideoPreviewError=function(){this.cancel()};
_.t.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.QT(this.hostElement,"yt-video-link-cancel")};
_.t.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
Rd.prototype.onServiceRequestCompleted=Rd.prototype.onServiceRequestCompleted;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Rd.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Rd.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Rd.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Rd.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Rd.prototype,"videoPreview",void 0);_.r([_.Y(),_.Q("design:type",Object)],Rd.prototype,"cancelButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],Rd.prototype,"getVideoPreviewCommand",void 0);_.r([_.Y(),_.Q("design:type",Object)],Rd.prototype,"dismissButtonOverrides",void 0);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Rd.prototype,"onServiceRequestCompleted",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],Rd);
_.m(Rd,"ytd-backstage-video-link-attachment",function(){if(qZ0!==void 0)return qZ0;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return qZ0=L},{mode:1});var LvQ;var Z9M;var N8l;var cN=function(){return _.e.apply(this,arguments)||this};
_.f(cN,_.e);cN.prototype.dataChanged=function(){this.active=!1};
cN.prototype.onTap=function(){_.QT(this.hostElement,"yt-select-emoji-suggestion",this.data)};
cN.prototype.identity=function(L){return L};
_.gd.Object.defineProperties(cN.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S;if((L=this.data)==null?0:(Z=L.image)==null?0:(N=Z.thumbnails)==null?0:(S=N[0])==null?0:S.url)return L=this.data.image.thumbnails[0].url,L.startsWith("data:image/svg+xml")?hf(L):_.mY(L)}}});
cN.prototype.dataChanged=cN.prototype.dataChanged;_.r([_.Y(),_.Q("design:type",Object)],cN.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],cN.prototype,"active",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cN.prototype,"dataChanged",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],cN.prototype,"imageSrc",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],cN);
_.m(cN,"ytd-emoji-suggestion",function(){if(N8l!==void 0)return N8l;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return N8l=L},{mode:1});var S2V=/.*([:@#].*?)$/,nP=function(){var L=_.e.apply(this,arguments)||this;L.suggestions=[];L.suggestionIndex=-1;L.JSC$15870_lastSuggestionRange=null;return L};
_.f(nP,_.e);_.t=nP.prototype;_.t.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.t.getSuggestions=function(L){var Z=[],N=UMY(this.emojiManager,L.substr(0,3));if(N)for(var S in N)if(S.toLocaleLowerCase().indexOf(L)===0){var u=N[S];if(u&&u.emojiId){u=xX(this.emojiManager,u.emojiId);var T=void 0,W=void 0,V=void 0,M=void 0,G=((T=u)==null?0:T.isCustomEmoji)?(W=u)==null?void 0:(V=W.shortcuts)==null?void 0:V[0]:(M=u)==null?void 0:M.emojiId;T=void 0;Z.push({suggestion:{image:(T=u)==null?void 0:T.image,alt:G,text:S}});if(Z.length>=64)break}}return Z?Z.sort(function(D,l){return l.suggestion.text<
D.suggestion.text?-1:l.suggestion.text===D.suggestion.text?0:1}):null};
_.t.insertSuggestion=function(L){_.QT(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15870_lastSuggestionRange,text:L.alt});this.dropdown.opened=!1};
_.t.updateSuggestionsAtCaret=function(L){this.updateSuggestions(L,this.retrieveTextBeforeRange(L))};
_.t.offsetStartOfRangeBy=function(L,Z){L.startOffset>=Z&&L.setStart(L.startContainer,L.startOffset-Z)};
_.t.updateSuggestions=function(L,Z){var N=this;this.JSC$15870_lastSuggestionRange&&(this.JSC$15870_lastSuggestionRange.detach(),this.JSC$15870_lastSuggestionRange=null);if((Z=S2V.exec(Z))&&Z.length&&(Z=Z[Z.length-1].toLocaleLowerCase(),Z.length>2||Z===":_")&&(this.offsetStartOfRangeBy(L,Z.length),this.JSC$15870_lastSuggestionRange=L,(L=this.getSuggestions(Z))&&L.length)){this.suggestions=L;_.bN(this,function(){N.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(L.length-1);return}this.dropdown.opened=!1};
_.t.onKeyDown=function(L){if(this.dropdown.opened)switch(L.key){case "Escape":this.dropdown.opened=!1;L.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);L.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);L.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),L.preventDefault()}};
_.t.onKeyUp=function(L,Z){switch(L.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(Z);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(Z)}};
_.t.onKeyPress=function(L){L.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),L.preventDefault())};
_.t.changeSuggestionIndex=function(L){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(L+this.suggestions.length)%this.suggestions.length,L=this.dropdownContent.children[this.suggestionIndex],L.active=!0,this.dropdownContent.scrollTop=L.offsetTop)};
_.t.retrieveTextBeforeRange=function(L){var Z=L.startContainer;return Z&&Z.nodeType===Node.TEXT_NODE?Z.textContent.substr(0,L.startOffset):""};
nP.prototype.onKeyPress=nP.prototype.onKeyPress;nP.prototype.onKeyUp=nP.prototype.onKeyUp;nP.prototype.onKeyDown=nP.prototype.onKeyDown;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],nP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Array)],nP.prototype,"suggestions",void 0);_.r([_.Y(),_.Q("design:type",_.HS)],nP.prototype,"emojiManager",void 0);_.r([_.Y(),_.Q("design:type",Number)],nP.prototype,"verticalSuggestionsOffset",void 0);
_.r([_.TX("#dropdown"),_.Q("design:type",Object)],nP.prototype,"dropdown",void 0);_.r([_.TX("#dropdown-content"),_.Q("design:type",HTMLDivElement)],nP.prototype,"dropdownContent",void 0);_.r([_.SA("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent]),_.Q("design:returntype")],nP.prototype,"onKeyDown",null);_.r([_.SA("keyup"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent,Range]),_.Q("design:returntype")],nP.prototype,"onKeyUp",null);
_.r([_.SA("keypress"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent]),_.Q("design:returntype")],nP.prototype,"onKeyPress",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-emoji-input"})],nP);
_.m(nP,"ytd-emoji-input",function(){if(Z9M!==void 0)return Z9M;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Z9M=L},{mode:2});var i9t;var KP=function(){var L=_.e.apply(this,arguments)||this;L.hasMaxOptions=!1;return L};
_.f(KP,_.e);_.t=KP.prototype;_.t.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.t.setPrefilledChoices=function(L){var Z=this;this.set("pollOptions",[]);var N;for(N=0;N<Math.min(L.length,this.data.maxPollOptions);N++)this.push("pollOptions",L[N].substring(0,this.data.maxPollOptionChars));for(;N<this.data.minPollOptions;N++)this.push("pollOptions","");this.hasMaxOptions=N>=this.data.maxPollOptions;_.bN(this,function(){for(var S=Z.pollOptions,u=_.QJ(Z.hostElement).querySelectorAll(".poll-option-input"),T=0;T<u.length;T++)u[T].value=S[T]})};
_.t.focusChanged=function(){_.Ld(this.hostElement)};
_.t.onInput=function(){var L=this;_.YD(this,"onInput",function(){L.isValid()?_.QT(L.hostElement,"yt-commentbox-post-enable"):_.QT(L.hostElement,"yt-commentbox-post-disable")},300)};
_.t.setPollOptions=function(){var L=[],Z,N=((Z=this.data)==null?0:Z.minPollOptions)?this.data.minPollOptions:0;for(Z=0;Z<N;Z++)L.push("");return L};
_.t.addPollOption=function(){var L=this;_.QT(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.ro.addLowPriorityJob(function(){var Z;(Z=_.QJ(L.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||Z.focus()})};
_.t.onRemovePollOption=function(L){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.QT(this.hostElement,"yt-poll-attachment-dismiss")):(L=this.repeat.indexForElement(L.target.parentNode),L!==null&&(this.splice("pollOptions",L,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.QT(this.hostElement,"yt-commentbox-post-enable"))))};
_.t.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.t.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var L=0,Z=this.pollOptions.length;L<Z;L++)if(this.pollOptions[L].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.t.getPollOptions=function(){return this.pollOptions};
_.t.setPollOptionsFromInputs=function(){for(var L=_.QJ(this.hostElement).querySelectorAll(".poll-option-input"),Z=0;Z<L.length;Z++)this.pollOptions[Z]=L[Z].value.trim()};
_.t.clearPollOptions=function(){var L=_.QJ(this.hostElement).querySelectorAll(".poll-option-input");L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next())Z.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.t.getSimpleString=function(L){return _.jM(L)};
_.t.updateValueFromBinding=function(L){if(L.target&&this.pollOptions){var Z=Array.from(_.QJ(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(L.target);if(Z>=0){var N;this.pollOptions[Z]=(N=L.detail.value)!=null?N:"";this.notifyPath("pollOptions."+Z)}}};
KP.prototype.dataChanged=KP.prototype.dataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],KP.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Array)],KP.prototype,"pollOptions",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],KP.prototype,"hasMaxOptions",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],KP.prototype,"enableCreationBox",void 0);
_.r([_.TX("#repeat"),_.Q("design:type",lA)],KP.prototype,"repeat",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],KP.prototype,"dataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-poll-attachment"})],KP);
_.m(KP,"ytd-poll-attachment",function(){if(i9t!==void 0)return i9t;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return i9t=L},{mode:2});var uHQ;var T8h;var tEt;var O9q;var fP=function(){return _.e.apply(this,arguments)||this};
_.f(fP,_.e);_.gd.Object.defineProperties(fP.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],fP.prototype,"rendererBehaviors",void 0);_.r([_.Y(),_.Q("design:type",Object)],fP.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],fP.prototype,"focused",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("focused"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],fP.prototype,"ariaSelected",null);_.r([_.ch({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],fP);
_.m(fP,"yt-user-mention-suggestion-renderer",function(){if(O9q===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;tEt===void 0&&(tEt=document.createElement("template"));var S=tEt;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);O9q=L}L=O9q;return L},{mode:2});var Wv5;var VEL;var k2=function(){var L=_.e.apply(this,arguments)||this;L.focusedSuggestionIndex=-1;return L};
_.f(k2,_.e);_.t=k2.prototype;_.t.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.t.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.t.setFocusedSuggestionIndex=function(L){!this.data||!this.data.suggestions||L<0||L>=this.data.suggestions.length||(this.focusedSuggestionIndex=L,L=this.getSuggestionId(L),this._setFocusedSuggestionId(L))};
_.t.advanceSuggestion=function(L){this.focusedSuggestionIndex===-1||L!==-1&&L!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+L),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.t.ensureSuggestionVisible=function(L){L=this.getSuggestionId(L);L=_.QJ(this.hostElement).querySelector("[id="+L+"]");L!=null&&(L.offsetTop<this.hostElement.scrollTop?L.scrollIntoView(!0):L.offsetTop+L.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&L.scrollIntoView(!1))};
_.t.getSuggestionId=function(L){return"user-mention-suggestion-"+L};
_.t.onSuggestionTap=function(L){var Z=_.n(L.model.item,moO);this.ytRendererBehavior.logExplicitClick(Z);_.QT(this.hostElement,"yt-user-mention-suggestion-selected",{data:Z,index:L.model.index})};
_.t.onSuggestionMouseMove=function(L){L.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(L.model.index)};
_.t.isSuggestionFocused=function(L,Z){return L===Z};
_.t.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.t.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("focused-suggestion-id-changed",this.focusedSuggestionId))};
k2.prototype.focusedSuggestionIdChangedForBinding=k2.prototype.focusedSuggestionIdChangedForBinding;k2.prototype.onDomChange=k2.prototype.onDomChange;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],k2.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],k2.prototype,"focusedSuggestionIndex",void 0);_.r([_.Y({readOnly:!0}),_.Q("design:type",String)],k2.prototype,"focusedSuggestionId",void 0);
_.r([_.SA("dom-change"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],k2.prototype,"onDomChange",null);_.r([_.iA("focusedSuggestionId"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],k2.prototype,"focusedSuggestionIdChangedForBinding",null);_.r([_.ch({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],k2);
_.m(k2,"yt-user-mention-suggestions-dropdown",function(){if(VEL===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Wv5===void 0&&(Wv5=document.createElement("template"));var S=Wv5;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);VEL=L}L=VEL;return L},{mode:2});var yA=function(){var L=_.e.apply(this,arguments)||this;L.suggestionsResponse=null;L.activeMention=null;L.selectionChangeListener=L.onSelectionChange.bind(L);L.handlesEnabled=_.c("enable_handles_in_mention_suggest_posts");L.handlesInMentionSuggestionsEnabled=_.c("handles_in_mention_suggest_posts");L.zeroPrefixMentionSuggestionEnabled=_.c("enable_zero_prefix_mention_suggestion_web");L.pendingQuery=null;L.flowNonce=null;return L};
_.f(yA,_.e);_.t=yA.prototype;_.t.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.t.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.t.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.t.hasSuggestions=function(L){return!!(L&&L.suggestions&&L.suggestions.length>0)};
_.t.onInput=function(){var L=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var Z=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),N=this.activeMention.JSC$11350_getText().slice(-1)===" ",S=this.activeMention.JSC$11350_getText().slice(-2,-1)===" ",u="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11350_getText().slice(-2,
-1))>=0;u=this.zeroPrefixMentionSuggestionEnabled&&u;if(this.activeMention.isCollapsed()||(Z||S||u)&&N)this.cancelActiveMention();else{var T=this.activeMention.JSC$11350_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.YD(this,"requestSuggestions",function(){L.requestSuggestions(T)},100)}}}};
_.t.onServiceRequestSent=function(L){L.stopPropagation()};
_.t.onServiceRequestCompleted=function(L){L.stopPropagation();L=L.detail.data;L.query&&(!this.pendingQuery||this.pendingQuery!==L.query)||!this.zeroPrefixMentionSuggestionEnabled&&L.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=L,this.hasSuggestions(L)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.t.onServiceRequestError=function(L){L.stopPropagation()};
_.t.onUserMentionSuggestionSelected=function(L){this.selectSuggestion(L.detail.data,L.detail.index)};
_.t.onSelectionChange=function(){if(this.activeMention){var L=_.HT(),Z=this.activeMention.JSC$11350_containsRange(L);L=L&&this.containsHelper(this.dropdown,L.getContainer());Z||L||this.cancelActiveMention()}};
_.t.containsHelper=function(L,Z){var N;if(((N=window.ShadyDOM)==null?void 0:N.noPatch)===!0)return L.contains(Z);for(;Z;){if(Z===L)return!0;Z=Z instanceof ShadowRoot?Z.host:Z.parentNode}return!1};
_.t.maybeStartSuggest=function(){var L=_.HT();if(L&&L.isCollapsed()){var Z=L.JSC$11350_getStartNode(),N=L.JSC$11350_getStartOffset();if(Z instanceof Text&&!(N<1)){var S=Z.textContent;!(S=S&&S.charAt(N-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(S)<0||(this.activeMention=_.Jp(Z,N-1,L.JSC$11350_getEndNode(),L.JSC$11350_getEndOffset()),this.flowNonce=lc(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.t.updateActiveMention=function(){if(this.activeMention){var L=_.HT();L&&L.isCollapsed()&&(this.activeMention=_.Jp(this.activeMention.JSC$11350_getStartNode(),this.activeMention.JSC$11350_getStartOffset(),L.JSC$11350_getEndNode(),L.JSC$11350_getEndOffset()))}};
_.t.requestSuggestions=function(L){if(this.activeMention){var Z={suggestions_query:L};this.pendingQuery=L;_.H2(this.hostElement,[this.suggestionsEndpoint,Z])}};
_.t.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()};
_.t.focusPreviousSuggestion=function(L){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),L.preventDefault())};
_.t.focusNextSuggestion=function(L){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),L.preventDefault())};
_.t.selectFocusedSuggestion=function(L){if(this.hasSuggestions(this.suggestionsResponse)){var Z=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.n(Z,moO)&&(this.selectSuggestion(_.n(Z,moO),this.dropdown.focusedSuggestionIndex),L.preventDefault())}};
_.t.selectSuggestion=function(L,Z){if(L){var N=this.activeMention;if(N){var S=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&L.handle?_.hY(S,"\u00a0\u2068@"+L.handle+"\u2069\u00a0"):this.handlesEnabled?_.hY(S,"\u00a0"+L.displayName+"\u00a0"):_.hY(S,"\u00a0@"+L.displayName+"\u00a0");Q8(S,"/channel/"+L.channelId);S.classList.add("yt-formatted-string","yt-simple-endpoint");S.setAttribute("spellcheck","false");N.isCollapsed()||N.JSC$11350_removeContents();N.insertNode(S,!0);L=document.createTextNode(" ");
S.parentNode.insertBefore(L,S.nextSibling);window.getSelection().collapse(L,1);Z={suggestionSelected:{suggestionIndex:Z}};if(this.zeroPrefixMentionSuggestionEnabled){var u;Z.suggestionSelected.isZeroPrefix=((u=this.suggestionsResponse)==null?void 0:u.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",Z);this.cancelActiveMention();_.QT(this.hostElement,"yt-mention-inserted")}}};
_.t.getPositionTarget=function(L){return L&&L.getBrowserRangeObject()};
_.t.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.t.onFocusedSuggestionIdChanged=function(L){var Z=_.R4L(this.hostElement)[0];Z&&(L.detail.value?Z.setAttribute("aria-activedescendant",L.detail.value):Z.removeAttribute("aria-activedescendant"))};
_.t.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.t.logGELEvent=function(L,Z){L={eventType:L,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};Z&&(L=Object.assign(L,Z));_.mS("userMentionAutoCompleteBoxEvent",L)};
yA.prototype.onDomChange=yA.prototype.onDomChange;yA.prototype.onUserMentionSuggestionSelected=yA.prototype.onUserMentionSuggestionSelected;yA.prototype.onServiceRequestError=yA.prototype.onServiceRequestError;yA.prototype.onServiceRequestCompleted=yA.prototype.onServiceRequestCompleted;yA.prototype.onServiceRequestSent=yA.prototype.onServiceRequestSent;yA.prototype.onInput=yA.prototype.onInput;_.r([_.y(_.Ub),_.Q("design:type",Object)],yA.prototype,"ironA11yKeysBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],yA.prototype,"suggestionsEndpoint",void 0);_.r([_.Y(),_.Q("design:type",Object)],yA.prototype,"suggestionsResponse",void 0);_.r([_.Y(),_.Q("design:type",Object)],yA.prototype,"activeMention",void 0);_.r([_.TX("#dropdown"),_.Q("design:type",Object)],yA.prototype,"dropdown",void 0);_.r([_.TX("#iron-dropdown"),_.Q("design:type",Object)],yA.prototype,"ironDropdown",void 0);
_.r([_.SA("input"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],yA.prototype,"onInput",null);_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],yA.prototype,"onServiceRequestSent",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],yA.prototype,"onServiceRequestCompleted",null);
_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],yA.prototype,"onServiceRequestError",null);_.r([_.SA("yt-user-mention-suggestion-selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],yA.prototype,"onUserMentionSuggestionSelected",null);
_.r([_.SA("dom-change"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],yA.prototype,"onDomChange",null);_.r([_.ch({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],yA);
_.m(yA,"yt-user-mention-autosuggest-input",function(){if(T8h===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;uHQ===void 0&&(uHQ=document.createElement("template"));var S=uHQ;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);T8h=L}L=T8h;return L},{mode:2});var wC=null;
_.DU({is:"ytd-commentbox",_template:function(){if(LvQ!==void 0)return LvQ;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return LvQ=L},
behaviors:[_.q50.YtHostElementBehavior,_.Ub,_.nK.YtActionHandlerBehavior,_.rH.YtComponentBehavior,_.WS.YtRendererstamperBehavior,_.Xm0.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(L,Z){return _.Lk(L.entities,"aadcGuidelinesStateEntityPayload",Z)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(L,Z){return _.Lk(L.entities,"commentboxStateEntity",Z)},
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 _.qN}},
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:_.c("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.c("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",_.Nd(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(L){this.fire(L?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(L){this.set("submitButtonDisabled",void 0);this.clear();L&&this.computeIsEmojiButtonDisplayed_(L)&&(L=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&L.updateEmojiCategories()},
observePrefilledImage_:function(L,Z,N){this.isValidPrefilledImage_(L,Z,N)&&(this.prefilledAttachment_="image",this.prefilledImageData_=Z,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(L,Z){this.isValidPrefilledVideo_(L,Z)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(L){L&&L.pollData&&L.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(L.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.vL();this.focus()},
detached:function(){document.removeEventListener("tap",_.Nd(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(L){L=L.detail;L=L.isCustomEmoji?L.shortcuts[0]:L.emojiId;var Z=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(Z,L);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var L=_.HT();if(L){L=L.getBrowserRangeObject();for(var Z=L.commonAncestorContainer;Z;){if(Z===this.getEditableTextArea_())return L;Z=Z.parentNode}}L=this.getEditableTextArea_();L=_.mV(L,L.childNodes.length);L.select();return L.getBrowserRangeObject()},
insertTextWithEmojis_:function(L,Z,N){(Z=this.emojiManager.createDocumentFragment(Z,!0,!1,N===void 0?!0:N))&&Z.childNodes.length!==0&&(L.collapsed||L.deleteContents(),N=Z.lastChild,L.insertNode(Z),_.u6M(N).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var L=_.HT();if(L){var Z=L.JSC$11350_getStartNode(),N=L.JSC$11350_getEndNode();if(WqH(Z)&&WqH(N)){var S=L.JSC$11350_getStartOffset(),u;if(_.Zi&&Z.nodeType===Node.ELEMENT_NODE&&(u=_.urq(Z)))_.mV(u,0).select();else{u=Qm(Z)?Z:_.rF(Z,Qm);var T=Qm(N)?N:_.rF(N,Qm);if(u||T)if(L.isCollapsed()){if(Z.nodeType===Node.TEXT_NODE){L=!0;S===Z.length&&(L=!1);if(wC==="end"||wC==="right")L=!1;Z=Z.parentNode;L=[].concat(_.Pd(Z.parentNode.childNodes)).indexOf(Z)+(L?0:1);_.mV(Z.parentNode,
L).select()}}else u?u.previousSibling&&u.previousSibling.length>0?_.Jp(N,L.JSC$11350_getEndOffset(),u.previousSibling,u.previousSibling.length-1).select():(Z=document.createTextNode("\u200b"),u.parentNode.insertBefore(Z,u),_.Jp(N,L.JSC$11350_getEndOffset(),Z,0).select()):T&&(T.nextSibling&&T.nextSibling.length>0?_.Jp(Z,L.JSC$11350_getStartOffset(),T.nextSibling,1).select():(N=document.createTextNode("\u200b"),T.parentNode.insertBefore(N,T.nextSibling),_.Jp(Z,L.JSC$11350_getStartOffset(),N,N.length).select()));
wC=null}}else wC=null}else wC=null},
leftKeyPressed_:function(){wC="left"},
rightKeyPressed_:function(){wC="right"},
endKeyPressed_:function(){wC="end"},
maybeDeleteChip_:function(){var L=FqA(!0);if(L){var Z=_.HT(),N=Z.JSC$11350_getStartNode();Z=Z.JSC$11350_getStartOffset();_.jR(N,Z,L,L.childNodes.length).select()}},
maybeBackspaceChip_:function(){var L=FqA(!1);if(L){var Z=_.HT(),N=Z.JSC$11350_getStartNode();Z=Z.JSC$11350_getStartOffset();_.jR(N,Z,L,0).select()}},
maybeBackspaceChipWordMode_:function(L){var Z=_.HT();if(Z.isCollapsed()){var N=Z.JSC$11350_getStartNode();Z=Z.JSC$11350_getStartOffset();var S=$pH(N,Z,!0);S&&(_.jR(N,Z,S,0).select(),document.execCommand("delete"),L.preventDefault(),L.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(L){var Z=_.HT();if(Z.isCollapsed()){var N=Z.JSC$11350_getStartNode();Z=Z.JSC$11350_getStartOffset();var S=$pH(N,Z,!1);S&&(_.jR(N,Z,S,S.childNodes.length).select(),document.execCommand("delete"),L.preventDefault(),L.stopImmediatePropagation())}},
onTap_:function(L){if(!L.defaultPrevented&&(L.currentTarget.tagName==="YTD-COMMENTBOX"&&Qm(L.target)&&L.preventDefault(),this.isEmojiPickerDisplayed)){var Z=this.$$("#emojis"),N=this.$$("#emoji-button"),S=this.getEditableTextArea_();if((L=L.path?L.path:L.composedPath&&L.composedPath())&&!L.includes(Z)&&!L.includes(S)&&!L.includes(N))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(L,Z,N){return L==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&Z!==void 0&&Z.encryptedBlobId!==null&&Z.sourceExternalVideoId!==null&&N!==void 0&&N.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(L,Z){return L==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!Z&&!!Z.videoRenderer&&!!Z.videoRenderer.videoId},
isValidPrefilledAttachment_:function(L,Z,N){return this.isValidPrefilledImage_(L,Z,N)||this.isValidPrefilledVideo_(L,N)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.c("enable_multi_image_post_creation")){var L=this.$$("ytd-backstage-multi-image-select-renderer");L&&L.hasImages()&&L.cancel()}else(L=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&L.cancel();(L=this.$["poll-attachment"])&&this.hasPoll_&&L.clearPollOptions();(L=this.$["image-poll-attachment"])&&this.hasImagePoll_&&L.resetPollOptions();(L=this.$["quiz-attachment"])&&this.hasQuiz_&&L.resetQuizOptions();
(L=this.$["video-link-attachment"])&&this.hasVideo_&&L.cancel();(L=this.$["access-restrictions-selector"].firstElementChild)&&L.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 _.QJ(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.QJ(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(L,Z){L=bjP(L,this.emojiManager,Z).cloneNode(!0);for(Z=L.firstChild;Z;)if(Z.nodeType!==1)Z=Z.nextSibling;else switch(Z.tagName){case "BR":var N=_.Uy();_.ghl(N,Z);Z=N.nextSibling;break;case "DIV":(N=Z.lastChild)&&Z.nextSibling&&_.dI(_.Uy(),N);Z.previousSibling&&(Z.previousSibling.nodeType===1||Z.previousSibling.nodeType===3&&!Z.previousSibling.textContent.endsWith("\n"))&&_.In(_.Uy(),Z);N&&N.nodeName==="BR"&&_.U_(N);N=Z;Z.hasChildNodes()?(Z=Z.firstChild,
_.GFO(N)):(Z=Z.nextSibling,_.U_(N));break;default:Z=Z.nextSibling}return DpB(L)},
onAddImageError_:function(L){L.stopPropagation();this.errorMessage_=_.s9(L.detail)},
setTextAreaValue_:function(L){L||(L="");var Z=this.getEditableFormattedString_();Z.text="";this.getEditableTextArea_().innerText="";typeof L==="string"&&(L={runs:[{text:L}]});Z.text=L},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();wC=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var L=this.getEditableTextArea_();L&&(_.mV(L,L.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.X7("HTML_DIR")==="rtl"){var L=this.getEditableTextArea_(),Z=this.getTextAreaValue()!==""?"auto":"rtl";L.setAttribute("dir",Z)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var L;return ZO0((L=this.$["quiz-attachment"])==null?void 0:L.getExplanationText())||ZO0(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var L=null;if(this.isEmojiButtonDisplayed){var Z=this.getInputRange_();Z&&(L=this.emojiInput.retrieveTextBeforeRange(Z))}this.insertText_(L,!0);this.updateCharCount_();this.setSubmitButton_();L=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=L.scrollHeight>L.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var L=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:L})},
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(L){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(L)},
onPasteEmoji_:function(L){L.preventDefault();L.stopImmediatePropagation();L=L.clipboardData.getData("text/plain");this.insertText_(L,!1,!1)},
insertText_:function(L,Z,N){Z=Z===void 0?!1:Z;N=N===void 0?!0:N;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&L){var S=this.getInputRange_().cloneRange();this.emojiManager&&S&&(Z&&this.emojiInput.offsetStartOfRangeBy(S,L.length),this.insertTextWithEmojis_(S,L,N),VxB(this.getEditableTextArea_().lastChild)||(S=this.getInputRange_().cloneRange()),S&&(this.emojiInput.updateSuggestions(S,L),this.updateSuggestionOffset_(S)))}},
setSubmitButton_:function(){if(this.data){var L=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",Z=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(L||Z){var N=this.getTextAreaValue().trim();Z=N===this.previousText_;N=!N||this.aboveCharLimit_;L&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(N=this.aboveCharLimit_);this.submitButtonDisabled=
Z||N||!this.getTextLength();L&&_.c("enable_post_scheduling")&&(this.submitButtonDisabled=Z&&!this.scheduledPublishTimeSec_||N)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.jM,computeCreationBoxClass_:function(L){return L?"focused":"not-focused"},
computeFooterMessageClass_:function(L,Z){return Z?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(L,Z){return Z?Z:L},
computeFooterMessageHidden_:function(L,Z){return!Z&&!L},
computePlaceholderText_:function(L,Z,N){return(N==="video"||N==="image")&&(L==null?0:L.prefilledPlaceholderText)?L==null?void 0:L.prefilledPlaceholderText:Z==="poll"||Z==="image-poll"?L==null?void 0:L.pollPostPlaceholderText:Z==="quiz"?L==null?void 0:L.quizPostPlaceholderText:Z==="image"?L==null?void 0:L.imagePostPlaceholderText:L==null?void 0:L.placeholderText},
computeHideAttachmentButtons_:function(L,Z,N,S){return L===void 0?!1:S&&this.getSimpleString(S)===this.getSimpleString(L.rateLimitErrorMessage)?!0:Z!=="none"||N!=="none"||!L.videoLinkButton&&!L.pollButton&&!L.imagePollButton&&!L.quizButton&&!L.imageButton},
computeHideDismissableAttachment_:function(L){return L!=="image"&&L!=="video"},
computeHasVideo_:function(L){return L==="video"},
computeHasImage_:function(L){return L==="image"},
computeHasPoll_:function(L){return L==="poll"},
computeHasImagePoll_:function(L){return L==="image-poll"},
computeHasQuiz_:function(L){return L==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(L){return L&&L.backstageAttachment?L.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!L.backstageAttachment.quizRenderer&&!L.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(L){if(this.isValidPrefilledAttachment_(L.purpose,L.prefilledImageData,L.backstageAttachment))return L.backstageAttachment},
computeEditAttachment_:function(L){if(this.computePrefilledContent_(L)===void 0)return L.backstageAttachment},
computeAuthorThumbnailDimension_:function(L,Z){return L&&!Z?24:40},
computeImageUploadEndpoint_:function(L){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",L)},
computeRateLimitErrorCommands_:function(L){var Z,N;return L==null?void 0:(Z=L.advancedTierFeatures)==null?void 0:(N=Z.rateLimit)==null?void 0:N.rateLimitCommands},
computeIsBackstageComment_:function(L){return!(!L||L!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(L){return this.get("submitButton.buttonRenderer.serviceEndpoint",L)||this.get("replyButton.buttonRenderer.serviceEndpoint",L)||this.get("postButton.buttonRenderer.serviceEndpoint",L)},
computeSubmitButtonOverride:function(){if(_.c("web_modern_buttons")){var L,Z;return{segmentedPosition:this.dropdownSchedulePanel_||!((L=this.data)==null?0:(Z=L.postOptionsMenu)==null?0:Z.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.c("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(L,Z){L=this.get("submitButton.buttonRenderer",L)||this.get("replyButton.buttonRenderer",L)||this.get("postButton.buttonRenderer",L);Z&&(L=Z);L&&(L=Object.assign({},L),L.serviceEndpoint=void 0,L.isDisabled=this.submitButtonDisabled);return L},
computeHasExternalLinksAccess_:function(L){if(_.c("enable_rfa_external_links")){var Z,N,S;return(S=L==null?void 0:(Z=L.advancedTierFeatures)==null?void 0:(N=Z.externalLinks)==null?void 0:N.allowExternalLinks)!=null?S:!0}return!0},
computeIsEmojiButtonDisplayed_:function(L){return L.emojiButton&&L.emojiPicker&&L.emojiPicker.emojiPickerRenderer&&L.emojiPicker.emojiPickerRenderer.categories?L.emojiPicker.emojiPickerRenderer.categories.find(function(Z){return Z.emojiPickerCategoryRenderer?Z.emojiPickerCategoryRenderer.emojiIds&&Z.emojiPickerCategoryRenderer.emojiIds.length>0:Z.emojiPickerUpsellCategoryRenderer?Z.emojiPickerUpsellCategoryRenderer.emojis&&Z.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(L){return L.charLimit?L.charLimit:null},
computeDropdownSchedulingPanel_:function(L,Z){if(L==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&Z)return Z},
computeInlineSchedulingPanel_:function(L,Z){if(L==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Z)return Z},
computeHideAuthorThumbnail_:function(L,Z){return L||this.computeUseIdentityChip_(Z)},
computeHideIdentityChipRenderer_:function(L,Z){return L||!this.computeUseIdentityChip_(Z)},
computeUseIdentityChip_:function(L){return!!L&&!!L.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(L){var Z,N,S,u;(L==null?0:(Z=L.detail)==null?0:(N=Z.endpoint)==null?0:N.ypcGetOffersEndpoint)||(L==null?0:(S=L.detail)==null?0:(u=S.endpoint)==null?0:u.ypcOffersEndpoint)?(L.stopPropagation(),_.H2(this,[L.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",L)&&(L.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(L){this.addedAttachment="video";this.selectedVideoId_=L.detail.videoId},
commentboxStateEntityChanged_:function(L){var Z=this;(L==null?void 0:L.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(L==null?void 0:L.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){Z.focus()})},
onYtServiceRequestSent_:function(L,Z){if(Z.actions)for(L=_.O(Z.actions),Z=L.next();!Z.done;Z=L.next())Z.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(L){this.isLoading=!1;var Z=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",L),N,S,u,T=L==null?void 0:(N=L.detail)==null?void 0:(S=N.data)==null?void 0:(u=S.actionResult)==null?void 0:u.commentboxStateEntityKey;if(Z)this.errorMessage_=Z;else if(T){var W;this.dismissData_=L==null?void 0:(W=L.detail)==null?void 0:W.data;this.commentboxStateKey_=T}else{this.clear();var V;this.fire("yt-commentbox-dismiss",L==null?void 0:(V=L.detail)==
null?void 0:V.data)}},
onYtServiceRequestError_:function(L){L.stopPropagation();this.isLoading=!1;var Z,N;if(((Z=this.data)==null?void 0:Z.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((N=this.data)==null?void 0:N.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(Z=this.get("detail.error.args",L)||[],Z.length>1&&Z[1].message){this.handlePostsServiceRequestError_(Z[1].message);return}(L=this.get("detail.error.message",L))?this.errorMessage_=this.data.errorMessage||_.s9(L):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(L){if(_.c("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var Z=_.O(this.rateLimitErrorCommands),N=Z.next();!N.done;N=Z.next())if(N=N.value,N.errorLabel===L){_.LY(N.command,this.hostElement);return}this.errorMessage_=_.s9(L)},
submitIfNotBackstagePost_:function(L){if(!this.isBackstagePost)this.onSubmit_(L)},
onSubmit_:function(L){var Z=this,N,S,u,T,W,V,M,G,D,l,v,R,K,U,d;return _.b(function(h){switch(h.nextAddress){case 1:L.stopPropagation();if(!Z.serviceEndpoint||!Z.isValidInput_())return h.return();if(Z.shouldShowPostAadcNotice_())return Z.showPostAadcNotice_(),h.return();if(Z.shouldShowCommentAadcNotice_())return Z.showCommentAadcNotice_(),h.return();if(!(Z.$$("ytd-backstage-multi-image-select-renderer")&&Z.hasImage_&&_.c("enable_multi_image_post_creation"))){h.jumpTo(2);break}N=Z.$$("ytd-backstage-multi-image-select-renderer");
return h.yield(N.getAllUploadStatuses(),3);case 3:S=h.yieldResult;if(!S)return h.return();u=_.O(S);for(T=u.next();!T.done;T=u.next())if(W=T.value,W.encryptedBlobId===void 0)return Z.isLoading=!1,M=V=void 0,Z.errorMessage_=(M=(V=Z.imageUploadEndpoint_)==null?void 0:V.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?M:null,h.return();return h.return(Z.submitForm_(void 0,void 0,void 0,void 0,N.images,Z.taggedVideoId_));case 2:if(!Z.hasImagePoll_||!Z.$["image-poll-attachment"]){h.jumpTo(4);
break}return h.yield(Z.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:G=h.yieldResult;if(!G)return h.return();D=_.O(G);for(l=D.next();!l.done;l=D.next())if(v=l.value,!v.encryptedBlobId)return Z.isLoading=!1,R=void 0,Z.errorMessage_=(R=Z.data.errorMessage)!=null?R:null,h.return();case 4:U=(K=Z.$$("ytd-backstage-image-select-renderer"))&&K.uploadPromise(),d=Z.getSharedPostId_(),U?U.then(function(){Z.submitForm_.apply(Z,_.Pd(_.CG.apply(0,arguments)))}).catch(function(E){Z.isLoading=!1;
Z.errorMessage_=_.s9(E.message)}):Z.selectedVideoId_?Z.submitForm_(void 0,Z.selectedVideoId_):Z.prefilledAttachment_==="image"?Z.submitForm_(Z.prefilledImageData_.encryptedBlobId,void 0,void 0,Z.prefilledImageData_.sourceExternalVideoId,void 0,Z.taggedVideoId_):Z.prefilledAttachment_==="video"?Z.submitForm_(void 0,Z.data.backstageAttachment.videoRenderer.videoId):d?Z.submitForm_(void 0,void 0,d):Z.taggedVideoId_!==void 0?Z.submitForm_(void 0,void 0,void 0,void 0,void 0,Z.taggedVideoId_):Z.submitForm_(),
_.w7(h)}})},
openSchedulingPanel:function(L){L&&L.scheduleButton&&L.scheduleButton.buttonRenderer&&(this.scheduleButton_=L.scheduleButton.buttonRenderer);L&&L.dateTimePicker&&this.set("data.schedulingDateTimePicker",L.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(L){L.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(L){L.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(L){L.stopPropagation();L.detail.alertMessage&&(this.alertMessage_=L.detail.alertMessage)},
onImageSelected_:function(L){L.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(L){L.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(L){L.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(L.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(L){L.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(L){var Z=this.$["video-link-attachment"];Z&&Z.onLaunchVideoPicker(L)},
onAttachmentDismiss_:function(L){L.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"&&_.c("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.c("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 L;if(this.addedAttachment==="image-poll"&&((L=this.$["image-poll-attachment"])==null||!L.isValid()))return!1;var Z;if(this.addedAttachment==="quiz"&&((Z=this.$["quiz-attachment"])==null||!Z.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;L=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(L=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")L=!0;return L||!!this.getTextAreaValue().trim()},
submitForm_:function(L,Z,N,S,u,T){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;T!=void 0&&(V.tagged_video_id=T);L?(V.image_blob_id=L,this.imagePreviewCoordinates_&&(V.image_preview_coordinates=this.imagePreviewCoordinates_)):Z?V.attached_video_id=Z:N?V.shared_post_id=N:u&&u.length>0&&(V.images_data=u.map(function(M){return{encryptedBlobId:M.encryptedBlobId,
previewCoordinates:M.previewCoordinates}}));
S&&(V.source_video_id=S);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());_.c("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(V.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.c("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(V.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.H2(this,[this.serviceEndpoint,V])},
onIsInputFocusChanged_:function(L,Z){L?this.fire("yt-autonav-pause-focus"):Z!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(L){var Z=this.getEditableTextArea_();[].concat(_.Pd(L.dataTransfer.items)).forEach(function(N){N.kind==="string"&&N.type.match("^text/plain")&&N.getAsString(function(S){Z.appendChild(document.createTextNode(S))})});
L.preventDefault()},
preventDefault_:function(L){L.preventDefault()},
onSuggestionInsert_:function(L){this.insertTextWithEmojis_(L.detail.range,L.detail.text)},
onEmojiSuggestionClick_:function(L){this.emojiInput.insertSuggestion(L.detail)},
computeSubmitButtonClass_:function(L,Z){return!Z||L?"":"with-options"},
updateSuggestionOffset_:function(L){if(this.emojiInput&&_.QJ(this.emojiInput).querySelector("#dropdown")){var Z=this.getEditableTextArea_().getBoundingClientRect().bottom,N=L.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(Z-N)+5;Z=this.getEditableTextArea_().getBoundingClientRect().left;L=L.getBoundingClientRect().left-Z;_.QJ(this.emojiInput).querySelector("#dropdown").style.marginLeft=L+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(L){if(_.c("enable_post_scheduling")&&this.data&&this.data.purpose){L=L.detail;if(Math.floor(Date.now()/1E3)>=L)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var Z=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(Z)||Z!==L?this.scheduledPublishTimeSec_=L:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=L;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var L=["image-button","image-poll-button","poll-button"];_.c("enable_quiz_creation")&&L.push("quiz-button");_.c("auto_convert_posts_video_tag")||L.push("video-link-button");return L},
getButtonRenderer:function(L,Z){if(L)switch(Z){case "video-link-button":var N;return((N=L.videoLinkButton)==null?void 0:N.buttonRenderer)||void 0;case "image-button":var S;return((S=L.imageButton)==null?void 0:S.buttonRenderer)||void 0;case "poll-button":var u;return((u=L.pollButton)==null?void 0:u.buttonRenderer)||void 0;case "image-poll-button":var T;return((T=L.imagePollButton)==null?void 0:T.buttonRenderer)||void 0;case "quiz-button":var W;return((W=L.quizButton)==null?void 0:W.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var L;return(L=this.data)==null||!L.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var L,Z;return!((L=this.data)==null||!L.openAadcDialog)&&!((Z=this.aadcGuidelinesState_)==null||!Z.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.X7("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var L;((L=this.data)==null?0:L.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Bx("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(L){L.clickTrackingParams&&_.tC().clickCommand(L);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.XJ(this,"yt-close-popup-action")},
onHideIdentityChip:function(L){var Z;this.set("data.placeholderText",(Z=L.hideIdentityChipAction)==null?void 0:Z.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var U5=function(){var L=_.e.apply(this,arguments)||this;L.isOpen=!1;L.modern=_.c("web_modern_buttons");L.roundedContainer=!0;L.dropdownButtonOverride=_.c("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;L.inPopupContainer=!1;L.isCommentboxLoading=!1;var Z=["image-button","image-poll-button","poll-button"];_.c("enable_quiz_creation")&&Z.push("quiz-button");_.c("auto_convert_posts_video_tag")||Z.push("video-link-button");L.attachmentButtonIds=Z;L.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 L};
_.f(U5,_.e);_.t=U5.prototype;_.t.computeButtonOverride=function(){var L;return((L=this.data)==null?0:L.postOptionsMenu)&&_.c("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.t.configureRendererStamper=function(){var L={"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]]"}}}}};_.c("auto_convert_posts_video_tag")||(L["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return L};
_.t.ready=function(){var L=this,Z=_.QJ(this.hostElement).querySelector("#placeholder-area"),N=function(S){L.onOpen(S)};
Z.addEventListener("tap",N);Z.addEventListener("keypress",N)};
_.t.showButtonEduTooltip=function(){var L,Z,N,S,u,T,W;if(_.c("enable_quiz_creation")&&((L=this.data)==null?0:(Z=L.quizButton)==null?0:(N=Z.buttonRenderer)==null?0:(S=N.hint)==null?0:(u=S.hintRenderer)==null?0:(T=u.content)==null?0:(W=T.bubbleHintRenderer)==null?0:W.text)&&(_.c3.getInstance(),L=nf(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(L==null?void 0:
L.length)>0)){this.ytComponentBehavior.resolveCommand(L[0],{form:{element:this.quizButton}});return}var V;if((V=this.data)==null?0:V.imagePollButtonTooltip)if(_.c3.getInstance(),V=nf(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 M;_.c("enable_multi_image_post_creation")&&
((M=this.data)==null?0:M.multiImageButtonTooltip)&&(_.c3.getInstance(),M=nf(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(M==null?void 0:M.length)>0&&this.ytComponentBehavior.resolveCommand(M[0],{form:{element:this.imageButton}}))};
_.t.onCreatePollAction=function(L){_.n(L,b6l)&&(this.JSC$15925_commentbox.addedAttachment="poll",this.openDialog())};
_.t.onAddVideoLinkAction=function(L){if(_.n(L,tRV))this.JSC$15925_commentbox.onAddVideoLink(L)};
_.t.onShowSchedulingPanelCommand=function(L){(L=_.n(L,sy5))&&this.openSchedulingPanel(L)};
_.t.onCreateImagePollCommand=function(L){_.n(L,aAY)&&(this.JSC$15925_commentbox.openImagePollComponent(),this.openDialog())};
_.t.onCreateQuizCommand=function(L){_.n(L,huY)&&(this.JSC$15925_commentbox.openQuizComponent(),this.openDialog())};
_.t.openSchedulingPanel=function(L){_.c("enable_post_scheduling")&&(this.openDialog(),this.JSC$15925_commentbox.openSchedulingPanel(L))};
_.t.onCreateCommentAction=function(L){this.get("createCommentAction.contents",L)&&(this.JSC$15925_commentbox.clear(),this.closeDialog())};
_.t.onOpen=function(L){L instanceof KeyboardEvent&&L.type==="keypress"&&L.keyCode!==13&&L.keyCode!==32||(this.data.prepareAccountEndpoint?_.QT(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.t.onYtCommentboxDismiss=function(){this.closeDialog()};
_.t.onYtCommentboxLoadingStart=function(L){L.stopPropagation();this.isCommentboxLoading=!0};
_.t.onYtCommentboxLoadingEnd=function(L){L.stopPropagation();this.isCommentboxLoading=!1};
_.t.onYtVideoLinkButtonCancel=function(L){L.stopPropagation();this.onOpen(L)};
_.t.onYtVideoLinkSelected=function(L){L.stopPropagation();this.onOpen(L)};
_.t.onIronSelect=function(L){L.stopPropagation();L.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=L.detail.item.value&&(this.accessRestriction?(this.accessRestriction=L.detail.item.value,this.onOpen(L)):this.accessRestriction=L.detail.item.value)};
_.t.onYtNavigate=function(L){this.get("detail.endpoint.backstageImageUploadEndpoint",L)&&(this.JSC$15925_commentbox.addedAttachment="image",this.JSC$15925_commentbox.submitButtonDisabled=!0,this.onOpen(L))};
_.t.onRequestSent=function(L){if(_.c("web_button_rework"))for(var Z=_.O(L.detail),N=Z.next();!N.done;N=Z.next())_.n(N.value,Quq)&&(this.JSC$15925_commentbox.addedAttachment="image",this.JSC$15925_commentbox.submitButtonDisabled=!0,this.onOpen(L))};
_.t.openDialog=function(){var L;(L=this.data)!=null&&L.isIneligibleForCommunityPagePostCreation||(this.JSC$15925_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$15925_commentbox.focus())};
_.t.onPopupClosed=function(){_.c3.getInstance()};
_.t.computeCreationDisabled=function(L){return!!L};
_.t.computeIsCreationDialog=function(L){return!!L&&L==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.t.computeDisabledPostButton=function(L){if(!L)return null;L.isDisabled=!0;return L};
_.t.computeIsCreationDialogWithHeader=function(L){return!this.inPopupContainer&&!!L&&!!L.authorText&&L.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.t.computeIsHeaderHidden=function(L,Z){return!L||Z};
_.t.computeDropdownRendererClasses=function(L){return L?["text-secondary-style"]:[]};
_.t.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var L=_.QJ(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;L&&L.reset()};
U5.prototype.onPopupClosed=U5.prototype.onPopupClosed;U5.prototype.onRequestSent=U5.prototype.onRequestSent;U5.prototype.onYtNavigate=U5.prototype.onYtNavigate;U5.prototype.onIronSelect=U5.prototype.onIronSelect;U5.prototype.onYtVideoLinkSelected=U5.prototype.onYtVideoLinkSelected;U5.prototype.onYtVideoLinkButtonCancel=U5.prototype.onYtVideoLinkButtonCancel;U5.prototype.onYtCommentboxLoadingEnd=U5.prototype.onYtCommentboxLoadingEnd;U5.prototype.onYtCommentboxLoadingStart=U5.prototype.onYtCommentboxLoadingStart;
U5.prototype.onYtCommentboxDismiss=U5.prototype.onYtCommentboxDismiss;U5.prototype.showButtonEduTooltip=U5.prototype.showButtonEduTooltip;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],U5.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],U5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],U5.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],U5.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],U5.prototype,"isOpen",void 0);_.r([_.Y({computed:"computeButtonOverride(data)"}),_.Q("design:type",Object)],U5.prototype,"buttonOverride",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],U5.prototype,"modern",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],U5.prototype,"roundedContainer",void 0);_.r([_.Y(),_.Q("design:type",Object)],U5.prototype,"dropdownButtonOverride",void 0);_.r([_.Y({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.Q("design:type",Boolean)],U5.prototype,"creationDisabled",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],U5.prototype,"enableCreationBox",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.Q("design:type",Boolean)],U5.prototype,"isCreationDialog",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],U5.prototype,"inPopupContainer",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.Q("design:type",Boolean)],U5.prototype,"isCreationDialogWithHeader",void 0);_.r([_.Y(),_.Q("design:type",Object)],U5.prototype,"accessRestriction",void 0);
_.r([_.Y({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.Q("design:type",Array)],U5.prototype,"dropdownRendererClasses",void 0);_.r([_.Y(),_.Q("design:type",Object)],U5.prototype,"isCommentboxLoading",void 0);_.r([_.Y(),_.Q("design:type",Array)],U5.prototype,"attachmentButtonIds",void 0);_.r([_.TX("#image-button"),_.Q("design:type",HTMLElement)],U5.prototype,"imageButton",void 0);
_.r([_.TX("#image-poll-button"),_.Q("design:type",HTMLElement)],U5.prototype,"imagePollButton",void 0);_.r([_.TX("#quiz-button"),_.Q("design:type",HTMLElement)],U5.prototype,"quizButton",void 0);_.r([_.TX("#commentbox"),_.Q("design:type",Object)],U5.prototype,"JSC$15925_commentbox",void 0);_.r([_.iA("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],U5.prototype,"showButtonEduTooltip",null);
_.r([_.SA("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],U5.prototype,"onYtCommentboxDismiss",null);_.r([_.SA("yt-commentbox-loading-start"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],U5.prototype,"onYtCommentboxLoadingStart",null);
_.r([_.SA("yt-commentbox-loading-end"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],U5.prototype,"onYtCommentboxLoadingEnd",null);_.r([_.SA("yt-video-link-button-cancel"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],U5.prototype,"onYtVideoLinkButtonCancel",null);
_.r([_.SA("yt-video-link-selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],U5.prototype,"onYtVideoLinkSelected",null);_.r([_.SA("iron-select"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],U5.prototype,"onIronSelect",null);_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],U5.prototype,"onYtNavigate",null);
_.r([_.SA("yt-service-request-sent-button-renderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],U5.prototype,"onRequestSent",null);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],U5.prototype,"onPopupClosed",null);_.r([_.P({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],U5);
_.m(U5,"ytd-backstage-post-dialog-renderer",function(){if(IgN!==void 0)return IgN;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return IgN=L},{mode:1});var b9L;var MEY;var Y2=function(){return _.e.apply(this,arguments)||this};
_.f(Y2,_.e);_.t=Y2.prototype;_.t.computeHeartButtonStyle=function(L){return(L==null?0:L.styleType)?L.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.t.onYtButtonTap=function(){if(this.data.isEnabled){var L=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(L=this.getEndpoint(L))&&_.GR().resolve(_.$s).resolveCommand(L,{form:{element:this.hostElement}})}else(L=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(L)};
_.t.toggle=function(L){this.set("data.isHearted",L!==void 0?L:!this.data.isHearted)};
_.t.getEndpoint=function(L){var Z,N=(Z=this.data)==null?void 0:Z.heartEndpoint,S;Z=(S=this.data)==null?void 0:S.unheartEndpoint;if(N&&Z)return L?Z:N};
_.t.computeButtonAccessibility=function(L,Z){var N,S,u=L==null?void 0:(N=L.heartedAccessibility)==null?void 0:(S=N.accessibilityData)==null?void 0:S.label,T,W;L=L==null?void 0:(T=L.unheartedAccessibility)==null?void 0:(W=T.accessibilityData)==null?void 0:W.label;return Z?u:L};
_.gd.Object.defineProperties(Y2.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 L;return _.c("kevlar_system_icons")&&!((L=this.data)==null||!L.isHearted)}}});
Y2.prototype.onYtButtonTap=Y2.prototype.onYtButtonTap;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.W0),_.Q("design:type",Object)],Y2.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Y2.prototype,"data",void 0);_.r([_.w("data.isHearted"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Y2.prototype,"heartTooltip",null);
_.r([_.w("data.isHearted"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Y2.prototype,"iconFilled",null);_.r([_.Y({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.Q("design:type",String)],Y2.prototype,"buttonAccessibility",void 0);_.r([_.Y({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.Q("design:type",String)],Y2.prototype,"heartButtonStyle",void 0);
_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Y2.prototype,"onYtButtonTap",null);_.r([_.P({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Y2);
_.m(Y2,"ytd-creator-heart-renderer",function(){if(MEY!==void 0)return MEY;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return MEY=L},{mode:1});var eT=function(){var L=_.e.apply(this,arguments)||this;L.hasCreatorReply=!1;L.buttonOverrides={size:"S",iconPosition:"icon-only"};L.replyButtonOverrides={size:"S",type:"text"};L.forceIconButton=!_.c("web_modern_buttons");L.modern=_.c("web_modern_buttons");L.buttonTooltipPosition="bottom";L.systemIcons=_.c("kevlar_system_icons");L.replyDialog=null;return L};
_.f(eT,_.e);_.t=eT.prototype;
_.t.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]]"}}}}}};
_.t.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.t.dataChange=function(){this.replyDialog&&_.QJ(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var L,Z,N;this.isLiked=this.systemIcons&&!!((L=this.data)==null?0:(Z=L.likeButton)==null?0:(N=Z.toggleButtonRenderer)==null?0:N.isToggled)};
_.t.computeShowVoteCountBeginning=function(L,Z){return L===void 0||Z===void 0?!0:L.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!Z&&this.ytRendererBehavior.getSimpleString(Z)!=="0"};
_.t.computeShowVoteCountEnd=function(L,Z){return L===void 0||Z===void 0?!0:L.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!Z&&this.ytRendererBehavior.getSimpleString(Z)!=="0"};
_.t.computeShowCommentCount=function(L,Z){return L===void 0||Z===void 0?!0:L.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!Z&&this.ytRendererBehavior.getSimpleString(Z)!=="0"};
_.t.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.t.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.t.showReplyDialog=function(L){L&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.QJ(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=L,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.t.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.t.onRequestSent=function(L){if(_.c("web_button_rework")){L=_.O(L.detail);for(var Z=L.next();!Z.done;Z=L.next())(Z=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",Z.value))&&this.showReplyDialog(Z)}};
_.t.onYtNavigate=function(L){var Z,N;(L=(Z=_.n(L.detail.endpoint,_.Ae0))==null?void 0:(N=Z.dialog)==null?void 0:N.commentReplyDialogRenderer)&&this.showReplyDialog(L)};
_.t.onYtServiceRequestSent=function(L,Z){L.stopPropagation();if(Z.actions)for(L=0;L<Z.actions.length;L++){var N=_.n(Z.actions[L],D9Y);N&&this.handleUpdateCommentVoteAction(N)}};
_.t.handleUpdateCommentVoteAction=function(L){this.voteCount=L.voteCount||_.s9("0");L.voteStatus==="LIKE"?this.JSC$15937_ytdDislikeToggleButtonRenderer.toggle(!1):L.voteStatus==="DISLIKE"?this.JSC$15937_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15937_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15937_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.t.computeReplyButtonHidden=function(L){return L};
_.t.computeReplyButtonBeginning=function(L){return(L==null?0:L.replyButton)&&L.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?L.replyButton:void 0};
_.t.computeReplyButtonEnd=function(L){return(L==null?0:L.replyButton)&&L.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?L.replyButton:void 0};
_.t.computeActionButtonStyle=function(L){return(L==null?0:L.style)?L.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.t.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.t.onYtToggleButton=function(L){var Z,N;this.isLiked=this.systemIcons&&!!((Z=L.detail)==null?0:(N=Z.actions)==null?0:N.like)};
eT.prototype.onYtToggleButton=eT.prototype.onYtToggleButton;eT.prototype.onButtonTooltipPositionChanged=eT.prototype.onButtonTooltipPositionChanged;eT.prototype.onYtServiceRequestSent=eT.prototype.onYtServiceRequestSent;eT.prototype.onYtNavigate=eT.prototype.onYtNavigate;eT.prototype.onRequestSent=eT.prototype.onRequestSent;eT.prototype.onYtCommentboxDismiss=eT.prototype.onYtCommentboxDismiss;eT.prototype.dataChange=eT.prototype.dataChange;
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],eT.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],eT.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],eT.prototype,"voteCount",void 0);_.r([_.Y(),_.Q("design:type",Object)],eT.prototype,"commentCount",void 0);_.r([_.Y(),_.Q("design:type",Object)],eT.prototype,"replyThumbnail",void 0);
_.r([_.Y(),_.Q("design:type",Object)],eT.prototype,"hasCreatorReply",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],eT.prototype,"enableCreationBox",void 0);_.r([_.Y({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.Q("design:type",String)],eT.prototype,"actionButtonsStyle",void 0);_.r([_.Y({computed:"computeReplyButtonBeginning(data)"}),_.Q("design:type",Object)],eT.prototype,"replyButtonBeginning",void 0);
_.r([_.Y({computed:"computeReplyButtonEnd(data)"}),_.Q("design:type",Object)],eT.prototype,"replyButtonEnd",void 0);_.r([_.Y(),_.Q("design:type",Object)],eT.prototype,"buttonOverrides",void 0);_.r([_.Y(),_.Q("design:type",Object)],eT.prototype,"replyButtonOverrides",void 0);_.r([_.Y(),_.Q("design:type",Object)],eT.prototype,"forceIconButton",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],eT.prototype,"useCommentIcon",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],eT.prototype,"modern",void 0);_.r([_.Y(),_.Q("design:type",Object)],eT.prototype,"buttonTooltipPosition",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],eT.prototype,"systemIcons",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],eT.prototype,"isLiked",void 0);_.r([_.TX("ytd-button-renderer"),_.Q("design:type",Object)],eT.prototype,"ytdReplyButtonRenderer",void 0);
_.r([_.TX("#like-button"),_.Q("design:type",Object)],eT.prototype,"JSC$15937_ytdLikeToggleButtonRenderer",void 0);_.r([_.TX("#dislike-button"),_.Q("design:type",Object)],eT.prototype,"JSC$15937_ytdDislikeToggleButtonRenderer",void 0);_.r([_.TX("#reply-dialog"),_.Q("design:type",HTMLElement)],eT.prototype,"replyDialogElement",void 0);_.r([_.TX("#reply-button"),_.Q("design:type",HTMLElement)],eT.prototype,"replyButtonElement",void 0);
_.r([_.TX("#reply-button-end"),_.Q("design:type",HTMLElement)],eT.prototype,"replyButtonEndElement",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],eT.prototype,"dataChange",null);_.r([_.SA("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],eT.prototype,"onYtCommentboxDismiss",null);
_.r([_.SA("yt-service-request-sent-button-renderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],eT.prototype,"onRequestSent",null);_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],eT.prototype,"onYtNavigate",null);
_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],eT.prototype,"onYtServiceRequestSent",null);_.r([_.iA("buttonTooltipPosition"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],eT.prototype,"onButtonTooltipPositionChanged",null);
_.r([_.SA("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],eT.prototype,"onYtToggleButton",null);_.r([_.P({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],eT);
_.m(eT,"ytd-comment-action-buttons-renderer",function(){if(b9L!==void 0)return b9L;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return b9L=L},{mode:1});var gx0;var Id=function(){return _.e.apply(this,arguments)||this};
_.f(Id,_.e);Id.prototype.focus=function(){_.QJ(this.hostElement).querySelector("#commentbox").focus()};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Id.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Id.prototype,"zeroStepChannelCreationRenderer",void 0);_.r([_.P({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Id);
_.m(Id,"ytd-comment-dialog-renderer",function(){if(gx0!==void 0)return gx0;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return gx0=L},{mode:1});var GJI;var dC=function(){var L=_.e.apply(this,arguments)||this;L.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.c("enable_web_delhi_icons")};L.replyButtonOverrides={size:"S",type:"text"};return L};
_.f(dC,_.e);_.t=dC.prototype;_.t.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.t.detached=function(){this.replyBox&&this.replyBox.remove()};
_.t.showReplyDialog=function(L){if(L){var Z=this.replyBox;Z||(Z=document.createElement("ytd-comment-reply-dialog-renderer"),Z.id="replybox",_.QJ(this.replyDialogDiv).appendChild(Z));Z.data=L;this.replyDialogDiv.hidden=!1;Z.openDialog()}};
_.t.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.t.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var L,Z=_.n((L=this.toolbarSurface)==null?void 0:L.subscribersOnlyDisclaimerSnackbarCommand,_.nY);Z&&_.QT(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:Z})}};
_.t.onYtServiceRequestSent=function(L,Z){L.stopPropagation();if(Z.actions)for(var N=0;N<Z.actions.length;N++){var S=_.n(Z.actions[N],D9Y);S?this.handleUpdateCommentVoteAction(S):L.target===this.heartButton&&this.toggleHeartState()}};
_.t.handleUpdateCommentVoteAction=function(L){var Z;(Z=this.toolbarState)!=null&&Z.key&&this.ytdReduxBehavior.dispatch(_.vt("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:L.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":L.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.t.toggleHeartState=function(){var L;(L=this.toolbarState)!=null&&L.key&&this.ytdReduxBehavior.dispatch(_.vt("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.gd.Object.defineProperties(dC.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return(((L=this.toolbarState)==null?void 0:L.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(Z=this.toolbarData)==null?void 0:Z.likeCountLiked:(N=this.toolbarData)==null?void 0:N.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.toolbarSurface)==null?void 0:L.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.toolbarSurface)==null?void 0:L.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.toolbarSurface)==null?void 0:L.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.toolbarSurface)==null?void 0:L.prepareAccountCommand)!==void 0&&!_.c("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var L,Z=_.n((L=this.toolbarSurface)==null?void 0:L.prepareAccountCommand,_.nY),N,S,u,T,W,V,M,G,D;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((N=this.toolbarSharedData)==null||!N.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((S=this.toolbarState)==null?void 0:S.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:Z!=null?Z:_.n((u=this.toolbarSurface)==null?void 0:u.likeCommand,_.nY),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:Z!=null?Z:_.n((T=this.toolbarSurface)==null?void 0:T.unlikeCommand,_.nY),defaultCommand:this.isVisiblyDisabled?_.n((W=this.toolbarSurface)==null?void 0:W.commentDisabledActionCommand,_.nY):void 0,defaultTooltip:(V=this.toolbarData)==null?void 0:V.likeInactiveTooltip,toggledTooltip:(M=this.toolbarData)==null?void 0:M.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(G=this.toolbarData)==null?void 0:G.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(D=this.toolbarSharedData)==null?void 0:D.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var L,Z=_.n((L=this.toolbarSurface)==null?void 0:L.prepareAccountCommand,_.nY),N,S,u,T,W,V,M,G,D,l;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((N=this.toolbarSharedData)==null||!N.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((S=this.toolbarState)==null?void 0:S.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:Z!=null?Z:_.n((u=this.toolbarSurface)==null?void 0:u.dislikeCommand,_.nY),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:Z!=null?Z:_.n((T=this.toolbarSurface)==null?void 0:T.undislikeCommand,_.nY),defaultCommand:this.isVisiblyDisabled?_.n((W=this.toolbarSurface)==null?void 0:W.commentDisabledActionCommand,_.nY):void 0,defaultTooltip:(V=this.toolbarData)==null?void 0:V.dislikeInactiveTooltip,toggledTooltip:(M=this.toolbarData)==null?void 0:
M.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(G=this.toolbarSharedData)==null?void 0:G.dislikeReplyButtonA11y:(D=this.toolbarSharedData)==null?void 0:D.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(l=this.toolbarSharedData)==null?void 0:l.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;if(((L=this.toolbarState)==null?void 0:L.heartState)!==void 0&&((Z=this.toolbarState)==null?void 0:Z.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((N=this.toolbarState)==null?void 0:N.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var S,u,T,W,V,M,G,D,l,v,R,K,U,d;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(S=this.toolbarData)==null?void 0:S.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((u=this.toolbarState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((T=this.toolbarState)==null?void 0:T.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:_.n((M=this.toolbarSurface)==null?void 0:M.heartCommand,
_.nY),unheartEndpoint:this.isVisiblyDisabled?void 0:_.n((G=this.toolbarSurface)==null?void 0:G.unheartCommand,_.nY),disabledEndpoint:this.isVisiblyDisabled?_.n((D=this.toolbarSurface)==null?void 0:D.commentDisabledActionCommand,_.nY):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(l=this.toolbarData)==null?void 0:l.heartActiveTooltip,unheartedTooltip:(v=this.toolbarData)==null?void 0:v.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((R=
this.toolbarState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(K=this.toolbarSharedData)==null?void 0:K.unheartButtonA11y:(U=this.toolbarSharedData)==null?void 0:U.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(d=this.toolbarSharedData)==null?void 0:d.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.toolbarSurface)==null||!L.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.commentStrings)!=null&&L.replyButtonText){var Z,N,S,u;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(Z=this.commentStrings)==null?void 0:Z.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.n((N=this.toolbarSurface)==null?void 0:N.replyCommand,_.nY),command:this.isVisiblyDisabled?
_.n((S=this.toolbarSurface)==null?void 0:S.commentDisabledActionCommand,_.nY):this.isSubsOnlyCommentsIneligibleUser?_.n((u=this.toolbarSurface)==null?void 0:u.subscribersOnlySnackbarCommand,_.nY):void 0}}}}});
dC.prototype.onYtServiceRequestSent=dC.prototype.onYtServiceRequestSent;dC.prototype.hideReplyDialogDiv=dC.prototype.hideReplyDialogDiv;_.r([_.Y(),_.Q("design:type",Object)],dC.prototype,"commentStrings",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],dC.prototype,"isReply",void 0);_.r([_.Y(),_.Q("design:type",Object)],dC.prototype,"toolbarData",void 0);_.r([_.Y(),_.Q("design:type",Object)],dC.prototype,"toolbarSharedData",void 0);
_.r([_.Y(),_.Q("design:type",String)],dC.prototype,"toolbarStateKey",void 0);_.r([_.Y(),_.Q("design:type",String)],dC.prototype,"toolbarSurfaceKey",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],dC.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],dC.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.W0),_.Q("design:type",Object)],dC.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.TX("#reply-dialog"),_.Q("design:type",HTMLElement)],dC.prototype,"replyDialogDiv",void 0);_.r([_.TX("#replybox"),_.Q("design:type",Object)],dC.prototype,"replyBox",void 0);_.r([_.TX("ytd-creator-heart-renderer"),_.Q("design:type",Object)],dC.prototype,"heartButton",void 0);_.r([_.Y({selector:function(L,Z){return _.Lk(L.entities,"engagementToolbarStateEntityPayload",Z)},
selectorArgs:["toolbarStateKey"]}),_.Q("design:type",Object)],dC.prototype,"toolbarState",void 0);_.r([_.Y({selector:uVP,selectorArgs:["toolbarSurfaceKey"]}),_.Q("design:type",Object)],dC.prototype,"toolbarSurface",void 0);_.r([_.Y(),_.Q("design:type",Object)],dC.prototype,"buttonOverrides",void 0);_.r([_.SA("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dC.prototype,"hideReplyDialogDiv",null);
_.r([_.w("toolbarData","toolbarState"),_.Q("design:type",String),_.Q("design:paramtypes",[])],dC.prototype,"likeCount",null);_.r([_.w("likeCount"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],dC.prototype,"showLikeCount",null);_.r([_.w("toolbarSurface"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],dC.prototype,"isVisiblyDisabled",null);_.r([_.w("toolbarSurface"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],dC.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.r([_.w("toolbarSurface"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],dC.prototype,"isSubsOnlyCommentsEligibleUser",null);_.r([_.w("toolbarSurface"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],dC.prototype,"hasPrepareAccountCommand",null);_.r([_.w("toolbarData","toolbarState","toolbarSurface"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dC.prototype,"likeToggleButtonRenderer",null);
_.r([_.w("isReply","toolbarData","toolbarState","toolbarSurface"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dC.prototype,"dislikeToggleButtonRenderer",null);_.r([_.w("toolbarData","toolbarState","toolbarSurface"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dC.prototype,"creatorHeartSupportedRenderer",null);_.r([_.w("toolbarSurface"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],dC.prototype,"hasReplyCommand",null);
_.r([_.w("toolbarSurface","commentStrings","isVisiblyDisabled"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dC.prototype,"replyButtonRenderer",null);_.r([_.Y(),_.Q("design:type",Object)],dC.prototype,"replyButtonOverrides",void 0);_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],dC.prototype,"onYtServiceRequestSent",null);_.r([_.P({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],dC);
_.m(dC,"ytd-comment-engagement-bar",function(){if(GJI!==void 0)return GJI;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return GJI=L},{mode:1});var Fvt;var ad=function(){return _.e.apply(this,arguments)||this};
_.f(ad,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ad.prototype,"data",void 0);_.r([_.P({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],ad);
_.m(ad,"ytd-comment-inline-thumbnail-renderer",function(){if(Fvt!==void 0)return Fvt;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Fvt=L},{mode:1});var $FL;var ht=function(){return _.e.apply(this,arguments)||this};
_.f(ht,_.e);ht.prototype.onMessageTap=function(){if(this.onTapCommand){var L=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);L&&this.ytdOpenPopupBehavior.openPopup(L)}};
_.gd.Object.defineProperties(ht.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return(L=this.data)==null?void 0:(Z=L.button)==null?void 0:(N=Z.buttonRenderer)==null?void 0:N.command}}});
_.r([_.y(_.W0),_.Q("design:type",Object)],ht.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ht.prototype,"data",void 0);_.r([_.w("data.button.buttonRenderer.command"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ht.prototype,"onTapCommand",null);_.r([_.P({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],ht);
_.m(ht,"ytd-comment-pause-composer-renderer",function(){if($FL!==void 0)return $FL;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return $FL=L},{mode:1});var DFt;var l5t;var s5=function(){var L=_.e.apply(this,arguments)||this;L.isOpen=!1;return L};
_.f(s5,_.e);_.t=s5.prototype;_.t.dataChanged=function(){this.isOpen=!1};
_.t.onTap=function(){this.data&&(this.data.navigationEndpoint?_.QT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.t.focus=function(){this.JSC$15967_commentbox.focus()};
_.t.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.t.openDialog=function(){this.isOpen=!0;this.JSC$15967_commentbox.focus();this.JSC$15967_commentbox.maybeHeightChanged()};
s5.prototype.onYtCommentboxDismiss=s5.prototype.onYtCommentboxDismiss;s5.prototype.dataChanged=s5.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],s5.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],s5.prototype,"isOpen",void 0);_.r([_.TX("#commentbox"),_.Q("design:type",Object)],s5.prototype,"JSC$15967_commentbox",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],s5.prototype,"dataChanged",null);_.r([_.SA("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],s5.prototype,"onYtCommentboxDismiss",null);_.r([_.P({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],s5);
_.m(s5,"ytd-comment-reply-dialog-renderer",function(){if(l5t!==void 0)return l5t;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return l5t=L},{mode:1});var vxt;var jT=function(){return _.e.apply(this,arguments)||this};
_.f(jT,_.e);_.gd.Object.defineProperties(jT.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=(L=this.data)==null?void 0:(Z=L.icon)==null?void 0:Z.iconType;return N?"yt-icons:"+N.toLowerCase():null}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],jT.prototype,"data",void 0);_.r([_.Y(),_.w("data.icon"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jT.prototype,"icon",null);_.r([_.P({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],jT);
_.m(jT,"ytd-pinned-comment-badge-renderer",function(){if(vxt!==void 0)return vxt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return vxt=L},{mode:1});var oxh;var RPs={},cBI={input:!0,meta:!0,br:!0,link:!0,img:!0},E5=null;RPs.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(){E5==null&&(E5=document.createElement("tp-yt-paper-tooltip"),E5.offset=8,E5.fitToVisibleBounds=!0)},
onMouseOver_:function(L){if(L=_.rF(L.target,function(u){return u==this||u.getAttribute&&u.getAttribute("shared-tooltip-text")}.bind(this),!0)){var Z=L.getAttribute("shared-tooltip-text");
if(Z){var N=this,S=null;L!=this&&(L.tagName.toLowerCase()in cBI?N=L.parentElement:N=L,L.id&&(S=L.id));this.polymerController.createTooltipIfRequired_();if(E5.parentElement!=N||E5.for!=S)(0,_.qJ)(E5).textContent=Z,_.QJ(N).appendChild(E5),E5.for=S,E5.animationDelay=this.polymerController.sharedTooltipAnimationDelay,E5.position=this.polymerController.sharedTooltipPosition}}}};var PN=function(){return _.e.apply(this,arguments)||this};
_.f(PN,_.e);PN.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]]"}}}}}};
PN.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var L;((L=this.data)==null?0:L.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
PN.prototype.colorChanged=function(){var L,Z,N,S=(L=this.data)==null?void 0:(Z=L.color)==null?void 0:(N=Z.basicColorPaletteData)==null?void 0:N.foregroundBodyColor;S&&(this.rgbBadgeColor=_.vq(S));_.QJ(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
PN.prototype.tooltipChanged=function(){var L;((L=this.data)==null?0:L.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
PN.prototype.tooltipChanged=PN.prototype.tooltipChanged;PN.prototype.colorChanged=PN.prototype.colorChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(RPs.YtSharedTooltipBehavior),_.Q("design:type",Object)],PN.prototype,"ytSharedTooltipBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],PN.prototype,"data",void 0);
_.r([_.Y({value:"#4285F4"}),_.Q("design:type",String)],PN.prototype,"rgbBadgeColor",void 0);_.r([_.iA("data.color"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PN.prototype,"colorChanged",null);_.r([_.iA("data.tooltip"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PN.prototype,"tooltipChanged",null);_.r([_.P({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],PN);
_.m(PN,"ytd-sponsor-comment-badge-renderer",function(){if(oxh!==void 0)return oxh;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return oxh=L},{mode:1});var nxI;var Kvt;var pP=function(){return _.e.apply(this,arguments)||this};
_.f(pP,_.e);pP.prototype.computeState=function(L){switch(L==null?void 0:L.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"}};
pP.prototype.updateStateIdentifier=function(L){if(this.viewModel.triStateKey){var Z=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.vt("triStateButtonStateEntityPayload",Z,{key:Z,stateIdentifier:L}))}};
pP.prototype.onClick=function(){var L=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(){L.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){L.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.gd.Object.defineProperties(pP.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 L;return((L=this.data)==null?void 0:L.buttonText)||""}}});
_.r([_.Y(),_.Q("design:type",Object)],pP.prototype,"viewModel",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],pP.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],pP.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.r([_.Y({selector:Ttx,selectorArgs:["viewModel.triStateKey"]}),_.Q("design:type",Object)],pP.prototype,"triStateButtonStateEntity",void 0);
_.r([_.Y({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.Q("design:type",String)],pP.prototype,"state",void 0);_.r([_.w("viewModel","state"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],pP.prototype,"data",null);_.r([_.w("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],pP.prototype,"buttonText",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],pP);
_.m(pP,"ytd-tri-state-button-view-model",function(){if(Kvt!==void 0)return Kvt;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Kvt=L},{mode:1});var f5t;var kJI;var zu=function(){var L=_.e.apply(this,arguments)||this;L.defaultIconToFilled=!_.c("kevlar_fill_comment_chip_icon_killswitch");return L};
_.f(zu,_.e);zu.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
zu.prototype.dataChanged=function(){if(this.data){var L,Z;((L=this.data.chipColorPalette)==null?0:L.backgroundColor)&&((Z=this.data.chipColorPalette)==null?0:Z.foregroundTitleColor)&&_.Ld(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Rs(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Rs(this.data.chipColorPalette.foregroundTitleColor)});var N;((N=this.data)==null?0:N.command)?(_.Ld(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Ld(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}};
zu.prototype.onTap=function(){var L;if(this.data&&(L=this.data)!=null&&L.command){var Z;this.ytComponentBehavior.resolveCommand((Z=this.data)==null?void 0:Z.command)}};
zu.prototype.getIconSize=function(){return _.c("kevlar_fill_comment_chip_icon_killswitch")?24:12};
zu.prototype.onTap=zu.prototype.onTap;zu.prototype.dataChanged=zu.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],zu.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.Ub),_.Q("design:type",Object)],zu.prototype,"ironA11yKeysBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],zu.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Object)],zu.prototype,"basePriceText",void 0);_.r([_.Y(),_.Q("design:type",Object)],zu.prototype,"chipIcon",void 0);_.r([_.Y(),_.Q("design:type",Object)],zu.prototype,"defaultIconToFilled",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zu.prototype,"dataChanged",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zu.prototype,"onTap",null);
_.r([_.ch({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],zu);
_.m(zu,"yt-pdg-comment-chip-renderer",function(){if(kJI===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;f5t===void 0&&(f5t=document.createElement("template"));var S=f5t;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);kJI=L}L=kJI;return L},{mode:2});var mn=function(){var L=_.e.apply(this,arguments)||this;L.useSmallAvatars=_.c("small_avatars_for_comments");L.commentThreadingEnabled=_.c("web_delhi_comment_threads");L.webWatchCompactComments=_.c("web_watch_compact_comments");L.editDialog=null;return L};
_.f(mn,_.e);_.t=mn.prototype;_.t.onShow=function(){_.Kq("cmv",void 0,"wn_comments")};
_.t.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"}}}};
_.t.detached=function(){this.editDialog=null;this.expander.reset()};
_.t.updateBackgroundColor=function(){if(this.backgroundColor){var L={"--ytd-comment-paid-background-color":_.Rs(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Ld(this.hostElement,L)}else _.Ld(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.t.resetExpander=function(){var L;(L=this.expander)==null||L.reset()};
_.t.openEditDialog=function(L){L.dialog&&(this.editDialog=L.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.t.onYtNavigate=function(L){var Z=L.detail.endpoint;if(Z=_.n(Z,_.Hft)||_.n(Z,_.BHh))L.stopPropagation(),this.openEditDialog(Z)};
_.t.onYtCommentboxDismiss=function(){this.editDialog=null;_.Ld(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.t.onAuthorThumbnailClicked=function(){_.c("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.t.onYtCommentboxResize=function(L){var Z;(L==null?0:(Z=L.detail)==null?0:Z.height)&&_.Ld(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":L.detail.height+"px"})};
_.gd.Object.defineProperties(mn.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 L,Z=(L=this.commentEntity)==null?void 0:L.author;return Z&&(Z.isCreator||Z.isVerified||Z.isArtist)?{renderer:{authorEndpoint:Z.channelPageEndpoint?_.n(Z.channelPageEndpoint,_.nY):_.n(Z.channelCommand,_.nY),authorText:{runs:[{text:Z.displayName}]},color:Z.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:Z.isArtist?{iconType:"AUDIO_BADGE"}:
Z.isVerified?{iconType:Z.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:Z.isArtist||Z.isVerified?Z.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var L,Z=(L=this.commentEntity)==null?void 0:L.author;return Z!=null&&Z.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:Z.sponsorBadgeUrl}]},tooltip:Z.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var L;return _.n((L=this.commentSurfaceEntity)==null?void 0:L.pdgCommentChip,_.fA0)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var L;return this.voiceReplyContainerViewModel&&((L=this.voiceReplyContainerViewModel)==null?void 0:L.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var L;return _.n((L=this.commentSurfaceEntity)==null?void 0:L.voiceReplyContainerViewModel,kb0)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var L;return this.voiceReplyContainerViewModel&&(L=this.voiceReplyContainerViewModel)!=null&&L.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var L,Z;return(Z=(L=this.commentSurfaceEntity)==null?void 0:L.commentBackgroundColor)!=null?Z:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.c("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var L,Z;return(((L=this.commentEntity)==null?void 0:(Z=L.properties)==null?void 0:Z.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var L,Z;if(_.c("enable_profile_cards_on_comments")&&((L=this.commentEntity)==null?0:(Z=L.author)==null?0:Z.profileCardEndpoint)&&this.viewModel.allowProfileCard){var N,S;return _.n((N=this.commentEntity)==null?void 0:(S=N.author)==null?void 0:S.profileCardEndpoint,_.nY)}var u,T;return _.n((u=this.commentEntity)==null?void 0:(T=u.avatar)==null?void 0:T.endpoint,_.nY)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var L,Z;if(_.c("enable_profile_cards_on_comments")&&((L=this.commentEntity)==null?0:(Z=L.author)==null?0:Z.channelPageEndpoint)){var N,S;return _.n((N=this.commentEntity)==null?void 0:(S=N.author)==null?void 0:S.channelPageEndpoint,_.nY)}var u,T;return _.n((u=this.commentEntity)==null?void 0:(T=u.avatar)==null?void 0:T.endpoint,_.nY)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S,u=(L=this.commentEntity)==null?void 0:(Z=L.avatar)==null?void 0:(N=Z.image)==null?void 0:(S=N.sources)==null?void 0:S[0];return u?{thumbnails:[{url:u.url,width:u.width,height:u.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.commentEntity)==null?0:(Z=L.author)==null?0:Z.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.commentEntity)==null?void 0:(Z=L.author)==null?void 0:Z.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.commentEntity)==null?void 0:(Z=L.properties)==null?void 0:Z.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var L;return _.n((L=this.commentSurfaceEntity)==null?void 0:L.publishedTimeCommand,_.nY)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var L,Z;if(((L=this.commentEntity)==null?0:L.translatedContent)&&((Z=this.translateButtonState)==null?void 0:Z.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var N;if((N=this.voiceReplyContainerViewModel)==null?0:N.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var S,u;return((S=this.commentEntity)==null?void 0:(u=S.properties)==null?void 0:u.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.commentSharedEntity)==null?void 0:(Z=L.strings)==null?void 0:Z.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.commentSharedEntity)==null?void 0:(Z=L.strings)==null?void 0:Z.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.commentEntity)==null||!L.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var L,Z,N=(Z=_.n((L=this.viewModel)==null?void 0:L.translateButton,fXL))!=null?Z:{},S,u,T,W,V,M,G,D,l,v,R;return Object.assign({},N,{untoggledStateData:Object.assign({},N.untoggledStateData,{buttonText:(S=this.commentEntity)==null?void 0:(u=S.translateData)==null?void 0:u.text}),togglingStateData:Object.assign({},N.togglingStateData,{buttonText:(T=this.commentSharedEntity)==null?
void 0:(W=T.strings)==null?void 0:W.translatingText}),toggledStateData:Object.assign({},N.toggledStateData,{buttonText:(V=this.commentSharedEntity)==null?void 0:(M=V.strings)==null?void 0:M.seeOriginalText}),transitionCommand:((G=this.commentEntity)==null?0:G.translatedContent)?void 0:_.n((D=this.commentEntity)==null?void 0:(l=D.translateData)==null?void 0:l.translateComment,_.nY),triStateKey:(v=this.commentEntity)==null?void 0:(R=v.properties)==null?void 0:R.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return((Z=_.n(_.n((L=this.toolbarSurface)==null?void 0:L.menuCommand,_.nY),xvt))==null?void 0:(N=Z.menu)==null?void 0:N.menuRenderer)||null}}});
mn.prototype.onYtCommentboxResize=mn.prototype.onYtCommentboxResize;mn.prototype.onYtCommentboxDismiss=mn.prototype.onYtCommentboxDismiss;mn.prototype.onYtNavigate=mn.prototype.onYtNavigate;mn.prototype.resetExpander=mn.prototype.resetExpander;mn.prototype.updateBackgroundColor=mn.prototype.updateBackgroundColor;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],mn.prototype,"ytdReduxBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],mn.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],mn.prototype,"ytRendererstamperBehavior",void 0);_.r([_.TX("#author-thumbnail > button"),_.Q("design:type",HTMLElement)],mn.prototype,"authorThumbnailAnchor",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("viewModel"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],mn.prototype,"linked",null);
_.r([_.w("viewModel","linked"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"linkedCommentBadge",null);_.r([_.Y({reflectToAttribute:!0}),_.w("viewModel"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],mn.prototype,"pinned",null);_.r([_.w("viewModel","pinned"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"pinnedCommentBadge",null);
_.r([_.w("commentEntity","commentSharedEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"authorCommentBadge",null);_.r([_.Y({reflectToAttribute:!0}),_.w("authorCommentBadge"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"hasAuthorBadge",null);_.r([_.w("commentEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"sponsorCommentBadge",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("sponsorCommentBadge"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"hasSponsorBadge",null);_.r([_.w("commentSurfaceEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"pdgCommentChipRenderer",null);_.r([_.Y({reflectToAttribute:!0}),_.w("voiceReplyContainerViewModel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"hasVoiceReply",null);
_.r([_.w("commentSurfaceEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"voiceReplyContainerViewModel",null);_.r([_.w("voiceReplyContainerViewModel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"voiceReplyUnavailableText",null);_.r([_.Y(),_.Q("design:type",Object)],mn.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"viewModel",null);
_.r([_.Y({selector:function(L,Z){return _.Lk(L.entities,"commentSharedEntityPayload",Z)},
selectorArgs:["viewModel.sharedKey"]}),_.Q("design:type",Object)],mn.prototype,"commentSharedEntity",void 0);_.r([_.Y({selector:ig1,selectorArgs:["viewModel.commentKey"]}),_.Q("design:type",Object)],mn.prototype,"commentEntity",void 0);_.r([_.Y({selector:function(L,Z){return _.Lk(L.entities,"commentSurfaceEntityPayload",Z)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.Q("design:type",Object)],mn.prototype,"commentSurfaceEntity",void 0);_.r([_.Y({selector:uVP,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.Q("design:type",Object)],mn.prototype,"toolbarSurface",void 0);_.r([_.Y({selector:Ttx,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.Q("design:type",Object)],mn.prototype,"translateButtonState",void 0);
_.r([_.w("commentSurfaceEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"backgroundColor",null);_.r([_.Y({reflectToAttribute:!0}),_.w("viewModel"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],mn.prototype,"optimalReadingWidthComments",null);_.r([_.TX("ytd-expander"),_.Q("design:type",Object)],mn.prototype,"expander",void 0);
_.r([_.iA("backgroundColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mn.prototype,"updateBackgroundColor",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],mn.prototype,"useSmallAvatars",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],mn.prototype,"commentThreadingEnabled",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],mn.prototype,"webWatchCompactComments",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("commentEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"isReply",null);_.r([_.w("commentEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"authorThumbnailEndpoint",null);_.r([_.w("commentEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"authorNameEndpoint",null);_.r([_.w("commentEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"authorThumbnail",null);
_.r([_.w("commentEntity"),_.Q("design:type",String),_.Q("design:paramtypes",[])],mn.prototype,"authorTextClass",null);_.r([_.w("commentEntity"),_.Q("design:type",String),_.Q("design:paramtypes",[])],mn.prototype,"authorChannelName",null);_.r([_.w("commentEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"publishedTime",null);_.r([_.w("commentSurfaceEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"publishedTimeCommand",null);
_.r([_.w("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"contentText",null);_.r([_.iA("contentText"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mn.prototype,"resetExpander",null);_.r([_.w("commentEntity"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],mn.prototype,"shouldShowReadMoreInitially",null);
_.r([_.w("commentSharedEntity"),_.Q("design:type",String),_.Q("design:paramtypes",[])],mn.prototype,"expandText",null);_.r([_.w("commentSharedEntity"),_.Q("design:type",String),_.Q("design:paramtypes",[])],mn.prototype,"collapseText",null);_.r([_.w("commentEntity"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],mn.prototype,"shouldShowTranslateButton",null);
_.r([_.w("commentEntity","commentSharedEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"translateButton",null);_.r([_.w("toolbarSurface"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mn.prototype,"overflowMenuRenderer",null);_.r([_.Y(),_.Q("design:type",Object)],mn.prototype,"editDialog",void 0);_.r([_.TX("ytd-comment-dialog-renderer"),_.Q("design:type",Object)],mn.prototype,"editCommentDialogContainer",void 0);
_.r([_.TX("ytd-comment-reply-dialog-renderer"),_.Q("design:type",Object)],mn.prototype,"editReplyDialogContainer",void 0);_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],mn.prototype,"onYtNavigate",null);_.r([_.SA("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],mn.prototype,"onYtCommentboxDismiss",null);
_.r([_.SA("yt-commentbox-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],mn.prototype,"onYtCommentboxResize",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-comment-view-model"})],mn);
_.m(mn,"ytd-comment-view-model",function(){if(nxI!==void 0)return nxI;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return nxI=L},{mode:_.Qr("kevlar_poly_si_batch_j025")?1:2});_.CY(_.p(function(L){var Z={};return _.g("yt-sub-thread",{class:_.qg("ytSubThreadHost",(Z.ytSubThreadHasButton=L.isButton,Z))},_.g("div",{class:"ytSubThreadThreadline"},_.g(_.F,{cond:function(){var N;return!((N=L.isTeaser)==null?0:N.call(L))},
then:function(){return _.g("div",{class:"ytSubThreadConnection"})}}),_.g("div",{class:"ytSubThreadContinuation"}),_.g("div",{class:"ytSubThreadShadow"})),_.g("div",{class:"ytSubThreadSubThreadContent"},L.children))},"Ic"),"yt-sub-thread",{props:{isButton:_.LK,
isTeaser:_.LK}});var Jt=function(){var L=_.e.apply(this,arguments)||this;L.modern=_.c("web_modern_buttons");L.commentThreadingEnabled=_.c("web_delhi_comment_threads");L.isWatchGrid=_.c("kevlar_watch_grid");L.buttonOverrides=L.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};L.JSC$16013_spinnerEl=null;return L};
_.f(Jt,_.e);_.t=Jt.prototype;_.t.configureContinuationPathMap=function(){return _.c("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.t.shouldShowLegacyTeasers=function(L,Z){return L&&!Z};
_.t.shouldShowExpandedThreads=function(L,Z){return this.commentThreadingEnabled&&Z&&(L==null?void 0:L.length)>0};
_.t.shouldShowCollapsedThreads=function(L,Z){return this.commentThreadingEnabled&&!Z&&L};
_.t.computeCommentViewModel=function(L){return _.n(L,KVq)};
_.t.computeThreadRenderer=function(L){return _.n(L,lX5)};
_.t.computeIsContinuationItem=function(L){return!!this.computeContinuationItemRenderer(L)};
_.t.computeButtonRenderer=function(L){return _.n(L,_.xZ)};
_.t.computeContinuationItemRenderer=function(L){return _.n(L,_.Ei)};
_.t.computeShowButton=function(L){var Z;return!((Z=this.computeContinuationItemRenderer(L))==null||!Z.button)};
_.t.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]]"}}}}}};
_.t.attached=function(){this.isShowRepliesVisible=!0};
_.t.dataChanged=function(){var L=this.expanderContents;L&&(L.hidden=!0);this.isLoading=!1};
_.t.endsInContinuation=function(L){return!!L&&L.length>0&&!!this.computeContinuationItemRenderer(L[L.length-1])};
_.t.computeShouldShowHideRepliesButton=function(L,Z){return!L&&Z};
_.t.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.t.isLoadingChanged=function(){this.isLoading&&!this.JSC$16013_spinnerEl&&(this.JSC$16013_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.QJ(this.expanderContents).appendChild(this.JSC$16013_spinnerEl));this.JSC$16013_spinnerEl&&(this.JSC$16013_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var L;(L=this.contents)==null||L.classList.remove("reloading")}};
_.t.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var L=_.n(this.data.viewReplies,_.xZ);L&&this.ytRendererBehavior.logExplicitClick(L);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.t.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var L=_.n(this.data.hideReplies,_.xZ);L&&this.ytRendererBehavior.logExplicitClick(L);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.t.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var L=_.QJ(this.hostElement).querySelector("#expander-contents");L&&(L.hidden=this.isShowRepliesVisible)}};
_.t.computeAlign=function(){if(this.modern){var L;return!((L=this.data)==null?0:L.viewRepliesCreatorThumbnail)}};
_.gd.Object.defineProperties(Jt.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var L,Z;return this.endsInContinuation((L=this.data)==null?void 0:L.contents)||this.commentThreadingEnabled&&this.endsInContinuation((Z=this.data)==null?void 0:Z.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var L;return(L=this.data)==null?void 0:L.teaserContents}}});
Jt.prototype.isShowMoreChanged=Jt.prototype.isShowMoreChanged;Jt.prototype.isLoadingChanged=Jt.prototype.isLoadingChanged;Jt.prototype.triggerFirstContinuation=Jt.prototype.triggerFirstContinuation;Jt.prototype.dataChanged=Jt.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Jt.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Jt.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.Sq),_.Q("design:type",Object)],Jt.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Jt.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Jt.prototype,"modern",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Jt.prototype,"commentThreadingEnabled",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Jt.prototype,"expanded",void 0);
_.r([_.Y(),_.Q("design:type",Function)],Jt.prototype,"toggleExpanded",void 0);_.r([_.Y(),_.Q("design:type",Array)],Jt.prototype,"addedReplies",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Jt.prototype,"isLoading",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],Jt.prototype,"isShowRepliesVisible",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Jt.prototype,"useNewFormatting",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Jt.prototype,"isWatchGrid",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Jt.prototype,"buttonOverrides",void 0);_.r([_.TX("#expander-contents"),_.Q("design:type",HTMLElement)],Jt.prototype,"expanderContents",void 0);_.r([_.TX("ytd-continuation-item-renderer"),_.Q("design:type",Object)],Jt.prototype,"continuationItemRenderer",void 0);_.r([_.TX("#contents"),_.Q("design:type",HTMLElement)],Jt.prototype,"contents",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Jt.prototype,"dataChanged",null);_.r([_.w("data.contents","data.subThreads.*"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Jt.prototype,"hasContinuation",null);_.r([_.w("data.teaserContents"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Jt.prototype,"subThreadTeasers",null);
_.r([_.SA("yt-expander-more-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Jt.prototype,"triggerFirstContinuation",null);_.r([_.iA("isLoading"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Jt.prototype,"isLoadingChanged",null);_.r([_.iA("isShowRepliesVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Jt.prototype,"isShowMoreChanged",null);
_.r([_.P({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],Jt);
_.m(Jt,"ytd-comment-replies-renderer",function(){if(DFt!==void 0)return DFt;var L=document.createElement("template");_.k(L,'\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 is-teaser="" 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 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 is-button="" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="[[computeIsContinuationItem(item)]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return DFt=L},{mode:1});var yBq;var CP=function(){var L=_.e.apply(this,arguments)||this;L.isOpen=!1;L.commentDialog=null;L.useSmallAvatars=_.c("small_avatars_for_comments");L.useSmallAvatarsEngagementPanelOnly=_.c("small_avatars_for_comments_ep");L.placeholderFocusListener=null;L.hasOpenedDialog=!1;L.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return L};
_.f(CP,_.e);_.t=CP.prototype;_.t.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]]"}}}}}};
_.t.ready=function(){var L=this,Z=_.QJ(this.hostElement).querySelector("#placeholder-area"),N=_.QJ(this.hostElement).querySelector("#simplebox-placeholder"),S=function(u){u.stopPropagation();u instanceof KeyboardEvent&&u.type==="keypress"&&u.keyCode!==13&&u.keyCode!==32||L.openDialog()};
this.placeholderFocusListener=S;N.addEventListener("focus",this.placeholderFocusListener);Z.addEventListener("tap",S);Z.addEventListener("keypress",S)};
_.t.maybeRemoveFocusEventListener=function(){var L;(L=this.data)!=null&&L.prepareAccountEndpoint&&!_.c("web_comments_simplebox_modal_focus_on_tap_ks")&&(L=_.QJ(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(L.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.t.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.t.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.c("web_comment_simplebox_resolve_polymer_command_ks")?_.qd.instance.resolveCommand(this.data.prepareAccountEndpoint):_.LY(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var L=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);L&&this.ytdOpenPopupBehavior.openPopup(L);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.QJ(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.t.onYtCommentboxDismiss=function(L){L.stopPropagation();this.isOpen=!1};
_.t.onCreateCommentAction=function(L){this.get("createCommentAction.contents",L)&&(this.isOpen=!1)};
_.t.computeCommentDialog=function(L){return{placeholderText:L.placeholderText,authorThumbnail:L.authorThumbnail,submitButton:L.submitButton,imageButton:L.imageButton,cancelButton:L.cancelButton,emojiButton:L.emojiButton,emojis:L.emojis,emojiPicker:L.emojiPicker,aadcGuidelinesStateEntityKey:L.aadcGuidelinesStateEntityKey,openAadcDialog:L.openAadcDialog,unicodeEmojisUrl:L.unicodeEmojisUrl}};
_.t.onHideIdentityChip=function(L){_.n(L,MR0)&&this.set("data.placeholderText",_.n(L,MR0).placeholderText)};
CP.prototype.onYtCommentboxDismiss=CP.prototype.onYtCommentboxDismiss;CP.prototype.dataChanged=CP.prototype.dataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.W0),_.Q("design:type",Object)],CP.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],CP.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],CP.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],CP.prototype,"isOpen",void 0);_.r([_.Y(),_.Q("design:type",Object)],CP.prototype,"commentDialog",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],CP.prototype,"engagementPanel",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],CP.prototype,"useSmallAvatars",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],CP.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],CP.prototype,"enableCreationBox",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],CP.prototype,"showCreateDialog",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],CP.prototype,"dataChanged",null);_.r([_.SA("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],CP.prototype,"onYtCommentboxDismiss",null);_.r([_.P({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],CP);
_.m(CP,"ytd-comment-simplebox-renderer",function(){if(yBq!==void 0)return yBq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return yBq=L},{mode:1});var wfL;_.l4("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var rC=function(){var L=_.e.apply(this,arguments)||this;L.addHoverEffect=_.c("swatcheroo_comments_hover_effect");L.useSmallAvatars=_.c("small_avatars_for_comments");L.scrollingEnabled=_.c("web_comment_threading_scroll_on_collapse");L.threadHovered=!1;L.expanded=!1;L.removed=!1;L.addedReplies=[];L.actionMap=L.configureActionMap();L.toggleExpanded=function(){L.expanded=!L.expanded;!L.expanded&&L.scrollingEnabled&&_.XJ(L.hostElement,"yt-scroll-to-comment-element",[L.commentElement])};
return L};
_.f(rC,_.e);_.t=rC.prototype;_.t.configureActionMap=function(){return _.c("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"}:{}};
_.t.createCommentReplyAction=function(L){L=_.n(L,VRq);if(L!=null&&L.contents){var Z=L.replyToCommentId,N=L.parentCommentId,S,u=(S=this.commentViewModel)==null?void 0:S.commentId;(u===Z||u===N&&!Z)&&this.maybeAttachReply(L.contents)}};
_.t.maybeAttachReply=function(L){var Z,N;(((Z=this.commentEntity)==null?void 0:(N=Z.properties)==null?void 0:N.replyLevel)||0)>=3?_.QT(this.hostElement,"yt-pushed-create-comment-reply",L):this.attachReply(L)};
_.t.onPushedCreateCommentReply=function(L){var Z,N;(((Z=this.commentEntity)==null?void 0:(N=Z.properties)==null?void 0:N.replyLevel)||0)>=3||(this.attachReply(L.detail),L.stopPropagation())};
_.t.attachReply=function(L){var Z;((Z=this.data)==null?0:Z.replies)?(Z=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+Z+".continuationItemRenderer")?Z===0?this.push("addedReplies",L):this.splice("data.replies.commentRepliesRenderer.subThreads",Z,0,L):this.push("data.replies.commentRepliesRenderer.subThreads",L)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[L],viewReplies:{buttonRenderer:{text:_.Cq(_.iB("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.t.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.Pd(this.addedReplies))),this.set("addedReplies",[]))};
_.t.removeCommentAction=function(L){L=_.n(L,FVt);var Z=L==null?void 0:L.commentId,N;Z&&((N=this.commentViewModel)==null?void 0:N.commentId)===Z&&this.maybeRemoveComment(L.actionResult)};
_.t.banAuthorAction=function(L){L=_.n(L,O6t);var Z=L==null?void 0:L.commentId,N;Z&&((N=this.commentViewModel)==null?void 0:N.commentId)===Z&&this.maybeRemoveComment(L.actionResult)};
_.t.hideReportedCommentAction=function(L){L=_.n(L,Yes);var Z=L==null?void 0:L.commentId,N;Z&&((N=this.commentViewModel)==null?void 0:N.commentId)===Z&&this.maybeRemoveComment(L.actionResult)};
_.t.maybeRemoveComment=function(L){L&&L.status==="STATUS_SUCCEEDED"&&(this.feedbackText=L.feedbackText||_.Cq("Reply removed"),this.removed=!0)};
_.t.onTap=function(L){if(this.addHoverEffect&&!this.engagementPanel&&!_.PQ(_.sx(L)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Z;((Z=window.getSelection())==null?0:Z.toString().length)||_.LY({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.t.attached=function(){var L=this;this.isSubThread&&(this.expanded=!0);var Z;(Z=this.commentThreadHitbox)==null||Z.addEventListener("mouseover",function(){L.threadHovered=!0});
var N;(N=this.commentThreadHitbox)==null||N.addEventListener("mouseout",function(){L.threadHovered=!1});
var S;(S=this.commentThreadHitbox)==null||S.addEventListener("click",function(){L.maybeToggleExpanded()})};
_.t.maybeToggleExpanded=function(){var L,Z,N,S=(L=this.data)==null?void 0:(Z=L.replies)==null?void 0:(N=Z.commentRepliesRenderer)==null?void 0:N.subThreads,u;(S==null?void 0:S.length)===1&&((u=_.n(S[0],_.Ei))==null?0:u.button)&&this.expanded||this.toggleExpanded()};
_.gd.Object.defineProperties(rC.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var L;return _.n((L=this.data)==null?void 0:L.commentViewModel,KVq)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return _.c("web_delhi_comment_threads")&&!!((L=this.data)==null?0:(Z=L.replies)==null?0:(N=Z.commentRepliesRenderer)==null?0:N.subThreads)}}});
rC.prototype.onTap=rC.prototype.onTap;rC.prototype.onAppendContinuationItemsActionFinished=rC.prototype.onAppendContinuationItemsActionFinished;rC.prototype.onPushedCreateCommentReply=rC.prototype.onPushedCreateCommentReply;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],rC.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],rC.prototype,"ytdReduxBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],rC.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],rC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rC.prototype,"addHoverEffect",void 0);_.r([_.Y(),_.Q("design:type",Object)],rC.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rC.prototype,"useSmallAvatars",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rC.prototype,"scrollingEnabled",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],rC.prototype,"isSubThread",void 0);_.r([_.TX(".thread-hitbox"),_.Q("design:type",HTMLElement)],rC.prototype,"commentThreadHitbox",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rC.prototype,"threadHovered",void 0);_.r([_.TX("#comment"),_.Q("design:type",HTMLElement)],rC.prototype,"commentElement",void 0);
_.r([_.Y(),_.Q("design:type",Object)],rC.prototype,"expanded",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rC.prototype,"removed",void 0);_.r([_.Y(),_.Q("design:type",Object)],rC.prototype,"feedbackText",void 0);_.r([_.Y(),_.Q("design:type",Array)],rC.prototype,"addedReplies",void 0);_.r([_.Y({selector:ig1,selectorArgs:["commentViewModel.commentKey"]}),_.Q("design:type",Object)],rC.prototype,"commentEntity",void 0);
_.r([_.SA("yt-pushed-create-comment-reply"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],rC.prototype,"onPushedCreateCommentReply",null);_.r([_.SA("yt-append-continuation-items-action-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],rC.prototype,"onAppendContinuationItemsActionFinished",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],rC.prototype,"commentViewModel",null);
_.r([_.w("data.replies"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],rC.prototype,"hasSubThreading",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],rC.prototype,"engagementPanel",void 0);_.r([_.SA("tap"),_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],rC.prototype,"onTap",null);_.r([_.P({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],rC);
_.m(rC,"ytd-comment-thread-renderer",function(){if(wfL!==void 0)return wfL;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" expanded="[[expanded]]" toggle-expanded="[[toggleExpanded]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return wfL=L},{mode:_.Qr("kevlar_poly_si_batch_j025")?1:2});var UFh;var QA=function(){var L=_.e.apply(this,arguments)||this;L.compactHeader=_.c("web_watch_compact_comments_header");L.hidePanelButton=!1;L.isPostSchedulingEnabled=_.c("enable_post_scheduling");L.hasFinishedStamping=!1;L.JSC$16036_handleOpenPostCommentDialogActionAfterStamp=!1;L.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return L};
_.f(QA,_.e);_.t=QA.prototype;
_.t.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"}}}};
_.t.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.t.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16036_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.t.onYtServiceRequestSent=function(L,Z){if(!_.c("kevlar_command_handler")&&Z.actions)for(L=0;L<Z.actions.length;L++){var N=Z.actions[L];_.n(N,sy5)&&_.QJ(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.n(N,sy5))}};
_.t.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var L;if(this.getPrefilledBackstagePostDialog((L=this.data)==null?void 0:L.actions)){_.QJ(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var Z=_.QJ(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;Z&&_.bN(this,function(){Z.focus();Z.openDialog&&Z.openDialog()})}}else this.hasActionsChange=!0};
_.t.computeIsBackstage=function(L){return L};
_.t.onYtCommentboxDismiss=function(){_.QJ(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.t.removePrefilledDialog=function(L){if(L==null?0:L.actions){for(var Z=L.actions.length-1;Z>=0;Z--){var N=void 0;((N=_.n(L.actions[Z],X3M))==null?0:N.dialog)&&delete L.actions[Z]}this.set("data",void 0);this.set("data",L)}};
_.t.getPrefilledBackstagePostDialog=function(L){if(L)for(var Z=0;Z<L.length;Z++){var N=L[Z],S=void 0;if((S=_.n(N,X3M))==null?0:S.dialog)return _.n(N,X3M).dialog}return null};
_.t.computeBackstagePostDialog=function(L){return L&&(this.getPrefilledBackstagePostDialog(L.actions)||L.createRenderer)};
_.t.dataChanged=function(){if(this.data){var L=this.data.customEmojis,Z=this.data.unicodeEmojisUrl;_.qN.clear();Z&&_.KsV(_.qN,Z);L&&_.qN.load(L)}};
_.t.handleSignalActionOpenPostCommentDialogAction=function(){var L=_.QJ(this.hostElement).querySelector("ytd-comment-simplebox-renderer");L?L.openDialog():this.JSC$16036_handleOpenPostCommentDialogActionAfterStamp=!0};
_.t.onPostHeaderTap=function(){var L;((L=this.data)==null?0:L.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.gd.Object.defineProperties(QA.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.c("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S,u,T,W;return!this.hidePanelButton&&_.c("kevlar_watch_comments_panel_button")&&((W=_.n((L=this.data)==null?void 0:(Z=L.sortMenu)==null?void 0:(N=Z.sortFilterSubMenuRenderer)==null?void 0:(S=N.subMenuItems)==null?void 0:(u=S[0])==null?void 0:(T=u.serviceEndpoint)==null?void 0:T.commandMetadata,_.Nj))==null?void 0:W.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.iB("MINIPLAYER_EXPAND_LABEL"),text:_.s9(_.iB("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
QA.prototype.dataChanged=QA.prototype.dataChanged;QA.prototype.onYtCommentboxDismiss=QA.prototype.onYtCommentboxDismiss;QA.prototype.observePrefilledBackstagePostDialog=QA.prototype.observePrefilledBackstagePostDialog;QA.prototype.onYtServiceRequestSent=QA.prototype.onYtServiceRequestSent;QA.prototype.onStampFinished=QA.prototype.onStampFinished;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],QA.prototype,"ytComponentBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],QA.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],QA.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],QA.prototype,"compactHeader",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],QA.prototype,"engagementPanel",void 0);_.r([_.Y(),_.Q("design:type",Object)],QA.prototype,"hidePanelButton",void 0);_.r([_.Y({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],QA.prototype,"isBackstage",void 0);_.r([_.Y({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.Q("design:type",Object)],QA.prototype,"backstagePostDialog",void 0);
_.r([_.Y(),_.Q("design:type",Object)],QA.prototype,"isPostSchedulingEnabled",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data","showCommentsPanelButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],QA.prototype,"useSpaceBetween",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data","hidePanelButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],QA.prototype,"showCommentsPanelButton",null);
_.r([_.w("data","showCommentsPanelButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],QA.prototype,"commentsPanelButtonData",null);_.r([_.SA("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],QA.prototype,"onStampFinished",null);_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],QA.prototype,"onYtServiceRequestSent",null);
_.r([_.iA("data.actions"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],QA.prototype,"observePrefilledBackstagePostDialog",null);_.r([_.SA("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],QA.prototype,"onYtCommentboxDismiss",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],QA.prototype,"dataChanged",null);
_.r([_.P({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],QA);
_.m(QA,"ytd-comments-header-renderer",function(){if(UFh!==void 0)return UFh;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return UFh=L},{mode:1});var Y2M;var Xc=function(){return _.e.apply(this,arguments)||this};
_.f(Xc,_.e);_.r([_.Y(),_.Q("design:type",Object)],Xc.prototype,"data",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.r([_.P({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Xc);
_.m(Xc,"ytd-destination-button-renderer",function(){if(Y2M!==void 0)return Y2M;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Y2M=L},{mode:1});var ePI;var At=function(){var L=_.e.apply(this,arguments)||this;L.isRichGrid=!1;L.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return L};
_.f(At,_.e);_.t=At.prototype;_.t.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.t.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.t.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.t.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var L;if((L=this.data)==null||!L.isExpanded){L=this.hostElement.clientWidth;var Z;if(L&&(Z=this.data)!=null&&Z.destinationButtons){Z=Math.floor((L+4)/214);L=this.data.destinationButtons.length;var N=Math.ceil(L/Z);this.fullyVisibleRows=L%Z===1&&N===2?1:Math.min(N,2);this.isShowMoreVisible=this.fullyVisibleRows<N}}}};
_.t.updateRichGridDestinationButtonsVisibility=function(){var L,Z;if(this.isRichGrid&&((L=this.data)==null||!L.isExpanded)&&(Z=this.data)!=null&&Z.destinationButtons){L=this.richGridItemsPerRow+1;Z=this.data.destinationButtons.length;var N=Math.ceil(Z/L);this.fullyVisibleRows=Z%L===1&&N===2?1:Math.min(N,2);this.isShowMoreVisible=this.fullyVisibleRows<N}};
_.t.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
At.prototype.updateRichGridDestinationButtonsVisibility=At.prototype.updateRichGridDestinationButtonsVisibility;_.r([_.Y(),_.Q("design:type",Object)],At.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Number)],At.prototype,"fullyVisibleRows",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],At.prototype,"isShowMoreVisible",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],At.prototype,"isRichGrid",void 0);
_.r([_.Y({selector:_.oi,value:0}),_.Q("design:type",Number)],At.prototype,"richGridItemsPerRow",void 0);_.r([_.Y(),_.Q("design:type",Object)],At.prototype,"gridStateActionMap",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],At.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],At.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],At.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],At.prototype,"ytdReduxBehavior",void 0);_.r([_.iA("data","richGridItemsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],At.prototype,"updateRichGridDestinationButtonsVisibility",null);_.r([_.P({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],At);
_.m(At,"ytd-destination-shelf-renderer",function(){if(ePI!==void 0)return ePI;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return ePI=L},{mode:1});var I5L;var HN=function(){return _.e.apply(this,arguments)||this};
_.f(HN,_.e);HN.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"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],HN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],HN.prototype,"data",void 0);_.r([_.P({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],HN);
_.m(HN,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(I5L!==void 0)return I5L;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return I5L=L},{mode:1});var dFq;var BN=function(){var L=_.e.apply(this,arguments)||this;L.disableAnimation=!1;L.isSlimlineSurvey=!1;L.isSlimlineSurveyFollowUp=!1;L.isShortsStyle=!1;return L};
_.f(BN,_.e);BN.prototype.onTap=function(L){L.preventDefault();this.data&&_.QT(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.gd.Object.defineProperties(BN.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 L,Z,N,S,u;return((L=this.data)==null?0:L.checked)?(Z=this.data)==null?void 0:(N=Z.onStateIcon)==null?void 0:N.iconType:(S=this.data)==null?void 0:(u=S.defaultStateIcon)==null?void 0:u.iconType}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],BN.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],BN.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],BN.prototype,"disableAnimation",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BN.prototype,"isSlimlineSurvey",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BN.prototype,"isSlimlineSurveyFollowUp",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BN.prototype,"isShortsStyle",void 0);_.r([_.w("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],BN.prototype,"isAnimatedIcon",null);
_.r([_.w("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],BN.prototype,"iconSize",null);_.r([_.w("isShortsStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],BN.prototype,"isDarkTheme",null);_.r([_.w("data.checked"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],BN.prototype,"icon",null);_.r([_.P({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],BN);
_.m(BN,"ytd-rating-survey-option-renderer",function(){if(dFq!==void 0)return dFq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return dFq=L},{mode:2});var a55;var x2=function(){var L=_.e.apply(this,arguments)||this;L.firstResponseText=null;L.lastResponseText=null;L.selectedNonStarOption=null;L.hideOptions=!1;L.hideUndoButton=!0;L.disableAnimation=!1;L.showResponseRangeText=!1;L.selectedRatingIndex=-1;L.isSlimlineSurvey=!1;L.isSlimlineSurveyFollowUp=!1;L.isShortsStyle=!1;L.slimlineSurveyRatingSelectedIndex=-1;return L};
_.f(x2,_.e);_.t=x2.prototype;_.t.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.t.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.t.onOptionChange=function(L,Z){var N=this;L=Z.onStateIcon&&Z.defaultStateIcon&&Z.onStateIcon.iconType===Z.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(W,V){W.responseText===Z.responseText?N.isSlimlineSurvey?(N.selectedRatingIndex=V,N.ytdReduxBehavior.dispatch(CuY(V))):(N.setSurveyOptionValue(V,!0,"checked"),N.setSurveyOptionValue(V,!0,"selected")):(N.setSurveyOptionValue(V,!1,"checked"),N.setSurveyOptionValue(V,
!1,"selected"))});
else if(L)this.selectedNonStarOption=Z,this.hideOptions=!0;else{var S=this.ytRendererBehavior.getSimpleString(Z.responseText),u=!0;this.getOptionRenderers().forEach(function(W,V){N.setSurveyOptionValue(V,u,"checked");N.setSurveyOptionValue(V,!1,"selected");N.ytRendererBehavior.getSimpleString(W.responseText)===S&&(u=!1,N.setSurveyOptionValue(V,!0,"selected"))})}L=Z.responseEndpoint;
var T;Z.followUpCommand&&(T=_.n(Z.followUpCommand,pDq));this.isSlimlineSurvey?(this.resetComponent(),_.XJ(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.XJ(this.hostElement,"ytd-inline-survey-rating-select-action",[L,T])};
_.t.showSelectedOption=function(){var L=this;_.ro.addJob(function(){var Z=L.getOptionRenderers()[L.slimlineSurveyRatingSelectedIndex];L.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),Z)},8,100)};
_.t.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(L){var Z;return(Z=_.n(L,mR5))!=null?Z:{}}):[]};
_.t.onUndoClick=function(){this.resetComponent();_.XJ(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.t.setSurveyOptionValue=function(L,Z,N){this.notifyPath("data.ratings."+L+".ratingSurveyOptionRenderer."+N);this.set("data.ratings."+L+".ratingSurveyOptionRenderer."+N,Z)};
_.t.resetComponent=function(){var L=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var Z=this.getOptionRenderers(),N,S;this.firstResponseText=(S=(N=Z[0])==null?void 0:N.responseText)!=null?S:null;var u,T;this.lastResponseText=(T=(u=Z[Z.length-1])==null?void 0:u.responseText)!=null?T:null;Z.forEach(function(W,V){L.setSurveyOptionValue(V,!1,"checked");L.setSurveyOptionValue(V,!1,"selected")})};
_.gd.Object.defineProperties(x2.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
x2.prototype.onOptionChange=x2.prototype.onOptionChange;x2.prototype.dataChanged=x2.prototype.dataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],x2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],x2.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],x2.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Object)],x2.prototype,"firstResponseText",void 0);_.r([_.Y(),_.Q("design:type",Object)],x2.prototype,"lastResponseText",void 0);_.r([_.Y(),_.Q("design:type",Object)],x2.prototype,"selectedNonStarOption",void 0);_.r([_.Y(),_.Q("design:type",Object)],x2.prototype,"hideOptions",void 0);_.r([_.Y(),_.Q("design:type",Object)],x2.prototype,"hideUndoButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],x2.prototype,"disableAnimation",void 0);
_.r([_.Y(),_.Q("design:type",Object)],x2.prototype,"showResponseRangeText",void 0);_.r([_.Y(),_.Q("design:type",Object)],x2.prototype,"selectedRatingIndex",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],x2.prototype,"isSlimlineSurvey",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],x2.prototype,"isSlimlineSurveyFollowUp",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],x2.prototype,"isShortsStyle",void 0);_.r([_.Y({selector:function(L){return L.ui.slimlineSurveyRatingSelectedIndex}}),
_.Q("design:type",Object)],x2.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.r([_.w("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],x2.prototype,"isSingleSelect",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],x2.prototype,"dataChanged",null);
_.r([_.SA("ytd-rating-survey-option-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],x2.prototype,"onOptionChange",null);_.r([_.P({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],x2);
_.m(x2,"ytd-rating-survey-renderer",function(){if(a55!==void 0)return a55;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return a55=L},{mode:1});var hPq;var sDs;var jDL;var KqP=(Z2.FIRSTDAYOFWEEK+1)%7,Exs=function(L,Z,N,S){var u="";if(S.selection&&ozA(S.selection))x9(L,S.selection)&&(u+=" selected");else if(S.selection&&RFA(S.selection)){var T=S.selection.selectionState||"START_DATE";x9(L,S.selection.start)&&(u+=" period-start ",T==="START_DATE"&&(u+="selected"));x9(L,S.selection.end)&&(u+=" period-end ",T==="END_DATE"&&(u+="selected"));qr(L,S.selection.start)||qr(S.selection.end,L)||(u+=" highlighted")}if(qr(Z,S.start)||qr(S.end,Z))u+=" disabled";S.circleToday&&
x9(Z,N)&&(u+=" today");return u};var ql=function(){return _.e.apply(this,arguments)||this};
_.f(ql,_.e);_.t=ql.prototype;_.t.attached=function(){var L=this;_.bN(this,function(){L.JSC$16070_calendarMain.scrollHeight>0&&(L.calendarConfig.selection?L.scrollToDate(cFs(L.calendarConfig.selection)):L.scrollToDate(L.calendarConfig.end))})};
_.t.updateSelection=function(L){L=fdB(Object.assign({},this.calendarConfig,{selection:L}),Exs);this.splice.apply(this,["renderData.months",0,L.length].concat(_.Pd(L)))};
_.t.scrollToDate=function(L){this.renderData&&(L=kfG(L,this.renderData),L!==void 0&&this.JSC$16070_calendarMain.scrollToIndex(L))};
_.t.scrollToNextMonth=function(){this.JSC$16070_calendarMain.scrollToIndex(this.JSC$16070_calendarMain.firstVisibleIndex+1)};
_.t.scrollToPrevMonth=function(){this.JSC$16070_calendarMain.firstVisibleIndex===0&&this.JSC$16070_calendarMain.scrollTo(0,0);this.JSC$16070_calendarMain.scrollToIndex(this.JSC$16070_calendarMain.firstVisibleIndex-1)};
_.t.handleDayClick=function(L){_.XJ(this.hostElement,"ytd-calendar-date-clicked",[L.model.day.date])};
_.t.handleDayMouseDown=function(L){L.preventDefault();_.XJ(this.hostElement,"ytd-calendar-date-mousedown",[L.model.day.date])};
_.t.handleDayMouseUp=function(L){_.XJ(this.hostElement,"ytd-calendar-date-mouseup",[L.model.day.date])};
_.t.handleDayMouseEnter=function(L){L.preventDefault();_.XJ(this.hostElement,"ytd-calendar-date-mouseenter",[L.model.day.date])};
_.t.handleDayMouseLeave=function(L){_.XJ(this.hostElement,"ytd-calendar-date-mouseleave",[L.model.day.date])};
_.gd.Object.defineProperties(ql.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var L=this.calendarConfig,Z=Exs;Z=Z===void 0?Exs:Z;for(var N=[],S=0;S<7;S++)N.push(Z2.NARROWWEEKDAYS[(S+KqP)%7]);return{months:fdB(L,Z),daysOfWeekLabel:N}}}});
_.r([_.Y(),_.Q("design:type",Object)],ql.prototype,"calendarConfig",void 0);_.r([_.TX("#calendar-main"),_.Q("design:type",Object)],ql.prototype,"JSC$16070_calendarMain",void 0);_.r([_.w("calendarConfig"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ql.prototype,"renderData",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],ql);
_.m(ql,"ytd-scrollable-calendar",function(){if(jDL!==void 0)return jDL;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return jDL=L},{mode:2});var Pat;var pfO;var LW=function(){var L=_.e.apply(this,arguments)||this;L.hideCharCounter=!1;L.hideLabel=!1;L.noLabelFloat=!1;L.autoValidate=!0;L.invalid=!1;L.disabled=!1;L.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return L};
_.f(LW,_.e);_.t=LW.prototype;_.t.reset=function(L){this.value=L&&this.data?this.data.value=L:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.t.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.t.focusTextInput=function(){this.input.focus()};
_.t.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()};
_.t.valueChanged=function(){var L,Z;if(((L=this.data)==null?0:L.value)||((Z=this.data)==null?void 0:Z.value)==="")this.value=this.data.value;else{var N;((N=this.data)==null?void 0:N.value)!==void 0||this.value||(this.value="")}};
_.t.computeLabel=function(L,Z){return Z?"":_.jM(L)};
_.t.computeAriaLabel=function(L,Z){return Z?_.jM(L):""};
_.t.computeErrorMessage=function(L,Z,N,S){!L&&Z?L=N||this.strings.REQUIRED_LABEL:(L=_.jM(S),L=_.bH(L,"&")?"document"in _.iH?qns(L):Lwl(L):L);return L};
_.t.computeType=function(L){return L==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.t.onTextValueChanged=function(L){this.value=L.detail.value;var Z;(Z=this.onValueChanged)==null||Z.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.t.handleUpdateTextInputFormFieldRendererCommand=function(L){(L=_.n(L,WPO))&&this.data&&this.data.id===L.id&&(L.invalid!==void 0&&(this.invalid=L.invalid),L.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",L.invalidValueErrorMessage))};
_.t.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("value-changed",this.value))};
_.t.updateInvalidFromBinding=function(L){this.invalid=L.detail.value};
_.gd.Object.defineProperties(LW.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var L;return!((L=this.data)==null||!L.isMultiline)}}});
LW.prototype.valueChangedForBinding=LW.prototype.valueChangedForBinding;LW.prototype.valueChanged=LW.prototype.valueChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],LW.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],LW.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],LW.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],LW.prototype,"value",void 0);_.r([_.Y(),_.Q("design:type",String)],LW.prototype,"pattern",void 0);_.r([_.Y(),_.Q("design:type",String)],LW.prototype,"errorMessage",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],LW.prototype,"componentStyle",void 0);_.r([_.Y(),_.Q("design:type",Object)],LW.prototype,"hideCharCounter",void 0);
_.r([_.Y(),_.Q("design:type",Object)],LW.prototype,"hideLabel",void 0);_.r([_.Y(),_.Q("design:type",Object)],LW.prototype,"noLabelFloat",void 0);_.r([_.Y(),_.Q("design:type",Function)],LW.prototype,"onValueChanged",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],LW.prototype,"isMultilineOverride",void 0);_.r([_.Y(),_.Q("design:type",Object)],LW.prototype,"autoValidate",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],LW.prototype,"invalid",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],LW.prototype,"disabled",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],LW.prototype,"enableOverlayTheme",void 0);_.r([_.Y({value:{REQUIRED_LABEL:_.iB("REQUIRED_LABEL",void 0,"Required")}}),_.Q("design:type",Object)],LW.prototype,"strings",void 0);_.r([_.TX("#input"),_.Q("design:type",Object)],LW.prototype,"input",void 0);
_.r([_.w("data","isMultilineOverride"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],LW.prototype,"isMultiline",null);_.r([_.Vr("data.value"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],LW.prototype,"valueChanged",null);_.r([_.iA("value"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],LW.prototype,"valueChangedForBinding",null);_.r([_.ch({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],LW);
_.m(LW,"yt-text-input-form-field-renderer",function(){if(pfO===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Pat===void 0&&(Pat=document.createElement("template"));var S=Pat;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);pfO=L}L=pfO;return L},{mode:2});var Z$=function(){var L=_.e.apply(this,arguments)||this;L.data=void 0;L.selectionState="START_DATE";L.isStartDateInvalid=!1;L.isEndDateInvalid=!1;L.autoapply=!1;L.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 L};
_.f(Z$,_.e);_.t=Z$.prototype;_.t.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"}}}}};
_.t.focus=function(){this.startDateInput.focus()};
_.t.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Lm(this.data.selection.start),end:Lm(this.data.selection.end)})};
_.t.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.t.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Xh(this.selectionState)}};
_.t.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.t.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.t.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.t.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var L=this.calendar.calendarConfig,Z=L.end;L=wOs({start:L.start,end:this.endDate||Z},this.startDateInput.value||"");this.isStartDateInvalid=!L.isValid;L.isValid&&(L=L.value,this.selection=this.endDate?{start:L,end:this.endDate}:L,this.calendar.scrollToDate(L));this.updateInvalidState()}};
_.t.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var L=this.calendar.calendarConfig,Z=L.start;L=wOs({start:this.startDate||Z,end:L.end},this.endDateInput.value||"");this.isEndDateInvalid=!L.isValid;L.isValid&&(L=L.value,this.selection={start:this.startDate,end:L},this.calendar.scrollToDate(L));this.updateInvalidState()}};
_.t.handleCalendarDateClicked=function(L){var Z=this.selection&&cFs(this.selection),N=this.selection&&nzB(this.selection);Z&&!qr(L,Z)&&this.selectionState==="END_DATE"?(this.selection={start:Z,end:L},this.selectionState="START_DATE"):(N&&!qr(N,L)?this.selection={start:L,end:N}:this.selection=L,this.selectionState="END_DATE")};
_.t.handleCalendarDateMouseDown=function(L){this.selection&&!ozA(this.selection)&&(this.dragPivot=x9(L,this.selection.start)?this.selection.end:x9(L,this.selection.end)?this.selection.start:L)};
_.t.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.t.handleCalendarDateMouseEnter=function(L){this.dragPivot&&(this.selection={start:function(Z,N){return qr(Z,N)?Z:N}(this.dragPivot,L),
end:function(Z,N){return qr(Z,N)?N:Z}(this.dragPivot,L)},this.dragPivot||(this.selectionState="START_DATE"))};
_.t.handleCalendarDateMouseLeave=function(){};
_.t.handleCalendarSubmitDateRange=function(){this.selection&&!ozA(this.selection)&&_.XJ(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.t.updateInvalidState=function(){var L=function(Z,N){N?Z.setAttribute("invalid",""):Z.removeAttribute("invalid")};
L(this.startDateInput,this.isStartDateInvalid);L(this.endDateInput,this.isEndDateInvalid)};
_.t.updateDateStrings=function(){this.selection&&(ozA(this.selection)?vzH(this.selection):(vzH(this.selection.start),vzH(this.selection.end)))};
_.t.updateCalendarSelection=function(L){this.calendar.updateSelection(Object.assign({},L,{selectionState:this.selectionState}))};
_.t.updateIsStartDateInvalidFromBinding=function(L){this.isStartDateInvalid=L.detail.value};
_.t.updateIsEndDateInvalidFromBinding=function(L){this.isEndDateInvalid=L.detail.value};
_.t.updateStartDateStringFromBinding=function(){};
_.t.updateEndDateStringFromBinding=function(){};
_.gd.Object.defineProperties(Z$.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Lm(this.data.dateRangeStart),end:Lm(this.data.dateRangeEnd),selection:{start:Lm(this.data.selection.start),end:Lm(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&cFs(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&nzB(this.selection)}}});
Z$.prototype.resetTextboxes=Z$.prototype.resetTextboxes;Z$.prototype.observeSelection=Z$.prototype.observeSelection;Z$.prototype.dataChanged=Z$.prototype.dataChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Z$.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Z$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.TX("#calendar"),_.Q("design:type",Object)],Z$.prototype,"calendar",void 0);
_.r([_.TX("#start-date"),_.Q("design:type",Object)],Z$.prototype,"startDateInput",void 0);_.r([_.TX("#end-date"),_.Q("design:type",Object)],Z$.prototype,"endDateInput",void 0);_.r([_.Y(),_.Q("design:type",Object)],Z$.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Z$.prototype,"selection",void 0);_.r([_.Y(),_.Q("design:type",String)],Z$.prototype,"selectionState",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Z$.prototype,"calendarConfig",null);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Z$.prototype,"errorMessage",null);_.r([_.w("selection"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Z$.prototype,"startDate",null);_.r([_.w("selection"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Z$.prototype,"endDate",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Z$.prototype,"dataChanged",null);
_.r([_.iA("selection","selectionState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Z$.prototype,"observeSelection",null);_.r([_.iA("selectionState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Z$.prototype,"resetTextboxes",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Z$);
_.m(Z$,"ytd-date-period-picker-renderer",function(){if(sDs!==void 0)return sDs;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return sDs=L},{mode:1});var Nw=function(){var L=_.e.apply(this,arguments)||this;var Z={};L.actionMap=(Z["ytd-date-period-picker-apply"]="handleDateRangeUpdated",Z);return L};
_.f(Nw,_.e);Nw.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Nw.prototype.handleDateRangeUpdated=function(){};
_.r([_.Y(),_.Q("design:type",Object)],Nw.prototype,"data",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Nw.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Nw.prototype,"rendererstamperBehavior",void 0);_.r([_.P({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Nw);
_.m(Nw,"ytd-report-history-section-header-renderer",function(){if(hPq!==void 0)return hPq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return hPq=L},{mode:1});var zPt;var mF5;var JB0;var SB=function(){return _.e.apply(this,arguments)||this};
_.f(SB,_.e);_.gd.Object.defineProperties(SB.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?0:(Z=L.icon)==null?0:Z.iconType)?_.Bh(this.data.icon.iconType):""}}});
_.r([_.Y(),_.Q("design:type",Object)],SB.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],SB.prototype,"icon",null);_.r([_.P({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],SB);
_.m(SB,"ytd-report-history-table-text-cell-renderer",function(){if(JB0!==void 0)return JB0;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return JB0=L},{mode:1});var iu=function(){return _.e.apply(this,arguments)||this};
_.f(iu,_.e);iu.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],iu.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],iu.prototype,"data",void 0);_.r([_.P({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],iu);
_.m(iu,"ytd-report-history-table-reason-cell-renderer",function(){if(mF5!==void 0)return mF5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return mF5=L},{mode:1});var uu=function(){return _.e.apply(this,arguments)||this};
_.f(uu,_.e);uu.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"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],uu.prototype,"rendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],uu.prototype,"data",void 0);_.r([_.P({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],uu);
_.m(uu,"ytd-report-history-table-cell-renderer",function(){if(zPt!==void 0)return zPt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
return zPt=L},{mode:1});var Cat;var Ty=function(){var L=_.e.apply(this,arguments)||this;L.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 L};
_.f(Ty,_.e);Ty.prototype.onDataChanged=function(){var L;if((L=this.data)==null?0:L.style)this.componentStyle=this.getStyleName(this.data.style)};
Ty.prototype.getCellForColumn=function(L){return this.cells.find(function(Z){var N;return((N=_.n(Z==null?void 0:Z.cell,rwO)||_.n(Z==null?void 0:Z.cell,C0t))==null?void 0:N.columnId)===L.type})};
Ty.prototype.getClassForColumn=function(L){switch(L){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Ty.prototype.getStyleName=function(L){switch(L){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.gd.Object.defineProperties(Ty.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var L;return(((L=this.data)==null?void 0:L.cells)||[]).map(function(Z){return _.n(Z,JwI)})}}});
Ty.prototype.onDataChanged=Ty.prototype.onDataChanged;_.r([_.Y(),_.Q("design:type",Object)],Ty.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Array)],Ty.prototype,"columnRenderData",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],Ty.prototype,"componentStyle",void 0);_.r([_.w("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],Ty.prototype,"cells",null);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ty.prototype,"onDataChanged",null);_.r([_.P({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Ty);
_.m(Ty,"ytd-report-history-table-row-renderer",function(){if(Cat!==void 0)return Cat;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Cat=L},{mode:1});var rB5;var QDM;var Ups={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},YJB={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var tP=function(){return _.e.apply(this,arguments)||this};
_.f(tP,_.e);tP.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"}}}}}};
tP.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.gd.Object.defineProperties(tP.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?0:L.columns)?hF_(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return dp_(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var L=this.tableSpec,Z=Ups;Z=Z===void 0?YJB:Z;Z=ad0(L.columnDimensions,L.columnsToShow||[],Z);L=0;Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())N=N.value,L+=N.minWidth+N.paddingLeft+N.paddingRight;return L}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.r([_.y(_.Sq),_.Q("design:type",Object)],tP.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],tP.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],tP.prototype,"tableSpec",null);_.r([_.w("tableSpec"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],tP.prototype,"columnRenderData",null);
_.r([_.w("tableSpec"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],tP.prototype,"totalMinWidth",null);_.r([_.w("totalMinWidth"),_.Q("design:type",String),_.Q("design:paramtypes",[])],tP.prototype,"tableWidthStyle",null);_.r([_.P({is:"ytd-table-renderer",disableElementRegistration:!0})],tP);
_.m(tP,"ytd-table-renderer",function(){if(QDM!==void 0)return QDM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return QDM=L},{mode:1});var O0=function(){return _.e.apply(this,arguments)||this};
_.f(O0,_.e);O0.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}}}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],O0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],O0.prototype,"data",void 0);_.r([_.P({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],O0);
_.m(O0,"ytd-report-reason-history-modal-renderer",function(){if(rB5!==void 0)return rB5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return rB5=L},{mode:1});var XfM;var ABV;var H9O;var Wi=function(){return _.e.apply(this,arguments)||this};
_.f(Wi,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Wi.prototype,"data",void 0);_.r([_.P({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Wi);
_.m(Wi,"ytd-profile-column-stats-entry-renderer",function(){if(H9O!==void 0)return H9O;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return H9O=L},{mode:1});var B8I;var Vp=function(){return _.e.apply(this,arguments)||this};
_.f(Vp,_.e);Vp.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Vp.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Vp.prototype,"data",void 0);_.r([_.P({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],Vp);
_.m(Vp,"ytd-profile-column-stats-renderer",function(){if(B8I!==void 0)return B8I;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return B8I=L},{mode:1});var xFt;var bu=function(){return _.e.apply(this,arguments)||this};
_.f(bu,_.e);_.gd.Object.defineProperties(bu.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.data)==null||!L.useThumbnailSize)return 80;var Z,N;L=(Z=this.data)==null?void 0:(N=Z.thumbnail)==null?void 0:N.thumbnails;var S;return L&&((S=L[0])==null?void 0:S.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.data)==null||!L.useThumbnailSize)return 80;var Z,N;L=(Z=this.data)==null?void 0:(N=Z.thumbnail)==null?void 0:N.thumbnails;var S;return L&&((S=L[0])==null?void 0:S.height)||80}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],bu.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],bu.prototype,"componentStyle",void 0);_.r([_.w("data.useThumbnailSize"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],bu.prototype,"thumbnailWidth",null);
_.r([_.w("data.useThumbnailSize"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],bu.prototype,"thumbnailHeight",null);_.r([_.P({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],bu);
_.m(bu,"ytd-profile-column-user-info-renderer",function(){if(xFt!==void 0)return xFt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return xFt=L},{mode:1});var Mw=function(){return _.e.apply(this,arguments)||this};
_.f(Mw,_.e);Mw.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]]"}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Mw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Mw.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],Mw.prototype,"componentStyle",void 0);_.r([_.P({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],Mw);
_.m(Mw,"ytd-profile-column-renderer",function(){if(ABV!==void 0)return ABV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return ABV=L},{mode:1});var gA=function(){var L=_.e.apply(this,arguments)||this;L.componentStyle="NON_CENTERED_PROFILE";return L};
_.f(gA,_.e);gA.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
gA.prototype.getIcon=function(L){return L?"settings:"+L.toLowerCase():null};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],gA.prototype,"data",void 0);_.r([_.P({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],gA);
_.m(gA,"ytd-page-introduction-renderer",function(){if(XfM!==void 0)return XfM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return XfM=L},{mode:1});var q2O;var Gy=function(){return _.e.apply(this,arguments)||this};
_.f(Gy,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Gy.prototype,"data",void 0);_.r([_.P({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Gy);
_.m(Gy,"ytd-report-description-renderer",function(){if(q2O!==void 0)return q2O;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return q2O=L},{mode:1});var L$L;var ZU5;var FA=function(){return _.e.apply(this,arguments)||this};
_.f(FA,_.e);FA.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],FA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],FA.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],FA.prototype,"data",void 0);_.r([_.P({is:"ytd-video-report-renderer",disableElementRegistration:!0})],FA);
_.m(FA,"ytd-video-report-renderer",function(){if(ZU5!==void 0)return ZU5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ZU5=L},{mode:1});var NqO;_.l4("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.l4("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var $G=function(){return _.e.apply(this,arguments)||this};
_.f($G,_.e);$G.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]]"}}}}}};
$G.prototype.computeMessageStyle=function(L){return L};
$G.prototype.computeButtonOverride=function(L){var Z;if((L==null?0:(Z=L.style)==null?0:Z.value)&&L.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],$G.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],$G.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],$G.prototype,"shelf",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],$G.prototype,"panel",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.Q("design:type",Boolean)],$G.prototype,"componentStyle",void 0);_.r([_.Y({computed:"computeButtonOverride(data)"}),_.Q("design:type",Object)],$G.prototype,"buttonOverride",void 0);_.r([_.P({is:"ytd-message-renderer",disableElementRegistration:!0})],$G);
_.m($G,"ytd-message-renderer",function(){if(NqO!==void 0)return NqO;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return NqO=L},{mode:1});var D$=function(){return _.e.apply(this,arguments)||this};
_.f(D$,_.e);D$.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"}}}};
D$.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
D$.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.gd.Object.defineProperties(D$.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!!(((L=this.data)==null?0:L.header)&&((Z=this.data)==null?0:Z.table))}}});
D$.prototype.onRequestError=D$.prototype.onRequestError;_.r([_.y(_.Sq),_.Q("design:type",Object)],D$.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],D$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],D$.prototype,"data",void 0);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D$.prototype,"isUnifiedReportHistory",null);_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],D$.prototype,"onRequestError",null);_.r([_.P({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],D$);
_.m(D$,"ytd-report-history-section-renderer",function(){if(L$L!==void 0)return L$L;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return L$L=L},{mode:1});var Spq;var lu=function(){var L=_.e.apply(this,arguments)||this;L.answerExpanded=!1;return L};
_.f(lu,_.e);lu.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],lu.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],lu.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],lu.prototype,"answerExpanded",void 0);_.r([_.P({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],lu);
_.m(lu,"ytd-handles-claiming-faq-renderer",function(){if(Spq!==void 0)return Spq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Spq=L},{mode:1});var iU0;var uzt=function(){return _.e.apply(this,arguments)||this};
_.f(uzt,_.e);_.r([_.Y(),_.Q("design:type",Object)],uzt.prototype,"data",void 0);_.r([_.P({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],uzt);
_.m(uzt,"ytd-handles-claiming-faq-section-renderer",function(){if(iU0!==void 0)return iU0;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return iU0=L},{mode:1});var Tql;var vi=function(){var L=_.e.apply(this,arguments)||this;L.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";L.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";L.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";L.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";L.leftSquiggly=L.leftSquigglyLight;L.rightSquiggly=L.rightSquigglyLight;
L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};L.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return L};
_.f(vi,_.e);_.t=vi.prototype;_.t.updateLeftSquigglyStyle=function(){_.Ld(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.t.updateRightSquigglyStyle=function(){_.Ld(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.t.ready=function(){var L=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(L)};
_.t.onDarkModeToggledAction=function(L){L!==this.isDarkTheme&&(this.set("isDarkTheme",L),L?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.t.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
vi.prototype.updateRightSquigglyStyle=vi.prototype.updateRightSquigglyStyle;vi.prototype.updateLeftSquigglyStyle=vi.prototype.updateLeftSquigglyStyle;_.r([_.Y(),_.Q("design:type",Object)],vi.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],vi.prototype,"isDarkTheme",void 0);_.r([_.Y(),_.Q("design:type",String)],vi.prototype,"leftSquiggly",void 0);_.r([_.Y(),_.Q("design:type",String)],vi.prototype,"rightSquiggly",void 0);
_.r([_.iA("leftSquiggly"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vi.prototype,"updateLeftSquigglyStyle",null);_.r([_.iA("rightSquiggly"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vi.prototype,"updateRightSquigglyStyle",null);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],vi.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],vi.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],vi.prototype,"actionButtonOverride",void 0);_.r([_.P({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],vi);
_.m(vi,"ytd-handles-claiming-header-renderer",function(){if(Tql!==void 0)return Tql;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Tql=L},{mode:1});var tel;var oa=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};L.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";L.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";L.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";L.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
L.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";L.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";L.image0SquigglyBackground=L.image0LightSquigglyBackground;L.image1SquigglyBackground=L.image1LightSquigglyBackground;L.image3SquigglyBackground=L.image3LightSquigglyBackground;return L};
_.f(oa,_.e);_.t=oa.prototype;_.t.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.t.onDataChanged=function(){this.updateTitleAndImages()};
_.t.onThemeChanged=function(){this.updateTitleAndImages()};
_.t.onDarkModeToggledAction=function(L){L!==this.isDarkTheme&&(this.isDarkTheme=L)};
_.t.updateImage0SquigglyBackground=function(){_.Ld(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.t.updateImage1SquigglyBackground=function(){_.Ld(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.t.updateImage3SquigglyBackground=function(){_.Ld(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.t.updateTitleAndImages=function(){var L,Z;((L=this.data)==null?void 0:(Z=L.titleImages)==null?void 0:Z.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))};
oa.prototype.updateImage3SquigglyBackground=oa.prototype.updateImage3SquigglyBackground;oa.prototype.updateImage1SquigglyBackground=oa.prototype.updateImage1SquigglyBackground;oa.prototype.updateImage0SquigglyBackground=oa.prototype.updateImage0SquigglyBackground;oa.prototype.onThemeChanged=oa.prototype.onThemeChanged;oa.prototype.onDataChanged=oa.prototype.onDataChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],oa.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],oa.prototype,"isDarkTheme",void 0);_.r([_.Y(),_.Q("design:type",Object)],oa.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],oa.prototype,"title0",void 0);_.r([_.Y(),_.Q("design:type",Object)],oa.prototype,"title1",void 0);_.r([_.Y(),_.Q("design:type",Object)],oa.prototype,"title2",void 0);_.r([_.Y(),_.Q("design:type",Object)],oa.prototype,"title3",void 0);
_.r([_.Y(),_.Q("design:type",Object)],oa.prototype,"title4",void 0);_.r([_.Y(),_.Q("design:type",Object)],oa.prototype,"image0",void 0);_.r([_.Y(),_.Q("design:type",Object)],oa.prototype,"image1",void 0);_.r([_.Y(),_.Q("design:type",Object)],oa.prototype,"image2",void 0);_.r([_.Y(),_.Q("design:type",Object)],oa.prototype,"image3",void 0);_.r([_.Y(),_.Q("design:type",Object)],oa.prototype,"image4",void 0);_.r([_.Y(),_.Q("design:type",String)],oa.prototype,"image0SquigglyBackground",void 0);
_.r([_.Y(),_.Q("design:type",String)],oa.prototype,"image1SquigglyBackground",void 0);_.r([_.Y(),_.Q("design:type",String)],oa.prototype,"image3SquigglyBackground",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oa.prototype,"onDataChanged",null);_.r([_.iA("isDarkTheme"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oa.prototype,"onThemeChanged",null);
_.r([_.iA("image0SquigglyBackground"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oa.prototype,"updateImage0SquigglyBackground",null);_.r([_.iA("image1SquigglyBackground"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oa.prototype,"updateImage1SquigglyBackground",null);
_.r([_.iA("image3SquigglyBackground"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oa.prototype,"updateImage3SquigglyBackground",null);_.r([_.P({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],oa);
_.m(oa,"ytd-handles-claiming-title-images-section-renderer",function(){if(tel!==void 0)return tel;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return tel=L},{mode:1});var OUh;var Ra=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return L};
_.f(Ra,_.e);Ra.prototype.ready=function(){var L=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(L)};
Ra.prototype.onDarkModeToggledAction=function(L){L!==this.isDarkTheme&&this.set("isDarkTheme",L)};
Ra.prototype.onCopyButtonClick=function(){var L=this,Z,N,S;return _.b(function(u){return(Z=L.data)!=null&&Z.primaryChannelUrl?u.yield(navigator.clipboard.writeText(((N=L.data)==null?0:N.encodedChannelUrl)?L.data.encodedChannelUrl:"https://"+_.jM((S=L.data)==null?void 0:S.primaryChannelUrl)),0):u.jumpTo(0)})};
_.r([_.Y(),_.Q("design:type",Object)],Ra.prototype,"data",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Ra.prototype,"ytComponentBehavior",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Ra.prototype,"isDarkTheme",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Ra.prototype,"ytActionHandlerBehavior",void 0);_.r([_.P({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Ra);
_.m(Ra,"ytd-handles-claiming-update-social-renderer",function(){if(OUh!==void 0)return OUh;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return OUh=L},{mode:1});var W$q;var ci=function(){var L=_.e.apply(this,arguments)||this;L.JSC$16164_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";L.JSC$16164_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};L.squigglyBackground=L.JSC$16164_squigglyBackgroundLight;return L};
_.f(ci,_.e);ci.prototype.updateSquigglyBackgroundStyle=function(){_.Ld(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
ci.prototype.ready=function(){var L=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",L);this.squigglyBackground=L?this.JSC$16164_squigglyBackgroundDark:this.JSC$16164_squigglyBackgroundLight};
ci.prototype.onDarkModeToggledAction=function(L){L!==this.isDarkTheme&&(this.set("isDarkTheme",L),this.squigglyBackground=L?this.JSC$16164_squigglyBackgroundDark:this.JSC$16164_squigglyBackgroundLight)};
ci.prototype.updateSquigglyBackgroundStyle=ci.prototype.updateSquigglyBackgroundStyle;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ci.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],ci.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ci.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],ci.prototype,"isDarkTheme",void 0);_.r([_.Y(),_.Q("design:type",String)],ci.prototype,"squigglyBackground",void 0);_.r([_.iA("squigglyBackground"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ci.prototype,"updateSquigglyBackgroundStyle",null);_.r([_.P({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],ci);
_.m(ci,"ytd-handles-claiming-vanity-info-renderer",function(){if(W$q!==void 0)return W$q;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return W$q=L},{mode:1});var VeY;var nW=function(){var L=_.e.apply(this,arguments)||this;L.JSC$16167_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";L.JSC$16167_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";L.squigglyBackground=L.JSC$16167_squigglyBackgroundLight;L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return L};
_.f(nW,_.e);_.t=nW.prototype;_.t.ready=function(){var L=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(L)};
_.t.onDarkModeToggledAction=function(L){L!==this.isDarkTheme&&(this.set("isDarkTheme",L),this.squigglyBackground=L?this.JSC$16167_squigglyBackgroundDark:this.JSC$16167_squigglyBackgroundLight)};
_.t.updateSquigglyBackgroundStyle=function(){_.Ld(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.t.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.t.detached=function(){this.stop()};
_.t.stop=function(){this.playerElement.stop()};
_.t.setupVideoPlayer=function(){var L=this,Z,N;return _.b(function(S){Z=L.data.videoId;N="http://i1.ytimg.com/vi/"+Z+"/maxresdefault.jpg";L.playerElement.loadVideoWithPlayerVars({video_id:Z,iurlhq:N});_.w7(S)})};
nW.prototype.onDataChanged=nW.prototype.onDataChanged;nW.prototype.updateSquigglyBackgroundStyle=nW.prototype.updateSquigglyBackgroundStyle;_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],nW.prototype,"isDarkTheme",void 0);_.r([_.Y(),_.Q("design:type",String)],nW.prototype,"squigglyBackground",void 0);_.r([_.TX("#player"),_.Q("design:type",Object)],nW.prototype,"playerElement",void 0);_.r([_.Y(),_.Q("design:type",Object)],nW.prototype,"data",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],nW.prototype,"ytActionHandlerBehavior",void 0);_.r([_.iA("squigglyBackground"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nW.prototype,"updateSquigglyBackgroundStyle",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nW.prototype,"onDataChanged",null);
_.r([_.P({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],nW);
_.m(nW,"ytd-handles-claiming-video-item-renderer",function(){if(VeY!==void 0)return VeY;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return VeY=L},{mode:1});var bUt;var fW=function(){var L=_.Ok.apply(this,arguments)||this;L.dragging=!1;L.dragMouseStart=0;L.dragOffsetStart=0;L.containerWidthDiff=0;L.boundPrevClick=function(){L.set("offset",KW(L,L.offset-(L.scrollDistance||320)))};
L.boundNextClick=function(){L.set("offset",KW(L,L.offset+(L.scrollDistance||320)))};
L.boundScrollContainerMouseDown=function(Z){L.dragMouseStart=Z.clientX;L.dragOffsetStart=L.offset;L.dragging=!0};
L.boundScrollContainerDrag=function(Z){L.dragging&&L.set("offset",KW(L,L.dragOffsetStart-(Z.clientX-L.dragMouseStart)))};
L.boundMouseUp=function(){L.onMouseUp()};
L.boundWheelScroll=function(Z){var N=0;Math.abs(Z.deltaX)>=Math.abs(Z.deltaY)?N=Z.deltaX:Z.shiftKey&&(N=Z.deltaY);N!==0&&(L.offset+=N,Z.stopPropagation(),Z.preventDefault())};
L.boundChipCloudChipScrollIntoView=function(Z){(Z=Z.detail)&&L.scrollChipIntoView(Z)};
return L};
_.f(fW,_.Ok);fW.prototype.attached=function(){var L=_.QJ(this.hostElement).querySelector("#scroll-container");L.addEventListener("wheel",this.boundWheelScroll);L.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);L.style.touchAction="pan-y";L.addEventListener("pointerdown",this.boundScrollContainerMouseDown);L.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
fW.prototype.detached=function(){var L=_.QJ(this.hostElement).querySelector("#scroll-container");L.removeEventListener("wheel",this.boundWheelScroll);L.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);L.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);L.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
fW.prototype.reset=function(){this.set("offset",0);_.bN(this,this.setContainerWidthDiff);_.bN(this,this.setButtonsState)};
var KW=function(L,Z){return Math.min(Math.max(Z,0),L.containerWidthDiff)};
_.t=fW.prototype;_.t.onMouseUp=function(){this.dragging=!1};
_.t.transformContainer=function(){this.offset=KW(this,this.offset);var L=_.X7("HTML_DIR")==="rtl"?"":"-";_.QJ(this.hostElement).querySelector("#chips").style.transform="translateX("+L+this.offset+"px)";_.bN(this,this.setButtonsState)};
_.t.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=KW(this,this.offset));this.atStart=this.offset<=0};
_.t.setContainerWidthDiff=function(){var L=_.QJ(this.hostElement).querySelector("#scroll-container"),Z=_.QJ(this.hostElement).querySelector("#chips");L&&Z&&(this.containerWidthDiff=Z.clientWidth-L.clientWidth)};
_.t.scrollChipIntoView=function(L){var Z=_.QJ(this.hostElement).querySelector("#scroll-container");if(Z){var N=this.atStart?0:106,S=this.atEnd?0:106;L.offsetLeft<this.offset+N?this.offset=KW(this,L.offsetLeft-N):L.offsetLeft+L.clientWidth>this.offset+Z.clientWidth-S&&(this.offset=KW(this,L.offsetLeft+L.clientWidth+S-Z.clientWidth))}};
fW.prototype.transformContainer=fW.prototype.transformContainer;_.r([_.Y({value:0}),_.Q("design:type",Number)],fW.prototype,"offset",void 0);_.r([_.Y({value:!0,reflectToAttribute:!0}),_.Q("design:type",Boolean)],fW.prototype,"atStart",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],fW.prototype,"atEnd",void 0);_.r([_.Y(),_.Q("design:type",Number)],fW.prototype,"scrollDistance",void 0);
_.r([_.iA("offset"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fW.prototype,"transformContainer",null);_.r([_.Wh()],fW);var Met;var gK0;var $E0=_.p(function(L){var Z=L.data;L=_.O(_.nh(!1,void 0,"bob3J"));var N=L.next().value,S=L.next().value;L=function(T){if((Z==null?void 0:Z().state)!==1){var W,V;(V=(W=Z()).onTap)==null||V.call(W,T)}};
var u={};return _.g("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Z9(function(){var T=_.GR().resolve(_.gv(_.VG));if(T){S(T.isKeyBoardInUse());var W,V;(V=(W=Z()).onFocusIn)==null||V.call(W)}return!1}),
"on:focusout":_.Z9(function(){S(!1);return!1})},_.g(G$q,{shouldWrapInButton:function(){return Z().type!==2},
selected:function(){return Z().state===0},
onClick:L,isDropdown:function(){return Z().type===1},
accessibilityLabel:function(){return Z().type===1?void 0:Z().accessibilityLabel}},_.g("div",{class:_.qg("ytChipShapeChip",function(){a:switch(Z==null?void 0:Z().state){case 0:var T="ytChipShapeActive";
break a;case 1:T="ytChipShapeDisabled";break a;default:T="ytChipShapeInactive"}return T},function(){var T=Z().type===1||Z().type===2,W=Z();
return T||W!=null&&W.startIcon?W==null||!W.startIcon||W!=null&&W.text?T?"ytChipShapeEndIconPadding":(W==null?0:W.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var T=Z();
if((T==null?void 0:T.style)===0&&(T==null?void 0:T.state)===0){var W;T=((W=_.GR().resolve(_.gv(_.d$)))==null?0:W())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else T="";return T},(u.ytChipShapeFocused=function(){var T;
return N()&&((T=Z())==null?void 0:T.state)!==1},u))},_.g(_.F,{cond:function(){return Z().startIcon},
then:function(){return _.g(_.T0,{icon:function(){var T;return(T=Z())==null?void 0:T.startIcon},
className:_.qg(function(){return Z().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var T=Z(),W,V=(W=_.GR().resolve(_.gv(_.d$)))==null?void 0:W();
return(T==null?void 0:T.style)===0&&(T==null?void 0:T.state)===0&&V?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return Z().text},_.g(F$t,{shape:Z,
onClick:L}),_.g(_.MN,{model:{borderRadius:"8px"}}))))},"Jc");
$E0.idomCompat=!0;var G$q=_.p(function(L){var Z=_.Z9(function(N){L.onClick(N);return!1});
return _.g(_.F,{cond:L.shouldWrapInButton,then:function(){return _.g("button",{class:"ytChipShapeButtonReset","on:click":Z,role:function(){return L.isDropdown()?"combobox":"tab"},
"aria-label":L.accessibilityLabel,"aria-selected":L.selected},L.children)},
else:function(){return L.children}})},"Kc"),F$t=_.p(function(L){var Z=L.shape;
var N=L.onClick;var S=_.Z9(function(u){N(u);return!1});
return _.g(_.EM,null,_.g(_.hh,{when:function(){return Z().type===1}},function(){return _.g(_.T0,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.g(_.hh,{when:function(){return Z().type===2}},function(){return _.g("button",{class:"ytChipShapeButtonReset",
"on:click":S},_.g(_.T0,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.g(_.hh,{when:function(){return Z().type===0}},function(){return _.g(_.F7,null)}))},"Lc");_.CY($E0,"chip-shape",{props:{data:_.LK}});var kG=function(){var L=_.e.apply(this,arguments)||this;L.disableDeselectEvent=!1;L.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return L};
_.f(kG,_.e);_.t=kG.prototype;_.t.onSelectChipCommand=function(L){if(!this.selected&&this.data&&(L=_.n(L,qeI),L.targetId&&L.targetId===this.data.targetId))this.onTap()};
_.t.onFilterChipTransformCommand=function(L){if(!this.selected&&this.data){var Z;(L=(Z=_.n(L,Qyt))==null?void 0:Z.chipUniqueId)&&L===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.t.dataChanged=function(){var L=this;_.bN(this,function(){L.data&&L.data.isSelected&&!L.selected&&(L.scrollChipIntoView(),L.onTap())})};
_.t.computeChipStyle=function(L){return L!=null?L:"STYLE_DEFAULT"};
_.t.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.XJ(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.XJ(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.t.onFocus=function(){var L=_.GR().resolve(_.gv(_.VG));L&&L.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.t.scrollChipIntoView=function(){_.QT(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.gd.Object.defineProperties(kG.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return mp_({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
kG.prototype.onFocus=kG.prototype.onFocus;kG.prototype.onTap=kG.prototype.onTap;kG.prototype.dataChanged=kG.prototype.dataChanged;_.r([_.y(_.IN),_.Q("design:type",Object)],kG.prototype,"ironButtonState",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],kG.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],kG.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.Ub),_.Q("design:type",Object)],kG.prototype,"ironA11yKeysBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],kG.prototype,"disableDeselectEvent",void 0);_.r([_.Y(),_.Q("design:type",Object)],kG.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data.icon"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],kG.prototype,"hasIcon",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data.uniqueId"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],kG.prototype,"isGnomeChip",null);_.r([_.Y({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.Q("design:type",String)],kG.prototype,"chipStyle",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],kG.prototype,"selected",void 0);
_.r([_.w("data","selected"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],kG.prototype,"chipShapeData",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],kG.prototype,"dataChanged",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],kG.prototype,"onTap",null);
_.r([_.SA("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],kG.prototype,"onFocus",null);_.r([_.ch({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],kG);
_.m(kG,"yt-chip-cloud-chip-renderer",function(){if(gK0===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Met===void 0&&(Met=document.createElement("template"));var S=Met;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);gK0=L}L=gK0;return L},{mode:2});var DEt=_.Y9.persistentPanelVisibleSelector,yp=function(){var L=_.e.apply(this,arguments)||this;L.isDarkTheme=!1;L.notSticky=!1;L.transparentBackground=!1;L.shouldHide=!1;L.disableSticky=!1;L.fluidWidth=!1;L.isClipList=!1;L.defaultChipIndex=0;L.isPlaylist=!1;L.playlistVotingAnimationEnabled=_.c("web_enable_voting_animation");L.toolbarHeight=0;L.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return L};
_.f(yp,_.e);_.t=yp.prototype;
_.t.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.t.attached=function(){var L=this;document.addEventListener("scroll",_.Nd(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var Z;this.toolbarHeight=((Z=document.querySelector("ytd-masthead"))==null?void 0:Z.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(N){L.handleIntersect(N)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){L.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.t.detached=function(){var L;(L=this.intersectionObserver)==null||L.disconnect();var Z;(Z=this.resizeObserver)==null||Z.disconnect();document.removeEventListener("scroll",_.Nd(this,this.updateChipBarWidthAndTop))};
_.t.dataChanged=function(){var L=this,Z,N,S;((S=_.n((Z=this.data)==null?void 0:(N=Z.contents)==null?void 0:N[0],NVN))==null?void 0:S.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var u=this.findSelectedChipIndex();this.selectedIndex!==u&&(this.selectedIndex=-1);_.bN(this,function(){L.selectedIndex=u;L.updating=!1;L.ytScrollableChipCloudBehavior.reset()})};
_.t.findSelectedChipIndex=function(){var L;if((L=this.data)==null||!L.contents)return 0;L=this.data.contents;for(var Z=0;Z<L.length;Z++){var N=void 0;if((N=_.n(L[Z],NVN))==null?0:N.isSelected)return Z}return 0};
_.t.computeStyle=function(L){return L};
_.t.handleChipCloudChipSelectAction=function(L){L=this.JSC$16188_chipsSelector.indexOf(L);L>-1&&this.JSC$16188_chipsSelector.selectIndex(L)};
_.t.handleChipCloudChipDeselectAction=function(){if(_.c("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var L,Z,N,S=(N=_.n((L=this.data)==null?void 0:(Z=L.contents)==null?void 0:Z[0],NVN))==null?void 0:N.navigationEndpoint;S&&_.XJ(this.hostElement,"yt-browse-section-list-reload-endpoint",[S]);this.JSC$16188_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.t.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.t.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.t.onResize=function(){this.updateLayout()};
_.t.updateLayout=function(){var L=this.ytScrollableChipCloudBehavior;_.bN(L,L.setContainerWidthDiff);L=this.ytScrollableChipCloudBehavior;_.bN(L,L.setButtonsState)};
_.t.onDarkModeToggledAction=function(L){this.isDarkTheme=L};
_.t.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.t.handleIntersect=function(L){this.notSticky=this.isChannelPageGrid||this.disableSticky||L[0].intersectionRatio===1};
_.t.updateDimensions=function(){var L=this.ytRendererBehavior.parentComponent;if(L){var Z,N=(Z=L.headerElement)!=null?Z:L;_.Ld(this.hostElement,{"--ytd-rich-grid-chips-bar-width":N.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.t.updateSelectedIndexFromBinding=function(L){this.selectedIndex=L.detail.value};
_.t.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var L;(L=this.sortFilterHeaderRendererElement)==null||L.setAttribute("is-playlist-page-with-filters","")}};
_.t.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(Xis(!this.notSticky))};
_.gd.Object.defineProperties(yp.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 L,Z,N=(L=this.data)==null?void 0:(Z=L.contents)==null?void 0:Z.find(function(S){return _.n(S,tkN)});
return{sortFilterHeaderRenderer:_.n(N,tkN)}}}});
yp.prototype.dispatchChipBarIsSticky=yp.prototype.dispatchChipBarIsSticky;yp.prototype.isPlaylistPageChanged=yp.prototype.isPlaylistPageChanged;yp.prototype.updateChipBarWidthAndTop=yp.prototype.updateChipBarWidthAndTop;yp.prototype.onResize=yp.prototype.onResize;yp.prototype.onPersistentPanelVisibleChanged=yp.prototype.onPersistentPanelVisibleChanged;yp.prototype.onGuideIsExpandedChanged=yp.prototype.onGuideIsExpandedChanged;yp.prototype.dataChanged=yp.prototype.dataChanged;
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],yp.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.Eb),_.Q("design:type",Object)],yp.prototype,"ironResizableBehavior",void 0);_.r([_.y(),_.Q("design:type",fW)],yp.prototype,"ytScrollableChipCloudBehavior",void 0);
_.r([_.y(_.CD),_.Q("design:type",Object)],yp.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],yp.prototype,"data",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],yp.prototype,"selectedIndex",void 0);_.r([_.Y({value:320}),_.Q("design:type",Number)],yp.prototype,"scrollDistance",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yp.prototype,"isDarkTheme",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yp.prototype,"notSticky",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yp.prototype,"transparentBackground",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.Q("design:type",String)],yp.prototype,"componentStyle",void 0);_.r([_.Y({selector:_.UNw}),_.Q("design:type",Boolean)],yp.prototype,"guideIsExpanded",void 0);
_.r([_.Y({selector:DEt}),_.Q("design:type",Boolean)],yp.prototype,"persistentPanelVisible",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yp.prototype,"shouldHide",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yp.prototype,"disableSticky",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yp.prototype,"fluidWidth",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yp.prototype,"isClipList",void 0);
_.r([_.Y(),_.Q("design:type",Object)],yp.prototype,"defaultChipIndex",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yp.prototype,"isPlaylist",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yp.prototype,"playlistVotingAnimationEnabled",void 0);_.r([_.TX("#chips"),_.Q("design:type",Object)],yp.prototype,"JSC$16188_chipsSelector",void 0);
_.r([_.TX("ytd-sort-filter-header-renderer"),_.Q("design:type",HTMLElement)],yp.prototype,"sortFilterHeaderRendererElement",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],yp.prototype,"updating",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yp.prototype,"dataChanged",null);
_.r([_.iA("guideIsExpanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yp.prototype,"onGuideIsExpandedChanged",null);_.r([_.iA("persistentPanelVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yp.prototype,"onPersistentPanelVisibleChanged",null);_.r([_.SA("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yp.prototype,"onResize",null);
_.r([_.Vr("isChannelPageGrid","disableSticky","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yp.prototype,"updateChipBarWidthAndTop",null);_.r([_.w("componentStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],yp.prototype,"isChannelPageGrid",null);_.r([_.w("componentStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],yp.prototype,"isHashtagLandingPage",null);
_.r([_.iA("isPlaylistPage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yp.prototype,"isPlaylistPageChanged",null);_.r([_.w("componentStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],yp.prototype,"isPlaylistPage",null);_.r([_.w("componentStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],yp.prototype,"isDisableDeselectEvent",null);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],yp.prototype,"sortFilterHeaderRendererData",null);_.r([_.Y({reflectToAttribute:!0,selector:_.s31}),_.Q("design:type",String)],yp.prototype,"frostedGlassMode",void 0);_.r([_.iA("notSticky"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yp.prototype,"dispatchChipBarIsSticky",null);_.r([_.P({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],yp);
_.m(yp,"ytd-feed-filter-chip-bar-renderer",function(){if(bUt!==void 0)return bUt;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return bUt=L},{mode:1});var lvY;var vKV=_.p(function(L){var Z=L.data;var N=L.buttonIndex;var S=L.selectedIndex;var u=L.onSelect;var T=function(){return N()===S()},W=function(){var V,M;
return(M=(V=Z().text)==null?void 0:V.content)!=null?M:""};
L=_.pjs();return _.g("yt-toggleable-image-button-view-model",{class:function(){var V={};V=(V.toggleableImageButtonViewModelHost=!0,V[""]=!0,V.toggleableImageButtonViewModelSemiTransparent=S()!==-1&&!T(),V);return _.D7(V)},
tabindex:0,"aria-label":W,"aria-pressed":T,role:"button","on:keydown":L,"on:click":_.Z9(function(){u(Z().onSubmitCommand);return!1})},_.g(_.F,{cond:function(){return Z().logo},
then:function(V){return _.g(_.ji,{data:V,className:function(){var M={};M=(M.toggleableImageButtonViewModelImage=!0,M.toggleableImageButtonViewModelCircularRadius=!(!Z().backgroundColor||!Z().backgroundColorDarkMode),M.toggleableImageButtonViewModelGradientRing=!!(T()&&Z().backgroundColor&&Z().backgroundColorDarkMode),M);return _.D7(M)},
alt:W,useWidth:!1,style:function(){if(T()&&Z().backgroundColor&&Z().backgroundColorDarkMode){var M=cq(Number(Z().backgroundColorDarkMode),"1");var G=cq(Number(Z().backgroundColor),"1");M="background: linear-gradient(180deg,"+M+","+G+") border-box;"}else M="";return M}})}}),_.g(_.MN,{model:{borderRadius:"16px"}}),_.g("p",{class:function(){var V={};
V=(V.toggleableImageButtonViewModelLabel=!0,V.toggleableImageButtonViewModelBoldText=T(),V);return _.D7(V)}},_.g(_.qv,{text:function(){return Z().text}})))},"Mc");
vKV.idomCompat=!0;var Rpt=_.p(function(L){var Z=L.data;L=_.O(_.nh({index:-1,command:{}},void 0,"GM3umb"));var N=L.next().value,S=L.next().value;return _.g("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.g("div",{class:"nudgeFormViewModelFormOptions"},_.g(_.bj,{data:function(){return Z().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(u,T){return _.g(vKV,{data:u.data,buttonIndex:T,selectedIndex:function(){return N().index},
onSelect:function(W){S({index:T(),command:W})}})}})),_.g(_.qv,{text:function(){return Z().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.g("div",{class:"nudgeFormViewModelSubmit"},_.g(_.bj,{data:function(){return Z().submitButton}},{buttonViewModel:function(u){return _.g(oKI,{data:u.data,
isDisabled:function(){return N().index===-1},
onClick:function(){_.w$(N().command)}})}})))},"Nc");
Rpt.idomCompat=!0;var oKI=_.p(function(L){var Z=_.wJ(function(){return Object.assign({},L.data(),{state:L.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.g(_.$X,{data:Z,onClick:L.onClick})},"Oc");_.CY(Rpt,"yt-nudge-form-view-model",{props:{data:_.LK}});var wA=function(){var L=_.e.apply(this,arguments)||this;L.roundedContainer=!0;L.buttonUpdate=_.c("web_modern_buttons");L.isDarkMode=!1;L.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return L};
_.f(wA,_.e);_.t=wA.prototype;_.t.computeNudgeStyle=function(L){return L?"modernized-nudge":""};
_.t.handleDarkModeToggledAction=function(L){this.isDarkMode=L};
_.t.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.t.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"}}}};
_.t.computeIsHorizontalButtons=function(L){return L?!!L.applyModernizedStyle&&!!L.enableHorizontalButtons&&!!L.secondaryButton:!1};
_.gd.Object.defineProperties(wA.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var L,Z;return(Z=(L=this.data)==null?void 0:L.backgroundStyle)!=null?Z:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var L,Z;return(Z=(L=this.data)==null?void 0:L.contentsLocation)!=null?Z:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null?0:L.lightIconImage)}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],wA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],wA.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],wA.prototype,"actionHandlerBehavior",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("isHideEnclosingAction"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],wA.prototype,"isHidden",null);_.r([_.Y(),_.Q("design:type",Object)],wA.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wA.prototype,"roundedContainer",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wA.prototype,"buttonUpdate",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.Q("design:type",String)],wA.prototype,"nudgeStyle",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data.trimStyle"),_.Q("design:type",String),_.Q("design:paramtypes",[])],wA.prototype,"trimStyle",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.backgroundStyle"),_.Q("design:type",String),_.Q("design:paramtypes",[])],wA.prototype,"backgroundStyle",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data.contentsLocation"),_.Q("design:type",String),_.Q("design:paramtypes",[])],wA.prototype,"contentsLocation",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.disableDropShadow"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],wA.prototype,"noShadow",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.lightIconImage"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],wA.prototype,"noIcon",null);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.Q("design:type",Boolean)],wA.prototype,"isHorizontalButtons",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Object)],wA.prototype,"isDarkMode",void 0);_.r([_.P({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],wA);
_.m(wA,"ytd-feed-nudge-renderer",function(){if(lvY!==void 0)return lvY;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return lvY=L},{mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});var c1O;var nKI;var U0=function(){var L=_.e.apply(this,arguments)||this;L.collapsed=!1;L.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return L};
_.f(U0,_.e);U0.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"}}}};
U0.prototype.handleRatingSelect=function(){var L;((L=this.data)==null?0:L.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
U0.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],U0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],U0.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],U0.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],U0.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.Q$),_.Q("design:type",Object)],U0.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],U0.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],U0.prototype,"collapsed",void 0);_.r([_.P({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],U0);
_.m(U0,"ytd-slimline-survey-renderer",function(){if(nKI!==void 0)return nKI;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return nKI=L},{mode:1});var K$q;var YG=function(){return _.e.apply(this,arguments)||this};
_.f(YG,_.e);YG.prototype.maybeGetBackgroundColor=function(L){return this.isDarkMode?L.section2Color:L.section3Color};
YG.prototype.colorPaletteChanged=function(){var L=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;L&&(L==null?0:L.secondaryTitleColor)&&this.maybeGetBackgroundColor(L)?(this.hostElement.style.backgroundColor=_.vq(this.maybeGetBackgroundColor(L)),this.hostElement.style.color=_.vq(L.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
YG.prototype.colorPaletteChanged=YG.prototype.colorPaletteChanged;_.r([_.y(_.CD),_.Q("design:type",Object)],YG.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],YG.prototype,"data",void 0);_.r([_.Y({selector:function(L){return L.ui.darkModeIsEnabled}}),
_.Q("design:type",Boolean)],YG.prototype,"isDarkMode",void 0);_.r([_.Y(),_.Q("design:type",Object)],YG.prototype,"lightColorPalette",void 0);_.r([_.Y(),_.Q("design:type",Object)],YG.prototype,"darkColorPalette",void 0);_.r([_.iA("darkColorPalette","lightColorPalette","data","isDarkMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],YG.prototype,"colorPaletteChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],YG);
_.m(YG,"ytd-endorsement-header-renderer",function(){if(K$q!==void 0)return K$q;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return K$q=L},{mode:1});_.CY(_.CS,"yt-decorated-avatar-view-model",{props:{data:_.LK,className:_.LK}});_.eB=new _.iY("VIEW_TRANSITION_MANAGER_TOKEN");var Ia=function(){var L=_.e.apply(this,arguments)||this;L.fullHeight=_.c("web_rich_grid_media_full_height");L.showChannelAvatar=!0;L.hasPlaylistThumbnail=!1;L.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};L.registerThumbnailForPageTransition=function(){_.c("web_thumbnail_to_watch_transition")&&_.fvs(_.GR().resolve(_.eB),L.thumbnail)};
return L};
_.f(Ia,_.e);_.t=Ia.prototype;
_.t.configureRendererStamper=function(){return{lazyLoadMenu:Ul,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"}}}};
_.t.attached=function(){this.updateInlinePreviewHoverListeners()};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.shouldLazyLoadMenu=function(){var L=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.c("kevlar_modern_downloads_page")||!L};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16213_inlinePreviewHoverListener=Kl({mediaRenderer:this,lockupElement:this.JSC$16213_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.t.getVideoPreviewOpts=function(){var L={},Z;if((Z=this.data)==null?0:Z.multipleInlinePlaybackEndpoint)L=MOI;this.isRadio&&(L=bit);return L};
_.t.clearInlinePreviewHoverListeners=function(){var L;(L=this.JSC$16213_inlinePreviewHoverListener)==null||jy(L)};
_.t.getOwner=function(){var L,Z,N;return((L=this.data)==null?void 0:(Z=L.channelThumbnailSupportedRenderers)==null?void 0:Z.channelThumbnailWithLinkRenderer)||_.n((N=this.data)==null?void 0:N.showProviderChannelThumbnail,SeN)};
_.t.updateLockupSize=function(){var L;((L=this.getOwner())==null?0:L.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.t.getFeedbackEndpoint=function(L){if(_.n(L,_.Rj))return L;var Z,N;L=(N=(Z=_.n(L,_.q2))==null?void 0:Z.commands)!=null?N:[];Z=_.O(L);for(N=Z.next();!N.done;N=Z.next())if(N=this.getFeedbackEndpoint(N.value))return N;return null};
_.t.computeNavigationEndpoint=function(L){return hTh(L==null?void 0:L.navigationEndpoint)};
_.t.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var L=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(L)!==JSON.stringify(this.data)&&this.set("data",L)}};
_.t.onDataChanged=function(){var L=this,Z=this.getOwner();if(Z){this.set("data.owner",Z);var N,S,u,T,W,V=((N=this.data)==null?void 0:(S=N.shortBylineText)==null?void 0:(u=S.runs)==null?void 0:(T=u[0])==null?void 0:T.text)||((W=Z.name)==null?void 0:W.simpleText);this.set("data.owner.title",V)}var M,G,D,l,v,R;Z=((M=this.data)==null?void 0:(G=M.thumbnailRenderer)==null?void 0:G.playlistVideoThumbnailRenderer)||((D=this.data)==null?void 0:(l=D.thumbnailRenderer)==null?void 0:l.playlistCustomThumbnailRenderer)||
((v=this.data)==null?void 0:(R=v.thumbnailRenderer)==null?void 0:R.showCustomThumbnailRenderer);var K;((K=this.data)==null?0:K.thumbnail)||!Z||this.set("data.thumbnail",Z.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){L.updateLockupSize()});
var U;if(M=((U=this.data)==null?void 0:U.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(M);var d;((d=this.dismissActionToReplayEntity)==null?0:d.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.t.onHiddenChanged=function(){this.updateLockupSize()};
_.t.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.XJ(this.hostElement,"yt-terminate-video-preview-action");else{var L;(L=this.videoTitleLink)==null||L.focus()}};
_.t.metadataColorChanged=function(){var L;if(this.metadataColor&&((L=this.videoTitle)==null?0:L.style))this.videoTitle.style.color=_.vq(this.metadataColor);else{var Z,N;!this.metadataColor&&((Z=this.videoTitle)==null?0:(N=Z.style)==null?0:N.color)&&(this.videoTitle.style.color="")}};
_.t.onDetailsClick=function(L){var Z=this.computedNavigationEndpoint;Z&&(_.PQ(_.sx(L),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.QT(this.hostElement,"yt-navigate",{endpoint:Z}))};
_.t.onRendererTap=function(){this.registerThumbnailForPageTransition();var L,Z,N=((L=this.data)==null?void 0:L.serviceEndpoint)||this.getFeedbackEndpoint((Z=this.data)==null?void 0:Z.navigationEndpoint);N&&_.n(N,_.Rj)&&this.ytComponentBehavior.resolveCommand(N)};
_.t.onMouseDown=function(L){var Z=L.target,N=this.computedNavigationEndpoint,S;L=Z.href||((S=_.n(N==null?void 0:N.commandMetadata,_.Nj))==null?void 0:S.url);S=Z.data||N;L&&S&&yMh(L,S)};
_.t.computeVideoTitleText=function(){var L;if((L=this.data)==null?0:L.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.t.computeHasPlaylistThumbnail=function(L){var Z,N,S,u,T;if((((Z=L.thumbnailRenderer)==null?0:Z.playlistVideoThumbnailRenderer)||((N=L.thumbnailRenderer)==null?0:N.playlistCustomThumbnailRenderer)||((S=L.thumbnailRenderer)==null?0:S.showCustomThumbnailRenderer)||((u=L.thumbnailRenderer)==null?0:u.playlistVideoThumbnailRenderer)||((T=L.thumbnailRenderer)==null?0:T.playlistCustomThumbnailRenderer))&&L.thumbnailOverlays)for(Z=0;Z<L.thumbnailOverlays.length;Z++)if(N=void 0,(N=L.thumbnailOverlays[Z])==
null?0:N.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.gd.Object.defineProperties(Ia.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.c("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var L;return(L=this.data)==null?void 0:L.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var L;return(L=this.data)==null?void 0:L.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.JSC$16213_inlinePreviewHoverListener)==null?0:AO(L))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.uos(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?void 0:L.videoId)||((Z=this.data)==null?void 0:Z.playlistId)||""}}});
Ia.prototype.onMouseDown=Ia.prototype.onMouseDown;Ia.prototype.metadataColorChanged=Ia.prototype.metadataColorChanged;Ia.prototype.onIsDismissedChanged=Ia.prototype.onIsDismissedChanged;Ia.prototype.onHiddenChanged=Ia.prototype.onHiddenChanged;Ia.prototype.onDataChanged=Ia.prototype.onDataChanged;Ia.prototype.handleReloadDownloadsInfo=Ia.prototype.handleReloadDownloadsInfo;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Ia.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Ia.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],Ia.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.Lb),_.Q("design:type",Object)],Ia.prototype,"ytdLockupBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Ia.prototype,"ytdReduxBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Ia.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],Ia.prototype,"entitySelectorType",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Ia.prototype,"noEndpoints",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Ia.prototype,"isRadio",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.vv}),_.Q("design:type",Boolean)],Ia.prototype,"miniMode",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Ia.prototype,"fullHeight",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],Ia.prototype,"showDarkVideoMetadata",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Ia.prototype,"showLightVideoMetadata",void 0);_.r([_.Y(),_.Q("design:type",Number)],Ia.prototype,"metadataColor",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ia.prototype,"showChannelAvatar",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Ia.prototype,"hidden",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],Ia.prototype,"showYtInteraction",void 0);
_.r([_.Y(),_.Q("design:type",String)],Ia.prototype,"dismissedContentId",void 0);_.r([_.Y({selectorArgs:["dismissedContentId"],selector:Ogt}),_.Q("design:type",Object)],Ia.prototype,"dismissActionToReplayEntity",void 0);
_.r([_.Y({selectorArgs:["entitySelectorType","mediaId"],selector:function(L,Z,N){if(_.c("kevlar_modern_downloads_page")&&N&&Z&&Z!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(Z){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var S=pSh(L,N);if(S){Z=_.Kk(L,N);var u=kQ(L,N),T=qjw(L,N);L=yE(L,N);var W=Wjs(S,Z,u,T);u=W.shortViewCountText;var V=W.publishedTimeText;W=W.badges;var M=L>0;T=tG1(S,Z,T,L);S=_.Wv(Z)||Z==="TRANSFER_STATE_FAILED"||Z==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!O9(S.policyEntity)?
void 0:dUP(N,L,S.videoEntity.lengthSeconds);Z==="TRANSFER_STATE_PAUSED_BY_USER"&&N&&!_.c("dl_resume_click_killswitch")&&(S={offlineVideoEndpoint:{videoId:N,action:"ACTION_RESUME"}});N={shortViewCountText:u,publishedTimeText:V,badges:W,isWatched:M,navigationEndpoint:S,thumbnailOverlays:T}}else N=void 0;return N;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(Z=zuH(L,N))if(S=_.fk(L,N),T=_.mNP(L,N),S!=="TRANSFER_STATE_UNKNOWN"){N=Ob0(Z,S,T,N,_.nk(L));break a}N=void 0}return N;default:_.Q7(new _.sr("Error: entitySelectorType defined but not matched in selector.",
L,Z))}}}),
_.Q("design:type",Object)],Ia.prototype,"entityDrivenState",void 0);_.r([_.Y({computed:"computeVideoTitleText(data)"}),_.Q("design:type",Object)],Ia.prototype,"videoTitleText",void 0);_.r([_.Y({computed:"computeHasPlaylistThumbnail(data)"}),_.Q("design:type",Object)],Ia.prototype,"hasPlaylistThumbnail",void 0);_.r([_.Y({computed:"computeNavigationEndpoint(data)"}),_.Q("design:type",Object)],Ia.prototype,"computedNavigationEndpoint",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Ia.prototype,"typographyBump",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("typographyBump"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ia.prototype,"typographyBumpV2",null);_.r([_.TX("#video-title"),_.Q("design:type",HTMLElement)],Ia.prototype,"videoTitle",void 0);_.r([_.TX("#video-title-link"),_.Q("design:type",HTMLElement)],Ia.prototype,"videoTitleLink",void 0);
_.r([_.TX("#thumbnail"),_.Q("design:type",HTMLElement)],Ia.prototype,"thumbnail",void 0);_.r([_.TX("#dismissible"),_.Q("design:type",HTMLElement)],Ia.prototype,"JSC$16213_dismissibleMedia",void 0);_.r([_.w("data.menu"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ia.prototype,"lazyLoadMenu",null);_.r([_.w("data.menu"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ia.prototype,"immediateLoadMenu",null);
_.r([_.Vr("entityDrivenState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ia.prototype,"handleReloadDownloadsInfo",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ia.prototype,"onDataChanged",null);_.r([_.Vr("hidden"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ia.prototype,"onHiddenChanged",null);
_.r([_.iA("isDismissed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ia.prototype,"onIsDismissedChanged",null);_.r([_.iA("metadataColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ia.prototype,"metadataColorChanged",null);_.r([_.SA("mousedown"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Ia.prototype,"onMouseDown",null);
_.r([_.w("lockupIsHovered"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ia.prototype,"isHovered",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ia.prototype,"useAvatar",null);_.r([_.w("data","entitySelectorType"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Ia.prototype,"mediaId",null);_.r([_.P({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Ia);
var k$V=_.rD()(Ia,"ytd-rich-grid-media",function(){if(c1O!==void 0)return c1O;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return c1O=L},{mode:_.Qr("kevlar_poly_si_batch_j072")?1:2});var y1h;var dA=function(){var L=_.e.apply(this,arguments)||this;L.removeMaxWidth=!0;L.insetMetadata=!1;return L};
_.f(dA,_.e);_.t=dA.prototype;_.t.configureRendererStamper=function(){return{innerMenu:Ul,outerMenu:Object.assign({},Ul,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.t.onDataChanged=function(){var L,Z=((L=this.data)==null?void 0:L.trackingParams)||"";Z&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(Z));var N;((N=this.dismissActionToReplayEntity)==null?0:N.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.t.attached=function(){this.updateInlinePreviewHoverListeners()};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16218_inlinePreviewHoverListener=Kl({mediaRenderer:this,lockupElement:this.JSC$16218_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:gnl})};
_.t.clearInlinePreviewHoverListeners=function(){var L;(L=this.JSC$16218_inlinePreviewHoverListener)==null||jy(L)};
_.t.onRendererTap=function(){var L,Z,N=(L=this.data)==null?void 0:(Z=L.serviceEndpoints)==null?void 0:Z[0];_.n(N,_.Rj)&&this.componentBehavior.resolveCommand(N)};
_.t.onDetailsClick=function(L){var Z,N=(Z=this.data)==null?void 0:Z.navigationEndpoint;N&&(_.PQ(_.sx(L),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(N))};
_.t.onShow=function(){var L=this.data;L.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(L.onFirstVisibleCommand),delete L.onFirstVisibleCommand)};
_.gd.Object.defineProperties(dA.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var L;return this.insetMetadata?void 0:(L=this.data)==null?void 0:L.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var L;return this.insetMetadata?(L=this.data)==null?void 0:L.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var L=this.data;if(L!=null&&L.badge&&(L=_.n(L.badge,Ayl))){var Z,N,S;return[{metadataBadgeRenderer:{label:((Z=L.label)==null?void 0:(N=Z.runs)==null?void 0:N[0].text)||((S=L.label)==null?void 0:S.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var L=this.data;return Object.assign({},L.headline,{accessibility:L.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return this.isSlimShort?(L=this.computedTitle)==null?void 0:(Z=L.accessibility)==null?void 0:(N=Z.accessibilityData)==null?void 0:N.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.c("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.JSC$16218_inlinePreviewHoverListener)==null?0:AO(L))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
dA.prototype.onDataChanged=dA.prototype.onDataChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],dA.prototype,"componentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Lb),_.Q("design:type",Object)],dA.prototype,"ytdLockupBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.Q$),_.Q("design:type",Object)],dA.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],dA.prototype,"ytdReduxBehavior",void 0);_.r([_.TX("ytd-thumbnail"),_.Q("design:type",HTMLElement)],dA.prototype,"thumbnail",void 0);_.r([_.TX("#dismissible"),_.Q("design:type",HTMLElement)],dA.prototype,"JSC$16218_dismissibleMedia",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],dA.prototype,"removeMaxWidth",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],dA.prototype,"insetMetadata",void 0);_.r([_.Y(),_.Q("design:type",String)],dA.prototype,"dismissedContentId",void 0);_.r([_.Y({selectorArgs:["dismissedContentId"],selector:Ogt}),_.Q("design:type",Object)],dA.prototype,"dismissActionToReplayEntity",void 0);_.r([_.w("insetMetadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dA.prototype,"thumbnailObjectFit",null);
_.r([_.w("data","insetMetadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dA.prototype,"innerMenu",null);_.r([_.w("data","insetMetadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dA.prototype,"outerMenu",null);_.r([_.Y(),_.Q("design:type",Object)],dA.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.vv}),_.Q("design:type",Boolean)],dA.prototype,"miniMode",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dA.prototype,"onDataChanged",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dA.prototype,"shortsBadges",null);_.r([_.w("data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],dA.prototype,"isShort",null);
_.r([_.w("data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],dA.prototype,"isSlimShort",null);_.r([_.w("data","isShort"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dA.prototype,"computedTitle",null);_.r([_.w("isSlimShort","computedTitle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dA.prototype,"computedAccessibilityLabel",null);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],dA.prototype,"shouldForce2By3",null);_.r([_.w("lockupIsHovered"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],dA.prototype,"isHovered",null);_.r([_.P({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],dA);
_.m(dA,"ytd-rich-grid-slim-media",function(){if(y1h!==void 0)return y1h;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return y1h=L},{mode:_.Qr("kevlar_poly_si_batch_j063")?1:2});var wRQ;var UEY;var aa=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(aa,_.e);aa.prototype.computeIcon=function(L){return L&&L.iconType?"yt-sys-icons:"+L.iconType.toLowerCase():""};
aa.prototype.onMouseEnter=function(){this.isHovered=!0};
aa.prototype.onMouseLeave=function(){this.isHovered=!1};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],aa.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],aa.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],aa.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],aa.prototype,"isHovered",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],aa.prototype,"darkerDarkTheme",void 0);_.r([_.P({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],aa);
_.m(aa,"ytd-expand-on-hover-card-renderer",function(){if(UEY!==void 0)return UEY;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return UEY=L},{mode:1});var YpY,epl=function(){if(YpY!==void 0)return YpY;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return YpY=L};_.l4("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var hP=function(){var L=_.e.apply(this,arguments)||this;L.compactStyle=!1;L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return L};
_.f(hP,_.e);_.t=hP.prototype;_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.t.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"}}}};
_.t.computeHideDot=function(L){return!(L&&L.subscriberCountText&&L.videoCountText)||this.compactStyle};
_.t.hasDualButtons=function(L){return L&&L.purchaseButton&&L.subscribeButton};
_.t.backgroundColorChanged=function(){if(this.data!==void 0){var L=this.data.backgroundColor;this.isDarkTheme&&(L=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=L!=null?_.vq(L):"transparent"}};
_.t.onDarkModeToggledAction=function(L){this.isDarkTheme=L};
_.t.onTap=function(L){var Z,N,S=((Z=this.data)==null?void 0:Z.navigationEndpoint)||((N=this.data)==null?void 0:N.serviceEndpoint);_.n(S,_.hu)&&(S&&_.GR().resolve(_.$s).resolveCommand(S,{form:{element:this.hostElement}}),L.preventDefault())};
_.t.computeChannelEndpoint=function(L){return _.n(L,_.hu)?null:L};
_.t.computeHrefEndpoint=function(L){return _.n(L,_.hu)?null:this.componentBehavior.computeHref_(L)};
_.t.computeChannelRendererStyle=function(L){return L};
_.t.computeIconSize=function(L){return L?108:136};
_.gd.Object.defineProperties(hP,{template:{configurable:!0,enumerable:!0,get:function(){return epl()}}});
hP.prototype.backgroundColorChanged=hP.prototype.backgroundColorChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.W0),_.Q("design:type",Object)],hP.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],hP.prototype,"componentBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],hP.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],hP.prototype,"isDarkTheme",void 0);_.r([_.Y({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.Q("design:type",String)],hP.prototype,"channelRendererStyle",void 0);_.r([_.Y({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],hP.prototype,"dualButtons",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.Q("design:type",Boolean)],hP.prototype,"useBiggerThumbs",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.vW("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],hP.prototype,"biggerThumbStyle",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],hP.prototype,"compactStyle",void 0);_.r([_.iA("data","isDarkTheme"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hP.prototype,"backgroundColorChanged",null);_.r([_.P({is:"ytd-channel-renderer",disableElementRegistration:!0})],hP);_.m(hP,"ytd-channel-renderer",function(){return epl()},{mode:1});var Ivh;var dEL;_.l4("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var s0=function(){var L=_.e.apply(this,arguments)||this;L.displayItemCount=2;L.hasPlaylistThumbnail=!1;L.stackThumbnailSize="large";return L};
_.f(s0,_.e);_.t=s0.prototype;_.t.attached=function(){this.updateInlinePreviewHoverListeners()};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.t.computeFirstVideos=function(L,Z){return L&&Z?L.slice(0,Z):[]};
_.t.computeThumbnailWidth=function(L,Z){return L?Z==="BIG"?500:Z==="MASSIVE"?600:Z==="MEDIUM"?450:420:360};
_.t.computeThumbnailHeight=function(L,Z){return L?Z==="BIG"?280:Z==="MASSIVE"?337:234:202};
_.t.clearInlinePreviewHoverListeners=function(){var L;(L=this.JSC$16231_inlinePreviewHoverListener)==null||jy(L)};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16231_inlinePreviewHoverListener=Kl({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:MOI,thumbnailElement:this.thumbnail})};
_.t.computeHasPlaylistThumbnail=function(L){var Z,N;if((((Z=L.thumbnailRenderer)==null?0:Z.playlistVideoThumbnailRenderer)||((N=L.thumbnailRenderer)==null?0:N.playlistCustomThumbnailRenderer))&&L.thumbnailOverlays)for(Z=0;Z<L.thumbnailOverlays.length;Z++)if(N=void 0,(N=L.thumbnailOverlays[Z])==null?0:N.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.gd.Object.defineProperties(s0.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.JSC$16231_inlinePreviewHoverListener)==null?0:AO(L))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
s0.prototype.dataChanged=s0.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],s0.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Lb),_.Q("design:type",Object)],s0.prototype,"ytdLockupBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],s0.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],s0.prototype,"displayItemCount",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.Q("design:type",Boolean)],s0.prototype,"useBiggerThumbs",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.vW("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],s0.prototype,"biggerThumbsStyle",void 0);_.r([_.Y({computed:"computeHasPlaylistThumbnail(data)"}),_.Q("design:type",Object)],s0.prototype,"hasPlaylistThumbnail",void 0);_.r([_.Y(),_.Q("design:type",String)],s0.prototype,"stackThumbnailSize",void 0);_.r([_.TX("ytd-thumbnail"),_.Q("design:type",HTMLElement)],s0.prototype,"thumbnail",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],s0.prototype,"dataChanged",null);
_.r([_.w("lockupIsHovered"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],s0.prototype,"isHovered",null);_.r([_.P({is:"ytd-radio-renderer",disableElementRegistration:!0})],s0);
_.m(s0,"ytd-radio-renderer",function(){if(dEL!==void 0)return dEL;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return dEL=L},{mode:_.Qr("kevlar_poly_si_batch_j058")?1:2});var avl;_.l4("itemSectionRenderer","showRenderer","ytd-show-renderer");var jB=function(){return _.e.apply(this,arguments)||this};
_.f(jB,_.e);jB.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
jB.prototype.computeThumbnailWidth=function(L){return L?360:246};
jB.prototype.computeUseProminentThumbs=function(L){return L};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],jB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],jB.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],jB.prototype,"isSearch",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.Q("design:type",Boolean)],jB.prototype,"useProminentThumbs",void 0);_.r([_.P({is:"ytd-show-renderer",disableElementRegistration:!0})],jB);
_.m(jB,"ytd-show-renderer",function(){if(avl!==void 0)return avl;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return avl=L},{mode:1});_.l4("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var E0=function(){var L=_.e.apply(this,arguments)||this;L.isRichGrid=!1;return L};
_.f(E0,_.e);E0.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"}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],E0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],E0.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],E0.prototype,"isRichGrid",void 0);_.r([_.P({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],E0);
_.m(E0,"ytd-feed-entry-renderer",function(){if(Ivh!==void 0)return Ivh;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Ivh=L},{mode:1});var hpM;var Pi=function(){return _.e.apply(this,arguments)||this};
_.f(Pi,_.e);Pi.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.r([_.y(_.CD),_.Q("design:type",Object)],Pi.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Pi.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Pi.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.oi,value:3}),_.Q("design:type",Number)],Pi.prototype,"itemsPerRow",void 0);
_.r([_.P({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Pi);
_.m(Pi,"ytd-link-card-renderer",function(){if(hpM!==void 0)return hpM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return hpM=L},{mode:1});var sIQ;var pW=function(){return _.e.apply(this,arguments)||this};
_.f(pW,_.e);_.t=pW.prototype;_.t.configureRendererStamper=function(){return{"data.menu":Ul,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.t.onRendererTap=function(L){if(!this.ytdDismissibleItemBehavior.isDismissed){var Z,N=(Z=this.data)==null?void 0:Z.navigationEndpoint;N&&!_.PQ(_.sx(L),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(N)?_.PQ(_.sx(L),this.hostElement,["A"])||_.QT(this.hostElement,"yt-navigate",{endpoint:N}):this.ytComponentBehavior.resolveCommand(N,{}))}};
_.t.maybeComputeHref=function(L){return this.ytComponentBehavior.computeHref_(L,!0)};
_.t.getNavigationCommand=function(L){return this.isNavigationCommand(L)?L:null};
_.t.isNavigationCommand=function(L){return L?_.n(L,_.iv)||_.n(L,_.so)||_.n(L,_.Lo)?!0:!1:!1};
pW.prototype.onRendererTap=pW.prototype.onRendererTap;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],pW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],pW.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],pW.prototype,"ytComponentBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],pW.prototype,"data",void 0);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],pW.prototype,"onRendererTap",null);_.r([_.P({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],pW);
_.m(pW,"ytd-lumiere-promo-item-image-renderer",function(){if(sIQ!==void 0)return sIQ;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return sIQ=L},{mode:1});var jIq;var zy=function(){return _.e.apply(this,arguments)||this};
_.f(zy,_.e);zy.prototype.computeLandscapeThumbnail=function(){var L;return((L=this.data)==null?void 0:L.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],zy.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],zy.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],zy.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.vv}),_.Q("design:type",Boolean)],zy.prototype,"miniMode",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.oi}),_.Q("design:type",Number)],zy.prototype,"itemsPerRow",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.Q("design:type",Boolean)],zy.prototype,"landscapeThumbnail",void 0);_.r([_.P({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],zy);
_.m(zy,"ytd-lumiere-shelf-details-renderer",function(){if(jIq!==void 0)return jIq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return jIq=L},{mode:_.Qr("kevlar_poly_si_batch_j076")?1:2});var EKO;var mO=function(){return _.e.apply(this,arguments)||this};
_.f(mO,_.e);mO.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],mO.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],mO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],mO.prototype,"data",void 0);_.r([_.P({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],mO);
_.m(mO,"ytd-primetime-promo-details-renderer",function(){if(EKO!==void 0)return EKO;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return EKO=L},{mode:1});var Pwt;var JP=function(){return _.e.apply(this,arguments)||this};
_.f(JP,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],JP.prototype,"data",void 0);_.r([_.P({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],JP);
_.m(JP,"ytd-panel-show-style-metadata-renderer",function(){if(Pwt!==void 0)return Pwt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Pwt=L},{mode:1});var pR0;var CW=function(){return _.e.apply(this,arguments)||this};
_.f(CW,_.e);_.t=CW.prototype;_.t.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.t.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.t.computeThumbnail=function(L){if(L)return L.smallFormFactorBackgroundThumbnail||L.largeFormFactorBackgroundThumbnail};
_.t.maybeComputeHref=function(L){return this.ytComponentBehavior.computeHref_(L,!0)};
_.t.isNavigationCommand=function(L){return L?_.n(L,_.iv)||_.n(L,_.so)||_.n(L,_.Lo)?!0:!1:!1};
_.t.getNavigationCommand=function(L){return this.isNavigationCommand(L)?L:null};
CW.prototype.onPanelTap=CW.prototype.onPanelTap;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],CW.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],CW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],CW.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],CW.prototype,"roundedContainer",void 0);_.r([_.Y({reflectToAttribute:!0,value:_.c("web_modern_buttons")}),_.Q("design:type",Boolean)],CW.prototype,"modernButtons",void 0);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],CW.prototype,"onPanelTap",null);_.r([_.P({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],CW);
_.m(CW,"ytd-primetime-promo-panel-renderer",function(){if(pR0!==void 0)return pR0;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return pR0=L},{mode:1});_.CY(_.p(function(L){L=_.Ek(L,{data:{},useFullWidth:!1});var Z=L.data,N=L.useFullWidth;L={};return _.g("teaser-card-view-model",{class:_.qg("ytTeaserCardViewModelHost",(L.ytTeaserCardViewModelUseFullWidth=function(){return N()},L))},_.g(_.F,{cond:function(){return Z().onTap},
then:function(S){return _.g(_.bM,{className:"ytTeaserCardViewModelLink",command:S},_.g("div",{class:"ytTeaserCardViewModelImageContainer"},_.g(_.F,{cond:function(){return Z().image},
then:function(u){return _.g(_.ji,{data:u,className:"ytTeaserCardViewModelImage",alt:""})}})),_.g("p",{class:"ytTeaserCardViewModelCaption"},function(){return Z().caption}))}}))},"Pc"),"teaser-card-view-model",{props:{data:_.LK,
useFullWidth:_.LK}});_.CY(_.p(function(L){var Z=L.data;var N=function(){var S;return _.US((S=Z())==null?void 0:S.iconThemedImage)};
return _.g("yt-edu-card-view-model",null,_.g(_.vA,{contentId:function(){return Z().nudgeId}},function(){return _.g("div",{class:_.qg("ytEduCardViewModelHost",function(){return Z().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.g("div",{class:"ytEduCardViewModelTopCornerButton"},_.g(_.bj,{data:function(){return Z().dismissButton}},{buttonViewModel:_.$X})),_.g("div",{class:"ytEduCardViewModelContentWrapper"},_.g("div",{class:"ytEduCardViewModelHeaderImage"},_.g(_.F,
{cond:N,
then:function(S){return _.g(_.ji,{data:S,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.g("div",{class:"ytEduCardViewModelTextContainer"},_.g("div",{class:"ytEduCardViewModelTitle"},_.g(_.qv,{text:function(){return Z().title}})),_.g("div",{class:"ytEduCardViewModelSubtitle"},_.g(_.qv,{text:function(){return Z().subtitle}}))),_.g("div",{class:"ytEduCardViewModelContent"},_.g(_.bj,{data:function(){return Z().form}},{nudgeFormViewModel:Rpt}))),_.g("div",{class:_.qg("ytEduCardViewModelButtonWrapper",
function(){return Z().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.g(_.bj,{data:function(){return Z().primaryButton}},{buttonViewModel:function(S){return _.g("div",{class:"ytEduCardViewModelPrimaryButton"},_.g(_.$X,{data:S.data}))}}),_.g(_.bj,{data:function(){return Z().secondaryButton}},{buttonViewModel:function(S){return _.g("div",{class:"ytEduCardViewModelSecondaryButton"},_.g(_.$X,{data:S.data}))}})))}))},"Qc"),"yt-edu-card-view-model",{props:{data:_.LK}});var zps=new _.iY("RICH_GRID_VIDEO_RENDERER_TOKEN");_.CY(_.p(function(L){var Z=L.data;var N=L.showYtInteractionInContent;var S=function(){return!!Z().selectableFeedback};
L=_.O(_.nh(!1,void 0,"qxtgaf"));var u=L.next().value,T=L.next().value;_.m0(function(){var v=_.n(Z().primaryButton,_.iD);(v==null?0:v.isToggled)&&T(v.isToggled)});
L=_.Z9(function(v){if(!S())return!1;if(u()){var R;var K=(R=Z().selectableFeedback)==null?void 0:R.onDeselect}else{var U;K=(U=Z().selectableFeedback)==null?void 0:U.onSelect}K&&_.w$(K,{form:{element:v.target}});T(!u());if(v=_.n(Z().primaryButton,_.iD))v.isToggled=u();return!1});
var W=function(){if(!S()){var v,R=(v=Z().loggingDirectives)==null?void 0:v.trackingParams;R&&_.U$(_.GR().resolve(_.a3),R)}},V=_.zgt(),M=function(){var v;
return S()?(v=Z().selectableFeedback)==null?void 0:v.a11yLabel:void 0},G=function(){return S()?{toggled:u()}:{}},D=_.GR().resolve(_.gv(zps)),l={};
return _.g("yt-feedback-item-renderer",{class:_.qg("ytFeedbackItemRendererHost",(l.ytFeedbackItemRendererSelectableFeedback=S,l)),"on:click":L,"on:keydown":V,title:M,"aria-label":M,"aria-pressed":function(){return S()?u():void 0},
tabindex:function(){return S()?0:void 0},
role:function(){return S()?"button":void 0}},_.g("div",{class:"ytFeedbackItemRendererContentContainer"},_.g(_.bj,{data:function(){return Z().content}},{videoRenderer:function(v){return _.g(D,{data:v.data,
showYtInteraction:N})},
lockupViewModel:function(v){return _.g(_.nN,{data:v.data,containerType:2})}})),_.g("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.g(_.bj,{data:function(){return Z().primaryButton}},{toggleButtonViewModel:function(v){return _.g(_.sj,{data:v.data,
buttonShapeOverrides:G,disableExplicitClickLogging:!0,onToggle:W})}})))},"Rc"),"yt-feedback-item-renderer",{props:{data:_.LK,
showYtInteractionInContent:_.LK}});var rA=function(){var L=_.e.apply(this,arguments)||this;L.isShortsGrid=!1;L.isCompactGrid=!1;L.isShortsPanelGrid=!1;L.renderedFromRichGrid=!1;L.isInFirstColumn=!1;L.noGutterMargins=!1;L.noBottomMargin=!1;L.halfBottomMargin=!1;L.isInlineGroupItem=!1;L.insetMetadata=!1;L.noBottomMarginInAds=!0;L.force16By9ThumbnailAspectRatio=!1;L.useCompactList=!1;L.containerType=2;L.thumbnailTargetWidth=9999;L.isResponsiveGrid=!1;L.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};L.hoverListener=
L.hover.bind(L);L.leaveListener=L.leave.bind(L);L.highlighted=!1;L.JSC$16267_unsubscribeFromInlinePreviewIsActive=function(){};
return L};
_.f(rA,_.e);_.t=rA.prototype;_.t.computeContainerType=function(){return this.useCompactList?3:2};
_.t.itemWidthChanged=function(){var L;this.thumbnailTargetWidth=(L=this.itemWidth)!=null?L:9999};
_.t.updateIsInFirstColumn=function(){var L;this.isInFirstColumn=((L=this.data)==null?void 0:L.colIndex)===0};
_.t.observerContainerType=function(){if(this.lockup){var L=this.lockup;L.containerType=this.containerType;L.sizing=this.sizing;L.typographyBump=this.typographyBump;L.itemWidth=this.itemWidth}this.richGridMedia&&_.c("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.c("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.t.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]]"}}}}}};
_.t.leave=function(L){L=L.relatedTarget;var Z=document.querySelector("ytd-video-preview");L&&Z&&_.XB(Z).contains(L)||this.removeAndCleanupHighlight()};
_.t.hover=function(){var L;!this.highlighted&&(L=this.data)!=null&&L.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(L=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:L,boxShadow:"0 0 0 10px "+L})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.t.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};
_.t.registerHoverHighlightListeners=function(){var L=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16267_unsubscribeFromInlinePreviewIsActive=_.hK(_.Pv(),_.dNw,function(Z){L.highlighted&&!Z&&L.removeAndCleanupHighlight()})};
_.t.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16267_unsubscribeFromInlinePreviewIsActive()};
_.t.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.t.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.t.getBackgroundColor=function(){var L,Z,N=(L=this.data)==null?void 0:(Z=L.onFocusEffect)==null?void 0:Z.onFocusColor;if(N){if(document.documentElement.hasAttribute("dark")&&(N==null?0:N.darkTheme))return nX(N==null?void 0:N.darkTheme);if(N==null?0:N.lightTheme)return nX(N==null?void 0:N.lightTheme)}};
_.t.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var L=_.RH(),Z,N,S;L&&((Z=this.data)==null?0:Z.trackingParams)&&((N=this.data)==null?void 0:N.colIndex)!=null&&((S=this.data)==null?void 0:S.rowIndex)!=null&&_.ET(L,_.Mg(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.t.isSlimMediaRenderer=function(L){return!!_.n(L==null?void 0:L.content,_.nvL)||!!_.n(L==null?void 0:L.content,ceV)||!!_.n(L==null?void 0:L.content,_.Bb)||!!_.n(L==null?void 0:L.content,ryO)};
_.t.isPostRenderer=function(){var L,Z;return!!_.n((L=this.data)==null?void 0:L.content,zkt)||!!_.n((Z=this.data)==null?void 0:Z.content,mXV)};
_.t.computeIsGameCardShelf=function(){var L;return!!_.n((L=this.data)==null?void 0:L.content,ZTt)};
_.t.computeIsMiniGameCardShelf=function(){var L,Z;return!!_.n((L=this.data)==null?void 0:L.content,FZN)||!!_.n((Z=this.data)==null?void 0:Z.content,$fs)};
_.t.computeIsTeaserCard=function(){var L;return!!_.n((L=this.data)==null?void 0:L.content,$fs)};
_.t.computeIsSelectableFeedbackItem=function(){var L,Z;return!((Z=_.n((L=this.data)==null?void 0:L.content,ls0))==null||!Z.selectableFeedback)};
_.t.computeContainsLumierePosters=function(){var L,Z;return((Z=_.n((L=this.data)==null?void 0:L.content,xXO))==null?void 0:Z.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.t.computeIsExpandOnHoverCardShelf=function(){var L;return!!_.n((L=this.data)==null?void 0:L.content,B1L)};
_.t.computeIsLinkCardShelf=function(){var L;return!!_.n((L=this.data)==null?void 0:L.content,TLY)};
_.t.computeIsReelItemStyleAvatarCircle=function(L){var Z;return((Z=_.n(L==null?void 0:L.content,_.Bb))==null?void 0:Z.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.t.computeIsLinkCardFullWidth=function(L,Z){var N;return((N=_.n(L==null?void 0:L.content,TLY))==null?void 0:N.useFullWidth)||Z<=2};
_.gd.Object.defineProperties(rA.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var L;return _.c("web_hover_effect_refactor")&&_.n((L=this.data)==null?void 0:L.content,_.Wxh)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.c("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var L;if(_.c("web_hover_effect_refactor")&&_.n((L=this.data)==null?void 0:L.content,_.Wxh))return!1;var Z;return!((Z=this.data)==null||!Z.onFocusEffect)||_.c("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 L;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.c("web_hover_effect_refactor")?(L=this.data)==null?void 0:L.onFocusEffect:void 0}}}});
rA.prototype.richGridHoverHighlightChanged=rA.prototype.richGridHoverHighlightChanged;rA.prototype.observerContainerType=rA.prototype.observerContainerType;rA.prototype.updateIsInFirstColumn=rA.prototype.updateIsInFirstColumn;rA.prototype.itemWidthChanged=rA.prototype.itemWidthChanged;_.r([_.y(_.CD),_.Q("design:type",Object)],rA.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],rA.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Lb),_.Q("design:type",Object)],rA.prototype,"ytdLockupBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],rA.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.Q("design:type",Boolean)],rA.prototype,"isPost",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.Q("design:type",Boolean)],rA.prototype,"containsLumierePosters",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.Q("design:type",Boolean)],rA.prototype,"isSlimMedia",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.Q("design:type",Boolean)],rA.prototype,"isGameCardShelf",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.Q("design:type",Boolean)],rA.prototype,"isMiniGameCardShelf",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.Q("design:type",Boolean)],rA.prototype,"isTeaserCard",void 0);_.r([_.Y({computed:"computeIsSelectableFeedbackItem(data)"}),_.Q("design:type",Boolean)],rA.prototype,"isSelectableFeedbackItem",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rA.prototype,"isShortsGrid",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],rA.prototype,"isSlimGrid",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rA.prototype,"isCompactGrid",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rA.prototype,"isShortsPanelGrid",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.Q("design:type",Boolean)],rA.prototype,"isExpandOnHoverCardShelf",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.Q("design:type",Boolean)],rA.prototype,"isLinkCardShelf",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.oi,value:3}),_.Q("design:type",Number)],rA.prototype,"itemsPerRow",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rA.prototype,"renderedFromRichGrid",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rA.prototype,"isInFirstColumn",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rA.prototype,"noGutterMargins",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rA.prototype,"noBottomMargin",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rA.prototype,"halfBottomMargin",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rA.prototype,"isInlineGroupItem",void 0);_.r([_.Y(),_.Q("design:type",Object)],rA.prototype,"insetMetadata",void 0);_.r([_.Y(),_.Q("design:type",Object)],rA.prototype,"noBottomMarginInAds",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],rA.prototype,"isShelfItem",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.Q("design:type",Boolean)],rA.prototype,"isReelItemStyleAvatarCircle",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.Q("design:type",Boolean)],rA.prototype,"isLinkCardFullWidth",void 0);_.r([_.Y(),_.Q("design:type",Object)],rA.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rA.prototype,"useCompactList",void 0);_.r([_.Y(),_.Q("design:type",String)],rA.prototype,"sizing",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],rA.prototype,"typographyBump",void 0);_.r([_.Y(),_.Q("design:type",Number)],rA.prototype,"itemWidth",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],rA.prototype,"isHomeShelf",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],rA.prototype,"isHomeGrid",void 0);
_.r([_.TX("yt-lockup-view-model"),_.Q("design:type",HTMLElement)],rA.prototype,"lockup",void 0);_.r([_.TX("ytd-rich-grid-media"),_.Q("design:type",HTMLElement)],rA.prototype,"richGridMedia",void 0);_.r([_.TX("ytd-ad-slot-renderer"),_.Q("design:type",HTMLElement)],rA.prototype,"adSlotRenderer",void 0);_.r([_.Y({computed:"computeContainerType(useCompactList)"}),_.Q("design:type",Object)],rA.prototype,"containerType",void 0);_.r([_.Y(),_.Q("design:type",Object)],rA.prototype,"thumbnailTargetWidth",void 0);
_.r([_.w("showYtInteractionOnRichItem"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],rA.prototype,"showYtInteractionOnRichGridMedia",null);_.r([_.w("isSelectableFeedbackItem","richGridHoverHighlight"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],rA.prototype,"showYtInteractionOnRichItem",null);_.r([_.w("typographyBump","isHomeGrid"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],rA.prototype,"richTypographyBump",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data","isShortsGrid","isCompactGrid"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],rA.prototype,"richGridHoverHighlight",null);_.r([_.w("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],rA.prototype,"shortsLockupViewModelAspectRatio",null);_.r([_.w("isInlineGroupItem"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],rA.prototype,"shortsLockupViewModelScrimStyle",null);
_.r([_.iA("itemWidth"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],rA.prototype,"itemWidthChanged",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],rA.prototype,"updateIsInFirstColumn",null);_.r([_.iA("containerType","sizing","typographyBump"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],rA.prototype,"observerContainerType",null);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rA.prototype,"isResponsiveGrid",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],rA.prototype,"lockupExperiments",null);_.r([_.iA("richGridHoverHighlight"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],rA.prototype,"richGridHoverHighlightChanged",null);_.r([_.P({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],rA);
_.mEY=_.rD()(rA,"ytd-rich-item-renderer",function(){if(wRQ===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);wRQ=L}L=wRQ;return L},{mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});var Bl0={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var VOP=_.s9(_.iB("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var qJt={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},ZiH={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},NT1={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var J1l;var Qp=function(){var L=_.e.apply(this,arguments)||this;L.useResponsiveGrid=!1;L.hidden=!1;L.isShowMoreHidden=!1;L.isShowLessHidden=!0;L.hasExpansionButton=!1;L.isInnerShelf=!1;L.allVideosCount=0;L.allPlaylistCount=0;L.haveSmartDownloadsCompleted=!1;L.restrictContentsOverflow=!1;L.firstShownIndex=0;L.horizontalOffset=0;L.atEnd=!0;L.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
L.nextClick=function(){var Z;(Z=L.data)!=null&&Z.contents&&(L.firstShownIndex+=L.currentElementsPerRow,L.updateHorizontalOffset(),L.updateHorizontalItemVisibility())};
L.previousClick=function(){var Z;(Z=L.data)!=null&&Z.contents&&(L.firstShownIndex-=L.currentElementsPerRow,L.updateHorizontalOffset(),L.updateHorizontalItemVisibility())};
return L};
_.f(Qp,_.e);_.t=Qp.prototype;
_.t.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:_.X7("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.t.attached=function(){this.requestElementsPerRow()};
_.t.refreshGridLayoutNew=function(){var L;if((L=this.data)!=null&&L.contents&&this.containerWidth){var Z;((Z=this.data.responsiveContainerConfiguration)==null?0:Z.responsiveSize)?(L=_.gns(this.data.responsiveContainerConfiguration,this.containerWidth),L=_.ym(Object.assign({},L,{standardUnitMinWidth:this.standardUnitMinWidth}))):L=_.ym({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=L.typographyBump;if(this.elementsPerRow!==
L.numItems||this.gutter!==L.gutter)this.elementsPerRow=L.numItems,this.gutter=L.gutter,this.itemWidth=L.itemWidth,_.Ld(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":L.gutter+"px"})}};
_.t.computeSizing=function(){if(!this.isLumiere){var L=_.hfF(this.data);return L?L:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.t.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.t.computeButton=function(L){var Z=_.n(L,_.xZ);L=Object.assign({},_.n(L,_.xZ));return Z?(L.text||(L.text={simpleText:L.tooltip}),L.style="STYLE_MONO_OUTLINE",L.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",L):Z};
_.t.onRowIndexChange=function(){var L=_.RH(),Z,N;((Z=this.data)==null?0:Z.trackingParams)&&((N=this.data)==null?void 0:N.rowIndex)!=null&&L&&_.ET(L,_.Mg(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.t.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var L,Z=((L=this.getRichItemRenderers()[0])==null?void 0:L.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*Z;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.t.requestElementsPerRow=function(){_.QT(this.hostElement,"yt-request-elements-per-row")};
_.t.onUpdateElementsPerRowAction=function(L,Z,N,S,u,T){if(this.containerWidth!==T&&(this.containerWidth=T,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&L&&Z&&N&&S&&u&&(this.elementsPerRow!==L||this.postsPerRow!==Z||this.slimItemsPerRow!==N||this.gameCardsPerRow!==S||this.miniGameCardsPerRow!==u)&&(this.elementsPerRow=L,this.postsPerRow=Z,this.slimItemsPerRow=N,this.gameCardsPerRow=S,this.miniGameCardsPerRow=u,this.updateItemVisibility())};
_.t.isExpandedChanged=function(){var L=this.getRichItemRenderers(),Z=this.isExpanded;L.forEach(function(N){N.halfBottomMargin=Z})};
_.t.isCollapsedChanged=function(){var L=this.getRichItemRenderers(),Z=this.isCollapsed;L.forEach(function(N){N.noBottomMargin=Z})};
_.t.getRichItemRenderers=function(){return _.QJ(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.t.updateItemVisibility=function(){var L=this;if(this.data&&this.data.contents){var Z=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(S,u){var T;((T=L.data)==null?0:T.isExpanded)?(S.hidden=u>Z-1,S.ytRendererBehavior.markDirty()):S.hidden=u>L.currentElementsPerRow-1||u>Z-1});
var N=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||N||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||N||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.t.setHeightToSingleRow=function(){var L=this.getRichItemRenderers(),Z=Number.parseInt(getComputedStyle(L[0]).marginBottom,10)||0;L=L.slice(0,this.currentElementsPerRow).reduce(function(N,S){return Math.max(N,S.getBoundingClientRect().height+Z)},0);
this.contents.style.height=L+"px"};
_.t.focusNextExpandedItem=function(){var L;((L=this.data)==null?0:L.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.t.focusItem=function(L,Z){var N=this.getRichItemRenderers();if(N[L]&&(L=N[L].querySelector(".focus-on-expand"))){if(Z){var S;(S=N[this.currentElementsPerRow])==null||S.scrollIntoView({behavior:"smooth",block:"center"})}L.focus({preventScroll:!0})}};
_.t.onDataChange=function(){var L=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var Z;if((Z=this.data)==null?0:Z.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.bN(this,function(){L.updateItemVisibility()});
var N;if((N=this.data)==null?0:N.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Ld(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),Z=0;Z<this.data.contents.length;Z++)N=_.n(this.data.contents[Z],_.sF)||{},N.colIndex=Z,N.rowIndex=this.data.rowIndex};
_.t.handleRerenderDownloadsData=function(){_.c("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())};
_.t.blockInlinePreview=function(L){var Z=this,N;return _.b(function(S){(N=Z.inlinePreviewIsEnabled)&&Z.ytdReduxBehavior.dispatch(_.Qat(!1));return S.return(new Promise(function(u){L(function(){N&&Z.ytdReduxBehavior.dispatch(_.Qat(!0));u()})}))})};
_.t.expandShelf=function(){var L=this;if(this.data){var Z,N=(Z=_.n(this.data.showMoreButton,_.xZ))==null?void 0:Z.trackingParams;N&&_.U$(_.tC(),N);this.set("data.isExpanded",!0);this.blockInlinePreview(function(S){L.setHeightToSingleRow();L.updateItemVisibility();L.contents.style.height=L.contents.scrollHeight+"px";_.ro.addJob(function(){L.contents.style.height="auto";L.focusNextExpandedItem();S()},2,200)})}};
_.t.collapseShelf=function(){var L=this;return _.b(function(Z){if(Z.nextAddress==1){if(!L.data)return Z.return();L.set("data.isExpanded",!1);return Z.yield(L.blockInlinePreview(function(N){L.contents.style.height=L.contents.scrollHeight+"px";L.setHeightToSingleRow();_.ro.addJob(function(){L.updateItemVisibility();L.contents.style.height="auto";N()},2,200)}),2)}_.QT(L.hostElement,"yt-rich-shelf-renderer-collapse",L.data.trackingParams);
L.focusItem(0,!1);_.w7(Z)})};
_.t.updateArrowButtonStatus=function(){this.getRichItemRenderers();var L,Z;var N=((L=this.data)==null?void 0:(Z=L.contents)==null?void 0:Z.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=N};
_.t.onChildElementFocus=function(L){this.hasChevronButtons&&(L=L.target.closest("#contents > *"),this.contents.contains(L)&&(L.offsetLeft<this.horizontalOffset?this.previousClick():L.offsetLeft+L.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.t.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.X7("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.t.updateHorizontalOffset=function(){var L=this.getRichItemRenderers(),Z,N;var S=((Z=this.data)==null?void 0:(N=Z.contents)==null?void 0:N.length)||0;var u;L=((u=L[0])==null?void 0:u.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>S?this.firstShownIndex=S-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*L};
_.t.isSlimMediaShelfRenderer=function(){var L,Z,N,S=(N=_.n((L=this.data)==null?void 0:(Z=L.contents)==null?void 0:Z[0],_.sF))==null?void 0:N.content;return!!(_.n(S,_.nvL)||_.n(S,ceV)||_.n(S,_.Bb)||_.n(S,ryO))};
_.t.isGameCardShelf=function(){var L,Z,N,S=(N=_.n((L=this.data)==null?void 0:(Z=L.contents)==null?void 0:Z[0],_.sF))==null?void 0:N.content;return!!_.n(S,ZTt)};
_.t.isMiniGameCardShelf=function(){var L,Z,N,S=(N=_.n((L=this.data)==null?void 0:(Z=L.contents)==null?void 0:Z[0],_.sF))==null?void 0:N.content;return!!_.n(S,FZN)||!!_.n(S,$fs)};
_.t.hasGameBoxArtAvatarStyle=function(){var L;return((L=this.data)==null?void 0:L.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.t.hasRoundedGameBoxArtAvatarStyle=function(){var L;return((L=this.data)==null?void 0:L.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.t.isShortsShelf=function(){var L,Z,N,S=(N=_.n((L=this.data)==null?void 0:(Z=L.contents)==null?void 0:Z[0],_.sF))==null?void 0:N.content;return!!_.n(S,_.Bb)||!!_.n(S,ryO)};
_.t.isPostShelfRenderer=function(){var L,Z,N,S=(N=_.n((L=this.data)==null?void 0:(Z=L.contents)==null?void 0:Z[0],_.sF))==null?void 0:N.content;return!(!_.n(S,zkt)&&!_.n(S,mXV))};
_.t.isLumiereShelf=function(){var L,Z,N=_.n((L=this.data)==null?void 0:(Z=L.contents)==null?void 0:Z[0],_.sF);return!!_.n(N==null?void 0:N.content,xXO)};
_.t.isLumiereShelfWithPosters=function(){var L,Z,N=_.n((L=this.data)==null?void 0:(Z=L.contents)==null?void 0:Z[0],_.sF),S;return((S=_.n(N==null?void 0:N.content,xXO))==null?void 0:S.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.t.isExpandOnHoverCardShelf=function(){var L,Z,N,S=(N=_.n((L=this.data)==null?void 0:(Z=L.contents)==null?void 0:Z[0],_.sF))==null?void 0:N.content;return!!_.n(S,B1L)};
_.t.computeHasFeaturedBadge=function(){var L,Z,N=_.n((L=this.data)==null?void 0:(Z=L.badges)==null?void 0:Z[0],_.DRl);return N?N.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.t.computeHasPaygatedFeaturedBadge=function(){var L,Z,N=_.n((L=this.data)==null?void 0:(Z=L.badges)==null?void 0:Z[0],_.DRl);return N?(N==null?void 0:N.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.t.computeHeaderHidden=function(){var L,Z,N,S,u,T;return!((L=this.data)==null?0:L.icon)&&!((Z=this.data)==null?0:Z.title)&&!((N=this.data)==null?0:N.subtitle)&&!((S=this.data)==null?0:S.thumbnail)&&!((u=this.data)==null?0:u.badges)&&!((T=this.data)==null?0:T.menu)};
_.t.showCtaButton=function(){var L;return!((L=this.data)==null||!L.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.t.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.t.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.t.computeForce16By9ThumbnailAspectRatio=function(){var L,Z;return((L=this.data)==null?void 0:(Z=L.responsiveContainerConfiguration)==null?void 0:Z.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.t.onSectionReactiveDismissal=function(L,Z,N){var S,u;var T=(S=this.data)==null?void 0:(u=S.targetingContext)==null?void 0:u.targetGroupId;this&&T&&Z.targetGroupId&&T.includes(Z.targetGroupId)?(S=this.rowIndex,L=S===void 0?!1:!(Z.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&S<=L)):L=!1;L&&(this.hidden=N)};
_.gd.Object.defineProperties(Qp.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null?0:L.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var L=this.elementsPerRow;this.isPostShelfRenderer()?L=this.postsPerRow:this.isSlimMediaShelfRenderer()?L=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?L=this.slimItemsPerRow-1:this.isGameCardShelf()?L=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(L=this.miniGameCardsPerRow);return L}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null?0:L.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!((L=this.data)==null||!L.previousButton)&&!((Z=this.data)==null||!Z.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 L;return((L=_.GR().resolve(_.mR).getCurrentPage())==null?void 0:L.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S;return!((L=this.data)==null?0:(Z=L.thumbnail)==null?0:(N=Z.accessibility)==null?0:(S=N.accessibilityData)==null?0:S.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Qp.prototype.onChildElementFocus=Qp.prototype.onChildElementFocus;Qp.prototype.handleRerenderDownloadsData=Qp.prototype.handleRerenderDownloadsData;Qp.prototype.onDataChange=Qp.prototype.onDataChange;Qp.prototype.isCollapsedChanged=Qp.prototype.isCollapsedChanged;Qp.prototype.isExpandedChanged=Qp.prototype.isExpandedChanged;Qp.prototype.onRowIndexChange=Qp.prototype.onRowIndexChange;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],Qp.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Qp.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Qp.prototype,"ytdReduxBehavior",void 0);
_.r([_.Y({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.Q("design:type",Object)],Qp.prototype,"useResponsiveGrid",void 0);_.r([_.Y(),_.Q("design:type",Object)],Qp.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Number)],Qp.prototype,"standardUnitMinWidth",void 0);_.r([_.Y({reflectToAttribute:!0,value:3}),_.Q("design:type",Number)],Qp.prototype,"elementsPerRow",void 0);_.r([_.Y({value:3}),_.Q("design:type",Number)],Qp.prototype,"postsPerRow",void 0);
_.r([_.Y({value:6}),_.Q("design:type",Number)],Qp.prototype,"slimItemsPerRow",void 0);_.r([_.Y({value:6}),_.Q("design:type",Number)],Qp.prototype,"gameCardsPerRow",void 0);_.r([_.Y({value:6}),_.Q("design:type",Number)],Qp.prototype,"miniGameCardsPerRow",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Qp.prototype,"hidden",void 0);_.r([_.Y(),_.Q("design:type",Object)],Qp.prototype,"isShowMoreHidden",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Qp.prototype,"isShowLessHidden",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Qp.prototype,"hasExpansionButton",void 0);_.r([_.w("data.isExpanded"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Qp.prototype,"isExpanded",null);_.r([_.w("data.isExpanded"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Qp.prototype,"isCollapsed",null);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Qp.prototype,"isInnerShelf",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.Q("design:type",Boolean)],Qp.prototype,"isShorts",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.Q("design:type",Boolean)],Qp.prototype,"isLumiere",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.Q("design:type",Boolean)],Qp.prototype,"hasBoxArtThumbnailStyle",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.Q("design:type",Boolean)],Qp.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.Q("design:type",Boolean)],Qp.prototype,"hasFeaturedBadge",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.Q("design:type",Boolean)],Qp.prototype,"hasPaygatedFeaturedBadge",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.Q("design:type",Boolean)],Qp.prototype,"isHeaderHidden",void 0);_.r([_.Y({selector:_.PM_}),_.Q("design:type",Object)],Qp.prototype,"allVideosCount",void 0);_.r([_.Y({selector:MOL}),_.Q("design:type",Object)],Qp.prototype,"allPlaylistCount",void 0);_.r([_.Y({selector:HKx}),_.Q("design:type",Object)],Qp.prototype,"haveSmartDownloadsCompleted",void 0);
_.r([_.Y({selectorArgs:["entitySelectorType"],selector:function(L,Z){if(_.c("kevlar_modern_downloads_page")&&Z&&Z!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var N=L.entities;switch(Z){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":Z=_.$Q(N);L=Sy(Z);var S=_.VE(Z);N=_.l2(N);N=_.Cq(iiH(S,N,Z.length));return{contents:L,subtitle:N};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return N=_.$Q(N),{contents:Sy(N)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return N=
_.DT(N),{contents:Sy(N)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return N=_.$N_(N),{contents:Sy(N)};default:_.Q7(new _.sr("Error: entitySelectorType defined but not matched in selector.",L,Z))}}}}),
_.Q("design:type",Object)],Qp.prototype,"entityDrivenRichShelfData",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Q("design:type",Boolean)],Qp.prototype,"hasTopCtaButton",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Q("design:type",Boolean)],Qp.prototype,"hasBottomCtaButton",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.Q("design:type",Boolean)],Qp.prototype,"force16By9ThumbnailAspectRatio",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Qp.prototype,"restrictContentsOverflow",void 0);_.r([_.Y({selector:_.aAG}),_.Q("design:type",Boolean)],Qp.prototype,"inlinePreviewIsEnabled",void 0);_.r([_.Y({computed:"computeSizing(data)"}),_.Q("design:type",String)],Qp.prototype,"sizing",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],Qp.prototype,"typographyBump",void 0);_.r([_.Y(),_.Q("design:type",Number)],Qp.prototype,"itemWidth",void 0);_.r([_.Y(),_.Q("design:type",Object)],Qp.prototype,"firstShownIndex",void 0);_.r([_.Y(),_.Q("design:type",Object)],Qp.prototype,"horizontalOffset",void 0);_.r([_.Y(),_.Q("design:type",Object)],Qp.prototype,"atEnd",void 0);_.r([_.TX("#contents"),_.Q("design:type",HTMLElement)],Qp.prototype,"contents",void 0);
_.r([_.iA("data.rowIndex"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qp.prototype,"onRowIndexChange",null);_.r([_.iA("isExpanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qp.prototype,"isExpandedChanged",null);_.r([_.iA("isCollapsed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qp.prototype,"isCollapsedChanged",null);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qp.prototype,"onDataChange",null);_.r([_.iA("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qp.prototype,"handleRerenderDownloadsData",null);_.r([_.SA("focusin"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Qp.prototype,"onChildElementFocus",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data","isHomePage"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Qp.prototype,"isTruncated",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Qp.prototype,"showBottomDivider",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Qp.prototype,"hasChevronButtons",null);
_.r([_.w("firstShownIndex"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Qp.prototype,"previousButtonOverride",null);_.r([_.w("atEnd"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Qp.prototype,"nextButtonOverride",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Qp.prototype,"isHomePage",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Qp.prototype,"thumbnailAriaHidden",null);
_.r([_.w("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Qp.prototype,"entitySelectorType",null);_.r([_.P({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Qp);
_.Cwt=_.rD()(Qp,"ytd-rich-shelf-renderer",function(){if(J1l===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);J1l=L}L=J1l;return L},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});var r15;_.CY(_.Fo,"yt-badge-view-model",{props:{data:_.LK,class:_.LK,workaroundShortsIsThumbnailBadge:_.LK,modern:_.LK}});_.CY(vzt,"yt-slimline-survey-view-model",{props:{data:_.LK}});var XA=function(){var L=_.e.apply(this,arguments)||this;L.tileLottieAnimationRef={};L.backgroundLottieAnimationRef={};L.isOnHoverBehaviorForLottieEnabled=!0;L.useBiggerShowcaseImage=_.c("enable_desktop_search_bigger_thumbs");L.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return L};
_.f(XA,_.e);_.t=XA.prototype;_.t.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.t.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.t.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var L=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);L!==this.hasTile&&this.set("hasTile",L);L=this.hasLogo(this.data)||!!this.data.badgeText;L!==this.hasMetadata&&this.set("hasMetadata",L);L=this.data.overflowButton?!1:L;L!==this.showLogoImage&&this.set("showLogoImage",L);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.t.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.t.currentColorChanged=function(){this.updateButtonPalette()};
_.t.computeBackgroundStyle=function(L){if(L&&this.data){var Z=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var N=_.QV((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);N&&Z.push('background-image: url("'+N+'");')}var S;((S=L.basicColorData)==null?void 0:S.backgroundColor)!==void 0&&Z.push("background-color: "+_.Rs(L.basicColorData.backgroundColor)+";");return Z.join("")}};
_.t.onDarkModeToggledAction=function(L){L!==this.isDarkTheme&&this.set("isDarkTheme",L)};
_.t.getCurrentLogo=function(L,Z){if(L)return Z?L.darkLogoImage:L.lightLogoImage};
_.t.getCurrentStaticTileImage=function(L,Z){if(this.hasStaticTile(L))return L.darkTileImage?Z?L.darkTileImage:L.tileImage:L.tileImage};
_.t.computeTitleStyle=function(L){if(this.data&&this.data.title&&L&&L.basicColorData&&L.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.vq(L.basicColorData.foregroundTitleColor)+";"};
_.t.computeSubtitleStyle=function(L){if(this.data&&this.data.subtitle&&L&&L.basicColorData&&L.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.vq(L.basicColorData.foregroundBodyColor)+";"};
_.t.computeSupplementalStyle=function(L){if(this.data&&this.data.supplementalText&&L&&L.supplementalTextColor!==void 0)return L=_.vq(L.supplementalTextColor),"color:"+L+";--yt-endpoint-color:"+L+";--yt-endpoint-hover-color:"+L+";--yt-endpoint-visited-color:"+L+";--yt-formatted-string-bold-font-weight:700;"};
_.t.computeDismissIconStyle=function(L){var Z,N;if((L==null?0:(Z=L.dismissButtonColorData)==null?0:Z.foregroundTitleColor)&&(L==null?0:(N=L.dismissButtonColorData)==null?0:N.backgroundColor))return"--yt-button-color:"+_.Rs(L.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Rs(L.dismissButtonColorData.backgroundColor)+";"};
_.t.computeOverflowIconStyle=function(L){var Z,N;if((L==null?0:(Z=L.dismissButtonColorData)==null?0:Z.foregroundTitleColor)&&(L==null?0:(N=L.dismissButtonColorData)==null?0:N.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Rs(L.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Rs(L.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Rs(L.dismissButtonColorData.foregroundTitleColor)+";"};
_.t.computeBannerStyle=function(L){return L?L.toLowerCase().replace(/_/g,"-"):""};
_.t.computeLocation=function(L){switch(L==null?void 0:L.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.t.shouldShowTileSection=function(L,Z,N){return!this.shouldExpandLogo(L,Z,N)&&Z};
_.t.shouldShowExpandedLogoSection=function(L,Z,N){return this.shouldExpandLogo(L,Z,N)&&L!==void 0&&this.hasLogo(L)};
_.t.shouldExpandLogo=function(L,Z,N){return L&&Z?!1:N>=2};
_.t.hasStaticTile=function(L){return!(L==null||!L.tileImage)};
_.t.hasTileLottie=function(L){var Z;return!!(L==null?0:(Z=L.tileLottie)==null?0:Z.url)};
_.t.hasLogo=function(L){return this.getCurrentLogo(L,this.isDarkTheme)!==void 0};
_.t.getLogoHeight=function(L){return this.logoWithPadding(L)?"26":"20"};
_.t.getExpandedLogoHeight=function(L){return this.logoWithPadding(L)?"31":"24"};
_.t.getLogoImageId=function(L){return this.logoWithPadding(L)?"logo-image-with-padding":"logo-image"};
_.t.getMaxTitleFontSize=function(L){return L.overrideTitleMaxFontSize?String(L.overrideTitleMaxFontSize):"36"};
_.t.hasBackgroundLottie=function(L){var Z;return!!(L==null?0:(Z=L.backgroundLottie)==null?0:Z.url)};
_.t.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var L,Z;(L=this.tileLottieAnimationRef)==null||(Z=L.lottieEl)==null||Z.play();var N,S;(N=this.backgroundLottieAnimationRef)==null||(S=N.lottieEl)==null||S.play()}};
_.t.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var L,Z;(L=this.tileLottieAnimationRef)==null||(Z=L.lottieEl)==null||Z.pause();var N,S;(N=this.backgroundLottieAnimationRef)==null||(S=N.lottieEl)==null||S.pause()}};
_.t.pauseLottie=function(){var L,Z;(L=this.tileLottieAnimationRef)==null||(Z=L.lottieEl)==null||Z.pause();var N,S;(N=this.backgroundLottieAnimationRef)==null||(S=N.lottieEl)==null||S.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.t.performPrimaryButtonAction=function(){var L,Z,N;((L=this.data)==null?0:(Z=L.primaryButton)==null?0:(N=Z.buttonRenderer)==null?0:N.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.t.requestElementsPerRow=function(){_.QT(this.hostElement,"yt-request-elements-per-row")};
_.t.updateButtonPalette=function(){if(this.data&&this.currentColorData){var L;((L=this.data.dismissButton)==null?0:L.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 Z;if((Z=this.data.primaryButton)==null?0:Z.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 N;if((N=this.data.secondaryButton)==
null?0:N.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 S;((S=this.data.primaryButton)==null?0:S.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var u;((u=this.data.secondaryButton)==null?0:u.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var T;((T=this.data.primaryButton)==null?0:T.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.t.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var L=this.getTileLottieDataBasedOnTheme(),Z,N;if(L.url!==((Z=this.tileLottiePlayerProps)==null?void 0:(N=Z.animationConfig)==null?void 0:N.path)){var S,u;(S=this.tileLottieAnimationRef)==null||(u=S.lottieEl)==null||u.destroy();var T;this.isOnHoverBehaviorForLottieEnabled=!((T=L.settings)==null?0:T.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=L.settings)==null?void 0:W.autoplay)!=null?V:!1,loop:this.getLottieLoopValue(L.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof L.url==="string"?this.tileLottiePlayerProps.animationConfig.path=L.url:this.tileLottiePlayerProps.animationConfig.animationData=L.url}}};
_.t.getOverflowButton=function(L){return _.n(L.overflowButton,BeM)};
_.t.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var L=this.getBackgroundLottieDataBasedOnTheme(),Z,N;if(L.url!==((Z=this.backgroundLottiePlayerProps)==null?void 0:(N=Z.animationConfig)==null?void 0:N.path)){var S,u;(S=this.backgroundLottieAnimationRef)==null||(u=S.lottieEl)==null||u.destroy();var T;this.isOnHoverBehaviorForLottieEnabled=!((T=L.settings)==null?0:T.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=L.settings)==null?void 0:W.autoplay)!=null?V:!1,loop:this.getLottieLoopValue(L.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof L.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=L.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
L.url}}};
_.t.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var L;((L=this.tileLottieAnimationRef)==null?void 0:L.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var Z;((Z=this.backgroundLottieAnimationRef)==null?void 0:Z.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.t.getTileLottieDataBasedOnTheme=function(){var L;if(this.isDarkTheme&&((L=this.data)==null?0:L.darkThemeTileLottie))return this.data.darkThemeTileLottie;var Z;return((Z=this.data)==null?0:Z.tileLottie)?this.data.tileLottie:{}};
_.t.getBackgroundLottieDataBasedOnTheme=function(){var L;if(this.isDarkTheme&&((L=this.data)==null?0:L.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var Z;return((Z=this.data)==null?0:Z.backgroundLottie)?this.data.backgroundLottie:{}};
_.t.onUpdateElementsPerRowAction=function(L){L&&this.elementsPerRow!==L&&(this.elementsPerRow=L)};
_.t.getLottieLoopValue=function(L){return L?L.loop!==void 0?L.loop:L.loopCount?L.loopCount-1:!0:!0};
_.t.logoWithPadding=function(L){var Z,N,S;return(L=(Z=this.getCurrentLogo(L,this.isDarkTheme))==null?void 0:(N=Z.thumbnails)==null?void 0:(S=N[0])==null?void 0:S.height)&&L%31===0?!0:!1};
XA.prototype.currentColorChanged=XA.prototype.currentColorChanged;XA.prototype.themeChanged=XA.prototype.themeChanged;XA.prototype.dataChanged=XA.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],XA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],XA.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],XA.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],XA.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],XA.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],XA.prototype,"primaryButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],XA.prototype,"secondaryButton",void 0);
_.r([_.Y({reflectToAttribute:!0,value:3}),_.Q("design:type",Number)],XA.prototype,"elementsPerRow",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],XA.prototype,"isDarkTheme",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],XA.prototype,"hasTile",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],XA.prototype,"hasMetadata",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],XA.prototype,"showLogoImage",void 0);_.r([_.Y(),_.Q("design:type",Object)],XA.prototype,"currentColorData",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.Q("design:type",String)],XA.prototype,"bannerStyle",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.Q("design:type",String)],XA.prototype,"location",void 0);
_.r([_.Y(),_.Q("design:type",Object)],XA.prototype,"tileLottiePlayerProps",void 0);_.r([_.Y(),_.Q("design:type",Object)],XA.prototype,"tileLottieAnimationRef",void 0);_.r([_.Y(),_.Q("design:type",Object)],XA.prototype,"backgroundLottiePlayerProps",void 0);_.r([_.Y(),_.Q("design:type",Object)],XA.prototype,"backgroundLottieAnimationRef",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],XA.prototype,"useBiggerShowcaseImage",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],XA.prototype,"isHideEnclosingAction",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],XA.prototype,"dataChanged",null);_.r([_.Vr("isDarkTheme"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],XA.prototype,"themeChanged",null);
_.r([_.Vr("currentColorData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],XA.prototype,"currentColorChanged",null);_.r([_.P({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],XA);
_.m(XA,"ytd-statement-banner-renderer",function(){if(r15!==void 0)return r15;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return r15=L},{mode:1});var QIM;var AP=function(){var L=_.e.apply(this,arguments)||this;L.isSearch=!1;L.hideShelfHeader=!1;L.engagementPanel=!1;L.disableMouseScroll=!0;L.useFloorScrolling=!0;return L};
_.f(AP,_.e);AP.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.iB("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.iB("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
AP.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
AP.prototype.onDataChanged=AP.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],AP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],AP.prototype,"isSearch",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],AP.prototype,"hideShelfHeader",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],AP.prototype,"engagementPanel",void 0);_.r([_.Y(),_.Q("design:type",Object)],AP.prototype,"disableMouseScroll",void 0);_.r([_.Y(),_.Q("design:type",Object)],AP.prototype,"useFloorScrolling",void 0);_.r([_.Y(),_.Q("design:type",Object)],AP.prototype,"data",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AP.prototype,"onDataChanged",null);
_.r([_.P({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],AP);
_.m(AP,"ytd-reel-shelf-renderer",function(){if(QIM!==void 0)return QIM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return QIM=L},{mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});var XRM;var A1N;A1N=_.sc(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.HUs=_.vy(A1N);var Bq5=_.p(function(L){var Z=L.data;L=L.useSmallFont;var N={},S={};return _.g("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.g(_.F,{cond:function(){return Z().favicon},
then:function(u){return _.g(_.ji,{data:u,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.g("div",{class:"ytChannelExternalLinkViewModelContainer"},_.g(_.qv,{text:function(){return Z().title},
className:_.qg("ytChannelExternalLinkViewModelTitle",(N.ytChannelExternalLinkViewModelTitleSmallFont=L,N)),ellipsisTruncate:!0,userInput:!0}),_.g(_.qv,{text:function(){return Z().link},
className:_.qg("ytChannelExternalLinkViewModelLink",(S.ytChannelExternalLinkViewModelLinkSmallFont=L,S)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Sc");
Bq5.idomCompat=!0;_.CY(Bq5,"yt-channel-external-link-view-model",{props:{data:_.LK,useSmallFont:_.LK}});_.l4("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Hi=function(){var L=_.e.apply(this,arguments)||this;L.revealButtonClass="button";L.businessEmailDisplayState="HIDE_SECTION";return L};
_.f(Hi,_.e);_.t=Hi.prototype;_.t.refit=function(){var L=this;_.Uk(function(){_.Ad(L.hostElement,"yt-refit-popups-action")});
_.bN(this,function(){_.Ad(L.hostElement,"yt-refit-popups-action")})};
_.t.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Uo(_.HUs),this.businessEmailDisplayState="CAPTCHA")};
_.t.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"};
_.t.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.t.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"}}}};
_.t.computeEmailHref=function(L){return"mailto:"+L};
_.t.computeSafeUrl=function(L){if(L)return _.mY(L)};
_.t.linkEndpoint=function(L){return _.n(L.onTap,_.nY)};
_.t.linkEndpointToHref=function(L){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(L))};
_.t.onYtServiceRequestCompleted=function(L){var Z;if((Z=L.detail.data)==null?0:Z.businessEmail)this.businessEmail=L.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var N;if((N=L.detail.data)==null?0:N.errorMessage)this.businessEmailErrorMessage=L.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.t.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var L=this.JSC$16381_captchaTextarea.value;if(L){L={recaptcha_response_token:L,channel_id:this.metadata.channelId};var Z=_.n(this.metadata.onBusinessEmailRevealClickCommand,_.nY);Z&&this.ytComponentBehavior.resolveCommand(Z,{form:L})}}};
_.t.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.gd.Object.defineProperties(Hi.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var L;return _.n((L=this.data)==null?void 0:L.metadata,NSQ)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.n(this.metadata.businessEmailRevealButton,_.NU)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var L=new URL(this.metadata.canonicalChannelUrl);return L.host+L.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 _.n(this.metadata.learnMoreOnTap,_.nY)}}});
Hi.prototype.onYtServiceRequestCompleted=Hi.prototype.onYtServiceRequestCompleted;Hi.prototype.businessEmailMetadataChanged=Hi.prototype.businessEmailMetadataChanged;Hi.prototype.refit=Hi.prototype.refit;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Hi.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Hi.prototype,"ytRendererstamperBehavior",void 0);_.r([_.TX("#g-recaptcha-response"),_.Q("design:type",HTMLTextAreaElement)],Hi.prototype,"JSC$16381_captchaTextarea",void 0);_.r([_.Y(),_.Q("design:type",Object)],Hi.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Hi.prototype,"revealButtonClass",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Hi.prototype,"metadata",null);
_.r([_.w("metadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Hi.prototype,"revealButton",null);_.r([_.w("metadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Hi.prototype,"channelDisplayUrl",null);_.r([_.Vr("metadata"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Hi.prototype,"refit",null);_.r([_.w("metadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Hi.prototype,"formattedDescription",null);
_.r([_.w("metadata","learnMoreCommand"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Hi.prototype,"shouldRendereVerifiedPhoneStatus",null);_.r([_.w("metadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Hi.prototype,"learnMoreCommand",null);_.r([_.Y(),_.Q("design:type",String)],Hi.prototype,"businessEmailDisplayState",void 0);_.r([_.Y(),_.Q("design:type",String)],Hi.prototype,"businessEmail",void 0);
_.r([_.Y(),_.Q("design:type",String)],Hi.prototype,"businessEmailErrorMessage",void 0);_.r([_.Vr("metadata"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Hi.prototype,"businessEmailMetadataChanged",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Hi.prototype,"onYtServiceRequestCompleted",null);_.r([_.P({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Hi);
_.m(Hi,"ytd-about-channel-renderer",function(){if(XRM!==void 0)return XRM;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden$="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden$="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden$="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return XRM=L},{mode:1});var xEY;var Bi=function(){return _.e.apply(this,arguments)||this};
_.f(Bi,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Bi.prototype,"data",void 0);_.r([_.P({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Bi);
_.m(Bi,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(xEY!==void 0)return xEY;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return xEY=L},{mode:1});var qpO;var xG=function(){return _.e.apply(this,arguments)||this};
_.f(xG,_.e);xG.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],xG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],xG.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],xG.prototype,"aligment",void 0);_.r([_.P({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],xG);
_.m(xG,"ytd-channel-list-sub-menu-renderer",function(){if(qpO!==void 0)return qpO;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return qpO=
L},{mode:1});var LJQ;var qw=function(){return _.e.apply(this,arguments)||this};
_.f(qw,_.e);qw.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}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],qw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],qw.prototype,"data",void 0);_.r([_.P({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],qw);
_.m(qw,"ytd-channel-sub-menu-renderer",function(){if(LJQ!==void 0)return LJQ;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return LJQ=L},{mode:1});var Z4t;var NsV;var L$=function(){var L=_.e.apply(this,arguments)||this;L.isCompact=!1;return L};
_.f(L$,_.e);_.gd.Object.defineProperties(L$.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((Z=_.n((L=this.data)==null?void 0:L.endpoint,_.Lo))==null?void 0:Z.target)==="TARGET_NEW_WINDOW"}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],L$.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],L$.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],L$.prototype,"isCompact",void 0);_.r([_.w("isCompact"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],L$.prototype,"thumbnailWidth",null);
_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],L$.prototype,"openNewWindow",null);_.r([_.P({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],L$);
_.m(L$,"ytd-media-lockup-renderer",function(){if(NsV!==void 0)return NsV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return NsV=L},{mode:1});var SzQ;var ZO=function(){return _.e.apply(this,arguments)||this};
_.f(ZO,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],ZO.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ZO.prototype,"data",void 0);_.r([_.P({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],ZO);
_.m(ZO,"ytd-structured-description-channel-lockup-renderer",function(){if(SzQ!==void 0)return SzQ;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return SzQ=L},{mode:1});var i4t;var Nt=function(){var L=_.e.apply(this,arguments)||this;L.isCompact=!1;L.collectionsStackColor=_.c("modernize_structured_description_playlist_lockups_v2");return L};
_.f(Nt,_.e);Nt.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",params:{isCompact:!0}},thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer"}},initialRenderPriority:_.c("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.gd.Object.defineProperties(Nt.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S,u,T;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(L=this.data)==null?void 0:(Z=L.thumbnail)==null?void 0:Z.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(N=this.data)==null?void 0:(S=N.thumbnail)==null?void 0:S.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(u=this.data)==null?void 0:(T=u.thumbnail)==null?
void 0:T.vibrantColorPalette:void 0}}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Nt.prototype,"componentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Nt.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Nt.prototype,"showSidePanelThumbnailOverlay",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Nt.prototype,"isCompact",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Nt.prototype,"collectionsStackColor",void 0);_.r([_.w("data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Nt.prototype,"twoLineTitle",null);_.r([_.w("data","collectionsStackColor"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Nt.prototype,"collectionStack",null);
_.r([_.P({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Nt);
_.m(Nt,"ytd-structured-description-playlist-lockup-renderer",function(){if(i4t!==void 0)return i4t;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return i4t=L},{mode:1});var uuV;var S4=function(){return _.e.apply(this,arguments)||this};
_.f(S4,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],S4.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],S4.prototype,"data",void 0);_.r([_.P({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],S4);
_.m(S4,"ytd-structured-description-video-lockup-renderer",function(){if(uuV!==void 0)return uuV;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return uuV=L},{mode:2});var iV=function(){return _.e.apply(this,arguments)||this};
_.f(iV,_.e);
iV.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}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],iV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],iV.prototype,"data",void 0);_.r([_.P({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],iV);
_.m(iV,"ytd-compact-infocard-renderer",function(){if(Z4t!==void 0)return Z4t;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Z4t=L},{mode:1});var Ts0;var uV=function(){return _.e.apply(this,arguments)||this};
_.f(uV,_.e);uV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.gd.Object.defineProperties(uV.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],uV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],uV.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],uV.prototype,"ytdReduxBehavior",void 0);_.r([_.Y({selector:_.KV}),_.Q("design:type",Object)],uV.prototype,"isGridViewEnabled",void 0);
_.r([_.w("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],uV.prototype,"watchFeedBigThumbs",null);_.r([_.w("isGridViewEnabled","data"),_.Y({reflectToAttribute:!0,value:"168"}),_.Q("design:type",String),_.Q("design:paramtypes",[])],uV.prototype,"thumbnailWidth",null);_.r([_.w("isGridViewEnabled","data"),_.Y({reflectToAttribute:!0,value:"94"}),_.Q("design:type",String),_.Q("design:paramtypes",[])],uV.prototype,"customThumbnailSize",null);
_.r([_.Y(),_.Q("design:type",Object)],uV.prototype,"data",void 0);_.r([_.P({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],uV);
_.m(uV,"ytd-compact-playlist-renderer",function(){if(Ts0!==void 0)return Ts0;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Ts0=L},{mode:1});var t1t;var TN=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");L.roundedContainer=!0;L.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return L};
_.f(TN,_.e);_.t=TN.prototype;_.t.attached=function(){this.requestElementsPerRow()};
_.t.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"}}}};
_.t.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.t.computeViewStyle=function(L){return L.style?L.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.t.onUpdateElementsPerRowAction=function(L){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&L===1};
_.t.requestElementsPerRow=function(){_.QT(this.hostElement,"yt-request-elements-per-row")};
TN.prototype.dataChanged=TN.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],TN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],TN.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],TN.prototype,"actionHandlerBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],TN.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],TN.prototype,"hideThumbnail",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.Q("design:type",String)],TN.prototype,"viewStyle",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],TN.prototype,"darkerDarkTheme",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],TN.prototype,"roundedContainer",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],TN.prototype,"dataChanged",null);_.r([_.P({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],TN);
_.m(TN,"ytd-compact-promoted-item-renderer",function(){if(t1t!==void 0)return t1t;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return t1t=L},{mode:1});var O4O;var t8=function(){return _.e.apply(this,arguments)||this};
_.f(t8,_.e);t8.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
t8.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
t8.prototype.onYtNavigate=function(L,Z){var N=this;if(Z.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",Z)){var S=this.get("watchEndpoint.videoId",Z.endpoint),u=_.Ad(this.hostElement,"yt-get-current-video-id-action")[0];_.c("kevlar_mix_handle_first_endpoint_different")&&S&&u&&S!==u||(L.stopPropagation(),_.r9().getPlayerPromise().then(function(T){if(T.getPlayerState()===0&&N.data.secondaryNavigationEndpoint)var W=N.data.secondaryNavigationEndpoint;else{W=
Object.assign({},Z.endpoint);var V=_.n(W.commandMetadata,_.Nj);V&&(T=Math.floor(T.getCurrentTime()),V.url=_.t3(V.url,{t:T}),!_.c("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(V=_.n(W,_.so)))&&(V.startTimeSeconds=T)}_.QT(N.hostElement,"yt-navigate",{endpoint:W})}))}};
_.gd.Object.defineProperties(t8.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S,u,T;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(L=this.data)==null?void 0:(Z=L.thumbnail)==null?void 0:Z.sampledThumbnailColor,vibrantColorPalette:(N=this.data)==null?void 0:(S=N.thumbnail)==null?void 0:S.vibrantColorPalette,darkColorPalette:(u=this.data)==null?void 0:(T=u.thumbnail)==null?void 0:T.darkColorPalette,experimentEnabled:!0}}}});
t8.prototype.onYtNavigate=t8.prototype.onYtNavigate;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.o3.YtEndpointBehavior),_.Q("design:type",Object)],t8.prototype,"ytEndpointBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],t8.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],t8.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.y(_.Lb),_.Q("design:type",Object)],t8.prototype,"ytdLockupBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],t8.prototype,"ytdReduxBehavior",void 0);_.r([_.Y({selector:_.KV}),_.Q("design:type",Object)],t8.prototype,"isGridViewEnabled",void 0);_.r([_.w("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],t8.prototype,"watchFeedBigThumbs",null);
_.r([_.w("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.Q("design:type",String),_.Q("design:paramtypes",[])],t8.prototype,"thumbnailWidth",null);_.r([_.Y(),_.Q("design:type",Object)],t8.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],t8.prototype,"collectionStack",null);_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],t8.prototype,"onYtNavigate",null);
_.r([_.P({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],t8);
_.m(t8,"ytd-compact-radio-renderer",function(){if(O4O!==void 0)return O4O;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return O4O=L},{mode:1});var WJM;var OE=function(){return _.e.apply(this,arguments)||this};
_.f(OE,_.e);OE.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
OE.prototype.computeRendererStyle=function(L){return L.style?L.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.r([_.Y(),_.Q("design:type",Object)],OE.prototype,"data",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],OE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],OE.prototype,"rendererBehavior",void 0);_.r([_.Y({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Q("design:type",String)],OE.prototype,"rendererStyle",void 0);_.r([_.P({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],OE);
_.m(OE,"ytd-compact-text-promo-renderer",function(){if(WJM!==void 0)return WJM;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return WJM=L},{mode:1});var V1t;var We=function(){var L=_.e.apply(this,arguments)||this;L.isShortsStyle=!1;return L};
_.f(We,_.e);_.t=We.prototype;_.t.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"}}}};
_.t.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.QT(this.hostElement,"yt-disable-lockup-interaction"):_.QT(this.hostElement,"yt-enable-lockup-interaction"))};
_.t.isMetaBlockEmpty=function(L){return!L||!L.longBylineText&&!L.shortBylineText&&!L.shortViewCountText&&!L.viewCountText};
_.t.computeHasOneLineTitle=function(L){return this.forceOneLineTitle||!(L==null||!L.buttons)};
_.t.computeDisableInteraction=function(){var L;return!((L=this.data)==null?0:L.navigationEndpoint)};
_.t.hasSingularTopStandaloneBadge=function(){var L;return!((L=this.data)==null||!L.topStandaloneBadge)};
_.gd.Object.defineProperties(We.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("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 L;return this.hasSingularTopStandaloneBadge()?[(L=this.data)==null?void 0:L.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var L;return this.shouldShowTopBadges?((L=this.data)==null?void 0:L.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
We.prototype.disableInteractionChanged=We.prototype.disableInteractionChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],We.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.Lb),_.Q("design:type",Object)],We.prototype,"ytdLockupBehavior",void 0);
_.r([_.y(_.CD),_.Q("design:type",Object)],We.prototype,"ytdReduxBehavior",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.Q("design:type",Boolean)],We.prototype,"metaBlockEmpty",void 0);_.r([_.Y({selector:_.KV}),_.Q("design:type",Object)],We.prototype,"isGridViewEnabled",void 0);_.r([_.w("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],We.prototype,"watchFeedBigThumbs",null);
_.r([_.w("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.Q("design:type",String),_.Q("design:paramtypes",[])],We.prototype,"thumbnailWidth",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],We.prototype,"isShortsStyle",void 0);_.r([_.Y(),_.Q("design:type",Object)],We.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.Q("design:type",Boolean)],We.prototype,"hasOneLineTitle",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],We.prototype,"hideThumbnail",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],We.prototype,"forceOneLineTitle",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.Q("design:type",Boolean)],We.prototype,"disableInteraction",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],We.prototype,"musicMetadataVideoLockup",void 0);
_.r([_.iA("disableInteraction"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],We.prototype,"disableInteractionChanged",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],We.prototype,"shouldShowTopBadges",null);_.r([_.w("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],We.prototype,"topBadges",null);
_.r([_.w("shouldShowTopBadges","data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],We.prototype,"inlineMetadataBadges",null);_.r([_.w("shouldShowTopBadges"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],We.prototype,"shouldShowBadgesBelowMetadata",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],We.prototype,"compactTitleClass",null);_.r([_.P({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],We);
_.m(We,"ytd-compact-video-renderer",function(){if(V1t!==void 0)return V1t;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return V1t=L},{mode:_.Qr("kevlar_poly_si_batch_j067")?1:2});var b40;_.l4("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var VO=function(){return _.e.apply(this,arguments)||this};
_.f(VO,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],VO.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],VO.prototype,"data",void 0);_.r([_.P({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],VO);
_.m(VO,"ytd-counterfactual-renderer",function(){if(b40!==void 0)return b40;var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return b40=L},{mode:1});var M1V;var bV=function(){var L=_.e.apply(this,arguments)||this;L.hidden=!1;return L};
_.f(bV,_.e);bV.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.GR().resolve(_.$s).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
bV.prototype.computeHidden=function(L){return!!L};
_.gd.Object.defineProperties(bV.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}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],bV.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],bV.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.Q("design:type",Object)],bV.prototype,"hidden",void 0);_.r([_.w("data.label"),_.Q("design:type",String),_.Q("design:paramtypes",[])],bV.prototype,"label",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],bV.prototype,"value",null);
_.r([_.P({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],bV);
_.m(bV,"ytd-dropdown-item-renderer",function(){if(M1V!==void 0)return M1V;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return M1V=L},{mode:1});var gfl;var GYN;var Mt=function(){return _.e.apply(this,arguments)||this};
_.f(Mt,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Mt.prototype,"data",void 0);_.r([_.Y({computed:"getSimpleString(data.label)"}),_.Q("design:type",String)],Mt.prototype,"label",void 0);_.r([_.P({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Mt);
_.m(Mt,"ytd-navigation-dropdown-item-renderer",function(){if(GYN!==void 0)return GYN;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return GYN=L},{mode:1});var gU=function(){var L=_.e.apply(this,arguments)||this;L.disabled=!1;L.value="";L.noLabelFloat=!1;L.noUnderline=!1;L.usePrimaryColor=!1;L.hasBackground=!1;L.verticalAlign="top";L.autosize=!1;L.minAutosizeWidth=100;L.autosizeFont="14px Roboto";return L};
_.f(gU,_.e);_.t=gU.prototype;_.t.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"}}}};
_.t.open=function(){this.inputEl.open()};
_.t.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.t.dataChanged=function(){this.reset()};
_.t.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("value-changed",this.value))};
_.t.stopPropagation=function(L){L.stopPropagation()};
_.t.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var L=this.canvas.getContext("2d");L&&(L.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(L.measureText(this.inputEl.value).width)+24)+"px")}};
_.t.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var L=0,Z=this.data.entries.length;L<Z;L++){var N=this.data.entries[L],S;for(S in N)if(N.hasOwnProperty(S)){var u=N[S];if("isSelected"in u&&u.isSelected)return"stringValue"in u?u.stringValue||"":"int32Value"in u?u.int32Value||0:0}}return null};
_.t.updateValueFromBinding=function(L){this.value=L.detail.value};
_.gd.Object.defineProperties(gU.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 L=0,Z=this.data.entries.length;L<Z;L++){var N=this.data.entries[L],S;for(S in N)if(N.hasOwnProperty(S)){var u=N[S];if("isSelected"in u&&u.isSelected&&"label"in u)return this.ytRendererBehavior.getSimpleString(u.label)}}return null}}});
gU.prototype.autoSizeLabel=gU.prototype.autoSizeLabel;gU.prototype.stopPropagation=gU.prototype.stopPropagation;gU.prototype.valueChangedForBinding=gU.prototype.valueChangedForBinding;gU.prototype.dataChanged=gU.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],gU.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],gU.prototype,"ytRendererStamperBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],gU.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],gU.prototype,"disabled",void 0);_.r([_.Y(),_.Q("design:type",Object)],gU.prototype,"value",void 0);_.r([_.Y(),_.Q("design:type",Object)],gU.prototype,"noLabelFloat",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],gU.prototype,"noUnderline",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],gU.prototype,"theme",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],gU.prototype,"usePrimaryColor",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],gU.prototype,"hasBackground",void 0);_.r([_.Y(),_.Q("design:type",Object)],gU.prototype,"verticalAlign",void 0);_.r([_.Y(),_.Q("design:type",Object)],gU.prototype,"autosize",void 0);_.r([_.Y(),_.Q("design:type",Object)],gU.prototype,"minAutosizeWidth",void 0);_.r([_.Y(),_.Q("design:type",Object)],gU.prototype,"autosizeFont",void 0);
_.r([_.TX("#entries"),_.Q("design:type",Object)],gU.prototype,"entries",void 0);_.r([_.TX("#input"),_.Q("design:type",Object)],gU.prototype,"inputEl",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gU.prototype,"dataChanged",null);_.r([_.Vr("value"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gU.prototype,"valueChangedForBinding",null);
_.r([_.SA("iron-overlay-opened"),_.SA("iron-overlay-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],gU.prototype,"stopPropagation",null);_.r([_.SA("iron-select"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gU.prototype,"autoSizeLabel",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],gU.prototype,"label",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],gU);
_.m(gU,"ytd-dropdown-renderer",function(){if(gfl!==void 0)return gfl;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return gfl=L},{mode:1});var FJY;var GN=function(){var L=_.e.apply(this,arguments)||this;L.isConstrainedList=!1;return L};
_.f(GN,_.e);GN.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"}}}};
GN.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
GN.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
GN.prototype.computeViewAllHidden=function(L,Z){return L||!Z.viewAllEndpoint};
GN.prototype.fillRestIfNoShowMore=GN.prototype.fillRestIfNoShowMore;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],GN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.bz.YtLazyListBehavior),_.Q("design:type",Object)],GN.prototype,"ytLazyListBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],GN.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],GN.prototype,"isConstrainedList",void 0);_.r([_.Vr("data","canShowMore"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],GN.prototype,"fillRestIfNoShowMore",null);_.r([_.P({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],GN);
_.m(GN,"ytd-expanded-shelf-contents-renderer",function(){if(FJY!==void 0)return FJY;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return FJY=L},{mode:_.Qr("kevlar_poly_si_batch_j025")?1:2});var $it;var Fs=function(){return _.e.apply(this,arguments)||this};
_.f(Fs,_.e);Fs.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}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Fs.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Fs.prototype,"data",void 0);_.r([_.P({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Fs);
_.m(Fs,"ytd-feed-channel-filter-header-renderer",function(){if($it!==void 0)return $it;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return $it=L},{mode:1});var Dit;var lrL;var vf0;var $7=function(){return _.e.apply(this,arguments)||this};
_.f($7,_.e);_.t=$7.prototype;_.t.onClick=function(L){var Z,N=(Z=this.data)==null?void 0:Z.sectionEndpoint;!_.PQ(_.sx(L),this.hostElement,["A".toString()])&&N&&_.QT(this.hostElement,"yt-navigate",{endpoint:N})};
_.t.computeHasSectionEndpoint=function(L){return(L==null?void 0:L.sectionEndpoint)!==void 0};
_.t.computeShowHeaderAsLink=function(L){return(L==null?void 0:L.header)!==void 0&&(L==null?void 0:L.sectionEndpoint)!==void 0};
_.t.computeShowSubheaderAsLink=function(L){return(L==null?void 0:L.subheader)!==void 0&&(L==null?void 0:L.sectionEndpoint)!==void 0&&(L==null?void 0:L.header)===void 0};
_.t.getHeaderAsLinkClass=function(L){var Z=[],N;(L==null?0:(N=L.headerIcon)==null?0:N.iconType)&&Z.push("header-link-active");return Z.join(" ")};
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],$7.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],$7.prototype,"data",void 0);
_.r([_.Y({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],$7.prototype,"hasSectionEndpoint",void 0);_.r([_.Y({computed:"computeShowHeaderAsLink(data)"}),_.Q("design:type",Boolean)],$7.prototype,"showHeaderAsLink",void 0);_.r([_.Y({computed:"computeShowSubheaderAsLink(data)"}),_.Q("design:type",Boolean)],$7.prototype,"showSubheaderAsLink",void 0);_.r([_.P({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],$7);
_.m($7,"ytd-medical-panel-section-renderer",function(){if(vf0!==void 0)return vf0;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return vf0=L},{mode:1});var DO=function(){var L=_.e.apply(this,arguments)||this;L.isExpanded=!1;L.roundedContainer=!0;L.skipRoundingTop=!1;L.toggleExpandableSection=function(){L.isExpanded=!L.isExpanded};
return L};
_.f(DO,_.e);
DO.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]]"}}}}}};
DO.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
DO.prototype.dataChanged=DO.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],DO.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],DO.prototype,"isExpanded",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DO.prototype,"roundedContainer",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DO.prototype,"skipRoundingTop",void 0);_.r([_.Y(),_.Q("design:type",Object)],DO.prototype,"toggleExpandableSection",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DO.prototype,"dataChanged",null);_.r([_.P({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],DO);
_.m(DO,"ytd-medical-panel-content-renderer",function(){if(lrL!==void 0)return lrL;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return lrL=L},{mode:1});_.l4("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var lV=function(){var L=_.e.apply(this,arguments)||this;L.roundedContainer=!0;L.extractOverlay=!1;L.amsterdamEnabled=_.c("enable_desktop_amsterdam_info_panels");L.hasTitle=!1;L.linkIcon="OPEN_IN_NEW";L.isDismissed=!1;return L};
_.f(lV,_.e);lV.prototype.onOverlayConditionsChange=function(){var L=_.QJ(this.hostElement).querySelector("ytd-info-panel-content-renderer");L&&(L.set("extractOverlay",this.extractOverlay),L.set("roundedContainer",this.roundedContainer))};
lV.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"}}}};
lV.prototype.computeHasTitle=function(L){return!(L==null||!L.title)};
lV.prototype.onClick=function(L){var Z,N=(Z=this.data)==null?void 0:Z.headerEndpoint;!_.PQ(_.sx(L),this.hostElement,["BUTTON".toString()])&&N&&this.ytComponentBehavior.resolveCommand(N)};
_.gd.Object.defineProperties(lV.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 L;return((L=this.data)==null?void 0:L.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?void 0:L.disableBottomDivider)||!((Z=this.data)==null?0:Z.title)}}});
lV.prototype.onOverlayConditionsChange=lV.prototype.onOverlayConditionsChange;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],lV.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],lV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],lV.prototype,"ytdReduxBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],lV.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],lV.prototype,"roundedContainer",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],lV.prototype,"extractOverlay",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],lV.prototype,"amsterdamEnabled",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Q("design:type",Object)],lV.prototype,"hasTitle",void 0);
_.r([_.Y({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.w("data.background"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],lV.prototype,"background",null);_.r([_.Y({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.w("data.titleStyle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],lV.prototype,"titleStyle",null);
_.r([_.Y({type:_.c("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.w("data.titleStyle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],lV.prototype,"showLinkIcon",null);_.r([_.Y(),_.Q("design:type",String)],lV.prototype,"linkIcon",void 0);_.r([_.Y({type:_.c("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],lV.prototype,"hideDivider",null);
_.r([_.Y({selectorArgs:["data.dismissStateEntityKey"],selector:function(L,Z){L=_.Lk(L.entities,"dismissState",Z);return(L==null?void 0:L.isDismissed)||(L==null?void 0:L.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(L==null?void 0:L.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.Q("design:type",Object)],lV.prototype,"isDismissed",void 0);_.r([_.iA("roundedContainer","extractOverlay"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lV.prototype,"onOverlayConditionsChange",null);_.r([_.P({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],lV);
_.m(lV,"ytd-info-panel-container-renderer",function(){if(Dit!==void 0)return Dit;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Dit=L},{mode:1});var ofM;_.l4("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var ve=function(){return _.e.apply(this,arguments)||this};
_.f(ve,_.e);ve.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ve.prototype.computeStyle=function(L){return L?L:""};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ve.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ve.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.Q("design:type",String)],ve.prototype,"titleStyle",void 0);
_.r([_.P({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],ve);
_.rD()(ve,"ytd-item-section-header-renderer",function(){if(ofM===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);ofM=L}L=ofM;return L},{allowedProps:["data"],
mode:1});var RDq;var cHq,nft=function(){return cHq!==void 0?cHq:cHq=document.createElement("template")};
document.head.appendChild(nft().content);var KJt;_.op=new _.iY("VOTING_ANIMATION_CONTROLLER_TOKEN");var kYq=_.p(function(L){var Z=L.data;var N=_.t2("div"),S=_.t2("div");L=_.O(_.nh("VOTE_STATUS_NONE",void 0,"YPH5mf"));var u=L.next().value,T=L.next().value,W=_.OS(G8w,function(){var v;return(v=Z())==null?void 0:v.entityKey}),V=_.c("web_enable_voting_animation")||_.c("enable_music_web_cairo_voting_animation");
_.m0(function(){var v;((v=Z().initialState)==null?0:v.status)&&T(Z().initialState.status)});
var M=function(){var v,R,K=(R=(v=Z().initialState)==null?void 0:v.votes)!=null?R:0,U;v=(U=Z().initialState)==null?void 0:U.status;return v==="VOTE_STATUS_UPVOTED"?K-1:v==="VOTE_STATUS_DOWNVOTED"?K+1:K},G=function(){return u()==="VOTE_STATUS_UPVOTED"?M()+1:u()==="VOTE_STATUS_DOWNVOTED"?M()-1:M()},D=function(v){var R=v?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
T(R);var K=G(),U=_.GR().resolve(_.gv(_.op)),d=W();d&&(v&&(d==null?0:d.upvoteDefaultButtonOnTap)?_.w$(d.upvoteDefaultButtonOnTap,{form:{element:N.value},disableClickTracking:!0}):(d==null?0:d.upvoteToggledButtonOnTap)&&_.w$(d.upvoteToggledButtonOnTap,{form:{element:N.value},disableClickTracking:!0}));var h;v=(h=d==null?void 0:d.enableOptimisticReordering)!=null?h:Z().enableOptimisticReordering;V&&U&&Z().itemId&&v&&frO(U,Z().itemId,K,R)},l=function(v){var R=v?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
T(R);var K=G(),U=_.GR().resolve(_.gv(_.op)),d=W();d&&(v&&(d==null?0:d.downvoteDefaultButtonOnTap)?_.w$(d.downvoteDefaultButtonOnTap,{form:{element:S.value},disableClickTracking:!0}):(d==null?0:d.downvoteToggledButtonOnTap)&&_.w$(d.downvoteToggledButtonOnTap,{form:{element:S.value},disableClickTracking:!0}));var h;v=(h=d==null?void 0:d.enableOptimisticReordering)!=null?h:Z().enableOptimisticReordering;V&&U&&Z().itemId&&v&&frO(U,Z().itemId,K,R)};
L={};L=_.qg("ytVotingViewModelVoteCount",(L.ytVotingViewModelVoteCountDisabled=function(){return Z().isDisabled},L));
return _.g("voting-view-model",{class:"ytVotingViewModelHost"},_.g("div",{el:N},_.g(_.bj,{data:function(){var v=_.n(Z().upvoteButton,_.iD);return{toggleButtonViewModel:Object.assign({},v,{isToggled:u()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(v){return _.g(_.sj,{data:v.data,
onToggle:D})}})),_.g("div",{class:L},function(){var v,R,K;
return u()==="VOTE_STATUS_UPVOTED"?(v=Z().initialState)==null?void 0:v.compactVotesUpvoted:u()==="VOTE_STATUS_DOWNVOTED"?(R=Z().initialState)==null?void 0:R.compactVotesDownvoted:(K=Z().initialState)==null?void 0:K.compactVotes}),_.g("div",{el:S},_.g(_.bj,{data:function(){var v=_.n(Z().downvoteButton,_.iD);
return{toggleButtonViewModel:Object.assign({},v,{isToggled:u()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(v){return _.g(_.sj,{data:v.data,
onToggle:l})}})))},"Tc");_.CY(_.p(function(L){var Z=L.data;return _.g("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.g("div",{class:_.qg("ytEngagementBarViewModelEngagementBarWrapper",L.className)},_.g(_.bj,{data:function(){return Z().actions}},{votingViewModel:kYq})))},"Uc"),"engagement-bar-view-model",{props:{data:_.LK,
className:_.LK}});var Rp=function(){var L=_.e.apply(this,arguments)||this;L.playlistVotingAnimationEnabled=_.c("web_enable_voting_animation");L.downloadProgress=0;L.transferState="TRANSFER_STATE_UNKNOWN";L.downloadState="DOWNLOAD_STATE_UNKNOWN";L.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";L.offlineVideoPolicyExpirationTimestamp=0;return L};
_.f(Rp,_.e);_.t=Rp.prototype;_.t.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"}}}};
_.t.canReorderChanged=function(){this.persistentDragHandle=_.c("kevlar_playlist_drag_handles")&&this.canReorder};
_.t.onDrag=function(){if(this.thumbnail){var L=_.QJ(this.thumbnail).querySelector("yt-image");L&&(L.shouldRenderLazy=!1)}};
_.t.onMenuOverlayChanged=function(L,Z){this.menuOpened=Z};
_.t.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.t.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.t.onContentsTap=function(L){var Z,N=(Z=this.data)==null?void 0:Z.serviceEndpoints;if(N&&N.length===1&&_.n(N[0],oq0)&&!_.PQ(_.sx(L),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(N[0]);else{var S;(Z=(S=this.data)==null?void 0:S.navigationEndpoint)&&_.c("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?yH5(_.GR().resolve(_.yk),Z):(_.dM().playlistSuggestionsShelfActivation=
!0,_.wHO(_.GR().resolve(_.yk),Z)):Z&&!_.PQ(_.sx(L),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.c("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.QT(this.hostElement,"yt-navigate",{endpoint:Z}):this.ytComponentBehavior.resolveCommand(Z))}};
_.t.computeStyle=function(L){return L?L.toLowerCase().replace(/_/g,"-"):""};
_.t.computeThumbnailWidth=function(L){return L==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.t.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=Wjs(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))}};
_.t.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.t.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.t.dataChanged=function(){if(this.data){var L,Z,N,S=((L=this.downloadRenderData)==null?void 0:L.badges)&&((Z=this.downloadRenderData)==null?void 0:Z.badges)!==((N=this.data)==null?void 0:N.badges),u,T,W;L=((u=this.downloadRenderData)==null?void 0:u.thumbnailOverlays)&&((T=this.downloadRenderData)==null?void 0:T.thumbnailOverlays)!==((W=this.data)==null?void 0:W.thumbnailOverlays);(!this.downloadRenderData||S||L)&&this.downloadStateChanged()}};
_.t.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var L,Z,N=(L=this.data.menu)==null?void 0:(Z=L.menuRenderer)==null?void 0:Z.items;if(N)for(L=_.O(N),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,N=void 0,_.n((N=Z.menuServiceItemRenderer)==null?void 0:N.serviceEndpoint,_.Ac)){var S=N=void 0,u=void 0;Z=(N=Z)==null?void 0:(S=N.menuServiceItemRenderer)==null?void 0:(u=S.serviceEndpoint)==null?void 0:u.playlistEditEndpoint;u=S=void 0;if(N=(S=Z)==null?void 0:(u=S.actions)==null?void 0:
u[0])S=void 0,N.setVideoId=(S=this.data)==null?void 0:S.setVideoId;u=S=N=void 0;if(Z=(N=Z)==null?void 0:(S=N.clientActions)==null?void 0:(u=S[0])==null?void 0:u.playlistRemoveVideosAction)N=void 0,Z.setVideoIds=[(N=this.data)==null?void 0:N.setVideoId]}}};
_.gd.Object.defineProperties(Rp.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Rp.prototype.setVideoIdChanged=Rp.prototype.setVideoIdChanged;Rp.prototype.dataChanged=Rp.prototype.dataChanged;Rp.prototype.downloadStateChanged=Rp.prototype.downloadStateChanged;Rp.prototype.onMenuOverlayChanged=Rp.prototype.onMenuOverlayChanged;Rp.prototype.canReorderChanged=Rp.prototype.canReorderChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Rp.prototype,"ytdReduxBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Rp.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Lb),_.Q("design:type",Object)],Rp.prototype,"ytdLockupBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],Rp.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Rp.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Rp.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Rp.prototype,"canReorder",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Rp.prototype,"menuOpened",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Rp.prototype,"handleIsHovered",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Rp.prototype,"persistentDragHandle",void 0);_.r([_.Y(),_.Q("design:type",Object)],Rp.prototype,"downloadRenderData",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Q("design:type",String)],Rp.prototype,"styleType",void 0);_.r([_.Y({computed:"computeThumbnailWidth(data.style)"}),_.Q("design:type",Number)],Rp.prototype,"thumbnailWidth",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],Rp.prototype,"isDownloads",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Rp.prototype,"playlistVotingAnimationEnabled",void 0);
_.r([_.Y({selector:kQ,selectorArgs:["data.videoId"]}),_.Q("design:type",Object)],Rp.prototype,"downloadProgress",void 0);_.r([_.Y(),_.Q("design:type",Number)],Rp.prototype,"relativeDateReference",void 0);_.r([_.Y({selector:_.Kk,selectorArgs:["data.videoId"]}),_.Q("design:type",Object)],Rp.prototype,"transferState",void 0);_.r([_.Y({selector:qjw,selectorArgs:["data.videoId"]}),_.Q("design:type",Object)],Rp.prototype,"downloadState",void 0);
_.r([_.Y({selector:j3P,selectorArgs:["data.videoId"]}),_.Q("design:type",Object)],Rp.prototype,"offlinePolicyAction",void 0);_.r([_.Y({selector:EXw,selectorArgs:["data.videoId"]}),_.Q("design:type",Object)],Rp.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.r([_.Y({selector:pSh,selectorArgs:["data.videoId"]}),_.Q("design:type",Object)],Rp.prototype,"entityInfo",void 0);_.r([_.Y({selector:_.Ri}),_.Q("design:type",Boolean)],Rp.prototype,"miniplayerIsActive",void 0);
_.r([_.w("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Rp.prototype,"playlistVideoId",null);_.r([_.TX("#thumbnail"),_.Q("design:type",Object)],Rp.prototype,"thumbnail",void 0);_.r([_.Vr("canReorder"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Rp.prototype,"canReorderChanged",null);
_.r([_.SA("yt-menu-overlay-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Boolean]),_.Q("design:returntype")],Rp.prototype,"onMenuOverlayChanged",null);_.r([_.Vr("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Rp.prototype,"downloadStateChanged",null);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Rp.prototype,"dataChanged",null);_.r([_.Vr("data.setVideoId"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Rp.prototype,"setVideoIdChanged",null);_.r([_.P({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Rp);
_.m(Rp,"ytd-playlist-video-renderer",function(){if(KJt!==void 0)return KJt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);L.content.insertBefore(nft().content.cloneNode(!0),L.content.firstChild);return KJt=L},{mode:1});var UiY;var ce=function(){return _.e.apply(this,arguments)||this};
_.f(ce,_.e);_.r([_.Y(),_.Q("design:type",Object)],ce.prototype,"data",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ce.prototype,"rendererBehavior",void 0);_.r([_.P({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],ce);
_.m(ce,"ytd-premium-browse-footer-renderer",function(){if(UiY!==void 0)return UiY;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return UiY=L},{mode:1});var YzI;var n$=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return L};
_.f(n$,_.e);_.t=n$.prototype;_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.t.handleDarkModeToggledAction=function(L){this.isDarkTheme=L};
_.t.computeHeaderLogoThumbnail=function(L,Z){if(L)return Z?L.darkLogo:L.lightLogo};
_.t.computeHeaderLogoHeight=function(L,Z){var N,S,u;return(L=(N=this.computeHeaderLogoThumbnail(L,Z))==null?void 0:(S=N.thumbnails)==null?void 0:(u=S[0])==null?void 0:u.height)&&L%31===0?"31":"24"};
_.t.computeHeaderLogoMarginBottom=function(L,Z){return this.computeHeaderLogoHeight(L,Z)==="24"?"0":"-7"};
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],n$.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],n$.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],n$.prototype,"isDarkTheme",void 0);_.r([_.Y({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.Q("design:type",Object)],n$.prototype,"themeLogo",void 0);
_.r([_.Y({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.Q("design:type",String)],n$.prototype,"logoHeight",void 0);_.r([_.Y({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.Q("design:type",String)],n$.prototype,"logoMarginBottom",void 0);_.r([_.P({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],n$);
_.m(n$,"ytd-primetime-promo-header-renderer",function(){if(YzI!==void 0)return YzI;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return YzI=L},{mode:1});var eDV;_.K$=_.p(function(L){var Z=L.className;var N=L.data;var S=L.isOverlay;var u=L.maxLinesOverride;var T=L.useMediumText;var W=function(){return N().alwaysShowTruncationText},V=function(){return N().truncationText},M=function(){return T!==void 0&&T()?"medium":"small"},G=function(){return S!==void 0&&S()?"overlay":"default"},D=function(){var K,U;
return(U=(K=_.n(N().rendererContext,_.Oi))==null?void 0:K.label)!=null?U:""};
L=_.O(_.nh(!1,void 0,"OKr1o"));var l=L.next().value,v=L.next().value;L=_.Z9(function(){N().expandOnTap&&v(!l());return!1});
var R={};return _.g("yt-description-preview-view-model",{el:_.P9(_.cT(function(){return N().rendererContext})),
class:_.qg("ytDescriptionPreviewViewModelHost",Z,(R.ytDescriptionPreviewViewModelClickable=function(){var K;return!((K=_.n(N().rendererContext,xSf))==null||!K.onTap)},R.ytDescriptionPreviewViewModelIsOverlay=S,R)),
"on:click":L},_.g(_.F,{cond:function(){return N().description},
then:function(K){return _.g(_.F,{cond:l,then:function(){var U={};return _.g("div",{class:_.qg("ytDescriptionPreviewViewModelDescription",(U.ytDescriptionPreviewViewModelDescriptionMediumText=T,U))},_.g(_.qv,{text:K}))},
else:function(){return _.g(Ezs,{text:K,alwaysShowTruncationText:W,truncationText:V,maxLines:function(){var U;return(U=u==null?void 0:u())!=null?U:N().maxLines},
textStyle:G,accessibilityLabel:D,textSize:M})}})}}))},"Vc");
_.K$.idomCompat=!0;var dit=_.p(function(L){var Z=_.Z9(function(u){var T;(T=L.onClick)==null||T.call(L,u)}),N={},S={};
return _.g("yt-shelf-header-layout",{class:_.qg("yt-shelf-header-layout",(N["yt-shelf-header-layout--disable-horizontal-padding"]=L.disableHorizontalPadding,N["yt-shelf-header-layout--disable-vertical-padding"]=L.disableVerticalPadding,N["yt-shelf-header-layout--responsive"]=L.useResponsiveLayout,N["yt-shelf-header-layout--narrow"]=function(){var u,T;return((u=L.useResponsiveLayout)==null?void 0:u.call(L))&&((T=L.forceSmallLayout)==null?void 0:T.call(L))},N["yt-shelf-header-layout--is-overlay"]=L.isOverlay,
N["yt-shelf-header-layout--tappable"]=L.isInteractive,N)),
"on:click":Z,tabindex:function(){var u;return((u=L.isInteractive)==null?0:u.call(L))?0:void 0}},_.g("div",{class:"yt-shelf-header-layout__header-row"},_.g(_.F,{cond:L.leadingIcon,
then:function(u){return _.g("div",{class:"yt-shelf-header-layout__leading-icon"},_.g(_.T0,{icon:u}))},
else:function(){return _.g(_.F,{cond:L.hasLeadingImage,then:function(){var u,T={};return _.g("div",{class:_.qg("yt-shelf-header-layout__leading-image",(T["yt-shelf-header-layout__leading-image--circular-image"]=L.circularImage,T))},(u=L.leadingImage)==null?void 0:u.call(L))}})}}),_.g("div",{class:"yt-shelf-header-layout__label-container"},_.g(_.F,{cond:L.hasSuperlabel,
then:function(){var u;return _.g("div",{class:"yt-shelf-header-layout__superlabel"},(u=L.superlabel)==null?void 0:u.call(L))}}),_.g("div",{class:"yt-shelf-header-layout__title-row"},_.g(IrV,{text:L.title,
className:_.qg("yt-shelf-header-layout__title",(S["yt-shelf-header-layout__title--small-title"]=L.forceSmallLayout,S)),tagLevel:L.tagLevel}),_.g(_.F,{cond:L.hasDetail,then:function(){var u;return _.g("div",{class:"yt-shelf-header-layout__detail"},(u=L.detail)==null?void 0:u.call(L))}})),_.g(_.F,{cond:L.hasSublabel,
then:function(){var u;return _.g("div",{class:"yt-shelf-header-layout__sublabel"},(u=L.sublabel)==null?void 0:u.call(L))}})),_.g(_.F,{cond:L.hasTrailingActions,
then:function(){var u;return _.g("div",{class:"yt-shelf-header-layout__trailing-actions"},(u=L.trailingActions)==null?void 0:u.call(L))}})),_.g(_.F,{cond:L.hasBottomAccessory,
then:function(){var u;return _.g("div",{class:"yt-shelf-header-layout__bottom-accessory"},(u=L.bottomAccessory)==null?void 0:u.call(L))}}))},"Wc");
dit.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var IrV=_.p(function(L){var Z=L.text;var N=L.className;var S=L.tagLevel;return _.g(_.EM,null,_.g(_.hh,{when:function(){return(S==null?void 0:S())===0}},function(){return _.g("h2",{class:N},Z())}),_.g(_.hh,{when:function(){return(S==null?void 0:S())===1}},function(){return _.g("h3",{class:N},Z())}),_.g(_.hh,{when:function(){return(S==null?void 0:S())===2}},function(){return _.g("h4",{class:N},Z())}),_.g(_.sM,null,function(){return _.g("h2",{class:N},Z())}))},"Xc");var s40,art,hDN;_.f$=_.p(function(L){var Z=L.className;var N=L.data;var S=L.disableHorizontalPadding;var u=L.disableVerticalPadding;var T=L.forceSmallLayout;var W=L.useResponsiveLayout;L=L.isOverlay;return _.g("yt-section-header-view-model",{class:_.qg("ytSectionHeaderViewModelHost",Z),style:_.u4({"background-color":function(){return iF(N().backgroundColor)?_.Rs(iF(N().backgroundColor)):void 0}})},_.g(dit,{hasDetail:!1,
title:function(){return _.g(_.qv,{text:function(){return N().headline}})},
hasTitle:!0,sublabel:function(){return _.g(art,{data:N})},
hasSublabel:function(){return!!N().sublabel||!!N().bottomBadge},
superlabel:function(){return _.g(hDN,{data:N})},
hasSuperlabel:function(){return!!N().superlabel||!!N().topBadge},
leadingImage:function(){return _.g(s40,{leadingAccessory:function(){return N().leadingAccessory}})},
hasLeadingImage:function(){return!!N().leadingAccessory},
trailingActions:function(){return _.g(_.bj,{data:function(){return N().trailingActions}},{flexibleActionsViewModel:_.rX})},
hasTrailingActions:function(){return!!N().trailingActions},
disableHorizontalPadding:S,disableVerticalPadding:u,forceSmallLayout:T,useResponsiveLayout:W,isOverlay:L,isInteractive:function(){return!!_.ob(N().rendererContext)},
onClick:function(V){if(_.Rb(N().rendererContext)){var M=_.ob(N().rendererContext);M&&_.fY(M,{form:{element:V.target,event:V}})}},
bottomAccessory:function(){return _.g(_.bj,{data:function(){return N().bottomAccessory}},{descriptionPreviewViewModel:_.K$})},
hasBottomAccessory:function(){return!!N().bottomAccessory}}))},"Yc");
s40=_.p(function(L){var Z=L.leadingAccessory;return _.g(_.F7,null,_.g(_.F,{cond:function(){var N;return(N=Z().image)!=null?N:_.US(Z().themedImage)},
then:function(N){return _.g(_.ji,{data:N,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.g(_.F,{cond:function(){return _.n(Z().avatar,_.nl)},
then:function(N){return _.g(_.JO,{data:N})}}))},"Zc");
art=_.p(function(L){var Z=L.data;return _.g(_.F7,null,_.g(_.F,{cond:function(){return _.n(Z().bottomBadge,SlQ)},
then:function(N){var S={};return _.g(_.Fo,{data:N,class:_.qg((S.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!N()&&!!Z().sublabel},S))})}}),_.g(_.F,{cond:function(){return Z().sublabel},
then:function(N){return _.g(_.qv,{text:N})}}))},"$c");
hDN=_.p(function(L){var Z=L.data;return _.g(_.F7,null,_.g(_.F,{cond:function(){return _.n(Z().topBadge,SlQ)},
then:function(N){var S={};return _.g(_.Fo,{data:N,class:_.qg((S.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!N()&&!!Z().superlabel},S))})}}),_.g(_.F,{cond:function(){return Z().superlabel},
then:function(N){return _.g(_.qv,{text:N})}}))},"ad");_.CY(_.f$,"yt-section-header-view-model",{props:{data:_.LK,className:_.LK,disableHorizontalPadding:_.LK,disableVerticalPadding:_.LK,forceSmallLayout:_.LK,useResponsiveLayout:_.LK,isOverlay:_.LK}});_.l4("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var k7=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return L};
_.f(k7,_.e);_.t=k7.prototype;_.t.attached=function(){this.requestElementsPerRow()};
_.t.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"}}}};
_.t.onDataChange=function(){var L=this;_.bN(this,function(){L.updateItemVisibility()})};
_.t.onUpdateElementsPerRowAction=function(L){L&&this.elementsPerRow!==L&&(this.elementsPerRow=L,this.updateItemVisibility())};
_.t.updateItemVisibility=function(){var L=this;this.data&&this.data.panels&&_.QJ(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(Z,N){Z.hidden=N>L.elementsPerRow-1})};
_.t.requestElementsPerRow=function(){_.QT(this.hostElement,"yt-request-elements-per-row")};
k7.prototype.onDataChange=k7.prototype.onDataChange;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],k7.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],k7.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],k7.prototype,"actionHandlerBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],k7.prototype,"data",void 0);_.r([_.Y({value:3}),_.Q("design:type",Number)],k7.prototype,"elementsPerRow",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],k7.prototype,"onDataChange",null);_.r([_.P({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],k7);
_.m(k7,"ytd-primetime-promo-renderer",function(){if(eDV!==void 0)return eDV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return eDV=L},{mode:1});var j4l;var yO=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return L};
_.f(yO,_.e);yO.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
yO.prototype.handleButtonRefreshAction=function(L){if(L=_.n(L,cvh))this.set("data.button",L.membershipButton),this.notifyPath("data.button")};
_.gd.Object.defineProperties(yO.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?void 0:(Z=L.avatars)==null?void 0:Z.slice(0,8))||[]}}});
_.r([_.Y(),_.Q("design:type",Object)],yO.prototype,"data",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],yO.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],yO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],yO.prototype,"rendererBehavior",void 0);_.r([_.w("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],yO.prototype,"avatars",null);
_.r([_.P({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],yO);
_.m(yO,"ytd-recognition-shelf-renderer",function(){if(j4l!==void 0)return j4l;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return j4l=L},{mode:1});var EfY;var PCL;var wU=function(){var L=_.e.apply(this,arguments)||this;L.modernButtons=_.c("web_modern_buttons");return L};
_.f(wU,_.e);_.t=wU.prototype;
_.t.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]]"}}}}}};
_.t.dataChanged=function(){this.collapsed=!0};
_.t.computeVisibleItems=function(L,Z){return L!==void 0&&L.items?Z?L.items.slice(0,this.data.collapsedItemCount):L.items:[]};
_.t.computeHideShowMore=function(L,Z,N){return L>=Z||!N};
_.t.computeHideShowAll=function(L,Z,N){return!(L&&Z)||N};
_.t.onMoreClick=function(){this.collapsed=!1};
_.gd.Object.defineProperties(wU.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.c("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.vW("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.c("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
wU.prototype.dataChanged=wU.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],wU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],wU.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],wU.prototype,"isSearch",void 0);
_.r([_.Y({computed:"computeVisibleItems(data,collapsed)"}),_.Q("design:type",Array)],wU.prototype,"visibleItems",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],wU.prototype,"collapsed",void 0);_.r([_.Y({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.Q("design:type",Boolean)],wU.prototype,"hideShowMore",void 0);
_.r([_.Y({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.Q("design:type",Boolean)],wU.prototype,"hideShowAll",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],wU.prototype,"modernButtons",void 0);_.r([_.w("isSearch"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],wU.prototype,"typographyBump",null);
_.r([_.w("isSearch"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],wU.prototype,"lockupExperiments",null);_.r([_.w("isSearch"),_.Q("design:type",String),_.Q("design:paramtypes",[])],wU.prototype,"thumbnailWidth",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wU.prototype,"dataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],wU);
_.m(wU,"ytd-vertical-list-renderer",function(){if(PCL!==void 0)return PCL;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return PCL=L},{mode:1});var pH5=_.sc(["#"]);_.l4("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var UE=function(){var L=_.e.apply(this,arguments)||this;L.isConstrainedList=!1;return L};
_.f(UE,_.e);_.t=UE.prototype;
_.t.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"}}}};
_.t.computeThumbnailStyle=function(L){return L||""};
_.t.computePlaceAnnotationUnderTitle=function(){var L;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((L=this.data)==null?void 0:L.thumbnailStyle)||"")};
_.t.computeHrefWithDefault=function(L){return this.ytComponentBehavior.computeHref_(L)||_.Osx(pH5)};
_.t.computeIsPromoShelf=function(L){var Z;return(L=L==null?void 0:(Z=L[0])==null?void 0:Z.metadataBadgeRenderer)?L.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.t.computePlaceBadgeBesideTitle=function(L){var Z;return(L==null?0:(Z=L[0])==null?0:Z.metadataBadgeRenderer)?!this.computeIsPromoShelf(L):!1};
_.t.computeMenuIcon=function(L){return this.computeIsPromoShelf(L)?"yt-icons:more_vert":"yt-icons:more"};
_.t.onDataChange=function(){var L,Z;((L=this.data)==null?0:(Z=L.content)==null?0:Z.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.t.onLockupRequested=function(L){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&L.detail&&L.detail.videoIds){for(var Z=this.data.content.gridRenderer.items,N=new Set,S=_.O(L.detail.videoIds),u=S.next();!u.done;u=S.next())N.add(u.value);L.detail.returnValue=Z.filter(function(T){return T.gridVideoRenderer&&T.gridVideoRenderer.videoId&&N.has(T.gridVideoRenderer.videoId)}).map(function(T){return T.gridVideoRenderer})}};
_.t.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
UE.prototype.onLockupRequested=UE.prototype.onLockupRequested;UE.prototype.onDataChange=UE.prototype.onDataChange;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],UE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],UE.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],UE.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.Eb),_.Q("design:type",Object)],UE.prototype,"ironResizableBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],UE.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],UE.prototype,"isSearch",void 0);_.r([_.Y(),_.Q("design:type",Object)],UE.prototype,"isConstrainedList",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.c("kevlar_fluid_dismiss")}}),
_.Q("design:type",Boolean)],UE.prototype,"enableFluidDismiss",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.Q("design:type",String)],UE.prototype,"thumbnailStyle",void 0);_.r([_.Y({computed:"computeMenuIcon(data.badges)"}),_.Q("design:type",String)],UE.prototype,"menuIcon",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.Q("design:type",Boolean)],UE.prototype,"featuredPromo",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UE.prototype,"onDataChange",null);_.r([_.SA("yt-lockup-requested"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],UE.prototype,"onLockupRequested",null);_.r([_.P({is:"ytd-shelf-renderer",disableElementRegistration:!0})],UE);
_.m(UE,"ytd-shelf-renderer",function(){if(EfY!==void 0)return EfY;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return EfY=L},{mode:1});var zDl;var Y7=function(){return _.e.apply(this,arguments)||this};
_.f(Y7,_.e);Y7.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.gd.Object.defineProperties(Y7.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Y7.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Y7.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Y7.prototype,"data",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],Y7.prototype,"isPlaylist",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],Y7.prototype,"isClipList",void 0);
_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],Y7.prototype,"isPlaylistPageWithFilters",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Y7.prototype,"hasTitle",null);_.r([_.Y(),_.w("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Y7.prototype,"isRightAligned",null);
_.r([_.P({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Y7);
_.m(Y7,"ytd-sort-filter-header-renderer",function(){if(zDl!==void 0)return zDl;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return zDl=L},{mode:1});var miN;var e4=function(){var L=_.e.apply(this,arguments)||this;L.enableRightArrowHidden=_.c("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return L};
_.f(e4,_.e);e4.prototype.attached=function(){var L=this;this.enableRightArrowHidden&&(this.JSC$16510_throttledOnResize=new _.Sw(function(){var Z;(Z=L.ytdHorizontalListBehavior)==null||Z.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var Z;
(Z=L.JSC$16510_throttledOnResize)==null||Z.fire()}),this.resizeObserver.observe(this.hostElement))};
e4.prototype.detached=function(){if(this.enableRightArrowHidden){var L;(L=this.resizeObserver)==null||L.disconnect();var Z;(Z=this.JSC$16510_throttledOnResize)==null||Z.dispose()}};
e4.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]]"}}}}}};
e4.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.gd.Object.defineProperties(e4.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.c("enable_creator_details_shelf_m2")){var L=[],Z;((Z=this.data)==null?0:Z.creatorVideosButton)&&L.push(this.data.creatorVideosButton);var N;((N=this.data)==null?0:N.creatorAboutButton)&&L.push(this.data.creatorAboutButton);Z=_.O(this.data.creatorCustomUrlButtons||[]);for(N=Z.next();!N.done;N=Z.next())L.push(N.value);return L}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.c("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Mo.YtdHorizontalListBehavior),_.Q("design:type",Object)],e4.prototype,"ytdHorizontalListBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],e4.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],e4.prototype,"engagementPanel",void 0);
_.r([_.Y(),_.Q("design:type",Object)],e4.prototype,"enableRightArrowHidden",void 0);_.r([_.w("enableRightArrowHidden","atEnd"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],e4.prototype,"hideRightArrow",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],e4.prototype,"creatorCustomUrlButtons",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data","creatorCustomUrlButtons"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],e4.prototype,"showCreatorCustomUrlButtons",null);_.r([_.w("showCreatorCustomUrlButtons"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],e4.prototype,"channelAvatarSize",null);_.r([_.P({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],e4);
_.m(e4,"ytd-video-description-infocards-section-renderer",function(){if(miN!==void 0)return miN;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return miN=L},{mode:_.Qr("kevlar_poly_si_batch_j067")?1:2});var JH5;var Ip=function(){return _.e.apply(this,arguments)||this};
_.f(Ip,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ip.prototype,"data",void 0);_.r([_.Y({computed:"computeIcon_(data.infoIcon)"}),_.Q("design:type",Object)],Ip.prototype,"infoIcon",void 0);_.r([_.P({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Ip);
_.m(Ip,"ytd-eom-settings-disclaimer-renderer",function(){if(JH5!==void 0)return JH5;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return JH5=L},{mode:1});var CCQ;var dU=function(){return _.e.apply(this,arguments)||this};
_.f(dU,_.e);_.gd.Object.defineProperties(dU.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.suppressPaddingDisclaimer)}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],dU.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],dU.prototype,"componentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],dU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],dU.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],dU.prototype,"suppressPaddingDisclaimer",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],dU);
_.m(dU,"ytd-product-list-header-renderer",function(){if(CCQ!==void 0)return CCQ;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return CCQ=L},{mode:1});var rHs;var ap=function(){return _.e.apply(this,arguments)||this};
_.f(ap,_.e);ap.prototype.computeThumbnailStyle=function(L){if(L&&(L=_.vq(L)))return"background-color:"+L+";"};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ap.prototype,"rendererBehaviors",void 0);_.r([_.Y(),_.Q("design:type",Object)],ap.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],ap);
_.m(ap,"ytd-hashtag-tile-renderer",function(){if(rHs!==void 0)return rHs;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return rHs=L},{mode:1});var Q45;var h8=function(){return _.e.apply(this,arguments)||this};
_.f(h8,_.e);h8.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}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],h8.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],h8.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],h8);
_.m(h8,"ytd-sponsorships-alert-renderer",function(){if(Q45!==void 0)return Q45;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Q45=L},{mode:1});var XHY;var sE=function(){return _.e.apply(this,arguments)||this};
_.f(sE,_.e);sE.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.gd.Object.defineProperties(sE.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.r([_.y(_.Q$),_.Q("design:type",Object)],sE.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.y(_.Lb),_.Q("design:type",Object)],sE.prototype,"ytdLockupBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.r([_.Y({selector:_.KV}),_.Q("design:type",Object)],sE.prototype,"isGridViewEnabled",void 0);
_.r([_.w("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],sE.prototype,"watchFeedBigThumbs",null);_.r([_.w("isGridViewEnabled"),_.Y({reflectToAttribute:!0}),_.Q("design:type",String),_.Q("design:paramtypes",[])],sE.prototype,"thumbnailWidth",null);_.r([_.Y(),_.Q("design:type",Object)],sE.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],sE);
_.m(sE,"ytd-compact-movie-renderer",function(){if(XHY!==void 0)return XHY;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return XHY=L},{mode:1});var AHM;var H40;var Bs0=_.X7("HTML_DIR")==="rtl",j4=function(){var L=_.e.apply(this,arguments)||this;L.engagementPanel=!1;L.maxLines=2;L.expandButtonOffset=0;L.showExpandButton=!1;L.isTruncated=!1;L.isExpanded=!1;L.currentSnippetType=2;L.alwaysShowExpandButton=!1;L.JSC$16527_lastWidth=NaN;L.observer=null;L.left=0;L.right=0;L.mid=0;L.longestSnippetLength=0;L.isFinalSnippet=!1;L.isFirstMutation=!1;L.isResetMutation=!1;L.OVERFLOW_THRESHOLD=5;return L};
_.f(j4,_.e);_.t=j4.prototype;_.t.onClick=function(L){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.PQ(_.sx(L)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Z;if((Z=window.getSelection())==null||!Z.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.t.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.t.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.t.updateTextOnSnippetTypeChange=function(){_.c("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.t.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.t.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Q7(new _.sr("AttributedSnippet is empty when the description is not empty",this.text))};
_.t.mutationCallback=function(){if(this.observer!=null){var L=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var Z=Math.floor(L*this.maxLines/8);this.setSnippetText(this.text,Z);Z!==0||this.attributedTextIsEmpty()||_.Q7(new _.sr("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;L=L*this.maxLines/8;this.left=0;var N;this.right=Math.min(L*2,(N=(Z=this.simpleText)==null?void 0:Z.length)!=null?N: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)}}};
_.t.mutationObserve=function(L){var Z=this;this.observer||(this.observer=new MutationObserver(function(){Z.mutationCallback()}));
this.observer.observe(L,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.t.attached=function(){var L=this;_.bN(this,function(){L.resize()})};
_.t.isExpandedChanged=function(){_.QT(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.t.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)};
_.t.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var L="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((Bs0?"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",L);this.snippetContainer.style.setProperty("mask-image",
L)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(Bs0?"right":"left",this.expandButtonOffset+"px")};
_.t.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.t.setSnippetText=function(L,Z){L||(L={});if(_.aX(L)){var N=IX(L,Z);N.attachmentRuns||N.commandRuns||N.decorationRuns||N.styleRuns||N.alignment||N.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:IX(L,Z),headerRuns:hrt(Z,this.headerRuns)},this.currentSnippetType=0):_.Q7(new _.sr("Tried to set snippet text when HTML element was null",L)):(this.plainSnippetText.textContent=YN(L.content||"",Z),this.currentSnippetType=2)}else{a:{N=F7L(L,Z);if(N.runs){N=_.O(N.runs);for(var S=
N.next();!S.done;S=N.next())if(S=S.value,S.bold||S.deemphasize||S.italics||S.strikethrough||S.textColor||S.navigationEndpoint||_.n(S,RX)){N=!0;break a}}N=!1}N?this.formattedSnippetText?(this.formattedSnippetText.text=F7L(L,Z),this.currentSnippetType=1):_.Q7(new _.sr("Tried to set snippet text when HTML element was null",L)):(this.plainSnippetText.textContent=YN(_.jM(L),Z),this.currentSnippetType=2)}};
_.t.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.t.attributedTextIsEmpty=function(){var L=this.text;if(!_.aX(L))return!0;var Z;return((Z=L.content)==null?void 0:Z.length)===0?!0:!1};
_.t.resize=function(L){if(this.snippetText){if(L===void 0?0:L)this.JSC$16527_lastWidth=NaN;var Z=this.hostElement.offsetWidth;if(Z!==this.JSC$16527_lastWidth&&!this.isExpanded)if(this.JSC$16527_lastWidth=Z,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;L=0;var N,S;Z=Math.min(Z*this.maxLines/8*2,(S=(N=this.simpleText)==null?void 0:N.length)!=null?S:0)-1;for(N=0;L<=Z;)S=Math.floor(L+(Z-L)/2),this.setSnippetText(this.text,S),this.isOverflowing()?Z=S-1:(L=S+1,N=S);this.setSnippetText(this.text,N);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.t.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.t.onExpandClick=function(){var L=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.c("inline_expander_reset_focus_killswitch")||_.bN(this,function(){var Z;((Z=_.GR().resolve(_.gv(_.VG)))==null?0:Z.isKeyBoardInUse())&&_.tV(L.hostElement)});
_.QT(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.t.onCollapseClick=function(){this.collapse();_.QT(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.t.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.t.computeExpandButtonOffset=function(){var L=this.expandSizer;return L?Bs0?L.offsetParent?L.offsetParent.offsetWidth-L.offsetWidth-L.offsetLeft:0:L.offsetLeft:0};
_.gd.Object.defineProperties(j4.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.aX(this.text)?this.text.content||"":_.jM(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 _.aX(this.text)?!0:this.text&&_.c("web_replace_formatted_with_attributed_string")&&t6F(this.text)?(this.text=_.oX(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}}});
j4.prototype.onTextChanged=j4.prototype.onTextChanged;j4.prototype.updateMaskAndExpandButtonOffset=j4.prototype.updateMaskAndExpandButtonOffset;j4.prototype.updateSnippetContainerMaxHeight=j4.prototype.updateSnippetContainerMaxHeight;j4.prototype.isExpandedChanged=j4.prototype.isExpandedChanged;j4.prototype.updateTextOnSnippetTypeChange=j4.prototype.updateTextOnSnippetTypeChange;j4.prototype.updateIsFormattedExpanded=j4.prototype.updateIsFormattedExpanded;j4.prototype.updateIsAttributedExpanded=j4.prototype.updateIsAttributedExpanded;
j4.prototype.onClick=j4.prototype.onClick;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],j4.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],j4.prototype,"text",void 0);_.r([_.Y(),_.Q("design:type",Array)],j4.prototype,"headerRuns",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],j4.prototype,"engagementPanel",void 0);_.r([_.Y(),_.Q("design:type",Object)],j4.prototype,"maxLines",void 0);
_.r([_.Y(),_.Q("design:type",String)],j4.prototype,"expandLabel",void 0);_.r([_.Y(),_.Q("design:type",String)],j4.prototype,"collapseLabel",void 0);_.r([_.Y(),_.Q("design:type",Object)],j4.prototype,"expandCommand",void 0);_.r([_.Y(),_.Q("design:type",Object)],j4.prototype,"expandButtonOffset",void 0);_.r([_.w("text"),_.Q("design:type",String),_.Q("design:paramtypes",[])],j4.prototype,"simpleText",null);
_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],j4.prototype,"onClick",null);_.r([_.w("text","isExpanded"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],j4.prototype,"expandedText",null);_.r([_.w("headerRuns","isExpanded"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],j4.prototype,"expandedHeaderRuns",null);
_.r([_.w("text"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],j4.prototype,"hasAttributedStringText",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],j4.prototype,"showExpandButton",void 0);_.r([_.w("collapseLabel","isExpanded"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],j4.prototype,"showCollapseButton",null);_.r([_.Y(),_.Q("design:type",Object)],j4.prototype,"isTruncated",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],j4.prototype,"isExpanded",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],j4.prototype,"isAttributedExpanded",void 0);_.r([_.iA("isExpanded","hasAttributedStringText"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],j4.prototype,"updateIsAttributedExpanded",null);_.r([_.Y(),_.Q("design:type",Boolean)],j4.prototype,"isFormattedExpanded",void 0);
_.r([_.iA("isExpanded","hasAttributedStringText"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],j4.prototype,"updateIsFormattedExpanded",null);_.r([_.Y(),_.Q("design:type",Number)],j4.prototype,"currentSnippetType",void 0);_.r([_.w("currentSnippetType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],j4.prototype,"useAttributedSnippet",null);
_.r([_.w("currentSnippetType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],j4.prototype,"useFormattedSnippet",null);_.r([_.w("currentSnippetType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],j4.prototype,"usePlainSnippet",null);_.r([_.Y(),_.Q("design:type",Object)],j4.prototype,"alwaysShowExpandButton",void 0);_.r([_.iA("currentSnippetType"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],j4.prototype,"updateTextOnSnippetTypeChange",null);
_.r([_.Y(),_.Q("design:type",Object)],j4.prototype,"attributedSnippetText",void 0);_.r([_.TX("#snippet"),_.Q("design:type",HTMLElement)],j4.prototype,"snippetContainer",void 0);_.r([_.TX("#snippet-text"),_.Q("design:type",HTMLElement)],j4.prototype,"snippetText",void 0);_.r([_.TX("#plain-snippet-text"),_.Q("design:type",HTMLElement)],j4.prototype,"plainSnippetText",void 0);_.r([_.TX("#formatted-snippet-text"),_.Q("design:type",Object)],j4.prototype,"formattedSnippetText",void 0);
_.r([_.TX("#attributed-snippet-text"),_.Q("design:type",Object)],j4.prototype,"attributedSnippetTextEl",void 0);_.r([_.TX("#expand"),_.Q("design:type",HTMLElement)],j4.prototype,"expandButton",void 0);_.r([_.TX("#expand-sizer"),_.Q("design:type",HTMLElement)],j4.prototype,"expandSizer",void 0);_.r([_.Vr("isExpanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],j4.prototype,"isExpandedChanged",null);
_.r([_.iA("isExpanded","maxLines"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],j4.prototype,"updateSnippetContainerMaxHeight",null);_.r([_.iA("isTruncated","showExpandButton","expandButtonOffset"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],j4.prototype,"updateMaskAndExpandButtonOffset",null);
_.r([_.Vr("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],j4.prototype,"onTextChanged",null);_.r([_.P({is:"ytd-text-inline-expander",disableElementRegistration:!0})],j4);
_.m(j4,"ytd-text-inline-expander",function(){if(H40===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);H40=L}L=H40;return L},{mode:2});var EE=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return L};
_.f(EE,_.e);EE.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
EE.prototype.handleUpdateDescriptionAction=function(L){if(L=_.n(L,_.Uk5))if(L.attributedDescription)this.set("data.attributedDescriptionBodyText",L.attributedDescription);else if(L.description){var Z;((Z=this.data)==null?0:Z.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.oX(L.description)):this.set("data.descriptionBodyText",L.description)}};
_.gd.Object.defineProperties(EE.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!((L=this.data)==null||!L.attributedDescriptionBodyText)||!((Z=this.data)==null||!Z.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.data)==null?0:L.collapsedLineCount){var Z;return(Z=this.data)==null?void 0:Z.collapsedLineCount}L=_.lQ("web_watch_description_collapsed_default_lines",12);if(_.c("ww_desc_line_page_size_ks"))return L;Z=Math.round(_.tz().height*_.lQ("web_watch_description_screen_height_percentage",.5)/20);return Math.max(Z,L)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return(N=(L=this.data)==null?void 0:L.descriptionBodyText)!=null?N:(Z=this.data)==null?void 0:Z.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.sourceAttributions}}});
EE.prototype.panelContentVisibleChanged=EE.prototype.panelContentVisibleChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],EE.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],EE.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],EE.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],EE.prototype,"panelContentVisible",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],EE.prototype,"engagementPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],EE.prototype,"shortsPanel",void 0);_.r([_.TX("#inline-expander"),_.Q("design:type",Object)],EE.prototype,"inlineExpander",void 0);
_.r([_.iA("panelContentVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EE.prototype,"panelContentVisibleChanged",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],EE.prototype,"hasDescriptionText",null);_.r([_.w("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],EE.prototype,"collapsedLines",null);
_.r([_.w("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],EE.prototype,"descriptionText",null);_.r([_.w("data","data.headerRuns"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],EE.prototype,"headerRuns",null);_.r([_.w("data","data.sourceAttributions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],EE.prototype,"sourceAttributions",null);
_.r([_.P({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],EE);
_.m(EE,"ytd-expandable-video-description-body-renderer",function(){if(AHM!==void 0)return AHM;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return AHM=L},{mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});var xiQ;var qzh=_.p(function(L){var Z=L.data;return _.g("factoid-renderer",{class:"ytwFactoidRendererHost"},_.g("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return Z().accessibilityText}},_.g("span",{class:"ytwFactoidRendererValue"},_.g(_.qv,{text:function(){return Z().value}})),_.g("span",{class:"ytwFactoidRendererLabel"},_.g(_.qv,{text:function(){return Z().label}}))))},"bd");_.CY(qzh,"factoid-renderer",{props:{data:_.LK}});_.CY(_.p(function(L){var Z=L.data;return _.g("upload-time-factoid-renderer",null,_.g(_.bj,{data:function(){return Z().factoid}},{factoidRenderer:qzh}))},"cd"),"upload-time-factoid-renderer",{props:{data:_.zl}});_.CY(_.p(function(L){var Z=L.data;return _.g("view-count-factoid-renderer",null,_.g(_.bj,{data:function(){return Z().factoid}},{factoidRenderer:qzh}))},"dd"),"view-count-factoid-renderer",{props:{data:_.zl}});var Pe=function(){var L=_.e.apply(this,arguments)||this;L.shortsPanel=!1;L.engagementPanel=!1;L.watchWhileSdp=_.c("shorts_desktop_watch_while_sdp");return L};
_.f(Pe,_.e);Pe.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"}}}}};
_.gd.Object.defineProperties(Pe.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var L;return(L=this.data)==null?void 0:L.channel}}});
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Pe.prototype,"componentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Pe.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Pe.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Pe.prototype,"shortsPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Pe.prototype,"engagementPanel",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Pe.prototype,"watchWhileSdp",void 0);_.r([_.w("shortsPanel","engagementPanel","data.channel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Pe.prototype,"showChannelInfo",null);_.r([_.P({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],Pe);
_.m(Pe,"ytd-video-description-header-renderer",function(){if(xiQ!==void 0)return xiQ;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return xiQ=L},{mode:1});var LuN;var p$=function(){return _.e.apply(this,arguments)||this};
_.f(p$,_.e);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],p$.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],p$.prototype,"noPadding",void 0);_.r([_.Y(),_.Q("design:type",Object)],p$.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],p$);
_.m(p$,"ytd-list-item-view-model",function(){if(LuN!==void 0)return LuN;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return LuN=L},{mode:1});var Zp0;var NuO;var SPQ;var ip5;var zN=function(){var L=_.e.apply(this,arguments)||this;L.adaptiveFullWidth=!1;L.modernButtons=_.c("web_modern_buttons");L.buttonOverrides={style:"call-to-action",type:"filled"};L.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return L};
_.f(zN,_.e);zN.prototype.handleSetTimestamp_=function(L){this.data&&this.data.shortUrl&&(_.QJ(this.hostElement).querySelector("#share-url").value=L.isSet?_.JY(this.data.shortUrl,"t",L.timestamp):this.data.shortUrl)};
zN.prototype.handleSignalActionCopyShareUrl_=function(L,Z){(_.c("killswitch_copy_link_target_check")||_.QJ(this.hostElement).querySelector("#copy-button")===Z)&&this.copyUrlToClipboard()};
zN.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.QJ(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
zN.prototype.computeStyle_=function(L){return L?L.toLowerCase().replace(/_/g,"-"):""};
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],zN.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],zN.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],zN.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.Q("design:type",String)],zN.prototype,"rendererStyle",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],zN.prototype,"adaptiveFullWidth",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],zN.prototype,"modernButtons",void 0);_.r([_.Y(),_.Q("design:type",Object)],zN.prototype,"buttonOverrides",void 0);_.r([_.ch({is:"yt-copy-link-renderer",disableElementRegistration:!0})],zN);
_.m(zN,"yt-copy-link-renderer",function(){if(ip5===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;SPQ===void 0&&(SPQ=document.createElement("template"));var S=SPQ;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);ip5=L}L=ip5;return L},{mode:2});_.l4("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var mE=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return L};
_.f(mE,_.e);_.t=mE.prototype;_.t.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.t.attached=function(){this.keyboardFocused=!1};
_.t.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var L=_.GR().resolve(_.gv(_.VG));L&&(this.keyboardFocused=L.isKeyBoardInUse())}};
_.t.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.t.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}};
_.t.onChange_=function(){if(this.data){var L=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;L&&this.ytComponentBehavior.resolveCommand(L);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.t.handleUpdateToggleAction_=function(L){(L=_.n(L,XLM))&&this.data&&L.targetId==this.data.targetId&&this.set("data.toggled",L.toggled)};
_.t.toBoolean_=function(L){return!!L};
_.t.reset=function(){};
_.t.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("data-changed",this.data))};
_.t.updateDataToggledFromBinding=function(L){this.set("data.toggled",L.detail.value)};
mE.prototype.dataChangedForBinding=mE.prototype.dataChangedForBinding;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],mE.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],mE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],mE.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],mE.prototype,"ytRendererBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],mE.prototype,"data",void 0);_.r([_.Y({computed:"computeDescription_(data.*)"}),_.Q("design:type",Object)],mE.prototype,"description_",void 0);_.r([_.Y({value:function(){return!!_.GR().resolve(_.gv(_.VG))&&_.c("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Q("design:type",Boolean)],mE.prototype,"useKeyboardFocused",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],mE.prototype,"keyboardFocused",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mE.prototype,"dataChangedForBinding",null);_.r([_.ch({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],mE);
_.m(mE,"yt-toggle-form-field-renderer",function(){if(NuO===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Zp0===void 0&&(Zp0=document.createElement("template"));var S=Zp0;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);NuO=L}L=NuO;return L},{mode:2});var uyI;var TuN;var J8=function(){var L=_.e.apply(this,arguments)||this;L.isDarkTheme=!1;L.isSearch=!1;L.darkerDarkTheme=_.c("web_darker_dark_theme");L.noTopMargin=_.c("kevlar_watch_no_top_margin");L.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 L};
_.f(J8,_.e);_.t=J8.prototype;_.t.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}}}}}};
_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.t.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.t.dataChanged=function(){var L=this.getSelectedIndex();if(L>0)this.selected=L;else{this.selected=0;var Z,N;(Z=this.ytScrollableChipCloudBehavior)==null||(N=Z.reset)==null||N.call(Z)}};
_.t.getSelectedIndex=function(){var L;if((L=this.data)==null||!L.chips)return-1;L=-1;for(var Z,N=0;N<((Z=this.data)==null?void 0:Z.chips.length);N++){var S=void 0,u=void 0;if((S=this.data)==null?0:(u=S.chips[N].chipCloudChipRenderer)==null?0:u.isSelected){L=N;break}}return L};
_.t.onResize=function(){var L=this.ytScrollableChipCloudBehavior;_.bN(L,L.setContainerWidthDiff);L=this.ytScrollableChipCloudBehavior;_.bN(L,L.setButtonsState)};
_.t.onDarkModeToggledAction=function(L){this.isDarkTheme=L};
_.t.handleRelatedChipCommand=function(L,Z){L=this.JSC$16554_chipsSelector.indexOf(Z);L!==-1&&this.JSC$16554_chipsSelector.selectIndex(L)};
_.t.handleChipCloudChipSelectAction=function(L){L=this.JSC$16554_chipsSelector.indexOf(L);L>-1&&this.JSC$16554_chipsSelector.selectIndex(L)};
_.t.handleChipCloudChipDeselectAction=function(){var L=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16554_chipsSelector&&((L==null?0:L.continuationCommand)?_.H2(this.hostElement,[L]):(L==null?0:L.searchEndpoint)?this.ytComponentBehavior.resolveCommand(L):L&&_.B2(this.hostElement,[L],this.hostElement),this.JSC$16554_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.t.updateSelectedFromBinding=function(L){this.selected=L.detail.value};
J8.prototype.onResize=J8.prototype.onResize;J8.prototype.dataChanged=J8.prototype.dataChanged;J8.prototype.isSearchChanged=J8.prototype.isSearchChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],J8.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],J8.prototype,"actionHandlerBehavior",void 0);
_.r([_.y(_.Eb),_.Q("design:type",Object)],J8.prototype,"ironResizableBehavior",void 0);_.r([_.y(),_.Q("design:type",fW)],J8.prototype,"ytScrollableChipCloudBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],J8.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],J8.prototype,"data",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],J8.prototype,"selected",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],J8.prototype,"isDarkTheme",void 0);_.r([_.Y({value:160}),_.Q("design:type",Number)],J8.prototype,"scrollDistance",void 0);_.r([_.Y(),_.Q("design:type",Object)],J8.prototype,"isSearch",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],J8.prototype,"darkerDarkTheme",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],J8.prototype,"noTopMargin",void 0);
_.r([_.TX("#chips"),_.Q("design:type",Object)],J8.prototype,"JSC$16554_chipsSelector",void 0);_.r([_.iA("isSearch"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],J8.prototype,"isSearchChanged",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],J8.prototype,"dataChanged",null);_.r([_.SA("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],J8.prototype,"onResize",null);
_.r([_.ch({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],J8);
_.m(J8,"yt-chip-cloud-renderer",function(){if(TuN===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;uyI===void 0&&(uyI=document.createElement("template"));var S=uyI;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);TuN=L}L=TuN;return L},{mode:2});var tmQ,OpI=function(){return tmQ!==void 0?tmQ:tmQ=document.createElement("template")};
document.head.appendChild(OpI().content);var Wul;var Vm0=document.head,bpQ=Vm0.appendChild,MmO;if(Wul===void 0){var gkQ=document.createElement("template");_.k(gkQ,"");gkQ.content.insertBefore(OpI().content.cloneNode(!0),gkQ.content.firstChild);Wul=gkQ}MmO=Wul;bpQ.call(Vm0,MmO.content);var GGt=_.p(function(L){var Z=L.data;return _.g("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.g("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.g("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.g(_.F,{cond:function(){return _.US(Z().image)},
then:function(N){return _.g("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.g(_.ji,{data:N,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.g("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.g(_.qv,{text:function(){return Z().title}})),_.g("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.g(_.qv,{text:function(){return Z().subtitle}})))),_.g(_.F,{cond:function(){var N;
return(N=Z())==null?void 0:N.hasBottomDivider},
then:function(){return _.g("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"ed");var FuQ=_.p(function(L){var Z=L.data;return _.g("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.g("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.g(_.bj,{data:function(){var N;return(N=Z().offerPlanDetailsItem)!=null?N:[]}},{offerPlanDetailsItemViewModel:function(N){return _.g("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.g(GGt,{data:N.data}))}})),_.g("div",null,_.g(_.F,{cond:function(){return Z().hasBottomDivider},
then:function(){return _.g("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.g("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.g("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.g("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.g("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"fd");var $nV=_.p(function(L){var Z=L.data;L=_.O(_.nh(!1,void 0,"MrXxy"));var N=L.next().value,S=L.next().value,u=_.Z9(function(){S(!N());return!1}),T=function(){var W;
return(W=Z().offerPlanDetailsContainer)!=null?W:[]};
return _.g("lp-complex-offer-card-details-view-model",null,_.g("div",null,_.g(_.F,{cond:function(){return N()},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.g("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":u,"aria-expanded":N},_.g(_.qv,{text:function(){return Z().expandedTitle}})),_.g("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.g(_.bj,{data:T},{offerPlanDetailsContainerViewModel:function(W){return _.g("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.g(FuQ,{data:W.data}))}})),_.g("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.g(_.qv,{text:function(){return Z().legalText}})))},
else:function(){return _.g("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":u,"aria-expanded":N},_.g(_.qv,{text:function(){return Z().collapsedTitle}}),_.g("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.g(_.T0,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"gd");var DnQ=_.p(function(L){var Z=L.data;return _.g("lp-complex-offer-card-option-view-model",null,_.g("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.g(_.F,{cond:function(){return Z().topDividerText},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.g("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.g("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.g("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.g(_.qv,{text:function(){return Z().topDividerText}}))))}}),_.g(_.F,{cond:function(){return Z().description},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.g(_.qv,{text:function(){return Z().description}}))}}),_.g(_.F,{cond:function(){return Z().planPricingPrimary},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.g(_.qv,{text:function(){return Z().planPricingPrimary}}))}}),_.g(_.F,{cond:function(){return Z().planPricingSecondary},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.g(_.qv,{text:function(){return Z().planPricingSecondary}}))}}),_.g(_.F,{cond:function(){return Z().primaryButton},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.g(_.bj,{data:function(){return Z().primaryButton}},{buttonViewModel:function(N){return _.g(_.$X,{data:N.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"hd");var lq0=_.p(function(L){var Z=L.data;var N=function(){var T;return((T=Z())==null?void 0:T.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
L={};var S={},u={};return _.g("ytm-lp-complex-offer-card-view-model",null,_.g("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.g("div",{class:_.qg((L.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=N,L),"ytmLpComplexOfferCardViewModelCardContainer")},_.g(_.F,{cond:function(){var T;return(T=Z())==null?void 0:T.bannerText},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.g("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.g(_.qv,{text:function(){return Z().bannerText}})))}}),_.g(_.F,{cond:function(){return _.US(Z().logo)},
then:function(T){var W={};return _.g("div",{class:_.qg((W.ytmLpComplexOfferCardViewModelLogoAlignLeft=N,W),"ytmLpComplexOfferCardViewModelLogo")},_.g(_.ji,{data:T,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.g("div",{class:_.qg((S.ytmLpComplexOfferCardViewModelTitleAlignLeft=N,S),"ytmLpComplexOfferCardViewModelTitle")},_.g(_.qv,{text:function(){return Z().title}})),_.g(_.F,{cond:function(){var T;
return(T=Z())==null?void 0:T.subtitle},
then:function(){var T={};return _.g("div",{class:_.qg((T.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=N,T),"ytmLpComplexOfferCardViewModelSubtitle")},_.g(_.qv,{text:function(){return Z().subtitle}}))}}),_.g(_.F,{cond:function(){return Z().planPricingPrimary},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.g(_.qv,{text:function(){return Z().planPricingPrimary}}))}}),_.g(_.F,{cond:function(){return Z().planPricingSecondary},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.g(_.qv,{text:function(){return Z().planPricingSecondary}}))}}),_.g(_.F,{cond:function(){return Z().purchaseButton},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.g(_.bj,{data:function(){return Z().purchaseButton}},{buttonViewModel:function(T){return _.g(_.$X,{data:T.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.g(_.F,{cond:function(){var T;
return(T=Z())==null?void 0:T.offerOptions},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.g(_.bj,{data:function(){return Z().offerOptions}},{lpComplexOfferCardOptionViewModel:DnQ}))}}),_.g("div",{class:_.qg((u.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=N,u),"ytmLpComplexOfferCardViewModelLegalText")},_.g(_.qv,{text:function(){return Z().legalText}})),_.g(_.F,{cond:function(){var T;
return(T=Z())==null?void 0:T.offerCardDetails},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.g(_.bj,{data:function(){return Z().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:$nV}))}}))))},"id");var vkY=_.p(function(L){var Z=L.data;var N=function(){var W;return((W=Z())==null?void 0:W.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
L={};var S={},u={},T={};return _.g("ytm-lp-complex-offer-card-section-view-model",null,_.g("div",{class:_.qg("ytmLpComplexOfferCardSectionViewModelHost")},_.g("div",{class:_.qg((L.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=N,L),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.g("div",{class:_.qg((S.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=N,S),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.g("h2",{class:_.qg((u.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
N,u),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.g(_.qv,{text:function(){return Z().title}}))),_.g(_.F,{cond:function(){var W;
return(W=Z())==null?void 0:W.subtitle},
then:function(){var W={},V={};return _.g("div",{class:_.qg((W.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=N,W),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.g("div",{class:_.qg((V.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=N,V),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.g(_.qv,{text:function(){return Z().subtitle}})))}}),_.g("div",{class:_.qg((T.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=N,T),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.g(_.bj,{data:function(){var W;
return(W=Z().offerPlans)!=null?W:[]}},{lpComplexOfferCardViewModel:function(W){return _.g("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.g(lq0,{data:W.data}))}})))))},"jd");var okL=_.p(function(L){return _.g("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.g("div",{class:"ytLpCouponBannerViewModelIcon"},_.g(_.T0,{icon:function(){return"price_tag"}})),_.g("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.g("div",{class:"ytLpCouponBannerViewModelContent"},_.g("div",{class:"ytLpCouponBannerViewModelHeading"},_.g(_.qv,{text:function(){var Z;
return(Z=L.data())==null?void 0:Z.title}})),_.g("div",{class:"ytLpCouponBannerViewModelBody"},_.g(_.qv,{text:function(){var Z;
return(Z=L.data())==null?void 0:Z.subtitle}})))))},"kd");
okL.idomCompat=!0;_.C$=vdV.getInstance();var RqL;RqL=_.p(function(L){return _.g("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":L.shouldAriaHideContent},_.g("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:L.questionId},_.g(_.qv,{text:L.question})))},"ld");
_.c_l=_.p(function(L){var Z=L.data;var N=L.themeOverride;L=_.O(_.nh(!1,void 0,"pNli2b"));var S=L.next().value,u=L.next().value;L=_.Z9(function(){u(!S());return!1});
var T=function(){return S()?"EXPAND_LESS":"EXPAND_MORE"},W=("faq-container"+_.st(_.C$)).toString(),V="faq-question-and-answers-section-question"+_.st(_.C$),M={},G={};
return _.g("faq-entry-view-model",null,_.g("div",{class:_.qg("ytLpFaqEntryViewModelHost",(M.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return N==null?void 0:N().useDarkTheme},M))},_.g("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":L,role:"button","aria-expanded":S,"aria-labelledby":V.toString(),"tab-index":"0"},_.g(RqL,{question:function(){return Z().question},
questionId:V,shouldAriaHideContent:!0}),_.g(_.F,{cond:function(){return S()!==void 0},
then:function(){return _.g("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.g(_.T0,{icon:T,ariaHidden:!0}),_.g("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.g("div",{class:_.qg("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(G.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!S()},G))},_.g("div",{id:W},_.g(_.ju,{each:function(){return Z().answers||[]}},function(D){return _.g("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.g(_.qv,
{text:D}))})))))},"md");
_.c_l.idomCompat=!0;var nk5=_.p(function(L){var Z=L.data;var N=L.themeOverride;L={};return _.g("lp-faq-section-view-model",null,_.g("div",{class:_.qg("yt-lp-faq-section-view-model",(L["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return Z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},L["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(N==null||!N().useDarkTheme)},L))},_.g("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.g(_.F,{cond:function(){return Z().header},
then:function(S){return _.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.g(_.qv,{text:S}))}}),_.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.g(_.bj,{data:function(){return Z().faqs}},{faqEntryViewModel:function(S){return _.g(_.c_l,{data:S.data,
themeOverride:N})}})),_.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.g(_.ju,{each:function(){return Z().footers||[]}},function(S){return _.g(_.qv,{text:S})})),_.g(_.F,{cond:function(){return Z().legal},
then:function(S){return _.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.g(_.qv,{text:S}))}}))))},"nd");
nk5.idomCompat=!0;var Kuq=_.p(function(L){var Z=L.data;var N=L.themeOverride;_.m0(function(){var W=Z().gtmId;W&&_.dH(W,_.X7("GL",""))});
var S={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var W,V,M;return(M=(W=Z().logo)==null?void 0:(V=W.accessibilityData)==null?void 0:V.label)!=null?M:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},u=_.GR().resolve(_.gv(_.d$)),T=function(){return u&&u()||(N==null?void 0:N().useDarkTheme)};
return _.g("lp-header-section-view-model",null,_.g("div",{class:function(){var W=Z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",V=Z().marginType==="LP_SECTION_MARGIN_TYPE_TOP",M=N==null?void 0:N().useDarkTheme,G=["lp-header-section-view-model"];W&&G.push("lp-header-section-view-model--ptc-layout-type");V&&G.push("lp-header-section-view-model__lp-header-section-margin");M&&G.push("lp-header-section-view-model--premium-force-dark-mode");return G.join(" ")}},_.g(_.F,{cond:function(){return Z().logo},
then:function(){return _.g("div",null,_.g(_.F,{cond:T,then:function(){return _.g(_.F,{cond:function(){var W;return(W=Z().logo)==null?void 0:W.imageDark},
then:function(W){return _.g(_.ji,Object.assign({},{data:W},S))}})},
else:function(){return _.g(_.F,{cond:function(){var W;return(W=Z().logo)==null?void 0:W.imageLight},
then:function(W){return _.g(_.ji,Object.assign({},{data:W},S))}})}}))}}),_.g(_.F,{cond:function(){return Z().title},
then:function(W){return _.g("div",{class:"lp-header-section-view-model__lp-header-title"},_.g(_.qv,{text:W}))}}),_.g("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.g(_.F,{cond:function(){return Z().subtitles},
then:function(W){return _.g(_.ju,{each:W},function(V){return _.g("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.g(_.qv,{text:V}))})}})),_.g(_.F,{cond:function(){return Z().additionalInfo},
then:function(W){return _.g("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.g(_.qv,{text:W}))}}),_.g("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.g(_.F,{cond:function(){return Z().primaryButton},
then:function(W){return _.g("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.g(_.bj,{data:W},{buttonViewModel:_.$X}))}}),_.g(_.F,{cond:function(){return Z().secondaryButton},
then:function(W){return _.g("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.g(_.bj,{data:W},{buttonViewModel:_.$X}))}})),_.g(_.F,{cond:function(){return Z().otherOffersInfo},
then:function(W){return _.g("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.g(_.qv,{text:W}))}}),_.g("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.g(_.F,{cond:function(){return Z().billingInfo},
then:function(W){return _.g(_.ju,{each:W},function(V){return _.g("div",null,_.g(_.qv,{text:V}))})}}))))},"od");
Kuq.idomCompat=!0;var fqY=_.p(function(L){return _.g("lp-header-upsell-banner-view-model",{class:_.qg("lpHeaderUpsellBannerViewModelHost",L.className,{})},_.g("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.g(_.T0,{icon:function(){return"CAMPAIGN"}})),_.g("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.g("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.g("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.g("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.g(_.qv,{text:function(){var Z;
return(Z=L.data())==null?void 0:Z.description}})))),_.g(_.bj,{data:function(){var Z;
return(Z=L.data())==null?void 0:Z.purchaseButton}},{buttonViewModel:function(Z){return _.g(_.$X,{data:Z.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"pd");var kGh=_.p(function(L){var Z=L.data;var N=_.jA(L.themeOverride,{useDarkTheme:!1});L={};L=_.qg("ytmLpHeadlineSectionViewModelHost",(L.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return N().useDarkTheme},L));
return _.g("lp-headline-section-view-model",null,_.g("div",{class:L},_.g(_.F,{cond:function(){return Z().title},
then:function(S){return _.g("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.g(_.qv,{text:S}))}}),_.g(_.F,{cond:function(){return Z().subtitle},
then:function(S){return _.g("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.g(_.qv,{text:S}))}})))},"qd");var y_5=_.p(function(L){var Z=L.data;var N=L.themeOverride;var S=_.GR().resolve(_.gv(_.d$)),u=function(){return S&&S()||(N==null?void 0:N().useDarkTheme)},T=function(){var G,D;
var l=u()?(G=Z().textBackgroundImage)==null?void 0:G.imageDark:(D=Z().textBackgroundImage)==null?void 0:D.imageLight;return i3s((l==null?void 0:l.sources)||[])},W=function(){var G,D;
return u()?(G=Z().featureImage)==null?void 0:G.imageDark:(D=Z().featureImage)==null?void 0:D.imageLight},V=function(){return Z().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},M=function(){var G,D;
return u()?(G=Z().logo)==null?void 0:G.imageDark:(D=Z().logo)==null?void 0:D.imageLight};
return _.g("ytm-lp-large-feature-section-view-model",null,_.g("div",{class:function(){var G=Z().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",D=Z().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",l=(Z().index||0)%2===1,v=N==null?void 0:N().useDarkTheme,R=["yt-lp-large-feature-section-view-model"];G?R.push("yt-lp-large-feature-section-view-model--music-feature-type"):D?R.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):l||R.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
v&&R.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return R.join(" ")}},_.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.g(_.F,{cond:W,
then:function(){return _.g(_.ji,{data:function(){return W()},
alt:function(){var G,D,l;return(l=(G=Z().featureImage)==null?void 0:(D=G.accessibilityData)==null?void 0:D.label)!=null?l:""},
contentMode:V})}})),_.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var G;return((G=T())==null?0:G.url)?"background-image: url("+_.mY(T().url)+");":""}},_.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.g(_.F,{cond:M,
then:function(){return _.g(_.ji,{data:function(){return M()},
alt:function(){var G,D,l;return(l=(G=Z().logo)==null?void 0:(D=G.accessibilityData)==null?void 0:D.label)!=null?l:""},
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"})}}),_.g(_.F,{cond:function(){return Z().eyebrowText},
then:function(){return _.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.g(_.qv,{text:function(){return Z().eyebrowText}}))}}),_.g(_.F,{cond:function(){return Z().title},
then:function(){return _.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.g(_.qv,{text:function(){return Z().title}}))}}),_.g(_.F,{cond:function(){return Z().subtitles},
then:function(){return _.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.g(_.ju,{each:function(){return Z().subtitles||[]}},function(G){return _.g(_.qv,{text:G})}))}})))))},"rd");
y_5.idomCompat=!0;var wGN=_.p(function(L){return _.g("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.g("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.g(_.T0,{icon:function(){var Z;return(Z=L.data())==null?void 0:Z.iconType},
className:function(){var Z;switch((Z=L.data())==null?void 0:Z.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 Z;return((Z=L.data())==null?void 0:Z.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.g("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.g(_.qv,{text:function(){var Z;
return(Z=L.data())==null?void 0:Z.text},
className:function(){var Z;return((Z=L.data())==null?void 0:Z.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"sd");var Unh=_.p(function(L){L=_.Ek(L,{config:void 0,themeOverride:void 0});var Z=L.data,N=L.config,S=L.themeOverride;L={};L=_.qg("ytmLpOfferCardOptionViewModelHost",(L.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var V;return(V=S())==null?void 0:V.useDarkTheme},L));
var u=_.Z9(function(){var V,M;(V=N())==null||(M=V.handleRadioButtonClick)==null||M.call(V,Z());return!1}),T=function(){var V;
return(V=N())==null?void 0:V.shouldDisplayRadioButton},W=function(){var V;
return(V=Z().featureListItems)!=null?V:[]};
return _.g("ytm-lp-offer-card-option-view-model",null,_.g("div",{class:L,"on:click":_.Z9(function(){if(T()){var V,M;(V=N())==null||(M=V.handleRadioButtonClick)==null||M.call(V,Z())}return!1})},_.g(_.F,{cond:T,
then:function(){return _.g("div",null,_.g("input",{type:"radio","on:click":u,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var V;return!((V=N())==null||!V.isOptionSelected)}}))}}),_.g("div",null,_.g("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.g(_.qv,{text:function(){return Z().eyebrowText}})),_.g("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.g(_.qv,{text:function(){return Z().title}})),_.g("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.g(_.qv,
{text:function(){return Z().subtitle}})),_.g(_.F,{cond:function(){return W().length>0},
then:function(){return _.g("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.g(_.bj,{data:W},{lpFeatureListItemViewModel:wGN}))}}),_.g("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.g(_.qv,{text:function(){return Z().description}})))))},"td");
Unh.idomCompat=!0;var YPQ=_.p(function(L){var Z=L.data;var N=L.themeOverride;L=_.O(_.i4(function(){var T,W=(T=Z().offerOptions)==null?void 0:T[0];return _.n(W,PMq)||{}}));
var S=L.next().value,u=L.next().value;L={};return _.g("ytm-lp-offer-card-view-model",null,_.g("div",{class:_.qg("ytmLpOfferCardViewModelHost",(L.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(N==null||!N().useDarkTheme)},L))},_.g("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.g(_.F,{cond:function(){return Z().titleIconType},
then:function(){return _.g("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.g(_.T0,{icon:function(){var T;return((T=Z().titleIconType)==null?void 0:T.toString())||""}}))}}),_.g("div",{class:"ytmLpOfferCardViewModelTitleText"},_.g(_.qv,{text:function(){return Z().title}})),_.g(_.bj,{data:function(){return Z().titleBadge}},{badgeViewModel:function(T){return _.g("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.g(_.Fo,{data:T.data}))}})),_.g("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.g(_.bj,{data:function(){return Z().offerOptions}},{lpOfferCardOptionViewModel:function(T){var W=T.data;
return _.g(_.F7,null,_.g("div",{class:"ytmLpOfferCardViewModelDivider"}),_.g(Unh,{data:W,config:function(){var V;return{shouldDisplayRadioButton:(Z().offerOptions||[]).length>1,isOptionSelected:W().id===((V=S())==null?void 0:V.id),handleRadioButtonClick:function(M){return void u(M)}}},
themeOverride:N}))}})),_.g("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.g(_.bj,{data:function(){var T;
return(T=S())==null?void 0:T.purchaseButtonOverride}},{buttonViewModel:_.$X}))))},"ud");
YPQ.idomCompat=!0;var eqN=_.p(function(L){var Z=L.data;var N=L.themeOverride;L={};L=_.qg("ytmLpOfferCardSectionViewModelHost",(L.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var S;return N==null?void 0:(S=N())==null?void 0:S.useDarkTheme},L));
return _.g("ytm-lp-offer-card-section-view-model",null,_.g("div",{class:L},_.g(_.F,{cond:function(){return Z().title!==void 0},
then:function(){return _.g("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.g("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.g(_.qv,{text:function(){return Z().title}})),_.g(_.F,{cond:function(){return Z().subtitle},
then:function(){return _.g("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.g(_.qv,{text:function(){return Z().subtitle}}))}}))}}),_.g("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.g(_.bj,{data:function(){return Z().offerCards}},{lpOfferCardViewModel:function(S){return _.g("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.g(YPQ,{data:S.data,
themeOverride:N}))}})),_.g(_.F,{cond:function(){return Z().footer},
then:function(){return _.g("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.g(_.qv,{text:function(){return Z().footer}}))}})))},"vd");var Iqq=_.p(function(L){var Z=L.data;return _.g("lp-offer-table-cell-content-view-model",null,_.g("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.g(_.EM,null,_.g(_.hh,{when:function(){return Z().title}},function(){return _.g(_.qv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return Z().title}})}),_.g(_.hh,{when:function(){return Z().subTitle}},function(){return _.g(_.qv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return Z().subTitle}})}),_.g(_.hh,{when:function(){return Z().featureDescription}},function(){return _.g(_.qv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return Z().featureDescription}})}),_.g(_.hh,{when:function(){return Z().description}},function(){return _.g(_.qv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return Z().description}})}),_.g(_.hh,{when:function(){return Z().iconType}},function(){return _.g("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.g(_.T0,{icon:function(){return Z().iconType.toString()}}))}),_.g(_.hh,{when:function(){return Z().purchaseButton}},function(){return _.g(_.bj,{data:function(){return Z().purchaseButton}},{buttonViewModel:function(N){return _.g("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.g(_.$X,
{data:N.data}))}})}),_.g(_.hh,{when:function(){return Z().note}},function(){return _.g(_.qv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return Z().note}})}),_.g(_.hh,{when:function(){return Z().featureDetail}},function(){return _.g(_.qv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return Z().featureDetail}})}),_.g(_.hh,{when:function(){return Z().badge}},function(){return _.g(_.bj,{data:function(){return Z().badge}},{badgeViewModel:_.Fo})}))))},"wd");
Iqq.idomCompat=!0;var dnM=_.p(function(L){var Z=L.data;return _.g("lp-offer-table-cell-view-model",null,_.g("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(Z().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;"}}},_.g(_.bj,{data:function(){return Z().contents}},{lpOfferTableCellContentViewModel:Iqq})))},
"xd");
dnM.idomCompat=!0;var aqL=_.p(function(L){var Z=L.data;var N=L.lpTableIsFirstRow;var S=L.lpTableIsLastRow;var u=function(){return(N==null?0:N())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},T=function(){return(N==null?0:N())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(S==null?0:S())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.g("ytm-lp-offer-table-row-view-model",null,_.g("div",{class:"ytLpOfferTableRowViewModelHost"},_.g(_.bj,{data:function(){return Z().rowHeaderCell}},{lpOfferTableCellViewModel:function(W){return _.g("div",{class:u},_.g(dnM,{data:W.data}))}}),_.g(_.bj,{data:function(){return Z().contentCells}},{lpOfferTableCellViewModel:function(W){return _.g("div",{class:T},_.g(dnM,{data:W.data}))}})))},"yd");
aqL.idomCompat=!0;var hqh=_.p(function(L){var Z=L.data;var N=L.themeOverride;var S=_.GR().resolve(_.gv(_.d$)),u=function(){return _.n(Z().logo,ONt)||{}};
L={};return _.g("ytm-lp-offer-table-section-view-model",null,_.g("div",{class:"ytLpOfferTableViewModelHost"},_.g(_.F,{cond:function(){var T,W;return S&&S()||(N==null?0:N().useDarkTheme)?(T=u())==null?void 0:T.imageDark:(W=u())==null?void 0:W.imageLight},
then:function(T){return _.g(_.ji,{data:T,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var W,V,M;return(M=(W=u())==null?void 0:(V=W.accessibilityData)==null?void 0:V.label)!=null?M:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.g(_.qv,{text:function(){return Z().title}})),_.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.g(_.qv,{text:function(){return Z().subtitle}})),_.g(_.F,{cond:function(){return Z().disclaimers},
then:function(T){return _.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.g(_.ju,{each:T},function(W){return _.g("div",null,_.g(_.qv,{text:W}))}))}}),_.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.g(_.bj,{data:function(){return Z().rows}},{lpOfferTableRowViewModel:function(T,W){return _.g(aqL,{data:T.data,
lpTableIsFirstRow:function(){return W()===0},
lpTableIsLastRow:function(){return W()===Z().rows.length-1}})}})),_.g("div",{class:_.qg((L.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return Z().hasFooterBackground},L))},_.g(_.F,{cond:function(){return Z().footer},
then:function(){return _.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.g(_.qv,{text:function(){return Z().footer}}))}}),_.g(_.F,{cond:function(){return Z().footerTitle},
then:function(){return _.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.g(_.qv,{text:function(){return Z().footerTitle}}))}}),_.g(_.F,{cond:function(){return Z().footerDescription},
then:function(){return _.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.g(_.qv,{text:function(){return Z().footerDescription}}))}}),_.g(_.F,{cond:function(){return Z().footerDescriptions},
then:function(T){return _.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.g(_.ju,{each:T},function(W){return _.g("div",null,_.g(_.qv,{text:W}))}))}}))))},"zd");
hqh.idomCompat=!0;var sJh=_.p(function(L){var Z=L.data;var N=L.themeOverride;var S=_.GR().resolve(_.gv(_.d$)),u=function(){var V;return N==null?void 0:(V=N())==null?void 0:V.useDarkTheme},T=function(){var V,M;
return S&&S()||u()?(V=Z().image)==null?void 0:V.imageDark:(M=Z().image)==null?void 0:M.imageLight};
L={};L=_.qg("ytmLpSmallFeatureSectionViewModelHost",(L.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=u,L));var W=function(){var V,M,G;return(G=(V=Z().image)==null?void 0:(M=V.accessibilityData)==null?void 0:M.label)!=null?G:""};
return _.g("ytm-lp-small-feature-section-view-model",{class:L},_.g(_.F,{cond:function(){return T()&&!Thx},
then:function(){return _.g("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.g(_.ji,{data:function(){return T()},
alt:W,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.g("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.g("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.g(_.F,{cond:function(){return Z().title},
then:function(V){return _.g(_.qv,{text:V})}})),_.g("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.g(_.qv,{text:function(){return Z().description}}))))},"Ad");
sJh.idomCompat=!0;var jJl=_.p(function(L){var Z=L.data;var N=L.themeOverride;L={};return _.g("ytm-lp-small-feature-section-group-view-model",null,_.g("div",{class:_.qg("ytmLpSmallFeatureSectionGroupViewModelHost",(L.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(N==null||!N().useDarkTheme)},L))},_.g("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.g(_.bj,{data:function(){return Z().smallFeatures}},{lpSmallFeatureSectionViewModel:function(S){return _.g("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.g(sJh,{data:S.data,
themeOverride:N}))}}))))},"Bd");
jJl.idomCompat=!0;_.CY(_.p(function(L){var Z=L.data;var N=function(){return Z().forcedTheme==="USER_INTERFACE_THEME_DARK"},S=function(){return Z().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},u=function(){var W="",V,M;
var G=_.GR().resolve(_.gv(_.d$));G=N()||(G==null?0:G())?(V=Z().themedImageViewModel)==null?void 0:V.imageDark:(M=Z().themedImageViewModel)==null?void 0:M.imageLight;(V=i3s((G==null?void 0:G.sources)||[]))&&V.url&&(W=S()?"background-image: linear-gradient(to bottom, transparent, "+(Z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.mY(V.url)+");":"background-image: url("+_.mY(V.url)+");");return W},T=function(){return{useDarkTheme:N()}};
L={};return _.g("yt-section-group-view-model",null,_.g("div",{class:_.qg("yt-lp-section-group-view-model",(L["yt-lp-section-group-view-model--premium-force-dark-mode"]=N,L["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return Z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},L))},_.g(_.F,{cond:function(){return u().length},
then:function(){var W={};return _.g("div",{class:_.qg("yt-lp-section-group-view-model__bg-image",(W["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=S,W)),style:u})}}),_.g("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.g(_.bj,{data:function(){return Z().sections}},{lpHeaderUpsellBannerViewModel:function(W){return _.g(fqY,{data:W.data})},
lpFaqSectionViewModel:function(W){return _.g(nk5,{data:W.data,themeOverride:T})},
lpHeaderSectionViewModel:function(W){return _.g(Kuq,{data:W.data,themeOverride:T})},
lpHeadlineSectionViewModel:function(W){return _.g(kGh,{data:W.data,themeOverride:T})},
lpLargeFeatureSectionViewModel:function(W){return _.g(y_5,{data:W.data,themeOverride:T})},
lpOfferCardSectionViewModel:function(W){return _.g(eqN,{data:W.data,themeOverride:T})},
lpComplexOfferCardSectionViewModel:function(W){return _.g(vkY,{data:W.data})},
lpOfferTableSectionViewModel:function(W){return _.g(hqh,{data:W.data,themeOverride:T})},
lpSmallFeatureSectionGroupViewModel:function(W){return _.g(jJl,{data:W.data,themeOverride:T})},
lpCouponBannerViewModel:function(W){return _.g(okL,{data:W.data})}}))))},"Cd"),"yt-section-group-view-model",{props:{data:_.LK}});var lzB=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Ek0=_.p(function(L){function Z(){if(lzB.has(L.data().displayType)){var G=!S(),D;if((D=L.disableDeselection)==null||!D.call(L)||G){L.data().selected=G;D=Object.assign({},W(),{selected:G});V(D);var l;(l=L.callback)==null||l.call(L,D,G)}}}
var N=_.t2("chip-view-model"),S=function(){var G,D;return!!(((G=L.selected)==null?void 0:G.call(L))!==void 0?(D=L.selected)==null?0:D.call(L):W().selected)},u=_.O(_.i4(L.data)),T=u.next().value;
u=u.next().value;var W=T,V=u,M=_.OS(DBL,function(){return L.data().chipEntityKey||""});
return _.g("chip-view-model",{class:"ytChipViewModelHost",el:N},_.g($E0,{data:function(){var G,D=Object.assign({},W(),{selected:S()}),l=M(),v=(G=L.disableDeselection)==null?void 0:G.call(L);a:switch(D.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":G=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":G=3;break a;default:G=0}return{text:(l==null?void 0:l.text)||D.text,state:D.disabled?1:D.selected?0:2,type:G,onTap:vnA(D,N,Z,v),
accessibilityLabel:D.accessibilityLabel||D.text}}}))},"Dd");
_.Ek0.idomCompat={callbacks:{callback:!0}};_.P$O=_.p(function(L){var Z=_.OS($Bx,function(){var W;return(W=L.data())==null?void 0:W.chipBarStateEntityKey}),N=function(){return L.data().disableDeselection},S=_.O(_.i4(function(){var W;
if(((W=Z())==null?void 0:W.selectedIndex)!=void 0)return Z().selectedIndex;var V,M;W=_.O(((V=L.data())==null?void 0:(M=V.chips)==null?void 0:M.entries())||[]);for(V=W.next();!V.done;V=W.next()){V=_.O(V.value);M=V.next().value;V=V.next().value;var G=void 0;if((G=_.n(V,_.Sh))==null?0:G.selected)return M}return-1})),u=S.next().value,T=S.next().value;
return _.g("chip-bar-view-model",{class:_.qg("ytChipBarViewModelHost",L.className),role:"tablist"},_.g(_.bj,{data:function(){return L.data().chips}},{chipViewModel:function(W,V){return _.g("div",{class:"ytChipBarViewModelChipWrapper"},_.g(_.Ek0,{data:W.data,
selected:function(){return V()===u()},
callback:function(M,G){M=!!G;G=V();T(M?G:-1);var D,l=(D=L.data())==null?void 0:D.chipBarStateEntityKey;l&&M&&_.sk(_.Mr("chipBarStateEntity",l,{key:l,selectedIndex:G}))},
disableDeselection:L.disableDeselection||N}))}}))},"Ed");_.CY(_.P$O,"chip-bar-view-model",{props:{data:_.zl,className:_.zl,disableDeselection:_.zl}});_.pGN=_.p(function(L){var Z=L.data;L={};return _.g("divider-view-model",{class:_.qg("dividerViewModelHost",(L.dividerViewModelInsetThinPadding=function(){return Z().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},L))},_.g("div",{class:_.qg("dividerViewModelBaseDivider",function(){return onP(Z().dividerStyle)}),
style:_.u4({"background-color":function(){return Z().backgroundColor?_.vq(Z().backgroundColor):void 0}})}))},"Fd");
_.pGN.idomCompat=!0;_.CY(_.pGN,"divider-view-model",{props:{data:_.LK}});var Tn=new Map,uF=new Map,nn0=0,tZ;var Y7L=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],dBw={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var zqY,mnh;zqY=function(L){return function(Z){return function(){return(Z==null?void 0:Z())!==void 0?String(Z())+L:void 0}}};
_.Wt=zqY("px");mnh=zqY("s");var J_L=vmx(function(L){return L.targetGroupId}).useUpdatableData;_.r_q=_.p(function(L){function Z(L1){return function(){var Fw=U().numItemsPerGridRow,GB=L1()*Fw;Fw=GB+Fw;var Yt,lH;return(lH=(Yt=S().contents)==null?void 0:Yt.slice(GB,Fw))!=null?lH:[]}}
var N=_.Ek(L,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),S=N.data,u=N.layoutContainerWidth,T=N.shouldUseOwnContainerSize,W=N.marginSettings,V=Sss(),M=_.O(J_L(function(){var L1,Fw;return{targetGroupId:(L1=S().targetingContext)==null?void 0:(Fw=L1.targetGroupId)==null?void 0:Fw[0]}})).next().value;
N=_.O(_.nh(!0,void 0,"Qe9wde"));var G=N.next().value,D=N.next().value,l=function(){var L1,Fw=(L1=_.n(S().showMoreButton,_.NU))==null?void 0:L1.trackingParams;Fw&&_.U$(_.tC(),Fw);D(!1)},v=function(){var L1,Fw=(L1=_.n(S().showLessButton,_.NU))==null?void 0:L1.trackingParams;
Fw&&_.U$(_.tC(),Fw);D(!0)};
N=_.t2("grid-shelf-view-model");var R=_.h7t(N,{canHaveZeroSize:!1}),K=function(){var L1;return(L1=S().contentAspectRatio)!=null?L1:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},U=_.wJ(function(){var L1=T()&&R.width()>0?R.width()||u():u(),Fw,GB=(Fw=L.data())==null?void 0:Fw.responsiveContainerConfiguration;
L1=_.ym({containerWidth:L1,sizing:GB?wm(GB==null?void 0:GB.responsiveSize):"EXTRA_COMPACT",marginSettings:W(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:L1.maxContainerWidth,numItemsPerGridRow:L1.numItems,contentPadding:T()?L1.margin:L1.contentMargin,itemWidth:L1.itemWidth,itemMargin:L1.gutter/2}},void 0,"mF84T"),d=function(){if(S().enableVerticalExpansion){if(G())return h();
var L1,Fw,GB=(Fw=(L1=S().contents)==null?void 0:L1.length)!=null?Fw:0;return Math.ceil(GB/U().numItemsPerGridRow)}return U().numItemsPerGridRow<=2?2:1},h=function(){var L1;
return Math.ceil(((L1=S().minCollapsedItemCount)!=null?L1:1)/U().numItemsPerGridRow)},E=function(){return S().enableVerticalExpansion&&S().showLessButton&&!G()&&d()>h()},A=function(){var L1,Fw;
return S().enableVerticalExpansion&&S().showMoreButton&&G()&&((Fw=(L1=S().contents)==null?void 0:L1.length)!=null?Fw:0)>U().numItemsPerGridRow*h()},J=function(){return!E()},C=function(){return!A()},X={};
return _.g("grid-shelf-view-model",{class:_.qg("ytGridShelfViewModelHost",L.className,(X.ytGridShelfViewModelHostHasBottomButton=function(){return E()||A()},X.ytGridShelfViewModelHostIsDismissed=function(){var L1,Fw=(L1=M())!=null?L1:{};
L1=Fw.behavior;var GB=Fw.isDismissed,Yt=Fw.stamperContextTargetId;Fw=Fw.stamperIndex;if(!(_.c("mweb_see_fewer_shorts_group_dismissal")&&GB&&L1&&Yt))return!1;var lH;GB=V;for(var RF,jf,f1=((RF=GB)==null?0:RF.targetId)?_.JW((jf=GB)==null?void 0:jf.targetId):void 0;((lH=GB)==null?0:lH.parent)&&f1!==Yt;)GB=GB.parent,jf=RF=void 0,f1=((RF=GB)==null?0:RF.targetId)?_.JW((jf=GB)==null?void 0:jf.targetId):void 0;lH=f1===Yt?GB:void 0;if(!lH)return!1;var n0;Yt=lH==null?void 0:(n0=lH.stamperIndex)==null?void 0:
n0.call(lH);return L1==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||L1==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Yt!=null&&Fw!=null&&Yt>Fw},X)),
el:N,style:_.u4({"margin-left":(0,_.Wt)(function(){return U().contentPadding}),
"margin-right":(0,_.Wt)(function(){return U().contentPadding})})},_.g(_.F,{cond:function(){return _.n(S().header,Dkl)},
then:function(L1){return _.g(_.f$,{data:L1,disableHorizontalPadding:!0})}}),_.g("div",null,_.g(_.ju,{each:function(){return Array(d())}},function(L1,Fw){return _.g(C$Y,{className:L.className,
items:Z(Fw),responsiveGridShelfLayout:U,contentAspectRatio:K})})),_.g("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.g(_.bj,{data:function(){return S().showMoreButton}},{buttonViewModel:function(L1){return _.g("div",{hidden:C},_.g(_.$X,{data:L1.data,
onClick:l}))}}),_.g(_.bj,{data:function(){return S().showLessButton}},{buttonViewModel:function(L1){return _.g("div",{hidden:J},_.g(_.$X,{data:L1.data,
onClick:v}))}})))},"Hd");
_.r_q.idomCompat=!0;var C$Y=_.p(function(L){var Z=L.items;var N=L.responsiveGridShelfLayout;var S=L.contentAspectRatio;L=L.className;var u=_.t2("div");cRB(u,function(){a:{var W=u.value;for(var V=Z(),M=[],G=0;G<V.length;G++){var D=_.n(V[G],ryO);if(!D||D==null||!D.inlinePlayerData){W=null;break a}var l=W.children.item(G);if(!l){W=null;break a}M.push({thumbnailElement:l,videoData:D})}W={gridVideoPreviewData:{gridItems:M}}}return W});
var T=(0,_.Wt)(function(){return-N().itemMargin});
return _.g("div",{el:u,class:_.qg("ytGridShelfViewModelGridShelfRow",L),style:_.u4({"margin-left":T,"margin-right":T})},_.g(_.bj,{data:Z,replacementWrapper:function(W){return _.g(QJY,{responsiveGridShelfLayout:N},W)}},{shortsLockupViewModel:function(W){return _.g(QJY,{responsiveGridShelfLayout:N},_.g(on5,{data:W.data,
aspectRatio:function(){return S()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.c("mweb_enable_one_line_title_on_shorts")?1:_.c("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(W){return _.g(QJY,{responsiveGridShelfLayout:N},_.g(_.nN,{data:W.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Id"),QJY=_.p(function(L){return _.g("div",{style:_.u4({width:(0,_.Wt)(function(){return L.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+L.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},L.children)},"Jd");
_.r_q.idomCompat=!0;_.CY(_.r_q,"grid-shelf-view-model",{props:{data:_.LK,layoutContainerWidth:_.LK,shouldUseOwnContainerSize:_.LK,marginSettings:_.LK,className:_.LK}});_.XGt=_.p(function(L){var Z=_.O(_.nh(!1,void 0,"FVl30c")),N=Z.next().value,S=Z.next().value;Z={};return _.g("yt-alert-banner-view-model",{class:_.qg("ytAlertBannerViewModelHost",L.className,function(){var u;a:switch((u=L.data())==null?void 0:u.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":u="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":u="ytAlertBannerViewModelWarning";break a;default:u="ytAlertBannerViewModelInformational"}return u},(Z.ytAlertBannerViewModelDismissed=
N,Z.ytAlertBannerViewModelFullbleed=L.fullbleed,Z.ytAlertBannerViewModelNarrow=L.narrow,Z.ytAlertBannerViewModelIsInRichGrid=L.isInRichGrid,Z))},_.g(_.F,{cond:function(){var u;
return!((u=L.data())==null?0:u.hideIcon)},
then:function(){return _.g("div",{class:"ytAlertBannerViewModelIcon"},_.g(_.T0,{icon:function(){return"info_circle"}}))}}),_.g("div",{class:"ytAlertBannerViewModelOuterContainer"},_.g("div",{class:"ytAlertBannerViewModelContainer"},_.g("div",{class:"ytAlertBannerViewModelContent"},_.g("div",{class:"ytAlertBannerViewModelHeading"},_.g(_.qv,{text:function(){var u;
return(u=L.data())==null?void 0:u.heading}})),_.g("div",{class:"ytAlertBannerViewModelBody"},_.g(_.qv,{text:function(){var u;
return(u=L.data())==null?void 0:u.body}})))),_.g(_.bj,{data:function(){var u;
return(u=L.data())==null?void 0:u.actionButton}},{buttonViewModel:function(u){return _.g(_.$X,{data:u.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.g(_.bj,{data:function(){var u;
return(u=L.data())==null?void 0:u.dismissButton}},{buttonViewModel:function(u){return _.g(_.$X,{data:u.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var T;((T=L.data())==null?0:T.disableLocalDismissBehavior)||S(!0)}})}}))},"Kd");_.CY(_.XGt,"yt-alert-banner-view-model",{props:{data:_.LK,fullbleed:_.LK,narrow:_.LK,isInRichGrid:_.LK,className:_.LK}});var A_5;_.Hps=_.p(function(L){return _.g("basic-content-view-model",{class:_.qg("ytBasicContentViewModelHost",_.jA(L.className))},_.g(_.F,{cond:function(){return L.data().headline},
then:function(Z){return _.g("div",{class:"ytBasicContentViewModelHeadline"},_.g(_.qv,{text:Z}))}}),_.g(_.ju,{each:function(){return L.data().paragraphs||[]},
keyBy:"INDEX"},function(Z){return _.g("div",{class:"ytBasicContentViewModelParagraph"},_.g(_.F,{cond:function(){var N=Z();return!!(N.header||N.customHeader||N.headline)},
then:function(){return _.g(A_5,{paragraph:Z})}}),_.g(_.F,{cond:function(){return Z().asset||Z().text},
then:function(){return _.g("div",{class:"ytBasicContentViewModelParagraphContent"},_.g(_.F,{cond:function(){return Z().asset},
then:function(N){return _.g("div",{class:"ytBasicContentViewModelParagraphAsset"},_.g(_.bj,{data:N},{contentPreviewImageViewModel:_.$g}))}}),_.g(_.F,{cond:function(){return Z().text},
then:function(N){return _.g("div",{class:"ytBasicContentViewModelParagraphText"},_.g(_.qv,{text:N}))}}))}}))}))},"Ld");
A_5=_.p(function(L){var Z=L.paragraph;return _.g(_.F7,null,_.g(_.F,{cond:function(){return Z().headline},
then:function(N){return _.g(_.qv,{text:N,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.g(_.bj,{data:function(){return Z().header||Z().customHeader}},{sectionHeaderViewModel:function(N){return _.g(_.f$,{data:N.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Md");var Buq=_.p(function(L){function Z(){var R,K;M((K=(R=u)==null?void 0:R.isKeyBoardInUse())!=null?K:!1)}
function N(){M(!1)}
function S(){var R;return V()?(R=L.focusedClassName)==null?void 0:R.call(L):""}
var u=_.GR().resolve(_.gv(_.VG)),T=_.O(_.nh(!1,void 0,"zbdw0d")),W=T.next().value;T=T.next().value;var V=W,M=T,G=function(){var R,K;return((R=L.toggleable)==null?0:R.call(L))?(K=L.toggled)==null?void 0:K.call(L):void 0},D=_.Z9(function(R){var K,U=(K=L.command)==null?void 0:K.call(L);
U&&_.GR().resolve(_.$s).resolveCommand(U);var d;(d=L.onClick)==null||d.call(L,R)}),l=_.Z9(Z),v=_.Z9(N);
return _.g(_.F,{cond:function(){var R;if(R=L.command){R=L.command();R=FNH(R);var K=R.href;R=!(!R.navigatingCommand||!K)}return R},
then:function(){return _.g(_.bM,Object.assign({},{command:L.command,style:L.style,ariaDescribedby:L.ariaDescribedby,ariaHidden:L.ariaHidden,ariaLabel:L.ariaLabel,ariaLabelledby:L.ariaLabelledby,ariaSelected:L.ariaSelected,disabled:L.disabled,dir:L.dir,tabIndex:L.tabIndex,target:L.target,title:L.title,onClick:L.onClick},{className:_.qg("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",L.className,function(){return S()}),
onFocusin:Z,onFocusout:N,ariaCurrent:function(){var R,K;return(K=(R=L.ariaCurrent)==null?void 0:R.call(L))!=null?K:G()}}),L.children)},
else:function(){return _.g("button",{"on:click":D,"on:focusin":l,"on:focusout":v,class:_.qg("ytButtonOrAnchorHost","ytButtonOrAnchorButton",L.className,function(){return S()}),
style:L.style,"aria-describedby":L.ariaDescribedby,"aria-hidden":L.ariaHidden,"aria-label":L.ariaLabel,"aria-labelledby":L.ariaLabelledby,"aria-pressed":G,dir:L.dir,disabled:L.disabled,tabindex:L.tabIndex,title:L.title},L.children)}})},"Nd");var xnq=_.p(function(L){L=_.Ek(L,{disabled:!1});var Z=L.active,N=L.disabled;L={};L=_.qg("ytSwitchShapeTrack",(L.ytSwitchShapeTrackActive=function(){return Z()},L.ytSwitchShapeTrackDisabled=function(){return N()},L));
var S={};S=_.qg("ytSwitchShapeKnob",(S.ytSwitchShapeKnobActive=function(){return Z()},S));
return _.g("switch-shape",{class:"ytSwitchShapeHost"},_.g("div",{class:L}),_.g("div",{class:S}))},"Od");var qPI=_.p(function(L){var Z=_.Ek(L,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),N=Z.data;L=Z.className;var S=Z.handleOnTapEventInParent,u=Z.parentActive,T=Z.onTap;Z=_.O(_.i4(function(){var v;return(v=u())!=null?v:N().switchedOnByDefault||!1}));
var W=Z.next().value,V=Z.next().value,M=function(){return N().isDisabled},G=_.t2("button");
Z=_.Z9(function(v){return v.key==="Enter"?(v.preventDefault(),G.value.click(),!1):!0});
var D=_.Z9(function(v){if(N().handleOnTapEventInParent||S())return!0;if(M())return!1;if(T)return T(v),!0;j$H(N(),W(),v);V(!W());return!1}),l={};
l=_.qg("ytSwitchButtonViewModelButton",(l.ytSwitchButtonViewModelTappable=function(){return!M()},l));
return _.g("switch-button-view-model",{class:_.qg("ytSwitchButtonViewModelHost",L)},_.g("button",{el:G,class:l,"on:click":D,"on:keydown":Z,"aria-label":function(){return W()?N().a11yLabelSwitchedOn:N().a11yLabelSwitchedOff},
"aria-checked":W,"aria-disabled":M,role:"switch"},_.g(xnq,{active:W,disabled:M})))},"Pd");var LTV=_.p(function(L){var Z=L.data;var N=L.isLeading;var S=L.hideSelectionTextChevron;var u=L.isToggled;var T=function(){return N()?Z().leadingImage:Z().trailingImage},W=function(){a:switch(Z().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var D="expand_more";
break a;default:D="chevron_right"}return D};
L={};var V=_.qg("yt-list-item-view-model__image-container",(L["yt-list-item-view-model__leading"]=N,L["yt-list-item-view-model__trailing"]=function(){return!N()},L)),M=_.qg("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
L={};var G=_.qg("yt-list-item-view-model__accessory",(L["yt-list-item-view-model__leading"]=N,L["yt-list-item-view-model__trailing"]=function(){return!N()},L));
return _.g(_.F,{cond:function(){var D=Z(),l=N();return!!(l&&(D.leadingImage||D.leadingAccessory)||!l&&(D.trailingImage||D.trailingButton||D.trailingButtons||D.selectionText))},
then:function(){return _.g(_.F7,null,_.g(_.F,{cond:T,then:function(D){return _.g("div",{class:V,"aria-hidden":"true"},_.g(_.ji,{data:D,alt:"",preserveWidth:!0,preserveHeight:!0,className:M,isToggled:u}))}}),_.g(_.F,{cond:function(){return N()&&Z().leadingAccessory},
then:function(){return _.g("div",{class:V},_.g(_.bj,{data:function(){return Z().leadingAccessory}},{avatarViewModel:function(D){return _.g(_.JO,{data:D.data,
avatarButtonCustomClassName:M})},
collectionThumbnailViewModel:function(D){return _.g(FqQ,{data:D.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.g(_.F,{cond:function(){return!N()&&Z().trailingButton},
then:function(){return _.g("div",{class:"yt-list-item-view-model__button-container"},_.g(_.bj,{data:function(){return Z().trailingButton}},{buttonViewModel:function(D){return _.g(_.$X,{data:D.data,
className:G})}}))}}),_.g(_.F,{cond:function(){var D;
return!N()&&((D=Z().trailingButtons)==null?void 0:D.buttons)},
then:function(){return _.g("div",{class:"yt-list-item-view-model__button-container"},_.g(_.bj,{data:function(){var D;return(D=Z().trailingButtons)==null?void 0:D.buttons}},{buttonViewModel:function(D){return _.g(_.$X,{data:D.data,
className:G})},
accountLinkButtonViewModel:function(D){return _.g(i_V,{data:D.data,className:G})},
switchButtonViewModel:function(D){return _.g(qPI,{data:D.data,className:G})},
subscribeButtonViewModel:function(D){return _.g(_.Jl,{data:D.data,isOverlay:!1,animateWidth:!1,className:G})},
toggleButtonViewModel:function(D){return _.g(_.sj,{data:D.data,className:G})}}))}}),_.g(_.F,{cond:function(){return!N()&&!!Z().selectionText},
then:function(){return _.g(_.F7,null,_.g(_.qv,{text:function(){return Z().selectionText},
className:_.qg("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.g(_.F,{cond:function(){return!(S==null?0:S())},
then:function(){return _.g(_.T0,{icon:W,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Qd");var Za5=_.p(function(L){var Z=L.data;return _.g(_.F,{cond:function(){return Z().title||Z().subtitle},
then:function(){return _.g("div",{class:"yt-list-item-view-model__text-wrapper"},_.g(_.F,{cond:function(){return Z().title},
then:function(N){return _.g("div",{class:"yt-list-item-view-model__title-wrapper"},_.g(_.qv,{text:N,className:"yt-list-item-view-model__title"}))}}),_.g(_.F,{cond:function(){return Z().subtitle},
then:function(N){return _.g(_.qv,{text:N,className:"yt-list-item-view-model__subtitle"})}}))}})},"Rd");var NbV=_.p(function(L){var Z=L.data;var N=L.hideSelectionTextChevron;var S=L.TrailingAccessory;var u=L.isToggled;var T=L.disabled;var W=L.isSelectItem;var V=L.isCompact;var M=L.inPopup;var G=L.disableHorizontalPadding;var D=L.isTappableWithoutSelect;var l=L.useButtonOrAnchor;var v=L.onTap;var R=function(){return _.g(Za5,{data:Z,onTap:v,useButtonOrAnchor:l,isTappableWithoutSelect:D,isToggled:u})};
L={};return _.g("div",{class:_.qg("yt-list-item-view-model__label",(L["yt-list-item-view-model__container"]=function(){return!(W==null?0:W())},L["yt-list-item-view-model__container--disabled"]=function(){return!!Z().isDisabled||!(T==null||!T())},L["yt-list-item-view-model__container--has-subtitle"]=function(){return!!Z().subtitle},L["yt-list-item-view-model__container--compact"]=V,L["yt-list-item-view-model__container--tappable"]=D,L["yt-list-item-view-model__container--in-popup"]=M,L["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(G==null?void 0:G())&&!(W==null?0:W())},L))},_.g(LTV,{data:Z,
isLeading:!0,hideSelectionTextChevron:N,isToggled:u}),_.g(_.F,{cond:function(){return(l==null?void 0:l())&&(D==null?void 0:D())},
then:function(){return _.g(Buq,{command:function(){return _.ob(Z().rendererContext)},
onClick:v,className:"yt-list-item-view-model__button-or-anchor",toggleable:u!==void 0,toggled:u},_.g(R,null))},
else:function(){return _.g(R,null)}}),_.g(_.F,{cond:function(){return!!S},
then:function(){return _.g("div",{class:"yt-list-item-view-model__trailing"},S&&_.g(S,null))},
else:function(){return _.g(LTV,{data:Z,isLeading:!1,hideSelectionTextChevron:N,isToggled:u})}}))},"Sd");var ia5=_.p(function(L){var Z=_.Ek(L,{checked:!1});L=Z.name;var N=Z.onChange,S=Z.onClick,u=Z.checked,T=Z.labelRenderable,W=Z.hasLeadingLabel,V=Z.labelClass,M=Z.isCompact,G=Z.selectElementClass;Z=Z.disableHorizontalPadding;var D="checkbox"+_.st(_.C$),l=_.Z9(function(K){S==null||S(K);return!1}),v=_.Z9(function(K){N==null||N(K);
return!1}),R={};
return _.g("checkbox-shape",null,_.g("label",{class:_.qg("ytCheckboxShapeHost",V,(R.ytCheckboxShapeHostCompact=M,R.ytCheckboxShapeDisableHorizontalPadding=Z,R))},_.g("input",{class:"ytCheckboxShapeInput",id:D,checked:u,name:L,type:"checkbox","prop:checked":u,"on:change":v,"on:click":l}),_.g(_.F,{cond:function(){return!(W==null?0:W())},
then:function(){return _.g(SDM,{isLeading:!0,selectElementClass:G})}}),_.g(_.F,{cond:function(){return!!T},
then:function(){return _.g("div",{class:"ytCheckboxShapeLabel"},T==null?void 0:T())}}),_.g(_.F,{cond:W,
then:function(){return _.g(SDM,{isLeading:!1,selectElementClass:G})}})))},"Td");
ia5.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var SDM=_.p(function(L){var Z=L.selectElementClass;L={};return _.g("div",{class:_.qg("ytCheckboxShapeCheckbox",Z,(L.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(Z==null?0:Z())},L)),
"aria-hidden":"true"},_.g(_.T0,{icon:_.c("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.g(_.T0,{icon:_.c("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Ud");_.rU=_.p(function(L){var Z=L.name;var N=L.onChange;var S=L.onClick;var u=L.checked;var T=L.labelRenderable;var W=L.useCheckIcon;var V=L.hasLeadingLabel;var M=L.labelClass;var G=L.isCompact;var D=L.selectElementClass;var l=L.ariaLabel;L=L.className;var v="radio"+_.st(_.C$),R=_.t2("input"),K=_.Z9(function(X){R.value.checked=!(u==null||!u());N==null||N(X);return!1}),U=_.Z9(function(X){S==null||S(X);
return!1}),d=_.Z9(function(X){_.c("enable_ios_webview_radio_button_responsiveness")&&(X.preventDefault(),R.value.click())}),h=_.O(_.nh(!1,void 0,"TcCZlf")),E=h.next().value,A=h.next().value;
h=_.Z9(function(){var X;((X=_.GR().resolve(_.gv(_.VG)))==null?0:X.isKeyBoardInUse())&&A(!0)});
var J=_.Z9(function(){A(!1)}),C={};
return _.g("radio-shape",{class:_.qg("yt-radio-shape",L)},_.g("input",{el:R,class:"yt-radio-shape__input",id:v,"prop:checked":u,name:Z,type:"radio","on:change":K,"on:click":U,"aria-label":l,"on:focusin":h,"on:focusout":J}),_.g("label",{class:_.qg("yt-radio-shape__label-container",M,(C["yt-radio-shape--compact"]=G,C["yt-radio-shape__label-container--keyboard-focused"]=E,C)),for:v,"on:click":d},_.g(_.F,{cond:function(){return!(V==null?0:V())},
then:function(){return _.g(u_0,{checked:u,useCheckIcon:W,isLeading:!0,selectElementClass:D})}}),_.g(_.F,{cond:function(){return!!T},
then:function(){return _.g("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(l==null?0:l())?"true":"false"}},T==null?void 0:T())}}),_.g(_.F,{cond:V,
then:function(){return _.g(u_0,{checked:u,useCheckIcon:W,isLeading:!1,selectElementClass:D})}})))},"Vd");
_.rU.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var u_0=_.p(function(L){var Z=L.useCheckIcon;var N=L.selectElementClass;L=function(){return(Z==null?0:Z())?"CHECK":_.c("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var S={};return _.g("div",{class:_.qg("yt-radio-shape__radio",N,(S["yt-radio-shape__radio--check-icon"]=Z,S["yt-radio-shape__radio--radio-default-style"]=function(){return!(N==null?0:N())},S)),
"aria-hidden":"true"},_.g(_.T0,{icon:L}),_.g(_.T0,{icon:L,active:function(){return!(Z==null?0:Z())}}))},"Wd");_.QO=_.p(function(L){var Z=L.data;var N=L.isMenuItem;var S=L.isCompact;var u=L.onTap;var T=L.trailingAccessory;var W=L.hideSelectionTextChevron;var V=L.disabled;var M=L.inPopup;var G=L.disableHorizontalPadding;var D=L.isOverlay;var l=L.isToggled;var v=L.ariaLabel;L=L.ariaPressed;var R=!_.c("web_enable_killswitch_for_selectable_list_item_on_tap_fix"),K=_.VB(function(f1){return pgF(Z(),f1)}),U=function(){return _.c("enable_web_shorts_captions_language_command")||_.c("web_shorts_audio_track_picker")||
Z().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},d=function(){return U()?Object.assign({},Z(),K().data):Z()},h=_.mBB(function(){return d().rendererContext}),E=function(){return!(d().isSelected===void 0||!d().selectionStyle||d().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},A=function(){return(_.Rb(d().rendererContext)||u)&&!E()},J={},C=_.qg("yt-list-item-view-model__container",(J["yt-list-item-view-model__container--tappable"]=function(){return _.Rb(d().rendererContext)||
E()},J["yt-list-item-view-model__container--compact"]=S,J["yt-list-item-view-model__container--in-popup"]=M,J["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(G==null?void 0:G())&&E()},J)),X=function(){return d().leadingImage||d().leadingAccessory},L1=_.qg("yt-list-item-view-model__image-container",function(){return X()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
J=_.Z9(function(f1){var n0;if(n0=R)n0=d().selectionStyle,n0=n0==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||n0==="LIST_ITEM_SELECTION_STYLE_RADIO"||n0==="LIST_ITEM_SELECTION_STYLE_DEFAULT";n0||jf||u==null||u(f1)});
var Fw=_.pjs(),GB=_.O(_.nh(!1,void 0,"q9Dj4b")),Yt=GB.next().value,lH=GB.next().value,RF=function(){return _.g(NbV,{data:d,hideSelectionTextChevron:W,TrailingAccessory:T,isToggled:l,disabled:V,isSelectItem:E,isCompact:S,inPopup:M,disableHorizontalPadding:G,isTappableWithoutSelect:A,useButtonOrAnchor:jf,onTap:u})},jf=_.c("web_button_or_anchor_list_item");
GB={};return _.g("yt-list-item-view-model",{el:_.P9(_.cT(function(){return d().rendererContext},void 0,void 0,jf?["A".toString(),
"BUTTON".toString()]:[]),jf&&u?z7f(u):void 0,Z_F(function(){return A==null?void 0:A()},{focusin:function(){var f1;
((f1=_.GR().resolve(_.gv(_.VG)))==null?0:f1.isKeyBoardInUse())&&lH(!0)},
focusout:function(){lH(!1)}})),
class:_.qg("yt-list-item-view-model",(GB["yt-list-item-view-model--is-overlay"]=D,GB["yt-list-item-view-model--keyboard-focused"]=Yt,GB["yt-list-item-view-model--hidden"]=function(){return U()?K().isHidden:!1},GB)),
role:function(){return(N==null?0:N())?"menuitem":"listitem"},
tabindex:function(){var f1=A();f1=jf?void 0:u||f1?0:void 0;return f1},
"on:keydown":Fw,"on:click":J,"aria-label":function(){var f1;return(v==null?void 0:v())||((f1=h())==null?void 0:f1.label)},
"aria-pressed":L},_.g(_.F,{cond:E,then:function(){return _.g(_.EM,null,_.g(_.hh,{when:function(){return d().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.g(ia5,{labelRenderable:RF,
isCompact:S,checked:function(){return d().isSelected},
hasLeadingLabel:function(){return!!X()},
labelClass:C,selectElementClass:L1,disableHorizontalPadding:G,onClick:R?u:void 0})}),_.g(_.hh,{when:function(){return d().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.g(_.rU,{labelRenderable:RF,
isCompact:S,checked:function(){return d().isSelected},
hasLeadingLabel:function(){return!!X()},
labelClass:C,selectElementClass:L1,onClick:R?u:void 0})}),_.g(_.hh,{when:function(){return d().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.g(_.rU,{labelRenderable:RF,
isCompact:S,checked:function(){return d().isSelected},
hasLeadingLabel:function(){return!!X()},
labelClass:C,selectElementClass:L1,useCheckIcon:!0,onClick:R?u:void 0})}),_.g(_.sM,null,RF))},
else:RF}))},"Xd");
_.QO.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var Xs;_.A8=_.p(function(L){var Z=function(){var S,u;return((S=L.data().linearLayoutContainerConfiguration)==null?void 0:S.flexDirection)==="FLEX_DIRECTION_ROW"||((u=L.data().linearLayoutContainerConfiguration)==null?void 0:u.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"},N=function(){return L.data().linearLayoutContainerConfiguration};
return _.g("yt-linear-layout-view-model",{class:_.qg("ytLinearLayoutViewModelHost",function(){a:switch(L.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var S="ytLinearLayoutViewModelHorizontal";break a;default:S="ytLinearLayoutViewModelVertical"}return S},function(){var S=L.data().linearLayoutContainerConfiguration;
return S?[rRx(S==null?void 0:S.flexDirection),Q$t(S==null?void 0:S.justifyContent),Xgw(S==null?void 0:S.alignItems)].join(" "):""})},_.g(_.bj,{data:function(){return L.data().items}},{lockupViewModel:function(S){return _.g(Xs,{linearLayoutContainerConfiguration:N,
className:"ytLinearLayoutViewModelLockupItem"},_.g(_.nN,{data:S.data,containerType:function(){return Z()?2:3},
sizing:"COMPACT",thumbnailFixedWidth:function(){return Z()?void 0:"33%"}}))},
basicContentViewModel:function(S){return _.g(Xs,{linearLayoutContainerConfiguration:N},_.g(_.Hps,{data:S.data}))},
linearLayoutViewModel:function(S){return _.g(Xs,{linearLayoutContainerConfiguration:N},_.g(_.A8,{data:S.data}))},
thumbnailViewModel:function(S){return _.g(Xs,{linearLayoutContainerConfiguration:N,className:"ytLinearLayoutViewModelThumbnailItem"},_.g(_.b7,{data:S.data}))},
descriptionPreviewViewModel:function(S){return _.g(Xs,{linearLayoutContainerConfiguration:N},_.g(_.K$,{data:S.data}))},
listItemViewModel:function(S){return _.g(Xs,{linearLayoutContainerConfiguration:N},_.g(_.QO,{data:S.data}))}}))},"Yd");
Xs=_.p(function(L){return _.g("div",{style:function(){var Z;var N=Cb1((Z=L.linearLayoutContainerConfiguration)==null?void 0:Z.call(L));return _.u4(N)()},
class:L.className},L.children)},"Zd");_.CY(_.A8,"yt-linear-layout-view-model",{props:{data:_.LK}});_.He=_.p(function(L){var Z=L.data;var N=L.callback;var S=L.selectionBehavior;var u=L.disableChipsScrollAnimation;var T=_.OV("div");L=_.O(_.nh(!0,void 0,"aUEsOc"));var W=L.next().value,V=L.next().value;L=_.O(_.nh(!1,void 0,"V0aKld"));var M=L.next().value,G=L.next().value,D=!1,l=0;_.zp(function(){V(K());G(U())});
L=_.O(_.i4(function(){var L1={};return Z().autoselectedChipIndex!=null?(L1[Z().autoselectedChipIndex]=!0,L1):{}}));
var v=L.next().value,R=L.next().value,K=function(){var L1=T.value;return L1==null||L1.scrollLeft-1<=0},U=function(){var L1=T.value;
return L1==null?!1:L1.scrollLeft+1>=(L1==null?NaN:L1.scrollWidth)-(L1==null?NaN:L1.clientWidth)},d=function(){return Z().isHorizontallyScrollable},h=function(L1){T.value!=null&&(_.X7("HTML_DIR")==="rtl"&&(L1=-L1),T.value.scrollBy({left:L1,
behavior:(u==null?0:u())?"instant":"smooth"}))},E=function(){h(-320)},A=function(){h(320)},J=_.Z9(function(L1){D=!0;
l=L1.clientX}),C=_.Z9(function(L1){if(D){L1=L1.clientX;
var Fw=L1-l;l=L1;var GB;(GB=T.value)==null||GB.scrollBy({left:-Fw})}}),X=_.Z9(function(){var L1=K(),Fw=U();
L1!==W()&&V(L1);Fw!==M()&&G(Fw)});
_.GD("pointerup",function(){D&&(D=!1)});
return _.g("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.g(_.vA,{contentId:function(){return Z().contentId},
useModernStyle:!0},function(){var L1={},Fw={};return _.g("div",null,_.g(_.F,{cond:function(){return Z().title},
then:function(){return _.g("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.g("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return Z().title}),_.g(_.bj,{data:function(){return Z().overflowButton}},{buttonViewModel:_.$X}))}}),_.g("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.g(_.F,{cond:function(){return Z().previousButton},
then:function(){var GB={};return _.g("div",{class:_.qg("ytChipsShelfViewModelLeftArrowContainer",(GB.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return W()},GB))},_.g(_.bj,{data:function(){return Z().previousButton}},{buttonViewModel:function(Yt){return _.g(_.$X,{data:Yt.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:E})}}))}}),_.g("div",{el:T,
"on:pointerdown":J,"on:pointermove":C,"on:scroll":X,class:_.qg("ytChipsShelfViewModelChipsScrollContainer",(L1.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=d,L1))},_.g("div",{class:_.qg("ytChipsShelfViewModelChipsContainer",(Fw.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=d,Fw.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,Fw)),role:"tablist"},_.g(_.bj,{data:function(){return Z().contents}},{chipViewModel:function(GB,Yt){return _.g("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.g(_.Ek0,{data:GB.data,
callback:function(lH,RF){var jf=Yt(),f1,n0=(f1=S==null?void 0:S())!=null?f1:0;n0===1||n0===2?(f1={},R((f1[jf]=RF,f1))):(f1={},R(Object.assign({},v(),(f1[jf]=RF,f1))));N==null||N(lH,RF,jf)},
disableDeselection:function(){return(S==null?void 0:S())===1},
selected:function(){return!!v()[Yt()]}}))}}))),_.g(_.F,{cond:function(){return Z().nextButton},
then:function(){var GB={};return _.g("div",{class:_.qg("ytChipsShelfViewModelRightArrowContainer",(GB.ytChipsShelfViewModelRightArrowContainerIsHidden=M,GB))},_.g(_.bj,{data:function(){return Z().nextButton}},{buttonViewModel:function(Yt){return _.g(_.$X,{data:Yt.data,
className:"ytChipsShelfViewModelRightArrow",onClick:A})}}))}})))}))},"ae");
_.He.idomCompat={callbacks:{callback:!0}};_.CY(_.He,"chips-shelf-view-model",{props:{data:_.LK,callback:_.zl,selectionBehavior:_.LK,disableChipsScrollAnimation:_.LK}});_.CY(_.p(function(L){return _.g("yt-comment-filter-context-view-model",{class:_.qg("ytCommentFilterContextHost",L.className)},_.g(_.qv,{text:function(){return L.data().text}}))},"be"),"yt-comment-filter-context-view-model",{props:{data:_.LK,
className:_.zl}});_.TbI=_.p(function(L){var Z=L.data;var N=L.onTap;var S=L.onSwitch;var u=L.overrideDisabled;L=L.disableHorizontalPadding;var T=_.O(_.i4(function(){var R;return((R=Pbf(l()))==null?void 0:R.switchedOnByDefault)||!1})),W=T.next().value,V=T.next().value;
T=_.O(_.nh(!1,void 0,"ZHBkbb"));var M=T.next().value,G=T.next().value,D=_.c("web_button_or_anchor_list_item"),l=function(){var R;if(!(R=Z().switchButton)){var K=Z();R=u==null?void 0:u();K={switchOnCommand:K.switchOnCommand,switchOffCommand:K.switchOffCommand,switchedOnByDefault:K.switchedOnByDefault,isDisabled:K.isDisabled,handleOnTapEventInParent:!D,a11yLabelSwitchedOn:K.a11yLabelSwitchedOn,a11yLabelSwitchedOff:K.a11yLabelSwitchedOff};R!==void 0&&(K.isDisabled=R);R={switchButtonViewModel:K}}return R},
v=function(R){var K=Pbf(l());
!K||K.isDisabled||Z().ignoreTapUntilCommandCompletes&&M()||(N==null||N(R),j$H(K,W(),R,Z().ignoreTapUntilCommandCompletes,G),V(!W()),S==null||S(W()))};
return _.g("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.g(_.QO,{data:function(){return{title:Z().title,subtitle:Z().attributedSubtitle,leadingImage:Z().leadingImage,leadingAccessory:Z().leadingAccessory,isDisabled:Z().isDisabled}},
onTap:v,isToggled:D?W:void 0,trailingAccessory:function(){return _.g(_.bj,{data:l},{switchButtonViewModel:function(R){return _.g(qPI,{data:R.data,parentActive:W,handleOnTapEventInParent:!!N&&!D,onTap:D?v:void 0})}})},
disableHorizontalPadding:L}))},"ce");var t0M=_.p(function(L){var Z=_.O(_.i4(function(){var u,T;return!!((u=L.data())==null?0:(T=u.initialState)==null?0:T.isToggled)})),N=Z.next().value,S=Z.next().value;
Z=_.Z9(function(){S(!N())});
return _.g("toggleable-list-item-view-model",{el:_.P9(_.cT(function(){return L.data().rendererContext})),
class:_.qg("toggleableListItemViewModelHost",L.className),"on:click":Z},_.g(_.F,{cond:function(){if(N()){var u=L.data().toggledListItem;u=_.n(u,_.gm)}else u=L.data().defaultListItem,u=_.n(u,_.gm);return u},
then:function(u){return _.g(_.QO,{data:u,isToggled:N,ariaLabel:function(){var T=N()?L.data().toggledListItem:L.data().defaultListItem,W;T=(W=_.n(T,_.gm))==null?void 0:W.rendererContext;var V;return(V=_.n(T,_.Oi))==null?void 0:V.label},
ariaPressed:function(){return N()}})}}))},"de");var Oa0=_.iB("DOWNLOAD",{},"Download"),WTh=_.iB("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),V0t=_.iB("RETRY",{},"Retry"),baM=_.iB("PAUSE_DOWNLOADING",{},"Pause downloading"),M0N=_.iB("RESUME_DOWNLOAD",{},"Resume download"),ARA={text:Oa0,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},V6={text:WTh,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},xBw={text:V0t,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
HiG={text:baM,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},BT1={text:M0N,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var gOO=_.p(function(L){var Z=function(){var V=L.data();V=_.ob(V.rendererContext);var M;return(M=_.n(V,_.uj))==null?void 0:M.videoId},N=_.VB(function(V){var M=Z(),G=ZB_(L.data());
return M?_.Kk(V,M):G?_.fk(V,G):"TRANSFER_STATE_UNKNOWN"}),S=_.OS(_.xN1,Z),u=_.VB(function(V){return _.CMH(V,Z(),ZB_(L.data()))}),T=function(){return L1B(N(),S(),_.ob(L.data().rendererContext),!!ZB_(L.data()))},W=function(){return u()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.g("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:W},_.g(_.F,{cond:function(){return!W()},
then:function(){return _.g(_.F,{cond:T,then:function(V){return _.g(_.ju,{each:V},function(M){return _.g(_.QO,{data:M,isCompact:L.isCompact,isMenuItem:L.isMenuItem,inPopup:L.inPopup,disableHorizontalPadding:L.disableHorizontalPadding})})}})}}))},"ee");
gOO.idomCompat=!0;_.GM0=_.p(function(L){var Z=L.data;var N=L.isCompact;var S=L.hideSelectionTextChevron;var u=L.inPopup;var T=L.isOverlay;var W=L.disableHorizontalPadding;var V=function(){return N6G(Z())&&(u==null?void 0:u())};
L=_.Z9(function(G){if(u!=null&&u()&&_.c("web_enable_arrow_key_navigation_in_dropdown")){var D=_.tfL(G.currentTarget),l=D.length;if(l!==0){var v=Array.prototype.indexOf.call(D,document.activeElement);switch(G.key){case "ArrowDown":G.preventDefault();var R;(R=D[(v+1)%l])==null||R.focus();break;case "ArrowUp":G.preventDefault();var K;(K=D[v===-1?l-1:(v-1+l)%l])==null||K.focus()}}}});
var M={};return _.g("yt-list-view-model",{class:_.qg("ytListViewModelHost",(M.ytListViewModelHostKaiosSpatNav=Thx&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",M.ytListViewModelCollectionThumbnailClass=function(){return uLt(Z())},M)),
role:function(){return V()?"menu":"list"},
style:_.u4({"max-height":function(){var G,D=(G=Z())==null?void 0:G.visibleElementCount;if(D)return uLt(Z())?(D+.5)*48+"px":(D+.5)*40+"px"}}),
"on:keydown":L},_.g(_.bj,{data:function(){return Z().listItems}},{listItemViewModel:function(G){return _.g(_.QO,{data:G.data,
isMenuItem:V,isCompact:N,hideSelectionTextChevron:S,inPopup:u,isOverlay:T,disableHorizontalPadding:W})},
toggleableListItemViewModel:function(G){return _.g(t0M,{data:G.data})},
downloadListItemViewModel:function(G){return _.g(gOO,{data:G.data,isMenuItem:V,isCompact:N,inPopup:u,disableHorizontalPadding:W})},
switchListItemViewModel:function(G){return _.g(_.TbI,{data:G.data,disableHorizontalPadding:W})}}))},"fe");
_.GM0.idomCompat=!0;var FT0=_.p(function(L){var Z=L.data;var N=L.isOverlay;L={};return _.g("yt-course-perks-view-model",{class:_.qg("ytwCoursePerksViewModelHost",(L.ytwCoursePerksViewModelHostOverlay=N,L))},_.g("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.g(_.qv,{text:function(){return Z().title}})),_.g("div",null,_.g(_.F,{cond:function(){return Z().perks},
then:function(S){return _.g(_.GM0,{data:function(){return{listItems:S()}},
isCompact:!0,isOverlay:N})}})))},"ge");_.CY(FT0,"yt-course-perks-view-model",{props:{data:_.zl,isOverlay:_.zl}});_.CY(_.p(function(L){var Z=L.data;return _.g("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.g("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.g(_.qv,{text:function(){return Z().title}})),_.g("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.g(_.qv,{text:function(){return Z().progressSummary}})),_.g("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.g("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.u4({width:function(){return Z().progressPercentage*100+"%"}})})))},"he"),"yt-course-progress-view-model",{props:{data:_.LK}});var $mN=_.p(function(L){var Z={};return _.g("yt-progress-view-model",{class:_.qg("ytwProgressViewModelHost",(Z.ytwProgressViewModelHostOverlay=_.jA(L.isOverlay,!1),Z))},_.g(_.F,{cond:function(){return L.data().progressSummary},
then:function(N){return _.g("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.g(_.qv,{text:N}))}}),_.g("div",{class:"ytwProgressViewModelHostProgressContainer"},_.g(_.F,{cond:function(){return L.data().leadingLabel},
then:function(N){return _.g("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.g(_.qv,{text:N}))}}),_.g("div",{class:"ytwProgressViewModelHostProgressBar"},_.g("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(L.data().progressPercentage||0)*100+"%"}}))))},"ie");var Be=_.p(function(L){var Z=L.starNumber;var N=L.data;var S=function(){var u;return((u=N())==null?void 0:u.rating)||0};
return _.g(_.F,{cond:function(){return Z()},
then:function(u){return _.g(_.EM,null,_.g(_.hh,{when:function(){return S()>=u()-.25}},function(){return _.g("div",{class:"ytStarRatingViewModelHostStar"},_.g(_.T0,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.g(_.hh,{when:function(){return S()>=u()-.75}},function(){return _.g("div",{class:"ytStarRatingViewModelHostStar"},_.g(_.T0,{icon:"STAR_HALF",
size:function(){return 24}}))}),_.g(_.sM,null,function(){return _.g("div",{class:"ytStarRatingViewModelHostStar"},_.g(_.T0,{icon:"STAR_BORDER",
size:function(){return 24}}))}))}})},"je"),DmO=_.p(function(L){L=L.data;
return _.g("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.g(Be,{starNumber:1,data:L}),_.g(Be,{starNumber:2,data:L}),_.g(Be,{starNumber:3,data:L}),_.g(Be,{starNumber:4,data:L}),_.g(Be,{starNumber:5,data:L}))},"ke");_.CY(_.p(function(L){var Z=_.Ek(L,{}).data;return _.g("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.g("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.g(_.qv,{text:function(){var N;return(N=Z())==null?void 0:N.title}})),_.g("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.g(_.F,{cond:function(){return Z().starProgressViewModels},
then:function(N){return _.g("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.g(_.bj,{data:N},{progressViewModel:$mN}))}}),_.g("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.g("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.g(_.qv,{text:function(){var N;
return(N=Z())==null?void 0:N.averageRatingLabel}})),_.g(_.F,{cond:function(){return Z().zeroStateText},
then:function(N){return _.g("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.g(_.qv,{text:N}))}}),_.g(_.F,{cond:function(){return Z().starRatingViewModel},
then:function(N){return _.g("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.g(_.bj,{data:N},{starRatingViewModel:DmO}))}}),_.g("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.g(_.qv,{text:function(){var N;
return(N=Z())==null?void 0:N.totalRatingsCountLabel}})))))},"le"),"yt-course-ratings-view-model",{props:{data:_.zl}});var lZs;lZs={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"}};_.vOL=_.p(function(L){var Z=_.t2("yt-learning-journey-loader-view-model"),N=_.SC();_.zp(function(){requestAnimationFrame(function(){var u;(u=N.lottieEl)==null||u.addEventListener("DOMLoaded",function(){var T;(T=L.onLottieLoaded)==null||T.call(L)})});
var S=L.data().browseEndpoint;S&&_.w$(S)});
return _.g("yt-learning-journey-loader-view-model",{class:_.qg("learningJourneyLoaderViewModelHost",L.className),"data-target-id":function(){var S;return((S=L.data)==null?void 0:S.call(L).targetId)||""},
el:Z},_.g(_.KK,{className:_.qg("learningJourneyLoaderViewModelLoader",L.className),animationName:function(){return lZs.animationConfig.name},
data:lZs,animationRef:N}))},"ne");_.CY(_.vOL,"yt-learning-journey-loader-view-model",{props:{data:_.LK,className:_.zl,onLottieLoaded:_.zl}});var tLH=new Set,T60=null;var oOt=_.p(function(L){var Z=void 0,N=function(){return L.data()},S=function(){return!!Gn(M3(N())).optionColor},u=_.O(_.nh(-1,void 0,"Oxve9b")),T=u.next().value,W=u.next().value,V=function(l){return N().correctAnswerIndex===l},M=function(){return T()!==-1};
u=_.O(_.nh("",void 0,"DZG7ze"));var G=u.next().value,D=u.next().value;return _.g("learning-journey-quiz-view-model",{class:_.qg("learningJourneyQuizViewModelHost","learningJourneyQuizYoututorHost",L.className),style:_.u4({background:function(){return Gn(M3(N())).backgroundColor}})},_.g("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},G),_.g(_.F,{cond:function(){return!!N().video},
then:function(){return _.g("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.u4({background:function(){return Gn(M3(N())).videoBackgroundColor}})},_.g(_.bj,{data:function(){return N().video}},{lockupViewModel:function(l){return _.g(_.nN,{data:l.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.g("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.g("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.g("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.g(_.F,{cond:function(){return!!N().aiGeneratedQuizLabel},
then:function(){return _.g("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.g(_.qv,{text:function(){return N().aiGeneratedQuizLabel}}))}}),_.g("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.u4({"align-items":function(){return N().overflowMenu?"start":"center"}})},_.g("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.u4({"min-height":function(){return N().overflowMenu?"48px":"26px"}})},_.g("div",{class:"learningJourneyQuizYoututorText",
style:_.u4({color:function(){return Gn(M3(N())).primaryTextColor}})},_.g(_.qv,{text:function(){return N().questionHeaderText}})))),_.g("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.u4({color:function(){return Gn(M3(N())).secondaryTextColor}})},_.g(_.qv,{text:function(){var l=N();
return M()?l.explanationText:l.questionSubheaderText}}))),_.g("div",{role:"group",
class:_.qg("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.g(_.ju,{each:function(){return N().optionsData||[]}},function(l,v){var R={};
return _.g("button",{class:_.qg("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(R.learningJourneyQuizViewModelHostQuizHover=function(){return!M()},R.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=S,R.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return M()&&V(v())},R.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var K;
if(K=T()!==N().correctAnswerIndex)K=v(),K=T()===K;return K},R)),
"on:click":_.Z9(function(){if(M())return!1;W(v());var K,U;D(V(v())?((K=N().successTitle)==null?void 0:K.content)||"":((U=N().failureTitle)==null?void 0:U.content)||"");return!1}),
style:_.u4({background:"transparent"}),"aria-description":function(){var K,U;return M()?V(v())?(K=N().successTitle)==null?void 0:K.content:(U=N().failureTitle)==null?void 0:U.content:""},
"aria-disabled":M,el:_.P9(function(K){_.bF(271905,K,Z,function(U){Z=U})}),
"client-ve-type":271905},_.g("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.g(_.qv,{text:l.optionText}),_.g(_.F,{cond:function(){var K=v(),U;if(U=M())U=T()===K||V(K);return U},
then:function(){var K={};return _.g(_.T0,{className:_.qg("learningJourneyQuizYoututorOptionIcon",(K.learningJourneyQuizViewModelHostQuizPulse=function(){return T()===N().correctAnswerIndex&&V(v())},K)),
size:24,icon:function(){return V(v())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.g(_.F,{cond:M,
then:function(){return _.g("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.g("div",{class:"learningJourneyQuizYoututorExplanationText"},_.g(_.qv,{text:function(){return N().explanationHeaderText}})),_.g(_.qv,{text:function(){return N().optionsData[T()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"oe");
oOt.idomCompat=!0;var RON;_.cmV=_.p(function(L){var Z=null,N=null,S=null,u=function(){return L.data()},T=function(){var J=u();
var C=_.GR().resolve(_.gv(_.d$));J=C!=null&&C()?J.darkThemeColorPalette:J.lightThemeColorPalette;return{primaryTextColor:FT(J,0),secondaryTextColor:FT(J,1),optionColor:FT(J,2),backgroundColor:FT(J,3),videoBackgroundColor:FT(J,4)}},W=function(){return!!T().optionColor},V=_.O(_.nh(-1,void 0,"QDu8Oe")),M=V.next().value,G=V.next().value,D=function(J){return M()===J},l=function(J){return u().correctAnswerIndex===J},v=function(){return M()!==-1},R=function(){return M()===u().correctAnswerIndex},K=function(){var J=
u(),C=v(),X=R();
return C?X?J.successTitle:J.failureTitle:J.questionHeaderText},U=function(){var J=v(),C=R();
return J?C?264685:264684:264683},d=function(){var J=u();
return v()?J.explanationText:J.questionSubheaderText},h=function(){return!!u().video},E=function(J){return R()&&l(J)},A=_.Z9(function(){G(-1);
return!1});
return _.g(_.F,{cond:function(){return u().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.g(oOt,{data:function(){return u()}})},
else:function(){return _.g("learning-journey-quiz-view-model",{class:_.qg("learningJourneyQuizViewModelHost",L.className),style:_.u4({background:function(){return T().backgroundColor}})},_.g(_.F,{cond:h,
then:function(){return _.g("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.u4({background:function(){return T().videoBackgroundColor}})},_.g(_.bj,{data:function(){return u().video}},{lockupViewModel:function(J){return _.g(_.nN,{data:J.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.g("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.g("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.g("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.g(_.F,{cond:function(){return!!u().aiGeneratedQuizLabel},
then:function(){return _.g("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.g(_.qv,{text:function(){return u().aiGeneratedQuizLabel}}))}}),_.g("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.u4({"align-items":function(){return u().overflowMenu?"start":"center"}})},_.g("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.u4({"min-height":function(){return u().overflowMenu?"48px":"26px"}})},_.g("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.P9(function(J){_.bF(U(),J,Z,function(C){Z=C})}),
style:_.u4({color:function(){return T().primaryTextColor}}),
"client-ve-type":U},_.g(_.qv,{text:K}))),_.g("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.g(_.F,{cond:v,then:function(){return _.g("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.P9(function(J){_.bF(264687,J,N,function(C){N=C})}),
"on:click":A,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.g("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.u4({fill:function(){return T().primaryTextColor}})},_.g("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"})))}}),
_.g(_.bj,{data:function(){return u().overflowMenu}},{buttonViewModel:function(J){return _.g(_.$X,{data:J.data})}}))),_.g("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.P9(function(J){_.bF(264688,J,S,function(C){S=C})}),
style:_.u4({color:function(){return T().secondaryTextColor}}),
"client-ve-type":264688},_.g(_.qv,{text:d}))),_.g("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.g(_.ju,{each:function(){return u().optionsData||[]}},function(J,C){var X={};
return _.g("button",{class:_.qg("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(X.learningJourneyQuizViewModelHostQuizHover=function(){return!v()},X.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=W,X.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return E(C())},X.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!R()&&D(C())},X.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return v()&&
!D(C())},X)),
"on:click":_.Z9(function(){if(v())return!1;G(C());return!1}),
style:_.u4({background:function(){var L1=C();return v()&&D(L1)?"":W()?T().optionColor:"transparent"}}),
"aria-disabled":v,"client-ve-type":264686},_.g("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.g(_.F,{cond:v,then:function(){return _.g(RON,{isOptionCorrect:l,optionIndex:C,isOptionSelectedAndCorrect:E,colors:T})}}),_.g(_.qv,{text:J.optionText})))})))))}})},"pe");
RON=_.p(function(L){var Z={};return _.g("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var N=L.optionIndex();return L.isOptionCorrect(N)?"0 0 24 24":"0 -960 960 960"},
class:_.qg("learningJourneyQuizViewModelHostQuizOptionIconLeading",(Z.learningJourneyQuizViewModelHostQuizPulse=function(){return L.isOptionSelectedAndCorrect(L.optionIndex())},Z)),
style:_.u4({fill:function(){return L.colors().primaryTextColor}})},_.g("path",{d:function(){var N=L.optionIndex();
return L.isOptionCorrect(N)?"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"}}))},"qe");
_.cmV.idomCompat=!0;_.CY(_.cmV,"learning-journey-quiz-view-model",{props:{data:_.LK,className:_.LK}});var nOQ=_.p(function(L){var Z=_.O((0,_.EnL)(function(){var W;return{targetId:(W=L.data().config)==null?void 0:W.suspenseKey,contents:[L.data()]}})).next().value,N=_.GR().resolve(_.$s),S=function(){var W=Z().contents.length>0?Z().contents[0]:void 0;
return W==null?void 0:W.config},u=function(){var W;
return(W=S())==null?void 0:W.entityTriggerConfig},T=_.OS(t_w,function(){var W,V;
return(V=(W=u())==null?void 0:W.entityKey)!=null?V:""});
_.ph(function(){var W,V,M,G=(M=Number((W=u())==null?void 0:(V=W.invalidationTimestamp)==null?void 0:V.seconds))!=null?M:0,D,l,v;if(((v=Number((D=T())==null?void 0:(l=D.lastUpdated)==null?void 0:l.seconds))!=null?v:0)>G){var R;(W=(R=S())==null?void 0:R.continuationCommand)&&N.resolveCommand(W)}},"FaC8z");
return _.g("yt-suspense-view-model",{class:_.qg("ytSuspenseViewModelHost")},_.g(_.bj,{data:function(){var W;return(W=S())==null?void 0:W.contents}},{lockupViewModel:_.nN}))},"se");var KTI=_.p(function(L){var Z=_.Ek(L,{palette:void 0,isLastItem:!1}),N=Z.palette,S=Z.isLastItem,u=function(){return L.data().isHighlighted},T=function(){var M;
return W1x((M=N())==null?void 0:M.iconDisabledColor)},W=function(){var M;
return W1x((M=N())==null?void 0:M.primaryTitleColor)},V=function(){var M;
return W1x((M=N())==null?void 0:M.secondaryTitleColor)};
Z={};return _.g("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.P9(_.cT(function(){return L.data().rendererContext}))},_.g(_.bj,{data:function(){return L.data().thumbnail}},{thumbnailViewModel:_.b7}),_.g("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.g("div",{class:_.qg("ytMacroMarkerListItemViewModelTimeDescription",(Z.ytMacroMarkerListItemViewModelHighlighted=u,Z)),
style:_.u4({"background-color":function(){return u()?W():T()},
color:function(){return u()?"":V()}})},_.g(_.qv,{text:function(){return L.data().timestamp}})),_.g("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.u4({"background-color":function(){return S()?"transparent":T()}})}),_.g("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(u()?W():V())}},_.g(_.qv,{text:function(){return L.data().title}}))))},"te");_.x7=_.p(function(L){function Z(tx){E("transform:translateX("+(_.X7("HTML_DIR")==="rtl"?"":"-")+tx+"px)")}
function N(tx){return Math.min(Math.max(tx,0),h()-L1())}
function S(){var tx=C()+lH();return u()?(Math.round(L1()/tx)||1)*tx:0}
var u=function(){return L.data().items||[]},T=function(){return L.data().previousButton},W=function(){return L.data().nextButton},V=function(){var tx,ut;
return(ut=(tx=L.disableArrows)==null?void 0:tx.call(L))!=null?ut:!1},M=function(){var tx;
return!((tx=L.forceNarrowLayout)==null||!tx.call(L))},G=_.wJ(function(){var tx;
return!((tx=L.centerAlignItems)==null||!tx.call(L))&&h()<=L1()},void 0,"Uto0kc"),D=_.t2("horizontal-shelf-view-model"),l=_.t2("div"),v=_.O(_.nh(0,void 0,"G0xZB")),R=v.next().value,K=v.next().value;
v=_.O(_.nh(0,void 0,"kqCYFf"));var U=v.next().value,d=v.next().value,h=U;U=_.O(_.nh("",void 0,"Hh6Uye"));v=U.next().value;var E=U.next().value;U=_.O(_.nh(0,void 0,"yMGBKb"));var A=U.next().value,J=U.next().value,C=A;U=_.O(_.nh(0,void 0,"VChthd"));A=U.next().value;var X=U.next().value,L1=A;U=_.O(_.nh(!1,void 0,"qJlhhe"));var Fw=U.next().value,GB=U.next().value;U=_.O(_.nh(0,void 0,"x7H94"));A=U.next().value;var Yt=U.next().value,lH=A;U=_.O(_.nh(0,void 0,"ksuUee"));var RF=U.next().value,jf=U.next().value;
U=_.O(_.nh("50%",void 0,"uxCxde"));var f1=U.next().value,n0=U.next().value,r5=function(){var tx,ut=(tx=L.data())==null?void 0:tx.responsiveContainerConfiguration,oO,uq;return ut?wm(ut==null?void 0:ut.responsiveSize):(uq=(oO=L.sizing)==null?void 0:oO.call(L))!=null?uq:"STANDARD"};
U=_.wJ(function(){return!V()&&R()>0},void 0,"XK60w");
A=_.wJ(function(){return!V()&&R()<h()-L1()},void 0,"D22LVd");
var yq=function(){K(N(R()-S()));Z(R())},ZN=function(){K(N(R()+S()));
Z(R())},GV=function(){D.value!==null&&d5()},IO;
_.m0(function(){d5();window.ResizeObserver?(IO=new ResizeObserver(_.cz(GV,0)),IO.observe(D.value)):window.addEventListener("resize",GV)});
_.zs(function(){if(window.ResizeObserver){var tx;(tx=IO)==null||tx.disconnect()}else window.removeEventListener("resize",GV)});
var d5=function(){var tx=D.value.clientWidth,ut=L.includeMargin!==void 0?L.includeMargin():!1,oO;var uq=L.hasPeek!==void 0?L.hasPeek():!((oO=L.data())==null||!oO.hasPeek);tx=_.ym({containerWidth:tx,hasPeek:uq,sizing:r5(),marginSettings:ut?M()?4:1:0});Yt(tx.gutter);jf(tx.margin);J(tx.itemWidth);GB(tx.maxContainerWidth<528||M());X(tx.maxContainerWidth);u()&&d((tx.itemWidth+tx.gutter)*u().length-tx.gutter);if(u()){var RO;if(((RO=L.thumbnailAspectRatio)==null?void 0:RO.call(L))!==void 0){var iq;n0(C()/
EIG((iq=L.thumbnailAspectRatio)==null?void 0:iq.call(L))/2+"px")}else n0("50%")}},n8={},lq={};
return _.g("horizontal-shelf-view-model",{class:_.qg("ytwHorizontalShelfViewModelHost",L.className),el:D},_.g(_.F,{cond:function(){var tx;return L.data().header&&!((tx=L.horizontalShelfExperiments)==null?0:tx.call(L).hideHeader)},
then:function(){return _.g("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.u4({width:function(){return L1()+"px"},
padding:function(){return"0 "+RF()+"px"}})},_.g(_.bj,{data:function(){return L.data().header}},{sectionHeaderViewModel:function(tx){return _.g(_.f$,{data:tx.data,
disableHorizontalPadding:!0,forceSmallLayout:Fw,useResponsiveLayout:!0})}}))}}),_.g("div",{class:_.qg("ytwHorizontalShelfViewModelOuterContainer",(n8.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return G()},n8)),
style:_.u4({"margin-top":function(){var tx,ut=L.data().header&&!((tx=L.horizontalShelfExperiments)==null?0:tx.call(L).hideHeader),oO;return(((oO=L.ensureMarginTop)==null?0:oO.call(L))&&!ut?12:0)+"px"}})},_.g("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.u4({width:function(){return L1()+"px"},
padding:function(){return"0 "+RF()+"px"},
overflow:function(){return V()?"auto":"hidden"}})},_.g("div",{class:_.qg("ytwHorizontalShelfViewModelItems",(lq.ytwHorizontalShelfViewModelCenterAlignItems=function(){return G()},lq)),
el:l,style:v},_.g(_.bj,{data:u},{macroMarkerListItemViewModel:function(tx,ut){return _.g("div",{style:_.u4({width:function(){return C()+"px"},
"margin-right":function(){return(ut()===u().length-1?0:lH())+"px"}})},_.g(KTI,{data:tx.data,
palette:_.jA(L.palette),isLastItem:function(){return ut()===u().length-1}}))},
lockupViewModel:function(tx,ut){var oO=tx.data;return _.g("div",{style:_.u4({width:function(){return C()+"px"},
"margin-right":function(){return(ut()===u().length-1?0:lH())+"px"}})},_.g(_.nN,{data:oO,
containerType:4,sizing:r5,protectBackground:L.protectBackground,thumbnailFixedWidth:function(){return VLA(oO())+"px"},
thumbnailTargetWidth:function(){return VLA(oO())}}))},
suspenseViewModel:function(tx,ut){return _.g("div",{style:_.u4({width:function(){return C()+"px"},
"margin-right":function(){return(ut()===u().length-1?0:lH())+"px"}})},_.g(nOQ,{data:tx.data}))}}))),_.g(_.F,{cond:U,
then:function(){return _.g("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.u4({top:function(){return f1()}})},_.g(_.bj,{data:T},{buttonViewModel:function(tx){return _.g(_.$X,{data:tx.data,
onClick:yq})}}))}}),_.g(_.F,{cond:A,
then:function(){return _.g("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.u4({top:function(){return f1()}})},_.g(_.bj,{data:W},{buttonViewModel:function(tx){return _.g(_.$X,{data:tx.data,
onClick:ZN})}}))}})))},"ue");
_.x7.idomCompat=!0;var fZV=_.p(function(L){var Z=function(){return L.data().targetId||""},N=function(){var U;
return((U=L.data())==null?void 0:U.expansionEntityKey)||""},S=_.OS(_.T_F,N),u=!0,T=function(){var U;
return((U=S())==null?void 0:U.value)===Z()},W=function(U){_.sk(_.Mr("stringEntity",N(),{key:N(),
value:U?Z():""}))};
_.zp(function(){u=!1;L.data().isExpanded&&W(!0)});
var V=function(){if(T()){var U=!0;L.onCollapse!==void 0&&(U=L.onCollapse());U&&W(!1)}else W(!0)},M=_.Z9(V),G=function(){var U;
return(((U=L.accordionStyle)==null?void 0:U.call(L))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},D=_.t2("div"),l=function(){var U,d;
return(d=(U=_.n(L.data().rendererContext,_.Oi))==null?void 0:U.label)!=null?d:""},v=function(){var U,d;
return{disabled:(U=L.hideIfNotExpanded)==null?void 0:U.call(L),ariaHidden:(d=L.hideIfNotExpanded)==null?void 0:d.call(L)}},R={},K={};
return _.g("yt-accordion-item-view-model",{class:_.qg("ytAccordionItemViewModelHost",L.className,(R.ytAccordionItemViewModelExpanded=function(){return T()},R.ytAccordionItemViewModelHidden=function(){var U;
return(U=L.hideIfNotExpanded)==null?void 0:U.call(L)},R.ytAccordionItemViewModelMini=G,R)),
"data-target-id":Z},_.g("div",{class:"ytAccordionItemViewModelContainer"},_.g("div",{class:"ytAccordionItemViewModelLeftSection","on:click":M,title:l,"aria-hidden":function(){var U;return(U=L.hideIfNotExpanded)==null?void 0:U.call(L)}},_.g(_.qv,{text:function(){return L.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:l})),_.g("div",{class:"ytAccordionItemViewModelRightSection"},_.g(_.bj,{data:function(){return T()?L.data().expandButton:L.data().collapseButton}},{buttonViewModel:function(U){return _.g(_.$X,{data:U.data,
className:"ytAccordionItemViewModelToggleButton",onClick:V,buttonOverrides:v})}}))),_.g("div",{class:"ytAccordionItemViewModelContainer"},_.g("div",{class:_.qg("ytAccordionItemViewModelContent",(K.ytAccordionItemViewModelExpandedSubtitle=function(){return T()},K)),
el:D,style:_.u4({"max-height":function(){return u?"auto":T()?D.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!T()}},_.g(_.F,{cond:function(){return!G()},
then:function(){return _.g(_.qv,{text:function(){return L.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.g(_.bj,{data:function(){return L.data().content}},{horizontalShelfViewModel:function(U){return _.g(_.x7,{data:U.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"we");_.kMQ=_.p(function(L){var Z=_.O((0,_.EnL)(L.data)).next().value,N=function(){return L.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},S=function(){return N()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},u=_.O(_.nh(!0,void 0,"AbejLb")),T=u.next().value,W=u.next().value,V=function(){return S()&&T()},M=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){W(!T())}}},G=_.Z9(function(){Z().onTitleTap&&_.w$(Z().onTitleTap||{})});
u={};return _.g("yt-accordion-view-model",{class:_.qg("ytAccordionViewModelHost",(u.ytAccordionViewModelMinimized=function(){return V()},u)),
"data-target-id":function(){return L.data().targetId||""}},_.g(_.F,{cond:function(){return S()||!!Z().title},
then:function(){return _.g("div",{class:"ytAccordionViewModelHeader"},_.g("div",{class:"ytAccordionViewModelTitleSection"},_.g("div",{class:"ytAccordionViewModelTitleWrapper"},_.g(_.F,{cond:function(){return!!L.data().headerIcon},
then:function(){return _.g(_.T0,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var D;return(D=L.data().headerIcon)==null?void 0:D.iconType}})}}),_.g("div",{class:"ytAccordionViewModelTitle",
"on:click":G},_.g(_.qv,{className:"ytAccordionViewModelTitleText",text:function(){return Z().title}})))),_.g("div",{class:"ytAccordionViewModelButtonSection"},_.g(_.F,{cond:S,
then:function(){return _.g(_.Ff,{data:M,iconName:function(){return V()?"chevron_down":"chevron_collapse"}})}})))}}),_.g("div",{class:"ytAccordionViewModelContent"},_.g(_.bj,{data:function(){return Z().contents}},{accordionItemViewModel:function(D){return _.g(fZV,{data:D.data,
className:"ytAccordionViewModelRow",accordionStyle:N,hideIfNotExpanded:V,onCollapse:function(){return S()?(W(!0),!1):!0}})}})),_.g("div",null,_.g(_.F,{cond:function(){return!S()&&(!!Z().disclaimerFooter||!!Z().footer)},
then:function(){return _.g("div",{class:"ytAccordionViewModelFooter"},_.g(_.qv,{text:function(){return Z().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.g(_.bj,{data:function(){return L.data().footer}},{flexibleActionsViewModel:function(D){return _.g(_.rX,{data:D.data,
layout:0})}}))}})))},"xe");_.CY(_.kMQ,"yt-accordion-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){var Z=null,N=null,S,u=(S=_.GR().resolve(_.gv(_.d$)))==null?void 0:S(),T=_.O(_.nh(!1,void 0,"h3atzd"));S=T.next().value;var W=T.next().value;T=_.O(_.nh(!0,void 0,"UTh8db"));var V=T.next().value,M=T.next().value,G=_.t2("textarea",function(d){_.bF(264503,d,Z,function(h){Z=h})}),D=function(d){W(!0);
d={learningJourneyFormData:{query:d}};_.w$(L.data().searchEndpoint||{},{form:{formData:d}});return!1},l=_.Z9(function(d){d.target.closest("button-view-model")&&W(!0)});
T=_.Z9(function(){M(G.value.value.length===0)});
var v=_.Z9(function(d){if(d.key==="Enter"&&!d.shiftKey&&!V()){var h=d.target;d.preventDefault();D(h.value)}}),R={},K={},U={};
return _.g("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.g("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.g(_.ji,{data:function(){return L.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.g("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.g("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.g("div",{class:_.qg("ytLearningJourneyZeroStateSearchBar",(R.ytLearningJourneyZeroStateSearchBarDark=u,R))},_.g("textarea",{class:_.qg("ytLearningJourneyZeroStateTextInput",(K.ytLearningJourneyZeroStateTextInputDark=u,K)),el:G,"on:keyup":T,"on:keydown":v,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.g("div",{class:_.qg("ytLearningJourneyZeroStateSearchButtonContainer",(U.ytLearningJourneyZeroStateSearchButtonContainerDark=u,U))},_.g(_.$X,{data:function(){return _.n(L.data().searchButton,_.NU)},
className:"search-button",onClick:function(){return D(G.value.value)},
buttonOverrides:function(){return{disabled:V(),style:u?"mono-inverse":"mono",size:"XL"}}}))),_.g(_.F,{cond:function(){return!!L.data().errorBanner},
then:function(){return _.g("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.P9(function(d){_.bF(264617,d,N,function(h){N=h})})},_.g(_.bj,{data:function(){return L.data().errorBanner}},{alertBannerViewModel:function(d){return _.g(_.XGt,{data:d.data,
"client-ve-type":264617})}}))}})),_.g(_.F,{cond:S,
then:function(){return _.g("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.g(_.bj,{data:function(){return L.data().loader}},{learningJourneyLoaderViewModel:function(d){return _.g(_.vOL,{data:d.data})}}))},
else:function(){return _.g("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.g(_.F,{cond:function(){return!!L.data().learningJourneyShelf},
then:function(){return _.g("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.g("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return L.data().learningJourneySectionTitle}),_.g(_.bj,{data:function(){return L.data().learningJourneyShelf}},{horizontalShelfViewModel:function(d){return _.g(_.x7,{data:d.data,
centerAlignItems:!0})}}))}}),_.g("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.g("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return L.data().suggestedJourneySectionTitle}),_.g("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":l},_.g(_.bj,{data:function(){return L.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(d){return _.g(_.rX,{data:d.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"ye"),"yt-learning-journey-zero-state",{props:{data:_.LK}});var ymI=_.p(function(L){var Z=L.data;return _.g("ytvl-live-leaderboard-item-action-content-view-model",{class:_.qg("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.g(_.qv,{text:function(){var N;return(N=Z())==null?void 0:N.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.g(_.bj,{data:function(){return Z().actionButton}},{buttonViewModel:function(N){return _.g(_.$X,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:N.data})}}))},"ze");var w_Q=_.p(function(L){var Z=L.data;return _.g("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.qg("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.g(_.qv,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var N;return(N=Z())==null?void 0:N.displayName},
ellipsisTruncate:!0}),_.g(_.bj,{data:function(){return Z().badge}},{buttonViewModel:function(N){return _.g(_.$X,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:N.data})}}))},"Ae");_.CY(_.p(function(L){var Z=L.data;return _.g("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.g("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.g(_.qv,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var N;return(N=Z())==null?void 0:N.rank}})),_.g("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.g(_.bj,{data:function(){return Z().avatar}},{avatarViewModel:_.JO})),_.g("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.g(_.bj,{data:function(){return Z().content}},{liveLeaderboardItemChannelContentViewModel:w_Q,
liveLeaderboardItemActionContentViewModel:ymI})),_.g(_.qv,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var N;return(N=Z())==null?void 0:N.points}}))},"Be"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){var Z=L.data;return _.g("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.g(_.qv,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var N,S;return(N=Z())==null?void 0:(S=N.ranking)==null?void 0:S.rank}}),_.g("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.g(_.bj,{data:function(){return Z().avatar}},{avatarViewModel:_.JO})),_.g(_.qv,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var N,S;return(N=Z())==null?void 0:(S=N.channelContent)==null?void 0:S.channelName}}),_.g(_.qv,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var N;return(N=Z())==null?void 0:N.points}}))},"Ce"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.LK}});var Umt=_.p(function(L){L=_.Ek(L,{wrapper:!1}).wrapper;return _.g(_.F,{cond:L,then:function(){return _.g("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.g("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.g("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"De");
Umt.idomCompat=!0;var YDl=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],eO5=_.p(function(L){var Z=L.data;var N=_.P9(),S=_.wJ(function(){return Z().command},void 0,"fyYsT");
_.ph(function(){S()&&_.fY(S(),{form:{element:N.value}})},"B0nxdb");
return _.g("div",{el:N,class:"YtQrCodeRendererHostContainer"},_.g(_.F,{cond:function(){return Z().qrCodeImage},
then:function(u){return _.g(_.ji,{data:u,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.g(_.F,{cond:function(){return Z().spinner},
then:function(){return _.g(Umt,null)}})}}),_.g(_.F,{cond:function(){return Z().label},
then:function(u){return _.g(_.qv,{text:u,className:"YtQrCodeRendererHostLabel"})}}),_.g(_.F,{cond:function(){return Z().labels},
then:function(u){return _.g("div",{class:"YtQrCodeRendererHostLabels"},_.g(_.ju,{each:u},function(T){return _.g(_.qv,{text:T})}))}}))},"Ge");_.CY(_.p(function(L){var Z=L.data;var N=_.wJ(function(){return Z().qrEntityKey},void 0,"M0PrY"),S=_.wJ(function(){return Z().deleteEntityOnDismiss},void 0,"QZa4g"),u=_.wJ(function(){return Z().command},void 0,"wEOxUe"),T=_.OS(Rnx,N);
L=_.wJ(function(){return Z().qrCodeImage},void 0,"UO5oub");
var W=_.wJ(function(){return Z().style&&YDl.includes(Z().style)},void 0,"Op9kZd"),V=_.$b({visibilityCallback:function(M){M&&u()&&_.fY(u())},
showOption:{calledOnce:!0,state:"visible"}});_.m0(function(){_.zs(function(){S()&&N()&&_.hJ().dispatch(_.Mr("qrCodeEntity",N()))})});
return _.g("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.P9(V)},_.g(_.F,{cond:W,then:function(){return _.g(_.F,{cond:T,then:function(M){return _.g(eO5,{data:M})}})}}),_.g(_.F,{cond:L,
then:function(M){return _.g(_.ji,{data:M,alt:""})}}))},"Ee"),"yt-qr-code-renderer",{props:{data:_.LK}});var dmh=_.p(function(L){var Z=function(){return _.Rs(1728053247&(L.barColor!==void 0?iF(L.barColor()):4278190080))};
return _.g("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.g(IZV,{animationDelay:0,percentWidth:100,barColor:function(){return Z()}}),_.g("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.g("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+Z()}})),_.g(IZV,{animationDelay:0,
percentWidth:100,barColor:function(){return Z()}}),_.g(IZV,{animationDelay:600,
percentWidth:60,barColor:function(){return Z()}}))},"He"),IZV=_.p(function(L){return _.g("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+L.percentWidth()+"%"}},_.g("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var Z=L.animationDelay(),N=L.barColor();return"animation-delay:"+Z+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+N+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Ie");var aZt;_.hO0=_.p(function(L){function Z(d){W(d)}
var N=L.data;var S=_.t2("yt-video-overview-view-model"),u=_.OV("div");L=_.O(_.nh(-1,void 0,"qaDSu"));var T=L.next().value,W=L.next().value;L=_.O(_.nh(0,void 0,"Vz681c"));var V=L.next().value,M=L.next().value,G={},D=_.OS(bBH,function(){return N().asyncDataEntityKey}),l=function(){var d;
if((d=D())==null?0:d.videoOverviewViewModel){var h;return _.n((h=D())==null?void 0:h.videoOverviewViewModel,MkQ)}return N()};
_.m0(function(){M(Math.min((S.value.clientWidth-24)/4-8,72))});
var v=function(d){W(d);(u==null?0:u.value)&&u.value.children[d]&&u.value.children[d].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
cRB(S,function(){var d;if((d=l())==null||!d.inlinePlaybackEndpoint)return null;var h;d=G==null?void 0:(h=G.thumbnailElRef)==null?void 0:h.value;if(!d)return null;var E;h=(E=l())==null?void 0:E.inlinePlaybackEndpoint;E=_.n(h,URl);return{multipleVideoPreviewData:{data:(E==null?0:E.playerDescriptors)&&(E==null?0:E.playerDescriptors.length)?E.playerDescriptors:[],thumbnailElement:d,trackingParams:"test",callbacks:{onPlaybackStarted:v},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var R=function(){var d;return((d=l())==null?void 0:d.headerSubtext)!==void 0?!0:!1},K=function(){var d,h=iF((d=l())==null?void 0:d.titleColor);
return h?"color: "+_.Rs(h)+";":void 0},U=function(){var d,h=iF((d=l())==null?void 0:d.subtextColor);
return h?"color: "+_.Rs(h)+";":void 0};
return _.g("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:S,style:function(){var d,h=iF((d=l())==null?void 0:d.backgroundColor);return h?"background-color: "+_.Rs(h)+";":void 0}},_.g(_.F,{cond:function(){var d;
return(d=l())==null?void 0:d.isLoading},
then:function(){return _.g(dmh,{barColor:function(){var d;return(d=l())==null?void 0:d.titleColor}})},
else:function(){return _.g(_.F7,null,_.g("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.g("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return K()}},_.g(_.qv,{text:function(){var d;
return(d=l())==null?void 0:d.headerText}})),_.g(_.F,{cond:R,
then:function(){return _.g("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.g("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return U()}},_.g(_.T0,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.g("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return U()}},_.g(_.qv,{text:function(){var d;
return(d=l())==null?void 0:d.headerSubtext}})))}})),_.g("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.g(_.bj,{data:function(){var d;
return(d=l())==null?void 0:d.thumbnail}},{thumbnailViewModel:function(d){return _.g(_.b7,{data:d.data,
aspectRatio:0,playbackRef:olG(G)})}})),_.g(_.F,{cond:function(){var d,h,E,A;
return((d=l())==null?void 0:(h=d.listItems)==null?void 0:h.length)!==void 0&&((E=l())==null?void 0:(A=E.listItems)==null?void 0:A.length)>0?!0:!1},
then:function(){return _.g("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:u},_.g(_.ju,{each:function(){var d;return(d=l())==null?void 0:d.listItems}},function(d,h){return _.g(aZt,{image:d.image,
index:h,isSelected:function(){return h()===T()},
onClick:Z,itemWidth:V})}))}}),_.g("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.g("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return K()}},_.g(_.qv,{text:function(){var d,h,E,A,J,C,X;
return(X=(d=l())==null?void 0:(h=d.listItems)==null?void 0:(E=h[T()])==null?void 0:E.headline)!=null?X:(A=l())==null?void 0:(J=A.listItems)==null?void 0:(C=J[0])==null?void 0:C.headline}})),_.g("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return U()}},_.g(_.qv,{text:function(){var d,h,E,A,J,C,X;
return(X=(d=l())==null?void 0:(h=d.listItems)==null?void 0:(E=h[T()])==null?void 0:E.subtext)!=null?X:(A=l())==null?void 0:(J=A.listItems)==null?void 0:(C=J[0])==null?void 0:C.subtext}}))))}}))},"Je");
aZt=_.p(function(L){var Z=L.image;var N=L.itemWidth;var S=L.index;var u=L.isSelected;var T=L.onClick;L=_.Z9(function(){S!==void 0&&T!==void 0&&T(S());return!1});
var W={};return _.g("div",{class:_.qg("ytGenAiVideoOverviewViewModelCarouselItem",(W.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return u==null?void 0:u()},W)),
style:function(){return"width: "+N()+"px;"},
"on:click":L},_.g(_.ji,{data:Z,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.g(_.F,{cond:function(){return u==null?void 0:u()},
then:function(){return _.g("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.g("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ke");
_.hO0.idomCompat=!0;_.CY(_.hO0,"yt-video-overview-view-model",{props:{data:_.LK}});_.stt=_.p(function(L){var Z=L.data;var N=L.topbarOffset;var S,u=((S=_.GR().resolve(_.gv(_.d$)))==null?void 0:S())||!1;return _.g("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var T=Z();var W,V,M=u?(W=T.config)==null?void 0:W.darkThemeBackgroundColor:(V=T.config)==null?void 0:V.lightThemeBackgroundColor;T=M?_.vq(M):void 0;T="background-color: "+T+";";N!==void 0&&(T+="top: -"+N()+"px;");return T},
"aria-hidden":!0},_.g(_.F,{cond:function(){var T,W,V;return!!((T=Z().backgroundImageConfig)==null?0:(W=T.image)==null?0:(V=W.sources)==null?0:V.length)},
then:function(){return _.g(_.ji,{data:function(){var T;return(T=Z().backgroundImageConfig)==null?void 0:T.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.g("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+MLB(u,Z().gradientColorConfig)+";"}}))},"Le");
_.stt.idomCompat=!0;var jtI=_.p(function(L){var Z=L.data;var N=L.isOverlay;return _.g("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.g("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.g(_.bj,{data:function(){return Z().header}},{sectionHeaderViewModel:function(S){return _.g(_.f$,{data:S.data,
isOverlay:N})}})),_.g("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.g(_.bj,{data:function(){return Z().channelInfoButtons}},{flexibleActionsViewModel:_.rX})),_.g("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.g(_.bj,{data:function(){return Z().description}},{descriptionPreviewViewModel:function(S){return _.g(_.K$,{data:S.data,
isOverlay:N})}})))},"Me");
jtI.idomCompat=!0;var EOh=_.p(function(L){var Z=L.data;var N={};return _.g("factoid-view-model",{class:_.qg("ytwFactoidViewModelHost",(N.ytwFactoidViewModelHostOverlay=L.isOverlay,N))},_.g(_.qv,{text:function(){return Z().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.g(_.qv,{text:function(){return Z().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ne");
EOh.idomCompat=!0;var PJQ=_.p(function(L){var Z=L.data;var N=L.isOverlay;return _.g("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.g(_.bj,{data:function(){return Z().factoids}},{factoidViewModel:function(S){return _.g(EOh,{data:S.data,
isOverlay:N})}}))},"Oe");
PJQ.idomCompat=!0;_.p_5=_.p(function(L){var Z=L.data;var N=L.isOverlay;return _.g("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.g(_.bj,{data:function(){return Z().items}},{channelInfoViewModel:function(S){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(jtI,{data:S.data,
isOverlay:N}))},
coursePerksViewModel:function(S){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(FT0,{data:S.data,isOverlay:N}))},
descriptionPreviewViewModel:function(S){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(_.K$,{data:S.data,isOverlay:N}))},
factoidsRowViewModel:function(S){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(PJQ,{data:S.data,isOverlay:N}))},
progressViewModel:function(S){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g($mN,{data:S.data,isOverlay:N}))}}))},"Pe");var zOY=_.p(function(L){return _.g("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.g(_.bj,{data:function(){return L.data().content}},{courseMetadataViewModel:function(Z){return _.g(_.p_5,{data:Z.data,
isOverlay:L.isOverlay})},
progressViewModel:function(Z){return _.g($mN,{data:Z.data})}}))},"Qe");var mmt=_.p(function(L){var Z=L.data;L=L.className;var N=function(){var u;return _.Rb((u=Z())==null?void 0:u.rendererContext)},S={};
S=(S.dynamicTextViewModelHost=!0,S.dynamicTextViewModelHostTappable=function(){return N()},S);
return _.g("yt-dynamic-text-view-model",{el:_.P9(_.cT(function(){var u;return(u=Z())==null?void 0:u.rendererContext})),
role:function(){return N()?"link":void 0},
tabindex:function(){return N()?0:void 0},
class:_.qg(L,S)},_.g("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var u,T,W;return(W=(T=_.n((u=Z())==null?void 0:u.rendererContext,_.Oi))==null?void 0:T.label)!=null?W:""}},_.g(_.qv,{text:function(){return Z().text},
userInput:!0})))},"Re");
mmt.idomCompat=!0;_.qt=_.p(function(L){var Z=L.data;var N=L.isPositionRelative;var S=_.G4h("(max-width: 527.9px)"),u=function(){var T,W;return(W=(T=Z())==null?void 0:T.style)!=null?W:"IMAGE_BANNER_STYLE_FULL_BLEED"};
L={};return _.g("yt-image-banner-view-model",{el:_.P9(_.cT(function(){var T;return(T=Z())==null?void 0:T.rendererContext})),
class:_.qg((L.ytImageBannerViewModelHost=!0,L.ytImageBannerViewModelInset=function(){return F1G(u())},L.ytImageBannerViewModelPositionAbsolute=function(){return _.JW(!0)&&!(N==null?0:N())},L.ytImageBannerViewModelSmallInset=function(){return F1G(u())&&S()},L.ytImageBannerViewModelTappable=function(){var T;
return _.Rb((T=Z())==null?void 0:T.rendererContext)},L))},_.g(_.F,{cond:function(){var T;
return(T=Z())==null?void 0:T.image},
then:function(){return _.g(_.ji,{data:function(){return Z().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.g(_.bj,{data:function(){var T;
return(T=Z())==null?void 0:T.overlays}},{thumbnailHoverOverlayViewModel:mx}))},"Se");
_.qt.idomCompat=!0;var Jmt;Jmt=_.p(function(L){var Z=L.condition;var N=L.content;return _.g(_.F,{cond:Z,then:function(){return _.g("div",{class:"yt-page-header-view-model__scroll-container"},N())},
else:function(){return N()}})},"Te");
_.CJs=_.p(function(L){var Z=L.data;var N=L.noPadding;var S=L.enableBanner;var u=L.cinematicContainerTopbarOffset;var T=L.allowCinematicContainerOverflow;var W=L.displayAsSidebar;var V=L.displayAsPanel;var M=L.alwaysUseMediumTextDescription;var G=$zt(),D=function(){return!!Z().image||!!Z().animatedImage},l=function(){return!!Z().background},v=function(){return(W==null?0:W())||(V==null?0:V())?1:G()},R=function(){return v()===1},K=function(){return R()||v()===2},U=function(){return v()===4},d=function(){var RF=
Z();
var jf=!!Z().heroImage;var f1=v(),n0=Dz0(Z()),r5=W==null?void 0:W(),yq=!RF.metadata,ZN;if(ZN=jf?_.n(RF.heroImage,iSs):_.n(RF.animatedImage||RF.image,iSs)){RF=ZN.style;var GV=ZN.layoutMode;if(GV!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(ZN=AgF(XkB(ZN)),jf)jf=gJ0(f1,RF,GV,ZN,r5);else b:if(yq)jf=f1===1?{size:48}:{size:72};else switch(f1){case 1:jf={size:72};break b;case 2:jf={size:120};break b;default:jf=n0<4?{size:120}:{size:160}}else jf=void 0}else jf={size:0};return jf};
L={};L=_.qg((L["yt-page-header-view-model"]=!0,L["yt-page-header-view-model--no-padding"]=function(){return!(N==null||!N())},L["yt-page-header-view-model--small-top-padding"]=function(){return R()&&!Z().actions&&!(V==null?0:V())||v()===2&&!(D()||Z().heroImage)},L["yt-page-header-view-model--small-bottom-padding"]=function(){return K()&&!Z().actions&&!(V==null?0:V())},L["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(T==null?0:T())},L["yt-page-header-view-model--display-as-sidebar"]=
W,L));
var h={},E=_.qg((h["yt-page-header-view-model__page-header-headline"]=!0,h["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var RF;return(RF=d())==null?void 0:RF.allowFullWidth},h)),A=function(){var RF;
return K()&&!((RF=d())==null?0:RF.allowFullWidth)},J=function(){return R()&&(!!Z().heroImage||D())&&Dz0(Z())>0},C=function(){return J()&&(V==null?void 0:V())};
h={};var X=_.qg((h["yt-page-header-view-model__page-header-title"]=!0,h["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!J()},h["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return J()&&!C()},h["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=C,h["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=l,h));
h={};var L1=_.qg((h["yt-page-header-view-model__page-header-headline-image"]=!0,h["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!Z().heroImage&&K()},h));
h={};var Fw=_.qg((h["yt-page-header-view-model__page-header-banner-container"]=S,h["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var RF;return(S==null?void 0:S())&&((RF=_.n(Z().banner,_.TiL))==null?void 0:RF.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},h));
h={};var GB=_.qg((h["yt-page-header-view-model__page-header-content-metadata"]=!0,h["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=l,h));h={};var Yt=_.qg((h["yt-page-header-view-model__page-header-flexible-actions"]=!0,h["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!Z().metadata||K()},h["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!K()},h));
h={};var lH=_.qg((h["yt-page-header-view-model__page-header-attribution"]=!0,h["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=l,h));return _.g("yt-page-header-view-model",{class:L},_.g(_.F,{cond:l,then:function(){return _.g("div",{class:"yt-page-header-view-model__page-header-background"},_.g(_.bj,{data:function(){return Z().background}},{cinematicContainerViewModel:function(RF){return _.g(_.stt,{data:RF.data,
topbarOffset:u})}}))}}),_.g(Jmt,{condition:function(){return!(W==null||!W())},
content:function(){return _.g("div",{class:"yt-page-header-view-model__page-header-content"},_.g(_.F,{cond:function(){return(S==null?void 0:S())&&Z().banner},
then:function(){return _.g("div",{class:Fw},_.g(_.bj,{data:function(){return Z().banner}},{imageBannerViewModel:_.qt}))}}),_.g("div",{class:E},_.g(_.F,{cond:D,
then:function(){return _.g(_.bj,{data:function(){var RF;if(!(RF=Z().animatedImage)){RF=Z();if(D()){var jf=RF=Object.assign({},RF),f1=v(),n0=Dz0(Z()),r5=jf.image,yq=_.n(r5,uq0),ZN=yq==null?void 0:yq.avatar,GV=_.n(ZN,_.nl);if(r5&&ZN&&GV){switch(f1){case 1:GV.avatarImageSize="AVATAR_SIZE_XL";break;case 2:GV.avatarImageSize="AVATAR_SIZE_XXL";break;default:n0<4?GV.avatarImageSize="AVATAR_SIZE_XXL":GV.avatarImageSize="AVATAR_SIZE_XXXL"}_.v9(ZN,_.nl,Object.assign({},GV));yq.avatar=Object.assign({},ZN);_.v9(r5,
uq0,Object.assign({},yq));jf.image=Object.assign({},r5)}}RF=RF.image}return RF}},{contentPreviewImageViewModel:function(RF){return _.g(_.$g,{data:RF.data,
className:L1,imageSizeConfig:d})},
decoratedAvatarViewModel:function(RF){return _.g(_.CS,{data:RF.data,className:L1})}})}}),_.g(_.F,{cond:function(){return!!Z().heroImage&&!A()},
then:function(){return _.g(_.bj,{data:function(){return Z().heroImage}},{contentPreviewImageViewModel:function(RF){return _.g(_.$g,{data:RF.data,
className:L1,imageSizeConfig:d})}})}}),_.g("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.g(_.F,{cond:function(){return!!Z().heroImage&&A()},
then:function(){return _.g("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.g(_.bj,{data:function(){return Z().heroImage}},{contentPreviewImageViewModel:function(RF){return _.g(_.$g,{data:RF.data,
className:L1,imageSizeConfig:d})}}))}}),_.g(_.bj,{data:function(){return Z().title}},{dynamicTextViewModel:function(RF){return _.g(mmt,{data:RF.data,
className:X})}}),_.g(_.bj,{data:function(){return Z().metadata}},{contentMetadataViewModel:function(RF){return _.g(_.l7,{data:RF.data,
layout:function(){return R()?1:0},
className:GB,isOverlay:l,useMediumText:U})}}),_.g(_.F,{cond:function(){return Z().description&&!R()},
then:function(){return _.g(_.bj,{data:function(){return Z().description}},{descriptionPreviewViewModel:function(RF){return _.g(_.K$,{data:RF.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:l,maxLinesOverride:function(){return R()?void 0:1},
useMediumText:function(){return(M==null?void 0:M())||U()}})}})}}),_.g(_.F,{cond:function(){return Z().attribution&&!K()},
then:function(){return _.g(_.bj,{data:function(){return Z().attribution}},{attributionViewModel:function(RF){return _.g(DH,{data:RF.data,
className:lH,useMediumText:U})}})}}),_.g(_.F,{cond:function(){return Z().actions&&!K()},
then:function(){return _.g(_.bj,{data:function(){return Z().actions}},{flexibleActionsViewModel:function(RF){return _.g(_.rX,{data:RF.data,
layout:function(){return lYw(v())},
className:Yt})}})}}))),_.g("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.g(_.F,{cond:function(){return Z().description&&R()},
then:function(){return _.g(_.bj,{data:function(){return Z().description}},{descriptionPreviewViewModel:function(RF){return _.g(_.K$,{data:RF.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:l,maxLinesOverride:function(){return R()?void 0:1},
useMediumText:function(){return(M==null?void 0:M())||U()}})}})}}),_.g(_.F,{cond:function(){return Z().attribution&&K()},
then:function(){return _.g(_.bj,{data:function(){return Z().attribution}},{attributionViewModel:function(RF){return _.g(DH,{data:RF.data,
className:lH,useMediumText:U})}})}}),_.g(_.F,{cond:function(){return Z().actions&&K()},
then:function(){return _.g(_.bj,{data:function(){return Z().actions}},{flexibleActionsViewModel:function(RF){return _.g(_.rX,{data:RF.data,
layout:function(){return lYw(v())},
className:Yt})}})}})),_.g("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.g(_.bj,{data:function(){return Z().bottomMetadataFlexibleContainer}},{flexibleContainer:function(RF){return _.g(zOY,{data:RF.data,
isOverlay:l})}})))}}))},"Ue");
_.CJs.idomCompat=!0;_.CY(_.p(function(L){var Z=_.O(_.nh(!1,void 0,"vvzTj")),N=Z.next().value,S=Z.next().value;return _.g("yt-official-card-view-model",{class:_.qg("ytOfficialCardViewModelHost",L.className),style:_.u4({"background-color":function(){var u,T=iF((u=L.data())==null?void 0:u.backgroundColor);return T?_.Rs(T):void 0}})},_.g(_.bj,{data:function(){return L.data().header}},{pageHeaderViewModel:function(u){return _.g(_.CJs,{data:u.data,
noPadding:!0})}}),_.g(_.bj,{data:function(){return L.data().contents}},{horizontalShelfViewModel:function(u){return _.g(_.x7,{data:u.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.g(_.F,{cond:N,
then:function(){return _.g("div",{class:"ytOfficialCardViewModelExpandedContent"},_.g(_.bj,{data:function(){return L.data().expandedContents}},{horizontalShelfViewModel:function(u){return _.g(_.x7,{data:u.data,
sizing:"MINI"})}}),_.g("div",{class:"ytOfficialCardViewModelCollapseButton"},_.g(_.bj,{data:function(){return L.data().collapseButton}},{buttonViewModel:function(u){return _.g(_.$X,{data:u.data,
onClick:function(){S(!N())}})}})))},
else:function(){return _.g("div",{class:"ytOfficialCardViewModelExpandButton"},_.g(_.bj,{data:function(){return L.data().expandButton}},{buttonViewModel:function(u){return _.g(_.$X,{data:u.data,
onClick:function(){S(!N())}})}}))}}))},"Ve"),"yt-official-card-view-model",{props:{data:_.LK,
className:_.LK}});var rmQ=_.p(function(L){var Z,N=(Z=_.GR().resolve(_.gv(_.d$)))==null?void 0:Z();return _.g("ytw-search-friction-view-model",{class:_.qg("ytwSearchFrictionViewModelHost",L.className)},_.g("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.g("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.g(_.F,{cond:function(){return N&&L.data().darkThemeImage?L.data().darkThemeImage:L.data().image},
then:function(S){return _.g(_.ji,{data:S,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.g(_.bj,{data:function(){return L.data().overflowMenuButton}},{buttonViewModel:function(S){return _.g(_.$X,{data:S.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.g(_.qv,{text:function(){return L.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.g(_.ju,{each:function(){return L.data().bodyText||[]}},function(S){return _.g(_.qv,{text:S,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.g(_.bj,{data:function(){return L.data().actions}},{buttonViewModel:function(S){return _.g(_.$X,{data:S.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.g(_.qv,{text:function(){return L.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.g(_.qv,{text:function(){return L.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"We");
rmQ.idomCompat=!0;_.CY(rmQ,"ytw-search-friction-view-model",{props:{data:_.LK,className:_.LK}});_.Lz=_.p(function(L){var Z=_.t2("markdown-div"),N,S=(N=_.GR().resolve(_.gv(_.d$)))==null?void 0:N();_.ph(function(){var u=Z.value;var T=new Hsh,W=new Map(T.JSC$9297_sanitizerTable.globalAttributePolicies);W.set("style",{policyAction:4});T.JSC$9297_sanitizerTable=new n7(T.JSC$9297_sanitizerTable.allowedElements,T.JSC$9297_sanitizerTable.elementPolicies,T.JSC$9297_sanitizerTable.allowedGlobalAttributes,W,T.JSC$9297_sanitizerTable.globallyAllowedAttributePrefixes);var V=["data-time"];if(V===void 0)W=
new Set(T.JSC$9297_sanitizerTable.globallyAllowedAttributePrefixes),W.add("data-"),T.JSC$9297_sanitizerTable=new n7(T.JSC$9297_sanitizerTable.allowedElements,T.JSC$9297_sanitizerTable.elementPolicies,T.JSC$9297_sanitizerTable.allowedGlobalAttributes,T.JSC$9297_sanitizerTable.globalAttributePolicies,W);else{W=new Set(T.JSC$9297_sanitizerTable.allowedGlobalAttributes);V=_.O(V);for(var M=V.next();!M.done;M=V.next()){M=M.value;if(M.indexOf("data-")!==0)throw Error("ka`"+M);W.add(M)}T.JSC$9297_sanitizerTable=
new n7(T.JSC$9297_sanitizerTable.allowedElements,T.JSC$9297_sanitizerTable.elementPolicies,W,T.JSC$9297_sanitizerTable.globalAttributePolicies,T.JSC$9297_sanitizerTable.globallyAllowedAttributePrefixes)}W=new Set(T.JSC$9297_sanitizerTable.allowedGlobalAttributes);W.add("class");T.JSC$9297_sanitizerTable=new n7(T.JSC$9297_sanitizerTable.allowedElements,T.JSC$9297_sanitizerTable.elementPolicies,W,T.JSC$9297_sanitizerTable.globalAttributePolicies,T.JSC$9297_sanitizerTable.globallyAllowedAttributePrefixes);
_.tU(u,_.Cg0(T.build(),oJf(L.text())));RzG(Z.value)},"OZ439c");
N={};return _.g("div",null,_.g("markdown-div",{class:_.qg("ytwMarkdownDivHost",(N.ytwMarkdownDivDark=S,N.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var u;return((u=L.isSmallText)==null?void 0:u.call(L))||!1},N.ytwMarkdownDivHostWrapCodeBlocks=function(){var u;
return((u=L.wrapCodeBlocks)==null?void 0:u.call(L))||!1},N.ytwMarkdownDivHostEnableDefaultStyling=function(){var u;
return!((u=L.disableDefaultStyling)==null?0:u.call(L))},N)),
el:Z}))},"Ye");
_.Lz.idomCompat=!0;var QtV=_.p(function(L){var Z=L.imageData;var N=_.jA(L.isInList,!1),S=function(){return N()?{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 _.g("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.g(_.F,{cond:function(){return Z().image},
then:function(u){return _.g(_.ji,{data:u,alt:function(){return S().alt},
contentMode:function(){return S().contentMode},
targetWidth:function(){return S().targetWidth},
targetHeight:function(){return S().targetHeight},
className:function(){return S().className}})}}),_.g("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.g("div",{class:_.qg("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.g(_.qv,{text:function(){return Z().title}})),_.g(_.ju,{each:function(){var u;
return(u=Z().description)!=null?u:[]}},function(u){return _.g("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.g(Zt,{content:u}))})))},"Ze"),X_M=_.p(function(L){var Z=L.list;
var N=function(){var S;return(S=Z().items)!=null?S:[]};
return _.g("div",{class:"ytwGenAiRichTextViewModelListContent"},_.g(_.F,{cond:function(){return Z().title},
then:function(S){return _.g("div",{class:_.qg("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.g(_.qv,{text:S}))}}),_.g(_.F,{cond:function(){return Z().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.g("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.g(_.ju,{each:N},function(S){return _.g("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.g(Zt,{content:S,isInList:!0}))}))}}),_.g(_.F,{cond:function(){return Z().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.g("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.g(_.ju,{each:N},function(S){return _.g("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.g(Zt,{content:S,isInList:!0}))}))}}),_.g(_.F,{cond:function(){return Z().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.g("div",{class:"ytwGenAiRichTextViewModelImageList"},_.g(_.ju,{each:N},function(S){return _.g("div",{class:"ytwGenAiRichTextViewModelListItem"},_.g(Zt,{content:S,isInList:!0}))}))}}))},"$e"),Am0=_.p(function(L){var Z=L.table;
return _.g("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.g("thead",null,_.g("tr",null,_.g(_.ju,{each:function(){var N,S;return(S=(N=Z().header)==null?void 0:N.cells)!=null?S:[]}},function(N){return _.g("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.g(_.ju,{each:function(){return N.contents}},function(S){return _.g(Zt,{content:S})}))}))),_.g("tbody",null,_.g(_.ju,{each:function(){var N;
return(N=Z().rows)!=null?N:[]}},function(N){return _.g("tr",null,_.g(_.ju,{each:function(){return N.cells}},function(S){return _.g("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.g(_.ju,{each:function(){return S.contents}},function(u){return _.g(Zt,{content:u})}))}))})))},"af"),Zt=_.p(function(L){var Z=L.content;
var N=_.jA(L.isInList,!1),S=function(){var u,T;return(T=(u=Z().contentBlock)==null?void 0:u.contents)!=null?T:[]};
return _.g("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.g(_.F,{cond:function(){return Z().text},
then:function(u){return _.g(_.qv,{className:"ytwGenAiRichTextViewModelText",text:u})}}),_.g(_.F,{cond:function(){return Z().image},
then:function(u){return _.g(QtV,{imageData:u,isInList:N})}}),_.g(_.F,{cond:function(){return Z().list},
then:function(u){return _.g(X_M,{list:u})}}),_.g(_.F,{cond:function(){return Z().contentBlock},
then:function(){return _.g("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.g(_.ju,{each:S},function(u){return _.g(Zt,{content:u,isInList:!1})}))}}),_.g(_.F,{cond:function(){return Z().table},
then:function(u){return _.g(Am0,{table:u})}}))},"bf"),Hat=_.p(function(L){var Z={};
Z=_.D7("ytwGenAiRichTextViewModelHost",(Z.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.vW("search_overview_link_style")),Z));return _.g("gen-ai-rich-text-view-model",{class:Z},_.g(Zt,{content:function(){return L.data().content}}))},"cf");_.Bbh=_.p(function(L){var Z=L.data;var N=function(){var U;return((U=Z().loadingUi)!=null?U:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},S=function(){return Z().isLoading&&(N()==="UNSPECIFIED"||N()==="GHOST_CARD")},u=function(){return!Z().isLoading},T=function(){return!!Z().content&&!Z().contents},W=function(){return!!Z().contents},V=function(){return!!Z().nextQueryButtons},M=function(){return Z().isLoading&&N()==="INVISIBLE"},G=function(){var U,d;
return(d=(U=Z().headerIcon)==null?void 0:U.iconType)!=null?d:""},D=function(){var U;
return(U=Z().content)!=null?U:""},l=function(){return!!Z().sourcesSection},v,R=!((v=_.GR().resolve(_.gv(_.d$)))==null||!v()),K=_.wJ(function(){var U=[],d=Z().contents;
if(d)for(var h=0;h<d.length;h++){var E=_.n(d&&d[h],bDO);E&&U.push(E)}return U},void 0,"gcCsZb");
_.m0(function(){Z().isLoading||_.Rq("so_re",void 0,"search_overview_answer")});
return _.g("ytd-overview-answer-view-model",{class:function(){var U={};U=(U.ytdOverviewAnswerViewModelHost=!0,U.ytdOverviewAnswerViewModelDarkBackground=R&&!M(),U.ytdOverviewAnswerViewModelLightBackground=!R&&!M(),U);return _.D7(U)}},_.g(_.F,{cond:function(){return!M()},
then:function(){return _.g(_.F7,null,_.g("h2",null,_.g("div",{class:"ytdOverviewAnswerViewModelHeader"},_.g(_.F,{cond:G,then:function(U){return _.g("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.g(_.T0,{icon:U}))}}),_.g("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.g("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return Z().headerText}),_.g("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.g(_.qv,{text:function(){return Z().headerSubtext}}))))),_.g(_.F,{cond:S,
then:function(){return _.g(cif,null)}}),_.g(_.F,{cond:u,
then:function(){return _.g(_.F7,null,_.g(_.F,{cond:T,then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelText"},_.g(_.Lz,{text:D,isSmallText:!0}))}}),_.g(_.F,{cond:W,
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelRichText"},_.g(_.ju,{each:K},function(U){return _.g(Hat,{data:U})}))}}),_.g(_.F,{cond:V,
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.g(_.bj,{data:function(){return Z().nextQueryButtons}},{buttonViewModel:function(U){return _.g(_.$X,{data:U.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.x7}))}}),_.g("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.g("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.g(_.F,{cond:function(){return!!_.n(Z().likeButtonViewModel,_.QY)&&!!_.n(Z().dislikeButtonViewModel,_.rf)},
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.g(_.XX,{data:function(){return _.n(Z().likeButtonViewModel,_.QY)},
disableIconAnimation:!0}),_.g(_.QK,{data:function(){return _.n(Z().dislikeButtonViewModel,_.rf)}}))}})),_.g(_.F,{cond:function(){var U;
return(U=Z().sourcesSection)==null?void 0:U.headerText},
then:function(U){return _.g("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.g(_.qv,{text:U}))}})),_.g(_.F,{cond:l,
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelSources"},_.g(_.bj,{data:function(){var U;return(U=Z().sourcesSection)==null?void 0:U.sourcesShelf}},{buttonViewModel:_.$X,
horizontalShelfViewModel:function(U){return _.g(_.x7,{data:U.data,includeMargin:!0,hasPeek:!0})}}))}}),_.g(_.F,{cond:function(){return Z().disclaimerText},
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.g(_.qv,{text:function(){return Z().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"df");var xmL=_.p(function(L){var Z=_.Ek(L,{}).data;return _.g("yt-shopping-content-line-item-view-model",{class:_.qg("ytShoppingContentLineItemViewModelHost")},_.g(_.qv,{text:function(){var N;return(N=Z().text)==null?void 0:N.attributedString}}))},"ef");_.N0=_.p(function(L){L=_.Ek(L,{});var Z=L.data,N={};return _.g("yt-shopping-content-line-view-model",{class:_.qg("ytShoppingContentLineViewModelHost",L.className,(N.ytShoppingContentLineViewModelTruncateText=function(){return!Z().wrapContent},N)),
style:_.u4({"--shopping-content-line-gap":function(){return Z().itemGap?Z().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return Z().lineHeight?Z().lineHeight+"px":void 0}})},_.g(_.ju,{each:function(){return(Z().items||[]).map(function(S){return _.n(S,RVM)}).filter(function(S){return!!S})}},function(S){return _.g(xmL,{data:S})}))},"ff");var qDM=_.p(function(L){var Z=L.data;var N=function(){var T;return((T=Z().image)==null?void 0:T.height)||48},S=function(){var T;
return((T=Z().image)==null?void 0:T.width)||48},u=function(){return"width: "+S()+"px; height: "+N()+"px;"};
return _.g("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var T,W,V,M=((T=_.GR().resolve(_.gv(_.d$)))==null?0:T())?(W=Z())==null?void 0:W.darkThemeBackgroundColor:(V=Z())==null?void 0:V.lightThemeBackgroundColor;return"background-color: "+(M?_.Rs(M):"")+";"},
el:_.P9(_.cT(function(){var T;return(T=Z())==null?void 0:T.rendererContext}))},_.g(_.F,{cond:function(){var T,W;
return(W=(T=Z().image)==null?void 0:T.image)!=null?W:Z().thumbnail},
then:function(T){return _.g("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var W;return"background-color: "+(((W=Z().image)==null?0:W.backgroundColor)?_.Rs(Z().image.backgroundColor):"")+";"+u()}},_.g(_.ji,{data:T,
height:N,width:S,style:u,alt:""}))}}),_.g("div",{class:"ytShoppingDescriptionItemViewModelText"},_.g(_.bj,{data:function(){return Z().line1}},{shoppingContentLineViewModel:function(T){return _.g(_.N0,{data:T.data})}}),_.g(_.bj,{data:function(){return Z().line2}},{shoppingContentLineViewModel:function(T){return _.g(_.N0,{data:T.data})}}),_.g(_.bj,{data:function(){return Z().line3}},{shoppingContentLineViewModel:function(T){return _.g(_.N0,{data:T.data})}})))},"gf");var Lh8=_.p(function(L){var Z=L.data;var N=L.active;var S=_.t2("transcript-segment-view-model");_.ph(function(){var u,T,W,V=((u=_.GR().resolve(_.gv(_.d$)))==null?0:u())?(T=Z())==null?void 0:T.darkThemeColorPalette:(W=Z())==null?void 0:W.lightThemeColorPalette;V&&(V.additiveBackground&&S.value.style.setProperty("--timestamp-active-background-color",_.Rs(V.additiveBackground)),V.textSecondary&&S.value.style.setProperty("--timestamp-active-color",_.vq(V.textSecondary)))},"TnVCnb");
L={};return _.g("transcript-segment-view-model",{class:_.qg("ytwTranscriptSegmentViewModelHost",(L.ytwTranscriptSegmentViewModelHostActive=N,L.ytwTranscriptSegmentViewModelHostModern=_.c("enable_timeline_view_modern_transcript")||_.c("enable_timeline_view_modern_transcript_fe"),L)),el:S},_.g(_.F,{cond:function(){var u;return(u=Z())==null?void 0:u.timestamp},
then:function(u){var T={};return _.g(_.F7,null,_.g("div",{class:_.qg("ytwTranscriptSegmentViewModelTimestamp",(T.ytwTranscriptSegmentViewModelTimestampActive=N,T)),"aria-hidden":!0},u),_.g("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var W=u().split(":").map(Number),V=_.O(W.reverse());W=V.next().value;var M=V.next().value;V=V.next().value;return _.uPP({hours:V,minutes:M,seconds:W})}))}}),_.g(_.qv,{text:function(){var u,T,W;
return(W=(u=Z())==null?void 0:u.attributedText)!=null?W:{content:(T=Z())==null?void 0:T.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"jf");var Z1s=_.p(function(L){var Z=L.data;return _.g("div",{class:"videoAttributesSectionViewModelHeader"},_.g("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.g("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return Z().headerTitle}),_.g(_.F,{cond:function(){return Z().headerInfoButton},
then:function(){return _.g(_.bj,{data:function(){return Z().headerInfoButton}},{buttonViewModel:function(N){return _.g(_.$X,{data:N.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.g(_.F,{cond:function(){return Z().headerSubtitle},
then:function(){return _.g("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return Z().headerSubtitle})}}))},"kf"),NP5=_.p(function(L){function Z(U){return Math.max(Math.min(U,0),G()-V())}
var N=L.data;var S;L=_.t2("div",function(U){var d=function(){D(U.clientWidth)};
d();window.ResizeObserver&&(S=new ResizeObserver(d),S.observe(U))});
var u=_.t2("div",function(U){M(U.scrollWidth)}),T=_.O(_.nh(0,void 0,"C3XQAe")),W=T.next().value;
T=T.next().value;var V=W,M=T;T=_.O(_.nh(0,void 0,"db7y3"));W=T.next().value;T=T.next().value;var G=W,D=T;W=_.O(_.nh(0,void 0,"RchC7"));var l=W.next().value,v=W.next().value;_.zs(function(){var U;(U=S)==null||U.disconnect()});
var R=function(){v(Z(l()+G()))},K=function(){v(Z(l()-G()))};
return _.g("yt-video-attributes-section-view-model",null,_.g("div",{class:"videoAttributesSectionViewModelHost"},_.g(_.F,{cond:function(){return N().headerTitle},
then:function(){return _.g(Z1s,{data:N})}}),_.g("div",{class:_.qg("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:L},_.g("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.u4({transform:function(){var U=l();_.X7("HTML_DIR")==="rtl"&&(U*=-1);return"translateX("+U+"px)"}}),
el:u},_.g(_.bj,{data:function(){return N().videoAttributeViewModels}},{videoAttributeViewModel:zFs}))),_.g(_.bj,{data:function(){return N().footerButton}},{buttonViewModel:function(U){return _.g(_.$X,{data:U.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.g(_.F,{cond:function(){return l()<0&&N().previousButton},
then:function(){return _.g("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.g(_.bj,{data:function(){return N().previousButton}},{buttonViewModel:function(U){return _.g(_.$X,{data:U.data,
onClick:R})}}))}}),_.g(_.F,{cond:function(){return l()>G()-V()&&N().nextButton},
then:function(){return _.g("div",{class:"videoAttributesSectionViewModelRightArrow"},_.g(_.bj,{data:function(){return N().nextButton}},{buttonViewModel:function(U){return _.g(_.$X,{data:U.data,
onClick:K})}}))}})))},"lf");
NP5.idomCompat=!0;var SGP=_.p(function(L){var Z=L.data;var N=L.active;var S={},u={};return _.g("timeline-item-view-model",{class:_.qg("ytwTimelineItemViewModelHost",(S.ytwTimelineItemViewModelHostChapterChild=L.chapterChild,S.ytwTimelineItemViewModelModern=_.c("enable_timeline_view_modern_transcript")||_.c("enable_timeline_view_modern_transcript_fe"),S))},_.g("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.g("div",{class:_.qg("ytwTimelineItemViewModelTimestamp",(u.ytwTimelineItemViewModelTimestampActive=
N,u))},function(){return Z().timestamp})),_.g("div",{class:"ytwTimelineItemViewModelContentItems"},_.g(_.bj,{data:function(){return Z().contentItems}},{transcriptSegmentViewModel:function(T){return _.g(Lh8,{data:T.data,
active:N})},
videoAttributesSectionViewModel:NP5})))},"mf");var i10=_.p(function(L){var Z=L.data;L={};return _.g("timeline-chapter-view-model",{class:_.qg("ytwTimelineChapterViewModelHost")},_.g("div",{class:_.qg("ytwTimelineChapterViewModelTitle",(L.ytwTimelineChapterViewModelModern=_.c("enable_timeline_view_modern_transcript")||_.c("enable_timeline_view_modern_transcript_fe"),L))},function(){return Z().title}),_.g(_.bj,{data:function(){return Z().contents}},{timelineItemViewModel:function(N){return _.g(SGP,{data:N.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(N){return _.g(NP5,{data:N.data})}}))},"nf");var uwv=_.p(function(L){var Z=L.data;var N=_.t2("macro-markers-panel-item-view-model"),S=_.OS(_.$Kt,function(){var T;return(T=Z().markersEngagementPanelSyncEntityKey)!=null?T:""}),u=function(){var T;
return((T=S())==null?void 0:T.activeItemIndex)===Z().index};
L=_.Z9(function(T){var W,V,M,G,D;return _.b(function(l){if(l.nextAddress==1)return T.stopPropagation(),_.vT(_.lj(T),N.value,["A".toString(),"BUTTON".toString()])?l.return():(W=_.KY(Z().onTap))?l.yield(_.Z7(),2):l.return();V=l.yieldResult;G=(M=_.n(W,_.so))==null?void 0:M.startTimeSeconds;G===void 0||(D=V)!=null&&D.seekTo(G,!0);_.w7(l)})});
return _.g("macro-markers-panel-item-view-model",{class:_.qg("ytwMacroMarkersPanelItemViewModelHost",{"is-active":u}),el:N,"on:click":L,tabindex:0,role:"button"},_.g(_.bj,{data:function(){var T;return(T=Z())==null?void 0:T.item}},{timelineChapterViewModel:function(T){return _.g(i10,{data:T.data,
active:u})},
timelineItemViewModel:function(T){return _.g(SGP,{data:T.data,active:u})},
videoAttributeViewModel:zFs,shoppingDescriptionItemViewModel:qDM}))},"of");
uwv.idomCompat=!0;_.CY(uwv,"macro-markers-panel-item-view-model",{props:{data:_.LK}});_.CY(NP5,"yt-video-attributes-section-view-model",{props:{data:_.LK}});var TPY=_.p(function(L){var Z=function(){var N,S,u;return(u=(N=L.data().leadingLogoAccessibility)==null?void 0:(S=N.accessibilityData)==null?void 0:S.label)!=null?u:""};
return _.g("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.g(_.F,{cond:function(){return L.data().leadingLogo},
then:function(N){return _.g(_.ji,{className:"ytwFantasySectionHeaderViewModelLogo",data:N,alt:Z})}}),_.g("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.g(_.qv,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return L.data().title}}),_.g(_.qv,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return L.data().subtitle}})),_.g(_.bj,{data:function(){return L.data().trailingButton}},{buttonViewModel:function(N){return _.g(_.$X,{data:N.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"pf");var tfc=_.p(function(L){var Z={};Z=_.qg("ytwFantasyTeamViewModelHost",(Z.ytwFantasyTeamViewModelCompact=function(){var u;return!((u=L.compact)==null||!u.call(L))},Z.ytwFantasyTeamViewModelUser=function(){return L.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},Z.ytwFantasyTeamViewModelOpponent=function(){return L.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},Z));
var N=function(){var u,T,W;return(W=(u=L.data().teamLogoAccessibility)==null?void 0:(T=u.accessibilityData)==null?void 0:T.label)!=null?W:""},S=_.OS(lyt,function(){return L.data().teamEntityKey});
return _.g("ytw-fantasy-team-view-model",{class:Z},_.g(_.F,{cond:function(){return L.data().teamLogo},
then:function(u){return _.g(_.ji,{className:"ytwFantasyTeamViewModelLogo",data:u,alt:N})}}),_.g("div",{class:"ytwFantasyTeamViewModelMetadata"},_.g("div",{class:"ytwFantasyTeamViewModelHeader"},_.g(_.qv,{className:"ytwFantasyTeamViewModelScore",
text:function(){var u;return(u=S())==null?void 0:u.score}}),_.g(_.T0,{icon:function(){var u;
return(u=S())==null?void 0:u.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.g(_.qv,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var u;return(u=S())==null?void 0:u.projectedScore}})),_.g(_.qv,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return L.data().primaryText}}),_.g(_.qv,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return L.data().secondaryText}}),_.g(_.qv,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return L.data().tertiaryText}})),_.g(_.qv,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var u;return(u=S())==null?void 0:u.score}}))},"qf");_.CY(_.p(function(L){return _.g("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.g("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.g(_.bj,{data:function(){return L.data().summaryHeader}},{fantasySectionHeaderViewModel:TPY})),_.g(_.bj,{data:function(){return L.data().userTeam}},{fantasyTeamViewModel:tfc}),_.g(_.bj,{data:function(){return L.data().opponentTeam}},{fantasyTeamViewModel:tfc}))},"rf"),"fantasy-league-summary-view-model",{props:{data:_.LK}});var O10=_.p(function(L){var Z=_.Ek(L,{shape:{},useCustomTabRenderable:!1}),N=Z.shape;Z=Z.useCustomTabRenderable;var S=L.customTabRenderable,u=function(){return N().disabled},T=function(){return N().selected},W=function(){return N().title},V=function(){return N().icon},M=_.t2("yt-tab-shape");
L=_.Z9(function(l){var v;if(!u()&&((v=N().aTagConfig)==null?0:v.onclick))N().aTagConfig.onclick(l);return!1});
var G=_.Z9(function(l){if(l.key==="Enter"||l.key==="ArrowUp"||l.key==="ArrowDown")l.preventDefault(),M.value.click();return!1}),D={};
return _.g("yt-tab-shape",{class:_.qg("yt-tab-shape",function(){return N().className},(D["yt-tab-shape__tab--last-tab"]=function(){return N().isLastTab},D["yt-tab-shape--host-disabled"]=u,D["yt-tab-shape--host-clickable"]=!S,D)),
role:S?void 0:"tab","aria-selected":T!=null?T:!1,"aria-disabled":u,tabindex:S?void 0:0,"on:click":L,"on:keydown":G,el:M,"tab-identifier":function(){return N().identifier},
"tab-title":W},_.g(_.F,{cond:Z,then:function(){return S()},
else:function(){var l={},v={};return _.g(_.F7,null,_.g("div",{class:_.qg("yt-tab-shape__tab",(l["yt-tab-shape__tab--tab-selected"]=T,l))},_.g(_.F,{cond:V,then:function(R){return _.g(_.T0,{className:"yt-tab-shape__tab-icon",icon:function(){return R().iconType}})}}),W),_.g("div",{class:_.qg("yt-tab-shape__tab-bar",(v["yt-tab-shape__tab-bar--tab-bar-selected"]=T,v))}))}}))},"sf");
O10.idomCompat={callbacks:{customTabRenderable:!0}};_.Vf0=_.p(function(L){var Z=L.shape;L=_.O(_.nh(48,void 0,"rCewuf"));var N=L.next().value,S=L.next().value;L=_.O(_.nh(0,void 0,"aUUTWe"));var u=L.next().value,T=L.next().value,W=function(){return Z().tabs},V=_.t2("yt-tab-group-shape"),M=function(){var G,D;
return(D=(G=W())==null?void 0:G.findIndex(function(l){return l.selected}))!=null?D:-1};
_.m0(function(){var G=V.value.querySelectorAll("yt-tab-shape"),D=M()>-1?G[M()]:void 0;_.ro.addJob(function(){S((D==null?void 0:D.getBoundingClientRect().width)||0)},8,0)});
_.ph(function(){var G=M(),D=_.ro.addJob(function(){var l,v=((l=V.value)==null?void 0:l.querySelectorAll("yt-tab-shape"))||[],R;S(((R=G>-1?v[G]:void 0)==null?void 0:R.getBoundingClientRect().width)||0);for(R=l=0;R<G;R++)l+=v[R].offsetWidth+24;_.X7("HTML_DIR")==="rtl"&&(l=-l);T(l)},8,0);
_.zs(function(){_.ro.cancelJob(D)})},"DAb5Qb");
L={};return _.g("yt-tab-group-shape",{class:_.qg("tabGroupShapeHost",(L.tabGroupShapeOverflowHidden=function(){return Z().isOverflowHidden},L)),
el:V},_.g(_.F,{cond:W,then:function(G){return _.g(_.F7,null,_.g("div",{class:"tabGroupShapeTabs",role:"tablist"},_.g(_.ju,{each:G},function(D,l){return _.g(O10,{shape:function(){return Object.assign({},D,{isLastTab:l()===G().length-1})},
customTabRenderable:D.customTabRenderable,useCustomTabRenderable:!!D.customTabRenderable})})),_.g(Whw,{width:N,
sliderOffset:u}))}}))},"uf");
_.Vf0.idomCompat=!0;var Whw=_.p(function(L){var Z=_.jA(L.sliderOffset,0),N=L.width;return _.g("div",{class:"tabGroupShapeSlider",style:_.u4({width:function(){return N()+"px"},
transform:function(){return"translateX("+Z()+"px)"}})})},"vf");var b1g=_.p(function(L){var Z=function(){var T,W,V;return(V=(T=L.data().playerLogoAccessibility)==null?void 0:(W=T.accessibilityData)==null?void 0:W.label)!=null?V:""},N=_.OS(vIB,function(){return L.data().playerEntityKey}),S={};
S=_.qg("ytwFantasyPlayerViewModelHost",(S.ytwFantasyPlayerViewModelPlaying=function(){var T;return!((T=N())==null||!T.isPlayerPlaying)},S.ytwFantasyPlayerViewModelOnField=function(){var T;
return((T=N())==null?void 0:T.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},S.ytwFantasyPlayerViewModelRedZone=function(){var T;
return((T=N())==null?void 0:T.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},S));
var u=function(){var T,W,V,M=((T=_.GR().resolve(_.gv(_.d$)))==null?0:T())?(W=L.data().playerLogoBackgroundColor)==null?void 0:W.darkTheme:(V=L.data().playerLogoBackgroundColor)==null?void 0:V.lightTheme;return M===void 0?"":_.Rs(M)};
return _.g("ytw-fantasy-player-view-model",{class:S},_.g(_.F,{cond:function(){return L.data().playerLogo},
then:function(T){return _.g("div",{class:"ytwFantasyPlayerViewModelLogo"},_.g("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.g(_.ji,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.u4({"background-color":u}),data:T,alt:Z})),_.g("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.g(_.T0,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.g("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.g("div",{class:"ytwFantasyPlayerViewModelHeader"},_.g(_.qv,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var T;return(T=L.data())==null?void 0:T.playerNameText}}),_.g(_.qv,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var T;return(T=L.data())==null?void 0:T.playerDescriptionText}})),_.g("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.g(_.qv,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var T;return(T=N())==null?void 0:T.gamePeriodText}}),_.g(_.qv,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var T;return(T=L.data())==null?void 0:T.opponentTeamText}}),_.g(_.qv,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var T;return(T=N())==null?void 0:T.gameStatusText}}),_.g(_.qv,{className:_.qg("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var T;return(T=N())==null?void 0:T.playerStatusText}})),_.g("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.g(_.qv,{text:function(){var T;
return(T=N())==null?void 0:T.playerStatsText}}))),_.g(_.qv,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var T;return(T=N())==null?void 0:T.fantasyScore}}))},"wf");var Mfc=_.p(function(L){return _.g("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.g(_.F,{cond:function(){return L.data().players},
then:function(Z){return _.g(_.bj,{data:Z},{fantasyPlayerViewModel:b1g})}}))},"xf");var gts=_.p(function(L){var Z=_.O(_.i4(function(){var u;return(u=L.data().selectedTabIdentifierKey)!=null?u:""})),N=Z.next().value,S=Z.next().value;
_.zp(function(){var u;(u=L.setSelectedTabSignal)==null||u.call(L,N)});
return _.g("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.g("div",{class:"ytTabbedViewModelTabGroup"},_.g(_.Vf0,{shape:function(){var u=L.data(),T=[],W={tabs:T};if(!u.tabs)return W;u=_.O(u.tabs);for(var V=u.next(),M={};!V.done;M={tabViewModel:void 0},V=u.next())if(M.tabViewModel=_.n(V.value,ktt),M.tabViewModel){var G=V=void 0;T.push({aTagConfig:{onclick:function(D){return function(){var l;S((l=D.tabViewModel.tabIdentifier)!=null?l:"")}}(M)},
identifier:M.tabViewModel.tabIdentifier,selected:N()===M.tabViewModel.tabIdentifier,title:(G=(V=M.tabViewModel.title)==null?void 0:V.content)!=null?G:""})}return W}})),_.g(_.bj,{data:function(){var u,T=_.O((u=L.data().tabs)!=null?u:[]);
for(u=T.next();!u.done;u=T.next())if((u=_.n(u.value,ktt))&&u.tabIdentifier===N())return u.content}},{fantasyRosterViewModel:Mfc}))},"zf");_.CY(_.p(function(L){var Z=_.O(nJx()),N=Z.next().value,S=Z.next().value;return _.g("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.g(_.qv,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return L.data().title}}),_.g(_.F,{cond:function(){return L.data().tabbedViewModel},
then:function(u){return _.g(_.bj,{data:u},{tabbedViewModel:function(T){return _.g(gts,{data:T.data,setSelectedTabSignal:S})}})}}),_.g(_.F,{cond:function(){var u,T=(u=_.n(L.data().tabbedViewModel,yOl))==null?void 0:u.tabs;
u=_.n(T==null?void 0:T[0],ktt);T=_.n(T==null?void 0:T[1],ktt);var W=u==null?void 0:u.tabIdentifier;if(N()===W){var V,M;if(!((V=_.n(u==null?void 0:u.content,P00))==null?0:(M=V.players)==null?0:M.length))return L.data().noUserTeamPlayersText}else{var G,D;if(!((G=_.n(T==null?void 0:T.content,P00))==null?0:(D=G.players)==null?0:D.length))return L.data().noOpponentTeamPlayersText}},
then:function(u){return _.g(_.qv,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:u})}}))},"Af"),"ytw-fantasy-matchup-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){return _.g("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.g(_.qv,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return L.data().title}}),_.g(_.F,{cond:function(){return L.data().matchupTeamPairs},
then:function(Z){return _.g(_.ju,{each:Z,keyBy:"INDEX"},function(N){return _.g("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.g(_.bj,{data:function(){return[N().firstTeam,N().secondTeam]}},{fantasyTeamViewModel:function(S){return _.g(tfc,{data:S.data,
compact:!0})}}))})}}))},"Bf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){var Z=function(){var u,T,W;return(W=(u=L.data().userLogoAccessibility)==null?void 0:(T=u.accessibilityData)==null?void 0:T.label)!=null?W:""},N=function(){var u,T,W;
return(W=(u=L.data().opponentLogoAccessibility)==null?void 0:(T=u.accessibilityData)==null?void 0:T.label)!=null?W:""},S=_.OS(DK_,function(){return L.data().entityKey});
return _.g("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.g("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.g(_.F,{cond:function(){return L.data().userLogo},
then:function(u){return _.g(_.ji,{className:"ytwFantasyWinProbabilityViewModelLogo",data:u,alt:Z})}}),_.g("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.g(_.qv,{text:function(){return L.data().title}})),_.g(_.F,{cond:function(){return L.data().opponentLogo},
then:function(u){return _.g(_.ji,{className:"ytwFantasyWinProbabilityViewModelLogo",data:u,alt:N})}})),_.g("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.g("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.g(_.qv,{text:function(){var u;
return(u=S())==null?void 0:u.userWinNumberLabel}})),_.g("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.g("div",{class:_.qg("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.u4({flex:function(){var u,T;return(T=(u=S())==null?void 0:u.userWinNumber)!=null?T:50}})}),_.g("div",{class:_.qg("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.u4({flex:function(){var u,T;return(T=(u=S())==null?void 0:u.opponentWinNumber)!=null?T:50}})})),_.g("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.g(_.qv,{text:function(){var u;
return(u=S())==null?void 0:u.opponentWinNumberLabel}}))))},"Cf"),"fantasy-win-probability-view-model",{props:{data:_.LK}});var GBg={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},Fhc=_.p(function(L){return _.g(_.bj,{data:L.button},{buttonViewModel:function(Z){return _.g(_.$X,{data:Z.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Df"),$LQ=_.p(function(L){return _.g("ytd-backstage-locked-post-view-model",{class:_.qg("ytdBackstageLockedPostViewModelHost",L.className)},_.g("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.g("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.g(_.bj,
{data:function(){return L.data().authorAvatar}},{decoratedAvatarViewModel:_.CS})),_.g("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.g("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.g(_.qv,{text:function(){return L.data().authorText}})),_.g("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.g(_.qv,{text:function(){return L.data().publishedTimeText}}),_.g(_.bj,{data:function(){return L.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(Z){return _.g(RfO,
{data:Z.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.g("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.g(_.qv,{text:function(){return L.data().contentText}})),_.g(_.EM,null,_.g(_.hh,{when:function(){return L.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.g("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.g(_.ji,{data:GBg,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.g(_.qv,{text:function(){return L.data().lockedText}}))}),_.g(_.hh,{when:function(){return L.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.g("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.g("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.g(_.ji,{data:GBg,
alt:""})),_.g(_.qv,{text:function(){return L.data().lockedText}}))})),_.g("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.g(Fhc,{button:function(){return L.data().likeButton}}),_.g("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return L.data().voteCountA11y}},_.g(_.qv,{text:function(){return L.data().voteCount}})),_.g(Fhc,{button:function(){return L.data().dislikeButton}}),_.g(Fhc,{button:function(){return L.data().commentButton}}),_.g("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return L.data().commentCountA11y}},_.g(_.qv,{text:function(){return L.data().commentCount}}))))},"Ef");
$LQ.idomCompat=!0;_.CY($LQ,"ytd-backstage-locked-post-view-model",{props:{data:_.LK,className:_.LK}});_.l4("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Sa=function(){var L=_.e.apply(this,arguments)||this;L.darkerPanels=_.c("web_watch_darker_panels");L.commentsHidePanelButton=!1;L.isWatchGrid=!1;L.continuationShowButton=!1;L.isSearch=!1;L.isConstrainedList=!1;L.isWatch=!1;L.eligibleToSwitchToGrid=!1;L.useBigThumbs=!1;L.notSticky=!1;L.epRestyle=!1;L.isCarouselInFeed=!0;L.topSpacingZero=!1;L.continuationIsInitialLoad=!0;L.enableSqueezebackPanels=_.c("web_shorts_enable_squeezeback_panels");L.enableAnchoredPanel=_.c("desktop_shorts_v2_anchored_panel");
L.mastheadHeight=0;L.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};L.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return L};
_.f(Sa,_.e);_.t=Sa.prototype;_.t.updateLockupContainerTypes=function(L){if(this.eligibleToSwitchToGrid){var Z;(Z=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||Z.forEach(function(N){N.containerType=L})}};
_.t.getItemsPath=function(){return"data.contents"};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.t.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:_.c("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.c("kevlar_low_priority_continuation")}}};
_.t.created=function(){};
_.t.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.t.handleIntersect=function(L){this.notSticky=L[0].intersectionRatio===1};
_.t.attached=function(){var L=this,Z=_.c("web_item_section_sticky_header_use_scroll_as_fallback");Z||document.addEventListener("scroll",_.Nd(this,this.updateHeaderState));var N;this.mastheadHeight=((N=document.querySelector("ytd-masthead"))==null?void 0:N.clientHeight)||0;this.containerWidth=this.hostElement.clientWidth||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(S){L.handleIntersect(S)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):Z&&document.addEventListener("scroll",_.Nd(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){L.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.t.detached=function(){document.removeEventListener("scroll",_.Nd(this,this.updateHeaderState));var L;(L=this.intersectionObserver)==null||L.disconnect();var Z;(Z=this.resizeObserver)==null||Z.disconnect()};
_.t.updated=function(L){L.has("data")&&this.updateHeaderState()};
_.t.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(Xis(!this.notSticky))};
_.t.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var L=_.QJ(this.hostElement).querySelector("ytd-comments-header-renderer");L&&(L.hidePanelButton=this.commentsHidePanelButton)}};
_.t.onRetrieveLocation=function(L,Z){this.containsComments()&&(this.firstCommentsLoaded=Z.hasComments=!0)};
_.t.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.t.onLoadReloadContinuation=function(L,Z){var N=this;L.stopPropagation();this.isReloading=!0;_.QT(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(S){var u=_.GR().resolve(_.VJ);S=Z(S);u.postData(S).then(function(T){N.onReloadContinuationData(T)})}})};
_.t.onReloadContinuationData=function(L){if(L=this.get("response.continuationContents.itemSectionContinuation",L)||this.get("response.contents.itemSectionRenderer",L)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",L)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",L))this.set("data.contents",L.contents||L.results),L.header&&this.set("data.header",L.header),this.set("data.continuations",
L.continuations||[]);this.isReloading=!1};
_.t.computeContentsClass=function(L){return L?"reloading":""};
_.t.computeSectionIdentifier=function(L){return L==null?void 0:L.sectionIdentifier};
_.t.computeFitContainer=function(L){return(L==null?void 0:L.sectionIdentifier)==="youchat-item-section"};
_.t.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.c("kevlar_disable_comments_auto_load")};
_.t.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.t.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.t.computeHasDestinationShelfRenderer=function(L){var Z,N;return!!(L==null?0:(Z=L.contents)==null?0:(N=Z[0])==null?0:N.destinationShelfRenderer)};
_.t.computeHasSectionGroupViewModel=function(L){var Z,N;return!!(L==null?0:(Z=L.contents)==null?0:(N=Z[0])==null?0:N.sectionGroupViewModel)};
_.t.computeHasQrCodeRenderer=function(L){var Z,N;return!!(L==null?0:(Z=L.contents)==null?0:(N=Z[0])==null?0:N.qrCodeRenderer)};
_.t.computeStaticCommentsHeader=function(L){return L&&this.containsComments()};
_.t.computeEpRestyle=function(L){return _.c("web_ep_restyling")&&L&&this.containsComments()};
_.t.computeIsContinuationCommentSection=function(L){return(L==null?void 0:L.targetId)==="shorts-engagement-panel-comments-section"||(L==null?void 0:L.targetId)==="comments-section"||(L==null?void 0:L.targetId)==="engagement-panel-comments-section"};
_.t.computeSuppressPaddingDisclaimer=function(){var L,Z,N,S;return!!((L=this.data)==null?0:(Z=L.contents)==null?0:(N=Z[0])==null?0:(S=N.productListHeaderRenderer)==null?0:S.suppressPaddingDisclaimer)};
_.t.computeHeaderStyle=function(L){switch(L==null?void 0:L.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.t.dataChanged=function(){this.firstCommentsLoaded=!1};
_.t.observeDataContentsLength=function(){var L,Z;((L=this.data)==null?0:(Z=L.contents)==null?0:Z.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.t.onYtDismissibleItemDismissedChange=function(L){this._setItemDismissed(L.type==="yt-dismissible-item-dismissed")};
_.t.triggerContinuations=function(){for(var L=_.QJ(this.hostElement).querySelector("#continuations").children,Z=0;Z<L.length;Z++)L[Z].trigger()};
_.t.triggerInitialContinuations=function(){for(var L=_.QJ(this.hostElement).querySelector("#continuations").children,Z=0;Z<L.length;Z++)L[Z].triggerIfNotPreviouslyTriggered()};
_.t.handleYtItemSectionContinuation=function(L,Z){var N;Z&&((N=this.data)==null?void 0:N.sectionIdentifier)!==Z||(this.set("data.continuations",[L]),this.triggerContinuations())};
_.t.handleYtItemSectionReplace=function(L,Z){var N;Z&&((N=this.data)==null?void 0:N.sectionIdentifier)!==Z||(this.set("data.contents",L),this.set("data.continuations",[]))};
_.t.computeUseHeightHack=function(L){return L&&!_.c("kevlar_disable_height_hack")};
_.t.computeTopSpacingZero=function(L){return L};
_.t.continuationShowButtonChanged=function(){var L=_.QJ(this.hostElement).querySelector("ytd-continuation-item-renderer");L&&(L.showButton=this.continuationShowButton)};
_.t.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("data-changed",this.data))};
_.gd.Object.defineProperties(Sa.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.c("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.c("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return!!((L=this.data)==null?0:(Z=L.contents)==null?0:(N=Z[0])==null?0:N.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S,u,T,W;return!!((L=this.data)==null?0:(Z=L.contents)==null?0:(N=Z[0])==null?0:(S=N.shelfRenderer)==null?0:(u=S.content)==null?0:(T=u.gridRenderer)==null?0:(W=T.targetId)==null?0:W.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return!!((L=this.data)==null?0:(Z=L.contents)==null?0:(N=Z[0])==null?0:N.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return!!((L=this.data)==null?0:(Z=L.contents)==null?0:(N=Z[0])==null?0:N.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.vW("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.c("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.c("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
Sa.prototype.dataChangedForBinding=Sa.prototype.dataChangedForBinding;Sa.prototype.continuationShowButtonChanged=Sa.prototype.continuationShowButtonChanged;Sa.prototype.onYtDismissibleItemDismissedChange=Sa.prototype.onYtDismissibleItemDismissedChange;Sa.prototype.observeDataContentsLength=Sa.prototype.observeDataContentsLength;Sa.prototype.dataChanged=Sa.prototype.dataChanged;Sa.prototype.onServiceRequestCompleted=Sa.prototype.onServiceRequestCompleted;Sa.prototype.onLoadReloadContinuation=Sa.prototype.onLoadReloadContinuation;
Sa.prototype.onRetrieveLocation=Sa.prototype.onRetrieveLocation;Sa.prototype.commentsHidePanelButtonChanged=Sa.prototype.commentsHidePanelButtonChanged;Sa.prototype.dispatchChipBarIsSticky=Sa.prototype.dispatchChipBarIsSticky;Sa.prototype.updateLockupContainerTypes=Sa.prototype.updateLockupContainerTypes;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Sa.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Sa.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Sa.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.bz.YtLazyListBehavior),_.Q("design:type",Object)],Sa.prototype,"ytLazyListBehavior",void 0);_.r([_.y(_.i_.YtNextContinuationBehavior),_.Q("design:type",Object)],Sa.prototype,"ytNextContinuationBehavior",void 0);
_.r([_.y(_.Sq),_.Q("design:type",Object)],Sa.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Sa.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Sa.prototype,"ytdReduxBehavior",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Sa.prototype,"darkerPanels",void 0);_.r([_.Y(),_.Q("design:type",Object)],Sa.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],Sa.prototype,"engagementPanel",void 0);_.r([_.Y(),_.Q("design:type",Object)],Sa.prototype,"commentsHidePanelButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],Sa.prototype,"isWatchGrid",void 0);_.r([_.Y(),_.Q("design:type",Object)],Sa.prototype,"continuationShowButton",void 0);_.r([_.Y({computed:"computeIsContinuationCommentSection(data)"}),_.Q("design:type",Boolean)],Sa.prototype,"continuationIsCommentsSection",void 0);
_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],Sa.prototype,"autoFill",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Sa.prototype,"continuationDisablePrescanVisibility",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Sa.prototype,"isReloading",void 0);_.r([_.Y(),_.Q("design:type",Object)],Sa.prototype,"isSearch",void 0);_.r([_.Y(),_.Q("design:type",Object)],Sa.prototype,"isConstrainedList",void 0);_.r([_.Y(),_.Q("design:type",Object)],Sa.prototype,"isWatch",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Sa.prototype,"eligibleToSwitchToGrid",void 0);_.r([_.Y(),_.Q("design:type",Object)],Sa.prototype,"useBigThumbs",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Sa.prototype,"notSticky",void 0);_.r([_.Y({selector:_.KV,reflectToAttribute:!0}),_.Q("design:type",Object)],Sa.prototype,"isGridViewEnabled",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.Q("design:type",Object)],Sa.prototype,"epRestyle",void 0);_.r([_.w("isWatch"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Sa.prototype,"hideShortsShelfHeader",null);_.r([_.w("isSearch","isWatch"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Sa.prototype,"thumbnailWidth",null);
_.r([_.w("isSearch","containerWidth"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Sa.prototype,"thumbnailTargetWidth",null);_.r([_.w("isSearch","isWatch"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Sa.prototype,"sizing",null);_.r([_.w("isWatch","isGridViewEnabled","useBigThumbs","data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Sa.prototype,"lockupContainerType",null);
_.r([_.w("data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Sa.prototype,"hasHeader",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Sa.prototype,"expFixPlaylistHeader",null);_.r([_.iA("lockupContainerType","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[Number]),_.Q("design:returntype")],Sa.prototype,"updateLockupContainerTypes",null);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],Sa.prototype,"pageSubtype",void 0);_.r([_.Y(),_.Q("design:type",Number)],Sa.prototype,"containerWidth",void 0);_.r([_.Y(),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Sa.prototype,"isPlaylist",null);_.r([_.Y(),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Sa.prototype,"isClipList",null);_.r([_.Y(),_.Q("design:type",Object)],Sa.prototype,"isCarouselInFeed",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Sa.prototype,"isPlaylistVideoContainer",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Sa.prototype,"isSearchFrictionPage",null);_.r([_.Y({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.Q("design:type",Boolean)],Sa.prototype,"useHeightHack",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.Q("design:type",Object)],Sa.prototype,"topSpacingZero",void 0);_.r([_.Y({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.Q("design:type",Boolean)],Sa.prototype,"showButton",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Sa.prototype,"firstCommentsLoaded",void 0);_.r([_.Y(),_.Q("design:type",Object)],Sa.prototype,"continuationIsInitialLoad",void 0);
_.r([_.Y({reflectToAttribute:!0,readOnly:!0}),_.Q("design:type",Boolean)],Sa.prototype,"itemDismissed",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.Q("design:type",String)],Sa.prototype,"sectionIdentifier",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.Q("design:type",String)],Sa.prototype,"fitContainer",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.Q("design:type",Boolean)],Sa.prototype,"hasDestinationShelfRenderer",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.Q("design:type",Boolean)],Sa.prototype,"staticCommentsHeader",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Sa.prototype,"enableSqueezebackPanels",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Sa.prototype,"enableAnchoredPanel",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.Q("design:type",Boolean)],Sa.prototype,"hasSectionGroupViewModel",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.Q("design:type",Boolean)],Sa.prototype,"hasQrCodeRenderer",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.Q("design:type",Boolean)],Sa.prototype,"suppressDisclaimerSeparator",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.Q("design:type",String)],Sa.prototype,"headerStyle",void 0);_.r([_.w("isSearch"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Sa.prototype,"lockupExperiments",null);
_.r([_.w("isSearch"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Sa.prototype,"typographyBump",null);_.r([_.TX("#header"),_.Q("design:type",HTMLElement)],Sa.prototype,"header",void 0);_.r([_.iA("notSticky"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Sa.prototype,"dispatchChipBarIsSticky",null);
_.r([_.iA("commentsHidePanelButton"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Sa.prototype,"commentsHidePanelButtonChanged",null);_.r([_.SA("yt-retrieve-location"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],Sa.prototype,"onRetrieveLocation",null);
_.r([_.SA("yt-load-reload-continuation"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Function]),_.Q("design:returntype")],Sa.prototype,"onLoadReloadContinuation",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Sa.prototype,"onServiceRequestCompleted",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Sa.prototype,"dataChanged",null);
_.r([_.Vr("data.contents.length"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Sa.prototype,"observeDataContentsLength",null);_.r([_.SA("yt-dismissible-item-dismissed"),_.SA("yt-dismissible-item-undismissed"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Sa.prototype,"onYtDismissibleItemDismissedChange",null);
_.r([_.iA("continuationShowButton"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Sa.prototype,"continuationShowButtonChanged",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Sa.prototype,"dataChangedForBinding",null);_.r([_.P({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Sa);
_.m(Sa,"ytd-item-section-renderer",function(){if(RDq!==void 0)return RDq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return RDq=L},{mode:1});var DLg;var k4t=_.s9(_.iB("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var l0m={},fYw=(l0m[0]={title:_.Cq(_.iB("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Cq(_.iB("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.m2("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},l0m[1]={title:_.Cq(_.iB("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.m2("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},l0m);_.l4("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var iP=function(){var L=_.e.apply(this,arguments)||this;L.allVideosCount=0;L.allPlaylistCount=0;L.isOnline=!1;L.shouldRenderDownloadsBanner=!1;L.shouldRenderDownloadsBannerUpsell=!1;L.hasOptedIntoSmartDownloads=!1;L.areAllSmartDownloadsDeleted=!1;L.smartDownloadsCompleted=!1;return L};
_.f(iP,_.e);iP.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
iP.prototype.attached=function(){this.downloadsToRenderChanged()};
iP.prototype.detached=function(){this.set("renderableData",{})};
iP.prototype.downloadsToRenderChanged=function(){var L=_.Pv().getState().entities,Z=_.$Q(L),N=_.c("kevlar_playlist_dl_page_killswitch")?kxw(L):_.DT(L),S=_.vX_(L),u=_.nXF(L),T=_.VE(Z);L=_.l2(L);this.set("renderableData",w5h(N,Z,S,u,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,T,L))};
iP.prototype.downloadsToRenderChanged=iP.prototype.downloadsToRenderChanged;_.r([_.y(_.CD),_.Q("design:type",Object)],iP.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],iP.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],iP.prototype,"renderableData",void 0);_.r([_.Y({selector:_.PM_}),_.Q("design:type",Object)],iP.prototype,"allVideosCount",void 0);_.r([_.Y({selector:MOL}),_.Q("design:type",Object)],iP.prototype,"allPlaylistCount",void 0);_.r([_.Y({selector:_.nk}),_.Q("design:type",Object)],iP.prototype,"isOnline",void 0);_.r([_.Y({selector:_.Q30}),_.Q("design:type",Object)],iP.prototype,"shouldRenderDownloadsBanner",void 0);
_.r([_.Y({selector:_.Beh}),_.Q("design:type",Object)],iP.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.r([_.Y({selector:_.XSw}),_.Q("design:type",Object)],iP.prototype,"hasOptedIntoSmartDownloads",void 0);_.r([_.Y({selector:_.Ays}),_.Q("design:type",Object)],iP.prototype,"areAllSmartDownloadsDeleted",void 0);_.r([_.Y({selector:HKx}),_.Q("design:type",Object)],iP.prototype,"smartDownloadsCompleted",void 0);
_.r([_.Vr("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iP.prototype,"downloadsToRenderChanged",null);_.r([_.P({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],iP);
_.m(iP,"ytd-offline-item-section-renderer",function(){if(DLg!==void 0)return DLg;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return DLg=L},
{mode:1});var vtQ;var ot8;var uP=function(){return _.e.apply(this,arguments)||this};
_.f(uP,_.e);
uP.prototype.onDataChanged=function(){if(this.JSC$16827_lastData){var L=this.getFilterClass(this.JSC$16827_lastData.status);L&&this.hostElement.classList.remove(L)}var Z;(L=this.getFilterClass((Z=this.data)==null?void 0:Z.status))&&this.hostElement.classList.add(L);L==="selected"?_.QJ(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.QJ(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");L==="disabled"?_.QJ(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.QJ(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16827_lastData=this.data};
uP.prototype.getFilterClass=function(L){switch(L){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
uP.prototype.onDataChanged=uP.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],uP.prototype,"data",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],uP.prototype,"onDataChanged",null);_.r([_.P({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],uP);
_.m(uP,"ytd-search-filter-renderer",function(){if(ot8!==void 0)return ot8;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return ot8=L},{mode:_.Qr("kevlar_poly_si_batch_j075")?1:2});var TU=function(){return _.e.apply(this,arguments)||this};
_.f(TU,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],TU.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],TU.prototype,"data",void 0);_.r([_.P({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],TU);
_.m(TU,"ytd-search-filter-group-renderer",function(){if(vtQ!==void 0)return vtQ;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return vtQ=L},{mode:_.Qr("kevlar_poly_si_batch_j075")?1:2});var RAk;var tb=function(){return _.e.apply(this,arguments)||this};
_.f(tb,_.e);tb.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.vL());this.isCollapsed=!this.isCollapsed};
tb.prototype.navigateToAboutTheseResultsPage=function(){var L=_.P6("https://www.youtube.com/howyoutubeworks/product-features/search/");L?_.Ls(window,L,"_blank"):_.H8(Error("Uh"))};
tb.prototype.dataChanged=function(){this.isCollapsed=!0};
tb.prototype.computeShowBottomBorder=function(){var L,Z,N;return!!((L=this.data)==null?0:(Z=L.button)==null?0:Z.toggleButtonRenderer)||!((N=this.data)==null||!N.aboutTheseResultsButton)};
tb.prototype.dataChanged=tb.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],tb.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.Q("design:type",Boolean)],tb.prototype,"showBottomBorder",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],tb.prototype,"renderCollapsibleMenu",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],tb.prototype,"isCollapsed",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tb.prototype,"dataChanged",null);_.r([_.P({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],tb);
_.m(tb,"ytd-search-sub-menu-renderer",function(){if(RAk!==void 0)return RAk;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return RAk=L},{mode:1});var cxv;var nt5=new _.iY("SECTION_LIST_RENDERER_TOKEN");var Kh5;var Oh=function(){return _.e.apply(this,arguments)||this};
_.f(Oh,_.e);Oh.prototype.computeStyle=function(L){return L?L.toLowerCase().replace(/_/g,"-"):""};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Oh.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Q("design:type",String)],Oh.prototype,"headerStyle",void 0);_.r([_.P({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Oh);
_.m(Oh,"ytd-text-header-renderer",function(){if(Kh5!==void 0)return Kh5;var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Kh5=L},{mode:1});var f0v;var WU=function(){return _.e.apply(this,arguments)||this};
_.f(WU,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],WU.prototype,"data",void 0);_.r([_.P({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],WU);
_.m(WU,"ytd-minor-moment-header-renderer",function(){if(f0v!==void 0)return f0v;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return f0v=L},{mode:1});var kBm;var V5=function(){return _.e.apply(this,arguments)||this};
_.f(V5,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],V5.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],V5.prototype,"data",void 0);_.r([_.P({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],V5);
_.m(V5,"ytd-minor-moment-setting-alert-renderer",function(){if(kBm!==void 0)return kBm;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return kBm=L},{mode:1});var yxm;var ws0;var bP=function(){var L=_.e.apply(this,arguments)||this;L.booleanSettingById=!1;L.smartDownloadsEnabledVE=_.Ll(128287);L.smartDownloadsDisabledVE=_.Ll(128286);L.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return L};
_.f(bP,_.e);_.t=bP.prototype;_.t.attachSmartDownloadsSettingVes=function(){var L;this.activeVeForLogging||((L=this.data)==null?void 0:L.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.k3(_.tC(),this.smartDownloadsEnabledVE),_.k3(_.tC(),this.smartDownloadsDisabledVE))};
_.t.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.QT(this.hostElement,"yt-settings-switch-ready")};
_.t.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.t.onSwitchChange=function(L){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(L=_.jD(L).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.c("kevlar_settings_switch_resolve_command_killswitch")?_.GR().resolve(_.$s).resolveCommand(L,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(L)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.t.handleUpdateSettingsSwitch=function(L){(L=_.n(L,TEL))&&this.data&&this.data.id===L.id&&this.set("data.enabled",!!L.enabled)};
_.t.onToggleSettingsSwitch=function(L,Z){this.data&&this.data.id===L&&this.set("data.enabled",Z!=null?Z:!this.data.enabled)};
_.t.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Fx.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.t.maybeLogSmartDownloadsSettingVisibility=function(){var L=_.RH(),Z;L&&((Z=this.data)==null?void 0:Z.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.aq(L,[this.smartDownloadsEnabledVE]),_.hq(L,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.aq(L,[this.smartDownloadsDisabledVE]),_.hq(L,[this.smartDownloadsEnabledVE])))};
_.t.maybeLogSmartDownloadsSettingClick=function(){var L;((L=this.data)==null?void 0:L.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.wM(_.tC(),this.activeVeForLogging)};
_.t.updateDataEnabledFromBinding=function(L){this.set("data.enabled",L.detail.value)};
_.gd.Object.defineProperties(bP.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var L=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!L&&(L=this.ytRendererBehavior.getSimpleString(this.data.title));return L}}});
bP.prototype.dataChanged=bP.prototype.dataChanged;_.r([_.y(_.CD),_.Q("design:type",Object)],bP.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],bP.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],bP.prototype,"ytComponentBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],bP.prototype,"data",void 0);_.r([_.Y({selector:function(L,Z){if(Object.keys(L==null?void 0:L.entities).length)switch(Z){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return yyH(L.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.Q("design:type",Object)],bP.prototype,"booleanSettingById",void 0);_.r([_.Y(),_.Q("design:type",v2)],bP.prototype,"activeVeForLogging",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],bP.prototype,"toggleAriaLabel",null);_.r([_.Vr("data"),_.Vr("booleanSettingById"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bP.prototype,"dataChanged",null);
_.r([_.P({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],bP);
_.m(bP,"ytd-settings-switch-renderer",function(){if(ws0!==void 0)return ws0;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ws0=L},{mode:1});var M0=function(){return _.e.apply(this,arguments)||this};
_.f(M0,_.e);M0.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}}}}};
_.gd.Object.defineProperties(M0.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var L=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(L+=" remove-left-margin");this.data.extraBottomSpace&&(L+=" extra-bottom-space");return L}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],M0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],M0.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],M0.prototype,"contentsClassName",null);_.r([_.P({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],M0);
_.m(M0,"ytd-minor-moment-setting-section-renderer",function(){if(yxm!==void 0)return yxm;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return yxm=L},{mode:1});var UL5;var gG=function(){return _.e.apply(this,arguments)||this};
_.f(gG,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],gG.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],gG.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],gG);
_.m(gG,"ytd-empty-product-details-renderer",function(){if(UL5!==void 0)return UL5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return UL5=L},{mode:1});var YG5;var eAw;var GU=function(){var L=_.e.apply(this,arguments)||this;L.expanded=!0;return L};
_.f(GU,_.e);GU.prototype.getBadgeRowClass=function(L,Z,N){for(var S=_.O(this.hostElement.querySelectorAll("yt-img-shadow")),u=S.next();!u.done;u=S.next())u.value.onShow();L=L.selected;return N?L!==-1?L===Z?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(L!==void 0?L:0)===Z?"badge-line":"badge-hidden"};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],GU.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],GU.prototype,"expanded",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],GU);
_.m(GU,"ytd-sponsorships-loyalty-badges-renderer",function(){if(eAw!==void 0)return eAw;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return eAw=L},{mode:1});var I0Y;var Fa=function(){var L=_.e.apply(this,arguments)||this;L.expanded=!0;return L};
_.f(Fa,_.e);Fa.prototype.getContainerClasses=function(L,Z){L=L?"expanded":"collapsed";Z&&(L+=" item");return L};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Fa.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Fa.prototype,"expanded",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Fa);
_.m(Fa,"ytd-sponsorships-perk-renderer",function(){if(I0Y!==void 0)return I0Y;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return I0Y=L},{mode:1});var dL0;var $4=function(){var L=_.e.apply(this,arguments)||this;L.expanded=!0;return L};
_.f($4,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],$4.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],$4.prototype,"expanded",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],$4);
_.m($4,"ytd-sponsorships-perks-renderer",function(){if(dL0!==void 0)return dL0;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return dL0=L},{mode:1});var Dt=function(){var L=_.e.apply(this,arguments)||this;L.isCollapsed=!1;return L};
_.f(Dt,_.e);Dt.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Dt.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Dt.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var L;this.expandCollapseButton=_.n((L=this.data)==null?void 0:L.expandButton,_.xZ)}else{var Z;this.expandCollapseButton=_.n((Z=this.data)==null?void 0:Z.collapseButton,_.xZ)}};
Dt.prototype.updateExpandCollapseButton=Dt.prototype.updateExpandCollapseButton;Dt.prototype.onDataChanged=Dt.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Dt.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Dt.prototype,"isCollapsed",void 0);_.r([_.Y(),_.Q("design:type",Object)],Dt.prototype,"expandCollapseButton",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Dt.prototype,"onDataChanged",null);_.r([_.Vr("data","isCollapsed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Dt.prototype,"updateExpandCollapseButton",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Dt);
_.m(Dt,"ytd-sponsorships-expandable-perks-renderer",function(){if(YG5!==void 0)return YG5;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return YG5=L},{mode:1});var a0v;var lP=function(){return _.e.apply(this,arguments)||this};
_.f(lP,_.e);lP.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],lP.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],lP.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],lP);
_.m(lP,"ytd-sponsorships-actionable-message-renderer",function(){if(a0v!==void 0)return a0v;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return a0v=L},{mode:1});var hAc;var vU=function(){return _.e.apply(this,arguments)||this};
_.f(vU,_.e);_.t=vU.prototype;_.t.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.t.getExpansionIcon=function(L){return L?"COLLAPSE":"EXPAND"};
_.t.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.t.computeMessageContainerStyle=function(L){var Z=L.expandableItems?" style-clickable":"";return L.messageContainerStyle?L.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+Z:"style-unspecified"+Z};
_.t.isSinglePerk=function(L){return!!L.messageContainerStyle&&(L.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||L.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.t.onExpandedChanged=function(){var L=this;if(this.expanded)for(var Z=_.O(this.hostElement.querySelectorAll("yt-img-shadow")),N=Z.next();!N.done;N=Z.next())N.value.onShow();_.bN(this,function(){_.QT(L.hostElement,"yt-refit")})};
_.t.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
vU.prototype.onDataChanged=vU.prototype.onDataChanged;vU.prototype.onExpandedChanged=vU.prototype.onExpandedChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],vU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],vU.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],vU.prototype,"expanded",void 0);
_.r([_.iA("expanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vU.prototype,"onExpandedChanged",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vU.prototype,"onDataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],vU);
_.m(vU,"ytd-sponsorships-expandable-message-renderer",function(){if(hAc!==void 0)return hAc;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return hAc=L},{mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});var sFv;var or=function(){return _.e.apply(this,arguments)||this};
_.f(or,_.e);or.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"}}}}};
or.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.n(this.data.endButton,_.xZ).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
or.prototype.onDataChanged=or.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],or.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],or.prototype,"data",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],or.prototype,"onDataChanged",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],or);
_.m(or,"ytd-sponsorships-heading-renderer",function(){if(sFv!==void 0)return sFv;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return sFv=L},{mode:1});var jFv;var Rr=function(){return _.e.apply(this,arguments)||this};
_.f(Rr,_.e);_.r([_.Y(),_.Q("design:type",Object)],Rr.prototype,"data",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Rr);
_.m(Rr,"ytd-sponsorships-links-renderer",function(){if(jFv!==void 0)return jFv;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return jFv=L},{mode:1});var Ets;var cU=function(){return _.e.apply(this,arguments)||this};
_.f(cU,_.e);_.t=cU.prototype;_.t.onDataChanged=function(){if(this.data&&this.data.expandableItems){var L;(L=_.QJ(this.hostElement).querySelector("tp-yt-paper-button"))==null||L.setAttribute("role","button")}else{var Z;(Z=_.QJ(this.hostElement).querySelector("tp-yt-paper-button"))==null||Z.removeAttribute("role")}};
_.t.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.t.getExpansionIcon=function(L){return L?"COLLAPSE":"EXPAND"};
_.t.getTileClasses=function(L){return L?"tile expandable-tile":"tile"};
_.t.getButtonDisabled=function(L){return L?void 0:""};
cU.prototype.onDataChanged=cU.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],cU.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],cU.prototype,"expanded",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cU.prototype,"onDataChanged",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],cU);
_.m(cU,"ytd-sponsorships-list-tile-renderer",function(){if(Ets!==void 0)return Ets;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Ets=L},{mode:1});var PHs;var psy;var nz=function(){return _.e.apply(this,arguments)||this};
_.f(nz,_.e);nz.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],nz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],nz.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],nz);
_.m(nz,"ytd-sponsorships-promotion-renderer",function(){if(psy!==void 0)return psy;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return psy=L},{mode:1});var zA5;var Kz=function(){return _.e.apply(this,arguments)||this};
_.f(Kz,_.e);Kz.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Kz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Kz.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Kz);
_.m(Kz,"ytd-sponsorships-purchase-option-renderer",function(){if(zA5!==void 0)return zA5;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return zA5=L},{mode:1});var mL5;var Jxg;var CHm=function(){return _.e.apply(this,arguments)||this};
_.f(CHm,_.e);_.r([_.Y(),_.Q("design:type",Object)],CHm.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],CHm);
_.m(CHm,"ytd-ypc-offer-promo-renderer",function(){if(Jxg!==void 0)return Jxg;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Jxg=L},{mode:1});var fz=function(){return _.e.apply(this,arguments)||this};
_.f(fz,_.e);_.t=fz.prototype;
_.t.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"}}}}};
_.t.expansionCTA=function(L,Z){return L&&(Z?L.collapseCallToAction:L.expansionCallToAction)};
_.t.getExpansionIcon=function(L){return L?"COLLAPSE":"EXPAND"};
_.t.expansionCallToActionTap=function(){var L=this;this.expanded=!this.expanded;_.bN(this,function(){_.QT(L.hostElement,"yt-refit")})};
_.t.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var L,Z=(L=this.data)==null?void 0:L.onVisible;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.t.computeDisplayTitle=function(L){return!(!L||this.titledisplaystatus!=="show")};
_.t.computeDisplaySeparator=function(){return!1};
_.t.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
fz.prototype.onDataChanged=fz.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],fz.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],fz.prototype,"data",void 0);
_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],fz.prototype,"expanded",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],fz.prototype,"purchaseButtonClicked",void 0);_.r([_.Y({reflectToAttribute:!0,value:"show"}),_.Q("design:type",String)],fz.prototype,"titledisplaystatus",void 0);_.r([_.Y({computed:"computeDisplayTitle(data.title)"}),_.Q("design:type",Boolean)],fz.prototype,"displayTitle",void 0);
_.r([_.Y({computed:"computeDisplaySeparator(data)"}),_.Q("design:type",Boolean)],fz.prototype,"displaySeparator",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fz.prototype,"onDataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],fz);
_.m(fz,"ytd-sponsorships-tier-renderer",function(){if(mL5!==void 0)return mL5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return mL5=L},{mode:2});var k4=function(){return _.e.apply(this,arguments)||this};
_.f(k4,_.e);
k4.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"}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],k4.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],k4);
_.m(k4,"ytd-sponsorships-management-renderer",function(){if(PHs!==void 0)return PHs;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return PHs=L},{mode:1});var rx5;var y5=function(){return _.e.apply(this,arguments)||this};
_.f(y5,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],y5.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],y5.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],y5);
_.m(y5,"ytd-open-in-native-app-view-model",function(){if(rx5!==void 0)return rx5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return rx5=L},{mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});var QFv;var Xsc;var AxY=_.sc(["top-"]),H1Q=_.sc(["bottom-"]),BPk=_.sc(["left-"]),xL8=_.sc(["right-"]),qGY={},LMv=function(L,Z,N){L.removeAttribute("top-"+N);L.removeAttribute("bottom-"+N);L.removeAttribute("left-"+N);L.removeAttribute("right-"+N);Z&&(Z.top&&_.O3([_.Fr(AxY)],L,"top-"+N,Z.top),Z.bottom&&_.O3([_.Fr(H1Q)],L,"bottom-"+N,Z.bottom),Z.left&&_.O3([_.Fr(BPk)],L,"left-"+N,Z.left),Z.right&&_.O3([_.Fr(xL8)],L,"right-"+N,Z.right))};
qGY.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(L){var Z,N=_.QJ((Z=this.hostElement)!=null?Z:this),S;Z=this.cardItemBoxBehaviorMarginTargetId&&N?N.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(S=this.hostElement)!=null?S:this;LMv(Z,L,"margin")},
cardItemContainerPaddingChanged_:function(L){var Z,N=_.QJ((Z=this.hostElement)!=null?Z:this),S;Z=this.cardItemBoxBehaviorPaddingTargetId&&N?N.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(S=this.hostElement)!=null?S:this;LMv(Z,L,"padding")}}];var wG={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-brand-icon-active)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-brand-icon-inactive)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var Z0v;var N5Q;var Uh=function(){return _.e.apply(this,arguments)||this};
_.f(Uh,_.e);Uh.prototype.textColorChanged_=function(){this.hostElement.style.color=wG[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Uh.prototype.textColorChanged_=Uh.prototype.textColorChanged_;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.r([_.y(qGY.YtCardItemBoxBehavior),_.Q("design:type",Object)],Uh.prototype,"ytCardItemBoxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uh.prototype,"data",void 0);_.r([_.iA("data.textColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uh.prototype,"textColorChanged_",null);
_.r([_.ch({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Uh);
_.m(Uh,"yt-card-item-text-renderer",function(){if(N5Q===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Z0v===void 0&&(Z0v=document.createElement("template"));var S=Z0v;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);N5Q=L}L=N5Q;return L},{mode:2});var SYv;var i0g;var Y4=function(){return _.e.apply(this,arguments)||this};
_.f(Y4,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Y4.prototype,"data",void 0);_.r([_.ch({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Y4);
_.m(Y4,"yt-card-item-badge-renderer",function(){if(i0g===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;SYv===void 0&&(SYv=document.createElement("template"));var S=SYv;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);i0g=L}L=i0g;return L},{mode:2});var uhm;var T5s;var ea=function(){return _.e.apply(this,arguments)||this};
_.f(ea,_.e);ea.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ea.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ea.prototype,"data",void 0);_.r([_.ch({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],ea);
_.m(ea,"yt-card-item-text-collection-renderer",function(){if(T5s===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;uhm===void 0&&(uhm=document.createElement("template"));var S=uhm;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);T5s=L}L=T5s;return L},{mode:2});var ttv;var O00;var Ir=function(){return _.e.apply(this,arguments)||this};
_.f(Ir,_.e);Ir.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]]"}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ir.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Number)],Ir.prototype,"iconSize",void 0);_.r([_.ch({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Ir);
_.m(Ir,"yt-card-item-text-with-button-renderer",function(){if(O00===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;ttv===void 0&&(ttv=document.createElement("template"));var S=ttv;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);O00=L}L=O00;return L},{mode:2});var dG=function(){return _.e.apply(this,arguments)||this};
_.f(dG,_.e);dG.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"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],dG.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],dG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],dG.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],dG);
_.m(dG,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Xsc!==void 0)return Xsc;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Xsc=L},{mode:1});_.l4("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var ar=function(){var L=_.e.apply(this,arguments)||this;L.hidden=!1;return L};
_.f(ar,_.e);_.t=ar.prototype;_.t.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"}}}}};
_.t.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.t.updateSummary=function(){var L=this.commerceCartCheckoutButtonEntity,Z;if(((Z=this.data)==null?0:Z.cartButton)&&L.checkoutSummaryText){var N,S=D2((N=this.data)==null?void 0:N.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+S+".cardItemTextRenderer.text",lF(L.checkoutSummaryText));if(L.checkoutDetailText){var u;N=D2((u=this.data)==null?void 0:u.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+N+".cardItemTextRenderer.text",lF(L.checkoutDetailText))}if(L.checkoutAdditionalMetadataText){var T;
u=D2((T=this.data)==null?void 0:T.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+u+".cardItemTextRenderer.text",lF(L.checkoutAdditionalMetadataText))}}else L.estimatedTotalPrice&&(T=D2((S=this.data)==null?void 0:S.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+T+".cardItemTextRenderer.text",lF(L.estimatedTotalPrice)))};
_.t.updateIsHidden=function(){var L,Z=(L=this.commerceCartCheckoutButtonEntity)==null?void 0:L.isHidden;Z!==void 0&&(this.hidden=Z)};
_.t.updateCheckoutButton=function(){var L,Z=(L=this.commerceCartCheckoutButtonEntity)==null?void 0:L.isDisabled;Z!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",Z);var N;L=(N=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:N.innertubeCommand;L!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",L);var S;N=(S=this.commerceCartCheckoutButtonEntity)==null?void 0:S.checkoutButtonText;N!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:N})};
ar.prototype.entityChanged=ar.prototype.entityChanged;_.r([_.y(_.CD),_.Q("design:type",Object)],ar.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],ar.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],ar.prototype,"fullWidth",void 0);_.r([_.Y(),_.Q("design:type",Object)],ar.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],ar.prototype,"compact",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ar.prototype,"hidden",void 0);
_.r([_.Y({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:tvx}),_.Q("design:type",Object)],ar.prototype,"commerceCartCheckoutButtonEntity",void 0);_.r([_.iA("commerceCartCheckoutButtonEntity","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ar.prototype,"entityChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],ar);
_.m(ar,"ytd-commerce-cart-checkout-button-renderer",function(){if(QFv!==void 0)return QFv;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return QFv=L},{mode:2});var WMw;_.Vtc={};
_.Vtc.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",_.Nd(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Nd(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(L){!this.tappableItemBehaviorTapEnabled||L.keyCode!==13&&L.keyCode!==32||L.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var L=this.data.onTap;L.ypcGetCartEndpoint?(_.H2(this.hostElement,[L]),this.tappableItemBehaviorTapEnabled=!1):L.ypcOffersEndpoint?_.H2(this.hostElement,[L]):_.B2(this.hostElement,[L],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(L){this.tappableItemBehaviorTapEnabled=!!L},
tappableItemBehaviorOnTapEnabledChanged_:function(){var L=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(L.setAttribute("tabIndex",0),L.setAttribute("role","button")):(L.removeAttribute("tabIndex"),L.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(L){L.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var b0q;var MtP;var hb=function(){return _.e.apply(this,arguments)||this};
_.f(hb,_.e);hb.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.vQ("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.vQ("sharingToggleButtonAndDefaultButton")}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],hb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],hb.prototype,"data",void 0);_.r([_.ch({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],hb);
_.m(hb,"yt-card-item-actions-renderer",function(){if(MtP===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;b0q===void 0&&(b0q=document.createElement("template"));var S=b0q;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);MtP=L}L=MtP;return L},{mode:2});var gLw;var GVc;var FMv;var $Iv;var DIP;var lNq;var sh=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return L};
_.f(sh,_.e);sh.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
sh.prototype.handleDarkModeToggledAction_=function(L){this.isDarkTheme_=L};
sh.prototype.computeThemeImage_=function(L,Z){if(!L||!L.imageLight)return!1;this.isCircular_=L.isCircular;L.imageWidth&&(this.hostElement.style.width=L.imageWidth+"px");L.imageHeight&&(this.hostElement.style.height=L.imageHeight+"px");L.borderWidth&&(this.image.style.borderWidth=L.borderWidth+"px",this.image.style.borderStyle="solid");L.borderColor&&(this.image.style.borderColor=_.Rs(L.borderColor));return Z&&L.imageDark?L.imageDark:L.imageLight};
sh.prototype.computeThemeIcon_=function(L){var Z,N;if(!(L==null?0:(Z=L.themedIcon)==null?0:(N=Z.icon)==null?0:N.iconType))return!1;this.icon.style.color=wG[L.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(L.imageWidth||18)+"px";this.icon.style.height=(L.imageHeight||18)+"px";return _.Bh(L.themedIcon.icon.iconType)};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(qGY.YtCardItemBoxBehavior),_.Q("design:type",Object)],sh.prototype,"ytCardItemBoxBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],sh.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],sh.prototype,"data",void 0);
_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],sh.prototype,"fit",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],sh.prototype,"isDarkTheme_",void 0);_.r([_.Y({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.Q("design:type",Object)],sh.prototype,"themeImage_",void 0);_.r([_.Y({computed:"computeThemeIcon_(data)"}),_.Q("design:type",Object)],sh.prototype,"themeIcon_",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Object)],sh.prototype,"isCircular_",void 0);
_.r([_.TX("#image"),_.Q("design:type",Object)],sh.prototype,"image",void 0);_.r([_.TX("#icon"),_.Q("design:type",Object)],sh.prototype,"icon",void 0);_.r([_.ch({is:"yt-themed-image-renderer",disableElementRegistration:!0})],sh);
_.m(sh,"yt-themed-image-renderer",function(){if(lNq===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;DIP===void 0&&(DIP=document.createElement("template"));var S=DIP;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);lNq=L}L=lNq;return L},{mode:2});var ja=function(){return _.e.apply(this,arguments)||this};
_.f(ja,_.e);ja.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"}}}}};
ja.prototype.computeImagePlacement_=function(L){return L||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ja.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ja.prototype,"data",void 0);_.r([_.Y({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.Q("design:type",String)],ja.prototype,"imagePlacement",void 0);
_.r([_.ch({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],ja);
_.m(ja,"yt-card-item-text-with-image-renderer",function(){if($Iv===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;FMv===void 0&&(FMv=document.createElement("template"));var S=FMv;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);$Iv=L}L=$Iv;return L},{mode:2});var Eh=function(){return _.e.apply(this,arguments)||this};
_.f(Eh,_.e);Eh.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"}}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Eh.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Eh.prototype,"data",void 0);_.r([_.ch({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Eh);
_.m(Eh,"yt-card-item-error-renderer",function(){if(GVc===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;gLw===void 0&&(gLw=document.createElement("template"));var S=gLw;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);GVc=L}L=GVc;return L},{mode:2});var vLk;var oLQ;_.l4("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var PU=function(){return _.e.apply(this,arguments)||this};
_.f(PU,_.e);_.t=PU.prototype;
_.t.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"}}}}};
_.t.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.t.backgroundColorChanged_=function(){var L,Z=(L=this.data)==null?void 0:L.backgroundColor;L=wG[Z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.QJ(this.hostElement).querySelector("#main-content").style.backgroundColor=L};
_.t.headerPromoBackgroundColorChanged_=function(){var L,Z=(L=this.data)==null?void 0:L.headerPromoBackgroundColor;L=wG[Z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.QJ(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=L};
_.t.errorRendererVisibilityChanged_=function(){var L=this.isExpanded_,Z;this.isErrorRendererVisible_=!((Z=this.data)==null||!Z.errorRenderer)&&!L};
_.t.onYtToggleButton_=function(L,Z){this.isExpanded_=Z.toggled};
PU.prototype.onYtToggleButton_=PU.prototype.onYtToggleButton_;PU.prototype.errorRendererVisibilityChanged_=PU.prototype.errorRendererVisibilityChanged_;PU.prototype.headerPromoBackgroundColorChanged_=PU.prototype.headerPromoBackgroundColorChanged_;PU.prototype.backgroundColorChanged_=PU.prototype.backgroundColorChanged_;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],PU.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],PU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(qGY.YtCardItemBoxBehavior),_.Q("design:type",Object)],PU.prototype,"ytCardItemBoxBehavior",void 0);_.r([_.y(_.Vtc.YtTappableItemBehavior),_.Q("design:type",Object)],PU.prototype,"ytTappableItemBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],PU.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],PU.prototype,"isExpanded_",void 0);
_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],PU.prototype,"isErrorRendererVisible_",void 0);_.r([_.iA("data.backgroundColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PU.prototype,"backgroundColorChanged_",null);_.r([_.iA("data.headerPromoBackgroundColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PU.prototype,"headerPromoBackgroundColorChanged_",null);
_.r([_.iA("data.errorRenderer","isExpanded_"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PU.prototype,"errorRendererVisibilityChanged_",null);_.r([_.SA("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event,Object]),_.Q("design:returntype")],PU.prototype,"onYtToggleButton_",null);_.r([_.ch({is:"yt-card-item-renderer",disableElementRegistration:!0})],PU);
_.m(PU,"yt-card-item-renderer",function(){if(oLQ===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;vLk===void 0&&(vLk=document.createElement("template"));var S=vLk;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);oLQ=L}L=oLQ;return L},{mode:2});_.l4("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var pz=function(){var L=_.e.apply(this,arguments)||this;L.hidden=!1;return L};
_.f(pz,_.e);_.t=pz.prototype;_.t.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.t.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.t.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var L,Z=(L=this.commerceCartHeaderEntity)==null?void 0:L.isHidden;Z!==void 0&&(this.hidden=Z)}};
_.t.updateTitle=function(){var L=this.commerceCartHeaderEntity.isDisabled,Z,N,S=(N=_.n((Z=this.data)==null?void 0:Z.item,SqQ))==null?void 0:N.headingRenderer;S&&(Z=D2(S,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+Z+".0.cardItemTextRenderer.textColor",L?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.t.updateSummaryText=function(){var L=this.commerceCartHeaderEntity;if(this.compact){var Z,N,S=(N=_.n((Z=this.data)==null?void 0:Z.item,SqQ))==null?void 0:N.headingRenderer;S&&(Z=D2(S,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+Z+".1.cardItemTextRenderer.text",L.shortHeaderSummaryText?lF(L.shortHeaderSummaryText):L.headerSummaryText?lF(L.headerSummaryText):""))}else{var u;if(Z=(u=_.n((S=this.data)==null?void 0:S.item,SqQ))==null?void 0:u.additionalInfoRenderer)Z=D2(Z,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+Z+".text",L.headerSummaryText?lF(L.headerSummaryText):"")}};
_.t.updateCheckoutButton=function(){var L=this.commerceCartHeaderEntity,Z,N,S=(N=_.n((Z=this.data)==null?void 0:Z.item,SqQ))==null?void 0:N.additionalInfoRenderer;Z=D2(S,"buttonRenderer");var u;N=(u=this.commerceCartHeaderEntity)==null?void 0:u.isButtonDisabled;var T;u=(T=this.commerceCartHeaderEntity)==null?void 0:T.isButtonHidden;N!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+Z+".buttonRenderer.isDisabled",N);u!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
u);var W;L=(W=L.checkoutButtonCommand)==null?void 0:W.innertubeCommand;L!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+Z+".buttonRenderer.command",L)};
pz.prototype.entityChanged=pz.prototype.entityChanged;_.r([_.y(_.CD),_.Q("design:type",Object)],pz.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],pz.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],pz.prototype,"compact",void 0);_.r([_.Y({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"commerceCartHeaderEntity",Z)}}),
_.Q("design:type",Object)],pz.prototype,"commerceCartHeaderEntity",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],pz.prototype,"hidden",void 0);_.r([_.iA("commerceCartHeaderEntity","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pz.prototype,"entityChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],pz);
_.m(pz,"ytd-commerce-cart-header-renderer",function(){if(WMw!==void 0)return WMw;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return WMw=L},{mode:1});var RQY;var csy=_.cz(function(L,Z){var N;return(N=L.onChangeCallback)==null?void 0:N.call(L,Z)},1E3),nL0=_.p(function(L){var Z=L.data;
var N=L.iconMinus;L=L.iconPlus;var S=function(){return!!Z().disabled},u=_.O(_.nh(0,void 0,"mKh0af")),T=u.next().value,W=u.next().value;
u=_.Z9(function(){if(T()===1){var l,v;(v=(l=Z()).onRemoveCommand)==null||v.call(l)}l=T()>Z().maxValue?Z().maxValue:T()-1;W(l);csy(Z(),l);return!1});
var V=_.Z9(function(){if(T()===Z().maxValue)return!1;var l=T()+1;W(l);csy(Z(),l);return!1});
_.zp(function(){W(Z().value)});
var M={},G={},D={};return _.g("quantity-incrementer-shape",null,_.g("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.g("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return T()===(Z().onRemoveCommand?0:1)||S()},
"aria-label":function(){return T()!==1?Z().minusLabel:Z().minimumReachedLabel},
"on:click":u},_.g(_.MN,{model:{circular:!0}}),_.g("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.g("div",{class:_.qg("ytSpecQuantityIncrementerShapeIcon",(M.ytSpecQuantityIncrementerShapeIconDisabled=function(){return S()||T()===(Z().onRemoveCommand?0:1)},M))},N()))),_.g("div",{class:_.qg("ytSpecQuantityIncrementerShapeText",(G.ytSpecQuantityIncrementerShapeTextInvalid=function(){return T()>Z().maxValue},G.ytSpecQuantityIncrementerShapeTextDisabled=S,G))},T),_.g("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return T()>=Z().maxValue||S()},
"aria-label":function(){return T()!==Z().maxValue?Z().plusLabel:Z().maximumReachedLabel},
"on:click":V},_.g(_.MN,{model:{circular:!0}}),_.g("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.g("div",{class:_.qg("ytSpecQuantityIncrementerShapeIcon",(D.ytSpecQuantityIncrementerShapeIconDisabled=function(){return T()>=Z().maxValue||S()},D))},L())))))},"Gf");_.CY(_.p(function(L){function Z(){N().onRemoveCommand&&_.w$(N().onRemoveCommand)}
var N=L.data;var S=_.OS(cos,function(){return N().quantityIncrementerEntityKey});
return _.g("yt-quantity-incrementer-view-model",null,_.g(nL0,{data:function(){var u=N(),T;var W=S()?!((T=S())==null||!T.disabled):!1;var V;T=S()?(V=S())==null?void 0:V.quantity:N().quantity;return ezG(u,W,Z,T)},
iconMinus:function(){return _.g(_.T0,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.g(_.T0,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Hf"),"yt-quantity-incrementer-view-model",{props:{data:_.LK}});var zU=function(){var L=_.e.apply(this,arguments)||this;L.compact=!1;L.hasQuantityIncrementer=!1;return L};
_.f(zU,_.e);zU.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"}}}};
zU.prototype.computeHasQuantityIncrementer=function(){var L;return!!_.n((L=this.data)==null?void 0:L.picker,trO)};
zU.prototype.onLabelClick=function(){var L;(L=this.dropdownEl)==null||L.open()};
_.r([_.TX("ytd-dropdown-renderer"),_.Q("design:type",Object)],zU.prototype,"dropdownEl",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],zU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],zU.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],zU.prototype,"quantityColor",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],zU.prototype,"compact",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.Q("design:type",Object)],zU.prototype,"hasQuantityIncrementer",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],zU);
_.m(zU,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(RQY!==void 0)return RQY;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return RQY=L},{mode:1});var KMv;var fN5;var mH=function(){return _.e.apply(this,arguments)||this};
_.f(mH,_.e);mH.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
mH.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
mH.prototype.updateTitle=function(){var L=this.disabledCartItemEntity;L.disableActionName&&this.set("data.title",lF(L.disableActionName))};
mH.prototype.updateButton=function(){var L,Z=(L=this.disabledCartItemEntity.undoCommand)==null?void 0:L.innertubeCommand;Z!==void 0&&(this.set("data.actionButton.buttonRenderer.command",Z),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
mH.prototype.entityChanged=mH.prototype.entityChanged;_.r([_.y(_.CD),_.Q("design:type",Object)],mH.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"disabledCartItemEntity",Z)}}),
_.Q("design:type",Object)],mH.prototype,"disabledCartItemEntity",void 0);_.r([_.Y(),_.Q("design:type",Object)],mH.prototype,"data",void 0);_.r([_.iA("disabledCartItemEntity","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mH.prototype,"entityChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],mH);
_.m(mH,"ytd-disabled-cart-item-renderer",function(){if(fN5!==void 0)return fN5;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return fN5=L},{mode:1});_.l4("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Jb=function(){var L=_.e.apply(this,arguments)||this;L.compact=!1;L.hidden=!1;L.errorHidden=!1;L.noOnTap=!1;return L};
_.f(Jb,_.e);_.t=Jb.prototype;
_.t.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"}}}};
_.t.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.t.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var L=this.firstButtonElement;L.alignByText=!0;L.iconAlignByText=!0}};
_.t.computeNoOnTap=function(L){return!L};
_.t.updateQuantityColor=function(){if(this.pickerElement){var L,Z=(L=this.commerceCartItemEntity)==null?void 0:L.quantityColor;this.pickerElement.quantityColor=Z}};
_.t.updateTotalPriceColor=function(){var L,Z=(L=this.commerceCartItemEntity)==null?void 0:L.totalPriceColor;if(Z){var N;L=_.n((N=this.data)==null?void 0:N.quantityPicker,uol);if(N=_.n(L==null?void 0:L.price,iNt))N.textColor=Z}};
_.t.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var L,Z=(L=this.commerceCartItemEntity)==null?void 0:L.isHidden;Z!==void 0&&(this.hidden=Z)}};
_.t.updateHideErrorMessage=function(){var L,Z=(L=this.commerceCartItemEntity)==null?void 0:L.hideErrorMessage;Z!==void 0&&(this.errorHidden=Z)};
_.t.updateQuantity=function(){var L=this,Z,N=(Z=this.commerceCartItemEntity)==null?void 0:Z.quantity,S;Z=(S=this.commerceCartItemEntity)==null?void 0:S.totalPrice;if(N){this.updateTotalPriceColor();this.updateQuantityColor();var u;S=_.n((u=this.data)==null?void 0:u.quantityPicker,uol);if(u=_.n(S==null?void 0:S.price,iNt))u.text=Z?{simpleText:Z.content}:void 0;if(Z=_.n(S==null?void 0:S.picker,trO))Z.quantity=N;var T;if(u=(T=_.n(S==null?void 0:S.picker,Swh))==null?void 0:T.entries){T=!1;Z=void 0;u=
_.O(u);for(S=u.next();!S.done;S=u.next())S=S.value,S.dropdownItemRenderer&&(Z||(Z=S.dropdownItemRenderer),S.dropdownItemRenderer.isSelected=!1,N===S.dropdownItemRenderer.int32Value&&(T=!0,S.dropdownItemRenderer.isSelected=!0));!T&&Z&&(Z.isSelected=!0)}_.bN(this,function(){var W;L.set("data.quantityPicker",_.Py.unsafeClone((W=L.data)==null?void 0:W.quantityPicker))})}};
Jb.prototype.onYtRendererstamperFinished=Jb.prototype.onYtRendererstamperFinished;Jb.prototype.entityChanged=Jb.prototype.entityChanged;_.r([_.Y(),_.Q("design:type",Object)],Jb.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Jb.prototype,"compact",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Jb.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Jb.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Jb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"commerceCartItemEntity",Z)}}),
_.Q("design:type",Object)],Jb.prototype,"commerceCartItemEntity",void 0);_.r([_.Y(),_.Q("design:type",Object)],Jb.prototype,"quantityPicker",void 0);_.r([_.Y(),_.Q("design:type",Object)],Jb.prototype,"compactQuantityPicker",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Jb.prototype,"hidden",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Jb.prototype,"errorHidden",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.Q("design:type",Object)],Jb.prototype,"noOnTap",void 0);_.r([_.TX("ytd-commerce-cart-item-quantity-picker-renderer"),_.Q("design:type",Object)],Jb.prototype,"pickerElement",void 0);_.r([_.TX("yt-button-renderer"),_.Q("design:type",Element)],Jb.prototype,"firstButtonElement",void 0);
_.r([_.iA("commerceCartItemEntity","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Jb.prototype,"entityChanged",null);_.r([_.SA("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Jb.prototype,"onYtRendererstamperFinished",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Jb);
_.m(Jb,"ytd-commerce-cart-item-renderer",function(){if(KMv!==void 0)return KMv;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return KMv=L},{mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});var kVm;var ysq;var Cz=function(){return _.e.apply(this,arguments)||this};
_.f(Cz,_.e);Cz.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}}}}}};
Cz.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
Cz.prototype.updateCheckoutLineItems=function(){var L,Z=(L=this.commerceCartCheckoutButtonEntity)==null?void 0:L.checkoutLineItems;Z&&(L=Z.map(function(N){a:{var S=N.price,u=N.description;switch(N.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":N={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:lF(u),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:lF(S),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:N={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:lF(u),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:lF(S),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 N}),this.set("data.summaryLineItems",L))};
Cz.prototype.updateIsHidden=function(){var L,Z=(L=this.commerceCartCheckoutButtonEntity)==null?void 0:L.isHidden;Z!==void 0&&(this.hostElement.hidden=Z)};
Cz.prototype.entityChanged=Cz.prototype.entityChanged;_.r([_.y(_.CD),_.Q("design:type",Object)],Cz.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Cz.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Cz.prototype,"data",void 0);_.r([_.Y({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:tvx}),_.Q("design:type",Object)],Cz.prototype,"commerceCartCheckoutButtonEntity",void 0);_.r([_.iA("commerceCartCheckoutButtonEntity","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Cz.prototype,"entityChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],Cz);
_.m(Cz,"ytd-commerce-cart-summary-renderer",function(){if(ysq!==void 0)return ysq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return ysq=L},{mode:1});var wlv={};wlv.InjectBehavior=[HPB.InjectBehavior];var UIw;var YYy;var rG=function(){return _.e.apply(this,arguments)||this};
_.f(rG,_.e);
rG.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:_.vQ("menuRenderer")}}};
rG.prototype.onMenuTap=function(L){L.stopPropagation()};
_.gd.Object.defineProperties(rG.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 L,Z;return!(((L=this.data)==null||!L.sectionHeading)&&((Z=this.data)==null?void 0:Z.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!(((L=this.data)==null||!L.image)&&((Z=this.data)==null?void 0:Z.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!(((L=this.data)==null||!L.menu)&&((Z=this.data)==null?void 0:Z.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],rG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Vtc.YtTappableItemBehavior),_.Q("design:type",Object)],rG.prototype,"ytTappableItemBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],rG.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("data.accessibilityData"),_.Q("design:type",String),_.Q("design:paramtypes",[])],rG.prototype,"ariaLabel",null);_.r([_.w("data.sectionHeading","data.layout"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],rG.prototype,"sectionHeadingVisible",null);_.r([_.w("data.image","data.layout"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],rG.prototype,"imageVisible",null);
_.r([_.w("data.menu","data.layout"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],rG.prototype,"menuVisible",null);_.r([_.ch({is:"yt-activity-item-renderer",disableElementRegistration:!0})],rG);
_.m(rG,"yt-activity-item-renderer",function(){if(YYy===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;UIw===void 0&&(UIw=document.createElement("template"));var S=UIw;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);YYy=L}L=YYy;return L},{mode:2});var eQs;var INk;var dIq;var aNw;var Q5=function(){return _.e.apply(this,arguments)||this};
_.f(Q5,_.e);
Q5.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"}}}}};
Q5.prototype.backgroundColorChanged_=function(){var L,Z=(L=this.data)==null?void 0:L.backgroundColor;this.hostElement.style.backgroundColor=wG[Z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Q5.prototype.backgroundColorChanged_=Q5.prototype.backgroundColorChanged_;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Q5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Q5.prototype,"data",void 0);
_.r([_.iA("data.backgroundColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Q5.prototype,"backgroundColorChanged_",null);_.r([_.ch({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Q5);
_.m(Q5,"yt-offer-item-upsell-renderer",function(){if(aNw===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;dIq===void 0&&(dIq=document.createElement("template"));var S=dIq;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);aNw=L}L=aNw;return L},{mode:2});_.l4("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Xa=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};L.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return L};
_.f(Xa,_.e);_.t=Xa.prototype;
_.t.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:_.vQ("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.t.computeContainerStyle_=function(L){return L};
_.t.computeContainerIsHidden_=function(L){return L&&!!L.isHidden};
_.t.computeShowSpinner_=function(L,Z){return L&&Z==="in-progress"};
_.t.computeShowMoreContentsButton_=function(L,Z,N,S,u){return!(!(S&&S.length||u&&u.length&&N)||!L||Z)};
_.t.onToggleButton_=function(L){var Z=this;L.stopPropagation();this.isExpanded_=L.detail&&L.detail.toggled;var N,S;this.isExpanded_&&!this.data.continuationSection.length&&((N=this.data)==null?0:(S=N.continuation)==null?0:S.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.QT(this.hostElement,"yt-load-next-continuation",function(u){return Z.getContinuationUrl_(Z.data.continuation.onClickContinuationData,u)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.H2(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.t.onShowMoreContentsButtonClicked_=function(L){var Z=this;L.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.QT(this.hostElement,"yt-load-next-continuation",function(N){return Z.getContinuationUrl_(Z.data.continuations[0].nextContinuationData,N)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.H2(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.t.getContinuationUrl_=function(L,Z){var N=L.continuation;L=L.clickTrackingParams;var S=_.RH();L&&S&&_.sT(S,_.Mg(L));return _.t3(Z,{continuation:N})};
_.t.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var L=_.QJ(this.hostElement).querySelector("#continuation-section");L&&(L=L.querySelectorAll("ytmusic-item-section-renderer"))&&L.forEach(function(Z){return Z.classList.add("memberships-and-purchases")})};
_.t.dataChanged_=function(){var L;this.isExpanded_=!((L=this.data)==null||!L.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.t.updateCardOnClickCommand_=function(L){L=_.n(L,AOQ);var Z,N;this.data&&((Z=this.data)==null?0:Z.targetId)&&L&&L.targetId===((N=this.data)==null?void 0:N.targetId)&&L.onClickCommand&&(this.data.onClickCommand=L.onClickCommand,this.isOnClickCommand_=!0)};
_.t.backgroundColorChanged_=function(){var L,Z=(L=this.data)==null?void 0:L.backgroundColor;this.hostElement.style.backgroundColor=wG[Z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Xa.prototype.backgroundColorChanged_=Xa.prototype.backgroundColorChanged_;Xa.prototype.dataChanged_=Xa.prototype.dataChanged_;Xa.prototype.nextContinuationDataUpdated_=Xa.prototype.nextContinuationDataUpdated_;Xa.prototype.onToggleButton_=Xa.prototype.onToggleButton_;_.r([_.y(_.Sq),_.Q("design:type",Object)],Xa.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Xa.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.i_.YtNextContinuationBehavior),_.Q("design:type",Object)],Xa.prototype,"ytNextContinuationBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.r([_.y(wlv.InjectBehavior),_.Q("design:type",Object)],Xa.prototype,"injectBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Xa.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Xa.prototype,"compact",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Xa.prototype,"isExpanded_",void 0);_.r([_.Y({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.Q("design:type",String)],Xa.prototype,"containerStyle_",void 0);_.r([_.Y({value:"not-started"}),_.Q("design:type",String)],Xa.prototype,"continuationStatus_",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.Q("design:type",Boolean)],Xa.prototype,"showSpinner_",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Xa.prototype,"isOnClickCommand_",void 0);_.r([_.Y({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.Q("design:type",Boolean)],Xa.prototype,"showMoreContentsButton_",void 0);
_.r([_.Y({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(L,Z){return!Z||L.entities?null:_.Lk(L.entities,"cardItemContainerEntity",Z)}}),
_.Q("design:type",Object)],Xa.prototype,"cardItemContainerEntity_",void 0);_.r([_.SA("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Xa.prototype,"onToggleButton_",null);_.r([_.SA("yt-next-continuation-data-updated"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xa.prototype,"nextContinuationDataUpdated_",null);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xa.prototype,"dataChanged_",null);_.r([_.iA("data.backgroundColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xa.prototype,"backgroundColorChanged_",null);_.r([_.ch({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Xa);
_.m(Xa,"yt-card-item-container-renderer",function(){if(INk===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;eQs===void 0&&(eQs=document.createElement("template"));var S=eQs;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);INk=L}L=INk;return L},{mode:2});var Ab=function(){return _.e.apply(this,arguments)||this};
_.f(Ab,_.e);Ab.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"}}}};
Ab.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Ab.prototype.computeLoadingHidden=function(){var L;return!((L=this.commerceCartPageStateEntity)==null?0:L.cartActionInProgress)};
Ab.prototype.updateNotification=function(){var L,Z=(L=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:L.summaryText;Z&&this.set("data.cartNotification",lF(Z))};
Ab.prototype.notificationEntityChanged=Ab.prototype.notificationEntityChanged;_.r([_.y(_.CD),_.Q("design:type",Object)],Ab.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ab.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Ab.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Ab.prototype,"data",void 0);_.r([_.Y({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"commerceCartExpandableNotificationEntity",Z)}}),
_.Q("design:type",Object)],Ab.prototype,"commerceCartExpandableNotificationEntity",void 0);_.r([_.Y({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"commerceCartPageStateEntity",Z)}}),
_.Q("design:type",Object)],Ab.prototype,"commerceCartPageStateEntity",void 0);_.r([_.TX("#spinner"),_.Q("design:type",HTMLElement)],Ab.prototype,"spinner",void 0);_.r([_.iA("commerceCartExpandableNotificationEntity","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ab.prototype,"notificationEntityChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Ab);
_.m(Ab,"ytd-commerce-cart-renderer",function(){if(kVm!==void 0)return kVm;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return kVm=L},{mode:1});var hQq;var HU=function(){var L=_.e.apply(this,arguments)||this;L.bigImage=!1;return L};
_.f(HU,_.e);_.gd.Object.defineProperties(HU.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.placeholderImageUrl}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],HU.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],HU.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],HU.prototype,"bigImage",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],HU.prototype,"placeholderImageUrl",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],HU);
_.m(HU,"ytd-empty-product-shelf-renderer",function(){if(hQq!==void 0)return hQq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return hQq=L},{mode:1});var sOv;var BU=function(){var L=_.e.apply(this,arguments)||this;L.itemStyle="link-item";L.watchMetadataRefresh=!1;L.skinnyMode=!1;L.metaPanel=!1;L.inStructuredDescription=!1;L.detailedDescriptionOverride=!1;L.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};L.updateOnResizeDebouncer=null;return L};
_.f(BU,_.e);_.t=BU.prototype;_.t.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.t.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"}}}}};
_.t.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.t.attachVEs=function(L){L.trackingParams&&_.tC().graftServerVe(L.trackingParams)};
_.t.handleUpdateMerchShelfAction=function(L){var Z=this,N=_.n(L.updateMerchandiseShelfAction.merchandiseShelf,_.ov0);N&&(N.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){Z.attachVEs(N);Z.data=N},Number(N.renderDelayMs))):(this.attachVEs(N),this.data=N))};
_.t.updateOnResize=function(){if(this.JSC$16995_scrollContainer!==void 0&&this.JSC$16995_scrollContainer.clientWidth!==0&&this.items!==void 0){var L=this.JSC$16995_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-L));this.ytdHorizontalListBehavior.reposition_();var Z;switch((Z=this.data)==null?void 0:Z.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var N,
S;((N=this.data)==null?void 0:(S=N.items)==null?void 0:S.length)===1?this.itemStyle="cta-item":this.itemStyle=L>=740?"large-item":"small-item"}}};
_.t.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Gb(this.updateOnResizeDebouncer,_.N9.after(100),this.updateOnResize)};
BU.prototype.debouncedUpdateOnResize=BU.prototype.debouncedUpdateOnResize;BU.prototype.dataChanged=BU.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],BU.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],BU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Mo.YtdHorizontalListBehavior),_.Q("design:type",Object)],BU.prototype,"ytdHorizontalListBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],BU.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],BU.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],BU.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BU.prototype,"itemStyle",void 0);_.r([_.Y({value:6}),_.Q("design:type",Number)],BU.prototype,"initialCount",void 0);
_.r([_.Y({value:"data.items"}),_.Q("design:type",String)],BU.prototype,"itemsPath",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BU.prototype,"watchMetadataRefresh",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BU.prototype,"skinnyMode",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BU.prototype,"metaPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BU.prototype,"inStructuredDescription",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BU.prototype,"detailedDescriptionOverride",void 0);_.r([_.TX("#items"),_.Q("design:type",HTMLDivElement)],BU.prototype,"items",void 0);_.r([_.TX("#scroll-container"),_.Q("design:type",HTMLDivElement)],BU.prototype,"JSC$16995_scrollContainer",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BU.prototype,"dataChanged",null);
_.r([_.SA("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BU.prototype,"debouncedUpdateOnResize",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],BU);
_.m(BU,"ytd-merch-shelf-renderer",function(){if(sOv!==void 0)return sOv;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return sOv=L},{mode:2});var jO0;var x4=function(){var L=_.e.apply(this,arguments)||this;L.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 L};
_.f(x4,_.e);_.t=x4.prototype;
_.t.addBackstagePostAction=function(L){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(L=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",L))&&(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:L}):this.set("data.contents",[{backstagePostThreadRenderer:L}]))};
_.t.addBackstageCommentAction=function(L){var Z=this.get("addBackstageCommentAction.parentId",L);L=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",L);if(Z&&L){Z=this.postIdToIndices(Z);for(var N=0;N<Z.length;N++){var S=Z[N];if(S<0)break;S="data.contents."+S+".backstagePostThreadRenderer.comments";this.get(S)&&(this.get(S+".backstageCommentsRenderer.contents")&&this.push(S+".backstageCommentsRenderer.contents",{commentThreadRenderer:L}),this.get(S+".backstageCommentsRenderer.teaserContents")?
this.push(S+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:L}):this.set(S+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:L}]))}}};
_.t.addBackstageReplyAction=function(L){var Z=this.get("addBackstageReplyAction.parentId",L);L=this.get("addBackstageReplyAction.renderer.commentRenderer",L);Z&&L&&this.setCreatorReply(Z,L)};
_.t.banAuthorAction=function(L){var Z=this.get("banAuthorAction.commentId",L);Z&&(L=this.get("banAuthorAction.parentCommentId",L)||this.getParentPostId(Z),this.removeFromStream(Z,L))};
_.t.hideReportedCommentAction=function(L){var Z=this.get("hideReportedCommentAction.commentId",L);Z&&((L=this.get("hideReportedCommentAction.parentCommentId",L))||(L=this.getParentPostId(Z)),this.removeFromStream(Z,L))};
_.t.replaceBackstageCommentAction=function(L){var Z=this.get("replaceBackstageCommentAction.commentId",L),N=this.get("replaceBackstageCommentAction.parentId",L);L=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",L);if(Z&&N&&L){N=this.postIdToIndices(N);for(var S=0;S<N.length;S++){var u=N[S];if(u<0)break;var T=this.commentIdToIndex(Z,u,!1);if(T>=0){var W=this.get("data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+T+".commentThreadRenderer.replies.commentRepliesRenderer");
W&&(L.replies={commentRepliesRenderer:W});this.splice("data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",T,1,{commentThreadRenderer:L})}T=this.commentIdToIndex(Z,u,!0);if(T>=0){if(W=this.get("data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(T+".commentThreadRenderer.replies.commentRepliesRenderer")))L.replies={commentRepliesRenderer:W};this.splice("data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
T,1,{commentThreadRenderer:L})}}}};
_.t.replaceBackstagePostAction=function(L){var Z=this.get("replaceBackstagePostAction.itemId",L);if(Z){Z=this.postIdToIndices(Z);for(var N=0;N<Z.length;N++){var S=Z[N];if(S<0)break;var u=this.getPostRendererType(S),T=this.get("replaceBackstagePostAction.renderer."+u,L);if(!T&&u!=="sharedPostRenderer")break;var W=!1;T||(W=!0,T=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",L));if(!T)break;var V={};W?(_.v9(V,PYt,T),this.set("data.contents."+S+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
V)):(_.v9(V,new _.S5(u),T),this.set("data.contents."+S+".backstagePostThreadRenderer.post",V))}}};
_.t.replaceBackstageReplyAction=function(L){var Z=this.get("replaceBackstageReplyAction.replyId",L),N=this.get("replaceBackstageReplyAction.parentId",L);L=this.get("replaceBackstageReplyAction.renderer.commentRenderer",L);Z&&L&&N&&this.setCreatorReply(N,L)};
_.t.removeCommentAction=function(L){var Z=this.get("removeCommentAction.commentId",L);if(Z){var N=this.get("removeCommentAction.parentCommentId",L);N&&this.get("removeCommentAction.isCreatorReply",L)?this.setCreatorReply(N,void 0):(N||(N=this.getParentPostId(Z)),this.removeFromStream(Z,N))}};
_.t.setCreatorReply=function(L,Z){var N=this.getParentPostId(L);if(N){N=this.postIdToIndices(N);for(var S=0;S<N.length;S++){var u=N[S];if(u<0)break;var T=this.commentIdToIndex(L,u,!1);if(T>=0){var W="data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+T;T=W+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";W+=".commentThreadRenderer.replies";Z==void 0?(this.set(W,{}),this.set(T,!1)):(this.set(W,{commentRepliesRenderer:{teaserContents:[{commentRenderer:Z}]}}),
this.set(W+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(T,!0))}T=this.commentIdToIndex(L,u,!0);T>=0&&(T="data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+T,u=T+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",T+=".commentThreadRenderer.replies",Z==void 0?(this.set(T,{}),this.set(u,!1)):(this.set(T,{commentRepliesRenderer:{teaserContents:[{commentRenderer:Z}]}}),this.set(u,!0)))}}};
_.t.removeFromStream=function(L,Z){if(Z){Z=this.postIdToIndices(Z);for(var N=0;N<Z.length;N++){var S=Z[N];if(S<0)break;var u=this.commentIdToIndex(L,S,!1);u>=0&&this.splice("data.contents."+S+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",u,1);u=this.commentIdToIndex(L,S,!0);u>=0&&this.splice("data.contents."+S+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",u,1);S="data.contents."+S+".backstagePostThreadRenderer.post.backstagePostRenderer";
u=S+".backstageAttachment.pollRenderer.votedCommentId";this.get(u)===L&&(this.set(u,null),this.set(S+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(Z=this.postIdToIndices(L).reverse(),N=0;N<Z.length;N++){S=Z[N];if(S<0)break;u=this.getPostRendererType(S);var T=this.get("backstagePostThreadRenderer.post."+u,this.data.contents[S]);T.postId===L?this.splice("data.contents",S,1):u==="sharedPostRenderer"&&this.set("data.contents."+S+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);T.scheduledPublishTimeSec&&_.XJ(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.t.postIdToIndices=function(L){for(var Z=[],N=0;N<this.data.contents.length;N++){var S=this.getPostRendererType(N);this.get("backstagePostThreadRenderer.post."+S+".postId",this.data.contents[N])===L&&Z.push(N);if(S==="sharedPostRenderer"){var u=this.get("backstagePostThreadRenderer.post."+S+".originalPost.backstagePostRenderer.postId",this.data.contents[N]);S=this.get("backstagePostThreadRenderer.post."+S+".originalPost.postRenderer.postId",this.data.contents[N]);u!==L&&S!==L||Z.push(N)}}return Z};
_.t.commentIdToIndex=function(L,Z,N){if(Z<0)return-1;var S,u,T,W,V=_.n((S=this.data)==null?void 0:(u=S.contents)==null?void 0:(T=u[Z])==null?void 0:(W=T.backstagePostThreadRenderer)==null?void 0:W.comments,jyV);return(Z=N?V==null?void 0:V.teaserContents:V==null?void 0:V.contents)&&Z.length?Z.findIndex(function(M){return _.n(M,lX5).comment.commentRenderer.commentId===L}):-1};
_.t.getParentPostId=function(L){L=L.split(".");if(L[1])return L[0]};
_.t.getPostRendererType=function(L){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[L])?"sharedPostRenderer":"backstagePostRenderer"};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],x4.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],x4.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,value:_.c("enable_community_page_on_desktop")}),_.Q("design:type",Boolean)],x4.prototype,"useSmallerPostContainer",void 0);
_.r([_.P({disableElementRegistration:!0,is:"ytd-backstage-items"})],x4);
_.m(x4,"ytd-backstage-items",function(){if(jO0!==void 0)return jO0;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return jO0=
L},{mode:1});var ELm;var Ptk={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},q0=function(){var L=_.e.apply(this,arguments)||this;L.disablePrescanVisibility=!0;L.canScheduleJobs=!0;L.engagementPanel=!1;L.hidePanelButton=!1;L.isWatchGrid=
!1;L.hasShownSubscribersOnlyDisclaimer=!1;L.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_"};L.TEST_ONLY=void 0;return L};
_.f(q0,_.e);_.t=q0.prototype;_.t.created=function(){this.initCommentsCsi_();_.c("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.c("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.t.contentsChanged_=function(){var L;(L=this.data)!=null&&L.contents&&this.tickForCommentsTimer_("cml")};
_.t.headerChanged_=function(){var L;(L=this.data)!=null&&L.header&&this.tickForCommentsTimer_("cmhl")};
_.t.initCommentsCsi_=function(){_.oq("wn_comments");var L=_.RH();L&&_.lB({clientScreenNonce:L},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.t.createCommentAction_=function(L){L=_.Py.unsafeClone(L);var Z,N;if(L=(Z=_.n(L,WV5))==null?void 0:(N=Z.contents)==null?void 0:N.commentThreadRenderer){var S,u,T,W,V,M;!this.isBackstage&&((S=this.data)==null?0:(u=S.header)==null?0:(T=u.commentsHeaderRenderer)==null?0:(W=T.createRenderer)==null?0:(V=W.commentSimpleboxRenderer)==null?0:(M=V.zeroStep)==null?0:M.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var G,
D,l;this.isBackstage&&_.n((G=this.data)==null?void 0:(D=G.header)==null?void 0:(l=D.commentsHeaderRenderer)==null?void 0:l.zeroStateMessage,pc5)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(L)}};
_.t.doReplyInsert_=function(L,Z,N,S){S?this.splice(L,S,0,Z):this.push(L,Z)};
_.t.getRepliesPath_=function(L){return"data.contents."+L+".commentThreadRenderer.replies"};
_.t.getRepliesContentsPath_=function(L,Z){L=this.getRepliesPath_(L);return Z?L+".commentRepliesRenderer.teaserContents":L+".commentRepliesRenderer.contents"};
_.t.showSubscribersOnlyDisclaimer_=function(L){(L=L.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(L=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(L))&&(_.XJ(this.hostElement,"yt-open-popup-action",[L,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.t.createCommentReplyAction_=function(L){L=_.Py.unsafeClone(L);var Z=_.n(L,VRq);if(L=Z==null?void 0:Z.contents){var N=this.commentIdToIndex_(Z==null?void 0:Z.parentCommentId);if(!(N<0)){var S=this.getRepliesPath_(N);if(this.get(S)){Z=Z.replyToCommentId;S=this.getRepliesContentsPath_(N,!1);if(this.get(S)){var u=this.get(S).length,T=S+"."+(u-1)+".continuationItemRenderer";this.get(T+".button")?(T=this.replyIdToIndex_(Z,N,!1),this.doReplyInsert_(S,L,T,u-1)):this.get(T)||(u=this.replyIdToIndex_(Z,N,
!1),this.doReplyInsert_(S,L,u,null))}S=this.getRepliesContentsPath_(N,!0);this.get(S)?(N=this.replyIdToIndex_(Z,N,!0),(!Z||N>=0)&&this.doReplyInsert_(S,L,N,null)):this.set(S,[L])}else this.set(S,{commentRepliesRenderer:{teaserContents:[L]}})}}};
_.t.hideReportedCommentAction_=function(L){var Z=_.n(L,Yes);if(L=Z==null?void 0:Z.commentId)(Z=this.get("parentCommentId",Z))||(Z=this.getParentCommentId_(L)),this.remove_(L,Z)};
_.t.getParentCommentId_=function(L){L=L.split(".");if(L[1])return L[0]};
_.t.removeCommentAction_=function(L){var Z=_.n(L,FVt);if(L=Z==null?void 0:Z.commentId)Z=(Z==null?void 0:Z.parentCommentId)||this.getParentCommentId_(L),this.remove_(L,Z)};
_.t.pinCommentAction_=function(L){L=_.Py.unsafeClone(L);var Z=_.n(L,Gbs);Z!=null&&Z.commentId&&(L=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",L))&&(this.remove_(Z.commentId),this.insert_(L,!0))};
_.t.unpinCommentAction_=function(L){L=_.Py.unsafeClone(L);L=_.n(L,$9q);if(L!=null&&L.commentId){var Z,N,S=(Z=L.actionResult)==null?void 0:(N=Z.update)==null?void 0:N.commentThreadRenderer;S&&(this.remove_(L.commentId),this.insert_(S))}};
_.t.banAuthorAction_=function(L){var Z=_.n(L,O6t);Z!=null&&Z.commentId&&(L=Z.commentId,Z=Z.parentCommentId||this.getParentCommentId_(L),this.remove_(L,Z))};
_.t.handleScrollToCommentElement_=function(L){this.nearestScrollParent||(this.nearestScrollParent=IYx(L));this.isCommentVisibleInScrollParent(L)||L.scrollIntoView({behavior:"smooth",block:"start"})};
_.t.isCommentVisibleInScrollParent=function(L){if(!this.nearestScrollParent)return!1;L=L.getBoundingClientRect();var Z=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return L.top>=Z.top&&L.bottom<=Z.bottom};
_.t.commentIdToIndex_=function(L){var Z;return L&&(Z=this.data)!=null&&Z.contents?this.data.contents.findIndex(function(N){N=N.commentThreadRenderer;var S;return L===((N==null?void 0:N.commentViewModel)&&((S=_.n(N.commentViewModel,KVq))==null?void 0:S.commentId))}):-1};
_.t.insert_=function(L,Z){Z=Z===void 0?!1:Z;var N,S;if((N=this.data)==null?0:(S=N.contents)==null?0:S.some(function(T){return!!T.commentThreadRenderer}))for(N=0,S=this.data.contents.length;N<S;N++){var u=this.data.contents[N].commentThreadRenderer;
if(Ptk[L.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=Ptk[u.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){Z&&Ptk[L.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===Ptk[u.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",N,1,{commentThreadRenderer:L}):this.splice("data.contents",N,0,{commentThreadRenderer:L});break}}else this.set("data.contents",[{commentThreadRenderer:L}])};
_.t.doReplyRemove_=function(L,Z,N){L=this.replyIdToIndex_(L,Z,N);L<0||(Z=this.getRepliesContentsPath_(Z,N),this.splice(Z,L,1))};
_.t.remove_=function(L,Z){Z=this.commentIdToIndex_(Z);Z<0?(Z=this.commentIdToIndex_(L),Z<0||this.splice("data.contents",Z,1)):_.c("web_delhi_comment_threads")||(this.doReplyRemove_(L,Z,!1),this.doReplyRemove_(L,Z,!0))};
_.t.replyIdToIndex_=function(L,Z,N){if(Z<0)return-1;Z=this.getRepliesContentsPath_(Z,N);Z=this.get(Z);if(!Z||!Z.length)return-1;N=0;for(var S=Z.length;N<S;N++){var u=void 0,T=void 0;if(((u=Z[N])==null?void 0:(T=u.commentViewModel)==null?void 0:T.commentId)===L)return N}return-1};
_.t.tickForCommentsTimer_=function(L){_.Kq(L,void 0,"wn_comments")};
_.t.reloadComments_=function(L){L=_.n(L,cp0);_.n(L==null?void 0:L.command,_.k0)&&_.H2(this.hostElement,[L==null?void 0:L.command])};
_.gd.Object.defineProperties(q0.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return!!((L=this.data)==null?0:(Z=L.header)==null?0:(N=Z.commentsHeaderRenderer)==null?0:N.isBackstageContent)}}});
_.gd.Object.defineProperties(q0,{template:{configurable:!0,enumerable:!0,get:function(){if(ELm===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);ELm=L}L=ELm;return L}}});
q0.prototype.showSubscribersOnlyDisclaimer_=q0.prototype.showSubscribersOnlyDisclaimer_;q0.prototype.headerChanged_=q0.prototype.headerChanged_;q0.prototype.contentsChanged_=q0.prototype.contentsChanged_;_.r([_.y(_.W0),_.Q("design:type",Object)],q0.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.y(_.q50.YtHostElementBehavior),_.Q("design:type",Object)],q0.prototype,"ytHostElementBehavior",void 0);
_.r([_.y(_.No.YtPlayerListenerBehavior),_.Q("design:type",Function)],q0.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],q0.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],q0.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("data.header.commentsHeaderRenderer.isBackstageContent"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],q0.prototype,"isBackstage",null);_.r([_.Y(),_.Q("design:type",Object)],q0.prototype,"disablePrescanVisibility",void 0);_.r([_.Y(),_.Q("design:type",Object)],q0.prototype,"canScheduleJobs",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],q0.prototype,"engagementPanel",void 0);
_.r([_.Y(),_.Q("design:type",Object)],q0.prototype,"hidePanelButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],q0.prototype,"isWatchGrid",void 0);_.r([_.Y(),_.Q("design:type",Object)],q0.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.r([_.iA("data.contents"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],q0.prototype,"contentsChanged_",null);
_.r([_.iA("data.header"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],q0.prototype,"headerChanged_",null);_.r([_.SA("yt-show-subscribers-only-disclaimer"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],q0.prototype,"showSubscribersOnlyDisclaimer_",null);_.r([_.P({is:"ytd-comments"})],q0);var Lt=function(){return _.Ok.apply(this,arguments)||this};
_.f(Lt,_.Ok);_.t=Lt.prototype;_.t.bindIf=function(L,Z,N){return L?Z:N};
_.t.bindIfDefined=function(L,Z){return L!==void 0?L:Z};
_.t.booleanString=function(L){return(!!L).toString()};
_.t.equals=function(){for(var L=_.CG.apply(0,arguments),Z=L[0],N=1;N<L.length;N++)if(Z!=L[N])return!1;return!0};
_.t.isGreaterThan=function(L,Z){return L>Z};
_.t.isLessThan=function(L,Z){return L<Z};
_.t.logicalAND=function(){for(var L=_.CG.apply(0,arguments),Z=!!L[0],N=1;N<L.length;N++)Z=Z&&!!L[N];return Z};
_.t.logicalOR=function(){for(var L=_.CG.apply(0,arguments),Z=!!L[0],N=1;N<L.length;N++)Z=Z||!!L[N];return Z};
_.t.toBool=function(L){return!!L};
Lt.prototype.toBool=Lt.prototype.toBool;Lt.prototype.logicalOR=Lt.prototype.logicalOR;Lt.prototype.logicalAND=Lt.prototype.logicalAND;Lt.prototype.isLessThan=Lt.prototype.isLessThan;Lt.prototype.isGreaterThan=Lt.prototype.isGreaterThan;Lt.prototype.equals=Lt.prototype.equals;Lt.prototype.booleanString=Lt.prototype.booleanString;Lt.prototype.bindIfDefined=Lt.prototype.bindIfDefined;Lt.prototype.bindIf=Lt.prototype.bindIf;_.r([_.Wh()],Lt);_.plc=[Lt.prototype];var zQk;var mIg;var ZJ=function(){return _.e.apply(this,arguments)||this};
_.f(ZJ,_.e);ZJ.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
ZJ.prototype.onBackIconTap_=function(){window.history.back()};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ZJ.prototype,"data",void 0);_.r([_.ch({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],ZJ);
_.m(ZJ,"yt-header-with-back-renderer",function(){if(mIg===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;zQk===void 0&&(zQk=document.createElement("template"));var S=zQk;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);mIg=L}L=mIg;return L},{mode:2});var Jss;var Cts;var Nx=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return L};
_.f(Nx,_.e);_.t=Nx.prototype;_.t.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.t.onDarkModeToggledAction=function(L){L!==this.isDarkTheme&&(this.isDarkTheme=L,this.setUrl())};
_.t.dataChanged=function(){var L=this;if(this.data){var Z=this.setUrl();Z&&_.NY({destination:window,iframe:this.iframe,origin:_.qNl(Z.toString()),channelName:"yt-iframe",onMessage:function(N){(N=L.getCommunicationCommand(N.data))&&L.ytComponentBehavior.resolveCommand(N)},
onEstablished:function(){}})}};
_.t.setUrl=function(){if(this.data&&this.data.iframeUrl){var L=_.QH(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(L)return _.qq(this.iframe,L),L}};
_.t.getCommunicationCommand=function(L){var Z;if((Z=this.data)!=null&&Z.onCommunicationCommandsMap){Z=this.data.onCommunicationCommandsMap.find(function(u){return u.key===L});
if(Z==null?0:Z.value)return Z==null?void 0:Z.value;try{var N=PUs(_.xt(L)),S=this.data.onCommunicationCommandsMap.find(function(u){return u.key===(N==null?void 0:N.getMethodName())});
if(S==null?0:S.value)return S==null?void 0:S.value}catch(u){}}};
Nx.prototype.dataChanged=Nx.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Nx.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Nx.prototype,"actionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Nx.prototype,"data",void 0);
_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Nx.prototype,"isDarkTheme",void 0);_.r([_.TX("#iframe"),_.Q("design:type",HTMLIFrameElement)],Nx.prototype,"iframe",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Nx.prototype,"dataChanged",null);_.r([_.ch({is:"yt-iframe-renderer",disableElementRegistration:!0})],Nx);
_.m(Nx,"yt-iframe-renderer",function(){if(Cts===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Jss===void 0&&(Jss=document.createElement("template"));var S=Jss;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Cts=L}L=Cts;return L},{mode:2});_.SH=function(L){_.ag.call(this);this.callback=L;this.bezier=new AuM(0,0,.4,0,.2,1,1,1);this.delay=new _.$d(this.next,window,this);this.JSC$17036_animating=!1;_.Ky(this,this.delay)};
_.f(_.SH,_.ag);_.SH.prototype.isAnimating=function(){return this.JSC$17036_animating};
_.SH.prototype.start=function(L,Z,N){this.config={from:L,to:Z,duration:N,startTime:(0,_.GT)()};this.JSC$17036_animating=!0;this.next()};
_.SH.prototype.stop=function(){this.delay.stop();this.JSC$17036_animating=!1;this.config=void 0};
_.SH.prototype.next=function(){if(this.config){var L=this.config,Z=L.from,N=L.to,S=L.duration;L=L.startTime;var u=(0,_.GT)()-L;L=this.bezier;S=Bmq(L,u/S);if(S==0)L=L.y0;else if(S==1)L=L.y3;else{u=K7(L.y0,L.y1,S);var T=K7(L.y1,L.y2,S);L=K7(L.y2,L.y3,S);u=K7(u,T,S);T=K7(T,L,S);L=K7(u,T,S)}L=_.nM(L,0,1);this.callback(Z+(N-Z)*L);L<1?this.delay.start():this.JSC$17036_animating=!1}};_.iZ=new _.iY("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var rsv={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Xlv=function(L,Z,N,S){_.ag.call(this);this.JSC$17047_miniAppId=L;this.localReleaseId=Z;this.derivedDeviceInterface=N;this.isForeground=S;this.JSC$17047_playNonceResolver=new _.qe;this.playPingTimerId=NaN;this.playPingIntervalMs=_.lQ("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.lQ("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.c("enable_displaying_ppn");this.JSC$17047_miniAppClientDataProvider=_.GR().resolve(_.iZ);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;QOq(this);var u=setTimeout(function(){_.Q7(new _.sr("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17047_playNonceResolver.promise.then(function(){clearTimeout(u)})};
_.f(Xlv,_.ag);var H00=function(L,Z){L.JSC$17047_playNonceResolver.resolve(Z!=null?Z:lc(8));L.enableDisplayingPpn&&AsY(L).then(function(N){L.JSC$17047_miniAppClientDataProvider.clientData.set("post_play_nonce",N)})},AsY=function(L){return _.b(function(Z){return Z.nextAddress==1?Z.yield(L.JSC$17047_playNonceResolver.promise,2):Z.return(Z.yieldResult)})},QOq=function(L){var Z,N;
_.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$17047_playNonceResolver.promise,2);Z=S.yieldResult;N={miniAppInfo:{externalPostId:L.JSC$17047_miniAppId,localReleaseId:L.localReleaseId,postPlayNonce:Z,derivedDeviceInterface:L.derivedDeviceInterface}};_.lB(N);_.w7(S)})},xIw=function(L){L.state!==0?_.Q7(new _.sr("[MiniAppPlayLogger] recordPlayStart failed with state "+rsv[L.state])):(L.state=1,uZ(L,"ma_cl"),TZ(L,"PLAY_EVENT_TYPE_PLAY_START"),B5k(L))},qYk=function(L){L.isForeground=!1;
TZ(L,"PLAY_EVENT_TYPE_PLAY_PAUSE")},LkQ=function(L){L.state!==1&&L.state!==2?_.Q7(new _.sr("[MiniAppPlayLogger] recordPlayEnd failed with state "+rsv[L.state])):(L.state=3,window.clearInterval(L.playPingTimerId),L.playPingTimerId=NaN,Acs(),TZ(L,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Z8P=function(L,Z){L.state===2&&L.gameReady&&(L.firstClickRecorded?Date.now()-L.clickRecordedMs<L.playClickIntervalMs||(L.clickRecordedMs=Date.now(),TZ(L,"PLAY_EVENT_TYPE_PLAY_CLICK")):Z&&(uZ(L,"ma_fua"),TZ(L,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),L.firstClickRecorded=!0,L.clickRecordedMs=Date.now()))};
Xlv.prototype.logError=function(L){var Z=this,N;_.b(function(S){if(S.nextAddress==1)return L.metadata.externalPostId=Z.JSC$17047_miniAppId,N=L.metadata,S.yield(Promise.race([Z.JSC$17047_playNonceResolver.promise,new Promise(function(u){setTimeout(function(){u("")},3E4)})]),2);
N.postPlayNonce=S.yieldResult;L.metadata.localReleaseId=Z.localReleaseId;L.loggingError.level="WARNING";_.CA(L.loggingError,L.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:L.metadata});_.w7(S)})};
var NyP=function(L,Z,N,S){var u,T,W,V,M,G;_.b(function(D){if(D.nextAddress==1)return D.yield(L.JSC$17047_playNonceResolver.promise,2);u=D.yieldResult;T={externalPostId:L.JSC$17047_miniAppId,localReleaseId:L.localReleaseId,postPlayNonce:u,sdkVersion:N,api:Z};S!==void 0&&(T.networkRequestsMeasurement={networkRequests:_.G3(S,1),cachedRequests:_.G3(S,2),transferredBytes:_.G3(S,3)},(W=S)==null?0:_.OW(W,tc,6))&&(T.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((V=_.lp(S,
tc,6))==null?void 0:RA(V,1))||"0",cacheHits:((M=_.lp(S,tc,6))==null?void 0:RA(M,2))||"0",cachedBytes:((G=_.lp(S,tc,6))==null?void 0:RA(G,3))||"0"});_.mS("miniAppSdkUsage",T);_.w7(D)})},i8Y=function(L,Z,N){var S,u,T,W,V,M,G,D,l,v,R,K,U,d,h,E;
_.b(function(A){if(A.nextAddress==1)return A.yield(L.JSC$17047_playNonceResolver.promise,2);S=A.yieldResult;u={externalPostId:L.JSC$17047_miniAppId,localReleaseId:L.localReleaseId,postPlayNonce:S,sdkVersion:N,measurementWindow:{startTimestampMs:String(Di(Z,1)),endTimestampMs:String(Di(Z,2))},frameRate:{averageFrameTimeDeltaMs:ly(Z,3),averageFrameIdleTimeMs:ly(Z,4)}};_.OW(Z,OF,5)&&(u.networkRequests={networkRequests:(T=FN(Z))==null?void 0:_.G3(T,1),cachedRequests:(W=FN(Z))==null?void 0:_.G3(W,2),transferredBytes:(V=
FN(Z))==null?void 0:_.G3(V,3),sameOriginStatusCodeToCounts:Svw((M=FN(Z))==null?void 0:aPx(M,4)),crossOriginStatusCodeToCounts:Svw((G=FN(Z))==null?void 0:aPx(G,5))},(D=FN(Z))==null?0:_.OW(D,tc,6))&&(u.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((l=FN(Z))==null?void 0:(v=_.lp(l,tc,6))==null?void 0:RA(v,1))||"0",cacheHits:((R=FN(Z))==null?void 0:(K=_.lp(R,tc,6))==null?void 0:RA(K,2))||"0",cachedBytes:((U=FN(Z))==null?void 0:(d=_.lp(U,tc,6))==null?void 0:RA(d,3))||"0"});_.OW(Z,
eXl,7)&&(u.gameCapture={averageFrameTimeDeltaMs:(h=_.lp(Z,eXl,7))==null?void 0:ly(h,1),averageFrameIdleTimeMs:(E=_.lp(Z,eXl,7))==null?void 0:ly(E,2)});_.mS("miniAppPerformanceMetrics",u);_.w7(A)})},um8=function(L,Z){var N,S;
return _.b(function(u){if(u.nextAddress==1)return u.yield(L.JSC$17047_playNonceResolver.promise,2);N=u.yieldResult;S={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:L.JSC$17047_miniAppId,postPlayNonce:N,miniAppReleaseId:L.localReleaseId},derivedDeviceInterface:L.derivedDeviceInterface,adTriggerType:Z,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.mS("miniAppAdEvent",S);_.w7(u)})};
Xlv.prototype.disposeInternal=function(){_.ag.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var TZ=function(L,Z,N,S){N=N===void 0?{}:N;S=S===void 0?!1:S;var u,T,W,V;_.b(function(M){if(M.nextAddress==1)return u=L.isForeground,T=L.beforeReady,M.yield(L.JSC$17047_playNonceResolver.promise,2);W=M.yieldResult;V={externalPostId:L.JSC$17047_miniAppId,localReleaseId:L.localReleaseId,derivedDeviceInterface:L.derivedDeviceInterface,postPlayNonce:W,type:Z};N.sequenceGroup=W;V.playState=T?"PLAY_STATE_NOT_READY":u?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.mS("miniAppPlayEvent",V,
N);S&&_.JV();_.w7(M)})},uZ=function(L,Z){var N;
_.b(function(S){if(S.nextAddress==1)return N=(0,_.GT)(),S.yield(L.JSC$17047_playNonceResolver.promise,2);_.Rq(Z,N);_.w7(S)})},B5k=function(L){isNaN(L.playPingTimerId)&&(L.playPingTimerId=_.nZ(function(){L.state!==1&&L.state!==2?_.Q7(new _.sr("[MiniAppPlayLogger] reportPlayPing failed with state "+rsv[L.state])):TZ(L,"PLAY_EVENT_TYPE_PLAY_PING")},L.playPingIntervalMs))},Svw=function(L){return Array.from(L.entries()).map(function(Z){var N=_.O(Z);
Z=N.next().value;N=N.next().value;return{key:Z,value:N}})};var Tyv=function(){},tY0=function(L,Z){L.showMiniAppAdCommand=Z.showMiniAppAdCommand;
L.isEmbeddedInWebview=Z.isEmbeddedInWebview;L.playLogger=Z.playLogger},Wk8=function(L,Z){var N;
return _.b(function(S){if(S.nextAddress==1){if(!L.showMiniAppAdCommand||!L.isEmbeddedInWebview)return S.return(O8v(L,Z));L.adResolver=new _.qe;var u=new Pb;N=_.vx(u,3,Z);ct(L.showMiniAppAdCommand,gZ5(N));return S.yield(L.adResolver.promise,2)}return S.return(S.yieldResult)})};
Tyv.prototype.onAdFinished=function(L){L=WBq(L);var Z;(Z=this.adResolver)==null||Z.resolve(L)};
var O8v=function(L,Z){var N;return _.b(function(S){if(S.nextAddress==1)S=S.yield((N=L.playLogger)==null?void 0:um8(N,PsA(Z)),2);else{var u=S.return;var T=new OL0;T=_.vx(T,1,2);S=u.call(S,T)}return S})};var VYq=new _.iY("INNERTUBE_MANAGER_TOKEN");var b8g=function(){this.callbacks={}};
b8g.prototype.initialize=function(L){var Z=this;this.callbacks=L;window.youtubewebview?window.youtubewebview.onmessage=function(N){MYv(Z,N)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(N){MYv(Z,N)})};
var MYv=function(L,Z){if(Z.data)try{var N=PUs(Z.data);if(_.K8(_.t5(N,1))!=null){var S=tcs(_.va(N,2));switch(N.getMethodName()){case "yt-mini-app-load-audio-state":var u,T;(T=(u=L.callbacks).onAudioStateLoaded)==null||T.call(u,_.$T(S,IW(S,EF,1)));break;case "yt-mute-mini-app":var W,V;(V=(W=L.callbacks).onMuteMiniApp)==null||V.call(W);break;case "yt-unmute-mini-app":var M,G;(G=(M=L.callbacks).onUnmuteMiniApp)==null||G.call(M);break;case "yt-playable-exit":var D,l;(l=(D=L.callbacks).onExit)==null||l.call(D);
break;case "yt-post-play-nonce":var v,R;(R=(v=L.callbacks).onPostPlayNonceReceived)==null||R.call(v,ca(S,2,EF));break;case "yt-confirm-exit-mini-app":var K,U;(U=(K=L.callbacks).confirmExitMiniApp)==null||U.call(K);break;case "yt-confirm-exit-mini-app-edu":var d,h;(h=(d=L.callbacks).confirmExitMiniAppEdu)==null||h.call(d);break;case "yt-benchmarking-response":var E,A;(A=(E=L.callbacks).onNativeBenchmarkingMessageReceived)==null||A.call(E,ca(S,2,EF));break;case "yt-mini-app-load-3p-consent-state":var J,
C;(C=(J=L.callbacks).multiplayer3pAckStateLoaded)==null||C.call(J,_.$T(S,IW(S,EF,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var X,L1;(L1=(X=L.callbacks).exitMiniAppSeenStateLoaded)==null||L1.call(X,_.$T(S,IW(S,EF,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Fw,GB;(GB=(Fw=L.callbacks).onNavigateToNewMiniApp)==null||GB.call(Fw);break;case "yt-game-data-available":var Yt,lH;(lH=(Yt=L.callbacks).onGameDataAvailable)==null||lH.call(Yt,ca(S,2,EF));break;case "yt-pause-mini-app":var RF,
jf;(jf=(RF=L.callbacks).onPauseMiniApp)==null||jf.call(RF);break;case "yt-resume-mini-app":var f1,n0;(n0=(f1=L.callbacks).onResumeMiniApp)==null||n0.call(f1);break;case "yt-playable-ad-finished":var r5,yq;(yq=(r5=L.callbacks).onAdFinished)==null||yq.call(r5,ca(S,2,EF))}}else _.Q7(Error("Vh"))}catch(ZN){_.CA(Error("Wh"))}else _.Q7(Error("Xh"))};var zzx=function(L){this.rpcErrorCode=L};var t$=function(L,Z,N){this.intervalMs=L;this.apiFunc=Z;this.type=N;this.schedulerReady=!0};
t$.prototype.call=function(L){var Z=this,N;return _.b(function(S){if(S.nextAddress==1){if(Z.type!==1&&L===Z.cachedValue)return S.return();Z.pendingApiRequestResolver||(Z.pendingApiRequestResolver=new _.qe);N=Z.pendingApiRequestResolver.promise;Z.cachedValue=L;return S.yield(g5m(Z),2)}return S.return(N)})};
t$.prototype.flush=function(L){L=L===void 0?!1:L;var Z=this;return _.b(function(N){return Z.cachedValue===void 0?N.return():N.yield(Z.apiFunc(Z.cachedValue,L),0)})};
var g5m=function(L){var Z,N,S;return _.b(function(u){switch(u.nextAddress){case 1:if(!L.schedulerReady||!L.pendingApiRequestResolver)return u.return();L.schedulerReady=!1;Z=L.pendingApiRequestResolver;L.pendingApiRequestResolver=void 0;_.RS(u,2);if(L.cachedValue===void 0){u.jumpTo(4);break}return u.yield(L.apiFunc(L.cachedValue),5);case 5:N=u.yieldResult,Z.resolve(N);case 4:_.SX(u,3);break;case 2:S=_.yd(u),Z.reject(S);case 3:setTimeout(function(){return _.b(function(T){L.schedulerReady=!0;return T.yield(g5m(L),
0)})},L.intervalMs),_.w7(u)}})};var CsF=window.location.origin+"/miniapp_cloudsaves",mzB=[400,401],Ggv=_.lQ("cloud_save_game_data_rate_limit_ms",3E3),DcP=function(L){var Z=this;this.JSC$17091_miniAppId=L;this.loadAttempts=0;this.cloudSaveIntervalMs=Ggv;this.initialDownloadDataSucceeded=!1;this.JSC$17091_playNonceResolver=new _.qe;this.scottyUploadRateLimiter=new t$(this.cloudSaveIntervalMs,function(N,S){return Fks(Z,N,S)},2);
this.downloadDataPromise=$cq(this);this.downloadDataPromise.then(function(){Z.initialDownloadDataSucceeded=!0}).catch(function(){})},lPQ=function(L,Z){Z.then(function(N){return L.JSC$17091_playNonceResolver.resolve(N)})},v5c=function(L){return _.b(function(Z){return L.cachedData===void 0?Z.return(L.downloadDataPromise):Z.return(L.cachedData)})},o5v=function(L,Z){return _.b(function(N){L.cachedData=Z;
if(!L.initialDownloadDataSucceeded)throw Error("Yh");return N.yield(L.scottyUploadRateLimiter.call(Z),0)})},Rvw=function(){return new Promise(function(L){setTimeout(L,1E3,"")})},c0g=function(L,Z){var N,S;
return _.b(function(u){if(u.nextAddress==1)return N=L.JSC$17091_miniAppId,u.yield(Promise.race([L.JSC$17091_playNonceResolver.promise,Rvw()]),2);S={"X-YouTube-MiniAppId":N,"X-YouTube-PostPlayNonce":u.yieldResult};"DELEGATED_SESSION_ID"in _.rj&&bqf(Z,S);return u.return(S)})},Fks=function(L,Z,N){N=N===void 0?!1:N;
return _.b(function(S){return p5G()?_.c("enable_cloud_save_error_popup_after_retry")?S.return(new Promise(function(u,T){var W,V,M,G,D;return _.b(function(l){switch(l.nextAddress){case 1:W=0,V=!0,G=M=null;case 2:if(!(V&&W++<2)){l.jumpTo(4);break}_.RS(l,5);return l.yield(n5s(L,Z,N),7);case 7:M=l.yieldResult;V=M.ok?!1:!mzB.includes(M.status);_.SX(l,2);break;case 5:G=D=_.yd(l);V=Jis(G);l.jumpTo(2);break;case 4:M?M.ok?(Om(L,Ggv),u()):(Om(L,L.cloudSaveIntervalMs*2),T(Error("Zh`"+String(M.status),{cause:{rpcErrorCode:M.status}}))):
(Om(L,L.cloudSaveIntervalMs*2),T(G||Error("$h"))),_.w7(l)}})})):S.return(new Promise(function(u,T){var W,V;
return _.b(function(M){if(M.nextAddress==1){if(L.JSC$17091_miniAppId==="")return T(Error("ai")),M.return();_.RS(M,2);return M.yield(n5s(L,Z,N),4)}if(M.nextAddress!=2)return W=M.yieldResult,W.ok?(Om(L,Ggv),u()):(Om(L,L.cloudSaveIntervalMs*2),T(Error("Zh`"+String(W.status),{cause:{rpcErrorCode:W.status}}))),_.SX(M,0);V=_.yd(M);Om(L,L.cloudSaveIntervalMs*2);T(V);_.w7(M)})})):S.return()})},n5s=function(L,Z,N){N=N===void 0?!1:N;
var S,u,T;return _.b(function(W){if(W.nextAddress==1)return S=_.jY((new TextEncoder).encode(Z)),u=riB(),W.yield(c0g(L,u),2);T=W.yieldResult;return W.return(fetch(u,{method:"POST",body:new Blob([S]),headers:T,keepalive:N}))})},$cq=function(L){var Z,N;
return _.b(function(S){if(S.nextAddress==1){if(!p5G())return S.return("");if(L.JSC$17091_miniAppId==="")throw Error("ai");if(L.loadAttempts>2)return S.return(L.downloadDataPromise);_.RS(S,2);return S.yield(Kk0(L),4)}if(S.nextAddress!=2)return Z=S.yieldResult,S.return(Z);N=_.yd(S);if(Jis(N)&&++L.loadAttempts<2)return S.return($cq(L));throw N;})},Kk0=function(L){var Z,N,S,u,T;
return _.b(function(W){switch(W.nextAddress){case 1:return _.RS(W,2),Z=riB(),W.yield(c0g(L,Z),4);case 4:return N=W.yieldResult,W.yield(fetch(Z,{method:"GET",headers:N}),5);case 5:return S=W.yieldResult,S.ok?W.yield(S.text(),6):W.return(Promise.reject(Error("bi`"+String(S.status),{cause:new zzx(S.status)})));case 6:return u=W.yieldResult,W.return((new TextDecoder).decode(_.xt(u)));case 2:return T=_.yd(W),W.return(Promise.reject(T))}})},Om=function(L,Z){L.cloudSaveIntervalMs=Z;
L.scottyUploadRateLimiter.intervalMs=L.cloudSaveIntervalMs};
DcP.prototype.flush=function(){var L=this;return _.b(function(Z){return L.initialDownloadDataSucceeded?Z.yield(L.scottyUploadRateLimiter.flush(!0),0):Z.return()})};var fPv=gf(Mf(1),VY(1)),kgg=gf(Mf(1),VY(3)),WZ=function(L){this.callbacks=L};
_.t=WZ.prototype;_.t.onAudioToggled=function(L,Z){(Z===void 0||Z)&&_.gr("yt-mini-app-is-audio-enabled",L,2592E3)};
_.t.onPause=function(){this.onAudioToggled(!1,!1)};
_.t.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.t.returnNativeBenchmarkingMessage=function(){};
_.t.sendGameData=function(){};
_.t.sendStartGameFrameCapture=function(){};
var QxA=function(L,Z,N){this.callbacks=L;var S=this;this.sdkVersion=new _.qe;this.channel=new utL(_.NY({destination:window,iframe:Z,origin:(new URL(N.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var u=Vu;var T=Mf(5);var W=new l3L;W=_.kT(W,1,1E4);T=_.kV(T,4,kQY,W);u(S,T);S.onAudioToggled(S.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){S.sdkVersion.resolve("")},1E4)};
_.f(QxA,WZ);_.t=QxA.prototype;_.t.onAudioToggled=function(L,Z){WZ.prototype.onAudioToggled.call(this,L,Z===void 0?!0:Z);Z=Vu;var N=Mf(2),S=new $6h;L=_.lX(S,1,L);L=_.kV(N,3,kQY,L);Z(this,L)};
_.t.onPause=function(){WZ.prototype.onPause.call(this);Vu(this,Mf(3))};
_.t.onResume=function(){WZ.prototype.onResume.call(this);Vu(this,Mf(4))};
_.t.returnNativeBenchmarkingMessage=function(L){var Z=Vu,N=Mf(6);var S=VY(_.OW(L,Xi,1)?1:2);L=_.OW(L,Xi,1)?L:null;S=_.kV(S,5,bk,L);Z(this,gf(N,S))};
_.t.sendGameData=function(L){var Z=Vu,N=Mf(7);L=_.kV(N,5,kQY,L);Z(this,L)};
_.t.sendStartGameFrameCapture=function(){Vu(this,Mf(9))};
var bZ=function(L,Z,N){var S,u,T;return _.b(function(W){if(W.nextAddress==1)return S=L.callbacks,u=S.onSdkCalled,T=Z,W.yield(L.sdkVersion.promise,2);u.call(S,T,W.yieldResult,N);_.w7(W)})};
QxA.prototype.onMessage=function(){var L=this;return OGt($Z,function(Z){var N,S,u,T,W,V,M,G,D,l,v,R,K,U,d,h,E,A,J,C,X,L1,Fw,GB,Yt,lH,RF,jf,f1,n0,r5,yq,ZN,GV,IO,d5,n8,lq,tx,ut,oO,uq,RO,iq,hU,Qq;return _.b(function(Fh){switch(Fh.nextAddress){case 1:if(!hXY(Z.data))return _.Q7(Error("ci")),Fh.return();N=_.oA(Z.data,1);_.c("enable_iframe_message_get_type_via_fields")&&(S=Z.data,N=u=_.oA(S,1));switch(N){case 8:if(Z.data.hasMetadata()){var g5=L.sdkVersion,SY=g5.resolve;var Xw=Z.data.getMetadata();Xw=_.va(Xw,
1);SY.call(g5,Xw);clearTimeout(L.sdkVersionTimeoutId)}break;case 6:return Fh.jumpTo(2);case 16:if(!_.Wa(Z.data,U6O,14,Ds))return Fh.return();T=_.f5(Z.data,U6O,14,Ds);(V=(W=L.callbacks).onGameFrameReceived)==null||V.call(W,T);return Fh.return();case 17:if(!_.Wa(Z.data,wFl,15,Ds))return Fh.return();(G=(M=L.callbacks).onGameAudioReceived)==null||G.call(M,_.f5(Z.data,wFl,15,Ds));return Fh.return();case 1:if(g5=_.f5(Z.data,RX5,2,Ds))switch(_.oA(g5,1)){case 1:L.callbacks.onFirstFrameReady();if(_.c("enable_network_request_logging_on_game_events")&&
_.OW(g5,OF,4)){bZ(L,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.lp(g5,OF,4));break}bZ(L,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Xw=(SY=L.callbacks).onGameReady)==null||Xw.call(SY);if(_.c("enable_network_request_logging_on_game_events")&&_.OW(g5,OF,4)){bZ(L,"MINI_APP_SDK_API_GAME_READY",_.lp(g5,OF,4));break}bZ(L,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Wa(g5,Wb,3,cLI))L.callbacks.onResourceLoaded(_.f5(g5,Wb,3,cLI))}return Fh.return();case 3:return Fh.jumpTo(3);case 4:return Fh.jumpTo(4);
case 2:return Fh.jumpTo(5);case 9:return Fh.jumpTo(6);case 10:return L.callbacks.onClick(),Fh.return();case 5:return Fh.jumpTo(7);case 11:if(!_.Wa(Z.data,uk,9,Ds))return Fh.return();D=_.f5(Z.data,uk,9,Ds);(v=(l=L.callbacks).onBenchmarkingMessageReceived)==null||v.call(l,D);g5=Z.reply;SY=Mf(1);Xw=VY(1);var vl=new uk;var oQ=new Uint8Array(KMY(D,IW(D,bLM,6))|0);vl=y7(vl,5,bLM,_.et(oQ,!1));Xw=_.kV(Xw,5,bk,vl);g5.call(Z,gf(SY,Xw));return Fh.return();case 12:return Fh.jumpTo(8);case 13:return Fh.jumpTo(9);
case 15:if(!_.c("enable_open_yt_content"))return Z.reply(kgg),Fh.return();if(!_.Wa(Z.data,yLN,12,Ds))return Z.reply(gf(Mf(1),VY(2))),Fh.return();g5=_.f5(Z.data,yLN,12,Ds);R=_.va(g5,1);L.callbacks.onOpenYTContent(R);Z.reply(fPv);return Fh.return();case 14:return Fh.jumpTo(10);default:return Fh.return()}Fh.jumpTo(0);break;case 2:if(!_.Wa(Z.data,GK,5,Ds))return Fh.return();SY=Z.data;g5=IW(SY,Ds,5);SY=SY.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;K=E5f(SY,SY[_.ts]|0,GK,g5)||GK[plL]||(GK[plL]=
zQh(GK));g5=_.MG(K,TK,1,_.gZ());U=_.O(g5);d=U.next();case 12:if(d.done){Fh.jumpTo(14);break}h=d.value;E=new _.sr;E.level=_.oA(h,2)===1?"WARNING":"ERROR";A=AiP(h.getSource());return Fh.yield(L.sdkVersion.promise,15);case 15:J={source:A,sdkVersion:Fh.yieldResult};_.t0(_.t5(h,6))!=null?(E.message=h.getMessage(),E.stack=_.va(h,5),J.sdkErrorType=HBG(_.oA(h,6)),_.t0(_.t5(h,7))!=null&&(J.sdkApi=B6w(_.oA(h,7)))):E.stack=void 0;X=C=void 0;(X=(C=L.callbacks).onError)==null||X.call(C,{loggingError:E,metadata:J});
d=U.next();Fh.jumpTo(12);break;case 14:return Fh.return();case 3:return _.RS(Fh,16),g5=Fh.yield,SY=L.callbacks,Xw=SY.onSave,vl=_.f5(Z.data,D6t,4,Ds),vl=_.va(vl,1),g5.call(Fh,Xw.call(SY,vl),18);case 18:Z.reply(fPv);_.SX(Fh,17);break;case 16:return L1=_.yd(Fh),Fw=nm,GB=L1,Yt=L.callbacks,lH="MINI_APP_SDK_API_SAVE_DATA",Fh.yield(L.sdkVersion.promise,19);case 19:Fw(GB,Yt,lH,Fh.yieldResult),Z.reply(kgg);case 17:return Fh.yield(bZ(L,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return Fh.return();case 4:return _.RS(Fh,
21),Fh.yield(L.callbacks.onLoad(),23);case 23:RF=Fh.yieldResult;g5=Z.reply;SY=Mf(1);Xw=VY(1);vl=new D6t;vl=_.dF(vl,1,RF);Xw=_.kV(Xw,3,bk,vl);g5.call(Z,gf(SY,Xw));_.SX(Fh,22);break;case 21:return jf=_.yd(Fh),f1=nm,n0=jf,r5=L.callbacks,yq="MINI_APP_SDK_API_LOAD_DATA",Fh.yield(L.sdkVersion.promise,24);case 24:f1(n0,r5,yq,Fh.yieldResult),Z.reply(kgg);case 22:return Fh.yield(bZ(L,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Fh.return();case 5:_.RS(Fh,26);L.callbacks.onSendHighScore(Jr(_.f5(Z.data,
d65,3,Ds).getValue()));Z.reply(gf(Mf(1),VY(1)));_.SX(Fh,27);break;case 26:return ZN=_.yd(Fh),GV=nm,IO=ZN,d5=L.callbacks,n8="MINI_APP_SDK_API_SEND_SCORE",Fh.yield(L.sdkVersion.promise,28);case 28:GV(IO,d5,n8,Fh.yieldResult),Z.reply(kgg);case 27:return Fh.yield(bZ(L,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Fh.return();case 6:if(!_.Wa(Z.data,a3Y,8,Ds)){Fh.jumpTo(30);break}g5=Fh.yield;SY=_.f5(Z.data,a3Y,8,Ds);SY=_.oA(SY,1);return g5.call(Fh,bZ(L,B6w(SY)),30);case 30:return Fh.return();case 7:return g5=
Z.reply,SY=Mf(1),Xw=VY(1),vl=L.callbacks.getLanguage(),Xw=y7(Xw,4,bk,cw(vl)),g5.call(Z,gf(SY,Xw)),Fh.yield(bZ(L,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Fh.return();case 8:if(!_.Wa(Z.data,I35,10,Ds))return Fh.return();lq=_.f5(Z.data,I35,10,Ds);tx=L.callbacks;ut=tx.onSdkPerformanceUpdate;return Fh.yield(L.sdkVersion.promise,33);case 33:return ut.call(tx,lq,Fh.yieldResult),Fh.return();case 9:g5=Z.data;SY=IW(g5,Ds,11);if(_.K8(_.t5(g5,SY))==null)return Z.reply(gf(Mf(1),VY(2))),Fh.return();
oO=ca(Z.data,11,Ds);L.callbacks.onShareInviteCode(oO);Z.reply(fPv);return Fh.yield(bZ(L,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Fh.return();case 10:if(_.Wa(Z.data,FBt,13,Ds)){Fh.jumpTo(35);break}return Fh.yield(L.callbacks.onShowMiniAppAd(2),36);case 36:return uq=Fh.yieldResult,Z.reply(gf(Mf(1),KBQ(uq))),Fh.yield(bZ(L,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Fh.return();case 35:g5=_.f5(Z.data,FBt,13,Ds);a:switch(_.oA(g5,1)){case 1:g5={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:g5={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:g5={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}RO=g5;iq=RO.adType;hU=RO.sdkApi;g5=Fh.yield;SY=L.callbacks;Xw=SY.onShowMiniAppAd;vl=_.f5(Z.data,FBt,13,Ds);vl=_.va(vl,2);return g5.call(Fh,Xw.call(SY,iq,vl||void 0),38);case 38:return Qq=Fh.yieldResult,Z.reply(gf(Mf(1),KBQ(Qq))),Fh.yield(bZ(L,hU),39);case 39:return Fh.return()}})})};
var Vu=function(L,Z){_.b(function(N){L.channel.send(Z);_.w7(N)})},Km=function(L,Z,N){this.callbacks=L;
var S=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;L=qnx(Z,(new URL(N.toString())).origin);this.gameSnacks=new RMV(L);this.gameSnacks.page.onReady(function(){S.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){S.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var u,T;(T=(u=S.callbacks).onGameReady)==null||T.call(u)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(u,T){try{S.callbacks.onSendHighScore(T)}catch(W){nm(W,S.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(u,T){var W;return _.b(function(V){if(V.nextAddress==1)return _.RS(V,2),V.yield(S.callbacks.onSave(S.decoder.decode(T)),4);if(V.nextAddress!=2)return _.SX(V,0);W=_.yd(V);nm(W,S.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return V.return()})});
this.gameSnacks.storage.onLoad(function(){var u,T;return _.b(function(W){if(W.nextAddress==1)return _.RS(W,2),W.yield(S.callbacks.onLoad(),4);if(W.nextAddress!=2)return u=W.yieldResult,W.return(S.encoder.encode(u));T=_.yd(W);nm(T,S.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return W.return(S.encoder.encode(""))})});
this.gameSnacks.init()};
_.f(Km,WZ);Km.prototype.onAudioToggled=function(L,Z){WZ.prototype.onAudioToggled.call(this,L,Z===void 0?!0:Z);var N;(N=this.gameSnacks)==null||N.audio.update(L)};
Km.prototype.onPause=function(){WZ.prototype.onPause.call(this);var L;(L=this.gameSnacks)==null||L.game.pause()};
Km.prototype.onResume=function(){WZ.prototype.onResume.call(this);var L;(L=this.gameSnacks)==null||L.game.resume()};var y0m=xzP,wwk=_.p(function(L){var Z=L.data;var N=L.loadingProgress;var S=L.forPaused;L=_.O(_.nh("",void 0,"LYYTdd"));var u=L.next().value,T=L.next().value;L=_.O(_.nh(!1,void 0,"K0waae"));var W=L.next().value,V=L.next().value,M=[],G=function(){return"transform: scaleX("+(_.JW(N)||0)+")"},D=null,l=function(){return Z()&&D!==null&&D!==void 0?D:D=Z().showAnniversaryAnimation?6:y0m()};
_.ph(function(){var U;if(Z().timeOutMessages&&((U=Z().timeOutMessages)==null?0:U.length)){D=null;U=_.O(M);for(var d=U.next();!d.done;d=U.next())clearTimeout(d.value);M.length=0;qdF(Z().timeOutMessages,M,T,V)}},"BNu9j");
var v=function(){return!!Z().persistentErrorMessageTitle},R=function(){return N!==void 0},K=function(){return Z().title};
return _.g("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.g("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.g("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.g("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var U,d=(U=Z().backgroundImage)==null?void 0:U.sources,h;return(d==null?0:d.length)?"background-image: url("+((h=d[0])==null?void 0:h.url)+")":""}}),_.g("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.g(_.F,{cond:function(){return!v()&&!(S==null?0:S())},
then:function(){var U={};return _.g("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.g("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.g(_.KK,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+l()},
data:function(){var d="loading_animation_"+l();return{animationConfig:{name:d,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+d+".json",loop:!0,autoplay:!0}}}})),_.g("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.g(_.F,{cond:K,
then:function(){return _.g("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},K)}}),_.g("p",{class:_.qg("miniAppSplashScreenViewModelTimeoutMessage",(U.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return W()},U)),
"aria-live":"polite"},u),_.g(_.F,{cond:R,then:function(){return _.g("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.g("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:G}))}})))}}),_.g(_.F,{cond:v,
then:function(){return _.g("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.g("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return Z().persistentErrorMessageTitle}),_.g(_.F,{cond:function(){return!!Z().persistentErrorMessageDescription},
then:function(){return _.g("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return Z().persistentErrorMessageDescription})}}))}}),_.g(_.F,{cond:S,
then:function(){return _.g("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.g("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.g("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},K))}})))},"Jf");var Uc0=new _.iY("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var Yv8=W8;W8=function(L){function Z(N){if(N){var S,u;(S=N.__spec)==null||(u=S.didUnmount)==null||u.call(S);for(S=0;S<N.childNodes.length;S++)Z(N.childNodes[S])}}
Yv8==null||Yv8(L);Dh(function(){for(var N=0;N<L.length;N++)Z(L[N])})};var ev8=_.p(function(L){var Z=L.data;var N=L.score;var S=L.formattedScore;var u=L.onScoreChanged;var T=L.isEmbeddedInWebview;var W=_.OV("yt-mini-app-score-button-view-model"),V=function(){var R;return _.n(Z==null?void 0:(R=Z())==null?void 0:R.buttonViewModel,_.NU)},M=function(){var R;
return(N==null?void 0:N())||Number(Z==null?void 0:(R=Z())==null?void 0:R.lastScore)||0},G=function(){var R;
return(S==null?void 0:S())||((R=V())==null?void 0:R.title)||""},D,l=1;
if(L=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))L=Number(L),l=isNaN(L)?1:L/100;_.ph(function(){u==null||u(M());var R;var K=_.KY((R=V())==null?void 0:R.onTap);if(K){R=_.n(K,qBs);var U,d,h;R=_.n(R==null?void 0:(U=R.panelLoadingStrategy)==null?void 0:(d=U.inlineContent)==null?void 0:(h=d.dialogViewModel)==null?void 0:h.customContent,GK0)}else R=void 0;if(U=R)U.score=G()},"Aekez");
L=_.Z9(function(){var R,K,U=Z==null?void 0:(R=Z())==null?void 0:(K=R.loggingDirectives)==null?void 0:K.trackingParams;U&&_.U$(_.GR().resolve(_.a3),U);return!1});
_.m0(function(){if(W.value){var R=W.value.querySelector("button"),K=V();R&&K&&Loh(R,K);_.GD("yt-share-playable-with-high-score",function(){var U=M().toString(),d=Z==null?void 0:Z().onShareHighScoreCommand,h=Z==null?void 0:Z().highScoreShareClientParamIdentifier,E=T==null?void 0:T();d&&(E?(h=new PzM,U=_.dF(h,2,U),ct(d,U.JSC$12530_serializeBinary())):h&&(_.GR().resolve(Uc0).clientParams.set(h,{miniAppClientParams:{highScore:U}}),hz_(d,!1)))})}});
var v=function(){var R=V();R&&(N==null?0:N())&&R.accessibilityText&&(R.accessibilityText=R.accessibilityText.replace(D,G()));D=G();return{numberValue:M(),numberText:G(),heightPx:36,fontSizeMultiplier:l,shouldAnimate:!(N==null||!N())&&!0}};
return _.g("yt-mini-app-score-button-view-model",{class:function(){var R={};return _.D7("miniAppScoreButtonViewModelHost",(R.miniAppScoreButtonViewModelIsVisible=M()!==0,R))},
el:W,"on:click":L},$Os(!1,function(){return _.g("span",{style:"display:none;"},M)}),_.g(_.bj,{data:function(){var R;
return Z==null?void 0:(R=Z())==null?void 0:R.buttonViewModel}},{buttonViewModel:function(R){return _.g(_.$X,{data:R.data,
animatedTextProps:v})}}))},"Lf");var sQv=_.p(function(L){var Z,N=(Z=_.G7("yt-mini-app-is-theater-mode-enabled"))!=null?Z:!1,S=_.c("enable_playable_container_save_button"),u=_.c("enable_play_next_destination_page_in_toolbar");Z={};return _.g("ytm-mini-app-top-bar-view-model",null,_.g("div",{class:_.qg("yt-mini-app-top-bar-view-model",(Z["yt-mini-app-top-bar-view-model--mobile"]=!1,Z["yt-mini-app-top-bar-view-model--desktop"]=!0,Z))},_.g("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.g(_.F,{cond:function(){var T;return!!L.data().backButtonEdu&&
!((T=L.isExitMiniAppSeen)==null?0:T.call(L))},
then:function(){return _.g(_.bj,{data:function(){return L.data().backButtonEdu}},{buttonViewModel:_.$X})},
else:function(){return _.g(_.bj,{data:function(){return L.data().backButton}},{buttonViewModel:_.$X})}}),_.g(_.F,{cond:function(){return L.data().viewAllButton&&!0},
then:function(){return _.g(_.bj,{data:function(){return L.data().viewAllButton}},{buttonViewModel:_.$X})}}),_.g(_.F,{cond:function(){return L.data().title&&!0},
then:function(){return _.g("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return L.data().title})}})),_.g("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.g(_.F,{cond:function(){var T;
return(T=L.isDesktopPlayPage)==null?void 0:T.call(L)},
then:function(){return _.g(_.F7,null,_.g(IP5,{highScoreButton:function(){return L.data().highScoreButton},
score:L.score,formattedScore:L.formattedScore,onScoreChanged:L.onScoreChanged,isEmbeddedInWebview:L.isEmbeddedInWebview}),_.g(dc8,{enableSaveButton:function(){return _.JW(S)},
saveButton:function(){return L.data().saveButton},
isSaved:L.isSaved,onSaveToggled:function(){return L.onSaveToggled}}),_.g(aP0,{menuButton:function(){return L.data().menuButton}}))},
else:function(){return _.g(_.F,{cond:function(){return!1},
then:function(){return _.g(_.bj,{data:function(){return L.data().playPageButton}},{buttonViewModel:function(T){return _.g(_.$X,{data:T.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.g(IP5,{highScoreButton:function(){return L.data().highScoreButton},
score:L.score,formattedScore:L.formattedScore,onScoreChanged:L.onScoreChanged,isEmbeddedInWebview:L.isEmbeddedInWebview})}})}})),_.g("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.g(_.bj,{data:function(){return L.data().muteButton}},{toggleButtonViewModel:function(T){var W=T.data;
return _.g(_.sj,{data:function(){var V,M;return Object.assign({},W(),{isToggled:(M=(V=L.isAudioEnabled)==null?void 0:V.call(L))!=null?M:!0})},
onToggle:L.onAudioToggled,useOutlinedIcon:!0})}}),_.g(_.bj,{data:function(){return L.data().theatreModeButton}},{toggleButtonViewModel:function(T){var W=T.data;
return _.g("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.g(_.sj,{data:function(){return Object.assign({},W(),{isToggled:N})},
useOutlinedIcon:!0}))}}),_.g(hvy,{fullscreenButton:function(){return L.data().fullscreenButton}}),_.g(_.F,{cond:function(){return _.JW(u)&&L.data().viewAllButton&&!1},
then:function(){return _.g(_.bj,{data:function(){return L.data().viewAllButton}},{buttonViewModel:_.$X})}}),_.g(_.F,{cond:function(){var T;
return!((T=L.isDesktopPlayPage)==null?0:T.call(L))},
then:function(){return _.g(_.F7,null,_.g(dc8,{enableSaveButton:function(){return _.JW(S)},
saveButton:function(){return L.data().saveButton},
isSaved:L.isSaved,onSaveToggled:function(){return L.onSaveToggled}}),_.g(aP0,{menuButton:function(){return L.data().menuButton}}))}}))))},"Mf");
sQv.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var aP0=_.p(function(L){return _.g(_.bj,{data:L.menuButton},{buttonViewModel:_.$X})},"Nf"),dc8=_.p(function(L){var Z=L.enableSaveButton;
var N=L.saveButton;var S=L.isSaved;var u=L.onSaveToggled;return _.g(_.F,{cond:function(){return Z()&&!(N==null||!N())},
then:function(){return _.g(_.bj,{data:function(){var T=_.n(N==null?void 0:N(),_.iD),W;return{toggleButtonViewModel:Object.assign({},T,{isToggled:(W=S==null?void 0:S())!=null?W:!(T==null||!T.isToggled)})}}},{toggleButtonViewModel:function(T){return _.g(_.sj,{data:T.data,
onToggle:u})}})}})},"Of"),IP5=_.p(function(L){var Z=L.highScoreButton;
var N=L.score;var S=L.formattedScore;var u=L.onScoreChanged;var T=L.isEmbeddedInWebview;return _.g(_.bj,{data:Z},{miniAppScoreButtonViewModel:function(W){return _.g(ev8,{data:W.data,score:N,formattedScore:S,onScoreChanged:u,isEmbeddedInWebview:T})}})},"Pf"),hvy=_.p(function(L){L=L.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.g(_.F7,null):_.g(_.bj,{data:L},{buttonViewModel:_.$X})},"Qf");_.jQg=new _.iY("DESKTOP_CURRENT_PAGE");var J0Q=_.p(function(L){var Z=L.data;var N=_.c("force_active_time_logging_webview"),S=!1,u=new b8g,T=void 0,W=void 0,V=_.GR().resolve(VYq),M=new Tyv,G=void 0,D=void 0,l=[],v=void 0,R=void 0,K=!1,U=!1,d=!1,h=!1,E=new _.qe,A=_.GR().resolve(Uc0),J=_.GR().resolve(_.iZ),C=_.GR().resolve(_.gv(Yu)),X,L1=(X=_.GR().resolve(_.gv(_.jQg)))==null?void 0:X.getCurrentPage(),Fw=!1,GB=0,Yt=function(Ax){Ax.preventDefault();return Ax.returnValue=""},lH;
L=_.O(_.nh(!((lH=_.G7("yt-mini-app-is-audio-enabled"))!=null&&!lH),void 0,"WhYQTd"));var RF=L.next().value,jf=L.next().value,f1;lH=_.O(_.nh(!((f1=_.G7("exit-mini-app-seen-state"))==null||!f1),void 0,"jxhCJb"));var n0=lH.next().value,r5=lH.next().value;f1=_.O(_.nh(!1,void 0,"MuvDfe"));var yq=f1.next().value,ZN=f1.next().value;f1=_.O(_.nh(void 0,void 0,"u9DLoc"));var GV=f1.next().value,IO=f1.next().value;f1=_.O(_.nh(void 0,void 0,"rykyJb"));var d5=f1.next().value,n8=f1.next().value;f1=_.O(_.nh(!0,void 0,
"d8FUvf"));var lq=f1.next().value,tx=f1.next().value;f1=_.O(_.nh(!1,void 0,"x9XwUb"));var ut=f1.next().value,oO=f1.next().value;f1=_.O(_.nh(!1,void 0,"bcquyc"));var uq=f1.next().value,RO=f1.next().value;f1=_.O(_.nh(void 0,void 0,"FMAC5b"));var iq=f1.next().value,hU=f1.next().value;f1=_.O(_.nh(0,void 0,"HUGJEb"));var Qq=f1.next().value,Fh=f1.next().value,g5=_.t2("mini-app-container-view-model"),SY=function(){return Z().isEmbeddedInWebview},Xw=function(){return Z().hasPlayNextShelf};
_.GD("yt-page-type-changed",function(Ax){if(_.c("enable_is_mini_app_page_active_bugfix"))Ax.detail.newPageSubtype==="mini_app"&&Ax.detail.newPageType==="ytd-browse"||!lq()||H6();else if(Ax=_.Rtw()==="mini_app",Ax!==lq())if(tx(Ax),Ax){var ys;Ax=(ys=Z().playableId)==null?void 0:ys.toString();Ax!==void 0&&window.location.href.includes(Ax)&&!U&&(h=!0,vl(),o7.value&&Yh(o7.value))}else Ax||H6()});
_.GD("yt-action",function(Ax){Ax.detail.actionName==="yt-engagement-panel-visible-changed"&&Ax.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Ax.detail.args[2]==="PAmini_app_panel"&&H6();_.c("enable_is_mini_app_page_active_bugfix")?Ax.detail.actionName==="yt-history-load"&&!lq()&&(L1==null?0:L1.active)?(tx(!0),vl(),o7.value&&Yh(o7.value)):Ax.detail.actionName==="yt-history-load"&&lq()&&!Z().isEmbeddedInWebview&&bG():lq()&&Ax.detail.actionName==="yt-history-load"&&(h?h=!1:Z().isEmbeddedInWebview||
bG())});
_.zs(function(){oQ()});
_.ph(function(){vl()},"bLMzme");
var vl=function(){var Ax=Z().playableId,ys=Z().localReleaseId,Y5=Z().derivedDeviceInterface;if(U)_.Q7(new _.sr("[MiniAppContainerViewModel] onEnter was called more than once"));else{U=!0;T=new Xlv(Ax,ys,Y5,document.visibilityState==="visible");xIw(T);W=new DcP(Ax);E5Y(V,Ax);tY0(M,{showMiniAppAdCommand:Z().showMiniAppAdCommand,isEmbeddedInWebview:Z().isEmbeddedInWebview,playLogger:T});BRL()&&(R=document.body.style.backgroundColor,_.js(document.body,"background-color","black"));N4();Pw();E=new _.qe;
if(Z().isEmbeddedInWebview){if(Ax=(new URLSearchParams(window.location.search)).get("postPlayNonce"))H00(T,Ax),Fw=!0;u.initialize({onAudioStateLoaded:function(bq){Zb(bq)},
onMuteMiniApp:function(){Zb(!1)},
onUnmuteMiniApp:function(){Zb(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(bq){Fw||(H00(T,bq),Fw=!0)},
confirmExitMiniApp:function(){var bq,$h,By;return _.b(function(QL){if(QL.nextAddress==1)return Z().confirmExitMiniAppCommand?QL.yield(Promise.race([E.promise,Promise.resolve(!1)]),2):QL.return();(bq=QL.yieldResult)?!Z().confirmExitMiniAppCommandEdu||(By=($h=n0)==null?void 0:$h())!=null&&By?s3(Z().confirmExitMiniAppCommand):(s3(Z().confirmExitMiniAppCommandEdu),_.gr("exit-mini-app-seen-state","true",2592E6)):s3(Z().closeMiniAppCommand);_.w7(QL)})},
onNativeBenchmarkingMessageReceived:function(bq){bq=gW0(_.agt(bq));if(_.Wa(bq,_.oL,3,V7M)){var $h=_.f5(bq,_.oL,3,V7M),By=sxP();var QL=Jr(By.getSeconds())-Jr($h.getSeconds());$h=_.G3(By,2)-_.G3($h,2);QL<0&&$h>0?(QL+=1,$h-=1E9):QL>0&&$h<0&&(--QL,$h+=1E9);QL=(new Xi).setSeconds(QL);QL=_.ZM(QL,2,_.Ov($h),0);_.fG(bq,1,QL)}var Tl;(Tl=D)==null||Tl.returnNativeBenchmarkingMessage(bq)},
multiplayer3pAckStateLoaded:function(bq){bG(bq)},
exitMiniAppSeenStateLoaded:function(bq){Z().confirmExitMiniAppCommandEdu&&r5(bq)},
onNavigateToNewMiniApp:function(){s3(Z().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(bq){bq=new URLSearchParams(bq);var $h=void 0;bq.has("invite_code")&&($h=new oWL,bq=bq.get("invite_code"),$h=_.dF($h,1,bq));if(bq=$h){var By;(By=D)==null||By.sendGameData(bq)}},
onPauseMiniApp:function(){S=!0;IQ()},
onResumeMiniApp:function(){S=!0;JU()},
onAdFinished:function(bq){M.onAdFinished(bq)}});
Z().showMultiplayer3pConsentDialogCommand||E.resolve(!0);s3(Z().onContainerReadyCommand)}else H00(T),E.resolve(!0);lPQ(W,AsY(T));AsY(T).then(function(bq){bq={miniAppPlayData:{postPlayNonce:bq}};var $h,By=($h=Z().loggingDirectives)==null?void 0:$h.trackingParams;By&&_.tC().stateChanged(By,bq)});
Ax=Z().showSignInDialogCommand;!p5G()&&Ax&&(_.gr("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),s3(Ax));Z().confirmExitMiniAppCommand&&C&&(Ax=dzx(Z().confirmExitMiniAppCommand))&&(C.customConfirmationCommand=Ax)}},oQ=function(){R&&_.js(document.body,"background-color",R);
K=!1;v&&v.release();W.flush().catch(function(Ax){_.Q7(Ax)});
V.flush().catch(function(Ax){_.Q7(Ax)});
LkQ(T);n5();D=void 0;Pqm(A)},H6=function(){tx(!1);
oQ();ZN(!1);hU(void 0);IO(void 0);n8(void 0);GB=0;Fh(0);U=!1},IQ=function(){var Ax;
(Ax=D)==null||Ax.onPause();v&&v.release();W.flush().catch(function(ys){_.Q7(ys)});
V.flush().catch(function(ys){_.Q7(ys)});
qYk(T);oO(!0)},JU=function(){var Ax;
(Ax=D)==null||Ax.onResume();Pw();Ax=T;Ax.isForeground=!0;TZ(Ax,"PLAY_EVENT_TYPE_PLAY_RESUME");oO(!1)},Zb=function(Ax){var ys;
(ys=D)==null||ys.onAudioToggled(Ax);jf(Ax)},bG=function(Ax){Z().showMultiplayer3pConsentDialogCommand&&(Z().isEmbeddedInWebview&&Ax!==void 0&&E.resolve(Ax),!Ax&&_.Rtw()==="mini_app"&&s3(Z().showMultiplayer3pConsentDialogCommand))},Hl=function(){var Ax,ys,Y5,bq;
return _.b(function($h){if($h.nextAddress==1){!Z().isLivestream||Z().disableVideoCapture||(Ax=D)!=null&&Ax.sendStartGameFrameCapture();ys=(new URL(window.location.href)).searchParams;if(ys.has("invite_code")){var By=new oWL,QL=ys.get("invite_code");Y5=_.dF(By,1,QL);(bq=D)==null||bq.sendGameData(Y5)}yq()||(ZN(!0),By=T,By.state!==1?_.Q7(new _.sr("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+rsv[By.state])):(_.oe("mini_app_ids_without_game_ready").includes(By.JSC$17047_miniAppId)&&(By.gameReady=
!0),By.state=2,By.beforeReady=!1,uZ(By,"ma_ffr"),TZ(By,"PLAY_EVENT_TYPE_PLAY_READY")));return $h.yield(E.promise,2)}s3(Z().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();Z().isEmbeddedInWebview||bG();_.w7($h)})},k5=function(){var Ax=T;
Ax.gameReady=!0;uZ(Ax,"ma_gr")},Tg=function(Ax){var ys;
return _.b(function(Y5){if(Y5.nextAddress==1)return _.RS(Y5,2),Y5.yield(o5v(W,Ax),4);if(Y5.nextAddress!=2)return _.SX(Y5,0);ys=_.yd(Y5);s3(Z().showSavingErrorPopupCommand);throw ys;})},Aj=function(){var Ax,ys;
return _.b(function(Y5){if(Y5.nextAddress==1)return _.RS(Y5,2),Y5.yield(v5c(W),4);if(Y5.nextAddress!=2)return Ax=Y5.yieldResult,Y5.return(Ax);ys=_.yd(Y5);s3(Z().showLoadingErrorDialogCommand);throw ys;})},c4=function(Ax){T.logError(Ax)},Hy=function(Ax,ys,Y5){NyP(T,Ax,ys,Y5)},EK=function(Ax,ys){i8Y(T,Ax,ys)},ZD=function(){!N&&Z().isEmbeddedInWebview||_.GI();
Z8P(T,!0);K||(window.addEventListener("beforeunload",Yt,{capture:!0}),K=!0)},un=function(Ax){var ys,Y5,bq,$h,By,QL,Tl;
return _.b(function(pV){if(pV.nextAddress==1)return V&&(!G||G<Ax)&&Ax>0?pV.yield(pwQ(V,Ax),3):pV.jumpTo(0);ys=pV.yieldResult;Y5=_.O(ys);bq=Y5.next().value;$h=Y5.next().value;By=bq;QL=$h;((Tl=By)==null?0:Tl.displayString)&&QL&&(IO(QL),n8(By.displayString));_.w7(pV)})},wP=function(Ax){var ys=Z().onBenchmarkingMessageReceivedCommand;
if(ys){var Y5=sxP();_.kV(Ax,3,V7M,Y5);ct(ys,GQV(Ax))}},Ps=function(Ax){var ys=Z().onGameFrameReceivedCommand;
if(ys){var Y5=new Pb;var bq=new WZQ;var $h=Di(Ax,1);bq=_.aW(bq,1,$h);Ax=_.va(Ax,2);Ax=_.dF(bq,2,Ax);Y5=_.fG(Y5,2,Ax);ct(ys,gZ5(Y5))}},rP=function(Ax){var ys=Z().onGameAudioDataReceivedCommand;
if(ys){var Y5=new Pb;var bq=new bTY;Ax=_.va(Ax,1);bq=_.dF(bq,1,Ax);Y5=_.fG(Y5,4,bq);ct(ys,gZ5(Y5))}},K0=function(){var Ax=new URLSearchParams(window.location.search);
if(Z().isEmbeddedInWebview&&Ax&&Ax.get("override_hl")==="true"&&Ax.get("hl"))return Ax.get("hl");Ax=document.documentElement.lang;return Ax!==""?Ax:wn},RQ=function(Ax){var ys=Z().onShareInviteCodeCommand;
if(ys)if(Z().isEmbeddedInWebview){var Y5=new PzM;Ax=_.dF(Y5,1,Ax);ct(ys,zhs(Ax))}else Y5=Z().inviteCodeShareClientParamIdentifier,A.clientParams.set(Y5,{miniAppClientParams:{inviteCode:Ax}}),s3(ys)},I7=function(Ax){var ys,Y5,bq;
return _.b(function($h){if($h.nextAddress==1)return ys=Z().onMiniAppOpenYtContentRequested,V&&_.c("enable_open_yt_content")&&ys?$h.yield(zv5(V,Ax),3):$h.jumpTo(0);Y5=$h.yieldResult;if(Y5==="OK")if(Z().isEmbeddedInWebview){var By=new uNV;bq=y7(By,2,EF,cw(Ax));ct(ys,OTV(bq))}else J.clientData.set("video_id",Ax),s3(ys);_.w7($h)})},dy=function(Ax){GB+=_.G3(Ax,3);
Ax=Math.min(Math.log(1+GB/15E6*9)/Math.log(10),.99);Fh(Ax);kL(Ax)},kL=_.cz(function(Ax){var ys=Z().updateLoadingProgressCommand;
if(ys){var Y5=new uNV;Ax=y7(Y5,3,EF,_.Bl(Ax));ct(ys,OTV(Ax))}},100),f0=function(Ax){return Wk8(M,Ax)},Pw=function(){var Ax,ys;
((Ax=_.lvG())==null?void 0:(ys=Ax.wakeLock)==null?void 0:ys.request)!=null&&_.lvG().wakeLock.request("screen").then(function(Y5){v=Y5}).catch(function(){})},o7=_.OV("iframe");
_.ph(function(){Z().isSupportedCountry&&(p5G()||_.c("enable_sign_in_promo")||!Z().showSignInDialogCommand?o7.value&&Yh(o7.value):s3(Z().onMiniAppReadyCommand))},"ASuFde");
var lt=function(){return _.g("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return yq()?0:-1},
el:o7})},Yh=function(Ax,ys){ys=ys===void 0?!1:ys;
var Y5=SU();Y5&&(ys||Y5.toString()!==Ax.getAttribute("src"))&&(D=X5w(Z().source,{isAudioEnabled:RF,onFirstFrameReady:Hl,onGameReady:k5,onSave:Tg,onLoad:Aj,onError:c4,onSdkCalled:Hy,onSdkPerformanceUpdate:EK,onClick:ZD,onSendHighScore:un,onBenchmarkingMessageReceived:wP,getLanguage:K0,onShareInviteCode:RQ,onResourceLoaded:dy,onOpenYTContent:I7,onShowMiniAppAd:f0,onGameFrameReceived:Ps,onGameAudioReceived:rP},Ax,Y5),VV(Ax,"load",function(){uZ(T,"ma_il");VV(Ax,"load",function(){Yh(Ax,!0)})}),_.qq(Ax,
Y5))},SU=function(){var Ax=Z().url;
if(Ax&&(Ax=_.QH(Ax),Ax!==null)){if(Z().source&&Z().source==="MINI_APP_SOURCE_GAMESNACKS")Ax=_.om(Ax,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.c("enable_origin_query_parameter_bugfix")){var ys=_.$M(_.GOB(Ax.toString()));ys=new URLSearchParams(ys||"");ys.set("origin",window.location.origin);ys=ys.toString();Ax=_.en(Ax).toString();Ax=_.YV(B7V.exec(Ax)[0]+(ys.trim()?"#"+ys:""))}return Ax}},pG=function(){var Ax={};
Ax=_.qg("yt-mini-app-container-view-model__loading-screen",(Ax["yt-mini-app-container-view-model__loading-screen--fade-out"]=yq,Ax));var ys=function(){return yq()?1:Qq()};
return _.g("div",{class:Ax},_.g(_.bj,{data:function(){return Z().splashScreen}},{miniAppSplashScreenViewModel:function(Y5){return _.g(wwk,{data:Y5.data,
loadingProgress:ys})}}))},BE=function(){var Ax={};
return _.g("div",{class:_.qg("yt-mini-app-container-view-model__pause-interstitial",(Ax["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!ut()},Ax["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=ut,Ax))},_.g(_.bj,{data:function(){return Z().splashScreen}},{miniAppSplashScreenViewModel:function(ys){return _.g(wwk,{data:ys.data,
forPaused:!0})}}))},N4=function(){l=[];
l.push(_.Gl(window,"visibilitychange",function(){d||S&&SY()||(document.visibilityState==="visible"?JU():IQ())}));
l.push(_.Gl(window,"pagehide",function(){oQ()}));
l.push(_.Gl(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&g5.value.dispatchEvent(new Event("tap"))},0)}));
l.push(_.Gl(g5.value,"pointerdown",function(){Z8P(T,!1)},!0));
l.push(_.Gl(g5.value,"pause",function(){d=!0;IQ()}));
l.push(_.Gl(g5.value,"play",function(){d=!1;JU()}));
l.push(_.Gl(g5.value,"exit",function(){oQ()}));
var Ax=navigator.keyboard,ys=Ax&&Ax.lock;l.push(_.Gl(window,OVt,function(){RO(VwQ());VwQ()?(Z().hasPlayNextShelf&&S6("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),K5("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),ys&&Ax.lock(["Escape"])):(Z().hasPlayNextShelf&&K5("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),S6("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),ys&&Ax.unlock())}));
Z().showMultiplayer3pConsentDialogCommand&&l.push(_.Gl(window,"yt-playables-ack-3p-data-usage",function(){mcy(V)}));
Z().confirmExitMiniAppCommandEdu&&l.push(_.Gl(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.gr("exit-mini-app-seen-state","true",2592E6)}));
Z().onGameAudioDataReceivedCommand&&l.push(_.Gl(window,"message",function(Y5){Y5=Y5.event_;var bq,$h=(bq=o7.value)==null?void 0:bq.src;if($h&&Y5.origin===(new URL($h)).origin&&Y5.data&&Y5.data.type==="GAME_AUDIO"&&Y5.data.audio&&Y5.data.audio.length>0)if(_.c("enable_sending_unwrapped_game_audio_as_serialized_metadata"))EJA(Z().onGameAudioDataReceivedCommand,Y5.data.audio);else{var By=new FileReader;By.onload=function(){var QL=new Pb;var Tl=new bTY;Tl=_.dF(Tl,1,By.result);QL=_.fG(QL,4,Tl);ct(Z().onGameAudioDataReceivedCommand,
gZ5(QL))};
By.readAsDataURL(new Blob([Y5.data.audio]))}}))},n5=function(){l.forEach(function(Ax){bn(Ax)});
window.removeEventListener("beforeunload",Yt,{capture:!0})},s3=function(Ax){Ax&&hz_(Ax,Z().isEmbeddedInWebview||!1)},K5=function(Ax,ys){Ax=_.O(g5.value.getElementsByClassName(Ax));
for(var Y5=Ax.next();!Y5.done;Y5=Ax.next())Y5.value.classList.add(ys)},S6=function(Ax,ys){Ax=_.O(g5.value.getElementsByClassName(Ax));
for(var Y5=Ax.next();!Y5.done;Y5=Ax.next())Y5.value.classList.remove(ys)};
return function(){var Ax={};Ax=_.qg("yt-mini-app-container-view-model",(Ax["yt-mini-app-container-view-model--desktop"]=!0,Ax["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return Z().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Ax["yt-mini-app-container-view-model--ios-web-view"]=BRL(),Ax["yt-mini-app-container-view-model--no-top-bar"]=function(){return!Z().topBar},Ax["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return Z().hasPlayNextShelf},Ax["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return Z().hasPlayNextShelf},Ax["yt-mini-app-container-view-model--show-peek-below"]=function(){return!uq()&&Z().hasPlayNextShelf},Ax));
var ys={};ys=_.qg("yt-mini-app-container-view-model__content",(ys["yt-mini-app-container-view-model__content--desktop-content"]=!0,ys["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return Z().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},ys["yt-mini-app-container-view-model--desktop-play-page"]=function(){return Z().hasPlayNextShelf},ys));
return _.g("mini-app-container-view-model",{el:g5},_.g("div",{class:Ax},_.g(_.F,{cond:function(){return Z().topBar&&!uq()},
then:function(){return _.g(_.bj,{data:function(){return Z().topBar}},{miniAppTopBarViewModel:function(Y5){return _.g(sQv,{data:Y5.data,
isAudioEnabled:RF,onAudioToggled:function(bq){Zb(bq)},
score:GV,formattedScore:d5,onScoreChanged:function(bq){G=bq},
isEmbeddedInWebview:SY,isSaved:iq,onSaveToggled:function(bq){hU(bq)},
isExitMiniAppSeen:n0,isDesktopPlayPage:Xw})}})}}),_.g("div",{class:ys},_.g(_.F,{cond:lq,
then:function(){return lt()}}),_.g(_.F,{cond:function(){return Z().isLivestream},
then:function(){return BE()}}),_.g(_.F,{cond:function(){return!Z().isEmbeddedInWebview},
then:function(){return pG()}}))))}()},"Tf");
J0Q.idomCompat=!0;_.CY(J0Q,"mini-app-container-view-model",{props:{data:_.LK}});var Cqm=_.p(function(L){var Z=L.data;return _.g("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.g("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Z9(function(){var N=Z().onTap;N&&_.w$(N)})},_.g(_.F,{cond:function(){return Z().icon},
then:function(N){return _.g(_.T0,{icon:function(){return N().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.g("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return Z().title})))},"Uf");
Cqm.idomCompat=!0;var r05=_.p(function(L){var Z=_.t2("div"),N=_.O(_.nh(void 0,void 0,"dg3xff")),S=N.next().value,u=N.next().value;N=_.O(_.nh(void 0,void 0,"AgHNfc"));var T=N.next().value,W=N.next().value;N=_.O(_.nh(void 0,void 0,"fuTKCc"));var V=N.next().value,M=N.next().value,G=function(){var h=S();return h!==void 0?Math.abs(h):void 0},D=function(){var h=G();
return h===void 0||h<=3},l=function(){var h=G();
var E=T(),A=V();h=h!==void 0&&E!==void 0&&A!==void 0?E-A-h:void 0;return h===void 0||h<=3},v=function(h){Z.value&&Z.value.scrollBy({top:0,
left:(_.X7("HTML_DIR")==="rtl"?-1:1)*h*Z.value.clientWidth,behavior:"smooth"})},R=function(){var h;
u((h=Z.value)==null?void 0:h.scrollLeft);var E;W((E=Z.value)==null?void 0:E.scrollWidth);var A;M((A=Z.value)==null?void 0:A.clientWidth)},K=function(){v(-.5)},U=function(){v(.5)};
N=_.Z9(function(){R()});
_.zp(function(){R();if(Z.value&&window.ResizeObserver){var h=new ResizeObserver(R);h.observe(Z.value);_.zs(function(){h.disconnect()})}});
var d={};return _.g("yt-sponsorships-scrollable-shelf",{class:_.qg("ytdSponsorshipsScrollableShelfHost",L.className)},_.g("div",{class:_.qg("ytdSponsorshipsScrollableShelfContent",(d.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return L.data().previousButton&&L.data().nextButton&&!D()&&!l()},d.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return L.data().previousButton&&!D()&&l()},d.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return L.data().nextButton&&
D()&&!l()},d)),
el:Z,"on:scroll":N},L.children),_.g(_.F,{cond:function(){return!D()},
then:function(){return _.g(_.bj,{data:function(){return L.data().previousButton}},{buttonViewModel:function(h){return _.g(_.$X,{data:h.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:K})}})}}),_.g(_.F,{cond:function(){return!l()},
then:function(){return _.g(_.bj,{data:function(){return L.data().nextButton}},{buttonViewModel:function(h){return _.g(_.$X,{data:h.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:U})}})}}))},"Wf");
r05.idomCompat=!0;var XwY=_.p(function(L){var Z=L.data;L={};return _.g("yt-sponsorships-hub",{class:_.qg("ytdSponsorshipsHubHost",(L.ytdSponsorshipsHubHostIndented=function(){return Z().indented},L))},_.g("div",{class:"ytdSponsorshipsHubHeader"},_.g("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.g("div",{class:"ytdSponsorshipsHubAvatar"},_.g(_.bj,{data:function(){return Z().avatar}},{avatarViewModel:_.JO})),_.g(_.F,{cond:function(){return Z().badgeImage},
then:function(N){return _.g("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.g("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.g("div",{class:"ytdSponsorshipsHubBadge"},_.g(_.ji,{data:N,targetWidth:24,targetHeight:24,alt:""}))))}})),_.g("div",{class:"ytdSponsorshipsHubDetails"},_.g("div",{class:"ytdSponsorshipsHubTierName"},function(){return Z().tierName}),_.g("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return Z().membershipType}),_.g("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return Z().membershipDurationOrExpiry})),_.g("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.g(_.bj,{data:function(){return Z().manageButton}},{buttonViewModel:function(N){return _.g(_.$X,{data:N.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.g(_.bj,{data:function(){return Z().actionMenuButton}},{buttonViewModel:function(N){return _.g(_.$X,{data:N.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.g("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return Z().perksTitle}),_.g(r05,{data:function(){return{previousButton:Z().previousPerkButton,
nextButton:Z().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.g("div",{class:"ytdSponsorshipsHubPerkCards"},_.g(_.bj,{data:function(){return Z().perkCards}},{sponsorshipsHubPerkCardViewModel:Cqm}),_.g(_.F,{cond:function(){return Z().viewAllPerksButton},
then:function(N){return _.g(QQ0,{data:N})}}))))},"Xf");
XwY.idomCompat=!0;var QQ0=_.p(function(L){var Z=L.data;return _.g("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.g(_.bj,{data:function(){return Z().button}},{buttonViewModel:_.$X}),_.g("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.g("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return Z().title}),_.g("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return Z().subtitle})))},"Yf");
QQ0.idomCompat=!0;_.CY(XwY,"yt-sponsorships-hub",{props:{data:_.LK}});_.A0s=_.p(function(L){var Z=L.data;return _.g("yt-dual-avatar-view-model",{class:_.qg("ytDualAvatarViewModelHost",L.className),style:_.u4({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var N;return((N=Z().badgeCutoutRadius)!=null?N:14)+"px"}})},_.g("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.g(_.bj,{data:function(){return Z().startAvatar}},{avatarViewModel:_.JO}),_.g(_.bj,{data:function(){return Z().endAvatar}},{avatarViewModel:_.JO})),_.g(_.bj,{data:function(){return Z().badge}},
{contentPreviewImageViewModel:function(N){return _.g("div",{class:"ytDualAvatarViewModelBadge"},_.g(_.$g,{data:N.data}))}}))},"Zf");
_.A0s.idomCompat=!0;var By0=_.p(function(L){var Z=L.data;var N,S=!((N=_.GR().resolve(_.gv(_.d$)))==null||!N());L=_.wJ(function(){var D,l,v=S?(D=Z().header)==null?void 0:D.backgroundColorDarkMode:(l=Z().header)==null?void 0:l.backgroundColorLightMode;if(v!==void 0)return _.Rs(v)},void 0,"TDdh7d");
N=_.wJ(function(){var D,l;return S?(D=Z().header)==null?void 0:D.backgroundImagePart1Dark:(l=Z().header)==null?void 0:l.backgroundImagePart1Light},void 0,"X0peMe");
var u=_.wJ(function(){var D,l;return S?(D=Z().header)==null?void 0:D.backgroundImagePart2Dark:(l=Z().header)==null?void 0:l.backgroundImagePart2Light},void 0,"an0Hzd"),T=_.wJ(function(){return _.X7("HTML_DIR")==="rtl"},void 0,"BltEgb"),W=_.t2("yt-sponsorships-perks-list"),V=!1,M=function(){var D=W.value;
if(D&&!V){var l,v=(l=D.parentElement)==null?void 0:l.parentElement;if(v)for(D=D.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),l=0;l<D.length;++l){var R=D[l];if(R instanceof HTMLElement){v.scrollTo({top:R.offsetTop+R.clientHeight/2-v.clientHeight/2,behavior:"smooth"});V=!0;break}}}};
_.m0(function(){var D=W.value;if(D&&window.ResizeObserver){var l=new ResizeObserver(M);l.observe(D);_.zs(function(){l.disconnect()})}});
var G={};return _.g("yt-sponsorships-perks-list",{el:W,class:_.qg("ytdSponsorshipsPerksListHost",(G.ytdSponsorshipsPerksListHorizontalPadding=function(){return Z().horizontalPaddingEnabled},G))},_.g("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.g("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.u4({"background-color":L})},_.g("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.g(_.F,{cond:N,then:function(D){var l={};return _.g("div",{class:_.qg((l.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=S,l.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!S,l.ytdSponsorshipsPerksListFlipped=T,l))},_.g(_.ji,{data:D,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.g("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.g(_.F,{cond:u,
then:function(D){var l={};return _.g("div",{class:_.qg((l.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=S,l.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!S,l.ytdSponsorshipsPerksListFlipped=T,l))},_.g(_.ji,{data:D,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.g("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.g(_.bj,{data:function(){var D;
return(D=Z().header)==null?void 0:D.dualAvatar}},{dualAvatarViewModel:_.A0s})))),_.g("div",{class:"ytdSponsorshipsPerksListBody"},_.g("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return Z().title}),_.g(_.F,{cond:function(){return Z().perks},
then:function(D){return _.g(_.ju,{each:D},function(l,v){var R={};return _.g("div",{class:_.qg("ytdSponsorshipsPerksListPerkContainer",(R.ytdSponsorshipsPerksListSelectedPerk=function(){var K=v(),U=Z().selectedPerkIndex;return K===U},R))},_.g(_.F,{cond:function(){return v()>0},
then:function(){return _.g("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.g("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.g(_.F,{cond:function(){return l.icon},
then:function(K){return _.g(_.T0,{icon:function(){return K().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.g("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.g("div",{class:"ytdSponsorshipsPerksListPerkTitle"},l.title),_.g("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.g(_.qv,{text:l.description})),_.g(_.F,{cond:function(){return l.instructions},
then:function(){var K,U;return _.g("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.g("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(K=l.instructions)==null?void 0:K.title),_.g("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.g(_.qv,{text:(U=l.instructions)==null?void 0:U.text})))}}))),_.g(_.F,{cond:function(){return l.emoji},
then:function(K){return _.g("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.g(_.ju,{each:function(){return K()}},function(U){return _.g(_.ji,{data:U,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.g(H8y,{data:l}))})}})))},"$f");
By0.idomCompat=!0;var H8y=_.p(function(L){var Z=L.data;var N=function(W,V){return W===V},S=function(){var W=Z();
W=_.n(W==null?void 0:W.badgesShelf,rlL);return W!==void 0&&W!==null?W:{previousButton:{},nextButton:{}}},u=_.OV("div"),T=function(){var W=u.value;
if(W){var V=W.parentElement;if(V){W=W.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var M=0;M<W.length;++M){var G=W[M];if(G instanceof HTMLElement){V.scrollTo({left:G.offsetLeft+G.clientWidth/2-V.clientWidth/2,behavior:"instant"});break}}}}};
_.m0(function(){var W=u.value;if(W){var V=new ResizeObserver(T);V.observe(W);_.zs(function(){V.disconnect()})}});
return _.g("div",null,_.g(_.F,{cond:function(){return Z().badges},
then:function(W){return _.g(r05,{data:S},_.g("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:u},_.g(_.ju,{each:function(){return W()}},function(V,M){var G={},D={},l={};
return _.g("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.g(_.F,{cond:function(){return M()>0},
then:function(){return _.g("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.g("div",{class:_.qg("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(G.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return N(M(),Z().currentBadgeIndex)},G.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!N(M(),Z().currentBadgeIndex)},G))},_.g("div",{class:_.qg("ytdSponsorshipsPerksListLoyaltyBadge",(D.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return N(M(),
Z().currentBadgeIndex)},D.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!N(M(),Z().currentBadgeIndex)},D))},_.g(_.F,{cond:function(){return V.image},
then:function(v){var R={};return _.g("div",{class:_.qg((R.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return N(M(),Z().currentBadgeIndex)},R.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!N(M(),Z().currentBadgeIndex)},R))},_.g(_.ji,{data:v,
alt:""}))}})),_.g("div",{class:_.qg("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(l.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return N(M(),Z().currentBadgeIndex)},l))},V.title)))})))}}))},"ag");
H8y.idomCompat=!0;_.CY(By0,"yt-sponsorships-perks-list",{props:{data:_.LK}});_.CY(_.p(function(L){return _.g("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.g(_.F,{cond:function(){return L.data().image},
then:function(Z){return _.g(_.ji,{className:"ytwFantasyEmptyStateViewModelImage",data:Z,ariaHidden:!0,alt:""})}}),_.g(_.qv,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return L.data().title}}),_.g(_.qv,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return L.data().subtitle}}),_.g(_.bj,{data:function(){return L.data().primaryButton}},{buttonViewModel:function(Z){return _.g(_.$X,{data:Z.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"bg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.LK}});var xcg;var qvQ=_.p(function(L){var Z=L.data;var N=L.uniqueId;var S=L.overrides;L=_.wJ(function(){var u,T=((u=Z().timedAnimationData)==null?void 0:u.animationTiming)||[];return{uniqueId:N(),timings:T,experimentEnabled:T.length>0,enabled:T.length>0}},void 0,"hiuXI");
return _.g("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.g(EHh,{settings:L},_.g(_.bj,{data:function(){return Z().buttonRenderer}},{buttonRenderer:function(u){return _.g(_.T9,{data:u.data,
buttonOverrides:S})}})))},"cg");
qvQ.idomCompat=!0;_.CY(qvQ,"timed-animation-button-renderer",{props:{data:_.LK,uniqueId:_.LK,overrides:_.LK}});var Mx=function(){var L=_.e.apply(this,arguments)||this;L.hideJoinButtonBeforeSubscribed=_.c("hide_join_button_before_subscribed");L.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return L};
_.f(Mx,_.e);_.t=Mx.prototype;_.t.hasShowDialogCommand=function(L){return!!_.n(L,qBs)};
_.t.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"}}}};
_.t.updateJoinButtonOverrides=function(){var L,Z;(L=_.QJ(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(Z=L.polymerController)==null||Z.set("overrides",this.joinButtonOverrides);if(L=_.QJ(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))L.overrides=this.joinButtonOverrides};
_.t.handleButtonRefreshAction=function(L){if(L=_.n(L,cvh))this.set("data.membershipButton",L.membershipButton),this.notifyPath("data.membershipButton")};
_.t.onYtServiceRequestError=function(L){_.Ib(this.hostElement,L.detail.error.message)};
_.t.onKeydown=function(L){if(L.key==="Enter"){var Z;(Z=this.data)!=null&&Z.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.t.handleUnsubscribeAction=function(){var L,Z,N;((L=this.data)==null?void 0:(Z=L.membershipButton)==null?void 0:(N=Z.buttonRenderer)==null?void 0:N.style)==="STYLE_PRIMARY"&&_.QJ(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.gd.Object.defineProperties(Mx.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.subscriptionStateEntity)==null||!L.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var L,Z=(L=this.data)==null?void 0:L.membershipButton,N;L=(Z==null?void 0:Z.buttonRenderer)||_.n(Z==null?void 0:(N=Z.timedAnimationButtonRenderer)==null?void 0:N.buttonRenderer,_.xZ);return(L==null?void 0:L.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(L==null?void 0:L.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(L==null?void 0:L.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var L;if(this.hasShowDialogCommand((L=this.data)==null?void 0:L.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var L;if(this.hasShowDialogCommand((L=this.data)==null?void 0:L.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.attributedTitle)}}});
Mx.prototype.onYtServiceRequestError=Mx.prototype.onYtServiceRequestError;Mx.prototype.updateJoinButtonOverrides=Mx.prototype.updateJoinButtonOverrides;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Mx.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Mx.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.CD),_.Q("design:type",Object)],Mx.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Mx.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.pO),_.Q("design:type",Object)],Mx.prototype,"ironButtonState",void 0);_.r([_.Y(),_.Q("design:type",Object)],Mx.prototype,"data",void 0);_.r([_.w("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Mx.prototype,"hideJoin",null);
_.r([_.Y(),_.Q("design:type",String)],Mx.prototype,"subscribeKey",void 0);_.r([_.Y({selectorArgs:["subscribeKey"],selector:ZgA}),_.Q("design:type",Object)],Mx.prototype,"subscriptionStateEntity",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Mx.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.r([_.w("subscriptionStateEntity"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Mx.prototype,"subscribed",null);
_.r([_.w("subscribed","data.membershipButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Mx.prototype,"joinButtonOverrides",null);_.r([_.w("data.navigationEndpoint"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Mx.prototype,"channelNameTabIndex",null);_.r([_.w("data.navigationEndpoint"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Mx.prototype,"channelNameRole",null);
_.r([_.w("data.attributedTitle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Mx.prototype,"hasAttributedTitle",null);_.r([_.iA("joinButtonOverrides"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Mx.prototype,"updateJoinButtonOverrides",null);_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Mx.prototype,"onYtServiceRequestError",null);
_.r([_.P({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Mx);
var LY5=_.rD()(Mx,"ytd-video-owner-renderer",function(){if(xcg===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);xcg=L}L=xcg;return L},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.CY(_.p(function(L){var Z=L.data;var N;L=_.O(_.nh(!((N=_.G7("yt-mini-app-is-theater-mode-enabled"))==null||!N),void 0,"i2pjVd"));var S=L.next().value,u=L.next().value;N=_.O(_.nh(!1,void 0,"ga7V5c"));var T=N.next().value,W=N.next().value;_.m0(function(){var G=_.Gl(window,OVt,function(){W(VwQ())});
_.zs(function(){bn(G)})});
var V;N=(V=_.GR().resolve(_.gv(nt5)))!=null?V:function(){return _.g("div",null)};
_.TD("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){u(!0);_.gr("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.TD("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){u(!1);_.gr("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
V={};L={};var M={};return _.g("mini-app-play-page-renderer",{class:_.qg("miniAppPlayPageRendererHost",(V.miniAppPlayPageRendererHostDetailsView=function(){return!S()},V))},_.g("div",{class:_.qg("miniAppPlayPageRendererGameContainer",(L.miniAppPlayPageRendererGameContainerDetailsView=function(){return!S()},L))},_.g(_.bj,{data:function(){return Z().containerViewModel}},{miniAppContainerViewModel:J0Q}),_.g(_.F,{cond:function(){return Z().channel&&Z().subscribeButton},
then:function(){var G={};return _.g("div",{class:_.qg("miniAppPlayPageRendererChannelContainer",(G.miniAppPlayPageRendererHideVisibility=function(){return T()},G))},_.g(_.bj,{data:function(){return Z().channel}},{videoOwnerRenderer:function(D){return _.g(LY5,{data:D.data})}}),_.g(_.bj,{data:function(){return Z().subscribeButton}},{subscribeButtonViewModel:function(D){return _.g(_.Jl,{data:D.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.g(_.F,{cond:function(){return!S()&&Z().description},
then:function(){var G={};return _.g("div",{class:_.qg("miniAppPlayPageRendererMiniAppDescriptionWrapper",(G.miniAppPlayPageRendererHideVisibility=function(){return T()},G))},_.g("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return Z().description}))}})),_.g("div",{class:_.qg("miniAppPlayPageRendererPlayNextContainer",(M.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!S()},M.miniAppPlayPageRendererHideVisibility=function(){return T()},M))},_.g(_.bj,{data:function(){return Z().sectionList}},
{sectionListRenderer:N})))},"dg"),"mini-app-play-page-renderer",{props:{data:_.LK}});var gQ=function(){var L=_.e.apply(this,arguments)||this;L.isSearch=!1;L.isConstrainedList=!1;L.hasChipsBar=!1;L.inReplyPanel=!1;L.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"}};L.monitorScroll=!0;L.SCROLL_ANIMATION_DURATION_MS=300;L.nextContinuation={continuationType:"sectionListContinuation"};return L};
_.f(gQ,_.e);_.t=gQ.prototype;
_.t.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(L){switch(L.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:_.c("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.c("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.t.created=function(){var L=this;this.JSC$17186_scrollAnimation=new _.SH(function(Z){L.hostElement.scrollTop=Z})};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.t.getItemsPath=function(){return"data.contents"};
_.t.replacePrimaryContent=function(L){this.set("data.contents",L)};
_.t.computeHasSortFilter=function(L){return!!L&&!!L.sortFilterSubMenuRenderer};
_.t.computeShouldScrollInPanel=function(L){var Z;return!!(L==null?0:(Z=L.scrollPaneStyle)==null?0:Z.scrollable)};
_.t.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Az(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.t.scrollToTop=function(){this.hostElement.scrollTop=0};
_.t.scrollToItemSection=function(L){if(L=this.getItemByIdentifier(L))L=this.getScrollPositionForItem(L),this.hostElement.scrollTop!==L&&this.JSC$17186_scrollAnimation.start(this.hostElement.scrollTop,L,this.SCROLL_ANIMATION_DURATION_MS)};
_.t.getItemByIdentifier=function(L){var Z=this.contents.querySelectorAll("ytd-item-section-renderer");if(Z&&Z.length!==0){var N=Array.from(Z).findIndex(function(S){return S.sectionIdentifier===L});
return Z[N===-1?0:N]}};
_.t.getScrollPositionForItem=function(L){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===L)return 0;L=_.Cx(L).y+this.hostElement.scrollTop-_.Cx(this.hostElement).y;return Math.min(L,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.gd.Object.defineProperties(gQ.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.targetId)==="browse-feedFEclips"}}});
gQ.prototype.onScroll=gQ.prototype.onScroll;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],gQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.bz.YtLazyListBehavior),_.Q("design:type",Object)],gQ.prototype,"ytLazyListBehavior",void 0);_.r([_.y(_.i_.YtNextContinuationBehavior),_.Q("design:type",Object)],gQ.prototype,"ytNextContinuationBehavior",void 0);
_.r([_.y(_.plc),_.Q("design:type",Object)],gQ.prototype,"ytBooleanLogicBehavior",void 0);_.r([_.y(_.Sq),_.Q("design:type",Object)],gQ.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],gQ.prototype,"data",void 0);_.r([_.Y({value:2}),_.Q("design:type",Number)],gQ.prototype,"initialCount",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],gQ.prototype,"autoFill",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.Q("design:type",Boolean)],gQ.prototype,"hasSortFilter",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.Q("design:type",Boolean)],gQ.prototype,"hideBottomSeparator",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.Q("design:type",Boolean)],gQ.prototype,"shouldScrollInPanel",void 0);
_.r([_.Y(),_.Q("design:type",Object)],gQ.prototype,"isSearch",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],gQ.prototype,"isConstrainedList",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],gQ.prototype,"responsiveSizing",void 0);_.r([_.Y(),_.Q("design:type",Object)],gQ.prototype,"hasChipsBar",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],gQ.prototype,"pageSubtype",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],gQ.prototype,"engagementPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],gQ.prototype,"liveChatEngagementPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],gQ.prototype,"inReplyPanel",void 0);_.r([_.TX("#action-button"),_.Q("design:type",HTMLElement)],gQ.prototype,"actionButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],gQ.prototype,"scrollUpButtonData",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],gQ.prototype,"engagementPanelDropdown",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],gQ.prototype,"engagementPanelDialog",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],gQ.prototype,"isClipList",null);_.r([_.TX("#contents"),_.Q("design:type",HTMLElement)],gQ.prototype,"monitorScrollElement",void 0);_.r([_.TX("#contents"),_.Q("design:type",HTMLElement)],gQ.prototype,"contents",void 0);
_.r([_.SA("scroll"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gQ.prototype,"onScroll",null);_.r([_.P({is:"ytd-section-list-renderer",disableElementRegistration:!0})],gQ);
var ZGw=_.rD()(gQ,"ytd-section-list-renderer",function(){if(cxv===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);cxv=L}L=cxv;return L},{mode:1});var Nws;var Sns;var iGs;var ut5;var GZ=function(){return _.e.apply(this,arguments)||this};
_.f(GZ,_.e);GZ.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
GZ.prototype.onLikeButtonClick=function(L){L.stopPropagation();L.preventDefault()};
_.gd.Object.defineProperties(GZ.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.data)!=null&&L.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)})}}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],GZ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],GZ.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],GZ.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],GZ.prototype,"ytRendererStamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],GZ.prototype,"data",void 0);
_.r([_.Y({selectorArgs:["data.likeStatusEntityKey"],selector:fV}),_.Q("design:type",Object)],GZ.prototype,"likeStatusEntity",void 0);_.r([_.w("data","likeStatusEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],GZ.prototype,"likeButtonRenderer",null);_.r([_.P({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],GZ);
_.m(GZ,"ytd-slim-metadata-toggle-button-renderer",function(){if(ut5!==void 0)return ut5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
return ut5=L},{mode:1});var Fj=function(){var L=_.e.apply(this,arguments)||this;L.minimizePipBreakages=_.c("web_pip_minimize_breakages");L.showEqualizer=_.c("web_enable_playlist_video_lockup_equalizer");L.watchColorUpdate=_.c("kevlar_watch_color_update");L.actionMap={};return L};
_.f(Fj,_.e);_.t=Fj.prototype;_.t.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.t.computeEditableClass=function(L){return L&&L.menu?"editable":""};
_.t.computeSelected=function(L){return!(L==null||!L.selected)};
_.t.computeUseColorPalette=function(L){return!!((L==null?0:L.lightColorPalette)&&(L==null?0:L.darkColorPalette))};
_.t.computeLargerPlaylistThumbs=function(L,Z){return _.c("web_enable_playlist_bigger_thumbnails")&&!Z};
_.t.computeShowPlayIcon=function(L){return!!L&&_.c("web_use_play_icon_for_playlist_panel_video_renderer")};
_.t.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.t.onYtServiceRequestSent=function(L,Z){Z.endpoint&&this.isHideEnclosingAction(Z.endpoint)&&!this.selected&&KEh(_.te(),this.data.videoId)};
_.t.isHideEnclosingAction=function(L){var Z=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",L);L=this.get("likeEndpoint.status",L)==="INDIFFERENT";return Z||L};
_.t.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.t.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.gd.Object.defineProperties(Fj.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.c("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.c("enable_web_delhi_icons")?"play":"play_arrow"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var L;return!!(this.withinMiniplayer&&((L=this.data)==null?0:L.actionButtons))}}});
Fj.prototype.onYtServiceRequestSent=Fj.prototype.onYtServiceRequestSent;Fj.prototype.canReorderChanged=Fj.prototype.canReorderChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Fj.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.Lb),_.Q("design:type",Object)],Fj.prototype,"ytdLockupBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Fj.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Fj.prototype,"withinMiniplayer",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Fj.prototype,"minimizePipBreakages",void 0);_.r([_.Y({computed:"computeSelected(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Fj.prototype,"selected",void 0);
_.r([_.Y({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Fj.prototype,"useColorPalette",void 0);_.r([_.Y({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Fj.prototype,"largerPlaylistThumbs",void 0);_.r([_.Y(),_.Q("design:type",Object)],Fj.prototype,"showEqualizer",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Fj.prototype,"canReorder",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Fj.prototype,"touchPersistentDragHandle",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Fj.prototype,"handleIsHovered",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Fj.prototype,"watchColorUpdate",void 0);_.r([_.Y(),_.Q("design:type",String),_.Q("design:paramtypes",[])],Fj.prototype,"reorderIcon",null);
_.r([_.Y({computed:"computeShowPlayIcon(selected)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Fj.prototype,"showPlayIcon",void 0);_.r([_.Y(),_.Q("design:type",String),_.Q("design:paramtypes",[])],Fj.prototype,"playIcon",null);_.r([_.w("largerPlaylistThumbs"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Fj.prototype,"thumbnailWidth",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Fj.prototype,"showActionButtons",null);
_.r([_.Vr("canReorder"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Fj.prototype,"canReorderChanged",null);_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],Fj.prototype,"onYtServiceRequestSent",null);_.r([_.P({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Fj);
_.m(Fj,"ytd-playlist-panel-video-renderer",function(){if(iGs!==void 0)return iGs;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[showPlayIcon]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return iGs=L},{mode:2});var $Y=function(){return _.e.apply(this,arguments)||this};
_.f($Y,_.e);$Y.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],$Y.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],$Y.prototype,"data",void 0);_.r([_.P({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],$Y);
_.m($Y,"ytd-playlist-panel-supported-items",function(){if(Sns!==void 0)return Sns;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Sns=
L},{mode:1});MCV=!0;xQY("\\P{N}");var Nkh;var Twc=_.iB("END_OF_PLAYLIST",void 0,"End of playlist"),tny=_.iB("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),DJ=function(){var L=_.e.apply(this,arguments)||this;L.minimizePipBreakages=_.c("web_pip_minimize_breakages");L.hideHeaderText=!1;L.useColorPalette=!1;L.collapsed=!1;L.collapsedPreServerOverride="not_tracked";L.isHovered=!1;L.modernPanels=_.c("kevlar_watch_modern_panels");L.expandLabel=_.iB("MINIPLAYER_EXPAND_LABEL");L.collapseLabel=_.iB("MINIPLAYER_COLLAPSE_LABEL");
L.isFloating=!1;L.metaPanel=!1;L.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};L.currentIndex=void 0;return L};
_.f(DJ,_.e);_.t=DJ.prototype;
_.t.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"}}}};
_.t.created=function(){var L=this;this.scrollThrottle=new _.Sw(this.onThrottledScroll,1E3,this);this.JSC$17205_ytReorderableController=new _.BWq(56,function(Z){L.handleDrop(Z)})};
_.t.onMouseEnter=function(){this.isHovered=!0};
_.t.onMouseLeave=function(){this.isHovered=!1};
_.t.computeOverflowMenuData=function(L){return L&&L.menu?L.menu:null};
_.t.computeCollapsible=function(L){return!L};
_.t.computeHasPlaylistButtons=function(L){return!(!L||!L.playlistButtons)};
_.t.computeHasSeparateSaveButton=function(L){return!(!L||!L.saveButton)};
_.t.computeHasToolbarButton=function(L,Z){return!(!L||!(Z||L.saveButton||L.menu))};
_.t.computePlaylistType=function(L){if(L&&L.playlistId)return L.playlistId.substring(0,4)};
_.t.computeCanReorder=function(L){return L?L.playlistId&&L.playlistId.startsWith("TLPQ")?!0:!!L.isEditable&&!L.isInfinite:!1};
_.t.attached=function(){var L=this;try{_.GR().resolve(_.Nv).setPlaylistComponent(this.hostElement)}catch(Z){if(_.c("kevlar_park_on_playlist_token_killswitch"))throw Z;_.ih().parkOrScheduleJob(function(){_.GR().resolve(_.Nv).setPlaylistComponent(L.hostElement)},2,"ci")}_.Cv(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.t.detached=function(){_.r0(this.hostElement);_.wX(this.JSC$17205_ytReorderableController)};
_.t.computeTrailingIcon=function(L,Z,N){return N?Z?"yt-icons:collapse":"yt-icons:close":Z?"yt-icons:expand":_.c("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.t.computeIndexMessage=function(L,Z){return unf(L+1)+" / "+unf(Z)};
_.t.onRenderStamperFinished=function(){if(this.scrollForStampDom){var L=!0;this.isHovered&&(L=!1);if(this.collapsed||this.hidden)L=!1;L&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.t.collapseChanged=function(){var L=this;this.collapsed||(_.SW(this.ytTaskEmitterBehavior.getTaskManager(),function(){L.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.t.hiddenChanged=function(){var L=this;this.hidden||_.SW(this.ytTaskEmitterBehavior.getTaskManager(),function(){L.scrollToCurrentVideo()})};
_.t.setupReordering=function(){var L=_.QJ(this.hostElement).querySelector("#items");ybY?_.xsh(this.JSC$17205_ytReorderableController,L,L,"playlist-drag-handle"):_.xsh(this.JSC$17205_ytReorderableController,L,L)};
_.t.scrollToCurrentVideo=function(){var L=this;_.ro.addJob(function(){var Z=_.QJ(L.hostElement).querySelector("#items");if(Z){Z.style.setProperty("padding-bottom","");var N=_.QJ(L.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(N){Z=N.parentElement||_.yN(document);var S=Z||_.yN(document);var u=_.Cx(N),T=_.Cx(S),W=_.PGt(S);if(S==_.yN(document)){var V=u.x-S.scrollLeft;u=u.y-S.scrollTop}else V=u.x-T.x-W.left,u=u.y-T.y-W.top;N=h2M(N);T=S.clientHeight-
N.height;W=S.scrollLeft;var M=S.scrollTop;W+=V-(S.clientWidth-N.width)/2;S=new _.zF(W,M+(u-T/2));Z.scrollLeft=S.x;Z.scrollTop=S.y}}},8)};
_.t.dataChanged=function(){var L=this;_.wX(this.JSC$17205_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.bN(this,function(){_.sI(L.ytTaskEmitterBehavior.getTaskManager(),function(){L.ytRendererBehavior.markDirty();L.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.t.onFullBleedPlayerChanged=function(){_.c("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.t.onFullscreenChanged=function(){_.c("web_watch_imax_theater_mode")||_.c("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.t.updateNowPlayingOverlay=function(){_.c("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.t.onPlaylistLockupNowPlaying=function(L,Z){Z&&(this.activeNowPlayingRenderer=Z);this.updateNowPlayingOverlay()};
_.t.onScroll=function(){this.scrollThrottle.fire()};
_.t.onThrottledScroll=function(){var L=this;_.sI(this.ytTaskEmitterBehavior.getTaskManager(),function(){L.ytRendererBehavior.markDirty()})};
_.t.onToggleExpanded=function(L){!this.collapsible||L&&(_.jD(L).tagName==="A"||_.PQ(_.sx(L),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.t.setCollapsed=function(L){this.collapsible&&(this.collapsed=L,_.Ad(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.t.handleCollapsedFromData=function(L){if(L){var Z=L.playlistPanelCollapseState;Z==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||Z==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),Z=Z==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==Z&&this.setCollapsed(Z)):this.currentPlaylistId!==L.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(Z=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==Z&&this.setCollapsed(Z),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=L.playlistId}};
_.t.handleDrop=function(L){var Z=L.currDragItem;L=Z.data.playlistSetVideoId;var N=_.EG(Z.parentNode.childNodes,Z),S=void 0;N>0&&(S=Z.parentNode.childNodes[N-1].data.playlistSetVideoId);Z=_.te();if(Z.responsePlaylistData&&Z.responsePlaylistData.contents){var u=xoh(L,Z.responsePlaylistData);Z.responsePlaylistData=(0,_.Py.unsafeClone)(Z.responsePlaylistData);Et_(Z.responsePlaylistData.contents,u,N);Z.queueProxy?LE5(Z.queueProxy,u,N,L,S):Z.playlistProxy&&LE5(Z.playlistProxy,u,N,L,S);_.OO(Z,_.W3(Z,Z.response?
Z.response.autoplayRenderer:void 0))}};
_.t.handleDarkModeChange=function(L){L!==this.isDarkTheme&&(this.isDarkTheme=L)};
_.t.colorPaletteChanged=function(){var L,Z=((L=this.data)==null?void 0:L.contents)||[],N;L=_.O(Z);for(Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var S=void 0;if((S=Z.playlistPanelVideoRenderer)==null?0:S.selected){L=Z.playlistPanelVideoRenderer;S=Z=void 0;(N=this.isDarkTheme?(Z=L)==null?void 0:Z.darkColorPalette:(S=L)==null?void 0:S.lightColorPalette)&&_.$0(this.hostElement,N);break}}this.useColorPalette=!!N};
_.gd.Object.defineProperties(DJ.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.moveThreeDotsMenuToMainHeader)&&_.c("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var L=_.GR().resolve(_.gv(_.Nv)),Z;if(((Z=this.data)==null?0:Z.contents)&&(L==null?0:L.hasAutoplayData())){var N;if(((N=this.playlistLoopStateEntity)==null?void 0:N.state)==="PLAYLIST_LOOP_STATE_ONE"){if(L=this.data.currentIndex,L!==void 0){var S,u;var T=(S=this.data.contents[L])==null?void 0:(u=S.playlistPanelVideoRenderer)==null?void 0:u.title}}else{var W,V=(W=_.n(L.getAutoplayEndpoint(),_.so))==null?void 0:W.videoId,M,G;T=(M=this.data.contents.find(function(D){var l;
return((l=D.playlistPanelVideoRenderer)==null?void 0:l.videoId)===V}))==null?void 0:(G=M.playlistPanelVideoRenderer)==null?void 0:G.title}return T}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)!=null&&L.nextVideoLabel?this.nextVideoTitle?_.jM(this.data.nextVideoLabel)+":":Twc:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var L;if(((L=this.data)==null?0:L.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.c("web_mix_long_byline_from_data"))return _.s9(tny);var Z;return(Z=this.data)==null?void 0:Z.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S=(L=this.data)==null?void 0:(Z=L.playlistButtons)==null?void 0:(N=Z.menuRenderer)==null?void 0:N.topLevelButtons;if(S)for(L=_.O(S),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.playlistLoopButtonRenderer)return Z.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var L;return!!(this.collapsed&&((L=this.data)==null?0:L.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.c("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
DJ.prototype.colorPaletteChanged=DJ.prototype.colorPaletteChanged;DJ.prototype.onPlaylistLockupNowPlaying=DJ.prototype.onPlaylistLockupNowPlaying;DJ.prototype.updateNowPlayingOverlay=DJ.prototype.updateNowPlayingOverlay;DJ.prototype.onFullscreenChanged=DJ.prototype.onFullscreenChanged;DJ.prototype.onFullBleedPlayerChanged=DJ.prototype.onFullBleedPlayerChanged;DJ.prototype.dataChanged=DJ.prototype.dataChanged;DJ.prototype.hiddenChanged=DJ.prototype.hiddenChanged;DJ.prototype.collapseChanged=DJ.prototype.collapseChanged;
DJ.prototype.onRenderStamperFinished=DJ.prototype.onRenderStamperFinished;DJ.prototype.onMouseLeave=DJ.prototype.onMouseLeave;DJ.prototype.onMouseEnter=DJ.prototype.onMouseEnter;_.r([_.y(_.Eb),_.Q("design:type",Object)],DJ.prototype,"ironResizableBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(nmh.YtPlaylistPanelBehavior),_.Q("design:type",Object)],DJ.prototype,"ytPlaylistPanelBehavior",void 0);_.r([_.y(_.uM.YtTaskEmitterBehavior),_.Q("design:type",Object)],DJ.prototype,"ytTaskEmitterBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],DJ.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],DJ.prototype,"ytdReduxBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],DJ.prototype,"actionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],DJ.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],DJ.prototype,"autoplayData",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],DJ.prototype,"withinMiniplayer",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DJ.prototype,"minimizePipBreakages",void 0);
_.r([_.Y({computed:"setMenuData_(data)"}),_.Q("design:type",Object)],DJ.prototype,"menuRendererData",void 0);_.r([_.Y({computed:"computeOverflowMenuData(data)"}),_.Q("design:type",Object)],DJ.prototype,"overflowMenuDataTopRow",void 0);_.r([_.Y({computed:"computeOverflowMenuData(data)"}),_.Q("design:type",Object)],DJ.prototype,"overflowMenuData",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DJ.prototype,"hideHeaderText",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DJ.prototype,"useColorPalette",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.Q("design:type",Boolean)],DJ.prototype,"collapsible",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DJ.prototype,"collapsed",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],DJ.prototype,"hidden",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.Q("design:type",Boolean)],DJ.prototype,"hasPlaylistButtons",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.Q("design:type",Boolean)],DJ.prototype,"hasSeparateSaveButton",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.Q("design:type",Boolean)],DJ.prototype,"hasToolbar",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.Q("design:type",String)],DJ.prototype,"playlistType",void 0);_.r([_.Y(),_.Q("design:type",Object)],DJ.prototype,"isHovered",void 0);_.r([_.Y({selectorArgs:["playlistLoopStateEntityKey"],selector:_.hy.playlistLoopStateEntitySelector}),_.Q("design:type",Object)],DJ.prototype,"playlistLoopStateEntity",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DJ.prototype,"modernPanels",void 0);
_.r([_.Y({computed:"computeCanReorder(data)"}),_.Q("design:type",Boolean)],DJ.prototype,"canReorder",void 0);_.r([_.Y(),_.Q("design:type",Object)],DJ.prototype,"expandLabel",void 0);_.r([_.Y(),_.Q("design:type",Object)],DJ.prototype,"collapseLabel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DJ.prototype,"isFloating",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DJ.prototype,"metaPanel",void 0);
_.r([_.Y({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.Q("design:type",String)],DJ.prototype,"trailingIcon",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],DJ.prototype,"isDarkTheme",void 0);_.r([_.Y({selector:_.Ri}),_.Q("design:type",Boolean)],DJ.prototype,"miniplayerIsActive",void 0);_.r([_.Y({selector:function(L){return L.watch.playerState}}),
_.Q("design:type",Number)],DJ.prototype,"playerState",void 0);_.r([_.Y({selector:_.nV}),_.Q("design:type",Boolean)],DJ.prototype,"isFullscreen",void 0);_.r([_.Y({selector:_.cQ}),_.Q("design:type",Boolean)],DJ.prototype,"isTheaterMode",void 0);_.r([_.Y(),_.Q("design:type",Object)],DJ.prototype,"activeNowPlayingRenderer",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],DJ.prototype,"moveThreeDotMenuToTopRow",null);
_.r([_.w("data","autoplayData","playlistLoopStateEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DJ.prototype,"nextVideoTitle",null);_.r([_.w("data","nextVideoTitle"),_.Q("design:type",String),_.Q("design:paramtypes",[])],DJ.prototype,"nextVideoLabel",null);_.r([_.w("collapsed"),_.Q("design:type",String),_.Q("design:paramtypes",[])],DJ.prototype,"buttonAriaLabel",null);
_.r([_.w("data","playlistId","longBylineText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DJ.prototype,"mixLongByLine",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DJ.prototype,"playlistLoopStateEntityKey",null);_.r([_.SA("mouseenter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DJ.prototype,"onMouseEnter",null);
_.r([_.SA("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DJ.prototype,"onMouseLeave",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data","collapsed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],DJ.prototype,"showNextVideoHeader",null);_.r([_.SA("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DJ.prototype,"onRenderStamperFinished",null);
_.r([_.iA("collapsed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DJ.prototype,"collapseChanged",null);_.r([_.iA("hidden"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DJ.prototype,"hiddenChanged",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DJ.prototype,"dataChanged",null);
_.r([_.w("isTheaterMode","isFullscreen"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],DJ.prototype,"isFullBleedPlayer",null);_.r([_.iA("isTheaterMode","isFullscreen"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DJ.prototype,"onFullBleedPlayerChanged",null);_.r([_.iA("isFullscreen"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DJ.prototype,"onFullscreenChanged",null);
_.r([_.iA("playerState","miniplayerIsActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DJ.prototype,"updateNowPlayingOverlay",null);_.r([_.SA("yt-playlist-lockup-now-playing-active"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],DJ.prototype,"onPlaylistLockupNowPlaying",null);
_.r([_.iA("data","isDarkTheme"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DJ.prototype,"colorPaletteChanged",null);_.r([_.P({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],DJ);
_.OGq=_.rD()(DJ,"ytd-playlist-panel-renderer",function(){if(Nws===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);Nws=L}L=Nws;return L},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var WYm;var lZ=function(){var L=_.e.apply(this,arguments)||this;L.modern=_.c("web_button_rework");return L};
_.f(lZ,_.e);lZ.prototype.computeShouldButtonBeVertical=function(L,Z){return L||Z};
lZ.prototype.onYtServiceRequestSent=function(L,Z){(L=_.n(Z.endpoint,_.fm))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Mr("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:L.status})):this.handleLikeEndpoint(L))};
lZ.prototype.computelikeStatusEntityKey=function(L){return L==null?void 0:L.likeStatusEntityKey};
lZ.prototype.handleLikeEndpoint=function(L){L.status==="LIKE"?this.JSC$17212_ytdDislikeToggleButtonRenderer.toggle(!1):L.status==="DISLIKE"?this.JSC$17212_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17212_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17212_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.gd.Object.defineProperties(lZ.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var L;return Wow(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(L=this.likeStatusEntity)==null?void 0:L.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var L;if(this.data&&((L=this.data)==null||!L.hideDislikeButton)){var Z;return Wow(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(Z=this.likeStatusEntity)==null?void 0:Z.likeStatus)}}}});
lZ.prototype.onYtServiceRequestSent=lZ.prototype.onYtServiceRequestSent;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],lZ.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],lZ.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],lZ.prototype,"vertical",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],lZ.prototype,"textTransform",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],lZ.prototype,"useShortsIcon",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],lZ.prototype,"underIconLabel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],lZ.prototype,"modern",void 0);_.r([_.Y({value:"left"}),_.Q("design:type",String)],lZ.prototype,"buttonTooltipPosition",void 0);
_.r([_.Y(),_.Q("design:type",Object)],lZ.prototype,"overrides",void 0);_.r([_.TX("#like-button"),_.Q("design:type",Object)],lZ.prototype,"JSC$17212_ytdLikeToggleButtonRenderer",void 0);_.r([_.TX("#dislike-button"),_.Q("design:type",Object)],lZ.prototype,"JSC$17212_ytdDislikeToggleButtonRenderer",void 0);_.r([_.w("data","likeStatusEntity.likeStatus","useShortsIcon"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],lZ.prototype,"likeButton",null);
_.r([_.w("data","likeStatusEntity.likeStatus","useShortsIcon"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],lZ.prototype,"dislikeButton",null);_.r([_.Y({computed:"computelikeStatusEntityKey(data)"}),_.Q("design:type",String)],lZ.prototype,"likeStatusEntityKey",void 0);_.r([_.Y({selectorArgs:["likeStatusEntityKey"],selector:fV}),_.Q("design:type",Object)],lZ.prototype,"likeStatusEntity",void 0);
_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],lZ.prototype,"onYtServiceRequestSent",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],lZ);
var Vnc=_.rD()(lZ,"ytd-like-button-renderer",function(){if(WYm===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);WYm=L}L=WYm;return L},{mode:1});_.bGQ={};
_.bGQ.YtConditionalRendererBehavior=[_.B.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(L,Z){var N=this,S,u;return _.b(function(T){switch(T.nextAddress){case 1:if(!Z)return N.hidden=!0,N.showSpinner=!1,T.return();if((S=L)==null?0:(u=S.visibilityCondition)==null?0:u.mode)switch(L.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return T.jumpTo(5);default:return T.jumpTo(6)}N.showSpinner=
!1;N.hidden=!0;return T.yield(N.shouldShow_(L),4);case 4:N.hidden=!T.yieldResult;T.jumpTo(0);break;case 5:return T.yield(N.shouldShow_(L),8);case 8:N.showSpinner=T.yieldResult;N.hidden=!1;T.jumpTo(0);break;case 6:return N.showSpinner=!1,T.yield(N.shouldShow_(L),9);case 9:N.hidden=!T.yieldResult,_.w7(T)}})},
shouldShow_:function(L){return L&&L.supportedDatas&&L.supportedDatas.rendererVisibilityConditionData&&L.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(L.supportedDatas.rendererVisibilityConditionData.showIf):L&&L.visibilityCondition&&L.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(L.visibilityCondition.showIf):L&&L.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(L.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(L){switch(L){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(L){switch(L){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var L=_.XJ(this.hostElement,"yt-get-mdx-status");return L.length==1&&L[0].connected},
isLocationPermissionGranted_:function(){var L;return _.b(function(Z){return Z.nextAddress==1?navigator.permissions?Z.yield(navigator.permissions.query({name:"geolocation"}),3):Z.jumpTo(2):Z.nextAddress!=2?(L=Z.yieldResult,Z.return(Promise.resolve(L.state==="granted"))):Z.return(Promise.resolve(!1))})}}];var Mnm=JbH("yt-icon",{callbackProps:["onKeydown"]}),gVm=_.c("kevlar_use_wil_icons")?_.p(function(L){var Z=L.icon;var N=L.active;var S=L.className;var u=L.style;var T=L.size;var W=L.dataSelected;var V=L.dataDisabled;var M=L.role;var G=L.themeOverride;var D=L.animateIcon;var l=L.ariaHidden;var v=L.ariaExpanded;var R=L.ariaLabel;var K=L.tabindex;var U=L.id;var d=L.iconFilter;var h=L.gradientColor;var E=L.onKeydown;var A=function(){var X=Z==null?void 0:Z(),L1=null,Fw=void 0;X&&(X=qfM(X),X=Dxh(X),X.length&&
(L1=X[1],Fw=X[0]));return{iconName:L1,iconSetName:Fw}},J=function(){return L6Q(A().iconName,N==null?void 0:N(),void 0,T==null?void 0:T(),A().iconSetName,_.GR().resolve(_.xD))},C=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:d==null?void 0:d(),iconColor:h==null?void 0:h()}};
return _.g(_.F,{cond:D,then:function(){return _.g(Mnm,{icon:Z,active:N,className:S,style:u,dataSelected:W,dataDisabled:V,role:M,themeOverride:G,ariaHidden:l,ariaExpanded:v,ariaLabel:R,tabindex:K,id:U,iconFilter:d,gradientColor:h,onKeydown:E})},
else:function(){return _.g(_.F,{cond:J,then:function(X){return _.g("span",{class:_.qg("ytIconWrapperHost",S),role:M,"aria-label":R,"aria-hidden":l,tabindex:function(){return isNaN(Number(K==null?void 0:K()))?void 0:Number(K==null?void 0:K())},
id:U,style:u,"on:keydown":_.Z9(function(L1){return void(E==null?void 0:E(L1))})},_.g(pCB,{data:X,
options:C}))}})}})},"eg"):Mnm;var Giv=function(L){var Z=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];vN1();_.bp("ytglobal.ytUtilActivityCallback_",function(){_.Ad(L,"yt-user-activity")});
new gY(function(){return Z.JSC$17228_onMouseMove});
document.addEventListener("scroll",function(){return Z.onScroll});
window.addEventListener("resize",function(){return Z.onResize})},FYQ=function(L,Z,N){Z in L.eventJobIds||(N=_.DK().addLowPriorityJob(function(){_.GI();
delete L.eventJobIds[Z]},N),L.eventJobIds[Z]=N)};
Giv.prototype.onScroll=function(L){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):L.target===document&&FYQ(this,"scroll",200)};
Giv.prototype.onResize=function(){FYQ(this,"resize",200)};
Giv.prototype.JSC$17228_onMouseMove=function(){FYQ(this,"mousemove",100)};
_.Wo=function(L){L.scrollEventsToIgnore+=1;L.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){L.scrollEventsToIgnore--},500))};var $qY=function(L){this.element=L;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
$qY.prototype.showFeedbackDialog=function(L,Z,N,S){var u=DqQ();if(!u)return!1;var T=oiH();T.productId=u;Z&&(T.flow="submit",T.report={description:Z});N&&(DqQ()==="59"?T.callback=_.B8(function(){_.mS("userFeedbackEvent",{});N()}):T.callback=_.B8(N));
T.bucket=S||_.X7("GOOGLE_FEEDBACK_BUCKET","Other");lMY(T);L=vV5(this,"GFEEDBACK",L);try{_.V5h(T,L)}catch(W){return _.H8(W),!1}return!0};
$qY.prototype.showHelpDialog=function(L,Z,N){var S=this,u=DqQ();if(!u)return!1;var T={helpCenterPath:"/youtube",productData:vV5(this,"GUIDED_HELP",N)};lMY(T);var W=oiH();W.context=L||T.productData.context||"default";W.defaultHelpArticleId=Z;W.enableSendFeedback=!0;(_.LZ("gapi.load")||function(V,M){return M()})("client",function(){try{var V=GTM(u,T);
if(_.c("web_always_load_chat_support")&&!S.chatSupportLoaded)try{V.JSC$9974_loadChatSupport(W),S.chatSupportLoaded=!0}catch(M){}V.startHelp(W)}catch(M){_.H8(M)}})};
var DqQ=function(){var L=_.X7("GOOGLE_FEEDBACK_PRODUCT_ID");L||_.H8(Error("gi"));return L},lMY=function(L){L&&(L.locale=_.c("kevlar_help_use_locale")?_.X7("INNERTUBE_CONTEXT_HL","en"):_.X7("HTML_LANG","en"))},vV5=function(L,Z,N){var S=L.productData;
delete S.origin;S.device=_.vs();var u;a:{if(u=document.createElement("canvas")){var T=u.getContext("experimental-webgl",{stencil:!0});if(T){var W=T.getExtension("WEBGL_debug_renderer_info");if(W){u=T.getParameter(W.UNMASKED_RENDERER_WEBGL);break a}}if(T=u.getContext("webgl")){u=T.getParameter(T.RENDERER);break a}}u=null}S.gpu=u;S.isSDC=!!_.X7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(u=_.X7("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Py.extend(S,u);_.lgB(Z,S);_.viP(S);(L=_.Ad(L.element,"yt-get-autonav-pause-debug-state"))&&
L.length&&(S.autonav_pause_state=L[0]);L=_.UN();S.browser_resolution=L.width+"\u00d7"+L.height+"@"+(window.devicePixelRatio||1)+"x";N&&_.Py.extend(S,N);return S};
$qY.prototype.resetProductData=function(){this.productData={}};var oV5=function(L){this.feedbackManager=new $qY(L)};
oV5.prototype.showFeedbackDialog=function(L,Z,N,S){return this.feedbackManager.showFeedbackDialog(L,Z,N,S)};
oV5.prototype.showHelpDialog=function(L,Z,N){return this.feedbackManager.showHelpDialog(L,Z,N)};var RMg=function(){this.baseUrl="";this.aTag=document.createElement("a")},e8Y=function(L,Z,N){N=N===void 0?{}:N;
N.pbj||(N.pbj=1);N=_.SSw(Z,N);L.baseUrl&&N&&!_.Or(N)[1]&&!_.WW(N)&&(Z=L.baseUrl,OG(Z,"/")&&(Z=Z.slice(0,-1)),_.TB(N,"/")&&(N=N.slice(1)),N=Z+"/"+N);Q8(L.aTag,_.P6(N||""));return L.aTag.href};
RMg.prototype.fetchData=function(L){return _.MPG(L)};
RMg.prototype.postData=function(L,Z){var N={method:"POST"};if(Z){for(var S=_.O(Object.keys(Z)),u=S.next();!u.done;u=S.next()){u=u.value;var T=Z[u];_.Q_(T)&&(Z[u]=JSON.stringify(T))}N.postParams=Z}return _.MPG(L,N)};
_.I_Y=function(L,Z,N,S,u){L=e8Y(L,Z,N);if(!L)throw S=Error("hi"),Object.assign(S,{params:Z}),S;return _.MPG(L,u,S)};
RMg.prototype.requestDataForServiceEndpoint=function(L,Z){if(_.n(L,_.nyG))return this.fetchData("/getAccountSwitcherEndpoint");Z=Z||{};var N=_.n(L,$WN);N?Z.se=N.base64EncodedServiceEndpoint:Z.sej=JSON.stringify(L);(N=_.RH())&&_.c("enable_service_ajax_csn")&&(Z.csn=N);Z.theme=_.wr();_.n(L,RSF)&&_.X7("DELEGATION_CONTEXT")&&(Z.delegation_context=JSON.stringify(_.X7("DELEGATION_CONTEXT")));N=null;for(var S in L)if(OG(S,"Endpoint")||OG(S,"Command")){N=S;break}if(!N){var u=Error("ii");Object.assign(u,{params:L});
_.LKf(u,"WARNING");return new _.kE(function(W,V){V(u)})}S={name:N};
var T;(N=(T=_.n(L,_.ZW))==null?void 0:T.signal)&&(S.signal=N);(T=_.uQ(window.location.href))&&T.internalcountrycode&&(S.internalcountrycode=T.internalcountrycode);T="/service_ajax";_.c("debug_forward_web_query_parameters")&&(T=_.F2s(T,window.location.search));T=_.t3(T,S);L.clickTrackingParams&&_.pv(T,{itct:L.clickTrackingParams});return this.postData(T,Z)};_.cfQ=new _.iY("GFEEDBACK_TOKEN");var nVy;var KYq;var fMP;var kiv;var vZ=function(){var L=_.e.apply(this,arguments)||this;L.compact=!1;L.dismissButtonDisabled=!1;return L};
_.f(vZ,_.e);vZ.prototype.computeHasIcon_=function(L){return!!L};
vZ.prototype.isSignInIcon_=function(L){return L=="yt-icons:prompted_sign_in"};
vZ.prototype.onDismissButtonClick=function(){var L=this,Z=this.data.disableOnClick,N,S=(N=this.data.dismissButton)==null?void 0:N.buttonRenderer;Z&&!this.dismissButtonDisabled&&S&&setTimeout(function(){L.dismissButtonDisabled=!0},0)};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.bGQ.YtConditionalRendererBehavior),_.Q("design:type",Object)],vZ.prototype,"ytConditionalRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],vZ.prototype,"data",void 0);_.r([_.Y({computed:"computeIcon_(data.icon)"}),_.Q("design:type",Object)],vZ.prototype,"icon_",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.Q("design:type",Boolean)],vZ.prototype,"hasIcon_",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.Q("design:type",Boolean)],vZ.prototype,"signInIcon_",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],vZ.prototype,"compact",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],vZ.prototype,"dismissButtonDisabled",void 0);
_.r([_.ch({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],vZ);
_.m(vZ,"yt-player-error-message-renderer",function(){if(kiv===void 0){var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;fMP===void 0&&(fMP=document.createElement("template"));var S=fMP;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);kiv=L}L=kiv;return L},{mode:2});var yf8;var w68;var oz=function(){return _.e.apply(this,arguments)||this};
_.f(oz,_.e);oz.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
oz.prototype.computeIcon_=function(L){return L?"yt-icons:"+L.iconType.toLowerCase():"error_outline"};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],oz.prototype,"data",void 0);_.r([_.Y({computed:"computeIcon_(data.icon)"}),_.Q("design:type",Object)],oz.prototype,"icon_",void 0);_.r([_.ch({is:"yt-player-kav-renderer",disableElementRegistration:!0})],oz);
_.m(oz,"yt-player-kav-renderer",function(){if(w68===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;yf8===void 0&&(yf8=document.createElement("template"));var S=yf8;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);w68=L}L=w68;return L},{mode:2});var ni1=_.sc(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.CY(_.p(function(L){var Z=_.t2("div"),N=_.O(_.nh(0,void 0,"jxh75d")),S=N.next().value,u=N.next().value;N=_.O(_.nh(null,void 0,"F5Zm8"));var T=N.next().value,W=N.next().value;_.m0(function(){Kof(Z.value,u,W);Z.value.scrollIntoView()});
N=fgs.bind(null,L.data,S);_.GD("resize",function(){var V=T();if(S()===1&&V!==null){var M;(M=window.grecaptcha)==null||M.reset(V)}});
return _.g("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.g("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.g("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var V,M;return(V=L.data().accessibility)==null?void 0:(M=V.accessibilityData)==null?void 0:M.label}),_.g(_.qv,{text:N,
className:_.qg("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.g("div",{el:Z,class:"ytwPlayerCaptchaViewModelGridItem"})))},"fg"),"yt-player-captcha-view-model",{props:{data:_.zl}});var km_=!1;_.Uq0=_.p(function(L){var Z=L.data;return _.g("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.g(_.F,{cond:function(){return Z().icon},
then:function(N){return _.g("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.g(_.ji,{data:N,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.g(_.F,{cond:function(){return Z().title},
then:function(N){return _.g("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.g(_.qv,{text:N}))}}),_.g(_.F,{cond:function(){return Z().description},
then:function(N){return _.g("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.g(_.qv,{text:N}))}}),_.g(_.bj,{data:function(){return Z().primaryButton}},{buttonViewModel:function(N){return _.g(_.$X,{data:N.data,
className:"interstitialViewModelFlexItem"})}}),_.g(_.bj,{data:function(){return Z().secondaryButton}},{buttonViewModel:function(N){return _.g(_.$X,{data:N.data,
className:"interstitialViewModelFlexItem"})}}))},"gg");
_.Uq0.idomCompat=!0;var Ynv=_.p(function(L){var Z=L.data;_.Ui();return _.g("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.g("div",{class:"playerInterstitialRendererScrim"},_.g(_.bj,{data:function(){return Z().content}},{interstitialViewModel:_.Uq0})))},"hg");
Ynv.idomCompat=!0;_.CY(Ynv,"yt-player-interstitial-renderer",{props:{data:_.LK}});var Rz=function(){var L=_.e.apply(this,arguments)||this;L.noBackground=!1;L.compact=!1;L.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return L};
_.f(Rz,_.e);Rz.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"}}}};
Rz.prototype.onUpdatePlayerErrorMessageCommand_=function(L){if(_.n(L,UNh)){var Z;if(L=(Z=_.n(L,UNh))==null?void 0:Z.newPlayerErrorMessageRenderer)this.data=L}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Rz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Rz.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Rz.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Rz.prototype,"status",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Rz.prototype,"noBackground",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Rz.prototype,"compact",void 0);_.r([_.ch({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],Rz);
var eMy=_.rD()(Rz,"yt-playability-error-supported-renderers",function(){if(KYq===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;nVy===void 0&&(nVy=document.createElement("template"));var S=nVy;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);KYq=L}L=KYq;return L},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var IM5=JbH("ytd-button-renderer");var yD1=void 0,Uh_=void 0;var Ig0=new qrY;var Cm=new _.iY("ENTITY_STATE_TOKEN"),cZ=new _.iY("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var dq8=function(L){this.store=L;this.mio=new _.NoO},nOA=function(L,Z,N){var S,u;
if(!(u=((S=Z.playabilityStatus)==null?void 0:S.status)!=="OK")){L=L.store;var T;u=Z.offlineState&&((T=Z.videoDetails)==null?0:T.videoId)?_.c("enable_pl_r_c_cd")?Je0(L.getState().entities,Z.videoDetails.videoId):!!DN0(L.getState().entities,Z.videoDetails.videoId):!1}if(u)return!0;u=jGs(Z);if(u===1){if(_.c("ab_v_vid_sig")){var W,V=(W=Z.videoDetails)==null?void 0:W.videoId;if(!V||!N||V!==N){var M;Z=new _.sr("282054944_vid",{vBi:N,vJK:(M=Z.videoDetails)==null?void 0:M.videoId});_.CA(Z)}}return!0}aRh=
0;var G,D;M=(V=Z.auxiliaryUi)==null?void 0:(G=V.messageRenderers)==null?void 0:(D=G.bkaEnforcementMessageViewModel)==null?void 0:D.displayType;if(u!==3&&(M==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||M==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;M={reason:_.Cq(_.iB("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.c("ks_something_wrong_learn_more")?QEG("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Cq(_.iB("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:_.Cq("282054944")};aMY(Z,{playerErrorMessageRenderer:M});return!1},KTL=function(L,Z){if(xk1(Z)){_.NJ(1,!0);
var N=(N=xk1(Z))&&_.wYs()?N:void 0;N?(aMY(Z,{enforcementMessageViewModel:N}),L.mio.increment("IN_PLAYER"),_.NJ(5)):(L.mio.increment("SKIP_DISPLAY"),_.NJ(2))}},aMY=function(L,Z){L.playabilityStatus=Object.assign({},L.playabilityStatus,{status:"ERROR",
errorScreen:Z});L.videoDetails=void 0};
dq8.prototype.handleResponse=function(L,Z){if(L.playabilityStatus){var N,S,u,T=(Z==null?void 0:(N=Z.innerTubeRequest)==null?void 0:N.videoId)||(Z==null?void 0:(S=Z.innerTubeRequest)==null?void 0:(u=S.playerRequest)==null?void 0:u.videoId);nOA(this,L,T)&&KTL(this,L)}};
dq8[F2]=[Cm];var RO0=new _.iY("ADBLOCK_DETECTION_SERVICE_TOKEN");var d3=function(L){this.a3L=L};
d3.prototype.bindInnertubeChallengeFetcher=function(L){this.a3L.bicf(L)};
d3.prototype.registerChallengeFetchedCallback=function(L){this.a3L.bcr(L)};
d3.prototype.getLatestChallengeResponse=function(){return this.a3L.blc()};var hMc;hMc=_.sc(["https://static.doubleclick.net/instream/ad_status.js"]);_.s7y=_.vy(hMc);var p6v;_.nt=function(L,Z,N){var S=this;this.network=L;this.options=Z;this.networkStatusManager=N;this.uN=null;if(Z.useBotguardEverywhere){var u=new _.qe;this.uN=u.promise;_.iH.ytAtRC&&_.Gq(_.ro,function(){var T,W;return _.b(function(V){if(V.nextAddress==1){if(!_.iH.ytAtRC)return V.return();T=j7s(null);return V.yield(S.kj(T),2)}W=V.yieldResult;_.iH.ytAtRC&&_.iH.ytAtRC(JSON.stringify(W));_.w7(V)})});
mhG().then(function(T){var W,V,M,G;return _.b(function(D){if(D.nextAddress==1)return T.bindInnertubeChallengeFetcher(function(l){return S.kj(j7s(l))}),D.yield(CTG(),2);
W=D.yieldResult;V=T.getLatestChallengeResponse();M=V.challenge;if(!M)throw Error("ji");G={challenge:M,lF:IL(M),vm:W,bgChallenge:new Yo};u.resolve(G);T.registerChallengeFetchedCallback(function(l){l=l.challenge;if(!l)throw Error("ki");l={challenge:l,lF:IL(l),vm:W,bgChallenge:new Yo};S.uN=Promise.resolve(l)});
_.w7(D)})})}else Z.preload&&EVg(this,new Promise(function(T){_.sI(_.ro,function(){T(P9Y(S))},0)}))};
p6v=function(L){var Z={preload:!0,useBotguardEverywhere:!0},N=!1;if(typeof Z==="boolean")var S={preload:Z};else typeof Z==="undefined"?S={preload:!0}:(S=Z,N=!!Z.mbI);Z=N?void 0:new _.iR;_.nt.instance=new _.nt(L,S,Z);return _.nt.instance};
_.nt.prototype.gvs=function(){var L=this;return _.b(function(Z){return Z.nextAddress==1?Z.yield(Promise.race([L.uN,null]),2):Z.return(!!Z.yieldResult)})};
_.nt.prototype.uFB=function(L,Z,N){var S=this,u,T,W;return _.b(function(V){S.uN===null&&EVg(S,P9Y(S));u=!1;T={};W=function(){var M,G,D;return _.b(function(l){switch(l.nextAddress){case 1:return l.yield(S.uN,2);case 2:M=l.yieldResult;T.challenge=M.challenge;if(!M.vm){"c1a"in M.lF&&(T.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");l.jumpTo(3);break}G=Object.assign({},{c:M.challenge,e:L},Z);_.RS(l,4);u=!0;return l.yield(M.vm.snapshot({oL:G}),6);case 6:(D=l.yieldResult)?T.webResponse=D:T.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.SX(l,3);break;case 4:_.yd(l),T.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(L==="ENGAGEMENT_TYPE_PLAYBACK"){var v=M.lF,R={};if(v.c6a){var K=Number(_.X7("DCLKSTAT",0));R.reportingStatus=String(Number(v.c)^(isNaN(K)?0:K))}v.c6b&&(R.broadSpectrumDetectionResult=String(Number(v.c)^Number(_.X7("CATSTAT",0))));T.adblockReporting=R}return l.return(T)}})};
return V.return(Promise.race([W(),zM5(N,function(){var M=Object.assign({},T);u&&(M.error="ATTESTATION_ERROR_VM_TIMEOUT");return M})]))})};
var j7s=function(L){var Z={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};L&&(Z.interpreterHash=L);return Z},P9Y=function(L,Z){Z=Z===void 0?0:Z;
var N,S,u,T,W,V,M,G,D,l,v,R;return _.b(function(K){switch(K.nextAddress){case 1:N=j7s(SrM().buF);if(_.c("att_fet_ks"))return _.RS(K,7),K.yield(L.kj(N),9);_.RS(K,4);return K.yield(mq5(L,N),6);case 6:W=K.yieldResult;u=W.y2k;T=W.gdI;S=W;_.SX(K,3);break;case 4:return _.yd(K),_.Q7(Error("li`"+Z)),Jfg(L,864E5),K.return({challenge:"",lF:{},vm:void 0,bgChallenge:void 0});case 9:S=K.yieldResult;if(!S)throw Error("mi");if(!S.challenge)throw Error("ni");u=S.challenge;T=IL(u);if("c1a"in T&&(!S.bgChallenge||!S.bgChallenge.program))throw Error("oi");
_.SX(K,3);break;case 7:V=_.yd(K);_.Q7(V);Z++;if(Z>=5)return _.Q7(Error("li`"+Z)),Jfg(L,864E5),K.return({challenge:"",lF:{},vm:void 0,bgChallenge:void 0});M=1E3*Math.pow(2,Z-1)+Math.random()*1E3;return K.return(new Promise(function(U){_.sI(_.ro,function(){U(P9Y(L,Z))},M)}));
case 3:G=zIL(T);Jfg(L,G*1E3);D=void 0;if(!("c1a"in T&&S.bgChallenge)){K.jumpTo(10);break}l=pYs(S.bgChallenge);_.RS(K,11);return K.yield(u2l(SrM(),l),13);case 13:_.SX(K,12);break;case 11:return v=_.yd(K),_.Q7(v),K.return({challenge:u,lF:T,vm:D,bgChallenge:l});case 12:return _.RS(K,14),D=new _.s8({challenge:l,t77:{mh:"aGIf"}}),K.yield(D.mXG,16);case 16:_.SX(K,10);break;case 14:R=_.yd(K),_.Q7(R),D=void 0;case 10:return K.return({challenge:u,lF:T,vm:D,bgChallenge:l})}})};
_.nt.prototype.kj=function(L){var Z=this,N;return _.b(function(S){N=Z.networkStatusManager;if(!N||N.isNetworkAvailable())return S.return(Z.network.kj(L));_.fq("att_pna",void 0,"attestation_challenge_fetch");return S.return(new Promise(function(u){N.listenOnce("publicytnetworkstatus-online",function(){Z.network.kj(L).then(u)})}))})};
var C9q=function(L){if(!L)throw Error("mi");if(!L.challenge)throw Error("ni");var Z=L.challenge,N=IL(Z);if("c1a"in N&&(!L.bgChallenge||!L.bgChallenge.program))throw Error("oi");return Object.assign({},L,{y2k:Z,gdI:N})},mq5=function(L,Z){var N,S,u,T,W;
return _.b(function(V){switch(V.nextAddress){case 1:N=void 0,S=0,u={};case 2:if(!(S<5)){V.jumpTo(4);break}if(!(S>0)){V.jumpTo(5);break}u.fQP=1E3*Math.pow(2,S-1)+Math.random()*1E3;return V.yield(new Promise(function(M){return function(G){_.sI(_.ro,function(){G(void 0)},M.fQP)}}(u)),5);
case 5:return _.RS(V,7),V.yield(L.kj(Z),9);case 9:return T=V.yieldResult,V.return(C9q(T));case 7:N=W=_.yd(V),W instanceof Error&&_.Q7(W);case 8:S++;u={fQP:void 0};V.jumpTo(2);break;case 4:throw N;}})},EVg=function(L,Z){L.uN=Z},rfq=function(L){var Z,N,S;
return _.b(function(u){if(u.nextAddress==1)return u.yield(Promise.race([L.uN,null]),2);Z=u.yieldResult;var T=P9Y(L);L.uN=T;(N=Z)==null||(S=N.vm)==null||S.dispose();_.w7(u)})},Jfg=function(L,Z){var N=Date.now()+Z,S=function(){var u;
return _.b(function(T){u=N-Date.now();return u<1E3?T.yield(rfq(L),0):(_.sI(_.ro,S,Math.min(u,6E4)),T.jumpTo(0))})};
S()},zM5=function(L,Z){return new Promise(function(N){_.sI(_.ro,function(){N(Z())},L)})};var Q75=function(){};
Q75.prototype.processContext=function(L){var Z=_.nt.instance;if(!Z)return _.W$();var N=ADF(L);return N?new O$(Z.uFB(N,rDs(L),500).then(function(S){var u;(L==null?0:(u=L.innerTubeRequest)==null?0:u.context)||(L.innerTubeRequest.context={});u=L.innerTubeRequest.context;u.request||(u.request={});u.request.attestationResponseData=S})):_.W$()};var X6v=function(L){this.innertubeTransportService=L};
X6v.prototype.kj=function(L){_.fq("att_fsr",void 0,"attestation_challenge_fetch");return _.Za(this.innertubeTransportService,L,_.pk(_.hBM)).then(function(Z){_.fq("att_frr",void 0,"attestation_challenge_fetch");return Z})};_.Afk=function(L){this.innertubeTransportService=L};var HG8=new _.iY("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var BwQ=function(){},qn0=function(L,Z,N,S,u){var T=_.X7("YPC_MB_URL");
_.dF_(T).then(function(){xq0(T,L,Z,N,S,u)})},xq0=function(L,Z,N,S,u,T){try{var W=_.Pt.payments.business.integration,V=_.Pt.payments.business.integration.Style.create().withMaterialDesignStyle(),M=W.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.c("enable_window_constrained_buy_flow_dialog")&&(M=M.usingPopupStyle("windowConstrained"));T&&(M=M.usingCloseCallback(T));var G=N?N:_.X7("YPC_GB_LANGUAGE"),D=_.X7("SESSION_INDEX");W.bootstrap.fromPaymentsUrl(L);W.bootstrap.asMashupMode(M).usingGaiaIndex(D).usingLocale(G).usingStyle(V).usingDefaultActivityStatusChangeHandler().inStandaloneContext(W.standaloneContextAuthId.forGaia()).purchaseManager(Z,function(l){S&&S(l)}).load(void 0,u)}catch(l){throw u&&u(l),_.CA(l),l;
}};var Lww=new _.iY("PURCHASE_MANAGER_TOKEN");var Zsy=function(){var L=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return L.videos},
getContinuationsPresent:function(){return L.continuationsPresent},
setVideos:function(Z){L.videos=Z},
getRecommendedVideos:function(){return L.recommendedVideos},
setRecommendedVideos:function(Z){L.recommendedVideos=Z}}};
Zsy.prototype.addVideos=function(L){L&&(this.videos=L.filter(function(Z){return!!_.BkG(Z)}).map(function(Z){var N=_.BkG(Z);
a:{var S;if(Z.playlistVideoRenderer&&((S=Z.playlistVideoRenderer)==null?0:S.voteSortTiebreaker))var u=Z.playlistVideoRenderer.voteSortTiebreaker;else{if(_.n(Z,hZ)){var T;if(S=(u=_.n(Z,hZ))==null?void 0:(T=u.playlistItemData)==null?void 0:T.voteSortTiebreaker){u=S;break a}}u=""}}return{itemId:N,videoId:_.LvA(Z),voteCount:_.Z9h(Z),voteSortTiebreaker:u}}),this.continuationsPresent=!!_.n(L[L.length-1],_.Ei))};
var N7k=function(L,Z){return L.videos.findIndex(function(N){return N.itemId===Z})},S3P=function(L,Z){return L.recommendedVideos.findIndex(function(N){return N.itemId===Z})},isw=function(L){L={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:L}}}}};_.GR().resolve(_.$s).resolveCommand(L)};var ugv=function(){Zsy.apply(this,arguments)};
_.f(ugv,Zsy);
var frO=function(L,Z,N,S){if(!L.parentElem)throw Error("ti");var u=N7k(L,Z);u===-1&&(u=S3P(L,Z),u=u!==-1?u+L.videos.length:-1);if(u===-1)throw Error("ui");var T=u>=L.videos.length?L.recommendedVideos[u-L.videos.length]:L.videos[u];T.voteCount=N;T.voteSortTiebreaker=Date.now().toString();u>=L.videos.length?L.recommendedVideos.splice(u-L.videos.length,1):L.videos.splice(u,1);var W=L.videos;for(var V=0,M=W.length-1;V<=M;){var G=Math.floor((V+M)/2);if(W[G].voteCount<T.voteCount)M=G-1;else if(W[G].voteCount>T.voteCount)V=
G+1;else{a:{var D=T.voteSortTiebreaker;var l=W[G].voteSortTiebreaker;if(D.length!==l.length)D=D.length>l.length;else{for(var v=0;v<D.length;v++){var R=D.charCodeAt(v),K=l.charCodeAt(v);if(R>K){D=!0;break a}if(R<K)break}D=!1}}D?M=G-1:V=G+1}}W=V;if(W===-1)throw Error("vi");L.videos.splice(W,0,T);u!==W&&T7g(L,u,W,Z,N,S)},T7g=function(L,Z,N,S,u,T){var W,V=(W=L.parentElem)==null?void 0:W.children,M=Math.min(Z,N),G=Math.max(Z,N);
if(V)for(W=M;W<=G;W++)V[W].style.viewTransitionName="item-"+String(W);document.startViewTransition(function(){if(L.parentElem){var D=L.parentElem.children;if(!(!D||Z<0||Z>=D.length||N<0||N>=D.length)){var l=D[Z];if(l){l.remove();L.showRefreshPill=N>=L.videos.length-1&&L.continuationsPresent;if(!L.showRefreshPill){D=D[N]||null;var v;(v=L.parentElem)==null||v.insertBefore(l,D)}_.QT(L.parentElem,"yt-update-video-data-voting-animation",{toIdx:N,itemId:S,newVoteCount:u,voteStatus:T,hideItem:L.showRefreshPill})}}}}).finished.then(function(){if(V)for(var D=
M;D<=G;D++)V[D].style.viewTransitionName="";
if(L.showRefreshPill)isw(_.iB("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var l;if(l=D=(l=L.parentElem)==null?void 0:l.children[N])l=D.getBoundingClientRect(),D=l.bottom,l=!(l.top>=0&&D<=L.clientHeight);l&&(l=_.uB(Z>N?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(Z-N)),isw(l))}})};var WwP=function(L,Z){var N=this;L?this.innertubeTransportServicePromise=Promise.resolve(L):Z&&(this.innertubeTransportServicePromise=Z(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new t$(3E3,function(S){return tow(N,S)},0);
this.validateMiniAppVideoIdRateLimiter=new t$(3E3,function(S){return Os0(N,S)},1)},E5Y=function(L,Z){L.JSC$17340_miniAppId=Z;
L.reportMiniAppValueRateLimiter=new t$(3E3,function(N){return tow(L,N)},0);
L.validateMiniAppVideoIdRateLimiter=new t$(3E3,function(N){return Os0(L,N)},1)},pwQ=function(L,Z){var N;
return _.b(function(S){if(S.nextAddress==1)return S.yield(L.reportMiniAppValueRateLimiter.call(Z),2);N=S.yieldResult;return S.return([N,Z])})},tow=function(L,Z){var N,S,u,T,W,V,M;
return _.b(function(G){switch(G.nextAddress){case 1:return G.yield(L.innertubeTransportServicePromise,2);case 2:return N=G.yieldResult,S=_.pk(zcQ),u=Date.now(),T={externalPostId:L.JSC$17340_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(u/1E3),nanos:Math.round(u%1E3*1E6)},intValue:""+Z}},_.RS(G,3),G.yield(_.Za(N,T,S),5);case 5:W=G.yieldResult;_.SX(G,4);break;case 3:throw V=_.yd(G),V;case 4:if(W){if("error"in W&&W.error)throw W.error;if(W.errorMetadata)throw Error("wi`"+
W.errorMetadata.status);if(M=W.userStatResult)return G.return(M);throw Error("xi");}throw Error("yi");}})},mcy=function(L){var Z,N,S,u,T;
_.b(function(W){switch(W.nextAddress){case 1:return W.yield(L.innertubeTransportServicePromise,2);case 2:return Z=W.yieldResult,N=_.pk(zcQ),S={externalPostId:L.JSC$17340_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.RS(W,3),W.yield(_.Za(Z,S,N),5);case 5:u=W.yieldResult;_.SX(W,4);break;case 3:throw T=_.yd(W),T;case 4:if(u==null)throw Error("yi");if("error"in u&&u.error)throw u.error;if(u.errorMetadata)throw Error("wi`"+u.errorMetadata.status);_.w7(W)}})};
WwP.prototype.flush=function(){var L=this;return _.b(function(Z){return Z.nextAddress==1?Z.yield(L.reportMiniAppValueRateLimiter.flush(),2):Z.yield(L.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var zv5=function(L,Z){return _.b(function(N){return N.nextAddress==1?N.yield(L.validateMiniAppVideoIdRateLimiter.call(Z),2):N.return(N.yieldResult)})},Os0=function(L,Z){var N,S,u,T,W,V;
return _.b(function(M){switch(M.nextAddress){case 1:return M.yield(L.innertubeTransportServicePromise,2);case 2:return N=M.yieldResult,S=_.pk(dPt),u={videoId:Z},_.RS(M,3),M.yield(_.Za(N,u,S),5);case 5:T=M.yieldResult;_.SX(M,4);break;case 3:throw W=_.yd(M),W;case 4:if(T){if("error"in T&&T.error)throw T.error;if(T.errorMetadata)throw Error("wi`"+T.errorMetadata.status);if(V=T.playabilityStatus)return M.return(V.status);throw Error("zi");}throw Error("yi");}})};
WwP[F2]=[_.gv(_.bv),_.gv(FEl)];var Vok=function(){this.clientData=new Map};
Vok.prototype.getData=function(L){return this.clientData.get(L)};var bs8=function(L){this.store=L};
bs8.prototype.handleResponse=function(L){(L=_.n(L.frameworkUpdates,jw))&&_.u2(L,this.store)};
bs8[F2]=[_.mc];var Mov=new _.iY("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var gSv,GE5;_.Kt=new _.iY("FLOW_STATE_MANAGER_TOKEN");gSv=function(){this.flowStates=new Map};
GE5=function(L,Z){L=_.O(L.flowStates.values());for(var N=L.next();!N.done;N=L.next())if(N=N.value,N.flowRenderer.targetId===Z)return N};var FwY=function(L,Z){this.JSC$17365_reduxStore=L;this.JSC$17365_flowStateManager=Z};
_.f(FwY,q1);
FwY.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W,V,M,G,D,l,v,R,K;return _.b(function(U){N=_.n(L,_.XDI);S=N.stepId;u=N.targetId;T=GE5(Z.JSC$17365_flowStateManager,u);V=(W=T)==null?void 0:W.flowRenderer;M=V.flowStateEntityKey;G=_.si(Z.JSC$17365_reduxStore.getState(),M);if(!G)return U.return();D=G.currentStepId;R=(v=(l=G)==null?void 0:l.stepIdStack)!=null?v:[];K=D===R[R.length-1]?S:D;Z.JSC$17365_reduxStore.dispatch(_.vt("flowStateEntity",M,{currentStepId:S,stepIdStack:[K]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.w7(U)})};
var $Zv=function(){FwY.apply(this,arguments)};
_.f($Zv,FwY);$Zv[F2]=[_.mc,_.Kt];var DZQ=function(L,Z,N){this.JSC$17372_reduxStore=L;this.JSC$17372_flowStateManager=Z;this.JSC$17372_commandHandler=N};
_.f(DZQ,q1);
DZQ.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V,M,G,D,l,v,R,K,U;return _.b(function(d){S=_.n(L,_.Awt);u=S.targetId;T=GE5(N.JSC$17372_flowStateManager,u);V=(W=T)==null?void 0:W.flowRenderer;M=V.flowStateEntityKey;G=_.si(N.JSC$17372_reduxStore.getState(),M);v=[].concat(_.Pd((l=(D=G)==null?void 0:D.stepIdStack)!=null?l:[]));R=v.pop();((K=G)==null?void 0:K.currentStepId)===R&&(R=v[v.length-1]);if(!R)return(U=S.onFirstStepCommand)&&N.JSC$17372_commandHandler.resolveCommand(U,Z),d.return();
N.JSC$17372_reduxStore.dispatch(_.vt("flowStateEntity",M,{currentStepId:R,stepIdStack:v}));_.w7(d)})};
var lS0=function(){DZQ.apply(this,arguments)};
_.f(lS0,DZQ);lS0[F2]=[_.mc,_.Kt,_.$s];var vS8=function(L,Z){this.innertubeTransportService=L;this.JSC$17377_commandHandler=Z};
_.f(vS8,q1);vS8.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V;return _.b(function(M){if(M.nextAddress==1){S=_.n(L,HO5);if(!S)return M.return();_.RS(M,2);return M.yield(_.aV(N.innertubeTransportService,L),4)}if(M.nextAddress!=2){u=M.yieldResult;if(!u)return M.return();(T=u.updateFlowCommand)&&N.JSC$17377_commandHandler.resolveCommand(T,Z);return _.SX(M,0)}_.yd(M);(V=(W=S)==null?void 0:W.onFailureCommand)&&N.JSC$17377_commandHandler.resolveCommand(V,Z);_.w7(M)})};
var oSm=function(){vS8.apply(this,arguments)};
_.f(oSm,vS8);oSm[F2]=[_.bv,_.$s];var R1w=function(L,Z){this.JSC$17383_flowStateManager=L;this.JSC$17383_commandHandler=Z};
_.f(R1w,q1);
R1w.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W;return _.b(function(V){S=_.n(L,_.xRM);u=S.targetId;T=GE5(N.JSC$17383_flowStateManager,u);if(!T)return V.return(Promise.resolve());var M=T,G=(W=S.steps)!=null?W:[],D,l=(D=M.flowRenderer.steps)!=null?D:[];G=[].concat(_.Pd(l),_.Pd(G));M.flowRenderer.steps=G;S.flowContinuationCommand&&(T.flowRenderer.flowContinuationCommand=S.flowContinuationCommand);S.entityUpdateCommand&&N.JSC$17383_commandHandler.resolveCommand(S.entityUpdateCommand,Z);
return V.return(Promise.resolve())})};
var ft=function(){R1w.apply(this,arguments)};
_.f(ft,R1w);ft[F2]=[_.Kt,_.$s];var cUg={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var nSy=new _.iY("ICON_SET_TOKEN"),Kwv=new _.iY("ICON_URL_PROVIDER_TOKEN"),fSP=new _.iY("PREFETCH_ICONS_TOKEN"),kE0=new _.iY("ICON_MAP_FN_TOKEN");var kY={},yUg=(kY.ACCESS_TIME="clock",kY.ACCOUNT_BOX=_.X7("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",kY.ACCOUNT_BOX_CAIRO="person_account_cairo",kY.ACCOUNT_CIRCLE="person_circle",kY.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",kY.ACCOUNT_LINKED="account_link_success",kY.ACCOUNT_UNLINKED="account_link",kY.ADD_FRIEND="people",kY.ADD_MODERATOR="shield_add",kY.ADD_TO_LIBRARY="bookmark",kY.ADD_TO_PLAYLIST="add",kY.ADD_TO_QUEUE_TAIL="list_queue",kY.ADD_TO_REMOTE_QUEUE="list_music",
kY.ADD_TO_WATCH_LATER="clock",kY.ADD_VIDEO_LINK="film_strip_add",kY.ALERT_WARN_RED="alert_triangle",kY.ARROW_BACK="arrow_left",kY.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",kY.ARROW_DROP_DOWN="chevron_down",kY.ARROW_DROP_UP="chevron_up",kY.ARROW_FORWARD="arrow_right",kY.ARTIST="person_music",kY.AUDIOTRACK="audio",kY.AUTO_AWESOME="sparkle",kY.AVATAR_ANONYMOUS="person_circle",kY.AVATAR_LOGGED_OUT="person_circle",kY.BACK="arrow_left",kY.BAR_CHART="bar_graph",kY.BLOCK="slash_circle_left",
kY.BLOCK_USER="slash_circle_left",kY.BOOKMARK_BORDER="bookmark",kY.BREAKING_NEWS_ALT_1="article_alert",kY.BROADCAST_CAIRO="podcast_cairo",kY.BUG_REPORT="bug",kY.CAMERA_ALT="camera",kY.CAMPAIGN="megaphone",kY.CANCEL="x_circle",kY.CAPTIONS="closed_caption",kY.CAST_OUTLINE="chromecast",kY.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",kY.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",kY.CHAT="message_bubble_left",kY.CHAT_BUBBLE="message_bubble_empty",kY.CHAT_SPARK="spark_message_bubble_left",kY.CHECK_BOX_OUTLINE_BLANK=
"box_empty",kY.CHECK_CIRCLE_OUTLINE="check_circle",kY.CHECK_CIRCLE_THICK="check_circle",kY.CLARIFY="article_clarify",kY.CLOSED_CAPTION_SELECTED="closed_caption",kY.CLOSE="x_mark",kY.CLOUD_UPLOAD="cloud_arrow_up",kY.COLLAPSE="chevron_up",kY.COLLAPSE_CAIRO="chevron_up_cairo",kY.COLLECTION="layers",kY.COLOR_LENS="palette",kY.COMMENT="message_bubble_right",kY.CONSENT_SHIELD="person_shield",kY.CONTENT_CUT="scissors",kY.CONTENT_CUT_CAIRO="scissors_cairo",kY.COURSE=_.c("web_enable_course_icon_update")?"creator_academy":
"lightbulb",kY.COURSE_CAIRO=_.c("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",kY.CREATION_LIVE="radar_live",kY.CREATION_POST="box_pencil",kY.CREATION_UPLOAD="my_videos",kY.CREATION_UPLOAD_RED="upload",kY.CREATOR_METADATA_MONETIZATION="dollar_sign",kY.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",kY.CREATOR_STUDIO="youtube_studio",kY.DASHBOARD="grid_asymmetrical",kY.DELETE="trash_can",kY.DELETE_SWEEP="trash_can",kY.DESKTOP="laptop",kY.DISLIKE="thumb_down",kY.DISLIKE_SELECTED=
"thumb_down",kY.DISMISSAL="x_mark",kY.DISMISS_QUEUE="list_remove",kY.DONE_ALL="check_double",kY.DOWN_ARROW="arrow_down",kY.DO_NOT_DISTURB="slash_circle_left",kY.DRAFT="paper_corner_folded",kY.DRAG_HANDLE="bars_2",kY.EDIT="pencil",kY.EMOJI="face_very_happy",kY.EMOJI_FLAGS="flag",kY.EMOJI_OBJECTS="lightbulb",kY.EMOJI_PEOPLE="face_very_happy",kY.EMOJI_RECENT="clock",kY.EMPTY_HEART="heart",kY.EMPTY_LIKE="thumb_up",kY.ERROR_BLACK="alert_circle",kY.ERROR_OUTLINE="alert_circle",kY.EXIT_APP="arrow_in",kY.EXIT_TO_APP=
"arrow_in",kY.EXPAND="chevron_down",kY.EXPAND_ALL="chevron_expand",kY.EXPAND_CAIRO="chevron_down_cairo",kY.EXPAND_LESS="chevron_up",kY.EXPAND_MORE="chevron_down",kY.EXPLORE="compass",kY.EXPLORE_DESTINATION="compass",kY.EXTERNAL_LINK="open_new",kY.FAB_UPLOAD="upload",kY.FACE_HAPPY_OUTLINE="face_happy",kY.FACT_CHECK="article_check",kY.FASHION_LOGO="fashion",kY.FASHION_LOGO_CAIRO="fashion_cairo",kY.FAVORITE="heart",kY.FEEDBACK="message_bubble_alert",kY.FEEDBACK_CAIRO="message_bubble_alert_cairo",kY.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",kY.FILL_ARROW_SOLID_UP_16="arrow_solid_up",kY.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",kY.FILTER="menu_filter",kY.FIRST_PAGE="chevron_first",kY.FLAG="flag",kY.FULL_HEART="heart",kY.GAME_CONSOLE_DPAD="game_console_dpad",kY.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",kY.GAMING_LOGO="gaming",kY.GAMING_LOGO_CAIRO="gaming_cairo",kY.GO_TO_PAGE="arrow_right",kY.GROUPS="people_group",kY.HAPPY="face_happy",kY.HEALTH_AND_SAFETY="shield_plus",kY.HELP="question_circle",kY.HELP_CAIRO=
"question_circle_cairo",kY.HELP_OUTLINE="question_circle",kY.HIDE="slash_circle_left",kY.IMAGE="image",kY.INFINITY_ICON="infinity",kY.INFO="info_circle",kY.INFO_OUTLINE="info_circle",kY.INSERT_CHART="bar_graph_box_vertical",kY.INSERT_CHART_OUTLINED="bar_graph_box_vertical",kY.INSERT_PHOTO="image",kY.KEEP="pin",kY.KEEP_OFF="pin_off",kY.KEYBOARD="keyboard",kY.KEYBOARD_ARROW_DOWN="chevron_down",kY.KEYBOARD_ARROW_UP="chevron_up",kY.KIDS_BLOCK="slash_circle_left",kY.LANGUAGE="globe",kY.LAST_PAGE="chevron_last",
kY.LAUNCH="open_new",kY.LEARNING="lightbulb",kY.LEARNING_CAIRO="lightbulb_cairo",kY.LIBRARY_ADD=uHA("library_add"),kY.LIBRARY_OUTLINE="library",kY.LIBRARY_REMOVE=uHA(),kY.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",kY.LIKES_PLAYLIST="thumb_up",kY.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",kY.LIKE="thumb_up",kY.LIKE_SELECTED="thumb_up",kY.LIVE="radar_live",kY.LIVE_CAIRO="radar_live_cairo",kY.LIVE_UNLISTED="link",kY.LOCATION_ON="location_point",kY.LOCATION_PIN="location_point",kY.LOOP="arrow_repeat",kY.LOOP_ACTIVE=
"arrow_repeat",kY.LOOP_ONE="arrow_repeat_1",kY.LOOP_ONE_ACTIVE="arrow_repeat_1",kY.MEH="face_meh",kY.MEMBERS_ONLY_MODE_OFF="message_bubble_left",kY.MESSAGE="message_bubble_left",kY.MICROPHONE_ON="mic",kY.MIX="youtube_mix",kY.MONETIZATION_ON="dollar_sign_circle",kY.MONEY_FILL="dollar_sign_container",kY.MONEY_FILL_JPY="yen_sign_container",kY.MONEY_HEART="dollar_sign_heart",kY.MORE_HORIZ="overflow_horizontal",kY.MORE_VERT="overflow_vertical",kY.MUSIC="audio",kY.MUSIC_CAIRO="audio_cairo",kY.MUSIC_NOTE_SYMBOL=
"music",kY.MUSIC_SHUFFLE="arrow_shuffle",kY.MY_CHANNEL="person_circle",kY.MY_LOCATION="location_point",kY.NEWS_STORY="news",kY.NEXT="chevron_right",kY.NOTIFICATIONS="bell",kY.NOTIFICATIONS_ACTIVE="bell_on",kY.NOTIFICATIONS_CAIRO="bell_cairo",kY.NOTIFICATIONS_DONE_CHECKMARK="check",kY.NOTIFICATIONS_INBOX="bell",kY.NOTIFICATIONS_NONE="bell",kY.NOTIFICATIONS_OFF="bell_off",kY.NOT_INTERESTED="slash_circle_left",kY.OFFICIAL_ARTIST_BADGE="audio",kY.OFFLINE_CLOUD="cloud_off",kY.OFFLINE_DOWNLOAD="download",
kY.OFFLINE_DOWNLOAD_CAIRO="download_cairo",kY.OFFLINE_PAUSE="pause",kY.OPEN_IN_NEW="open_new",kY.OUTLINE_ADJUST="adjust",kY.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",kY.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",kY.OUTLINE_BAG="bag",kY.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",kY.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",kY.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",kY.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",kY.PAID="dollar_sign",kY.PAUSE_OUTLINED="pause",kY.PAYMENT=
"credit_card",kY.PERSON_RADAR_FILLED="person_radar",kY.PHONE_DOWNLOAD="mobile_download",kY.PLAYABLES_LOGO="tic_tac_toe",kY.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",kY.PLAYLISTS="list_play_arrow",kY.PLAYLISTS_CAIRO="list_play_arrow_cairo",kY.PLAYLIST_ADD=uHA("list_add"),kY.PLAYLIST_ADD_CHECK=uHA("list_check"),kY.PLAYLIST_PLAY="list_play_arrow",kY.PLAY_ALL="play_arrow",kY.PLAY_CIRCLE="play_arrow_circle",kY.PLAY_OUTLINED="play_arrow_circle",kY.PRIVACY_INFO="shield",kY.PRIVACY_PRIVATE="lock",kY.PRIVACY_PUBLIC=
"earth",kY.PRIVACY_UNLISTED="link",kY.PROMOTE="megaphone",kY.PURCHASES="price_tag",kY.PURCHASE_SUPER_CHAT="super_chat",kY.PURCHASE_SUPER_STICKER="super_sticker",kY.QUESTION_ANSWER="message_bubble_question",kY.QUEUE_PLAY_LAST="list_queue_last",kY.QUEUE_PLAY_NEXT="list_play_arrow",kY.REMIX_FILLED="youtube_shorts_remix",kY.REMOVE="bar_circle",kY.REMOVE_CIRCLE="bar_circle",kY.REMOVE_CIRCLE_OUTLINE="bar_circle",kY.REMOVE_DONE="check_double_off",kY.REMOVE_FROM_HISTORY="bar_circle",kY.REMOVE_FROM_PLAYLIST=
"bar_circle",kY.REMOVE_MODERATOR="shield_off",kY.REPLAY="arrow_circle",kY.REPLAY_10="skip_back_10",kY.REPORT_PROBLEM="alert_triangle",kY.SAD="face_sad",kY.SAVE_PLAYLIST="bookmark",kY.SCHEDULE="clock",kY.SCHOOL="creator_academy",kY.SCREEN_FULLSCREEN="screen_full",kY.SEARCH_HISTORY="arrow_time",kY.SELL="price_tag",kY.SETTINGS="gear",kY.SETTINGS_CAIRO="gear_cairo",kY.SETTINGS_LIGHT="gear",kY.SETTINGS_MATERIAL="gear",kY.SHARE_ARROW="share",kY.SHIELD_WITH_AVATAR="person_shield",kY.SHOPPING_BAG="bag",kY.SHOPPING_BAG_CAIRO=
"bag_cairo",kY.SHOPPING_CART="cart",kY.SHORTS_COMMENT="youtube_shorts_message_bubble_right",kY.SHORTS_DISLIKE="youtube_shorts_thumb_down",kY.SHORTS_LIKE="youtube_shorts_thumb_up",kY.SHORTS_SHARE="youtube_shorts_share",kY.SHUFFLE="arrow_shuffle",kY.SLOW_MODE_OFF="message_bubble_left",kY.SOCIAL="people",kY.SORT="menu_sort",kY.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",kY.SPEED_1X="1x",kY.SPEED_1_POINT_2X="1_point_2x",kY.SPEED_1_POINT_5X="1_point_5x",kY.SPEED_1_POINT_8X="1_point_8x",kY.SPEED_2X="2x",
kY.SPEED_POINT_2X="point_2x",kY.SPEED_POINT_8X="point_8x",kY.SPONSORSHIP_STAR="star_circle",kY.STAFF_PICK="spotlight",kY.START_DVR="add",kY.STAR_BORDER="star",kY.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",kY.STICKER_EMOTICON="face_happy",kY.STOP_DVR="stop",kY.SUBSCRIBE="youtube_logo_icon",kY.SUBSCRIBE_PLUS="add_cairo",kY.SUBSCRIPTION_MANAGER="gear",kY.SUPERVISOR_ACCOUNT="people",kY.SUPER_CHAT_FOR_GOOD="hands_heart",kY.SWAP_HORIZ="arrow_swap_horizontal",kY.SWITCH_ACCOUNTS="person_account",kY.TAB_ACCOUNT=
"person",kY.TAB_ACTIVITY="bell",kY.TAB_BOOKMARK="bookmark",kY.TAB_EXPLORE="compass",kY.TAB_HOME="home",kY.TAB_HOME_CAIRO="home_cairo",kY.TAB_INBOX="mail",kY.TAB_LIKED="thumb_up",kY.TAB_MUSIC_PREMIUM="youtube_music",kY.TAB_SHORTS="youtube_shorts",kY.TAB_SHORTS_CAIRO="youtube_shorts_cairo",kY.TAB_SUBSCRIPTIONS="subscriptions",kY.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",kY.TAB_TRENDING="fire",kY.TIMER="stopwatch",kY.TRAILER="youtube_originals",kY.TRENDING="fire",kY.TRENDING_CAIRO="fire_cairo",kY.TRENDING_DOWN=
"rating_down",kY.TRENDING_UP="rating_up",kY.TROPHY="trophy",kY.TROPHY_CELEBRATIONS="fireworks",kY.TUNE="adjust",kY.UNBLOCK_USER="bar_circle",kY.UNLIMITED="youtube_logo_icon",kY.UNPLUGGED_LIVE_GUIDE="radar_live",kY.UNPLUGGED_SPORTS="eye_off",kY.UPLOADS="library",kY.UP_ARROW="arrow_up",kY.VERTICAL_ALIGN_BOTTOM="download",kY.VERY_HAPPY="face_very_happy",kY.VERY_SAD="face_very_sad",kY.VIDEOGAME_ASSET="gaming",kY.VIDEOS="play_arrow_circle",kY.VIDEO_CALL="video_camera_add",kY.VIDEO_LIBRARY_WHITE="library",
kY.VIDEO_YOUTUBE="youtube_logo_icon",kY.VIEW_LIST="list_view",kY.VIEW_LIST_CAIRO="list_view_cairo",kY.VISIBILITY="eye",kY.VISIBILITY_OFF="eye_off",kY.VOLUME_MUTE="volume_off",kY.VOLUME_UP="volume_on",kY.WALLPAPER="image",kY.WARNING="alert_triangle",kY.WATCH_HISTORY="arrow_time",kY.WATCH_HISTORY_CAIRO="arrow_time_cairo",kY.WATCH_LATER="clock",kY.WATCH_LATER_CAIRO="clock_cairo",kY.WATCH_RELATED_MIX="youtube_mix",kY.WHAT_TO_WATCH="home",kY.YOUTUBE_MUSIC_MONOCHROME="youtube_music",kY.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",kY.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",kY.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",kY.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",kY.YT_OUTLINE_MUSIC_24="music",kY);var yu={},wdP=(yu.ACCESS_TIME="clock",yu.ACCOUNT_BOX="person_square",yu.ACCOUNT_BOX_CAIRO="person_square",yu.ACCOUNT_CIRCLE="person_circle",yu.ACCOUNT_CIRCLE_CAIRO="person_circle",yu.ACCOUNT_LINKED="account_link",yu.ACCOUNT_UNLINKED="account_link",yu.ADD_CIRCLE="add_circle",yu.ADD_CIRCLE_OUTLINE="add_circle",yu.ADD_FRIEND="person_child",yu.ADD_MODERATOR="shield_add",yu.ADD_TO_LIBRARY="bookmark",yu.ADD_TO_PLAYLIST="add",yu.ADD_TO_QUEUE_TAIL="queue",yu.ADD_TO_REMOTE_QUEUE="playlist_audio",yu.ADD_TO_WATCH_LATER=
"clock",yu.ADD_VIDEO_LINK="film_strip_add",yu.ADMIN_PANEL_SETTINGS="person_gear",yu.ALERT_WARN_RED="alert_triangle",yu.ALIGN_LEFT="text_align_left",yu.ARROWS_ALERT="arrow_split_alert",yu.ARROW_BACK="arrow_left",yu.ARROW_CIRCLE="arrow_counterclockwise",yu.ARROW_CIRCLE_PLAY="replay",yu.ARROW_CIRCLE_RIGHT="arrow_clockwise",yu.ARROW_DIAGONAL="arrow_up_left",yu.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",yu.ARROW_DROP_DOWN="triangle_down",yu.ARROW_DROP_UP="triangle_up",yu.ARROW_FORWARD="arrow_right",yu.ARROW_PAUSE=
"pause_history",yu.ARROW_UNDO="undo",yu.ARTICLE="text_page",yu.ARTICLE_ALERT="text_page_alert",yu.ARTICLE_CHECK="text_page_check",yu.ARTICLE_CLARIFY="text_page_info",yu.ARTIST="person_audio",yu.AUDIOTRACK="audio",yu.AUDIO_BADGE="audio_badge",yu.AUDIO_SURROUND="surround_sound",yu.AUTO_AWESOME="sparkles",yu.AVATAR_ANONYMOUS="person_circle",yu.AVATAR_LOGGED_OUT="person_circle",yu.BACK="arrow_left",yu.BAR_CHART="chart_bar",yu.BAR_CIRCLE="minus_circle",yu.BAR_HORIZONTAL="minus",yu.BLOCK="circle_slash",
yu.BLOCK_USER="circle_slash",yu.BOOKMARK_BORDER="bookmark",yu.BOX_OPEN_CHECK="quiz",yu.BOX_PENCIL="square_pencil",yu.BOX_STACK_3="square3_stack",yu.BREAKING_NEWS_ALT_1="text_page_alert",yu.BROADCAST="podcast",yu.BROADCAST_CAIRO="podcast",yu.BUG_REPORT="bug",yu.CAMERA_ALT="camera",yu.CAMPAIGN="megaphone",yu.CANCEL="x_circle",yu.CAPTIONS="closed_captions",yu.CAST_ICON="chromecast",yu.CAST_OUTLINE="chromecast",yu.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",yu.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
yu.CHAT="text_bubble",yu.CHAT_BUBBLE="bubble",yu.CHECK_BOX="check_square",yu.CHECK_BOX_OUTLINE_BLANK="square",yu.CHECK_CIRCLE_FILLED="check_circle",yu.CHECK_CIRCLE_OUTLINE="check_circle",yu.CHECK_CIRCLE_THICK="check_circle",yu.CHECK_DOUBLE="check_done",yu.CHECK_DOUBLE_OFF="check_done_slash",yu.CHEVRON_LEFT="chevron_left",yu.CHEVRON_RIGHT="chevron_right",yu.CHEVRON_RIGHT_CAIRO="chevron_right",yu.CIRCLES_OVERLAP="account_link",yu.CLAPPERBOARD_CAIRO="clapperboard",yu.CLARIFY="text_page_info",yu.CLOCK_ARROWS=
"clock_split",yu.CLOCK_ARROWS_ALERT="clock_split_alert",yu.CLOSED_CAPTION="closed_captions",yu.CLOSED_CAPTION_SELECTED="closed_captions",yu.CLOSE="x",yu.CLOUD_UPLOAD="cloud_arrow_up",yu.COLLAPSE="chevron_up",yu.COLLAPSE_CAIRO="chevron_up",yu.COLLECTION="square3d_stack",yu.COLOR_LENS="paint_palette",yu.COMMENT="text_bubble",yu.CONSENT_SHIELD="person_shield",yu.CONTENT_CUT="scissors",yu.CONTENT_CUT_CAIRO="scissors",yu.COURSE="graduation_cap",yu.COURSE_CAIRO="graduation_cap",yu.CREATION_LIVE="live",
yu.CREATION_POST="square_pencil",yu.CREATION_UPLOAD="video",yu.CREATION_UPLOAD_RED="upload",yu.CREATOR_ACADEMY="graduation_cap",yu.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",yu.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",yu.CREATOR_STUDIO="youtube_studio",yu.DARK_THEME="theme",yu.DELETE="trash_can",yu.DELETE_SWEEP="trash_can",yu.DESKTOP="laptop",yu.DISLIKE="thumb_down",yu.DISLIKE_SELECTED="thumb_down",yu.DISMISSAL="x",yu.DISMISS_QUEUE="playlist_x",yu.DOGFOOD="pawprint",yu.DOLLAR_SIGN=
"dollar_sign_circle",yu.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",yu.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",yu.DOWN_ARROW="arrow_down",yu.DO_NOT_DISTURB="circle_slash",yu.DRAFT="document",yu.DRAG_HANDLE="equal",yu.EARTH="globe",yu.EDIT="pencil",yu.EMOJI="face_very_happy",yu.EMOJI_FLAGS="flag",yu.EMOJI_OBJECTS="lightbulb",yu.EMOJI_PEOPLE="face_very_happy",yu.EMOJI_RECENT="clock",yu.EMPTY_HEART="heart",yu.EMPTY_LIKE="thumb_up",yu.ERROR_BLACK="alert_circle",yu.ERROR_OUTLINE="alert_circle",yu.ERROR_WHITE=
"alert_circle",yu.EXIT_APP="arrow_in",yu.EXIT_TO_APP="arrow_in",yu.EXPAND="chevron_down",yu.EXPAND_ALL="chevron_expand",yu.EXPAND_CAIRO="chevron_down",yu.EXPAND_LESS="chevron_up",yu.EXPAND_MORE="chevron_down",yu.EXPLORE="compass",yu.EXPLORE_DESTINATION="compass",yu.EXTERNAL_LINK="arrow_up_right",yu.EYE_OFF="eye_slash",yu.FAB_UPLOAD="upload",yu.FACE_HAPPY_OUTLINE="face_happy",yu.FACE_MEH="face_neutral",yu.FACT_CHECK="text_page_check",yu.FASHION_LOGO="fashion",yu.FASHION_LOGO_CAIRO="fashion",yu.FAVORITE=
"thumb_up",yu.FEEDBACK="alert_bubble",yu.FEEDBACK_CAIRO="alert_bubble",yu.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",yu.FILL_ARROW_SOLID_UP_16="arrow_solid_up",yu.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",yu.FIRST_PAGE="chevron_left_end",yu.FLAG_CAIRO="flag",yu.FLASH_OFF="flash_slash",yu.FLASH_ON="flash",yu.FULL_HEART="heart",yu.GAMING_LOGO="gaming",yu.GAMING_LOGO_CAIRO="gaming",yu.GO_TO_PAGE="arrow_right",yu.GRID_ASYMMETRICAL="dashboard",yu.GROUPS="person3",yu.HAND_SWIPE_LEFT="gesture_swipe_left",
yu.HAND_SWIPE_RIGHT="gesture_swipe_right",yu.HAPPY="face_happy",yu.HEALTH_AND_SAFETY="shield_health",yu.HEART_BOX="heart_cube",yu.HELP="help_circle",yu.HELP_CAIRO="help_circle",yu.HELP_OUTLINE="help_circle",yu.HIDE="circle_slash",yu.INCOGNITO_CAIRO="incognito",yu.INFINITY_ICON="infinity",yu.INFO="info_circle",yu.INFO_OUTLINE="info_circle",yu.INSERT_CHART="chart_bar_square",yu.INSERT_CHART_OUTLINED="chart_bar_square",yu.INSERT_PHOTO="image",yu.KEEP="pin",yu.KEEP_OFF="pin_slash",yu.KEYBOARD="keyboard",
yu.KEYBOARD_ARROW_DOWN="chevron_down",yu.KEYBOARD_ARROW_UP="chevron_up",yu.KIDS_BLOCK="circle_slash",yu.LANGUAGE="globe",yu.LAST_PAGE="chevron_right_end",yu.LAUNCH="arrow_up_right",yu.LEARNING="lightbulb",yu.LEARNING_CAIRO="lightbulb",yu.LIBRARY_ADD="bookmark",yu.LIBRARY_IMAGE="image_stack",yu.LIBRARY_MUSIC="audio_square_stack",yu.LIBRARY_OUTLINE="play_square_stack",yu.LIBRARY_REMOVE="bookmark",yu.LIBRARY_SAVED="check_square_stack",yu.LIKES_PLAYLIST="thumb_up",yu.LIKES_PLAYLIST_CAIRO="thumb_up",yu.LIKE=
"thumb_up",yu.LIKE_SELECTED="thumb_up",yu.LIST_QUEUE="queue",yu.LIVE_CAIRO="live",yu.LIVE_UNLISTED="link",yu.LOCATION_ON="location_pin",yu.LOCATION_PIN="location_pin",yu.LOCATION_POINT="location_pin",yu.LOOP="repeat",yu.LOOP_ACTIVE="repeat",yu.LOOP_ONE="repeat1",yu.LOOP_ONE_ACTIVE="repeat1",yu.MEET="google_meet",yu.MEH="face_neutral",yu.MEMBERSHIPS="memberships",yu.MEMBERS_ONLY_MODE_OFF="text_bubble",yu.MENU_FILTER="filter",yu.MESSAGE="text_bubble",yu.MESSAGE_BUBBLE_GEAR="bubble_gear",yu.MESSAGE_BUBBLE_LEFT=
"text_bubble",yu.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",yu.MESSAGE_BUBBLE_OVERLAP="bubble_stack",yu.MESSAGE_BUBBLE_QUESTION="help_bubble",yu.MICROPHONE_ON="mic",yu.MONETIZATION_ON="dollar_sign_circle",yu.MONEY_FILL="dollar_sign_rectangle",yu.MONEY_FILL_JPY="yen_sign_rectangle",yu.MONEY_HAND="dollar_sign_circle_hand",yu.MONEY_HEART="dollar_sign_heart",yu.MOON_Z="sleep_timer",yu.MORE_HORIZ="overflow_horizontal",yu.MORE_VERT="overflow_vertical",yu.MUSIC="audio",yu.MUSIC_CAIRO="audio",yu.MUSIC_EXPLICIT_BADGE=
"explicit",yu.MUSIC_NEW_RELEASE="audio_badge",yu.MUSIC_NOTE_SYMBOL="audio",yu.MUSIC_SCISSORS="audio_scissors",yu.MUSIC_SHUFFLE="shuffle",yu.MY_CHANNEL="person_circle",yu.MY_LOCATION="location_pin",yu.MY_VIDEOS="video",yu.MY_VIDEOS_CAIRO="video",yu.NEWS_CAIRO="news",yu.NEWS_STORY="news",yu.NEXT="chevron_right",yu.NOTE_ADD="bubble_pencil",yu.NOTIFICATIONS="bell",yu.NOTIFICATIONS_ACTIVE="bell_waves",yu.NOTIFICATIONS_CAIRO="bell",yu.NOTIFICATIONS_DONE_CHECKMARK="check",yu.NOTIFICATIONS_INBOX="bell",yu.NOTIFICATIONS_NONE=
"bell",yu.NOTIFICATIONS_OFF="bell_slash",yu.NOT_INTERESTED="circle_slash",yu.OFFICIAL_ARTIST_BADGE="audio",yu.OFFLINE_CLOUD="cloud_slash",yu.OFFLINE_DOWNLOAD="download",yu.OFFLINE_DOWNLOAD_CAIRO="download",yu.OFFLINE_PAUSE="pause",yu.OPEN_IN_NEW="arrow_up_right",yu.OUTLINE_ADJUST="adjust",yu.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",yu.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",yu.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",yu.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",yu.OUTLINE_BAG="bag",yu.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",yu.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",yu.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",yu.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",yu.PAID="dollar_sign_circle",yu.PAUSE_OUTLINED="pause",yu.PAYMENT="credit_card",yu.PEOPLE="person_child",yu.PEOPLE_2="person2_rectangle",yu.PEOPLE_GROUP="person3",yu.PEOPLE_NOTE="bubble_asterisk",yu.PERSON_2="person2",yu.PERSON_ACCOUNT="person_square_stack",yu.PERSON_MINUS="person_x",yu.PERSON_MUSIC="person_audio",yu.PERSON_RADAR="person_waves",
yu.PERSON_RADAR_FILLED="person_waves",yu.PERSON_SETTING="person_gear",yu.PHONE="phone",yu.PHONE_DOWNLOAD="mobile_arrow_down",yu.PICTURE_IN_PICTURE="picture_in_picture",yu.PLAYABLES_LOGO="playables",yu.PLAYABLES_LOGO_CAIRO="playables",yu.PLAYLISTS="playlist",yu.PLAYLISTS_CAIRO="playlist",yu.PLAYLIST_ADD_CHECK="bookmark",yu.PLAY_ALL="play",yu.PLAY_ARROW="play",yu.PLAY_ARROW_CIRCLE="play_circle",yu.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",yu.PLAY_CIRCLE="play_circle",yu.PLAY_OUTLINED="play_circle",
yu.PODCAST_ADD="podcast_add",yu.PODCAST_CHECK="podcast_check",yu.PRIVACY_INFO="shield_x",yu.PRIVACY_PRIVATE="lock",yu.PRIVACY_PUBLIC="globe",yu.PRIVACY_UNLISTED="link",yu.PROMOTE="megaphone",yu.PURCHASES="price_tag",yu.PURCHASE_SUPER_CHAT="super_chat",yu.PURCHASE_SUPER_STICKER="super_sticker",yu.QUESTION_ANSWER="help_bubble",yu.QUESTION_CIRCLE="help_circle",yu.QUEUE_PLAY_LAST="queue_last",yu.QUEUE_PLAY_NEXT="queue_next",yu.QUOTATION_MARK="quote",yu.RADAR_LIVE="live",yu.REMOVE="minus_circle",yu.REMOVE_CIRCLE=
"minus_circle",yu.REMOVE_CIRCLE_OUTLINE="minus_circle",yu.REMOVE_FROM_HISTORY="minus_circle",yu.REMOVE_FROM_PLAYLIST="minus_circle",yu.REMOVE_MODERATOR="shield_slash",yu.REPLAY="arrow_counterclockwise",yu.REPLAY_10="skip10_back",yu.REPLAY_ARROW="replay",yu.REPORT_PROBLEM="alert_triangle",yu.RSS_OFF="rss_slash",yu.SAD="face_sad",yu.SAVE_PLAYLIST="bookmark",yu.SCHEDULE="clock",yu.SCHOOL="graduation_cap",yu.SCREEN_DEFAULT="player_default",yu.SCREEN_FULLSCREEN="player_full_enter",yu.SCREEN_LIGHT="ambient_mode",
yu.SCREEN_ROTATION="rotate_portrait",yu.SCREEN_SWITCH="player_switch",yu.SCREEN_THEATRE="player_theater",yu.SEARCH_CAIRO="search",yu.SEARCH_HISTORY="history",yu.SELL="price_tag",yu.SETTINGS="gear",yu.SETTINGS_CAIRO="gear",yu.SETTINGS_LIGHT="gear",yu.SETTINGS_MATERIAL="gear",yu.SETTINGS_REMOTE="remote_waves",yu.SHARE="share",yu.SHARE_ARROW="share",yu.SHARE_CAIRO="share",yu.SHIELD="shield_x",yu.SHIELD_OFF="shield_slash",yu.SHIELD_WITH_AVATAR="person_shield",yu.SHOPPING_BAG="bag",yu.SHOPPING_BAG_CAIRO=
"bag",yu.SHOPPING_CART="cart",yu.SHORTS_COMMENT="text_bubble",yu.SHORTS_DISLIKE="thumb_down",yu.SHORTS_LIKE="thumb_up",yu.SHORTS_SHARE="share",yu.SKIP_FORWARD_30="skip30_forward",yu.SLASH_CIRCLE_LEFT="circle_slash",yu.SLASH_CIRCLE_RIGHT="circle_slash",yu.SLOW_MODE="bubble_slow",yu.SLOW_MODE_OFF="text_bubble",yu.SOCIAL="person_child",yu.SPARKLE="sparkles",yu.SPARK_IMAGE="image_spark",yu.SPARK_RADAR="spark_waves",yu.SPARK_VIDEO="video_spark",yu.SPEAKER_GROUP="speaker_stack",yu.SPEAKER_OFF="speaker_slash",
yu.SPEED_1X="n1x",yu.SPEED_1_POINT_2X="n1point2x",yu.SPEED_1_POINT_5X="n1point5x",yu.SPEED_1_POINT_8X="n1point8x",yu.SPEED_2X="n2x",yu.SPONSORSHIP_STAR="star_circle",yu.SPORTS="basketball",yu.SPOTLIGHT="spotlight",yu.STAFF_PICK="spotlight",yu.START_DVR="add",yu.STAR_BORDER="star",yu.STAR_CIRCLE_RIBBON="memberships_gift",yu.STAR_HALF="star_half_filled",yu.STAR_SHOOTING="hype",yu.STICKER="sticker",yu.STICKER_EMOTICON="face_happy",yu.STOP_DVR="stop",yu.SUBSCRIBE="youtube",yu.SUBSCRIBE_PLUS="add",yu.SUBSCRIPTION_MANAGER=
"gear",yu.SUPERSTAR="super_star",yu.SUPERVISOR_ACCOUNT="person_child",yu.SUPER_CHAT_FOR_GOOD="hands_heart",yu.SWAP_HORIZ="arrow_swap_horizontal",yu.SWITCH_ACCOUNTS="person_square_stack",yu.TAB_ACCOUNT="person",yu.TAB_ACTIVITY="bell",yu.TAB_BOOKMARK="bookmark",yu.TAB_EXPLORE="compass",yu.TAB_HOME="home",yu.TAB_HOME_CAIRO="home",yu.TAB_INBOX="mail",yu.TAB_LIKED="thumb_up",yu.TAB_MUSIC_PREMIUM="youtube_music",yu.TAB_SHORTS="shorts",yu.TAB_SHORTS_CAIRO="shorts",yu.TAB_SUBSCRIPTIONS="subscriptions",yu.TAB_SUBSCRIPTIONS_CAIRO=
"subscriptions",yu.TAB_TRENDING="trending",yu.TARGET="target",yu.TARGET_ADD="target_add",yu.TEMPLATE_ADD="template_add",yu.TEXT="font",yu.TICKET_STAR="star_ticket",yu.TIMER="stopwatch",yu.TRENDING_CAIRO="trending",yu.TRENDING_DOWN="arrow_trend_down",yu.TRENDING_UP="arrow_trend_up",yu.TROPHY_CAIRO="trophy",yu.TROPHY_CELEBRATIONS="fireworks",yu.TROPHY_STAR="star_trophy",yu.TUNE="adjust",yu.TV_OFF="tv_slash",yu.UNBLOCK_USER="minus_circle",yu.UNFAVORITE="thumb_down",yu.UNLIMITED="youtube",yu.UNPLUGGED_LIVE_GUIDE=
"live",yu.UNPLUGGED_SPORTS="eye_slash",yu.UPLOADS="play_square_stack",yu.UP_ARROW="arrow_up",yu.VERTICAL_ALIGN_BOTTOM="chevron_down_end",yu.VERTICAL_ALIGN_TOP="chevron_up_end",yu.VERY_HAPPY="face_very_happy",yu.VERY_SAD="face_very_sad",yu.VIDEOS="play_circle",yu.VIDEO_CALL="video_camera_add",yu.VIDEO_LIBRARY_WHITE="play_square_stack",yu.VIDEO_QUALITY_4K="n4k",yu.VIDEO_QUALITY_8K="n8k",yu.VIDEO_YOUTUBE="youtube",yu.VIEW_LIST_CAIRO="view_list",yu.VIEW_MODULE="view_column3_row2",yu.VISIBILITY="eye",
yu.VISIBILITY_OFF="eye_slash",yu.VOLUME_DOWN="volume_min",yu.VOLUME_MUTE="volume_mute",yu.VOLUME_OFF="volume_mute",yu.VOLUME_STABLE="stable_volume",yu.VOLUME_UP="volume_max",yu.WALLPAPER="image",yu.WARNING="alert_triangle",yu.WATCH_HISTORY="history",yu.WATCH_HISTORY_CAIRO="history",yu.WATCH_LATER="clock",yu.WATCH_LATER_CAIRO="clock",yu.WATCH_RELATED_MIX="mix",yu.WHAT_TO_WATCH="home",yu.YOUTUBE_LINKED_TV="tv_mobile",yu.YOUTUBE_MUSIC_MONOCHROME="youtube_music",yu.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",
yu.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",yu.YOUTUBE_SHORTS_ARROW_UP="arrow_up",yu.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",yu.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",yu.YOUTUBE_SHORTS_OUTLINE_24="shorts",yu);var UZQ={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,
1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,
2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,
1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,
1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,
1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],
[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,
1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,
1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],
transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,
24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],
[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],
youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],
[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var Y3Q={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,
2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,
1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,
9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,
1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,
2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,
1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,
3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,
3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],
link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,
5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,
1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,
1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],
person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,
1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,
1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,
1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,
1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,
2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],
share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,
1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,
1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,
24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,
24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],
[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,
1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,
4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,
2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wifi_tethering:[[1,1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],
youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var e1Q={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"},wQ=function(L){this.iconUrlProvider=L};
wQ.prototype.resolveIcon=function(L,Z){var N=e1Q[L.iconName.toUpperCase()];N&&(L.iconName=N);var S=L.iconName;S=S.replace(/-/g,"_");L=Object.assign({},L,{iconName:this.mapIconTypeToStandardName(S,!!N)||S.toLowerCase()});if(_.c("enable_web_delhi_icons")||N){var u;return S2B(Y3Q,L,((u=this.iconUrlProvider)==null?void 0:u.getYtStandardUrl)||tEH,Z)}var T;return S2B(UZQ,L,((T=this.iconUrlProvider)==null?void 0:T.getYtStandardUrl)||T8w,Z)};
wQ.prototype.mapIconTypeToStandardName=function(L,Z){return _.c("enable_web_delhi_icons")||Z?wdP[L.toUpperCase()]:yUg[L.toUpperCase()]};
wQ[F2]=[_.gv(Kwv)];var IS5=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),dZP=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),aSv=function(L){this.urlProvider=this.iconUrlProvider=L};
_.f(aSv,wQ);
aSv.prototype.resolveIcon=function(L,Z){L.iconName==="youtube_logo"&&(L.iconName="yt-logo-updated");if(L.iconName==="youtube_premium_logo"||L.iconName==="youtube_red_logo")L.iconName="yt-logo-red-updated";var N=Object.assign({},L);L.iconName==="menu"&&(_.c("enable_web_delhi_icons")||(N.iconName="bars_3"),N.iconStyle="youtube_outline");L.iconSetName==="socialNetworksRound"&&(L.iconName==="mail"&&(N.iconName="email"),L.iconName==="embed"&&(N.iconSize=60));L.iconName==="more"&&(N.iconName="overflow_horizontal");
L.iconName==="fullscreen"&&(N.iconName="screen_full");L.iconName==="premium_standalone"&&(N.iconName="premium_standalone_cairo");_.c("enable_connect_icon_update_web")&&L.iconName==="account_linked"&&(N.iconName="circles_overlap_check",N.iconStyle="youtube_fill");_.c("enable_connect_icon_update_web")&&L.iconName==="account_unlinked"&&(N.iconName="circles_overlap",N.iconStyle="youtube_outline");IS5.has(L.iconName)&&(N.iconStyle="youtube_fill");_.c("enable_web_delhi_icons")&&(L.iconName==="playlist_add"&&
(N.iconName="bookmark"),L.iconName==="offline_pin"&&(N.iconName="arrow_down_circle",N.iconStyle="youtube_fill"),dZP.has(L.iconName)&&(N.iconName+="_updated"));L=Object.assign({},N,{iconName:(wQ.prototype.mapIconTypeToStandardName.call(this,N.iconName)||N.iconName).toLowerCase()});var S;return(L=S2B(cUg,L,((S=this.urlProvider)==null?void 0:S.getUrl)||O9_,Z))?L:wQ.prototype.resolveIcon.call(this,N,Z)};
aSv[F2]=[_.gv(Kwv)];_.h1q=1;var Um=function(L,Z){this.JSC$17404_commandHandler=L;this.innertubeTransportService=Z};
_.f(Um,q1);Um.prototype.resolveCommand=function(L,Z){var N=this,S,u,T;return _.b(function(W){return(S=_.n(L,GAM))?W.return(sSv(N,S,(u=Z)==null?void 0:(T=u.form)==null?void 0:T.element)):W.return()})};
var sSv=function(L,Z,N){Z={profileCardContext:Z.profileCardContext,profileOwnerExternalChannelId:Z.profileOwnerExternalChannelId};var S=_.pk(DPN);return _.Za(L.innertubeTransportService,Z,S).then(function(u){if(!u)throw new _.sr("GetProfileCard failed");if(u=u.popupCommand){L.JSC$17404_commandHandler.resolveCommand(u,{form:{element:N}});_.fF(_.tC(),66557);u=u==null?void 0:u.clickTrackingParams;var T=_.oH();u&&T&&_.tC().graftServerVe(u,T)}})};
Um[F2]=[_.$s,_.bv];var YY=function(){};
_.f(YY,q1);YY.prototype.resolveCommand=function(L){var Z,N;return _.b(function(S){Z=_.n(L,nFM);if(!Z)return S.return();N=Number(Z.enableDelayedPacfLoggingTvMs);if(isNaN(N)){var u=k1();K1t(u,Z,0)}else K1t(k1(),Z,N);_.w7(S)})};_.eH=function(){};
_.f(_.eH,q1);
_.eH.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V,M,G;return _.b(function(D){S=_.n(L,KCN);T=(u=Z.form)==null?void 0:u.element;V=(W=T)==null?void 0:W.closest("ytd-enforcement-message-view-model");if(!S||!V)return D.return();N.allowAdsAction||(M=S.fundingChoiceInstructionPageUrl,N.allowAdsAction=new ll5(window,_.QH(M)));var l=N.allowAdsAction;l.wallElement=V;l.allowAdsPopup.style.setProperty("display","flex","important");var v=l.scrollManager;v.originalBodyOverflow=v.JSC$9999_domHelper.JSC$9325_document_.body.style.overflow;v.JSC$9999_domHelper.JSC$9325_document_.body.style.overflow=
"hidden";l.wallElement.style.setProperty("display","none","important");UOs(l.accessibilityManager,l.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((G=N.allowAdsAction.allowAdsPopup)&&G instanceof HTMLElement)for(l=_.O(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),v=l.next();!v.done;v=l.next()){var R=_.O(v.value);v=R.next().value;R=R.next().value;G.style.setProperty(v,R)}_.w7(D)})};
_.eH.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Iz=function(){};
_.f(Iz,q1);Iz.prototype.resolveCommand=function(L){var Z;return _.b(function(N){Z=_.n(L,fuL);if(!Z)return N.return();KN1(L);_.w7(N)})};var jSw=new _.iY("SESSION_STORAGE");var dQ=function(L){this.sessionStorage=L("conversations")};
_.f(dQ,q1);dQ.prototype.resolveCommand=function(L){var Z=this,N;return _.b(function(S){N=_.n(L,hkL);if(!N)return S.return();N.conversationId?Z.sessionStorage.set("conversation_id",N.conversationId):Z.sessionStorage.remove("conversation_id");_.w7(S)})};
dQ[F2]=[jSw];var az=function(L){this.JSC$17424_commandHandler=L};
_.f(az,q1);
az.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W,V,M,G;return _.b(function(D){if(D.nextAddress==1){N=_.n(L,LAl);if((S=N)==null||!S.text||!navigator.clipboard)return D.return();_.RS(D,2);return D.yield(navigator.clipboard.writeText(N.text),4)}if(D.nextAddress!=2){if(!N.successActions||N.successActions.length===0)return D.return();u=_.O(N.successActions);for(T=u.next();!T.done;T=u.next())W=T.value,Z.JSC$17424_commandHandler.resolveCommand(W);return _.SX(D,0)}_.yd(D);if(!N.failureActions||N.failureActions.length===
0)return D.return();V=_.O(N.failureActions);for(M=V.next();!M.done;M=V.next())G=M.value,Z.JSC$17424_commandHandler.resolveCommand(G);_.w7(D)})};
az[F2]=[_.$s];var h$=function(L){this.JSC$17428_commandHandler=L};
_.f(h$,q1);
h$.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V,M,G,D,l,v;return _.b(function(R){switch(R.nextAddress){case 1:S=_.n(L,s2Y);if(!S)return R.return();_.RS(R,2);if(!S.imageBytes&&!S.imageUrl)throw Error("Ai");if(!S.imageUrl){if(S.imageBytes){T=S.imageBytes;W=T.replace(/-/g,"+").replace(/_/g,"/");var K=b9t(W);u=_.Jf(K)}R.jumpTo(4);break}return R.yield(fetch(S.imageUrl),5);case 5:return V=R.yieldResult,R.yield(V.blob(),6);case 6:M=R.yieldResult,u=_.Jf(M);case 4:l=(G=Z)==null?void 0:(D=G.form)==
null?void 0:D.element;v=document.createElement("a");Q8(v,u);l.appendChild(v);v.download="";v.click();l.removeChild(v);URL.revokeObjectURL(_.jn(u));S.successCommand&&N.JSC$17428_commandHandler.resolveCommand(S.successCommand);_.SX(R,0);break;case 2:_.yd(R),S.errorCommand&&N.JSC$17428_commandHandler.resolveCommand(S.errorCommand),_.w7(R)}})};
h$[F2]=[_.$s];var sm=function(L){this.store=L};
_.f(sm,q1);sm.prototype.resolveCommand=function(L){var Z=this,N,S,u;return _.b(function(T){S=(N=_.n(L,_.Wus))==null?void 0:N.entityBatchUpdate;if(!S)return T.jumpTo(0);u=Object.assign({},S,{mutations:[].concat(_.Pd(S.mutations||[]))});return T.yield(_.u2(u,Z.store),0)})};var ESs=function(L){this.JSC$17435_commandHandler=L;this.feedbackDialogMap=new Map};
ESs.prototype.openDialog=function(L,Z){(L=this.feedbackDialogMap.get(L))&&this.JSC$17435_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:L}},Z)};
ESs[F2]=[_.$s];var jH=new _.iY("FEEDBACK_CONTROLLER_TOKEN");var Em=new _.iY("APP_STORE_TOKEN");var PZ=function(L,Z){this.store=L;this.controller=Z};
_.f(PZ,q1);PZ.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V,M,G,D,l,v,R,K,U,d,h,E,A,J;return _.b(function(C){if(C.nextAddress==1){S=_.n(L,_.Rj);if(T=(u=S)==null?void 0:u.contentId)for(V=_.O(((W=S)==null?void 0:W.actions)||[]),M=V.next();!M.done;M=V.next())G=M.value,Pgq(N,G,T);v=(D=Z)==null?void 0:(l=D.form)==null?void 0:l.element;return C.yield(_.H2(v,[L,{impression:(R=Z)==null?void 0:R.disableClickTracking}]).catch(function(){}),2)}K=C.yieldResult;
((U=K)==null?0:(d=U.data)==null?0:(h=d.feedbackResponses)==null?0:h.length)&&(A=(E=K.data.feedbackResponses[0])==null?void 0:E.followUpDialog)&&T&&(J=N.controller)!=null&&J.feedbackDialogMap.set(T,A);_.w7(C)})};
var Pgq=function(L,Z,N){var S=_.n(Z,_.q2);if(S){S=_.O(S.commands||[]);for(var u=S.next();!u.done;u=S.next())Pgq(L,u.value,N)}_.n(Z,_.YZ)&&L.store.dispatch(_.Mr("commandEntity",qQ_(N),{key:N,command:Z}));_.n(Z,Rkl)&&L.store.dispatch(_.Mr("commandEntity",qQ_(N),{key:N,command:Z}))};
PZ[F2]=[Em,jH];var pt=function(L){this.controller=L};
_.f(pt,q1);pt.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W;return _.b(function(V){S=_.n(L,_.xE);T=(u=S)==null?void 0:u.targetId;if(((W=S)==null?void 0:W.signal)!=="TELL_US_WHY"||!T)return V.return();N.controller.openDialog(T,Z);_.w7(V)})};
pt[F2]=[jH];var zZ=function(L){this.store=L};
_.f(zZ,q1);zZ.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V,M,G;return _.b(function(D){S=_.n(L,OpL);T=(u=S)==null?void 0:u.contentId;M=(W=Z)==null?void 0:(V=W.form)==null?void 0:V.element;G=_.H2(M,[L]);T&&N.undo(T);return D.yield(G,0)})};
zZ.prototype.undo=function(L){this.store.dispatch(_.Mr("commandEntity",qQ_(L),{key:L,command:void 0}))};
zZ[F2]=[Em];var mG=function(L){this.JSC$17450_commandHandler=L};
_.f(mG,q1);mG.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W,V,M,G;return _.b(function(D){N=_.n(L,BEV);S=N.flowStateKey;u=N.validationFailureCommand;T=N.submitValidFormCommand;W=LHP(_.si,[S||""]);V=_.n(W,LZV);((M=V)==null?0:M.isValid)&&T&&Z.JSC$17450_commandHandler.resolveCommand(T);((G=V)==null?0:G.isValid)||!u||Z.JSC$17450_commandHandler.resolveCommand(u);_.w7(D)})};
mG[F2]=[_.$s];var J$=function(L){this.innertubeTransportService=L};
_.f(J$,q1);J$.prototype.resolveCommand=function(L,Z){var N=this,S;return _.b(function(u){return u.yield(_.aV(N.innertubeTransportService,L,(S=Z)==null?void 0:S.form).then(function(T){var W,V;Z==null||(W=Z.commandController)==null||(V=W.onSuccess)==null||V.call(W,L,T)},function(T){var W,V;
Z==null||(W=Z.commandController)==null||(V=W.onServerError)==null||V.call(W,L,T)}),0)})};
J$[F2]=[_.bv];var Ct=function(){};
_.f(Ct,q1);Ct.prototype.resolveCommand=function(L){var Z,N,S,u;return _.b(function(T){if(Z=_.n(L,_.Xph)){if(N=Z.gtmId)S=_.X7("GL",""),_.dH(N,S);(u=Z.gtmData)&&_.au(u)}_.w7(T)})};var rQ=function(L,Z,N){this.innertubeTransportService=L;this.JSC$17461_actionRouter=Z;this.JSC$17461_screenManager=N};
_.f(rQ,q1);rQ.prototype.resolveCommand=function(L){var Z=this,N,S;return _.b(function(u){N=_.n(L,XcQ);if(!N)return u.return();S=N.command;if(!S)return u.return();Z.JSC$17461_actionRouter.triggerAction("yt-insert-rich-section-action",N);return u.yield(_.aV(Z.innertubeTransportService,S,{disableCache:!0}).then(function(T){L.clickTrackingParams&&(T==null?0:T.trackingParams)&&Z.JSC$17461_screenManager.graftServerVe(T.trackingParams,_.Mg(L.clickTrackingParams))}),0)})};
rQ[F2]=[_.bv,GW,_.a3];gx1.bind(null,LJ);var pdv=gx1.bind(null,pgO);FvH.bind(null,LJ);var z18=FvH.bind(null,pgO);DFH.bind(null,LJ);var mZg=DFH.bind(null,pgO);var Qu=function(){};
_.f(Qu,q1);
Qu.prototype.resolveCommand=function(L){var Z,N,S,u,T,W,V,M,G,D;return _.b(function(l){Z=_.n(L,eyq);if(!Z)return l.return();S=((N=Z.operations)==null?void 0:N.operations)||[];u=_.O(S);for(T=u.next();!T.done;T=u.next())if(W=T.value,W.insertItemSectionContent){var v=W.insertItemSectionContent,R=v.contents||[];v.insertByPositionInSection?pdv(v.insertByPositionInSection.sectionTargetId,R,v.insertByPositionInSection.position):v.insertByRelativePositionInSection&&v.insertByRelativePositionInSection.sectionTargetId&&v.insertByRelativePositionInSection.itemTargetId&&
z18(v.insertByRelativePositionInSection.sectionTargetId,v.insertByRelativePositionInSection.itemTargetId,R,v.insertByRelativePositionInSection.relativePosition)}else W.replaceSection?(v=W.replaceSection,R={},v.replaceByTargetId?R=v.replaceByTargetId:v.replaceByGroupId&&(R={targetId:v.replaceByGroupId.groupId,newContent:v.replaceByGroupId.newContent,undoKey:""}),R.newContent&&JRN(R.targetId,{continuationItems:[R.newContent]})):W.removeItem?(v=W.removeItem,v.removeByTargetId&&v.sectionTargetId&&mZg(v.sectionTargetId,
v.removeByTargetId.targetIds||[])):W.removeSection&&(W.removeSection.removeByTargetId?(V=void 0,JUv(((V=W.removeSection)==null?void 0:V.removeByTargetId.targetIds)||[])):W.removeSection.removeByGroupId&&(M=void 0,JUv(((M=W.removeSection)==null?void 0:M.removeByGroupId.groupIds)||[])));D=((G=Z.operations)==null?void 0:G.scrollConfig)||{};Cg8(D);_.w7(l)})};
var JUv=function(L){L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next())JRN(Z.value,{continuationItems:[]})},Cg8=function(L){if(L.scrollToItem){var Z=L.scrollToItem.item||{},N=Z.itemTargetId;
Z=Z.sectionTargetId;if(N&&Z){var S=document.querySelector("[data-target-id="+Z+"]"),u=S==null?void 0:S.querySelector("[data-target-id="+N+"]");S&&u&&setTimeout(function(){var T=u.offsetTop-S.offsetTop,W;if(((W=L.scrollToItem)==null?void 0:W.scrollPosition)==="SCROLL_POSITION_CENTER")T-=S.offsetHeight/2,T+=u.offsetHeight/2;else{var V;((V=L.scrollToItem)==null?void 0:V.scrollPosition)==="SCROLL_POSITION_END"&&(T-=S.offsetHeight,T+=u.offsetHeight)}S.scroll({top:T,behavior:"smooth"})},100)}}};var Xj=new _.iY("CLIENT_NAME_TOKEN");var rUq=new _.iY("DEFAULT_STORE_EXPIRATION_TOKEN");var cmB=new _.iY("CLIENT_LOCATION_SERVICE_TOKEN");var A$=function(L,Z,N){this.clientName=L||_.X7("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=Z||_.eD.getInstance();this.JSC$17489_commandHandler=N||_.qd.instance};
_.f(A$,q1);A$.prototype.resolveCommand=function(L){var Z=this,N,S;return _.b(function(u){S=(N=_.n(L,MhO))==null?void 0:N.onComplete;Z.clientLocationService.clearLocationPlayabilityToken(Z.clientName);S&&Z.JSC$17489_commandHandler.resolveCommand(S);_.w7(u)})};
A$[F2]=[Xj,cmB,_.$s];var HZ=function(L){this.innertubeTransportService=L};
_.f(HZ,q1);HZ.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W;return _.b(function(V){T=(S=Z)==null?void 0:(u=S.form)==null?void 0:u.element;return V.yield(_.aV(N.innertubeTransportService,L,(W=Z)==null?void 0:W.form).then(function(M){l_s(T,new CustomEvent("yt-service-request-completed"),{data:M},_.X7("openPopupConfig"))}),0)})};
HZ[F2]=[_.bv];var BZ=function(){};
_.f(BZ,q1);BZ.prototype.resolveCommand=function(L){var Z,N;return _.b(function(S){Z=_.n(L,iTt);N=document.querySelector("mini-app-container-view-model");if(!Z||!N)return S.return();Z.isPlaying?N.dispatchEvent(new Event("play")):N.dispatchEvent(new Event("pause"));_.w7(S)})};var xY=function(){};
_.f(xY,q1);xY.prototype.resolveCommand=function(L){var Z,N,S,u,T,W,V;return _.b(function(M){Z=_.n(L,z6Y);if((N=Z)==null||!N.paramKeys)return M.return();S=Z.paramKeys;u=_.qG(window.location.href);T=_.O(S);for(W=T.next();!W.done;W=T.next())V=W.value,u.JSC$10031_queryData_.remove(V);window.history.replaceState(window.history.state,document.title,u.toString());_.w7(M)})};var QSq=function(){this.dropdownMap=new Map};_.Xd5=new _.iY("DROPDOWN_CONTROLLER_TOKEN");var qx=function(L){this.controller=L};
_.f(qx,q1);qx.prototype.resolveCommand=function(L){var Z=this,N,S,u,T;return _.b(function(W){N=_.n(L,lRO);if(!N)return W.return();S=N;u=S.dropdownId;T=S.selectedOptionIndex;if(u===void 0||T===void 0)return W.return();var V=Z.controller.dropdownMap.get(u);V&&V(T);_.w7(W)})};
qx[F2]=[_.Xd5];var LI=function(L){this.controller=L};
_.f(LI,q1);LI.prototype.resolveCommand=function(L){var Z=this,N;return _.b(function(S){return(N=_.n(L,kWN))?S.yield(Z.controller.closeDialog(),0):S.return()})};
LI[F2]=[_.pb];var Zn=function(L){this.controller=L};
_.f(Zn,q1);Zn.prototype.resolveCommand=function(L){var Z=this,N,S;return _.b(function(u){N=_.n(L,Wc5);if(!N)return u.return();var T,W=N.panelIdentifier||((T=N.identifier)==null?void 0:T.tag);if(!W)throw Error("Bi");return(S=W)?u.yield(Z.controller.hidePanel({identifier:S}),0):u.jumpTo(0)})};
Zn[F2]=[_.EB];var N_=function(L){this.controller=L};
_.f(N_,q1);N_.prototype.resolveCommand=function(L){var Z=this,N;return _.b(function(S){return(N=_.n(L,BX0))?S.yield(Z.controller.closeSheet(),0):S.return()})};
N_[F2]=[_.Po];var i6=function(L,Z){this.innertubeTransportService=L;this.controller=Z};
_.f(i6,q1);i6.prototype.resolveCommand=function(L){var Z=this,N,S,u,T;return _.b(function(W){if(W.nextAddress==1)return N=_.n(L,V3q),(S=N)!=null&&S.panelId?W.yield(Z.controller.getReloadContinuation(N.panelId),2):W.return();if(W.nextAddress!=3)return(u=W.yieldResult)?W.yield(_.aV(Z.innertubeTransportService,L,{continuation:u}),3):W.return();T=W.yieldResult;return W.yield(Z.controller.updatePanel({identifier:N.panelId,panelContents:T.content,shouldFocus:!1}),0)})};
i6[F2]=[_.bv,_.EB];var u6=function(L,Z,N){this.innertubeTransportService=L;this.JSC$17531_screenManager=Z;this.JSC$17531_commandHandler=N};
_.f(u6,q1);
u6.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W,V;return _.b(function(M){if(M.nextAddress==1){N=_.n(L,_.Sjt);if(!N)return M.return();if(N.commands)for(S=_.O(N.commands),u=S.next();!u.done;u=S.next())T=u.value,Z.JSC$17531_commandHandler.resolveCommand(T,{disableClickTracking:!0});W=_.Mg(L.clickTrackingParams);_.fF(Z.JSC$17531_screenManager,21760,W,{layer:7,parentLayer:0});return M.yield(_.aV(Z.innertubeTransportService,L),2)}V=M.yieldResult;if(!V)return M.return();Z.JSC$17531_screenManager.graftServerVe(V.trackingParams,W,
7);_.w7(M)})};
u6[F2]=[_.bv,_.a3,_.$s];var TP=new _.iY("PANEL_LOADING_STRATEGY_TOKEN");var tA=function(L,Z){this.controller=L;this.panelLoadingStrategy=Z};
_.f(tA,q1);
tA.prototype.resolveCommand=function(L,Z){var N=this,S,u,T;return _.b(function(W){S=_.n(L,qBs);if((u=S)==null||!u.panelLoadingStrategy)return W.return();T=function(V){var M,G,D,l,v,R,K,U,d,h;return _.b(function(E){G=_.n((M=V.dialogViewModel)==null?void 0:M.header,vCM);D={viewModel:V.dialogViewModel};l={};if(K=_.c("web_enable_dialog_header_label")?(v=G)==null?void 0:(R=v.headline)==null?void 0:R.content:void 0)l.ariaLabel=K;S.dismissOnBackgroundTap===!1&&(l.isModal=!0);return V.dialogViewModel?E.yield(N.controller.openDialog(D,
(h=(U=Z)==null?void 0:(d=U.form)==null?void 0:d.element)!=null?h:document.body,l),0):E.return()})};
return W.yield(N.panelLoadingStrategy.execute({command:L,data:S.panelLoadingStrategy,renderFn:T,createScreenConfig:{layer:4}}),0)})};
tA[F2]=[_.pb,TP];var OX=function(L,Z,N){this.innertubeTransportService=L;this.controller=Z;this.JSC$17551_screenManager=N};
_.f(OX,q1);
OX.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V,M,G,D,l,v,R,K,U,d,h;return _.b(function(E){switch(E.nextAddress){case 1:S=_.n(L,_.oj);if(!S)return E.return();var A,J=S.panelIdentifier||((A=S.identifier)==null?void 0:A.tag);if(!J)throw Error("Bi");u=J;return E.yield(N.controller.isVisible(u,!0),2);case 2:if((T=E.yieldResult)&&S.blockIfPanelOpen)return E.return();M=(V=(W=N.controller).getPanelContent)==null?void 0:V.call(W,u);if(!(A=M))if(S){var C;A=((C=S.globalConfiguration)==null?void 0:
C.initialState)||S.engagementPanel;if(C=!A)C=!!(S==null?0:(J=S.engagementPanelPresentationConfigs)==null?0:J.engagementPanelPopupPresentationConfig);C&&(A=_.l5f(S.panelIdentifier,S.identifier))}else A=void 0;G=A;D=S.engagementPanelPresentationConfigs;l=S.engagementPanelExtras;return E.yield(N.controller.showPanel({identifier:u,panelContents:G,config:D,extras:l,target:(v=Z)==null?void 0:(R=v.form)==null?void 0:R.element}),3);case 3:if(!S.globalConfiguration){E.jumpTo(0);break}if(S.globalConfiguration.reuseModelAndState&&
_.c("enable_ai_companion")&&(d=(U=(K=N.controller).getPanelContent)==null?void 0:U.call(K,u)))return E.return();_.fF(N.JSC$17551_screenManager,32633);return E.yield(_.aV(N.innertubeTransportService,L),5);case 5:return h=E.yieldResult,N.JSC$17551_screenManager.graftServerVe(h.trackingParams),E.yield(N.controller.updatePanel({identifier:u,panelContents:h.content,shouldFocus:!0,extras:l,updatePanelContinuationData:h.updatePanelContinuationData}),0)}})};
OX[F2]=[_.bv,_.EB,_.a3];var Wu=function(L,Z){this.controller=L;this.panelLoadingStrategy=Z};
_.f(Wu,q1);Wu.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V,M,G,D;return _.b(function(l){S=_.n(L,_.bgL);if((u=S)==null||!u.panelLoadingStrategy)return l.return();V=AU5(N.controller,(T=Z)==null?void 0:(W=T.form)==null?void 0:W.element);G=(M=S.contextualSheetPresentationConfig)==null?void 0:M.position;D=function(v){return _.b(function(R){return v.sheetViewModel?R.yield(N.controller.openSheet({viewModel:v.sheetViewModel,sheetPosition:G},V),0):R.return()})};
return l.yield(N.panelLoadingStrategy.execute({command:L,data:S.panelLoadingStrategy,renderFn:D,createScreenConfig:{layer:0}}),0)})};
Wu[F2]=[_.Po,TP];var V4=function(L,Z){this.controller=L;this.JSC$17562_commandHandler=Z};
_.f(V4,q1);V4.prototype.resolveCommand=function(L,Z){var N=this,S,u,T;return _.b(function(W){if(W.nextAddress==1){S=_.n(L,G2N);var V=_.n(S.showCommand,_.oj),M,G,D=(G=V==null?void 0:V.panelIdentifier)!=null?G:V==null?void 0:(M=V.identifier)==null?void 0:M.tag;if(!D)throw Error("Ci");u=D;return W.yield(N.controller.isVisible(u),2)}return(T=W.yieldResult)?W.yield(N.controller.hidePanel({identifier:u}),0):W.yield(N.JSC$17562_commandHandler.resolveCommand(S.showCommand,Z),0)})};
V4[F2]=[_.EB,_.$s];var b6=function(L,Z,N){this.innertubeTransportService=L;this.controller=Z;this.JSC$17565_screenManager=N};
_.f(b6,q1);
b6.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W,V,M,G,D,l,v,R,K,U,d,h,E,A,J,C,X,L1;return _.b(function(Fw){switch(Fw.nextAddress){case 1:return S=N=_.n(L,lA0),u=S.targetPanelIdentifier,T=S.contentSourcePanelIdentifier,W=S.globalConfiguration,((V=u)==null?0:V.tag)&&((M=T)==null?0:M.tag)?W?Fw.yield(Z.controller.showPanel({identifier:u.tag,panelContents:_.l5f(u.tag,u)}),5):Fw.yield((v=(l=Z.controller).getPanel)==null?void 0:v.call(l,T.tag),4):Fw.return();case 4:R=Fw.yieldResult;G=(K=R)==
null?void 0:(d=(U=K).getPanelContent)==null?void 0:d.call(U);Fw.jumpTo(3);break;case 5:return Fw.yield(_.aV(Z.innertubeTransportService,L),6);case 6:h=Fw.yieldResult,((E=h)==null?0:E.trackingParams)&&Z.JSC$17565_screenManager.graftServerVe(h.trackingParams),G=(A=h)==null?void 0:A.content,D=(J=h)==null?void 0:J.updatePanelContinuationData;case 3:if(X=(C=G)==null?void 0:C.engagementPanelSectionListRenderer)return Fw.yield(Z.controller.showPanel({identifier:u.tag,panelUpdatableFields:{content:X.content,
secondaryHeaderContent:(L1=X.header)!=null?L1:{},targetId:X.targetId},updatePanelContinuationData:D}),0);Fw.jumpTo(0)}})};
b6[F2]=[_.bv,_.EB,_.a3];var M_=function(){};
_.f(M_,q1);M_.prototype.resolveCommand=function(L){var Z,N,S;return _.b(function(u){if(u.nextAddress==1)return(Z=_.n(L,cKQ))?u.yield(_.Z7(),2):u.return();N=u.yieldResult;if(!N)return u.return();var T=N,W=(S=Z)==null?void 0:S.languageCode,V;(T==null?0:(V=T.isReady)==null?0:V.call(T))&&(W=vxH(T,W))&&T.setAudioTrack(W);_.w7(u)})};var g4=function(){};
_.f(g4,q1);var Hsm=function(L){var Z;return _.b(function(N){Z=_.X7("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;L.JSC$17576_mainAppPlayer=new iz(Z);document.addEventListener("yt-page-data-updated",L.JSC$17576_pauseOnNavigation.bind(L));_.w7(N)})};
g4.prototype.JSC$17576_pauseOnNavigation=function(){var L=this,Z,N;return _.b(function(S){if(S.nextAddress==1)return Z=L.JSC$17576_mainAppPlayer,S.yield(Z.api,2);N=S.yieldResult;N.pauseVideo();_.w7(S)})};
var B7g=function(L,Z,N){var S;return _.b(function(u){S=L.JSC$17576_mainAppPlayer;return u.yield(S.loadVideoWithPlayerVars({videoId:Z,audio_only:"1",player_params:N}),0)})};
g4.prototype.pauseVideo=function(){var L=this,Z,N;return _.b(function(S){if(S.nextAddress==1)return Z=L.JSC$17576_mainAppPlayer,S.yield(Z.api,2);N=S.yieldResult;N.pauseVideo();_.w7(S)})};
g4.prototype.playVideo=function(){var L=this,Z,N;return _.b(function(S){if(S.nextAddress==1)return Z=L.JSC$17576_mainAppPlayer,S.yield(Z.api,2);N=S.yieldResult;N.playVideo();_.w7(S)})};
var xZs=function(L){var Z,N;return _.b(function(S){if(S.nextAddress==1)return Z=L.JSC$17576_mainAppPlayer,S.yield(Z.api,2);N=S.yieldResult;N.mute();_.w7(S)})},q3w=function(L){var Z,N;
return _.b(function(S){if(S.nextAddress==1)return Z=L.JSC$17576_mainAppPlayer,S.yield(Z.api,2);N=S.yieldResult;N.unMute();_.w7(S)})},Ltv=function(L,Z){return _.b(function(N){switch(N.nextAddress){case 1:switch(Z){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return N.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return N.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return N.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return N.jumpTo(5)}N.jumpTo(0);break;case 2:return N.yield(L.playVideo(),7);case 7:N.jumpTo(0);break;case 3:return N.yield(L.pauseVideo(),8);case 8:N.jumpTo(0);break;case 4:return N.yield(xZs(L),9);case 9:N.jumpTo(0);break;case 5:return N.yield(q3w(L),10);case 10:N.jumpTo(0)}})};
g4.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W,V,M,G,D,l,v;return _.b(function(R){return R.nextAddress==1?(N=_.n(L,H60),((S=N)==null?0:S.newPlaybackParams)||((u=N)==null?0:u.controlAction)?Z.JSC$17576_mainAppPlayer?R.jumpTo(2):R.yield(Hsm(Z),2):R.return()):((T=N)==null?0:T.newPlaybackParams)?(M=(W=N)==null?void 0:(V=W.newPlaybackParams)==null?void 0:V.externalVideoId,v=(l=(G=N)==null?void 0:(D=G.newPlaybackParams)==null?void 0:D.playerParams)!=null?l:"",M?R.yield(B7g(Z,M,v),0):R.return()):
R.yield(Ltv(Z,N.controlAction),0)})};var GP=function(L){this.JSC$17583_commandHandler=L};
_.f(GP,q1);
GP.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W,V;return _.b(function(M){if(M.nextAddress==1)return(N=_.n(L,n3L))?M.yield(_.Z7(),2):M.return();S=M.yieldResult;if(!S)return M.return();var G=S,D=(u=N)==null?void 0:u.languageCode,l=(T=N)==null?void 0:T.isAutoTranslated;G.getVideoData&&_.RPx(G).length&&((D=nxL(G,D,l))?G.setOption("captions","track",D):(G.setOption("captions","stickyLoading",{}),G.setOption("captions","track",{})));W=S.isSubtitlesOn()?_.iB("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.iB("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");V=_.m3(W,5E3);Z.JSC$17583_commandHandler.resolveCommand(V);_.w7(M)})};
GP[F2]=[_.$s];var Fb=function(L,Z){this.shortsPlayerPromise=L;this.JSC$17587_commandHandler=Z};
_.f(Fb,q1);
Fb.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W,V,M,G;return _.b(function(D){if(D.nextAddress==1)return(N=_.n(L,ChN))?D.yield(Z.shortsPlayerPromise,2):D.return();S=D.yieldResult;var l=KvH(S);l!=null&&l.length||(S.loadModule("captions"),l=KvH(S));u=l;if((T=u)==null||!T.length)return W=_.iB("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),V=_.m3(W),Z.JSC$17587_commandHandler.resolveCommand(V),D.return();S.toggleSubtitles();M=S.isSubtitlesOn()?_.iB("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.iB("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");G=_.m3(M);Z.JSC$17587_commandHandler.resolveCommand(G);_.w7(D)})};
Fb[F2]=[_.PuO,_.$s];var $8=function(L){this.JSC$17590_actionRouter=L;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(Z,N){Z.triggerAction("yt-dismiss-shopping-timely-shelf-action",N)}]])};
_.f($8,q1);$8.prototype.resolveCommand=function(L){var Z=this,N,S,u;return _.b(function(T){N=_.n(L,yKO);if((S=N)==null||!S.overlayId)return T.return();u=Z.dismissPlayerOverlayActions.get(N.overlayId);if(!u)throw Error("Di`"+N.overlayId);u(Z.JSC$17590_actionRouter,N);_.w7(T)})};
$8[F2]=[GW];var Dn=function(L){this.JSC$17594_playerPromise=L};
_.f(Dn,q1);Dn.prototype.resolveCommand=function(L){var Z=this,N,S,u,T;return _.b(function(W){if(W.nextAddress==1)return(N=_.n(L,M3t))?W.yield(Z.JSC$17594_playerPromise,2):W.return();S=W.yieldResult;u=S.getVideoData().video_id;N.videoId===u&&(T=Number(N.offsetFromVideoStartMilliseconds),T>=0&&S.seekTo(T/1E3));_.w7(W)})};
Dn[F2]=[_.HQ];var Zxs=_.qj("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),l6=function(L){this.store=L};
_.f(l6,q1);
var NFY=function(L){var Z,N,S,u;return _.b(function(T){if(T.nextAddress==1)return Z=_.X7("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,N=_.X7("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,S=Z||N,L.JSC$17598_mainAppPlayer=new iz(S),T.yield(L.JSC$17598_mainAppPlayer.api,2);u=T.yieldResult;u.addEventListener("onStateChange",L.JSC$17598_playerStateChangeListener.bind(L));document.addEventListener("yt-page-data-updated",L.JSC$17598_pauseOnNavigation.bind(L));window.addEventListener("state-navigatestart",
L.JSC$17598_pauseOnNavigation.bind(L));_.w7(T)})};
l6.prototype.JSC$17598_playerStateChangeListener=function(L){switch(L){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"}SNq(this)};
var SNq=function(L){L.store.dispatch(_.Mr("sfvAudioItemCurrentlyPlayingEntity",Zxs,{key:Zxs,externalVideoId:L.externalVideoId,sfvAudioItemPlaybackState:L.playbackState,nowPlayingEntityValue:L.nowPlayingEntityValue}))};
l6.prototype.JSC$17598_pauseOnNavigation=function(){var L=this,Z,N,S,u;return _.b(function(T){if(T.nextAddress==1){if(!L.JSC$17598_mainAppPlayer){var W=new _.sr("Error: mainAppPlayer is unavailable",L.JSC$17598_mainAppPlayer);_.CA(W);return T.return()}return T.yield(L.JSC$17598_mainAppPlayer.api,2)}Z=T.yieldResult;S=(N=Z)==null?void 0:N.getPlayerState();S!==1||(u=Z)!=null&&u.pauseVideo();_.w7(T)})};
l6.prototype.playVideo=function(L,Z,N){var S=this,u,T;return _.b(function(W){if(W.nextAddress==1)return W.yield((u=S.JSC$17598_mainAppPlayer)==null?void 0:u.api,2);T=W.yieldResult;if(!S.JSC$17598_mainAppPlayer||!T){var V=new _.sr("Error: mainAppPlayer is unavailable",S.JSC$17598_mainAppPlayer);_.CA(V);return W.return()}return W.yield(S.JSC$17598_mainAppPlayer.loadVideoWithPlayerVars({videoId:S.externalVideoId,audio_only:"1",start:L/1E3,end:L/1E3+Z,player_params:N}),0)})};
l6.prototype.pauseVideo=function(){var L=this,Z,N;return _.b(function(S){if(S.nextAddress==1){if(!L.JSC$17598_mainAppPlayer){var u=new _.sr("Error: mainAppPlayer is unavailable",L.JSC$17598_mainAppPlayer);_.CA(u);return S.return()}return S.yield(L.JSC$17598_mainAppPlayer.api,2)}Z=S.yieldResult;(N=Z)==null||N.pauseVideo();_.w7(S)})};
l6.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W,V,M,G,D,l,v,R,K,U,d,h,E,A,J;return _.b(function(C){if(C.nextAddress==1)return N=_.n(L,pSM),u=(S=N)==null?void 0:S.nowPlayingEntityValue,W=(T=N)==null?void 0:T.externalVideoId,l=Number((D=(V=N)==null?void 0:(M=V.defaultStartPoints)==null?void 0:(G=M[0])==null?void 0:G.offsetMs)!=null?D:"0"),h=Number((d=(v=N)==null?void 0:(R=v.defaultStartPoints)==null?void 0:(K=R[0])==null?void 0:(U=K.duration)==null?void 0:U.seconds)!=null?d:"15"),J=(A=
(E=N)==null?void 0:E.playerParams)!=null?A:"",u&&W?Z.JSC$17598_mainAppPlayer?C.jumpTo(2):C.yield(NFY(Z),2):C.return();if(C.nextAddress!=6){if(Z.nowPlayingEntityValue&&u===Z.nowPlayingEntityValue)return Z.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?C.yield(Z.pauseVideo(),0):C.yield(Z.playVideo(l,h,J),0);Z.externalVideoId=W;Z.nowPlayingEntityValue=u;Z.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return C.yield(Z.playVideo(l,h,J),6)}SNq(Z);return C.jumpTo(0)})};
l6[F2]=[Cm];var vu=function(L){this.JSC$17616_commandHandler=L};
_.f(vu,q1);vu.prototype.resolveCommand=function(L,Z){var N=this,S,u,T;return _.b(function(W){if(W.nextAddress==1)return(S=_.n(L,Kiq))?W.yield(_.Z7(),2):W.return();u=W.yieldResult;if(!u)return W.return();(T=f5H(u))&&N.JSC$17616_commandHandler.resolveCommand(T,Z);_.w7(W)})};
vu[F2]=[_.$s];var oh=function(L){this.JSC$17622_commandHandler=L};
_.f(oh,q1);oh.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V;return _.b(function(M){if(M.nextAddress==1)return(S=_.n(L,fjh))?M.yield(_.Z7(),2):M.return();u=M.yieldResult;if(!u)return M.return();(T=Y2h(u))?N.JSC$17622_commandHandler.resolveCommand(T,Z):(W=_.iB("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),V=_.m3(W),N.JSC$17622_commandHandler.resolveCommand(V));_.w7(M)})};
oh[F2]=[_.$s];var Rh=function(L){this.JSC$17625_playerPromise=L};
_.f(Rh,q1);Rh.prototype.resolveCommand=function(L){var Z=this,N,S;return _.b(function(u){if(u.nextAddress==1)return(N=_.n(L,e6I))?u.yield(Z.JSC$17625_playerPromise,2):u.return();S=u.yieldResult;S.isFullscreen()&&S.wakeUpControls();_.w7(u)})};
Rh[F2]=[_.HQ];var cu=function(L){this.JSC$17628_playerPromise=L};
_.f(cu,q1);cu.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W;return _.b(function(V){if(V.nextAddress==1){N=_.n(L,gvY);if(!N)return V.return();S=N.overlayRenderer;return S?(u=_.n(S,sfL))?V.yield(Z.JSC$17628_playerPromise,3):V.jumpTo(0):V.return()}T=V.yieldResult;T.renderChapterSeekingAnimation(1,_.jM(u.text),(W=u.icon)==null?void 0:W.iconType);_.w7(V)})};
cu[F2]=[_.HQ];var nI=function(L){this.store=L};
_.f(nI,q1);
nI.prototype.resolveCommand=function(L){var Z=this,N,S,u;return _.b(function(T){if(T.nextAddress==1){N=_.n(L,BSN);if(!N)return T.return();S="";(u=Z.store.getState().collabInviteLink)&&N.id===u.playlistId?S=u.inviteLinkURL:N.shortUrl&&(S=N.shortUrl);return S?T.yield(navigator.clipboard.writeText(S),3):T.jumpTo(0)}var W={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.iB("COPY_LINK_SUCCESS_TOAST")}}}}};_.GR().resolve(_.$s).resolveCommand(W);_.w7(T)})};
nI[F2]=[Em];var KI=function(L,Z){this.innertubeTransportService=L;this.JSC$17638_commandHandler=Z};
_.f(KI,q1);KI.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V,M,G,D,l,v;return _.b(function(R){if(R.nextAddress==1)return(S=_.n(L,_.Zj))?R.yield(_.aV(N.innertubeTransportService,L,(u=Z)==null?void 0:u.form),2):R.return();(T=R.yieldResult)&&T.errorMetadata&&(W=T,V=_.m3(W.error.message),N.JSC$17638_commandHandler.resolveCommand(V));M=T;if((G=M)==null?0:G.actions)for(D=_.O(M.actions),l=D.next();!l.done;l=D.next())v=l.value,N.JSC$17638_commandHandler.resolveCommand(v);_.w7(R)})};
KI[F2]=[_.bv,_.$s];var fI=function(){};
_.f(fI,q1);fI.prototype.resolveCommand=function(L){var Z;return _.b(function(N){Z=_.n(L,pLq);if(!Z)return N.return();(new bz0(Z)).show();_.w7(N)})};_.k8=new _.iY("PLAYLIST_EDIT_CONTROLLER_TOKEN");var y4=function(L,Z,N,S){this.store=L;this.innertubeTransportService=Z;this.controller=N;this.JSC$17646_commandHandler=S};
_.f(y4,q1);
y4.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V,M,G,D,l,v,R,K,U,d,h,E,A,J,C,X,L1,Fw,GB,Yt,lH,RF;return _.b(function(jf){if(jf.nextAddress==1){S=_.n(L,_.Ac);if(!S)return jf.return();if(S.clientActions){u=_.O(S.clientActions);for(T=u.next();!T.done;T=u.next())W=T.value,N.JSC$17646_commandHandler.resolveCommand(W);var f1,n0=Z==null?void 0:(f1=Z.form)==null?void 0:f1.element;n0&&_.QT(n0,"yt-dismissible-item-action",S.clientActions)}return jf.yield(_.aV(N.innertubeTransportService,L,(V=
Z)==null?void 0:V.form),2)}if(M=jf.yieldResult)M.errorMetadata?(G=M,D=_.m3(G.error.message),N.JSC$17646_commandHandler.resolveCommand(D),"error"in M&&((l=Z)==null?0:(v=l.commandController)==null?0:v.onServerError)&&((R=Z)==null||(K=R.commandController)==null||K.onServerError(L,M))):(U=Z)==null||(d=U.commandController)==null||(E=(h=d).onSuccess)==null||E.call(h,L,M);A=M;((J=A)==null?0:J.collaborationInviteLink)&&S.playlistId&&(_.c("web_enable_invite_collaborators_link")||_.c("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
N.store.dispatch(_.XK({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:S.playlistId,inviteLinkUrl:A.collaborationInviteLink}}));((C=A)==null?0:C.redirectEndpoint)&&N.JSC$17646_commandHandler.resolveCommand(A.redirectEndpoint);((X=A)==null?0:(L1=X.newHeader)==null?0:L1.playlistHeaderRenderer)?ixy(N.controller,A.newHeader.playlistHeaderRenderer):((Fw=A)==null?0:(GB=Fw.newHeader)==null?0:GB.musicEditablePlaylistDetailHeaderRenderer)&&ixy(N.controller,A.newHeader.musicEditablePlaylistDetailHeaderRenderer);
N.controller.playlistVideoListElement&&((Yt=A)==null?0:(lH=Yt.playlistEditResults)==null?0:(RF=lH[0])==null?0:RF.playlistEditVideoAddedResultData)&&((n0=N.controller.playlistVideoListElement)==null||n0.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:A.playlistEditResults[0].playlistEditVideoAddedResultData})));_.w7(jf)})};
y4[F2]=[Em,_.bv,_.k8,_.$s];var w4=function(L,Z){this.controller=L;this.JSC$17656_commandHandler=Z};
_.f(w4,q1);w4.prototype.resolveCommand=function(L,Z){var N=this,S,u,T;return _.b(function(W){S=_.n(L,x9q);N.controller.showRefreshPill&&((u=S)==null?0:u.command)&&(N.JSC$17656_commandHandler.resolveCommand((T=S)==null?void 0:T.command,Z),N.controller.showRefreshPill=!1);_.w7(W)})};
w4[F2]=[_.op,_.$s];var UX=function(L,Z){this.store=L;this.JSC$17660_commandHandler=Z||_.qd.instance};
_.f(UX,q1);UX.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V,M,G,D,l,v;return _.b(function(R){S=_.n(L,MQY);u=N.store.getState().radioButtonGroup;if((T=S)==null?0:T.command)N.JSC$17660_commandHandler.resolveCommand((W=S)==null?void 0:W.command,Z);else if(u&&((V=S)==null?void 0:V.formId)===u.currentFormId)for(M=Object.values(u.commandsMap),G=_.O(M),D=G.next();!D.done;D=G.next())l=D.value,(v=_.KY(l))&&N.JSC$17660_commandHandler.resolveCommand(v,Z);_.w7(R)})};
UX[F2]=[_.mc];var Y8=new _.iY("USER_PREFS");var e6=function(L){this.JSC$17665_prefCookie=L};
_.f(e6,q1);e6.prototype.resolveCommand=function(L){var Z=this,N;return _.b(function(S){(N=_.n(L,IXN))&&typeof N.useListView==="boolean"&&(_.OT(0,155,N.useListView),Z.JSC$17665_prefCookie.save());_.w7(S)})};
e6[F2]=[Y8];var Ih=function(L){this.JSC$17669_prefCookie=L};
_.f(Ih,q1);Ih.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W;return _.b(function(V){N=_.n(L,m9t);if((S=N)==null||!S.gl)return V.return();u=N.gl;T={persist_gl:"1",gl:u};Z.JSC$17669_prefCookie.set("gl",u);Z.JSC$17669_prefCookie.save();W=TZq(T);_.ke(W);_.w7(V)})};
Ih[F2]=[Y8];var d4=function(L){this.JSC$17673_prefCookie=L};
_.f(d4,q1);d4.prototype.resolveCommand=function(L){var Z=this,N,S;return _.b(function(u){N=_.n(L,LPl);if(!N)return u.return();S=!1;N.flagNum&&typeof N.value==="boolean"?(_.OT(0,N.flagNum,N.value),S=!0):N.key&&typeof N.stringValue==="string"&&(Z.JSC$17673_prefCookie.set(N.key,N.stringValue),S=!0);S&&Z.JSC$17673_prefCookie.save();_.w7(u)})};
d4[F2]=[Y8];var ah=new _.iY("PREF_STORAGE_PROMISE_TOKEN");var hA=function(L){this.JSC$17677_prefStoragePromise=L};
_.f(hA,q1);hA.prototype.resolveCommand=function(L){var Z=this,N,S;return _.b(function(u){if(u.nextAddress==1)return(N=_.n(L,NE5))?u.yield(Z.JSC$17677_prefStoragePromise,2):u.return();S=u.yieldResult;return S===void 0||N.key===void 0||N.value===void 0?u.return():u.yield(S.set(N.key,N.value),0)})};
hA[F2]=[ah];var urs=function(L){this.innertubeTransportService=L};
_.f(urs,q1);urs.prototype.resolveCommand=function(L,Z){var N=this,S,u;return _.b(function(T){(S=_.n(L,_.VkY))&&S&&S.isFirstRequest&&(_.oq("search_overview_answer"),_.Rq("so_rq",void 0,"search_overview_answer"));return T.yield(_.aV(N.innertubeTransportService,L,(u=Z)==null?void 0:u.form),0)})};
urs[F2]=[_.bv];var TFy=function(){};
_.f(TFy,q1);
TFy.prototype.resolveCommand=function(L){var Z,N,S,u,T,W,V,M,G;return _.b(function(D){Z=_.n(L,bft);if((N=Z)==null?0:N.sectionIdentifier){if(Z.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(u=(S=document.getElementsByTagName(Z.sectionIdentifier))==null?void 0:S.item(0))u.scrollIntoView({behavior:"smooth"}),(T=ViB(u))&&T.focus({preventScroll:!0});return D.return()}W=document.querySelector("[section-identifier="+Z.sectionIdentifier+"]");V=document.querySelector("[section-identifier="+Z.referenceSectionIdentifier+
"]");if(!W)return D.return();M=Z.verticalScrollOffsetDp?Z.verticalScrollOffsetDp:0;V&&(M-=V.offsetTop);window.scrollTo({top:W.offsetTop+M,behavior:"smooth"});(G=ViB(W))&&G.focus({preventScroll:!0})}_.w7(D)})};var sX=function(L){this.JSC$17689_commandHandler=L};
_.f(sX,q1);
sX.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W,V,M;return _.b(function(G){if(G.nextAddress==1){N=_.n(L,j2l);if(!N||!N.imageBytes||!navigator.clipboard)return G.return();if(N.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.CA(Error("Fi")),G.return();_.RS(G,2);u=(S=N)==null?void 0:S.imageBytes;T=u.replace(/-/g,"+").replace(/_/g,"/");W=b9t(T);V={};M=[new ClipboardItem((V[W.type]=W,V))];return G.yield(navigator.clipboard.write(M),4)}if(G.nextAddress!=2)return N.successCommand&&
Z.JSC$17689_commandHandler.resolveCommand(N.successCommand),_.SX(G,0);_.yd(G);N.errorCommand&&Z.JSC$17689_commandHandler.resolveCommand(N.errorCommand);_.w7(G)})};
sX[F2]=[_.$s];var j6=function(L,Z){this.innertubeTransportService=L;this.JSC$17693_commandHandler=Z};
_.f(j6,q1);j6.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V;return _.b(function(M){if(M.nextAddress==1)return(S=_.n(L,Eu0))?M.yield(_.aV(N.innertubeTransportService,L,(u=Z)==null?void 0:u.form),2):M.return();(T=M.yieldResult)&&T.errorMetadata&&S.onFailureCommand&&N.JSC$17693_commandHandler.resolveCommand(S.onFailureCommand);W=T;((V=W)==null?0:V.shareCommand)&&N.JSC$17693_commandHandler.resolveCommand(W.shareCommand,Z);_.w7(M)})};
j6[F2]=[_.bv,_.$s];var EX=function(){};
_.f(EX,q1);EX.prototype.resolveCommand=function(L){var Z,N;return _.b(function(S){Z=_.n(L,Apq);if(!Z||!navigator.share)return S.return();N={url:Z.url};try{return S.return(navigator.share(N))}catch(u){}_.w7(S)})};var Pu=function(){};
_.f(Pu,q1);Pu.prototype.resolveCommand=function(){return _.b(function(L){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.w7(L)})};var pI=function(L){this.JSC$17703_navigationConfirmationService=L};
_.f(pI,q1);pI.prototype.resolveCommand=function(){var L=this;return _.b(function(Z){L.JSC$17703_navigationConfirmationService.cancelPendingNavigation();_.w7(Z)})};
pI[F2]=[Yu];var zP=function(L){this.JSC$17706_screenManager=L};
_.f(zP,q1);zP.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V,M,G;return _.b(function(D){u=(S=Z.form)==null?void 0:S.event;W=(T=Z.form)==null?void 0:T.element;if(!u)throw new _.sr("Event not passed in when resolving command");V=_.O(u.composedPath());for(M=V.next();!M.done;M=V.next())if(G=M.value,G.tagName==="YT-COPY-LINK-RENDERER")return G.copyUrlToClipboard(),W&&_.ew(N.JSC$17706_screenManager,W),D.return();_.w7(D)})};
zP[F2]=[_.a3];var mN=function(){this.JSC$17710_miniAppClientDataProvider=_.GR().resolve(_.iZ)};
_.f(mN,q1);mN.prototype.resolveCommand=function(){var L=this,Z,N;return _.b(function(S){if(L.JSC$17710_miniAppClientDataProvider.clientData.has("video_id")){var u=L.JSC$17710_miniAppClientDataProvider,T=u.clientData.get("video_id");T&&u.clientData.delete("video_id");Z="https://youtube.com/watch?v="+T;N=_.P6(Z);if(N===void 0)throw Error("Gi`"+Z);_.Ls(window,N)}_.w7(S)})};var JA=function(){};
_.f(JA,q1);JA.prototype.resolveCommand=function(){return _.b(function(L){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.w7(L)})};var CI=function(){};
_.f(CI,q1);CI.prototype.resolveCommand=function(){var L;return _.b(function(Z){if(Z.nextAddress==1)return Z.yield(_.LZB(window.document.documentElement),2);(L=document.querySelector("mini-app-container-view-model iframe"))&&L.focus();_.w7(Z)})};var r4=function(L){this.JSC$17717_navigationConfirmationService=L};
_.f(r4,q1);
r4.prototype.resolveCommand=function(){var L=this;return _.b(function(Z){var N=L.JSC$17717_navigationConfirmationService,S=_.GR().resolve(_.kv),u;if(((u=N.navigateParams)==null?void 0:u.data)!==void 0){var T;_.oHl(S,N.navigateParams.endpoint,N.navigateParams.data,(T=N.navigateParams.navigationType)!=null?T:1,N.navigateParams.tempData,N.navigateParams.isMiniplayer,void 0,!0);N.navigateParams=void 0;N.customConfirmationCommand=void 0}else N.navigateParams&&(S.navigate(N.navigateParams.endpoint,N.navigateParams.reload,
N.navigateParams.params,N.navigateParams.tempData,N.navigateParams.requestType,N.navigateParams.createScreenConfig,!0),N.navigateParams=void 0,N.customConfirmationCommand=void 0);_.w7(Z)})};
r4[F2]=[Yu];var Q4=function(){};
_.f(Q4,q1);Q4.prototype.resolveCommand=function(){return _.b(function(L){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.w7(L)})};var Xb=function(L){this.JSC$17722_prefStorage=L};
_.f(Xb,q1);Xb.prototype.resolveCommand=function(){var L=this,Z,N;return _.b(function(S){switch(S.nextAddress){case 1:return S.yield(L.JSC$17722_prefStorage,2);case 2:return(Z=S.yieldResult)?S.yield(Z.set("sfvle",!1),3):S.return();case 3:return S.yield(Z.set("sfvles",!0),4);case 4:N=_.tq(),_.OT(0,203,!1),_.OT(0,204,!0),N.save(),_.w7(S)}})};
Xb[F2]=[ah];var AA=function(L){this.JSC$17725_prefStorage=L};
_.f(AA,q1);AA.prototype.resolveCommand=function(){var L=this,Z,N;return _.b(function(S){switch(S.nextAddress){case 1:return S.yield(L.JSC$17725_prefStorage,2);case 2:return(Z=S.yieldResult)?S.yield(Z.set("sfvle",!0),3):S.return();case 3:return S.yield(Z.set("sfvles",!0),4);case 4:N=_.tq(),_.OT(0,203,!0),_.OT(0,204,!0),N.save(),_.w7(S)}})};
AA[F2]=[ah];_.tNs=new _.iY("SNACKBAR_CONTROLLER_TOKEN");_.Oxg=new _.iY("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Hu=function(L){this.controller=L};
_.f(Hu,q1);Hu.prototype.resolveCommand=function(L){var Z=this,N;return _.b(function(S){N=_.n(L,xoM);if(!N)return S.return();var u=Z.controller;u.closeSnackbarFn&&u.closeSnackbarFn();_.w7(S)})};
Hu[F2]=[_.tNs];var Bu=function(L,Z){this.controller=L;this.sheetController=Z};
_.f(Bu,q1);Bu.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V,M;return _.b(function(G){S=_.n(L,LxI);if(!S)return G.return();W=AU5(N.sheetController,(u=Z)==null?void 0:(T=u.form)==null?void 0:T.element);V=_.n(S.content,GtI);if(!V)return G.return();var D=N.controller,l=V,v=(M=S.animationStyle)!=null?M:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(D.showSnackbarFn)D.showSnackbarFn({snackbarViewModel:l,animationStyle:v,durationMs:S.durationSeconds*1E3,target:W});else throw Error("yj");_.w7(G)})};
Bu[F2]=[_.tNs,_.Po];var x8=function(){};
_.f(x8,q1);x8.prototype.resolveCommand=function(L){var Z;return _.b(function(N){Z=_.n(L,ZON);if(!Z||typeof Z.key!=="string"||typeof Z.value!=="string")return N.return();window.localStorage.setItem(Z.key,Z.value);_.w7(N)})};var q_=function(L){this.store=L};
_.f(q_,q1);q_.prototype.resolveCommand=function(L){var Z=this,N;return _.b(function(S){N=_.n(L,tmA);if(!N||!N.stepId||!N.token)return S.return();Z.store.dispatch(mw5({stepId:N.stepId,token:N.token,isSelected:!1}));_.w7(S)})};
q_[F2]=[Em];var L3=function(L,Z,N){this.innertubeTransportService=L;this.store=Z;this.JSC$17744_screenManager=N};
_.f(L3,q1);
L3.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W,V,M,G,D,l,v,R,K,U,d,h,E,A,J,C,X,L1,Fw,GB;return _.b(function(Yt){N=_.n(L,Vm1);if(!N||(S=N.stepIds)==null||!S.length)return Yt.return();u=Z.store.getState().talkToRecs;T=[];W=[];V=_.O(N.stepIds);for(M=V.next();!M.done;M=V.next())for(G=M.value,D=void 0,(l=(D=u.stepStates[G])==null?void 0:D.userQuery)&&W.push({userQuery:l.userQuery,userQueryToken:l.token}),R=v=void 0,K=(R=(v=u.stepStates[G])==null?void 0:v.selectionStates)!=null?R:{},U=_.O(Object.entries(K)),
d=U.next();!d.done;d=U.next())h=d.value,E=_.O(h),A=E.next().value,J=E.next().value,C=A,X=J,X.isSelected&&T.push(C);L1={selectedChipTokens:T,userQueries:W,submittedStepIds:N.stepIds};Fw={browseTalk2recsFormData:L1};N.browseEndpoint?(GB=L,_.v9(GB,_.iv,N.browseEndpoint)):N.command&&(GB=N.command);return GB?Yt.yield(_.aV(Z.innertubeTransportService,GB,{formData:Fw,disableCache:!0}).then(function(lH){(lH==null?0:lH.trackingParams)&&Z.JSC$17744_screenManager.graftServerVe(lH==null?void 0:lH.trackingParams)}),
0):Yt.return()})};
L3[F2]=[_.bv,Em,_.a3];var Z1=function(L){this.store=L};
_.f(Z1,q1);Z1.prototype.resolveCommand=function(L){var Z=this,N;return _.b(function(S){N=_.n(L,Tu0);if(!N||!N.stepId||!N.token)return S.return();Z.store.dispatch(mw5({stepId:N.stepId,token:N.token,isSelected:!0}));_.w7(S)})};
Z1[F2]=[Em];var Na=function(L){this.store=L};
_.f(Na,q1);Na.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V;return _.b(function(M){S=_.n(L,Avq);if(!S||!S.stepId||!S.userQueryToken)return M.return();V=(W=(u=Z)==null?void 0:(T=u.form)==null?void 0:T.userQuery)!=null?W:"";N.store.dispatch(_.XK({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:S.stepId,userQueryToken:S.userQueryToken,userQuery:V}}));_.w7(M)})};
Na[F2]=[Em];_.Wty=new _.iY("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Sg=function(L){this.controller=L};
_.f(Sg,q1);Sg.prototype.resolveCommand=function(L){var Z=this,N,S,u,T;return _.b(function(W){N=_.n(L,Of0);if(!N)return W.return();S=N;u=S.id;T=S.isVisible;if(u===void 0||T===void 0)return W.return();var V;(V=Z.controller.timelyActionsMap.get(u))==null||V(u,T);_.w7(W)})};
Sg[F2]=[_.Wty];var VNw=function(){this.timelyActionsMap=new Map};var i5=function(L){this.JSC$17770_commandHandler=L};
_.f(i5,q1);i5.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W;return _.b(function(V){N=_.n(L,_.oFl);if(!N)return V.return();T=(S=N.item)==null?void 0:(u=S.notificationTextRenderer)==null?void 0:u.successResponseText;if(!T)return V.return();W=_.za(T);Z.JSC$17770_commandHandler.resolveCommand(W);_.w7(V)})};
i5[F2]=[_.$s];var u5=function(L,Z){this.innertubeTransportService=L;this.JSC$17775_playerApiPromise=Z};
_.f(u5,q1);
u5.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W,V,M,G,D;return _.b(function(l){if(l.nextAddress==1)return l.yield(Z.JSC$17775_playerApiPromise,2);N=l.yieldResult;S=N.getOption("captions","track");u=Object.assign({},_.n(L,_.naq));(W=(T=N.getVideoData())==null?void 0:T.video_id)?u.externalVideoId=W:_.Zx(Error("Hi"));if((V=S)==null?0:V.languageCode)u.languageCode=S.languageCode;if((M=S)==null?0:M.kind)u.kind=S.kind;if((G=S)==null?0:G.name)u.name=S.name;D=Object.assign({},L,{getTranscriptEndpoint:u});return l.yield(_.aV(Z.innertubeTransportService,
D),0)})};
u5[F2]=[_.bv,_.HQ];var Td=function(){};
_.f(Td,q1);Td.prototype.resolveCommand=function(L){var Z,N,S,u,T,W,V,M;return _.b(function(G){Z=_.n(L,bOO);if((N=Z)==null||!N.paramKeyValuePairs)return G.return();S=window.location.href;u=_.O(Z.paramKeyValuePairs);for(T=u.next();!T.done;T=u.next())W=T.value,W.key&&W.value&&(V={},S=_.TR(S,(V[W.key]=W.value,V)));M=_.GR().resolve(_.ku);_.fb(M,S);_.w7(G)})};_.tG=new _.iY("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var Of=function(){};
_.f(Of,QG);_.t=Of.prototype;_.t.getApiPaths=function(){return bPM};
_.t.getExtension=function(L){return _.n(L,_.so)};
_.t.isNavigationCommand=function(){return!0};
_.t.JSC$14174_getStoreKey=function(L){if((L=this.getExtension(L))&&L.videoId){var Z={videoId:L.videoId};L.playlistId&&(Z.playlistId=L.playlistId);L.index&&(Z.index=L.index);L.params&&(Z.params=L.params);return _.hd("next",Z)}};
_.t.JSC$14167_getClientScreen=function(L){var Z;return((Z=L.contentPlaybackContext)==null?void 0:Z.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.t.JSC$14167_buildRequest=function(L,Z,N){Z.videoId&&(L.videoId=Z.videoId);Z.playlistId&&(L.playlistId=Z.playlistId);Z.params&&(L.params=Z.params);Z.index!==void 0&&(L.playlistIndex=Z.index);L.racyCheckOk=!(!N.racyCheckOk&&!Z.racyCheckOk);L.contentCheckOk=!!Z.contentCheckOk;N.contentPlaybackContext&&(L.autonavState=N.contentPlaybackContext.autonavState,L.playbackContext={vis:N.contentPlaybackContext.vis,lactMilliseconds:N.contentPlaybackContext.lactMilliseconds});N.prefetchPlaybackContext&&(L.context.request||
(L.context.request={}),L.context.request.isPrefetch=!0);_.c("captions_hats_killswitch")||(Z=_.tq().getFlag(65),Z=Z!=null?!Z:!1,N=!!_.G7("yt-player-sticky-caption"),L.captionsRequested=Z&&N)};
_.t.getRequestConfig=function(L){L=this.JSC$14174_getStoreKey(L);var Z;L&&(Z={storeStrategy:{storeKey:L}});_.c("web_log_player_watch_next_ticks")&&(Z=Z||{},Z.requestTick="wn_s",Z.responseTick="wn_r");return Z};
var W1=function(){};
_.f(W1,QG);W1.prototype.getApiPaths=function(){return bPM};
W1.prototype.getExtension=function(L){return _.n(L,_.k0)};
W1.prototype.JSC$14167_buildRequest=function(L,Z){Z.token&&(L.continuation=Z.token)};var VD=function(L,Z,N,S){this.controller=L;this.JSC$17795_playerApiPromise=Z;this.innertubeTransportService=N;this.JSC$17795_commandHandler=S};
_.f(VD,q1);
VD.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W,V,M,G,D,l,v,R,K,U,d,h,E,A;return _.b(function(J){if(J.nextAddress==1){N=_.n(L,IRN);if((S=N)==null||!S.watchEndpoint)return J.return();u=new Of;T=u.JSC$14167_getRequest(N.watchEndpoint);if(!T)return J.return();W=N.watchEndpoint.clickTrackingParams;return J.yield(_.Za(Z.innertubeTransportService,T.innerTubeRequest,T.input,W,T.config),2)}if(J.nextAddress!=3)return V=J.yieldResult,J.yield(Z.JSC$17795_playerApiPromise,3);M=J.yieldResult;M.updateVideoData({raw_watch_next_response:V});
if(K=(G=V)==null?void 0:(D=G.contents)==null?void 0:(l=D.twoColumnWatchNextResults)==null?void 0:(v=l.results)==null?void 0:(R=v.results)==null?void 0:R.contents)d=(U=K.find(function(C){return C.videoPrimaryInfoRenderer}))==null?void 0:U.videoPrimaryInfoRenderer,((h=d)==null?0:h.subtitle)&&bxk(Z.controller,d.subtitle);
(A=(E=V)==null?void 0:E.onUiReady)&&Z.JSC$17795_commandHandler.resolveCommand(A);_.w7(J)})};
VD[F2]=[_.tG,_.HQ,_.bv,_.$s];var MNc=function(){this.subtitleChangeCallbackMap=new Map},bxk=function(L,Z){L=_.O(L.subtitleChangeCallbackMap.values());
for(var N=L.next();!N.done;N=L.next())N=N.value,N(Z)};var b5=function(L,Z){this.JSC$17805_commandHandler=L;this.innertubeTransportService=Z};
_.f(b5,q1);
b5.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V,M,G,D,l,v,R,K,U,d,h,E,A;return _.b(function(J){switch(J.nextAddress){case 1:return(T=(S=Z)==null?void 0:(u=S.form)==null?void 0:u.element)&&_.y6(T),W=_.tq().get("hl"),V="",_.RS(J,2),J.yield(a5P(W),4);case 4:V=J.yieldResult;_.SX(J,3);break;case 2:return _.yd(J),T&&_.w3(T),_.CA(Error("Ji"),"ERROR"),J.return();case 3:M=_.n(L,CUL);if(!M)return T&&_.w3(T),J.return();(l=(G=M.commerceActionConfig)==null?void 0:(D=G.commandLifeCycleConfig)==null?
void 0:D.onStartCommand)&&N.JSC$17805_commandHandler.resolveCommand(l);return J.yield(_.aV(N.innertubeTransportService,L,{client_data:{paymentsClientToken:{token:V}}}),5);case 5:(v=J.yieldResult)?(T&&_.w3(T),((d=v)==null?0:d.command)&&N.JSC$17805_commandHandler.resolveCommand(v.command),(A=(h=M.commerceActionConfig)==null?void 0:(E=h.commandLifeCycleConfig)==null?void 0:E.onSuccessCommand)&&N.JSC$17805_commandHandler.resolveCommand(A)):(T&&_.w3(T),_.CA(Error("Ki")),(U=(R=M.commerceActionConfig)==
null?void 0:(K=R.commandLifeCycleConfig)==null?void 0:K.onFailureCommand)&&N.JSC$17805_commandHandler.resolveCommand(U)),_.w7(J)}})};
b5[F2]=[_.$s,_.bv];var Ma=function(L,Z,N){this.store=L;this.JSC$17821_commandHandler=Z;this.innertubeTransportService=N};
_.f(Ma,q1);
Ma.prototype.resolveCommand=function(L,Z){var N=this,S,u,T,W,V,M,G,D,l;return _.b(function(v){S=_.n(L,rOh);u=S.googlePaymentPayload;S.onStartCommand&&N.JSC$17821_commandHandler.resolveCommand(S.onStartCommand);T=u.encryptedPurchaseParams;W=u.ypcLogWalletAnalyticDataEndpoint;V=S.serializedTransactionFlowLoggingParams;M=u.serializedPaymentsClientParams;G=S.ypcCujContext;l=jDt(N.innertubeTransportService,(D=Z)==null?void 0:D.form,T,W,V,M,G);return v.return(l.then(function(R){hP_(Z==null?void 0:Z.form,
!1);var K=N.store,U=N.JSC$17821_commandHandler,d=R.integratorData;d==null||d===""||R.error!=null?(String(R.error)==="-1"&&S.onDismissCommand?U.resolveCommand(S.onDismissCommand):String(R.error)!=="-1"&&S.onFailureCommand&&U.resolveCommand(S.onFailureCommand),String(R.error)!=="-1"&&String(R.error)!=="132"&&_.CA(Error("Li"),"ERROR")):(S.googlePaymentEntityKey&&K.dispatch(_.Mr("commerceAcquisitionClientPayloadEntity",S.googlePaymentEntityKey,{key:S.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:d,
fundsGuaranteeCallbackClientData:R.integratorClientCallbackData}}})),S.onSuccessCommand&&U.resolveCommand(S.onSuccessCommand));_.xP()},function(R){hP_(Z==null?void 0:Z.form,!1);
_.CA(R,"ERROR");S.onFailureCommand&&N.JSC$17821_commandHandler.resolveCommand(S.onFailureCommand)}))})};
Ma[F2]=[Cm,_.$s,_.bv];var gO=function(L,Z){this.JSC$17825_commandHandler=L;this.purchaseManager=Z};
_.f(gO,q1);
gO.prototype.resolveCommand=function(L){var Z=this,N,S,u,T,W,V,M,G,D;return _.b(function(l){N=_.n(L,QfN);((S=N)==null?0:(u=S.commandLifeCycleConfig)==null?0:u.onStartCommand)&&Z.JSC$17825_commandHandler.resolveCommand(N.commandLifeCycleConfig.onStartCommand);if(!((T=N)==null?0:(W=T.googlePaymentPurchaseManagerPayload)==null?0:W.securePayloadBytes))return _.CA(Error("Mi"),"ERROR"),l.return();V=ahL(_.xt(N.googlePaymentPurchaseManagerPayload.securePayloadBytes));M=_.tq().get("hl");G=_.hS();qn0(V.serialize(),
M,function(v){G.resolve(v)},function(v){G.reject(v)},G.resolve);
D=G.promise;return l.return(D.then(function(v){if(v)if(v==null?0:v.errorCode){_.CA(Error("Ni`"+v.errorCode),"ERROR");var R,K;((R=N)==null?0:(K=R.commandLifeCycleConfig)==null?0:K.onFailureCommand)&&Z.JSC$17825_commandHandler.resolveCommand(N.commandLifeCycleConfig.onFailureCommand)}else if(v==null?0:v.isCancelled){var U,d;((U=N)==null?0:(d=U.commandLifeCycleConfig)==null?0:d.onCancelCommand)&&Z.JSC$17825_commandHandler.resolveCommand(N.commandLifeCycleConfig.onCancelCommand)}else{var h,E;((h=N)==
null?0:(E=h.commandLifeCycleConfig)==null?0:E.onSuccessCommand)&&Z.JSC$17825_commandHandler.resolveCommand(N.commandLifeCycleConfig.onSuccessCommand)}},function(v){_.CA(v,"ERROR");
var R,K;((R=N)==null?0:(K=R.commandLifeCycleConfig)==null?0:K.onFailureCommand)&&Z.JSC$17825_commandHandler.resolveCommand(N.commandLifeCycleConfig.onFailureCommand)}))})};
gO[F2]=[_.$s,Lww];var ghw=function(L,Z){this.JSC$17833_commandHandler=L;this.commandAllowlistOverride=Z;var N;this.commandAllowlist=(N=this.commandAllowlistOverride)!=null?N:sC};
ghw.prototype.handleResponse=function(L,Z,N){var S,u=Z==null?void 0:(S=Z.config)==null?void 0:S.command;if(!u||this.commandAllowlist.some(function(T){return!!_.n(u,T)})){Z=void 0;
N!==void 0&&(Z={form:{element:N}});L.onResponseReceivedCommand&&this.JSC$17833_commandHandler.resolveCommand(L.onResponseReceivedCommand,Z);L.onResponseReceivedAction&&this.JSC$17833_commandHandler.resolveCommand(L.onResponseReceivedAction,Z);L.onResponseReceivedEndpoint&&this.JSC$17833_commandHandler.resolveCommand(L.onResponseReceivedEndpoint,Z);L.command&&this.JSC$17833_commandHandler.resolveCommand(L.command,Z);if(L.onResponseReceivedCommands)for(N=_.O(L.onResponseReceivedCommands),S=N.next();!S.done;S=
N.next())this.JSC$17833_commandHandler.resolveCommand(S.value,Z);if(L.onResponseReceivedActions)for(N=_.O(L.onResponseReceivedActions),S=N.next();!S.done;S=N.next())this.JSC$17833_commandHandler.resolveCommand(S.value,Z);if(L.onResponseReceivedEndpoints)for(N=_.O(L.onResponseReceivedEndpoints),S=N.next();!S.done;S=N.next())this.JSC$17833_commandHandler.resolveCommand(S.value,Z);if(L.actions)for(L=_.O(L.actions),N=L.next();!N.done;N=L.next())this.JSC$17833_commandHandler.resolveCommand(N.value,Z)}};
ghw[F2]=[_.$s,_.gv(yTt)];var GFQ=new _.iY("INNERTUBE_TOKEN_SERVICE");var Ftm=new _.iY("SCHEDULER_TOKEN");var $8q=function(L){this.scheduler=L;L={};this.tokenMap=(L.app={},L.user={},L)};
$8q.prototype.handleResponse=function(L,Z){if(!Z)throw Error("Oi");var N;if(L=(N=L.responseContext)==null?void 0:N.innertubeTokenJar){if(L.appTokens){var S,u,T;N=(S=Z.innerTubeRequest.context)==null?void 0:(u=S.request)==null?void 0:(T=u.innertubeTokenJar)==null?void 0:T.appTokens;D85(this,L.appTokens,this.tokenMap.app,N)}if(L.userTokens){var W,V,M;Z=(W=Z.innerTubeRequest.context)==null?void 0:(V=W.request)==null?void 0:(M=V.innertubeTokenJar)==null?void 0:M.userTokens;D85(this,L.userTokens,this.tokenMap.user,
Z)}}};
$8q.prototype.processContext=function(L){L.request||(L.request={});var Z=Object.keys(this.tokenMap.app).length,N=Object.keys(this.tokenMap.user).length;if(Z||N)L.request.innertubeTokenJar={},Z&&(L.request.innertubeTokenJar.appTokens=[].concat(_.Pd(Object.values(this.tokenMap.app).flat()))),N&&(L.request.innertubeTokenJar.userTokens=[].concat(_.Pd(Object.values(this.tokenMap.user).flat())))};
var D85=function(L,Z,N,S){Z=_.O(Z);for(var u=Z.next(),T={};!u.done;T={token$jscomp$139:void 0},u=Z.next()){T.token$jscomp$139=u.value;if(T.token$jscomp$139.type===void 0)throw new _.sr("InnerTube token has no type",T.token$jscomp$139);if(T.token$jscomp$139.clearTokens)N[T.token$jscomp$139.type]=[];else if(T.token$jscomp$139.value!==void 0){N[T.token$jscomp$139.type]||(N[T.token$jscomp$139.type]=[]);if(S!==void 0&&S.length){u=_.O(S);for(var W=u.next(),V={};!W.done;V={requestToken:void 0},W=u.next())V.requestToken=
W.value,W=N[T.token$jscomp$139.type].findIndex(function(M){return function(G){return G===M.requestToken||(0,_.Py.equals)(G,M.requestToken)}}(V)),W>-1&&N[T.token$jscomp$139.type].splice(W,1)}N[T.token$jscomp$139.type].push(T.token$jscomp$139);
T.token$jscomp$139.maxAgeSeconds&&Number(T.token$jscomp$139.maxAgeSeconds)>0&&L.scheduler.addLowPriorityJob(function(M){return function(){var G=N[M.token$jscomp$139.type].indexOf(M.token$jscomp$139);G>-1&&N[M.token$jscomp$139.type].splice(G,1)}}(T),Number(T.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.sr("InnerTube token has no value",T.token$jscomp$139);
}};
$8q[F2]=[Ftm];var lDq=new _.iY("LOCAL_INNERTUBE_ROUTER_TOKEN"),vhg=new _.iY("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Gd=function(L){this.serviceMap=L};
Gd.prototype.shouldPreferLocalResponse=function(L,Z){return(L=ohg(this,L))?L.shouldPreferLocalResponse(Z):!1};
Gd.prototype.localInnertubeResponse=function(L,Z){var N=this,S;return _.b(function(u){return(S=ohg(N,L))?u.return(S.localInnertubeResponse(Z)):u.return(Promise.reject(Error("Pi")))})};
Gd.prototype.canProvideFallbackResponse=function(L,Z){return(L=ohg(this,L))?L.canProvideFallbackResponse(Z):!1};
Gd.prototype.localFallbackInnertubeResponse=function(L,Z){var N=this,S;return _.b(function(u){return(S=ohg(N,L))?u.return(S.localFallbackInnertubeResponse(Z)):u.return(Promise.reject(Error("Pi")))})};
var ohg=function(L,Z){Z=_.ks(Z);return Z?(L=L.serviceMap[Z])?L:null:null};
Gd[F2]=[vhg];var bm=function(){};
bm.prototype.shouldPreferLocalResponse=function(){return!1};
bm.prototype.localInnertubeResponse=function(){return _.b(function(L){return L.return(Promise.reject(Error("Qi")))})};
bm.prototype.canProvideFallbackResponse=function(){return!0};
bm.prototype.localFallbackInnertubeResponse=function(){var L,Z,N;return _.b(function(S){L=N3("CLOSE_POPUP");Z={openPopupAction:PaH()};N={actions:[L,Z]};return S.return(N)})};var Bs1=function(L,Z){this.JSC$17882_upliftPromise=L;this.store=Z};
_.t=Bs1.prototype;_.t.shouldPreferLocalResponse=function(L){var Z=L.videoId,N;if(N=Z)N=Je0(this.store.getState().entities,L.videoId);return N&&Ch0(this.store.getState().entities,Z)?zPf(this.store.getState().entities,L.playlistId):!1};
_.t.localInnertubeResponse=function(L){var Z=this,N;return _.b(function(S){return(N=Z.getPlayerResponse(L))?S.return(Promise.resolve(N)):S.return(Promise.reject(Error("Ri")))})};
_.t.canProvideFallbackResponse=function(L){return!!L.videoId};
_.t.localFallbackInnertubeResponse=function(L){var Z=this,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(Z.JSC$17882_upliftPromise,2);N=Z.getPlayerResponse(L);var u;N?u=S.return(Promise.resolve(N)):u=Me(Z.store.getState().entities,L.videoId)?S.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Cq(_.iB("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:XOB()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
S.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Cq(_.iB("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:QEG()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return u})};
_.t.getPlayerResponse=function(L){return DN0(this.store.getState().entities,L.videoId)};var Vk=function(L,Z){this.localPlayerService=L;this.localWatchNextService=Z};
Vk.prototype.shouldPreferLocalResponse=function(L){var Z=L.playerRequest;L=L.watchNextRequest;return!!(Z&&this.localPlayerService.shouldPreferLocalResponse(Z)&&L&&this.localWatchNextService.shouldPreferLocalResponse(L))};
Vk.prototype.localInnertubeResponse=function(L){var Z=this,N,S,u,T;return _.b(function(W){if(W.nextAddress==1){N=L.playerRequest;S=L.watchNextRequest;if(!N||!S)throw new _.sr("Missing streaming request",L);return W.yield(Z.localPlayerService.localInnertubeResponse(N),2)}if(W.nextAddress!=3)return u=W.yieldResult,W.yield(Z.localWatchNextService.localInnertubeResponse(S),3);T=W.yieldResult;return W.return({playerResponse:u,watchNextResponse:T})})};
Vk.prototype.canProvideFallbackResponse=function(L){var Z=L.playerRequest;L=L.watchNextRequest;return!!(Z&&this.localPlayerService.canProvideFallbackResponse(Z)&&L&&this.localWatchNextService.canProvideFallbackResponse(L))};
Vk.prototype.localFallbackInnertubeResponse=function(L){var Z=this,N,S,u,T;return _.b(function(W){if(W.nextAddress==1)return N=L.playerRequest,S=L.watchNextRequest,N&&S?W.yield(Z.localPlayerService.localFallbackInnertubeResponse(N),2):W.return(Promise.reject(new _.sr("Missing streaming request",L)));if(W.nextAddress!=3)return u=W.yieldResult,W.yield(Z.localWatchNextService.localFallbackInnertubeResponse(S),3);T=W.yieldResult;return W.return({playerResponse:u,watchNextResponse:T})})};var t9=function(L){this.JSC$17892_persistentStorePromiseAccessor=L};
t9.prototype.shouldPreferLocalResponse=function(){return!1};
t9.prototype.localInnertubeResponse=function(){return _.b(function(L){return L.return(Promise.reject(Error("Si")))})};
t9.prototype.canProvideFallbackResponse=function(){return!0};
t9.prototype.localFallbackInnertubeResponse=function(){var L=this,Z,N;return _.b(function(S){return S.nextAddress==1?S.yield(L.JSC$17892_persistentStorePromiseAccessor(),2):S.nextAddress!=3?(Z=S.yieldResult)?S.yield(Z.get("service:guide:fallback"),3):S.return(Promise.reject(Error("Ti"))):(N=S.yieldResult)&&_.m4(N)?S.return(mFP(_.m4(N))):S.return(Promise.reject(Error("Ui")))})};var MH=function(){};
MH.prototype.shouldPreferLocalResponse=function(){return!1};
MH.prototype.localInnertubeResponse=function(){return _.b(function(L){return L.return(Promise.reject(Error("Vi")))})};
MH.prototype.canProvideFallbackResponse=function(){return!0};
MH.prototype.localFallbackInnertubeResponse=function(){var L,Z,N;return _.b(function(S){L=N3("CLOSE_POPUP");Z={openPopupAction:PaH()};N={actions:[L,Z]};return S.return(N)})};var T1=function(){this.urlMap=R2v;this.fallbackCommand=_.aB};
T1.prototype.shouldPreferLocalResponse=function(L){return(L=L.url)?!!cjq(this,L):!1};
T1.prototype.localInnertubeResponse=function(L){var Z=this,N;return _.b(function(S){return(N=L.url)?S.return(nhY(L,cjq(Z,N))):S.return(Promise.reject(Error("Wi")))})};
T1.prototype.canProvideFallbackResponse=function(){return!0};
T1.prototype.localFallbackInnertubeResponse=function(L){var Z=this,N,S,u,T,W,V,M;return _.b(function(G){N=L.url;if(!N)return G.return(nhY(L,Z.fallbackCommand));if(S=cjq(Z,N))return G.return(nhY(L,S));u=void 0;T=_.ks(N);T==="/watch"&&(W=_.B4(N,"v"))&&(M=(V=_.B4(N,"list"))!=null?V:void 0,u=_.Jq(W,M));u||(u=Z.fallbackCommand);return G.return(nhY(L,u))})};
var cjq=function(L,Z){if(Z)return L.urlMap[_.e9(Z)]},nhY=function(L,Z){Z&&L.parentTrackingParams&&(Z.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:L.parentTrackingParams}},Z.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:Z})};var Oc=function(L,Z,N){this.JSC$17903_upliftPromise=L;this.store=Z;this.JSC$17903_persistentStorePromiseAccessor=N};
Oc.prototype.shouldPreferLocalResponse=function(){return!1};
Oc.prototype.localInnertubeResponse=function(){return _.b(function(L){return L.return(Promise.reject(Error("Xi")))})};
Oc.prototype.canProvideFallbackResponse=function(){return!0};
Oc.prototype.localFallbackInnertubeResponse=function(){var L=this;return _.b(function(Z){return Z.return(Ktq(L))})};
var Ktq=function(L){var Z,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(zn(L.JSC$17903_upliftPromise,L.store),2);Z=S.yieldResult;N={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[pfF(Z)]}}}};return S.return(fDv(L,N))})},fDv=function(L,Z){var N,S;
return _.b(function(u){if(u.nextAddress==1)return u.yield(L.JSC$17903_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3)return N=u.yieldResult,u.yield(JZ(N),3);S=u.yieldResult;return u.return({responseContext:{},contents:Z,topbar:S})})};var im=function(L,Z,N){this.JSC$17910_upliftPromise=L;this.store=Z;this.JSC$17910_persistentStorePromiseAccessor=N};
im.prototype.shouldPreferLocalResponse=function(L){var Z=L.videoId;return Z&&Je0(this.store.getState().entities,Z)&&Ch0(this.store.getState().entities,Z)?zPf(this.store.getState().entities,L.playlistId):!1};
im.prototype.localInnertubeResponse=function(L){var Z=this,N,S;return _.b(function(u){if(u.nextAddress==1)return(N=L.videoId)?u.yield(Z.JSC$17910_upliftPromise,2):u.return(Promise.reject(Error("Yi")));if(u.nextAddress!=3)return u.yield(kFv(Z,L,N),3);S=u.yieldResult;return u.return(yjs(Z,S,N))})};
im.prototype.canProvideFallbackResponse=function(L){return L.videoId?!0:!1};
im.prototype.localFallbackInnertubeResponse=function(L){var Z=this,N,S,u,T;return _.b(function(W){switch(W.nextAddress){case 1:return(N=L.videoId)?W.yield(Z.JSC$17910_upliftPromise,2):W.return(Promise.reject(Error("Yi")));case 2:return W.yield(kFv(Z,L,N),3);case 3:S=W.yieldResult;if(Me(Z.store.getState().entities,N)){W.jumpTo(4);break}return W.yield(zn(Z.JSC$17910_upliftPromise,Z.store),5);case 5:return u=W.yieldResult,W.return(wym(S,u));case 4:return Je0(Z.store.getState().entities,N)&&Ch0(Z.store.getState().entities,
N)?W.return(yjs(Z,S,N)):(T={title:_.Cq(_.iB("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:XOB()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},W.return(wym(S,T)))}})};
var kFv=function(L,Z,N){var S,u,T,W,V;return _.b(function(M){if(M.nextAddress==1)return S=Z.playlistId,u=_.Jq(N,S),M.yield(L.JSC$17910_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return T=M.yieldResult,M.yield(JZ(T),3);W=M.yieldResult;V={responseContext:{},currentVideoEndpoint:u,topbar:W};return M.return(V)})},yjs=function(L,Z,N){if(L=Me(L.store.getState().entities,N)){var S;
N=L.videoEntity;var u,T={title:rR(N.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Qa((S=N.localizedStrings)==null?void 0:S.viewCount),viewCount:_.Qa((u=N.localizedStrings)==null?void 0:u.viewCount)}}};N.publishedTimestampMillis&&(T.dateText=_.Qa(zKB(new Date(Number(N.publishedTimestampMillis)))));S={videoPrimaryInfoRenderer:T};u=L.videoEntity;L=L.channelEntity;L={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:rR(_.iB("SHOW_MORE",void 0,"Show more")),
showLessText:rR(_.iB("SHOW_LESS",void 0,"Show less")),description:u.formattedDescription,owner:{videoOwnerRenderer:{title:rR(L.title),thumbnail:L.avatar}}}};Z.contents={twoColumnWatchNextResults:{results:{results:{contents:[S,L]}}}}}return Z},wym=function(L,Z){L.contents={singleColumnWatchNextResults:{results:{results:{contents:[pfF(Z)]}}}};
return L};var WV=function(L,Z,N){this.JSC$17915_upliftPromise=L;this.store=Z;this.JSC$17915_persistentStorePromiseAccessor=N};
WV.prototype.shouldPreferLocalResponse=function(){return!1};
WV.prototype.localInnertubeResponse=function(){return _.b(function(L){return L.return(Promise.reject(Error("Zi")))})};
WV.prototype.canProvideFallbackResponse=function(){return!0};
WV.prototype.localFallbackInnertubeResponse=function(){var L=this,Z,N,S,u;return _.b(function(T){switch(T.nextAddress){case 1:return T.yield(L.JSC$17915_persistentStorePromiseAccessor(),2);case 2:return Z=T.yieldResult,T.yield(JZ(Z),3);case 3:return N=T.yieldResult,S={responseContext:{},topbar:N},T.yield(L.JSC$17915_upliftPromise,4);case 4:return T.yield(zn(L.JSC$17915_upliftPromise,L.store),5);case 5:return u=T.yieldResult,S.watchStatus={backgroundPromoRenderer:u},T.return(S)}})};_.U8w=new _.iY("ENDPOINT_MAP");var ABB=/^[a-zA-Z0-9_\-]{11}$/;var H9F=_.Rn(function(){var L,Z;return(Z=(L=window).matchMedia)==null?void 0:Z.call(L,"(prefers-reduced-motion: reduce)").matches});var YNw=_.Rn(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 L=_.LZ("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");L||(L=_.wZ("VIDEO"),_.bp("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
L));return!!(L&&L.canPlayType&&L.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var e2q=XMLHttpRequest.prototype.fetch,IDm=e2q&&e2q.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Wx?!0:!1;var FY=function(L){this.JSC$17926_storeWithEntities=L};
_.f(FY,QG);_.t=FY.prototype;_.t.getApiPaths=function(){return dPt};
_.t.getExtension=function(L){return _.n(L,_.so)||_.n(L,_.Ox)||_.n(L,wSt)};
_.t.isNavigationCommand=function(){return!0};
_.t.JSC$14174_getStoreKey=function(L){if((_.c("kevlar_cache_on_ttl_player")||_.c("mweb_enable_shorts_innertube_player_prefetch")||_.c("mweb_use_new_history_manager")||_.c("web_shorts_prefetch_service_enabled"))&&(L=this.getExtension(L))&&L.videoId){var Z={videoId:L.videoId};L.playlistId&&(Z.playlistId=L.playlistId);L.playerParams&&(Z.params=L.playerParams);return _.hd("player",Z)}};
_.t.JSC$14167_getClientScreen=function(L){var Z;return((Z=L.contentPlaybackContext)==null?void 0:Z.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.t.JSC$14167_buildRequest=function(L,Z,N){if(_.c("enable_interstitial_entity_check")){var S=this.JSC$17926_storeWithEntities;if(Z.videoId)for(var u=_.O(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),T=u.next();!T.done;T=u.next()){T=T.value;var W;var V=void 0,M=void 0,G=Z.videoId,D=T;(W=S)?(G=_.qj(G+D,"interstitialInteractionStateEntity"),W=(V=(M=_.Lk(W.getState().entities,"interstitialInteractionStateEntity",G))==null?void 0:M.primaryButtonClicked)!=null?V:!1):W=!1;if(W)switch(T){case "CONTENT_CHECK_REQUIRED":Z.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":Z.racyCheckOk=!0}}}Z.videoId&&(L.videoId=Z.videoId);Z.playlistId&&(L.playlistId=Z.playlistId);Z.index!==void 0&&(L.playlistIndex=Z.index+1);Z.playerParams&&(L.params=Z.playerParams);"startTimeSeconds"in Z&&Z.startTimeSeconds&&(_.c("enable_player_request_builder_start_time_floor")?L.startTimeSecs=Math.floor(Z.startTimeSeconds):L.startTimeSecs=Z.startTimeSeconds);N.contentPlaybackContext&&(L.playbackContext={contentPlaybackContext:N.contentPlaybackContext});N.prefetchPlaybackContext&&
(L.playbackContext=Object.assign({},L.playbackContext,{prefetchPlaybackContext:N.prefetchPlaybackContext}),L.context.request||(L.context.request={}),L.context.request.isPrefetch=!0);L.playbackContext||(L.playbackContext={});S=YNw();L.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!S,supportXhr:IDm};N.overrideMutedAtStart&&(L.overrideMutedAtStart=N.overrideMutedAtStart);L.racyCheckOk=!!Z.racyCheckOk;L.contentCheckOk=!!Z.contentCheckOk;!_.c("captions_prefs_killswitch")&&(N=(N=_.G7("yt-player-caption-language-preferences"))?
N:[],N==null?0:N.length)&&(L.captionParams={viewerSelectedCaptionLangs:N})};
_.t.getRequestConfig=function(L){L=this.JSC$14174_getStoreKey(L);var Z;L&&(Z={storeStrategy:{storeKey:L}});_.c("web_log_player_watch_next_ticks")&&(Z=Z||{},Z.requestTick="ps_s",Z.responseTick="ps_r");return Z};
FY[F2]=[Cm];var $A=function(L,Z){this.playerRequestBuilder=L;this.watchNextRequestBuilder=Z};
_.f($A,QG);$A.prototype.getApiPaths=function(){return ckq};
$A.prototype.getExtension=function(L){return _.n(L,_.so)};
$A.prototype.isNavigationCommand=function(){return!0};
$A.prototype.JSC$14167_buildRequest=function(L,Z,N){L.playerRequest={};this.playerRequestBuilder.JSC$14167_buildRequest(L.playerRequest,Z,N);_.c("web_streaming_watch")&&(L.watchNextRequest={},this.watchNextRequestBuilder.JSC$14167_buildRequest(L.watchNextRequest,Z,N))};
$A[F2]=[FY,Of];var d80;_.D1=new _.iY("SHORTS_CONTROLLER_TOKEN");d80=new _.iY("SHORTS_STATE_STORE_TOKEN");var l5=function(L,Z){var N=_.CG.apply(2,arguments);L=L===void 0?0:L;_.sr.call(this,Z,N);this.errorType=L;Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(l5,_.sr);var aDY,h2k,smq,jmm,qzw,YM,vOt,py8,PGq,rjs,Jj5,m88;aDY=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(L){return L+"="}).join("|"));
h2k=RegExp(".*\\?.*playnext=1.*");smq=function(L,Z,N,S){this.watchEndpointMap=L;this.reelWatchEndpointMap=Z;this.innerTubeTransportService=N;this.fetchPbj=S};
jmm=function(L,Z,N){var S=_.GR().resolve(_.gv(Ozs));smq.instance=new smq(L,Z,N,S)};
_.Ehv=function(L,Z){var N=_.lQ("web_pbj_log_warning_rate",0);N=N>0&&Math.random()<N;var S;if((S=_.n(Z.commandMetadata,_.Nj))==null||!S.rootVe)return N&&_.Q7(Error("dj")),!1;var u;S=(u=_.n(Z.commandMetadata,_.Nj))==null?void 0:u.url;if(!S)return N&&_.Q7(Error("ej")),!1;if(h2k.test(S))return!0;if(aDY.test(S))return N&&_.Q7(Error("fj`"+S)),!1;if(_.n(Z,_.so)){if(!(L.watchEndpointMap.watchNext&&L.watchEndpointMap.player||_.c("kevlar_fetch_initial_data_op_watch_client")))return N&&_.Q7(Error("$i")),!1;
L=_.lQ("web_pbj_log_warning_rate",0);L=L>0&&Math.random()<L;_.n(Z,_.so)?QDh(Z)?Z=!0:(L&&_.Q7(Error("aj")),Z=!1):(L&&_.Q7(Error("$i")),Z=!1);return Z}if(_.n(Z,_.Ox))return Xfh(Z);if(_.n(Z,_.Hb))return!0;L=_.d9(L.innerTubeTransportService,Z);!L&&N&&_.CA(Error("gj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(Z)});return L};
qzw=function(L,Z,N,S,u,T){Z={url:Z};if(N==null?0:N.itct)Z.parentTrackingParams=N.itct;var W=_.pk(mPL);return _.Za(L.innerTubeTransportService,Z,W).then(function(V){(V=V.endpoint)||(V=_.aB);(N==null?0:N.itct)&&V&&!V.trackingParams&&(V.trackingParams=N.itct);var M=T7(V);return YM(L,V,N,S,M,u,T)})};
YM=function(L,Z,N,S,u,T,W,V){V=V===void 0?{}:V;if(L.fetchPbj&&!_.Ehv(L,Z)&&!_.c("force_one_platform")){V=L.fetchPbj(Z);var M=_.xP(V.then(function(J){if(!J)throw Error("hj");W(M)||T(Z,J);return J}));
return M}var G,D,l={rootVe:(G=_.n(Z.commandMetadata,_.Nj))==null?void 0:G.rootVe,url:(D=_.n(Z.commandMetadata,_.Nj))==null?void 0:D.url,endpoint:Z,page:u};if(_.n(Z,_.so)){var v,R={contentPlaybackContext:_.r3(N,(v=_.n(Z.commandMetadata,_.Nj))==null?void 0:v.url,S)},K=_.hS();_.c("web_streaming_watch")&&window.TextDecoderStream?(V=$MV(L.innerTubeTransportService,Z,R,function(J){!l.response&&J.content&&(l.response=J.content);!l.playerResponse&&J.player&&(l.playerResponse=J.player);T(Z,l)}),G=JwL(Z),G.length&&
(l.preconnect=G,T(Z,l)),PGq(V,K,l).catch(function(J){J instanceof l5&&J.errorType===2&&_.c("web_streaming_watch_fallback")&&py8(L,Z,R,l,T,W,K)})):py8(L,Z,R,l,T,W,K);
return K.promise}if(_.n(Z,_.Ox)){var U;if(((U=_.n(Z,_.Ox))==null?void 0:U.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var d=_.hS();_.z2v(_.GR().resolve(_.D1),Z).then(function(J){m88(L,N,S,u,T,d,J)});
return d.promise}V=_.xP();var h;G={contentPlaybackContext:_.r3(N,(h=_.n(Z.commandMetadata,_.Nj))==null?void 0:h.url,S)};(h=L.reelWatchEndpointMap.player)&&(h=h().JSC$14167_getRequest(Z,G))&&(V=_.Za(L.innerTubeTransportService,h.innerTubeRequest,h.input,Z.clickTrackingParams,h.config));h=_.xP();(D=L.reelWatchEndpointMap.reelItemWatch)&&(D=D().JSC$14167_getRequest(Z))&&(h=_.Za(L.innerTubeTransportService,D.innerTubeRequest,D.input,Z.clickTrackingParams,D.config));D=_.xP();_.c("web_enable_delay_shorts_sequence_call_extra")&&
(D=new _.kE(function(J){setTimeout(function(){J(void 0)},200)}));
(!_.c("web_enable_delay_shorts_sequence_call_new")||_.c("web_enable_delay_shorts_sequence_call_forget"))&&(v=L.reelWatchEndpointMap.reelWatchSequence)&&_.n(Z,_.Ox).sequenceParams&&(G=v().JSC$14167_getRequest(Z,G))&&(_.c("web_enable_delay_shorts_sequence_call_forget")?_.Za(L.innerTubeTransportService,G.innerTubeRequest,G.input,Z.clickTrackingParams,G.config):D=_.Za(L.innerTubeTransportService,G.innerTubeRequest,G.input,Z.clickTrackingParams,G.config));G=_.xP(l);v=_.hS();Jj5(Z,G,V,h,D,T,W,v);return v.promise}var E;
if(_.n(Z,trF)&&((E=_.n(Z.commandMetadata,_.Nj))==null?0:E.url))return V=g10(_.qG(mt().location.href),_.qG(_.n(Z.commandMetadata,_.Nj).url)).toString(),qzw(L,V,N,S,T,function(){return!1});
if(_.n(Z,_.Hb))return T(Z,l),_.xP(l);if(_.d9(L.innerTubeTransportService,Z)){V=Object.assign({},{tempData:N,disableCache:N.disableCache},V);var A=_.aV(L.innerTubeTransportService,Z,V).then(function(J){l.response=J;W(A)||T(Z,l);return l});
return A}return _.xP(l)};
_.CGg=function(L,Z,N,S){if(_.n(Z,_.so)||_.n(Z,_.Ox)&&(_.c("mweb_enable_shorts_innertube_player_prefetch")||_.c("kevlar_enable_shorts_prefetch_in_sequence"))||_.n(Z,wSt)&&_.c("web_enable_prefetching_videos_on_home")){var u,T={contentPlaybackContext:_.r3(N,(u=_.n(Z.commandMetadata,_.Nj))==null?void 0:u.url,S),prefetchPlaybackContext:xFH(N)},W,V,M;if(((W=_.n(Z,_.so))==null?void 0:(V=W.watchEndpointSupportedPrefetchConfig)==null?void 0:(M=V.prefetchHintConfig)==null?void 0:M.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(N=
L.watchEndpointMap.watchNext)if(T=N().JSC$14167_getRequest(Z,T))return Promise.resolve(_.Za(L.innerTubeTransportService,T.innerTubeRequest,T.input,void 0,T.config).then(function(l){return l}))}else if(N=L.watchEndpointMap.player)if(T=N().JSC$14167_getRequest(Z,T))return Promise.resolve(_.Za(L.innerTubeTransportService,T.innerTubeRequest,T.input,void 0,T.config).then(function(l){return l}))}else if(_.d9(L.innerTubeTransportService,Z)){var G={tempData:N},D=bwO(L.innerTubeTransportService,Z);
return D?new Promise(function(l,v){var R,K;return _.b(function(U){if(U.nextAddress==1)return U.yield(D,2);if(U.nextAddress!=4)return R=U.yieldResult,R.JSC$14174_getStoreKey(Z,G)?U.yield(_.aV(L.innerTubeTransportService,Z,G),4):(v(new _.sr("Prefetching request builder with no store key.",Z)),U.jumpTo(0));K=U.yieldResult;l(K);_.w7(U)})}):Promise.reject(new _.sr("Prefetching unregistered request builder.",Z))}return Promise.reject(new _.sr("No request builder available to prefetch endpoint.",Z))};
vOt=function(L,Z){var N,S,u;if(_.n(Z,_.so)){var T=L.watchEndpointMap.watchNext;T&&(N=T());(L=L.watchEndpointMap.player)&&(S=L())}else if(_.n(Z,_.Ox))(T=L.reelWatchEndpointMap.reelItemWatch)&&(N=T()),(T=L.reelWatchEndpointMap.player)&&(S=T()),(L=L.reelWatchEndpointMap.reelWatchSequence)&&(u=L());else{a:{L=V_t(Z,L.innerTubeTransportService.endpointMap);if(L!==void 0)if(typeof L.then==="function")_.CA(new _.sr("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",Z));else break a;
L=void 0}L&&(N=L)}var W,V,M;return{content:(W=N)==null?void 0:W.JSC$14174_getStoreKey(Z),player:(V=S)==null?void 0:V.JSC$14174_getStoreKey(Z),reelSequence:(M=u)==null?void 0:M.JSC$14174_getStoreKey(Z)}};
py8=function(L,Z,N,S,u,T,W){var V=_.xP(),M=L.watchEndpointMap.player;_.c("web_streaming_player")&&(M=w9($A));M&&(M=M().JSC$14167_getRequest(Z,N))&&(V=_.Za(L.innerTubeTransportService,M.innerTubeRequest,M.input,Z.clickTrackingParams,M.config));M=_.xP();var G=L.watchEndpointMap.watchNext;G&&(N=G().JSC$14167_getRequest(Z,N))&&(M=_.Za(L.innerTubeTransportService,N.innerTubeRequest,N.input,Z.clickTrackingParams,N.config));L=_.xP(S);rjs(Z,L,V,M,u,T,W)};
PGq=function(L,Z,N){return _.b(function(S){if(S.nextAddress==1)return S.yield(L,2);Z.resolve(N);_.w7(S)})};
rjs=function(L,Z,N,S,u,T,W){var V,M,G,D,l;_.b(function(v){switch(v.nextAddress){case 1:return v.yield(Z,2);case 2:V=v.yieldResult;if(T(W.promise))return W.resolve(V),v.return();u(L,V);M=JwL(L);if(!M.length){v.jumpTo(3);break}return v.yield(Z,4);case 4:V.preconnect=M,u(L,V);case 3:return _.RS(v,5),v.yield(N,7);case 7:G=v.yieldResult;_.SX(v,6);break;case 5:return D=_.yd(v),W.reject(D),v.return();case 6:if(G===void 0)return V.reload=!0,u(L,V),W.resolve(V),v.return();if(T(W.promise))return W.resolve(V),
v.return();V.playerResponse=G;u(L,V);_.RS(v,8);return v.yield(S,10);case 10:l=v.yieldResult;_.SX(v,9);break;case 8:_.yd(v);case 9:if(l===void 0)return V.response={responseContext:{}},W.resolve(V),v.return();if(T(W.promise))return W.resolve(V),v.return();V.response=l;u(L,V);W.resolve(V);_.w7(v)}})};
Jj5=function(L,Z,N,S,u,T,W,V){var M,G,D,l,v,R;_.b(function(K){switch(K.nextAddress){case 1:return K.yield(Z,2);case 2:M=K.yieldResult;if(W(V.promise))return V.resolve(M),K.return();T(L,M);G=JwL(L);if(!G.length){K.jumpTo(3);break}return K.yield(Z,4);case 4:M.preconnect=G,T(L,M);case 3:return _.RS(K,5),K.yield(N,7);case 7:D=K.yieldResult;_.SX(K,6);break;case 5:return l=_.yd(K),V.reject(l),K.return();case 6:if(D===void 0)return M.reload=!0,T(L,M),V.resolve(M),K.return();if(W(V.promise))return V.resolve(M),
K.return();M.playerResponse=D;T(L,M);_.RS(K,8);return K.yield(S,10);case 10:v=K.yieldResult;_.SX(K,9);break;case 8:_.yd(K);case 9:if(v===void 0)return M.response={responseContext:{}},V.resolve(M),K.return();if(W(V.promise))return V.resolve(M),K.return();M.response=v;T(L,M);_.RS(K,11);return K.yield(u,13);case 13:R=K.yieldResult;_.SX(K,12);break;case 11:_.yd(K);case 12:if(W(V.promise))return V.resolve(M),K.return();R&&(M.reelWatchSequenceResponse=R);T(L,M);V.resolve(M);_.w7(K)}})};
m88=function(L,Z,N,S,u,T,W){var V,M,G,D,l,v;_.b(function(R){if((V=W)==null||!V.replacementEndpoint)return T.reject(),R.return();M=W.replacementEndpoint;(G=_.n(M,_.Ox))?(W.sequenceContinuation&&(G.sequenceParams=W.sequenceContinuation),D=_.GR().resolve(_.D1),l=G.sequenceParams,Qmv(D,M)&&delete G.sequenceParams,v=YM(L,M,Z,N,S,u,function(){return!1}),v.then(function(K){return _.b(function(U){if(U.nextAddress==1)return XyY(D,{reelWatchEndpoint:{sequenceParams:l}},K),U.yield(0,2);
T.resolve(K);_.w7(U)})})):T.reject();
_.w7(R)})};var Ajv=function(){var L=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return L.sequenceMap}}},DM5=function(L,Z,N){var S,u=(S=Z.config)==null?void 0:S.sequenceStrategy;
if(!u)return N();L.sequenceMap.has(u.sequenceKey)||L.sequenceMap.set(u.sequenceKey,[]);L=L.sequenceMap.get(u.sequenceKey);switch(u.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Hxy(L,Z,N);case "REQUEST_SEQUENCE_TYPE_REPLACE":return BF8(L,Z,N);default:throw new _.sr("Request could not be sequenced",Z);}},Hxy=function(L,Z,N){var S,u,T;
return _.b(function(W){L.length>0?(u=L[L.length-1],S=u.responsePromise.then(function(){return N()})):S=N();
T={request:Z,responsePromise:S};L.push(T);x8s(L,T);return W.return(T.responsePromise)})},BF8=function(L,Z,N){N=N();
if(L.length>0)for(var S=_.O(L),u=S.next();!u.done;u=S.next())u.value.responsePromise=N;var T={request:Z,responsePromise:N};L.push(T);x8s(L,T);return Promise.resolve().then(function(){return L.indexOf(T)>0?T.responsePromise.then(function(W){return Object.assign({},W,{sequenceMetaData:{skipProcessing:!0}})}):T.responsePromise})},x8s=function(L,Z){Z.responsePromise.then(function(){var N=L.indexOf(Z);
N>-1&&L.splice(N,1)})};var qNw=new _.iY("REQUEST_SEQUENCING");var v1=function(){};
_.f(v1,QG);v1.prototype.getApiPaths=function(){return[]};
v1.prototype.getExtension=function(L){return _.n(L,M5I)};
v1.prototype.JSC$14167_buildRequest=function(L,Z){L.recaptchaToken=Z.recaptchaToken};
v1.prototype.getApiUrl=function(){return"/das_captcha"};var oK=function(){};
_.f(oK,QG);oK.prototype.getApiPaths=function(){return m1t};
oK.prototype.getExtension=function(L){return _.n(L,Jvl)};
oK.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;Z.createBackstagePostParams&&(L.createBackstagePostParams=Z.createBackstagePostParams);N.comment_text&&(L.commentText=N.comment_text);if(N.attached_video_id)L.videoAttachment={videoId:N.attached_video_id};else if(N.image_poll_options)L.pollAttachmentData={options:N.image_poll_options};else if(N.poll_options)L.pollAttachment={choices:N.poll_options};else if(N.quiz_options)L.quizAttachmentData={options:N.quiz_options};else if(N.image_blob_id)L.imageAttachment=
{encryptedBlobId:N.image_blob_id},N.source_video_id&&(L.imageAttachment.sourceExternalVideoId=N.source_video_id),N.image_preview_coordinates&&(L.imageAttachment.previewCoordinates=JSON.parse(N.image_preview_coordinates));else if(N.images_data)L.imagesAttachment={imagesData:N.images_data};else if(N.clip_external_video_id!==void 0||N.clip_offset_ms!==void 0||N.clip_duration_ms!==void 0){var S,u,T,W,V;L.clipAttachment={externalVideoId:(T=N.clip_external_video_id)!=null?T:"",offsetMs:(W=(S=N.clip_offset_ms)==
null?void 0:S.toString())!=null?W:"",durationMs:(V=(u=N.clip_duration_ms)==null?void 0:u.toString())!=null?V:""}}else N.shared_post_id&&(L.sharedPostAttachment={postId:N.shared_post_id});N.tagged_video_id&&(L.postCreationData={taggedVideoId:N.tagged_video_id});N.access_restrictions&&(typeof N.access_restrictions==="number"&&(Z=N.access_restrictions,L.accessRestrictions={restriction:Z!==1&&Z===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof N.access_restrictions==="string"&&
(L.accessRestrictionsParams=N.access_restrictions));N.scheduled_publish_time_sec&&(L.scheduledPublishTimeSec=N.scheduled_publish_time_sec.toString())};var RK=function(){};
_.f(RK,QG);RK.prototype.getApiPaths=function(){return HNl};
RK.prototype.getExtension=function(L){return _.n(L,EXh)};
RK.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;Z.decorateMessageParams&&(L.params=Z.decorateMessageParams);N.text&&(L.text=N.text)};var c1=function(){};
_.f(c1,QG);c1.prototype.getApiPaths=function(){return $P5};
c1.prototype.getExtension=function(L){return _.n(L,CYs)};
c1.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;N.video_id&&(L.videoId=N.video_id)};var n3=function(){};
_.f(n3,QG);n3.prototype.getApiPaths=function(){return Rcs};
n3.prototype.getExtension=function(L){return _.n(L,_.ZW)};
n3.prototype.JSC$14167_buildRequest=function(L,Z,N){N.suggestions_query&&(L.input=N.suggestions_query)};var K3=function(){};
_.f(K3,QG);K3.prototype.getApiPaths=function(){return ZPq};
K3.prototype.getExtension=function(L){return _.n(L,rvh)};
K3.prototype.JSC$14167_buildRequest=function(L,Z,N){N.comment_text!==void 0&&(L.commentText=N.comment_text);N.scheduled_publish_time_sec&&(L.scheduledPublishTimeSec=N.scheduled_publish_time_sec.toString());L.updateBackstagePostParams=Z.updateBackstagePostParams};var f3=function(){};
_.f(f3,QG);f3.prototype.getApiPaths=function(){return aL};
f3.prototype.getExtension=function(L){return _.n(L,_.k0)};
f3.prototype.JSC$14167_buildRequest=function(L,Z,N){N.formData&&(L.formData=N.formData);Z.token?L.continuation=Z.token:Z.continuationTokenKey&&(N=_.Pv().getState(),Z=_.Lk(N.entities,"continuationTokenEntity",Z.continuationTokenKey))&&(L.continuation=String(Z.continuationToken))};
var Lmv=function(){};
_.f(Lmv,QG);_.t=Lmv.prototype;_.t.getApiPaths=function(){return aL};
_.t.getExtension=function(L){return _.n(L,_.iv)};
_.t.isNavigationCommand=function(){return!0};
_.t.JSC$14174_getStoreKey=function(L){if((L=this.getExtension(L))&&L.browseId){var Z={browseId:L.browseId};L.browseEndpointContextSupportedConfigs&&(Z.browseEndpointContextSupportedConfigs=JSON.stringify(L.browseEndpointContextSupportedConfigs));L.params&&(Z.params=L.params);L.query&&(Z.query=L.query);return _.hd("browse",Z)}};
_.t.JSC$14167_buildRequest=function(L,Z,N){Z.browseId&&(L.browseId=Z.browseId);Z.params&&(L.params=Z.params);Z.query&&(L.query=Z.query);N.formData?L.formData=N.formData:Z.formData&&(L.formData=Z.formData);Z.browseId==="FEsubscriptions"&&_.tq().getFlag(155)&&(L.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");Z.browseId==="SPaccount_playback"&&(N=_.tq(),L.formData||(L.formData={}),L.formData.accountSettingsFormData={flagCaptionsDefaultOff:N.getFlag(65),flagAutoCaptionsDefaultOn:N.getFlag(66),
flagDisableInlinePreview:N.getFlag(186),flagAudioDescriptionDefaultOn:N.getFlag(198)});if(Z.browseId==="FEwhat_to_watch"){N=_.tq();var S=N.getFlag(196);N.getFlag(197)&&(L.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:S}}})}Z.browseId==="FEwhat_to_watch"&&(Z=_.tq().getFlag(186),L.inlineSettingStatus=Z?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.t.getRequestConfig=function(L,Z){Z=Z===void 0?{}:Z;var N={};if(L=this.JSC$14174_getStoreKey(L,Z))N.storeStrategy={storeKey:L,disableCache:Z.disableCache};_.c("web_log_browse_ticks_ks")||(N.requestTick="br_s",N.responseTick="br_r");return N};var kA=function(){};
_.f(kA,QG);kA.prototype.getApiPaths=function(){return s9O};
kA.prototype.getExtension=function(L){return _.n(L,oa0)};
kA.prototype.JSC$14167_buildRequest=function(L,Z,N){L.legacyYoutubeChannelUsername=N.legacyYouTubeChannelUsername||"";L.legacyYoutubeChannelPassword=N.legacyYouTubeChannelPassword||""};var yD=function(){};
_.f(yD,QG);yD.prototype.getApiPaths=function(){return JkO};
yD.prototype.getExtension=function(L){return _.n(L,q45)};
yD.prototype.JSC$14167_buildRequest=function(L,Z,N){N.recaptcha_response_token&&(L.recaptchaResponseToken=N.recaptcha_response_token);N.channel_id&&(L.channelId=N.channel_id)};var wO=function(){};
_.f(wO,QG);wO.prototype.getApiPaths=function(){return NC0};
wO.prototype.getExtension=function(L){return _.n(L,uOL)};
wO.prototype.JSC$14167_buildRequest=function(L,Z,N){Z.externalChannelId&&(L.externalChannelId=Z.externalChannelId);N.handle&&(L.handleUpdate={handle:N.handle},Z.handleEditSource&&(L.handleUpdate.handleEditSource=Z.handleEditSource))};var Uf=function(){};
_.f(Uf,QG);Uf.prototype.getApiPaths=function(){return TC5};
Uf.prototype.getExtension=function(L){return _.n(L,ypV)};
Uf.prototype.JSC$14167_buildRequest=function(L,Z,N){Z.request&&(L.channelId=Z.request.channelId);var S;if(N==null?0:(S=N.uploadDefaults)==null?0:S.emojiReactionSet)L.uploadDefaultsRequest||(L.uploadDefaultsRequest={}),L.uploadDefaultsRequest.emojiReactionSet=N.uploadDefaults.emojiReactionSet};var YA=function(){};
_.f(YA,QG);YA.prototype.getApiPaths=function(){return WnY};
YA.prototype.getExtension=function(L){return _.n(L,LVh)};
YA.prototype.JSC$14167_buildRequest=function(L,Z,N){Z.externalChannelId&&(L.externalChannelId=Z.externalChannelId);Z.channelHandleEntityKey&&(L.channelHandleEntityKey=Z.channelHandleEntityKey);Z.handleEditSource&&(L.handleEditSource=Z.handleEditSource);N.handle?L.handle=N.handle:N.name&&(L.name=N.name)};var eg=function(){};
_.f(eg,QG);eg.prototype.getApiPaths=function(){return P7Y};
eg.prototype.getExtension=function(L){return _.n(L,vwQ)};
eg.prototype.JSC$14167_buildRequest=function(L,Z){Z.actions?L.actions=Z.actions:Z.action&&(L.actions=[Z.action])};var IK=function(){};
_.f(IK,QG);IK.prototype.getApiPaths=function(){return pA0};
IK.prototype.getExtension=function(L){return _.n(L,_.k0)};
IK.prototype.JSC$14167_buildRequest=function(L,Z){Z.token&&(L.continuation=Z.token)};var dO=function(){};
_.f(dO,QG);dO.prototype.getApiPaths=function(){return GeL};
dO.prototype.getExtension=function(L){return _.n(L,_.k0)};
dO.prototype.JSC$14167_buildRequest=function(L,Z){L.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";Z.token&&(L.fetchCommentsParams={continuation:Z.token})};var aK=function(){};
_.f(aK,QG);aK.prototype.getApiPaths=function(){return rIN};
aK.prototype.getExtension=function(L){return _.n(L,luN)};
aK.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;Z.createReplyParams&&(L.createReplyParams=Z.createReplyParams);Z.commentText&&(L.commentText=_.jM(Z.commentText));N.comment_text&&(L.commentText=N.comment_text);N.image_blob_id&&(L.imageAttachment={encryptedBlobId:N.image_blob_id});N.botguard_response&&(L.botguardResponse=N.botguard_response)};
_.gd.Object.defineProperties(aK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hG=function(){};
_.f(hG,QG);hG.prototype.getApiPaths=function(){return Q9V};
hG.prototype.getExtension=function(L){return _.n(L,_.DWV)};
hG.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;Z.createCommentParams&&(L.createCommentParams=Z.createCommentParams);Z.commentText&&(L.commentText=_.jM(Z.commentText));Z.videoPositionMention&&(L.videoPositionMention=Z.videoPositionMention);Z.sources&&(L.sources=Z.sources);N.comment_text&&(L.commentText=N.comment_text);N.attached_video_id?L.videoAttachment={videoId:N.attached_video_id}:N.poll_options?L.pollAttachment={choices:N.poll_options}:N.image_blob_id?L.imageAttachment=
{encryptedBlobId:N.image_blob_id}:N.shared_post_id&&(L.sharedPostAttachment={postId:N.shared_post_id});N.access_restrictions&&typeof N.access_restrictions==="number"&&(Z=N.access_restrictions,L.accessRestrictions={restriction:Z!==1&&Z===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});N.botguard_response&&(L.botguardResponse=N.botguard_response)};
_.gd.Object.defineProperties(hG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sf=function(){};
_.f(sf,QG);sf.prototype.getApiPaths=function(){return S5L};
sf.prototype.getExtension=function(L){return _.n(L,RKY)};
sf.prototype.JSC$14167_buildRequest=function(L,Z,N){Z.commentText&&(L.replyText=_.jM(Z.commentText));N.comment_text&&(L.replyText=N.comment_text);L.updateReplyParams=Z.updateReplyParams};
_.gd.Object.defineProperties(sf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var jg=function(){};
_.f(jg,QG);jg.prototype.getApiPaths=function(){return iPM};
jg.prototype.getExtension=function(L){return _.n(L,owq)};
jg.prototype.JSC$14167_buildRequest=function(L,Z,N){Z.commentText&&(L.commentText=_.jM(Z.commentText));N.comment_text&&(L.commentText=N.comment_text);L.updateCommentParams=Z.updateCommentParams};
_.gd.Object.defineProperties(jg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ef=function(){};
_.f(Ef,QG);Ef.prototype.getApiPaths=function(){return ucO};
Ef.prototype.getExtension=function(L){return _.n(L,nUY)};
Ef.prototype.JSC$14167_buildRequest=function(L,Z){Z.settings&&(L.settings=Z.settings)};var P1=function(){};
_.f(P1,QG);P1.prototype.getApiPaths=function(){return tq0};
P1.prototype.getExtension=function(L){return _.n(L,Z6q)};
P1.prototype.JSC$14167_buildRequest=function(L,Z){Z.channelCreationToken&&(L.channelCreationToken=Z.channelCreationToken);Z.source&&(L.source=Z.source)};var p3=function(){};
_.f(p3,QG);p3.prototype.getApiPaths=function(){return C7Q};
p3.prototype.getExtension=function(L){return _.n(L,i6h)};
p3.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;if(N.name&&(N.given_name||N.family_name))L=new _.sr("channel creation cannot set both GAIA and YouTube names",Z),_.CA(L);else{if(Z.zeroStepChannelCreationParams){if(!N.comment_text){L=new _.sr("zero_step_create_comment_params but no zero_step_texts",Z);_.CA(L);return}L.zeroStepChannelCreationParams=Z.zeroStepChannelCreationParams;L.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(L.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
N.comment_text,N.botguard_response&&(L.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=N.botguard_response))}L.channelCreationToken=Z.channelCreationToken;N.given_name&&(L.givenName=N.given_name);N.family_name&&(L.familyName=N.family_name);Z.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(L.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(N.name||N.handle||N.avatar_url||N.encryptedBlobId||N.isNameChanged!==void 0||N.isHandleChanged!==void 0||N.isDefaultProfilePhoto!==
void 0||N.obakeImageSource)L.overrideChannelCreationParams={},N.name&&(L.overrideChannelCreationParams.name=N.name),N.handle&&(L.overrideChannelCreationParams.handle=N.handle),N.avatar_url&&(L.overrideChannelCreationParams.avatarUrl=N.avatar_url),N.encryptedBlobId&&(L.overrideChannelCreationParams.blobEncryptionId=N.encryptedBlobId),N.enableIdentityForAllChannelCreationDialog&&(N.encryptedBlobId?L.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
N.isDefaultProfilePhoto!==void 0&&(L.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=N.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),N.isNameChanged!==void 0&&(L.overrideChannelCreationParams.identityForAllChannelCreationNameTag=N.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),N.isHandleChanged!==
void 0&&(L.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=N.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),N.obakeImageSource&&(L.overrideChannelCreationParams.obakeImageSourceType=N.obakeImageSource))}};var zd=function(){};
_.f(zd,QG);zd.prototype.getApiPaths=function(L){return(L=this.getExtension(L))&&L.status==="DISLIKE"?LU5:L&&L.status==="INDIFFERENT"?E1q:ket};
zd.prototype.getExtension=function(L){return _.n(L,_.fm)};
zd.prototype.JSC$14167_buildRequest=function(L,Z){Z.target&&(L.target=Z.target);if(Z=this.getParams(Z))L.params=Z};
zd.prototype.getParams=function(L){switch(L==null?void 0:L.status){case "DISLIKE":return L.dislikeParams;case "INDIFFERENT":return L.removeLikeParams;default:return L==null?void 0:L.likeParams}};var mI=function(){};
_.f(mI,QG);mI.prototype.getApiPaths=function(){return AkQ};
mI.prototype.getExtension=function(L){return _.n(L,yEL)};
mI.prototype.JSC$14167_buildRequest=function(L,Z){Z.settingItemId&&(L.settingItemId=Z.settingItemId);Z.stringValue!=null&&Z.stringValue!==void 0?L.newValue={stringValue:Z.stringValue}:Z.intValue?L.newValue={intValue:Z.intValue}:Z.boolValue!==null&&Z.boolValue!==void 0?L.newValue={boolValue:Z.boolValue}:(L=new _.sr("Unknown value type for SetSettingEndpoint.",Z),_.CA(L))};var JG=function(){};
_.f(JG,QG);JG.prototype.getApiPaths=function(){return xPL};
JG.prototype.getExtension=function(L){return _.n(L,All)||void 0};
JG.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;Z.channelIds&&(L.channelIds=Z.channelIds);Z.siloName&&(L.siloName=Z.siloName);Z.params&&(L.params=Z.params);N.botguardResponse&&(L.botguardResponse=N.botguardResponse);N.feature&&(L.clientFeature=N.feature)};
_.gd.Object.defineProperties(JG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var C3=function(){};
_.f(C3,QG);C3.prototype.getApiPaths=function(){return LnI};
C3.prototype.getExtension=function(L){return _.n(L,w0V)||void 0};
C3.prototype.JSC$14167_buildRequest=function(L,Z){Z.channelIds&&(L.channelIds=Z.channelIds);Z.siloName&&(L.siloName=Z.siloName);Z.params&&(L.params=Z.params)};
_.gd.Object.defineProperties(C3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rO=function(L){this.shareClientParamsProvider=L};
_.f(rO,QG);rO.prototype.getApiPaths=function(){return QGs};
rO.prototype.getExtension=function(L){return _.n(L,NeL)||_.n(L,_.Sjt)||_.n(L,ZKl)};
rO.prototype.JSC$14167_buildRequest=function(L,Z){Z.serializedShareEntity&&(L.serializedSharedEntity=Z.serializedShareEntity);if(Z.clientParamIdentifier){var N;if((N=this.shareClientParamsProvider)==null?0:N.clientParams.has(Z.clientParamIdentifier)){N=this.shareClientParamsProvider;Z=Z.clientParamIdentifier;var S=N.clientParams.get(Z);S&&N.clientParams.delete(Z);L.clientParams=S}}};
rO[F2]=[Uc0];var QD=function(){};
_.f(QD,QG);QD.prototype.getApiPaths=function(){return d1L};
QD.prototype.getExtension=function(L){return _.n(L,YbL)};
QD.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.params=Z.params)};var XY=function(){};
_.f(XY,QG);XY.prototype.getApiPaths=function(){return ZJI};
XY.prototype.getExtension=function(L){return _.n(L,ywM)};
XY.prototype.JSC$14167_buildRequest=function(L,Z){Z.dismissal&&(L.items=[Z.dismissal])};
_.gd.Object.defineProperties(XY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var AG=function(){};
_.f(AG,QG);AG.prototype.getApiPaths=function(){return KUO};
AG.prototype.getExtension=function(L){return _.n(L,_.Rj)||void 0};
AG.prototype.JSC$14167_buildRequest=function(L,Z,N){L.feedbackTokens=[];Z.feedbackToken&&L.feedbackTokens.push(Z.feedbackToken);if(Z=Z.cpn||N.cpn)L.feedbackContext={cpn:Z};L.isFeedbackTokenUnencrypted=!!N.is_feedback_token_unencrypted;L.shouldMerge=!1;N.extra_feedback_tokens&&(L.shouldMerge=!0,L.feedbackTokens=L.feedbackTokens.concat(N.extra_feedback_tokens))};
_.gd.Object.defineProperties(AG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var H1=function(){};
_.f(H1,QG);H1.prototype.getApiPaths=function(){return KUO};
H1.prototype.getExtension=function(L){return _.n(L,_.ZW)};
H1.prototype.JSC$14167_buildRequest=function(L,Z,N){N.feedback_tokens&&(L.feedbackTokens=N.feedback_tokens,L.shouldMerge=!0)};
_.gd.Object.defineProperties(H1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var B1=function(){};
_.f(B1,QG);B1.prototype.getApiPaths=function(){return KUO};
B1.prototype.getExtension=function(L){return _.n(L,OpL)};
B1.prototype.JSC$14167_buildRequest=function(L,Z){Z.undoToken&&(L.feedbackTokens=[Z.undoToken]);Z.isUndoTokenUnencrypted&&(L.isFeedbackTokenUnencrypted=Z.isUndoTokenUnencrypted)};
_.gd.Object.defineProperties(B1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xA=function(){};
_.f(xA,QG);xA.prototype.getApiPaths=function(){return VTO};
xA.prototype.getExtension=function(L){return _.n(L,KPY)};
xA.prototype.JSC$14167_buildRequest=function(L,Z){Z.nextEndpoint&&_.n(Z.nextEndpoint,_.Lo)?L.nextEndpoint={urlEndpoint:_.n(Z.nextEndpoint,_.Lo)}:Z.nextEndpoint&&_.n(Z.nextEndpoint,_.so)&&(L.nextEndpoint={watchEndpoint:_.n(Z.nextEndpoint,_.so)});Z.setRacy&&(L.setRacy=Z.setRacy);Z.setControvercy&&(L.setControvercy=Z.setControvercy)};var qa=function(L){this.JSC$18127_storeWithEntities=L};
_.f(qa,QG);qa.prototype.getApiPaths=function(){return SLq};
qa.prototype.getExtension=function(L){return _.n(L,HO5)};
qa.prototype.JSC$14167_buildRequest=function(L,Z){Z.flowId&&(L.flowId=Z.flowId);Z.targetId&&(L.targetId=Z.targetId);Z.continuation&&(L.continuation=Z.continuation);var N=Z.flowStateEntityKey;if(Z.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&N&&this.JSC$18127_storeWithEntities){var S;if(Z=(S=this.JSC$18127_storeWithEntities.getState())==null?void 0:S.entities)if(S=_.HB(N).entityType,S=_.Lk(Z,S,N))L.flowState=S,L.flowStateEntityKey=N}};
_.gd.Object.defineProperties(qa.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
qa[F2]=[Cm];var Zyk=function(){};
_.f(Zyk,QG);_.t=Zyk.prototype;_.t.getApiPaths=function(){return n1l};
_.t.JSC$14174_getStoreKey=function(){return _.hd("guide")};
_.t.getRequestConfig=function(){var L=this.JSC$14174_getStoreKey(),Z;L&&(Z={storeStrategy:{storeKey:L}});return Z};
_.t.isNavigationCommand=function(){return!0};
_.t.getExtension=function(L){return _.n(L,_.ZW)};
_.t.JSC$14167_buildRequest=function(L){L.fetchLiveState=!0};var tX=function(){};
_.f(tX,QG);tX.prototype.getApiPaths=function(){return j9O};
tX.prototype.getExtension=function(L){return _.n(L,GL0)};
tX.prototype.JSC$14167_buildRequest=function(){};var OA=function(){};
_.f(OA,QG);OA.prototype.getApiPaths=function(){return EgV};
OA.prototype.getExtension=function(L){return _.n(L,Fyh)};
OA.prototype.JSC$14167_buildRequest=function(){};var WI=function(){};
_.f(WI,QG);WI.prototype.getApiPaths=function(){return IHs};
WI.prototype.getExtension=function(L){return _.n(L,_.k0)};
WI.prototype.JSC$14167_buildRequest=function(L,Z){Z.token&&(L.continuation=Z.token);var N,S;L==null||(N=L.context)==null||(S=N.user)==null||delete S.onBehalfOfUser};
WI.prototype.getRequestConfig=function(L){var Z={},N;if(((N=this.getExtension(L))==null?void 0:N.sessionIndex)!==void 0){var S;Z={authStrategy:{sessionIndex:(S=this.getExtension(L))==null?void 0:S.sessionIndex}}}return Z};var Vh=function(){};
_.f(Vh,QG);Vh.prototype.JSC$14167_getRequest=function(L){var Z=this.getExtension(L),N=L="";if(Z==null?0:Z.popup)L="true";if(Z==null?0:Z.disableSignout)N="true";Z={};return{input:"/getAccountSwitcherEndpoint",requestShell:aH("/getAccountSwitcherEndpoint","GET",(Z["X-YouTube-Delegation-Context"]=_.X7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),Z["X-YouTube-Account-Switcher-Popup"]=L,Z["X-YouTube-Account-Switcher-Disable-Signout"]=N,Z)),innerTubeRequest:{}}};
Vh.prototype.getApiPaths=function(){return[]};
Vh.prototype.getExtension=function(L){return _.n(L,_.nyG)};
Vh.prototype.JSC$14167_buildRequest=function(){};var bi=function(){};
_.f(bi,QG);bi.prototype.JSC$14167_getRequest=function(L){var Z="/cross_account_channel_transfer";(L=this.getExtension(L))&&(Z=Ccw(Z,{target_session:L.targetSessionIndex,source_rapt:L.sourceRapt,rapt:L.targetRapt}));return{input:Z,requestShell:aH(Z,"GET"),innerTubeRequest:{}}};
bi.prototype.getApiPaths=function(){return[]};
bi.prototype.getExtension=function(L){return _.n(L,lQh)};
bi.prototype.JSC$14167_buildRequest=function(){};var MK=function(){};
_.f(MK,QG);MK.prototype.getApiPaths=function(){return iJO};
MK.prototype.isNavigationCommand=function(){return!0};
MK.prototype.getExtension=function(L){return _.n(L,_.ZW)};
MK.prototype.JSC$14167_buildRequest=function(L){var Z=_.tq().get("gsml","");Z&&(L.safetyModeLockerObfuscatedGaiaId=Z);L.userInterfaceTheme=_.wr(!0);_.Ux()?L.deviceTheme="DEVICE_THEME_SELECTED":_.VqA()?L.deviceTheme="DEVICE_THEME_SUPPORTED":L.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var gB=function(){};
_.f(gB,QG);gB.prototype.getApiPaths=function(){return IHs};
gB.prototype.getExtension=function(L){return _.n(L,vFQ)};
gB.prototype.JSC$14167_buildRequest=function(L,Z){if(Z&&Z.requestType&&(L.requestType=Z.requestType,Z.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||Z.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var N=Z.nextUrl;N&&(_.QHw(N)||bQ(N))&&(L.nextNavendpoint={urlEndpoint:{url:N}})}Z&&Z.channelSwitcherQuery&&(L.channelSwitcherQuery=Z.channelSwitcherQuery);Z&&Z.triggerChannelCreation&&(L.triggerChannelCreation=Z.triggerChannelCreation);var S;if(Z==null?0:(S=Z.contentOwnerConfig)==
null?0:S.externalContentOwnerId)L.contentOwnerConfig=Z.contentOwnerConfig;L.callCircumstance=Z&&Z.requestType&&Z.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var u,T;Z=L==null?void 0:(u=L.context)==null?void 0:(T=u.user)==null?void 0:T.onBehalfOfUser;if(Z!==void 0){L.obfuscatedSelectedGaiaId=Z;var W,V;L==null||(W=L.context)==null||(V=W.user)==null||delete V.onBehalfOfUser}var M,G;if(u=L==null?void 0:(M=L.context)==null?void 0:(G=M.user)==null?
void 0:G.serializedDelegationContext)L.selectedSerializedDelegationContext=u};var GS=function(){};
_.f(GS,QG);GS.prototype.getApiPaths=function(){return aHt};
GS.prototype.getExtension=function(L){return _.n(L,iKt)};
GS.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.params=Z.params)};var F9=function(){};
_.f(F9,QG);F9.prototype.getApiPaths=function(){return JIV};
F9.prototype.getExtension=function(L){return _.n(L,_.FcV)};
F9.prototype.JSC$14167_buildRequest=function(L,Z){if(Z=Z.createBroadcastRequest)L.useMasks=Z.useMasks,L.broadcastType=Z.broadcastType,L.broadcastSource=Z.broadcastSource,L.broadcastMetadata=Z.broadcastMetadata,L.broadcastMetadataMask=Z.broadcastMetadataMask,L.videoMetadata=Z.videoMetadata,L.videoMetadataMask=Z.videoMetadataMask,L.liveChatSettingsUpdate=Z.liveChatSettingsUpdate,L.liveChatSettingsUpdateMask=Z.liveChatSettingsUpdateMask,L.cloneVideoId=Z.cloneVideoId,L.cloneWithOverrides=Z.cloneWithOverrides,
L.targetEntity=Z.targetEntity,L.scheduledRedirectMetadata=Z.scheduledRedirectMetadata};var $I=function(){};
_.f($I,QG);$I.prototype.getApiPaths=function(){return XAQ};
$I.prototype.getExtension=function(L){return _.n(L,thQ)};
$I.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;Z.params&&(L.params=Z.params);N.questionText&&(L.questionText=N.questionText);N.optionText&&N.optionText.length>0&&(L.optionText=N.optionText)};var Dy=function(){};
_.f(Dy,QG);Dy.prototype.getApiPaths=function(){return BLl};
Dy.prototype.getExtension=function(L){return _.n(L,uxO)};
Dy.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.params=Z.params)};var li=function(){};
_.f(li,QG);li.prototype.getApiPaths=function(){return WUl};
li.prototype.getExtension=function(L){return _.n(L,ZF0)};
li.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.params=Z.params)};var vI=function(){};
_.f(vI,QG);vI.prototype.getApiPaths=function(){return bJq};
vI.prototype.getExtension=function(L){return _.n(L,NMt)};
vI.prototype.JSC$14167_buildRequest=function(L,Z,N){Z.params&&(L.params=Z.params);Z.continuation&&(L.continuation=Z.continuation);N.currentPlayerState&&N.currentPlayerState.playerOffsetMs&&(L.currentPlayerState={playerOffsetMs:N.currentPlayerState.playerOffsetMs.toString()})};var o5=function(){};
_.f(o5,QG);o5.prototype.getApiPaths=function(){return MqQ};
o5.prototype.getExtension=function(L){return _.n(L,Lit)};
o5.prototype.JSC$14167_buildRequest=function(L,Z,N){Z.params&&(L.params=Z.params);N.continuation&&(L.continuation=N.continuation);"hidden"in N&&(L.webClientInfo={isDocumentHidden:N.hidden});N.isInvalidationTimeoutRequest&&(L.isInvalidationTimeoutRequest=N.isInvalidationTimeoutRequest);N.invalidationPayload&&(Z=qFI(_.xt(Mu(N.invalidationPayload))),L.invalidationPayloadLastPublishAtUsec=RA(Z,2));N.reloadActionPanel&&(L.reloadActionPanel=N.reloadActionPanel);N.fullReload&&(L.fullReload=N.fullReload);
N.currentPlayerState&&(L.currentPlayerState=N.currentPlayerState)};var R5=function(){};
_.f(R5,QG);R5.prototype.getApiPaths=function(){return yk5};
R5.prototype.getExtension=function(L){return _.n(L,TMO)};
R5.prototype.JSC$14167_buildRequest=function(L,Z){L.params=Z.params};var cI=function(){};
_.f(cI,QG);cI.prototype.getApiPaths=function(){return VqQ};
cI.prototype.getExtension=function(L){return _.n(L,oXh)};
cI.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.params=Z.params)};var nu=function(){};
_.f(nu,QG);nu.prototype.getApiPaths=function(){return g1N};
nu.prototype.getExtension=function(L){return _.n(L,Ru0)};
nu.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.params=Z.params)};var Ku=function(){};
_.f(Ku,QG);Ku.prototype.getApiPaths=function(){return w75};
Ku.prototype.getExtension=function(L){return _.n(L,OFO)};
Ku.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.params=Z.params)};var fu=function(){};
_.f(fu,QG);fu.prototype.getApiPaths=function(){return YLq};
fu.prototype.getExtension=function(L){return _.n(L,Wil)};
fu.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.params=Z.params)};var kI=function(){};
_.f(kI,QG);kI.prototype.getApiPaths=function(){return P_s};
kI.prototype.getExtension=function(L){return _.n(L,tKQ)};
kI.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.params=Z.params)};var yh=function(){};
_.f(yh,QG);yh.prototype.getApiPaths=function(){return Qvs};
yh.prototype.getExtension=function(L){return _.n(L,_.Vht)};
yh.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;Z.params&&(L.params=Z.params);N.client_message_id&&(L.clientMessageId=N.client_message_id);N.recaptcha_token&&(L.recaptchaToken=N.recaptcha_token);N.rich_message&&N.rich_message.text_segments?(Z=N.rich_message.text_segments.map(function(S){var u={};S.text&&(u.text=S.text);S.emoji_id&&(u.emojiId=S.emoji_id);return u}),L.richMessage={textSegments:Z}):N.message&&(L.message=N.message);
N.currentPlayerState&&(L.currentPlayerState=N.currentPlayerState)};var wB=function(){};
_.f(wB,QG);wB.prototype.getApiPaths=function(){return X7M};
wB.prototype.getExtension=function(L){return _.n(L,bFq)};
wB.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.params=Z.params)};var UA=function(){};
_.f(UA,QG);UA.prototype.getApiPaths=function(){return qLY};
UA.prototype.getExtension=function(L){return _.n(L,g3t)};
UA.prototype.JSC$14167_buildRequest=function(L,Z,N){Z.isUserInitiated&&(L.isUserInitiated=Z.isUserInitiated);Z.initiationSource&&(L.initiationSource=Z.initiationSource);N.locationInfo&&(L.context.client.locationInfo=N.locationInfo)};var YI=function(){};
_.f(YI,QG);YI.prototype.getApiPaths=function(){return UPl};
YI.prototype.getExtension=function(L){return _.n(L,$vN)};
YI.prototype.JSC$14167_buildRequest=function(L,Z,N){Z.metadataUpdateRequest&&(Z=Z.metadataUpdateRequest,L.encryptedVideoId=Z.encryptedVideoId,Z.liveChat&&(Z=Z.liveChat,L.liveChat||(L.liveChat={}),Z.performAsExternalChannelId&&(L.liveChat.performAsExternalChannelId=Z.performAsExternalChannelId),Z.source&&(L.liveChat.source=Z.source)));var S;if(N==null?0:(S=N.liveChat)==null?0:S.liveChatSettings)L.liveChat||(L.liveChat={}),N=N.liveChat.liveChatSettings,L.liveChat.newLiveChatSettings=N,L.liveChat.newLiveChatSettingsMask||
(L.liveChat.newLiveChatSettingsMask={}),N.emojiReactionSet&&(L.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var ep=function(){};
_.f(ep,QG);ep.prototype.getApiPaths=function(){return OPL};
ep.prototype.getExtension=function(L){return _.n(L,_.UWh)};
ep.prototype.JSC$14167_buildRequest=function(L,Z,N){N.continuation?L.continuation=N.continuation:Z.videoId&&(L.videoId=Z.videoId);N.clientParams&&(L.clientParams=N.clientParams)};var I5=function(){};
_.f(I5,QG);I5.prototype.getApiPaths=function(){return GeL};
I5.prototype.getExtension=function(L){return _.n(L,_.XN)};
I5.prototype.JSC$14167_buildRequest=function(L,Z){L.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";L.fetchCommentsParams={};Z.videoId&&(L.fetchCommentsParams.encryptedVideoId=Z.videoId);Z.postId&&(L.fetchCommentsParams.postId=Z.postId);Z.externalChannelId&&(L.fetchCommentsParams.externalChannelId=Z.externalChannelId);Z.linkedCommentId&&(L.fetchCommentsParams.linkedCommentId=Z.linkedCommentId);(0,_.Py.isEmpty)(L.fetchCommentsParams)&&delete L.fetchCommentsParams};var dB=function(){};
_.f(dB,QG);dB.prototype.getApiPaths=function(){return aL};
dB.prototype.JSC$14167_buildRequest=function(L){L.browseId="FEnotifications_inbox"};
dB.prototype.getExtension=function(L){return _.n(L,_.ZW)};var a5=function(){};
_.f(a5,QG);a5.prototype.getApiPaths=function(){return GeL};
a5.prototype.JSC$14167_buildRequest=function(L,Z){Z.signal==="GET_NOTIFICATIONS_MENU"&&(L.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");Z.ctoken&&(L.ctoken=Z.ctoken)};
var NZ0=function(){};
_.f(NZ0,a5);NZ0.prototype.getExtension=function(L){return _.n(L,_.ZW)};
var S_w=function(){};
_.f(S_w,a5);S_w.prototype.getExtension=function(L){return _.n(L,RYY)};var hX=function(){};
_.f(hX,QG);hX.prototype.getApiPaths=function(){return o1q};
hX.prototype.getExtension=function(L){return _.n(L,_.ZW)};
hX.prototype.JSC$14167_buildRequest=function(){};var sA=function(){};
_.f(sA,QG);sA.prototype.getApiPaths=function(){return ecq};
sA.prototype.getExtension=function(L){return _.n(L,Ky5)||void 0};
sA.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.params=Z.params);Z.secondaryParams&&(L.secondaryParams=Z.secondaryParams)};var jp=function(){};
_.f(jp,QG);jp.prototype.getApiPaths=function(){return IpO};
jp.prototype.getExtension=function(L){return _.n(L,ufQ)};
jp.prototype.JSC$14167_buildRequest=function(L,Z){Z.undo&&(L.undo=Z.undo);Z.serializedOptOut&&(L.serializedOptOut=Z.serializedOptOut);Z.serializedRecordInteractionsRequest&&(L.serializedRecordInteractionsRequest=Z.serializedRecordInteractionsRequest)};var EA=function(){};
_.f(EA,QG);EA.prototype.getApiPaths=function(){return hcV};
EA.prototype.getExtension=function(L){return _.n(L,TeV)};
EA.prototype.JSC$14167_buildRequest=function(L,Z){Z.serializedInteractionsRequest&&(L.serializedRecordNotificationInteractionsRequest=Z.serializedInteractionsRequest)};var PI=function(){};
_.f(PI,QG);PI.prototype.getApiPaths=function(){return XYw};
PI.prototype.getExtension=function(L){return _.n(L,eS_)};
PI.prototype.JSC$14167_buildRequest=function(L,Z,N){Z=Z===void 0?{}:Z;N=N===void 0?{}:N;Z.videoId?L.videoId=Z.videoId:Z.playlistId&&(L.playlistId=Z.playlistId);var S,u=(S=Z.offlineWebClientEligibility)!=null?S:N.offlineWebClientEligibility;u&&(L.offlineWebClientEligibility=u);var T;if(S=(T=Z.preferredFormatType)!=null?T:N.preferredFormatType)L.preferredFormatType=S;var W;if(T=(W=Z.lastOfflineQualitySettingsSavedMs)!=null?W:N.lastOfflineQualitySettingsSavedMs)L.lastOfflineQualitySettingsSavedMs=T;
Z.params&&(L.params=Z.params)};var pu=function(){};
_.f(pu,QG);pu.prototype.getApiPaths=function(){return gM};
pu.prototype.getExtension=function(L){return _.n(L,_.k0)};
pu.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;Z.token&&(L.continuation=Z.token);N.formData&&(L.formData=N.formData)};var zS=function(){};
_.f(zS,QG);zS.prototype.getApiPaths=function(){return gM};
zS.prototype.getExtension=function(L){return _.n(L,V3q)};
zS.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;L.continuation=N.continuation};var m6=function(){};
_.f(m6,QG);m6.prototype.getApiPaths=function(){return gM};
m6.prototype.getExtension=function(L){return _.n(L,_.oj)};
m6.prototype.JSC$14167_buildRequest=function(L,Z){var N,S=Z.panelIdentifier||((N=Z.identifier)==null?void 0:N.tag);S&&(L.panelId=S);var u;if((u=Z.globalConfiguration)==null?0:u.params){var T;L.params=(T=Z.globalConfiguration)==null?void 0:T.params}};
_.gd.Object.defineProperties(m6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var JX=function(){};
_.f(JX,QG);JX.prototype.getApiPaths=function(){return gM};
JX.prototype.getExtension=function(L){return _.n(L,qBs)};
JX.prototype.JSC$14167_buildRequest=function(L,Z){Z.panelLoadingStrategy&&q2F(L,Z.panelLoadingStrategy)};var Cu=function(){};
_.f(Cu,QG);Cu.prototype.getApiPaths=function(){return gM};
Cu.prototype.getExtension=function(L){return _.n(L,DNN)};
Cu.prototype.JSC$14167_buildRequest=function(L,Z){Z.loadingStrategy&&q2F(L,Z.loadingStrategy)};var rB=function(){};
_.f(rB,QG);rB.prototype.getApiPaths=function(){return gM};
rB.prototype.getExtension=function(L){return _.n(L,_.bgL)};
rB.prototype.JSC$14167_buildRequest=function(L,Z){Z.panelLoadingStrategy&&q2F(L,Z.panelLoadingStrategy)};var Qh=function(){};
_.f(Qh,QG);Qh.prototype.getApiPaths=function(){return gM};
Qh.prototype.getExtension=function(L){return _.n(L,lA0)};
Qh.prototype.JSC$14167_buildRequest=function(L,Z){var N,S=(N=Z.contentSourcePanelIdentifier)==null?void 0:N.tag;S&&(L.panelId=S);var u;if((u=Z.globalConfiguration)==null?0:u.params){var T;L.params=(T=Z.globalConfiguration)==null?void 0:T.params}};var X9=function(){};
_.f(X9,QG);X9.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
X9.prototype.getExtension=function(L){return _.n(L,vXq)};
X9.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.params=Z.params)};var AX=function(){};
_.f(AX,QG);AX.prototype.getApiPaths=function(){return tTY};
AX.prototype.getExtension=function(L){return _.n(L,cyl)};
AX.prototype.JSC$14167_buildRequest=function(L,Z){Z.externalChannelId&&(L.externalChannelId=Z.externalChannelId);Z.superChatAction&&(L.superChatAction=Z.superChatAction);Z.superStickersAction&&(L.superStickersAction=Z.superStickersAction)};var HI=function(){};
_.f(HI,QG);HI.prototype.getApiPaths=function(){return u3t};
HI.prototype.getExtension=function(L){return _.n(L,gwt)||_.n(L,dAw)};
HI.prototype.JSC$14167_buildRequest=function(L,Z){Z.videoIds?L.videoIds=Z.videoIds:Z.videoId&&(L.videoIds=[Z.videoId]);Z.playlistId&&(L.playlistId=Z.playlistId);Z.params&&(L.params=Z.params);L.excludeWatchLater=!1};var BI=function(){};
_.f(BI,QG);BI.prototype.getApiPaths=function(){return AIQ};
BI.prototype.getExtension=function(L){return _.n(L,_.Zj)};
BI.prototype.JSC$14167_buildRequest=function(L,Z,N){N.create_playlist_title?L.title=N.create_playlist_title:Z.title&&(L.title=Z.title);if(N.create_playlist_privacy_status&&typeof N.create_playlist_privacy_status==="number"){a:{var S=N.create_playlist_privacy_status;if(S!==0){if(S===1){S="PUBLIC";break a}if(S===2){S="UNLISTED";break a}}S="PRIVATE"}L.privacyStatus=S}else Z.privacyStatus&&(L.privacyStatus=Z.privacyStatus);N.create_playlist_description&&(L.description=N.create_playlist_description);Z.videoIds&&
(L.videoIds=Z.videoIds);Z.params&&(L.params=Z.params);Z.sourcePlaylistId&&(L.sourcePlaylistId=Z.sourcePlaylistId)};var xI=function(){};
_.f(xI,QG);xI.prototype.getApiPaths=function(){return x1t};
xI.prototype.getExtension=function(L){return _.n(L,cE5)};
xI.prototype.JSC$14167_buildRequest=function(L,Z){L.playlistId=Z.playlistId};var qK=function(){};
_.f(qK,QG);qK.prototype.getApiPaths=function(){return FUq};
qK.prototype.getExtension=function(L){return _.n(L,qOI)};
qK.prototype.JSC$14167_buildRequest=function(L,Z){Z.playlistId&&(L.playlistId=Z.playlistId);Z.params&&(L.params=Z.params)};var Lw=function(){};
_.f(Lw,QG);Lw.prototype.getApiPaths=function(){return apt};
Lw.prototype.getExtension=function(L){return _.n(L,_.Ac)||void 0};
Lw.prototype.JSC$14167_buildRequest=function(L,Z){Z.actions&&(L.actions=Z.actions);Z.params&&(L.params=Z.params);Z.playlistId&&(L.playlistId=Z.playlistId)};var Z_=function(){};
_.f(Z_,QG);_.t=Z_.prototype;_.t.getApiPaths=function(){return svL};
_.t.getExtension=function(L){return _.n(L,_.Ox)};
_.t.JSC$14167_buildRequest=function(L,Z){Z.videoId&&(L.playerRequest={videoId:Z.videoId},Z.playerParams&&(L.playerRequest.params=Z.playerParams),Z.racyCheckOk&&(L.playerRequest.racyCheckOk=!!Z.racyCheckOk),Z.contentCheckOk&&(L.playerRequest.contentCheckOk=!!Z.contentCheckOk));Z.params&&(L.params=Z.params);Z.inputType&&(L.inputType=Z.inputType);L.disablePlayerResponse=!0};
_.t.getRequestConfig=function(L){var Z;(L=this.JSC$14174_getStoreKey(L))&&(Z={storeStrategy:{storeKey:L}});_.c("web_log_reels_ticks")&&(Z=Z||{},Z.requestTick="r_wrs",Z.responseTick="r_wrr");return Z};
_.t.JSC$14174_getStoreKey=function(L){L=this.getExtension(L);if(L!=null&&L.videoId){var Z={videoId:L.videoId};L.params&&(Z.params=L.params);return _.hd("reel_item_watch",Z)}};var NM=function(){};
_.f(NM,QG);_.t=NM.prototype;_.t.getApiPaths=function(){return jvQ};
_.t.getExtension=function(L){return _.n(L,_.Ox)};
_.t.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;L.sequenceParams=Z.sequenceParams;var S;((S=N)==null?0:S.contentPlaybackContext)&&_.c("web_shorts_prefetch_service_enabled")&&(L.playbackContext={contentPlaybackContext:N.contentPlaybackContext})};
_.t.JSC$14174_getStoreKey=function(L){if(_.c("web_enable_delay_shorts_sequence_call")||_.c("shorts_controller_retrieve_seedless_sequence_v2"))if(L=this.getExtension(L),L==null?0:L.sequenceParams)return _.hd("reel_watch_sequence",{sequenceParams:L.sequenceParams})};
_.t.getRequestConfig=function(L){L=this.JSC$14174_getStoreKey(L);var Z;L&&(Z={storeStrategy:{storeKey:L}});Z=Z||{};Z.requestTick="r_wsrs";Z.responseTick="r_wsrr";Z.processorTick="r_wsrp";return Z};
var Sl=function(){};
_.f(Sl,QG);Sl.prototype.getApiPaths=function(){return jvQ};
Sl.prototype.getExtension=function(L){return _.n(L,_.k0)};
Sl.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;Z.token&&(L.continuation=Z.token);var S;((S=N)==null?0:S.contentPlaybackContext)&&_.c("web_shorts_prefetch_service_enabled")&&(L.playbackContext={contentPlaybackContext:N.contentPlaybackContext})};
Sl.prototype.getRequestConfig=function(L){L=this.JSC$14174_getStoreKey(L);var Z;L&&(Z={storeStrategy:{storeKey:L}});Z=Z||{};Z.requestTick="r_wsrs";Z.responseTick="r_wsrr";Z.processorTick="r_wsrp";return Z};var ir=function(){};
_.f(ir,QG);ir.prototype.getApiPaths=function(){return NaV};
ir.prototype.getExtension=function(L){return _.n(L,_.QNO)};
ir.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;Z.flagAction&&(L.action=Z.flagAction);Z.flagRequestType&&(L.flagRequestType=Z.flagRequestType);Z.additionalDetailCheckboxChecked&&(L.additionalDetailCheckboxChecked=Z.additionalDetailCheckboxChecked);Z.legalCheckboxChecked&&(L.legalCheckboxChecked=Z.legalCheckboxChecked);Z={};N.flag_issue_type!==void 0&&(Z.issue=N.flag_issue_type);N.flag_affiliation!==void 0&&(Z.affiliation=N.flag_affiliation);N.flag_full_name&&(Z.fullName=N.flag_full_name);
Object.keys(Z).length&&(L.legalReportDetails=Z);if(N.flag_description||N.text)L.userComments=N.flag_description||N.text;Z={};N.minutes!==void 0&&N.seconds!==void 0&&(Z.minutes=N.minutes,Z.seconds=N.seconds);N.vss_id&&(Z.vssId=N.vss_id);Object.keys(Z).length&&(L.videoReportDetails=Z);Z={};N.video_ids&&(Z.videoIds=N.video_ids);N.impersonated_channel_url&&(Z.impersonatedChannelUrl=N.impersonated_channel_url);Object.keys(Z).length&&(L.channelAbuseReportDetails=Z)};
_.gd.Object.defineProperties(ir.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ur=function(){};
_.f(ur,QG);ur.prototype.getApiPaths=function(){return OJL};
ur.prototype.getExtension=function(L){return _.n(L,RoM)};
ur.prototype.JSC$14167_buildRequest=function(L,Z){Z.blockedForKidsContent&&(L.blockedForKidsContent=Z.blockedForKidsContent)};var Th=function(){};
_.f(Th,QG);Th.prototype.getApiPaths=function(){return p7L};
Th.prototype.getExtension=function(L){return _.n(L,I6s)};
Th.prototype.JSC$14167_buildRequest=function(L,Z,N){L.params=Z.params;N.impersonated_channel_url&&(L.impersonatedChannelUrl=N.impersonated_channel_url)};var tM=function(){};
_.f(tM,QG);tM.prototype.getApiPaths=function(){return fps};
tM.prototype.getExtension=function(L){return _.n(L,_.ccl)};
tM.prototype.JSC$14167_buildRequest=function(L,Z){Z.items&&(L.items=Z.items);Z.kidGaiaId&&(L.kidGaiaId=Z.kidGaiaId)};var Os=function(){};
_.f(Os,QG);Os.prototype.getApiPaths=function(){return Tat};
Os.prototype.getExtension=function(L){return _.n(L,_.VkY)};
Os.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.params=Z.params);Z.targetId&&(L.targetId=Z.targetId)};var WC=function(){};
_.f(WC,QG);WC.prototype.getApiPaths=function(){return C_N};
WC.prototype.getExtension=function(L){return _.n(L,cwl)};
WC.prototype.JSC$14167_buildRequest=function(L,Z){Z.externalVideoId&&(L.externalVideoId=Z.externalVideoId);Z.query&&(L.query=Z.query);Z.sourceTimelines&&(L.sourceTimelines=Z.sourceTimelines)};var VW=function(){};
_.f(VW,QG);VW.prototype.getApiPaths=function(){return rkq};
VW.prototype.getExtension=function(L){return _.n(L,_.k0)||void 0};
VW.prototype.JSC$14167_buildRequest=function(L,Z){Z.token&&(L.continuation=Z.token)};
_.iyc=function(){};
_.f(_.iyc,QG);_.t=_.iyc.prototype;_.t.getApiPaths=function(){return rkq};
_.t.getExtension=function(L){return _.n(L,_.uv)||void 0};
_.t.isNavigationCommand=function(){return!0};
_.t.JSC$14174_getStoreKey=function(L,Z){Z=Z===void 0?{}:Z;if(!Z.disableCache&&(L=this.getExtension(L))&&L.query)return Z={query:L.query},L.params&&(Z.params=L.params),_.hd("search",Z)};
_.t.JSC$14167_buildRequest=function(L,Z,N){Z.query&&(L.query=Z.query);Z.params&&(L.params=Z.params);if(!_.c("web_forward_suggest_stats_killswitch")){var S=_.n(Z,reM);S&&(L.suggestStats=S)}var u;!_.c("kevlar_searchbox_stats_killswitch")&&((u=N.tempData)==null?0:u.gs_l)&&!_.n(Z,reM)&&(L.webSearchboxStatsUrl="/search?oq="+(N.tempData.oq||"")+"&gs_l="+N.tempData.gs_l);var T;if((T=N.tempData)==null?0:T.entityMid)Z=L.suggestionSearchParams||{},Z.entityMid=N.tempData.entityMid,L.suggestionSearchParams=Z;
if(_.c("enable_desktop_vdcbg_components")||_.c("enable_inline_muted_playback_on_web_search"))Z=_.tq().getFlag(186),L.inlineSettingStatus=Z?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";var W;((W=N.tempData)==null?0:W.isFromShorts)&&_.c("web_pass_shorts_context_to_search")&&(L.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.t.getRequestConfig=function(L,Z){Z=Z===void 0?{}:Z;L=this.JSC$14174_getStoreKey(L,Z);var N;L&&(N={storeStrategy:{storeKey:L}});_.c("web_log_search_ticks_ks")||(N=N||{},N.requestTick="sr_s",N.responseTick="sr_r");return N};var br=function(){};
_.f(br,QG);br.prototype.getApiPaths=function(){return lpL};
br.prototype.getExtension=function(L){return _.n(L,Eu0)};
br.prototype.JSC$14167_buildRequest=function(L,Z){Z.serializedGetSharingProviderDataParams&&(L.serializedGetSharingProviderDataParams=Z.serializedGetSharingProviderDataParams)};var MM=function(){};
_.f(MM,QG);MM.prototype.getApiPaths=function(){return v1M};
MM.prototype.getExtension=function(L){return _.n(L,zYs)};
MM.prototype.JSC$14167_buildRequest=function(L,Z){Z.endpoint&&(L.endpoint=Z.endpoint);Z.action&&(L.action=Z.action)};var g2=function(){};
_.f(g2,QG);g2.prototype.getApiPaths=function(){return qql};
g2.prototype.getExtension=function(L){return _.n(L,nw5)};
g2.prototype.JSC$14167_buildRequest=function(L,Z){L.videoId=Z.videoId;Z.scheduledRedirectMetadataSourceVideoId&&(L.scheduledRedirectMetadata={sourceVideoId:Z.scheduledRedirectMetadataSourceVideoId})};var Gh=function(){};
_.f(Gh,QG);Gh.prototype.getApiPaths=function(){return HJl};
Gh.prototype.getExtension=function(L){return _.n(L,_.Kxt)};
Gh.prototype.JSC$14167_buildRequest=function(L,Z){L.params=Z.params;L.correctionText=Z.correctionText};var Fp=function(){};
_.f(Fp,QG);Fp.prototype.getApiPaths=function(){return Cd_};
Fp.prototype.getExtension=function(L){return _.n(L,_.naq)};
Fp.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.params=Z.params);L.searchQuery=Z.searchQuery;L.languageCode=Z.languageCode;L.kind=Z.kind;L.name=Z.name;L.externalVideoId=Z.externalVideoId};var $r=function(){};
_.f($r,QG);$r.prototype.getApiPaths=function(){return MTt};
$r.prototype.getExtension=function(L){return _.n(L,ppM)};
$r.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.params=Z.params)};var D_=function(L){this.JSC$18398_storeWithEntities=L};
_.f(D_,QG);D_.prototype.getApiPaths=function(){return zB0};
D_.prototype.getExtension=function(L){return _.n(L,mkh)||_.n(L,CUL)};
D_.prototype.JSC$14167_buildRequest=function(L,Z,N){N.client_data&&(L.clientData=N.client_data);if(Z.commerceActionConfig){var S=Z.commerceActionConfig;Z=S.actionId;S=S.commerceActionParams;Z&&(L.actionId=Z);S&&(L.commerceActionParams=S)}else{var u=Z.actionId,T=Z.commerceActionParams;N=Z.entityKeys;u&&(L.actionId=u);T&&(L.commerceActionParams=T);var W;Z=(S=this.JSC$18398_storeWithEntities)==null?void 0:(W=S.getState())==null?void 0:W.entities;if(N&&Z){S=[];W=_.O(N);for(N=W.next();!N.done;N=W.next())if(u=
N.value,N=_.HB(u).entityType,u=_.Lk(Z,N,u))T={},S.push((T[N]=u,T));L.entityMutationPayloads=S}}};
D_.prototype.getRequestConfig=function(L){var Z,N=(Z=_.n(L,mkh))==null?void 0:Z.requestSequenceType;if(N&&L.clickTrackingParams&&N!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:L.clickTrackingParams,sequenceType:N}}};
D_[F2]=[Cm];var lr=function(){};
_.f(lr,QG);lr.prototype.getApiPaths=function(){return g2q};
lr.prototype.getExtension=function(L){return _.n(L,_.WbQ)};
lr.prototype.JSC$14167_buildRequest=function(L,Z){Z.feedbackData&&(L.feedbackData=Z.feedbackData);Z.params&&(L.itemParams=Z.params)};
_.gd.Object.defineProperties(lr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var vC=function(){};
_.f(vC,QG);vC.prototype.getApiPaths=function(){return Gul};
vC.prototype.getExtension=function(L){return _.n(L,VrM)};
vC.prototype.JSC$14167_buildRequest=function(L,Z,N){N.payments_payload&&(L.paymentsPayload=N.payments_payload);N.offer_params&&(L.offerParams=N.offer_params);Z.transactionParams&&(L.transactionParams=Z.transactionParams)};var o0=function(){};
_.f(o0,QG);o0.prototype.getApiPaths=function(){return Fnl};
o0.prototype.getExtension=function(L){return _.n(L,_.bNt)};
o0.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;Z.buybucketParams&&(L.buybucketData={params:Z.buybucketParams},Z.stickerParams?L.buybucketData.stickerParams=Z.stickerParams:(N.rich_chat_message?L.buybucketData.richChatMessage=N.rich_chat_message:N.chat_message_text&&(L.buybucketData.chatMessageText=N.chat_message_text),N.purchase_price_micros&&(L.buybucketData.purchasePriceMicros=N.purchase_price_micros.toString())));Z.donationAmountMicros&&(L.tipAmountMicros=Z.donationAmountMicros,
Z.tipParams&&(L.tipParams=Z.tipParams));Z.offerParams&&(L.offerParams=Z.offerParams);Z.productData&&(L.productData=Z.productData);Z.transactionParams&&(L.transactionParams=Z.transactionParams)};var R0=function(){};
_.f(R0,QG);R0.prototype.getApiPaths=function(){return $lq};
R0.prototype.getExtension=function(L){return _.n(L,G9Y)};
R0.prototype.JSC$14167_buildRequest=function(L,Z){Z.updateFopParams&&(L.updateFopParams=Z.updateFopParams)};var cC=function(){};
_.f(cC,QG);cC.prototype.getApiPaths=function(){return Dlt};
cC.prototype.getExtension=function(L){return _.n(L,_.hu)};
cC.prototype.JSC$14167_buildRequest=function(L,Z){Z.couponCode&&(L.couponCode=Z.couponCode);Z.params&&(L.itemParams=Z.params)};var nw=function(){};
_.f(nw,QG);nw.prototype.getApiPaths=function(){return lLh};
nw.prototype.getExtension=function(L){return _.n(L,_.JOY)};
nw.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;Z.params&&(L.params=Z.params);N.ctk&&(L.clientToken=N.ctk)};var Kw=function(L){this.JSC$18433_storeWithEntities=L};
_.f(Kw,QG);Kw.prototype.getApiPaths=function(){return v2O};
Kw.prototype.getExtension=function(L){return _.n(L,_.uD)};
Kw.prototype.JSC$14167_buildRequest=function(L,Z,N){N.purchase_price_micros&&(L.productData={pdgData:{purchasePriceMicros:N.purchase_price_micros.toString()}},N.rich_chat_message&&(L.productData.pdgData.richChatMessage=N.rich_chat_message),N.currency_code&&(L.productData.pdgData.currencyCode=N.currency_code));Z.transactionParams&&(L.transactionParams=Z.transactionParams);Z.clientLocationContext&&(L.clientLocationContext=Z.clientLocationContext);N.payments_payload&&(L.paymentsPayload=N.payments_payload);
N.funds_guarantee_callback_client_data&&(L.fundsGuaranteeCallbackClientData=N.funds_guarantee_callback_client_data);var S,u;N=(S=this.JSC$18433_storeWithEntities)==null?void 0:(u=S.getState())==null?void 0:u.entities;if(Z.entityKeys&&N){S=[];Z=_.O(Z.entityKeys);for(u=Z.next();!u.done;u=Z.next()){var T=u.value;u=_.HB(T).entityType;if(T=_.Lk(N,u,T)){var W={};S.push((W[u]=T,W))}}L.entityMutationPayloads=S}};
Kw[F2]=[Cm];var fw=function(){};
_.f(fw,QG);fw.prototype.getApiPaths=function(){return o2q};
fw.prototype.getExtension=function(L){return _.n(L,MrI)};
fw.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;N.backend_analytics&&(L.serializedBackendAnalyticsEvent=N.backend_analytics);Z.offerParams&&(L.offerParams=Z.offerParams)};var kr=function(){};
_.f(kr,QG);kr.prototype.getApiPaths=function(){return Dlt};
kr.prototype.getExtension=function(L){return _.n(L,oq0)};
kr.prototype.JSC$14167_buildRequest=function(L,Z){Z.params&&(L.itemParams=Z.params)};var yW=function(){};
_.f(yW,QG);yW.prototype.getApiPaths=function(){return R4I};
yW.prototype.getExtension=function(L){return _.n(L,_.HSO)};
yW.prototype.JSC$14167_buildRequest=function(L,Z,N){N.resume_time_ms&&(L.resumeTimeMs=N.resume_time_ms);Z.pauseParams&&(L.pauseParams=Z.pauseParams)};var w2=function(){};
_.f(w2,QG);w2.prototype.getApiPaths=function(){return ctl};
w2.prototype.getExtension=function(L){return _.n(L,_.ggN)};
w2.prototype.JSC$14167_buildRequest=function(L,Z,N){N=N===void 0?{}:N;N.c&&(L.redeemCode=N.c);N.rd&&(L.riskData=N.rd);N.ctk&&(L.clientToken=N.ctk)};var Us=function(){};
_.f(Us,QG);Us.prototype.getApiPaths=function(){return n2Y};
Us.prototype.getExtension=function(L){return _.n(L,_.Bi5)};
Us.prototype.JSC$14167_buildRequest=function(L,Z){Z.resumeParams&&(L.resumeParams=Z.resumeParams)};var Yr=function(L,Z){this.clientName=L;this.defaultExpirationDelayMs=Z};
Yr.prototype.put=function(L,Z){var N=this,S;return _.b(function(u){S=Object.assign({},Z.data);S.key=L;S.clientName=N.clientName;S.expireTimestampMs===void 0&&(S.expireTimestampMs=(Math.round((0,_.GT)())+N.defaultExpirationDelayMs).toString());return u.return(N.putInternal(L,S))})};
Yr[F2]=[Xj,rUq];var uUc=function(){Yr.apply(this,arguments);this.JSC$18463_responseStore=new Map};
_.f(uUc,Yr);_.t=uUc.prototype;_.t.get=function(L){var Z=this;return _.b(function(N){return N.return(nb(Z,L))})};
_.t.putInternal=function(L,Z){var N=this,S,u,T;return _.b(function(W){S=N.defaultExpirationDelayMs;Z.expireTimestampMs&&(S=Number(Z.expireTimestampMs)-Math.round((0,_.GT)()),u=_.lQ("mweb_override_response_store_expiration_ms"),u>0&&u<S&&(S=u));T=setTimeout(function(){N.remove(L)},S);
N.JSC$18463_responseStore.set(L,{entryData:Z,timer:T});_.w7(W)})};
_.t.remove=function(L){var Z=this;return _.b(function(N){TZs(Z,L);_.w7(N)})};
_.t.removeAll=function(){var L=this;return _.b(function(Z){L.JSC$18463_responseStore.forEach(function(N){clearTimeout(N.timer)});
L.JSC$18463_responseStore.clear();_.w7(Z)})};
_.t.has=function(L){return!!this.JSC$18463_responseStore.get(L)};
_.t.getKeys=function(){return this.JSC$18463_responseStore.keys()};
var nb=function(L,Z){if(L=L.JSC$18463_responseStore.get(Z))return new _.co(L.entryData)},TZs=function(L,Z){var N=L.JSC$18463_responseStore.get(Z);
N&&(clearTimeout(N.timer),L.JSC$18463_responseStore.delete(Z))};var L$t;var Sp_=function(L,Z,N){Yr.call(this,L,Z);this.token=N};
_.f(Sp_,Yr);_.t=Sp_.prototype;_.t.get=function(L){var Z=this,N,S;return _.b(function(u){return u.nextAddress==1?u.yield(NqF(Z.token),2):u.nextAddress!=3?(N=u.yieldResult,u.yield(N.get("ResponseStore",[L,Z.clientName]),3)):(S=u.yieldResult)?u.return(new _.co(S)):u.return(void 0)})};
_.t.putInternal=function(L,Z){var N=this,S;return _.b(function(u){if(u.nextAddress==1)return u.yield(NqF(N.token),2);S=u.yieldResult;return u.yield(S.put("ResponseStore",Z),0)})};
_.t.remove=function(L){var Z=this,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(NqF(Z.token),2);N=S.yieldResult;return S.return(N.delete("ResponseStore",[L,Z.clientName]))})};
_.t.removeAll=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1)return N.yield(NqF(L.token),2);Z=N.yieldResult;return N.yield(IWN(Z,IDBKeyRange.only(L.clientName)),0)})};
_.t.has=function(){throw Error("ij");};_.el=new _.iY("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var tbw=function(L){var Z;this.stateTagsData=(Z=L.responseContext)==null?void 0:Z.stateTags},Oyw=function(L){var Z;
return((Z=L.stateTagsData)==null?void 0:Z.stateTagsModified)||[]};var Wmk;Wmk=function(L){this.JSC$18476_responseStore=L};
_.eW=function(L,Z,N){if(!_.c("state_tags_killswitch")){var S=new tbw(Z);if(Oyw(S).length>0){var u=L.JSC$18476_responseStore.getKeys();u=_.O(u);for(var T=u.next();!T.done;T=u.next()){T=T.value;var W=nb(L.JSC$18476_responseStore,T);if(W){var V=_.m4(W);a:{var M=void 0;W=Oyw(S);V=((M=(new tbw(V)).stateTagsData)==null?void 0:M.relevantStateTags)||[];M=_.O(V);for(V=M.next();!V.done;V=M.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&&TZs(L.JSC$18476_responseStore,T)}}}}var G;S=(G=Z.responseContext)==null?void 0:G.maxAgeSeconds;N&&S&&Number(S)>0&&(Z=x0(Z,S),L.JSC$18476_responseStore.put(N,new _.co(Z)))};
Wmk.prototype.handleResponse=function(L,Z){if(!Z)throw Error("jj");var N,S;Z=(N=Z.config)==null?void 0:(S=N.storeStrategy)==null?void 0:S.storeKey;_.eW(this,L,Z)};
Wmk[F2]=[_.R2];_.lZx=new _.iY("STORE_RESPONSE_PROCESSOR_TOKEN");var Vbm=function(L){this.JSC$18479_responseStore=L};
Vbm.prototype.handleResponse=function(L,Z){if(Z.input.match(_.pk(jvQ))){var N;if(L==null?0:(N=L.entries)==null?0:N.length)for(L=_.O(L.entries),Z=L.next();!Z.done;Z=L.next()){N=Z.value.command;var S=void 0;Z=(S=_.n(N,_.Ox))==null?void 0:S.unserializedPrefetchData;if(!N||!Z)break;S=(new Z_).JSC$14174_getStoreKey(N);var u=_.n(Z,XSh),T=void 0,W=void 0,V=void 0,M=void 0,G=void 0,D=void 0,l=((T=u)==null?0:(W=T.responseContext)==null?0:W.maxAgeSeconds)&&Number((V=u)==null?void 0:(M=V.responseContext)==null?
void 0:M.maxAgeSeconds)>0?Number((G=u)==null?void 0:(D=G.responseContext)==null?void 0:D.maxAgeSeconds):600;S&&l>0&&(u=x0(u,l),this.JSC$18479_responseStore.put(S,new _.co(u)));N=(new FY).JSC$14174_getStoreKey(N);Z=_.n(Z,euL);M=V=W=T=u=S=void 0;G=((S=Z)==null?0:(u=S.responseContext)==null?0:u.maxAgeSeconds)&&Number((T=Z)==null?void 0:(W=T.responseContext)==null?void 0:W.maxAgeSeconds)>0?Number((V=Z)==null?void 0:(M=V.responseContext)==null?void 0:M.maxAgeSeconds):600;N&&G>0&&(Z=x0(Z,G),this.JSC$18479_responseStore.put(N,
new _.co(Z)))}}};
Vbm[F2]=[_.R2];var byw=function(L,Z){this.innertubeTransportService=L;this.JSC$18482_commandHandler=Z};
byw.prototype.submitForm=function(L,Z,N,S,u){var T=this,W,V,M,G,D,l;return _.b(function(v){if(v.nextAddress==1)return W={submitId:L,formData:Z,submitBehavior:N,params:S},V=_.pk(BaI),v.yield(_.Za(T.innertubeTransportService,W,V,u),2);M=v.yieldResult;if(!M)return v.return(Promise.reject(new _.sr("Submit API returned an undefined response. Submit ID: "+L)));G=M;(l=(D=G)==null?void 0:D.onResponseReceived)&&T.JSC$18482_commandHandler.resolveCommand(l);return v.return(G)})};
byw[F2]=[_.bv,_.$s];var I0=function(){this.scheduler=_.DK()},MbY;
I0.prototype.pause=function(){throw Error("kj");};
I0.prototype.resume=function(){throw Error("kj");};
I0.prototype.queue=function(L){var Z=this,N=_.hS(),S=_.sI(this.scheduler,function(){try{var u;if(_.qd.instance)var T=_.qd.instance;else{var W=new _.sr("Error: Unexpected uninitialized CommandHandler.");_.CA(W);T=void 0}(u=T)==null||u.resolveCommand(L.command);N.resolve()}catch(V){N.reject(V)}});
N.promise.thenCatch(function(u){u instanceof _.ko&&Z.scheduler.cancelJob(S)});
return N.promise};
I0.prototype.queueAll=function(L){var Z=new Map;L=_.O(L);for(var N=L.next();!N.done;N=L.next())N=N.value,Z.set(N.id,this.queue(N));return Z};var G3Q=function(L,Z){var N=this;this.taskModel=L;this.onTaskCancelledCallback=Z;this.resolver=_.hS();L=L.proto.prefetchConfig;if(!L)throw Error("lj");if(!L.prefetchAction)throw Error("mj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(S){S instanceof _.ko&&(g$k(N,N.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),N.onTaskCancelledCallback(N.taskModel.id,N.jobId),N.tick("pcc"));
throw S;});
this.timerName=this.taskModel.id;_.oq(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
G3Q.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 g$k=function(L,Z){_.lB({prefetchInfo:{cancellationReason:Z}},L.timerName)};
G3Q.prototype.tick=function(L){_.Rq(L,void 0,this.timerName)};var a0=function(){var L=this;this.scheduler=_.DK();this.maxInflightTasks=_.lQ("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.lQ("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new bmh;this.onTaskCancelled=function(Z,N){N&&L.scheduler.cancelJob(N);Fmk(L,Z);d2(L,3)}},$GP=function(){a0.instance||(a0.instance=new a0);
return a0.instance};
a0.prototype.pause=function(){this.prefetchCoordinatorState=0};
a0.prototype.resume=function(){d2(this,0)};
a0.prototype.queue=function(L){L=DGk(this,L);d2(this,1);return L};
a0.prototype.queueAll=function(L){var Z=new Map;L=_.O(L);for(var N=L.next();!N.done;N=L.next())N=N.value,Z.set(N.id,DGk(this,N));d2(this,1);return Z};
var DGk=function(L,Z){var N=L.allPrefetchTasks.get(Z.id);if(N)return N.cancellablePromise;try{var S=new G3Q(Z,L.onTaskCancelled)}catch(T){return _.$N(T)}N=S;N.tick("pcq");var u={prefetchInfo:{taskId:N.taskModel.id,isPrefetch:!0,fetchAction:N.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:N.taskModel.command.clickTrackingParams}};N.taskModel.csn&&(u.clientScreenNonce=N.taskModel.csn);_.lB(u,N.timerName);L.allPrefetchTasks.set(Z.id,S);L.drainingHeap.insert(-S.getPriority(),S);return S.cancellablePromise},
d2=function(L,Z){L.prefetchCoordinatorState===Z&&(L.prefetchCoordinatorState=2,lGv(L))},lGv=function(L){for(var Z={};L.prefetchCoordinatorState!==0;Z={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(L.inflightPrefetchTasks.size>=L.maxInflightTasks){L.prefetchCoordinatorState=3;break}Z.prefetchTask$jscomp$1=L.drainingHeap.remove();if(!Z.prefetchTask$jscomp$1){L.prefetchCoordinatorState=1;break}Z.taskId$jscomp$3=Z.prefetchTask$jscomp$1.taskModel.id;if(L.allPrefetchTasks.has(Z.taskId$jscomp$3)){var N=-1;L.coordinatorTimeoutMs>0&&(N=_.sI(L.scheduler,function(S){return function(){hM(L,S.taskId$jscomp$3,Error("nj"))}}(Z),L.coordinatorTimeoutMs));
L.inflightPrefetchTasks.set(Z.taskId$jscomp$3,N);if(!L.JSC$18499_commandHandler){if(!_.qd.instance){hM(L,Z.taskId$jscomp$3,Error("oj"));continue}L.JSC$18499_commandHandler=_.qd.instance}a:switch(Z.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":N=1;break a;default:N=0}Z.prefetchTask$jscomp$1.jobId=L.scheduler.addJob(function(S){return function(){S.prefetchTask$jscomp$1.tick("pcr");try{L.JSC$18499_commandHandler.resolveCommand(S.prefetchTask$jscomp$1.taskModel.command)||
hM(L,S.taskId$jscomp$3,Error("pj"))}catch(u){hM(L,S.taskId$jscomp$3,u)}}}(Z),N,0)}}},v$m=function(L,Z){(Z=Fmk(L,Z))!=null&&(Z.resolver.resolve(),Z.tick("pce"));
d2(L,3)},hM=function(L,Z,N){(Z=Fmk(L,Z,N))!=null&&(Z.resolver.reject(N),Z.tick("pcc"),g$k(Z,"CANCELLATION_REASON_ERROR"),Math.random()<=_.lQ("prefetch_coordinator_error_logging_sampling_rate")&&(N=new _.sr("Prefetch Command failed.",Z.taskModel.id,N.message),_.CA(N)));
d2(L,3)},Fmk=function(L,Z,N){var S=L.allPrefetchTasks.get(Z);
S?((N=L.inflightPrefetchTasks.get(Z))&&N!==-1&&L.scheduler.cancelJob(N),L.inflightPrefetchTasks.delete(Z),L.allPrefetchTasks.delete(Z)):_.Q7(new _.sr("Unexpected missing prefetch task when deleting task.",Z,N==null?void 0:N.message));return S};var o$Y=function(L,Z,N,S,u){this.id=L;this.triggerOn=Z;this.cancelOn=N;this.command=S;this.proto=u};
_.gd.Object.defineProperties(o$Y.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var Rem=function(){this.JSC$18504_prefetchCoordinator=$GP();MbY||(MbY=new I0);this.defaultCoordinator=MbY},crm;
Rem.getInstance=function(){crm||(crm=new Rem);return crm};
Rem.prototype.get=function(L){switch(L){case 0:return this.JSC$18504_prefetchCoordinator;default:return this.defaultCoordinator}};var ss=function(){this.coordinatorSupplier=Rem.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},fGk=function(L){var Z=_.RH()||void 0,N=Object.keys(n$v)[0];
if(N){var S=L.taskIdByTriggerId.get(N);if(S!=null){L.taskIdByTriggerId.delete(N);N=[];S=_.O(S);for(var u=S.next();!u.done;u=S.next())if(u=L.tasks.get(u.value))Z!=="UNDEFINED_CSN"&&(u.csn=Z),N.push(u);N=Tqs(N);Z=[];N=_.O(N);for(S=N.next();!S.done;S=N.next()){u=_.O(S.value);S=u.next().value;u=u.next().value;S=L.coordinatorSupplier.get(S).queueAll(u);S=_.O(S);var T=S.next();for(u={};!T.done;u={taskId$jscomp$9:void 0},T=S.next()){var W=_.O(T.value);T=W.next().value;W=W.next().value;u.taskId$jscomp$9=
T;T=W;Z.push(u.taskId$jscomp$9);L.queuedPromisesByTask.set(u.taskId$jscomp$9,_.wg(T,function(V){return function(){KmP(L,V.taskId$jscomp$9)}}(u)))}}}}else _.Q7(new _.sr("Unexpected malformed TriggerEvent."))};
ss.prototype.trigger=function(L,Z){var N=this,S=this.tasks.get(L);if(!S||this.queuedPromisesByTask.has(L))return!1;k3y(this,L,S.triggerOn);Z!=="UNDEFINED_CSN"&&(S.csn=Z);Z=this.coordinatorSupplier.get(S.taskType).queue(S);this.queuedPromisesByTask.set(L,_.wg(Z,function(){KmP(N,L)}));
return!0};
ss.prototype.cancel=function(L){var Z=this.queuedPromisesByTask.get(L);if(Z)Z.cancel();else return KmP(this,L)};
var KmP=function(L,Z){L.queuedPromisesByTask.delete(Z);var N=L.tasks.get(Z);if(!N)return!1;L.tasks.delete(Z);k3y(L,Z,N.triggerOn);(N=uzH(N.cancelOn))&&(L=L.taskIdByCancelId.get(N))&&L.delete(Z);return!0},k3y=function(L,Z,N){(N=Object.keys(N)[0])&&(L=L.taskIdByTriggerId.get(N))&&L.delete(Z)};var n$v={taskRegistered:{}},jl=function(){ss.instance||(ss.instance=new ss);this.JSC$18513_taskManager=ss.instance};
_.f(jl,q1);
jl.prototype.resolveCommand=function(L){var Z=this,N,S;return _.b(function(u){N=_.n(L,HbM);if((S=N)==null||!S.tasks){var T=new _.sr("RegisterTasksCommand is missing tasks.");_.CA(T);return u.return()}T=Z.JSC$18513_taskManager;for(var W=_.O(N.tasks),V=W.next();!V.done;V=W.next())if(V=V.value,V=V.id&&V.triggerOn&&V.cancelOn&&V.command?new o$Y(V.id,V.triggerOn,V.cancelOn,V.command,V):void 0,V){var M=Object.keys(V.triggerOn)[0];if(M){var G=uzH(V.cancelOn);G?(T.tasks.set(V.id,V),T.taskIdByTriggerId.has(M)||T.taskIdByTriggerId.set(M,
new Set),T.taskIdByTriggerId.get(M).add(V.id),T.taskIdByCancelId.has(G)||T.taskIdByCancelId.set(G,new Set),T.taskIdByCancelId.get(G).add(V.id)):_.Q7(new _.sr("Unexpected malformed cancelOn field."))}else _.Q7(new _.sr("Unexpected malformed triggerOn field."))}else _.Q7(new _.sr("Unexpected malformed Task proto."));fGk(Z.JSC$18513_taskManager);_.w7(u)})};var yrm={},w4y=(yrm.rendered={priority:_.c("web_adaptive_early_init")?8:0,callback:function(){var L={};L.numCpu=navigator.hardwareConcurrency;var Z={};Z.ramGb=_.iH.navigator.deviceMemory;var N={staticContext:{}};Z.ramGb&&Dyx(Z.ramGb)&&(N.staticContext.memoryTotalKbytes=(Z.ramGb*1048576).toString());L.numCpu&&Dyx(L.numCpu)&&(N.staticContext.cpuCores=L.numCpu);if(_.c("web_enable_adaptive_appl_signal")){L={};Z=oZw();Z=Z.length>0?Z[0]:void 0;var S,u=(S=_.k6("rses_dpj"))!=null?S:Z==null?void 0:Z.tick.rses_dpj,
T;S=(T=_.k6("rsef_dpj"))!=null?T:Z==null?void 0:Z.tick.rsef_dpj;u&&Number(u)>0&&S&&Number(S)>0&&(T=Math.ceil(Number(S)-Number(u)),T>0&&(L.loadLatency=T));L.loadLatency&&Dyx(L.loadLatency)&&(N.appL=L.loadLatency.toString())}_.mS("applicationStarted",N);lEB=N;_.c("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",vch)}},yrm);var UGQ=new _.iY("WINDOW_ON_ERROR"),Y_y=new _.iY("ERROR_WEIGHT_MAPS"),eeQ=new _.iY("INIT_ERROR");var IGv={},dG8=(IGv.initialized={priority:10,callback:function(L){L.injector.resolve(eeQ)()}},IGv);var aGP=function(){},heQ=function(){var L=_.LZ("meta_logger_impl");
L||(L=new aGP,_.bp("meta_logger_impl",L));return L},sgv=function(){heQ().csiSubscriptionKey=pq1("meta_logging_csi_event",function(L){var Z=L.timerName;
if(L=L.timelineData){_.oq(Z,{startTime:L.startTime},Z);L.infos&&_.lB(L.infos,Z);for(var N=_.O(Object.keys(L.ticks)),S=N.next();!S.done;S=N.next())S=S.value,_.Rq(S,L.ticks[S],Z)}})};
aGP.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&JzF(this.csiSubscriptionKey)};var jgm={},E$v=(jgm.initialized={priority:10,callback:function(){sgv()}},jgm);var PXv=function(L,Z){this.innertubeClientName=L;this.JSC$18524_prefCookie=Z};
PXv.prototype.record=function(){if(_.c("web_li_record_binary_eval_tick")){var L=_.k6("rsef_dpj");var Z=_.k6("rses_dpj");L=L!==void 0&&Z!==void 0?Math.round(L-Z):void 0;if(L!==void 0&&L>0){Z=_.G7(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var N=this.poolSize;if(!(Z.valuesSeen>=1E9)){if(Z.valuesSample.length<N)Z.valuesSample.push(L);else{var S=Math.floor(Math.random()*(Z.valuesSeen+1));S<N&&(Z.valuesSample[S]=L)}Z.valuesSeen+=1}_.gr(this.storagePrefix+"-"+this.innertubeClientName,
Z,2592E3);L=Z.valuesSample;Z=tes(L);L=L.length<this.poolSize?void 0:Z<400?1:Z<1700?2:3;L!==void 0&&(this.JSC$18524_prefCookie.set(this.cookiePrefix+this.innertubeClientName,L),this.JSC$18524_prefCookie.save())}}else _.FB(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18524_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18524_prefCookie.save()};
PXv[F2]=[Xj,Y8];var p40=function(){PXv.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.f(p40,PXv);var zeq=new _.iY("PAGE_LOAD_TIME_TOKEN");var mGw=function(L){this.signal=L;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;L.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.sI(_.ro,this.disableLoggingAndSendPayload,1E4)};
mGw.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.ro.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),Jrv(this))};
var Jrv=function(L){var Z=_.oH();if(Z){var N={webClientComponentsData:{components:Array.from(L.ids,function(S){return{id:S}})}};
L.ids.clear();_.tC().visualElementStateChanged(Z,N)}};var CXm=_.oV({a11y:_.ejY});_.rrw=_.RV(CXm)(CXm.a11y,{ephemeralActionSelector:function(L){return L.ephemeralAction||null}});var Qgc=_.oV({continuation:_.a$I});var X4w=_.RV(Qgc)(Qgc.continuation,{continuationCommandSelector:function(L){return L.continuationCommand}});var Arg=new _.iY("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Es=function(L,Z){this.JSC$18553_storeWithEntities=L;this.JSC$18553_commandHandler=Z;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Es.prototype.start=function(){this.JSC$18553_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Es.prototype.observeDownloadingEntities=function(){var L=_.EvF(this.JSC$18553_storeWithEntities.getState().entities).map(function(S){return Ph_(S)});
if(L.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var Z={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:AFs()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Cq(_.iB("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18553_commandHandler.resolveCommand(Z)}this.downloadingEntities=L}else if(this.downloadingEntities.length){var N=juh(this.JSC$18553_storeWithEntities.getState().entities).map(function(S){return Ph_(S)});
this.downloadingEntities.filter(function(S){return N.includes(S)}).length&&(L={openPopupAction:Exx()},this.JSC$18553_commandHandler.resolveCommand(L));
this.downloadingEntities=[]}};
Es[F2]=[Cm,_.$s];var HyY;_.PC=function(L,Z,N,S,u,T,W,V){this.JSC$18556_playerApiPromise=L;this.JSC$18556_commandHandler=Z;this.JSC$18556_screenManager=N;this.offlineWebClientEligibility=S;this.JSC$18556_prefStorage=u;this.JSC$18556_actionRouter=T;this.entityTypeMap=W;this.JSC$18556_persistentStorePromiseAccessor=V;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
HyY=function(){var L=_.GR().resolve(_.PC),Z;_.b(function(N){if(N.nextAddress==1)return L.downloadFailureListenerBound?N.return():N.yield(L.JSC$18556_playerApiPromise,2);Z=N.yieldResult;Z.addEventListener("onOfflineOperationFailure",function(S){if(S.failureReason&&S.entityKey&&S.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(S.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var u=_.HB(S.entityKey).entityId;u&&L.JSC$18556_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
u)}else if(_.c("kevlar_woffle")){u=L.JSC$18556_commandHandler;var T=u.resolveCommand;S=S.failureReason;var W=_.iB("TRANSFER_FAILED",void 0,"Download failed");S==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(W=_.iB("STORAGE_FULL",void 0,"Storage full"));T.call(u,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Cq(W),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
L.downloadFailureListenerBound=!0;_.w7(N)})};
_.PC.prototype.deleteVideo=function(L,Z){var N=this,S,u,T;return _.b(function(W){if(W.nextAddress==1)return W.yield(N.JSC$18556_playerApiPromise,2);S=W.yieldResult;T={offlineLoggingData:{offlineDeleteReason:(u=Z)!=null?u:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return W.yield(S.queueOfflineAction(L,N.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",T),0)})};
_.PC.prototype.pauseVideoDownload=function(L){var Z=this,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(Z.JSC$18556_playerApiPromise,2);N=S.yieldResult;N.pauseVideoDownload(L);_.w7(S)})};
_.PC.prototype.resumeVideoDownload=function(L){var Z=this,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(Z.JSC$18556_playerApiPromise,2);N=S.yieldResult;return S.yield(N.resumeVideoDownload(L),0)})};
_.PC[F2]=[_.HQ,_.$s,_.a3,Arg,ah,GW,wiL,cZ];var BZm=new _.iY("DOWNLOAD_STATE_STORE_TOKEN");var xGs=function(L,Z){this.JSC$18576_persistentStorePromiseAccessor=L;this.store=Z;this.upliftCompletionResolver=new _.qe},Zh8=function(){var L=_.GR().resolve(q_5),Z;
_.b(function(N){switch(N.nextAddress){case 1:if(L.upliftImplPromise)return N.return(L.upliftImplPromise);_.RS(N,2);L.upliftImplPromise=L85(L);return N.yield(L.upliftImplPromise,4);case 4:L.upliftCompletionResolver.resolve();_.SX(N,3);break;case 2:throw Z=_.yd(N),L.upliftCompletionResolver.reject(Z),Z;case 3:return N.return(L.upliftImplPromise)}})},L85=function(L){var Z,N,S;
return _.b(function(u){switch(u.nextAddress){case 1:return _.Ah("LOGGED_IN")?u.yield(L.JSC$18576_persistentStorePromiseAccessor(),2):u.return();case 2:Z=u.yieldResult;if(!Z)return _.Rq("vdeur"),u.return();_.Rq("vdeus");_.RS(u,3);return u.yield(NJ0(Z),5);case 5:N=u.yieldResult;L.store.dispatch(nvt(N));Z.observe(function(T){Kcw(L.store,T)});
_.SX(u,4);break;case 3:throw S=_.yd(u),_.Rq("vdeur"),S;case 4:_.Rq("vdeuc"),_.w7(u)}})},NJ0=function(L){var Z;
return _.b(function(N){if(N.nextAddress==1)return N.yield(gK1(L),2);Z=N.yieldResult;return N.return(Z.reduce(function(S,u){if(!u.data||!u.key||!u.entityType)return S;S[u.entityType]||(S[u.entityType]={});S[u.entityType][u.key]=u.data;return S},{}))})};
xGs[F2]=[cZ,_.mc];var q_5;q_5=new _.iY("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.pw=new _.iY("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var zh=function(L,Z){this.JSC$18579_persistentStorePromiseAccessor=L;this.transportService=Z};
zh.prototype.refresh=function(){var L=this,Z,N,S,u;return _.b(function(T){if(T.nextAddress==1)return _.Ah("LOGGED_IN")?T.yield(L.JSC$18579_persistentStorePromiseAccessor(),2):T.return();if(T.nextAddress!=3)return(Z=T.yieldResult)?T.yield(Caf(Z),3):T.return();if((N=T.yieldResult)&&!(Number(N.data.refreshTimestampMs||0)<(0,_.GT)()))return T.return();S={browseId:"SPaccount_downloads"};u=_.pk(aL);_.Za(L.transportService,S,u).then(function(W){var V;if(Z&&(W==null?void 0:(V=W.responseContext)==null?void 0:
V.maxAgeSeconds)!==0){var M;V=(W==null?void 0:(M=W.responseContext)==null?void 0:M.maxAgeSeconds)||604800;M=String(Math.floor((0,_.GT)())+V*1E3);Z.put("service:downloads_settings:fallback",new _.co({innertubeResponse:W,refreshTimestampMs:M}))}});
_.w7(T)})};
zh[F2]=[_.el,_.bv];var ms=function(L,Z){this.JSC$18583_playerPromise=L;this.store=Z;this.started=!1};
ms.prototype.start=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1)return L.started?N.return():N.yield(L.JSC$18583_playerPromise,2);Z=N.yieldResult;Z.addEventListener("onOrchestrationBecameLeader",L.updateIsLeader.bind(L,!0));Z.addEventListener("onOrchestrationLostLeader",L.updateIsLeader.bind(L,!1));if(Z.isOrchestrationLeader)L.updateIsLeader(Z.isOrchestrationLeader());else{var S=new _.sr("Function isOrchestrationLeader is undefined",{"player.isReady":Z.isReady(),"player.playVideo":Z.playVideo?
"defined":"undefined"});_.CA(S);L.updateIsLeader(!1)}L.started=!0;_.w7(N)})};
ms.prototype.updateIsLeader=function(L){this.store.dispatch(_.XK({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:L}}))};
ms[F2]=[_.HQ,_.mc];var SKQ=function(L,Z){this.networkStatusManager=L;this.JSC$18586_prefStoragePromise=Z;this.redirectsToPreload=["https://youtube.com"]},ihQ=function(){var L=_.GR().resolve(SKQ),Z,N,S,u,T,W;
_.b(function(V){switch(V.nextAddress){case 1:return V.yield(L.JSC$18586_prefStoragePromise,2);case 2:Z=V.yieldResult;if(!(N=Z)){V.jumpTo(3);break}return V.yield(Z.get("yt-redirect-prefetch-id"),4);case 4:N=V.yieldResult;case 3:if(N||!L.networkStatusManager.isNetworkAvailable())return V.return();S={cache:"reload",redirect:"manual"};u=_.O(L.redirectsToPreload);T=u.next();case 5:if(T.done){if(!Z){V.jumpTo(0);break}return V.yield(Z.set("yt-redirect-prefetch-id",!0,86400),0)}W=T.value;_.RS(V,8);return V.yield(_.iH.fetch(W,
S),10);case 10:_.SX(V,6);break;case 8:_.yd(V);case 6:T=u.next(),V.jumpTo(5)}})};var u58=function(L){this.JSC$18592_pageManager=L};
u58[F2]=[_.mR];_.TJg=new _.iY("PAGE_CONTENT_EXTRACTOR_TOKEN");var JM=function(L){L?(this.container=L,this.containerWasInjected=!0):this.containerWasInjected=!1};
JM.prototype.openDialog=function(L,Z,N){var S=this,u;return _.b(function(T){(u=S.container)==null||u.openDialog(L,Z,N);_.w7(T)})};
JM.prototype.closeDialog=function(){var L=this,Z;return _.b(function(N){(Z=L.container)==null||Z.closeDialog();_.w7(N)})};
JM.prototype.isDialogOpen=function(){var L=this,Z,N;return _.b(function(S){return S.return((N=(Z=L.container)==null?void 0:Z.isDialogOpen())!=null?N:!1)})};
JM[F2]=[_.gv(JoN)];_.tUm=new _.iY("POPUP_CONTROLLER_TOKEN");var Ohy=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
Ohy.prototype.registerPanel=function(L,Z){if(L){this.panelMap.set(L,Z);var N=this.pendingPanelResolvers.get(L);N&&(N.resolve(Z),this.pendingPanelResolvers.delete(L))}};
Ohy.prototype.getPanel=function(L){var Z=this,N;return _.b(function(S){return(N=Z.panelMap.get(L))?S.return(N):S.return(W8y(Z,L))})};
var W8y=function(L,Z){var N,S;return _.b(function(u){if(N=L.pendingPanelResolvers.get(Z))return u.return(N.promise);S=new _.qe;L.pendingPanelResolvers.set(Z,S);return u.return(S.promise)})},VUk=function(L,Z){Ohy.call(this);
var N=this;this.popupController=L;this.persistentPanelController=Z;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return N.panelMap.size}}};
_.f(VUk,Ohy);_.t=VUk.prototype;_.t.getReloadContinuation=function(L){var Z=this,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(Z.getPanel(L),2);N=S.yieldResult;return S.return(N.getReloadContinuation())})};
_.t.showPanel=function(L){var Z=this,N,S,u,T,W,V,M,G,D,l,v,R;return _.b(function(K){if(K.nextAddress==1){N=L;S=N.identifier;u=N.panelContents;T=N.config;W=N.extras;V=N.panelUpdatableFields;M=N.updatePanelContinuationData;G=L.target;M&&Z.updatePanelContinuationDatas.set(S,M);if((D=T)==null?0:(l=D.engagementPanelPopupPresentationConfig)==null?0:l.popupType)if(v=T.engagementPanelPopupPresentationConfig.popupType,G===void 0&&(G=document.body),v==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!Z.persistentPanelController)return _.Q7(new _.sr("Persistent panel controller is not available.")),
K.return();var U=Z.persistentPanelController;U.persistentPanelIdentifiers.has(S)||(U.persistentPanelWrapper.appendChild(U.engagementPanelElement({panelIdentifier:S},{isPersistentPanel:!0})),U.persistentPanelIdentifiers.add(S));a:switch(_.Y9.currentPageSubTypeSelector(U.store.getState())){case "watch":var d="WATCH";break a;default:d="APP"}_.bhP(U,d);U.store.dispatch(I$Y(!0))}else{if(v==="PANEL_POPUP_TYPE_DIALOG"||v==="PANEL_POPUP_TYPE_DROPDOWN"){U=K.return;d=Z.popupController;var h=d.openPopup;a:switch(v){case "PANEL_POPUP_TYPE_DIALOG":var E=
"DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":E="DROPDOWN";break a;default:throw Error("rj`"+v);}return U.call(K,h.call(d,S,u,E,G))}_.Q7(new _.sr("Popup type "+v+" not supported in PanelController."))}return K.yield(Z.getPanel(S),2)}R=K.yieldResult;(u||V)&&R.updatePanel(u,!1,W,V);R.showPanel(W);_.w7(K)})};
_.t.hidePanel=function(L){var Z=this,N,S,u,T;return _.b(function(W){if(W.nextAddress==1)return N=L,S=N.identifier,W.yield(Z.getPanel(S),2);u=W.yieldResult;u.hidePanel();Z.popupController.closePopup(S);(T=Z.persistentPanelController)!=null&&T.persistentPanelIdentifiers.has(S)&&T.store.dispatch(I$Y(!1));_.w7(W)})};
_.t.isVisible=function(L,Z){var N=this,S;return _.b(function(u){if(u.nextAddress==1)return Z&&!N.panelMap.has(L)?u.return(!1):u.yield(N.getPanel(L),2);S=u.yieldResult;return u.return(S.isVisible())})};
_.t.updatePanel=function(L){var Z=this,N,S,u,T,W,V,M,G;return _.b(function(D){if(D.nextAddress==1){N=L;S=N.identifier;u=N.panelContents;T=N.shouldFocus===void 0?!1:N.shouldFocus;W=N.extras;V=N.panelUpdatableFields;M=N.updatePanelContinuationData;if(!u&&!V)return D.return();M&&Z.updatePanelContinuationDatas.set(S,M);return D.yield(Z.getPanel(S),2)}G=D.yieldResult;G.updatePanel(u,T,W,V);u&&_.c("enable_ai_companion")&&Z.registerPanelContent(S,u);_.w7(D)})};
_.t.registerPanelContent=function(L,Z){L&&this.panelContentMap.set(L,Z)};
_.t.unregisterPanelContent=function(L){this.panelContentMap.delete(L)};
_.t.getPanelContent=function(L){return this.panelContentMap.get(L)};
_.t.getUpdatePanelContinuationData=function(L){return this.updatePanelContinuationDatas.get(L)};
VUk[F2]=[_.tUm,_.gv(_.zz)];var Cw=function(L,Z){this.innertubeTransportService=L;this.JSC$18611_screenManager=Z},MUc=function(L){var Z;
return!((Z=L.panelLoadingStrategy)==null||!Z.requestTemplate)};
Cw.prototype.makeRequest=function(L){var Z=this,N,S;return _.b(function(u){switch(u.nextAddress){case 1:if(!MUc(Z)){u.jumpTo(2);break}_.RS(u,3);return u.yield(_.aV(Z.innertubeTransportService,L),5);case 5:return N=u.yieldResult,N?u.return(N.content):(_.CA(Error("sj")),u.return(void 0));case 3:S=_.yd(u),_.CA(S);case 2:return u.return(void 0)}})};
Cw.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
Cw.prototype.execute=function(L){var Z=this,N,S,u,T,W,V,M,G,D,l;return _.b(function(v){if(v.nextAddress==1){N=L;S=N.data;u=N.fallbackVe;T=N.parentVe;W=N.createScreenConfig;V=N.renderFn;M=N.command;Z.panelLoadingStrategy=S;var R,K,U=((R=Z.panelLoadingStrategy)==null?0:R.screenVe)?(K=Z.panelLoadingStrategy)==null?void 0:K.screenVe:u;U&&_.fF(Z.JSC$18611_screenManager,U,T,W);return(G=Z.getContent())?v.yield(V(G),2):v.jumpTo(2)}return v.nextAddress!=4?MUc(Z)?v.yield(Z.makeRequest(M),4):v.return():(l=D=
v.yieldResult)?v.yield(V(l),0):v.return()})};
Cw[F2]=[_.bv,_.a3];var gRg;gRg=function(L,Z){this.engagementPanelElement=L;this.store=Z;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%"};
_.bhP=function(L,Z){var N=L.persistentPanelContainerMap.get(Z);N?N.contains(L.persistentPanelWrapper)||(L=L.persistentPanelWrapper,_.mW=!0,_.JC.set(L,!0),N.insertBefore(L,null),_.JC.delete(L),_.mW=!1):_.Q7(new _.sr("Persistent panel container not found for surface "+Z+"."))};
gRg[F2]=[CfN,_.mc];var r2=function(){};
r2.prototype.getContainer=function(){return _.mg()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
r2.prototype.openSheet=function(L,Z){var N=this,S,u,T,W,V,M;return _.b(function(G){switch(G.nextAddress){case 1:return S={stack:[],error:void 0,hasError:!1},_.RS(G,2,3),u=tW,G.yield(N.isSheetOpen(),5);case 5:T=G.yieldResult;Whl(S,ca1(u));if(T){if(_.c("web_close_sheet_if_same_target_killswitch")&&Z&&N.currentTarget===Z)return(W=N.getContainer())==null||W.closeSheet(),G.return();N.pendingData={data:L,target:AU5(N,Z)};return G.return()}L.viewModel&&(L={viewModel:L.viewModel,sheetPosition:L.sheetPosition});
(V=N.getContainer())==null||V.openSheet(L,Z);N.currentTarget=Z;case 3:_.ns(G);Vfs(S);_.kS(G,0);break;case 2:M=_.yd(G),S.error=M,S.hasError=!0,G.jumpTo(3)}})};
r2.prototype.closeSheet=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1)return N.yield((Z=L.getContainer())==null?void 0:Z.closeSheet(),2);if(N.nextAddress!=4)return L.currentTarget=void 0,L.pendingData?N.yield(L.openSheet(L.pendingData.data,L.pendingData.target),4):N.jumpTo(0);L.pendingData=void 0;_.w7(N)})};
r2.prototype.isSheetOpen=function(){var L=this,Z,N;return _.b(function(S){return S.return((N=(Z=L.getContainer())==null?void 0:Z.isSheetOpen())!=null?N:!1)})};
var AU5=function(L,Z){if(!_.c("web_parent_target_for_sheets"))return Z;var N,S;return(S=(N=L.getContainer())==null?void 0:N.getParentTarget(Z))!=null?S:Z};var Q6=window.documentPictureInPicture;var fvx=_.sc(["dark"]),k$B=_.sc(["system-icons"]),y1w=_.sc(["typography"]),wRA=_.sc(["lang"]),UEG=_.sc(["style"]),Rpf=_.sc(["dir"]),c1F=_.sc(["rounded-container"]),nKL=_.sc(["style"]),eps=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],QW=function(L){this.JSC$18628_clientRoot=L;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
QW.prototype.openWindow=function(L){var Z=this,N,S;return _.b(function(u){switch(u.nextAddress){case 1:if(!window.documentPictureInPicture||!_.UG()||Z.currentPipWindow)return u.return(!1);_.RS(u,2);return u.yield((S=Q6?Q6:null)==null?void 0:S.requestWindow(L),4);case 4:N=u.yieldResult;_.SX(u,3);break;case 2:return _.yd(u),u.return(!1);case 3:if(!N)return u.return(!1);N.addEventListener("pagehide",function(){GsY(Z)});
N.addEventListener("resize",Z.handlePipWindowResize);YpG(N);dEt(N);DgF(N);return u.yield(oKL(N),5);case 5:if(!DEH())return u.return(!1);Z.currentPipWindow=N;Z.JSC$18628_eventForwarder=Ivw(N,Z.JSC$18628_clientRoot);Z.pipWindowResizeDelay=new _.$d(function(){Z.currentPipWindow&&_.XJ(Z.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.wF(Z.currentPipWindow.innerWidth,Z.currentPipWindow.innerHeight)])},N);
Z.pipWindowResizeDelay.start();return u.return(!0)}})};
QW.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var GsY=function(L){if(L.currentPipWindow){var Z,N;(Z=Q6?Q6:null)==null||(N=Z.window)==null||N.close();L.currentPipWindow.removeEventListener("resize",L.handlePipWindowResize);var S;(S=L.pipWindowResizeDelay)==null||S.dispose();L.pipWindowResizeDelay=void 0;var u;(u=L.JSC$18628_eventForwarder)==null||u.stop();L.JSC$18628_eventForwarder=void 0;Z=_.O(L.onCloseCallbacks);for(N=Z.next();!N.done;N=Z.next())N=N.value,N();L.onCloseCallbacks=[];L.currentPipWindow=null}};
QW.prototype.getWindow=function(){return this.currentPipWindow};
var F8Y=function(L,Z){var N;(N=L.onCloseCallbacks)==null||N.push(Z)};
QW.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.UG()};
_.gd.Object.defineProperties(QW.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
QW[F2]=[tvs];var $$5=new _.iY("PICTURE_IN_PICTURE_CONTROLLER");var avs=function(L,Z){this.lengthY=this.lengthX=0;this.lengthX=Z.x-L.x;this.lengthY=Z.y-L.y};var D$y=function(){},ixy=function(L,Z){var N;
(N=L.headerElement)==null||N.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:Z}))};var l4s=function(){};
l4s.prototype.openPopup=function(L,Z,N,S){var u=this,T;return _.b(function(W){if(!u.container)return W.return();T={openPopupAction:{popup:Z,popupType:N,uniqueId:L}};return W.return(u.container.handleOpenPopupAction(T,S))})};
l4s.prototype.closePopup=function(L){this.container&&this.container.closePopup(L)};var vRv=function(){this.openTunnels=new Map},nc_=function(L,Z,N){if(pR1(N)){var S=_.B4(N,"gclid");
N={handleEvent:function(V){Z&&!Z.closed&&typeof Z.postMessage==="function"&&V&&V.origin&&V.source===Z&&V.data&&V.data.action==="gcl_setup"&&Z.postMessage(Object.assign({},{action:"gcl_transfer"},S&&{gclid:S},{gadSource:2}),V.origin)}};
for(var u=_.O(L.openTunnels),T=u.next();!T.done;T=u.next()){var W=_.O(T.value);T=W.next().value;W=W.next().value;if(T.closed)try{window.removeEventListener("message",W),L.openTunnels.delete(T)}catch(V){_.CA(V)}}Z&&L.openTunnels.size<15&&(L.openTunnels.set(Z,N),window.addEventListener("message",N))}};var oR8=function(){this.clientParams=new Map},Pqm=function(L){for(var Z=_.O(L.clientParams.keys()),N=Z.next();!N.done;N=Z.next())N=N.value,N.startsWith("yt-mini-app-share")&&L.clientParams.delete(N)};var R0c=function(L,Z){_.ag.call(this);var N=this;this.shortsController=L;this.storeWithShorts=Z;L=_.hK(this.storeWithShorts,_.QcB,function(S){if(S){var u,T=(u=N.shortsController.getRoot())==null?void 0:u.getPlayer(),W;(u=(W=N.shortsController.alternativePlayerContainerElement)==null?void 0:W.getPlayerContainer())&&(T==null||T.appendTo(u))}else{var V;W=(V=N.shortsController.alternativePlayerContainerElement)==null?void 0:V.getPlayerContainer().querySelector("#player");u=N.shortsController.activeIndex;
(V=(T=N.shortsController.getRoot())==null?void 0:T.querySelector('ytd-reel-video-renderer[id="'+u+'"] #player-container'))&&(W==null||W.appendTo(V,void 0,!0))}});
this.addOnDisposeCallback(L)};
_.f(R0c,_.ag);var Xp=function(L,Z,N,S){var u=this;this.storeWithShorts=L;this.ephemeralResponseStore=Z;this.innertubeTransportService=N;this.innertubeTransportLoader=S;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.VB(_.Cl);this.isShortsPipActive=_.VB(_.rm);this.nextReelVe=_.Ll(56921);this.prevReelVe=_.Ll(56922);this.backButtonVe=_.Ll(22156);this.TEST_ONLY={getActiveModules:function(){return u.activeModules}}},cWs=function(L){L.unsubscribeFromStore=
_.hK(L.storeWithShorts,_.r7w,function(Z){L.initOrDisposeActiveModules(Z);
!Z&&L.storeWithShorts.getState().shorts.isFullscreen&&(_.Jd(document.documentElement),L.storeWithShorts.dispatch(_.hj0(!1)))});
L.initOrDisposeActiveModules(_.r7w(L.storeWithShorts.getState()))},Qmv,XyY,nR8;
Xp.prototype.initOrDisposeActiveModules=function(L){L?this.activeModules.push(new R0c(this,this.storeWithShorts)):(_.VL(this.activeModules),this.activeModules.length=0)};
Xp.prototype.registerRootElement=function(L){this.rootElement=L;cWs(this)};
Xp.prototype.getRoot=function(){return this.rootElement};
Xp.prototype.setActiveIndex=function(L){this.activeIndex=L};
_.z2v=function(L,Z){var N,S,u,T,W,V,M;return _.b(function(G){switch(G.nextAddress){case 1:return N=new Z_,(S=N.JSC$14174_getStoreKey(Z))&&L.ephemeralResponseStore.has(S)?G.yield(L.ephemeralResponseStore.get(S),7):G.yield(nR8(L,Z),4);case 4:u=G.yieldResult;if(!S){G.jumpTo(3);break}T=x0(u,3600);return G.yield(L.ephemeralResponseStore.put(S,new _.co(T)),3);case 7:u=(W=G.yieldResult)==null?void 0:_.m4(W);case 3:return((V=u)==null?0:V.replacementEndpoint)&&(M=_.n(u.replacementEndpoint,_.Ox))&&u.sequenceContinuation&&
(M.sequenceParams=u.sequenceContinuation),G.return(u)}})};
Qmv=function(L,Z){Z=(new NM).JSC$14174_getStoreKey(Z);return!!Z&&L.ephemeralResponseStore.has(Z)};
XyY=function(L,Z,N){var S,u,T,W,V;_.b(function(M){if(M.nextAddress==1){S=new NM;u=S.JSC$14174_getStoreKey(Z);if(!u)return M.return();if(N.reelWatchSequenceResponse)return T=x0(N.reelWatchSequenceResponse,3600),L.ephemeralResponseStore.put(u,new _.co(T)),M.jumpTo(0);if(!L.ephemeralResponseStore.has(u))return M.jumpTo(0);V=N;return M.yield(L.ephemeralResponseStore.get(u),4)}V.reelWatchSequenceResponse=(W=M.yieldResult)==null?void 0:_.m4(W);_.w7(M)})};
nR8=function(L,Z){var N=N===void 0?{}:N;var S,u,T;return _.b(function(W){switch(W.nextAddress){case 1:if(L.innertubeTransportService){S=L.innertubeTransportService;W.jumpTo(2);break}if(!L.innertubeTransportLoader){_.H8(Error("uj"));W.jumpTo(2);break}return W.yield(L.innertubeTransportLoader(),4);case 4:S=W.yieldResult;case 2:return W.yield((u=S)==null?void 0:_.aV(u,Z,N),5);case 5:return T=W.yieldResult,W.return(T)}})};
_.gd.Object.defineProperties(Xp.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
Xp[F2]=[d80,_.R2,_.gv(_.bv),_.gv(FEl)];_.K8v=new _.iY("STORAGE_MANAGER_TOKEN");var NsB=["touchmove","scroll"];var f45=!1;var QIh=!1;var Z4H={onSpanEnd:function(L){L.parentId==null&&(f45||(Cwf(),setInterval(Cwf,6E5),f45=!0),XRh(L,"web_tracing_action"))}};var SzA=URL.createObjectURL;var i4f=console.log,LJA=_.c("web_shorts_enable_tracing");var ksc=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},yWv;
ksc.prototype.enqueue=function(L,Z){Z===1?this.currentPersistentToast=L:this.queue.push(L);this.openToast()};
ksc.prototype.openToast=function(){var L;(L=this.currentToast)!=null&&L.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.AM=new _.iY("TOAST_MANAGER_TOKEN");var wEv=new _.iY("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var U$Y=new _.iY("VIEW_TRANSITION_COORDINATOR_TOKEN");var YKs=function(L){this.config=L;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;L=_.O(L.transitionConfigs);for(var Z=L.next();!Z.done;Z=L.next())Z=_.O(Z.value).next().value,this.transitionTasksMap.set(Z,[])};
YKs.prototype.registerElement=function(L,Z,N){N=N===void 0?!1:N;for(var S=_.O(Object.keys(Z)),u=S.next(),T={};!u.done;T={viewTransitionName:void 0},u=S.next()){u=u.value;T.viewTransitionName=Z[u];var W=this.elementTasksMap.get(L),V=void 0;if((V=W)==null?0:V.has(u)){_.rY(new _.sr("Element already registered for transition",L.tagName,u));break}W=W||new Map;W.set(u,{beforeTransition:function(M){return function(){L.style.viewTransitionName=M.viewTransitionName}}(T),
afterTransition:function(){L.style.viewTransitionName&&(L.style.viewTransitionName="")},
runOnce:N});this.elementTasksMap.set(L,W)}};
_.fl=function(L,Z){var N=L.elementTasksMap.get(Z);N&&(N.clear(),N.size===0&&L.elementTasksMap.delete(Z))};
YKs[F2]=[wEv];var I4k=_.p(function(L){var Z=_.t2("yt-expandable-metadata-header-view-model"),N=_.Z9(function(S){if(!_.vT(_.lj(S),Z.value,["A".toString(),"BUTTON".toString()])){var u;(u=L.expandedCallback)==null||u.call(L,!1)}});
return _.g("yt-expandable-metadata-header-view-model",{el:Z,class:"ytExpandableMetadataHeaderViewModelHost"},_.g(_.F,{cond:function(){return L.expanded()},
then:function(){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":N},_.g("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.g(_.F,{cond:function(){return L.data().expandedTitleImage},
then:function(S){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.g(_.ji,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:S}))}}),_.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.g(_.qv,{text:function(){return L.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.g(_.qv,{text:function(){return L.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.g(_.qv,{text:function(){return L.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.g("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.g(_.bj,{data:function(){return L.data().infoButton}},{buttonViewModel:_.$X}),_.g(_.bj,{data:function(){return L.data().collapseButton}},{buttonViewModel:function(S){return _.g(_.$X,{data:S.data,
onClick:function(){var u;(u=L.expandedCallback)==null||u.call(L,!1)}})}})))},
else:function(){return _.g(e0Q,Object.assign({},L))}}))},"jg"),d$k=_.p(function(L){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.g(_.F,{cond:function(){return L.data().collapsedLabelImage},
then:function(Z){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.g(_.ji,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:Z,alt:""}))}}),_.g(_.qv,{text:function(){return L.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"kg"),e0Q=_.p(function(L){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Z9(function(){var Z;return void((Z=L.expandedCallback)==null?void 0:Z.call(L,!0))})},_.g("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.g(_.F,{cond:function(){return L.data().collapsedImage},
then:function(Z){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.g(_.ji,{height:20,preserveHeight:!0,preserveWidth:!0,data:Z,alt:""}))}}),_.g(_.F,{cond:function(){return L.data().showLeadingCollapsedLabel},
then:function(){return _.g(d$k,Object.assign({},L))}}),_.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.g(_.qv,{text:function(){return L.data().collapsedTitle}}))),_.g("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.g(_.F,{cond:function(){return!L.data().showLeadingCollapsedLabel},
then:function(){return _.g(d$k,Object.assign({},L))}}),_.g(_.bj,{data:function(){return L.data().infoButton}},{buttonViewModel:_.$X}),_.g(_.bj,{data:function(){return L.data().expandButton}},{buttonViewModel:function(Z){return _.g(_.$X,{data:Z.data,
onClick:function(){var N;(N=L.expandedCallback)==null||N.call(L,!0)}})}})))},"lg");_.a4s=_.p(function(L){var Z=_.O(_.i4(function(){return L.data().initiallyExpanded})),N=Z.next().value,S=Z.next().value,u,T=(u=_.GR().resolve(_.gv(_.d$)))==null?void 0:u(),W=function(){var V=L.data().colorData;
if(V)return T?V==null?void 0:V.darkColorPalette:V==null?void 0:V.lightColorPalette};
return _.g("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.u4({"background-color":function(){var V=W();return(V==null?0:V.section2Color)?_.Rs(V.section2Color):""}})},_.g(_.bj,{data:function(){return L.data().header}},{expandableMetadataHeaderViewModel:function(V){return _.g(I4k,{data:V.data,
expanded:function(){return!!N()},
expandedCallback:function(M){S(M)}})}}),_.g(_.F,{cond:function(){return N()},
then:function(){return _.g("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.g(_.bj,{data:function(){return L.data().expandedContent}},{horizontalShelfViewModel:function(V){return _.g(_.x7,{data:V.data,
includeMargin:!0,forceNarrowLayout:!0,palette:W})},
videoSummaryContentViewModel:function(V){return _.g(mpq,{data:V.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(V){return _.g(_.nN,{data:V.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(V){return _.g(_.Hps,{data:V.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.g(_.bj,{data:function(){return L.data().expandedBottomButtons}},{buttonViewModel:function(V){return _.g("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.g(_.$X,{data:V.data}))}}))}}))},"mg");var h0w=_.p(function(L){var Z=L.text;var N=L.marqueeSpacing;var S=L.scrollDelay;var u=L.scrollDuration;var T=L.enableMarqueeScroll;L=L.large;var W=_.O(_.nh(!1,void 0,"WyNYFf")),V=W.next().value,M=W.next().value,G=_.O(_.nh(0,void 0,"OoTdhe"));W=G.next().value;var D=G.next().value,l=_.t2("marquee-scroll");G=_.t2("div");var v=_.t2("span"),R=_.GR().resolve(_.hC);_.ph(function(){if(T()){var d=v.value.getBoundingClientRect().width,h=l.value.getBoundingClientRect().width;if(d>h){var E=(R==="ltr"?-1:1)*(d+
(N?N():16));Promise.resolve().then(function(){M(!0);D(E)})}}},"dv0Anf");
var K={},U={};return _.g("marquee-scroll",{class:_.qg("ytMarqueeScrollHost",(K.ytMarqueeScrollHostLarge=L,K)),el:l},_.g("div",{id:"marquee-scroll-inner-container",class:_.qg("ytMarqueeScrollInnerContainer",(U.ytMarqueeScrollAnimationEnabled=function(){return V()},U)),
el:G,style:_.u4({gap:N?(0,_.Wt)(N):"16px","animation-duration":u?mnh(u):"16s","animation-delay":S?mnh(S):"3s","--marquee-translate":(0,_.Wt)(W)})},_.g("span",{el:v,dir:"auto"},_.g(_.qv,{text:Z,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.g(_.F,{cond:V,then:function(){return _.g("span",{"aria-hidden":"true",dir:"auto"},_.g(_.qv,{text:Z,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"og");_.sYY=_.p(function(L){var Z=L.data;var N=L.overlayDensity;L=_.Z9(function(){Z().onTapCommand&&_.w$(Z().onTapCommand);return!1});
var S=_.pjs(),u=function(){return(N==null?void 0:N())===1?22:16},T={};
return _.g("reel-sound-metadata-view-model",{class:_.qg("ytReelSoundMetadataViewModelHost",(T.ytReelSoundMetadataViewModelHostLarge=function(){return(N==null?void 0:N())===1},T)),
"on:click":L,tabindex:0,role:"button","on:keydown":S},_.g("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.g(_.F,{cond:function(){return Z().musicIcon},
then:function(W){return _.g(_.ji,{data:W,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:u})}}),_.g("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.g(h0w,{text:function(){return Z().soundMetadata},
enableMarqueeScroll:function(){return!!Z().enableMarqueeScroll},
large:function(){return(N==null?void 0:N())===1}}))))},"pg");var jYP,ERk,HC,m$k,CIw,z0c,XEg,QYv;jYP=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];ERk=_.lQ("wil_icon_max_concurrent_fetches",Infinity);
HC=function(L,Z,N){var S=this;this.iconSet=L;this.appDirection=Z;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.iH.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.c("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.c("wil_icon_network_first");this.renderWhenIdle=_.c("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.c("wil_icon_load_immediately");this.isPurging=!1;L=function(){S.cacheStorageAvailable&&(S.cacheStorageAsync=_.iH.caches.open("yt-icons").then(function(T){return S.cacheStorageSync=T}).catch(function(){S.cacheStorageAvailable=!1}))};
N=(N==null?void 0:N())||{};N=_.O(Object.entries(N));for(Z=N.next();!Z.done;Z=N.next()){var u=_.O(Z.value);Z=u.next().value;u=u.next().value;u=UM(u);PIQ(u);this.iconCache[Z]=u.cloneNode(!0)}this.isPurging=pEQ(this);this.isPurging instanceof Promise?this.isPurging.then(L):L()};
_.Erx=function(L,Z){var N=L.resolveIcon(Z);return N?L.renderingMode===1?z0c(L,N,L.renderingMode):(Z=L.iconCache[N.url])?(Z=Z.cloneNode(!0),m$k(L,Z),z0c(L,N,L.renderingMode,Z)):_.JWc(L,N).then(function(S){var u=S?0:1;m$k(L,S);return z0c(L,N,u,S)}):(_.rY(new _.sr("Icon not found",{iconShape:Z})),function(){})};
m$k=function(L,Z){if(Z){L.counter+=1;L="_yt"+L.counter;Z=[Z].concat(_.Pd(Z.getElementsByTagName("*")));Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())if(N=N.value,N.tagName==="style"&&N.textContent)N.textContent=CIw(N.textContent,L,!0);else for(var S=_.O(N.attributes),u=S.next();!u.done;u=S.next()){u=u.value;u.name==="id"&&(u.value+=L);["mask","fill","clip-path"].includes(u.name)&&(u.value=CIw(u.value,L));if(u.name==="style"){var T=N.style;try{T.cssText=CIw(T.cssText,L,!0)}catch(D){var W=void 0,V=
void 0,M=void 0,G=void 0;BC({error:((W=D)==null?void 0:(M=(V=W).toString)==null?void 0:M.call(V))||"",el:N.outerHTML,style:!!T,cssText:(G=T)==null?void 0:G.cssText})}}u.name==="xlink:href"&&(u.value=u.value.replace(/#(.*)/,"#$1"+L))}}};
CIw=function(L,Z,N){var S=/url\(["']?#(.*?)["']?\)/;(N===void 0?0:N)&&(S=/url\(["']?#(.*?)["']?\)/g);return L.replace(S,"url(#$1"+Z+")")};
z0c=function(L,Z,N,S){return function(u,T){var W;var V=Object.assign({},{iconWidth:Z.size+"px",iconHeight:Z.size+"px",iconDisplay:"block"},T,{iconColor:(W=T==null?void 0:T.iconColor)!=null?W:"currentcolor"});W=_.wZ("DIV");T=V.iconColor;var M=V.iconFilter;V="width: "+V.iconWidth+"; height: "+V.iconHeight+"; display: "+V.iconDisplay+";";M&&(V+=" filter: "+M+";");N===0&&(V+=" fill: "+T+";");N===1&&(M=Z.url,V+=" -webkit-mask: url("+M+") no-repeat center / cover; mask: url("+(M+") no-repeat center / cover; background-color: ")+
T);Z.allowMirroring&&L.appDirection==="rtl"&&(V+=" transform: scale(-1, 1); transform-origin: center center;");W.setAttribute("style",V);N===0&&S&&W.appendChild(S);u.appendChild(W)}};
_.JWc=function(L,Z){var N,S,u;return _.b(function(T){N=function(W){return Af(W)};
S=Z.url;if(!rWk(S))throw Error("wj");u=QYv(L,S);return T.return(u.then(function(W){return W.clone().text()}).then(function(W){var V=N(W);
W=Z.size;var M=_.wZ("DIV");_.tU(M,V);V=_.U_(M.firstElementChild!==void 0?M.firstElementChild:_.Fth(M.firstChild,!0));W=PIQ(V,W);L.iconCache[S]=W.cloneNode(!0);delete L.responsePromises[S];return W}).catch(function(){}))})};
XEg=function(L){var Z,N=(Z=L.requestAninmationFrameResolver)==null?void 0:Z.promise;N||(L.requestAninmationFrameResolver=new _.qe,N=L.requestAninmationFrameResolver.promise,_.iH.requestAnimationFrame(function(){var S;(S=L.requestAninmationFrameResolver)==null||S.resolve();L.requestAninmationFrameResolver=null}));
return N};
QYv=function(L,Z){var N,S;return _.b(function(u){if(u.nextAddress==1)return L.waitForAnimationFrame?u.yield(XEg(L),2):u.jumpTo(2);N=L.responsePromises[Z];N||(S=function(){var T,W,V;return _.b(function(M){switch(M.nextAddress){case 1:if(!L.cacheStorageAvailable){T=void 0;M.jumpTo(2);break}if(W=L.cacheStorageSync){M.jumpTo(3);break}return M.yield(L.cacheStorageAsync,4);case 4:W=M.yieldResult;case 3:T=W;case 2:return V=T,L.isNetworkFirstStrategy?M.return(L.fetchAndUpdateCache(Z,V).catch(L.getCacheStorageResponse.bind(L,
Z,V))):M.return(L.getCacheStorageResponse(Z,V).catch(L.fetchAndUpdateCache.bind(L,Z,V)))}})},N=L.renderWhenIdle?new Promise(function(T,W){_.sI(_.ro,function(){S().then(T).catch(W)},10)}):S(),L.responsePromises[Z]=N);
return u.return(N.catch(function(T){delete L.responsePromises[Z];BC({error:(T==null?0:T.toString)?T.toString():"",url:Z});throw T;}))})};
HC.prototype.fetchAndUpdateCache=function(L,Z){var N=this;return _.b(function(S){return S.return(AWm(N,L).then(function(u){Hhv(N,L,u,Z);return u}))})};
var AWm=function(L,Z){var N;return _.b(function(S){if(L.numFetches<ERk)return L.numFetches+=1,S.return(BJ8(L,Z).finally(function(){--L.numFetches;if(Object.keys(L.queuedResponseResolvers).length){var u=Object.keys(L.queuedResponseResolvers)[0],T=L.queuedResponseResolvers[u];delete L.queuedResponseResolvers[u];T.resolve(AWm(L,u))}}));
N=new _.qe;L.queuedResponseResolvers[Z]=N;return S.return(N.promise)})},BJ8=function(L,Z,N){N=N===void 0?2:N;
var S;return _.b(function(u){S={credentials:"same-origin",priority:"low"};return u.return(_.iH.fetch(Z,S).then(function(T){return T.ok?T:Promise.reject(Error("xj`"+T.status+"`"+T.statusText))}).catch(function(T){if(N>0)return BJ8(L,Z,N-1);
throw T;}))})},Hhv=function(L,Z,N,S){_.b(function(u){return S?u.return(new Promise(function(T){_.sI(_.ro,function(){var W,V;
return _.b(function(M){switch(M.nextAddress){case 1:if(!L.isNetworkFirstStrategy){W=void 0;M.jumpTo(2);break}return M.yield(S.match(Z).catch(function(){}),3);
case 3:W=M.yieldResult;case 2:if(V=W){M.jumpTo(4);break}return M.yield(S.put(Z,N.clone()).catch(function(G){BC({error:(G==null?0:G.toString)?G.toString():"",url:Z})}),4);
case 4:T(),_.w7(M)}})},50)})):u.return()})};
HC.prototype.getCacheStorageResponse=function(L,Z){return _.b(function(N){return Z?N.return(Z.match(L).then(function(S){return S&&S.ok?S:Promise.reject()})):N.return(Promise.reject())})};
var PIQ=function(L,Z){Z===void 0||L.getAttribute("viewBox")||L.setAttribute("viewBox","0 0 "+Z+" "+Z);L.setAttribute("focusable","false");L.setAttribute("aria-hidden","true");try{L.style.pointerEvents="none",L.style.display="inherit",L.style.width="100%",L.style.height="100%"}catch(u){var N;BC({error:((N=u)==null?0:N.toString)?u.toString():""});try{L.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(T){var S;BC({error:((S=T)==null?0:S.toString)?T.toString():
""})}}return L},rWk=function(L){for(var Z=_.O(jYP),N=Z.next();!N.done;N=Z.next())if(L.startsWith(N.value)&&L.endsWith(".svg"))return!0;
return!1};
HC.prototype.resolveIcon=function(L){return this.iconSet.resolveIcon(L)};
var BC=function(L){_.Q7(new _.sr("Error in IconManager",L))},pEQ=function(L){if(_.c("wil_icons_cache_purge_killswitch"))return!1;
try{var Z=_.iH.localStorage}catch(T){return!1}if(!Z||!L.cacheStorageAvailable)return!1;var N=function(T){try{var W;(W=Z)==null||W.setItem("yt-icons-last-purged",T.toString())}catch(M){var V;BC({error:((V=M)==null?0:V.toString)?M.toString():""})}},S=Number(Z.getItem("yt-icons-last-purged"));
if(!S)return S=new Date,S=S.setDate(S.getDate()-Math.floor(Math.random()*90+1)),N(S),!1;if(function(T,W){T=new Date(T);W=new Date(W);return W.getMonth()-T.getMonth()+12*(W.getFullYear()-T.getFullYear())}(S,Date.now())<3)return!1;
try{return _.iH.caches.delete("yt-icons").then(function(T){T&&N(Date.now());return T}).catch(function(){return!1}).finally(function(){L.isPurging=!1})}catch(T){var u;
BC({error:((u=T)==null?0:u.toString)?T.toString():""});return!1}};
HC[F2]=[nSy,_.hC,_.gv(kE0)];_.xr=function(L,Z){this.iconManager=L;this.iconsToFetch=Z};
_.xr[F2]=[_.xD,_.gv(fSP)];var x$w=function(){};var qKv=function(L,Z,N){this.requestKey=L;this.u97=Z;this.lHP=N;this.zfI=function(){return new XMLHttpRequest};
this.s45=void 0;this.bI7=[]};
qKv.prototype.getLatestChallengeResponse=function(){return this.lHP};
var lxq=function(L,Z,N){var S,u,T,W;return _.b(function(V){if(V.nextAddress==1){_.oq("attestation_challenge_fetch");_.Rq("att_fs",void 0,"attestation_challenge_fetch");if(!L.s45)throw new _.YB(9,"Missing fetcher");return V.yield(L.s45(Z,N),2)}S=V.yieldResult;T=(u=S)==null?void 0:u.bgChallenge;if(!T)throw new _.YB(15,"Missing field");L.lHP=S;L.bI7.forEach(function(M){M(S)});
W=pYs(T);_.Rq("att_fc",void 0,"attestation_challenge_fetch");vB("attestation_challenge_fetch");return V.return(W)})},pWQ=function(L,Z){var N,S,u,T,W;
return _.b(function(V){switch(V.nextAddress){case 1:N=new v4(100,3E5,.25,2),S=void 0;case 2:if(!(N.currBackoffCount_<10)){V.jumpTo(4);break}_.RS(V,5);if(!(N.currBackoffCount_>0)){V.jumpTo(7);break}return V.yield(Ts1(N.getValue()),7);case 7:return V.yield(L00(L,Z),9);case 9:return u=V.yieldResult,V.return(u);case 5:T=_.yd(V);T instanceof _.YB?S=T:(W=T instanceof Error?T.message:"Unknown",S=new _.YB(9,W));wEQ(N);V.jumpTo(2);break;case 4:if(S)throw S;throw new _.YB(9,"Unknown error");}})},L00=function(L,
Z){Z=tZQ(OZq(new Tvt,Z),L.requestKey);
var N=new _.qe,S=L.zfI();S.open("POST",L.u97);S.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");S.setRequestHeader("Content-Type","application/json+protobuf");S.onload=function(){if(_.tz1(S)){var u=$Ol(S.responseText);N.resolve(u)}else N.reject(new _.YB(_.bZG(_.Re(S)),S.statusText))};
S.onerror=function(){N.reject(new _.YB(_.bZG(_.Re(S)),S.statusText))};
S.send(Z.serialize());return N.promise};var Nj8=function(L){this.networkStatusManager=L;this.isDownloaded=rBP===void 0?function(){return!1}:rBP;
this.isReady=!1;this.a8u=Znc(this)},Znc=function(L){var Z;
return _.b(function(N){if(N.nextAddress==1)return N.yield(CTG(),2);if(N.nextAddress!=3)return Z=N.yieldResult,N.yield(eeO(Z),3);L.oR=N.yieldResult;O4F(L.oR).then(function(){L.isReady=!0});
return N.return(L.oR)})},SMk=function(L,Z,N){L.oR?(L=L.oR.qsC({oL:N,
vUo:!0,tfB:!0}),Z.serviceIntegrityDimensions={poToken:L}):_.CA(Error("zj"))};
Nj8.prototype.processContext=function(L){var Z=this;if(!L.input.match(_.pk(dPt)))return _.W$();var N=L.innerTubeRequest,S=N.videoId;return!S||this.isDownloaded(N)||this.networkStatusManager&&!this.oR&&!this.networkStatusManager.isNetworkAvailable()?_.W$():this.oR?this.isReady?(SMk(this,N,S),_.W$()):new O$(O4F(this.oR).then(function(){SMk(Z,N,S)})):new O$(this.a8u.then(function(u){return _.b(function(T){if(T.nextAddress==1)return T.yield(O4F(u),2);
SMk(Z,N,S);_.w7(T)})}))};var inv=new _.iY("WEB_PO_CONTEXT_PROCESSOR");var u78=function(L,Z){var N=this;this.mhc=0;var S;this.alC=(S=Z==null?void 0:Z.alC)!=null?S:window;this.networkStatusManagerPromise=Z==null?void 0:Z.networkStatusManagerPromise;var u;this.requestKey=(u=Z==null?void 0:Z.requestKey)!=null?u:_.vW("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var T;this.aM7=(T=Z==null?void 0:Z.aM7)!=null?T:function(M){return new jJ(M)};
var W;S=(W=Z==null?void 0:Z.amR)!=null?W:function(M,G,D){return new qKv(M,G,D)};
this.bgChallenge=pYs(L.bgChallenge);this.ttlSeconds=zIL(IL(L.challenge||""));this.i2=S(this.requestKey,_.c("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.iH.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",L);this.zUG=Z==null?void 0:Z.zUG;t1f(this.i2);var V;this.nzv=(V=Z==null?void 0:Z.nzv)!=null?V:function(M){_.Gl(N.alC.document,"visibilitychange",
function(){N.alC.document.visibilityState==="visible"&&M()})}},tuP=function(L){if(!L.vm){var Z={maxAttempts:5,
u0w:L.ttlSeconds*1E3};WJh(L.alC);L.vm=L.aM7({i2:L.i2,t77:{disable:_.c("html5_web_po_disable_remote_logging"),mh:"aGIf",yhn:NR0("html5_web_po_experiment_ids"),pvP:_.c("wpo_dis_lfdms")?0:1E3,zFo:function(S){var u=hi5.get(S);u||(u=new aON(S),u=new fy(u),hi5.set(S,u));return u}},
aJL:Z,lBh:L.bgChallenge,jcI:V1f});L.mhc=Date.now();gsM(L.vm,function(){L.mhc=Date.now()});
Ah_(L.vm,function(){return _.b(function(S){return S.return(TjQ(L))})});
var N=L.g3I.bind(L);L.networkStatusManagerPromise&&L.ttlSeconds>0&&L.networkStatusManagerPromise.then(function(S){S.listen("publicytnetworkstatus-online",N)});
L.nzv(N)}};
u78.prototype.g3I=function(){if(Date.now()>this.mhc+this.ttlSeconds*1E3){var L;(L=this.vm)==null||MZN(L)}};
var TjQ=function(L){if(L.kFc)return L.kFc;if(!L.vm)throw Error("Aj");L.kFc=new zk({vm:L.vm,i2:L.i2,dc5:!0,onError:V1f,aJL:L.zUG});return L.kFc},M1B=function(L,Z){L=new u78(L,Z);
tuP(L);(Z==null?0:Z.gZR)||TjQ(L)};var On8=_.rrw.ephemeralActionSelector,qM=function(L,Z){this.store=L;this.queue=[];Z==null||Z.addEventListener("yt-navigate-start",this.reset.bind(this))};
qM.prototype.enqueue=function(L){var Z=L.command,N=L.durationMs,S=L.elementToFocus;var u=L.label;var T=L.elementToFocus;L.command?u=_.iB("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:u,shortcut:_.iB("SHIFT_PLUS_ENTER")}):T&&(L=u+". "+_.iB("SHIFT_PLUS_ENTER")+" for more information.",u=_.iB("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:u,shortcut:_.iB("SHIFT_PLUS_ENTER")},L));N={announcement:u,durationMs:N!=null?N:8E3};Z?N.command=Z:S&&(S.classList.add("ephemeral-action-focusable-element"),N.selector=S.tagName+
".ephemeral-action-focusable-element");this.queue.push(N);W0P(this)};
qM.prototype.activate=function(L){var Z=On8(this.store.getState());if(Z){if(Z==null?0:Z.command)_.fY(Z.command),this.store.dispatch(Y0t(null));if(Z==null?0:Z.selector)Z=document.querySelector(Z.selector),_.QeL(Z);L.preventDefault()}};
var W0P=function(L){if(!On8(L.store.getState())&&L.queue.length){var Z=L.queue.shift();Z&&(L.previousAnnouncement===Z.announcement&&(Z.announcement+="\u00a0"),L.store.dispatch(Y0t(Z)),L.previousAnnouncement=Z.announcement,L.timeoutId=setTimeout(function(){if(Z.selector){var N;(N=document.querySelector(Z.selector))==null||N.classList.remove("ephemeral-action-focusable-element")}L.store.dispatch(Y0t(null));W0P(L)},Z.durationMs))}};
qM.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(Y0t(null));this.queue.length=0;this.timeoutId=void 0};
qM[F2]=[_.mc,_.gv(_.kv)];_.LR=new _.iY("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Vug=new _.iY("AUTH_SERVICE_TOKEN");var FJG=_.sc(["about:blank"]),GY0;var bn5=new _.iY("API_IFRAME_TOKEN"),MuQ=new _.iY("FETCH_FN_TOKEN"),g_m=new _.iY("WINDOW_REQUEST_TOKEN"),Gpg=new _.iY("TEXT_DECODER_TOKEN");var vjY;vjY=new _.iY("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.F0v=new _.iY("MISC_UI_SHARED_FLAGS_TOKEN");var $Tg=function(){};
$Tg.prototype.getFlag=function(L){if(L.configType!==2)throw Error("Bj");return DT5(L)};
var DT5=function(L){switch(L.flagType){case "bool":return _.c(L.flagName);case "int":return _.jt(_.lQ(L.flagName));case "double":return _.lQ(L.flagName);case "string":return _.vW(L.flagName);case "int32_list":return NR0(L.flagName);case "int64_list":return NR0(L.flagName).map(function(Z){return _.jt(Z)});
case "string_list":return _.oe(L.flagName);default:throw Error("Cj");}};var Z6=function(L,Z,N){Z=Z===void 0?{}:Z;j5.call(this,N===void 0?"uninitialized":N);this.env=L;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}];Z.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=Z.shouldWaitOnAsyncImmediate)};
_.f(Z6,j5);Z6.prototype.init=function(L){var Z=this,N;return _.b(function(S){if(S.nextAddress==1)return Z.processPluginOptions.shouldWaitOnAsyncImmediate?S.yield(L(Z.env),2):(L(Z.env),S.jumpTo(2));if(S.nextAddress!=4)return Z.jobSet?S.yield(Z.jobSet.completedResolver.promise,4):S.jumpTo(4);N=_.ih();N.parkOrScheduleJob(function(){Z.transition("rendering")},10,"ci");
_.w7(S)})};
Z6.prototype.initialRender=function(L){var Z=this,N;return _.b(function(S){if(S.nextAddress==1)return Z.processPluginOptions.shouldWaitOnAsyncImmediate?S.yield(L(Z.env),2):(L(Z.env),S.jumpTo(2));if(S.nextAddress!=4)return Z.jobSet?S.yield(Z.jobSet.completedResolver.promise,4):S.jumpTo(4);N=_.ih();N.parkOrScheduleJob(function(){Z.transition("rendered")},10,"cr");
_.w7(S)})};
Z6.prototype.afterRenderImmediate=function(L){var Z=this,N;return _.b(function(S){if(S.nextAddress==1)return Z.processPluginOptions.shouldWaitOnAsyncImmediate?S.yield(L(Z.env),2):(L(Z.env),S.jumpTo(2));if(S.nextAddress!=4)return Z.jobSet?S.yield(Z.jobSet.completedResolver.promise,4):S.jumpTo(4);N=_.ih();N.parkOrScheduleJob(function(){Z.transition("after-render-deferred")},10,"carml");
_.w7(S)})};
Z6.prototype.afterRenderDeferred=function(L){var Z=this;return _.b(function(N){L(Z.env);_.w7(N)})};_.Qc("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var l88={},v_P=(l88.rendered={priority:0,callback:function(L){qTM(L.injector.resolve(j2))}},l88);var GM1=new _.iY("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),o_m=new _.iY("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var Rak=function(L){this.callbackFnMap=L;this.configMap={}};
Rak.prototype.handleResponse=function(L){var Z;if(L=(Z=L.responseContext)==null?void 0:Z.serviceTrackingParams)for(Z=_.O(L),L=Z.next();!L.done;L=Z.next()){L=L.value;var N=L.params,S=L.service;if(N&&S){this.configMap[S]||(this.configMap[S]=new Ssl);L=this.configMap[S];var u=void 0,T=(u=this.callbackFnMap)==null?void 0:u[S];N=_.O(N);for(S=N.next();!S.done;S=N.next())u=S.value,S=u.key,u=u.value,S&&u&&(L.set(S,u),T&&T(S,u))}}};
Rak.prototype.getConfig=function(L){return this.configMap[L]||void 0};
Rak[F2]=[_.gv(o_m)];var ch0=!1,kY_=0,cH_=null,frF=null;var n_s=new _.iY("NETWORK_SLI_TOKEN");var K0y=function(L){this.networkSli=L};
K0y.prototype.fetch=function(L,Z,N){var S=this,u;return _.b(function(T){u=f8Q(S,L,Z);return T.return(fetch(u).then(function(W){return S.handleResponse(W,N)}).catch(function(W){_.Q7(W);
if((N==null?0:N.expectJsonStrict)&&W instanceof l5&&W.errorType===1)return Promise.reject(W)}))})};
var Fsh=function(L,Z,N,S){var u,T,W,V,M,G,D;return _.b(function(l){switch(l.nextAddress){case 1:return u=f8Q(L,Z,N),_.RS(l,2),l.yield(fetch(u),4);case 4:T=l.yieldResult;_.SX(l,3);break;case 2:throw _.yd(l),new l5(2,"Failed to parse streaming response",u.url);case 3:if(!T.redirected&&!T.ok)throw(W=L.networkSli)==null||W.failure(),new _.sr("Streaming fetch request not ok",u.url);if(!T.body)throw new _.sr("No response body in streaming response",u.url);V={};if(_.c("web_streaming_fast"))return M=T.body.getReader(),
l.return(kpc(L,M,V,S));G=T.body.pipeThrough(new TextDecoderStream).getReader();D=new _.gE;return l.return(yh0(L,G,D,M_G,V,S))}})},f8Q=function(L,Z,N){if(L.networkSli){var S=_.ks(_.zo(Z,"key"))||"/UNKNOWN_PATH";
L.networkSli.start(S)}L=N;_.c("wug_networking_gzip_request")&&(L=GXf(N));return new window.Request(Z,L)},kpc=function(L,Z,N,S){var u,T,W,V,M,G,D,l,v,R,K,U,d,h,E,A,J,C,X,L1,Fw,GB,Yt,lH,RF,jf,f1,n0,r5,yq,ZN;
return _.b(function(GV){switch(GV.nextAddress){case 1:u=new TextDecoder("utf-8"),T=[],V=W=0,_.RS(GV,2,3);case 5:return GV.yield(Z.read(),8);case 8:M=GV.yieldResult;G=M.value;if(D=M.done){l=0;if(T.length>W)for(l=T[W].length-V,v=W+1;v<T.length;v++)l+=T[v].length;l>0&&(R=yHP(T,l,W,V),K=R.indexOf(123),U=R.lastIndexOf(125),K!==-1&&U!==-1&&U>K&&(d=R.subarray(K,U+1),h=JSON.parse(u.decode(d)),M_G(N,h),E=void 0,(E=S)==null||E(N,h)));A=void 0;(A=L.networkSli)==null||A.success();return GV.return(N)}T.push(G);
J=W;for(C=V;J<T.length;)if(X=T[J],L1=X.indexOf(10,C),L1===-1){if(J===T.length-1)break;J++;C=0}else{Fw=J;GB=L1+1;Yt=0;if(W===Fw)Yt=GB-V;else{Yt=T[W].length-V;for(lH=W+1;lH<Fw;lH++)Yt+=T[lH].length;Yt+=GB}RF=yHP(T,Yt,W,V,Fw,GB);jf=RF.indexOf(123);f1=RF.lastIndexOf(125);if(jf!==-1&&f1!==-1&&f1>jf){n0=RF.subarray(jf,f1+1);try{r5=JSON.parse(u.decode(n0)),M_G(N,r5),yq=void 0,(yq=S)==null||yq(N,r5)}catch(IO){throw new l5(1,"Failed to parse streaming response object",u.decode(n0));}}W=J;C=V=L1+1;V===X.length&&
(W++,V=0,J=W,C=0)}GV.jumpTo(5);break;case 3:_.ns(GV);Z.releaseLock();_.kS(GV,0);break;case 2:ZN=_.yd(GV);if(ZN instanceof l5)throw ZN;throw new l5(1,"Failed to process streaming response");}})},yh0=function(L,Z,N,S,u,T){var W,V,M,G,D,l,v,R,K;
return _.b(function(U){if(U.nextAddress==1)return U.yield(Z.read(),2);W=U.yieldResult;V=W.value;if(M=W.done)return(G=L.networkSli)==null||G.success(),U.return(u);try{D=N.parse(V)}catch(d){throw new l5(1,"Failed to parse streaming response",V);}if(D!=null)for(l=_.O(D),v=l.next();!v.done;v=l.next())R=v.value,S(u,R),K=void 0,(K=T)==null||K(u,R);return U.return(yh0(L,Z,N,S,u,T))})};
K0y.prototype.handleResponse=function(L,Z){var N=L.text().then(function(S){if((Z==null?0:Z.jspbResponseCtor)&&L.ok)return Afh(Z.jspbResponseCtor,S);S=S.replace(")]}'","");if((Z==null?0:Z.expectJsonStrict)&&S)try{var u=JSON.parse(S)}catch(W){throw new l5(1,"JSON parsing failed after fetch");}var T;return(T=u)!=null?T:JSON.parse(S)});
L.redirected||L.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),N=N.then(function(S){_.Q7(new _.sr("Error: API fetch failed",L.status,L.url,S));return Object.assign({},S,{errorMetadata:{status:L.status}})}));
return N};
K0y[F2]=[_.gv(n_s)];var w8Q=new _.iY("NETWORK_MANAGER_TOKEN");var UTv=[1,2,4,8,16,30],eaY=function(L){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=L.maxTimeMs;this.maxFrameCount=L.maxFrameCount===void 0?Math.ceil(60*L.maxTimeMs/1E3):L.maxFrameCount;L=_.O(UTv);for(var Z=L.next();!Z.done;Z=L.next())this.brokenFrameSummarizers.push(new YMq(Z.value/60*1E3))},I8s=function(L){var Z=L.frameCountInternal>=L.maxFrameCount;
return L.elapsedTimeMs>=L.maxTimeMs||Z};
eaY.prototype.summarize=function(){for(var L=[],Z=_.O(this.brokenFrameSummarizers),N=Z.next();!N.done;N=Z.next())N=N.value,N=N.brokenFrameCount!==0?{severityMs:Math.round(N.targetFrameTimeMs),eventCount:N.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(N.averageDurationBetweenEventsMs)}:void 0,N&&L.push(N);return{summaries:L,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.gd.Object.defineProperties(eaY.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 YMq=function(L){this.targetFrameTimeMs=L;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.gd.Object.defineProperties(YMq.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var dTq=function(){};
dTq.prototype.start=function(L,Z){var N=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var S=new eaY({maxTimeMs:L});this.monitor=S;this.lastSummaryInternal=void 0;this.metadataToLog=Z;return new Promise(function(u){var T=function(W){if(W===void 0)N.stop(),u(void 0);else if(N.monitor!==S)W=Object.assign({},S.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),u(W);else{var V=N.monitor;if(!I8s(V)){V.frameCountInternal++;if(V.prevTime===
void 0)V.startTime=W;else for(var M=W-V.prevTime,G=_.O(V.brokenFrameSummarizers),D=G.next();!D.done;D=G.next()){D=D.value;var l=D.currTimeMs;D.currTimeMs+=M;M>D.targetFrameTimeMs+2&&(D.brokenFrameCount++,D.timeOfFirstBrokenFrameMs===void 0&&(D.timeOfFirstBrokenFrameMs=l),D.timeOfLastBrokenFrameMs=l)}V.prevTime=W}I8s(N.monitor)?u(N.stop()):_.ro.addJob(T,5,0)}};
_.ro.addJob(T,5,0)})};
dTq.prototype.stop=function(L){if(!this.monitor)return this.lastSummaryInternal;var Z=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(Z.monitoringDurationMs){L=L!=null?L:this.metadataToLog;var N={droppedFramesSummary:Z,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};L&&(N[L.type]=L.data);_.mS("manualSmoothnessMeasurement",N)}this.monitor=void 0;this.lastSummaryInternal=Z;this.metadataToLog=void 0;return Z};_.a85=new _.iY("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var hav;hav=function(L){this.JSC$18779_expiringStorage=new Er(L)};
_.sl5=function(L){if(_.wHF()&&(L=_.CBh(_.ae()+"::"+L)))return new hav(L)};
hav.prototype.set=function(L,Z,N){N=N!==void 0?Date.now()+N:void 0;this.JSC$18779_expiringStorage.set(L,Z,N)};
hav.prototype.get=function(L){return this.JSC$18779_expiringStorage.get(L)};
hav.prototype.remove=function(L){this.JSC$18779_expiringStorage.remove(L)};_.NA=function(){};
_.NA.getInstance=function(){var L=_.LZ("ytglobal.storage_");L||(L=new _.NA,_.bp("ytglobal.storage_",L));return L};
_.NA.prototype.estimate=function(){var L,Z,N;return _.b(function(S){L=navigator;return((Z=L.storage)==null?0:Z.estimate)?S.return(L.storage.estimate()):((N=L.webkitTemporaryStorage)==null?0:N.queryUsageAndQuota)?S.return(UiG()):S.return()})};
_.bp("ytglobal.storageClass_",_.NA);var s41=0;var JHP=!1;var jl8=_.sc(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),E_Y=_.sc(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var R2v={"/":_.aB,"/?feature=ytca":_.aB,"/feed/downloads":_.C8B};var PTq=X4w.continuationCommandSelector,um=function(L,Z,N){this.JSC$18795_upliftPromise=L;this.store=Z;this.JSC$18795_persistentStorePromiseAccessor=N};
um.prototype.shouldPreferLocalResponse=function(L){return L.browseId==="FEdownloads"||L.browseId==="FEsmart_downloads"&&_.c("kevlar_modern_downloads_page")?!0:!1};
um.prototype.localInnertubeResponse=function(L){var Z=this;return _.b(function(N){return L.browseId==="FEdownloads"?_.c("kevlar_modern_downloads_page")?N.return(p8v(Z)):N.return(za0(Z)):L.browseId==="FEsmart_downloads"&&_.c("kevlar_modern_downloads_page")?N.return(mTQ(Z)):N.return(Promise.reject(Error("Ej")))})};
um.prototype.canProvideFallbackResponse=function(){return!0};
um.prototype.localFallbackInnertubeResponse=function(L){var Z=this,N,S,u;return _.b(function(T){switch(T.nextAddress){case 1:return T.yield(Z.JSC$18795_persistentStorePromiseAccessor(),2);case 2:N=T.yieldResult;if(L.browseId!=="SPaccount_downloads"||!N){T.jumpTo(3);break}return T.yield(Caf(N),4);case 4:if(S=T.yieldResult)return T.return(_.m4(S));case 3:return L.browseId==="FEwhat_to_watch"?T.return(Jhy(Z)):(u=_.c("web_offline_continuation_automatic_retry")||_.c("web_offline_continuation_retry_button"))&&
L.continuation?T.return(CTv(Z)):T.return(rhv(Z))}})};
var Jhy=function(L){var Z;return _.b(function(N){if(N.nextAddress==1)return N.yield(L.JSC$18795_upliftPromise,2);Z=_.$N_(L.store.getState().entities);return Z.length?N.return(Qlv(L,Z)):N.return(rhv(L))})},za0=function(L){var Z,N;
return _.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$18795_upliftPromise,2);if(S.nextAddress!=3)return Z=X85([{offlineItemSectionRenderer:{}}]),S.yield(Ahs(L,Z),3);N=S.yieldResult;N.onResponseReceivedActions=[N3("REFRESH_DOWNLOADS")];return S.return(N)})},p8v=function(L){var Z,N,S,u,T,W,V,M,G,D,l,v,R,K,U,d;
return _.b(function(h){if(h.nextAddress==1)return h.yield(L.JSC$18795_upliftPromise,2);if(h.nextAddress!=3)return Z=L.store.getState(),N=Z.entities,S=_.$Q(N),u=_.DT(N),T=_.XSw(Z),W=_.Q30(Z),V=_.Ays(Z),M=_.vX_(N),G=_.VE(S),D=_.l2(N),l=_.nXF(N),v=_.Beh(Z),R=_.nk(Z),K={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.TTP(S,u,M,l,T,W,G,D,V,v,R),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},U="",_.c("kevlar_modern_downloads_skip_downloads_title")||
(U=_.iB("DOWNLOADS",void 0,"Downloads")),h.yield(Hny(L,K,U),3);d=h.yieldResult;d.onResponseReceivedActions=[N3("REFRESH_DOWNLOADS")];return h.return(d)})},mTQ=function(L){var Z,N,S,u,T,W,V,M,G;
return _.b(function(D){if(D.nextAddress==1)return D.yield(L.JSC$18795_upliftPromise,2);if(D.nextAddress!=3)return Z=L.store.getState(),N=Z.entities,S=_.$Q(N),u=_.VE(S),T=_.l2(N),W={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.OiH(S),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},V=_.iB("SMART_DOWNLOADS",void 0,"Smart downloads"),M=iiH(u,T),D.yield(Hny(L,W,V,M),3);G=D.yieldResult;G.onResponseReceivedActions=
[N3("REFRESH_DOWNLOADS")];return D.return(G)})},rhv=function(L){var Z,N;
return _.b(function(S){if(S.nextAddress==1)return S.yield(zn(L.JSC$18795_upliftPromise,L.store),2);Z=S.yieldResult;N=X85([pfF(Z)]);return S.return(Ahs(L,N))})},CTv=function(L){var Z,N,S,u;
return _.b(function(T){if(T.nextAddress==1)return Z={},N=PTq(L.store.getState()),_.v9(Z,_.k0,N),T.yield(zn(L.JSC$18795_upliftPromise,L.store,Z,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);S=T.yieldResult;u={};_.v9(u,_.wLt,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:S}}}],targetId:"browse-feedFEwhat_to_watch"});return T.return({responseContext:{},onResponseReceivedActions:[u]})})},X85=function(L){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:L}}}}]}}},Qlv=function(L,Z){var N,S;
return _.b(function(u){var T={contents:Sy(Z)};N=T&&T.contents?T:{};_.c("kevlar_modern_downloads_page")&&(N=Object.assign({},_.W7f(Z),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));S={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:N}}}]}};return u.return(Ahs(L,S))})},Ahs=function(L,Z){var N,S;
return _.b(function(u){if(u.nextAddress==1)return u.yield(L.JSC$18795_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3)return N=u.yieldResult,u.yield(JZ(N),3);S=u.yieldResult;return u.return({responseContext:{},contents:Z,topbar:S})})},Hny=function(L,Z,N,S){var u,T;
return _.b(function(W){if(W.nextAddress==1)return W.yield(L.JSC$18795_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3)return u=W.yieldResult,W.yield(JZ(u),3);T=W.yieldResult;var V=W.return;var M=N;var G=S;M=M===void 0?"":M;G=G===void 0?"":G;M={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:M}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.iB("SETTINGS",void 0,"Settings"),accessibilityText:_.iB("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:_.m2("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:G}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:M};
return V.call(W,{responseContext:{},contents:Z,topbar:T,header:{pageHeaderRenderer:M}})})};var BjY=function(){this.moduleRegistry={};this.fetchCount=0};
BjY.prototype.isFetching=function(){return this.fetchCount>0};
var wc=function(L,Z){L.moduleRegistry[Z.toString()]={asyncId:Z,isFetching:!1};return L};
BjY.prototype.JSC$18806_loadModules=function(){for(var L=this,Z=new Map,N=[],S=_.O(_.CG.apply(0,arguments)),u=S.next();!u.done;u=S.next()){u=u.value;var T=this.moduleRegistry[u];T?T.resolver?Z.set(u,T.resolver):(T.resolver=new _.qe,Z.set(u,T.resolver),N.push(T.asyncId),T.isFetching=!0):(T=new _.qe,Z.set(u,T),T.resolve(void 0))}N.length&&(this.fetchCount+=1,_.wg(_.re.getMultipleAsync.apply(_.re,_.Pd(N)).then(function(W){for(var V=0;V<N.length;V++){var M=W[V],G=L.moduleRegistry[N[V].toString()];G.isFetching=
!1;G.resolver.resolve(M)}}).catch(function(W){for(var V=_.O(N),M=V.next();!M.done;M=V.next()){M=M.value;
var G=L.moduleRegistry[M.toString()];G.resolver=void 0;G.isFetching=!1;Z.get(M.toString()).reject(W)}}),function(){--L.fetchCount}));
return Promise.all([].concat(_.Pd(Z.values())).map(function(W){return W.promise}))};_.Uc=new _.iY("MODULE_REGISTRY_TOKEN");var xTy={},qMv=(xTy.rendered={priority:0,callback:function(L){a:{var Z=void 0;try{var N;b:{if(_.rI0()){var S=_.Jqs(_.ae()+"::pom");if(S){var u=new UO(S);break b}}u=void 0}var T=(N=u)==null?void 0:N.get("role_text");if(!T)break a;Z={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:T}]}}}}}}catch(M){}Z&&L.injector.resolve(_.$s).resolveCommand(Z)}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&&L.injector.resolve(_.$s).resolveCommand(V)}}catch(M){}}},xTy);var L5k,ZZy={},NvP=(ZZy.initialized={priority:10,callback:function(){L5k=FQ()}},ZZy.rendering={callback:function(L){var Z;
return _.b(function(N){if(N.nextAddress==1)return N.yield(L5k,2);Z=N.yieldResult;if(!Z.endpoint)throw Error("Gj`"+_.iH.location.href);vV(L,Z);_.w7(N)})}},ZZy);var Srk={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(_.Pd(_.c("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,
weight:500},{messageRegExp:/MutationObserver is not defined/,weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,
weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,
weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,
weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,
weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},
{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,
weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,
weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,
weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,
weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(L){var Z=L.stack;if(Z.includes("chrome://")||Z.includes("chrome-extension://")||L.message.includes("chrome-extension://")||Z.includes("moz-extension://")||Z.includes("local.adguard.org")||Z.includes("auctioneer3.50million.club")||Z.includes("youtubedownloader")||
Z.includes("youtube_home_page")||Z.includes("is_youtube_video_no_longer_available")||Z.includes("switchScreenSizeHack")||Z.includes("yt_main_big_banner.js")||Z.includes("YouTubeCenter.js")||Z.includes("/mytube.js")||Z.includes("JSON.parseWrapper")||Z.includes("/inj_js/common.js")||Z.includes("firebug-lite")||Z.includes(".repl.co/")||Z.includes("linkfix")||Z.includes("playAfterAd")||L.message.includes("Access is denied for this document")&&Z.includes("<anonymous>")||L.fileName==="user-script"||L.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
Z.includes("<anonymous>"))return!0;if(Z.includes("https://www.youtube.com"))return!1;L=Z.split("\n");if(!L.length)return!1;if(L.length<=3&&Z.includes("s.onloadeddata"))return!0;Z=0;for(var N=_.O(L),S=N.next();!S.done;S=N.next())S=S.value,(S.includes("https://")||S.includes("http://"))&&Z++;return Z/L.length>.95},
weight:0},{callback:function(L){return L.message==="Unknown Error"&&L.name.indexOf("NS_")===0},
weight:100},{callback:function(L){if(!_.BV)return!1;var Z=L.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||L.message.includes("available to complete this operation"),N=L.stack.includes("webcomponents")&&L.message==="Object doesn't support this action";L=L.message.includes("object that does not implement interface Element");return Z||N||L},
weight:0},{callback:function(L){return L.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(L){return L.message==="Operation is not supported"&&(L.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(L){return L.stack.includes("eval code (eval (code:1:1)")||L.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(L){return L.message.includes("Permission denied")&&L.stack.includes("this.domHandler")?!0:L.name.includes("TypeError")&&L.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(L){if(!L.stack)return!1;var Z=L.stack.trim().split("\n");Z.length&&Z[0].endsWith("Error: "+L.message)&&Z.shift();Z.length&&Z[Z.length-1].includes("at window.onerror (")&&Z.pop();if(!Z.length)return!0;if(L.message==="Script error.")return Z[0].includes("www.youtube.com")||Z.length>=2&&Z[0].startsWith("at new")&&Z[1].startsWith("at window.onerror");if(L.message==="Unexpected token")return!0;L=_.O(Z);for(Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,!(Z.includes("<anonymous>")||
Z.startsWith("load@")||Z.startsWith("global code@")||Z.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(L){return L.message==="Cannot read property 'experiments'"&&L.stack.includes("/s/player/")},
weight:500},{callback:function(L){return L.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(L){return L.stack.includes("/embed.js")?(L.params&&L.params&&(L.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.c("use_error_suppression"))var L=_.X7("SUPPRESS_CLIENT_ERRORS",!1);else{if(L=_.NQ)L=/Chrome\/(\d+)/.exec(_.vs()),L=(L?parseFloat(L[1]):NaN)>=66;L=!(L||_.Zi&&_.L5(65)||_.HW&&_.L5(12.1)||Wx&&_.L5(79))}return L},
weight:500}]};var iZq={},u2w=(iZq.initialized={priority:10,callback:function(L){L.injector.addProvider({provide:tvs,useValue:L.root});L.injector.addProvider({provide:UGQ,useValue:P4A});L.injector.addProvider({provide:Y_y,useValue:Srk});var Z={};L.injector.addProvider((Z.provide=eeQ,Z.useFactory=function(N,S){return function(){VeG(N,S)}},Z[F2]=[UGQ,
Y_y],Z));L.injector.addProvider({provide:yK,useClass:yK})}},iZq);var Tvq={},tZv=(Tvq.initialized={priority:3,callback:function(){var L;if(L=sqf()){L=L.replace("/",".");var Z=_.tq();Z.set("tz",L);Z.save();L=!0}else L=!1;L||(L=_.tq(),L.set("utco",-Math.floor((new Date).getTimezoneOffset())),L.save())}},Tvq);var OZs={},W5P=(OZs.initialized={priority:10,callback:function(L){L.injector.resolve(yK).start();L=_.Is();var Z=_.Ah("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Ah("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Ah("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Ah("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.LM(_.k_x(),{mainAppWeb:Object.assign({},L,{pageType:Z})});_.LM(wDL(),{mainAppWeb:Object.assign({},L,{pageType:Z})});
_.LM(URs(),{mainAppWeb:L});_.LM(Ybt(),{mainAppWeb:L});bqt(function(){_.ZK(URs(),"FAILURE");_.ZK(Ybt(),"FAILURE")});
ipP();uyL();hBh()}},OZs);var VZ0={},bZv=(VZ0.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Rq("dl"),_.ih().processSignal("pcl");else{var L=function(){_.Rq("dl");_.ih().processSignal("pcl");window.removeEventListener("load",L)};
window.addEventListener("load",L)}}},VZ0);var MZP={},gsk=(MZP.rendering={priority:0,callback:function(){var L=_.ih();L.parkOrScheduleJob(function(){L.processSignal("eocs")},10,"eor",5E3)}},MZP);var GRQ=function(){};
_.f(GRQ,q1);
GRQ.prototype.resolveCommand=function(L,Z){var N,S,u,T,W,V,M,G;return _.b(function(D){u=(N=_.n(L,_.Ae0))==null?void 0:(S=N.dialog)==null?void 0:S.commentReplyDialogRenderer;if(!u)throw new _.sr("No dialog in createCommentReplyDialogEndpoint");W=(T=Z.form)==null?void 0:T.event;if(!W)throw new _.sr("Event not passed in when resolving command");V=_.O(W.composedPath());for(M=V.next();!M.done;M=V.next())if(G=M.value,G.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||G.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return G.showReplyDialog(u),D.return();
_.w7(D)})};var S_=function(){};
_.f(S_,q1);S_.prototype.resolveCommand=function(L){var Z,N,S;return _.b(function(u){if(u.nextAddress==1)return Z=_.n(L,OO0),(N=Z)!=null&&N.externalChannelId?u.yield((0,_.imP)("NSzT5"),2):u.return();S=_.F50;return u.yield(S(Z.externalChannelId),0)})};var i1=function(L){this.pageRequestService=L;this.JSC$18824_prefetchCoordinator=$GP()};
_.f(i1,q1);i1.prototype.resolveCommand=function(L){var Z=this,N,S,u,T;return _.b(function(W){if(W.nextAddress==1){N=_.n(L,wSt);if((S=N)==null||!S.taskId)throw Error("Hj");u=N.taskId;_.RS(W,2);return W.yield(_.CGg(Z.pageRequestService,L,{},"").then(function(V){if(!V)throw Error("Ij");},function(V){throw Error("Jj`"+V);
}),4)}if(W.nextAddress!=2)return v$m(Z.JSC$18824_prefetchCoordinator,u),_.SX(W,0);
T=_.yd(W);hM(Z.JSC$18824_prefetchCoordinator,u,T);_.w7(W)})};
i1[F2]=[_.G1];var u1=function(L,Z){this.innertubeTransportService=L;this.JSC$18828_commandHandler=Z};
_.f(u1,q1);u1.prototype.resolveCommand=function(L){var Z=this,N,S,u;return _.b(function(T){if(T.nextAddress==1){N=_.n(L,yEL);if(N.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||N.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")S=N.boolValue?2:1,_.Fx.getInstance().setState(S,!0,!0);return T.yield(_.aV(Z.innertubeTransportService,L),2)}u=T.yieldResult;$um(Z,u);_.w7(T)})};
var $um=function(L,Z){Z.actions&&Z.actions.forEach(function(N){L.JSC$18828_commandHandler.resolveCommand(N)})};
u1[F2]=[_.bv,_.$s];var TC={},tT=(TC.addToPlaylistEndpoint=z6(HZ),TC.addToToastAction=z6(i5),TC.adsControlFlowOpportunityReceivedCommand=z6(YY),TC.audioTrackSelectActionCommand=z6(M_),TC.backgroundAudioPlaybackCommand=z6(g4),TC.captionLanguageSelectActionCommand=z6(GP),TC.captionPickerEndpoint=z6(Fb),TC.changeMiniAppPlayStateCommand=z6(BZ),TC.changeTimelyActionVisibilityCommand=z6(Sg),TC.channelCreationFormEndpoint=z6(J$),TC.clearLocationCommand=z6(A$),TC.clearUrlParamCommand=z6(xY),TC.copyLinkCommand=z6(nI),TC.copyTextEndpoint=
z6(az),TC.createCommentReplyDialogEndpoint=eTw(GRQ),TC.createPlaylistServiceEndpoint=z6(KI),TC.dismissDialogEndpoint=z6(LI),TC.dismissPlayerOverlayCommand=z6($8),TC.entityUpdateCommand=z6(sm),TC.feedbackEndpoint=z6(PZ),TC.getAnswerCommand=z6(urs),TC.getPaymentsClientTokenCommand=z6(b5),TC.getTranscriptEndpoint=z6(u5),TC.googlePaymentBillingCommand=z6(Ma),TC.googlePaymentPurchaseManagerCommand=z6(gO),TC.hideEngagementPanelEndpoint=z6(Zn),TC.hideSheetCommand=z6(N_),TC.hideSnackbarCommand=z6(Hu),TC.insertRichSectionCommand=
z6(rQ),TC.listMutationCommand=z6(Qu),TC.logGtmCommand=z6(Ct),TC.notifyDropdownOptionSelectedCommand=z6(qx),TC.openAdAllowlistInstructionCommand=z6(_.eH),TC.openOnePickAddVideoModalCommand=z6(fI),TC.persistSubscriptionsDisplayPreferencesCommand=z6(e6),TC.pingingEndpoint=z6(Iz),TC.playlistEditEndpoint=z6(y4),TC.playlistVotingRefreshPopupCommand=z6(w4),TC.profileCardCommand=z6(Um),TC.refreshPanelEndpoint=z6(i6),TC.saveImageToDeviceEndpoint=z6(h$),TC.scrollToSectionEndpoint=eTw(TFy),TC.seekToVideoTimestampCommand=
z6(Dn),TC.selectCountryCommand=z6(Ih),TC.setCookieCommand=z6(d4),TC.setLocalStorageCommand=z6(x8),TC.setPrefStorageEntryCommand=z6(hA),TC.setSettingEndpoint=z6(u1),TC.sfvAudioItemPlaybackCommand=z6(l6),TC.shareImageCommand=z6(sX),TC.sharingProviderDataCommand=z6(j6),TC.showAudioTrackPickerActionCommand=z6(vu),TC.showCaptionLanguageSelectActionCommand=z6(oh),TC.showCreatorChatbotEngagementPanelCommand=z6(S_),TC.showDialogCommand=z6(tA),TC.showEngagementPanelEndpoint=z6(OX),TC.showFullscreenPlayerControlsCommand=
z6(Rh),TC.showSheetCommand=z6(Wu),TC.showSnackbarCommand=z6(Bu),TC.showTransientPlayerScrimOverlayCommand=z6(cu),TC.submitFormWithValidationFlowCommand=z6(mG),TC.talkToRecsDeselectCommand=z6(q_),TC.talkToRecsNextCommand=z6(L3),TC.talkToRecsSelectCommand=z6(Z1),TC.talkToRecsUpdateTextCommand=z6(Na),TC.toggleEngagementPanelCommand=z6(V4),TC.undoFeedbackEndpoint=z6(zZ),TC.updateEngagementPanelContentCommand=z6(b6),TC.updateUrlParamCommand=z6(Td),TC.updateVideoMetadataCommand=z6(VD),TC.verifyCommand=
z6(J$),TC.webNativeShareCommand=z6(EX),TC.webSubmitFormCommand=z6(UX),TC.ACK_PLAYABLES_3P_DATA_CONSENT=z6(Pu),TC.CANCEL_NAVIGATION=z6(pI),TC.COPY_SHARE_URL=z6(zP),TC.MINI_APP_EXIT_DIALOG_SEEN=z6(JA),TC.MINI_APP_OPEN_URL=z6(mN),TC.REQUEST_MINI_APP_FULLSCREEN=z6(CI),TC.RESUME_NAVIGATION=z6(r4),TC.SHARE_PLAYABLE_WITH_HIGH_SCORE=z6(Q4),TC.TELL_US_WHY=z6(pt),TC);_.c("web_enable_prefetching_videos_on_home")&&(tT.prefetchWatchCommand=z6(i1),tT.registerTasksCommand=z6(jl));
_.c("enable_share_panel_navigation_logging_fix_on_web")&&(tT.shareEntityServiceEndpoint=z6(u6));_.c("web_use_flow_state_manager")&&(tT.flowNextStepCommand=z6($Zv),tT.flowPrevStepCommand=z6(lS0),tT.getFlowCommand=z6(oSm),tT.updateFlowCommand=z6(ft));_.c("enable_ai_companion")&&(tT.updateConversationIdCommand=z6(dQ));var pN0=Object.assign({},tT);var Dum={},lxs=(Dum.initialized={priority:10,callback:MmF},Dum);var vss={},os0=(vss.initialized={callback:function(L){var Z={},N={};SuH().install((Z.document_disposed={callback:function(){_.c("finalize_all_timelines")?Acs():DW();nfH("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.ocf();var S=L.injector.resolve(yK);S.intervalId!==void 0&&(S.intervalId&&_.ro.cancelJob(S.intervalId),S.intervalId=void 0,--S.currentPartitionIndex,S=QoQ(S),S>0&&KbY({mainAppWeb:_.Is(),survivalSli:{partitionMinute:S,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));$1O(TW);tK!=null&&
tK.flush();X8&&X8.snapshotAndFlush();S=_.O(hi5.values());for(var u=S.next();!u.done;u=S.next())u.value.snapshotAndFlush()}},Z),(N.flush_logs={callback:function(){_.JV()}},N))}},vss);var Rl0={},c3m=(Rl0.rendered={priority:0,callback:function(){var L=new Bv0;L.increment("STARTED");if(_.X7("LOGGED_IN")&&!_.X7("IS_DBSC",!1)&&_.X7("SERVER_VERSION")!=="test"&&_.X7("SERVER_VERSION")!=="dev"&&!aSQ()&&!dZN()){L.increment("EXECUTING");var Z=document.createElement("iframe");Z.style.display="none";_.GEt(Z,2,_.mY("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.X7("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(Z);L.increment("DONE")}}},
Rl0);var nsg={},K5Y=(nsg.rendered={callback:function(){$GP().resume()}},nsg);var fxm={acknowledgeChannelTouStrikeCommand:yB(QD),addToPlaylistServiceEndpoint:yB(HI),addToPlaylistEndpoint:yB(HI),addUpcomingEventReminderEndpoint:yB(GS),browseEndpoint:yB(Lmv),channelCreationFormEndpoint:yB(P1),channelCreationServiceEndpoint:yB(p3),claimLegacyYoutubeChannelEndpoint:yB(kA),clearSearchHistoryEndpoint:yB(tX),clearWatchHistoryEndpoint:yB(OA),commerceActionCommand:w9(D_),createBackstagePostEndpoint:yB(oK),createBroadcastCommand:yB(F9),createCommentEndpoint:yB(hG),createCommentReplyEndpoint:yB(aK),
createLiveChatPollEndpoint:yB($I),createPlaylistServiceEndpoint:yB(BI),crossAccountChannelTransferEndpoint:yB(bi),deleteLiveChatMessageCommand:yB(Dy),deletePlaylistEndpoint:yB(xI),deleteVideoEndpoint:yB(g2),dismissalEndpoint:yB(XY),feedbackEndpoint:yB(AG),flagEndpoint:yB(ir),getAccountSwitcherEndpoint:yB(Vh),verifyCommand:yB(v1),getAccountsListInnertubeEndpoint:yB(gB),getCommentsFromInboxCommand:yB(I5),getDownloadActionCommand:yB(PI),getFlowCommand:w9(qa),getKidsBlocklistPickerCommand:yB(ur),getNotificationMenuEndpoint:yB(S_w),
getPaymentInstrumentsParamsCommand:yB(nw),getPaymentsClientTokenCommand:w9(D_),getPdgBuyFlowCommand:yB(X9),getReportFormEndpoint:yB(Th),getSearchInVideoCommand:yB(WC),getAnswerCommand:yB(Os),getSurveyCommand:yB(MM),getTranscriptEndpoint:yB(Fp),getPostVideoPreviewEndpoint:yB(c1),decorateMessageEndpoint:yB(RK),likeEndpoint:yB(zd),liveChatActionEndpoint:yB(R5),liveChatEndpoint:yB(o5),liveChatItemContextMenuEndpoint:yB(li),liveChatPurchaseMessageEndpoint:yB(cI),liveChatReplayEndpoint:yB(vI),manageLiveChatUserEndpoint:yB(Ku),
metadataUpdateCommand:yB(YI),moderateLiveChatEndpoint:yB(fu),modifyChannelNotificationPreferenceEndpoint:yB(sA),notificationOptOutEndpoint:yB(jp),openSuperStickerBuyFlowCommand:yB(nu),performCommentActionEndpoint:yB(eg),playlistEditEndpoint:yB(Lw),playlistEditorEndpoint:yB(qK),recordNotificationInteractionsEndpoint:yB(EA),reelWatchEndpoint:yB(Z_),refreshPanelEndpoint:yB(zS),removeUpcomingEventReminderEndpoint:yB(kI),resolveLocationCommand:yB(UA),revealBusinessEmailCommand:yB(yD),searchEndpoint:yB(_.iyc),
sendLiveChatMessageEndpoint:yB(yh),sendLiveChatVoteEndpoint:yB(wB),setSettingEndpoint:yB(mI),shareEntityServiceEndpoint:w9(rO),sharingProviderDataCommand:yB(br),showEngagementPanelEndpoint:yB(m6),showMoreDrawerCommand:yB(Cu),showSheetCommand:yB(rB),showDialogCommand:yB(JX),subscribeEndpoint:yB(JG),transcriptSubmitCaptionCorrectionCommand:yB(Gh),undoFeedbackEndpoint:yB(B1),unsubscribeEndpoint:yB(C3),updateBackstagePostEndpoint:yB(K3),updateCommentEndpoint:yB(jg),updateCommentReplyEndpoint:yB(sf),updateCommentsSettingsEndpoint:yB(Ef),
updateCreatorChannelInnertubeCommand:yB(Uf),updateKidsBlacklistEndpoint:yB(tM),updateEngagementPanelContentCommand:yB(Qh),updatePdgFeatureEnablementCommand:yB(AX),updatedMetadataEndpoint:yB(ep),validateChannelHandleCommand:yB(YA),updateChannelPageSettingsEndpoint:yB(wO),verifyAgeEndpoint:yB(xA),watchEndpoint:w9(FY),whitelistEditEndpoint:yB($r),ypcCancelRecurrenceEndpoint:yB(lr),ypcCompleteTransactionEndpoint:yB(vC),ypcFixInstrumentEndpoint:yB(R0),ypcGetCartEndpoint:yB(o0),ypcGetOffersEndpoint:yB(cC),
ypcHandleTransactionEndpoint:w9(Kw),ypcLogWalletAnalyticDataEndpoint:yB(fw),ypcOffersEndpoint:yB(kr),ypcPauseSubscriptionCommand:yB(yW),ypcRedeemCodeEndpoint:yB(w2),ypcResumeSubscriptionCommand:yB(Us),ypcUpdateFopEndpoint:yB(R0)},Og={},kRk=(Og.GET_ACCOUNT_MENU=yB(MK),Og.GET_NOTIFICATIONS_MENU=yB(NZ0),Og.GET_NOTIFICATIONS_INBOX=yB(dB),Og.GET_UNSEEN_NOTIFICATION_COUNT=yB(hX),Og.GET_USER_MENTION_SUGGESTIONS=yB(n3),Og.LOAD_GUIDE=yB(Zyk),Og.SUBMIT_FEEDBACK=yB(H1),Og),WJ={},y3y=(WJ.CONTINUATION_REQUEST_TYPE_BROWSE=
yB(f3),WJ.CONTINUATION_REQUEST_TYPE_SEARCH=yB(VW),WJ.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=yB(W1),WJ.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=yB(WI),WJ.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=yB(dO),WJ.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=yB(IK),WJ.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=yB(Sl),WJ.CONTINUATION_REQUEST_TYPE_GET_PANEL=yB(pu),WJ),wWs={player:w9(FY),watchNext:yB(Of)},Uum={player:w9(FY),reelItemWatch:yB(Z_),reelWatchSequence:yB(NM)},Yry={watchEndpoint:w9($A)},els=
{commandEndpointMap:fxm,signalEndpointMap:kRk,continuationEndpointMap:y3y,watchEndpointMap:wWs,reelWatchEndpointMap:Uum,streamingEndpointMap:Yry};var Ix5,duq,axs;_.hl0=((duq=(Ix5=window).matchMedia)==null?void 0:(axs=duq.call(Ix5,"(prefers-reduced-motion: reduce)"))==null?void 0:axs.matches)||!document.startViewTransition;var seP={},jeq={disableAllTransitions:_.hl0,ignoredErrors:(seP.DOCUMENT_HIDDEN=!0,seP.WINDOW_SIZE_CHANGED=!0,seP.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,seP),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 Esw=_.sc("\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(",")),PQy=function(L){this.viewTransitionCoordinator=
L;this.isBrowseTransitionEnabled=_.vW("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.c("web_thumbnail_to_watch_transition");this.isLockupThumbnailRegistrationEnabled=_.c("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.c("enable_plj_landing_page");this.lockupToWatchPlayerTransitionType=_.vW("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.c("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=
this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;L=_.iH.navigator.deviceMemory;this.isUltraHighBucketDevice=L>=8||L===void 0?!0:!1;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){L=_.lQ("web_page_transition_exit_ms");var Z=_.lQ("web_page_transition_wait_ms"),N=_.lQ("web_page_transition_enter_fast_ms"),S=_.lQ("web_page_transition_watch_exit_ms"),u=_.lQ("web_page_transition_watch_wait_ms"),
T=_.lQ("web_page_transition_watch_enter_ms"),W=_.lQ("web_page_transition_watch_next_exit_ms"),V=_.lQ("web_page_transition_watch_next_wait_ms"),M=_.lQ("web_page_transition_watch_next_enter_fast_ms"),G=_.lQ("web_page_transition_enter_ms"),D=_.lQ("web_page_transition_watch_next_enter_ms");this.enableFasterTransitions&&this.isUltraHighBucketDevice&&(G=N,D=M);isNaN(L)&&isNaN(Z)&&isNaN(G)&&isNaN(S)&&isNaN(u)&&isNaN(T)&&isNaN(W)&&isNaN(V)&&isNaN(D)||!(L=EhA(Esw,L,Z,G,S,u,T,W,V,D))||(Z=document.createElement("style"),
Z.textContent=lSx(L),document.head.appendChild(Z))}};
PQy.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var L={};this.viewTransitionCoordinator.registerElement(document.documentElement,(L.slide="root-slide",L["lockup-to-watch"]="root-lockup-to-watch",L["learning-journey"]="root-learning-journey",L))}};
_.fvs=function(L,Z){L.isLockupToWatchTransitionEnabled&&L.isLockupThumbnailRegistrationEnabled&&(L.registeredLockupThumbnail?L.lockupThumbnailRegisteredFromWatchEndpoint?_.Q7(new _.sr("Lockup thumbnail registration order is incorrect.")):_.Q7(new _.sr("Lockup thumbnail already registered.")):(L.registeredLockupThumbnail=Z,_.pWv(L,Z)))};
_.pWv=function(L,Z){var N={};L.viewTransitionCoordinator.registerElement(Z,(N["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",N),!0)};
PQy[F2]=[U$Y];var gkA={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var FuA=["videoPrimaryInfoRenderer","title"],$nB=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var zly;zly=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.muQ=_.p(function(L){L=_.Ek(L,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var Z=L.data,N=L.playlistData,S=L.expanded,u=L.onExpandClick,T=L.isReadyToResume,W=function(){var D;return!((D=N())==null||!D.contents)},V=function(){var D=N();
return D&&D.totalVideos&&D.currentIndex!==void 0?D.currentIndex+1+" / "+D.totalVideos:""};
L=_.Z9(function(){_.Vl(_.GR().resolve(_.yk));return!1});
var M=_.Z9(function(){W()&&u&&u()}),G={};
return _.g("ytd-miniplayer-info-bar",{class:_.qg("ytdMiniplayerInfoBarHost",(G.ytdMiniplayerInfoBarHasPlaylistData=W,G)),"on:click":M},_.g("div",{class:"ytdMiniplayerInfoBarContent"},_.g("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":L},_.g(_.qv,{text:function(){var D=Z();var l=N();if(l==null?0:l.contents){var v;D=(v=_.ZSB(l))==null?void 0:v.title}else D=D==null?void 0:D.miniplayerTitle;return DnA(D)},
noEndpoints:!0,ellipsisTruncate:!0})),_.g("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.g(_.F,{cond:T,then:function(){return _.g(Wrh,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:zly})}}),_.g("h1",null,_.g(_.qv,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var D=Z();var l=N();D=T()?{simpleText:_.iB("CONTINUE_WATCHING",void 0,"Continue watching")}:(l==null?0:l.contents)?l.titleText:D==null?void 0:D.miniplayerSubtitle;return DnA(D)},
noEndpoints:!0,ellipsisTruncate:!0})),_.g(_.F,{cond:function(){return!!V()&&!T()},
then:function(){return _.g("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.g("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.g("span",null,V))}}))),_.g(_.F,{cond:W,
then:function(){return _.g("div",{class:"ytdMiniplayerInfoBarExpand"},_.g(_.Ff,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(D){u&&(u(),D.stopPropagation())}}},
iconName:function(){return S()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"rg");var J30;J30=_.p(function(L){return _.g("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.g(_.Ff,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:L.onTap}},
iconName:"yt-icons:close"}))},"sg");
_.CQQ=_.p(function(L){L=_.Ek(L,{playabilityStatus:void 0,isDisabled:!1});var Z=L.size,N=L.playabilityStatus,S=L.isDisabled,u=_.t2("div");L=_.O(_.nh(void 0,void 0,"y6THVb"));var T=L.next().value,W=L.next().value;L=_.VB(_.rm);var V=!1,M=function(){return Z().height<=0};
_.ph(function(){var v=Z(),R=M(),K=T();K&&!R&&K.setInternalSize(v.width,v.height)},"qu2eI");
_.zp(function(){var v,R,K;return _.b(function(U){if(U.nextAddress==1){v=_.GR().resolve(_.yk);R=v.getPlayerElement();if(!v.isMiniplayerActive()||!R||!u.value)return U.return();R.appendTo(u.value);return U.yield(R.getPlayerPromise(),2)}K=U.yieldResult;K.setSizeStyle(!1,!0);W(K);_.w7(U)})});
_.zs(function(){G()});
_.ph(function(){var v=T();if(v)if(S()){var R=v.getPlayerState();(V=R===-1||R===1||R===3)&&v.pauseVideo()}else G()},"mCtQKc");
var G=function(){if(V){V=!1;var v;(v=T())==null||v.playVideo()}},D=_.Z9(function(){_.Vl(_.GR().resolve(_.yk))}),l={};
return _.g("ytd-miniplayer-player-container",{class:_.qg("ytdMiniplayerPlayerContainerHost",(l.ytdMiniplayerPlayerContainerHidden=M,l.ytdMiniplayerPlayerContainerHostShortsPip=L,l)),style:_.u4({width:function(){return Z().width+"px"},
height:function(){return Z().height+"px"}})},_.g("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:u}),_.g(_.F,{cond:function(){return!!N()&&!_.jI_(N())},
then:function(){return _.g(eMy,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var v;return((v=N())==null?void 0:v.errorScreen)||null},
status:function(){var v;return((v=N())==null?void 0:v.status)||null}})}}),_.g(_.F,{cond:S,
then:function(){return _.g("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":D},_.g(J30,{onTap:function(){_.GR().resolve(_.yk).close()}}))}}))},"wg");_.r3w=_.p(function(L){var Z=L.toastData;var N=_.t2("ytd-miniplayer-toast");L=_.O(_.i4(function(){return!!Z()}));
var S=L.next().value,u=L.next().value;L=_.O(_.nh(!1,void 0,"BvfNQe"));var T=L.next().value,W=L.next().value,V=function(){var D;return _.jM((D=Z())==null?void 0:D.data.title)};
_.m0(function(){_.HD.requestAvailability();Z()&&u(!1)});
var M,G;_.ph(function(){S()&&(_.QT(N.value,"iron-announce",{text:Z().label+" "+V()}),M&&_.ro.cancelJob(M),M=_.ro.addLowPriorityJob(function(){W(!0)},2500))},"no1dZb");
_.ph(function(){T()&&(G&&_.ro.cancelJob(G),G=_.ro.addLowPriorityJob(function(){u(!1);W(!1)},300))},"G3yPNe");
L={};return _.g("ytd-miniplayer-toast",{el:N,class:_.qg("ytdMiniplayerToastHost",(L.ytdMiniplayerToastOpening=function(){return S()},L.ytdMiniplayerToastClosing=function(){return T()},L))},_.g(_.F,{cond:function(){var D;
return(D=Z())==null?void 0:D.data},
then:function(D){return _.g(lmt,{className:"ytdMiniplayerToastThumbnail",data:D,width:78})}}),_.g("div",{class:"ytdMiniplayerToastInfo"},_.g("div",{class:"ytdMiniplayerToastLabel"},function(){var D;
return(D=Z())==null?void 0:D.label}),_.g("div",{class:"ytdMiniplayerToastTitle"},V)))},"zg");var y_P;var YPA=null;var XWs=_.p(function(L){var Z=L.progressState;var N=L.multiMarkersPlayerBarRenderer;var S=L.progressBarWidth;var u=function(){return aqt(N())},T=function(){return jJs(Z())},W=function(){return S()*(Z().playedTime/Z().videoDuration)};
return _.g("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.g(_.ju,{each:u},function(V,M){return _.g(Qec,{modifiedProps:T,chapters:u,index:M,playedProgressWidth:W,backgroundGradientPosition:function(){var G=T(),D=u(),l=M(),v=W();return(G.playedTime-fM(_.n(D[l],KM)))/G.playedTime*v}})}))},"Ag"),Qec=_.p(function(L){var Z=L.modifiedProps;
var N=L.chapters;var S=L.index;var u=L.playedProgressWidth;var T=L.backgroundGradientPosition;L={};L=_.qg("ytChapteredProgressBarChapteredPlayerBarChapter",(L.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return W().isScrubbing},L.ytChapteredProgressBarHoveredMacroMarker=function(){return W().scrubberHovering},L.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return W().videoPosition==="seen"},L));
var W=function(){return Ek1(Z(),N(),S())},V=function(){var M=Z();
var G=N(),D=S();if(Ek1(M,G,D).videoPosition!=="active")M=0;else{var l=fM(_.n(G[D],KM));M=(M.playedTime-l)/((fM(_.n(G[D+1],KM))||M.videoDuration)-l)}return M};
return _.g("div",{class:L,style:_.u4({width:function(){var M=Z(),G=N(),D=S(),l=_.n(G[D],KM);G=_.n(G[D+1],KM);return(G?fM(G)-fM(l):M.videoDuration-fM(l))/M.videoDuration*100+"%"},
"background-color":function(){a:{var M=W();switch(M.videoPosition){case "pending":M=M.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":M=M.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:M=""}}return M},
"background-size":function(){return(P$F(W())?u():"")+"px"},
"background-position-x":function(){return(P$F(W())?T():"")+"px"}})},_.g("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var M=Z(),G=N(),D=S();if(Ek1(M,G,D).videoPosition==="seen")var l=0;else l=fM(_.n(G[D],KM)),G=fM(_.n(G[D+1],KM))||M.videoDuration,M=M.videoDuration*M.percentLoaded,l=G<=M?1:l>=M?0:(M-l)/(G-l);return"width: "+l*100+"%"}}),_.g("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.u4({width:function(){return V()*100+"%"},
"background-size":function(){return(P$F(W(),V())?u():"")+"px"},
"background-position-x":function(){return(P$F(W(),V())?T():"")+"px"}})}))},"Bg");var A3s=function(L,Z){Z=Z===void 0?UHQ:Z;var N,S=[],u,T=!1;return function(){var W=_.CG.apply(0,arguments);if(T&&N===this&&Z(W,S))return u;u=L.apply(this,W);T=!0;N=this;S=W;return u}}(function(L){var Z=L.heatMarkers,N=L.minHeightDp===void 0?0:L.minHeightDp,S=L.maxHeightDp===void 0?60:L.maxHeightDp;
var u=u===void 0?!1:u;var T=1E3/Z.length;L=[];L.push({x:0,y:100});for(var W=0;W<Z.length;W++){var V=void 0,M=((V=_.n(Z[W],h6t))==null?void 0:V.heatMarkerIntensityScoreNormalized)||0;V=(W+.5)*T;M=100-_.nM(M*100,N/321*100,S/321*100);W!==0||u||L.push({x:0,y:M});L.push({x:V,y:M});W===Z.length-1&&L.push({x:1E3,y:M})}L.push({x:1E3,y:100});Z="";for(N=0;N<L.length;N++)u=L[N],N===0?u="M "+u.x.toFixed(1)+","+u.y.toFixed(1):(S=hph(L[N-1],L[N-2],u),T=hph(u,L[N-1],L[N+1],!0),u=" C "+(S.x.toFixed(1)+","+S.y.toFixed(1)+
" "+T.x.toFixed(1)+","+T.y.toFixed(1)+" "+u.x.toFixed(1)+","+u.y.toFixed(1))),Z+=u;return Z});var HZm=_.p(function(L){var Z=L.progressBarProps;var N=L.config;var S={};L=_.qg("ytHeatSeekerHost",(S.ytHeatSeekerHighContrast=L.highContrast,S));var u=function(){return c_s(N().chapterData)};
return _.g("yt-progress-bar-heatseeker",{class:L,style:function(){var T;return"height: 320px; display: "+(Z().isDragging&&((T=u())==null?0:T.heatMarkers)?"block":"none")}},_.g(_.F,{cond:u,
then:function(T){return _.g(_.F,{cond:function(){return T().heatMarkers},
then:function(){return _.g("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.g("path",{d:function(){return A3s(T())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Cg");var Bv8=_.p(function(L){var Z=L.progressBarProps;var N=L.config;L={};L=_.qg("ytProgressBarLineProgressBarLine",(L.ytProgressBarLineProgressBarLineRounded=function(){return N().rounded},L.ytProgressBarLineProgressBarLineBottomInset=function(){return N().position===2},L));
return _.g("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.g("div",{class:L},_.g("div",{class:"ytProgressBarLineProgressBarBackground"}),_.g("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+Z().percentLoaded*100+"%"}}),_.g("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var S=Z();return"width: "+(S.videoDuration?_.nM(S.hoveredTime/S.videoDuration,0,1):0)*100+"%"}}),_.g("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+vkG(Z())*100+"%"}})))},"Dg");
Bv8.idomCompat=!0;var xuc=_.p(function(L){var Z=L.progressBarProps;var N=L.playheadData;var S=L.interpolateDotPosition;var u=L.hidePlayhead;L={};var T=_.qg("ytProgressBarPlayheadProgressBarPlayheadDot",(L.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return Z().isDragging},L.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!Z().isDragging&&u()},L));
return _.g("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.u4({"margin-left":function(){return okt(Z())*100+"%"},
transform:function(){return"translateX(-"+(S()?okt(Z())*12:6)+"px)"}})},_.g(_.F,{cond:function(){var W;
return(W=_.jA(N)())==null?void 0:W.playheadImage},
then:function(W){var V={};return _.g("div",{class:_.qg("ytProgressBarPlayheadProgressBarPlayheadCustom",(V.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return Z().isDragging},V.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!Z().isDragging&&u()},V)),
style:_.u4({"transform-origin":function(){return(S()?okt(Z())*20:10)+"px center"}})},_.g(_.ji,{data:W,
alt:"","aria-hidden":"true"}))},
else:function(){return _.g("div",{class:T,style:_.u4({"transform-origin":function(){return(S()?okt(Z())*12:6)+"px center"}})})}}))},"Eg");
xuc.idomCompat=!0;var b1=function(L,Z,N,S,u,T){this.getProgressBarRect=L;this.updateProgressBarRect=Z;this.getFilmstripYPosition=N;this.setFineScrubbingDraggedTime=S;this.updateFilmStripDraggedYDistance=u;this.resetFilmStripYOffset=T;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Sw(this.onThrottledSeek,100,this)},qrv=function(L,Z,N){return function(S){L.handleClick(S,Z(),N())}},NoQ=function(L,Z){return function(N){Lzc(L,
N,ZQ8(N),Z())}},S6Y=function(L,Z){return function(N){Lzc(L,N,{x:N.clientX,
y:N.clientY},Z())}},uWy=function(L,Z,N){return function(S){var u=Z(),T=N();
iQ5(L,S,ZQ8(S),u,T,!0);if(T.onTouchMove)T.onTouchMove(u)}},tXY=function(L,Z,N){return function(S){To0(L,S,Z(),N())}},OQQ=function(L,Z){return function(){L.handleMouseLeave(Z())}},Wzg=function(L,Z,N){return function(){var S=Z(),u=N();
MA(L,S,u);if(u.onTouchEnd)u.onTouchEnd(S)}},VX5=function(L,Z,N){return function(){var S=Z(),u=N();
MA(L,S,u);if(u.onTouchEnd)u.onTouchEnd(S)}},bQc=function(L,Z,N){return function(){MA(L,Z(),N())}},MXk=function(L){return function(Z){if(Z.keyCode===39||Z.keyCode===38){var N,S;
(N=L())==null||(S=N.playerApi)==null||S.seekBy(5,void 0,void 0,72)}else if(Z.keyCode===37||Z.keyCode===40){var u,T;(u=L())==null||(T=u.playerApi)==null||T.seekBy(-5,void 0,void 0,71)}}},gjP=function(L,Z,N){return function(S){!N().disableScrubbing&&L.startPosition&&To0(L,S,Z(),N())}},GTk=function(L,Z,N){return function(){if(!N().disableScrubbing)if(L.startPosition){var S=Z(),u=N();
MA(L,Z(),N());if(u.onTouchEnd)u.onTouchEnd(S)}else Z().setState({isDragging:!1})}},ZQ8=function(L){L=L.touches[0];
return{x:L.clientX,y:L.clientY}},To0=function(L,Z,N,S){if(Z.buttons!==1){if(Z.movementX||Z.movementY)Z.preventDefault(),Z.stopPropagation(),L=Fzy(L,N,Z.clientX),N.setState({isHovering:!0,
hoveredTime:L*N.videoDuration})}else $Ow(N),iQ5(L,Z,{x:Z.clientX,y:Z.clientY},N,S,!1)};
b1.prototype.handleMouseLeave=function(L){$Ow(L)};
var $Ow=function(L){L.isHovering&&L.setState({isHovering:!1,hoveredTime:0})},Lzc=function(L,Z,N,S){L.startPosition||(L.startPosition=N,L.updateProgressBarRect(),L.controlsWereVisibleBeforeDragging=S.controlsVisible,Z.stopPropagation(),_.c("medium_progress_bar_modification")||Z.preventDefault())},iQ5=function(L,Z,N,S,u,T){if(L.startPosition)if(T&&u.isInlinePlayback&&L.startPosition&&!L.hasDraggedTheMinimumDistance&&Math.abs(N.y-L.startPosition.y)>Math.abs(N.x-L.startPosition.x))MA(L,S,u);
else if(Z.preventDefault(),Z.stopPropagation(),S.videoDuration&&(L.startPosition&&!L.hasDraggedTheMinimumDistance&&(L.hasDraggedTheMinimumDistance=Math.abs(N.x-L.startPosition.x)>=1),u.enableFineScrubbing&&(L.startPosition&&(L.isDraggedForFineScrubbing=-(N.y-L.startPosition.y)>=60),!L.startPosition||N.y>=L.startPosition.y||(S.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:pG0(S.draggedTime,S,u.chapterData)}),L.setFineScrubbingDraggedTime(S.draggedTime),L.updateFilmStripDraggedYDistance(L.startPosition.y,
N.y,S))),L.hasDraggedTheMinimumDistance)){Z=Fzy(L,S,N.x);if(L.isDraggedForFineScrubbing){var W;(W=S.playerApi)==null||W.pauseVideo();S.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:S.draggedTime,filmStripXDistance:pG0(Z*S.videoDuration,S,u.chapterData)})}u.enableFineScrubbing&&(!u.enableFineScrubbing||L.getFilmstripYPosition(S)<68)||S.setState({draggedTime:Z*S.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:L.controlsWereVisibleBeforeDragging});var V;(V=
u.cancelAutohideControlsFn)==null||V.call(u)}},MA=function(L,Z,N){var S=N.enableFineScrubbing&&Z.fineScrubbingActiveState!=="off";
if(Z.isDragging||S){S={isDragging:!1,playedTime:Z.draggedTime,controlsVisible:L.controlsWereVisibleBeforeDragging};N.enableFineScrubbing&&Z.fineScrubbingActiveState!=="on"&&(L.resetFilmStripYOffset(),S.fineScrubbingActiveState="off");var u=u===void 0?YPA:u;var T=_.RH(0);if(T&&u){var W=Math.round(Z.playedTime*1E3),V=Math.round(Z.draggedTime*1E3);W>2147483647||V>2147483647||_.jz(T,u,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(W),endMediaTimeMs:String(V),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}Z.setState(S);
L.seekThrottle.fire(Z.draggedTime,Z,7);_.c("mweb_new_progress_bar_play_on_seek")&&L.resumeVideo(Z);N.unmuteOnSeek&&(N=Z.playerApi,Z.volumeMuted&&(N==null||N.unMute()))}else Z.setState({controlsVisible:!Z.controlsVisible}),(T=N.triggerAutohideControlsAfterDelayFn)==null||T.call(N);L.startPosition=null;L.hasDraggedTheMinimumDistance=!1;L.isDraggedForFineScrubbing=!1;L.controlsWereVisibleBeforeDragging=!1};
b1.prototype.handleClick=function(L,Z,N){this.updateProgressBarRect();L.stopPropagation();L=Fzy(this,Z,L.clientX)*Z.videoDuration;Z.setState({playedTime:L});if(Z.playerState!==2){var S;(S=N.triggerAutohideControlsAfterDelayFn)==null||S.call(N)}this.seekThrottle.fire(L,Z,7)};
var Fzy=function(L,Z,N){L=L.getProgressBarRect(Z);return _.nM(0,(N-L.left)/L.width,1)};
b1.prototype.resumeVideo=function(L){if(L.draggedTime<L.videoDuration){var Z;(Z=L.playerApi)==null||Z.playVideo()}};
b1.prototype.onThrottledSeek=function(L,Z,N){if(Z=Z.playerApi){var S;if((S=Z.getVideoData())==null?0:S.isLive)S=this.getProgressState(Z),L+=(S==null?void 0:S.seekableStart)||0;Z.seekTo(L,void 0,void 0,void 0,N)}};
b1.prototype.getProgressState=function(L){var Z=L==null?void 0:L.getPresentingPlayerType();return L==null?void 0:L.getProgressState(Z)};var vjv,lk5,ojv,ca8,DOc,njP,KzQ,fkv,kTg;vjv=_.p(function(L){var Z=L.progressBarProps;var N=L.config;var S=L.progressBarWidthPx;var u=L.chapterData;var T=r__(Z,function(){return N().isShortsPage}),W=function(){return!Z().isHovering&&!N().isShortsPage};
L={};var V=_.qg("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(L.ytPlayerStoryboardHostMwebShorts=function(){return N().isShortsPage&&!1},L));
return _.g("yt-player-storyboard",null,_.g(_.F,{cond:function(){return Z().isDragging||Z().isHovering},
then:function(){return _.g(_.F,{cond:T,then:function(M){return _.g(_.F,{cond:W,then:function(){return _.g("div",{class:V,"aria-hidden":"true"},_.g(DOc,{props:Z,config:N,isBigboard:!0,chapterData:u}))},
else:function(){return _.g(lk5,{props:Z,frame:M,config:N,progressBarWidthPx:S,chapterData:u})}})}})}}))},"Fg");
_.RGY=_.p(function(L){var Z=L.progressBarProps;var N=r__(Z,L.isShortsPage);return _.g("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.g(_.F,{cond:function(){return Z().isDragging||Z().isHovering},
then:function(){return _.g(_.F,{cond:N,then:function(S){return _.g(ojv,{frame:S,props:Z,isBigboard:!0})}})}}))},"Gg");
lk5=_.p(function(L){var Z=L.props;var N=L.frame;var S=L.config;var u=L.progressBarWidthPx;L=L.chapterData;var T={};T=_.qg("ytPlayerStoryboardHost",(T.ytPlayerStoryboardHostMwebShorts=function(){return S().isShortsPage&&!1},T.ytPlayerStoryboardHostInlinePlayer=function(){return S().isInlinePlayer},T.ytPlayerStoryboardHostFadeIn=function(){return S().useFadeInAnimation},T));
return _.g("div",{class:T,"aria-hidden":"true",style:function(){var W=Z(),V=zqG(N()),M=u();W=mnw(W)/W.videoDuration;var G=M*W,D=V/2+6;V=M-(V/2+6);return"left: "+(G<=D?D/M*100:G>=V?V/M*100:W*100)+"%"}},_.g(_.F,{cond:function(){var W=Z();
return!(S().isShortsPage&&W.videoDuration<15)},
then:function(){return _.g(ojv,{frame:N,props:Z,isBigboard:!1})}}),_.g(DOc,{props:Z,
config:S,isBigboard:!1,chapterData:L}))},"Hg");
ojv=_.p(function(L){var Z=L.frame;var N=L.props;var S=L.isBigboard;var u=function(){var V,M;return(M=(V=N().playerApi)==null?void 0:V.getVideoContentRect())!=null?M:{width:0,height:0}},T=function(){return zqG(Z())},W=function(){var V=Z();
return V?V.height/V.rows:0};
L={};L=_.qg((L.ytPlayerStoryboardBigboardImageWrapper=S,L.ytPlayerStoryboardStoryboardImageWrapper=function(){return!S()},L));
return _.g("div",{class:L,style:function(){return"width: "+(S()?u().width:T())+"px; height: "+(S()?u().height:W())+"px;"}},_.g(ca8,{frame:Z,
storyboardWidth:T,storyboardHeight:W,storyboardScale:function(){return(S()?u().width:T())/T()}}))},"Ig");
ca8=_.p(function(L){var Z=L.frame;var N=L.storyboardWidth;var S=L.storyboardHeight;var u=L.storyboardScale;var T=function(){var W=Z().row,V=Z().column,M=N(),G=S(),D=u();return{left:-V*M*D,top:-W*G*D}};
return _.g("img",{src:function(){return Z().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+T().left+"px; top: "+T().top+"px; width: "+Z().width*u()+"px; height: "+Z().height*u()+"px;"}})},"Jg");
DOc=_.p(function(L){var Z=L.props;var N=L.config;var S=L.isBigboard;var u=L.chapterData;L={};L=_.qg("ytPlayerStoryboardMetadata",(L.ytPlayerStoryboardMetadataBigboard=S,L));return _.g("div",{class:L},_.g(_.F,{cond:S,then:function(){return _.g(_.F7,null,_.g(njP,{props:Z,config:N}),_.g(_.F,{cond:function(){a:{var T=Z();var W=N(),V=u(),M;if((W==null?0:W.activeChapter)&&((M=_.n(W==null?void 0:W.activeChapter,KM))==null?0:M.title))T=!0;else{W=_.O(nkP(V));for(W=W.next();!W.done;W=W.next()){T=(W=_.n(W.value,
jfY))&&J_t(T,W);break a}T=!1}}return T},
then:function(){return _.g(KzQ,{props:Z,config:N,isBigboard:!0,chapterData:u})}}))},
else:function(){return _.g(_.F7,null,_.g(KzQ,{props:Z,config:N,isBigboard:!0,chapterData:u}),_.g(njP,{props:Z,config:N}))}}))},"Kg");
njP=_.p(function(L){var Z=L.props;var N=L.config;L={};L=_.qg("ytPlayerStoryboardTimestamp",(L.ytPlayerStoryboardTimestampShorts=function(){return N().isShortsPage},L.ytPlayerStoryboardTimestampIsHovering=function(){return Z().isHovering||N().isShortsPage&&!0},L));
return _.g("div",{class:L},_.g(_.F7,null,function(){return _.C$G(mnw(Z()))}))},"Lg");
KzQ=_.p(function(L){var Z=L.props;var N=L.config;var S=L.isBigboard;var u=L.chapterData;L={};S=_.qg("ytPlayerStoryboardTitle",(L.ytPlayerStoryboardTitleBigboard=S,L));return _.g("div",{class:S},_.g(_.F,{cond:function(){return!N().isShortsPage},
then:function(){return _.g(fkv,{props:Z,activeChapter:function(){return N().activeChapter},
chapterData:u})}}))},"Mg");
fkv=_.p(function(L){var Z=L.props;var N=L.activeChapter;var S=L.chapterData;return _.g(_.F7,null,_.g(_.ju,{each:function(){return nkP(S())},
keyBy:"INDEX"},function(u){return _.g(_.F7,null,_.g(_.F,{cond:function(){return _.n(u(),jfY)&&J_t(Z(),_.n(u(),jfY))},
then:function(){return _.g(kTg,{timedMarker:function(){return _.n(u(),jfY)}})}}))}),_.g(_.F,{cond:function(){var u;
return N()&&((u=_.n(N(),KM))==null?void 0:u.title)},
then:function(u){return _.g(_.qv,{text:u,noPreWrap:!0})}}))},"Ng");
kTg=_.p(function(L){var Z=L.timedMarker;return _.g(_.F7,null,_.g("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.g(_.T0,{icon:function(){return Z().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.g(_.qv,{text:function(){return Z().label},
noPreWrap:!0}))},"Og");_.yas=_.p(function(L){var Z=L.progressBarProps;var N=L.playheadData;var S=L.config;L=_.t2("yt-progress-bar");var u=_.t2("div"),T=_.t2("div"),W=_.O(_.nh({width:0,left:0},void 0,"WloVn")),V=W.next().value,M=W.next().value,G=function(){T.value&&M(T.value.getBoundingClientRect())},D=function(){V().width<=0&&G();
return V()};
_.GD("resize",G);var l=new b1(D,function(){},function(){return 0},function(){},function(){},function(){}),v=function(){return Z()};
W=_.O(_.nh(!1,void 0,"u8BZZb"));var R=W.next().value,K=W.next().value;W=_.Z9(function(){K(!0);S().position===2?setTimeout(function(){G()},100):G()});
var U=_.Z9(function(){K(!1);OQQ(l,v)()}),d=_.Z9(function(f1){S().doSeekOnClick&&qrv(l,v,S)(f1);
return!1}),h=_.Z9(function(f1){NoQ(l,v)(f1);
return!1}),E=_.Z9(function(f1){S6Y(l,v)(f1);
return!1}),A=_.Z9(function(f1){uWy(l,v,S)(f1);
return!1}),J=_.Z9(function(f1){tXY(l,v,S)(f1);
return!1}),C=_.Z9(function(){Wzg(l,v,S)();
return!1}),X=_.Z9(function(){VX5(l,v,S)();
return!1}),L1=_.Z9(function(){bQc(l,v,S)();
return!1}),Fw=_.Z9(function(f1){MXk(v)(f1);
return!1});
_.GD("mousemove",gjP(l,v,S));_.GD("mouseup",GTk(l,v,S));_.m0(function(){eq0(u.value);K(!1);G();GTk(l,v,S)()});
var GB={};GB=_.qg("ytPlayerProgressBarHost",function(){return S().className},(GB.ytPlayerProgressBarHostReadOnly=function(){return S().disableScrubbing},GB.ytPlayerProgressBarHostHidden=function(){return S().hideProgressBar&&!R()},GB.ytPlayerProgressBarHostLowerPlayer=function(){return S().position===0},GB.ytPlayerProgressBarHostBottomEdge=function(){return S().position===1},GB.ytPlayerProgressBarHostBottomInset=function(){return S().position===2},GB.ytPlayerProgressBarHostCustom=function(){return S().position===
3},GB));
var Yt={},lH=_.qg("ytPlayerProgressBarBackground",(Yt.ytPlayerProgressBarBackgroundHide=function(){return S().position===2&&!R()&&!Z().isDragging},Yt));
Yt={};Yt=_.qg("ytPlayerProgressBarDragContainer",(Yt.ytPlayerProgressBarDragContainerBottomEdge=function(){return S().position===1},Yt));
var RF={};RF=_.qg("ytPlayerProgressBarProgressBar",(RF.ytPlayerProgressBarProgressBarInset=function(){return S().position===2},RF.ytPlayerProgressBarProgressBarInsetMinimized=function(){return S().position===2&&!R()&&!Z().isDragging},RF));
var jf=function(){return Math.floor(vkG(Z())*100)};
return _.g("yt-progress-bar",{el:L,class:GB},_.g(_.F,{cond:function(){return S().position===2},
then:function(){return _.g("div",{class:lH})}}),_.g("div",{el:u,
"on:click":d,"on:touchstart":h,"on:touchmove":A,"on:mouseenter":W,"on:mousedown":E,"on:mouseleave":U,"on:mousemove":J,"on:mouseup":X,"on:touchend":C,"on:touchcancel":L1,"on:keydown":Fw,class:Yt,role:"slider","aria-valuenow":jf,"aria-valuetext":function(){return jf()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return Z().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.iB("SEEK_SLIDER")},_.g("div",{el:T,class:RF},_.g(HZm,{progressBarProps:Z,config:S,highContrast:function(){return!!S().isInlinePlayback}}),_.g(_.F,{cond:function(){return S().chapterData&&Ku_(S().chapterData)},
then:function(){return _.g(XWs,{progressState:Z,multiMarkersPlayerBarRenderer:function(){return S().chapterData},
progressBarWidth:function(){return V().width}})},
else:function(){return _.g(Bv8,{progressBarProps:Z,config:S})}}),_.g(xuc,{progressBarProps:Z,
playheadData:N,interpolateDotPosition:function(){return S().position!==2},
hidePlayhead:function(){return S().playheadDotBehavior===1&&!R()}}))),_.g(vjv,{progressBarProps:Z,
config:function(){return{activeChapter:sJw(Z(),S().chapterData),getProgressBarWidthPx:function(){return D().width},
isShortsPage:!!S().isShortsPage,isInlinePlayer:!!S().isInlinePlayback,useFadeInAnimation:!!S().isInlinePlayback}},
progressBarWidthPx:function(){return V().width},
chapterData:function(){return S().chapterData}}))},"Pg");
_.yas.idomCompat=!0;Object.assign({},_.fqG(),{setState:function(){},
domMeasurements:{},appApi:_.lq1(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var wxw;
_.UO0=_.p(function(){var L,Z=(L=_.kM(QJG().playerApi))!=null?L:void 0;L=_.O(_.nh(!1,void 0,"Z9NQ1b"));var N=L.next().value,S=L.next().value;L=_.O(_.nh(!1,void 0,"HoVJXe"));var u=L.next().value,T=L.next().value;L=_.O(_.nh(!1,void 0,"DWCY3"));var W=L.next().value,V=L.next().value;L=_.O(_.nh(!1,void 0,"g4C2Zd"));var M=L.next().value,G=L.next().value;L=_.O(_.nh(0,void 0,"lmVfFb"));var D=L.next().value,l=L.next().value;L=_.O(_.nh(0,void 0,"mFLbzb"));var v=L.next().value,R=L.next().value;L=_.O(_.nh(!1,void 0,
"hQN4Wb"));var K=L.next().value,U=L.next().value;L=_.O(_.nh(0,void 0,"WWU0fb"));var d=L.next().value,h=L.next().value;L=_.O(_.nh(0,void 0,"MJ7LMd"));var E=L.next().value,A=L.next().value;L=_.O(_.nh("",void 0,"hnomOe"));var J=L.next().value,C=L.next().value;L=_.O(_.nh(-1,void 0,"ARe3pf"));var X=L.next().value,L1=L.next().value,Fw=_.wJ(function(){var GB={controlsVisible:N(),isOverlayHidden:u(),shouldWaitToHideControls:W(),isDragging:M(),isHovering:K(),videoDuration:d(),playedTime:E(),videoId:J(),draggedTime:v(),
hoveredTime:D(),playerState:X()};return Object.assign({},_.fqG(),GB,{domMeasurements:{},setState:function(Yt){Yt.controlsVisible!==void 0&&S(Yt.controlsVisible);Yt.isOverlayHidden!==void 0&&T(Yt.isOverlayHidden);Yt.shouldWaitToHideControls!==void 0&&V(Yt.shouldWaitToHideControls);Yt.isDragging!==void 0&&G(Yt.isDragging);Yt.isHovering!==void 0&&U(Yt.isHovering);Yt.draggedTime!==void 0&&R(Yt.draggedTime);Yt.hoveredTime!==void 0&&l(Yt.hoveredTime);Yt.videoDuration!==void 0&&h(Yt.videoDuration);Yt.playedTime!==
void 0&&A(Yt.playedTime);Yt.videoId!==void 0&&C(Yt.videoId);Yt.playerState!==void 0&&L1(Yt.playerState)},
appApi:_.lq1(),playerApi:Z})},void 0,"Au4PIf");
_.zp(function(){Z==null||Z.addEventListener("onVideoProgress",Unw(Fw));Z==null||Z.addEventListener("onVideoDataChange",wG0(Fw));Z==null||Z.addEventListener("onStateChange",kGw(Fw))});
_.zs(function(){if(Z==null?0:Z.isReady())Z==null||Z.removeEventListener("onVideoProgress",Unw(Fw)),Z==null||Z.removeEventListener("onVideoDataChange",wG0(Fw)),Z==null||Z.removeEventListener("onStateChange",kGw(Fw))});
return _.g("desktop-shorts-player-controls",null,_.g(wxw,{playerControlsProps:Fw}))},"Rg");
wxw=_.p(function(L){var Z=L.playerControlsProps;return _.g("div",{class:"desktopShortsPlayerControlsHost"},_.g(_.yas,{progressBarProps:Z,config:function(){return{isShortsPage:!0,hideProgressBar:Z().videoDuration<30&&Z().playerState!==2&&!Z().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Sg");_.Y65=_.p(function(L){function Z(GB){GB!==0||l()?GB>50&&(l()||!R())?(v(!1),K(!0)):GB<=50&&(l()||R())&&(v(!1),K(!1)):v(!0)}
function N(GB,Yt){var lH;return _.b(function(RF){if(RF.nextAddress==1)return RF.yield(_.Z7(),2);lH=RF.yieldResult;Yt&&lH?(lH.unMute(!0),GB&&(A_P(GB,lH.getVolume()),d(lH.getVolume()))):lH&&(lH.mute(!0),GB&&A_P(GB,0));_.w7(RF)})}
function S(GB){var Yt,lH;return _.b(function(RF){if(RF.nextAddress==1)return RF.yield(_.Z7(),2);Yt=RF.yieldResult;lH=50;Yt&&(lH=Yt.getVolume(),Yt.isMuted()?A_P(GB,0):A_P(GB,lH));d(lH);_.w7(RF)})}
var u=L.orientation;L=_.t2("desktop-shorts-volume-controls");var T=_.t2("button"),W=_.OV("input"),V=_.O(_.nh(!1,void 0,"MvN0Tc")),M=V.next().value,G=V.next().value,D=_.O(_.nh(!1,void 0,"aSjsEb"));V=D.next().value;D=D.next().value;var l=V,v=D;D=_.O(_.nh(!0,void 0,"FUh46d"));V=D.next().value;D=D.next().value;var R=V,K=D;V=_.O(_.nh(50,void 0,"yPke4d"));var U=V.next().value,d=V.next().value;V=_.wJ(function(){var GB=l();return _.c("web_shorts_keyboard_enable_mute_shortcut")?GB?_.iB("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.iB("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):GB?_.iB("UNMUTE_VOLUME",void 0,"Unmute"):_.iB("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
D=_.wJ(function(){var GB=l(),Yt=R();return{sources:[{clientResource:{imageName:GB?_.c("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":Yt?_.c("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.c("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var h=_.wJ(function(){var GB=U();return l()?GB+"% volume muted":GB+"% volume"},void 0,"xZsRmc"),E=_.wJ(function(){return u()==="vertical_down"},void 0,"FVqYmb");
_.m0(function(){function GB(){G(!0)}
function Yt(){G(!1)}
W&&W.value&&(W.value.addEventListener("focus",GB),W.value.addEventListener("focusout",Yt),S(W.value).then(function(){Z(Number(Hpx(W.value)))}));
T&&T.value&&(T.value.addEventListener("focus",GB),T.value.addEventListener("focusout",Yt));_.zs(function(){var lH;W==null||(lH=W.value)==null||lH.removeEventListener("focus",GB);var RF;W==null||(RF=W.value)==null||RF.removeEventListener("focusout",Yt);var jf;T==null||(jf=T.value)==null||jf.removeEventListener("focus",GB);var f1;T==null||(f1=T.value)==null||f1.removeEventListener("focusout",Yt)})});
var A=_.Z9(function(){if(W&&W.value){var GB=Number(Hpx(W.value));XGf(GB);d(GB);W.value.style.setProperty("--gradient-percent",GB+"%");Z(GB)}return!1}),J=_.Z9(function(){W&&W.value&&(N(W.value,l()),v(!l()));
return!1}),C={},X={},L1={},Fw={};
return _.g("desktop-shorts-volume-controls",{"on:pointerleave":_.Z9(function(){G(!1)}),
"on:pointerenter":_.Z9(function(){G(!0)}),
class:_.qg("ytdDesktopShortsVolumeControlsHost",(C.ytdDesktopShortsVolumeControlsHostVertical=E,C.ytdDesktopShortsVolumeControlsHostModern=_.c("web_shorts_modern_controls"),C.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.c("web_shorts_modern_controls")&&M()},C)),
el:L},_.g(_.F,{cond:function(){return!E()},
then:function(){var GB={};return _.g("div",{class:_.qg("ytdDesktopShortsVolumeControlsBackgroundScrim",(GB.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=M,GB.ytdDesktopShortsVolumeControlsBackgroundScrimModern=_.c("web_shorts_modern_controls"),GB))})}}),_.g("div",{class:_.qg((X.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=E,X))},_.g("button",{"aria-label":V,
title:V,el:T,"on:click":J,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},D?_.g(_.ji,{data:D,alt:V,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.g("div",{class:_.qg("ytdDesktopShortsVolumeControlsSliderContainer",(L1.ytdDesktopShortsVolumeControlsSliderContainerExpanded=M,L1.ytdDesktopShortsVolumeControlsSliderContainerVertical=E,L1.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=E,L1.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return M()&&
E()},L1))},_.g("input",{"aria-label":_.iB("VOLUME"),
title:_.iB("VOLUME"),el:W,"on:input":A,type:"range",class:_.qg("ytdDesktopShortsVolumeControlsNativeSlider",(Fw.ytdDesktopShortsVolumeControlsNativeSliderModern=_.c("web_shorts_modern_controls"),Fw)),id:"volume-input",role:"slider","aria-valuenow":U,"aria-valuetext":h,"aria-valuemin":0,"aria-valuemax":100})))},"Tg");_.eGq=_.p(function(L){var Z=L.data;var N=L.extractOverlay;L={};return _.g("player-disclosure-view-model",{class:_.qg("ytwPlayerDisclosureViewModelHost",(L.ytwPlayerDisclosureViewModelExtractOverlay=function(){return N==null?void 0:N()},L))},_.g(_.bM,{command:function(){return Z().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.g(_.F,{cond:function(){return Z().iconName},
then:function(S){return _.g(_.T0,{icon:S})}}),_.g("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return Z().text}),_.g(_.F,{cond:function(){return Z().showEndChevron},
then:function(){return _.g(_.T0,{icon:"CHEVRON_RIGHT"})}})))},"Ug");var Ik5=_.p(function(L){var Z=L.data;var N=L.overlayDensity;L={};return _.g("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.g(_.bj,{data:function(){return Z().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(S){var u=S.data;
return _.g(_.CS,{data:function(){return(N==null?void 0:N())===1?Object.assign({},u(),{avatar:{avatarViewModel:Object.assign({},_.n(u().avatar,_.nl),{avatarImageSize:"AVATAR_SIZE_M"})}}):u()}})}}),_.g(_.bj,{data:function(){return Z().avatarStackViewModel}},{avatarStackViewModel:function(S){return _.g(_.ri,{data:S.data})}}),_.g(_.qv,{className:_.qg("ytReelChannelBarViewModelChannelName",(L.ytReelChannelBarViewModelChannelNameLarge=function(){return(N==null?void 0:N())===1},L)),
text:function(){return Z().channelName},
linkInheritColor:!0,userInput:!0}),_.g("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.g(_.bj,{data:function(){return Z().subscribeButtonViewModel}},{subscribeButtonViewModel:function(S){var u=S.data;
return _.g(_.Jl,{data:function(){return(N==null?void 0:N())===1?Object.assign({},u(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},u().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):u()},
isOverlay:!1})},
buttonViewModel:_.$X})),_.g("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.g(_.bj,{data:function(){var S,u;return(u=_.n((S=Z())==null?void 0:S.sponsorButtonViewModel,Q3N))==null?void 0:u.sponsorButton}},{buttonViewModel:function(S){return _.g(_.$X,{data:S.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Vg");var dOs=_.p(function(L){var Z=function(){var u;return((u=L.overlayDensity)==null?void 0:u.call(L))===1},N=function(){return Z()?22:16},S={};
return _.g("yt-reel-multi-format-link-view-model",{class:_.qg("ytReelMultiFormatLinkViewModelHost",(S.ytReelMultiFormatLinkViewModelHostTall=!0,S.ytReelMultiFormatLinkViewModelHostLarge=function(){return Z()},S))},_.g(_.bM,{ariaLabel:function(){return L.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return L.data().command}},_.g("h3",{class:function(){return Z()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.g(_.F,{cond:function(){return L.data().icon},
then:function(u){return _.g(_.ji,{data:u,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:N})}}),_.g(_.qv,{text:function(){return L.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Wg");
dOs.idomCompat=!0;var aky=_.p(function(L){var Z=L.data;var N=L.overlayDensity;var S=L.extractOverlay;var u=_.t2("yt-shorts-suggested-action-view-model");L=_.O(_.nh(!1,void 0,"S60Hzc"));var T=L.next().value,W=L.next().value;L=_.O(_.nh(!1,void 0,"O76chf"));var V=L.next().value,M=L.next().value,G=function(){return Z().isMultiLineSa},D=_.OS(oIH,function(){var C,X;
return(X=(C=Z().toggleableContent)==null?void 0:C.entityKey)!=null?X:""}),l=function(){var C,X,L1;
return(L1=Z().toggleableContent)!=null&&L1.entityKey?(X=(C=D())==null?void 0:C.value)!=null?X:!1:!1},v=function(){var C,X,L1,Fw,GB,Yt,lH,RF,jf,f1,n0;
return Z().toggleableContent?l()?(C=Z().toggleableContent)==null?void 0:C.toggledData:(X=Z().toggleableContent)==null?void 0:X.untoggledData:{primaryText:(RF=(L1=Z().defaultContent)==null?void 0:L1.primaryText)!=null?RF:Z().text,secondaryText:(Fw=Z().defaultContent)==null?void 0:Fw.secondaryText,onTapCommand:(jf=(GB=Z().defaultContent)==null?void 0:GB.onTapCommand)!=null?jf:Z().onTapCommand,icon:(f1=(Yt=Z().defaultContent)==null?void 0:Yt.icon)!=null?f1:Z().icon,image:(n0=(lH=Z().defaultContent)==
null?void 0:lH.image)!=null?n0:Z().image}},R=function(){return G()?Z().trailingTapTarget:void 0},K=function(C,X){return function(){return T()?X:C}},U=function(){return{leadingSection:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(N==null?void 0:N())===1?K("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):K("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:K("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
L={};L=_.qg((L.ytShortsSuggestedActionViewModelStaticHost=function(){return!G()},L.ytShortsSuggestedActionViewModelDynamicHost=G,L.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return G()&&V()},L.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return G()&&!V()},L.ytShortsSuggestedActionViewModelExtractOverlay=function(){return S==null?void 0:S()},L));
_.m0(function(){if(G()){var C=0,X;if((X=Z().animationParams)==null?0:X.shouldExpand){var L1,Fw;C=((Fw=(L1=Z().animationParams)==null?void 0:L1.expansionDelaySecs)!=null?Fw:0)*1E3}var GB,Yt=((GB=Z().animationParams)==null?0:GB.shouldExpand)?setTimeout(function(){W(!0)},C):void 0,lH,RF;
C=((lH=Z().animationParams)==null?0:lH.visibilityDelaySecs)?((RF=Z().animationParams)==null?NaN:RF.visibilityDelaySecs)*1E3:0;var jf=setTimeout(function(){M(!0)},C);
_.zs(function(){Yt&&clearTimeout(Yt);clearTimeout(jf)})}});
var d=function(C){_.w$(C,Object.assign({},{form:{element:u.value}}))},h=_.Z9(function(){var C,X=(C=v())==null?void 0:C.onTapCommand;
X&&d(X)}),E=_.Z9(function(){var C,X;
if(C=(X=R())==null?void 0:X.onTapCommand)return d(C),!1}),A=_.u4({"vertical-align":"bottom",
"border-radius":function(){var C;return G()?((C=Z().defaultContent)==null?0:C.isCircleImage)?"50%":"4px":"0px"},
width:function(){var C,X,L1;return G()&&((C=Z().defaultContent)==null?0:C.imageSize)?((L1=(X=Z().defaultContent)==null?void 0:X.imageSize)!=null?L1:24)+"px":null},
height:function(){var C,X,L1;return G()&&((C=Z().defaultContent)==null?0:C.imageSize)?((L1=(X=Z().defaultContent)==null?void 0:X.imageSize)!=null?L1:24)+"px":null}}),J={};
return _.g("yt-shorts-suggested-action-view-model",{class:L,el:u},_.g("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.g("button",{class:_.qg(function(){return G()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var C;
return(C=Z().useFullRoundedBorder)!=null&&C?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!R()&&G()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":G()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var C;
return(C=Z().disableFixedHeight)!=null&&C?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(J.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(N==null?void 0:N())===1},J.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return S==null?void 0:S()},J)),
"on:click":h},_.g(_.MN,{model:{color:4}}),_.g("div",{class:_.qg(function(){return G()?U().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.g(_.F,{cond:function(){var C;
return(C=v())==null?void 0:C.image},
then:function(C){return _.g(_.ji,{data:C,alt:"",className:function(){return G()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:A})}}),_.g(_.F,{cond:function(){var C,X;
return(C=v())==null?void 0:(X=C.icon)==null?void 0:X.iconType},
then:function(C){return _.g(_.T0,{icon:C,active:l,className:function(){return G()?T()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.g("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.g(_.F,{cond:function(){var C;
return(C=v())==null?void 0:C.primaryText},
then:function(C){var X={};return _.g("div",{class:_.qg("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(X.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(N==null?void 0:N())===1},X))},_.g(_.qv,{text:C}))}}),_.g(_.F,{cond:function(){var C;
return(C=v())==null?void 0:C.secondaryText},
then:function(C){return _.g("div",{class:function(){return U().secondaryText()}},_.g(_.qv,{text:C}))}}))),_.g(_.F,{cond:R,
then:function(C){return _.g("div",{class:_.qg(function(){return U().trailingSection()},function(){var X,L1;
return(S==null?void 0:S())&&((L1=(X=U()).trailingSectionExtractOverlay)==null?void 0:L1.call(X))||""}),
"aria-label":function(){var X;return(X=C().a11yLabel)!=null?X:""},
"on:click":E,role:"button",tabindex:0},_.g(_.MN,{model:{color:4}}),_.g(_.T0,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Xg");var hGv=_.p(function(L){var Z=L.data;var N=L.overlayDensity;var S=_.t2("yt-shorts-video-title-view-model");L=_.Z9(function(W){if(_.vT(_.lj(W),S.value,["A".toString()]))return!1;(W=Z().truncatedTextOnTapCommand)&&_.w$(W);return!1});
var u={},T={};return _.g("yt-shorts-video-title-view-model",{el:S,class:_.qg("ytShortsVideoTitleViewModelHost",(u.ytShortsVideoTitleViewModelHostClickable=function(){return!!Z().truncatedTextOnTapCommand},u)),
"on:click":L},_.g("h2",{class:_.qg("ytShortsVideoTitleViewModelShortsVideoTitle",(T.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(N==null?void 0:N())===1},T))},_.g(_.qv,{text:function(){return Z().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(N==null?void 0:N())===1}})))},"Yg");_.sZq=_.p(function(L){var Z=L.data;var N=L.overlayDensity;var S=L.extractOverlay;var u=function(){return(N==null?void 0:N())===1};
return _.g("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.g(_.bj,{data:function(){return Z().metadataItems}},{badgeViewModel:function(T){T=T.data;
return _.g("div",{class:_.qg(function(){return u()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.g(_.Fo,{data:T}))},
playerDisclosureViewModel:function(T){T=T.data;return _.g("div",{class:_.qg(function(){return u()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.g(_.eGq,{data:T,
extractOverlay:S}))},
shortsSuggestedActionViewModel:function(T){T=T.data;return _.g("div",{class:_.qg(function(){return u()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.g(aky,{data:T,
overlayDensity:N,extractOverlay:S}))},
reelChannelBarViewModel:function(T){T=T.data;var W={};return _.g("div",{class:_.qg("ytReelMetapanelViewModelMetapanelItem",(W.ytReelMetapanelViewModelExpansive=function(){return u()},W))},_.g(Ik5,{data:T,
overlayDensity:N}))},
reelMultiFormatLinkViewModel:function(T){T=T.data;var W={};return _.g("div",{class:_.qg("ytReelMetapanelViewModelMetapanelItem",(W.ytReelMetapanelViewModelExpansive=function(){return u()},W))},_.g(dOs,{data:T,
overlayDensity:N}))},
shortsVideoTitleViewModel:function(T){T=T.data;var W={};return _.g("div",{class:_.qg("ytReelMetapanelViewModelMetapanelItem",(W.ytReelMetapanelViewModelExpansive=function(){return u()},W))},_.g(hGv,{data:T,
overlayDensity:N}))},
reelSoundMetadataViewModel:function(T){T=T.data;var W={};return _.g("div",{class:_.qg("ytReelMetapanelViewModelMetapanelItem",(W.ytReelMetapanelViewModelExpansive=function(){return u()},W))},_.g(_.sYY,{data:T,
overlayDensity:N}))},
toggleButtonViewModel:function(T){T=T.data;var W={};return _.g("div",{class:_.qg("ytReelMetapanelViewModelMetapanelItem",(W.ytReelMetapanelViewModelExpansive=function(){return u()},W))},_.g(_.sj,{data:T}))}}))},"Zg");var jZs=_.p(function(L){var Z=_.Ek(L,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),N=Z.size,S=Z.onTap,u=Z.disabled,T=Z.tooltipText;return _.g("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.g(_.Ff,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:N(),disabled:u(),tooltipText:T(),onTap:S}},
iconName:L.iconType}))},"$g"),Ejw=_.p(function(L){function Z(D){D.stopPropagation();
D.code==="ArrowUp"?(D.preventDefault(),qPL(V.value)):D.code==="ArrowDown"?(D.preventDefault(),LTB(V.value)):D.code==="KeyM"?Bu_():(D.code==="KeyK"||D.code==="Space")&&xn_(M())}
var N=_.Ek(L,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});L=N.previousButtonDisabled;var S=N.nextButtonDisabled,u=N.data,T=N.playabilityStatus,W=N.previewThumbnail,V=_.t2("ytd-shorts-miniplayer-overlay"),M=_.VB(_.huG),G;_.zp(function(){(G=_.Jj(V.value))&&G.addEventListener("keydown",Z)});
_.zs(function(){var D;(D=G)==null||D.removeEventListener("keydown",Z)});
N=function(){var D,l,v;return(D=u())==null?void 0:(l=D.reelPlayerOverlayRenderer)==null?void 0:(v=l.likeButton)==null?void 0:v.likeButtonRenderer};
return _.g("ytd-shorts-miniplayer-overlay",{el:V,class:"ytdShortsMiniplayerOverlayHost"},_.g("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.u4({"background-image":function(){var D=W();return D?'url("'+_.QV(D.thumbnails)+'")':""}})}),_.g("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.g("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.g(jZs,{iconType:function(){var D=M();
return D===2||D===-1||D===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){xn_(M())},
tooltipText:function(){var D=M();return D===1||D===3?_.iB("PLAYER_LABEL_PAUSE"):_.iB("PLAYER_LABEL_PLAY")}}),_.g(_.Y65,{orientation:"horizontal_right"})),_.g("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.g(jZs,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:L,onTap:function(){qPL(V.value)},
tooltipText:_.iB("PREVIOUS_VIDEO_LABEL")}),_.g(jZs,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:S,onTap:function(){LTB(V.value)},
tooltipText:_.iB("NEXT_VIDEO_LABEL")}),_.c("web_shorts_pip_like_button")?_.g("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.g(Vnc,{buttonTooltipPosition:"left",data:N,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.g("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.g(_.F,{cond:function(){var D,l;return _.n((D=u())==null?void 0:(l=D.reelPlayerOverlayRenderer)==null?void 0:l.metapanel,
mN5)},
then:function(D){return _.g("div",{class:_.qg("ytdShortsMiniplayerOverlayInteractive")},_.g(_.sZq,{data:D}))}})),_.g("div",{class:_.qg("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var D;return!((D=u())==null||!D.adsOverlay)||T()&&!sIA(T())}},_.g("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.g(_.UO0,null)))),_.g(_.F,{cond:function(){var D=u(),l,v;
D=_.n(D==null?void 0:(l=D.adsOverlay)==null?void 0:(v=l.fulfillmentContent)==null?void 0:v.fulfilledLayout,wcO);return _.n(D==null?void 0:D.renderingContent,aQM)},
then:function(D){return _.g("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.g(Jil,{data:D}))}}))},"bh");var ZaP=_.p(function(){var L=_.O(_.nh(new _.wF(NaN,NaN),void 0,"hq9Bjf")),Z=L.next().value,N=L.next().value;L=_.O(_.nh(!1,void 0,"Mu3aZc"));var S=L.next().value,u=L.next().value,T=_.O(_.nh(!1,void 0,"LGtoFb"));L=T.next().value;var W=T.next().value,V=_.GR().resolve(_.yk).miniplayerPropSignalMap[0],M=V.data,G=V.shortsData,D=V.nextButtonDisabled,l=V.shortsPreviewThumbnail,v=V.previousButtonDisabled,R=V.externalPlaylistData;T=V.toastData;var K=V.playabilityStatus,U=V.isDisabled,d=V.playerVe,h=V.closeVe;
V=_.VB(_.rm);_.TD("yt-pip-window-resized",function(C){N(C)});
_.TD("yt-activate-pip-miniplayer",function(){return _.b(function(C){W(!0);_.w7(C)})});
var E=function(){var C;return!((C=R())==null||!C.contents)&&S()},A=function(){var C=Z(),X=!!M(),L1=E();
C=C.clone();X&&(C.height-=76);L1&&(C.height-=285);return C},J=function(){u(!S())};
_.ph(function(){var C=d(),X=_.RH(11),L1=_.oH(11);X&&L1&&C&&(_.ez(X,L1,C),L1=h())&&(_.Iq(X,C,[L1]),_.aq(X,[L1]))},"fHkmfb");
return _.g("ytd-pip-container",{class:"ytdPipContainerHost"},_.g(_.F,{cond:L,then:function(){return _.g(_.CQQ,{isDisabled:U,playabilityStatus:K,size:A})}}),_.g(_.F,{cond:M,
then:function(){return _.g(_.muQ,{data:M,expanded:S,onExpandClick:J,playlistData:R})}}),_.g(_.F,{cond:E,
then:function(){return _.g("div",{class:"ytdPipContainerPlaylistPanel"},_.g(_.OGq,{data:R,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.g(_.F,{cond:V,
then:function(){return _.g(Ejw,{data:G,nextButtonDisabled:D,previousButtonDisabled:v,playabilityStatus:K,previewThumbnail:l})}}),_.g("div",{class:"ytdPipContainerToast"},_.g(_.r3w,{toastData:T})))},"dh");var g_=function(L,Z){var N=this;this.pipController=L;this.JSC$18963_clientRoot=Z;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=GGH();this.watchPipEnabled=_.c("web_watch_pip");this.shortsPipEnabled=_.c("web_shorts_pip");this.JSC$18963_watchWhileEnabled=_.c("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;_.hK(_.Pv(),Yjs,function(S){N.isSingleOptionSurveyActive=S});
this.JSC$18963_onPlayerPlayVideo=this.JSC$18963_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);_.ie(_.SS.getInstance(),this.miniplayerServiceActionMap,this.JSC$18963_clientRoot);L.pictureInPictureSupported()&&_.mS("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},MvM,Aa5,Cpv,HQv,Bo8,yH5;
g_.prototype.handleMediaSessionPipActivation=function(){var L=this,Z;return _.b(function(N){_.dM().mediaSessionPipActivation=!0;Z=_.GR().resolve(_.mR);return Z.isOnWatch()&&L.watchPipEnabled?(_.dM().watchPipActivation=!0,_.PpP(L,Z.data),N.jumpTo(0)):Z.isOnShorts()&&L.shortsPipEnabled?(_.dM().shortsPipActivation=!0,_.pxc(L),N.jumpTo(0)):L.isMiniplayerActive()&&L.watchPipEnabled&&!L.watchWhileMode?N.yield(zGw(L),0):N.jumpTo(0)})};
var zGw=function(L){var Z,N,S,u;return _.b(function(T){if(T.nextAddress==1)return Z=!L.miniplayerToPipMode,N=L.playerElement,S=L.miniplayerData,u=L.watchResponse,T.yield(L.deactivate(),2);if(T.nextAddress!=3)return Z?(_.dM().mediaSessionPipActivation=!0,_.dM().watchPipActivation=!0):_.dM().miniplayerButtonActivation=!0,T.yield(L.activate(N,S,u),3);L.miniplayerToPipMode=Z;_.w7(T)})};
g_.prototype.onDownloadedVideoDeleted=function(L){var Z,N=_.n((Z=this.miniplayerData)==null?void 0:Z.watchEndpoint,_.so),S,u;N&&((S=this.watchResponse)==null?void 0:(u=S.playerResponse)==null?void 0:u.offlineState)!==void 0&&(Z=N.videoId)&&L&&Z===L&&this.close()};
g_.prototype.onShowMiniplayerCommand=function(L){var Z=this,N,S,u,T,W,V,M,G,D,l,v;return _.b(function(R){switch(R.nextAddress){case 1:return N=_.n(L,UUV),u=(S=N)==null?void 0:S.miniplayerCommand,T=_.n(u,_.so),u&&T&&!Z.active?R.yield(_.mi.getInstance(),2):R.return();case 2:return W=R.yieldResult,R.yield((V=W)==null?void 0:V.get("yt-miniplayer-shown-video-id"),3);case 3:M=R.yieldResult;G=T.videoId;if(!G||M===G)return R.return();D=_.GR().resolve(_.mR);if(D.isOnWatch())return _.Q7(Error("Sj")),R.return();
l={channelItem:{externalId:btoa(G)}};Z.readyToResumeVe=_.Ll(121253,void 0,void 0,l);_.dM().showMiniplayerCommandActivation=!0;return R.yield(_.wHO(Z,u,!0),4);case 4:return Z.active&&(_.GC(Z,{readyToResumeVe:Z.readyToResumeVe,isReadyToResume:!0}),Z.isReadyToResume=!0),R.yield((v=W)==null?void 0:v.set("yt-miniplayer-shown-video-id",T.videoId),5);case 5:Z.readyToResumeVe=void 0,_.w7(R)}})};
g_.prototype.init=function(L){this.miniplayerEl?_.Q7(new _.sr("MiniplayerService already initialized.")):this.miniplayerEl=L};
g_.prototype.isInitialized=function(){var L=!!this.miniplayerEl;L||_.Q7(new _.sr("MiniplayerService used before initialized."));return L};
_.PpP=function(L,Z){if(L.isInitialized()){var N=_.cV(Z.response,!1,Z.playerResponse),S=_.GR().resolve(_.mR).getPlayerFromWatch();_.dM().currentEndpoint=N.watchEndpoint||null;L.activate(S,N,Z)}};
_.pxc=function(L){if(L.isInitialized()){var Z=_.GR().resolve(_.mR).getPlayerFromShorts();L.activate(Z)}};
MvM=function(L,Z){var N;(N=!L.isInitialized())||(N=_.GR().resolve(_.mR).isOnWatch()&&L.watchPipMode,N=!(L.isMiniplayerActive()&&(_.dM().userActivation||_.dM().lockupActivation||N)));if(N)return!1;mO8(L,Z)?_.Vl(L):yH5(L,Z);return L.watchPipMode?!_.GR().resolve(_.mR).isOnWatch():!0};
g_.prototype.isMiniplayerActive=function(){return this.active};
var mO8=function(L,Z){var N;Z=(N=_.n(Z,_.so))==null?void 0:N.videoId;var S,u;L=(u=_.n((S=L.miniplayerData)==null?void 0:S.watchEndpoint,_.so))==null?void 0:u.videoId;return Z!=null&&Z===L};
g_.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.QT(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.XJ(this.miniplayerEl,"yt-navigate-home-action"))};
_.wHO=function(L,Z,N,S){N=N===void 0?!1:N;var u,T,W;return _.b(function(V){switch(V.nextAddress){case 1:if(L.active){V.jumpTo(2);break}u=_.GR().resolve(_.mR);if(W=(T=L.playerElement)!=null?T:u.getPlayerFromWatch()){V.jumpTo(3);break}return V.yield(_.GR().resolve(_.HQ),4);case 4:W=u.getPlayerFromWatch();case 3:if(!W){_.Q7(Error("Uj"));V.jumpTo(2);break}return V.yield(L.activate(W,S),2);case 2:return L.active?V.yield(yH5(L,Z,N),0):V.return()}})};
g_.prototype.activate=function(L,Z,N){var S=this,u,T,W,V,M,G,D,l,v;return _.b(function(R){switch(R.nextAddress){case 1:if(!S.isInitialized())return R.return();if(!L)return _.Q7(Error("Uj")),R.return();if(_.BCN()||S.isMiniplayerActive())var K=!0;else K=_.dM().watchPipActivation||_.dM().watchWhileActivation,_.GR().resolve(_.mR).isOnWatch()&&!K?(_.Q7(new _.sr("miniplayer activated on watch page")),K=!0):K=_.dM().watchWhileActivation?S.userDeactivatedWatchWhile||!!document.pictureInPictureElement||DEH():
!1;if(K)return HPV(),R.return();u=_.dM().mediaSessionPipActivation;T=_.dM().shortsPipActivation;W=_.dM().watchPipActivation;M=(V=_.dM().watchWhileActivation)||W;G=W||T;if(!S.pictureInPictureEnabled()||!G){R.jumpTo(2);break}return R.yield(Ja0(S,u),3);case 3:if(!R.yieldResult)return _.Q7(Error("Tj")),HPV(),R.return();case 2:return S.setActive(!0),S.watchResponse=N,S.playerElement=L,S.updateMiniplayerData(Z),R.yield(Cpv(S,L),4);case 4:if(!S.active)return _.Q7(new _.sr("miniplayer deactivated during activation")),
S.removePlayerListeners(),R.return();K=_.GR().resolve(_.Nv);K.addEventListener("yt-navigate",_.Nd(S,S.onPlaylistNavigate));K.addEventListener("yt-playlist-data-updated",_.Nd(S,S.JSC$18963_onPlaylistDataUpdated));S.JSC$18963_onPlaylistDataUpdated();HPV();S.JSC$18963_watchWhileEnabled&&_.raY(S,V);S.pictureInPictureEnabled()&&S.shortsPipEnabled&&(S.shortsPipMode=T,_.Pv().dispatch(sas(S.shortsPipMode)));S.pictureInPictureEnabled()&&S.watchPipEnabled&&(S.watchPipMode=W,_.vKB(S.handleMediaSessionPipActivation));
S.player&&(D=S.player.getPlayerState(),l=D===1,_.Pv().dispatch(rPh(D)),_.Ad(S.miniplayerEl,"yt-miniplayer-play-state-changed",[l]),_.dM().isVideoPlaying=l);_.Ad(S.miniplayerEl,"yt-miniplayer-endpoint-changed");QZm(S);_.Xx8(S);if(S.shortsPipMode||S.watchPipMode)R=R.yield(_.XJ(S.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{K=R.yield;var U=_.XJ(S.miniplayerEl,"yt-activate-miniplayer",[M])[0];R=K.call(R,U,6)}return R;case 6:if(S.watchResponse){K=S.getScreenLayer();U=_.RH(0);var d=MQG(0);U&&d&&
(_.Kv(U,d,K),K===0&&VQs(void 0,0))}Aa5(S);HQv(S,!0);(v=S.getPlayerElement())==null||v.focusOnPlayer();_.w7(R)}})};
g_.prototype.updateMiniplayerData=function(L){this.miniplayerData=L;_.GC(this,{data:L})};
_.Xx8=function(L){var Z,N,S=((Z=L.miniplayerData)==null?void 0:(N=Z.miniplayerRenderer)==null?void 0:N.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";Z=L.watchWhileMode||L.watchPipMode?S&&!_.GR().resolve(_.mR).isOnWatch():S;_.GC(L,{isDisabled:Z});var u,T;N=_.n((u=L.miniplayerData)==null?void 0:(T=u.miniplayerRenderer)==null?void 0:T.minimizedEndpoint,_.aw);Z&&N&&_.GR().resolve(_.Po).openSheet({openPopupActionCommand:{openPopupAction:N}},L.miniplayerEl)};
Aa5=function(L){if(L.watchResponse&&!Bo8(L)){var Z,N=(Z=L.watchResponse.playerResponse)==null?void 0:Z.trackingParams;N&&(_.GC(L,{expandVe:_.Ll(35989),closeVe:_.Ll(34699),readyToResumeCloseVe:_.Ll(131070),repositionVe:_.Ll(226204),resizeVe:_.Ll(226205)}),_.GC(L,{playerVe:_.Mg(N)}))}};
Cpv=function(L,Z){return _.b(function(N){if(N.nextAddress==1)return Z.preparePlayer(),N.yield(Z.getPlayerPromise(),2);L.player=N.yieldResult;L.player&&(L.player.addEventListener("onPlayVideo",L.JSC$18963_onPlayerPlayVideo),L.player.addEventListener("onCloseMiniplayer",L.onPlayerCloseMiniplayer),L.player.addEventListener("onExpandMiniplayer",L.onPlayerExpandMiniplayer),L.player.addEventListener("onStateChange",L.onPlayerStateChange));_.w7(N)})};
_.t=g_.prototype;_.t.JSC$18963_onPlayerPlayVideo=function(L){var Z=L.sessionData&&"autonav"in L.sessionData,N;L.sessionData&&L.sessionData.itct&&(N=L.sessionData.itct);var S=L.watchEndpoint;Z=S&&Z?_.pJB(S,N):_.Jq(L.videoId,L.listId||void 0,N);L.sessionData&&_.pv(_.n(Z.commandMetadata,_.Nj).url,L.sessionData);yH5(this,Z)};
_.t.onPlayerExpandMiniplayer=function(){_.Vl(this)};
_.t.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.t.onPlayerStateChange=function(){if(this.player){var L=this.player.getPlayerState(),Z=L===1;_.Pv().dispatch(rPh(L));_.Pv().dispatch(_.APL(L));_.Ad(this.miniplayerEl,"yt-miniplayer-play-state-changed",[Z]);_.dM().isVideoPlaying=Z;if(L===0){Z=!_.Fx.getInstance().isAutoplaySetExplicitly();var N,S,u,T,W,V,M=(N=this.watchResponse.response)==null?void 0:(S=N.contents)==null?void 0:(u=S.twoColumnWatchNextResults)==null?void 0:(T=u.autoplay)==null?void 0:(W=T.autoplay)==null?void 0:(V=W.autoplayExplicitChoiceDialogRenderer)==
null?void 0:V.confirmDialogRenderer;Z&&M&&this.player.setAutonavState(1)}L===0&&this.watchWhileMode&&this.deactivate()}};
_.t.onPlaylistNavigate=function(L,Z){var N=this,S,u,T,W,V,M,G;return _.b(function(D){if(D.nextAddress==1){if(!_.n(Z.endpoint,_.so))return D.return();_.dM().currentEndpoint=Z.endpoint;_.Ad(N.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.GR().resolve(_.mR).isOnWatch()&&(N.watchWhileMode||N.watchPipMode))return D.return();L.stopPropagation();(T=(u=_.n((S=Z.endpoint)==null?void 0:S.commandMetadata,_.Nj))==null?void 0:u.url)&&Z.tempData&&!_.Py.isEmpty(Z.tempData)&&_.pv(T,Z.tempData);W={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};V=new A8t(function(){return N.getPlayerElement()},W,{layer:N.getScreenLayer()});
M=function(l){V.processChunk({endpoint:Z.endpoint,data:l})};
xO0(N);N.miniplayerFetchRequest=q6q(N,Z.endpoint,M);_.RS(D,2);return D.yield(N.miniplayerFetchRequest,4)}if(D.nextAddress!=2)return G=D.yieldResult,LSP(N,G),_.SX(D,0);_.yd(D);_.w7(D)})};
_.t.JSC$18963_onPlaylistDataUpdated=function(){var L=_.GR().resolve(_.Nv).getPlaylistData();this.hasPlaylistData=!!L;_.GC(this,{externalPlaylistData:L||{}})};
_.t.close=function(L){if(this.isInitialized())if(L){if(!((this.watchWhileMode||this.watchPipMode)&&_.GR().resolve(_.mR).isOnWatch()||this.shortsPipMode)){var Z;(Z=this.getPlayerElement())==null||Z.stop()}this.deactivate()}else _.te().closeMiniplayer(this.miniplayerEl)};
_.t.deactivate=function(L){var Z=this,N,S,u,T;return _.b(function(W){if(W.nextAddress==1){if(!Z.isInitialized()||!Z.active)return W.return();Z.setActive(!1);xO0(Z);(N=!!L&&mO8(Z,L))&&Z.isSingleOptionSurveyActive&&_.XJ(Z.miniplayerEl,"yt-show-watch-page-survey",[Z.isSingleOptionSurveyActive]);return W.yield(ZAm(Z),2)}if(W.nextAddress!=3){HQv(Z,!1);Z.isReadyToResume=!1;Z.watchResponse=void 0;Z.updateMiniplayerData(void 0);Z.shortsPipMode&&(Z.shortsPipMode=!1,_.Pv().dispatch(sas(Z.shortsPipMode)),GsY(Z.pipController),
(S=Z.player)==null||S.setInternalSize(NaN,NaN));Z.watchPipMode&&(Z.watchPipMode=!1,GsY(Z.pipController));(u=Z.watchWhileMode)&&_.raY(Z,!1);Z.removePlayerListeners();var V=_.GR().resolve(_.Nv);V.removeEventListener("yt-navigate",_.Nd(Z,Z.onPlaylistNavigate));V.removeEventListener("yt-playlist-data-updated",_.Nd(Z,Z.JSC$18963_onPlaylistDataUpdated));_.dM().currentEndpoint=null;_.Ad(Z.miniplayerEl,"yt-miniplayer-endpoint-changed");Z.playerElement=null;HPV();if(Z.shortsPipMode||Z.watchPipMode)W=W.jumpTo(3);
else{V=W.yield;var M=_.XJ(Z.miniplayerEl,"yt-deactivate-miniplayer",[N,u])[0];W=V.call(W,M,3)}return W}(T=Z.player)==null||T.setInternalSize(NaN,NaN);Z.player=null;_.w7(W)})};
var ZAm=function(L){var Z;return _.b(function(N){Z=_.GR().resolve(_.mR);return L.shortsPipMode?N.yield(Z.movePlayerToShorts(L.playerElement),0):N.yield(Z.movePlayerToWatch(L.playerElement),0)})};
g_.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18963_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
g_.prototype.setActive=function(L){this.active=L;this.isSingleOptionSurveyActive?_.XJ(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.XJ(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Pv().dispatch(_.XK({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.raY=function(L,Z){L.watchWhileMode=Z;_.GC(L,{watchWhile:Z})};
HQv=function(L,Z){if(!Bo8(L))if(L.shortsPipMode||L.watchPipMode){var N;(N=L.player)==null||N.setDocumentPictureInPicture(Z)}else{var S;(S=L.player)==null||S.setMinimized(Z)}};
Bo8=function(L){return L.watchWhileMode&&_.c("kevlar_watch_while_counterfactual")};
_.Vl=function(L){var Z;return _.b(function(N){switch(N.nextAddress){case 1:if(!L.isInitialized())return N.return();_.RS(N,2);return N.yield(L.miniplayerFetchRequest,4);case 4:_.SX(N,3);break;case 2:_.yd(N);case 3:L.watchResponse&&L.miniplayerData&&L.miniplayerData.watchEndpoint?(Z={url:L.watchResponse.url,endpoint:L.miniplayerData.watchEndpoint,data:L.watchResponse,miniplayer:!0},_.QT(L.miniplayerEl,"yt-navigate-cache",Z)):L.miniplayerData&&L.miniplayerData.watchEndpoint&&_.QT(L.miniplayerEl,"yt-navigate",
{endpoint:L.miniplayerData.watchEndpoint}),_.w7(N)}})};
yH5=function(L,Z,N){var S,u,T,W;return _.b(function(V){if(V.nextAddress==1){if(mO8(L,Z))return V.return();_.dM().currentEndpoint=Z;_.Ad(L.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Ad(L.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.dM().isVideoPlaying=!1;S={clientParams:{miniplayer:!0,autoSaveToQueue:!N}};u=new A8t(function(){return L.getPlayerElement()},S,{layer:L.getScreenLayer(),
parentLayer:0},void 0,L.readyToResumeVe);T=function(M){var G,D,l=Object.assign({},(G=M.playerResponse)==null?void 0:(D=G.playerConfig)==null?void 0:D.playbackStartConfig,{startPaused:!0}),v;N&&((v=M.playerResponse)==null?0:v.playerConfig)&&(M.playerResponse.playerConfig.playbackStartConfig=l);u.processChunk({endpoint:Z,data:M})};
xO0(L);L.miniplayerFetchRequest=q6q(L,Z,T);_.RS(V,2);return V.yield(L.miniplayerFetchRequest,4)}if(V.nextAddress!=2)return W=V.yieldResult,LSP(L,W),_.SX(V,0);_.yd(V);_.w7(V)})};
g_.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var xO0=function(L){L.miniplayerFetchRequest&&(L.miniplayerFetchRequest.cancel&&L.miniplayerFetchRequest.cancel("Active request obsolete"),L.miniplayerFetchRequest=null)},q6q=function(L,Z,N){var S=smq.instance,u,T=(u=_.n(Z.commandMetadata,_.Nj))==null?void 0:u.url,W;
u=!T||_.c("disable_miniplayer_tempdata")?{}:(W=xRh(T))!=null?W:{};return YM(S,Z,u,window.location.href,"watch",function(V,M){N(M)},function(V){return V!==L.miniplayerFetchRequest})},LSP=function(L,Z){var N;
_.b(function(S){if(!Z)return S.return();L.watchResponse=Z;Aa5(L);QZm(L);N=_.cV(Z.response,!1,Z.playerResponse);if(L.isMiniplayerActive()){Z.response&&(L.playerElement.watchNextData=Z.response);var u=_.Py.getValueByKeys.apply(_.Py,[Z].concat(_.Pd(usM)));_.Py.getValueByKeys.apply(_.Py,[Z].concat(_.Pd(V4I)))&&u&&_.GR().resolve(_.Nv).setAutoplayRenderer(u);if(u)if(_.c("kevlar_is_pupi_enabled")){var T,W,V,M,G,D=((T=Z.response)==null?0:(W=T.playerOverlays)==null?0:(V=W.playerOverlayRenderer)==null?0:(M=
V.autonavToggle)==null?0:(G=M.autoplaySwitchButtonRenderer)==null?0:G.enabled)?2:1;_.Fx.getInstance().setState(D,!1,!1)}else T=bTG()?2:1,(D=L.player)==null||D.setAutonavState(T);L.updateMiniplayerData(N);_.Xx8(L)}_.w7(S)})},QZm=function(L){var Z,N,S=(Z=L.watchResponse)==null?void 0:(N=Z.playerResponse)==null?void 0:N.playabilityStatus,u;
Z=S==null?void 0:(u=S.miniplayer)==null?void 0:u.miniplayerRenderer;(Z==null?void 0:Z.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&Z.minimizedEndpoint&&_.H2(L.miniplayerEl,[Z.minimizedEndpoint]);_.GC(L,{playabilityStatus:S})};
g_.prototype.openToast=function(L,Z){_.GC(this,{toastData:{data:L,label:Z}})};
_.GC=function(L,Z){(0,L.miniplayerPropSignalMap[1])(Z)};
g_.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var L;return this.playerElement?this.playerElement:(L=_.QJ(this.miniplayerEl).querySelector("#player-container"))==null?void 0:L.firstElementChild};
g_.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var Ja0=function(L,Z){Z=Z===void 0?!1:Z;var N,S,u,T,W,V,M;return _.b(function(G){if(G.nextAddress==1){N=navigator.userActivation.isActive||Z;if(!N||!L.pictureInPictureSupported())return G.return(!1);S=NY5(L);u=S.width;T=S.height;return G.yield(L.pipController.openWindow({width:u,height:T}),2)}W=G.yieldResult;V=L.pipController.getWindow();if(!V||!W)return G.return(!1);V.document.body.style.overflow="hidden";M=NbB(V);F8Y(L.pipController,function(){SIw(L);M()});
return G.return(!0)})},NY5=function(L){var Z=_.dM().shortsPipActivation,N,S;
L=Z?.5625:(S=(N=L.player)==null?void 0:N.getVideoAspectRatio())!=null?S:16/9;N=Math.min(window.innerWidth,window.innerHeight)/2;Z=Z?0:76;return L>1?new _.wF(N,Z+N/L):new _.wF(N*L,Z+N)},SIw=function(L){var Z;
_.b(function(N){Z=_.GR().resolve(_.mR);return Z.isOnWatch()&&L.watchPipMode||Z.isOnShorts()&&L.shortsPipMode?N.yield(L.deactivate(),0):L.miniplayerToPipMode?N.yield(zGw(L),0):L.watchPipMode?N.yield(_.Vl(L),0):N.jumpTo(0)})};
g_.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.gd.Object.defineProperties(g_.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
g_[F2]=[$$5,tvs];var iAv="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(" "),
uvv="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(" "),TY0="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
t2m="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");_.OAs=_.p(function(L){return _.g("yt-channel-attribution-view-model",{class:_.qg("ytChannelAttributionViewModelHost",L.className)},_.g("div",{class:"ytChannelAttributionViewModelUpper"},_.g(_.bj,{data:function(){return L.data().avatar}},{decoratedAvatarViewModel:_.CS}),_.g("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.g(_.qv,{text:function(){return L.data().title}}))),_.g("div",{class:"ytChannelAttributionViewModelBottom"},_.g(_.qv,{text:function(){return L.data().subtitle}})))},"fh");var WSQ=_.p(function(L){var Z=_.O(_.nh(!1,void 0,"MFRKRb")),N=Z.next().value,S=Z.next().value,u=function(){return L.data().activeRenderer},T=function(){return L.data().inactiveRenderer};
return _.g("yt-channel-disclosure-view-model",{"on:mouseleave":_.Z9(function(){S(!1)}),
"on:mouseover":_.Z9(function(){S(!0)}),
class:_.qg("ytChannelDisclosureViewModelHost",L.className)},_.g(_.F,{cond:function(){return N()},
then:function(){return _.g(_.bj,{data:u},{channelAttributionViewModel:_.OAs})},
else:function(){return _.g(_.bj,{data:T},{decoratedAvatarViewModel:_.CS})}}))},"gh");var V2q=null;var bAQ={},M2k=(bAQ.initialized={priority:10,callback:function(L){var Z=_.GR();Z.addProvider({provide:vjY,useClass:$Tg});Z.addProvider({provide:_.F0v,useFactory:function(){return new ojY}});
Z.addProvider({provide:Xj,useValue:_.X7("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});Z.addProvider({provide:rUq,useValue:5184E6});Z.addProvider({provide:Ftm,useValue:_.DK()});Z.addProvider({provide:zeq,useClass:tgh});Z.addProvider({provide:Zp,useClass:Zp});Z.addProvider({provide:_.HQ,useFactory:function(){return jaN.promise}});
Z.addProvider({provide:_.PuO,useFactory:function(){return _.EGO.promise}});
Z.addProvider({provide:hWB,useValue:function(){var M;return((M=_.CV())==null?void 0:M.getPlayer())||null}});
var N={};Z.addProvider((N.provide=_.el,N.useFactory=function(M,G){return function(){return iU1(M,G)}},N[F2]=[Xj,
rUq],N));N={};Z.addProvider((N.provide=_.R2,N.useClass=uUc,N[F2]=[Xj,rUq],N));N={};Z.addProvider((N.provide=_.lZx,N.useClass=Wmk,N[F2]=[_.R2],N));Z.addProvider({provide:Em,useFactory:_.Pv});Z.addProvider({provide:Cm,useFactory:_.Pv});Z.addProvider({provide:BZm,useFactory:_.Pv});Z.addProvider({provide:d80,useFactory:_.Pv});Z.addProvider({provide:_.mc,useFactory:_.Pv});Z.addProvider({provide:cZ,useValue:_.SM});Z.addProvider({provide:Vug,useClass:XvA});Z.addProvider({provide:Mov,useClass:bs8});Z.addProvider({provide:D_,
useClass:D_});Z.addProvider({provide:FY,useClass:FY});Z.addProvider({provide:Of,useClass:Of});Z.addProvider({provide:$A,useClass:$A});Z.addProvider({provide:Kw,useClass:Kw});Z.addProvider({provide:qa,useClass:qa});Z.addProvider({provide:rO,useClass:rO});Z.addProvider({provide:_.U8w,useValue:els});Z.addProvider({provide:_.a3,useFactory:_.tC});Z.addProvider({provide:Y8,useFactory:_.tq});N={};Z.addProvider((N.provide=Zp1,N.useFactory=function(M){return function(G){var D=D===void 0?{}:D;var l,v,R=(v=
_.n((l=G.endpoint)==null?void 0:l.commandMetadata,_.Nj))==null?void 0:v.rootVe;if(R){var K,U;if(l=G.previousCsn||((U=_.n((K=G.endpoint)==null?void 0:K.commandMetadata,ODt))==null?void 0:U.parentCsn)){var d=d===void 0?{}:d;if(l!==_.RH(d.layer)||R!==MQG(d.layer))DRs(l,d.cttAuthInfo,d.layer||0),VQs(l,d.layer||0),K=d.layer||0,_.Qc(bOF(K===void 0?0:K),R);D.parentCsn=l}G.endpoint&&l?e4Y(M,G.endpoint,D):_.fF(M,R,void 0,D);var h;((h=G.response)==null?0:h.trackingParams)&&M.graftServerVe(G.response.trackingParams);
var E;((E=G.playerResponse)==null?0:E.trackingParams)&&M.graftServerVe(G.playerResponse.trackingParams);var A;((A=G.reelWatchSequenceResponse)==null?0:A.trackingParams)&&M.graftServerVe(G.reelWatchSequenceResponse.trackingParams)}}},N[F2]=[_.a3],N));
N={};Z.addProvider((N.provide=q_5,N.useClass=xGs,N[F2]=[cZ,_.mc],N));N={};Z.addProvider((N.provide=ms,N.useClass=ms,N[F2]=[_.HQ,_.mc],N));N={};Z.addProvider((N.provide=Es,N.useClass=Es,N[F2]=[Cm,_.$s],N));Z.addProvider({provide:_.tUm,useClass:l4s});N={};Z.addProvider((N.provide=_.EB,N.useClass=VUk,N[F2]=[_.tUm,_.gv(_.zz)],N));Z.addProvider({provide:_.tG,useClass:MNc});N={};Z.addProvider((N.provide=VD,N.useClass=VD,N[F2]=[_.tG,_.HQ,_.bv,_.$s],N));Z.addProvider({provide:_.Po,useClass:r2});Z.addProvider({provide:_.tNs,
useClass:x$w});Z.addProvider({provide:_.pb,useClass:JM});_.c("enable_ai_companion")&&(Z.addProvider({provide:_.zz,useClass:gRg}),Z.addProvider({provide:_.uV5,useClass:cRV}),Z.addProvider({provide:_.TJg,useClass:u58}),Z.addProvider({provide:dQ,useClass:dQ}),Z.addProvider({provide:Tls,useValue:WSQ}));N={};Z.addProvider((N.provide=_.k8,N.useClass=D$y,N[F2]=[_.k8],N));Z.addProvider({provide:_.op,useClass:ugv});Z.addProvider({provide:J$,useClass:J$});Z.addProvider({provide:g4,useClass:g4});Z.addProvider({provide:HZ,
useClass:HZ});N={};Z.addProvider((N.provide=Um,N.useClass=Um,N[F2]=[_.$s,_.bv],N));Z.addProvider({provide:TP,useClass:Cw});N={};Z.addProvider((N.provide=Wu,N.useClass=Wu,N[F2]=[_.Po,TP],N));N={};Z.addProvider((N.provide=N_,N.useClass=N_,N[F2]=[_.Po],N));_.c("web_enable_feedback_endpoint_resolver")&&(N={},Z.addProvider((N.provide=PZ,N.useClass=PZ,N[F2]=[Em,jH],N)),Z.addProvider({provide:jH,useClass:ESs}));_.c("web_enable_feedback_endpoint_resolver_batch_2")&&(N={},Z.addProvider((N.provide=zZ,N.useClass=
zZ,N[F2]=[Em],N)),N={},Z.addProvider((N.provide=pt,N.useClass=pt,N[F2]=[jH],N)));N={};Z.addProvider((N.provide=tA,N.useClass=tA,N[F2]=[_.pb,TP],N));N={};Z.addProvider((N.provide=LI,N.useClass=LI,N[F2]=[_.pb],N));N={};Z.addProvider((N.provide=OX,N.useClass=OX,N[F2]=[_.bv,_.EB],N));N={};Z.addProvider((N.provide=u6,N.useClass=u6,N[F2]=[_.bv,_.a3],N));Z.addProvider({provide:sX,useClass:sX});N={};Z.addProvider((N.provide=UX,N.useClass=UX,N[F2]=[Em],N));Z.addProvider({provide:Bu,useClass:Bu});Z.addProvider({provide:Hu,
useClass:Hu});N={};Z.addProvider((N.provide=q_,N.useClass=q_,N[F2]=[Em],N));N={};Z.addProvider((N.provide=L3,N.useClass=L3,N[F2]=[_.bv,Em],N));N={};Z.addProvider((N.provide=Z1,N.useClass=Z1,N[F2]=[Em],N));N={};Z.addProvider((N.provide=Na,N.useClass=Na,N[F2]=[Em],N));N={};Z.addProvider((N.provide=Zn,N.useClass=Zn,N[F2]=[_.EB],N));N={};Z.addProvider((N.provide=zP,N.useClass=zP,N[F2]=[_.a3],N));N={};Z.addProvider((N.provide=Xb,N.useClass=Xb,N[F2]=[ah],N));N={};Z.addProvider((N.provide=AA,N.useClass=
AA,N[F2]=[ah],N));Z.addProvider({provide:CI,useClass:CI});Z.addProvider({provide:r4,useClass:r4});Z.addProvider({provide:pI,useClass:pI});N={};Z.addProvider((N.provide=V4,N.useClass=V4,N[F2]=[_.EB,_.$s],N));Z.addProvider({provide:Qu,useClass:Qu});N={};Z.addProvider((N.provide=i6,N.useClass=i6,N[F2]=[_.bv,_.EB],N));Z.addProvider({provide:BZ,useClass:BZ});N={};Z.addProvider((N.provide=y4,N.useClass=y4,N[F2]=[Em,_.bv,_.k8],N));N={};Z.addProvider((N.provide=KI,N.useClass=KI,N[F2]=[_.bv,_.$s],N));Z.addProvider({provide:LqO,
useValue:VEt});Z.addProvider({provide:txq,useValue:xax});Z.addProvider({provide:fI,useClass:fI});N={};Z.addProvider((N.provide=nI,N.useClass=nI,N[F2]=[Em],N));N={};Z.addProvider((N.provide=w4,N.useClass=w4,N[F2]=[_.op,_.$s],N));N={};Z.addProvider((N.provide=mG,N.useClass=mG,N[F2]=[_.$s],N));Z.addProvider({provide:sm,useFactory:function(){return new sm(_.Pv())}});
Z.addProvider({provide:cmB,useFactory:_.eD.getInstance});N={};Z.addProvider((N.provide=A$,N.useClass=A$,N[F2]=[Xj,cmB,_.$s],N));Z.addProvider({provide:Ct,useClass:Ct});Z.addProvider({provide:YY,useClass:YY});Z.addProvider({provide:Iz,useClass:Iz});Z.addProvider({provide:_.eH,useClass:_.eH});Z.addProvider({provide:u5,useClass:u5});N={};Z.addProvider((N.provide=l6,N.useClass=l6,N[F2]=[Cm],N));N={};Z.addProvider((N.provide=M_,N.useClass=M_,N[F2]=[_.$s],N));N={};Z.addProvider((N.provide=vu,N.useClass=
vu,N[F2]=[_.$s],N));N={};Z.addProvider((N.provide=oh,N.useClass=oh,N[F2]=[_.$s],N));_.c("web_enable_prefetching_videos_on_home")&&(Z.addProvider({provide:jl,useClass:jl}),Z.addProvider({provide:i1,useClass:i1}));N={};Z.addProvider((N.provide=i5,N.useClass=i5,N[F2]=[_.$s],N));Z.addProvider({provide:az,useClass:az});N={};Z.addProvider((N.provide=j6,N.useClass=j6,N[F2]=[_.bv,_.$s],N));N={};Z.addProvider((N.provide=h$,N.useClass=h$,N[F2]=[_.$s],N));N={};Z.addProvider((N.provide=u1,N.useClass=u1,N[F2]=
[_.bv,_.$s],N));Z.addProvider({provide:S_,useClass:S_});Z.addProvider({provide:Fb,useClass:Fb});N={};Z.addProvider((N.provide=GP,N.useClass=GP,N[F2]=[Cm,_.$s],N));Z.addProvider({provide:$8,useClass:$8});N={};Z.addProvider((N.provide=Ma,N.useClass=Ma,N[F2]=[Cm,_.$s,_.bv],N));N={};Z.addProvider((N.provide=gO,N.useClass=gO,N[F2]=[_.$s],N));N={};Z.addProvider((N.provide=b5,N.useClass=b5,N[F2]=[_.$s,_.bv],N));N={};Z.addProvider((N.provide=cu,N.useClass=cu,N[F2]=[_.HQ],N));N={};Z.addProvider((N.provide=
Rh,N.useClass=Rh,N[F2]=[_.HQ],N));N={};Z.addProvider((N.provide=Dn,N.useClass=Dn,N[F2]=[_.HQ],N));Z.addProvider({provide:d4,useClass:d4});Z.addProvider({provide:hA,useClass:hA});Z.addProvider({provide:x8,useClass:x8});Z.addProvider({provide:EX,useClass:EX});Z.addProvider({provide:Ih,useClass:Ih});Z.addProvider({provide:xY,useClass:xY});Z.addProvider({provide:e6,useClass:e6});_.c("kevlar_enable_mss_lazy_load")&&Z.addProvider({provide:_.Uc,useClass:BjY});Z.addProvider({provide:_.D1,useClass:Xp});Z.addProvider({provide:GW,
useFactory:function(){return _.SS.getInstance()}});
Z.addProvider({provide:Arg,useFactory:$E1});Z.addProvider({provide:ah,useFactory:function(){return _.mi.getInstance()}});
Z.addProvider({provide:wiL,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});N={};Z.addProvider((N.provide=_.PC,N.useClass=_.PC,N[F2]=[_.HQ,_.$s,_.a3,Arg,ah,GW,wiL,cZ],N));Z.addProvider({provide:_.ku,useClass:msl});Z.addProvider({provide:_.Xd5,useClass:QSq});N={};Z.addProvider((N.provide=qx,N.useClass=qx,N[F2]=[_.Xd5],N));N={};Z.addProvider((N.provide=_.pw,N.useFactory=function(M){return M.upliftCompletionResolver.promise},N[F2]=[q_5],N));
N=_.Ah("IS_SHELL_LOAD")?"aa":"eocs";var S=_.Ah("IS_SHELL_LOAD")?3:2;_.ih().parkOrScheduleJob(function(){Zh8()},S,N);
_.ih().parkOrScheduleJob(function(){_.GR().resolve(ms).start()},2,"eocs");
_.ih().parkOrScheduleJob(function(){HyY()},2,"eocs");
_.ih().parkOrScheduleJob(function(){_.GR().resolve(Es).start()},2,"eocs");
_.c("kevlar_debug_data_app_registration_ks")||We0();Z.addProvider({provide:_.MV,useValue:new Giv(L.root)});Z.addProvider({provide:qC,useValue:new MCB});Z.addProvider({provide:_.cfQ,useValue:new oV5(L.root)});Z.addProvider({provide:_.VJ,useValue:new RMg});Z.addProvider({provide:_.kv,useClass:eG});Z.addProvider({provide:$$5,useClass:QW});_.c("kevlar_network_sli_killswitch")||Z.addProvider({provide:n_s,useValue:XUM});Z.addProvider({provide:bn5,useFactory:$iH});_.c("web_bind_fetch")&&(N={},Z.addProvider((N.provide=
MuQ,N.useFactory=DiH,N[F2]=[_.gv(bn5)],N)));_.c("web_bind_window_request")&&(N={},Z.addProvider((N.provide=g_m,N.useFactory=lrt,N[F2]=[_.gv(bn5)],N)));_.c("web_bind_text_decoder")&&(N={},Z.addProvider((N.provide=Gpg,N.useFactory=vf1,N[F2]=[_.gv(bn5)],N)));N={};Z.addProvider((N.provide=vhg,N.useFactory=xiA,N[F2]=[_.pw,Em,_.el],N));N={};Z.addProvider((N.provide=lDq,N.useClass=Gd,N[F2]=[vhg],N));Z.addProvider({provide:qNw,useClass:Ajv});Z.addProvider({provide:GFQ,useClass:$8q});N=[].concat(_.Pd(sC));
_.c("web_continuation_response_processing")&&N.push(_.k0);N.push(mkh);_.c("enable_share_panel_navigation_logging_fix_on_web")&&N.push(_.Sjt);Z.addProvider({provide:yTt,useValue:N});Z.addProvider({provide:fZB,useClass:ghw});Z.addProvider({provide:w8Q,useClass:K0y});N={};Z.addProvider((N.provide=RO0,N.useClass=dq8,N[F2]=[Cm],N));_.ro.addLowPriorityJob(function(){eI1()});
N={};Z.addProvider((N.provide=Ozs,N.useFactory=function(M){return function(G){var D,l=(D=_.n(G.commandMetadata,_.Nj))==null?void 0:D.url;if(!l)throw new _.sr("No URL for PBJ Command",G);l=Ccw(l,{pbj:"1"});D=bqf(l,{})||{};D=Object.assign({},D,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.X7("STS").toString()});G=_.wv({command:JSON.stringify(G),session_token:_.X7("XSRF_TOKEN")});return M.fetch(l,{method:"POST",headers:D,body:G})}},N[F2]=[w8Q],N));
Z.addProvider({provide:o_m,useFactory:function(){var M={};return M.CSI=RD_(),M.ECATCHER=ofh(),M}});
Z.addProvider({provide:GM1,useClass:Rak});N=[];N.push(Z.resolve(GFQ));S={};S=(S.client_location=_.eD.getInstance(),S.consistency=_.Get(),S.entities=Z.resolve(Mov),S.response_received_commands=Z.resolve(fZB),S.store=Z.resolve(_.lZx),S.tokens=Z.resolve(GFQ),S.service_params=Z.resolve(GM1),S);if(_.c("web_shorts_prefetch_service_enabled")){var u=new Vbm(Z.resolve(_.R2));S.shorts_prefetch=u}S.adblock_detection=Z.resolve(RO0);Z.addProvider({provide:_.iR,useClass:_.iR});u=Z.resolve(_.U8w);var T=[];_.c("PremiumClientSharedConfig__enable_att_context_processor")&&
(Z.addProvider({provide:HG8,useClass:Q75}),T.push(Z.resolve(HG8)));if(_.c("owl_pl_await")){var W={};Z.addProvider((W.provide=inv,W.useFactory=function(M){return new Nj8(M)},W[F2]=[_.iR],W));
T.push(Z.resolve(inv))}Vlt(u,Z.resolve(w8Q),Z.resolve(Vug),S,Z.resolve(_.R2),N,T,Z.resolve(lDq),Z.resolve(qNw));Z.addProvider({provide:_.bv,useValue:_.IV.instance});_.c("start_client_gcf")&&Z.addProvider({provide:j2,useValue:Hqh()});Z.addProvider({provide:SKQ,useFactory:function(){return new SKQ(_.GR().resolve(_.iR),_.mi.getInstance())}});
_.ih().parkOrScheduleJob(function(){ihQ()},1,"eocs");
N={};Z.addProvider((N.provide=zh,N.useClass=zh,N[F2]=[_.el,_.bv],N));Z.addProvider({provide:_.K8v,useFactory:_.NA.getInstance});_.ih().parkOrScheduleJob(function(){_.GR().resolve(zh).refresh()},0,"eocs");
jmm(els.watchEndpointMap||{},u.reelWatchEndpointMap||{},L.injector.resolve(_.bv));Z.addProvider({provide:_.G1,useValue:smq.instance});_.c("kevlar_signal_collection_killswitch")||(N={},Z.addProvider((N.provide=p40,N.useClass=p40,N[F2]=[Xj,Y8],N)),_.ih().parkOrScheduleJob(function(){_.GR().resolve(p40).record()},1,"eocs"));
_.c("web_debug_handler_registration_killswitch")||_.ih().parkOrScheduleJob(function(){tFH("DOWNLOAD_PES",F$H);_.c("offline_client_state_export_ks")||tFH("OFFLINE_CLIENT_STATE",Mef)},0,"eocs");
_.c("kevlar_prevent_polymer_dynamic_font_load")&&_.ih().parkOrScheduleJob(function(){var M=[_.vy(jl8),_.vy(E_Y)];M=_.O(M);for(var G=M.next();!G.done;G=M.next()){G=G.value;var D=document.createElement("link");_.Wd(D,G,"stylesheet");document.head.appendChild(D)}},1,"eocs");
N=L.injector.resolve(_.bv);_.Afk.instance=new _.Afk(N);JDf(p6v(new X6v(N)));N={};L.injector.addProvider((N.provide=Fl,N.useFactory=function(M){(M=M==null?void 0:M.getCurrentPage())?M=M.visibilityObserver:(V2q||(V2q=FbB()),M=V2q);return M},N[F2]=[_.gv(_.mR)],N.skipCache=!0,N));
Z.addProvider({provide:_.yk,useClass:g_});Z.addProvider({provide:Yu,useClass:q1t});L.injector.addProvider({provide:QhY,useValue:gVm});Z.addProvider({provide:Eqh,useValue:TkG});_.c("web_cow_button_renderer_wiz_token")&&Z.addProvider({provide:jcs,useValue:IM5});Z.addProvider({provide:CfN,useValue:ZeG});Z.addProvider({provide:_.d$,useValue:DhH});L=Z.addProvider;yWv||(yWv=new ksc);L.call(Z,{provide:_.AM,useValue:yWv});Z.addProvider({provide:_.hC,useValue:_.X7("HTML_DIR")==="rtl"?"rtl":"ltr"});Z.addProvider({provide:nSy,
useClass:aSv});Z.addProvider({provide:_.xD,useClass:HC});_.GR().addProvider({provide:fSP,useValue:_.c("enable_web_delhi_icons")?uvv.concat(t2m):iAv.concat(TY0)});Z.addProvider({provide:_.xr,useClass:_.xr});Z.addProvider({provide:_.a85,useValue:new dTq});Z.addProvider({provide:VYq,useClass:WwP});Z.addProvider({provide:Pu,useClass:Pu});Z.addProvider({provide:mN,useClass:mN});L={};Z.addProvider((L.provide=b6,L.useClass=b6,L[F2]=[_.bv,_.EB],L));Z.addProvider({provide:Td,useClass:Td});Z.addProvider({provide:Uc0,
useClass:oR8});Z.addProvider({provide:Q4,useClass:Q4});Z.addProvider({provide:zps,useValue:k$V});Z.addProvider({provide:_.iZ,useClass:Vok});_.c("enable_payments_purchase_manager")&&Z.addProvider({provide:Lww,useClass:BwQ});Z.addProvider({provide:jSw,useFactory:function(){return function(M){return _.sl5(M)}}});
Z.addProvider({provide:_.Wty,useClass:VNw});L={};Z.addProvider((L.provide=Sg,L.useClass=Sg,L[F2]=[_.Wty],L));Z.addProvider({provide:JA,useClass:JA});Z.addProvider({provide:nt5,useValue:ZGw});Z.addProvider({provide:$pt,useValue:_.a4s});Z.addProvider({provide:KeF,useClass:vRv});Z.addProvider({provide:wEv,useValue:jeq});L={};Z.addProvider((L.provide=U$Y,L.useClass=YKs,L[F2]=[wEv],L));L={};Z.addProvider((L.provide=_.eB,L.useClass=PQy,L[F2]=[U$Y],L));L={};Z.addProvider((L.provide=_.LR,L.useClass=qM,L[F2]=
[_.mc,_.kv],L));if(_.c("web_explore_hub_on_hover")||_.c("web_client_explore_hub_on_hover"))L={},Z.addProvider((L.provide=rQ,L.useClass=rQ,L[F2]=[_.bv,GW],L));if(_.c("web_enable_renderer_logger")){var V=new Cjt;SF0(function(){V.abort()});
Z.addProvider({provide:ds_,useValue:new mGw(V.signal)})}Z.addProvider({provide:AGh,useValue:YsA});Z.addProvider({provide:FDB,useClass:byw});_.c("web_use_flow_state_manager")&&(Z.addProvider({provide:_.Kt,useClass:gSv}),L={},Z.addProvider((L.provide=ft,L.useClass=ft,L[F2]=[_.Kt,_.$s],L)))}},bAQ);var gEv={},GIQ=(gEv.initialized={priority:10,callback:function(){if(!ch0){vN1();nfH("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.nZ(_.T6(nfH,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.c("log_heartbeat_with_lifecycles")){var L={};tl.instance||(tl.instance=new tl);tl.instance.install((L.document_visible={callback:KJH,priority:10},L.document_hidden={callback:KJH,priority:10},L))}else _.MC(document,"visibilitychange",KJH);ch0=!0}(L=_.RH())&&L!=="UNDEFINED_CSN"&&OO1(L)}},gEv);var FS5={},$C0=(FS5.initialized={callback:function(L){var Z=_.Ll(232091),N=L.injector.resolve(_.a3);_.k3(N,Z);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?SDh()&&_.wM(N,Z):(L=L.injector.resolve(jSw)("refresh_detector"))&&(L.get("first_tab_load")?_.wM(N,Z):L.set("first_tab_load","1"))}},FS5);var DCm={},lly=(DCm.initialized={priority:10,callback:bah},DCm);var vEm={},oE0=(vEm.initialized={priority:0,callback:function(){var L=new HZh,Z="other";_.NQ?Z="chrome":_.Zi?Z="firefox":_.HW?Z="safari":Wx&&(Z="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(N){L.increment(_.dv(),N,Z)}).catch(function(){L.increment(_.dv(),!1,Z)}):L.increment(_.dv(),!1,Z)}},vEm);var R98={},cVy=(R98.rendering={priority:8,callback:M00},R98);var nEv={},KSP=(nEv.rendering={priority:10,callback:ymL},nEv.rendered={callback:kMA},nEv),fls={},kI8=(fls.rendering={callback:ymL},fls.rendered={callback:kMA},fls);var yV8=!1,wKs={},UC8=(wKs.initialized={priority:10,callback:function(){yV8||(CNH({didPatch:function(L){L.el&&hD0(L.el,L.props)},
didUnmount:function(L){dif(L.el)}}),yV8=!0)}},wKs);var YIP=/^\/shorts\/?$/;_.Qc("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:{}}}}}}});_.c("kevlar_use_common_module_manager_ks")?(_.HZw(new w_A),uTx()):UmH();
(function(){var L=document.querySelector("ytd-app");if(!L)throw Error("Wj");L=new Z6({root:L,injector:_.GR()});L.install(GIQ);var Z={};L.install((Z.initialized={priority:10,callback:TaH},Z));_.c("wp_lat_b")&&(Z={},L.install((Z.initialized={priority:10,callback:function(){gfs()}},Z)));
Z={};L.install((Z.rendered={priority:0,callback:SL_},Z));Z={};L.install((Z.rendered={priority:0,callback:function(){_.ro.addLowPriorityJob(function(){_.h1q>1&&(HNs(),ZJL())},4E4)}},Z));
L.install(bZv);L.install($C0);L.install(UC8);Q4P();L.install(os0);L.install(u2w);L.install(W5P);L.install(dG8);L.install(E$v);L.install(lxs);L.install(M2k);_.c("kevlar_enable_mss_lazy_load")&&L.install(lly);L.install(tZv);L.install(oE0);if(!_.Ah("IS_SHELL_LOAD")||_.c("kevlar_fetch_initial_data_promise_client")||_.c("sw_nav_preload_pbj")){var N=_.ks(window.location.href);Z=N&&N==="/watch";N=N&&N.match(YIP);Z?L.install(kI8):N?L.install(cVy):L.install(KSP)}else L.install(NvP);L.install(gsk);_.c("web_enable_prefetching_videos_on_home")&&
L.install(K5Y);_.c("start_client_gcf")&&L.install(v_P);L.install(w4y);(new Bv0).increment("INSTALLED");L.install(c3m);L.install(qMv);L.transition("initialized");uuB()})();
_.xQ=[[["YmRyYXVrNWVwN2tpbmQjczU=","ZXlzaWRvbDNzdmFsdWUjZXFm"],"T1VUX0lEX0VOVEVSRUQjaGYybmU3NXI0eWJ1QURfUExBQ0VNRU5UX0tJTkRfTEFZ"]];_.Bv=["bG9iYWxDYWxsYmFja3MjM2h6MjJwb3UxZXZzZw==","bWFsaXR5RGV0ZWN0ZWQjdGt0ZXZiczNtNHdhb25BYm5vcg==","eTQ4OG84bW9uQWRTa2lwI2xrcDc=","bGF5ZXJfcmVzcG9uc2Uja3Voc3M0d3duZHN3cmF3X3A=","dFBhbmVsUmVuZGVyZXIjYm9rendidDE4OGN1YWRzRW5nYWdlbWVu"];_.Vx="bG9iYWxDYWxsYmFja3MjM2h6MjJwb3UxZXZzZw== bWFsaXR5RGV0ZWN0ZWQjdGt0ZXZiczNtNHdhb25BYm5vcg== eTQ4OG84bW9uQWRTa2lwI2xrcDc= bGF5ZXJfcmVzcG9uc2Uja3Voc3M0d3duZHN3cmF3X3A= dGlwbGVfc2tpcHNfa3MjaGU1anBhN2c2ZGR0d2ViX3BsYXlsaXN0X3F1ZXVlX211bA== bDJ3MmQ4YWJfc2FfZWYjcTdubzVv dFBhbmVsUmVuZGVyZXIjYm9rendidDE4OGN1YWRzRW5nYWdlbWVu".split(" ");
_._ModuleManager_initialize=function(L,Z){if(!_.E_){if(!_.P4)return;_.HZw(_.P4())}_.E_.setAllModuleInfoString(L,Z)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/sye:1/syd:3,b,e/syf:f/syg/syh:6/syi/h8y2qb:5,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:2,9,h,j,n/syl:4,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/iuT5Oc',['sy3','sy4','sy8','sye','syb','sy1','syk','syj','syg','syd','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','syf','syo','sy9','sy5','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.Fe=function(L,Z,N,S,u){var T={};Z&&(T[Z]=N);S?T.errorType=S:u&&(T.errorReason=u);_.mS(L,T);_.JV()};
_.$y=function(L){var Z=_.ih();return _.DtO(Z,L,1)};
_.DU({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 L=this.query;L&&(this.full||L[0]==="("||(L="("+L+")"),this._mq=window.matchMedia(L),this._add(),this.queryHandler(this._mq))},
queryHandler:function(L){this._setQueryMatches(L.matches)}});var h95;var sWg;var jWk=function(){};
_.t=jWk.prototype;_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t._tapHandler=function(){};
_.t._focusChanged=function(){};
_.t._detectKeyboardFocus=function(){};
_.t._userActivate=function(){};
_.t._upHandler=function(){};
_.t._spaceKeyDownHandler=function(){};
_.t._spaceKeyUpHandler=function(){};
_.t._asyncClick=function(){};
_.t._pressedChanged=function(){};
_.t._ariaActiveAttributeChanged=function(){};
_.t._activeChanged=function(){};
_.t._controlStateChanged=function(){};
_.t._changedButtonState=function(){};
_.t._focusBlurHandler=function(){};
_.t._disabledChanged=function(){};
_.t._changedControlState=function(){};
_.t._downHandler=function(){};
_.t.ensureRipple=function(){};
_.t.getRipple=function(){};
_.t.hasRipple=function(){};
_.t._noinkChanged=function(){};
_.t._focusedChanged=function(){};
_.t._createRipple=function(){};
_.t.registered=function(){};
_.t._invalidChanged=function(){};
_.t.hasValidator=function(){};
_.t.validate=function(){};
_.t._getValidity=function(){};
_.t._requiredChanged=function(){};
_.t._valueChanged=function(){};
_.t._checkedChanged=function(){};
_.t._buttonStateChanged=function(){};
_.t._setPressed=function(){};
_.t._setPointerDown=function(){};
_.t._setReceivedFocusFromKeyboard=function(){};
_.t._setFocused=function(){};
jWk=_.DU({is:"tp-yt-paper-radio-button",_template:function(){if(sWg!==void 0)return sWg;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;h95===void 0&&(h95=document.createElement("template"));var S=h95;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return sWg=L},
behaviors:[_.xYV],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(){_.bN(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var L=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),Z=Math.floor(3*L);Z%2!==L%2&&Z++;this.updateStyles({"--paper-radio-button-ink-size":Z+"px"})}})}});var EEw;var PRg;_.DU({_template:function(){if(PRg!==void 0)return PRg;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;EEw===void 0&&(EEw=document.createElement("template"));var S=EEw;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return PRg=L},
is:"tp-yt-paper-radio-group",behaviors:[_.J9V],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(L){var Z=this._valueToItem(L);if(!Z||!Z.hasAttribute("disabled")){if(this.selected){Z=this._valueToItem(this.selected);if(this.selected==L)if(this.allowEmptySelection)L="";else{Z&&(Z.checked=!0);return}Z&&
(Z.checked=!1)}_.I_.select.apply(this,[L]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(L){this._focusPrevious();L.preventDefault();this._activateFocusedItem()},
_onDownKey:function(L){this._focusNext();L.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(L){_.mHN._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(L){_.mHN._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.I_._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.jQ._resetTabindices.apply(this,arguments);this.items.forEach(function(L){L.removeAttribute("aria-selected")},this)}});var pKy;_.l4("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var D6=function(){return _.e.apply(this,arguments)||this};
_.f(D6,_.e);_.t=D6.prototype;_.t.computeHasPrimaryIcon=function(L){return!(!L.icon&&!L.thumbnail)};
_.t.computeHasSecondary=function(L){return!(!L.secondaryIcon&&!L.secondaryNotificationText)};
_.t.computeHideSecondaryString=function(L){return!_.c("disable_hide_empty_secondary_string")&&!L.secondaryNotificationText};
_.t.computeCompactLinkStyle=function(L){return L?L.toLowerCase().replace(/_/g,"-"):""};
_.t.computeHasFitHeight=function(L){return L==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.t.isActiveEndpoint=function(L){return(L=this.get("commandMetadata.webCommandMetadata.url",L))?_.ks(window.location.href)!=="/account_transfer_channel"&&_.ks(window.location.href)!=="/gaia_link"&&_.ks(window.location.href)!=="/channel_switcher"||L!=="/account"?_.ks(window.location.href)===L:!0:!1};
_.t.onTap=function(){var L;((L=this.data)==null?0:L.serviceEndpoint)&&_.H2(this.hostElement,[this.data.serviceEndpoint])};
D6.prototype.onTap=D6.prototype.onTap;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],D6.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.Q("design:type",Boolean)],D6.prototype,"active",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.Q("design:type",String)],D6.prototype,"compactLinkStyle",void 0);
_.r([_.Y({computed:"computeIcon_(data.icon)"}),_.Q("design:type",Object)],D6.prototype,"icon",void 0);_.r([_.Y({computed:"computeIcon_(data.secondaryIcon)"}),_.Q("design:type",Object)],D6.prototype,"secondaryIcon",void 0);_.r([_.Y({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],D6.prototype,"hasSecondary",void 0);_.r([_.Y({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],D6.prototype,"hideSecondaryString",void 0);
_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],D6.prototype,"onTap",null);_.r([_.P({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],D6);
_.m(D6,"ytd-compact-link-renderer",function(){if(pKy!==void 0)return pKy;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return pKy=L},{mode:1});var z9m;_.l4("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var l1=function(){var L=_.e.apply(this,arguments)||this;L.role="link";L.tabindex="0";L.actionMap=_.c("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 L};
_.f(l1,_.e);_.t=l1.prototype;_.t.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.wr()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.t.getCurrentTheme=function(){return _.Ux()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.wr()};
_.t.onThemeSelected=function(L,Z){var N=L||Z?L:_.yJ(),S=(N&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!N&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.bJ_(_.ks(window.location.href));_.OT(0,165,L);_.OT(0,174,Z);this.prefs.save();S&&_.XJ(this.hostElement,"yt-dark-mode-toggled-action",[N]);_.XJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.t.onTap=function(){this.data.serviceEndpoint&&_.H2(this.hostElement,[this.data.serviceEndpoint])};
_.t.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.t.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.t.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
l1.prototype.onTap=l1.prototype.onTap;l1.prototype.dataChanged=l1.prototype.dataChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],l1.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.ik),_.Q("design:type",Object)],l1.prototype,"paperItemBehaviors",void 0);_.r([_.Y(),_.Q("design:type",Object)],l1.prototype,"data",void 0);_.r([_.Y({value:function(){return _.tq()}}),
_.Q("design:type",_.TA)],l1.prototype,"prefs",void 0);_.r([_.Y(),_.Q("design:type",Object)],l1.prototype,"label",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],l1.prototype,"role",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],l1.prototype,"tabindex",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],l1.prototype,"dataChanged",null);
_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],l1.prototype,"onTap",null);_.r([_.P({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],l1);
_.rD()(l1,"ytd-toggle-theme-compact-link-renderer",function(){if(z9m===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);z9m=L}L=z9m;return L},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var JVv,CR0;_.vJ=function(L){return!!L.getOptions("captions")};
_.mCc=function(L){return(L=L.getOption("captions","track"))?!!L.displayName:!1};
_.oR=function(L,Z){_.bF(Z,L,function(){return JVv[Z]},function(N){JVv[Z]=N;
if(!_.c("mweb_player_ve_show_ks")){var S=_.RH(0);S&&N&&_.dR(S,N)}})};
_.RR=function(L){(L=JVv[L])&&_.wM(_.tC(),L)};
JVv={};var rVv;/*

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
*/
_.DU({_template:function(){if(rVv!==void 0)return rVv;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;CR0===void 0&&(CR0=document.createElement("template"));var S=CR0;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return rVv=L},
is:"tp-yt-paper-checkbox",behaviors:[_.xYV],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.bN(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var L=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),Z="px",N=L.match(/[A-Za-z]+$/);N!==null&&(Z=N[0]);L=parseFloat(L);N=8/3*L;Z==="px"&&(N=Math.floor(N),N%2!==L%2&&N++);this.updateStyles({"--paper-checkbox-ink-size":N+
Z})}})},
_computeCheckboxClass:function(L,Z){var N="";L&&(N+="checked ");Z&&(N+="invalid");return N},
_computeCheckmarkClass:function(L){return L?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.H7q._createRipple.call(this)}});var QWv=new _.S5("radioButtonSurveyOptionRenderer"),XK5=new _.S5("checkboxSurveyOptionRenderer");var AVg;var HA8;var BYc=0,cJ=function(){var L=_.e.call(this)||this;L.selected=!1;L.isOverlay=!1;L.inputId="toggle-option-"+BYc;BYc++;return L};
_.f(cJ,_.e);cJ.prototype.onTap=function(){_.QT(this.hostElement,"ytd-toggle-option-clicked")};
_.r([_.Y(),_.Q("design:type",String)],cJ.prototype,"label",void 0);_.r([_.Y(),_.Q("design:type",String)],cJ.prototype,"inputId",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],cJ.prototype,"selected",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],cJ.prototype,"isOverlay",void 0);_.r([_.P({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.Q("design:paramtypes",[])],cJ);
_.m(cJ,"ytd-toggle-option-renderer",function(){if(HA8!==void 0)return HA8;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return HA8=L},{mode:1});var nR=function(){var L=_.e.apply(this,arguments)||this;L.isToggleOption=!1;L.isOverlay=!1;return L};
_.f(nR,_.e);nR.prototype.onTap=function(L){L.preventDefault();this.data&&(L=!this.data.checked,this.set("data.checked",L),_.QT(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:L,value:this.data.value}))};
_.gd.Object.defineProperties(nR.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
nR.prototype.onTap=nR.prototype.onTap;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],nR.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],nR.prototype,"isToggleOption",void 0);_.r([_.Y(),_.Q("design:type",Object)],nR.prototype,"isOverlay",void 0);_.r([_.w("data.responseText"),_.Q("design:type",String),_.Q("design:paramtypes",[])],nR.prototype,"label",null);
_.r([_.SA("ytd-toggle-option-clicked"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],nR.prototype,"onTap",null);_.r([_.P({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],nR);
_.m(nR,"ytd-checkbox-survey-option-renderer",function(){if(AVg!==void 0)return AVg;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return AVg=L},{mode:1});var xCq;var qIv;var KR=function(){var L=_.e.apply(this,arguments)||this;L.checked=!1;L.isToggleOption=!1;return L};
_.f(KR,_.e);KR.prototype.onTap=function(){this.data&&(this.checked?_.XJ(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.XJ(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
KR.prototype.onTap=KR.prototype.onTap;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],KR.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],KR.prototype,"checked",void 0);_.r([_.Y(),_.Q("design:type",Object)],KR.prototype,"isToggleOption",void 0);_.r([_.SA("ytd-toggle-option-clicked"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],KR.prototype,"onTap",null);
_.r([_.P({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],KR);
_.m(KR,"ytd-radio-button-survey-option-renderer",function(){if(qIv!==void 0)return qIv;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return qIv=L},{mode:1});var fR=function(){var L=_.e.apply(this,arguments)||this;L.disableAnimation=!1;L.isToggleOption=!0;L.followUpSurveyCommand=null;L.selectedRatingEndpoint=null;L.isSlimlineSurveyFollowUp=!1;L.isShortsStyle=!1;L.styleOverrideAttribute=!0;L.isDarkMode=!1;L.isSubmitted=!1;L.roundedContainer=!0;L.improveShortsResponseRate=_.c("web_improve_shorts_response_rate");L.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 L};
_.f(fR,_.e);_.t=fR.prototype;
_.t.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"}}}}};
_.t.attached=function(){var L=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(N){var S;if((S=N[0])!=null&&S.isIntersecting){_.Ng().reportShown(L.hostElement);var u;(u=L.intersectionObserver)==null||u.unobserve(L.hostElement)}},{rootMargin:"0px",
threshold:.6});var Z;(Z=this.intersectionObserver)==null||Z.observe(this.hostElement)};
_.t.onDarkModeToggledAction=function(L){this.isDarkMode=L};
_.t.dataChanged=function(){var L;if(((L=this.data)==null?void 0:L.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var Z;((Z=this.data)==null?void 0:Z.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var N,S,u,T;this.darkColorPalette=(N=this.data)==null?void 0:(S=N.inlineContent)==null?void 0:(u=S.compactVideoRenderer)==null?void 0:(T=u.thumbnail)==null?
void 0:T.darkColorPalette;var W,V,M,G;this.lightColorPalette=(W=this.data)==null?void 0:(V=W.inlineContent)==null?void 0:(M=V.compactVideoRenderer)==null?void 0:(G=M.thumbnail)==null?void 0:G.lightColorPalette;var D,l;if(((D=this.data)==null?0:(l=D.inlineContent)==null?0:l.compactVideoRenderer)&&this.isShortsStyle){var v,R,K,U;L=_.QV((v=this.data)==null?void 0:(R=v.inlineContent)==null?void 0:(K=R.compactVideoRenderer)==null?void 0:(U=K.thumbnail)==null?void 0:U.thumbnails);_.Ld(this.hostElement,
{"--yt-background-url":"url("+L+")"})}};
_.t.handleRequestCompletion=function(){this.hostElement.hidden&&_.QT(this.hostElement,"yt-dismissible-item-dismissed")};
_.t.onPopupClosed=function(L){var Z;((Z=L.detail)==null?void 0:Z.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.XJ(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.t.handleInlineSurveyRatingSelect=function(L,Z){var N=this;this.selectedRatingEndpoint=L;this.followUpSurveyCommand=Z;this.expanded=!!L;this.getOptionRenderers().forEach(function(S,u){N.notifyPath("followUpSurveyCommand.followUpOptions."+u+".checkboxSurveyOptionRenderer.checked");N.set("followUpSurveyCommand.followUpOptions."+u+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),L=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.XJ(this.hostElement,"yt-reel-non-video-content-dismissal-command",[L]))};
_.t.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.XJ(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var L,Z=(L=this.data)==null?void 0:L.dismissalEndpoint;Z&&this.ytComponentBehavior.resolveCommand(Z)}};
_.t.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.XJ(this.hostElement,"yt-close-popup-action"))};
_.t.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var L=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{L=this.getOptionRenderers().filter(function(S){return S.checked});
if(L.length===0)return;L=L.map(function(S){return S.responseEndpoint})}var Z=[];
L.forEach(function(S,u){u!==0&&(S=_.n(S,_.Rj))&&S.feedbackToken&&Z.push(S.feedbackToken)});
if(L=L[0]){var N={};Z.length>0&&(N.extra_feedback_tokens=Z);this.ytComponentBehavior.resolveCommand(L,{form:N})}}};
_.t.getOptionRenderers=function(){var L=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(Z){L.isSingleSelect=!!_.n(Z,QWv);return L.isSingleSelect?_.n(Z,QWv):_.n(Z,XK5)}):[]};
_.t.handleInlineSurveyOptionSelect=function(L){L=this.optionSelector.indexOf(L);L!==-1&&this.optionSelector.selectIndex(L)};
_.t.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.t.maybeGetBackgroundColor=function(L){return this.isDarkMode?L.section2Color:L.section3Color};
_.t.colorPaletteChanged=function(){var L=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;L=L&&this.maybeGetBackgroundColor(L);this.dismissibleEl.style.backgroundColor=!L||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.vq(L)};
_.gd.Object.defineProperties(fR.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
fR.prototype.colorPaletteChanged=fR.prototype.colorPaletteChanged;fR.prototype.onPopupClosed=fR.prototype.onPopupClosed;fR.prototype.handleRequestCompletion=fR.prototype.handleRequestCompletion;fR.prototype.dataChanged=fR.prototype.dataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],fR.prototype,"actionHandlerBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],fR.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],fR.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.TX("#follow-up-survey-options"),_.Q("design:type",Object)],fR.prototype,"optionSelector",void 0);_.r([_.Y(),_.Q("design:type",Object)],fR.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Object)],fR.prototype,"disableAnimation",void 0);_.r([_.Y(),_.Q("design:type",Object)],fR.prototype,"isToggleOption",void 0);_.r([_.Y(),_.Q("design:type",Object)],fR.prototype,"followUpSurveyCommand",void 0);_.r([_.Y(),_.Q("design:type",Object)],fR.prototype,"selectedRatingEndpoint",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],fR.prototype,"expanded",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],fR.prototype,"isSlimlineSurveyFollowUp",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],fR.prototype,"isShortsStyle",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],fR.prototype,"styleOverrideAttribute",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],fR.prototype,"isSingleSelect",void 0);_.r([_.Y(),_.Q("design:type",Object)],fR.prototype,"isDarkMode",void 0);
_.r([_.Y(),_.Q("design:type",Object)],fR.prototype,"lightColorPalette",void 0);_.r([_.Y(),_.Q("design:type",Object)],fR.prototype,"darkColorPalette",void 0);_.r([_.w("selectedRatingEndpoint","isShortsStyle"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fR.prototype,"isOptionSelected",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],fR.prototype,"roundedContainer",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],fR.prototype,"improveShortsResponseRate",void 0);_.r([_.TX("#dismissible"),_.Q("design:type",HTMLElement)],fR.prototype,"dismissibleEl",void 0);_.r([_.TX("#dismiss-button yt-icon-button"),_.Q("design:type",HTMLElement)],fR.prototype,"dismissButtonEl",void 0);_.r([_.TX("#inline-survey-header yt-icon-button"),_.Q("design:type",HTMLElement)],fR.prototype,"inlineHeaderDismissButtonEl",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fR.prototype,"dataChanged",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fR.prototype,"handleRequestCompletion",null);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],fR.prototype,"onPopupClosed",null);
_.r([_.iA("darkColorPalette","lightColorPalette","isDarkMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fR.prototype,"colorPaletteChanged",null);_.r([_.P({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],fR);
_.m(fR,"ytd-inline-survey-renderer",function(){if(xCq!==void 0)return xCq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return xCq=L},{mode:1});var Ldq=["en-CA","en","es-MX","fr-CA"];_.Zom=_.p(function(L){var Z=_.Ek(L,{isOverlay:!1,isModern:!1}),N=Z.captionIconType,S=Z.onClick;L=Z.ariaLabel;var u=Z.ariaPressed,T=Z.isOverlay,W=Z.isModern;Z=_.t2("button",function(G){_.oR(G,127299)});
var V=_.Z9(function(G){_.RR(127299);S==null||S(G);return!1}),M={};
return _.g("ytm-closed-captioning-button",{class:_.qg("ytmClosedCaptioningButtonHost",(M.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return N()===-1&&T()},M.ytmClosedCaptioningButtonIconDisabled=function(){return N()===-1&&!T()},M))},_.g("button",{el:Z,
class:"ytmClosedCaptioningButtonButton",title:L,"aria-label":L,"aria-pressed":u,"on:click":V},_.g(_.T0,{icon:function(){var G="",D=W();var l=D?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";D=D?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var v=_.tq().get("hl");l=!v||Ldq.includes(v)?l:D;D=N();switch(D){case -1:case 0:G=l;break;case 1:G=l+"_FILLED";break;default:_.Xh(D)}return G}})))},"hh");
_.Zom.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.pr=function(L){return function(Z,N){var S=L||N.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(Z,N,{get:function(){var u;return this.$?this.$[S]:(u=_.uA(this))==null?void 0:u.querySelector("#"+S)},
enumerable:!0,configurable:!0})}};_.zO=function(L){L=L===void 0?!1:L;_.ag.call(this);this.pubSub_=new _.Ur(L);_.Ky(this,this.pubSub_)};
_.Qk(_.zO,_.ag);_.zO.prototype.subscribe=function(L,Z,N){return this.isDisposed()?0:this.pubSub_.subscribe(L,Z,N)};
_.zO.prototype.unsubscribe=function(L,Z,N){return this.isDisposed()?!1:this.pubSub_.unsubscribe(L,Z,N)};
_.zO.prototype.unsubscribeByKey=function(L){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(L)};
_.zO.prototype.publish=function(L,Z){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var b1i=function(){_.Fe("ypcRedeemFlowStarted")},Mfq=function(L){_.Fe("ypcRedeemFlowFailed",void 0,void 0,void 0,L)},gt8=function(L,Z,N){Z&&N&&(L.videos.forEach(function(S){S.videoId===Z&&(S.itemId=N)}),L.recommendedVideos.forEach(function(S){S.videoId===Z&&(S.itemId=N)}))};var GBi;var Fhq;/*

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
*/
_.DU({_template:function(){if(Fhq!==void 0)return Fhq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;GBi===void 0&&(GBi=document.createElement("template"));var S=GBi;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return Fhq=L},
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(L,Z){var N=this._resolveSrc(L);N!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",L===""||Z?this._setLoading(!1):(this._resolvedSrc=N,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 L=this.$.sizedImgDiv.style,Z=this.$.placeholder.style;L.backgroundSize=Z.backgroundSize=this.sizing;L.backgroundPosition=Z.backgroundPosition=this.sizing?this.position:"";L.backgroundRepeat=Z.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(L){L=_.R6(L,this.$.baseURIAnchor.href);L.length>=2&&L[0]==="/"&&L[1]!=="/"&&(L=(location.origin||location.protocol+"//"+location.host)+L);return L}});var $L7;var DLi;_.DU({_template:function(){if(DLi!==void 0)return DLi;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;$L7===void 0&&($L7=document.createElement("template"));var S=$L7;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return DLi=L},
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(L){return L?"false":"true"},
_headingChanged:function(L){var Z=this.getAttribute("heading"),N=this.getAttribute("aria-label");typeof N==="string"&&N!==Z||this.setAttribute("aria-label",L)},
_computeHeadingClass:function(L){return L?" over-image":""},
_computeAnimated:function(L){return L}});var l0t=new _.S5("addRendererToItemSectionAction");var vt7;var BY=function(){return _.e.apply(this,arguments)||this};
_.f(BY,_.e);BY.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],BY.prototype,"rendererBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],BY.prototype,"dismissibleItemBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],BY.prototype,"rendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],BY.prototype,"data",void 0);_.r([_.P({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],BY);
_.m(BY,"ytd-comment-history-entry-renderer",function(){if(vt7!==void 0)return vt7;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return vt7=L},{mode:1});var otG;_.l4("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.l4("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var xi=function(){return _.e.apply(this,arguments)||this};
_.f(xi,_.e);_.t=xi.prototype;_.t.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.onKeyUp=function(L){if(L.keyCode===13)this.onTap()};
_.t.onTap=function(){this.data.recordClickEndpoint&&_.GR().resolve(_.$s).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var L=this.data.navigationEndpoint;L&&_.n(L,_.XN)&&_.GR().resolve(_.$s).resolveCommand(L,{form:{element:this.hostElement}})};
_.t.readChanged=function(){var L;_.Az(this.hostElement,"unread",!((L=this.data)==null?0:L.read))};
_.t.dataChanged=function(){this.data&&_.Az(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.t.computeThumbnailSize=function(){var L;return((L=this.data)==null?0:L.highPriorityNotification)?32:48};
_.t.getEndpointURL=function(L){return L&&!_.n(L,_.XN)?this.componentBehavior.computeHref_(L):null};
_.t.getEndpointData=function(L){return L&&!_.n(L,_.XN)?L:null};
xi.prototype.computeThumbnailSize=xi.prototype.computeThumbnailSize;xi.prototype.dataChanged=xi.prototype.dataChanged;xi.prototype.readChanged=xi.prototype.readChanged;xi.prototype.onKeyUp=xi.prototype.onKeyUp;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],xi.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],xi.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],xi.prototype,"data",void 0);_.r([_.Y({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.Q("design:type",Number)],xi.prototype,"thumbnailSize",void 0);_.r([_.SA("keyup"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent]),_.Q("design:returntype")],xi.prototype,"onKeyUp",null);
_.r([_.iA("data.read"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xi.prototype,"readChanged",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xi.prototype,"dataChanged",null);_.r([_.iA("data.highPriorityNotification"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xi.prototype,"computeThumbnailSize",null);
_.r([_.P({is:"ytd-notification-renderer",disableElementRegistration:!0})],xi);
_.m(xi,"ytd-notification-renderer",function(){if(otG!==void 0)return otG;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return otG=L},{mode:1});var RAY;var qh=function(){return _.e.apply(this,arguments)||this};
_.f(qh,_.e);qh.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"}}}};
qh.prototype.computeActionButtonClass=function(L){return!L.actionButtons||L.actionButtons.length<=1?"single-button":L.description?"vertical-buttons":"horizontal-buttons"};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],qh.prototype,"data",void 0);_.r([_.P({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],qh);
_.m(qh,"ytd-playlist-show-metadata-renderer",function(){if(RAY!==void 0)return RAY;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return RAY=L},{mode:1});var cxM;_.l4("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var L9=function(){return _.e.apply(this,arguments)||this};
_.f(L9,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],L9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],L9.prototype,"data",void 0);_.r([_.P({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],L9);
_.m(L9,"ytd-purchase-item-renderer",function(){if(cxM!==void 0)return cxM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return cxM=L},{mode:1});var ntV;var KhV={};KhV.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(L){if(L)return L.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(L){if(L==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.l4("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var Z5=function(){return _.e.apply(this,arguments)||this};
_.f(Z5,_.e);Z5.prototype.onYtNavigate=function(L){var Z=this.openPopupBehavior.getNavigationEndpointPopupAction(L.detail.endpoint);Z&&(L.stopPropagation(),this.openPopupBehavior.openPopup(Z))};
Z5.prototype.onYtNavigate=Z5.prototype.onYtNavigate;_.r([_.y(KhV.YtSimpleTextSectionBehavior),_.Q("design:type",Object)],Z5.prototype,"ytSimpleTextSectionBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.W0),_.Q("design:type",Object)],Z5.prototype,"openPopupBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Z5.prototype,"data",void 0);
_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Z5.prototype,"onYtNavigate",null);_.r([_.P({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],Z5);
_.m(Z5,"ytd-simple-text-section-renderer",function(){if(ntV!==void 0)return ntV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ntV=L},{mode:1});var f0M;_.l4("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var kBt=function(){return _.e.apply(this,arguments)||this};
_.f(kBt,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],kBt.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],kBt.prototype,"data",void 0);_.r([_.P({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],kBt);
_.m(kBt,"ytd-unlimited-page-feature-info-renderer",function(){if(f0M!==void 0)return f0M;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return f0M=L},{mode:1});var yxt;var wsf;var NF=function(){return _.e.apply(this,arguments)||this};
_.f(NF,_.e);NF.prototype.dataChanged=function(){if(this.data){var L=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);L&&(L=_.r$(L,screen.width),this.hostElement.style.backgroundImage="url("+L+")")}};
NF.prototype.dataChanged=NF.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],NF.prototype,"data",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],NF.prototype,"dataChanged",null);_.r([_.P({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],NF);
_.m(NF,"ytd-post-redemption-section-renderer",function(){if(wsf!==void 0)return wsf;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return wsf=L},{mode:1});var ULV;var SE=function(){return _.e.apply(this,arguments)||this};
_.f(SE,_.e);SE.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],SE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],SE.prototype,"data",void 0);_.r([_.P({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],SE);
_.m(SE,"ytd-ypc-post-redemption-renderer",function(){if(ULV!==void 0)return ULV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ULV=L},{mode:1});_.l4("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var ia=function(){var L=_.e.apply(this,arguments)||this;L.MIN_CODE_LENGTH=12;L.MAX_CODE_LENGTH=24;return L};
_.f(ia,_.e);_.t=ia.prototype;_.t.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.t.created=function(){this.riskService=new _.ePL;this.loadPaymentThenable=_.dF_(_.X7("YPC_MB_URL"))};
_.t.ready=function(){var L=this;this.code.addEventListener("keypress",function(Z){L.onCodeInputKeypress(Z)})};
_.t.dataChanged=function(){var L=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(Z){Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())N=N.value,N.type==="attributes"&&N.attributeName==="dark"&&L.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.t.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var L=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+L+")")}};
_.t.computeRedeemButton=function(L){(L=this.get("redeemButton.buttonRenderer",L))&&(L=Object.assign({},L,{serviceEndpoint:void 0}));return L};
_.t.onRedeemButtonTap=function(L){L.stopPropagation();b1i();this.redeemCode()};
_.t.redeemCode=function(){var L=this;this.isLoading=!0;var Z=this.riskService.init();_.yz([Z,this.loadPaymentThenable]).then(function(){var N=L.data.redeemButton.buttonRenderer.serviceEndpoint,S=_.I5t(),u=_.Pt.payments.business.integration.ClientTokenFactory.createClientToken(_.n(N,_.ggN).countryCode,S);S={c:L.code.value.trim(),rd:window.btoa(S),ctk:u};N&&_.GR().resolve(_.$s).resolveCommand(N,{form:Object.assign({},S,{element:L.hostElement})})},function(){L.showGenericError();
Mfq("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.H8(Error("Jo"))})};
_.t.onYtServiceRequestCompleted=function(L){L.stopPropagation();this.isLoading=!1;var Z,N;this.errorMessage=(Z=L.detail)==null?void 0:(N=Z.data)==null?void 0:N.errorMessage;var S,u;this.postRedemptionRenderer=(S=L.detail)==null?void 0:(u=S.data)==null?void 0:u.renderer;var T,W;if(L=(T=L.detail)==null?void 0:(W=T.data)==null?void 0:W.redirectEndpoint)this.isLoading=!0,_.QT(this.hostElement,"yt-navigate",{endpoint:L});this.errorMessage?Mfq("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
L)&&_.Fe("ypcRedeemFlowSucceeded")};
_.t.onYtServiceRequestError=function(L){L.stopPropagation();this.isLoading=!1;if(L=this.get("detail.error.message",L))this.errorMessage=_.s9(L);Mfq("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.t.onInvokeInstrumentManagerActionCompleted=function(L){L.stopPropagation();this.redeemCode()};
_.t.onInvokeInstrumentManagerActionError=function(L){L.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",L)){case "instrumentManagerLoadError":this.showGenericError();Mfq("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Mfq("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Fe("ypcRedeemFlowCancelled")}};
_.t.onInput=function(){var L=this;_.YD(this,"onInput",function(){var Z=L.code.value.trim();L.redeemButtonDisabled=Z.length<L.MIN_CODE_LENGTH||Z.length>L.MAX_CODE_LENGTH},200)};
_.t.onCodeInputKeypress=function(L){L.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(b1i(),this.redeemCode())};
_.t.computeImageUrl=function(L){return L?_.r$(L.thumbnails,600):null};
_.t.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
ia.prototype.onInvokeInstrumentManagerActionError=ia.prototype.onInvokeInstrumentManagerActionError;ia.prototype.onInvokeInstrumentManagerActionCompleted=ia.prototype.onInvokeInstrumentManagerActionCompleted;ia.prototype.onYtServiceRequestError=ia.prototype.onYtServiceRequestError;ia.prototype.onYtServiceRequestCompleted=ia.prototype.onYtServiceRequestCompleted;ia.prototype.dataChanged=ia.prototype.dataChanged;
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ia.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ia.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],ia.prototype,"isLoading",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],ia.prototype,"redeemButtonDisabled",void 0);
_.r([_.Y(),_.Q("design:type",Object)],ia.prototype,"errorMessage",void 0);_.r([_.Y(),_.Q("design:type",Object)],ia.prototype,"postRedemptionRenderer",void 0);_.r([_.Y(),_.Q("design:type",Object)],ia.prototype,"observer",void 0);_.r([_.TX("#code"),_.Q("design:type",HTMLInputElement)],ia.prototype,"code",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ia.prototype,"dataChanged",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],ia.prototype,"onYtServiceRequestCompleted",null);_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],ia.prototype,"onYtServiceRequestError",null);
_.r([_.SA("yt-invoke-instrument-manager-action-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],ia.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.r([_.SA("yt-invoke-instrument-manager-action-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],ia.prototype,"onInvokeInstrumentManagerActionError",null);_.r([_.P({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],ia);
_.m(ia,"ytd-redeem-code-renderer",function(){if(yxt!==void 0)return yxt;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return yxt=L},{mode:1});var YGV;_.l4("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var ua=function(){var L=_.e.apply(this,arguments)||this;L.businessEmailDisplayState="HIDE_SECTION";return L};
_.f(ua,_.e);_.t=ua.prototype;_.t.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}}}}}};
_.t.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"};
_.t.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.t.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Uo(_.HUs),this.businessEmailDisplayState="CAPTCHA"))};
_.t.onYtServiceRequestCompleted=function(L){var Z;if((Z=L.detail.data)==null?0:Z.businessEmail)this.businessEmail=L.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var N;if((N=L.detail.data)==null?0:N.errorMessage)this.businessEmailErrorMessage=L.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.t.computeEmailHref=function(L){return"mailto:"+L};
_.t.computeSafeUrl=function(L){if(L)return _.mY(L)};
_.t.onBusinessEmailCaptchaSubmit=function(){var L;(L=this.data)!=null&&L.onBusinessEmailRevealClickCommand&&(L=this.JSC$21976_captchaTextarea.value)&&(L={recaptcha_response_token:L,channel_id:this.data.channelId},_.GR().resolve(_.$s).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},L,{element:this.hostElement})}))};
_.t.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.gd.Object.defineProperties(ua.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 L,Z;return!((L=this.data)==null||!L.primaryLinks)&&!((Z=this.data)==null?0:Z.links)&&this.data.primaryLinks.every(function(N){return N.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!((L=this.data)==null||!L.primaryLinks)&&!((Z=this.data)==null?0:Z.links)&&!this.shouldShowNewLinks}}});
ua.prototype.onYtServiceRequestCompleted=ua.prototype.onYtServiceRequestCompleted;ua.prototype.dataChanged=ua.prototype.dataChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],ua.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ua.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ua.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.TX("#g-recaptcha-response"),_.Q("design:type",HTMLTextAreaElement)],ua.prototype,"JSC$21976_captchaTextarea",void 0);_.r([_.Y(),_.Q("design:type",Object)],ua.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],ua.prototype,"businessEmailDisplayState",void 0);_.r([_.Y(),_.Q("design:type",String)],ua.prototype,"businessEmail",void 0);_.r([_.Y(),_.Q("design:type",String)],ua.prototype,"businessEmailErrorMessage",void 0);
_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ua.prototype,"hideDetailsSection",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ua.prototype,"dataChanged",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ua.prototype,"shouldShowNewLinks",null);_.r([_.w("data","shouldShowLinks"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ua.prototype,"shouldShowLegacyLinks",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],ua.prototype,"onYtServiceRequestCompleted",null);_.r([_.P({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],ua);
_.m(ua,"ytd-channel-about-metadata-renderer",function(){if(YGV!==void 0)return YGV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return YGV=L},{mode:1});var eA6;_.l4("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var TJ=function(){return _.e.apply(this,arguments)||this};
_.f(TJ,_.e);TJ.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]]"}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],TJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],TJ.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Number)],TJ.prototype,"lockupContainerType",void 0);_.r([_.Y(),_.Q("design:type",String)],TJ.prototype,"thumbnailFixedWidth",void 0);
_.r([_.P({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],TJ);
_.m(TJ,"ytd-channel-featured-content-renderer",function(){if(eA6!==void 0)return eA6;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return eA6=L},{mode:1});var I0n;_.l4("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var tB=function(){var L=_.e.apply(this,arguments)||this;L.roundContainer=!0;L.amsterdamEnabled=_.c("enable_desktop_amsterdam_info_panels");return L};
_.f(tB,_.e);_.t=tB.prototype;_.t.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.t.dataChanged=function(){this.imageWidth=this.imageHeight=24;var L=this.data;L.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!L.style&&L.image&&L.image.thumbnails.length&&(L=L.image.thumbnails[0],this.imageWidth=L.width||0,this.imageHeight=L.height||0)};
_.t.computeSource=function(L){return L.secondarySource?_.jM(L.secondarySource):_.jM(L.source)};
_.t.computeClarifyStyle=function(L){return L?L.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.t.isLargeStyle=function(L){return L==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.t.computeBackgroundStyle=function(L){return L?L.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.t.computeHasActionButton=function(L){return!!L.actionButton};
_.t.computeHasBottomSection=function(L){return!!L.ctaHasBottomSection};
_.t.computeIsSourceMissing=function(L){return L.ctaHasBottomSection===!1?!0:L&&this.computeSource(L)?!1:!0};
_.t.computeSecondaryEndpoint=function(L){return L.secondaryEndpoint||L.endpoint};
tB.prototype.dataChanged=tB.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],tB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],tB.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Number)],tB.prototype,"imageWidth",void 0);_.r([_.Y(),_.Q("design:type",Number)],tB.prototype,"imageHeight",void 0);
_.r([_.Y({computed:"computeSecondaryEndpoint(data)"}),_.Q("design:type",Object)],tB.prototype,"secondaryEndpoint",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.Q("design:type",Boolean)],tB.prototype,"hasActionButton",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.Q("design:type",Boolean)],tB.prototype,"hasBottomSection",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.Q("design:type",Boolean)],tB.prototype,"missingSource",void 0);_.r([_.Y({computed:"computeIcon_(data.icon)"}),_.Q("design:type",String)],tB.prototype,"icon",void 0);_.r([_.Y({computed:"computeIcon_(data.secondaryIcon)"}),_.Q("design:type",String)],tB.prototype,"secondaryIcon",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.Q("design:type",String)],tB.prototype,"clarifyStyle",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.Q("design:type",String)],tB.prototype,"backgroundStyle",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],tB.prototype,"roundContainer",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],tB.prototype,"amsterdamEnabled",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tB.prototype,"dataChanged",null);
_.r([_.P({is:"ytd-clarification-renderer",disableElementRegistration:!0})],tB);
_.m(tB,"ytd-clarification-renderer",function(){if(I0n!==void 0)return I0n;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return I0n=L},{mode:1});var dLf;var a0n;var O2=function(){var L=_.e.apply(this,arguments)||this;L.amsterdamEnabled=_.c("enable_desktop_amsterdam_info_panels");return L};
_.f(O2,_.e);_.t=O2.prototype;_.t.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.t.computeIcon=function(L){return L?"yt-icons:"+L.toLowerCase():null};
_.t.computeUseContacts=function(L){return!!L.contacts&&L.contacts.length>0};
_.t.computePhoneContact=function(L){var Z,N;return(Z=L.contacts)==null?void 0:(N=Z.find(function(S){var u;return(S==null?void 0:(u=S.icon)==null?void 0:u.iconType)==="PHONE"}))==null?void 0:N.actionText};
_.t.computeSmsContact=function(L){var Z,N;return(Z=L.contacts)==null?void 0:(N=Z.find(function(S){var u;return(S==null?void 0:(u=S.icon)==null?void 0:u.iconType)==="SMS"}))==null?void 0:N.actionText};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],O2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],O2.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],O2.prototype,"amsterdamEnabled",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.Q("design:type",Boolean)],O2.prototype,"useContacts",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.Q("design:type",String)],O2.prototype,"phoneContact",void 0);_.r([_.P({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],O2);
_.m(O2,"ytd-single-action-emergency-support-renderer",function(){if(a0n!==void 0)return a0n;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return a0n=L},{mode:1});_.l4("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var Wf=function(){var L=_.e.apply(this,arguments)||this;L.roundedContainer=!0;L.amsterdamEnabled=_.c("enable_desktop_amsterdam_info_panels");return L};
_.f(Wf,_.e);Wf.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"}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Wf.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Wf.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Wf.prototype,"roundedContainer",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Wf.prototype,"amsterdamEnabled",void 0);
_.r([_.P({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],Wf);
_.m(Wf,"ytd-emergency-onebox-renderer",function(){if(dLf!==void 0)return dLf;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return dLf=L},{mode:1});var hAq;_.l4("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Vj=function(){return _.e.apply(this,arguments)||this};
_.f(Vj,_.e);Vj.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"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Vj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Vj.prototype,"data",void 0);_.r([_.P({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Vj);
_.m(Vj,"ytd-exploratory-results-renderer",function(){if(hAq!==void 0)return hAq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return hAq=L},{mode:1});var sFM;_.l4("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var ba=function(){var L=_.e.apply(this,arguments)||this;L.messageData=null;return L};
_.f(ba,_.e);_.t=ba.prototype;_.t.onServiceRequestCompleted=function(L,Z){L=Z.actions||[];Z=0;for(var N=L.length;Z<N;Z++){var S=L[Z],u=void 0,T=void 0;if((u=_.n(S,_.YZ))==null?0:(T=u.item)==null?0:T.messageRenderer)this.messageData=_.n(S,_.YZ).item.messageRenderer}};
_.t.dataChanged=function(){var L=this.data;this.hostElement.hidden=!1;_.Az(this.hostElement,"is-channel",L&&!L.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.t.computeThumbnailWidth=function(L){return L?126:56};
_.t.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.t.onSubmitTap=function(){var L=this.data,Z=this.selectedResponseIndex;L!==void 0&&Z!==void 0&&(L=L.responses[Z],L.responseData&&_.GR().resolve(_.$s).resolveCommand(L.responseData,{form:{element:this.hostElement}}))};
_.t.onDismissTap=function(){this.hostElement.hidden=!0;var L=this.data;L!==void 0&&L.dismissalEndpoint&&_.GR().resolve(_.$s).resolveCommand(L.dismissalEndpoint,{form:{element:this.hostElement}})};
_.t.updateSelectedResponseIndexFromBinding=function(L){this.selectedResponseIndex=L.detail.value};
ba.prototype.onSelectedResponseIndexChange=ba.prototype.onSelectedResponseIndexChange;ba.prototype.dataChanged=ba.prototype.dataChanged;ba.prototype.onServiceRequestCompleted=ba.prototype.onServiceRequestCompleted;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ba.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ba.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],ba.prototype,"messageData",void 0);
_.r([_.Y(),_.Q("design:type",Number)],ba.prototype,"selectedResponseIndex",void 0);_.r([_.TX("#submit-button"),_.Q("design:type",HTMLButtonElement)],ba.prototype,"submitButton",void 0);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],ba.prototype,"onServiceRequestCompleted",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ba.prototype,"dataChanged",null);
_.r([_.iA("selectedResponseIndex"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ba.prototype,"onSelectedResponseIndexChange",null);_.r([_.P({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],ba);
_.m(ba,"ytd-feedback-elicitation-single-question-renderer",function(){if(sFM!==void 0)return sFM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return sFM=L},{mode:1});var jFM;var MF=function(){return _.e.apply(this,arguments)||this};
_.f(MF,_.e);MF.prototype.computeThumbnailWidth=function(L){return L?602:428};
MF.prototype.updateWideFromBinding=function(L){this.wide=L.detail.value};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],MF.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],MF.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],MF.prototype,"wide",void 0);_.r([_.P({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],MF);
_.m(MF,"ytd-newspaper-hero-video-renderer",function(){if(jFM!==void 0)return jFM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return jFM=L},{mode:1});var Et8;var PH8=function(){return _.e.apply(this,arguments)||this};
_.f(PH8,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],PH8.prototype,"rendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],PH8.prototype,"data",void 0);_.r([_.P({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],PH8);
_.m(PH8,"ytd-newspaper-mini-video-renderer",function(){if(Et8!==void 0)return Et8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Et8=L},{mode:1});var psw;_.l4("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var g8=function(){return _.e.apply(this,arguments)||this};
_.f(g8,_.e);g8.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"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],g8.prototype,"data",void 0);_.r([_.P({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],g8);
_.m(g8,"ytd-newspaper-renderer",function(){if(psw!==void 0)return psw;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return psw=L},{mode:1});var zAV;_.l4("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var GJ=function(){var L=_.e.apply(this,arguments)||this;L.isSegment=!1;L.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};L.nextContinuation={continuationType:"playlistVideoListContinuation"};return L};
_.f(GJ,_.e);_.t=GJ.prototype;_.t.created=function(){var L=this;this.JSC$22009_ytReorderableController=new _.BWq(101,function(Z){L.handleDrop(Z)})};
_.t.attached=function(){_.GR();var L;(L=_.GR().resolve(_.gv(_.k8)))!=null&&(L.playlistVideoListElement=this.hostElement)};
_.t.detached=function(){var L;(L=_.GR().resolve(_.gv(_.k8)))!=null&&(L.playlistVideoListElement=void 0);L=_.GR().resolve(_.gv(_.op));_.c("web_enable_voting_animation")&&L&&(L.parentElem=void 0,L.videos=[],L.continuationsPresent=!1,L.showRefreshPill=!1);_.wX(this.JSC$22009_ytReorderableController)};
_.t.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"}}}}}};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.t.dataChanged=function(){var L=_.GR().resolve(_.gv(_.op));if(_.c("web_enable_voting_animation")&&this.data&&L){var Z=_.QJ(this.hostElement).querySelector("#contents");Z&&(L.parentElem=Z);L.addVideos(this.data.contents)}_.wX(this.JSC$22009_ytReorderableController)};
_.t.onRendererstamperFinished=function(){this.canReorder&&_.xsh(this.JSC$22009_ytReorderableController,_.QJ(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.t.onPlaylistReloading=function(){this.isReloading=!0};
_.t.onUpdateSetVideoId=function(L){if(L.detail&&this.data&&this.data.contents){var Z=L.detail;L=this.data.contents.findIndex(function(u){var T;return((T=u.playlistVideoRenderer)==null?void 0:T.videoId)===Z.videoId});
if(!(L<0)&&Z.setVideoId&&(this.set("data.contents."+L+".playlistVideoRenderer.setVideoId",Z.setVideoId),_.c("web_enable_voting_animation"))){var N;if(L=_.n((N=this.data.contents[L].playlistVideoRenderer)==null?void 0:N.engagementBar,_.xhB)){var S;(S=L.actions)==null||S.forEach(function(u){if(u=_.n(u,_.qZ1))u.itemId=Z.setVideoId})}(N=_.GR().resolve(_.gv(_.op)))&&gt8(N,Z.videoId,Z.setVideoId)}}};
_.t.computeContentsClass=function(L){return L?"reloading":""};
_.t.computeIsSortable=function(L,Z){return L&&Z>0&&!this.isSegment&&!_.c("shorts_in_playlists_web")};
_.t.computeIsEditable=function(L){return L};
_.t.computeCanReorder=function(L){return L};
_.t.handlePlaylistRemoveVideosAction=function(L){if(this.get("playlistRemoveVideosAction.setVideoIds",L)&&this.data&&this.data.contents){L=_.n(L,_.d90).setVideoIds;for(var Z=this.data.contents.length-1;Z>=0;){var N=this.data.contents[Z].playlistVideoRenderer;N&&N.setVideoId&&L.includes(N.setVideoId)&&this.splice("data.contents",Z,1);Z--}_.XJ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.t.updateIndices=function(){if(this.data&&this.data.contents)for(var L=0;L<this.data.contents.length;L++)this.set("data.contents."+L+".playlistVideoRenderer.index",_.s9(String(L+1)))};
_.t.handleDrop=function(L){L=L.currDragItem;var Z=_.EG(L.parentNode.childNodes,L),N=this.data.contents.splice(Number(_.jM(L.data.index))-1,1)[0];this.data.contents.splice(Z,0,N);Z=Z?this.get("contents."+(Z-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();L=this.buildReorderServiceEndpoint(L.data.setVideoId,Z);this.ytComponentBehavior.resolveCommand(L)};
_.t.buildReorderServiceEndpoint=function(L,Z){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",L),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",Z),this.data.onReorderEndpoint):null};
_.t.handleUpdatePlaylistAction=function(L){var Z;(L=_.n((Z=_.n(L,_.aXO))==null?void 0:Z.updatedRenderer,_.dNh))&&this.canReorder!==L.canReorder&&this.set("data.canReorder",L.canReorder);L&&L.contents&&(this.set("data.contents",L.contents),this.isReloading=!1);L&&L.continuations&&this.set("data.continuations",L.continuations)};
_.t.handleAddRendererToItemSectionAction=function(L){var Z,N=(Z=_.n(L,l0t))==null?void 0:Z.renderer,S;N&&((S=_.n(L,l0t))==null?void 0:S.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,N),L=_.GR().resolve(_.gv(_.op)),_.c("web_enable_voting_animation")&&L&&(N&&(Z=_.BkG(N))&&L.recommendedVideos.push({itemId:Z,videoId:_.LvA(N),voteCount:_.Z9h(N),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.t.isVotingEnabledOnPlaylist=function(L){if(!L)return!1;L=_.O(L);for(L=L.next();!L.done;L=L.next()){var Z=void 0;return!!_.n((Z=L.value.playlistVideoRenderer)==null?void 0:Z.engagementBar,_.xhB)}return!1};
_.t.onAppendContinuationItemsActionFinished=function(){var L;this.isVotingEnabledOnPlaylist((L=this.data)==null?void 0:L.contents)&&(this.updateIndices(),L=_.GR().resolve(_.gv(_.op)),_.c("web_enable_voting_animation")&&L&&this.data&&L.addVideos(this.data.contents))};
_.t.updateVideoData=function(L){if(L.detail&&this.data&&this.data.contents){var Z=L.detail;L=Z.toIdx;var N=Z.itemId,S=Z.newVoteCount,u=Z.voteStatus;Z=Z.hideItem;var T,W,V=(T=this.data)==null?void 0:(W=T.contents)==null?void 0:W.findIndex(function(l){return _.BkG(l)===N});
if(!(V<0)){T=this.data.contents[V];var M;if((M=T.playlistVideoRenderer)==null?0:M.voteCount)T.playlistVideoRenderer.voteCount=S;var G;if(M=_.n((G=T.playlistVideoRenderer)==null?void 0:G.engagementBar,_.xhB)){var D;(D=M.actions)==null||D.forEach(function(l){(l=_.n(l,_.qZ1))&&l.initialState&&(l.initialState.votes=S,l.initialState.status=u)})}this.data.contents.splice(V,1);
Z||this.data.contents.splice(L,0,T);this.updateIndices()}}};
GJ.prototype.updateVideoData=GJ.prototype.updateVideoData;GJ.prototype.onAppendContinuationItemsActionFinished=GJ.prototype.onAppendContinuationItemsActionFinished;GJ.prototype.onUpdateSetVideoId=GJ.prototype.onUpdateSetVideoId;GJ.prototype.onPlaylistReloading=GJ.prototype.onPlaylistReloading;GJ.prototype.onRendererstamperFinished=GJ.prototype.onRendererstamperFinished;GJ.prototype.dataChanged=GJ.prototype.dataChanged;
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],GJ.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.i_.YtNextContinuationBehavior),_.Q("design:type",Object)],GJ.prototype,"ytNextContinuationBehavior",void 0);
_.r([_.y(_.Sq),_.Q("design:type",Object)],GJ.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],GJ.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],GJ.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],GJ.prototype,"isReloading",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],GJ.prototype,"isSegment",void 0);
_.r([_.Y({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.Q("design:type",Boolean)],GJ.prototype,"isSortable",void 0);_.r([_.Y({computed:"computeIsEditable(data.isEditable)"}),_.Q("design:type",Boolean)],GJ.prototype,"isEditable",void 0);_.r([_.Y({computed:"computeCanReorder(data.canReorder)"}),_.Q("design:type",Boolean)],GJ.prototype,"canReorder",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],GJ.prototype,"dataChanged",null);_.r([_.SA("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],GJ.prototype,"onRendererstamperFinished",null);_.r([_.SA("yt-playlist-reloading"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],GJ.prototype,"onPlaylistReloading",null);
_.r([_.SA("yt-update-set-video-id"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],GJ.prototype,"onUpdateSetVideoId",null);_.r([_.SA("yt-append-continuation-items-action-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],GJ.prototype,"onAppendContinuationItemsActionFinished",null);
_.r([_.SA("yt-update-video-data-voting-animation"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],GJ.prototype,"updateVideoData",null);_.r([_.P({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],GJ);
_.m(GJ,"ytd-playlist-video-list-renderer",function(){if(zAV!==void 0)return zAV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return zAV=L},{mode:_.Qr("kevlar_poly_si_batch_j047")?1:2});var mLV;var FH=function(){return _.e.apply(this,arguments)||this};
_.f(FH,_.e);FH.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"}}}}};
FH.prototype.onTextWrapperTap=function(L){var Z=this.data&&this.data.navigationEndpoint;Z&&!_.PQ(_.sx(L),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.QT(this.hostElement,"yt-navigate",{endpoint:Z})};
FH.prototype.dataChanged=function(){var L=this.get("data.offerButton.buttonRenderer.serviceEndpoint");L&&L.commandMetadata&&_.n(L.commandMetadata,_.hc)&&_.n(L.commandMetadata,_.hc).fireAutomatically&&_.GR().resolve(_.$s).resolveCommand(L,{form:{element:this.hostElement}})};
FH.prototype.dataChanged=FH.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],FH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Lb),_.Q("design:type",Object)],FH.prototype,"ytdLockupBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],FH.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.Q("design:type",Boolean)],FH.prototype,"useBiggerThumbs",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.vW("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],FH.prototype,"biggerThumbsStyle",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],FH.prototype,"leftAligned",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],FH.prototype,"dataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-movie-renderer"})],FH);
_.m(FH,"ytd-movie-renderer",function(){if(mLV!==void 0)return mLV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return mLV=L},{mode:1});var Jxi;var $x=function(){var L=_.e.apply(this,arguments)||this;L.rounded=!0;L.pageAttachedTo=void 0;L.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return L};
_.f($x,_.e);$x.prototype.attached=function(){this.pageAttachedTo=_.GR().resolve(_.mR).getCurrentPage();_.QT(this.hostElement,"yt-player-attached",this.player)};
$x.prototype.detached=function(){var L;if((L=this.pageAttachedTo)==null?0:L.hostElement)_.QT(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
$x.prototype.dataChanged=function(){var L;if((L=this.data)==null?0:L.videoId)L={video_id:this.data.videoId,autoplay:!0},!_.c("miniplayer_stop_channel_video_autoplay_killswitch")&&_.GR().resolve(_.yk).isMiniplayerActive()&&(L.pause_at_start=!0,L.autoplay=!1),this.player.loadVideoWithPlayerVars(L)};
$x.prototype.handleSignalActionPausePlayer=function(){_.r9().pause()};
$x.prototype.dataChanged=$x.prototype.dataChanged;_.r([_.Y(),_.Q("design:type",Object)],$x.prototype,"data",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],$x.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],$x.prototype,"rounded",void 0);_.r([_.TX("#player"),_.Q("design:type",Object)],$x.prototype,"player",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$x.prototype,"dataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],$x);
_.m($x,"ytd-channel-video-player-renderer",function(){if(Jxi!==void 0)return Jxi;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Jxi=L},{mode:1});var CHt;var rxV;var QFn;var D5=function(){var L=_.e.apply(this,arguments)||this;L.playing=!1;L.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Hs(L);L.active=!1;return L};
_.f(D5,_.e);_.t=D5.prototype;_.t.detached=function(){this.stop()};
_.t.play=function(){var L=this,Z,N,S,u,T;return _.b(function(W){if(W.nextAddress==1)return L.active=!0,Z=L.get("data.inlinePlaybackEndpoint.watchEndpoint"),N=Z.videoId||L.data.videoId,S=Z.startTimeSeconds||0,u=Z.playerParams||null,_.c("kevlar_player_update_killswitch")?W.yield(L.playerEl.update({args:{video_id:N,startSeconds:S,player_params:u}}),2):(L.playerEl.loadVideoWithPlayerVars({video_id:N,startSeconds:S,player_params:u,autoplay:!0}),W.jumpTo(2));if(W.nextAddress!=4)return W.yield(L.playerEl.getPlayerPromise(),
4);T=W.yieldResult;T.unloadModule("annotations_module");T.addEventListener("onStateChange",function(V){L.onPlayerStateChange(V)});
_.w7(W)})};
_.t.onPlayerStateChange=function(L){if(this.active)switch(this.playing=L===1,L){case 1:_.QT(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.QT(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.t.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.t.resize=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1)return N.yield(L.playerEl.getPlayerPromise(),2);Z=N.yieldResult;Z.setSize(NaN,NaN);_.w7(N)})};
_.r([_.Y(),_.Q("design:type",Object)],D5.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],D5.prototype,"playing",void 0);_.r([_.Y(),_.Q("design:type",Object)],D5.prototype,"playerId",void 0);_.r([_.TX("#player"),_.Q("design:type",Object)],D5.prototype,"playerEl",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],D5);
_.m(D5,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(QFn!==void 0)return QFn;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return QFn=L},{mode:1});var Xsq;var Axn;var la=function(){var L=_.e.apply(this,arguments)||this;L.width=0;return L};
_.f(la,_.e);_.t=la.prototype;_.t.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Nd(this,this.onEnded));this.mp4El.addEventListener("error",_.Nd(this,this.onError))};
_.t.detached=function(){this.videoEl.removeEventListener("ended",_.Nd(this,this.onEnded));this.mp4El.removeEventListener("error",_.Nd(this,this.onError))};
_.t.play=function(){var L=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var Z=this.videoEl.play();Z?Z.then(function(){L.handleVideoStartPlaying()}).catch(function(){_.QT(L.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.QT(this.hostElement,"yt-video-thumbnail-not-playing")};
_.t.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.t.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.t.dataChanged=function(){var L;if((L=this.data)==null?0:L.thumbnailPlaceholder)L=_.r$(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+L+")";this.stop();this.autoplay&&this.play()};
_.t.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.t.onEnded=function(){this.stop();_.QT(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.t.onError=function(){_.QT(this.hostElement,"yt-video-thumbnail-error")};
_.t.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.t.getVideoThumbnail=function(L){if(L&&L.length)return L[0]};
la.prototype.dataChanged=la.prototype.dataChanged;_.r([_.Y(),_.Q("design:type",Object)],la.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],la.prototype,"animatePlaceholderOnEntrance",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],la.prototype,"autoplay",void 0);_.r([_.Y({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.Q("design:type",Object)],la.prototype,"videoThumbnail",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],la.prototype,"loop",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],la.prototype,"isVideoPlaying",void 0);_.r([_.Y(),_.Q("design:type",Object)],la.prototype,"width",void 0);_.r([_.TX("#mp4"),_.Q("design:type",HTMLElement)],la.prototype,"mp4El",void 0);_.r([_.TX("#placeholder"),_.Q("design:type",HTMLElement)],la.prototype,"placeholderEl",void 0);_.r([_.TX("#video"),_.Q("design:type",HTMLVideoElement)],la.prototype,"videoEl",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],la.prototype,"dataChanged",null);_.r([_.ch({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],la);
_.m(la,"yt-video-as-thumbnail-details",function(){if(Axn===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Xsq===void 0&&(Xsq=document.createElement("template"));var S=Xsq;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Axn=L}L=Axn;return L},{mode:2});var vf=function(){var L=_.e.apply(this,arguments)||this;L.disableGridStateAware=!1;L.animationEnabled=_.c("enable_web_ketchup_hero_animation");L.transitioningOut=!1;L.narrow=!1;L.narrower=!1;L.isCarouselInFeed=!1;L.videoTimeoutJobId=0;L.panelTimeoutJobId=0;L.panelTimeoutJobStartMs=0;L.actionMap={"yt-window-resized":"onWindowResized"};return L};
_.f(vf,_.e);_.t=vf.prototype;_.t.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.t.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var L;this.player&&((L=this.data)==null?0:L.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.t.attached=function(){this.onWindowResized()};
_.t.detached=function(){this.clearTimeouts()};
_.t.onWindowResized=function(){this.updateSize()};
_.t.computePanelLayout=function(L){return L&&L.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.t.playVideo=function(){var L;this.video&&((L=this.data)==null?0:L.videoThumbnail)&&this.video.play();var Z;this.player&&((Z=this.data)==null?0:Z.inlinePlaybackRenderer)&&this.player.play()};
_.t.stopVideo=function(){var L;this.video&&((L=this.data)==null?0:L.videoThumbnail)&&this.video.stop();var Z;this.player&&((Z=this.data)==null?0:Z.inlinePlaybackRenderer)&&this.player.stop()};
_.t.transitionOut=function(){var L=this;this.transitioningOut=!0;return new Promise(function(Z){var N=function(){_.QJ(L.hostElement).querySelector("#action-button").removeEventListener("animationend",N);_.ro.cancelJob(S);Z();L.transitioningOut=!1};
var S=_.sI(_.ro,N,1E3);_.QJ(L.hostElement).querySelector("#action-button").addEventListener("animationend",N);L.player&&(L.player.playing=!1)})};
_.t.computeMetadataOrder=function(L){return L&&L.metadataOrder&&L.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?L.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.t.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.t.computeAvatarSize=function(L){return L&&L.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.t.onContentClick=function(L){if(!_.PQ(_.sx(L),this.hostElement,["A".toString(),"BUTTON".toString()])){var Z;if((Z=this.data)==null?0:Z.navigationEndpoint){var N;this.componentBehavior.resolveCommand((N=this.data)==null?void 0:N.navigationEndpoint)}}};
_.t.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.t.setBackgroundImage=function(L){if(L=this.getBackgroundImageUrl(L))_.QJ(this.hostElement).querySelector("#hero").style.backgroundImage="url("+L+")"};
_.t.setScrimLayer=function(L){var Z=this.getScrimLayerColorStops(L);L=((L==null?void 0:L.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(L=180);_.X7("HTML_DIR")==="rtl"&&(L=-L);Z&&(_.QJ(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+L+"deg, "+Z+")")};
_.t.isNarrower=function(){return this.hostElement.clientWidth<vf.NARROW_VERSION_SIZE};
_.t.getScrimLayerColorStops=function(){var L,Z=(L=this.data)==null?void 0:L.scrimColorValues;if(!Z)return null;if(Z.length===1)return L=_.Rs(Z[0]),L+" 0%, "+L+" 100%";if(Z.length===3){var N=[0,72,98];return Z.map(function(S,u){return _.Rs(S)+" "+N[u]+"%"}).join(",")}return null};
_.t.getBackgroundImageUrl=function(L){return L&&L.largeFormFactorBackgroundThumbnail?_.r$((L.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||L.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.t.onPlaying=function(){this.startVideoTimeout()};
_.t.onEnded=function(){this.rotate()};
_.t.startPanelTimeout=function(){var L=this;if(!this.panelTimeoutJobId){var Z=this.get("data.minPanelDisplayDurationMs");Z&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.sI(_.ro,function(){L.rotate()},Z))}};
_.t.startVideoTimeout=function(){var L=this;if(!this.videoTimeoutJobId){_.ro.cancelJob(this.panelTimeoutJobId);var Z=Date.now()-this.panelTimeoutJobStartMs;Z=Math.max(0,this.get("data.minPanelDisplayDurationMs")-Z);Z=Math.max(this.get("data.minVideoPlayDurationMs")||0,Z);this.videoTimeoutJobId=_.sI(_.ro,function(){L.rotate()},Z)}};
_.t.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.ro.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.ro.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.t.rotate=function(){this.clearTimeouts();_.QT(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.gd.Object.defineProperties(vf.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.QJ(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.QJ(this.hostElement).querySelector("#video")}}});
_.gd.Object.defineProperties(vf,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
vf.prototype.onEnded=vf.prototype.onEnded;vf.prototype.onPlaying=vf.prototype.onPlaying;vf.prototype.dataChanged=vf.prototype.dataChanged;_.r([_.y(_.AE),_.Q("design:type",Object)],vf.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],vf.prototype,"componentBehavior",void 0);_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],vf.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.y(_.plc),_.Q("design:type",Object)],vf.prototype,"ytBooleanLogicBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],vf.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],vf.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],vf.prototype,"disableGridStateAware",void 0);_.r([_.Y(),_.Q("design:type",Object)],vf.prototype,"data",void 0);_.r([_.Y({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.Q("design:type",String)],vf.prototype,"panelLayout",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],vf.prototype,"animationEnabled",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],vf.prototype,"transitioningOut",void 0);
_.r([_.Y({computed:"computeMetadataOrder(data)"}),_.Q("design:type",Boolean)],vf.prototype,"metadataOrder",void 0);_.r([_.Y({computed:"computeByline(data)"}),_.Q("design:type",Object)],vf.prototype,"byline",void 0);_.r([_.Y({computed:"computeAvatarSize(data)"}),_.Q("design:type",Number)],vf.prototype,"avatarSize",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],vf.prototype,"narrow",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],vf.prototype,"narrower",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],vf.prototype,"layoutStyle",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],vf.prototype,"isCarouselInFeed",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vf.prototype,"dataChanged",null);_.r([_.SA("yt-default-promo-panel-renderer-playing"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vf.prototype,"onPlaying",null);
_.r([_.SA("yt-default-promo-panel-renderer-ended"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vf.prototype,"onEnded",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],vf);
_.m(vf,"ytd-default-promo-panel-renderer",function(){if(rxV!==void 0)return rxV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return rxV=L},{mode:1});_.l4("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var oD=function(){var L=_.e.apply(this,arguments)||this;L.narrower=!1;L.dotMenuVisible=!1;L.paginationThumbnailsVisible=!1;L.active=!0;L.disableGridStateAware=!1;L.actionMap={"yt-window-resized":"onWindowResized"};return L};
_.f(oD,_.e);_.t=oD.prototype;_.t.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]]"}}}}}};
_.t.attached=function(){document.addEventListener("yt-page-type-changed",_.Nd(this,this.onPageTypeChange));this.currentPageSubtype=_.uos(location.pathname);this.onWindowResized()};
_.t.detached=function(){this.jobId&&_.ro.cancelJob(this.jobId);this.updateSizeJobId&&_.ro.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Nd(this,this.onPageTypeChange))};
_.t.onPageTypeChange=function(L){this.active=L.detail.newPageSubtype===this.currentPageSubtype};
_.t.onWindowResized=function(){this.updateSize()};
_.t.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.t.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.t.setCarouselItem=function(L){L>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.ro.cancelJob(this.jobId);var Z=this.getCurrentPanelElement();Z&&Z.stopVideo();this.currentItemIndex=L%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(Z||(Z=this.getCurrentPanelElement()),Z.playVideo()):this.startRotationJob()};
_.t.scrollThumbnails=function(L){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var Z=this.getCurrentPaginationElement();if(Z){var N=_.QJ(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?N.style.transform="translateX(0)":(Z=Z.offsetWidth+8,N.style.transform="translateX(-"+Z*(L-Math.ceil(Math.floor(this.overlay.offsetWidth/Z)/2)+1)+"px)")}}};
_.t.onDataChanged=function(){var L=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.SW(_.ro,function(){var Z;(Z=L.getCurrentPanelElement())==null||Z.updateSize();L.updateSize()}))};
_.t.getCurrentPanelElement=function(){return _.QJ(_.QJ(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.t.getCurrentPaginationElement=function(){return _.QJ(_.QJ(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.t.getNavigationClass=function(L,Z){return L===Z?"selected":""};
_.t.getNavigationDurationStyle=function(L){return"animation-duration:"+(this.get("data.carouselItems."+L+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.t.onNavigationTap=function(L){var Z=this,N=L.model.index;N!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){Z.setCarouselItem(N)}),this.autorotateActive=!1)};
_.t.onVideoThumbnailEnded=function(){var L=this;if(this.shouldRotate()){var Z=this.getCurrentPaginationElement();Z&&(Z.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){Z.classList.remove("finished");L.setNextCarouselItem()}))}};
_.t.onVideoThumbnailError=function(){this.startRotationJob()};
_.t.onVideoNotPlaying=function(){this.startRotationJob()};
_.t.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.t.startRotationJob=function(){var L=this;_.ro.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.ro.addLowPriorityJob(function(){L.getCurrentPanelElement().transitionOut().then(function(){L.setNextCarouselItem()})},this.rotationTimeout))};
_.t.computeDotMenuVisible=function(L,Z){return!!L&&!!L.carouselItems&&L.carouselItems.length>1&&!L.paginationThumbnails||!!Z};
_.t.computePaginationThumbnailsVisible=function(L,Z){var N,S;return((S=L==null?void 0:(N=L.paginationThumbnails)==null?void 0:N.length)!=null?S:0)>1&&!Z};
_.t.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.t.computePaginatorAlignment=function(L){return(L==null?void 0:L.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.t.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.t.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.t.isNarrower=function(L){return(L!=null?L:0)<vf.NARROW_VERSION_SIZE};
oD.prototype.activeChanged=oD.prototype.activeChanged;oD.prototype.onVideoNotPlaying=oD.prototype.onVideoNotPlaying;oD.prototype.onVideoThumbnailError=oD.prototype.onVideoThumbnailError;oD.prototype.onVideoThumbnailEnded=oD.prototype.onVideoThumbnailEnded;oD.prototype.onDataChanged=oD.prototype.onDataChanged;_.r([_.y(_.AE),_.Q("design:type",Object)],oD.prototype,"ytdGridStateAwareBehavior",void 0);
_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],oD.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],oD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],oD.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],oD.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],oD.prototype,"currentItem",void 0);
_.r([_.Y(),_.Q("design:type",Number)],oD.prototype,"currentItemIndex",void 0);_.r([_.Y(),_.Q("design:type",Number)],oD.prototype,"rotationTimeout",void 0);_.r([_.Y(),_.Q("design:type",Number)],oD.prototype,"loopCount",void 0);_.r([_.Y({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.Q("design:type",String)],oD.prototype,"paginatorAlignment",void 0);_.r([_.Y(),_.Q("design:type",Number)],oD.prototype,"jobId",void 0);
_.r([_.Y(),_.Q("design:type",Number)],oD.prototype,"updateSizeJobId",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],oD.prototype,"isCarouselInFeed",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],oD.prototype,"narrower",void 0);_.r([_.Y({computed:"computeDotMenuVisible(data, narrower)"}),_.Q("design:type",Object)],oD.prototype,"dotMenuVisible",void 0);
_.r([_.Y({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.Q("design:type",Object)],oD.prototype,"paginationThumbnailsVisible",void 0);_.r([_.Y({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.Q("design:type",String)],oD.prototype,"layoutType",void 0);_.r([_.Y({value:!0,reflectToAttribute:!0}),_.Q("design:type",Boolean)],oD.prototype,"autorotateActive",void 0);_.r([_.Y(),_.Q("design:type",Object)],oD.prototype,"active",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],oD.prototype,"disableGridStateAware",void 0);_.r([_.TX("#overlay"),_.Q("design:type",HTMLElement)],oD.prototype,"overlay",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oD.prototype,"onDataChanged",null);
_.r([_.SA("yt-video-thumbnail-ended"),_.SA("yt-default-promo-panel-renderer-rotate"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oD.prototype,"onVideoThumbnailEnded",null);_.r([_.SA("yt-video-thumbnail-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oD.prototype,"onVideoThumbnailError",null);
_.r([_.SA("yt-video-thumbnail-not-playing"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oD.prototype,"onVideoNotPlaying",null);_.r([_.Vr("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oD.prototype,"activeChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],oD);
_.m(oD,"ytd-carousel-item-renderer",function(){if(CHt!==void 0)return CHt;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return CHt=L},{mode:2});var H17;var BPY;var xLG;var qGn;var RD=function(){var L=_.e.apply(this,arguments)||this;L.originalQuery=null;L.originalEndpoint=null;return L};
_.f(RD,_.e);RD.prototype.computeShowOriginalQueryWithoutEndpoint_=function(L,Z){return!(!L||Z)};
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],RD.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],RD.prototype,"correctedText",void 0);_.r([_.Y(),_.Q("design:type",Object)],RD.prototype,"correctedQuery",void 0);_.r([_.Y(),_.Q("design:type",Object)],RD.prototype,"correctedEndpoint",void 0);_.r([_.Y(),_.Q("design:type",Object)],RD.prototype,"originalText",void 0);_.r([_.Y(),_.Q("design:type",Object)],RD.prototype,"originalQuery",void 0);
_.r([_.Y(),_.Q("design:type",Object)],RD.prototype,"originalEndpoint",void 0);_.r([_.Y({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.Q("design:type",Boolean)],RD.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.r([_.ch({is:"yt-search-query-correction",disableElementRegistration:!0})],RD);
_.m(RD,"yt-search-query-correction",function(){if(qGn===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;xLG===void 0&&(xLG=document.createElement("template"));var S=xLG;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);qGn=L}L=qGn;return L},{mode:2});_.l4("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var LMn=function(){return _.e.apply(this,arguments)||this};
_.f(LMn,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],LMn.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],LMn.prototype,"data",void 0);_.r([_.ch({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],LMn);
_.m(LMn,"yt-did-you-mean-renderer",function(){if(BPY===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;H17===void 0&&(H17=document.createElement("template"));var S=H17;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);BPY=L}L=BPY;return L},{mode:2});var Z0n;var N57;_.l4("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var SYn=function(){return _.e.apply(this,arguments)||this};
_.f(SYn,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],SYn.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],SYn.prototype,"data",void 0);_.r([_.ch({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],SYn);
_.m(SYn,"yt-including-results-for-renderer",function(){if(N57===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Z0n===void 0&&(Z0n=document.createElement("template"));var S=Z0n;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);N57=L}L=N57;return L},{mode:2});var i0i;var uht;_.l4("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var cf=function(){return _.e.apply(this,arguments)||this};
_.f(cf,_.e);cf.prototype.computeExtraClasses_=function(L,Z){var N="";L&&(N+=" "+L.toLowerCase().replace(/_/g,"-"));Z&&(N+=" "+Z.toLowerCase().replace(/_/g,"-"));return N};
cf.prototype.computeUrlImg_=function(){var L=this.data;L.image&&(_.QJ(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.r$(L.image.thumbnails,Number.MAX_VALUE)+")")};
cf.prototype.computeUrlImg_=cf.prototype.computeUrlImg_;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],cf.prototype,"data",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cf.prototype,"computeUrlImg_",null);_.r([_.ch({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],cf);
_.m(cf,"yt-music-pass-feature-info-renderer",function(){if(uht===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;i0i===void 0&&(i0i=document.createElement("template"));var S=i0i;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);uht=L}L=uht;return L},{mode:2});var T58;var ttn;_.l4("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var O0f=function(){return _.e.apply(this,arguments)||this};
_.f(O0f,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],O0f.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],O0f.prototype,"data",void 0);_.r([_.ch({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],O0f);
_.m(O0f,"yt-no-results-found-showing-results-for-renderer",function(){if(ttn===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;T58===void 0&&(T58=document.createElement("template"));var S=T58;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);ttn=L}L=ttn;return L},{mode:2});var WM6;var Vtq;_.l4("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var b09=function(){return _.e.apply(this,arguments)||this};
_.f(b09,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],b09.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],b09.prototype,"data",void 0);_.r([_.ch({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],b09);
_.m(b09,"yt-results-without-quotes-renderer",function(){if(Vtq===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;WM6===void 0&&(WM6=document.createElement("template"));var S=WM6;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Vtq=L}L=Vtq;return L},{mode:2});var MtM;var gL6;_.l4("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var GVq=function(){return _.e.apply(this,arguments)||this};
_.f(GVq,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],GVq.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],GVq.prototype,"data",void 0);_.r([_.ch({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],GVq);
_.m(GVq,"yt-search-no-results-renderer",function(){if(gL6===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;MtM===void 0&&(MtM=document.createElement("template"));var S=MtM;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);gL6=L}L=gL6;return L},{mode:2});var FMn;var $IM;_.l4("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var DIM=function(){return _.e.apply(this,arguments)||this};
_.f(DIM,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],DIM.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],DIM.prototype,"data",void 0);_.r([_.ch({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],DIM);
_.m(DIM,"yt-showing-results-for-renderer",function(){if($IM===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;FMn===void 0&&(FMn=document.createElement("template"));var S=FMn;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);$IM=L}L=$IM;return L},{mode:2});var lN9;var vLY;var oL7;var RQn;var n9=function(){var L=_.e.apply(this,arguments)||this;L.answerExpanded=!1;return L};
_.f(n9,_.e);n9.prototype.toggleAnswer_=function(L){var Z=_.jD(L);Z&&Z.classList.contains("yt-simple-endpoint")||(L.preventDefault(),L.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
n9.prototype.toggleAnswer_=n9.prototype.toggleAnswer_;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],n9.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],n9.prototype,"answerExpanded",void 0);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],n9.prototype,"toggleAnswer_",null);
_.r([_.ch({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],n9);
_.m(n9,"yt-generic-faq-question-renderer",function(){if(RQn===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;oL7===void 0&&(oL7=document.createElement("template"));var S=oL7;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);RQn=L}L=RQn;return L},{mode:2});_.l4("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var K9=function(){return _.e.apply(this,arguments)||this};
_.f(K9,_.e);K9.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],K9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],K9.prototype,"data",void 0);_.r([_.ch({is:"yt-faq-section-renderer",disableElementRegistration:!0})],K9);
_.m(K9,"yt-faq-section-renderer",function(){if(vLY===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;lN9===void 0&&(lN9=document.createElement("template"));var S=lN9;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);vLY=L}L=vLY;return L},{mode:2});var csw;var nLf;_.l4("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var f9=function(){return _.e.apply(this,arguments)||this};
_.f(f9,_.e);
f9.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"}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],f9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],f9.prototype,"data",void 0);_.r([_.ch({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],f9);
_.m(f9,"yt-offer-item-expanded-renderer",function(){if(nLf===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;csw===void 0&&(csw=document.createElement("template"));var S=csw;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);nLf=L}L=nLf;return L},{mode:2});var KMn;var fNV;_.l4("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var kx=function(){return _.e.apply(this,arguments)||this};
_.f(kx,_.e);
kx.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"}}}}};
kx.prototype.computeFullWidthMode=function(L){return!(!L||!L.fullWidthMode)};
kx.prototype.computeBorderlessMode=function(L){return!(!L||!L.borderlessMode)};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],kx.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],kx.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.Q("design:type",Boolean)],kx.prototype,"fullWidthMode",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.Q("design:type",Boolean)],kx.prototype,"borderlessMode",void 0);_.r([_.ch({is:"yt-offer-item-renderer",disableElementRegistration:!0})],kx);
_.m(kx,"yt-offer-item-renderer",function(){if(fNV===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;KMn===void 0&&(KMn=document.createElement("template"));var S=KMn;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);fNV=L}L=fNV;return L},{mode:2});var kVt;var ys9;_.l4("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var yj=function(){return _.e.apply(this,arguments)||this};
_.f(yj,_.e);yj.prototype.computeAriaLevel_=function(L){return this.getLevelID_(L)};
yj.prototype.getLevelID_=function(L){return(L=L.match(/[0-9]+$/))&&L.length==1?L[0]:"1"};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],yj.prototype,"data",void 0);_.r([_.Y({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.Q("design:type",String)],yj.prototype,"ariaLevel",void 0);_.r([_.Y({value:"heading",reflectToAttribute:!0}),_.Q("design:type",String)],yj.prototype,"role",void 0);
_.r([_.Y({value:-1,reflectToAttribute:!0}),_.Q("design:type",Number)],yj.prototype,"tabindex",void 0);_.r([_.ch({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],yj);
_.m(yj,"yt-subscription-product-header-renderer",function(){if(ys9===void 0){var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;kVt===void 0&&(kVt=document.createElement("template"));var S=kVt;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);ys9=L}L=ys9;return L},{mode:2});var wlM;var UI6;_.l4("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var w8=function(){return _.e.apply(this,arguments)||this};
_.f(w8,_.e);w8.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:_.vQ("menuRenderer"),events:!0}}};
w8.prototype.onStampFinished_=function(){_.QJ(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
w8.prototype.onStampFinished_=w8.prototype.onStampFinished_;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],w8.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],w8.prototype,"data",void 0);_.r([_.SA("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],w8.prototype,"onStampFinished_",null);
_.r([_.ch({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],w8);
_.m(w8,"yt-subscription-product-renderer",function(){if(UI6===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;wlM===void 0&&(wlM=document.createElement("template"));var S=wlM;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);UI6=L}L=UI6;return L},{mode:2});var YYw;var eQ8;_.l4("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var U2=function(){return _.e.apply(this,arguments)||this};
_.f(U2,_.e);U2.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
U2.prototype.imageScrimColorValuesChanged_=function(){var L,Z=(L=this.data)==null?void 0:L.imageScrimColorValues;_.QJ(this.hostElement).querySelector("#scrim").style.backgroundColor=Z?_.Rs(Z[0]):"transparent"};
U2.prototype.imageScrimColorValuesChanged_=U2.prototype.imageScrimColorValuesChanged_;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],U2.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],U2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],U2.prototype,"data",void 0);
_.r([_.iA("data.imageScrimColorValues"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],U2.prototype,"imageScrimColorValuesChanged_",null);_.r([_.ch({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],U2);
_.m(U2,"yt-subscription-product-upsell-offer-renderer",function(){if(eQ8===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;YYw===void 0&&(YYw=document.createElement("template"));var S=YYw;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);eQ8=L}L=eQ8;return L},{mode:2});var INY;var dI9;var aN6;var hQ9;var sOM;var jOf;var Yx=function(){return _.e.apply(this,arguments)||this};
_.f(Yx,_.e);Yx.prototype.onYtServiceRequestError_=function(L){_.Ib(this.hostElement,L.detail.error.message)};
Yx.prototype.onYtServiceRequestError_=Yx.prototype.onYtServiceRequestError_;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Yx.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yx.prototype,"data",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],Yx.prototype,"collapsible",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Yx.prototype,"isManageRed",void 0);
_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Yx.prototype,"onYtServiceRequestError_",null);_.r([_.ch({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],Yx);
_.m(Yx,"yt-single-ypc-offer-renderer",function(){if(jOf===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;sOM===void 0&&(sOM=document.createElement("template"));var S=sOM;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);jOf=L}L=jOf;return L},{mode:2});var eE=function(){return _.e.apply(this,arguments)||this};
_.f(eE,_.e);eE.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],eE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],eE.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],eE.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],eE.prototype,"isManageRed",void 0);_.r([_.ch({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],eE);
_.m(eE,"yt-single-ypc-offer-list-renderer",function(){if(hQ9===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;aN6===void 0&&(aN6=document.createElement("template"));var S=aN6;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);hQ9=L}L=hQ9;return L},{mode:2});var ELt;var PtY;_.l4("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var ID=function(){return _.e.apply(this,arguments)||this};
_.f(ID,_.e);ID.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ID.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ID.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ID.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],ID.prototype,"isManageRed",void 0);_.r([_.ch({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],ID);
_.m(ID,"yt-ypc-offers-list-renderer",function(){if(PtY===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;ELt===void 0&&(ELt=document.createElement("template"));var S=ELt;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);PtY=L}L=PtY;return L},{mode:2});_.l4("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var d8=function(){return _.e.apply(this,arguments)||this};
_.f(d8,_.e);
d8.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}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],d8.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],d8.prototype,"data",void 0);_.r([_.ch({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],d8);
_.m(d8,"yt-unlimited-manage-subscription-page-renderer",function(){if(dI9===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;INY===void 0&&(INY=document.createElement("template"));var S=INY;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);dI9=L}L=dI9;return L},{mode:2});var plq;var zQY;var aD=function(){return _.e.apply(this,arguments)||this};
_.f(aD,_.e);_.t=aD.prototype;_.t.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.t.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.t.onKeypress_=function(L){L.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.t.handleHeaderTap_=function(L){L.preventDefault();L.stopPropagation();this.expandOffers_()};
_.t.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.t.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
aD.prototype.dataChanged_=aD.prototype.dataChanged_;_.r([_.y(_.Ub),_.Q("design:type",Object)],aD.prototype,"ironA11yKeysBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],aD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],aD.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],aD.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],aD.prototype,"offersVisible_",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aD.prototype,"dataChanged_",null);_.r([_.ch({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],aD);
_.m(aD,"yt-collapsible-ypc-offer-renderer",function(){if(zQY===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;plq===void 0&&(plq=document.createElement("template"));var S=plq;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);zQY=L}L=zQY;return L},{mode:2});var mIi;var Js8;_.l4("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var hB=function(){return _.e.apply(this,arguments)||this};
_.f(hB,_.e);_.t=hB.prototype;_.t.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.t.dataChanged_=function(){if(this.data.backgroundImage){var L=_.r$(this.data.backgroundImage.thumbnails,screen.width),Z=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=Z?"linear-gradient(180deg, "+Z+"), url("+L+")":"url("+L+")";this.data.gtmId&&_.dH(this.data.gtmId,_.X7("GL",""))}};
_.t.onYtServiceRequestError_=function(L){_.Ib(this.hostElement,L.detail.error.message)};
_.t.getScrimLayerColorStops_=function(){var L,Z,N=(L=this.data.unlimitedHeaderV2Data)==null?void 0:(Z=L.unlimitedHeaderV2Data)==null?void 0:Z.scrimLayerColors;if(!N)return null;var S=100/N.length;return N.map(function(u,T){T*=S;return _.Rs(u)+" "+T+"%"}).join(",")};
_.t.computeLogoWithPadding=function(L){var Z,N,S;return(L=(Z=L.unlimitedLogoImage)==null?void 0:(N=Z.thumbnails)==null?void 0:(S=N[0])==null?void 0:S.height)&&L%31===0?!0:!1};
hB.prototype.onYtServiceRequestError_=hB.prototype.onYtServiceRequestError_;hB.prototype.dataChanged_=hB.prototype.dataChanged_;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],hB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.r([_.Y({computed:"computeLogoWithPadding(data)"}),_.Q("design:type",Boolean)],hB.prototype,"logoWithPadding",void 0);
_.r([_.Y(),_.Q("design:type",Object)],hB.prototype,"data",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hB.prototype,"dataChanged_",null);_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],hB.prototype,"onYtServiceRequestError_",null);_.r([_.ch({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],hB);
_.m(hB,"yt-unlimited-page-header-renderer",function(){if(Js8===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;mIi===void 0&&(mIi=document.createElement("template"));var S=mIi;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Js8=L}L=Js8;return L},{mode:2});var Ct8;var rsn;_.l4("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var s2=function(){return _.e.apply(this,arguments)||this};
_.f(s2,_.e);s2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],s2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],s2.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],s2.prototype,"data",void 0);_.r([_.ch({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],s2);
_.m(s2,"yt-unlimited-user-notification-renderer",function(){if(rsn===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Ct8===void 0&&(Ct8=document.createElement("template"));var S=Ct8;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);rsn=L}L=rsn;return L},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.$d5=_.p(function(L){var Z=_.Ek(L,{numberOfChips:5}).numberOfChips;return _.g("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.g(_.ju,{each:function(){return Array(Z==null?void 0:Z())}},function(){return _.g("div",{class:"ytGhostChipShelfChip"})}))},"Vi");_.Ddk=_.p(function(L){var Z=function(){var W;return((W=L.data)==null?void 0:W.call(L).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},N=_.SC(),S=_.GR().resolve(_.hC);
_.zp(function(){requestAnimationFrame(function(){var W;(W=N.lottieEl)==null||W.addEventListener("DOMLoaded",function(){var V;(V=L.onLottieLoaded)==null||V.call(L)})})});
var u=function(){var W;return(W=L.data)==null?void 0:W.call(L).loadingAnimationA11yLabel},T={};
return _.g("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var W;return((W=L.data)==null?void 0:W.call(L).targetId)||""},
"aria-label":function(){return u()||""},
role:function(){return u()?"progressbar":void 0}},_.g(_.KK,{"aria-hidden":"true",
className:_.qg((T.ytChatLoadingViewModelRtl=S==="rtl",T)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:Z()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||Z()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:Z()}}},
animationRef:N}))},"Xi");
}catch(e){_._DumpException(e)}
try{
var Nxq,SVP,iov,Tx8,tS5,OoQ,Wd0,VSm,bom,MSv,vb0,w_,lbk,GDg,D40,$4c,Fdw,gbY,obq,R5s,c2Y,nbq,Ug,Kd5,fbv,wMk,e_,kDc,aR,Yy,IR,y2g,d_,U4q,YVk,e5Q,Ib8,d4m,abk,h5s,j6q,Eb5,Pev,pMq,z55,m4w,J2v,CeY,r2q,Q6k,A2y,Hok,BxY,qVw,ZHg,SUQ,iH0,u$y,Tds,OHv,W_Q,Vj8,bH0,Mjw,gd8,GcQ,$7c,odw,vdg,D7c,RCY,lf5,cQm,kcm,ffY,ndv,K_5,sg,yQP,U7k,YUs,eCY,jMm,Ed0,PNY,pXy,zCv,m7Q,JQP,CNq,rQY,QMY,AQ0,HHg,Bd8,x78,qUq,Lgv,Zvm,N0k,uJy,T0Y,af8;
_.ky=function(L){var Z=new _.sr("Error accessing DB");return _.ogt().then(function(N){return new Promise(function(S,u){try{var T=N.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(L);T.onsuccess=function(){var W=T.result;S(W?W.value:null)};
T.onerror=function(){Z.params={key:L,source:"onerror"};u(Z)}}catch(W){Z.params={key:L,
thrownError:String(W)},u(Z)}})},function(){return null})};
Nxq=function(L,Z){return _.Lk(L.entities,"inlineExpansionEntity",Z)};
SVP=function(L,Z){return _.Lk(L.entities,"flowStateEntity",Z)};
iov=function(L,Z){if(L&&Z){var N=_.WT();N().set(L,Z);_.GH1(N())}};
_.ulQ=function(L,Z){if(L&&Z){var N=_.WT();N().set(L,Z);_.GH1(N())}};
Tx8=function(L,Z){return _.Lk(L.entities,"contextNoteUserRatingEntityPayload",Z)};
tS5=function(L){return _.hx(L,function(Z){return Z.languageCode==="en"})};
OoQ=function(L){var Z=yl;if(_.mCc(L))L.setOption("captions","stickyLoading",{}),L.setOption("captions","track",{});else{var N=_.hx(_.RPx(L),function(S){return S.displayName===Z});
L.setOption("captions","track",N)}};
Wd0=function(L){if(!L)return 0;var Z=L.getPresentingPlayerType(),N=L.getVideoData();return N&&N.isLive?(L=L.getProgressState(Z),L.seekableEnd-L.seekableStart):L.getDuration(Z)};
VSm=function(L,Z){for(var N=_.O(Object.keys(L)),S=N.next();!S.done;S=N.next())if(S=S.value,L[S]!==Z[S])return!1;return!0};
bom=function(){return document.getElementById("player-control-overlay")};
MSv=function(L){L!==-1&&!_.c("player_controls_log_creation_killswitch")&&bom()&&(_.Rq("pcu_cs",L),_.Rq("pcu_ce"))};
vb0=function(L,Z){var N=_.jA(L,{}),S=gbY("top",Z),u=gbY("bottom",Z),T=gbY("left",Z),W=gbY("right",Z);return _.u4({top:function(){return w_(N().position,S)},
bottom:function(){return w_(N().position,u)},
left:function(){return w_(N().position,T)},
right:function(){return w_(N().position,W)},
position:function(){return w_(N().positionType,GDg)},
height:function(){return w_(N().height,Ug)},
width:function(){return w_(N().width,Ug)},
"min-width":function(){return w_(N().minWidth,Ug)},
"min-height":function(){return w_(N().minHeight,Ug)},
"max-width":function(){return w_(N().maxWidth,Ug)},
"max-height":function(){return w_(N().maxHeight,Ug)},
"aspect-ratio":function(){return w_(N().aspectRatio,String)},
"margin-top":function(){return w_(N().margin,S)},
"margin-bottom":function(){return w_(N().margin,u)},
"margin-left":function(){return w_(N().margin,T)},
"margin-right":function(){return w_(N().margin,W)},
"padding-top":function(){return w_(N().padding,S)},
"padding-bottom":function(){return w_(N().padding,u)},
"padding-left":function(){return w_(N().padding,T)},
"padding-right":function(){return w_(N().padding,W)},
"flex-direction":function(){return w_(N().flexDirection,Fdw)},
"justify-content":function(){return w_(N().justifyContent,$4c)},
"align-items":function(){return w_(N().alignItems,D40)},
"flex-grow":function(){return w_(N().flexGrow,String)},
"flex-shrink":function(){return w_(N().flexShrink,String)},
"flex-basis":function(){return w_(N().flexBasis,Ug)},
"align-self":function(){return w_(N().alignSelf,D40)},
"flex-wrap":function(){return w_(N().flexWrap,lbk)},
"align-content":function(){return w_(N().alignContent,D40)}})};
w_=function(L,Z){return L!==void 0?Z(L):void 0};
lbk=function(L){switch(L){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
GDg=function(L){switch(L){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
D40=function(L){switch(L){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"}};
$4c=function(L){switch(L){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"}};
Fdw=function(L){switch(L){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"}};
gbY=function(L,Z){var N=Z==="rtl";switch(L){case "top":var S=obq;break;case "bottom":S=R5s;break;case "left":S=c2Y;break;default:S=nbq}return function(u){return w_(S(u,N),Ug)}};
obq=function(L){var Z=L.top;var N=L.vertical;L=L.all;var S;return(S=Z!=null?Z:N)!=null?S:L};
R5s=function(L){var Z=L.bottom;var N=L.vertical;L=L.all;var S;return(S=Z!=null?Z:N)!=null?S:L};
c2Y=function(L,Z){var N=L.left;var S=L.end;var u=L.start;var T=L.horizontal;L=L.all;var W,V;return(V=(W=N!=null?N:Z?S:u)!=null?W:T)!=null?V:L};
nbq=function(L,Z){var N=L.right;var S=L.end;var u=L.start;var T=L.horizontal;L=L.all;var W,V;return(V=(W=N!=null?N:Z?u:S)!=null?W:T)!=null?V:L};
Ug=function(L){var Z=L.value;switch(L.unit){case "YPC_DIMENSION_UNIT_POINT":return Z+"px";case "YPC_DIMENSION_UNIT_FRACTION":return Z+"%";default:return""+Z}};
Kd5=function(L){switch(L){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"}};
fbv=function(L){var Z=L!=null?L:{};L=Z.fontRole;var N=Z.fontSize;Z=Z.fontWeight;if(L!==null&&N!==null)switch(L){case "YPC_FONT_ROLE_DISPLAY":switch(N){case "YPC_FONT_SIZE_L":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(N){case "YPC_FONT_SIZE_L":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return Z===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(N){case "YPC_FONT_SIZE_XL":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return Z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
wMk=function(L,Z,N){function S(l){return Object.values(l).map(function(v){var R=v.productId;v=v.pricingOptionIndex;return Yy(u(R).pricingOptions,v).pricingOptionId})}
function u(l){return M().get(l)}
function T(l){l=S(l);N(l)}
function W(l,v){return Array.from(e_(l.pricingOptions)).filter(function(R){R=_.O(R);R.next();R=R.next().value;return IR(R.pricingGroupAttributes,v)}).map(function(R){return _.O(R).next().value})}
var V=d_([L,Z],function(l,v){var R=l==null?void 0:l.selectedPricingOptions;l={};var K=!0;if(R&&v.length)for(var U=_.O(v),d=U.next();!d.done;d=U.next()){d=d.value;var h=kDc(d.pricingOptions,function(J){a:{J=J.pricingOptionId;for(var C=_.O(R),X=C.next();!X.done;X=C.next())if(X.value===J){J=!0;break a}J=!1}return J});
if(h>=0){K=!1;var E=Yy(d.pricingOptions,h),A=void 0;l[d.groupId]={productId:d.productId,pricingOptionIndex:h,pricingGroupAttributes:(A=E)==null?void 0:A.pricingGroupAttributes}}}K&&v.length&&(K=Yy(v[0].pricingOptions,0),l[v[0].groupId]={productId:v[0].productId,pricingOptionIndex:0,pricingGroupAttributes:K==null?void 0:K.pricingGroupAttributes});return l}),M=d_([Z],function(l){return new Map(l.map(function(v){return[v.productId,
v]}))}),G=d_([Z],function(l){var v=new Map;
l=_.O(l);for(var R=l.next();!R.done;R=l.next()){var K=R.value;R=K.groupId;var U=K.productId;K=_.O(e_(K.pricingOptions));for(var d=K.next();!d.done;d=K.next()){var h=_.O(d.value);d=h.next().value;h=h.next().value;v.set(h.pricingOptionId,{groupId:R,productId:U,index:d,pricingOption:h,pricingGroupAttributes:h.pricingGroupAttributes})}}return v}),D=d_([Z],function(l){var v=new Map;
l=_.O(l);for(var R=l.next();!R.done;R=l.next()){var K=R.value;R=K.groupId;var U=K.productId,d=void 0;K=_.O(e_((d=K.pricingGroups)!=null?d:[]));for(d=K.next();!d.done;d=K.next()){var h=_.O(d.value);d=h.next().value;h=h.next().value;v.set(h.pricingGroupId,{groupId:R,productId:U,index:d,pricingGroup:h,pricingGroupAttributes:h.pricingGroupAttributes})}}return v});
return{getProductById:u,isProductSelected:function(l){var v=u(l);if(!v)return!1;var R;return((R=V()[v.groupId])==null?void 0:R.productId)===l},
getSelectedPricingOptions:function(){return Object.values(V()).map(function(l){var v=l.productId;l=l.pricingOptionIndex;return Yy(u(v).pricingOptions,l)})},
getSelectedPricingGroupAttributesByGroupId:function(l){var v;return(l=(v=V()[l])==null?void 0:v.pricingGroupAttributes)?Array.from(l):void 0},
getSelectedProductByGroupId:function(l){var v;return(l=(v=V()[l])==null?void 0:v.productId)?u(l):void 0},
onProductSelected:function(l){var v=u(l);if(v){var R=V(),K;if(((K=R[v.groupId])==null?void 0:K.productId)!==l){var U=(K=(U=R[v.groupId])==null?void 0:U.productId)?u(K):void 0;var d;K=(d=R[v.groupId])==null?void 0:d.pricingGroupAttributes;var h;d=(h=R[v.groupId])==null?void 0:h.pricingOptionIndex;if(U&&d!==void 0)if(K){h=W(U,K).indexOf(d);if(h===-1)throw Error("Xj`"+d+"`"+U.productId);d=W(v,K);h=h<d.length?d[h]:d.length>0?d[0]:0}else h=d<aR(v.pricingOptions)?d:0;else h=0;aR(v.pricingOptions)<=h&&(h=
0);d=Yy(v.pricingOptions,h);var E;U={};T(Object.assign({},R,(U[v.groupId]={productId:l,pricingOptionIndex:h,pricingGroupAttributes:(E=d==null?void 0:d.pricingGroupAttributes)!=null?E:[]},U)))}}},
onPricingOptionSelected:function(l){var v=G().get(l);if(v){l=v.groupId;var R=v.productId;v=v.index;var K=V(),U,d;if(((U=K[l])==null?void 0:U.productId)!==R||((d=K[l])==null?void 0:d.pricingOptionIndex)!==v){var h,E;U={};T(Object.assign({},K,(U[l]={productId:R,pricingOptionIndex:v,pricingGroupAttributes:(E=(h=K[l])==null?void 0:h.pricingGroupAttributes)!=null?E:[]},U)))}}},
onPricingGroupSelected:function(l){var v=D().get(l);if(v){l=v.groupId;var R=v.productId,K=v.pricingGroup.pricingGroupAttributes,U=u(R);if(U){v=V();var d=v[l].pricingGroupAttributes,h;if(((h=v[l])==null?void 0:h.productId)!==R||!IR(y2g(d,aR(K)),K)){h=Array.from(K);for(K=aR(K);K<aR(d);K++){var E="",A=!1,J=Array.from(h);J.push(Yy(d,K));for(var C=_.O(U.pricingGroups),X=C.next();!X.done;X=C.next())if(X=X.value,IR(X.pricingGroupAttributes,J)){h.push(Yy(d,K));A=!0;break}else E===""&&aR(X.pricingGroupAttributes)===
J.length&&IR(y2g(X.pricingGroupAttributes,h.length),h)&&(E=Yy(X.pricingGroupAttributes,K));A||h.push(E)}E=v[l].pricingOptionIndex;K=[];A=new Map;J=0;U=_.O(e_(U.pricingOptions));for(C=U.next();!C.done;C=U.next())X=_.O(C.value),C=X.next().value,X=X.next().value,IR(X.pricingGroupAttributes,h)&&K.push(C),IR(X.pricingGroupAttributes,d)&&A.set(C,J++);K.length===0?d=0:(d=A.get(E),d=d!==void 0&&d<K.length?K[d]:K[0]);U={};T(Object.assign({},v,(U[l]={productId:R,pricingOptionIndex:d,pricingGroupAttributes:h},
U)))}}}},
onClearGroupSelected:function(l){var v=V();v[l]&&(v=Object.fromEntries(Object.entries(v).filter(function(R){return _.O(R).next().value!==l})),T(v))}}};
e_=function(L){return function N(){var S,u,T,W,V;return _.xo(N,function(M){switch(M.nextAddress){case 1:_.Ks(M,2),S=0,u=_.O(L),T=u.next();case 4:if(T.done){M.jumpTo(2);break}W=T.value;V=_.q3;return M.yield([S++,W],7);case 7:V(M.yieldResult);T=u.next();M.jumpTo(4);break;case 2:_.ns(M),_.kS(M,0)}})}()};
kDc=function(L,Z){L=_.O(e_(L));for(var N=L.next();!N.done;N=L.next()){var S=_.O(N.value);N=S.next().value;S=S.next().value;if(Z(S))return N}return-1};
aR=function(L){var Z=0;for(L=L[Symbol.iterator]();!L.next().done;)++Z;return Z};
Yy=function(L,Z){L=_.O(e_(L));for(var N=L.next();!N.done;N=L.next()){var S=_.O(N.value);N=S.next().value;S=S.next().value;if(N===Z)return S}};
IR=function(L,Z){if(!L&&!Z)return!0;if(!L||!Z)return!1;L=Array.from(L);Z=Array.from(Z);if(L.length!==Z.length)return!1;for(var N=0;N<L.length;N++)if(L[N]!==Z[N])return!1;return!0};
y2g=function(L,Z){Z=Z===void 0?Infinity:Z;var N=[];L=_.O(e_(L));for(var S=L.next();!S.done;S=L.next()){var u=_.O(S.value);S=u.next().value;u=u.next().value;if(S>=Z)break;S>=0&&N.push(u)}return N};
d_=function(L,Z){var N,S;return function(){for(var u=L.map(function(W){return W()}),T=0;T<u.length;T++)if(!N||u[T]!==N[T]){N=u;
S=Z.apply(null,_.Pd(u));break}return S}};
U4q=function(L,Z,N){var S=[];L=_.O(L);for(var u=L.next();!u.done;u=L.next()){u=u.value;var T=void 0;((T=Z)==null?0:T.length)&&!IR(u.pricingGroupAttributes,Z)||S.push({pricingOption:u,isSelected:N.includes(u.pricingOptionId)})}return S};
YVk=function(L,Z){return _.Lk(L.entities,"pdpStateEntity",Z)};
e5Q=function(L){var Z,N;return!!(L.productId&&L.groupId&&((Z=L.pricingOptions)==null?0:Z.length)&&L.pricingOptions.every(function(S){return S.pricingOptionId})&&((N=L.pricingGroups)==null||!N.length||Array.isArray(L.pricingGroups)&&L.pricingGroups.every(function(S){return S.pricingGroupId&&S.pricingGroupAttributes&&S.pricingGroupAttributes.length>0})))};
Ib8=function(L,Z,N){return wMk(L,d_([Z],function(S){return S.filter(e5Q)}),N)};
d4m=function(L){var Z=void 0,N;for(N in L)if(L.hasOwnProperty(N)){Z=N;break}return Z};
abk=function(L,Z){return Z.length===0?[L]:[L.slice(0,Z[0]),L.slice(Z[0])].filter(function(N){return N.length>0})};
h5s=function(L){switch(L){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""}};
j6q=function(L,Z,N,S){S=Object.assign({},S);_.v9(S,s65,{selectedOptionId:L,primaryButtonOverride:N});_.hJ().dispatch(_.Mr("flowStateEntity",Z,S))};
Eb5=function(L,Z,N){!_.n(N,s65)&&L.noPreselect&&Z!==""&&L.defaultButtonOverride&&j6q("default",Z,L.defaultButtonOverride,N)};
Pev=function(L){switch(L){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"}};
pMq=function(L){switch(L){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"}};
z55=function(L,Z){if(Z)return"ytCardViewModelCardSelected";switch(L){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
m4w=function(L,Z){Z.includes(L)?Z=Z.filter(function(N){return N!==L}):Z.push(L);
return[].concat(_.Pd(Z))};
J2v=function(L,Z){return _.Lk(L.entities,"contextNoteFeedEntityPayload",Z)};
CeY=function(L,Z){switch(L){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return Z==null?void 0:Z.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return Z==null?void 0:Z.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return Z==null?void 0:Z.ratingNotHelpfulText}};
r2q=function(L,Z){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:L.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:L.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:L.deleteDialogTitle}]},dialogMessages:[{runs:[{text:L.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:L.deleteActionText}]},command:{performCommentActionEndpoint:{action:Z}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:L.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
Q6k=function(L,Z,N){var S;if(L&&((S=Z())==null?0:S.includes(L))){var u;N((u=Z())==null?void 0:u.filter(function(T){return T!==L}))}else N([].concat(_.Pd(Z()||[]),[L]))};
A2y=function(L,Z){if(L){var N=[];Z=_.O((Z==null?void 0:Z.checkboxes)||[]);for(var S=Z.next();!S.done;S=Z.next()){S=_.n(S.value,XM0);var u=void 0;((u=S)==null?0:u.value)&&L.includes(S.key||"")&&N.push(S.value)}return N}};
Hok=function(L){L.style.height="auto";L.style.height=L.scrollHeight+"px"};
BxY=function(L){return[L.syncStep,L.asyncStep].filter(function(Z){return Z!==void 0})};
qVw=function(L){var Z,N,S;if(L=(Z=L.structuredContextNoteFormSchema)==null?void 0:(N=Z.fieldSchemas)==null?void 0:(S=N.noteBody)==null?void 0:S.validationSchema)for(Z=_.O(BxY(L)),N=Z.next();!N.done;N=Z.next()){N=N.value.rules;if(!N)break;N=_.O(N);for(N=N.next();!N.done;N=N.next())return _.n(N.value,_.x4s)}};
ZHg=function(L){if(L){L=_.O(BxY(L));for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value.rules;if(!Z)break;Z=_.O(Z);for(Z=Z.next();!Z.done;Z=Z.next())return _.n(Z.value,L_c)}}};
SUQ=function(L){if(L){L=_.O(BxY(L));for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value.rules;if(!Z)break;Z=_.O(Z);for(Z=Z.next();!Z.done;Z=Z.next())return _.n(Z.value,Ndk)}}};
iH0=function(L){L=/^https?:\/\//.test(L)?L:"http://"+L;try{var Z=_.qG(L)}catch(N){return!1}if(Z.toString()!==L)return!1;L=Z.JSC$10031_domain_.split(".");return L.length>1&&L.every(function(N){return!!N})};
u$y=function(L,Z,N,S){var u;S=(u=S.structuredContextNoteData)==null?void 0:u.createCommentEndpoint;if(u=_.n(S,_.DWV))return u.commentText=_.s9(L),u.videoPositionMention=Z,u.sources=N,S};
Tds=function(L){return L==null?void 0:L.stringValue};
OHv=function(L,Z,N){L=L.map(function(S,u){return{listItemViewModel:{title:S.title,subtitle:S.subtitle,leadingImage:S.leadingImage,trailingImage:u===Z?tjY:void 0,rendererContext:{commandContext:{onTap:S.onTap}}}}});
return Object.assign({},N&&{header:{panelHeaderViewModel:{title:N}}},{content:{listViewModel:{listItems:L}}})};
W_Q=function(L,Z){if(L&&Z)switch(Z){case "SELECTION_TYPE_BOOL":return L.boolValue;case "SELECTION_TYPE_INT":return L.intValue;case "SELECTION_TYPE_STRING":return L.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return L.privacyStatusValue}};
Vj8=function(L){var Z;L=(Z=L.options)==null?void 0:Z.findIndex(function(N){return N.isSelected});
return L===void 0?-1:L};
bH0=function(L,Z,N){var S=function(){return L().label},u={},T=_.qg("ytDropdownViewModelLabel",(u.ytDropdownViewModelLabelError=Z,u));
return _.g(_.F,{cond:function(){return L().label&&!(N()===-1&&L().label&&!L().placeholderText)},
then:function(){return _.g("div",{class:T},_.g(_.qv,{text:S}))}})};
Mjw=function(L,Z){var N={};N=_.qg("ytDropdownViewModelTitle",(N.ytDropdownViewModelTitlePlaceholder=function(){return Z()===-1},N));
return _.g("div",{class:N},_.g(_.qv,{text:function(){var S=L();var u=Z();if(u===-1)S=S.placeholderText?S.placeholderText:S.label;else{var T,W;S=(T=S.options)==null?void 0:(W=T[u])==null?void 0:W.title}return S}}))};
gd8=function(L,Z){var N=function(){return L().hint};
return _.g(_.F7,null,_.g(_.F,{cond:function(){return N()&&!Z()},
then:function(){return _.g("div",{class:_.qg("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.g(_.qv,{text:N,className:"ytDropdownViewModelSupportText"}))}}),_.g(_.F,{cond:Z,
then:function(){return _.g("div",{id:"dropdown-view-model-error",role:"alert",class:_.qg("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.g(_.T0,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.g(_.qv,{text:Z,className:"ytDropdownViewModelSupportText"}))}}))};
GcQ=function(L,Z){var N=_.GR().resolve(_.Xd5);_.m0(function(){var S=L().id;S&&N!=null&&N.dropdownMap.set(S,Z)})};
$7c=function(L){L=_.n(L.scheduleButton,F_Y);L=_.n(L==null?void 0:L.primaryButton,_.NU);L=_.n(L==null?void 0:L.onTap,_.nY);var Z,N,S=((N=_.n(L,_.q2))==null?void 0:N.commands)||[L];N=_.O(S);for(L=N.next();!L.done&&!(Z=_.n(L.value,_.FcV));L=N.next());var u;Z=(u=Z)==null?void 0:u.createBroadcastRequest;if(!Z)throw Error("dk");return Z};
odw=function(L,Z,N){N=N===void 0?{}:N;var S,u;return _.b(function(T){if(S=D7c(Z))return T.return(S);(u=lf5(L,Z,N))&&vdg(Z,u);return T.return(u)})};
vdg=function(L,Z){var N=RCY(L);N&&Z.then(function(S){_.GR().resolve(_.R2).put(N,new _.co({innertubeResponse:S}))})};
D7c=function(L){if(L=RCY(L)){var Z=_.GR().resolve(_.R2);if(Z.has(L))return Z.get(L).then(function(N){return N==null?void 0:_.m4(N)})}return null};
RCY=function(L){var Z=_.n(L.endpoint,_.so);if(Z!=null&&Z.videoId)return Z={videoId:Z.videoId},_.c("web_imp_player_mute_params")&&(Z.mutedAtStart=L.startPlaybackInMutedState),_.hd("inline_playback",Z)};
lf5=function(L,Z,N){L=_.aV(L,Z.endpoint,cQm(Z,N)).then(function(S){return S});
return Promise.resolve(L)};
cQm=function(L,Z){Z=_.c("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!L.startPlaybackInMutedState},Z):Object.assign({},{vis:5,autonav:"1"},Z);var N;Z={contentPlaybackContext:_.r3(Z,(N=_.n(L.endpoint.commandMetadata,_.Nj))==null?void 0:N.url,window.location.href)};_.c("web_imp_player_mute_params")&&(Z.overrideMutedAtStart=!L.startPlaybackInMutedState);return Z};
kcm=function(L,Z){var N=window.MutationObserver;N&&(hT=new N(function(S,u){S=_.O(S);for(var T=S.next();!T.done;T=S.next()){T=T.value;var W;if(W=T.type==="childList"&&T.target)a:{W=L;T=ndv(T.target);W=ndv(W);for(var V=null,M=0;M<T.length;M++)if(W.includes(T[M])){if(M===0){W=!1;break a}V=T[M];break}V?(T=K_5(T,V),W=K_5(W,V),W=T<W):W=!1}if(W){Z();u.disconnect();break}}}),(N=ffY())&&hT.observe(N,{childList:!0,
subtree:!0}))};
ffY=function(){var L=document.getElementsByTagName("ytd-rich-grid-renderer");if(L.length>0)return L[0];L=document.getElementsByTagName("ytd-section-list-renderer");return L.length>0?L[0]:null};
ndv=function(L){for(var Z=[];L;)Z.push(L),L=L.parentElement;return Z};
K_5=function(L,Z){var N=Array.from(Z.children);Z=L.indexOf(Z);return Z>0?N.indexOf(L[Z-1]):-1};
sg=function(L,Z,N){N=N===void 0?{}:N;return _.iB(L,N,Z)};
yQP=function(L){switch(L){case "MUSIC":return!0;default:return!1}};
U7k=function(L){if(L=L==null?void 0:L.find(function(S){var u,T;return((u=_.n(S,wXv))==null?void 0:(T=u.inlinePlaybackBadgeData)==null?void 0:T.replicateAsTimestamp)===!0}))if(L=_.n(L,wXv),L==null?0:L.icon){var Z,N;
if((L=(Z=_.TOG(L.icon))==null?void 0:(N=Z.clientResource)==null?void 0:N.imageName)&&yQP(L))return L}};
YUs=function(L){return L==null?void 0:L.filter(function(Z){return Z.premiereTrailerBadgeRenderer})};
eCY=function(L){var Z,N=L==null?void 0:(Z=L.find(function(M){return M.thumbnailOverlayTimeStatusRenderer}))==null?void 0:Z.thumbnailOverlayTimeStatusRenderer,S,u;
if((N==null?0:(S=N.icon)==null?0:S.iconType)&&yQP(N==null?void 0:(u=N.icon)==null?void 0:u.iconType)){var T;return{icon:N==null?void 0:(T=N.icon)==null?void 0:T.iconType}}var W;if(Z=L==null?void 0:(W=L.find(function(M){return M.thumbnailOverlayBadgeViewModel}))==null?void 0:W.thumbnailOverlayBadgeViewModel)if(W=U7k(Z.thumbnailBadges))return{icon:W};
var V;if(L=L==null?void 0:(V=L.find(function(M){return M.thumbnailBottomOverlayViewModel}))==null?void 0:V.thumbnailBottomOverlayViewModel)if(V=U7k(L.badges))return{icon:V};
return{}};
jMm=function(L,Z){var N=IfY,S=_.O(_.nh(d7q(new af8(function(){},N,Z)),void 0,"PAnyd")),u=S.next().value,T=S.next().value,W=new af8(function(V){T(V)},N,Z);
_.ph(function(){Promise.resolve().then(function(){var V,M=(V=L())!=null?V:{};W.playerControlsData=M;_.c("player_controls_skip_double_signal_old")&&(W.lastSeenPlayerApi=_.kM(M.playerApi));_.c("player_controls_skip_double_signal_old")||(W.lastSeenPlayerApi=_.kM(M.playerApi));hCq(W)});
_.zs(function(){sM5(W)})},"HikUP");
_.zs(function(){sM5(W)});
return function(){return u()}};
Ed0=function(L){return function(Z){var N=L(),S={playerState:Z};if(Z===1){var u;(u=N.playerApi)==null||u.loadModule("captions")}if(Z===0){var T;(T=N.playerApi)==null||T.unloadModule("captions")}Z!==-1&&N.setState(S)}};
PNY=function(L){return function(Z){L().setState({playbackRate:Z})}};
pXy=function(L){return function(Z){var N=L(),S=N.playerApi,u=S==null?void 0:S.getVideoData(),T=(u==null?void 0:u.isLive)||!1;u=u==null?void 0:u.video_id;T={videoDuration:Wd0(S||void 0),isLive:T,videoId:u};T.videoId!==N.videoId&&(T=Object.assign({},_.fqG(S),T));if(Z==null?0:Z.playertype)T.playerType=Z.playertype;if(S){T.captionsAvailable=_.vJ(S);Z=T;var W;u=(W=S.getStoryboardLevel(S.getNumberOfStoryboardLevels()-1))==null?void 0:W.intervalMs;Z.storyboardInterval=u?u/1E3:void 0;T.captionsAvailable&&
(T.captionsEnabled=_.mCc(S))}T.volumeMuted=!(S==null||!S.isMuted());N.setState(T)}};
zCv=function(L){return function(Z){var N=L(),S=N.playerApi;if(S){var u=S.getPresentingPlayerType();Z={playedTime:Z||0,percentLoaded:S.getVideoLoadedFraction(),playerType:u};N.playerState===0&&(Z.playedTime=N.videoDuration);N.isLive&&(u=S.getProgressState(u),Z.playedTime-=u.seekableStart,Z.videoDuration=Wd0(S));if(N.playerType===1)S=!1;else{var T;if((T=N.uxConfig)==null?0:T.showCuedOverlay){var W;S=!((W=N.playerApi)==null?0:W.getPlayerStateObject(N.playerType).isDomPaused)}else S=!0}S&&delete Z.playedTime;
N.setState(Z)}}};
m7Q=function(L){return function(){var Z=L(),N,S,u,T={volume:(u=(N=Z.playerApi)==null?void 0:N.getVolume())!=null?u:0,volumeMuted:!((S=Z.playerApi)==null||!S.isMuted())};Z.setState(T)}};
JQP=function(L){return function(){var Z=L(),N=Z.playerApi;if(N){var S={captionsAvailable:_.vJ(N)};S.captionsAvailable&&(S.captionsEnabled=_.mCc(N));Z.setState(S)}}};
CNq=function(L){return function(){var Z=L();if(Z.playerApi&&!(Z.volumeMuted||Z.controlsVisible&&Z.isProbablyAScreenreaderUser)){Z.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var N;(N=document.querySelector(".player-control-play-pause-icon"))==null||N.focus()}}};
rQY=function(L){return{appApi:Object.assign({},_.lq1(),{showCaptionsToggleToast:function(Z){var N,S;(S=(N=L()).showCaptionsToggleToast)==null||S.call(N,Z)},
openInMiniplayer:function(){var Z,N;(N=(Z=L()).openInMiniplayer)==null||N.call(Z)}})}};
QMY=function(L,Z){var N,S,u;return!!(L==null?0:(N=L.playerResponse)==null?0:(S=N.playerConfig)==null?0:(u=S.inlinePlaybackConfig)==null?0:u.showScrubbingControls)&&!(Z==null?0:Z.hideScrubbingControls)};
_.XXm=function(L){var Z=!L.miniplayerIsActive;return[5,2,0].includes(L.miniplayerPlaybackState)||Z};
AQ0={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};HHg=function(L){this.onStepChangeCallback=function(){};
this.flowRenderer=L};
HHg.prototype.getCurrentStep=function(){var L=this,Z;return((Z=this.flowRenderer.steps)!=null?Z:[]).map(function(N){return _.n(N,_.jc)}).find(function(N){return N&&N.stepId===L.currentStepId})};
Bd8=function(L,Z){var N=Z.flowStateEntityKey,S=L.flowStates.get(N);if(S)return S;Z=new HHg(Z);L.flowStates.set(N,Z);return Z};
x78=function(L,Z){for(var N=_.O(L.flowStates.entries()),S=N.next();!S.done;S=N.next()){var u=_.O(S.value);S=u.next().value;u=u.next().value;if(u.flowRenderer.targetId===Z){L.flowStates.delete(S);break}}};
qUq=function(L,Z){L.onStepChangeCallback=Z;L.onStepChangeCallback(L.getCurrentStep())};
Lgv=function(L,Z){var N=L.getCurrentStep();if(!N||N.stepId!==Z){var S;((S=L.flowRenderer.steps)!=null?S:[]).map(function(u){return _.n(u,_.jc)}).find(function(u){return u&&u.stepId===Z})&&(L.currentStepId=Z,L.onStepChangeCallback(L.getCurrentStep()))}};
Zvm=function(L,Z){var N,S,u,T,W;_.b(function(V){if(!Z.length)return V.return([]);N=[];S=_.O(Z);for(u=S.next();!u.done;u=S.next())T=u.value,(W=L.resolveIcon(T))&&!L.iconCache[W.url]&&N.push(_.JWc(L,W).then(function(){}).catch(function(){}));
return V.return(Promise.all(N))})};
N0k=function(L,Z){var N=[];Z=(new Set(Z)).values();Z=_.O(Z);for(var S=Z.next();!S.done;S=Z.next()){S=S.value;for(var u=_.O(Object.values(AQ0)),T=u.next();!T.done;T=u.next())N.push({iconName:S,iconStyle:T.value})}Zvm(L.iconManager,N)};
_.Sok=function(L,Z,N){var S=N!=null?N:L.iconsToFetch;S!=null&&S.length?Z!==void 0&&Z>=0?_.sI(_.ro,function(){N0k(L,S)},Z):N0k(L,S):Promise.resolve()};
_.ivP=_.V8(function(L,Z,N){if(L.nextWireType_!==5)return!1;_.Mq(Z,N,_.IA(L.decoder_));return!0},function(L,Z,N){Z=_.csP(Z);
Z!=null&&(_.gw(L,N,5),_.Gi(L.encoder_,Z))},_.B5M);
uJy=[0,_.jd,_.ivP,-1];T0Y={sharedUi:_.dw0,a11y:_.ejY,entities:{}};_.t9m=function(){return _.XK({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
af8=function(L,Z,N){var S=this;this.renderFn=L;this.listeners=Z;this.context=N;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var u;this.lastSeenPlayerApi=_.kM((u=this.playerControlsData)==null?void 0:u.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.fqG(),void 0);_.c("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){d7q(S).setState({playerState:-1});S.resetRecentlyNavigatedJobId&&_.ro.cancelJob(S.resetRecentlyNavigatedJobId);
S.recentlyNavigated=!0;S.resetRecentlyNavigatedJobId=_.ro.addJob(function(){S.recentlyNavigated=!1},8,1E4)})};
af8.prototype.setState=function(L){if(!_.c("mweb_player_skip_no_op_state_changes")||!VSm(L,this.state))if(this.state=Object.assign({},this.state,L),!_.c("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)L=-1,_.c("player_controls_log_creation_killswitch")||bom()||(L=(0,_.GT)()),_.Rq("pcu_s"),_.Rq("pcu_se"),_.Rq("pcu_rs"),this.renderFn(d7q(this)),_.Rq("pcu_re"),MSv(L),_.ro.addJob(function(){_.Rq("pcu_ap")},8)};
var d7q=function(L){var Z;var N=_.kM((Z=L.playerControlsData)==null?void 0:Z.playerApi);return Object.assign({},L.state,{setState:L.boundSetState,domMeasurements:{progressBarLineRect:L.progressBarLineRect},playerApi:N,appApi:L.context.appApi,playerContainer:L.context.playerContainer,playerControlContainer:L.context.playerControlContainer,uxConfig:L.context.uxConfig})},hCq=function(L){L.listeners.forEach(function(Z){L.eventListenerCleanupFunctions.push(Z.register(function(){return d7q(L)},function(){return L.getData()}))})},
sM5=function(L){L.eventListenerCleanupFunctions.forEach(function(Z){Z()});
L.eventListenerCleanupFunctions.length=0};
af8.prototype.getData=function(){return this.playerControlsData};var Ovs=[0,_.xT,_.p5,_.xT,-1,_.p5,[0,_.z5,_.J5,-1],_.xT];var Wg5=[0,[1,2,3],_.QM,-2];var V90=[0,_.xT];var bvs=new _.S5("crowdsourcedContextUserRatingFormFlowState");var M9g=new _.S5("noteViewModel");var j_=new _.S5("abuseReportFlowState");var gPq=new _.S5("feedbackFormFlowState");var Gov=new _.S5("inputBoxViewModel");_.x4s=new _.S5("lengthValidationRule");var L_c=new _.S5("regexValidationRule");var Ndk=new _.S5("selectedValidationRule");var Fgg=[0,_.J5,_.xT,_.Nb];var $20=[0,_.p5,-2,uJy];var D2w=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(D2w,_.On);D2w.prototype.getFeature=function(){return _.va(this,6)};
D2w.prototype.hasFeature=function(){return _.K8(_.t5(this,6))!=null};var lFs=[0,_.J5];var vPs=_.l9(D2w,[0,_.p5,-2,uJy,_.p5,_.J5,-1,_.Pa,-1,_.J5,-3,_.$ct,_.z5,$20,_.J5,-1,Ovs,_.Pa,_.J5,Fgg,[0,[0,_.J5,-2,2,_.J5,-1,[0,_.J5],[0,_.xT,_.J5],[0,_.xT],[0,_.J5],2,[0,_.xT,2,[0,_.xT,-1],[0,_.XE,Wg5],1,[0,V90],1,[0,_.J5]],[0,_.z5],[0,[1,2],_.A5,[0,_.J5],_.A5,[0,_.J5,_.Ba,-1]],[0,_.xT],[0,_.J5,[0,[1,2,3,4],_.A5,[0,[0,_.J5],lFs],_.A5,[0,[0,_.J5],lFs],_.A5,[0,lFs],_.A5,[0,[0,_.J5],lFs]]],[0,_.J5],1,[0,_.J5,_.xT],1,[0,_.J5],[0,_.z5],[0,_.J5,_.xT,-1,[0,_.J5,-4]],[0,_.J5],[0,_.J5,-2],1,[0,_.J5],[0,
_.z5],[0,_.z5],1,[0,_.z5],[0]],_.J5,_.xT,_.jd,1,_.Ha,_.J5,_.xT],_.p5,_.Ha,_.xT,-1,_.p5]);var oPs=new _.S5("talkToRecsViewModel");var Rbq=new _.S5("creatorGoalSetUpFlowDropdownItemViewModel");var cdq=new _.S5("creatorGoalSetUpFlowDropdownViewModel");var wXv=new _.S5("thumbnailBadgeViewModel");var nPY=new _.S5("checkboxGroupViewModel");var XM0=new _.S5("checkboxItemViewModel");_.Eg=new _.S5("radioButtonGroupViewModel");var Kgq=new _.S5("radioButtonItemViewModel");var F_Y=new _.S5("panelFooterViewModel");var fFc=new _.S5("ypcCancelRecurrenceCommand");var koy=new _.S5("cancellationFlowState");var s65=new _.S5("premiumPurchaseFlowState");var ydg=new _.S5("surveyAnswerCardRenderer");var w25=new _.S5("showMoreButtonRenderer");var U2c;var YoQ,eby=function(){if(YoQ!==void 0)return YoQ;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;U2c===void 0&&(U2c=document.createElement("template"));var S=U2c;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return YoQ=L};var PJ=function(){var L=_.e.apply(this,arguments)||this;L.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";L.goalDescription="";L.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";L.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";L.startButtonId="start-button";L.exampleButtonId="example-button";return L};
_.f(PJ,_.e);_.t=PJ.prototype;_.t.getGoalDropdownItems=function(){var L,Z;return(Z=_.n((L=this.data)==null?void 0:L.purchaseTargetDropdown,cdq))==null?void 0:Z.dropdownItems};
_.t.getTimerDropdownItems=function(){var L,Z;return(Z=_.n((L=this.data)==null?void 0:L.timerDropdown,cdq))==null?void 0:Z.dropdownItems};
_.t.getColorDropdownItems=function(){var L,Z;return(Z=_.n((L=this.data)==null?void 0:L.colorDropdown,cdq))==null?void 0:Z.dropdownItems};
_.t.getDropdownItemText=function(L){var Z;return(Z=_.n(L,Rbq))==null?void 0:Z.itemLabel};
_.t.getDropdownItemValue=function(L){L=_.n(L,Rbq);return(L==null?void 0:L.timeLimit)||(L==null?void 0:L.purchaseTarget)||(L==null?void 0:L.eligiblePurchaseType)};
_.t.updateFlowState=function(L){_.XJ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:L}])};
_.t.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.t.updateGoalValue=function(L){this.goal=L.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.t.onTextValueChanged=function(L){this.goalDescription=L.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.t.updateTimerValue=function(L){this.timer=L.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.t.updateTierValue=function(L){this.tier=L.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.t.getButtonViewModel=function(L){L=(L==null?void 0:L.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var Z,N=_.n((Z=this.data)==null?void 0:Z.startGoalButton,_.NU);return Object.assign({},N,{state:L})};
_.gd.Object.defineProperties(PJ,{template:{configurable:!0,enumerable:!0,get:function(){return eby()}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],PJ.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],PJ.prototype,"goal",void 0);_.r([_.Y(),_.Q("design:type",Object)],PJ.prototype,"goalDescription",void 0);_.r([_.Y(),_.Q("design:type",Object)],PJ.prototype,"timer",void 0);_.r([_.Y(),_.Q("design:type",Object)],PJ.prototype,"tier",void 0);
_.r([_.Y(),_.Q("design:type",Object)],PJ.prototype,"startButtonId",void 0);_.r([_.Y(),_.Q("design:type",Object)],PJ.prototype,"exampleButtonId",void 0);_.r([_.ch({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],PJ);_.m(PJ,"yt-creator-goal-set-up-flow-view-model",function(){return eby()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var IFv;IFv=Object.assign({},{continuation:_.a$I,download:_.UwV,canvas:_.Gzw,reportChannelAbuse:_.pil,ui:_.$o1,share:_.zjN,talkToRecs:_.JPQ,watch:_.H$,ypc:_.HW0,radioButtonGroup:_.MGh,collabInviteLink:_.VGw},T0Y,{voiceSearch:_.vuA,shorts:_.AK});_.pR=_.oV(IFv);_.d2m=_.RV(_.pR);var aFg;var hbs;var sHm;var jH0=function(){return _.e.apply(this,arguments)||this};
_.f(jH0,_.e);_.r([_.Y(),_.Q("design:type",Object)],jH0.prototype,"data",void 0);_.r([_.ch({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],jH0);
_.m(jH0,"yt-survey-answer-card-renderer",function(){if(sHm===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;hbs===void 0&&(hbs=document.createElement("template"));var S=hbs;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);sHm=L}L=sHm;return L},{mode:2});var EPQ;var Pcy;var zC=function(){return _.e.apply(this,arguments)||this};
_.f(zC,_.e);_.t=zC.prototype;_.t.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.t.selectedItemChanged=function(L){_.XJ(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[L.feedbackToken||""]}])};
_.t.surveyAnswerCardRendererClicked=function(L){if(L.target&&_.n(L.model.item,ydg)){var Z=L.target;L=_.n(L.model.item,ydg);L.onTapCommand?_.B2(Z,[L.onTapCommand],Z):this.data.onTapCommand&&_.B2(Z,[this.data.onTapCommand],Z);this.selectedItemChanged(L)}};
_.t.checkIsCancellationStyle=function(L){return L==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.t.updateSelectedItemFromBinding=function(L){this.selectedItem=L.detail.value};
zC.prototype.onSelectedItemChanged=zC.prototype.onSelectedItemChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],zC.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],zC.prototype,"selectedItem",void 0);_.r([_.Y({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],zC.prototype,"isCancellationStyle",void 0);
_.r([_.iA("selectedItem"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zC.prototype,"onSelectedItemChanged",null);_.r([_.ch({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],zC);
_.m(zC,"yt-survey-flow-step-renderer",function(){if(Pcy===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;EPQ===void 0&&(EPQ=document.createElement("template"));var S=EPQ;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Pcy=L}L=Pcy;return L},{mode:2});var mp=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return L};
_.f(mp,_.e);mp.prototype.handleSurveyFlowStepOptionChanged=function(L){this.ytdReduxBehavior.dispatch(_.XK({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:L}));_.XJ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:L}}])};
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],mp.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],mp.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],mp.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],mp);
_.m(mp,"ytd-survey-flow-step-renderer",function(){if(aFg!==void 0)return aFg;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return aFg=L},{mode:1});_.Jdg=_.p(function(L){var Z=L.data;var N=L.hideDivider;var S=L.isChannelInfoCard;L={};return _.g("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.g("div",{class:_.qg("yt-profile-identity-info-view-model__frame",(L["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!Z().channelBanner},L))},_.g(p2s,{profileIdentityInfoData:Z}),_.g("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.g("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.g(_.bj,{data:function(){return Z().avatar}},{avatarViewModel:_.JO})),_.g(zby,{profileIdentityInfoData:Z})),_.g(_.F,{cond:function(){return Z().channelDescription},
then:function(u){var T={};return _.g("div",{class:_.qg((T["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(S==null||!S())},T["yt-profile-identity-info-view-model__channel-description"]=function(){return!(S==null?0:S())},T))},u)}}),_.g(m2c,{profileIdentityInfoData:Z}),_.g(_.F,{cond:function(){return!(N==null?0:N())},
then:function(){return _.g("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"ih");
_.Jdg.idomCompat=!0;var m2c=_.p(function(L){var Z=L.profileIdentityInfoData;return _.g("div",{class:"yt-profile-identity-info-view-model__buttons"},_.g(_.ju,{each:function(){return Z().subscribeButton?[Z().subscribeButton,Z().channelAccess]:[Z().channelAccess]}},function(N){return _.g("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.g("div",{class:"yt-profile-identity-info-view-model--button"},_.g(_.bj,{data:function(){return N}},{buttonViewModel:_.$X,
subscribeButtonViewModel:_.Jl})))}))},"jh"),zby=_.p(function(L){var Z=L.profileIdentityInfoData;
return _.g("div",{class:"yt-profile-identity-info-view-model__trio"},_.g("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.g(Ccm,{profileIdentityInfoData:Z}),_.g(_.bj,{data:function(){return Z().threeDotMenu}},{buttonViewModel:_.$X})),_.g(rdy,{profileIdentityInfoData:Z}))},"kh"),Ccm=_.p(function(L){var Z=L.profileIdentityInfoData;
return _.g("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.g("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return Z().channelDisplayName}),_.g(_.F,{cond:function(){return Z().verifiedOrOacBadge},
then:function(N){return _.g("div",{class:"yt-profile-identity-info-view-model__badge"},_.g(_.ji,{data:function(){return{thumbnails:[{url:N().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"lh"),p2s=_.p(function(L){var Z=L.profileIdentityInfoData;
return _.g("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.g(_.bj,{data:function(){var N=Z().channelBanner;if(N)return{imageBannerViewModel:{image:N.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(N){return _.g("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.g(_.qt,{data:N.data,
isPositionRelative:!0}))}}))},"mh"),rdy=_.p(function(L){var Z=L.profileIdentityInfoData;
return _.g("div",{class:"yt-profile-identity-info-view-model__metadata"},_.g("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.g("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return Z().channelHandle}),_.g(_.F,{cond:function(){return Z().channelPronouns&&Z().channelHandle},
then:function(){return _.g("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.g("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return Z().channelPronouns})),_.g("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.g("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return Z().leftOfBulletInfo}),_.g(_.F,{cond:function(){return Z().leftOfBulletInfo&&Z().rightOfBulletInfo},
then:function(){return _.g("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.g("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return Z().rightOfBulletInfo})))},"nh");var QHm;var JT=function(){return _.e.apply(this,arguments)||this};
_.f(JT,_.e);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],JT.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],JT.prototype,"data",void 0);_.r([_.P({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],JT);
_.m(JT,"ytd-channel-history-renderer",function(){if(QHm!==void 0)return QHm;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return QHm=L},{mode:1});var X2y;var AdY=function(){return _.e.apply(this,arguments)||this};
_.f(AdY,_.e);_.r([_.Y(),_.Q("design:type",Object)],AdY.prototype,"data",void 0);_.r([_.P({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],AdY);
_.m(AdY,"ytd-feature-enablement-info-renderer",function(){if(X2y!==void 0)return X2y;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return X2y=L},{mode:1});var HvP;var B0s;var CR=function(){var L=_.e.apply(this,arguments)||this;L.textBoxMaxLength=_.c("enable_tvod_campaign_code_integration")?15:12;return L};
_.f(CR,_.e);_.t=CR.prototype;_.t.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.t.onSubmit=function(){var L=this.data.serviceEndpoint,Z=_.n(L,_.hu);Z&&L&&(Z.couponCode=this.userInput,_.GR().resolve(_.$s).resolveCommand(L,{form:{element:this.hostElement}}))};
_.t.validate=function(){var L=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=L&&!this.data.errorMessage;this.showErrorMessage=L&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.c("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.t.computeStyle=function(L){return L};
_.t.computeShowValidationBelowInput=function(L){return L!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.t.updateUserInputFromBinding=function(L){this.userInput=L.currentTarget.value};
_.t.updateShowErrorMessageFromBinding=function(L){this.showErrorMessage=L.detail.value};
_.gd.Object.defineProperties(CR.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
CR.prototype.dataChanged=CR.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],CR.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],CR.prototype,"userInput",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],CR.prototype,"disableApplyButton",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],CR.prototype,"hideApplyButton",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],CR.prototype,"hideErrorMessage",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],CR.prototype,"showTick",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],CR.prototype,"showErrorMessage",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Q("design:type",String)],CR.prototype,"couponStyle",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.Q("design:type",Boolean)],CR.prototype,"showValidationBelowInput",void 0);_.r([_.Y(),_.Q("design:type",Object)],CR.prototype,"textBoxMaxLength",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],CR.prototype,"dataChanged",null);
_.r([_.w("showTick","showErrorMessage","userInput"),_.Q("design:type",String),_.Q("design:paramtypes",[])],CR.prototype,"validationState",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],CR);
_.m(CR,"ytd-ypc-coupon-renderer",function(){if(B0s!==void 0)return B0s;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return B0s=L},{mode:1});var r_=function(){return _.e.apply(this,arguments)||this};
_.f(r_,_.e);r_.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"}}}};
r_.prototype.computeStyle=function(L){return L};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],r_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],r_.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Q("design:type",String)],r_.prototype,"buttonStyle",void 0);_.r([_.P({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],r_);
_.m(r_,"ytd-flow-bottom-bar-renderer",function(){if(HvP!==void 0)return HvP;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return HvP=L},{mode:1});var x2v;var qo5;var L2v;var Ql=function(){return _.e.apply(this,arguments)||this};
_.f(Ql,_.e);Ql.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ql.prototype.focus=function(L){this.title&&_.tV(this.title,L)};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ql.prototype,"data",void 0);_.r([_.TX("#title"),_.Q("design:type",HTMLElement)],Ql.prototype,"title",void 0);_.r([_.P({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Ql);
_.m(Ql,"ytd-flow-top-bar-renderer",function(){if(L2v!==void 0)return L2v;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return L2v=L},{mode:1});var Zqk;var NRP;var STy;var Xe=function(){return _.e.apply(this,arguments)||this};
_.f(Xe,_.e);Xe.prototype.freeTextValueChanged=function(){_.XJ(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Xe.prototype.updateFreeTextValueFromBinding=function(L){this.freeTextValue=L.detail.value};
_.gd.Object.defineProperties(Xe.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=(Z=(L=this.data)==null?void 0:L.responseMaxLength)!=null?Z:500,S;return((S=this.freeTextValue)!=null?S:"").length>=N?"maxed-out":""}}});
Xe.prototype.freeTextValueChanged=Xe.prototype.freeTextValueChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Xe.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Xe.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],Xe.prototype,"freeTextValue",void 0);_.r([_.TX("#user-input"),_.Q("design:type",HTMLTextAreaElement)],Xe.prototype,"input",void 0);
_.r([_.w("freeTextValue"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Xe.prototype,"characterLimitClass",null);_.r([_.iA("freeTextValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xe.prototype,"freeTextValueChanged",null);_.r([_.ch({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Xe);
_.m(Xe,"yt-free-text-input-flow-step-renderer",function(){if(STy===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;NRP===void 0&&(NRP=document.createElement("template"));var S=NRP;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);STy=L}L=STy;return L},{mode:2});var AT=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return L};
_.f(AT,_.e);AT.prototype.handleFreeTextFlowStepInputChanged=function(L){_.XJ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:L}}])};
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],AT.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],AT.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],AT.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],AT);
_.m(AT,"ytd-free-text-input-flow-step-renderer",function(){if(Zqk!==void 0)return Zqk;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Zqk=L},{mode:1});var iq8;var uK0;var TR8=function(){return _.e.apply(this,arguments)||this};
_.f(TR8,_.e);_.r([_.Y(),_.Q("design:type",Object)],TR8.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],TR8);
_.m(TR8,"ytd-metadata-line-renderer",function(){if(uK0!==void 0)return uK0;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return uK0=L},{mode:1});var HJ=function(){return _.e.apply(this,arguments)||this};
_.f(HJ,_.e);HJ.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],HJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],HJ.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],HJ.prototype,"isMasthead",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],HJ);
_.m(HJ,"ytd-media-product-renderer",function(){if(iq8!==void 0)return iq8;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return iq8=L},{mode:1});var tz8;var BJ=function(){return _.e.apply(this,arguments)||this};
_.f(BJ,_.e);BJ.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
BJ.prototype.onBillboardImageLoaded=function(){_.QT(this.hostElement,"yt-refit")};
BJ.prototype.onBillboardImageLoaded=BJ.prototype.onBillboardImageLoaded;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],BJ.prototype,"data",void 0);_.r([_.TX("#billboardImage"),_.Q("design:type",Object)],BJ.prototype,"billboardImage",void 0);_.r([_.SA("yt-img-shadow-loaded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BJ.prototype,"onBillboardImageLoaded",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],BJ);
_.m(BJ,"ytd-billboard-masthead-renderer",function(){if(tz8!==void 0)return tz8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return tz8=L},{mode:1});var Oqq;var xy=function(){var L=_.e.apply(this,arguments)||this;L.smallSize=!1;return L};
_.f(xy,_.e);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],xy.prototype,"ytComponentBehaviorType",void 0);_.r([_.Y(),_.Q("design:type",Object)],xy.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xy.prototype,"smallSize",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],xy);
_.m(xy,"ytd-bullet-formatted-string",function(){if(Oqq!==void 0)return Oqq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Oqq=L},{mode:1});var W2v;var qA=function(){return _.e.apply(this,arguments)||this};
_.f(qA,_.e);qA.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],qA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],qA.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],qA);
_.m(qA,"ytd-offer-detail-renderer",function(){if(W2v!==void 0)return W2v;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return W2v=L},{mode:1});var Vzk;var Lr=function(){return _.e.apply(this,arguments)||this};
_.f(Lr,_.e);Lr.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"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Lr.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Lr.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Lr.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],Lr);
_.m(Lr,"ytd-offer-detail-step-renderer",function(){if(Vzk!==void 0)return Vzk;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Vzk=L},{mode:1});var bqY;var ZE=function(){var L=_.e.apply(this,arguments)||this;L.isInOfferModule=!1;return L};
_.f(ZE,_.e);_.t=ZE.prototype;_.t.computeHasEndpoint=function(){var L;return!((L=this.data)==null||!L.onClickCommand)};
_.t.dataChanged=function(){var L;if((L=this.data)==null?0:L.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")};
_.t.detached=function(){var L;if((L=this.data)==null?0:L.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.t.handleClickEvent=function(){var L;if((L=this.data)==null?0:L.onClickCommand){var Z;this.componentBehavior.resolveCommand((Z=this.data)==null?void 0:Z.onClickCommand)}};
_.t.onContentKeyDown=function(L){L.key==="Enter"?this.handleClickEvent(L):L.key===" "&&L.preventDefault()};
_.t.onContentKeyUp=function(L){L.key===" "&&this.handleClickEvent(L)};
ZE.prototype.dataChanged=ZE.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],ZE.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ZE.prototype,"data",void 0);_.r([_.Y({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],ZE.prototype,"hasEndpoint",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ZE.prototype,"isInOfferModule",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ZE.prototype,"dataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],ZE);
_.m(ZE,"ytd-channel-masthead-renderer",function(){if(bqY!==void 0)return bqY;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return bqY=L},{mode:1});var Mz0;var Ny=function(){var L=_.e.apply(this,arguments)||this;L.thumbnailObjectFit="CONTAIN";L.thumbnailObjectPosition="LEFT";L.isExpanded=!1;return L};
_.f(Ny,_.e);_.t=Ny.prototype;_.t.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.t.dataChanged=function(){this.resetStates()};
_.t.computeisTapOnOfferInfoContainerEnabled=function(){var L;return((L=this.data)==null?void 0:L.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.t.onExpandBtnClick=function(){var L,Z=_.n((L=this.data)==null?void 0:L.showMoreButtonRenderer,w25);Z&&_.U$(_.tC(),Z.trackingParams);this.isExpanded=!this.isExpanded};
_.t.onOfferInfoClick=function(L){this.isTapOnOfferInfoContainerEnabled&&(_.PQ(_.sx(L)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.z0(_.sx(L)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.t.onBottomBarClick=function(){this.executeTapCommand()};
_.t.executeTapCommand=function(){var L,Z=(L=this.data)==null?void 0:L.tapCommand;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.t.resetStates=function(){this.isExpanded=!1};
_.gd.Object.defineProperties(Ny.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var L=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),Z,N,S;return((Z=this.data)==null?void 0:Z.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&L&&!!((N=this.data)==null?0:(S=N.benefits)==null?0:S.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return((Z=_.n((L=this.data)==null?void 0:L.showMoreButtonRenderer,w25))==null?void 0:Z.showMoreButtonTitle)||((N=this.data)==null?void 0:N.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return((Z=_.n((L=this.data)==null?void 0:L.showMoreButtonRenderer,w25))==null?void 0:Z.showLessButtonTitle)||((N=this.data)==null?void 0:N.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var L;return(L=this.showLessButtonTitle)!=null?L:""}var Z;return(Z=this.showMoreButtonTitle)!=null?Z:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return((L=this.data)==null?void 0:L.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((Z=this.data)==null?0:Z.footerTitle)||((N=this.data)==null?0:N.footerSubtitle))}}});
Ny.prototype.dataChanged=Ny.prototype.dataChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Ny.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ny.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Ny.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",String)],Ny.prototype,"thumbnailObjectFit",void 0);
_.r([_.Y(),_.Q("design:type",String)],Ny.prototype,"thumbnailObjectPosition",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.Q("design:type",Boolean)],Ny.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ny.prototype,"isExpanded",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ny.prototype,"data",void 0);_.r([_.Y({computed:"computeIcon_(data.footerIcon)"}),_.Q("design:type",String)],Ny.prototype,"icon",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ny.prototype,"dataChanged",null);_.r([_.w("data.thumbnail"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ny.prototype,"hasThumbnail",null);_.r([_.w("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ny.prototype,"enableExpandButton",null);
_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ny.prototype,"enableOfferContentIcon",null);_.r([_.w("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ny.prototype,"showMoreButtonTitle",null);_.r([_.w("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ny.prototype,"showLessButtonTitle",null);
_.r([_.w("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Ny.prototype,"expandedBtnText",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ny.prototype,"enableBottomBar",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Ny);
_.m(Ny,"ytd-offer-card-renderer",function(){if(Mz0!==void 0)return Mz0;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Mz0=L},{mode:1});var g6Y;var SF=function(){return _.e.apply(this,arguments)||this};
_.f(SF,_.e);SF.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"}}}};
SF.prototype.onClick=function(L){if(!_.PQ(L.composedPath()||[],this.hostElement,["A".toString()])){var Z,N;if((L=(N=_.n((Z=this.data)==null?void 0:Z.actionButton,_.xZ))==null?void 0:N.command)&&!this.ytComponentBehavior.resolveCommand(L)){var S;(S=_.tC())==null||S.clickCommand(L);_.GR().resolve(_.$s).resolveCommand(L,{form:{element:this.hostElement}})}}};
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],SF.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],SF.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],SF);
_.m(SF,"ytd-offer-content-renderer",function(){if(g6Y!==void 0)return g6Y;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return g6Y=L},{mode:1});var G65;var iS=function(){return _.e.apply(this,arguments)||this};
_.f(iS,_.e);iS.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.gd.Object.defineProperties(iS.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!((L=this.data)==null||!L.title)||!((Z=this.data)==null||!Z.description)}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],iS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],iS.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],iS.prototype,"hasHeaderData",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],iS);
_.m(iS,"ytd-offer-section-renderer",function(){if(G65!==void 0)return G65;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return G65=L},{mode:1});var F2w;var uS=function(){return _.e.apply(this,arguments)||this};
_.f(uS,_.e);
uS.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"}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],uS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],uS.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],uS);
_.m(uS,"ytd-offer-selection-step-renderer",function(){if(F2w!==void 0)return F2w;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return F2w=L},{mode:1});var $jw;var TO=function(){return _.e.apply(this,arguments)||this};
_.f(TO,_.e);TO.prototype.computeStyle=function(L){return L};
TO.prototype.computeImageWidth=function(L){return L==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.r([_.Y({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Q("design:type",String)],TO.prototype,"containerStyle",void 0);_.r([_.Y({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.Q("design:type",String)],TO.prototype,"imageWidth",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],TO.prototype,"data",void 0);
_.r([_.P({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],TO);
_.m(TO,"ytd-confirmation-masthead-renderer",function(){if($jw!==void 0)return $jw;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return $jw=L},{mode:1});var Dj5;var t6=function(){return _.e.apply(this,arguments)||this};
_.f(t6,_.e);t6.prototype.computeStyle=function(L){return L};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],t6.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Q("design:type",String)],t6.prototype,"containerStyle",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],t6);
_.m(t6,"ytd-purchase-complete-detail-renderer",function(){if(Dj5!==void 0)return Dj5;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Dj5=L},{mode:1});var lW8;var Ou=function(){var L=_.e.apply(this,arguments)||this;L.scriptsAppended=!1;return L};
_.f(Ou,_.e);Ou.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"}}}};
Ou.prototype.onDataChanged=function(){var L=this.get("data.gtmId");L&&(_.dH(L,_.X7("GL","")),this.setupConversionTracking())};
Ou.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var L=document.createElement("noscript");L.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(L);this.scriptsAppended=!0}};
Ou.prototype.onDataChanged=Ou.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Ou.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ou.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ou.prototype,"scriptsAppended",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ou.prototype,"onDataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],Ou);
_.m(Ou,"ytd-purchase-complete-step-renderer",function(){if(lW8!==void 0)return lW8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return lW8=L},{mode:1});var v6k;var Wm=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(Wm,_.e);Wm.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Wm.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Wm.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Wm.prototype,"darkerDarkTheme",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Wm);
_.m(Wm,"ytd-ypc-transaction-error-message-renderer",function(){if(v6k!==void 0)return v6k;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return v6k=L},{mode:1});var o6v;var RZm;var Vf=function(){var L=_.e.apply(this,arguments)||this;L.handlePhoneVerificationSuccess=function(Z){if(L.isValidPhoneVerificationCompletionMessageEvent(Z)){var N;((N=L.data)==null?0:N.nextStepCommand)&&L.ytComponentBehavior.resolveCommand(L.data.nextStepCommand)}};
return L};
_.f(Vf,_.e);Vf.prototype.isValidPhoneVerificationCompletionMessageEvent=function(L){if(L.data!=="yt-phone-verification-complete")return!1;L=_.WW(L.origin);return L!==null&&L.includes("youtube.com")};
Vf.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Vf.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Vf.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Vf.prototype,"data",void 0);_.r([_.ch({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Vf);
_.m(Vf,"yt-feature-enablement-soft-entry-renderer",function(){if(RZm===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;o6v===void 0&&(o6v=document.createElement("template"));var S=o6v;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);RZm=L}L=RZm;return L},{mode:1});var cqq;var n6m;var K2Y;var fWv;var k6v=function(){return _.e.apply(this,arguments)||this};
_.f(k6v,_.e);_.r([_.Y(),_.Q("design:type",Object)],k6v.prototype,"data",void 0);_.r([_.ch({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],k6v);
_.m(k6v,"yt-benefits-item-renderer",function(){if(fWv===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;K2Y===void 0&&(K2Y=document.createElement("template"));var S=K2Y;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);fWv=L}L=fWv;return L},{mode:2});var yqP;var wBq;var bS=function(){return _.e.apply(this,arguments)||this};
_.f(bS,_.e);bS.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
bS.prototype.computeisWithoutPadding=function(){var L;return((L=this.data)==null?void 0:L.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],bS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],bS.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.Q("design:type",Boolean)],bS.prototype,"isWithoutPadding",void 0);_.r([_.ch({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],bS);
_.m(bS,"yt-benefits-section-renderer",function(){if(wBq===void 0){var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;yqP===void 0&&(yqP=document.createElement("template"));var S=yqP;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);wBq=L}L=wBq;return L},{mode:2});var My=function(){return _.e.apply(this,arguments)||this};
_.f(My,_.e);My.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
My.prototype.computeisUsingLargeWidth=function(){var L;return((L=this.data)==null?void 0:L.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],My.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],My.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.Q("design:type",Boolean)],My.prototype,"isUsingLargeWidth",void 0);_.r([_.ch({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],My);
_.m(My,"yt-benefits-flow-step-renderer",function(){if(n6m===void 0){var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;cqq===void 0&&(cqq=document.createElement("template"));var S=cqq;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);n6m=L}L=n6m;return L},{mode:2});var Ujv;var YTY;var gz=function(){return _.e.apply(this,arguments)||this};
_.f(gz,_.e);gz.prototype.checkIsUsingLargeWidth=function(){var L;return((L=this.data)==null?void 0:L.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.r([_.Y(),_.Q("design:type",Object)],gz.prototype,"data",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.Q("design:type",Boolean)],gz.prototype,"isUsingLargeWidth",void 0);_.r([_.ch({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],gz);
_.m(gz,"yt-confirmation-flow-step-renderer",function(){if(YTY===void 0){var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Ujv===void 0&&(Ujv=document.createElement("template"));var S=Ujv;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);YTY=L}L=YTY;return L},{mode:2});var eZ8;var IWP;var djy=function(){return _.e.apply(this,arguments)||this};
_.f(djy,_.e);_.r([_.Y(),_.Q("design:type",Object)],djy.prototype,"data",void 0);_.r([_.ch({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],djy);
_.m(djy,"yt-info-flow-step-renderer",function(){if(IWP===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;eZ8===void 0&&(eZ8=document.createElement("template"));var S=eZ8;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);IWP=L}L=IWP;return L},{mode:2});var aWy;var hZy;var sqY=function(){return _.e.apply(this,arguments)||this};
_.f(sqY,_.e);_.r([_.Y(),_.Q("design:type",Object)],sqY.prototype,"data",void 0);_.r([_.ch({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],sqY);
_.m(sqY,"yt-info-list-flow-step-renderer",function(){if(hZy===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;aWy===void 0&&(aWy=document.createElement("template"));var S=aWy;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);hZy=L}L=hZy;return L},{mode:2});var jqw=_.p(function(L){var Z=L.data;return _.g("styled-text-view-model",{class:_.qg("ytStyledTextViewModelHost",function(){return fbv(Z().fontAttributes)},function(){return Kd5(Z().color)})},_.g(_.qv,{text:function(){return Z().text},
ariaLabel:function(){var N,S,u;return(u=(N=Z().accessibility)==null?void 0:(S=N.accessibilityData)==null?void 0:S.label)!=null?u:""}}))},"oh");
jqw.idomCompat=!0;var E60=_.p(function(L){var Z=function(){var u,T,W,V;return(V=(W=(u=L.alt)==null?void 0:u.call(L))!=null?W:(T=L.data().accessibilityData)==null?void 0:T.label)!=null?V:""},N=function(){return L.data().imageWidth},S=function(){return L.data().imageHeight};
return _.g("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.g(_.F,{cond:function(){var u=L.data();if(u){var T,W,V;var M=((T=_.GR().resolve(_.gv(_.d$)))==null?0:T())?(W=u.imageDark)!=null?W:u.imageLight:(V=u.imageLight)!=null?V:u.imageDark}else M=void 0;return M},
then:function(u){return _.g(_.ji,Object.assign({},L,{data:u,alt:Z,targetWidth:N,targetHeight:S,preserveHeight:!0,preserveWidth:!0}))}}))},"ph");
E60.idomCompat=!0;var GO=_.p(function(L){var Z=L.data;L=_.jA(function(){return Z().slots},[]);
var N=_.jA(function(){return Z().layoutProperties},{}),S=_.GR().resolve(_.hC);
return _.g("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:vb0(N,S)},_.g(_.ju,{each:L,keyBy:"INDEX"},function(u){return _.g("div",{class:"ytContainerLayoutViewModelSlot",style:vb0(function(){return u().layoutProperties},S)},_.g(_.bj,{data:function(){return u().contents}},{containerLayoutViewModel:GO,
badgeViewModel:_.Fo,buttonViewModel:_.$X,styledTextViewModel:jqw,contentPreviewImageViewModel:function(T){return _.g(_.$g,{data:T.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(T){return _.g(E60,{data:T.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"qh");
GO.idomCompat=!0;var PBk=_.p(function(L){var Z=L.data;var N=L.stateFns;var S=function(){var G=Z(),D=G.productId;return!(!G.clearGroupId&&!D)},u=function(){var G=Z(),D=G.clearGroupId;
return(G=G.productId)?N().isProductSelected(G):D?N().getSelectedProductByGroupId(D)==null:!1},T=function(G){var D=Z(),l=D.clearGroupId;
if(D=D.productId)N().onProductSelected(D),G==null||G.forEach(function(v){_.w$(v)});
else if(l)N().onClearGroupSelected(l)},W=function(){var G=Z(),D=G.clearGroupId;
if(G=G.productId){var l;return"group:"+(((l=N().getProductById(G))==null?void 0:l.groupId)||"")}return D?"group:"+D:""},V=_.jA(function(){return Z().header},[]),M=_.jA(function(){return Z().body},[]);
return _.g("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.g(_.F,{cond:function(){return V().length>0||S()},
then:function(){return _.g("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.g("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.g(_.bj,{data:V},{containerLayoutViewModel:function(G){return _.g("div",{class:"ytPdpCardSectionViewModelContentItem"},_.g(GO,{data:G.data}))},
styledTextViewModel:function(G){return _.g("div",{class:"ytPdpCardSectionViewModelContentItem"},_.g(jqw,{data:G.data}))}})),_.g(_.F,{cond:S,
then:function(){return _.g("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.g(_.rU,{checked:u,name:W,onChange:function(){T(Z().onSelect)}}))}}))}}),_.g(_.F,{cond:function(){return M().length>0},
then:function(){return _.g("div",null,_.g(_.bj,{data:M},{containerLayoutViewModel:function(G){return _.g("div",{class:"ytPdpCardSectionViewModelContentItem"},_.g(GO,{data:G.data}))}}))}}))},"rh");
PBk.idomCompat=!0;var pBq=_.p(function(L){var Z=L.data;var N=L.stateFns;return _.g("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.g(_.F,{cond:function(){return Z().banner},
then:function(S){return _.g("div",{class:"ytPdpCardViewModelBanner"},_.g(_.qv,{text:S}))}}),_.g(_.bj,{data:function(){return Z().sections}},{pdpCardSectionViewModel:function(S){S=S.data;
var u={};return _.g("div",{class:_.qg("ytPdpCardViewModelSectionContainer",(u.ytPdpCardViewModelShowDividers=function(){return Z().showDividers},u))},_.g(PBk,{data:S,
stateFns:N}))}}))},"sh");
pBq.idomCompat=!0;var zZs=_.p(function(L){var Z=L.data;var N=L.isOverlay;L={};return _.g("pdp-masthead-view-model",{class:_.qg("ytPdpMastheadViewModelHost",(L.ytPdpMastheadViewModelIsOverlay=N,L))},_.g(_.bj,{data:function(){return Z().image}},{contentPreviewImageViewModel:_.$g,
themedImageViewModel:function(S){return _.g(E60,{data:S.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.g(_.F,{cond:function(){return Z().title},
then:function(S){return _.g("h1",{class:"ytPdpMastheadViewModelHeading"},_.g(_.qv,{text:S,isOverlay:N}))}}),_.g(_.ju,{each:function(){var S;
return(S=Z().finePrint)!=null?S:[]}},function(S){return _.g("div",{class:"ytPdpMastheadViewModelFinePrint"},_.g(_.qv,{text:S,
isOverlay:N}))}))},"th");
zZs.idomCompat=!0;var mj8=_.p(function(L){var Z=L.data;var N=L.stateFns;var S=function(){return"pdp-pricing-group-selector-"+Z().pricingGroupAttributeIds},u=_.jA(function(){return Z().pricingGroupSelectorSectionHeader});
return _.g("pdp-pricing-group-selector-view-model",null,_.g(_.F,{cond:function(){return!!u()},
then:function(){return _.g(_.bj,{data:u},{sectionHeaderViewModel:function(T){T=T.data;var W={};return _.g("div",{class:_.qg("ytPdpPricingGroupSelectorViewModelSectionHeader",(W.ytPdpPricingGroupSelectorViewModelFullBleed=!0,W.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,W))},_.g(_.f$,{data:T}))}})}}),_.g("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.g(_.ju,{each:function(){var T=N().getSelectedProductByGroupId(Z().groupId);
if(!T)return _.rY(Error("Yj`"+Z().groupId)),[];var W,V=(W=Z().pricingGroupAttributeIds)!=null?W:[],M;if((M=T.pricingGroups)==null||!M.length||!V.length)return[];W=T.pricingGroups.filter(function(v){return V.length?v.pricingGroupAttributes.every(function(R){return V.includes(R)}):!1});
T=[];if(V.length>0){W=[].concat(_.Pd(W));M=_.O(V);for(var G=M.next(),D={};!G.done;D={targetAttrId:void 0},G=M.next())D.targetAttrId=G.value,G=W.findIndex(function(v){return function(R){return R.pricingGroupAttributes.includes(v.targetAttrId)}}(D)),G!==-1&&(T.push(W[G]),W.splice(G,1))}var l=N().getSelectedPricingGroupAttributesByGroupId(Z().groupId);
return T.map(function(v){var R=!1;l&&v.pricingGroupAttributes&&(R=IR(v.pricingGroupAttributes,l));return{pricingGroup:v,isSelected:R}})},
keyBy:function(T){return T.pricingGroup.pricingGroupId}},function(T){return _.g("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.g("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.g(_.bj,{data:function(){return T().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:GO})),_.g("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.g(_.rU,{checked:function(){return T().isSelected},
name:S,onClick:function(){var W=T().pricingGroup;N().onPricingGroupSelected(W.pricingGroupId);if(W=_.KY(W.onSelectPricingGroup)){var V;(V=_.GR().resolve(_.$s))==null||V.resolveCommand(W)}}})))})))},"uh");
mj8.idomCompat=!0;var Jqw=_.p(function(L){var Z=L.data;var N=L.stateFns;var S=function(){var W=N().getSelectedPricingOptions().map(function(G){return G.pricingOptionId}),V=N().getSelectedProductByGroupId(Z().groupId);
if(!V)return _.rY(Error("Zj`"+Z().groupId)),[];var M=N().getSelectedPricingGroupAttributesByGroupId(Z().groupId);return U4q(V.pricingOptions,M,W)},u=_.jA(function(){return Z().pricingOptionSelectorSectionHeader}),T=function(){return S().length>1};
return _.g("pdp-pricing-option-selector-view-model",null,_.g(_.F,{cond:function(){return!!u()&&T()},
then:function(){return _.g(_.bj,{data:u},{sectionHeaderViewModel:function(W){W=W.data;var V={};return _.g("div",{class:_.qg("ytPdpPricingOptionSelectorViewModelSectionHeader",(V.ytPdpPricingOptionSelectorViewModelFullBleed=!0,V.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,V))},_.g(_.f$,{data:W}))}})}}),_.g(_.F,{cond:T,
then:function(){return _.g("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.g(_.ju,{each:S,keyBy:"INDEX"},function(W){return _.g("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.g("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.g(_.bj,{data:function(){return W().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:GO})),_.g("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.g(_.rU,{checked:function(){return W().isSelected},
onClick:function(){N().onPricingOptionSelected(W().pricingOption.pricingOptionId);var V=W().pricingOption.onSelectPricingOption;if(V=_.KY(V)){var M;(M=_.GR().resolve(_.$s))==null||M.resolveCommand(V)}}})))}))}}))},"vh");
Jqw.idomCompat=!0;var CBk=_.p(function(L){var Z=L.data;var N=L.stateFns;return _.g("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.g(_.bj,{data:function(){var S,u;return(u=(S=N().getSelectedPricingOptions()[0])==null?void 0:S.primaryButton)!=null?u:Z().emptyStateButton}},{buttonViewModel:_.$X}))},"wh");
CBk.idomCompat=!0;var rqw=_.p(function(L){var Z=L.stateFns;return _.g("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.g(_.bj,{data:function(){return Z().getSelectedPricingOptions().flatMap(function(N){return N.summaryLines}).filter(function(N){return!!N})}},{containerLayoutViewModel:function(N){return _.g("div",{class:"ytPdpSummaryViewModelLineItem"},_.g(GO,{data:N.data}))}}))},"xh");
rqw.idomCompat=!0;var Qqv=_.p(function(L){function Z(d){var h=W();_.sk(_.vt("pdpStateEntity",h,{key:h,selectedPricingOptions:d}))}
var N=L.data;var S=L.internalScrolling;var u=L.stateFnsForTesting;var T=_.jA(function(){return N().allProducts},[]),W=_.jA(function(){return N().pdpStateEntityKey},""),V=_.OS(YVk,W),M=_.wJ(function(){_.JW(!0);
var d;return(d=u==null?void 0:u())!=null?d:Ib8(V,T,Z)},void 0,"ryrrHe"),G=_.jA(function(){return N().body},[]),D=_.jA(function(){return N().columnBreakHints},[]),l=function(){return N().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},v=function(){return l()||N().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},R=_.wJ(function(){var d=_.US(N().background),h;
if(d==null?0:(h=d.sources)==null?0:h.length){var E=E===void 0?!0:E;d=_.WIA(void 0,d.sources,void 0,E,E?1E3:void 0,E?void 0:1E3)}else d=null;return d},void 0,"UVFJic");
L=_.u4({"--pdp-view-model-background":function(){return R()?"url("+R()+")":void 0}});
var K={};S=_.qg("ytPdpViewModelHost",(K.ytPdpViewModelHasBackground=function(){return v()||!!R()},K.ytPdpViewModelHasDarkBackground=v,K.ytPdpViewModelHasScrim=l,K.ytPdpViewModelInternalScrolling=_.jA(S,!1),K));
var U=function(d){var h={};return _.qg("ytPdpViewModelItem",(h.ytPdpViewModelFullBleed=function(){return d4m(d())==="dividerViewModel"||d4m(d())==="sectionHeaderViewModel"},h.ytPdpViewModelNoVerticalPadding=function(){return d4m(d())==="sectionHeaderViewModel"},h))};
_.m0(function(){var d=N().onStartCommand;if(d&&(d=_.KY(d))){var h;(h=_.GR().resolve(_.$s))==null||h.resolveCommand(d)}});
return _.g("pdp-view-model",{class:S,style:L},_.g("div",{class:"ytPdpViewModelColumnContainer"},_.g(_.ju,{each:function(){return abk(G(),D())},
keyBy:"INDEX"},function(d){return _.g("div",{class:"ytPdpViewModelColumn"},_.g(_.bj,{data:d},{containerLayoutViewModel:function(h,E){h=h.data;return _.g("div",{class:U(function(){return d()[E()]})},_.g(GO,{data:h}))},
dividerViewModel:function(h,E){h=h.data;return _.g("div",{class:U(function(){return d()[E()]})},_.g(_.pGN,{data:h}))},
pdpCardViewModel:function(h,E){h=h.data;return _.g("div",{class:U(function(){return d()[E()]})},_.g(pBq,{data:h,
stateFns:M}))},
pdpMastheadViewModel:function(h,E){h=h.data;return _.g("div",{class:U(function(){return d()[E()]})},_.g(zZs,{data:h,
isOverlay:v}))},
pdpPricingGroupSelectorViewModel:function(h,E){h=h.data;return _.g("div",{class:U(function(){return d()[E()]})},_.g(mj8,{data:h,
stateFns:M}))},
pdpPricingOptionSelectorViewModel:function(h,E){h=h.data;return _.g("div",{class:U(function(){return d()[E()]})},_.g(Jqw,{data:h,
stateFns:M}))},
pdpPrimaryButtonViewModel:function(h,E){h=h.data;return _.g("div",{class:U(function(){return d()[E()]})},_.g(CBk,{data:h,
stateFns:M}))},
pdpSummaryViewModel:function(h,E){h=h.data;return _.g("div",{class:U(function(){return d()[E()]})},_.g(rqw,{data:h,
stateFns:M}))},
sectionHeaderViewModel:function(h,E){h=h.data;return _.g("div",{class:U(function(){return d()[E()]})},_.g(_.f$,{data:h}))}}))})))},"yh");
Qqv.idomCompat=!0;_.CY(Qqv,"pdp-view-model",{props:{data:_.LK,stateFnsForTesting:_.zl,internalScrolling:_.zl}});var XBv=_.p(function(L){var Z=L.data;var N=L.className;var S=_.OS(_.si,function(){return Z().flowStateEntityKey});
return _.g("ytm-premium-purchase-button-renderer",{class:_.qg("ytPremiumPurchaseButtonRendererHost",N)},_.g(_.bj,{data:function(){var u;return(u=_.n(S(),s65))==null?void 0:u.primaryButtonOverride}},{buttonRenderer:function(u){return _.g(_.T9,{data:u.data,
className:N})},
buttonViewModel:function(u){return _.g(_.$X,{data:u.data,className:N})}}))},"zh");
XBv.idomCompat=!0;var AqP=_.p(function(L){var Z=L.data;L=L.className;var N=function(){return h5s(Z().style)},S=_.qg("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",N),u=_.qg("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",N);
return _.g("yt-flow-bottom-bar-renderer",{class:_.qg("yt-flow-bottom-bar-renderer",L,N)},_.g(_.bj,{data:function(){return Z().secondaryButton}},{buttonRenderer:function(T){return _.g(_.T9,{data:T.data,
className:u})},
buttonViewModel:function(T){return _.g(_.$X,{data:T.data,className:u})},
premiumPurchaseButtonRenderer:function(T){return _.g(XBv,{data:T.data,className:u})}}),_.g(_.bj,{data:function(){return Z().primaryButton}},{buttonRenderer:function(T){return _.g(_.T9,{data:T.data,
className:S})},
buttonViewModel:function(T){return _.g(_.$X,{data:T.data,className:S})},
premiumPurchaseButtonRenderer:function(T){return _.g(XBv,{data:T.data,className:S})}}))},"Ah");
AqP.idomCompat=!0;_.CY(AqP,"yt-flow-bottom-bar-renderer",{props:{data:_.LK,className:_.LK}});var Hqm=_.p(function(L){var Z=_.qg(L.className,"ytOfferSummaryRendererHost");return _.g("yt-offer-summary-renderer",{class:Z},_.g("div",{class:"ytOfferSummaryRendererTextContainer"},_.g("div",{class:"ytOfferSummaryRendererEyebrowText"},_.g(_.qv,{text:function(){return L.data().eyebrowText}})),_.g("div",{class:"ytOfferSummaryRendererTitle"},_.g(_.qv,{text:function(){return L.data().title}})),_.g("div",{class:"ytOfferSummaryRendererSubtitle"},_.g(_.qv,{text:function(){return L.data().subtitle}})),_.g("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.g(_.ju,{each:function(){var N;
return(N=L.data().featureListData)!=null?N:[]}},function(N){var S;
return _.g("div",{class:"ytOfferSummaryRendererFeatureList"},_.g(_.T0,{icon:(S=N.icon)==null?void 0:S.iconType,active:function(){return N.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(N.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"}}}),_.g("div",{class:"ytOfferSummaryRendererFeatureListText"},_.g(_.qv,{text:N.text,
className:function(){return N.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.g("div",{class:"ytOfferSummaryRendererDescription"},_.g(_.qv,{text:function(){return L.data().description}}))))},"Bh");_.CY(_.p(function(L){var Z={};Z=_.qg("ytOfferSummaryFlowStepRendererHost",(Z.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=L.shouldDisableHeaderTopMargin,Z));return _.g("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:Z},_.g("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.g("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.g(_.qv,{text:function(){return L.data().header}})),_.g("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.g(_.qv,{text:function(){return L.data().subtitle}}))),_.g("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.g(_.bj,{data:function(){return L.data().offerSummary}},{offerSummaryRenderer:function(N){return _.g(Hqm,{data:N.data,
className:L.flowClassName})}})))},"Ch"),"yt-offer-summary-flow-step-renderer",{props:{data:_.zl,
flowClassName:_.zl,flowStateEntityKey:_.zl,shouldDisableHeaderTopMargin:_.zl}});var BRc=_.p(function(L){var Z=L.data;var N=L.className;var S=L.flowStateEntityKey;var u=L.selectionStepStyle;L=_.Z9(function(M){var G=Z(),D=S==null?void 0:S();M.target&&(M.stopPropagation(),M=D||"",D=_.si(_.hJ().getState(),M),G=Object.assign({},D,{premiumPurchaseFlowState:{selectedOptionId:G.optionId,primaryButtonOverride:G.primaryButtonOverride}}),_.hJ().dispatch(_.Mr("flowStateEntity",M,G)));return!1});
var T=function(){return(S==null?void 0:S())||""},W=_.OS(_.si,T);
_.m0(function(){var M=Z(),G=T(),D=W();M.defaultSelected&&G!==""&&M.primaryButtonOverride&&j6q(M.optionId||"",G,M.primaryButtonOverride,D)});
var V={};return _.g("ytm-option-item-renderer",{"on:click":L,class:_.qg(N,"ytm-option-item-renderer",(V["ytm-option-item-renderer--lp2-style"]=function(){return(u==null?void 0:u())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},V))},_.g("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.g("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var M=Z(),G=T(),D=W();D=_.n(D,s65);return(D?(D==null?void 0:D.selectedOptionId)||"":M.defaultSelected&&G!==""?(M==null?void 0:M.optionId)||"":"")===Z().optionId},
name:("input"+_.st(_.C$)).toString()})),_.g("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.g(_.bj,{data:function(){return Z().titleBadge}},{badgeViewModel:function(M){return _.g(_.Fo,{data:M.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.g(_.F,{cond:function(){return Z().eyebrowText},
then:function(){return _.g("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.g(_.qv,{text:function(){return Z().eyebrowText}}))}}),_.g("div",{class:"ytm-option-item-renderer__option-item-title"},_.g(_.qv,{text:function(){return Z().title}})),_.g("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.g(_.qv,{text:function(){return Z().subtitle}})),_.g(_.F,{cond:function(){return Z().featureListData},
then:function(){return _.g("div",{class:"ytm-option-item-renderer__feature-list-data"},_.g(_.ju,{each:function(){return Z().featureListData||[]}},function(M){var G,D=(G=M.icon)==null?void 0:G.iconType;
a:switch(M.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":G="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":G="ytm-option-item-renderer__feature-list-icon-small";break a;default:G="ytm-option-item-renderer__feature-list-icon-default"}return _.g("div",{class:"ytm-option-item-renderer__feature-list"},_.g(_.T0,{icon:D,className:G,active:function(){return M.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.g("div",{class:"ytm-option-item-renderer__feature-list-text"},_.g(_.qv,{text:M.text,
className:function(){return M.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.g("div",{class:"ytm-option-item-renderer__option-item-description"},_.g(_.qv,{text:function(){return Z().description}}))))},"Dh");var xjs=_.p(function(L){var Z=L.data;var N=L.flowClassName;var S=L.flowStateEntityKey;var u=L.selectionStepStyle;return _.g("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.g("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.g("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.g(_.qv,{text:function(){return Z().title}}),_.g(_.bj,{data:function(){return Z().titleBadge}},{badgeViewModel:function(T){return _.g(_.Fo,{data:T.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.g(_.F,{cond:function(){return Z().subtitle},
then:function(){return _.g("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.g(_.qv,{text:function(){return Z().subtitle}}))}}),_.g(_.F,{cond:function(){return Z().featureListData},
then:function(T){return _.g("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.g(_.ju,{each:T},function(W){var V;return _.g("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.g(_.T0,{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"}}}),_.g("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.g(_.qv,{text:W.text,
className:function(){return W.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.g(_.F,{cond:function(){return Z().secondaryTitle},
then:function(){return _.g("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.g(_.qv,{text:function(){return Z().secondaryTitle}}))}}),_.g(_.ju,{each:function(){return Z().sectionDisclaimers||[]}},function(T){return _.g("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.g(_.qv,{text:T}))})),_.g(_.bj,{data:function(){return Z().optionItems}},{optionItemRenderer:function(T){return _.g("div",{class:"ytOptionSectionRendererOptionItem"},_.g(BRc,{data:T.data,
className:N,flowStateEntityKey:S,selectionStepStyle:u}))}}),_.g(_.F,{cond:function(){return Z().offerText},
then:function(){return _.g("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.g(_.qv,{text:function(){return Z().offerText}}))}}))},"Eh");
xjs.idomCompat=!0;var qTk=_.p(function(L){var Z=L.data;var N=L.flowClassName;var S=L.flowStateEntityKey;L=L.isDesktop;var u=_.t2("div"),T=function(){var D;return(D=Z().flowStateEntityKey)!=null?D:S==null?void 0:S()},W=function(){return(T==null?void 0:T())||""},V=function(){return Z().style},M=_.OS(_.si,W);
_.m0(function(){Eb5(Z(),W(),M());setTimeout(function(){var D;(D=u.value)==null||D.focus()})});
var G={};return _.g("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.qg("ytm-option-selection-flow-step-renderer",(G["ytm-option-selection-flow-step-renderer--desktop"]=L,G["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return Z().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},G))},_.g("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"},
_.g("div",{el:u,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.g(_.qv,{text:function(){return Z().header}})),_.g("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.g(_.qv,{text:function(){return Z().subtitle}}))),_.g(_.bj,{data:function(){return Z().optionItems||[]}},{optionItemRenderer:function(D){return _.g("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.g(BRc,{data:D.data,
className:N,flowStateEntityKey:T,selectionStepStyle:V}))},
optionSectionRenderer:function(D){return _.g("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.g(xjs,{data:D.data,flowClassName:N,flowStateEntityKey:T,selectionStepStyle:V}))}}))},"Fh");
qTk.idomCompat=!0;_.CY(qTk,"yt-option-selection-flow-step-renderer",{props:{data:_.LK,flowClassName:_.LK,flowStateEntityKey:_.LK,isDesktop:_.LK}});_.F1=_.p(function(L){var Z=_.Ek(L,{type:1,disablePadding:!1,disablePrimaryButton:!1}),N=Z.data,S=Z.type;L=Z.disablePadding;var u=Z.disablePrimaryButton,T=Z.onClickPrimaryButton,W=function(){return N().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},V=function(){return{disabled:u(),
state:u()?"disabled":"active"}},M=function(){return N().leadingLabel||N().trailingLabel};
Z={};return _.g("yt-panel-footer-view-model",{class:_.qg("yt-panel-footer-view-model",(Z["yt-panel-footer-view-model--hide-divider"]=function(){return N().shouldHideDivider},Z["yt-panel-footer-view-model--disable-padding"]=L,Z))},_.g(_.F,{cond:M,
then:function(){var G={},D={};return _.g("div",{class:_.qg("yt-panel-footer-view-model__text-row",(G["yt-panel-footer-view-model--row-bottom-padding"]=function(){var l=N();return!(!l.leadingLabel&&!l.trailingLabel||!l.primaryButton&&!l.secondaryButton)},G))},_.g(_.qv,{text:function(){return N().leadingLabel},
className:_.qg((D["yt-panel-footer-view-model--text-padding"]=M,D))}),_.g(_.qv,{text:function(){return N().trailingLabel}}))}}),_.g(_.F,{cond:W,
then:function(){var G={};return _.g("div",{class:"yt-panel-footer-view-model__button-stack"},_.g("div",{class:_.qg("yt-panel-footer-view-model__primary-button",(G["yt-panel-footer-view-model__button-stack--top-button"]=function(){return N().secondaryButton},G))},_.g(_.bj,{data:function(){return N().primaryButton}},{buttonViewModel:function(D){return _.g(_.$X,{data:D.data,
buttonOverrides:V,onClick:T})}})),_.g(_.bj,{data:function(){return N().secondaryButton}},{buttonViewModel:_.$X}))}}),_.g(_.F,{cond:function(){return!W()},
then:function(){var G={},D={},l={};return _.g("div",{class:_.qg("yt-panel-footer-view-model__button-row",(G["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===S()},G))},_.g("div",{class:_.qg("yt-panel-footer-view-model__button-row--left-button",(D["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===S()},D["yt-panel-footer-view-model__button-row--hidden"]=function(){return!N().secondaryButton||0===S()},D["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===S()},D))},_.g(_.bj,{data:function(){return N().secondaryButton}},{buttonViewModel:_.$X})),_.g("div",{class:_.qg("yt-panel-footer-view-model__primary-button",(l["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===S()||1===S()},l["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===S()},l))},_.g(_.bj,{data:function(){return N().primaryButton}},{buttonViewModel:function(v){return _.g(_.$X,{data:v.data,
buttonOverrides:V,onClick:T})}})))}}))},"Gh");
_.F1.idomCompat=!0;_.L3q=_.p(function(L){L=_.Ek(L,{disablePadding:!1});var Z=L.data,N=L.disablePadding;L=_.bE0(function(){return Z().formId});
var S=L.submitForm,u=L.isValid,T=L.isSubmitting;return _.g("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.g(_.bj,{data:function(){return Z().panelFooter}},{panelFooterViewModel:function(W){return _.g(_.F1,{data:W.data,
onClickPrimaryButton:function(){S()},
disablePrimaryButton:function(){return!u()||T()},
disablePadding:N})}}))},"Hh");_.CY(_.L3q,"yt-form-footer-view-model",{props:{data:_.LK,disablePadding:_.LK}});var Zkg=_.p(function(L){var Z=_.c("enable_user_rating_web");return _.g("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.g("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.g(_.F,{cond:function(){var N;return(N=L.data())==null?void 0:N.image},
then:function(N){return _.g(_.ji,{data:N,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.g("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.g(_.qv,{text:function(){var N;
return(N=L.data())==null?void 0:N.title}})),_.g("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.g(_.qv,{text:function(){var N;
return(N=L.data())==null?void 0:N.subtitle}})),_.g(_.F,{cond:function(){return!Z},
then:function(){return _.g(_.bj,{data:function(){var N;return(N=L.data())==null?void 0:N.viewTipsButton}},{buttonViewModel:function(N){return _.g(_.$X,{data:N.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Ih");_.CY(Zkg,"yt-contributor-zero-state-view-model",{props:{data:_.LK}});var Nn0=_.p(function(L){var Z=function(){var N;return(N=L.data())==null?void 0:N.image};
return _.g("yt-featured-content-item-view-model",{class:_.qg("ytFeaturedContentItemViewModelHost")},_.g("div",{class:_.qg(function(){return Z()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.g("div",{class:function(){return Z()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.g(_.F,{cond:Z,
then:function(){return _.g("div",{class:"ytFeaturedContentItemViewModelImage"},_.g(_.bj,{data:function(){return L.data().image}},{themedImageViewModel:function(N){return _.g(E60,{data:N.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.g(_.F,{cond:function(){var N;
return!Z()&&((N=L.data())==null?void 0:N.iconName)},
then:function(){return _.g("div",{class:"ytFeaturedContentItemViewModelIcon"},_.g(_.T0,{icon:function(){return L.data().iconName}}))}}),_.g("div",{class:"ytFeaturedContentItemViewModelContent"},_.g(_.F,{cond:function(){var N;
return(N=L.data())==null?void 0:N.title},
then:function(){return _.g("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.g(_.qv,{text:function(){return L.data().title}}))}}),_.g(_.F,{cond:function(){var N;
return(N=L.data())==null?void 0:N.body},
then:function(){return _.g("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.g(_.qv,{text:function(){return L.data().body}}))}})))))},"Jh");var S9g=_.p(function(L){var Z=function(){var u;return Pev((u=L.data())==null?void 0:u.titleFontSize)},N=function(){var u;
return pMq((u=L.data())==null?void 0:u.descriptionFontSize)},S=function(){var u;
return((u=L.data())==null?void 0:u.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.g("yt-landing-page-view-model",{class:_.qg("ytLandingPageViewModelHost",L.className)},_.g("div",{class:"ytLandingPageViewModelHeader"},_.g(_.F,{cond:function(){var u;return(u=L.data())==null?void 0:u.bannerImage},
then:function(u){return _.g("div",{class:"ytLandingPageViewModelHeaderImage"},_.g(_.bj,{data:function(){return u()}},{imageBannerViewModel:function(T){return _.g(_.qt,{data:T.data,
isPositionRelative:!0})}}))}}),_.g(_.F,{cond:function(){var u;
return(u=L.data())==null?void 0:u.bannerAnimation},
then:function(u){return _.g(_.KK,{data:function(){var T=u();if(T==null?0:T.url){var W;T={path:(W=T==null?void 0:T.url)!=null?W:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(T==null?0:T.payload){var V;T={animationData:JSON.parse((V=T==null?void 0:T.payload)!=null?V:""),autoplay:!0,loop:!0,renderer:"svg"}}else T=void 0;return{animationConfig:T}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.g("div",{class:"ytLandingPageViewModelHeaderTitle"},_.g(_.F,{cond:function(){var u;
return(u=L.data())==null?void 0:u.title},
then:function(u){return _.g("div",{class:_.qg("ytLandingPageViewModelHeaderTitleContent",Z)},_.g(_.qv,{text:function(){return u()}}))}}),_.g(_.F,{cond:function(){var u;
return(u=L.data())==null?void 0:u.description},
then:function(u){var T={};return _.g(_.qv,{className:_.qg("ytLandingPageViewModelHeaderTitleDescription",N,(T.ytLandingPageViewModelHeaderTitleDescriptionMargin=S,T)),text:function(){return u()}})}}))),_.g(_.F,{cond:function(){var u,T;
return(u=L.data())==null?void 0:(T=u.featuredContentList)==null?void 0:T.length},
then:function(){return _.g("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.g(_.bj,{data:function(){return L.data().featuredContentList}},{featuredContentItemViewModel:function(u){return _.g(Nn0,{data:u.data})}}))}}),_.g(_.F,{cond:function(){var u,T;
return(u=L.data())==null?void 0:(T=u.expandableContentList)==null?void 0:T.length},
then:function(){return _.g("div",{class:"ytLandingPageViewModelFaqSection"},_.g(_.bj,{data:function(){return L.data().expandableContentList}},{faqEntryViewModel:function(u){return _.g("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.g(_.c_l,{data:u.data}))}}))}}),_.g("div",{class:"ytLandingPageViewModelFooter"},_.g(_.F,{cond:function(){var u;
return(u=L.data())==null?void 0:u.legalCopy},
then:function(u){return _.g("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.g(_.qv,{text:function(){return u()}}))}}),_.g(_.F,{cond:function(){var u;
return(u=L.data())==null?void 0:u.actions},
then:function(u){return _.g("div",null,_.g(_.bj,{data:function(){return u()}},{flexibleActionsViewModel:function(T){return _.g(_.rX,{data:T.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Kh");_.CY(_.p(function(L){return _.g("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.g("div",{class:"ytLpSectionGroupViewModelContainer"},_.g(_.bj,{data:function(){return L.data().sections}},{landingPageViewModel:function(Z){return _.g(S9g,{data:Z.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Lh"),"yt-lp-section-group-view-model",{props:{data:_.LK}});var ikw=_.p(function(L){var Z=L.data;var N=L.selectedKey;var S=L.onSelected;var u=L.groupName;var T=function(){return Z().text},W=function(){return Z().attributedText},V=function(){return Z().subtext},M=function(){return Z().attributedSubtext},G=_.g("div",{class:"ytRadioButtonItemViewModelLabel"},_.g(_.F,{cond:T,
then:function(){return _.g("div",null,T)}}),_.g(_.F,{cond:W,
then:function(){return _.g(_.qv,{text:W})}}),_.g(_.F,{cond:V,
then:function(){return _.g("div",{class:"ytRadioButtonItemViewModelSubText"},V)}}),_.g(_.F,{cond:M,
then:function(){return _.g("div",{class:"ytRadioButtonItemViewModelSubText"},_.g(_.qv,{text:M}))}})),D=function(){if(W()){var v;
return(v=W())==null?void 0:v.content}return T()},l=function(){if(M()){var v;
return(v=M())==null?void 0:v.content}return V()};
L={};return _.g("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.g(_.rU,{name:u,checked:function(){return!(N==null||!N()||Z().key!==(N==null?void 0:N()))},
onChange:function(v){S==null||S(v.target,Z(),u==null?void 0:u())},
labelRenderable:function(){return G},
ariaLabel:function(){return l()?D()+", "+l():D()},
className:_.qg((L.ytRadioButtonItemViewModelSubTitle=function(){return!!Z().subtext},L))}))},"Mh");_.u8g=_.p(function(L){var Z=L.data;var N=function(){var S;return _.Rb((S=Z())==null?void 0:S.rendererContext)};
L={};return _.g("content-list-item-view-model",{el:_.P9(_.cT(function(){return Z().rendererContext})),
class:_.qg("ytContentListItemViewModelHost",(L.ytContentListItemViewModelTappable=N,L)),role:function(){return N()?"listitem":void 0},
tabindex:function(){return N()?0:void 0}},_.g("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.g("div",{class:"ytContentListItemViewModelImageContainer"},_.g(_.F,{cond:function(){return Z().image},
then:function(S){return _.g(_.ji,{data:S,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.g(_.bj,{data:function(){var S;
return(S=Z())==null?void 0:S.avatar}},{avatarViewModel:_.JO})),_.g("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.g("div",{class:_.qg("ytContentListItemViewModelTitle",function(){a:{switch(Z().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var S="ytContentListItemViewModelProminentTitle";
break a}S=void 0}return S})},_.g(_.qv,{text:function(){return Z().title}})),_.g("div",{class:"ytContentListItemViewModelMetadata"},_.g(_.bj,{data:function(){return Z().metadata}},{contentMetadataViewModel:function(S){return _.g(_.l7,{data:S.data,
layout:1})}})))),_.g("div",{class:"ytContentListItemViewModelActionButton"},_.g(_.bj,{data:function(){var S;
return(S=Z())==null?void 0:S.actionButton}},{buttonViewModel:_.$X,
toggleButtonViewModel:_.sj})))},"Nh");var Tnc=_.p(function(L){var Z=L.data,N=function(){var u;return(u=Z())==null?void 0:u.description},S=function(){var u;
return(u=Z())==null?void 0:u.title};
return _.g("ytfc-youth-basic-section-header-view-model",{class:_.qg("ytfcYouthBasicSectionHeaderViewModelHost",L.className)},_.g("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.g(_.bj,{data:function(){var u;return(u=Z())==null?void 0:u.avatar}},{avatarViewModel:_.JO}),_.g(_.F,{cond:function(){var u;
return _.US((u=Z())==null?void 0:u.themedImage)},
then:function(u){return _.g(_.ji,{data:u,alt:function(){var T,W;return(W=(T=S())==null?void 0:T.content)!=null?W:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.g("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.g(_.F,{cond:S,
then:function(){return _.g(_.qv,{text:S,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.g("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.g(_.bj,{data:function(){var u;
return(u=Z())==null?void 0:u.bottomBadge}},{badgeViewModel:function(u){return _.g("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.g(_.Fo,{data:u.data}))}}),_.g(_.F,{cond:N,
then:function(){return _.g(_.qv,{text:N,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Oh");var tMm=_.p(function(L){var Z=L.data;return _.g("ytfc-youth-section-body-view-model",{class:_.qg("ytfcYouthSectionBodyViewModelHost",L.className)},_.g(_.bj,{data:function(){var N;return(N=Z())==null?void 0:N.topContent}},{avatarStackViewModel:function(N){return _.g(_.ri,{data:N.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.g(_.qv,{text:function(){var N;
return(N=Z())==null?void 0:N.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Ph");var OkY=_.p(function(L){var Z=_.O(_.nh(!1,void 0,"i2FDU")),N=Z.next().value,S=Z.next().value,u=function(){return L.data().inlineExpansionEntityKey},T=_.OS(Nxq,u),W=function(){if(L.isSelected!==void 0)return L.isSelected();
if(u()){var M;return(M=T())==null?void 0:M.expanded}return N()};
Z={};var V={};return _.g("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.Z9(function(){L.isSelected!==void 0||u()||S(!N())})},_.g("div",{class:"ytInlineExpanderViewModelHeader"},_.g(_.bj,{data:function(){return L.data().headerContent}},{youthBasicSectionHeaderViewModel:Tnc}),_.g("div",{class:_.qg("ytInlineExpanderViewModelButton",(Z.ytInlineExpanderViewModelButtonExpanded=W,Z))},_.g(_.Ff,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:W(),accessibilityLabel:W()?_.iB("SHOW_LESS",void 0,"Show Less"):_.iB("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.g("div",{class:_.qg("ytInlineExpanderViewModelBody",(V.ytInlineExpanderViewModelBodyExpanded=W,V)),"aria-hidden":function(){return!W()}},_.g("div",{class:"ytInlineExpanderViewModelBodyContent"},_.g(_.bj,{data:function(){return L.data().bodyContent}},{youthSectionBodyViewModel:tMm}))))},"Qh");var W3w=new _.iY("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.VMq=_.p(function(L){var Z=function(){return L.data().background},N=function(){return L.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},S=function(){return L.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},u=_.GR().resolve(_.gv(W3w));
return _.g("yt-card-view-model",{el:_.P9(_.cT(function(){return L.data().rendererContext})),
class:_.qg("ytCardViewModelHost",L.className)},_.g(_.vA,{contentId:function(){return L.data().contentId}},function(){var T={};
return _.g("div",{class:_.qg("ytCardViewModelCardViewModelInner",function(){var W;return z55(L.data().cardStyle,(W=L.isSelected)==null?void 0:W.call(L))},function(){if(L.isSelected===void 0){var W;
a:{switch((W=L.data().cardState)==null?void 0:W.selectionState){case "CARD_SELECTION_STATE_SELECTED":W="ytCardViewModelSelected";break a}W=void 0}return W}})},_.g(_.bj,{data:Z},{cinematicContainerViewModel:function(W){return _.g(_.stt,{data:W.data})}}),_.g("div",{class:"ytCardViewModelContentWrapper"},_.g(_.F,{cond:function(){return!N()},
then:function(){var W={},V={};return _.g("div",{class:"ytCardViewModelTopContentContainer"},_.g("div",{class:_.qg("ytCardViewModelTopContent",(W.ytCardViewModelInnerPadding=function(){return!L.data().disableTopContentPadding&&L.data().topContent},W))},_.g(_.bj,{data:function(){return L.data().topContent}},{contentListItemViewModel:function(M){return _.g(_.u8g,{data:M.data})},
linearLayoutViewModel:_.A8})),_.g("div",{class:_.qg("ytCardViewModelInlineTrailingAction",(V.ytCardViewModelInlineCenterTrailingAction=S,V.ytCardViewModelInlineTrailingActionMargin=function(){return L.data().trailingAction},V))},_.g(_.bj,{data:function(){return L.data().trailingAction}},{buttonViewModel:function(M){return _.g(_.$X,{data:M.data})}})))}}),_.g("div",{class:_.qg((T.ytCardViewModelInnerPadding=function(){return!L.data().disableBodyContentPadding&&L.data().bodyContent},T))},_.g(_.bj,{data:function(){return L.data().bodyContent}},
Object.assign({},{channelAttributionViewModel:_.OAs,
contentListItemViewModel:_.u8g,descriptionPreviewViewModel:_.K$,inlineExpanderViewModel:function(W){return _.g(OkY,{data:W.data,isSelected:L.isSelected})},
linearLayoutViewModel:_.A8,listItemViewModel:_.QO},u&&{contentSectionViewModel:u})))),_.g(_.F,{cond:function(){return N()},
then:function(){return _.g("div",{class:"ytCardViewModelOverlayTrailingAction"},_.g(_.bj,{data:function(){return L.data().trailingAction}},{buttonViewModel:function(W){return _.g(_.$X,{data:W.data})}}))}}))}))},"Rh");var bk0=_.p(function(L){var Z=L.data,N=L.onSelected,S=L.selectedKey,u=L.groupName;L=L.className;var T=_.O(_.nh(!1,void 0,"zyw1Be")),W=T.next().value,V=T.next().value,M=function(){if(S!==void 0){var G=S();return!(!G||Z().key!==G)}return W()};
T=_.Z9(function(G){N?N(G.currentTarget,Z(),u==null?void 0:u()):V(!W())});
return _.g("yt-selectable-item-view-model",{class:_.qg("ytSelectableItemViewModelHost",L,"ytSelectableItemViewModelContainer"),"on:click":T,"prop:checked":M},_.g(_.bj,{data:function(){return Z().content}},{cardViewModel:function(G){return _.g(_.VMq,{data:G.data,
isSelected:M})}}))},"Sh");_.MMy=_.p(function(L){var Z=L.data;var N=L.onSelected;var S=L.selectedKey;var u=L.groupName;var T=function(){return(u==null?void 0:u())||Z().key};
return _.g("yt-radio-button-group-view-model",{class:_.qg("ytRadioButtonGroupViewModelHost",L.className)},_.g("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.g(_.bj,{data:function(){return Z().radioButtons}},{radioButtonItemViewModel:function(W){return _.g(ikw,{data:W.data,
onSelected:N,selectedKey:S,groupName:T})},
selectableItemViewModel:function(W){return _.g(bk0,{data:W.data,onSelected:N,selectedKey:S,groupName:T})}})))},"Th");var gQv=_.p(function(L){_.m0(function(){if(L.controlledMode()&&L.data().defaultSelected)_.CA(Error("$j"));else{var T;!L.controlledMode()&&((T=L.selected)==null?0:T.call(L))&&_.CA(Error("ak"))}});
var Z=_.O(_.i4(function(){if(!L.controlledMode())return L.data().defaultSelected})),N=Z.next().value,S=Z.next().value,u=function(){if(!L.controlledMode())return N();
var T;return(T=L.selected)==null?void 0:T.call(L)};
return _.g("yt-checkbox-item-view-model",{class:_.qg("ytCheckboxItemViewModelHost",L.className)},_.g(_.QO,{data:function(){var T=L.data(),W=u();return{title:T.text,subtitle:T.subtext,superlabel:T.superlabel,isSelected:!!W,isDisabled:T.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!L.controlledMode()&&S(!N());var T,W;(W=L.onTap)==null||W.call(L,!!u(),L.data(),(T=L.groupName)==null?void 0:T.call(L))},
isCompact:L.isCompact}))},"Uh");var GaY=_.p(function(L){var Z=L.data;var N=L.controlledMode;var S=L.selectedKeys;var u=L.onItemTap;var T=L.groupName;var W=function(){return(T==null?void 0:T())||Z().key};
_.m0(function(){N()&&Z().defaultSelectedKeys?_.CA(Error("bk")):!N()&&(S==null?0:S())&&_.CA(Error("ck"))});
L=_.O(_.i4(function(){if(!N())return Z().defaultSelectedKeys}));
var V=L.next().value,M=L.next().value,G=function(D,l,v){D=[];!N()&&l.key&&(D=m4w(l.key,V()||[]),M(D));u==null||u(l,D,v)};
return _.g("yt-checkbox-group-view-model",{class:_.qg("ytCheckboxGroupViewModelHost")},_.g("fieldset",{class:_.qg("ytCheckboxGroupViewModelFieldset")},_.g(_.bj,{data:function(){return Z().checkboxes}},{checkboxItemViewModel:function(D){var l=D.data;
return _.g(gQv,{data:l,controlledMode:!0,selected:function(){var v=N()?(S==null?void 0:S())||[]:V()||[],R=l().key;return R?v.includes(R):!1},
onTap:G,groupName:W})}})))},"Vh");var $c=_.p(function(L){var Z=_.OS(J2v,_.jA(function(){var V;return(V=L.data())==null?void 0:V.noteFeedEntityKey},"")),N=_.OS(Tx8,_.jA(function(){var V;
return(V=L.data())==null?void 0:V.userRatingEntityKey},"")),S=_.c("enable_user_rating_web"),u=function(){var V,M,G;
return((V=Z())==null?0:V.contributorNote)?(M=Z())==null?void 0:M.contributorNote:(G=L.data())==null?void 0:G.existingNote},T=function(){var V,M;
return!!N()&&!!CeY((V=N())==null?void 0:V.helpfulnessValue,(M=L.data())==null?void 0:M.noteData)};
if(S){var W={};return _.g("yt-note-view-model",{class:_.qg("ytNoteViewModelHostUserRating",(W.ytNoteViewModelHostUserRatingPublishedNote=function(){var V,M,G,D;return((V=L.data())==null?void 0:(M=V.noteData)==null?void 0:M.isPublished)&&!((G=L.data())==null?0:(D=G.noteData)==null?0:D.isUserRatingForm)},W))},_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.g(_.F,{cond:function(){var V,M;
return(V=L.data())==null?void 0:(M=V.noteData)==null?void 0:M.isPinned},
then:function(){return _.g(_.T0,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.g(_.F,{cond:function(){var V,M;return(V=L.data())==null?void 0:(M=V.noteData)==null?void 0:M.isPublished},
then:function(){return _.g(_.T0,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.g(_.bj,{data:function(){var V;
return(V=L.data())==null?void 0:V.metadata}},{contentMetadataViewModel:_.l7}),_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var V,M;
return(M=_.n((V=L.data())==null?void 0:V.metadata,_.bSM))==null?void 0:M.delimiter}),_.g(_.qv,{text:function(){var V;
return(V=u())==null?void 0:V.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.g(_.F,{cond:function(){var V,M;return!((V=L.data())==null?0:(M=V.noteData)==null?0:M.isUserRatingForm)},
then:function(){return _.g(_.bj,{data:function(){var V,M,G,D,l,v,R,K=!!((V=L.data())==null?0:(M=V.noteData)==null?0:M.isPinned);V=T();M=(G=L.data())==null?void 0:G.noteData;G=(D=Z())==null?void 0:(l=D.contributorNote)==null?void 0:l.deleteAction;D=(v=L.data())==null?void 0:v.overflowButtonNoteWithRatingOnTapOverride;v=(R=L.data())==null?void 0:R.overflowButton;return K?r2q(M,G):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:D}}:v}},{buttonViewModel:function(V){return _.g(_.$X,{data:V.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.g("div",{class:"ytNoteViewModelNoteContent"},_.g(_.qv,{text:function(){var V;
return(V=u())==null?void 0:V.text}})),_.g(_.F,{cond:function(){var V,M,G,D;
return!((V=L.data())==null?0:(M=V.noteData)==null?0:M.isPinned)&&!((G=L.data())==null?0:(D=G.noteData)==null?0:D.isUserRatingForm)},
then:function(){return _.g(_.F,{cond:T,then:function(){return _.g("div",{class:"ytNoteViewModelUserRatingContainer"},_.g(_.qv,{text:function(){var V,M;return CeY((V=N())==null?void 0:V.helpfulnessValue,(M=L.data())==null?void 0:M.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.g(_.bj,{data:function(){var V;return(V=L.data())==null?void 0:V.userRatingButton}},{buttonViewModel:function(V){return _.g(_.$X,{data:V.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.g(_.F,{cond:function(){var V,M,G,D;
return!((V=L.data())==null?0:(M=V.noteData)==null?0:M.ignoreDivider)&&!((G=L.data())==null?0:(D=G.noteData)==null?0:D.isUserRatingForm)},
then:function(){return _.g("div",{class:"ytNoteViewModelDivider"},_.g(_.bj,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(V){return _.g(_.pGN,{data:V.data})}}))}}))}return _.g("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.g(_.F,{cond:function(){var V,M;return(V=L.data())==null?void 0:(M=V.noteData)==null?void 0:M.isPinned},
then:function(){return _.g(_.T0,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.g(_.F,{cond:function(){var V,M;return(V=L.data())==null?void 0:(M=V.noteData)==null?void 0:M.isPublished},
then:function(){return _.g(_.T0,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.g(_.F,{cond:function(){return S},
then:function(){return _.g(_.bj,{data:function(){var V;return(V=L.data())==null?void 0:V.metadata}},{contentMetadataViewModel:function(V){return _.g(_.l7,{data:V.data})}})}}),_.g(_.qv,{text:function(){var V,M;
return(V=L.data())==null?void 0:(M=V.noteData)==null?void 0:M.headerText}}),_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.g(_.qv,{text:function(){var V,M;
return(V=L.data())==null?void 0:(M=V.noteData)==null?void 0:M.delimiter}})),_.g(_.qv,{text:function(){var V,M;
return(V=Z())==null?void 0:(M=V.contributorNote)==null?void 0:M.publishedTimeText}})),_.g(_.bj,{data:function(){var V,M,G;
return r2q((V=L.data())==null?void 0:V.noteData,(M=Z())==null?void 0:(G=M.contributorNote)==null?void 0:G.deleteAction)}},{buttonViewModel:function(V){return _.g(_.$X,{data:V.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.g("div",{class:"ytNoteViewModelNoteContent"},_.g(_.qv,{text:function(){var V,M;
return(V=Z())==null?void 0:(M=V.contributorNote)==null?void 0:M.text}})))},"Wh");
$c.idomCompat=!0;_.CY(_.p(function(L){var Z=_.jA(function(){var E;return(E=L.data())==null?void 0:E.flowStateEntityKey},""),N=_.OS(_.si,Z),S=_.OS(J2v,_.jA(function(){var E;
return(E=L.data())==null?void 0:E.noteFeedEntityKey},"")),u=_.O(_.i4(function(){var E;
return(E=_.n(L.data().helpfulnessValue,_.Eg))==null?void 0:E.defaultSelectedKey})),T=u.next().value,W=u.next().value;
u=_.O(_.i4(function(){var E,A,J;return(J=_.n((E=_.n(L.data().helpfulnessValue,_.Eg))==null?void 0:(A=E.radioButtons)==null?void 0:A.find(function(C){var X;return((X=_.n(C,Kgq))==null?void 0:X.key)===T()}),Kgq))==null?void 0:J.value}));
var V=u.next().value,M=u.next().value;u=_.O(_.i4(function(){var E;return(E=_.n(L.data().helpfulReasons,nPY))==null?void 0:E.defaultSelectedKeys}));
var G=u.next().value,D=u.next().value;u=_.O(_.i4(function(){var E;return(E=_.n(L.data().notHelpfulReasons,nPY))==null?void 0:E.defaultSelectedKeys}));
var l=u.next().value,v=u.next().value,R=function(E,A){W(A.key);M(A.value);D([]);v([])},K=function(){var E,A;
return((E=V())==null?void 0:E.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((A=V())==null?void 0:A.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},U=function(){var E,A;
return((E=V())==null?void 0:E.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((A=V())==null?void 0:A.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},d=function(E){Q6k(E.key,G,D)},h=function(E){Q6k(E.key,l,v)};
_.m0(function(){var E,A,J;iov((E=L.data())==null?void 0:(A=E.userRatingFormSchema)==null?void 0:A.id,{isValid:function(){return!!T()},
formData:function(){var C=V(),X=A2y(G(),_.n(L.data().helpfulReasons,nPY)),L1=A2y(l(),_.n(L.data().notHelpfulReasons,nPY));C={helpfulnessValue:C==null?void 0:C.noteHelpfulnessValue};if(X){C.helpfulReasons=[];X=_.O(X);for(var Fw=X.next();!Fw.done;Fw=X.next()){Fw=Fw.value;var GB=void 0;if((GB=Fw)==null?0:GB.noteHelpfulReason)GB=void 0,C.helpfulReasons.push((GB=Fw)==null?void 0:GB.noteHelpfulReason)}}if(L1)for(C.notHelpfulReasons=[],L1=_.O(L1),X=L1.next();!X.done;X=L1.next())if(X=X.value,Fw=void 0,(Fw=
X)==null?0:Fw.noteNotHelpfulReason)Fw=void 0,C.notHelpfulReasons.push((Fw=X)==null?void 0:Fw.noteNotHelpfulReason);return{userRatingFormData:C}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(J=_.n(N(),bvs))==null?void 0:J.submitFormParams},onSubmitResult:function(){var C,X=(C=_.n(N(),bvs))==null?void 0:C.userRatingEntityKey,L1;C={key:X,helpfulnessValue:(L1=V())==null?void 0:L1.noteHelpfulnessValue};X&&_.sk(_.Mr("contextNoteUserRatingEntityPayload",X,C));var Fw;X=(Fw=L.data())==null?void 0:Fw.viewNoteFlowStepId;var GB;if((GB=S())==null||!GB.contributorNote){var Yt;X=(Yt=L.data())==null?void 0:Yt.zeroStateFlowStepId}(Fw=
Object.assign({},N()))&&X&&(Fw.currentStepId=X,Fw.stepIdStack=[X],_.sk(_.Mr("flowStateEntity",Z(),Fw)));var lH;(Fw=(lH=L.data())==null?void 0:lH.ratingSubmittedSnackbarCommand)&&_.w$(Fw)},
disableDuringSubmission:!0})});
return _.g("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.g(_.bj,{data:function(){var E=_.n(N(),bvs);if(E){var A;var J={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:E==null?void 0:(A=E.note)==null?void 0:A.headerText}]}],delimiter:"\u2022"}},existingNote:E.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else J=void 0;return J}},{noteViewModel:function(E){return _.g("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.g($c,{data:E.data}))}}),_.g(_.bj,{data:function(){var E;
return(E=L.data())==null?void 0:E.helpfulnessValue}},{radioButtonGroupViewModel:function(E){return _.g("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.g(_.MMy,{data:E.data,
onSelected:R,selectedKey:T}))}}),_.g(_.F,{cond:K,
then:function(){return _.g("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.g("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.g(_.qv,{text:function(){var E;return(E=L.data())==null?void 0:E.helpfulReasonQuestion}})),_.g(_.bj,{data:function(){var E;
return(E=L.data())==null?void 0:E.helpfulReasons}},{checkboxGroupViewModel:function(E){return _.g(GaY,{data:E.data,
onItemTap:d,selectedKeys:G,controlledMode:!0})}}))}}),_.g(_.F,{cond:U,
then:function(){return _.g("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.g("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.g(_.qv,{text:function(){var E;return(E=L.data())==null?void 0:E.notHelpfulReasonQuestion}})),_.g(_.bj,{data:function(){var E;
return(E=L.data())==null?void 0:E.notHelpfulReasons}},{checkboxGroupViewModel:function(E){return _.g(GaY,{data:E.data,
onItemTap:h,selectedKeys:l,controlledMode:!0})}}))}}),_.g(_.F,{cond:function(){return!K()&&!U()},
then:function(){return _.g(_.bj,{data:function(){var E;return(E=L.data())==null?void 0:E.helpfulNoteFeatures}},{alertBannerViewModel:function(E){return _.g("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.g(_.XGt,{data:E.data}))}})}}))},"Xh"),"yt-note-user-rating-view-model",{props:{data:_.LK}});_.CY($c,"yt-note-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){var Z=_.OS(J2v,_.jA(function(){var N;return(N=L.data())==null?void 0:N.noteFeedEntityKey},""));
return _.g("yt-notes-wrapper-view-model",{class:_.qg("ytNotesWrapperViewModelHost")},_.g(_.F,{cond:function(){var N,S,u;return!((N=L.data())==null||!N.existingNotes)||!((S=L.data())==null||!S.currentNote)&&!((u=Z())==null||!u.contributorNote)},
then:function(){return _.g(_.F7,null,_.g(_.bj,{data:function(){var N,S,u,T;return((S=_.n((N=L.data())==null?void 0:N.currentNote,M9g))==null?0:(u=S.noteData)==null?0:u.isPublished)?(T=L.data())==null?void 0:T.currentNote:void 0}},{noteViewModel:function(N){return _.g($c,{data:N.data})}}),_.g(_.bj,{data:function(){var N;
return(N=L.data())==null?void 0:N.existingNotes}},{noteViewModel:function(N){var S=N.data;
return _.g(_.F,{cond:function(){var u,T;return(u=S())==null?void 0:(T=u.noteData)==null?void 0:T.isPublished},
then:function(){return _.g($c,{data:S})}})}}),_.g(_.bj,{data:function(){var N,S,u,T,W;
return((S=_.n((N=L.data())==null?void 0:N.currentNote,M9g))==null?0:(u=S.noteData)==null?0:u.isPublished)||(T=Z())==null||!T.contributorNote?void 0:(W=L.data())==null?void 0:W.currentNote}},{noteViewModel:function(N){return _.g($c,{data:N.data})}}),_.g(_.bj,{data:function(){var N;
return(N=L.data())==null?void 0:N.existingNotes}},{noteViewModel:function(N){var S=N.data;
return _.g(_.F,{cond:function(){var u,T;return!((u=S())==null?0:(T=u.noteData)==null?0:T.isPublished)},
then:function(){return _.g($c,{data:S})}})}}))},
else:function(){return _.g(_.bj,{data:function(){var N;return(N=L.data())==null?void 0:N.zeroStateData}},{contributorZeroStateViewModel:Zkg})}}))},"Yh"),"yt-notes-wrapper-view-model",{props:{data:_.LK}});var DE=_.p(function(L){var Z=_.Ek(L,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),N=Z.label,S=Z.text,u=Z.placeholder,T=Z.hint;L=Z.rows;var W=Z.overflowStyle,V=Z.outline,M=Z.disabled,G=Z.disableNewLines,D=Z.characterLimit,l=Z.validation,v=Z.onInput,R=_.t2("textarea");Z=_.O(_.i4(function(){return S()}));
var K=Z.next().value,U=Z.next().value;Z=_.O(_.nh(!1,void 0,"u9PDq"));var d=Z.next().value,h=Z.next().value,E=function(){h(!0)},A=function(){h(!1)};
_.m0(function(){var jf=R.value,f1=W(),n0=K();f1==="expand-vertically"&&n0&&Hok(jf);R.value.addEventListener("focusin",E);R.value.addEventListener("focusout",A)});
_.zs(function(){R.value.removeEventListener("focusin",E);R.value.removeEventListener("focusout",A)});
var J=function(){var jf;return(jf=l())==null?void 0:jf.validate(K())},C=function(){return D()&&!J()&&K().length>D().maxChars},X=function(){return!!J()||C()};
Z=_.Z9(function(jf){if(!jf.currentTarget)return!1;jf=jf.currentTarget;U(jf.value);W()==="expand-vertically"&&Hok(jf);v==null||v(jf.value);return!0});
var L1=_.Z9(function(jf){G()&&jf.key==="Enter"&&jf.preventDefault();return!1}),Fw=_.Z9(function(){R.value.focus()}),GB=function(){return u()||N()},Yt={},lH={},RF={};
return _.g("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.g("div",{class:_.qg("ytStandardsTextareaShapeTextareaContainer",(Yt.ytStandardsTextareaShapeTextareaContainerOutline=V,Yt.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=M,Yt.ytStandardsTextareaShapeTextareaContainerOutlineError=X,Yt)),"on:click":Fw},_.g("label",{class:_.qg("ytStandardsTextareaShapeLabel",(lH.ytStandardsTextareaShapeLabelFocused=d,lH.ytStandardsTextareaShapeLabelDisabled=M,lH.ytStandardsTextareaShapeLabelError=
function(){return X()&&!M()},lH.ytStandardsTextareaShapeLabelHidden=function(){return!d()&&!K()&&!!GB()},lH))},N),_.g("div",{class:_.qg("ytStandardsTextareaShapePlaceholder",(RF.ytStandardsTextareaShapePlaceholderVisible=function(){return!d()&&!K()},RF)),
"aria-hidden":"true"},GB),_.g("textarea",{el:R,class:"ytStandardsTextareaShapeTextarea",rows:L,disabled:M,placeholder:GB,"on:input":Z,"on:keydown":L1},K)),_.g(_.F,{cond:function(){return T()&&!X()},
then:function(){var jf={};return _.g("div",{class:_.qg("ytStandardsTextareaShapeHint",(jf.ytStandardsTextareaShapeHintDisabled=M,jf))},_.g("div",{class:"ytStandardsTextareaShapeHintHintMessage"},T))}}),_.g(_.F,{cond:J,
then:function(){return _.g(F3g,{disabled:M},_.g("div",{class:"ytStandardsTextareaShapeErrorMessage"},J))}}),_.g(_.F,{cond:D,
then:function(jf){return _.g(_.F,{cond:C,then:function(){return _.g(F3g,{disabled:M},_.g("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return jf().errorMessage}),_.g("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return K().length+"/"+jf().maxChars}))}})}}))},"Zh");
DE.idomCompat={callbacks:{onInput:!0}};var F3g=_.p(function(L){var Z={};return _.g("div",{class:_.qg("ytStandardsTextareaShapeError",(Z.ytStandardsTextareaShapeErrorDisabled=L.disabled,Z)),role:"alert"},_.g(_.T0,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),L.children)},"$h");_.$eY=_.p(function(L){var Z=L.data;return _.g("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.g(DE,{text:L.text,label:function(){var N;return(N=Z().contentProperties)==null?void 0:N.labelText},
placeholder:function(){var N;return(N=Z().contentProperties)==null?void 0:N.placeholderText},
hint:function(){var N;return(N=Z().contentProperties)==null?void 0:N.hintText},
outline:function(){var N;return!((N=Z().displayProperties)==null?0:N.hideBorder)},
overflowStyle:function(){var N;return((N=Z().displayProperties)==null?0:N.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:L.disabled,disableNewLines:function(){var N;return(N=Z().displayProperties)==null?void 0:N.disableNewLines},
onInput:L.onInput,characterLimit:L.characterLimit,validation:L.validation,rows:function(){var N;return(N=Z().displayProperties)==null?void 0:N.rows}}))},"ai");_.Deg=_.p(function(L){var Z=L.data;return _.g("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.g(DE,{text:L.text,label:function(){var N;return(N=Z().contentProperties)==null?void 0:N.labelText},
placeholder:function(){var N;return(N=Z().contentProperties)==null?void 0:N.placeholderText},
hint:function(){var N;return(N=Z().contentProperties)==null?void 0:N.hintText},
outline:function(){var N;return!((N=Z().displayProperties)==null?0:N.hideBorder)},
overflowStyle:function(){var N;return((N=Z().displayProperties)==null?0:N.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var N;return(N=Z().displayProperties)==null?void 0:N.disableNewLines},
onInput:L.onInput,characterLimit:L.characterLimit,validation:L.validation,rows:function(){var N;return(N=Z().displayProperties)==null?void 0:N.rows}}))},"bi");var lTs=_.p(function(L){var Z=_.O(_.i4(function(){var GB,Yt;return((GB=L.data().structuredContextNoteFormSchema)==null?0:(Yt=GB.initialValues)==null?0:Yt.noteBody)?L.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),N=Z.next().value,S=Z.next().value;
Z=_.O(_.i4(function(){L.data();return!1}));
var u=Z.next().value,T=Z.next().value;Z=_.O(_.i4(function(){L.data();return!1}));
var W=Z.next().value,V=Z.next().value;Z=_.O(_.i4(function(){var GB,Yt;return((GB=L.data().structuredContextNoteFormSchema)==null?0:(Yt=GB.initialValues)==null?0:Yt.timestamp)?L.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var M=Z.next().value,G=Z.next().value;Z=_.O(_.i4(function(){L.data();return!1}));
var D=Z.next().value,l=Z.next().value;Z=_.O(_.i4(function(){var GB,Yt;return((GB=L.data().structuredContextNoteFormSchema)==null?0:(Yt=GB.initialValues)==null?0:Yt.sources)?[L.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var v=Z.next().value,R=Z.next().value;Z=_.O(_.i4(function(){L.data();return!1}));
var K=Z.next().value,U=Z.next().value;Z=_.O(_.i4(function(){return!1}));
var d=Z.next().value,h=Z.next().value;_.m0(function(){var GB;_.ulQ((GB=L.data().structuredContextNoteFormSchema)==null?void 0:GB.id,{isSubmitting:d,onSubmit:function(){h(!0);var Yt=u$y(N(),M(),v(),L.data()),lH=_.GR().resolve(_.$s);Yt&&lH&&lH.resolveCommand(Yt,{commandController:{onSuccess:function(){h(!1)}}})},
isValid:function(){return u()&&!W()&&!D()&&!K()}})});
var E=function(GB){if(GB!==void 0&&(S(GB),!u()&&GB.length>0&&T(!0),u())){var Yt=qVw(L.data());if(Yt){var lH=Yt.minLength;Yt=Yt.maxLength;lH&&GB.length<lH?V(!0):Yt&&GB.length>Yt?V(!0):V(!1)}}},A=function(GB){if(GB!==void 0){G(GB);
if(GB.length>0){var Yt,lH,RF,jf,f1=ZHg((Yt=L.data())==null?void 0:(lH=Yt.structuredContextNoteFormSchema)==null?void 0:(RF=lH.fieldSchemas)==null?void 0:(jf=RF.timestamp)==null?void 0:jf.validationSchema);if(f1&&(Yt=f1.regex)&&!(new RegExp(Yt)).test(GB)){l(!0);return}}l(!1)}},J=function(GB){if(GB!==void 0){var Yt=GB.split(/[ \n]/).map(function(lH){return lH.trim()});
R(Yt);if(GB.length>0)for(GB=_.O(Yt),Yt=GB.next();!Yt.done;Yt=GB.next())if(!iH0(Yt.value)){U(!0);return}U(!1)}},C=function(){return{validate:function(GB){if(u()){var Yt=qVw(L.data());
if(Yt){var lH=Yt.minLength;Yt=Yt.translations;if(lH&&GB.length<lH)return Yt==null?void 0:Yt.minLengthErrorMessage}}}}},X=function(){var GB=qVw(L.data()),Yt=GB==null?void 0:GB.maxLength,lH;
GB=GB==null?void 0:(lH=GB.translations)==null?void 0:lH.maxLengthErrorMessage;if(Yt&&GB)return{maxChars:Yt,errorMessage:GB}},L1=function(){return{validate:function(GB){if(GB){var Yt,lH,RF,jf,f1=ZHg((Yt=L.data())==null?void 0:(lH=Yt.structuredContextNoteFormSchema)==null?void 0:(RF=lH.fieldSchemas)==null?void 0:(jf=RF.timestamp)==null?void 0:jf.validationSchema);
if(f1&&(Yt=f1.regex,f1=f1.translations,Yt&&!(new RegExp(Yt)).test(GB)))return f1==null?void 0:f1.regexErrorMessage}}}},Fw=function(){return{validate:function(GB){if(GB){var Yt,lH,RF,jf,f1=SUQ((Yt=L.data())==null?void 0:(lH=Yt.structuredContextNoteFormSchema)==null?void 0:(RF=lH.fieldSchemas)==null?void 0:(jf=RF.sources)==null?void 0:jf.validationSchema);
if(f1&&(Yt=f1.translations,Yt==null?0:Yt.selectedErrorMessage))for(GB=GB.split(/[ \n]/).map(function(n0){return n0.trim()}),GB=_.O(GB),lH=GB.next();!lH.done;lH=GB.next())if(!iH0(lH.value))return GB=void 0,(GB=Yt)==null?void 0:GB.selectedErrorMessage}}}};
return _.g("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.g("div",{class:"ytStructuredContextNoteViewModelTextField"},_.g(_.bj,{data:function(){var GB;return(GB=L.data())==null?void 0:GB.noteContents}},{textFormFieldViewModel:function(GB){return _.g(_.Deg,{data:GB.data,
onInput:E,validation:C,characterLimit:X})},
textFieldViewModel:function(GB){return _.g(_.$eY,{data:GB.data,onInput:E,validation:C,characterLimit:X})}})),_.g("div",{class:"ytStructuredContextNoteViewModelTextField"},_.g(_.bj,{data:function(){var GB;
return(GB=L.data())==null?void 0:GB.noteTimestamp}},{textFormFieldViewModel:function(GB){return _.g(_.Deg,{data:GB.data,
onInput:A,validation:L1})},
textFieldViewModel:function(GB){return _.g(_.$eY,{data:GB.data,onInput:A,validation:L1})}})),_.g("div",{class:"ytStructuredContextNoteViewModelTextField"},_.g(_.bj,{data:function(){var GB;
return(GB=L.data())==null?void 0:GB.noteSources}},{textFormFieldViewModel:function(GB){return _.g(_.Deg,{data:GB.data,
onInput:J,validation:Fw})},
textFieldViewModel:function(GB){return _.g(_.$eY,{data:GB.data,onInput:J,validation:Fw})}})))},"ci");
lTs.idomCompat=!0;_.CY(lTs,"yt-structured-context-note-view-model",{props:{data:_.LK}});var vQQ=_.p(function(L){var Z=_.O(_.i4(function(){var T;if((T=L.controlled)==null?0:T.call(L))return[];var W;return(((W=L.data())==null?void 0:W.chips)||[]).map(function(V){V=_.n(V,_.Sh);if(V==null?0:V.selected)return Tds(V.chipValue)}).filter(function(V){return V!==void 0})})),N=Z.next().value,S=Z.next().value,u=function(T){var W=Tds(T.chipValue);
if(W!==void 0){var V;if((V=L.controlled)==null?0:V.call(L))return void L.controlled().onTap(W);T=N().includes(W)?[].concat(_.Pd(N().filter(function(G){return G!==W}))):[].concat(_.Pd(N()),[W]);
S(T);var M;if((M=L.uncontrolled)==null?0:M.call(L))L.uncontrolled().onUpdate(T)}};
return _.g("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.g(_.ju,{each:function(){return L.data().chips||[]}},function(T){return _.g("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.g(_.Ek0,{data:function(){return _.n(T,_.Sh)},
selected:function(){var W;if(W=_.n(T,_.Sh)){var V=Tds(W.chipValue);if(V!==void 0){var M;W=((M=L.controlled)==null?0:M.call(L))?L.controlled().selectedValues.includes(V):N().includes(V)}else W=void 0}else W=!1;return W},
callback:u}))}))},"di");var oQ5=_.p(function(L){var Z=L.data;var N=function(){var V;return((V=Z())==null?void 0:V.flowStateKey)||""},S=_.OS(_.si,N),u=function(){var V;
return(V=_.n(S(),gPq))==null?void 0:V.chips},T=function(V){if(V!==void 0){var M=u()||[];
M=M.find(function(G){return G===V})?M.filter(function(G){return G!==V}):[].concat(_.Pd(M),[V]);
M=Object.assign({},S(),{feedbackFormFlowState:Object.assign({},_.n(S(),gPq),{chips:M})});_.sk(_.Mr("flowStateEntity",N(),M))}},W=function(){var V;
return _.n((V=Z())==null?void 0:V.inputBox,Gov)};
L=_.cz(function(V){var M=W();M=!(M==null?0:M.maxChars)||V.length<=M.maxChars;V=Object.assign({},S(),{feedbackFormFlowState:Object.assign({},_.n(S(),gPq),{detail:V}),abuseReportFlowState:Object.assign({},_.n(S(),j_),{navigationEnabled:M})});_.sk(_.Mr("flowStateEntity",N(),V))},150);
return _.g("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.g("div",{class:"ytFeedbackFormViewModelChips"},_.g(_.bj,{data:function(){var V;return(V=Z())==null?void 0:V.chipSelection}},{chipSelectionFormFieldViewModel:function(V){return _.g(vQQ,{data:V.data,
controlled:function(){return{selectedValues:u()||[],onTap:T}}})}})),_.g("div",{class:"ytFeedbackFormViewModelInputBox"},_.g(DE,{text:function(){var V;
return(V=_.n(S(),gPq))==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:L})),_.g("div",{class:"ytFeedbackFormViewModelFooterText"},_.g(_.qv,{text:function(){return Z().footerText}})))},"ei");
oQ5.idomCompat=!0;_.CY(oQ5,"yt-feedback-form-view-model",{props:{data:_.LK}});var RRy=_.p(function(L){var Z=L.data;var N=_.OS(SVP,function(){return Z().flowStateKey||""}),S=function(){var u;
_.w$((u=_.n(N(),j_))==null?void 0:u.navigationCommand)};
return _.g("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.g("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.g(_.bj,{data:function(){return Z().cancelButton}},{buttonViewModel:function(u){return _.g(_.$X,{data:u.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:S})}}),_.g(_.bj,{data:function(){var u;
if(Z().navButton){var T=Object;var W=T.assign,V=_.n(Z().navButton,_.NU),M=((u=_.n(N(),j_))==null?0:u.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",G,D;u=_.n((G=_.n(N(),j_))==null?void 0:G.navigationCommand,_.nY);G=(D=_.n(u,_.Lo))==null?void 0:D.url;T={buttonViewModel:W.call(T,{},V,{state:M,iconName:G?"OPEN_IN_NEW":""})}}else T=void 0;return T}},{buttonViewModel:function(u){return _.g(_.$X,{data:u.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:S})}})))},"fi");
RRy.idomCompat=!0;_.CY(RRy,"yt-report-form-bottom-bar-view-model",{props:{data:_.LK}});var cNg=_.p(function(L){var Z=L.nextStep;return _.g("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.g("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.g(_.T0,{icon:function(){return Z().iconName||""}})),_.g("div",null,_.g(_.qv,{text:function(){return Z().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"gi"),nQv=_.p(function(L){var Z=L.data;
var N,S=(N=_.GR().resolve(_.gv(_.d$)))==null?void 0:N(),u=_.OS(_.si,function(){return Z().flowStateKey||""});
return _.g("yt-report-form-confirmation-page-view-model",{class:function(){var T;return((T=_.n(u(),j_))==null?void 0:T.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.g("div",{class:function(){var T;
return((T=_.n(u(),j_))==null?void 0:T.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.g(_.ji,{data:function(){return S&&Z().imageDark?Z().imageDark:Z().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.g("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.g("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return Z().confirmationHeader}),_.g("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.g(_.qv,{text:function(){return Z().confirmationText}})),_.g("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.g(_.qv,{text:function(){return Z().lawEnforcementText}})),
_.g("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return Z().whatToExpectHeader}),_.g(_.F,{cond:function(){return Z().nextSteps},
then:function(T){return _.g("div",null,_.g(_.ju,{each:T},function(W){return _.g(cNg,{nextStep:W})}))}}),_.g(_.F,{cond:function(){return Z().legalReportText},
then:function(T){return _.g("div",null,_.g(_.qv,{text:T,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"hi");
nQv.idomCompat=!0;_.CY(nQv,"yt-report-form-confirmation-page-view-model",{props:{data:_.LK}});var K3Y=_.p(function(L){var Z=L.data;var N=function(){var T;return((T=_.n(Z().inputBox,Gov))==null?void 0:T.maxChars)||500},S=function(){return Z().flowStateKey||""},u=_.OS(_.si,S);
L=_.cz(function(T){T=Object.assign({},u(),{flowFormState:{isValid:T.length<=N()},abuseReportFlowState:{userComments:T,navigationEnabled:!(T.length>N()),isReportFormDirty:!0}});_.hJ().dispatch(_.vt("flowStateEntity",S(),T))},150);
_.m0(function(){var T=Object.assign({},u(),{flowFormState:{isValid:!0}});_.hJ().dispatch(_.vt("flowStateEntity",S(),T))});
return _.g("yt-report-form-details-page-view-model",{class:function(){var T;return((T=_.n(u(),j_))==null?void 0:T.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.g("h1",{class:function(){var T;
return((T=_.n(u(),j_))==null?void 0:T.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return Z().detailsPageHeader}),_.g("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.g(_.qv,{text:function(){return Z().bodyText}})),_.g("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.g(DE,{label:function(){var T;
return((T=_.n(Z().inputBox,Gov))==null?void 0:T.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var T;return{errorMessage:((T=_.n(Z().inputBox,Gov))==null?void 0:T.maxCharsExceededErrorMessage)||"",maxChars:N()}},
onInput:L})))},"ii");
K3Y.idomCompat=!0;_.CY(K3Y,"yt-report-form-details-page-view-model",{props:{data:_.LK}});var fT8=_.p(function(L){var Z=L.data;var N=function(){return Z().flowStateKey||""},S=_.OS(_.si,N),u=function(){return _.n(S(),j_)};
return _.g("yt-report-form-reason-select-page-view-model",{class:function(){var T;return((T=u())==null?void 0:T.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.g("h1",{class:function(){var T;
return((T=u())==null?void 0:T.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return Z().pageHeader}),_.g("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.g(_.qv,{text:function(){return Z().bodyText}})),_.g("div",{class:function(){var T;
return((T=u())==null?void 0:T.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.g(_.MMy,{data:function(){return _.n(Z().radioButtonGroup,_.Eg)},
onSelected:function(T,W){T=Object.assign({},S(),{abuseReportFlowState:Object.assign({},u(),{reasonKey:W.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:W.command})});_.sk(_.Mr("flowStateEntity",N(),T))},
selectedKey:function(){var T;return(T=u())==null?void 0:T.reasonKey},
groupName:"report-form-reason-select-page"})))},"ji");
fT8.idomCompat=!0;_.CY(fT8,"yt-report-form-reason-select-page-view-model",{props:{data:_.LK}});var ka0=_.p(function(L){var Z=L.data;var N,S=(N=_.GR().resolve(_.gv(_.d$)))==null?void 0:N();return _.g("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.g("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.g(_.ji,{data:function(){return S&&Z().imageDark?Z().imageDark:Z().image},
alt:""})),_.g("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.g("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return Z().header}),_.g(_.qv,{text:function(){return Z().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"ki");
ka0.idomCompat=!0;_.CY(ka0,"yt-report-form-sign-in-page-view-model",{props:{data:_.LK}});_.yNY=(0,_.d2m)(_.pR.talkToRecs,{talkToRecsStateSelector:function(L){return L}});_.CY(_.p(function(L){var Z=L.data;var N=_.VB(_.yNY.talkToRecsStateSelector),S=function(){return Z().titleSuperscript},u=function(){return Z().answersShelf},T=function(){return Z().videoShelf},W=function(){var Fw;
return(Fw=Z().textInputPlaceholder)==null?void 0:Fw.content},V=function(){return Z().showOpenTextInput},M=function(){var Fw;
return(Fw=Z().textInputValue)==null?void 0:Fw.content},G=function(){return Z().isMultiTurnFlow?Z().resetButtonViewModel:void 0},D="",l=function(){return Z().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
L=_.O(_.nh("",void 0,"EFTZDb"));var v=L.next().value,R=L.next().value;L=_.O(_.nh(!1,void 0,"OgB5Cc"));var K=L.next().value,U=L.next().value,d=function(){return{state:K()||v()?"active":"disabled",disabled:!(K()||v())}};
_.zp(function(){if(V()){M()&&R(M());var Fw;if(!G()&&((Fw=N())==null?0:Fw.stepStates)){var GB;Fw=Object.keys((GB=N())==null?void 0:GB.stepStates);GB=Fw[Fw.length-1];var Yt,lH;(GB=(Yt=N().stepStates[GB])==null?void 0:(lH=Yt.userQuery)==null?void 0:lH.userQuery)&&R(GB);_.sk(_.t9m())}}});
var h=function(Fw){var GB=Z().onUpdateText;GB&&_.w$(GB,{form:{userQuery:Fw}});R(Fw)},E=_.cz(function(Fw){h(Fw.target.value.trim())},150),A=_.Z9(function(Fw){var GB;
D=(GB=Fw.target.value)==null?void 0:GB.trim();E(Fw);return!1}),J=_.Z9(function(Fw){Fw.key==="Enter"&&(K()||v())&&(h(Fw.target.value.trim()),X());
return!1}),C=function(Fw,GB){U(GB);
if(GB){if(Z().isMultiTurnFlow&&!D){var Yt;h((Yt=Fw==null?void 0:Fw.text)!=null?Yt:"")}Z().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&X()}else R(D)},X=function(){var Fw=void 0,GB=_.n(Z().nextButtonViewModel,_.NU),Yt,lH;
if(GB==null?0:(Yt=GB.loggingDirectives)==null?0:(lH=Yt.clientVeSpec)==null?0:lH.uiType){var RF,jf;Fw=_.Ll((RF=GB.loggingDirectives)==null?void 0:(jf=RF.clientVeSpec)==null?void 0:jf.uiType)}(GB=Z().onNextStepCommand)&&_.w$(GB,{clickedVisualElement:Fw})};
L=_.t2("yt-talk-to-recs-view-model");var L1={};return _.g("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:L},_.g("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.g(_.bj,{data:function(){return Z().topCornerButton}},{buttonViewModel:_.$X})),_.g("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.g("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.g(_.qv,{text:function(){return Z().title}}),_.g(_.F,{cond:S,
then:function(){return _.g("sup",{class:"ytwTalkToRecsSuperScript"},_.g(_.qv,{text:S}))}})),_.g("div",{class:"ytwTalkToRecsSubtitle"},_.g(_.qv,{text:function(){return Z().subtitle}})),_.g("div",{class:"ytwTalkToRecsResultsShelf"},_.g(_.F,{cond:u,
then:function(){return _.g(_.bj,{data:u},{chipsShelfViewModel:function(Fw){return _.g("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.g(_.He,{data:Fw.data,callback:C,selectionBehavior:l}))}})}}),_.g(_.F,{cond:T,
then:function(){return _.g(_.bj,{data:T},{horizontalShelfViewModel:function(Fw){return _.g("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.g(_.x7,{data:Fw.data,thumbnailAspectRatio:0}))}})}})),_.g("div",{class:_.qg("ytwTalkToRecsRefinementContainer",(L1.ytwTalkToRecsBottomMargin=function(){return Z().isMultiTurnFlow},L1))},_.g(_.F,{cond:V,
then:function(){return _.g("div",{class:"ytwTalkToRecsUserInputBox"},_.g("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:W,value:v,"on:input":A,"on:keyup":J,maxlength:200}))}}),_.g(_.bj,{data:function(){return Z().isMultiTurnFlow?Z().nextButtonViewModel:void 0}},{buttonViewModel:function(Fw){return _.g("div",{class:"ytwTalkToRecsFlowControlButtons"},_.g(_.$X,{data:Fw.data,
buttonOverrides:d}))}}),_.g(_.bj,{data:G},{buttonViewModel:function(Fw){return _.g("div",{class:"ytwTalkToRecsFlowControlButtons"},_.g(_.$X,{data:Fw.data,
onClick:function(){var GB=_.n(Z().resetButtonViewModel,_.NU);h(v());(GB=GB==null?void 0:GB.onTap)&&_.w$(GB)}}))}}))))},"mi"),"yt-talk-to-recs-view-model",{props:{data:_.LK}});var tjY={sources:[{clientResource:{imageName:"CHECK"}}]};_.wvm=_.p(function(L){var Z=_.t2("div");L=_.Ek(L,{error:void 0});var N=L.data,S=L.error,u=L.onSelected;L=_.O(_.i4(function(){return Vj8(N())}));
var T=L.next().value,W=L.next().value;GcQ(N,function(v){W(v);var R,K,U=W_Q((R=N().options)==null?void 0:(K=R[v])==null?void 0:K.value,N().type);u==null||u(U);Z.value.focus()});
L=_.Z9(function(){if(!N().disabled){var v=N(),R=T(),K=Z.value;v.options&&(v=OHv(v.options,R,v.label),_.GR().resolve(_.Po).openSheet({viewModel:v},K))}});
var V=_.zgt(),M=function(){return!!S()},G=function(){return!!N().disabled},D={},l={};
return _.g("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.g("div",{class:_.qg("ytDropdownViewModelDropdownContainer",(D.ytDropdownViewModelDropdownContainerErrorBorder=M,D.ytDropdownViewModelDropdownContainerDisabled=G,D)),"on:click":L,el:Z,role:"combobox",tabindex:0,"on:keydown":V,"aria-invalid":M,"aria-disabled":G,"aria-describedby":function(){return M()?"dropdown-view-model-error":void 0}},_.g("div",{class:"ytDropdownViewModelText"},bH0(N,M,T),Mjw(N,T)),_.g("div",{class:_.qg("ytDropdownViewModelChevronDown",
(l.ytDropdownViewModelChevronDownDisabled=G,l))},_.g(_.T0,{icon:"CHEVRON_DOWN"}))),gd8(N,S))},"ni");_.CY(_.p(function(L){var Z=L.data;var N=function(u){var T=$7c(Z());T.videoMetadata||(T.videoMetadata={});T.videoMetadata.sponsorshipsMetadata||(T.videoMetadata.sponsorshipsMetadata={});T.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(u)},S=function(u){var T=$7c(Z());
T.scheduledRedirectMetadata||(T.scheduledRedirectMetadata={});T.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(u)};
return _.g("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.g("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.g("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.g(_.qv,{text:function(){return Z().title}}),_.g(_.T0,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.g(_.qv,{text:function(){return Z().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.g(_.bj,{data:function(){return Z().tierChoices}},{dropdownViewModel:function(u){return _.g("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.g(_.wvm,{data:u.data,
onSelected:N}))}}),_.g(_.bj,{data:function(){return Z().startTimeChoices}},{dropdownViewModel:function(u){return _.g("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.g(_.wvm,{data:u.data,
onSelected:S}))}}),_.g(_.qv,{text:function(){return Z().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.g("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.g(_.bj,{data:function(){return Z().scheduleButton}},{panelFooterViewModel:_.F1})))},"oi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){var Z=L.data;L=L.className===void 0?"":L.className;var N=_.OS(SVP,function(){return Z().flowStateEntityKey||""}),S={};
S=_.qg("ytFlowBottomBarViewModelFlowBottomBarButtons",(S.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},S));
var u={},T=_.qg("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",S,(u.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},u.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},u));
u={};var W=_.qg("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",S,(u.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},u.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},u));
S={};S=_.qg("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(S.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},S.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},S.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return Z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
S));
L=_.qg("ytFlowBottomBarViewModelHost",L);return _.g("yt-flow-bottom-bar-view-model",{class:L},_.g(_.F,{cond:function(){var V;return(V=Z())==null?void 0:V.textSection},
then:function(V){return _.g("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.g(_.qv,{text:V}))}}),_.g("div",{class:S},_.g(_.bj,{data:function(){return Z().secondaryButton}},{buttonViewModel:function(V){return _.g(_.$X,{data:V.data,
className:W})}}),_.g(_.bj,{data:function(){return Z().primaryButton}},{buttonViewModel:function(V){return _.g(_.$X,{data:V.data,
className:T,buttonOverrides:function(){var M;return{disabled:!((M=N())==null||!M.primaryButtonDisabled)}}})}})))},"pi"),"yt-flow-bottom-bar-view-model",{props:{data:_.LK,
className:_.zl}});var Ues="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),lS=function(){var L=_.e.apply(this,arguments)||this;L.enableScrollingFix=!0;L.bottomBar=!1;L.fitContent=!1;return L};
_.f(lS,_.e);_.t=lS.prototype;_.t.ready=function(){_.c("enable_pdp_icon_prefetch")&&_.Sok(_.GR().resolve(_.xr),0,Ues)};
_.t.focus=function(L){this.topBar?_.tV(this.topBar,L):this.paperDialog.focus(L)};
_.t.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19305_scroller&&(this.JSC$19305_scroller.dialogElement=this.paperDialog,this.JSC$19305_scroller.attached&&typeof this.JSC$19305_scroller.attached==="function"&&this.JSC$19305_scroller.attached())};
_.t.onDataChanged=function(){var L;this.fitContent=!((L=this.data)==null||!L.fitContent);var Z;this.bottomBar=!((Z=this.data)==null||!Z.bottomBar)};
_.t.onProgressChanged=function(){var L,Z,N=((Z=(L=this.data)==null?void 0:L.progress)!=null?Z:0)*100;this.progressElement.style.width=N+"%"};
_.t.isProgressHidden=function(){var L;return!((L=this.data)==null?0:L.progress)};
_.t.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(L){return L&&!L.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
lS.prototype.onProgressChanged=lS.prototype.onProgressChanged;lS.prototype.onDataChanged=lS.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],lS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],lS.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],lS.prototype,"enableScrollingFix",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],lS.prototype,"bottomBar",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],lS.prototype,"fitContent",void 0);_.r([_.TX("#progress"),_.Q("design:type",HTMLElement)],lS.prototype,"progressElement",void 0);_.r([_.TX("#scroller"),_.Q("design:type",Object)],lS.prototype,"JSC$19305_scroller",void 0);_.r([_.TX("ytd-flow-top-bar-renderer"),_.Q("design:type",HTMLElement)],lS.prototype,"topBar",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lS.prototype,"onDataChanged",null);_.r([_.iA("data.progress"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lS.prototype,"onProgressChanged",null);_.r([_.P({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],lS);
_.m(lS,"ytd-flow-step-renderer",function(){if(qo5!==void 0)return qo5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return qo5=L},{mode:1});var oC=function(L){this.resolveCommand=L;this.steps={}},Y9k=function(L,Z){Z=_.O(Z||[]);
for(var N=Z.next();!N.done;N=Z.next()){N=N.value;var S=Object.values(N)[0],u=void 0;if((u=S)==null?0:u.stepId)L.steps[S.stepId]=N}},IT8=function(L,Z){var N,S,u,T,W;
return _.b(function(V){if((N=L.state)==null||!N.currentStepId)return V.return(void 0);S=L.getCurrentStep();if(!S)return V.return(eRw(L));if(u=_.n(S,_.jc))L.logVEScreen(u),((T=u)==null?0:T.onStepStartCommand)&&L.resolveCommand((W=u)==null?void 0:W.onStepStartCommand,{});u&&Z&&(L.logFlowEvent(u,Z),Z.steps&&!Z.steps.includes(S)&&Z.steps.push(S));return V.return(S)})};
oC.prototype.back=function(){var L;(L=this.state)!=null&&L.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
oC.prototype.handleUpdateFlowCommand=function(L){L.steps&&Y9k(this,L.steps);L.entityUpdateCommand&&this.resolveCommand(L.entityUpdateCommand,{});L.flowContinuationCommand&&(L=L.flowContinuationCommand)&&(this.getFlowContinuationCommand=L);this.awaitFlowContinuation&&(L=this.getCurrentStep(),this.awaitFlowContinuation(L),this.awaitFlowContinuation=void 0)};
oC.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var eRw=function(L){return _.b(function(Z){return L.getFlowContinuationCommand?Z.return(new Promise(function(N){L.awaitFlowContinuation=N;L.getFlowContinuationCommand&&L.resolveCommand(L.getFlowContinuationCommand,{flow_state:L.state})})):Z.return(Promise.resolve(void 0))})};
oC.prototype.getCurrentStep=function(){var L;if((L=this.state)!=null&&L.currentStepId)return this.steps[this.state.currentStepId]};
oC.prototype.logVEScreen=function(L){var Z;((Z=L.screenLoggingData)==null?0:Z.screenVeType)&&_.fF(_.tC(),L.screenLoggingData.screenVeType)};
oC.prototype.logFlowEvent=function(L,Z){var N,S,u,T;((N=Z.flowLoggingData)==null?0:N.eventNamespace)&&((S=L.flowEventData)==null?0:S.eventType)&&((u=L.flowEventData)==null?0:u.eventMetadata)&&((T=Z.flowLoggingData)==null?0:T.flowType)&&(L=_.LX(Z.flowLoggingData.eventNamespace,L.flowEventData.eventType,L.flowEventData.eventMetadata),_.ZC().logFlowEvent(L,Z.flowLoggingData.flowType))};
_.gd.Object.defineProperties(oC.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.state)==null?void 0:L.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.state)!=null&&L.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(Z,N){N.key&&N.value&&(Z[N.key]=N.value);return Z},{})}}});var RC=function(){var L=_.e.apply(this,arguments)||this;L.flowState=_.c("web_use_flow_state_manager")?void 0:new oC(function(Z,N){N=N===void 0?{}:N;_.qd.instance.resolveCommand(Z,{form:{form:N,element:L.hostElement}})});
L.JSC$19316_flowStateManager=_.c("web_use_flow_state_manager")?_.GR().resolve(_.Kt):void 0;L.currentTargetId="";L.initialState=!0;L.isLoading=!1;L.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"};L.containsTalkToRecs=!1;return L};
_.f(RC,_.e);_.t=RC.prototype;_.t.onPopupClosed=function(L){if(!L||this.hostElement===L.detail.popupRenderer){if(this.JSC$19316_flowStateManager){var Z;((Z=this.data)==null?0:Z.flowStateEntityKey)&&this.JSC$19316_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.t.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"}}}};
_.t.focus=function(L){var Z=this;_.Uk(function(){var N=_.QJ(Z.hostElement).querySelector("ytd-flow-step-renderer");(N==null?0:N.topBar)?N.focus(L):Z.topBar&&_.tV(Z.topBar,L)},1)};
_.t.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.t.computeTopBarHidden=function(L){var Z;return!((Z=_.n(L,_.jc))==null||!Z.topBarOverride)};
_.t.onCurrentFlowChange=function(){if(this.JSC$19316_flowStateManager&&this.data&&this.flow){var L=Bd8(this.JSC$19316_flowStateManager,this.data),Z;L&&((Z=this.flow)==null?0:Z.currentStepId)&&(Lgv(L,this.flow.currentStepId),this.initialState=!1,this.isLoading=!this.currentFlowStep)}};
_.t.observeData=function(){var L=this;if(this.JSC$19316_flowStateManager){var Z=this.currentTargetId,N,S,u=(S=(N=this.data)==null?void 0:N.targetId)!=null?S:"";Z!==u&&Z&&x78(this.JSC$19316_flowStateManager,Z);this.currentTargetId=u;this.data&&qUq(Bd8(this.JSC$19316_flowStateManager,this.data),function(T){T&&(L.initialState=!1,L.currentFlowStep={flowStepRenderer:T},L.isLoading=!L.currentFlowStep,L.autofocusAndRefit(),L.updateContainsTalkToRecs(),L.logVEScreen(),L.logFlowEvent())})}};
_.t.dataChanged=function(){var L=this,Z,N;return _.b(function(S){if(S.nextAddress==1){if(!L.flowState)return S.return();((Z=L.data)==null?0:Z.steps)&&Y9k(L.flowState,L.data.steps);if((N=L.data)==null?0:N.flowContinuationCommand){var u=L.flowState,T=L.data.flowContinuationCommand;T&&(u.getFlowContinuationCommand=T)}return S.yield(IT8(L.flowState,L.data),2)}L.currentFlowStep=S.yieldResult;_.w7(S)})};
_.t.flowChanged=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1){if(!L.flowState||!L.flow)return N.return();L.flowState.state=L.flow;L.isLoading=!0;return N.yield(IT8(L.flowState,L.data),2)}Z=N.yieldResult;if(!Z||L.flow.isLoading)return N.return();L.currentFlowStep=Z;L.initialState=!1;L.isLoading=!1;L.autofocusAndRefit();L.updateContainsTalkToRecs();_.w7(N)})};
_.t.logVEScreen=function(){var L,Z,N=(L=_.n(this.currentFlowStep,_.jc))==null?void 0:(Z=L.screenLoggingData)==null?void 0:Z.screenVeType;N&&_.fF(_.GR().resolve(_.a3),N)};
_.t.logFlowEvent=function(){var L=_.n(this.currentFlowStep,_.jc),Z,N,S,u,T,W;(this==null?0:(Z=this.data)==null?0:(N=Z.flowLoggingData)==null?0:N.eventNamespace)&&(this==null?0:(S=this.data)==null?0:(u=S.flowLoggingData)==null?0:u.flowType)&&(L==null?0:(T=L.flowEventData)==null?0:T.eventType)&&(L==null?0:(W=L.flowEventData)==null?0:W.eventMetadata)&&(L=_.LX(this.data.flowLoggingData.eventNamespace,L.flowEventData.eventType,L.flowEventData.eventMetadata),_.ZC().logFlowEvent(L,this.data.flowLoggingData.flowType))};
_.t.updateContainsTalkToRecs=function(){var L,Z=(L=_.n(this.currentFlowStep,_.jc))==null?void 0:L.content;this.containsTalkToRecs=!!Z&&!!_.n(Z,oPs)};
_.t.autofocusAndRefit=function(){var L=this,Z=_.GR().resolve(_.gv(_.VG)),N=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),S=document.querySelector("yt-report-form-confirmation-page-view-model"),u=document.querySelector("yt-report-form-details-page-view-model"),T=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"),M=document.querySelector("yt-note-view-model");(!N&&Z&&Z.isKeyBoardInUse()||S||!N&&u||!N&&T||W||V||M)&&_.OI(this.hostElement);_.bN(this,function(){_.QT(L.hostElement,"yt-refit")})};
_.t.handleUpdateFlowCommand=function(L){this.flowState?this.data&&(L=_.n(L,_.xRM),L.targetId===this.data.targetId&&(L.flowContinuationCommand&&(this.data.flowContinuationCommand=L.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(L),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(L)};
_.t.handleFlowNextStepCommand=function(L){this.JSC$19316_flowStateManager?this.ytComponentBehavior.resolveCommand(L):this.data&&this.flow&&this.flow.key&&(L=_.n(L,_.XDI),L.targetId===this.data.targetId&&(L=L.stepId||"",this.ytdReduxBehavior.dispatch(_.vt("flowStateEntity",this.flow.key,{currentStepId:L,stepIdStack:(this.flow.stepIdStack||[]).concat(L)}))))};
_.t.handleFlowPrevStepCommand=function(L){if(this.JSC$19316_flowStateManager)this.ytComponentBehavior.resolveCommand(L);else if(this.data&&this.flow&&this.flow.key&&(L=_.n(L,_.Awt),L.targetId===this.data.targetId)){var Z=[].concat(_.Pd(this.flow.stepIdStack||[]));Z.length>1?(Z.pop(),this.ytdReduxBehavior.dispatch(_.vt("flowStateEntity",this.flow.key,{currentStepId:Z[Z.length-1],stepIdStack:Z}))):L.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(L.onFirstStepCommand)}};
_.t.handleYpcCancelRecurrenceCommand=function(L){if(this.data&&this.flow&&this.flow.key&&(L=_.n(L,fFc),L.targetId===this.data.targetId&&L.endpointCommand)){var Z=_.n(this.flow,koy);Z&&_.n(L.endpointCommand,_.WbQ)&&(_.n(L.endpointCommand,_.WbQ).feedbackData=Z.surveyFeedback);this.ytComponentBehavior.resolveCommand(L.endpointCommand)}};
_.t.handlePartialUpdateFlowStateEntity=function(L){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.vt("flowStateEntity",this.flow.key,L,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
RC.prototype.flowChanged=RC.prototype.flowChanged;RC.prototype.dataChanged=RC.prototype.dataChanged;RC.prototype.observeData=RC.prototype.observeData;RC.prototype.onCurrentFlowChange=RC.prototype.onCurrentFlowChange;RC.prototype.onPopupClosed=RC.prototype.onPopupClosed;_.r([_.y(_.CD),_.Q("design:type",Object)],RC.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],RC.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],RC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],RC.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],RC.prototype,"initialState",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],RC.prototype,"isLoading",void 0);_.r([_.Y(),_.Q("design:type",Object)],RC.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],RC.prototype,"currentFlowStep",void 0);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],RC.prototype,"onPopupClosed",null);
_.r([_.Y({selectorArgs:["data.flowStateEntityKey"],selector:SVP}),_.Q("design:type",Object)],RC.prototype,"flow",void 0);_.r([_.TX("ytd-flow-top-bar-renderer"),_.Q("design:type",HTMLElement)],RC.prototype,"topBar",void 0);_.r([_.iA("data","flow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RC.prototype,"onCurrentFlowChange",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RC.prototype,"observeData",null);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],RC.prototype,"dataChanged",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],RC.prototype,"containsTalkToRecs",void 0);_.r([_.Vr("flow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],RC.prototype,"flowChanged",null);_.r([_.P({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],RC);
_.deq=_.rD()(RC,"ytd-flow-root-renderer",function(){if(x2v!==void 0)return x2v;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return x2v=L},{mode:_.Qr("kevlar_poly_si_batch_j025")?1:2});var aT5;var hT=null;_.CY(_.p(function(L){return _.g("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.g("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.g(_.qv,{text:function(){return L.data().text}}),_.g("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"qi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.LK}});var hRs=_.p(function(L){var Z=L.playerControlsProps;var N=L.isShortsPage;return _.g("yt-bigboard",null,_.g(_.F,{cond:function(){return Z().isDragging},
then:function(){return _.g("div",{class:"ytBigboardStoryboardHost"},_.g(_.RGY,{progressBarProps:Z,isShortsPage:N}))}}))},"ri");
hRs.idomCompat=!0;_.cm={ACCOUNT_LABEL:sg("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:sg("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:sg("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:sg("AD_BADGE_HINT"),AD_BADGE_TEXT:sg("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:sg("ALL_CHANNELS_LABEL"),AMBIENT_MODE:sg("AMBIENT_MODE"),AMBIENT_MODE_OFF:sg("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:sg("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:sg("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:sg("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:sg("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:sg("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:sg("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:sg("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:sg("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:sg("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:sg("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:sg("AUTO_ZOOM","Auto zoom"),BACK:sg("BACK"),CANCEL:sg("CANCEL"),CHANNEL_SWITCHER_LABEL:sg("CHANNEL_SWITCHER_LABEL"),CLOSE:sg("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:sg("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:sg("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:sg("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:sg("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:sg("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:sg("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:sg("COMMENT_MODAL_CONTENT"),CONFIRM_OK:sg("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:sg("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:sg("COPIED_TO_CLIPBOARD"),COPY:sg("COPY"),COPY_DEBUG_INFO:sg("COPY_DEBUG_INFO"),COPY_EMBED_CODE:sg("COPY_EMBED_CODE"),
COPY_LINK_LABEL:sg("COPY_LINK_LABEL"),COPY_VIDEO_URL:sg("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:sg("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:sg("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:sg("DELETE_FROM_DOWNLOADS"),DIALOG:sg("DIALOG"),DONE:sg("DONE"),DOWNLOAD:sg("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:sg("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:sg("FLAG_CONFIRM"),FLAG_CONTENT:sg("FLAG_CONTENT"),FLAG_LABEL:sg("FLAG_LABEL"),FLAG_TITLE:sg("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:sg("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:sg("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:sg("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:sg("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:sg("HIDE_SEARCH_FILTERS_LABEL"),HOME:sg("HOME","Home"),INVALID_RESPONSE_RECEIVED:sg("INVALID_RESPONSE_RECEIVED"),LIBRARY:sg("LIBRARY","Library"),LISTENING:sg("LISTENING"),LOADING:sg("LOADING"),LONG_PRESS_MIC_TO_SPEAK:sg("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:sg("LOOP"),MENU_DESKTOP:sg("MENU_DESKTOP"),
MENU_EXIT:sg("MENU_EXIT"),MENU_FEEDBACK:sg("MENU_FEEDBACK"),MENU_HELP:sg("MENU_HELP"),MENU_IMPRESSUM:sg("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:sg("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:sg("MENU_SETTINGS"),MENU_SIGN_IN:sg("MENU_SIGN_IN"),MENU_TITLE:sg("MENU_TITLE"),MENU_YOUR_DATA:sg("MENU_YOUR_DATA"),MORE_INFO:sg("MORE_INFO"),MORE_OPTIONS:sg("MORE_OPTIONS"),MUTE_VOLUME:sg("MUTE_VOLUME"),NEW_PLAYLIST:sg("NEW_PLAYLIST"),NEXT_VIDEO:sg("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:sg("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:sg("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:sg("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:sg("NOT_FOUND_TITLE"),NO_DOWNLOADS:sg("NO_DOWNLOADS"),NO_MIC_INPUT:sg("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:sg("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:sg("OOPS_MESSAGE"),OPEN_APP:sg("OPEN_APP"),OPEN_YOUTUBE:sg("OPEN_YOUTUBE"),PAUSE:sg("PAUSE"),PLAY:sg("PLAY"),PLAYER_CAPTION:sg("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:sg("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:sg("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:sg("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:sg("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:sg("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:sg("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:sg("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:sg("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:sg("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:sg("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:sg("PLAYER_MINIMIZE"),PLAYER_NEXT:sg("PLAYER_NEXT"),PLAYER_PAUSE:sg("PLAYER_PAUSE"),PLAYER_PLAY:sg("PLAYER_PLAY"),
PLAYER_PREVIOUS:sg("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:sg("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:sg("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:sg("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:sg("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:sg("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:sg("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:sg("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:sg("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:sg("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:sg("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:sg("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:sg("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:sg("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:sg("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:sg("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:sg("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:sg("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:sg("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:sg("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:sg("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:sg("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:sg("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:sg("PLAY_ALL"),PLEASE_FIX_ERRORS:sg("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:sg("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:sg("PREVIOUS_VIDEO"),PRIVACY_POLICY:sg("PRIVACY_POLICY"),RELOAD:sg("RELOAD"),REQUIRED_LABEL:sg("REQUIRED_LABEL"),SAVE_PLAYLIST:sg("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:sg("SCRUB_SLIDE_USER_EDU"),SEARCH:sg("SEARCH","Search"),
SEARCH_APPEND_LABEL:sg("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:sg("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:sg("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:sg("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:sg("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:sg("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:sg("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:sg("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:sg("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:sg("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:sg("SEEK_SLIDER"),SETTINGS_LABEL:sg("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:sg("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:sg("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:sg("SHOW_LESS"),SHOW_MORE:sg("SHOW_MORE"),SHOW_PLAYER_CONTROLS:sg("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:sg("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:sg("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:sg("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:sg("SIGN_IN_ON_WEB"),STABLE_VOLUME:sg("STABLE_VOLUME"),STABLE_VOLUME_OFF:sg("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:sg("STABLE_VOLUME_ON"),STATS_FOR_NERDS:sg("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:sg("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:sg("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:sg("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:sg("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:sg("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:sg("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:sg("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:sg("TIMESTAMP_SECONDS"),TOGGLE_OFF:sg("TOGGLE_OFF"),TOGGLE_ON:sg("TOGGLE_ON"),TRENDING:sg("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:sg("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:sg("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:sg("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:sg("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:sg("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:sg("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:sg("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:sg("VIDEO_LINK_LABEL")};var siy=_.p(function(L){var Z=L.playerApi;L=_.t2("button",function(S){_.oR(S,36843)});
var N=sg("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.g("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.g("button",{el:L,class:"ytPlayerControlsJumpForwardButtonButton",title:N,"aria-label":N,"on:click":_.Z9(function(){_.RR(36843);Z&&Z().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.g("span",null,_.g(_.T0,{icon:"FAST_FORWARD"}))))},"si");var jiY=_.p(function(L){var Z=L.appApi;L=_.t2("button",function(S){_.oR(S,62946)});
var N=sg("OPEN_IN_MINIPLAYER");return _.g("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.g("button",{el:L,class:"ytMiniplayerButtonButton",title:N,"aria-label":N,"on:click":_.Z9(function(){_.RR(62946);var S,u;(u=(S=Z()).openInMiniplayer)==null||u.call(S);return!1})},_.g(_.T0,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"ti");var EQv=_.p(function(L){var Z=L.playerApi;L=_.t2("button",function(T){_.oR(T,142812)});
var N=_.O(_.nh(!1,void 0,"eOMRAb")),S=N.next().value,u=N.next().value;N=function(){return sg("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(S()?1:2)})};
return _.g("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.g("button",{el:L,class:"ytPlaybackSpeedButtonButton",title:N,"aria-label":N,"on:click":_.Z9(function(){_.RR(142812);if(Z){var T=Z(),W=S();T.setPlaybackRate(W?1:2);u(!S())}return!1})},_.g("span",null,_.g(_.T0,{icon:function(){return S()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"ui");var P28=_.p(function(L){var Z=L.title;var N=L.ariaLabel;var S=L.icon;var u=L.command;var T=L.visualElementId;L=_.t2("button",function(W){T&&_.oR(W,T())});
return _.g("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.g("button",{el:L,class:"ytdThumbnailOverlayButtonButton",title:Z,"aria-label":N,"on:click":_.Z9(function(){T&&_.RR(T());u&&_.GR().resolve(_.$s).resolveCommand(u())})},_.g(_.T0,{icon:S})))},"vi");var yl="";var pvc=_.p(function(L){var Z=L.playerControlsProps,N=L.onClickFn;L=_.wJ(function(){var T=Z(),W=-1;T.captionsAvailable&&(W=T.captionsEnabled?1:0);return W},void 0,"MZ0Wqe");
var S=_.wJ(function(){var T=Z();return T.captionsAvailable?_.iB(T.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.iB("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),u=_.wJ(function(){var T=Z();
T=T.captionsAvailable?T.captionsEnabled:void 0;return T},void 0,"fhuQRe");
return _.g("yt-closed-captions-toggle-button",null,_.g(_.Zom,{captionIconType:L,ariaLabel:S,ariaPressed:u,onClick:function(T){var W=Z();if(W.captionsAvailable){var V=W.playerApi;if(V){var M=W.playerApi;if(M){var G=yl;if(G){M=M.getOption("captions","track");var D;yl=(D=M?M.displayName:null)!=null?D:G}else _.vJ(M)?(G=_.RPx(M),yl=G.length?(D=tS5(G))?D.displayName:G[0].displayName:""):yl=""}OoQ(V);_.c("mweb_disable_set_state_captions_killswitch")&&W.setState({captionsEnabled:!W.captionsEnabled})}}var l,
v;(v=(l=W.appApi).showCaptionsToggleToast)==null||v.call(l,W);N==null||N(T)},
isOverlay:!0}))},"wi");var zR5=_.p(function(L){var Z=L.data;return _.g("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.g(_.Ho,{data:function(){return{type:17,text:_.sEs(Z().label)}}}))},"xi");var meY=_.p(function(L){var Z=_.qg("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return L.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return L.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return L.size()==="small"?L.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
L.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.g("animated-seek-arrows",{class:_.qg("ytPlayerControlsAnimatedSeekArrowsHost")},_.g("span",{class:Z}),_.g("span",{class:Z}),_.g("span",{class:Z}))},"yi");
meY.idomCompat=!0;var JNq=_.p(function(){var L=_.iB("PLAYER_SECONDS",{seconds_placeholder:"30"}),Z=_.O(_.nh(!1,void 0,"iRJu8c")),N=Z.next().value,S=Z.next().value,u=_.O(_.nh(!1,void 0,"MPnizf"));Z=u.next().value;var T=u.next().value;u={};var W=_.qg("jumpForwardOverlayOverlay",(u.jumpForwardOverlayOverlayHidden=Z,u));_.m0(function(){var V=null,M=null,G=function(){V!==null&&_.DK().cancelJob(V);M!==null&&_.DK().cancelJob(M);T(!0);S(!0);_.H9(_.DK(),function(){T(!1)});
V=_.H9(_.DK(),function(){T(!0);M=_.H9(_.DK(),function(){S(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",G);_.zs(function(){window.removeEventListener("jump-forward-clicked",G)})});
return _.g("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.g(_.F,{cond:N,then:function(){return _.g("div",{class:W},_.g(meY,{direction:1,size:"large"}),_.g("div",null,L))}}))},"zi");var C2P=_.cm.MUTE_VOLUME,rNq=_.cm.UNMUTE_VOLUME,Qi5=_.p(function(L){var Z=L.muteIconType;var N=L.onClick;var S=L.useOutlineIcon;var u=L.useDelhiIcons;L=_.t2("button",function(V){_.oR(V,28662)});
var T=function(){var V=Z(),M=S==null?void 0:S(),G=u==null?void 0:u(),D="",l="";switch(V){case -1:case 0:D=M?"VOLUME_OFF":G?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";l=rNq;break;case 1:D=M?"VOLUME_UP_OUTLINE":G?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";l=C2P;break;case 2:D=M?"VOLUME_DOWN_OUTLINE":G?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";l=C2P;break;default:_.Xh(V)}return{iconName:D,ariaLabel:l}},W=function(){return T().ariaLabel};
return _.g("ytm-mute-button",{class:"ytmMuteButtonHost"},_.g("button",{el:L,class:"ytmMuteButtonButton",title:W,"aria-label":W,"on:click":_.Z9(function(V){_.RR(28662);N==null||N(V);return!1})},_.g("span",null,_.g(_.T0,{icon:function(){return T().iconName}}))))},"Ai");var Xvv=_.p(function(L){var Z=L.volumeProps;var N=L.onClickFn;var S=L.useOutlineIcon;var u=L.useDelhiIcons;return _.g("yt-mute-toggle-button",null,_.g(Qi5,{muteIconType:function(){var T=Z();return T.volumeMuted||T.volume===0?0:T.volume>50?1:2},
onClick:function(T){var W=Z().playerApi;W&&(W.isMuted()?W.unMute():W.mute(!1));N==null||N(T)},
useOutlineIcon:function(){return!(S==null||!S())},
useDelhiIcons:function(){return!(u==null||!u())}}))},"Bi");
Xvv.idomCompat=!0;var ANQ=_.p(function(L){var Z=L.data;var N=_.t2("ytm-paid-content-overlay-renderer");return _.g("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:N,"on:animationend":_.Z9(function(){N.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.g(_.bM,{command:function(){return Z().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.g(_.F,{cond:function(){var S;return(S=Z().icon)==null?void 0:S.iconType},
then:function(){return _.g("span",null,_.g(_.T0,{icon:function(){var S;return(S=Z().icon)==null?void 0:S.iconType}}))}}),_.g("div",{class:"ytmPaidContentOverlayText"},_.g(_.qv,{text:function(){return Z().text}})),_.g(_.F,{cond:function(){return Z().navigationEndpoint},
then:function(){return _.g(_.T0,{icon:"CHEVRON_RIGHT"})}})))},"Ci");
ANQ.idomCompat=!0;var IfY=[].concat(_.Pd([{register:function(L){var Z=m7Q(L),N;(N=L().playerApi)==null||N.addEventListener("onVolumeChange",Z);return function(){}}},
{register:function(L){var Z=JQP(L);L=L().playerApi;L==null||L.addEventListener("captionschanged",Z);L==null||L.addEventListener("captionssettingschanged",Z);L==null||L.addEventListener("onCaptionsTrackListChanged",Z);return function(){}}},
{register:function(L){if(!_.c("mweb_screenreader_accessible_player"))return function(){};
var Z=CNq(L),N=document.querySelector("video");N==null||N.addEventListener("touchend",Z);return function(){N==null||N.removeEventListener("touchend",Z)}}},
{register:function(L){if(!_.c("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var Z=CNq(L),N=document.querySelector("video");N==null||N.addEventListener("focus",Z);return function(){N==null||N.removeEventListener("focus",Z)}}}]),[{register:function(L){var Z=Ed0(L),N;
(N=L().playerApi)==null||N.addEventListener("onStateChange",Z);return function(){}}},
{register:function(L){var Z=PNY(L),N;(N=L().playerApi)==null||N.addEventListener("onPlaybackRateChange",Z);return function(){}}},
{register:function(L){var Z=pXy(L),N;(N=L().playerApi)==null||N.addEventListener("onVideoDataChange",Z);return function(){}}},
{register:function(L){var Z=zCv(L),N,S;(N=L())==null||(S=N.playerApi)==null||S.addEventListener("onVideoProgress",Z);return function(){}}}]);var HkQ=_.p(function(L){var Z=L.data;var N=function(){return _.iB("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+Z().playbackRate})};
return _.g(_.F,{cond:function(){return Z().playbackRate&&Z().playbackRate!==1},
then:function(){return _.g("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.g("div",{class:"ytPlaybackRateOverlayOverlay"},_.g(meY,{direction:1,size:"small"}),_.g("div",{class:"ytPlaybackRateOverlayLabel"},N)))}})},"Ei");var Bn5=_.p(function(L){var Z=L.data;return _.g("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.g(_.F,{cond:function(){var N,S=(N=Z())==null?void 0:N.playerResponse,u;return S==null?void 0:(u=S.paidContentOverlay)==null?void 0:u.paidContentOverlayRenderer},
then:function(N){return _.g(ANQ,{data:N})}}))},"Gi"),xey=_.p(function(L){var Z=L.props;
var N=L.data;var S=L.options;var u=function(){var G,D,l,v;return(G=N())==null?void 0:(D=G.playerResponse)==null?void 0:(l=D.playerConfig)==null?void 0:(v=l.inlinePlaybackConfig)==null?void 0:v.showAudioControls},T=function(){var G,D;
if(u()&&((G=S())==null?void 0:(D=G.additionalButton)==null?void 0:D.button)!==void 0){var l,v,R;G=(l=N())==null?void 0:(v=l.playerApi)==null?void 0:(R=v.getSize())==null?void 0:R.height;if(!(G===void 0||G<180)){var K,U;return(K=S())==null?void 0:(U=K.additionalButton)==null?void 0:U.button}}},W=function(){var G,D;
return(G=S())==null?void 0:(D=G.additionalButton)==null?void 0:D.thumbnailOverlayButtonRenderers},V=function(){var G,D;
return(G=S())==null?void 0:(D=G.additionalButton)==null?void 0:D.thumbnailOverlayButtonViewModels},M=function(){var G=[_.g(Xvv,{volumeProps:Z}),
_.g(pvc,{playerControlsProps:Z})];T()===1&&G.push(_.g(siy,{playerApi:function(){return Z().playerApi}}));
T()===2&&G.push(_.g(jiY,{appApi:function(){return Z().appApi}}));
T()===3&&G.push(_.g(EQv,{playerApi:function(){return Z().playerApi}}));
var D=W();if(T()===4&&D){D=_.O(D);for(var l=D.next(),v={};!l.done;v={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$50:void 0,command$jscomp$596:void 0},l=D.next()){l=l.value;v.tooltip$jscomp$2=l.tooltip;var R=void 0,K=void 0;v.ariaLabel$jscomp$19=((R=l.accessibility)==null?void 0:(K=R.accessibilityData)==null?void 0:K.label)||v.tooltip$jscomp$2;R=void 0;v.icon$jscomp$50=(R=l.icon)==null?void 0:R.iconType;v.command$jscomp$596=l.command;v.tooltip$jscomp$2&&v.ariaLabel$jscomp$19&&v.icon$jscomp$50&&
G.push(_.g(P28,{title:function(U){return function(){return U.tooltip$jscomp$2}}(v),
ariaLabel:function(U){return function(){return U.ariaLabel$jscomp$19}}(v),
icon:function(U){return function(){return U.icon$jscomp$50}}(v),
command:function(U){return function(){return U.command$jscomp$596}}(v)}))}}D=V();
if(T()===4&&D)for(D=_.O(D),l=D.next(),v={};!l.done;v={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$597:void 0,trackingParamsVeType:void 0},l=D.next())l=l.value,v.tooltip$jscomp$3=l.title,v.ariaLabel$jscomp$20=l.accessibilityText||v.tooltip$jscomp$3,v.icon$jscomp$51=l.iconName,v.command$jscomp$597=_.KY(l.onTap),K=R=void 0,v.trackingParamsVeType=((R=l.loggingDirectives)==null?0:R.trackingParams)?(K=vPs(_.xt(l.loggingDirectives.trackingParams)))==null?void 0:
_.G3(K,2):void 0,v.tooltip$jscomp$3&&v.ariaLabel$jscomp$20&&v.icon$jscomp$51&&G.push(_.g(P28,{title:function(U){return function(){return U.tooltip$jscomp$3}}(v),
ariaLabel:function(U){return function(){return U.ariaLabel$jscomp$20}}(v),
icon:function(U){return function(){return U.icon$jscomp$51}}(v),
command:function(U){return function(){return U.command$jscomp$597}}(v),
visualElementId:function(U){return function(){return U.trackingParamsVeType}}(v)}));
return G};
return _.g(_.F,{cond:u,then:function(){return _.g("div",{class:"ytInlinePlayerControlsTopRightControls"},_.g(_.ju,{each:M},function(G){return _.g("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.g("div",{class:"ytInlinePlayerControlsButtonIcon"},G))}))}})},"Hi"),ZXm=_.p(function(L){var Z=L.props;
var N=L.data;var S=L.options;L={};L=_.qg("ytInlinePlayerControlsBottomRightControls",(L.ytInlinePlayerControlsBottomRightControlsHidden=function(){var u;return QMY(N(),S())&&((u=S())==null?void 0:u.insetProgressBar)&&(Z().isHovering||Z().isDragging)},L));
return _.g("div",{class:L},_.g(q9P,{data:N}),_.g(_.F,{cond:function(){var u;return!((u=S())==null?0:u.hideTimeDisplay)},
then:function(){return _.g(Ll5,{props:Z,data:N})}}))},"Ii"),q9P=_.p(function(L){var Z=L.data;
return _.g(_.bj,{data:function(){var N;return YUs((N=Z())==null?void 0:N.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:zR5})},"Ji"),Ll5=_.p(function(L){var Z=L.props;
var N=L.data;return _.g(_.F,{cond:function(){return Z().isLive},
then:function(){return _.g(Nrm,{props:Z,data:N})},
else:function(){return _.g(Sxc,{props:Z,data:N})}})},"Ki"),Sxc=_.p(function(L){var Z=L.props;
var N=L.data;var S=_.wJ(function(){var u;return eCY((u=N())==null?void 0:u.thumbnailOverlays)},void 0,"cxM54");
return _.g("div",{class:_.qg("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.cm.PLAYER_TIME_ELAPSED+" "+_.C$G(Z().playedTime)}},_.g(_.Ho,{data:function(){var u=_.C$G(Z().videoDuration-Z().playedTime);
return Object.assign({},{type:17,text:u},S())}}))},"Li"),iXk=_.p(function(L){L=L.badgeShapeData;
return _.g("div",{class:_.qg("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.g(_.Ho,{data:L}))},"Mi"),Nrm=_.p(function(L){var Z=L.data;
L=_.wJ(function(){if(_.c("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var N,S;return(N=Z())==null?void 0:(S=N.thumbnailOverlays)==null?void 0:S.find(function(u){return u.thumbnailOverlayTimeStatusRenderer||u.thumbnailOverlayBadgeViewModel})}},void 0,"MJfDhd");
return _.g(_.F,{cond:L,then:function(N){return _.g(_.bj,{data:N},{thumbnailOverlayTimeStatusRenderer:function(S){var u=S.data;S=_.wJ(function(){return _.wjA(u(),0)},void 0,"qFhnic");
return _.g(iXk,{badgeShapeData:S})},
thumbnailOverlayBadgeViewModel:function(S){return _.g(_.$55,{data:S.data})}})},
else:function(){var N={type:18,text:_.cm.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.g(iXk,{badgeShapeData:function(){return N}})}})},"Ni"),uB0=_.p(function(L){var Z=L.props;
var N=L.data;var S=L.options;return _.g(_.yas,{progressBarProps:Z,config:function(){var u,T=_.n((u=N())==null?void 0:u.multiMarkersPlayerBar,_.aRM),W;u=((W=S())==null?0:W.insetProgressBar)?2:1;var V;W=(V=S())==null?void 0:V.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:u,chapterData:T,isInlinePlayback:!0,doSeekOnClick:W,playheadDotBehavior:W?1:0}}})},"Oi");_.CY(_.p(function(L){var Z=L.data;var N=L.appApi;var S=L.options;var u=jMm(Z,rQY(N));L={};N={};return _.g("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.g("div",{class:_.qg("ytInlinePlayerControlsDarkenedOverlay",(L.ytInlinePlayerControlsDarkenedOverlayShow=function(){return u().isHovering},L))}),_.g(JNq,null),_.g(HkQ,{data:u}),_.g(Bn5,{data:Z}),_.g(hRs,{playerControlsProps:u,
isShortsPage:!1}),_.g("div",{class:_.qg((N.ytInlinePlayerControlsControlsHidden=function(){return u().isDragging},N))},_.g(xey,{props:u,
data:Z,options:S}),_.g(ZXm,{props:u,data:Z,options:S})),_.g(_.F,{cond:function(){return QMY(Z(),S())},
then:function(){return _.g(uB0,{props:u,data:Z,options:S})}}))},"Fi"),"yt-inline-player-controls",{props:{data:_.LK,
appApi:_.zl,options:_.LK}});var nr=function(){var L=_.e.apply(this,arguments)||this;L.opts=null;L.playerControlsData=null;L.playerControlsAppApi={openInMiniplayer:function(){L.openInMiniplayer()}};
L.playerControlsOptions={};L.noAnimation=!1;L.playbackIntentTriggered=!1;L.positionData=null;L.hidden=!0;L.active=!1;L.playing=!1;L.videoPreviewDataIndex=0;L.JSC$19360_playerPromise=null;L.player=null;L.enableAudioControls=!1;L.hasBeenUnmuted=!1;L.captionsHaveBeenTurnedOff=!1;L.JSC$19360_playerEvents=new Map;L.videoPreviewFetchRequest=null;L.scheduledPreviewEndJobId=null;L.JSC$19360_preventProgressSaveTimer=null;L.watchEndpointStartTimeUpdaterInterval=null;L.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};L.windowOnBlurFn=function(){L.deactivate()};
return L};
_.f(nr,_.e);_.t=nr.prototype;
_.t.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"}}}};
_.t.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19360_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19360_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19360_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19360_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Nd(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Nd(this,this.onScroll))};
_.t.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Nd(this,this.onScroll))};
_.t.onPageTypeChange=function(){this.deactivate()};
_.t.onWindowResized=function(){this.deactivate()};
_.t.onCaptionsChanged=function(L){L=!!L.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!L);this.setCaptionSize()};
_.t.setCaptionSize=function(){var L;if(this.active&&!this.captionsHaveBeenTurnedOff&&((L=this.player)==null?0:L.getCaptionWindowContainerId())){var Z;(Z=this.player)==null||Z.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.t.currentPageAllowed=function(){return!this.isWatchPage};
_.t.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.c("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var L=this.positionData,Z=L.initialTopPosition,N=L.initialHorizontalPosition;_.Ld(this.hostElement,{"--ytd-video-preview-translate-left":L.finalHorizontalPosition-N+"px","--ytd-video-preview-translate-top":L.finalTopPosition-Z+"px","--ytd-video-preview-original-top-position":Z+
"px","--ytd-video-preview-original-horizontal-position":N+"px","--ytd-video-preview-initial-scale":"scale("+L.initialScale+")","--ytd-video-preview-width":L.videoPreviewWidth+"px","--ytd-video-preview-height":L.videoPreviewHeight+"px"});return!0};
_.t.isOutOfBounds=function(L){var Z=L.initialHorizontalPosition+12;L=Z+L.videoPreviewWidth>window.innerWidth;return Z<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&Z<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&Z<72||L};
_.t.handleOpenVideoPreviewAction=function(L){var Z=this,N;return _.b(function(S){if(!Z.currentPageAllowed())return S.return(0);Z.opts=L;return(N=Z.alignVideoPreviewForAnimation(L.thumbnail))?S.return(Z.activate()):S.return(0)})};
_.t.onMouseLeave=function(L){var Z,N;(Z=this.opts)==null||(N=Z.mouseleaveCallback)==null||N.call(Z);this.shouldDeactivateOnMouseLeave(L)&&this.deactivate()};
_.t.onScroll=function(){var L,Z;((L=this.opts)==null?0:L.isAutoplay)&&((Z=this.opts)==null?0:Z.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.t.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.ro.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.t.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.t.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",nr.JSC$19359_DEFAULT_CLICK_LOCATION_BEHAVIOR,nr.JSC$19359_CLICK_LOCATION_ID_MAP)};
_.t.shouldDeactivateOnMouseLeave=function(L){L=L.relatedTarget;if(!L)return!0;var Z;return(Z=this.opts)!=null&&Z.mediaRenderer?!_.XB(this.opts.mediaRenderer).contains(L):!0};
_.t.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.t.onPlaybackStart=function(){var L=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$19360_preventProgressSaveTimer=
_.H9(_.ro,function(){L.resetPreventProgressSaveTimer()},1E4);
var Z;if((Z=this.opts)==null?0:Z.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.H9(_.ro,function(){L.hasMultipleVideoPreviews()?L.startPlaybackForNextVideo():L.deactivate()},this.opts.videoPreviewDurationMs);
var N;this.player.setGlobalCrop(((N=this.opts)==null?0:N.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.t.getRoundedCornersSize=function(){var L;if((L=this.opts)==null?0:L.roundedCornersSize){var Z;return(Z=this.opts)==null?void 0:Z.roundedCornersSize}var N;if((N=this.opts)==null?0:N.enableRounding){var S;if(((S=this.opts)==null?void 0:S.thumbnailSize)==="small")return 1;var u;if(((u=this.opts)==null?void 0:u.thumbnailSize)==="medium")return 2;var T;if(((T=this.opts)==null?void 0:T.thumbnailSize)==="large")return 3}return _.c("web_imp_inset_progress_bar")?3:0};
_.t.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.t.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.t.onMediaContainerClick=function(L){this.isShortcutClick(L)||(this.navigateToWatch(L),L.preventDefault(),L.stopPropagation())};
_.t.activate=function(){var L=this,Z,N,S,u,T,W,V,M,G;return _.b(function(D){switch(D.nextAddress){case 1:if(!L.currentPageAllowed())return D.return(0);N=(Z=L.videoPreviewData)==null?void 0:Z.inlinePlaybackEndpoint;S=_.IV.instance;if(!N||!S)return D.return(0);L.playbackIntentTriggered=!0;((u=L.opts)==null?0:u.mediaRenderer)&&((T=L.opts)==null||!T.isAutoplay)&&kcm(L.opts.mediaRenderer,function(){L.deactivate()});
_.bN(L,function(){L.revealPreviewUi()});
W={};_.c("enable_unknown_lact_fix_on_html5")&&(_.GR().resolve(_.MV),W.lact=_.Fv());L.videoPreviewFetchRequest=odw(S,L.getInlinePlaybackRequestData(L.videoPreviewData),W);_.RS(D,2);return D.yield(L.videoPreviewFetchRequest,4);case 4:V=D.yieldResult;if(((M=V)==null?void 0:(G=M.playabilityStatus)==null?void 0:G.status)==="OK")return D.return(L.handlePlayerResponse(V));throw Error("ek");case 2:_.yd(D),L.deactivate();case 3:return D.return(1)}})};
_.t.getInlinePlaybackRequestData=function(L){var Z,N=_.c("web_imp_player_mute_params")?((Z=this.opts)==null?void 0:Z.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:L.inlinePlaybackEndpoint,startPlaybackInMutedState:N}};
_.t.handlePlayerResponse=function(L){var Z=this,N,S,u,T,W,V,M,G,D,l,v,R;return _.b(function(K){if(K.nextAddress==1){N=Z.getInlinePlaybackVideoId();if(!(((S=L)==null?0:(u=S.videoDetails)==null?0:u.videoId)&&Z.currentPageAllowed()&&Z.playbackIntentTriggered&&Z.opts&&N))return Z.deactivate(),K.return(0);if(L.videoDetails.videoId!==N)return K.return(0);Z.enableAudioControls=!!((T=L.playerConfig)==null?0:(W=T.inlinePlaybackConfig)==null?0:W.showAudioControls);L.trackingParams=Z.getInlinePlaybackTrackingParams();
if(!Z.inlinePlayer)return K.return(0);V={};if(G=_.n((M=Z.videoPreviewData)==null?void 0:M.inlinePlaybackEndpoint,_.so))V.watch_endpoint=G;if(Z.videoPreviewData){var U,d=(U=_.n(Z.videoPreviewData.inlinePlaybackEndpoint,_.so))==null?void 0:U.startTimeSeconds;d!==void 0&&(L.playerConfig||(L.playerConfig={}),L.playerConfig.playbackStartConfig||(L.playerConfig.playbackStartConfig={}),L.playerConfig.playbackStartConfig.startPosition||(L.playerConfig.playbackStartConfig.startPosition={}),L.playerConfig.playbackStartConfig.startSeconds=
d,L.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(d*1E3))}Z.inlinePlayer.loadVideoWithPlayerResponse(L,V);if(Z.JSC$19360_playerPromise)return K.jumpTo(2);Z.JSC$19360_playerPromise=Z.inlinePlayer.getPlayerPromise();return K.yield(Z.JSC$19360_playerPromise,3)}K.nextAddress!=2&&(D=K.yieldResult,D.setInlinePreview(!0),l=!_.c("web_imp_theater_bugfix"),D.setSizeStyle(!1,l),Z.ytPlayerListenerBehavior.listenToPlayerEvents(D,Z.JSC$19360_playerEvents),Z.player=D,_.QT(Z.hostElement,
"player-api-ready"));((v=Z.opts)==null?0:v.showPlayerControls)&&Z.videoPreviewData&&Z.player&&(Z.playerControlsData={playerResponse:L,isInlinePlayback:!0,thumbnailOverlays:Z.videoPreviewData.thumbnailOverlays,playerApi:Z.player},Z.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!Z.unroundCornersForPlayback,additionalButton:Z.getAdditionalButtonType(Z.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(R=Z.opts)==null?void 0:R.hideTimeDisplay});return K.return(2)})};
_.t.revealPreviewUi=function(){var L=this;this.playbackIntentTriggered&&_.DQA(this,function(){L.hasThumbnailPositionChangedSinceTriggered()||(L.updateActiveState(!0),L.noAnimation=!1)})};
_.t.hasThumbnailPositionChangedSinceTriggered=function(){var L=this.positionData,Z=this.getThumbnailPositionData();return(L==null?void 0:L.initialTopPosition)!==(Z==null?void 0:Z.initialTopPosition)||(L==null?void 0:L.initialHorizontalPosition)!==(Z==null?void 0:Z.initialHorizontalPosition)};
_.t.getThumbnailPositionData=function(){var L,Z;if((Z=this.opts)==null||!Z.thumbnail)return null;Z=this.opts.thumbnail;var N=((L=this.opts)==null?0:L.cropPlayerToFillThumbnailHorizontally)?!1:!0;var S=Z.getBoundingClientRect();L=S.width;Z=S.height;var u=S.top+window.scrollY;S=S.left+window.scrollX;var T=N?Math.ceil(L):L;N=N?Math.ceil(Z):Z;var W=L/T;L={initialScale:W,initialTopPosition:u-12*W,finalTopPosition:u-12-(N-Z)/2,initialHorizontalPosition:S-(12+(T-L)/2),finalHorizontalPosition:S-12-(T-L)/
2,videoPreviewWidth:T,videoPreviewHeight:N};return L};
_.t.updateActiveState=function(L){this.active=L;this.ytdReduxBehavior.dispatch(_.XK({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:L}))};
_.t.stopPlayer=function(L){L=L.resetWatchEndpointStartTime===void 0?!1:L.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(L)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.ro.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.t.deactivate=function(L){L=L===void 0?{}:L;L=L.resetWatchEndpointStartTime===void 0?!1:L.resetWatchEndpointStartTime;hT&&(hT.disconnect(),hT=null);this.stopPlayer({resetWatchEndpointStartTime:L});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.t.isValidThumbnailOverlayButton=function(L,Z){L=L.thumbnailOverlayButtonRenderer;var N;return!!L&&!!L.tooltip&&!((N=L.icon)==null||!N.iconType)&&Z.includes(L.icon.iconType)};
_.t.isValidThumbnailOverlayButtonViewModel=function(L,Z){var N;L=_.n((N=L.thumbnailOverlayButtonViewModel)==null?void 0:N.overlayButton,_.NU);return!!L&&!!L.title&&!!L.iconName&&Z.includes(L.iconName)};
_.t.getAdditionalButtonType=function(L){var Z=this;if(_.c("web_imp_fastforward_button"))return{button:1};if(_.c("web_imp_miniplayer_button"))return{button:2};if(_.c("web_imp_playback_speed_button"))return{button:3};var N=["BOX_STACK_3"],S=(L||[]).filter(function(T){return Z.isValidThumbnailOverlayButton(T,N)}).map(function(T){return T.thumbnailOverlayButtonRenderer});
if(S.length)return{button:4,thumbnailOverlayButtonRenderers:S};var u=["BOX_STACK_3"];L=(L||[]).filter(function(T){return Z.isValidThumbnailOverlayButtonViewModel(T,u)}).map(function(T){return _.n(T.thumbnailOverlayButtonViewModel.overlayButton,_.NU)});
if(L.length)return{button:4,thumbnailOverlayButtonViewModels:L}};
_.t.allowCaptions=function(){var L;return!((L=this.opts)==null?0:L.forceCaptionsOff)};
_.t.allowUnmuting=function(){var L;return this.enableAudioControls&&!((L=this.opts)==null?0:L.forceMutedVolume)};
_.t.beginStartTimeUpdater=function(){var L=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.nZ(function(){L.updateWatchEndpointStartTime()},1E3)};
_.t.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.t.resetPreventProgressSaveTimer=function(){this.JSC$19360_preventProgressSaveTimer!==null&&(_.ro.cancelJob(this.JSC$19360_preventProgressSaveTimer),this.JSC$19360_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.t.updateWatchEndpointStartTime=function(L){var Z=this.videoPreviewData;if(this.player&&Z!=null&&Z.inlinePlaybackEndpoint&&!this.JSC$19360_preventProgressSaveTimer){L=L?0:Math.floor(this.player.getCurrentTime());var N=_.n(Z.navigationEndpoint,_.so);N&&(N.startTimeSeconds=L);if(Z=_.n(Z.inlinePlaybackEndpoint,_.so))Z.startTimeSeconds=L}};
_.t.isShortcutClick=function(L){return!!L&&(L.ctrlKey||L.shiftKey||L.metaKey)};
_.t.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.t.openInMiniplayer=function(){var L=this,Z,N;return _.b(function(S){if(S.nextAddress==1){N=(Z=L.videoPreviewData)==null?void 0:Z.navigationEndpoint;if(!N)return S.return();_.dM().lockupActivation=!0;return S.yield(_.wHO(_.GR().resolve(_.yk),N),2)}_.dM().userActivation=!0;_.w7(S)})};
_.t.navigateToWatch=function(L){var Z,N=(Z=this.videoPreviewData)==null?void 0:Z.navigationEndpoint;if(N){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(N,L,!0);else{var S;_.c("web_thumbnail_to_watch_transition")&&((S=this.opts)==null?0:S.thumbnail)&&_.fvs(_.GR().resolve(_.eB),this.opts.thumbnail);_.QT(this.hostElement,"yt-navigate",{endpoint:N})}this.deactivate()}};
_.t.getInlinePlaybackVideoId=function(){var L,Z;return(Z=_.n((L=this.videoPreviewData)==null?void 0:L.inlinePlaybackEndpoint,_.so))==null?void 0:Z.videoId};
_.t.getInlinePlaybackTrackingParams=function(){var L,Z;return(L=this.videoPreviewData)==null?void 0:(Z=L.inlinePlaybackEndpoint)==null?void 0:Z.clickTrackingParams};
_.t.hasMultipleVideoPreviews=function(){var L;return!!(((L=this.opts)==null?0:L.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.t.startPlaybackForNextVideo=function(){var L;(L=this.opts)!=null&&L.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())};
_.gd.Object.defineProperties(nr.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.opts)==null?0:L.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.opts)==null||!L.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 L;if(Array.isArray((L=this.opts)==null?void 0:L.videoPreviewData)){var Z;return(Z=this.opts)==null?void 0:Z.videoPreviewData[this.videoPreviewDataIndex]}var N;return(N=this.opts)==null?void 0:N.videoPreviewData}}});
nr.prototype.onIsAdsVideoChange=nr.prototype.onIsAdsVideoChange;nr.prototype.onInlinePreviewIsEnabledChange=nr.prototype.onInlinePreviewIsEnabledChange;nr.prototype.optsChanged=nr.prototype.optsChanged;nr.prototype.onMouseLeave=nr.prototype.onMouseLeave;nr.JSC$19359_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);nr.JSC$19359_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"}];
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],nr.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],nr.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.No.YtPlayerListenerBehavior),_.Q("design:type",_.SG)],nr.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],nr.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],nr.prototype,"componentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],nr.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.VK.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],nr.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],nr.prototype,"opts",void 0);
_.r([_.Y(),_.Q("design:type",Object)],nr.prototype,"playerControlsData",void 0);_.r([_.Y(),_.Q("design:type",Object)],nr.prototype,"playerControlsAppApi",void 0);_.r([_.Y(),_.Q("design:type",Object)],nr.prototype,"playerControlsOptions",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],nr.prototype,"noAnimation",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],nr.prototype,"hidden",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],nr.prototype,"active",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],nr.prototype,"playing",void 0);_.r([_.Y({selector:_.aAG}),_.Q("design:type",Boolean)],nr.prototype,"inlinePreviewIsEnabled",void 0);_.r([_.Y(),_.Q("design:type",String)],nr.prototype,"pagePath",void 0);_.r([_.Y({selector:_.eut}),_.Q("design:type",Boolean)],nr.prototype,"isWatchPage",void 0);
_.r([_.w("videoPreviewData"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],nr.prototype,"thumbnailData",null);_.r([_.w("opts","active"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],nr.prototype,"hidePlayerControls",null);_.r([_.w("opts"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],nr.prototype,"isAdsVideo",null);
_.r([_.w("opts"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],nr.prototype,"roundedCornersSmall",null);_.r([_.w("opts"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],nr.prototype,"roundedCornersMedium",null);_.r([_.w("opts"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],nr.prototype,"roundedCornersLarge",null);
_.r([_.w("opts"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],nr.prototype,"unroundCornersForPlayback",null);_.r([_.w("opts","videoPreviewDataIndex"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],nr.prototype,"videoPreviewData",null);_.r([_.Y(),_.Q("design:type",Object)],nr.prototype,"videoPreviewDataIndex",void 0);_.r([_.TX("#inline-player"),_.Q("design:type",Object)],nr.prototype,"inlinePlayer",void 0);
_.r([_.SA("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[MouseEvent]),_.Q("design:returntype")],nr.prototype,"onMouseLeave",null);_.r([_.Vr("opts"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nr.prototype,"optsChanged",null);_.r([_.Vr("inlinePreviewIsEnabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nr.prototype,"onInlinePreviewIsEnabledChange",null);
_.r([_.iA("isAdsVideo"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nr.prototype,"onIsAdsVideoChange",null);_.r([_.P({is:"ytd-video-preview",disableElementRegistration:!0})],nr);
_.m(nr,"ytd-video-preview",function(){if(aT5!==void 0)return aT5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return aT5=L},{mode:2});
}catch(e){_._DumpException(e)}
try{
var z2M,m8G,JjV;z2M=function(L){return _.c("kevlar_watch_cinematics_invisible")||L.fullscreen&&_.c("kevlar_watch_cinematics_invisible_in_fullscreen")||L.theater&&!L.fullscreen&&_.c("kevlar_watch_cinematics_invisible_in_theater")};
m8G=function(){var L=document.createElement("canvas"),Z=L.getContext("2d");if(!Z)throw Error("No");_.js(L,{position:"absolute",width:"100%",height:"100%"});return{element:L,context:Z}};
JjV=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.c("kevlar_watch_cinematics_css_blur")};
_.CGi=function(L,Z,N){return Math.abs(L-Z)<=(N||1E-6)};
_.rj8=function(L,Z){return L==Z?!0:L&&Z?L.width==Z.width&&L.height==Z.height:!1};_.QmM=new _.S5("notificationActionRenderer");var Xyn=function(L){var Z=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.qe;this.element.addEventListener("load",function(){Z.loaded=!0;Z.resolver.resolve(Z.element)});
this.element.addEventListener("error",function(){Z.failed=!0});
this.element.src=L};var AjM=function(L,Z){this.image=L;this.frame=Z};
AjM.prototype.drawToCanvas=function(L,Z){var N=this.frame.width/this.frame.columns,S=this.frame.height/this.frame.rows,u=Z.offsetX,T=Z.offsetY;z2M(Z)?(L.fillStyle=Z.fullscreen?"#000":"#0f0f0f",L.fillRect(u,T,(Z==null?void 0:Z.width)||N,(Z==null?void 0:Z.height)||S)):L.drawImage(this.image,this.frame.column*N,this.frame.row*S,N,S,u,T,(Z==null?void 0:Z.width)||N,(Z==null?void 0:Z.height)||S)};
var Hxw=function(L){this.color=L};
Hxw.prototype.drawToCanvas=function(L,Z){var N=Z.offsetX,S=Z.offsetY,u=Z.width,T=Z.height;L.fillStyle=z2M(Z)?Z.fullscreen?"#000":"#0f0f0f":this.color;L.fillRect(N,S,u,T)};var Dr=function(L,Z){_.zO.call(this);this.playerApi=Z;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.wF(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();BFG(this,L);x88(this);this.update()};
_.f(Dr,_.zO);Dr.prototype.addEventListeners=function(){var L=this,Z=function(){L.update()},N=function(u){L.paused||(u.type==="newdata"&&(L.mosaics.clear(),qN6(L),lC(L)),x88(L),L.update())},S=function(){L.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",Z);this.playerApi.addEventListener("onVideoDataChange",N);this.playerApi.addEventListener("onStateChange",S);this.addOnDisposeCallback(function(){L.playerApi.removeEventListener("onVideoProgress",Z);L.playerApi.removeEventListener("onVideoDataChange",N);L.playerApi.removeEventListener("onStateChange",S)})};
var BFG=function(L,Z){L.cinematicContainerRenderer!==Z&&(L.cinematicContainerRenderer=Z,qN6(L),lC(L),L.colorStoreUpdateJobId=_.ro.addLowPriorityJob(function(){var N;if((N=L.cinematicContainerRenderer.colorStore)!=null&&N.sampledColors){N=Infinity;for(var S=_.O(L.cinematicContainerRenderer.colorStore.sampledColors),u=S.next();!u.done;u=S.next()){u=u.value;var T=Number(u.key);T!==0&&T<N&&(N=T);T=_.Rs(u.value);L.colorStore.set(u.key,T)}L.colorStoreTimeInterval=N}}))},qN6=function(L){L.colorStoreUpdateJobId&&
(_.ro.cancelJob(L.colorStoreUpdateJobId),L.colorStoreUpdateJobId=void 0);
L.colorStore.clear();L.currentStoryboardColor=void 0},LmM=function(L,Z){var N;
return(N=L.getStoryboardFrame(Z))==null?void 0:N.url};
Dr.prototype.onPlayerStateChange=function(){this.update()};
Dr.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var x88=function(L){var Z=L.getStoryboardFrame(0);Z&&(Z=new _.wF(Z.width/Z.columns,Z.height/Z.rows),_.rj8(L.currentStoryboardSize,Z)||(L.currentStoryboardSize=Z,L.publish("STORYBOARD_SIZE_CHANGED",L.currentStoryboardSize)))},ZyY=function(L,Z){L.currentStoryboardIndex=Z;
L.pendingStoryboardIndex=NaN;Z=L.getStoryboardFrame(L.currentStoryboardIndex);L.currentStoryboard=new AjM(L.mosaics.get(Z.url).element,Z);L.publish("STORYBOARD_CHANGED",L.currentStoryboard);L.lastUpdateTime=(0,_.GT)()};
Dr.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var lC=function(L){L.currentStoryboardIndex=NaN;L.pendingStoryboardIndex=NaN;L.currentStoryboard&&(L.currentStoryboard=void 0,L.publish("STORYBOARD_CHANGED",void 0));L.lastUpdateTime=NaN};
Dr.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)lC(this);else{var L=this.playerApi.getPlayerState(1);if(L===-1||L===5||L===0)lC(this);else if(isNaN(this.lastUpdateTime)||!((0,_.GT)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(L=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){L=""+Math.round(L*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var Z=this.colorStore.get(L);Z?Z!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=Z,this.currentStoryboard=new Hxw(Z),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.GT)()):(_.Q7(new _.sr("Could not find color for timestamp: "+L,this.cinematicContainerRenderer)),lC(this))}else lC(this);else NZf(this,L)}};
var NZf=function(L,Z){var N=L.getStoryboardFrameIndex(Z);if(N!==L.currentStoryboardIndex&&N!==L.pendingStoryboardIndex){Z=LmM(L,N);var S=L.mosaics.get(Z);S?S.loaded&&ZyY(L,N):(L.pendingStoryboardIndex=N,N=new Xyn(Z),L.mosaics.set(Z,N),N.resolver.promise.then(function(){if(!L.isDisposed()&&!L.paused&&!isNaN(L.pendingStoryboardIndex)){var u=LmM(L,L.pendingStoryboardIndex);if(u){var T;(T=L.mosaics.get(u))!=null&&T.loaded&&ZyY(L,L.pendingStoryboardIndex)}else lC(L)}}))}};
Dr.prototype.getStoryboardFrameIndex=function(L){var Z=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(L,Z)};
Dr.prototype.getStoryboardFrame=function(L){var Z=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,N,S;return((S=(N=this.playerApi).getStoryboardFrame)==null?void 0:S.call(N,L,Z))||null};
Dr.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var o4=function(L,Z,N,S){S=S===void 0?!1:S;_.ag.call(this);this.cinematicContainerRenderer=Z;this.playerApi=N;this.theater=this.fullscreen=!1;var u;this.ambientLightThemeEnabled=!S&&!!(Z==null?0:(u=Z.config)==null?0:u.enableInLightTheme);this.ambientFullscreenEnabled=S&&_.c("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=S&&_.c("web_cinematic_theater_mode");this.container=document.createElement("div");L.appendChild(this.container);var T;if(_.c("web_cinematic_theater_mode")||_.c("web_cinematic_fullscreen")||
(Z==null?0:(T=Z.config)==null?0:T.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);S_6(this);L=this.ambientV2Container||this.container;this.backCanvas=m8G();this.frontCanvas=m8G();L.appendChild(this.backCanvas.element);L.appendChild(this.frontCanvas.element);this.storyboardManager=new Dr(Z,this.playerApi);_.Ky(this,this.storyboardManager);this.addEventListeners();iyq(this)?uUq(this,100+vH(this)*3*2,100+vH(this)*3*2):TZ8(this);
tb6(this,this.storyboardManager.currentStoryboard)};
_.f(o4,_.ag);var S_6=function(L){L.ambientV2Container?Oy6(L):(_.js(L.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+WmY(L)+", "+Vbt(L)+")"}),JjV()&&_.js(L.container,"filter","blur("+_.lQ("cinematic_watch_css_filter_blur_strength",40)+"px)"))},Oy6=function(L){if(L.ambientV2Container){var Z=L.playerApi.getVideoAspectRatio();
_.js(L.container,{"aspect-ratio":""+Z,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.js(L.ambientV2Container,{"aspect-ratio":""+Z,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+WmY(L)+", "+Vbt(L)+")"});JjV()&&_.js(L.ambientV2Container,"filter","blur("+_.lQ("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
o4.prototype.setFullscreen=function(L,Z){this.fullscreen=L;this.theater=!!Z;S_6(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),L=this.storyboardManager.currentStoryboard,by6(this),L&&Mbn(this,L)};
o4.prototype.addEventListeners=function(){var L=this,Z=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(u){tb6(L,u)}),N=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){TZ8(L)});
this.addOnDisposeCallback(function(){L.storyboardManager.unsubscribeByKey(Z);L.storyboardManager.unsubscribeByKey(N)});
if(this.ambientV2Container){var S=function(){Oy6(L)};
this.playerApi.addEventListener("onVideoDataChange",S);this.addOnDisposeCallback(function(){L.playerApi.removeEventListener("onVideoDataChange",S)})}};
var TZ8=function(L){if(!iyq(L)){var Z=L.storyboardManager.currentStoryboardSize;isNaN(Z.width)||isNaN(Z.height)||uUq(L,Number(Z.width)+vH(L)*3*2,Number(Z.height)+vH(L)*3*2)}},uUq=function(L,Z,N){L.backCanvas.element.width=Z;
L.backCanvas.element.height=N;L.frontCanvas.element.width=Z;L.frontCanvas.element.height=N},iyq=function(L){return L.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},tb6=function(L,Z,N){N=N===void 0?!1:N;
var S=L.frontCanvas.element.getAnimations()[0];S?(S.pause(),L.backCanvas.context.globalAlpha=Number(getComputedStyle(L.frontCanvas.element).opacity),L.frontCanvas.element.style.opacity="0",S.finish()):L.backCanvas.context.globalAlpha=1;L.backCanvas.context.drawImage(L.frontCanvas.element,0,0,L.backCanvas.element.width,L.backCanvas.element.height);by6(L);Z&&Mbn(L,Z);Z=Z?L.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.lQ("cinematic_watch_fade_out_duration",500);S=_.lQ("cinematic_watch_transition_frame_rate")/
1E3;var u={};S&&(u={easing:"steps("+Math.round(Z*S)+")"});(N===void 0?0:N)||L.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:Z,iterations:1},u));L.frontCanvas.element.style.opacity="1"},by6=function(L){var Z=L.ambientLightThemeEnabled||L.ambientTheaterModeEnabled,N=L.ambientLightThemeEnabled||L.ambientFullscreenEnabled;
L.frontCanvas.context.fillStyle=L.theater&&Z||L.fullscreen&&N?"#000":"#0f0f0f";JjV()||(L.frontCanvas.context.filter="blur(0)");L.frontCanvas.context.fillRect(0,0,L.frontCanvas.element.width,L.frontCanvas.element.height)},Mbn=function(L,Z){JjV()||(L.frontCanvas.context.filter="blur("+vH(L)+"px)");
L.frontCanvas.context.globalAlpha=L.fullscreen&&L.ambientFullscreenEnabled||L.theater&&L.ambientTheaterModeEnabled?_.lQ("cinematic_watch_effect_letterbox_opacity",.4):_.lQ("cinematic_watch_effect_opacity",.4);var N={offsetX:vH(L)*3,offsetY:vH(L)*3,theater:L.theater,fullscreen:L.fullscreen};iyq(L)&&(N.width=100,N.height=100);Z.drawToCanvas(L.frontCanvas.context,N);L.frontCanvas.context.globalAlpha=1},vH=function(L){var Z;
return(Z=L.cinematicContainerRenderer.config.blurStrength)!=null?Z:5},WmY=function(L){var Z,N;
if((L.fullscreen||L.theater)&&((Z=L.cinematicContainerRenderer.config)==null?0:(N=Z.watchFullscreenConfig)==null?0:N.colorSourceWidthMultiplier))return L.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var S;return(S=L.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?S:L.cinematicContainerRenderer.config.colorSourceSizeMultiplier},Vbt=function(L){var Z,N;
if((L.fullscreen||L.theater)&&((Z=L.cinematicContainerRenderer.config)==null?0:(N=Z.watchFullscreenConfig)==null?0:N.colorSourceHeightMultiplier))return L.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var S;return(S=L.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?S:L.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
o4.prototype.disposeInternal=function(){_.ag.prototype.disposeInternal.call(this);this.container.remove()};
o4.prototype.clear=function(){tb6(this,void 0,!0)};
o4.prototype.pause=function(){this.storyboardManager.pause()};var g$Y;g$Y=_.Rn(function(){var L,Z,N=!((Z=(L=document.createElement("canvas")).getContext)==null||!Z.call(L,"2d")),S;L=!((S=CSS)==null||!S.supports("filter: blur(0)"));S=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var u;return N&&L&&S&&!((u=CSS)==null||!u.supports("aspect-ratio: 1 / 1"))});
_.R4=function(L,Z){_.zO.call(this);this.container=L;this.playerApi=Z;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=G37(this);this.update()};
_.f(_.R4,_.zO);_.FmY=function(L){var Z=document.documentElement.hasAttribute("dark");L.isDarkModeEnabled=Z;L.update()};
_.$GM=function(L,Z){L.settingEnabled=Z;L.update()};
_.R4.prototype.setFullscreen=function(L,Z){this.fullscreen=L;this.theater=!!Z;this.update()};
_.DGY=function(L,Z){L.cinematicContainerRenderer=Z;L.cinematicContainerRenderer&&(L.cinematicsVe=_.Ll(L.isShorts()?227858:159022),_.k3(_.tC(),L.cinematicsVe),L.loggingClientData={watchCinematicContainerData:{presentationStyle:L.cinematicContainerRenderer.presentationStyle}});L.update()};
_.R4.prototype.isShorts=function(){var L,Z;return((L=this.cinematicContainerRenderer)==null?void 0:(Z=L.config)==null?void 0:Z.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.R4.prototype.isAllowed=function(){var L;if(L=g$Y()){var Z,N,S;L=((N=this.cinematicContainerRenderer)==null?void 0:N.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((S=this.cinematicContainerRenderer)==null||!S.colorStore)||((Z=this.cinematicContainerRenderer)==null?void 0:Z.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(L)if(_.c("web_cinematics_pausing")){var u,T;L=this.isDarkModeEnabled||!!((u=this.cinematicContainerRenderer)==
null?0:(T=u.config)==null?0:T.enableInLightTheme)}else{var W,V;u=!!((W=this.cinematicContainerRenderer)==null?0:(V=W.config)==null?0:V.enableInLightTheme)&&(_.X7("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);L=this.isDarkModeEnabled||u}if(W=L){var M,G;W=!((G=(M=this.prefersReducedMotionQuery)==null?void 0:M.matches)!=null&&G)}return W};
_.lGn=function(L){(L=L.currentCinematicEffect)!=null&&(L=L.storyboardManager,L.paused=!1,x88(L),L.update())};
_.R4.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var G37=function(L){if(!_.c("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var Z=window.matchMedia("(prefers-reduced-motion: reduce)"),N=function(){L.update()};
Z.addListener(N);L.addOnDisposeCallback(function(){Z.removeListener(N)});
return Z}};
_.R4.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var L=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new o4(this.container,L,this.playerApi,this.isDarkModeEnabled),_.Ky(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var Z=this.currentCinematicEffect;Z.cinematicContainerRenderer!==
L&&(Z.cinematicContainerRenderer=L,BFG(Z.storyboardManager,L),S_6(Z));L=_.tq();_.OT(0,194,!0);L.save();L=_.RH();this.cinematicsVe&&L&&_.aq(L,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(L=_.RH(),this.cinematicsVe&&L&&_.hq(L,[this.cinematicsVe],!1,this.loggingClientData),_.W4(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.gd.Object.defineProperties(_.R4.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var GF7;var Ftt;_.DU({_template:function(){if(Ftt!==void 0)return Ftt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=
L.content,N=Z.insertBefore;GF7===void 0&&(GF7=document.createElement("template"));var S=GF7;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return Ftt=L},
is:"tp-yt-iron-pages",behaviors:[_.Eb,_.I_],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Mnt;_.gVt=function(){if(_.c("kevlar_home_skeleton")&&!Mnt){var L=document.querySelector("#home-page-skeleton");L&&(_.Rq("hgcr"),_.U_(L),Mnt=!0)}};
Mnt=!1;_.NE=new _.S5("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var QO9,Asn,B5Y,xI6,qYY,Lk7,Z8M,NyM,Sv6,umG,O8M,VY9,MYM,WkG,Tyn,tYf,Fk8,$c9;QO9=function(L,Z,N,S){var u=!1,T={contentId:void 0,contentType:"video"};Z=_.O(Object.entries(Z));for(var W=Z.next();!W.done;W=Z.next()){var V=_.O(W.value);W=V.next().value;V=V.next().value;L.includes(W)&&!N.has(V)?(T.contentId=V,N.add(V),u=!0):W==="contentType"?V==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(T.contentType="playlist"):typeof V==="object"&&V!==null&&QO9(L,V,N,S)}u&&S.push(T)};
_.Xln=function(L,Z,N){Z=Z===void 0?5:Z;if(Z!==0){var S=typeof L==="function"?L():document.querySelector(L);S?(N==null?0:N.enableSmartFocus)?_.QeL(S):S.focus():setTimeout(function(){_.Xln(L,Z-1,N)},500)}};
Asn=function(L){return String.raw.apply(String,[{raw:L}].concat(_.Pd(_.CG.apply(1,arguments).map(function(Z){return Z instanceof Array?Z.join(""):Z}))))};
B5Y=function(L){var Z=_.CG.apply(1,arguments),N=Z.length;if(!Array.isArray(L)||!Array.isArray(L.raw)||L.length!==L.raw.length||!_.hMI&&L===L.raw||!(_.hMI&&!_.s75||_.dw(L))||N+1!==L.length)throw new TypeError("$");return new H0f(Object.freeze({strings:Object.freeze(L),args:Object.freeze(Z)}))};
xI6=function(L){return _.C7A(_.JIB(L&16777215))<.5};
qYY=function(L,Z,N){var S=N.minimumRowsOfVideosBetweenSections===void 0?1:N.minimumRowsOfVideosBetweenSections;return L<(N.minimumRowsOfVideosAtStart===void 0?2:N.minimumRowsOfVideosAtStart)||Z!==null&&L-Z<=S?!1:!0};
Lk7=function(L,Z){var N=0,S=0;L=_.O(L);for(var u=L.next();!u.done;u=L.next()){var T=u.value;if(T.richItemRenderer)T.richItemRenderer.rowIndex=S,T.richItemRenderer.colIndex=N++,N===Z&&(N=0,S++);else if(T.richGroupRenderer&&T.richGroupRenderer.numColumns!==void 0)T.richGroupRenderer.rowIndex=S,T.richGroupRenderer.colIndex=N,N+=T.richGroupRenderer.numColumns,N===Z&&(N=0,S++);else if(T.richSectionRenderer){var W=u=void 0;if(T=_.n((u=T)==null?void 0:(W=u.richSectionRenderer)==null?void 0:W.content,_.$Rs))T.rowIndex=
S++}}};
Z8M=function(L,Z){var N=Z.contentElement;Z=Z.rendererToTagNameMap;if(N&&Z&&Z.size!==0){for(var S=new Map,u=_.O(N.children),T=u.next();!T.done;T=u.next()){T=T.value;var W=T.tagName.toLowerCase(),V=S.get(W);V||(V=[],S.set(W,V));V.push(T)}if(S.size!==0)for(u=Math.min(L.length,N.children.length),T=new Map,W=0;W<u;W++){V=Object.keys(L[W])[0];V=Z.get(V);if(!V)break;var M=T.get(V);M===void 0&&(M=0,T.set(V,M));var G=S.get(V);if(!G||M>=G.length)break;T.set(V,M+1);V=G[M];M=N.children[W];M!==V&&(_.mW=!0,_.JC.set(V,
!0),N.insertBefore(V,M),_.JC.delete(V),_.mW=!1)}}};
NyM=function(L,Z,N,S,u,T,W){S=S===void 0?{}:S;if(!L||!L.length)return{orderedContent:[]};L=L.slice();var V=[],M=[];u=null;for(var G=0,D=function(A){M.sort(function(X,L1){return L1.skippedOnRow-X.skippedOnRow});
for(var J,C=(J=M.shift())==null?void 0:J.content;C;)!C.richSectionRenderer&&A||V.push(C),J=void 0,C=(J=M.shift())==null?void 0:J.content},l=void 0,v=void 0,R=new Set;L.length>0||M.length>0;){for(var K=[],U=Z;U>0;){var d=void 0,h=void 0,E=(h=M[0]&&M[0].skippedOnRow<G?(d=M.shift())==null?void 0:d.content:void 0)!=null?h:L.shift();
if(!E)break;if(E.richItemRenderer)d=E.richItemRenderer.targetId,h=void 0,d&&((h=W)==null?0:h.has(d))&&(h=W.get(d),!l||h&&h.timestamp>l.timestamp)&&(l=h,v&&R.add(v),v=d),K.push(E),U--;else if(E.richGroupRenderer&&E.richGroupRenderer.numColumns!==void 0)E.richGroupRenderer.numColumns<=U?(K.push(E),U-=E.richGroupRenderer.numColumns):U===Z&&E.richGroupRenderer.numColumns>Z?(K.push({richGroupRenderer:Object.assign({},E.richGroupRenderer,{numColumns:Z})}),U=0):M.push({content:E,skippedOnRow:G});else if(E.richSectionRenderer)if(qYY(G,
u,S)&&U===Z){V.push(E);u=G;G++;continue}else M.push({content:E,skippedOnRow:G});else if(E.continuationItemRenderer){D(!0);V.push(E);U=0;break}if(U===0)V.push.apply(V,_.Pd(K));else if(!N&&L.length===0){D(!1);V.push.apply(V,_.Pd(K));U=0;break}}G++;l&&(V.push(l.content),G++);v=l=void 0}Lk7(V,Z);T&&Z8M(V,T);return{orderedContent:V,pinnedContentNotShownTargetIds:R}};
Sv6=function(){return _.CG.apply(0,arguments).flat().filter(function(L){return L}).join(";")};
umG=function(){return B5Y(i8n,Sv6.apply(null,_.Pd(_.CG.apply(0,arguments))))};
O8M=function(L,Z){if(Z){var N=_.Pv().getState().entities.flowStateEntity,S=Tyn(L),u=[Z];S&&S!==Z&&u.push(S);var T=!0,W;if(N&&L.flowStateEntityKey&&((W=N[L.flowStateEntityKey])==null?void 0:W.primaryButtonDisabled)!==void 0){var V;T=!((V=N[L.flowStateEntityKey])==null||!V.primaryButtonDisabled)}tYf(L,S!=null?S:Z,u,T)}};
VY9=function(L){return _.hK(_.Pv(),function(Z){return Z.entities.flowStateEntity},function(Z,N){if(L.flowStateEntityKey){var S,u=Z==null?void 0:(S=Z[L.flowStateEntityKey])==null?void 0:S.currentStepId,T;
N=N==null?void 0:(T=N[L.flowStateEntityKey])==null?void 0:T.currentStepId;T=_.Pv().getState().talkToRecs;if(u&&u!==N){var W;Z=(Z==null?void 0:(W=Z[L.flowStateEntityKey])==null?void 0:W.stepIdStack)||Object.keys(T.stepStates);W=!WkG(T==null?void 0:T.stepStates[u]);tYf(L,u,Z,W)}}})};
MYM=function(L){return _.hK(_.Pv(),b8i,function(Z){var N=Tyn(L);if(N){var S=Object.keys(Z.stepStates);Z=!WkG(Z==null?void 0:Z.stepStates[N]);tYf(L,N,S,Z)}})};
WkG=function(L){var Z=Object.keys((L==null?void 0:L.selectionStates)||{}).reduce(function(T,W){return T||(L==null?void 0:L.selectionStates[W].isSelected)},!1),N,S,u=!!(L==null?0:(N=L.userQuery)==null?0:(S=N.userQuery)==null?0:S.trim());
return Z||u};
Tyn=function(L){if(L.flowStateEntityKey){var Z,N,S=(Z=_.Pv().getState().entities.flowStateEntity)==null?void 0:(N=Z[L.flowStateEntityKey])==null?void 0:N.currentStepId;if(S)return S}};
tYf=function(L,Z,N,S){_.Pv().dispatch(_.Mr("flowStateEntity",L.flowStateEntityKey,{currentStepId:Z,stepIdStack:N,key:L.flowStateEntityKey,primaryButtonDisabled:S}))};
_.g5t=function(L,Z){return _.Lk(L.entities,"youchatPendingResponseEntity",Z)};
_.GgM=function(L){return function(Z){_.sk(_.Mr("youchatPendingResponseEntity",L,{entityKey:L,isPendingResponse:Z}))}};
Fk8=function(L){L==null||L.addEventListener("DOMLoaded",function(){L.goToAndPlay(L.totalFrames-48,!0)})};
$c9=function(L){var Z=[];QO9(["videoId","contentId"],L.JSC$18592_pageManager.data,new Set,Z);return Z};
_.DcM=function(L){return $c9(L).filter(function(Z){return Z.contentType==="video"}).map(function(Z){return Z.contentId}).filter(function(Z){return Z!==void 0})};
_.MT=function(L){this.__isSoyCss=!0;this.css=Asn.apply(null,[L.strings].concat(_.Pd(L.args)))};
_.MT.prototype.toString=function(){return this.css};
var H0f=function(){_.MT.apply(this,arguments)};
_.f(H0f,_.MT);var i8n=_.sc(["",""]);var lP7;var v5q;_.DU({_template:function(){if(v5q!==void 0)return v5q;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
var Z=L.content,N=Z.insertBefore;lP7===void 0&&(lP7=document.createElement("template"));var S=lP7;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return v5q=L},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var o5n=new _.S5("flowRootRenderer");var Rv6=new _.S5("chipsShelfViewModel");var c0i=new _.S5("responsiveContainerConfiguration");_.n58=new _.S5("engagementPanelSectionListRenderer");var Kkf=function(){this.horizontal=!1},fPM=function(L,Z){L.horizontal=Z};
Kkf.prototype.position=function(L,Z,N,S){S=S===void 0?1:S;L=this.delta(L)*S+Z;S=Math.max(Z,N);return L>=Math.min(Z,N)&&L<=S?L:N};
Kkf.prototype.axis=function(L){L=this.direction(L);return L==="up"||L==="down"?"Y":"X"};var jE=function(L,Z,N){Z=Z===void 0?_.wH():Z;this.target=L;this.manager=Z;this.touchAction=N;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
jE.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(_.Pd(this.events)));for(var L=_.O(this.events),Z=L.next();!Z.done;Z=L.next())this.listen(Z.value)}};
jE.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Pd(this.events)));for(var L=_.O(this.events),Z=L.next();!Z.done;Z=L.next())this.unlisten(Z.value)}};
jE.prototype.listen=function(L){this.eventMap[L]&&this.target.addEventListener(L,this.eventMap[L])};
jE.prototype.unlisten=function(L){this.eventMap[L]&&this.target.removeEventListener(L,this.eventMap[L])};var E2=function(){Kkf.apply(this,arguments)};
_.f(E2,Kkf);E2.prototype.direction=function(L){var Z=L.detail;L=Z.deltaY;Z=Z.deltaX;return L&&!this.horizontal?L>0?"down":"up":Z&&this.horizontal?Z>0?"right":"left":"none"};
E2.prototype.distance=function(L){return Math.abs(this.delta(L))};
E2.prototype.delta=function(L){var Z=this.direction(L),N=L.detail;L=N.deltaX;N=N.deltaY;return Z==="up"||Z==="down"?N||0:L||0};
E2.prototype.velocity=function(L){var Z=this.direction(L),N=L.detail;L=N.velocityX;N=N.velocityY;return Math.abs(Z==="up"||Z==="down"?N||0:L||0)};_.Pf=function(L,Z,N,S,u,T){u=u===void 0?new E2:u;T=T===void 0?_.wH():T;jE.call(this,Z,T,S);var W=this;this.element=L;this.target=Z;this.config=N;this.input=u;this.manager=T;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 M=kgi(W,V);if(M){W.move(V,M);M.fade&&W.fade(V,M);var G=W.input.direction(V);M.moveAction&&M.moveAction(y0t(W,V,M),G)}};
this.onPanEnd=function(V){var M,G,D,l,v,R;return _.b(function(K){if(K.nextAddress==1){W.animationRequestId&&cancelAnimationFrame(W.animationRequestId);W.animationRequestId=void 0;M=kgi(W,V);if(!M)return K.return();G=M;D=G.triggerAction;l=G.fade;v=G.disableFinish;R=G.translateBack;var U=W.input.velocity(V),d=W.input.distance(V),h=W.threshold(M);return U>.3&&d>10||d>h?v?K.jumpTo(6):l?K.yield(wwY(W,V),6):K.yield(Ucf(W,V,M),6):R?K.yield(W.translateBack(V),3):K.jumpTo(3)}K.nextAddress!=3&&D&&D();W.config.draggingClass&&
W.element.classList.remove(W.config.draggingClass);W.reset();_.w7(K)})};
L=Object.keys(N.triggers);this.directions=new Set(L);fPM(this.input,this.directions.has("right")||this.directions.has("left"))};
_.f(_.Pf,jE);_.Pf.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var kgi=function(L,Z){Z=L.input.direction(Z);return L.config.triggers[Z]};
_.Pf.prototype.move=function(L,Z){var N=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var S=N.input.axis(L),u=N.input.position(L,N.config.startPosition,Z.endPosition,Z.moveRatio||1);N.element.style.transform="translate"+S+"("+u+"px)";N.animationRequestId=void 0}))};
var y0t=function(L,Z,N){var S=N.moveRatio||1;N=Math.abs(L.config.startPosition-N.endPosition);return Math.min(L.input.distance(Z)*S,N)/N};
_.Pf.prototype.fade=function(L,Z){var N=Z.endOpacity;L=y0t(this,L,Z);L>0&&(this.element.style.opacity=""+(((N||0)-1)*L+1))};
_.Pf.prototype.threshold=function(L){return L.threshold?L.threshold:Math.abs(L.endPosition-this.config.startPosition)/3};
var Ucf=function(L,Z,N){var S,u,T,W,V,M,G;return _.b(function(D){if(D.nextAddress==1)return S=L.input.delta(Z)+L.config.startPosition,u=L.input.axis(Z),T=N,W=T.endPosition,V=T.transitionEndPosition,G=(M=V)!=null?M:W,D.yield(L.element.animate([{transform:"translate"+u+"("+S+"px)"},{transform:"translate"+u+"("+G+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);L.element.style.transform="translate"+u+"("+G+"px)";_.w7(D)})};
_.Pf.prototype.translateBack=function(L){var Z=this,N,S;return _.b(function(u){if(u.nextAddress==1){if(!Z.element.style.transform)return u.return();N=Z.input.axis(L);S=Z.config.startPosition;return u.yield(Z.element.animate([{transform:Z.element.style.transform},{transform:"translate"+N+"("+S+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}Z.element.style.transform="translate"+N+"("+S+"px)";_.w7(u)})};
var wwY=function(L,Z){var N,S,u,T;return _.b(function(W){if(W.nextAddress==1)return N=L.input.delta(Z)+L.config.startPosition,S=L.input.axis(Z),u=N+70,T=L.element.style.opacity===""?1:L.element.style.opacity,W.yield(L.element.animate([{transform:"translate"+S+"("+N+"px)",opacity:T},{transform:"translate"+S+"("+u+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);L.element.style.transform="translate"+S+"("+u+"px)";L.element.style.opacity="0";_.w7(W)})};var p9=function(){var L=_.Ok.apply(this,arguments)||this;L._noAccessors=!0;L.scrollRate=3;L.autoScrollAnimationStart=0;L.autoScrollPaused=!1;L.autoScrollRafId=0;return L};
_.f(p9,_.Ok);_.t=p9.prototype;_.t.created=function(){var L=this;this.boundAutoScrollHandler=function(Z){L.autoScroll(Z)}};
_.t.detached=function(){this.hostElement.removeEventListener("mouseout",_.Nd(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Nd(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Nd(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.t.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Nd(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Nd(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Nd(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Nd(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Nd(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Nd(this,this.endAutoScroll)),this.endAutoScroll())};
_.t.autoScroll=function(L){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=L);var Z;if(Z=!this.autoScrollPaused&&this.scrollTarget)Z=this.scrollTarget,Z=Z.scrollHeight-Z.scrollTop!==Z.clientHeight;Z&&(Z=1E3/this.scrollRate,L-=this.autoScrollAnimationStart,L>Z&&(this.scrollTarget.scrollTop+=Math.ceil(L/Z),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.t.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.t.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
p9.prototype.autoScrollEnabledChanged=p9.prototype.autoScrollEnabledChanged;_.r([_.Y(),_.Q("design:type",Object)],p9.prototype,"scrollRate",void 0);_.r([_.Y(),_.Q("design:type",Object)],p9.prototype,"scrollTarget",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],p9.prototype,"autoScrollEnabled",void 0);_.r([_.iA("autoScrollEnabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],p9.prototype,"autoScrollEnabledChanged",null);_.r([_.Wh()],p9);_.YvG=[p9.prototype];var evG;var zJ=function(){var L=_.e.apply(this,arguments)||this;L.buttonUpdate=_.c("web_button_rework");L.dismissButtonOverrides=_.c("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;L.forceDarkTheme=!1;L.forceLightTheme=!1;L.dynamicTextHeight=94;L.hasOverflowButton=!1;L.isInfeedModernization=!1;return L};
_.f(zJ,_.e);_.t=zJ.prototype;_.t.computeUrlImg=function(L){if(L)return _.QV(L.thumbnails)};
_.t.getLogoHeight=function(L){return this.logoWithPadding(L)?"31":"24"};
_.t.getLogoClassName=function(L){return this.logoWithPadding(L)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.t.logoWithPadding=function(L){var Z,N;return(L=(Z=L.thumbnails)==null?void 0:(N=Z[0])==null?void 0:N.height)&&L%31===0?!0:!1};
_.t.sendImpressionEndpoints=function(L){L.impressionEndpoints&&_.H2(this.hostElement,L.impressionEndpoints)};
_.t.observeBasicPalette=function(){var L,Z,N=(L=this.data)==null?void 0:(Z=L.colorData)==null?void 0:Z.basicColorPaletteData;N?_.$0(this.hostElement,N):_.$0(this.hostElement,{})};
_.t.observeDataChanged=function(){var L;this.dynamicTextHeight=((L=this.data)==null?0:L.supplementalText)?74:94;var Z;this.hasSupplementalText=!((Z=this.data)==null||!Z.supplementalText);if(_.c("web_button_rework")){var N,S,u,T;L=(N=this.data)==null?void 0:(S=N.actionButton)==null?void 0:(u=S.buttonRenderer)==null?void 0:(T=u.colorData)==null?void 0:T.basicColorPaletteData;var W,V,M;if(!((W=this.data)==null?0:(V=W.actionButton)==null?0:(M=V.buttonRenderer)==null?0:M.style)&&L){this.computeIsInfeedModernization(this.data)||
(L.borderColor=L.foregroundTitleColor);var G,D;this.set("data.actionButton.buttonRenderer",_.Py.unsafeClone((G=this.data)==null?void 0:(D=G.actionButton)==null?void 0:D.buttonRenderer))}}};
_.t.observeDataForCounterfactual=function(){if(_.c("kevlar_banner_cf_extra_logging")){var L;((L=this.data)==null?0:L.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.t.computeSupplementalStyle=function(){var L;if((L=this.data)!=null&&L.supplementalText){var Z,N,S;if((Z=this.data)==null?0:(N=Z.colorData)==null?0:(S=N.basicColorPaletteData)==null?0:S.foregroundActivatedColor)return L=_.vq(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+L+"; --yt-endpoint-hover-color:"+L+"; --yt-endpoint-visited-color:"+L+"; --yt-formatted-string-bold-font-weight:700;"}};
_.t.computeForcedDarkTheme=function(){var L,Z,N,S=(L=this.data)==null?void 0:(Z=L.actionButton)==null?void 0:(N=Z.buttonRenderer)==null?void 0:N.style,u,T,W;L=xI6(((u=this.data)==null?void 0:(T=u.colorData)==null?void 0:(W=T.basicColorPaletteData)==null?void 0:W.backgroundColor)||0);return S&&L};
_.t.computeForcedLightTheme=function(){var L,Z,N,S=(L=this.data)==null?void 0:(Z=L.actionButton)==null?void 0:(N=Z.buttonRenderer)==null?void 0:N.style,u,T,W;L=!xI6(((u=this.data)==null?void 0:(T=u.colorData)==null?void 0:(W=T.basicColorPaletteData)==null?void 0:W.backgroundColor)||0);return S&&L};
_.t.computeHasOverflowButton=function(L){return!!L.overflowButton};
_.t.computeHasTitle=function(L){return!!L.title};
_.t.computeTitleMaxFontSize=function(L){return this.computeHasOverflowButton(L)?28:64};
_.t.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.t.computeIsInfeedModernization=function(){var L,Z,N,S,u=(L=this.data)==null?void 0:(Z=L.actionButton)==null?void 0:(N=Z.buttonRenderer)==null?void 0:(S=N.colorData)==null?void 0:S.basicColorPaletteData;return(u==null?void 0:u.backgroundColor)===452984831||(u==null?void 0:u.backgroundColor)===218103808};
zJ.prototype.observeDataForCounterfactual=zJ.prototype.observeDataForCounterfactual;zJ.prototype.observeDataChanged=zJ.prototype.observeDataChanged;zJ.prototype.observeBasicPalette=zJ.prototype.observeBasicPalette;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],zJ.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],zJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],zJ.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],zJ.prototype,"buttonUpdate",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],zJ.prototype,"hasSupplementalText",void 0);_.r([_.Y(),_.Q("design:type",Object)],zJ.prototype,"dismissButtonOverrides",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Q("design:type",Boolean)],zJ.prototype,"hasTitle",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.Q("design:type",Object)],zJ.prototype,"forceDarkTheme",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.Q("design:type",Object)],zJ.prototype,"forceLightTheme",void 0);_.r([_.Y(),_.Q("design:type",Object)],zJ.prototype,"dynamicTextHeight",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Q("design:type",Object)],zJ.prototype,"hasOverflowButton",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.Q("design:type",Object)],zJ.prototype,"isInfeedModernization",void 0);_.r([_.iA("data.colorData.basicColorPaletteData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zJ.prototype,"observeBasicPalette",null);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zJ.prototype,"observeDataChanged",null);_.r([_.iA("data.isVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zJ.prototype,"observeDataForCounterfactual",null);_.r([_.P({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],zJ);
_.m(zJ,"ytd-banner-promo-renderer",function(){if(evG!==void 0)return evG;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return evG=L},{mode:1});var IPV;var dcG;var aPf;var hvw=function(){return _.e.apply(this,arguments)||this};
_.f(hvw,_.e);_.r([_.Y(),_.Q("design:type",Object)],hvw.prototype,"data",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],hvw.prototype,"ytRendererBehavior",void 0);_.r([_.P({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],hvw);
_.m(hvw,"ytd-hashtag-grid-tile-renderer",function(){if(aPf!==void 0)return aPf;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return aPf=L},{mode:1});var mv=function(){return _.e.apply(this,arguments)||this};
_.f(mv,_.e);mv.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
mv.prototype.updateRichGridTrendingHashtagsVisibility=function(){var L,Z;if(((L=this.data)==null||!L.isExpanded)&&(Z=this.data)!=null&&Z.tiles){L=this.data.tiles.length;Z=L>this.richGridItemsPerRow?this.richGridItemsPerRow+1:L;var N=Math.ceil(L/Z);this.fullyVisibleRows=L%Z===1&&N===2?1:Math.min(N,2);this.isShowMoreVisible=this.fullyVisibleRows<N}};
mv.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
mv.prototype.updateRichGridTrendingHashtagsVisibility=mv.prototype.updateRichGridTrendingHashtagsVisibility;_.r([_.Y(),_.Q("design:type",Object)],mv.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Number)],mv.prototype,"fullyVisibleRows",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],mv.prototype,"isShowMoreVisible",void 0);_.r([_.Y({selector:_.oi,value:0}),_.Q("design:type",Number)],mv.prototype,"richGridItemsPerRow",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],mv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],mv.prototype,"ytdReduxBehavior",void 0);_.r([_.iA("data","richGridItemsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mv.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.r([_.P({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],mv);
_.m(mv,"ytd-hashtag-grid-shelf-renderer",function(){if(dcG!==void 0)return dcG;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return dcG=L},{mode:1});var sQM;var jQi;var JB=function(){var L=_.e.apply(this,arguments)||this;L.visibleVideos=[];L.hiddenVideos=[];L.modern=_.c("web_modern_buttons");L.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return L};
_.f(JB,_.e);_.t=JB.prototype;_.t.attached=function(){var L=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",L);this.onDarkModeToggledAction(L)};
_.t.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"}}}};
_.t.dataChanged=function(){var L=this;this.requestElementsPerRow();var Z,N;this.currentColorPalette=this.isDarkTheme?(Z=this.data)==null?void 0:Z.darkColorData:(N=this.data)==null?void 0:N.lightColorData;var S;if((S=this.currentColorPalette)==null?0:S.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.bN(this,function(){L.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.t.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.t.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.t.computeIsFirstFeedItem=function(L){return L};
_.t.onDarkModeToggledAction=function(L){L!==this.isDarkTheme&&this.set("isDarkTheme",L);this.data&&(this.currentColorPalette=L?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.t.getCurrentLogo=function(L,Z){if(L)return Z?L.darkLogoImage:L.lightLogoImage};
_.t.computeTitleStyle=function(L){var Z;if((Z=this.data)!=null&&Z.title&&L&&L.textPrimary!==void 0)return"color:"+_.vq(L.textPrimary)+";"};
_.t.computeSubtitleStyle=function(L){var Z;if((Z=this.data)!=null&&Z.subtitle&&L&&L.textSecondary!==void 0)return"color:"+_.vq(L.textSecondary)+";"};
_.t.computeDismissIconStyle=function(L){if(this.data&&this.data.dismissButton&&L&&L.textPrimary!==void 0)return"--yt-button-color:"+_.vq(L.textPrimary)+";"};
_.t.computeOverflowButtonStyle=function(L){if(this.data&&this.data.overflowButton&&L&&L.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.vq(L.textPrimary)+";--yt-spec-icon-active-other:"+_.vq(L.textPrimary)+";"};
_.t.computeBackgroundStyle=function(L){if(L&&this.data){var Z="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var N=_.QV((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);N&&(Z+='background-image:url("'+N+'");')}L.backgroundColor!==void 0&&(Z+="background-color:"+_.Rs(L.backgroundColor)+";");return Z}};
_.t.computeButton=function(){var L,Z=Object.assign({},_.n((L=this.data)==null?void 0:L.showMoreButton,_.xZ));if(this.modern&&Z){Z.style="STYLE_MONO_OUTLINE";var N;if(L=(N=this.currentColorPalette)==null?void 0:N.textPrimary)Z.colorData={basicColorPaletteData:{foregroundTitleColor:L,borderColor:L}}}return Z};
_.t.shouldShowBottomButton=function(L,Z){return!(L==null?0:L.header)&&!(L==null||!L.primaryButton)&&Z<3};
_.t.checkExpanded=function(L){this.isExpanded=L&&L.content?this.hiddenVideos.length===0:!0};
_.t.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.t.getLogoHeight=function(L){return this.logoWithPadding(L)?"26":"20"};
_.t.getLogoImageId=function(L){return this.logoWithPadding(L)?"logo-image-with-padding":"logo-image"};
_.t.computeHasSectionHeader=function(L){return!!L.header};
_.t.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var L;if((L=this.data.primaryButton)==null?0:L.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 Z;((Z=this.data.dismissButton)==null?0:Z.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var N,S;((N=this.data)==null?0:(S=N.primaryButton)==null?0:S.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.t.setVisibleVideos=function(L){if(this.data&&this.data.content)if(this.data.content.length){var Z=this.data.content.length;this.data.header?L?(this.visibleVideos=this.data.content.slice(0,Math.min(Z,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(Z,this.slimItemsPerRow),Z)):(this.visibleVideos=this.data.content.slice(0,Math.min(Z,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(Z,this.elementsPerRow),Z)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(Z,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(Z,this.elementsPerRow),Z)):(this.visibleVideos=this.data.content.slice(0,Math.min(Z,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(Z,this.elementsPerRow-1),Z))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.t.setHasMovieRenderer=function(){var L;if((L=this.data)!=null&&L.content){var Z;this.hasMovieRenderer=!!_.n((Z=this.data)==null?void 0:Z.content[0],_.nvL)}else this.hasMovieRenderer=!1};
_.t.requestElementsPerRow=function(){_.QT(this.hostElement,"yt-request-elements-per-row")};
_.t.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var L=_.O(this.hiddenMediaRenderers),Z=L.next();!Z.done;Z=L.next())Z.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(L=_.QJ(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&L.focus()}};
_.t.updateTitleSpec=function(){var L;(L=this.data)!=null&&L.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.t.logoWithPadding=function(L){var Z,N,S;return(L=(Z=this.getCurrentLogo(L,this.isDarkTheme))==null?void 0:(N=Z.thumbnails)==null?void 0:(S=N[0])==null?void 0:S.height)&&L%31===0?!0:!1};
_.t.onUpdateElementsPerRowAction=function(L,Z,N){L&&this.elementsPerRow!==L&&(this.elementsPerRow=L);N&&this.slimItemsPerRow!==N&&(this.slimItemsPerRow=N)};
JB.prototype.slimItemsPerRowChanged=JB.prototype.slimItemsPerRowChanged;JB.prototype.elementsPerRowChanged=JB.prototype.elementsPerRowChanged;JB.prototype.dataChanged=JB.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],JB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],JB.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],JB.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],JB.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],JB.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],JB.prototype,"currentColorPalette",void 0);_.r([_.Y(),_.Q("design:type",Array)],JB.prototype,"visibleVideos",void 0);_.r([_.Y(),_.Q("design:type",Array)],JB.prototype,"hiddenVideos",void 0);
_.r([_.Y(),_.Q("design:type",Object)],JB.prototype,"primaryButton",void 0);_.r([_.Y({reflectToAttribute:!0,value:3}),_.Q("design:type",Number)],JB.prototype,"elementsPerRow",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],JB.prototype,"isDarkTheme",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],JB.prototype,"isExpanded",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],JB.prototype,"largeTitle",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],JB.prototype,"hasMovieRenderer",void 0);_.r([_.Y(),_.Q("design:type",Number)],JB.prototype,"slimItemsPerRow",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],JB.prototype,"showLightVideoMetadata",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],JB.prototype,"showDarkVideoMetadata",void 0);_.r([_.Y(),_.Q("design:type",Number)],JB.prototype,"videoMetadataColor",void 0);
_.r([_.Y({reflectToAttribute:!0,selector:_.vv}),_.Q("design:type",Boolean)],JB.prototype,"miniMode",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Q("design:type",Boolean)],JB.prototype,"isFirstFeedItem",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.Q("design:type",Boolean)],JB.prototype,"hasSectionHeader",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],JB.prototype,"roundedContainer",void 0);_.r([_.tJ("#visible-video-container ytd-rich-grid-media"),_.Q("design:type",Array)],JB.prototype,"visibleMediaRenderers",void 0);_.r([_.tJ("#hidden-video-container ytd-rich-grid-media"),_.Q("design:type",Array)],JB.prototype,"hiddenMediaRenderers",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],JB.prototype,"modern",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JB.prototype,"dataChanged",null);_.r([_.iA("elementsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JB.prototype,"elementsPerRowChanged",null);_.r([_.iA("slimItemsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JB.prototype,"slimItemsPerRowChanged",null);
_.r([_.P({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],JB);
_.m(JB,"ytd-brand-video-shelf-renderer",function(){if(jQi!==void 0)return jQi;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return jQi=L},{mode:1});var E5n;var C9=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return L};
_.f(C9,_.e);_.t=C9.prototype;_.t.attached=function(){var L=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",L);this.onDarkModeToggledAction(L)};
_.t.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"}}}};
_.t.dataChanged=function(){this.requestElementsPerRow();var L,Z;this.currentColorPalette=this.isDarkTheme?(L=this.data)==null?void 0:L.darkColorData:(Z=this.data)==null?void 0:Z.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.t.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.t.computeIsFirstFeedItem=function(L){return L};
_.t.onDarkModeToggledAction=function(L){L!==this.isDarkTheme&&this.set("isDarkTheme",L);this.data&&(this.currentColorPalette=L?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(L),this.updateButtonPalette())};
_.t.shouldShowThumbnailInMetadata=function(L){return L<=1};
_.t.computeVideoMetadataColor=function(){if(this.data){var L;if((L=this.currentColorPalette)==null?0:L.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.t.computeTitleStyle=function(L){var Z;if((Z=this.data)!=null&&Z.title&&L&&L.textPrimary!==void 0)return"color:"+_.vq(L.textPrimary)+";"};
_.t.computeSubtitleStyle=function(L){var Z;if((Z=this.data)!=null&&Z.subtitle&&L&&L.textSecondary!==void 0)return"color:"+_.vq(L.textSecondary)+";"};
_.t.computeOverflowButtonStyle=function(L){if(this.data&&this.data.overflowButton&&L.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.vq(L.textPrimary)+";--yt-spec-icon-active-other:"+_.vq(L.textPrimary)+";"};
_.t.computeBackgroundStyle=function(L){if(L&&this.data){var Z="";L.backgroundColor!==void 0&&(Z+="background-color:"+_.Rs(L.backgroundColor)+";");return Z}};
_.t.computeHasOverflowButton=function(L){return!!L.overflowButton};
_.t.updateButtonPalette=function(){if(this.data){var L;if((L=this.data.primaryButton)==null?0:L.buttonRenderer){var Z;if((Z=this.currentColorPalette)==null?0:Z.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var N;((N=this.currentColorPalette)==null?0:N.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)})}}};
_.t.requestElementsPerRow=function(){_.QT(this.hostElement,"yt-request-elements-per-row")};
_.t.updateTitleSpec=function(){var L;(L=this.data)!=null&&L.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")};
_.t.onUpdateElementsPerRowAction=function(L){L&&this.elementsPerRow!==L&&(this.elementsPerRow=L)};
C9.prototype.elementsPerRowChanged=C9.prototype.elementsPerRowChanged;C9.prototype.dataChanged=C9.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],C9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],C9.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],C9.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],C9.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],C9.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],C9.prototype,"currentColorPalette",void 0);_.r([_.Y(),_.Q("design:type",Object)],C9.prototype,"primaryButton",void 0);
_.r([_.Y({reflectToAttribute:!0,value:3}),_.Q("design:type",Number)],C9.prototype,"elementsPerRow",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],C9.prototype,"isDarkTheme",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],C9.prototype,"titleSize",void 0);_.r([_.Y(),_.Q("design:type",Number)],C9.prototype,"videoMetadataColor",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.vv}),_.Q("design:type",Boolean)],C9.prototype,"miniMode",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Q("design:type",Boolean)],C9.prototype,"isFirstFeedItem",void 0);_.r([_.Y({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],C9.prototype,"roundedContainer",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Q("design:type",Boolean)],C9.prototype,"hasOverflowButton",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],C9.prototype,"dataChanged",null);_.r([_.iA("elementsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],C9.prototype,"elementsPerRowChanged",null);_.r([_.P({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],C9);
_.m(C9,"ytd-brand-video-singleton-renderer",function(){if(E5n!==void 0)return E5n;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return E5n=L},{mode:_.Qr("kevlar_poly_si_batch_j070")?1:2});var Pqt;var pw7=_.p(function(L){var Z=L.data;return _.g(_.ji,{data:function(){return Z().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(Z().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var N=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":N=88;break a;default:N=88}return N},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return Z().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"wm"),mcw=_.p(function(L){var Z=L.metadataRow;
var N=L.delimiter;return _.g(_.ju,{each:function(){return Z().textParts||[]},
keyBy:"INDEX"},function(S,u){return _.g(_.F7,null,_.g(_.qv,{text:S,noWrap:!0,userInput:!0}),_.g(zvV,{delimiter:N,max:function(){return Z().textParts.length},
index:u}))})},"xm"),zvV=_.p(function(L){var Z=L.delimiter;
var N=L.max;var S=L.index;return _.g(_.F,{cond:function(){return(Z==null?void 0:Z())&&N()-1>S()},
then:function(){return _.g("span",null,Z)}})},"ym"),J07=_.p(function(L){var Z=L.data;
L={};return _.g("yt-profile-page-header-information-view-model",{class:_.qg("profilePageHeaderInformationViewModelHost",(L.profilePageHeaderInformationViewModelMobile=!1,L))},_.g(_.F,{cond:function(){return Z().onTap},
then:function(){return _.g(_.bM,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.KY(Z().onTap)}},_.g(_.bj,{data:function(){return Z().thumbnail}},{profilePageHeaderThumbnailViewModel:pw7}))},
else:function(){return _.g("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.g(_.bj,{data:function(){return Z().thumbnail}},{profilePageHeaderThumbnailViewModel:pw7}))}}),_.g("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.g(_.F,{cond:function(){return Z().onTap},
then:function(){return _.g(_.bj,{data:function(){return Z().title}},{profilePageHeaderTitleViewModel:function(N){var S=N.data;
return _.g(_.bM,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.KY(S().onTap)}},_.g(_.qv,{text:function(){return S().title}}))}})},
else:function(){return _.g(_.bj,{data:function(){return Z().title}},{profilePageHeaderTitleViewModel:function(N){var S=N.data;
return _.g(_.qv,{text:function(){return S().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.g(_.bj,{data:function(){return Z().metadata}},{profilePageHeaderMetadataViewModel:function(N){var S=N.data;
return _.g(_.F,{cond:function(){return S().metadataRows},
then:function(u){return _.g("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.g(_.ju,{each:u,keyBy:"INDEX"},function(T,W){return _.g(_.F7,null,_.g(mcw,{metadataRow:T,delimiter:" \u2022 "}),_.g(zvV,{delimiter:" \u2022 ",max:function(){return u().length},
index:W}))}))}})}})))},"zm");
J07.idomCompat=!0;_.CY(J07,"yt-profile-page-header-information-view-model",{props:{data:_.LK}});var r8=function(){return _.e.apply(this,arguments)||this};
_.f(r8,_.e);r8.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],r8.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],r8.prototype,"data",void 0);_.r([_.P({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],r8);
_.m(r8,"ytd-effect-pivot-header-view-model",function(){if(Pqt!==void 0)return Pqt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Pqt=
L},{mode:1});var Cqt;var Qj=function(){return _.e.apply(this,arguments)||this};
_.f(Qj,_.e);Qj.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Qj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Qj.prototype,"data",void 0);_.r([_.P({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Qj);
_.m(Qj,"ytd-source-pivot-header-renderer",function(){if(Cqt!==void 0)return Cqt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Cqt=L},{mode:1});_.CY(_.VMq,"yt-card-view-model",{props:{data:_.LK,className:_.LK,isSelected:_.LK}});var b8i=_.yNY.talkToRecsStateSelector;_.CY(_.p(function(L){var Z=function(){return _.n(L.data().flowRoot,o5n)};
_.m0(function(){var N=Z(),S=function(){},u=function(){};
if(N){var T,W,V,M=((V=_.n((T=Z())==null?void 0:(W=T.steps)==null?void 0:W[0],_.jc))==null?void 0:V.stepId)||"";O8M(N,M);S=VY9(N);u=MYM(N)}_.zs(function(){var G=Z();G&&_.Pv().dispatch(_.Mr("flowStateEntity",G.flowStateEntityKey));S();S=function(){};
u();u=function(){};
_.sk(_.t9m())})});
return _.g("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.g(_.vA,{contentId:function(){return L.data().contentId}},function(){return _.g("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.g(_.F,{cond:Z,
then:function(N){return _.g(_.deq,{data:N})}}))}))},"Am"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.LK}});_.CY(_.p(function(){return _.g("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.g("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.g("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.g(_.$d5,null)),_.g(_.azO,{data:{rows:1},isExploreHub:!0}))},"Bm"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.CY(_.p(function(L){var Z=L.data;var N=L.standardUnitMinWidth;L=_.O((0,_.EnL)(Z));var S=L.next().value,u=L.next().value,T=function(){var V,M=(V=S())==null?void 0:V.contents;return M==null||M.length===0},W=function(){u(Object.assign({},S(),{contents:[]}))};
return _.g("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.P9(_.$b({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var V=_.n(Z().chipsShelf,Rv6);if(V!=null&&V!=null&&V.autoselectChipOnVisible){var M,G,D=_.n(V==null?void 0:(M=V.contents)==null?void 0:M[(G=V.autoselectedChipIndex)!=null?G:0],_.Sh);D&&D.tapCommand&&_.w$(D.tapCommand)}}}))},_.g(_.vA,{contentId:function(){return Z().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.g("div",null,_.g("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.g(_.bj,{data:function(){return Z().header}},{sectionHeaderViewModel:function(V){return _.g(_.f$,{data:V.data,
disableHorizontalPadding:!0})}})),_.g("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.g(_.bj,{data:function(){return Z().chipsShelf}},{chipsShelfViewModel:function(V){return _.g(_.He,{data:V.data,
callback:W,selectionBehavior:1})}})),_.g("div",null,_.g(_.F,{cond:T,
then:function(){return _.g("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.g(_.azO,{data:{rows:1},isExploreHub:!0}))}}),_.g(_.bj,{data:function(){var V;
return(V=S())==null?void 0:V.contents}},{richShelfRenderer:function(V){return _.g(_.Cwt,{data:V.data,
isInnerShelf:!0,standardUnitMinWidth:N})}})))}))},"Cm"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.LK,
standardUnitMinWidth:_.LK}});var XH=function(){return _.e.apply(this,arguments)||this};
_.f(XH,_.e);
XH.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}}};
XH.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.r([_.y(_.CD),_.Q("design:type",Object)],XH.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],XH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Sq),_.Q("design:type",Object)],XH.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],XH.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Number)],XH.prototype,"standardUnitMinWidth",void 0);_.r([_.P({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],XH);
_.m(XH,"ytd-rich-section-renderer",function(){if(sQM!==void 0)return sQM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return sQM=L},{mode:_.Qr("kevlar_poly_si_batch_j029")?
1:2});_.CY(_.Jdg,"yt-profile-identity-info-view-model",{props:{data:_.LK,hideDivider:_.LK,isChannelInfoCard:_.LK}});_.CY(_.CJs,"yt-page-header-view-model",{props:{data:_.LK,noPadding:_.LK,enableBanner:_.LK,cinematicContainerTopbarOffset:_.LK,allowCinematicContainerOverflow:_.LK,displayAsSidebar:_.LK,displayAsPanel:_.LK,alwaysUseMediumTextDescription:_.LK}});_.CY(_.p(function(L){var Z=L.data;var N=function(){var u;return(u=Z().numColumns)!=null?u:2},S=function(){return N()>1?3:2};
L={};return _.g("ytd-rich-grid-group",{class:_.qg("ytdRichGridGroupHost",(L.ytdRichGridGroupHostFirstColumn=function(){return Z().colIndex===0},L)),
style:_.u4({"--ytd-rich-grid-group-num-columns":N,"--ytd-rich-grid-items-per-group":S})},_.g("div",{class:"ytdRichGridGroupContents"},_.g(_.bj,{data:function(){var u;return(u=Z().contents)==null?void 0:u.slice(0,S())}},{richItemRenderer:function(u){return _.g(_.mEY,{data:u.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Dm"),"ytd-rich-grid-group",{props:{data:_.LK}});var AB=function(){var L=_.e.apply(this,arguments)||this;L.resizeOnObserverInit=!1;L.isInlinePreviewDisabled=_.c("web_disable_inline_preview");L.disableStickyFilterBar=!1;L.transparentBackgroundChipsBar=!1;L.hideChipsBar=!1;L.isWatchDefaultLayout=!0;L.continuationShowButton=!1;L.rowReducedHorizontalMargin=!1;L.useCompactList=!1;L.manualDownloadsPresent=!1;L.smartDownloadsPresent=!1;L.isOnline=!1;L.shouldRenderDownloadsBanner=!1;L.shouldRenderDownloadsBannerUpsell=!1;L.hasOptedIntoSmartDownloads=!1;
L.elementsPerRow=4;L.typographyBump=!1;L.slimItemsPerRow=1;L.pageLoadingFromNavigation=!1;L.resizeObserver=null;L.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"};L.rendererToTagNameMap=new Map(Object.entries(L.contentMapping()).map(function(Z){var N=
_.O(Z);Z=N.next().value;N=N.next().value;return[Z,N.component]}));
L.insertedContent=new Map;return L};
_.f(AB,_.e);_.t=AB.prototype;_.t.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var L=_.O(_.QJ(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),Z=L.next();!Z.done;Z=L.next())Z.value.useCompactList=this.useCompactList};
_.t.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var L=_.O(_.QJ(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.sizing=this.sizing,Z.typographyBump=this.typographyBump};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.t.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]]"}}}};
_.t.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}}};
_.t.attached=function(){document.addEventListener("yt-page-type-changed",_.Nd(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$22166_throttledOnResize=new _.Sw(this.resizeObserved,_.lQ("rich_grid_resize_delay_ms",50),this)};
_.t.detached=function(){var L;(L=this.resizeObserver)==null||L.disconnect();document.removeEventListener("yt-page-type-changed",_.Nd(this,this.onPageChange))};
_.t.insertRichSection=function(L){var Z=L.richItemTargetId;L=L.richSectionRendererToInsert;Z&&L&&(this.insertedContent.set(Z,{content:L,timestamp:Date.now()}),this.reflowContent())};
_.t.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.t.computeIsInlinePreviewEnabled=function(L,Z,N){return _.c("web_disable_inline_preview")?!1:!N&&_.XXm({miniplayerIsActive:L,miniplayerPlaybackState:Z})};
_.t.computeSizing=function(){var L=_.hfF(this.data);if(L||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return L?this.useCompactList?"COMPACT":L:this.miniMode?"COMPACT":"STANDARD"};
_.t.updateItemMinAndMaxWidth=function(){var L=_.lQ("rich_grid_max_item_width",500);L>0&&_.Ld(this.hostElement,{"--ytd-rich-grid-item-max-width":L+"px"});var Z;L=this.getRichItemMinWidth((Z=this.hostElement)==null?void 0:Z.clientWidth);L>0&&_.Ld(this.hostElement,{"--ytd-rich-grid-item-min-width":L+"px"})};
_.t.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.t.resizeObserved=function(){_.Ad(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.t.onPageChange=function(){var L=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.Ad(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.ro.addJob(function(){L.pageLoadingFromNavigation=!1;L.setMasthead();L.maybeSetBigYoodle();L.forceRefreshAndLog();L.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.t.dataChanged=function(){var L=this;_.Ad(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.bN(this,function(){L.updateRichItemGridPositions();L.contentsElement&&_.Ld(L.hostElement,{"--ytd-rich-grid-content-offset-top":L.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.t.initResizeObserver=function(){var L=this;if(window.ResizeObserver){var Z;(Z=this.resizeObserver)==null||Z.disconnect();var N=!1;this.resizeObserver=new ResizeObserver(function(){if(N){var S;(S=L.resizeObserver)==null||S.disconnect();var u;(u=L.JSC$22166_throttledOnResize)==null||u.fire();requestAnimationFrame(function(){var W;(W=L.JSC$22166_throttledOnResize)==null||W.fire();L.initResizeObserver()})}else if(N=!0,L.resizeOnObserverInit){var T;
(T=L.JSC$22166_throttledOnResize)==null||T.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.t.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Ad(this.hostElement,"ytd-rich-item-index-update-action")};
_.t.updateElementsPerRow=function(){_.Ad(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.XK({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.XK({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.t.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.t.onRichShelfRendererCollapse=function(L){if(this.shownItems){var Z=L.detail;L=this.shownItems.findIndex(function(S){var u,T;return((T=_.n(S==null?void 0:(u=S.richSectionRenderer)==null?void 0:u.content,_.$Rs))==null?void 0:T.trackingParams)===Z});
var N=L+1;L<0||N>=this.contentsElement.children.length||!this.shownItems[N].richItemRenderer||this.contentsElement.children[N].scrollIntoView({behavior:"smooth",block:"start"})}};
_.t.onSoftReloadPage=function(){this.scrollUpToTop()};
_.t.handleRerenderDownloadsData=function(){_.c("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.t.handlePlaylistRemoveVideosAction=function(L){var Z;if(((Z=_.n(L,_.d90))==null?0:Z.setVideoIds)&&this.data&&this.data.contents){L=_.n(L,_.d90).setVideoIds;for(Z=this.data.contents.length-1;Z>=0;){var N=_.n(this.data.contents[Z],_.sF);(N=N&&_.n(N.content,_.Bb))&&N.setVideoId&&L.includes(N.setVideoId)&&this.splice("data.contents",Z,1);Z--}this.updateIndices()}};
_.t.updateIndices=function(){if(this.data&&this.data.contents)for(var L=0;L<this.data.contents.length;L++)this.set("data.contents."+L+".richItemRenderer.index",_.s9(String(L+1)))};
_.t.hasTopRowInlinePlayableVideoWithEndorsement=function(L){var Z;return!((Z=L.slice(0,this.getItemsPerRow()))==null||!Z.some(function(N){var S;N=_.n(N==null?void 0:(S=N.richItemRenderer)==null?void 0:S.content,_.LF);var u;return(N==null?void 0:N.inlinePlaybackEndpoint)&&(N==null?void 0:(u=N.thumbnailOverlays)==null?void 0:u.some(function(T){return T.thumbnailOverlayEndorsementRenderer}))}))};
_.t.refreshGridLayoutNew=function(L,Z,N,S){var u=S.postsPerRow;var T=S.slimItemsPerRow;var W=S.gameCardsPerRow;S=S.miniGameCardsPerRow;var V;if((V=this.data)==null||!V.contents||!this.containerWidth)return!1;var M;if((M=this.data.responsiveContainerConfiguration)==null?0:M.responsiveSize){var G=_.gns(this.data.responsiveContainerConfiguration,this.containerWidth),D;V=_.ym(Object.assign({},G,{standardUnitMinWidth:(D=this.data)==null?void 0:D.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&G.isCompactList)}else V=_.ym({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(G=this.data)==null?void 0:G.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=V.typographyBump;D=!1;if(L||this.elementsPerRow!==V.numItems||this.postsPerRow!==u||this.slimItemsPerRow!==T||this.gameCardsPerRow!==
W||this.miniGameCardsPerRow!==S||this.gutter!==V.gutter)D=this.elementsPerRow!==V.numItems,this.elementsPerRow=V.numItems,this.postsPerRow=u,this.slimItemsPerRow=T,this.gameCardsPerRow=W,this.miniGameCardsPerRow=S,this.gutter=V.gutter,this.itemWidth=V.itemWidth,this.reflowContent(Z),_.Ld(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(N);this.ytdReduxBehavior.dispatch(_.XK({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:V.maxContainerWidth}));return D};
_.t.refreshGridLayout=function(L,Z){var N,S=(N=this.hostElement)==null?void 0:N.clientWidth;this.containerWidth=this.adjustRichGridWidth(S,!0);var u;if((u=this.data)==null||!u.contents||!this.containerWidth)return L&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(L=!0,this.pendingForceReflow=!1);N=this.getRichItemMinWidth(S);var T=this.isShortsPanel?146:194,W=this.getMiniGameCardMinWidth(),V=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;S=N=this.calcElementsPerRow(N,
V);(u=N<=3&&this.miniModeAllowed())&&(N=this.calcElementsPerRow(240,4));var M=this.calcMaxSlimElementsPerRow(N,V,this.isDefaultGrid);V=this.calcElementsPerRow(T,M);var G=this.calcElementsPerRow(this.isCompactGrid?T:154,M);T=this.calcElementsPerRow(this.isCompactGrid?T:W,M);W=!1;if(this.sizing)return this.refreshGridLayoutNew(L,Z,u,{postsPerRow:S,slimItemsPerRow:V,gameCardsPerRow:G,miniGameCardsPerRow:T});if(L||this.elementsPerRow!==N||this.postsPerRow!==S||this.slimItemsPerRow!==V||this.gameCardsPerRow!==
G||this.miniGameCardsPerRow!==T)W=this.elementsPerRow!==N,this.elementsPerRow=N,this.postsPerRow=S,this.slimItemsPerRow=V,this.gameCardsPerRow=G,this.miniGameCardsPerRow=T,this.reflowContent(Z),this.updateElementsPerRow(),_.Ld(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)&&_.Ld(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(u);_.Ad(this.hostElement,"yt-rich-grid-layout-refreshed");return W};
_.t.getRichItemMinWidth=function(L){var Z=_.lQ("rich_grid_min_item_width",310);if(!_.c("kevlar_disable_min_width_override")){var N,S;Z=(S=(N=this.data)==null?void 0:N.minItemWidth)!=null?S:Z}return Z+_.UDt(L)};
_.t.calcMaxSlimElementsPerRow=function(L,Z,N){return(N===void 0?0:N)?L===1?2:L%2===0?L/2*3:L+2:Z*2};
_.t.adjustRichGridWidth=function(L,Z){var N=_.c("disable_rich_grid_guide_compensation");if(!this.isWatch&&!N){N=_.GR().resolve(_.gv(_.H0));var S=N==null?void 0:N.guideElement;if(!(!N||N.getData()||S!=null&&S.opened||N.getMiniGuideVisible()))if(N.canFitPersistentGuide(L)&&N.getGuideExpandsAutomatically()){var u,T,W=Number((u=window.getComputedStyle(this.hostElement))==null?void 0:(T=u.getPropertyValue("--app-drawer-width"))==null?void 0:T.replace("px",""));L-=W||0}else if(N.canFitMiniGuide(L)){var V;
u=Number((W=window.getComputedStyle(this.hostElement))==null?void 0:(V=W.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:V.replace("px",""));L-=u||0}}L>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(L-=Z?32:48));return L};
_.t.calcElementsPerRow=function(L,Z){var N=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),S=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((N+S)/(L+S))||1,Z)};
_.t.reflowContent=function(L){var Z=this;if(!this.isReflowing){this.isReflowing=!0;var N,S,u=!!((N=this.data)==null?0:(S=N.contents)==null?0:S.some(function(V){return _.n(V,_.Ei)}));
N=this.getItemsPerRow();var T;S=(T=this.data)==null?void 0:T.reflowOptions;L&&(_.Rq("rgr_s"),_.bN(this,function(){_.Rq("rgr_nrf")}));
L={};(T=_.QJ(this.hostElement).querySelector("#contents"))&&(L={contentElement:T,rendererToTagNameMap:this.rendererToTagNameMap});T=(T=this.data.contents)?T.slice():[];u=NyM(T,N,u,S,this.getRichGridStyle(),L,this.insertedContent);var W=u.orderedContent;if(u=u.pinnedContentNotShownTargetIds)for(u=_.O(u),N=u.next();!N.done;N=u.next())this.insertedContent.delete(N.value);u=function(){Z.shownItems=W;Z.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(W),_.bN(this,u)):u()}};
_.t.getFirstRowItems=function(L){for(var Z=[],N=0;N<L.length;N++){var S=void 0,u=void 0,T=void 0,W=void 0,V=void 0,M=void 0;if(((S=L[N])==null?void 0:(u=S.richItemRenderer)==null?void 0:u.rowIndex)===0||((T=L[N])==null?void 0:(W=T.richGroupRenderer)==null?void 0:W.rowIndex)===0||((V=L[N])==null?void 0:(M=V.richSectionRenderer)==null?void 0:M.rowIndex)===0)Z.push(L[N]);else break}return Z};
_.t.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.t.resetInsertedContentIfNeeded=function(){(_.c("web_explore_hub_on_hover")||_.c("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.t.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.t.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()};
_.t.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.t.terminateVideoPreview=function(){_.Ad(this.hostElement,"yt-terminate-video-preview-action")};
_.t.updateRichItemGridPositions=function(){var L={gridData:{gridColumnCount:this.elementsPerRow}},Z;((Z=this.data)==null?0:Z.trackingParams)&&(Z=_.RH())&&_.ET(Z,_.Mg(this.data.trackingParams),L);_.Ad(this.hostElement,"ytd-rich-item-index-update-action")};
_.t.miniModeAllowed=function(){return this.isChannelPage};
_.t.getMiniGameCardMinWidth=function(){return 154};
_.t.updateMiniMode=function(L){this.miniMode=this.miniModeAllowed()&&L;this.ytdReduxBehavior.dispatch(_.XK({type:"SET_RICH_GRID_MINI_MODE",payload:L}))};
_.t.isCurrentPage=function(){return location.pathname===this.pagePath};
_.t.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var L=_.GR().resolve(_.mR).getCurrentPage();L&&L.setScrollTop(0)}};
_.t.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.t.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.t.maybeSetBigYoodle=function(){var L,Z=(L=this.data)==null?void 0:L.bigYoodle;this.bigYoodleData!==Z&&(this.bigYoodleData=Z)};
_.t.setMasthead=function(){var L;((L=this.data)==null?0:L.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.t.getRichGridStyle=function(){var L,Z;return(Z=(L=this.data)==null?void 0:L.style)!=null?Z:"RICH_GRID_STYLE_UNKNOWN"};
_.t.onIsShortsGridChange=function(){var L=this.ytdReduxBehavior,Z=L.dispatch,N=this.getRichGridStyle();Z.call(L,_.XK({type:"SET_RICH_GRID_STYLE",payload:N}))};
_.gd.Object.defineProperties(AB.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var L;return(((L=this.data)==null?void 0:L.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var L;return(((L=this.data)==null?void 0:L.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var L=_.GR().resolve(_.mR).getCurrentPage(),Z,N,S;return(((Z=this.data)==null?void 0:Z.targetId)==="browse-feedFEsfv_audio_pivot"||_.c("web_enable_channel_pivot_panel")&&((N=this.data)==null?void 0:N.targetId)==="browse-feedFEsfv_channel_pivot"||_.c("web_enable_effect_pivot_panel")&&((S=this.data)==null?void 0:S.targetId)==="browse-feedFEsfv_effect_pivot")&&(L==null?void 0:L.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.c("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 L;return!((L=this.data)==null?0:L.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var L;return((L=_.GR().resolve(_.mR).getCurrentPage())==null?void 0:L.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var L;return((L=_.GR().resolve(_.mR).getCurrentPage())==null?void 0:L.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 L;return(((L=this.data)==null?void 0:L.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return((L=this.data)==null?0:L.enableContentSpecificAspectRatio)||((Z=this.data)==null?0:(N=Z.responsiveContainerConfiguration)==null?0:N.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.lQ("web_continuation_handler_margin",0):0}}});
AB.prototype.onIsShortsGridChange=AB.prototype.onIsShortsGridChange;AB.prototype.onReloadContinuationFinish=AB.prototype.onReloadContinuationFinish;AB.prototype.reflowContent=AB.prototype.reflowContent;AB.prototype.handleRerenderDownloadsData=AB.prototype.handleRerenderDownloadsData;AB.prototype.onRichShelfRendererCollapse=AB.prototype.onRichShelfRendererCollapse;AB.prototype.onRequestElementsPerRow=AB.prototype.onRequestElementsPerRow;AB.prototype.contentLengthChanged=AB.prototype.contentLengthChanged;
AB.prototype.dataChanged=AB.prototype.dataChanged;AB.prototype.onSizingChange=AB.prototype.onSizingChange;AB.prototype.onUseCompactListChange=AB.prototype.onUseCompactListChange;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],AB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Eb),_.Q("design:type",Object)],AB.prototype,"ironResizableBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],AB.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.Sq),_.Q("design:type",Object)],AB.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],AB.prototype,"componentBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],AB.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],AB.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0,selector:_.vv}),_.Q("design:type",Boolean)],AB.prototype,"miniMode",void 0);_.r([_.Y({value:[]}),_.Q("design:type",Array)],AB.prototype,"shownItems",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],AB.prototype,"isReflowing",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],AB.prototype,"isFilteredFeed",void 0);_.r([_.Y({selector:_.UNw}),_.Q("design:type",Boolean)],AB.prototype,"guideIsExpanded",void 0);
_.r([_.Y({selectorArgs:["entitySelectorType"],selector:function(L,Z){if(_.c("kevlar_modern_downloads_page")&&Z&&Z!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(Z){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":Z=L.entities;var N=_.$Q(Z),S=_.DT(Z),u=_.XSw(L),T=_.Q30(L),W=_.Ays(L),V=_.vX_(Z),M=_.VE(N),G=_.l2(Z);return _.TTP(N,S,V,_.nXF(Z),u,T,M,G,W,_.Beh(L),_.nk(L));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return L=_.$Q(L.entities),_.OiH(L);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return L=
_.$N_(L.entities),_.W7f(L);default:_.Q7(new _.sr("Error: entitySelectorType defined but not matched in selector.",L,Z))}}}),
_.Q("design:type",Object)],AB.prototype,"entityDrivenRichGridData",void 0);_.r([_.Y(),_.Q("design:type",Object)],AB.prototype,"resizeOnObserverInit",void 0);_.r([_.Y(),_.Q("design:type",Object)],AB.prototype,"bigYoodleData",void 0);_.r([_.Y(),_.Q("design:type",Object)],AB.prototype,"mastheadData",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],AB.prototype,"isInlinePreviewDisabled",void 0);_.r([_.Y(),_.Q("design:type",Object)],AB.prototype,"disableStickyFilterBar",void 0);
_.r([_.Y(),_.Q("design:type",Object)],AB.prototype,"transparentBackgroundChipsBar",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],AB.prototype,"hideChipsBar",void 0);_.r([_.Y(),_.Q("design:type",Object)],AB.prototype,"isWatchDefaultLayout",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],AB.prototype,"continuationShowButton",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],AB.prototype,"rowReducedHorizontalMargin",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],AB.prototype,"useCompactList",void 0);_.r([_.Y({selector:function(L){return _.DT(L.entities).length>0}}),
_.Q("design:type",Object)],AB.prototype,"manualDownloadsPresent",void 0);_.r([_.Y({selector:function(L){return _.$Q(L.entities).length>0}}),
_.Q("design:type",Object)],AB.prototype,"smartDownloadsPresent",void 0);_.r([_.Y({selector:_.nk}),_.Q("design:type",Object)],AB.prototype,"isOnline",void 0);_.r([_.Y({selector:_.Q30}),_.Q("design:type",Object)],AB.prototype,"shouldRenderDownloadsBanner",void 0);_.r([_.Y({selector:_.Beh}),_.Q("design:type",Object)],AB.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.r([_.Y({selector:_.XSw}),_.Q("design:type",Object)],AB.prototype,"hasOptedIntoSmartDownloads",void 0);
_.r([_.iA("useCompactList"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AB.prototype,"onUseCompactListChange",null);_.r([_.iA("sizing","typographyBump"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AB.prototype,"onSizingChange",null);_.r([_.Y({selector:_.huG}),_.Q("design:type",Number)],AB.prototype,"miniplayerPlaybackState",void 0);_.r([_.Y({selector:_.Ri}),_.Q("design:type",Boolean)],AB.prototype,"miniplayerIsActive",void 0);
_.r([_.Y({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Q("design:type",Boolean)],AB.prototype,"isInlinePreviewEnabled",void 0);_.r([_.Y({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.Q("design:type",String)],AB.prototype,"sizing",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],AB.prototype,"elementsPerRow",void 0);
_.r([_.Y(),_.Q("design:type",Object)],AB.prototype,"typographyBump",void 0);_.r([_.Y(),_.Q("design:type",Number)],AB.prototype,"itemWidth",void 0);_.r([_.TX("#header"),_.Q("design:type",HTMLElement)],AB.prototype,"headerElement",void 0);_.r([_.TX("#contents"),_.Q("design:type",HTMLElement)],AB.prototype,"contentsElement",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AB.prototype,"dataChanged",null);
_.r([_.Vr("data.contents.length"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AB.prototype,"contentLengthChanged",null);_.r([_.SA("yt-request-elements-per-row"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AB.prototype,"onRequestElementsPerRow",null);
_.r([_.SA("yt-rich-shelf-renderer-collapse"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],AB.prototype,"onRichShelfRendererCollapse",null);_.r([_.Vr("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AB.prototype,"handleRerenderDownloadsData",null);
_.r([_.w("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],AB.prototype,"entitySelectorType",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.targetId"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AB.prototype,"isSub",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.targetId"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AB.prototype,"isWatch",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data.targetId"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AB.prototype,"isShortsPanel",null);_.r([_.Y({reflectToAttribute:!0}),_.w("isWatch"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AB.prototype,"reducedTopMargin",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data","isWatch","isWatchDefaultLayout"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AB.prototype,"noTopMargin",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("isInlinePreviewEnabled","shownItems"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AB.prototype,"topRowEndorsement",null);_.r([_.w("data.header"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AB.prototype,"hideHeader",null);_.r([_.SA("yt-rich-grid-reflow"),_.Q("design:type",Function),_.Q("design:paramtypes",[Boolean]),_.Q("design:returntype")],AB.prototype,"reflowContent",null);
_.r([_.SA("yt-reload-continuation-finish"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AB.prototype,"onReloadContinuationFinish",null);_.r([_.w("data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AB.prototype,"isSlimGrid",null);_.r([_.w("data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AB.prototype,"isShortsGrid",null);
_.r([_.w("data","isSlimGrid","isShortsGrid"),_.Y(),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AB.prototype,"noRichItemGutterMargins",null);_.r([_.w("data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AB.prototype,"isShortsGridSlim",null);_.r([_.w("data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AB.prototype,"isCompactGrid",null);
_.r([_.w("data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AB.prototype,"isDefaultGrid",null);_.r([_.w("data.targetId"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AB.prototype,"hideChipsBarOnWatch",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AB.prototype,"onIsShortsGridChange",null);
_.r([_.w("data.enableContentSpecificAspectRatio"),_.Y(),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AB.prototype,"force16By9ThumbnailAspectRatio",null);_.r([_.w("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],AB.prototype,"continuationTriggerOffset",null);_.r([_.P({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],AB);
_.m(AB,"ytd-rich-grid-renderer",function(){if(IPV!==void 0)return IPV;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return IPV=L},{mode:2});var r0V=_.p(function(L){return _.g("yt-feedback-prompt-view-model",{class:_.qg("ytFeedbackPromptViewModelHost",L.className)},_.g(_.F,{cond:function(){return L.data().text},
then:function(Z){return _.g(_.qv,{text:Z})}}),_.g("div",{class:"ytFeedbackPromptViewModelButtons"},_.g(_.bj,{data:function(){return L.data().likeButton}},{likeButtonViewModel:_.XX}),_.g(_.bj,{data:function(){return L.data().dislikeButton}},{dislikeButtonViewModel:_.QK})))},"Em");var QQf=_.p(function(L){var Z=L.thumbsUp,N=L.thumbsDown,S=L.rightAlignThumbs;L=_.O(_.nh(!1,void 0,"OxPsH"));var u=L.next().value,T=L.next().value;L=_.O(_.nh(!1,void 0,"V5vWne"));var W=L.next().value,V=L.next().value;L={};return _.g("div",{class:_.qg("ytwThumbsUpDownThumbs",(L.ytwThumbsUpDownRightAlign=function(){return S==null?void 0:S()},L))},_.g(_.sj,{data:Z,
onToggle:function(M){T(M);W()&&V(!1)},
buttonShapeOverrides:function(){return{toggled:u()}}}),_.g(_.sj,{data:N,
onToggle:function(M){V(M);u()&&T(!1)},
buttonShapeOverrides:function(){return{toggled:W()}}}))},"Fm");
QQf.idomCompat=!0;var A08=_.p(function(L){var Z=function(){return L.data().pendingStateEntityKey||""},N=_.OS(_.g5t,Z),S=function(){var V;
if(!(V=L.disabled())){var M;V=!((M=N())==null||!M.isPendingResponse)}return V},u=_.O(_.nh(umG(""),void 0,"YGalFd")),T=u.next().value,W=u.next().value;
_.zp(function(){requestAnimationFrame(function(){var V=L.data().onShowAnimationMs||0;V=V>0?umG("--chip-animation-duration: "+V+"ms;"):umG("");W(V)})});
return _.g("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:T},_.g(_.ju,{each:function(){return L.data().chipData||[]},
keyBy:"REFERENCE"},function(V){return _.g(Xwn,{data:V,disabled:S,pendingStateKey:Z,onError:L.onError})}))},"Hm"),Xwn=_.p(function(L){var Z=_.OV("button"),N=_.O(_.nh(!0,void 0,"hspx2d")),S=N.next().value,u=N.next().value,T=function(){return L.data().text.content},W=function(){return L.data().transparentWhenLoading},V=_.VB(_.Y9.currentPageSubTypeSelector),M=function(){if(_.c("enable_ai_companion")){var D=_.GR().resolve(_.gv(_.TJg));
switch(V()){case "watch":var l,v;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(l=_.Nr())==null?void 0:(v=l.getVideoData())==null?void 0:v.video_id};case "search":var R,K;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(R=D==null?void 0:_.DcM(D))!=null?R:[],entityId:(K=(new URLSearchParams(window.location.search)).get("search_query"))!=null?K:void 0};case "companion-canvas":var U;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(U=D==null?void 0:_.DcM(D))!=null?U:[]}}}},G=_.Z9(function(D){var l,
v,R,K,U,d,h,E;
return _.b(function(A){switch(A.nextAddress){case 1:D.stopPropagation();if(L.disabled())return A.return();v=String(Math.floor(((l=_.Nr())==null?void 0:l.getCurrentTime())||0)*1E3);R="youchat-"+Date.now();K=function(){_.fY(L.data().onClick||{});var J={continuationCommand:{token:L.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},C={inputComposerFormData:{clientMessageId:R,playerOffsetMs:v,pageContext:M()}};return new Promise(function(X,L1){_.fY(J,{form:{formData:C},commandController:{onSuccess:function(Fw,
GB){X(GB)},
onServerError:function(Fw,GB){L1(GB.error)}}})})};
U=_.GgM(L.pendingStateKey());U(!0);_.Xln("#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");u(!1);_.RS(A,2);return A.yield(K(),4);case 4:_.SX(A,3);break;case 2:d=_.yd(A),(E=(h=L).onError)==null||E.call(h,d);case 3:U(!1),_.w7(A)}})});
return _.g(_.F,{cond:S,then:function(){return _.g("div",{class:"ytwYouChatChipsDataChipWrapper"},_.g("button",{el:Z,class:"ytwYouChatChipsDataChip","data-disabled":L.disabled,"data-transparent-loading":W,"on:click":G,tabindex:0},T))}})},"Im");var H8w=_.p(function(L){var Z=L.data;var N=L.initiallyExpanded;var S=function(){var G;return(G=Z().conversationResourceData)==null?void 0:G.learningGuideData};
L=_.O(_.i4(function(){var G;return(G=N==null?void 0:N())!=null?G:!1}));
var u=L.next().value,T=L.next().value,W=function(){T(!0)},V=_.wJ(function(){var G,D;
return(D=(G=S())==null?void 0:G.sections)!=null?D:[]},void 0,"aPRmH"),M=_.wJ(function(){return V().length>4},void 0,"PUPDyc");
L=_.wJ(function(){var G;return!u()&&M()&&(G=S())!=null&&G.expandButton?V().slice(0,4):V()},void 0,"wUz4Ud");
return _.g("yt-conversation-resource-view-model",{class:_.qg("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.g(_.bj,{data:L},{expandableMetadataViewModel:_.a4s}),_.g(_.F,{cond:function(){return M()&&!u()},
then:function(){return _.g("div",{id:"showMoreButton"},_.g(_.bj,{data:function(){var G;return(G=S())==null?void 0:G.expandButton}},{buttonViewModel:function(G){return _.g(_.$X,{data:G.data,
onClick:W})}}))}}))},"Jm");var Byf=_.p(function(L){var Z=function(){var E;return(E=L.data().text)==null?void 0:E.content},N=function(){var E,A;
return(E=L.data().webData)==null?void 0:(A=E.textResult)==null?void 0:A.content},S=_.GR().resolve(_.hC),u=_.SC(),T=function(){return L.data().chatResponseStyle},W=function(){return!L.data().transparentBackground},V=function(){return L.data().rightAlignThumbs},M=function(){return L.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||L.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},G=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:M()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:L.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},D=function(){var E;
return L.data().webData||((E=L.data().text)==null?void 0:E.content)||L.data().videoResultsData||L.data().conversationResourceViewModel||L.data().quiz||L.data().richContent},l=function(){return!!L.data().sectionHeader||D()},v=function(){var E;
return(E=L.data().videoResultsData)==null?void 0:E.videoShelf},R=function(){var E;
return(E=L.data().webData)==null?void 0:E.sourcesShelf},K=function(){return T()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||T()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:L.data().thumbsDownViewModel&&L.data().thumbsUpViewModel},U=function(){return _.n(L.data().thumbsUpViewModel,_.iD)},d=function(){return _.n(L.data().thumbsDownViewModel,_.iD)};
_.zp(function(){requestAnimationFrame(function(){var E;(E=L.shouldAnimateIcon)!=null&&E.call(L)&&Fk8(u.lottieEl)})});
var h={};return _.g("you-chat-item-view-model",{class:_.qg("ytwYouChatItemViewModelYouChatItemViewModel",(h.ytwYouChatItemViewModelColumnLayout=function(){return M()},h)),
"data-target-id":function(){return L.data().id||""}},_.g(_.F,{cond:function(){return L.data().removeIcon?!1:l()},
then:function(){var E={};return _.g("div",{"aria-hidden":"true"},_.g(_.KK,{className:_.qg("ytwYouChatItemViewModelIcon",(E.ytwYouChatItemViewModelRtl=S==="rtl",E.ytwYouChatItemViewModelHidden=function(){return!(L.data().hideIcon||T()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||T()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:l())},E)),
animationName:"YOUCHAT_ICON",data:G,animationRef:u}))}}),_.g(_.F,{cond:l,
then:function(){var E={};return _.g("div",{class:_.qg("ytwYouChatItemViewModelHost",(E.ytwYouChatItemViewModelHostNoPadding=function(){return!!L.data().sectionHeader&&!D()},E.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return T()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},E.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return T()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},E.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return T()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
E.ytwYouChatItemViewModelGradientBackground=W,E)),
role:"alert"},_.g(_.F,{cond:Z,then:function(A){return _.g(_.Lz,{text:A,wrapCodeBlocks:!0})}}),_.g(_.bj,{data:function(){return L.data().sectionHeader}},{sectionHeaderViewModel:function(A){var J={};
return _.g(_.f$,{data:A.data,className:_.qg("ytwYouChatItemViewModelSectionHeader",(J.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!L.data().sectionHeader&&!D()},J)),
forceSmallLayout:!0})}}),_.g(_.F,{cond:N,
then:function(A){return _.g(_.Lz,{text:A,wrapCodeBlocks:!0})}}),_.g(_.F,{cond:v,
then:function(){return _.g("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.g(_.bj,{data:function(){var A;return(A=L.data().videoResultsData)==null?void 0:A.videoShelf}},{horizontalShelfViewModel:function(A){return _.g(_.x7,{data:A.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.g(_.F,{cond:R,
then:function(){return _.g("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.g(_.bj,{data:function(){var A;return(A=L.data().webData)==null?void 0:A.sourcesShelf}},{horizontalShelfViewModel:function(A){return _.g(_.x7,{data:A.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.g(_.bj,{data:function(){return L.data().conversationResourceViewModel}},{conversationResourceViewModel:H8w}),_.g(_.bj,{data:function(){return L.data().quiz}},{learningJourneyQuizViewModel:_.cmV}),_.g(_.bj,{data:function(){return L.data().richContent}},{cardViewModel:_.VMq,
linearLayoutViewModel:_.A8}),_.g(_.F,{cond:K,then:function(){return _.g(QQf,{thumbsUp:U,thumbsDown:d,rightAlignThumbs:V})}}))}}),_.g(_.F,{cond:function(){return L.data().chipsData},
then:function(E){return _.g(A08,{data:E,disabled:L.pending,onError:L.onError})}}))},"Lm");
Byf.idomCompat={callbacks:{onError:!0,onSend:!0}};var xci=_.p(function(L){var Z=function(){return L.data().choiceSelectedText},N=function(){return L.data().hasGradientBackground},S={};
return _.g("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.g(_.F,{cond:Z,then:function(){return _.g("div",{class:"ytYouChatUserTurnChoiceSelected"},_.g(_.qv,{text:Z}))}}),_.g("div",{class:_.qg("ytYouChatUserTurnUserMessage",(S.ytYouChatUserTurnGradientContainer=N,S.ytYouChatUserTurnDefaultContainer=function(){return!N()},S))},function(){return L.data().text}))},"Mm");var qv7=_.p(function(L){var Z=_.O((0,_.z7t)(L.data)).next().value;return _.g("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return L.data().targetId||""},
"aria-busy":function(){var N,S;return(S=(N=Z().contents)==null?void 0:N.some(function(u){return!!u.chatLoadingViewModel}))!=null?S:!1}},_.g(_.bj,{data:function(){return L.data().header}},{chipBarViewModel:_.P$O,
sectionHeaderViewModel:_.f$}),_.g(_.bj,{data:function(){return Z().contents}},{accordionViewModel:_.kMQ,
alertBannerViewModel:_.XGt,chatLoadingViewModel:_.Ddk,chatUserTurnViewModel:xci,feedbackPromptViewModel:r0V,gridShelfViewModel:function(N){return _.g(_.r_q,{data:N.data,shouldUseOwnContainerSize:!0})},
learningJourneyLoaderViewModel:_.vOL,linearLayoutViewModel:_.A8,lockupViewModel:function(N){return _.g(_.nN,{data:N.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:L.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.f$,videoOverviewViewModel:_.hO0,youChatItemViewModel:function(N){return _.g(Byf,{data:N.data,pending:!1})}}))},"Nm");_.CY(_.p(function(L){var Z=_.O((0,_.z7t)(L.data)).next().value,N=_.t2("yt-section-list-renderer"),S=_.O(_.nh(void 0,void 0,"boqAXd")),u=S.next().value,T=S.next().value,W=function(){var V;return _.n((V=L.data().sectionListLayoutConfiguration)==null?void 0:V.layoutConfiguration,c0i)};
_.m0(function(){var V,M=(V=N.value)==null?void 0:V.clientWidth;if(W()){V=W();var G=V.responsiveSize;M=M<528?"CONTAINER_SIZE_NARROW":M<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var D=_.O(V.responsiveMap||[]);for(var l=D.next();!l.done;l=D.next())if(l=l.value,l.containerSize===M){D=l.containerType;break b}D=void 0}if(D&&G){b:{if(D==="CONTAINER_TYPE_VERTICAL_LIST")if(G==="RESPONSIVE_SIZE_STANDARD"){if(M!=="CONTAINER_SIZE_NARROW"){l="50%";break b}}else{l=M==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}l=void 0}V={responsiveSize:G,containerSize:M,containerType:D,force16By9ThumbnailAspectRatio:!V.enableContentSpecificAspectRatio,contentPreviewWidth:l,fullbleed:(D==="CONTAINER_TYPE_VERTICAL_LIST"||D==="CONTAINER_TYPE_GRID")&&M==="CONTAINER_SIZE_NARROW"&&!1}}else V=void 0}else V=void 0;T(V)});
return _.g("yt-section-list-renderer",{class:_.qg("ytSectionListRendererHost",L.className),el:N,"data-target-id":function(){return L.data().targetId||""}},_.g(_.bj,{data:function(){return Z().contents}},{itemSectionRenderer:function(V){return _.g(qv7,{data:V.data,
containerLayoutConfig:u})}}))},"Om"),"yt-section-list-renderer",{props:{data:_.LK,
className:_.zl}});var LYV;var ZG6;var Nw8=function(){return _.e.apply(this,arguments)||this};
_.f(Nw8,_.e);_.r([_.Y(),_.Q("design:type",Object)],Nw8.prototype,"data",void 0);_.r([_.ch({is:"yt-alert-renderer",disableElementRegistration:!0})],Nw8);
_.m(Nw8,"yt-alert-renderer",function(){if(ZG6===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;LYV===void 0&&(LYV=document.createElement("template"));var S=LYV;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);ZG6=L}L=ZG6;return L},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Trv;Trv=function(L,Z,N,S){N||(L?S&&(S.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||S.WINDOW_SIZE_CHANGED&&(Z.width!==window.innerWidth||Z.height!==window.innerHeight)||S.SAFARI_ABORTED_BY_NEW_TRANSITION&&L instanceof DOMException&&L.name==="AbortError"&&L.message.includes("Old view transition aborted by new view transition"))||_.CA(L):_.CA(Error("vj")))};
_.tDv=function(L,Z){Z=Z===void 0?{}:Z;var N,S,u,T,W,V,M,G,D,l,v,R,K;return _.b(function(U){switch(U.nextAddress){case 1:N=Z;S=N.shouldWrap===void 0?!0:N.shouldWrap;u=N.skipTransitionTimeoutMs===void 0?300:N.skipTransitionTimeoutMs;T=N.beforeTransition;W=N.afterTransition;if(!S||!document.startViewTransition||document.visibilityState==="hidden")return U.return(L());V={width:window.innerWidth,height:window.innerHeight};M=!1;(G=T)==null||G();_.RS(U,2);D=document.startViewTransition(L);l=setTimeout(function(){D.skipTransition();
M=!0},u);
return U.yield(D.ready,4);case 4:return clearTimeout(l),U.yield(D.finished,5);case 5:clearTimeout(l);(v=W)==null||v();_.SX(U,0);break;case 2:R=_.yd(U),(K=W)==null||K(),Trv(R,V,M,Z.ignoredErrors),_.w7(U)}})};
_.OX5=function(L,Z){var N=_.Voh(Z);N!=="javascript:"&&N!=="data:"&&L.setAttribute("href",Z)};
_.Kr=function(){for(var L=Array(36),Z=0,N,S=0;S<36;S++)S==8||S==13||S==18||S==23?L[S]="-":S==14?L[S]="4":(Z<=2&&(Z=33554432+Math.random()*16777216|0),N=Z&15,Z>>=4,L[S]=_.C3P[S==19?N&3|8:N]);return L.join("")};
_.Wl8=function(L,Z,N){L.persistentPanelContainerMap.set(N,Z)};/*

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 VDv=_.sc(['<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>']),
bX8=_.IUY(VDv);bX8.setAttribute("style","display: none;");document.head.appendChild(bX8.content);_.fr=_.FzP(function(L){var Z=_.wZ("DIV");L&&(Z.className=L);Z.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";L=_.wZ("DIV");_.IDh(L,"200px","200px");Z.appendChild(L);document.body.appendChild(Z);L=Z.offsetWidth-Z.clientWidth;_.U_(Z);return L});var MDs;var gem;var kc=function(){var L=_.e.apply(this,arguments)||this;L.icon=null;return L};
_.f(kc,_.e);kc.prototype.dismiss=function(){_.QT(this.hostElement,"yt-live-chat-error-message-dismiss")};
kc.prototype.computeIcon=function(L){return L&&L.iconType?"yt-icons:"+L.iconType.toLowerCase():"yt-icons:close"};
_.r([_.Y(),_.Q("design:type",Object)],kc.prototype,"data",void 0);_.r([_.Y({computed:"computeIcon(data.icon)"}),_.Q("design:type",Object)],kc.prototype,"icon",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],kc);
_.m(kc,"yt-live-chat-error-message-renderer",function(){if(gem===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;MDs===void 0&&(MDs=document.createElement("template"));var S=MDs;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);gem=L}L=gem;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var MUq,gRi,Gsn,F8n,vRn,cW8,nRG,K8n,f4V,ksq,yWM,I4,wEM,U$n,YK8,e07,I4Y,d$Y,a48,h06,sYn,jYM,ERY,PI7,pE7,z0q,m$Y,JWq,CI6,rWY,QYM,XEi,AWt,Hhn,BJG,x$6,qKn,NjG,inn,Tj7,tuM,OnG,W0M,L0f,Znq,Mu7,g_t,Gpi,F0M,$Ti,Vui;MUq=function(L,Z){return _.Lk(L.entities,"timedMarkersListSyncEntity",Z)};
gRi=function(L,Z){return _.Lk(L.entities,"liveReactionsDataEntity",Z)};
Gsn=function(L,Z){L=_.Lk(L.entities,"booleanEntity",Z);return!(!L||!L.value)};
F8n=function(L,Z){var N=_.RH();N&&L&&_.ez(N,_.Mg(L),Z)};
_.$$V=function(L){return L.watch.isWatchActive};
_.D$w=function(L){return _.cQ(L)||_.nV(L)||_.Sgt(L)};
_.l48=function(L){return!_.D$w(L)};
_.e1=function(L){return L.watch.watchScrollTop};
vRn=function(L){return L.watch.isLiveChatCollapsed};
_.oRG=function(){_.c("web_watch_log_theater_mode")&&_.yo1("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.R0q=function(L,Z,N){if(!L.includes("START_TIME_PLACEHOLDER")||!L.includes("END_TIME_PLACEHOLDER"))return L;var S=new Date(0),u=new Date(0);S.setUTCMilliseconds(Z);u.setUTCMilliseconds(N);return L.replace("START_TIME_PLACEHOLDER",_.dn(S,7)).replace("END_TIME_PLACEHOLDER",_.dn(u,7))};
cW8=function(L,Z){return _.Lk(L.entities,"booleanEntity",Z)};
nRG=function(){return function(L){_.sk(_.Mr("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:L}))}};
K8n=function(L){switch(L){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}};
f4V=function(L,Z,N){var S=_.KY(N);L&&Z&&S&&L.getPlayerPromise().then(function(u){_.eWG(S)&&_.JV();(new _.PA(u)).executeCommand(S,Z);_.c("continue_playback_on_desktop_companion_click")||u.pauseVideo()})};
ksq=function(L){var Z=_.CV(),N;if(N=_.LZ("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var S;N=(S=N())==null?void 0:S.layoutId}else N=null;f4V(Z,N,L)};
yWM=function(L){var Z=_.CV(),N;if(N=_.LZ("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var S;N=(S=N())==null?void 0:S.layoutId}else N=null;f4V(Z,N,L)};
I4=function(L,Z){var N=L<0?"-":"";L=Math.abs(L);var S=Math.floor(L/3600),u=Math.floor(L)%3600,T=Math.floor(u/60);u=Math.floor(u)%60;var W="";(Z===void 0?0:Z)&&(W="."+Math.round((L-Math.floor(L))*10));return S>0?N+S+":"+(T<10?"0"+T:""+T)+":"+(u<10?"0"+u:""+u)+W:N+T+":"+(u<10?"0"+u:""+u)+W};
wEM=function(L){var Z=L.match(/[^0-9:\.]/g);if(Z&&Z.length>0)return null;L=L.split(":");if(L.length===0||L.length>3)return null;Z=1;for(var N=0;L.length>0;){var S=L.pop();if(S===void 0)break;var u=Number(S);if(S===""||isNaN(u))return null;N+=u*Z;Z*=60}return N};
U$n=function(L,Z,N,S){L=Math.max(N,L);Z=Math.min(Z,S-N);L+Z>S?(N=S,L=N-Z):N=L+Z;return{start:L,end:N}};
YK8=function(L,Z,N,S,u,T){L<N?L=N:L+u>S&&(L=S-u);Z>S&&(Z=S);Z=Math.min(L+T,Math.max(L+u,Z));return{start:L,end:Z}};
e07=function(L,Z,N,S,u,T){Z>S?Z=S:Z-u<N&&(Z=N+u);L<N&&(L=N);L=Math.min(Z-u,Math.max(Z-T,L));return{start:L,end:Z}};
I4Y=function(L){return _.c("web_transcript_cue_id_killswitch")?String(L):"ytd-transcript-renderer_"+L};
d$Y=function(L){return _.c("web_transcript_cue_id_killswitch")?!0:L.startsWith("ytd-transcript-renderer")};
a48=function(L){var Z=_.CV(),N;if(N=_.LZ("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var S;N=(S=N())==null?void 0:S.layoutId}else N=null;f4V(Z,N,L)};
h06=function(L){L.style.height="auto";L.style.height=Math.min(L.scrollHeight||20,80)+"px"};
sYn=function(L,Z,N){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:Z,hasGradientBackground:N}}],insertByPositionInSection:{sectionTargetId:L,position:"INSERTION_POSITION_LAST"}}}]}}}};
jYM=function(L){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:L}}]}}}};
ERY=function(){var L;return String(Math.floor(((L=_.Nr())==null?void 0:L.getCurrentTime())||0)*1E3)};
PI7=function(L){var Z=_.CV(),N;N=(N=_.LZ("yt.www.ads.eventcache.getLastCompanionData"))?(N=N())&&N.layoutId:null;f4V(Z,N,L)};
pE7=function(L){var Z=_.CV(),N;N=(N=_.LZ("yt.www.ads.eventcache.getLastCompanionData"))?(N=N())&&N.layoutId:null;f4V(Z,N,L)};
z0q=function(L){if(L.simpleText)return[{text:L.simpleText}];var Z;return(Z=L.runs)!=null?Z:[]};
m$Y=function(L){var Z=L.startEndTimeTemplate,N=L.startTimeUtcMillis;L=L.endTimeUtcMillis;if(Z&&N&&L)return _.s9(_.R0q(_.jM(Z),Number(N),Number(L)))};
JWq=function(L,Z){var N,S,u=L==null?void 0:(N=L.viewCount)==null?void 0:(S=N.videoViewCountRenderer)==null?void 0:S.shortViewCount;if(!Z&&u)return u;var T,W;return L==null?void 0:(T=L.viewCount)==null?void 0:(W=T.videoViewCountRenderer)==null?void 0:W.viewCount};
CI6=function(L,Z){var N=L==null?void 0:L.relativeDateText;return!Z&&N?[N,!0]:[L==null?void 0:L.dateText,!1]};
rWY=function(L,Z,N,S,u){S=S===void 0?"":S;u=u===void 0?!1:u;var T=JWq(L,Z),W=_.O(CI6(L,Z)),V=W.next().value;W=W.next().value;Z=Z?L==null?void 0:L.sponsorsOnlyFirstTimeLongText:L==null?void 0:L.sponsorsOnlyFirstTimeShortText;var M=[];N&&T&&M.push(T);!N&&W||!V||M.push(V);L=[u?L==null?void 0:L.subtitle:void 0].concat(_.Pd(M),[Z,L==null?void 0:L.stationName,L==null?void 0:L.rating,L?m$Y(L):void 0,L==null?void 0:L.upNextProgramText,L==null?void 0:L.superTitleLink]).filter(function(G){return!!G});
N={runs:[]};for(u=0;u<L.length;u++)N.runs.push.apply(N.runs,_.Pd(z0q(L[u]))),u<L.length-1&&N.runs.push({text:" "+S+" "});return N};
QYM=function(L){return L.filter(function(Z){return!_.n(Z,_.rf)})};
XEi=function(L){var Z,N,S,u;if(L=L==null?void 0:(Z=L.contents)==null?void 0:(N=Z.twoColumnWatchNextResults)==null?void 0:(S=N.results)==null?void 0:(u=S.results)==null?void 0:u.contents){var T,W;return(W=(T=L.find(function(V){return!!V.videoPrimaryInfoRenderer}))==null?void 0:T.videoPrimaryInfoRenderer)==null?void 0:W.updatedMetadataEndpoint}};
AWt=function(L,Z){var N;return(N=L.sourceConfigs)==null?void 0:N.find(function(S){return S.videoId===Z})};
Hhn=function(L){return L==="End of video"||L==="End of playlist"};
BJG=function(L){var Z,N,S,u;return(Z=L.getWatchNextResponse())==null?void 0:(N=Z.contents)==null?void 0:(S=N.twoColumnWatchNextResults)==null?void 0:(u=S.playlist)==null?void 0:u.playlist};
x$6=function(L){var Z,N,S,u,T,W;return(Z=BJG(L))==null?void 0:(N=Z.playlistButtons)==null?void 0:(S=N.menuRenderer)==null?void 0:(u=S.topLevelButtons)==null?void 0:(T=u[0])==null?void 0:(W=T.playlistLoopButtonRenderer)==null?void 0:W.playlistLoopStateEntityKey};
qKn=function(L){var Z=_.GR().resolve(_.Nv),N;return(Z=(N=_.n(Z.getAutoplayEndpoint(),_.so))==null?void 0:N.playlistId)&&Z===L};
NjG=function(L,Z,N,S,u){function T(){_.ro.cancelJob(ds);var W=L0f(Z,N/L.getPlaybackRate()),V=W.hours,M=W.minutes;W=(W.seconds*1E3||6E4)/L.getPlaybackRate();L.setVideoTimeLeft(Znq(V,M));S&&L.getPlayerState()!==0&&L.setSleepTimerTimeLeft(Znq(V,M,!0));(V>0||M>0)&&!u&&(ds=_.Gq(_.ro,T,W))}
_.ro.cancelJob(ds);ds=_.Gq(_.ro,T)};
inn=function(L,Z,N){function S(){_.ro.cancelJob(SMY);var u=L0f(Z,N),T=u.hours;u=u.minutes;var W=6E4/L.getPlaybackRate();if(T>0||u>0)L.setSleepTimerTimeLeft(Znq(T,u,!0)),SMY=_.Gq(_.ro,S,W)}
_.ro.cancelJob(SMY);SMY=_.Gq(_.ro,S)};
Tj7=function(L,Z){var N=L.getVolume()/(Z/500),S=function(u){_.ro.cancelJob(u7G);var T=Math.floor(u-N);L.setVolume(T,!1);T>0&&(u7G=_.Gq(_.ro,function(){S(T)},500))};
_.ro.cancelJob(u7G);u7G=_.Gq(_.ro,function(){S(L.getVolume())})};
tuM=function(L,Z){_.ro.cancelJob(u7G);Z&&L.syncVolume()};
OnG=function(){var L={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.iB("SLEEP_TIMER_DISRUPTED")}}}}};_.GR().resolve(_.$s).resolveCommand(L)};
W0M=function(L){return(L.getDuration()-L.getProgressState().current)*1E3};
L0f=function(L,Z){L=L+Z-(0,_.GT)();if(L<=0)return{hours:0,minutes:0,seconds:0};var N=new Vui(0,0,0,0,0,0,L);L=N.getHours();Z=N.getMinutes();N=N.getSeconds();N!==0&&Z++;Z!==0&&Z%60===0&&(L++,Z=0);return{hours:L,minutes:Z,seconds:N}};
Znq=function(L,Z,N){return L>0&&Z>0?N?_.iB("TIME_LEFT_HOURS_MINUTES",{hours:L.toString(),minutes:Z.toString()}):_.iB("TIME_HOURS_MINUTES",{hours:L.toString(),minutes:Z.toString()}):L>0?N?_.uB("TIME_LEFT_HOURS",L):_.uB("TIME_HOURS",L):N?_.iB("TIME_LEFT_MINUTES",{minutes:Z.toString()}):_.iB("TIME_MINUTES",{minutes:Z.toString()})};
Mu7=function(L,Z){if(L.timelyActions)return L.timelyActions.find(function(N){var S;return((S=_.n(N,bnV))==null?void 0:S.cueRangeId)===Z})};
g_t=function(L){var Z=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.gp(L);L.keyMap_.forEach(function(N,S){_.p1(Z,S)||this.remove(S)},L)};
Gpi=function(L,Z){L.reloadContinuationItemsCommandMatcher=Z};
_.a4=function(L,Z){L.insertBefore(Z,L.childNodes[0]||null)};
F0M=function(L){if(L>=48&&L<=57||L>=96&&L<=106||L>=65&&L<=90||_.qH&&L==0)return!0;switch(L){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 _.xM;default:return!1}};
$Ti=function(L){if(L.altKey&&!L.ctrlKey||L.metaKey||L.keyCode>=112&&L.keyCode<=123)return!1;if(F0M(L.keyCode))return!0;switch(L.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!_.xM;default:return L.keyCode<166||L.keyCode>183}};
Vui=function(L,Z,N,S,u,T,W){this.date=typeof L==="number"?new Date(L,Z||0,N||1,S||0,u||0,T||0,W||0):new Date(L&&L.getTime?L.getTime():_.rc())};
_.Qk(Vui,_.YU);_.t=Vui.prototype;_.t.getHours=function(){return this.date.getHours()};
_.t.getMinutes=function(){return this.date.getMinutes()};
_.t.getSeconds=function(){return this.date.getSeconds()};
_.t.getMilliseconds=function(){return this.date.getMilliseconds()};
_.t.getUTCDay=function(){return this.date.getUTCDay()};
_.t.getUTCHours=function(){return this.date.getUTCHours()};
_.t.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.t.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.t.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.t.setHours=function(L){this.date.setHours(L)};
_.t.setMinutes=function(L){this.date.setMinutes(L)};
_.t.setSeconds=function(L){this.date.setSeconds(L)};
_.t.setMilliseconds=function(L){this.date.setMilliseconds(L)};
_.t.setUTCHours=function(L){this.date.setUTCHours(L)};
_.t.setUTCMinutes=function(L){this.date.setUTCMinutes(L)};
_.t.setUTCSeconds=function(L){this.date.setUTCSeconds(L)};
_.t.setUTCMilliseconds=function(L){this.date.setUTCMilliseconds(L)};
_.t.add=function(L){_.YU.prototype.add.call(this,L);L.hours&&this.setUTCHours(this.date.getUTCHours()+L.hours);L.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+L.minutes);L.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+L.seconds)};
_.t.JSC$11333_toIsoString=function(L){var Z=_.YU.prototype.JSC$11333_toIsoString.call(this,L);return L?Z+"T"+_.u3(this.getHours(),2)+":"+_.u3(this.getMinutes(),2)+":"+_.u3(this.getSeconds(),2):Z+"T"+_.u3(this.getHours(),2)+_.u3(this.getMinutes(),2)+_.u3(this.getSeconds(),2)};
_.t.equals=function(L){return this.getTime()==L.getTime()};
_.t.toString=function(){return this.JSC$11333_toIsoString()};
_.t.clone=function(){var L=new Vui(this.date);L.firstDayOfWeek_=this.firstDayOfWeek_;L.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return L};
_.DTV=function(L){return _.XK({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:L}})};var l8G=new _.S5("imageTileRenderer");var v_M=new _.S5("promotedSparklesWebRenderer");var o_t=new _.S5("adGridCardCollectionViewModel");var RaY=new _.S5("carouselTitleViewModel");var chf=new _.S5("ctaCarouselItemViewModel");var n_8=new _.S5("textFieldViewModel");_.K0w=new _.S5("engagementPanelHeaderShowNavigationButtonCommand");var f87=new _.S5("hideEngagementPanelScrimAction");var kpq=new _.S5("setActivePanelItemAction");var yhf=new _.S5("showEngagementPanelScrimAction");var w87=new _.S5("updateEngagementPanelAction");var UTn=new _.S5("updateSearchInVideoResultsAction");var YM9=new _.S5("transcriptCueGroupRenderer");var ean=new _.S5("transcriptCueRenderer");var I88=new _.S5("transcriptFooterRenderer");var dT9=new _.S5("engagementPanelAdSubtitleRenderer");var a8V=new _.S5("videoDescriptionFantasySectionViewModel");var han=new _.S5("deleteClipEngagementPanelCommand");var slV=new _.S5("loopCommand");var jlG=new _.S5("changeCreatorEndscreenVisibilityCommand");var E_n=new _.S5("liveChatCallForQuestionsRenderer");var PT9=new _.S5("updateTimedMarkersSyncObserverCommand");var bnV=new _.S5("timelyActionViewModel");var p8n=new _.S5("timelyActionsOverlayViewModel");var zaf=new _.S5("repeatChapterCommand");var mT7=new _.S5("watchPlayerOverflowMenuCommand");var Jhw=new _.S5("compositeVideoOverlayRenderer");var CTn=new _.S5("sortFilterSubMenuRenderer");var rhM=new _.S5("switchListItemViewModel");var Qln=new _.S5("inputComposerViewModel");var X8V=new _.S5("transcriptEditSegmentCommand");var Ah8=new _.S5("transcriptUpdateSegmentTextCommand");var Hnw=new _.S5("transcriptSearchBoxRenderer");var Bjn=new _.S5("transcriptSegmentListRenderer");var xTw=new _.S5("transcriptSegmentRenderer");_.qMM=new _.S5("updateDateTextAction");var L5Y=new _.S5("updateTitleAction");var ZZw=new _.S5("updateViewershipAction");var NvM=new _.S5("relatedChipCommand");var SrY=new _.S5("carouselLockupRenderer");var hH=new _.S5("expandableVideoDescriptionBodyRenderer");var iZ9=new _.S5("videoDescriptionHeaderRenderer");var u26=new _.S5("videoDescriptionYouchatSectionViewModel");_.sz=_.lQ("kevlar_watch_page_horizontal_margin",24);_.Tv9=_.lQ("kevlar_watch_page_columns_top_padding",24);_.tZM=426+_.sz*2;_.j1=_.lQ("kevlar_watch_two_column_width_threshold",1E3);_.OZ8=_.sz*2;_.W5M=_.lQ("kevlar_watch_secondary_width",402);_.VZf=_.lQ("kevlar_watch_max_player_width",1280);_.bZn=_.lQ("kevlar_watch_flexy_metadata_height",136);_.MZM=_.OZ8+310+_.sz;_.gsY=_.OZ8+360+_.sz;var GR7={PAUSE_CHAT:18};var F5f;var $ut;var Ez=function(){return _.e.apply(this,arguments)||this};
_.f(Ez,_.e);Ez.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Ez.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var L=_.n(this.data.button,_.NU);L&&(L.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.gd.Object.defineProperties(Ez,{template:{configurable:!0,enumerable:!0,get:function(){if($ut===void 0){var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;F5f===void 0&&(F5f=document.createElement("template"));var S=F5f;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);$ut=L}L=$ut;return L}}});
_.r([_.y(_.Je),_.Q("design:type",Object)],Ez.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Ez.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y({selectorArgs:["data.enabledEntityKey"],selector:Gsn,observer:"onEnabledChange"}),_.Q("design:type",Boolean)],Ez.prototype,"enabled",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ez.prototype,"data",void 0);_.r([_.ch({is:"yt-disableable-button-view-model",noInjection:!0})],Ez);var Dut;var lx8;var vs8=["transVert01","transVert02","transVert03"],osf="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),PH=function(){var L=_.e.apply(this,arguments)||this;L.emojiManager=_.qN;L.isDarkTheme=document.documentElement.hasAttribute("dark");L.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};L.reactionBuckets=[];L.noEmojiIdentifier="NO_EMOJI";return L};
_.f(PH,_.e);_.t=PH.prototype;_.t.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.t.desktopFountainEmojiSizePxChanged=function(){_.Ld(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.t.createUserReactionAnimation=function(L){this.createEmojiAnimation(L,!0)};
_.t.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var L;((L=this.data)==null?0:L.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Mr("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Pd(this.emojiContainer.children)).forEach(function(Z){Z.remove()})};
_.t.detached=function(){this.cleanupFountain()};
_.t.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var L;this.reactionBuckets=_.Py.unsafeClone((L=this.emojiFountainData)==null?void 0:L.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.t.processEmojiBucket=function(L){var Z=this;if(this.reactionBuckets&&!(L>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var N=this.reactionBuckets[L];this.generateEmojiAnimations(N);if(L<this.reactionBuckets.length-1){var S;if(N==null?0:(S=N.duration)==null?0:S.seconds)this.emojiBucketTimerId=setTimeout(function(){Z.processEmojiBucket(L+1)},Number(N.duration.seconds)*1E3)}}};
_.t.generateEmojiAnimations=function(L){var Z=this,N=this.getRandomEmojiIdFromBucketWithOverride(L);if(N&&N!==this.noEmojiIdentifier){var S=0;L.targetEps?(S=this.linearInterpolateBounded(1,20,100,12,L.emojiSizeIndex||0),this.createEmojiAnimation(N,!1,L.emojiAnimationMs,S),S=this.getEmojiDelayMsFromTargetEps(L.targetEps)):(this.createEmojiAnimation(N),S=this.getEmojiDelayMsFromDistribution(L.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){Z.generateEmojiAnimations(L)},S)}};
_.t.getRandomEmojiIdFromBucketWithOverride=function(L){if(!(L&&L.reactionsData&&L.reactionsData.length&&L.totalReactions))return this.noEmojiIdentifier;for(var Z=L.totalReactions,N=1,S=_.O(L.reactionsData),u=S.next();!u.done;u=S.next())u=u.value,(u.reactionWeightOverride||u.reactionWeightOverride===0)&&u.reactionCount&&(Z-=u.reactionCount,N-=u.reactionWeightOverride);S=!0;N<0&&(S=!1,Z=L.totalReactions,N=1);if(S&&N>0&&Z===0)if(N===1){u=0;for(var T=_.O(L.reactionsData),W=T.next();!W.done;W=T.next())W=
W.value,W.reactionCount&&W.reactionCount>0&&u++;u=1/u;T=_.O(L.reactionsData);for(W=T.next();!W.done;W=T.next())W.value.reactionWeightOverride=u}else for(u=1/(1-N),T=_.O(L.reactionsData),W=T.next();!W.done;W=T.next())W=W.value,W.reactionWeightOverride&&(W.reactionWeightOverride*=u);u=Math.random();T=0;W=_.O(L.reactionsData);for(var V=W.next();!V.done;V=W.next())if(V=V.value,V.reactionCount&&(T=(V.reactionWeightOverride||V.reactionWeightOverride===0)&&S?T+V.reactionWeightOverride:T+N*V.reactionCount/
Z,T>u&&(V.reactionCount--,L.totalReactions--,V=this.reactionItemToEmojiString(V),V!==this.noEmojiIdentifier)))return V;return this.noEmojiIdentifier};
_.t.reactionItemToEmojiString=function(L){if(L.unicodeEmojiId)return L.unicodeEmojiId;if(L.emoteId)return L.emoteId;if(L.videoReactionType)switch(L.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.t.createEmojiAnimation=function(L,Z,N,S){Z=Z===void 0?!1:Z;this.lastEmojiRequestedForTesting=L;var u=L.startsWith("yt-icons:"),T=_.BS(this.emojiManager,L);if(T||u){var W=document.createElement("emoji");W.classList.add("yt-emoji-fountain-view-model");W.classList.add(vs8[Math.floor(Math.random()*vs8.length)]);var V=document.createElement("div");V.classList.add("yt-emoji-fountain-view-model");V.classList.add("horizontal-container");V.classList.add(osf[Math.floor(Math.random()*osf.length)]);Z?(N=document.createElement("div"),
N.classList.add("user-reaction-bubble"),N.classList.add("yt-emoji-fountain-view-model"),V.appendChild(N)):(N&&(W.style.animationDuration=N+"ms",V.style.animationDuration=N+"ms"),S&&(W.style.width=S+"px",W.style.height=S+"px"));u?(u=document.createElement("yt-icon"),u.polymerController.icon=L,S&&(u.style.width=S+"px",u.style.height=S+"px"),L=u):L=this.emojiManager.createEmoji(T,!1);L.classList.add("yt-emoji-fountain-view-model");V.appendChild(L);W.appendChild(V);this.emojiContainer.appendChild(W);
W.addEventListener("animationend",function(){W.remove()});
var M,G;if((M=this.data)==null?0:(G=M.loggingDirectives)==null?0:G.trackingParams)Z=Z?_.Ll(183501):_.Ll(183500),F8n(this.data.loggingDirectives.trackingParams,Z),_.GhL(Z);setTimeout(function(){W&&W.remove()},2E3)}};
_.t.getEmojiDelayMsFromDistribution=function(L){return Math.random()*(L||1)*1E3};
_.t.getEmojiDelayMsFromTargetEps=function(L){return Math.random()*2*(1/L)*1E3};
_.t.linearInterpolateBounded=function(L,Z,N,S,u){u=Math.min(Math.max(u,L),N);return(Z*(N-u)+S*(u-L))/(N-L)};
PH.prototype.onEmojiFountainDataEntityUpdate=PH.prototype.onEmojiFountainDataEntityUpdate;PH.prototype.desktopFountainEmojiSizePxChanged=PH.prototype.desktopFountainEmojiSizePxChanged;PH.prototype.isActiveChanged=PH.prototype.isActiveChanged;_.r([_.Y(),_.Q("design:type",_.HS)],PH.prototype,"emojiManager",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Je),_.Q("design:type",Object)],PH.prototype,"ytLiveChatReduxBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],PH.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],PH.prototype,"data",void 0);_.r([_.Y({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"emojiFountainDataEntity",Z)}}),
_.Q("design:type",Object)],PH.prototype,"emojiFountainData",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],PH.prototype,"isActive",void 0);_.r([_.iA("isActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PH.prototype,"isActiveChanged",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],PH.prototype,"isDarkTheme",void 0);_.r([_.Y(),_.Q("design:type",String)],PH.prototype,"lastEmojiRequestedForTesting",void 0);
_.r([_.Y({value:function(){return _.lQ("desktop_fountain_emoji_size_px",20)}}),
_.Q("design:type",Number)],PH.prototype,"desktopFountainEmojiSizePx",void 0);_.r([_.iA("desktopFountainEmojiSizePx"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PH.prototype,"desktopFountainEmojiSizePxChanged",null);_.r([_.TX("#emoji-container"),_.Q("design:type",HTMLElement)],PH.prototype,"emojiContainer",void 0);
_.r([_.iA("emojiFountainData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PH.prototype,"onEmojiFountainDataEntityUpdate",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],PH);
_.m(PH,"yt-emoji-fountain-view-model",function(){if(lx8===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Dut===void 0&&(Dut=document.createElement("template"));var S=Dut;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);lx8=L}L=lx8;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Rlf;var c3t;var p4=function(){return _.e.apply(this,arguments)||this};
_.f(p4,_.e);p4.prototype.onChoiceChanged=function(){this.data&&_.Ld(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
p4.prototype.onChoiceChanged=p4.prototype.onChoiceChanged;_.r([_.Y(),_.Q("design:type",Object)],p4.prototype,"data",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],p4.prototype,"onChoiceChanged",null);_.r([_.P({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],p4);
_.m(p4,"yt-live-chat-banner-poll-choice",function(){if(c3t===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Rlf===void 0&&(Rlf=document.createElement("template"));var S=Rlf;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);c3t=L}L=c3t;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var nsi;var K5n;var zY=function(){var L=_.e.apply(this,arguments)||this;L.modern=_.c("web_button_rework_with_live");L.small=!1;return L};
_.f(zY,_.e);zY.prototype.computeIsSmall=function(){var L;return((L=this.buttonOverrides)==null?void 0:L.size)==="S"};
zY.prototype.computeId=function(){return this.data&&this.data.targetId};
_.r([_.y(_.Cf.YtLiveChatTooltipTargetingBehavior),_.Q("design:type",Object)],zY.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.r([_.Y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Q("design:type",String)],zY.prototype,"id",void 0);_.r([_.Y(),_.Q("design:type",Object)],zY.prototype,"buttonOverrides",void 0);_.r([_.Y(),_.Q("design:type",Object)],zY.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],zY.prototype,"modern",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.Q("design:type",Object)],zY.prototype,"small",void 0);_.r([_.P({disableElementRegistration:!0,is:"yt-live-chat-button"})],zY);
_.m(zY,"yt-live-chat-button",function(){if(K5n===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;nsi===void 0&&(nsi=document.createElement("template"));var S=nsi;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);K5n=L}L=K5n;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var fxt;var kRY;var mJ=function(){var L=_.e.apply(this,arguments)||this;L.inCollapsedBanner=!1;L.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};L.questionButtonOverrides={style:"mono",type:"filled"};return L};
_.f(mJ,_.e);_.t=mJ.prototype;_.t.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]]"}}}}}};
_.t.onContextMenuButtonClick=function(L){this.ytLiveChatItemBehavior.showContextMenu(L)};
_.t.onYtRendererstamperFinished=function(){this.menuButton=_.QJ(this.hostElement).querySelector("#menu-button")};
_.t.dataChanged=function(){var L,Z;if((Z=_.n((L=this.data)==null?void 0:L.overflowMenuButton,_.xZ))==null?0:Z.command)this.data.contextMenuEndpoint=_.n(this.data.overflowMenuButton,_.xZ).command};
_.t.onButtonClick=function(){var L,Z=_.n((L=this.data)==null?void 0:L.askQuestionButton,_.xZ);if(Z){if(Z.trackingParams&&(L=_.Mg(Z.trackingParams))){var N=_.RH();N&&_.sT(N,L)}_.QT(this.hostElement,"innertube-command",Z.command)}};
mJ.prototype.onYtRendererstamperFinished=mJ.prototype.onYtRendererstamperFinished;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],mJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Je),_.Q("design:type",Object)],mJ.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.y(_.LD.YtLiveChatItemBehavior),_.Q("design:type",_.Zu)],mJ.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.Y({observer:"dataChanged"}),_.Q("design:type",Object)],mJ.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],mJ.prototype,"inCollapsedBanner",void 0);_.r([_.Y(),_.Q("design:type",Object)],mJ.prototype,"buttonOverrides",void 0);_.r([_.Y(),_.Q("design:type",Object)],mJ.prototype,"questionButtonOverrides",void 0);_.r([_.SA("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mJ.prototype,"onYtRendererstamperFinished",null);
_.r([_.P({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],mJ);
_.m(mJ,"yt-live-chat-call-for-questions-renderer",function(){if(kRY===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;fxt===void 0&&(fxt=document.createElement("template"));var S=fxt;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);kRY=L}L=kRY;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var y3w={};y3w.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 L=this;window.requestAnimationFrame(function(){L.restoreFocusNode_||(L.restoreFocusNode_=document.activeElement);var Z=_.YyI(L.hostElement);Z.length&&Z[Z.length-1].focus()})},
isAttachedChanged_:function(L,Z){L?this.focusChild_():Z&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(L){this.hidden||_.sx(L).indexOf(this.hostElement)!==-1||(L.stopPropagation(),this.focusChild_())}};var wW8;var Uut;var JH=function(){return _.e.apply(this,arguments)||this};
_.f(JH,_.e);JH.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
JH.prototype.onClick=function(L){L.target!==this.confirmButton&&L.target!==this.cancelButton&&(this.hidden=!0)};
_.r([_.TX("#confirm_button"),_.Q("design:type",Object)],JH.prototype,"confirmButton",void 0);_.r([_.TX("#cancel_button"),_.Q("design:type",Object)],JH.prototype,"cancelButton",void 0);_.r([_.Y(),_.Q("design:type",Yrw)],JH.prototype,"data",void 0);_.r([_.Y({value:!0,reflectToAttribute:!0}),_.Q("design:type",Boolean)],JH.prototype,"hidden",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],JH.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(y3w.YtLiveChatDialogBehavior),_.Q("design:type",Object)],JH.prototype,"ytLiveChatDialogBehavior",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],JH);
var Yrw=_.m(JH,"yt-live-chat-dialog-renderer",function(){if(Uut===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;wW8===void 0&&(wW8=document.createElement("template"));var S=wW8;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Uut=L}L=Uut;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var el8;var IxV,du9=function(){if(IxV!==void 0)return IxV;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;el8===void 0&&(el8=document.createElement("template"));var S=el8;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return IxV=L};var ax8;var hlf;var C4=function(){var L=_.e.apply(this,arguments)||this;L.tooltip=null;L.data=null;L.id="";L.active=!1;L.icon="";L.disabled=!1;L.showTooltip=!1;L.useToggledActiveState=!0;L.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return L};
_.f(C4,_.e);_.t=C4.prototype;
_.t.dataChanged=function(){var L;((L=this.data)==null?0:L.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,_.qJ)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var Z;if((Z=this.data)==null?0:Z.disabled)this.disabled=!0};
_.t.computeId=function(L){return L};
_.t.computeIcon=function(L,Z){if(!L)return"";if(this.useToggledActiveState)return"yt-icons:"+L.toLowerCase();var N,S;return Z&&((N=this.data)==null?0:(S=N.toggledIcon)==null?0:S.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+L.toLowerCase()};
_.t.logPDGEntryPoint=function(){_.ZNf(_.LX("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")};
_.t.immediatelyShowTooltip=function(){var L=_.QJ(this.hostElement).querySelector("#tooltip");L.animationDelay=0;L.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};L.show()};
_.t.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.t.onClick=function(L){var Z;((Z=this.data)==null?0:Z.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(),L.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.QT(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.t.computeShowTooltip=function(L,Z){return!!(L&&L.tooltip&&Z)};
_.t.maybeUpdateTooltipText=function(){var L=this,Z;if((Z=this.data)==null?0:Z.tooltip){var N=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.qJ)(L.tooltip).textContent=N},250)}};
_.t.handleLiveChatActions=function(L){var Z=this;L.length&&(this.id!=="creator"&&this.id!=="product-picker"||L.forEach(function(N){(N=Z.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",N))&&N.durationSec===N.fullDurationSec&&Z.startBubble(Z.colorFromDecimal(N.startBackgroundColor))}))};
_.t.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.t.startBubble=function(L){_.Ld(this.hostElement,{"--yt-live-chat-monetization-button-glow":L});this.hostElement.setAttribute("bubble","")};
_.t.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.t.colorFromDecimal=function(L){typeof L==="string"&&(L=Number(L));return"rgba("+[L>>16&255,L>>8&255,L&255,(L>>24&255)/255].join()+")"};
C4.prototype.onAnimationEnd=C4.prototype.onAnimationEnd;C4.prototype.disabledChanged=C4.prototype.disabledChanged;C4.prototype.dataChanged=C4.prototype.dataChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],C4.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.Cf.YtLiveChatTooltipTargetingBehavior),_.Q("design:type",Object)],C4.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],C4.prototype,"data",void 0);_.r([_.Y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Q("design:type",Object)],C4.prototype,"id",void 0);_.r([_.Y({notify:!0,reflectToAttribute:!0}),_.Q("design:type",Object)],C4.prototype,"active",void 0);
_.r([_.Y({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.Q("design:type",Object)],C4.prototype,"icon",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],C4.prototype,"disabled",void 0);_.r([_.Y({computed:"computeShowTooltip(data, disabled)"}),_.Q("design:type",Object)],C4.prototype,"showTooltip",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],C4.prototype,"useToggledActiveState",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],C4.prototype,"dataChanged",null);_.r([_.iA("disabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],C4.prototype,"disabledChanged",null);_.r([_.SA("animationend"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],C4.prototype,"onAnimationEnd",null);
_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],C4);
_.m(C4,"yt-live-chat-icon-toggle-button-renderer",function(){if(hlf===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;ax8===void 0&&(ax8=document.createElement("template"));var S=ax8;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);hlf=L}L=hlf;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var seM;var je9;var rs=function(){return _.e.apply(this,arguments)||this};
_.f(rs,_.e);rs.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.r([_.Y(),_.Q("design:type",Object)],rs.prototype,"data",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],rs.prototype,"ytRendererstamperBehavior",void 0);_.r([_.P({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],rs);
_.m(rs,"yt-live-chat-message-input-prompt-header-renderer",function(){if(je9===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;seM===void 0&&(seM=document.createElement("template"));var S=seM;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);je9=L}L=je9;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Es6;var PQw;var pWM;var zlw;var mu7;var J3f;var CQ7=function(){return _.e.apply(this,arguments)||this};
_.f(CQ7,_.e);_.r([_.Y(),_.Q("design:type",Object)],CQ7.prototype,"data",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],CQ7);
_.m(CQ7,"yt-live-chat-message-subtext-renderer",function(){if(J3f===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;mu7===void 0&&(mu7=document.createElement("template"));var S=mu7;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);J3f=L}L=J3f;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var QF=function(){var L=_.e.apply(this,arguments)||this;L.subtextOnBottom=!1;L.buttonOverrides={style:"mono",type:"tonal"};return L};
_.f(QF,_.e);QF.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"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],QF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],QF.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],QF.prototype,"subtextOnBottom",void 0);_.r([_.Y(),_.Q("design:type",Object)],QF.prototype,"buttonOverrides",void 0);
_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],QF);
_.m(QF,"yt-live-chat-message-renderer",function(){if(zlw===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;pWM===void 0&&(pWM=document.createElement("template"));var S=pWM;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);zlw=L}L=zlw;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var r36;var Qeq;var Xu=function(){var L=_.e.apply(this,arguments)||this;L.isRemovable=!1;L.hasPrefilledText=!1;L.isInputDirty=!1;L.overCharacterLimit=!1;L.underCharacterLimit=!1;L.showErrorMessage=!1;return L};
_.f(Xu,_.e);_.t=Xu.prototype;_.t.computeId=function(){return this.data.id};
_.t.computeInputData=function(){return this.data.inputData};
_.t.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.t.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.t.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.t.getLiveChatRichMessageInput=function(){return _.QJ(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.t.clearInput=function(){_.QJ(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.t.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.t.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.t.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.t.handleTextInputCharCountChanged=function(L){L=L.detail&&L.detail.characterCount;L!==void 0&&(this.characterCount=L,L!==0&&(this.isInputDirty=!0))};
_.t.onInputFocusOut=function(){this.isInputDirty=!0};
_.t.onClickCloseButton=function(){_.QT(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Xu.prototype.handleTextInputCharCountChanged=Xu.prototype.handleTextInputCharCountChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Xu.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Xu.prototype,"data",void 0);_.r([_.Y({computed:"computeId(data.id)"}),_.Q("design:type",String)],Xu.prototype,"id",void 0);_.r([_.Y({computed:"computeInputData(data.inputData)"}),_.Q("design:type",Object)],Xu.prototype,"inputData",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.Q("design:type",Object)],Xu.prototype,"isRemovable",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.Q("design:type",Object)],Xu.prototype,"hasPrefilledText",void 0);_.r([_.Y({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.Q("design:type",Number)],Xu.prototype,"charactersRemaining",void 0);
_.r([_.Y(),_.Q("design:type",Number)],Xu.prototype,"characterCount",void 0);_.r([_.Y(),_.Q("design:type",Object)],Xu.prototype,"isInputDirty",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.Q("design:type",Object)],Xu.prototype,"overCharacterLimit",void 0);_.r([_.Y({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.Q("design:type",Object)],Xu.prototype,"underCharacterLimit",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.Q("design:type",Object)],Xu.prototype,"showErrorMessage",void 0);_.r([_.SA("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Xu.prototype,"handleTextInputCharCountChanged",null);
_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Xu);
_.m(Xu,"yt-live-chat-poll-editor-input",function(){if(Qeq===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;r36===void 0&&(r36=document.createElement("template"));var S=r36;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Qeq=L}L=Qeq;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var XW8;var A38;var HZt={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},AH=function(){var L=_.e.apply(this,arguments)||this;L.modern=_.c("web_button_rework_with_live");L.closeButtonOverrides={iconPosition:"icon-only"};L.startButtonOverrides={style:"mono",type:"filled"};L.addOptionButtonOverrides={style:"mono",type:"text"};return L};
_.f(AH,_.e);_.t=AH.prototype;
_.t.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"}}}}};
_.t.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var L;_.n((L=this.data)==null?void 0:L.startButton,_.xZ)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.t.computeId=function(){return this.data&&this.data.id||""};
_.t.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.t.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.t.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.t.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.t.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var L=0;L<this.pollEditorInfoWithDefaults.minPollOptions;L++)this.addPollOptionData()};
_.t.getIsValidPoll=function(){var L=this;if(!this.pollEditorInfoWithDefaults)return!1;var Z=this.pollEditorInfoWithDefaults,N=Z.minPollOptionChars,S=Z.maxPollOptionChars,u=Z.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>Z.maxPollQuestionChars)return!1;Z=_.QJ(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(Z).every(function(T,W){T=T.characterCount;!T&&u[W]&&(T=L.ytRendererBehavior.getSimpleString(u[W]).length);return T!==void 0&&T>=N&&T<=S})};
_.t.isValidPollChanged=function(){var L;_.n((L=this.data)==null?void 0:L.startButton,_.xZ)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.t.addPollOptionData=function(){var L=this.pollEditorInfoWithDefaults,Z=L.maxPollOptionChars,N=L.optionPlaceholderText,S=L.customOptionPlaceholderText,u=L.pollOptionData;this.currentNumPollOptions>=L.maxPollOptions||(L={liveChatPollOptionInput:{inputData:{placeholder:S[this.currentNumPollOptions]||N,maxCharacterLimit:Z},maxCharacterLimit:Z,minCharacterLimit:L.minPollOptionChars,hasPrefilledText:!!S[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=L.minPollOptions}},u.charCountErrorText&&
(L.liveChatPollOptionInput.charCountErrorText=u.charCountErrorText),u.charsRemainingAltLabel&&(L.liveChatPollOptionInput.charsRemainingAltLabel=u.charsRemainingAltLabel),u.removeOptionAltText&&(L.liveChatPollOptionInput.removeOptionAltText=u.removeOptionAltText),this.push("pollOptionsData",L),u=Array.from(_.QJ(_.QJ(this.hostElement).querySelector("#poll-options")).children),u.forEach(function(T,W){T.polymerController.set("data.id",W)}),_.QJ(u[u.length-1]).querySelector("#input").focus())};
_.t.getPollOptionInputValues=function(){var L=this,Z=[],N=_.QJ(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),S=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(N).forEach(function(u,T){var W=null;u=u.getLiveChatRichMessageInput();var V;(u==null?0:(V=u.textSegments)==null?0:V.length)?W=_.UC(u):S[T]&&(W=L.formattedStringToLiveChatRichMessageInput(S[T]));Z.push(W)});
return Z};
_.t.requestCreateAndStartPoll=function(L){var Z=this.getPollOptionInputValues();if(!Z.some(function(S){return!S})){Z={optionText:Z};
var N=_.QJ(_.QJ(this.hostElement).querySelector("#poll-question")).firstChild;N&&N.liveChatRichMessageInput&&(Z.questionText=_.UC(N.liveChatRichMessageInput));_.H2(this.hostElement,[L,Z])}};
_.t.selectedChanged=function(){if(this.selected){var L=_.QJ(_.QJ(this.hostElement).querySelector("#start-button")).firstElementChild;if(L){var Z;(Z=_.QJ(L).querySelector("#button")||_.XB(L).querySelector("button"))==null||Z.focus()}}};
_.t.handleTextInputChanged=function(L){var Z;((Z=L.target)==null?void 0:Z.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=L.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.t.handleStartButtonAction=function(L){L.detail.actionName==="yt-service-request"&&(L.stopPropagation(),(L=L.detail.args[1])&&this.requestCreateAndStartPoll(L))};
_.t.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.t.handleServiceRequestCompleted=function(L){this.createPollRequestInFlight=!1;(L=L.detail&&L.detail.data)&&L.success&&(_.QT(this.hostElement,"picker-cancelled"),_.XJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.t.onCloseClick=function(){_.QT(this.hostElement,"picker-cancelled");_.XJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.t.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.t.handlePollEditorInputClosed=function(L){var Z=this.pollOptionsData.findIndex(function(N){return N.liveChatPollOptionInput.id===L.detail.id});
this.splice("pollOptionsData",Z,1);this.isValidPoll=this.getIsValidPoll()};
_.t.onPickerCancelled=function(){this.reset()};
_.t.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var L=_.QJ(_.QJ(this.hostElement).querySelector("#poll-question")).firstChild;L&&L.setLiveChatRichMessageInput(null);if(L=_.QJ(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){L=_.O(Array.from(L));for(var Z=L.next();!Z.done;Z=L.next())Z.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.t.formattedStringToLiveChatRichMessageInput=function(L){return L.simpleText?{text_segments:[L.simpleText]}:{text_segments:L.runs}};
_.gd.Object.defineProperties(AH.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(HZt,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
AH.prototype.onPickerCancelled=AH.prototype.onPickerCancelled;AH.prototype.handlePollEditorInputClosed=AH.prototype.handlePollEditorInputClosed;AH.prototype.handleServiceRequestCompleted=AH.prototype.handleServiceRequestCompleted;AH.prototype.handleServiceRequestSent=AH.prototype.handleServiceRequestSent;AH.prototype.handleTextInputChanged=AH.prototype.handleTextInputChanged;AH.prototype.selectedChanged=AH.prototype.selectedChanged;AH.prototype.isValidPollChanged=AH.prototype.isValidPollChanged;
AH.prototype.shouldInitializePollChanged=AH.prototype.shouldInitializePollChanged;AH.prototype.dataChanged=AH.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],AH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],AH.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],AH.prototype,"modern",void 0);
_.r([_.Y(),_.Q("design:type",Object)],AH.prototype,"closeButtonOverrides",void 0);_.r([_.Y(),_.Q("design:type",Object)],AH.prototype,"startButtonOverrides",void 0);_.r([_.Y(),_.Q("design:type",Object)],AH.prototype,"addOptionButtonOverrides",void 0);_.r([_.Y({computed:"computeId(data.id)",reflectToAttribute:!0}),_.Q("design:type",String)],AH.prototype,"id",void 0);_.r([_.Y({value:function(){return[]}}),
_.Q("design:type",Array)],AH.prototype,"pollOptionsData",void 0);_.r([_.w("pollEditorInfoWithDefaults"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],AH.prototype,"pollQuestionData",null);_.r([_.Y({value:0}),_.Q("design:type",Number)],AH.prototype,"pollQuestionCharacterCount",void 0);_.r([_.w("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],AH.prototype,"pollQuestionCharactersRemaining",null);
_.r([_.Y({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.Q("design:type",Boolean)],AH.prototype,"overQuestionCharacterLimit",void 0);_.r([_.w("data.pollEditorInfo"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],AH.prototype,"pollEditorInfoWithDefaults",null);_.r([_.Y({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.Q("design:type",Number)],AH.prototype,"currentNumPollOptions",void 0);
_.r([_.Y({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],AH.prototype,"hasMaxNumPollOptions",void 0);_.r([_.w("pollEditorInfoWithDefaults","pollOptionsData"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],AH.prototype,"shouldInitializePoll",null);_.r([_.Y(),_.Q("design:type",Object)],AH.prototype,"isValidPoll",void 0);
_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],AH.prototype,"createPollRequestInFlight",void 0);_.r([_.Y(),_.Q("design:type",Object)],AH.prototype,"selected",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.Q("design:type",Boolean)],AH.prototype,"showQuestionErrorMessage",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AH.prototype,"dataChanged",null);_.r([_.iA("shouldInitializePoll"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AH.prototype,"shouldInitializePollChanged",null);_.r([_.iA("isValidPoll"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AH.prototype,"isValidPollChanged",null);
_.r([_.iA("selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AH.prototype,"selectedChanged",null);_.r([_.SA("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],AH.prototype,"handleTextInputChanged",null);
_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AH.prototype,"handleServiceRequestSent",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],AH.prototype,"handleServiceRequestCompleted",null);
_.r([_.SA("yt-live-chat-poll-editor-input-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],AH.prototype,"handlePollEditorInputClosed",null);_.r([_.SA("picker-cancelled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AH.prototype,"onPickerCancelled",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],AH);
_.m(AH,"yt-live-chat-poll-editor-panel-renderer",function(){if(A38===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;XW8===void 0&&(XW8=document.createElement("template"));var S=XW8;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);A38=L}L=A38;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var BvG;var xuq;var HH=function(){return _.e.apply(this,arguments)||this};
_.f(HH,_.e);HH.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
HH.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.gd.Object.defineProperties(HH.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var L,Z;return(L=this.data)==null?void 0:(Z=L.title)==null?void 0:Z.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var L;return _.KY((L=this.data)==null?void 0:L.onTapCommand)}}});
_.r([_.y(_.o3.YtEndpointBehavior),_.Q("design:type",Object)],HH.prototype,"ytEndpointBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],HH.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],HH.prototype,"itemId",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],HH.prototype,"hasPromotion",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],HH.prototype,"innertubeCommand",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],HH);
_.m(HH,"yt-live-chat-product-picker-panel-item-view-model",function(){if(xuq===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;BvG===void 0&&(BvG=document.createElement("template"));var S=BvG;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);xuq=L}L=xuq;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var qrn;var Lzq;var BH=function(){var L=_.e.apply(this,arguments)||this;L.id="product-picker";L.selected=!1;L.closeButtonId="close-button";L.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return L};
_.f(BH,_.e);_.t=BH.prototype;_.t.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.t.observeSelected=function(){this.selected&&this.hostElement.focus();var L=_.QJ(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");L.length&&L[0].focus()};
_.t.onCloseBuyFlow=function(){_.QT(this.hostElement,"picker-cancelled")};
_.t.onCloseClick=function(){_.QT(this.hostElement,"picker-cancelled");var L;((L=this.data)==null?0:L.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.n(this.data.closeButton,_.NU))};
_.t.onCloseEngageWithAudienceEditorPanels=function(){_.QT(this.hostElement,"picker-cancelled")};
BH.prototype.observeSelected=BH.prototype.observeSelected;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],BH.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],BH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],BH.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BH.prototype,"id",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BH.prototype,"selected",void 0);_.r([_.Y(),_.Q("design:type",Object)],BH.prototype,"closeButtonId",void 0);_.r([_.iA("selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BH.prototype,"observeSelected",null);
_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],BH);
_.m(BH,"yt-live-chat-product-picker-panel-view-model",function(){if(Lzq===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;qrn===void 0&&(qrn=document.createElement("template"));var S=qrn;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Lzq=L}L=Lzq;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var ZQG;var No7;var xf=function(){var L=_.e.apply(this,arguments)||this;L.iconId="";L.icon="";L.disabled=!1;L.systemIcons=_.c("kevlar_system_icons");return L};
_.f(xf,_.e);_.t=xf.prototype;_.t.computeIconId=function(L){return L&&L.icon&&L.icon.iconType?L.icon.iconType.toLowerCase():""};
_.t.computeIcon=function(L){return L&&L.icon&&L.icon.iconType?(L=L.icon.iconType.toLowerCase(),(L.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+L):""};
_.t.computeDisabled=function(L){return!!L};
_.t.computeCommand=function(L,Z){return Z?void 0:L};
_.t.computeTooltip=function(L,Z){return Z&&L?L:""};
_.t.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.gd.Object.defineProperties(xf.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var L="",Z,N,S;if((Z=this.data)==null?0:(N=Z.text)==null?0:(S=N.runs)==null?0:S.length)L=this.data.text.runs[0].text||"";else{var u,T;if((u=this.data)==null?0:(T=u.text)==null?0:T.simpleText)L=this.data.text.simpleText}var W,V,M;if((W=this.data)==null?0:(V=W.subtext)==null?0:(M=V.runs)==null?0:M.length)L&&(L+=". "),L+=this.data.subtext.runs[0].text||"";else{var G,D;if((G=this.data)==null?0:(D=G.subtext)==
null?0:D.simpleText)L&&(L+=". "),L+=this.data.subtext.simpleText}return L}}});
_.r([_.y(_.o3.YtEndpointBehavior),_.Q("design:type",Object)],xf.prototype,"ytEndpointBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],xf.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],xf.prototype,"data",void 0);_.r([_.Y({computed:"computeIconId(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],xf.prototype,"iconId",void 0);
_.r([_.Y({computed:"computeIcon(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],xf.prototype,"icon",void 0);_.r([_.Y({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.Q("design:type",Object)],xf.prototype,"disabled",void 0);_.r([_.Y({computed:"computeCommand(data.command, disabled)"}),_.Q("design:type",Object)],xf.prototype,"command",void 0);_.r([_.Y({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.Q("design:type",String)],xf.prototype,"tooltip",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xf.prototype,"systemIcons",void 0);_.r([_.w("data.text","data.subtext"),_.Y(),_.Q("design:type",String),_.Q("design:paramtypes",[])],xf.prototype,"ariaLabel",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],xf);
_.m(xf,"yt-live-chat-product-button-renderer",function(){if(No7===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;ZQG===void 0&&(ZQG=document.createElement("template"));var S=ZQG;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);No7=L}L=No7;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var S6n;var iQV;var qi=function(){var L=_.e.apply(this,arguments)||this;L.selected=!1;L.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 L};
_.f(qi,_.e);_.t=qi.prototype;_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.t.computeId=function(L){return L.id||""};
_.t.onCloseClick=function(){_.QT(this.hostElement,"picker-cancelled")};
_.t.observeSelected=function(){this.selected&&this.hostElement.focus();var L=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");L.length&&L[0].focus()};
_.t.onCloseBuyFlow=function(){_.QT(this.hostElement,"picker-cancelled")};
_.t.onCloseEngageWithAudienceEditorPanels=function(){_.QT(this.hostElement,"picker-cancelled")};
qi.prototype.observeSelected=qi.prototype.observeSelected;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],qi.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],qi.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],qi.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],qi.prototype,"data",void 0);
_.r([_.Y({computed:"computeId(data)",reflectToAttribute:!0}),_.Q("design:type",String)],qi.prototype,"id",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],qi.prototype,"selected",void 0);_.r([_.iA("selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qi.prototype,"observeSelected",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],qi);
_.m(qi,"yt-live-chat-product-picker-renderer",function(){if(iQV===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;S6n===void 0&&(S6n=document.createElement("template"));var S=S6n;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);iQV=L}L=iQV;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var uWw;var Tof;var tXn;var OQ7;var Lp=function(){return _.e.apply(this,arguments)||this};
_.f(Lp,_.e);Lp.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()};
Lp.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Lp.prototype.created=function(){this.ids={background:_.Kr(),maskOne:_.Kr(),maskTwo:_.Kr(),gradient:_.Kr(),largeBackground:_.Kr(),largeGradientOne:_.Kr(),largeGradientTwo:_.Kr(),largeGradientPath:_.Kr()}};
Lp.prototype.maybeLoadAnimationBackground=Lp.prototype.maybeLoadAnimationBackground;_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Lp.prototype,"useLargeBackground",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Lp.prototype,"useAnimationBackground",void 0);_.r([_.Y({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.Q("design:type",Boolean)],Lp.prototype,"useRegularBackground",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Lp.prototype,"ids",void 0);_.r([_.Y(),_.Q("design:type",Object)],Lp.prototype,"lottieAnimation",void 0);_.r([_.TX("#animation-background"),_.Q("design:type",HTMLDivElement)],Lp.prototype,"animationBackground",void 0);_.r([_.iA("useAnimationBackground"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Lp.prototype,"maybeLoadAnimationBackground",null);
_.r([_.ch({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Lp);
_.m(Lp,"yt-live-interactivity-component-background",function(){if(OQ7===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;tXn===void 0&&(tXn=document.createElement("template"));var S=tXn;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);OQ7=L}L=OQ7;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Zq=function(){var L=_.e.apply(this,arguments)||this;L.characterCount=0;L.showInputErrorMessage=!1;L.startQnaRequestInFlight=!1;L.modern=_.c("web_button_rework_with_live");L.buttonOverrides={style:"mono",type:"filled"};L.closeButtonOverrides={iconPosition:"icon-only"};L.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return L};
_.f(Zq,_.e);_.t=Zq.prototype;
_.t.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]]"}}}}}};
_.t.onCharacterCountChanged=function(L){var Z,N,S,u,T=(N=_.n(this==null?void 0:(Z=this.data)==null?void 0:Z.creatorCallForQuestions,E_n))==null?void 0:(S=N.inputField)==null?void 0:(u=S.liveChatTextInputFieldRenderer)==null?void 0:u.maxCharacterLimit,W,V;T!=null&&(L==null?void 0:(W=L.detail)==null?void 0:W.characterCount)!=null&&_.n(this==null?void 0:(V=this.data)==null?void 0:V.startButton,_.xZ)&&(Z=L.detail.characterCount>T,this.set("data.startButton.buttonRenderer.isDisabled",L.detail.characterCount===
0||Z),this.showInputErrorMessage=Z)};
_.t.onCloseClick=function(){_.QT(this.hostElement,"picker-cancelled");_.XJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.t.onPickerCancelled=function(){var L=_.QJ(this.hostElement).querySelector("#qna-creator-text-input-field");L&&L.setLiveChatRichMessageInput(null)};
_.t.handleOpenQnaStartPanel=function(){var L=_.QJ(this.hostElement).querySelector("#qna-creator-text-input-field");L&&L.focus()};
_.t.handleStartButtonAction=function(L){var Z=this;if(L.detail.actionName==="yt-service-request"&&(L.stopPropagation(),L=L.detail.args[1])){var N=_.QJ(this.hostElement).querySelector("#qna-creator-text-input-field"),S;(N==null?0:(S=N.liveChatRichMessageInput)==null?0:S.textSegments)&&N.liveChatRichMessageInput.textSegments.length!==0&&(S={rich_message:_.UC(N.liveChatRichMessageInput)},_.H2(this.hostElement,[L,S]).then(function(){_.QT(Z.hostElement,"picker-cancelled")}))}};
_.t.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.t.handleServiceRequestCompleted=function(L){var Z;L=L==null?void 0:(Z=L.detail)==null?void 0:Z.data;(L==null?0:L.actions)&&L.actions.length>0?this.startQnaRequestInFlight=!1:_.XJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.t.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Zq.prototype.handleServiceRequestError=Zq.prototype.handleServiceRequestError;Zq.prototype.handleServiceRequestCompleted=Zq.prototype.handleServiceRequestCompleted;Zq.prototype.handleServiceRequestSent=Zq.prototype.handleServiceRequestSent;Zq.prototype.onPickerCancelled=Zq.prototype.onPickerCancelled;Zq.prototype.onCharacterCountChanged=Zq.prototype.onCharacterCountChanged;_.r([_.Y(),_.Q("design:type",Object)],Zq.prototype,"characterCount",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Zq.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Zq.prototype,"showInputErrorMessage",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Zq.prototype,"startQnaRequestInFlight",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Zq.prototype,"modern",void 0);_.r([_.Y(),_.Q("design:type",Object)],Zq.prototype,"buttonOverrides",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Zq.prototype,"closeButtonOverrides",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Zq.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Je),_.Q("design:type",Object)],Zq.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.y(_.LD.YtLiveChatItemBehavior),_.Q("design:type",_.Zu)],Zq.prototype,"ytLiveChatItemBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Zq.prototype,"ytActionHandlerBehavior",void 0);_.r([_.SA("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Zq.prototype,"onCharacterCountChanged",null);_.r([_.SA("picker-cancelled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Zq.prototype,"onPickerCancelled",null);
_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Zq.prototype,"handleServiceRequestSent",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Zq.prototype,"handleServiceRequestCompleted",null);
_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Zq.prototype,"handleServiceRequestError",null);_.r([_.P({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Zq);
_.m(Zq,"yt-live-chat-qna-start-panel-renderer",function(){if(Tof===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;uWw===void 0&&(uWw=document.createElement("template"));var S=uWw;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Tof=L}L=Tof;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Wzi;var VXV;var Nn=function(){return _.e.apply(this,arguments)||this};
_.f(Nn,_.e);Nn.prototype.dismiss=function(){_.QT(this.hostElement,"yt-live-chat-error-message-dismiss")};
Nn.prototype.edit=function(){_.QT(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.r([_.Y(),_.Q("design:type",Object)],Nn.prototype,"data",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Nn);
_.m(Nn,"yt-live-chat-text-actions-error-message-renderer",function(){if(VXV===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Wzi===void 0&&(Wzi=document.createElement("template"));var S=Wzi;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);VXV=L}L=VXV;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var bQq;var MXY;var gjM;var GTY;var Sm=function(){var L=_.e.apply(this,arguments)||this;L.isDarkTheme=document.documentElement.hasAttribute("dark");L.newnessDotEligible=!1;return L};
_.f(Sm,_.e);Sm.prototype.sendReaction=function(){var L,Z,N=((L=this.data)==null?void 0:L.emojiId)||((Z=this.data)==null?void 0:Z.emoteId),S;N&&((S=this.data)==null?0:S.shouldTriggerAnimation)&&_.XJ(this.hostElement,"yt-create-user-reaction-animation",[N]);var u;(L=_.KY((u=this.data)==null?void 0:u.onTap))&&_.LY(L,this.hostElement);this.showNewnessDot&&_.XJ(this.hostElement,"yt-hide-newness-dot")};
Sm.prototype.onClick=function(L){(!L||L.clientX||L.clientY)&&this.sendReaction()};
Sm.prototype.onKeyDown=function(L){L.key!=="Enter"&&L.key!==" "||L.repeat||this.sendReaction()};
_.gd.Object.defineProperties(Sm.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!!(((L=this.data)==null?0:L.emojiId)||((Z=this.data)==null?0:Z.emoteId))}}});
_.r([_.Y(),_.Q("design:type",Object)],Sm.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Sm.prototype,"isDarkTheme",void 0);_.r([_.Y(),_.Q("design:type",Object)],Sm.prototype,"newnessDotEligible",void 0);_.r([_.w("data.maybeShowNewnessDot"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Sm.prototype,"showNewnessDot",null);_.r([_.w("data.emojiId","data.emoteId"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Sm.prototype,"useYtImage",null);
_.r([_.ch({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Sm);
_.m(Sm,"yt-reaction-control-panel-button-view-model",function(){if(GTY===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;gjM===void 0&&(gjM=document.createElement("template"));var S=gjM;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);GTY=L}L=GTY;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Fzw;var $O6;var i$=function(){var L=_.e.apply(this,arguments)||this;L.reactionControlPanelExpanded=!1;L.isDarkTheme=document.documentElement.hasAttribute("dark");L.newnessDotEligible=!1;return L};
_.f(i$,_.e);_.t=i$.prototype;_.t.expandedButtonsChanged=function(){var L,Z;_.Ld(this.hostElement,{"--expanded-buttons-height":((Z=(L=this.expandedButtonsData)==null?void 0:L.length)!=null?Z:0)*36+"px"})};
_.t.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}}};
_.t.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.t.onMouseLeave=function(){var L=this;this.collapseTimer=setTimeout(function(){L.reactionControlPanelExpanded=!1},500)};
_.t.onFocusIn=function(){this.onMouseEnter()};
_.t.onFocusOut=function(){this.onMouseLeave()};
_.t.onCollapsedButtonFocusIn=function(){var L=this;setTimeout(function(){var Z;(Z=L.expandedButtons.querySelector("button"))==null||Z.focus()},100)};
_.t.onCollapsedButtonFocusOut=function(L){L.stopPropagation()};
_.gd.Object.defineProperties(i$.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var L,Z;return _.Py.unsafeClone((L=this.liveReactionsData)==null?void 0:L.emojiButtonData)||((Z=this.data)==null?void 0:Z.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var L;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((L=this.data)==null||!L.maybeShowNewnessDot)}}});
i$.prototype.expandedButtonsChanged=i$.prototype.expandedButtonsChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],i$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Je),_.Q("design:type",Object)],i$.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],i$.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],i$.prototype,"reactionControlPanelExpanded",void 0);_.r([_.Y({selectorArgs:["data.liveReactionsDataEntityKey"],selector:gRi}),_.Q("design:type",Object)],i$.prototype,"liveReactionsData",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],i$.prototype,"isDarkTheme",void 0);_.r([_.Y(),_.Q("design:type",Object)],i$.prototype,"newnessDotEligible",void 0);
_.r([_.w("liveReactionsData","data.expandedButtons"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],i$.prototype,"expandedButtonsData",null);_.r([_.w("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Object),_.Q("design:paramtypes",[])],i$.prototype,"showNewnessDot",null);_.r([_.TX("#expanded-buttons"),_.Q("design:type",HTMLElement)],i$.prototype,"expandedButtons",void 0);
_.r([_.iA("expandedButtonsData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],i$.prototype,"expandedButtonsChanged",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],i$);
_.m(i$,"yt-reaction-control-panel-view-model",function(){if($O6===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Fzw===void 0&&(Fzw=document.createElement("template"));var S=Fzw;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);$O6=L}L=$O6;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var u$=new _.Bx("yt-live-chat"),DOq=Date.parse("2024-7-24"),TG=function(){var L=_.e.apply(this,arguments)||this;L.emojiManager=_.qN;L.newnessDotEligible=!1;L.newnessDotImpressionCounted=!1;L.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return L};
_.f(TG,_.e);_.t=TG.prototype;_.t.emojiCustomizationEnabledChanged=function(){var L;((L=this.data)==null?0:L.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((L=u$.getCreationTime("emoji-customization-count"))&&L<DOq&&u$.set("emoji-customization-count","0"),L=Number(u$.get("emoji-customization-count"))||0,L<3&&(this.newnessDotEligible=!0,u$.set("emoji-customization-count",(L+1).toString())),this.newnessDotImpressionCounted=!0)};
_.t.hideNewnessDot=function(){this.newnessDotEligible=!1;u$.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.t.handleReactionsMute=function(L){var Z=_.RH(),N=_.Ll(206221),S={checkboxData:{state:L?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};Z&&_.sT(Z,N,S);this.reactionsMuted=L};
_.t.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.t.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}}};
_.gd.Object.defineProperties(TG.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var L;return(!((L=this.liveReactionsData)==null||!L.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
TG.prototype.liveReactionsSettingChanged=TG.prototype.liveReactionsSettingChanged;TG.prototype.emojiCustomizationEnabledChanged=TG.prototype.emojiCustomizationEnabledChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],TG.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],TG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Je),_.Q("design:type",Object)],TG.prototype,"ytLiveChatReduxBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],TG.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],TG.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",_.HS)],TG.prototype,"emojiManager",void 0);_.r([_.Y(),_.Q("design:type",Object)],TG.prototype,"newnessDotEligible",void 0);_.r([_.Y(),_.Q("design:type",Object)],TG.prototype,"newnessDotImpressionCounted",void 0);
_.r([_.Y({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:Gsn}),_.Q("design:type",Boolean)],TG.prototype,"liveReactionsSetting",void 0);_.r([_.Y({selectorArgs:["data.liveReactionsDataEntityKey"],selector:gRi}),_.Q("design:type",Object)],TG.prototype,"liveReactionsData",void 0);_.r([_.Y({value:function(){var L=_.c("enable_lwe_web_mute"),Z=u$.get("allow-reactions");return Z===void 0?!1:!Z&&L}}),
_.Q("design:type",Boolean)],TG.prototype,"reactionsMuted",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],TG.prototype,"liveReactionsEnabled",null);_.r([_.iA("data.emojiCustomizationEnabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],TG.prototype,"emojiCustomizationEnabledChanged",null);
_.r([_.iA("liveReactionsEnabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],TG.prototype,"liveReactionsSettingChanged",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],TG);
_.m(TG,"yt-reaction-control-panel-overlay-view-model",function(){if(MXY===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;bQq===void 0&&(bQq=document.createElement("template"));var S=bQq;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);MXY=L}L=MXY;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var lkV={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(L){var Z=this.$.pickers.selected;if(Z){_.QJ(this.hostElement).removeAttribute(Z+"-open");var N="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(N="#picker-buttons",Z==="emoji"&&_.QJ(this.hostElement).querySelector("#emoji-picker-button")&&(N="#emoji-picker-button"));if(N=_.QJ(this.hostElement).querySelector(N).querySelector("#"+Z))N.active=!1}N=L;Z==L&&(N=null);Z!=
L&&_.QJ(this.hostElement).setAttribute(L+"-open","");this.$.pickers.selected=N;_.XJ(this.hostElement,"yt-live-chat-picker-changed",[N])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var t_=function(){var L=_.e.apply(this,arguments)||this;L.numSentMessages=0;L.timeoutDurationMs=0;L.timeoutMs=0;L.lastTimeoutTimeMs=0;L.pendingMessageId="";L.hasFiredInitialFocusActions=!1;L.isBeforeFocusEnabled=!0;L.id="";L.characterCount=0;L.maxCharacterLimit=0;L.remainingCharacterCount=0;L.inputExpanded=!1;L.buttonOverrides={iconPosition:"icon-only"};L.inReplyPanel=!1;L.countdownRatio=0;L.isTooltipVisible=!1;L.tooltipTimeout=1E4;L.systemIcons=_.c("kevlar_system_icons");L.tallerEmojiPicker=_.c("live_chat_taller_emoji_picker");
L.sendReplyMessageInFlight=!1;L.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"};L.onResize=function(){L.maybeToggleCharacterCount()};
return L};
_.f(t_,_.e);_.t=t_.prototype;
_.t.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"}}}};
_.t.attached=function(){window.addEventListener("resize",this.onResize)};
_.t.detached=function(){window.removeEventListener("resize",this.onResize)};
_.t.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.t.sendMessage=function(){var L=this,Z,N,S,u;return _.b(function(T){if(L.sendDisabled)return T.return();L.isTooltipVisible&&_.XJ(L.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(L.data.sendButton&&L.data.sendButton.buttonRenderer){L.input.completeEmojis();Z=L.data.sendButton.buttonRenderer.serviceEndpoint;if(!Z)return T.return();S=((N=_.n(Z,_.Vht))==null?void 0:N.clientIdPrefix)||"";u={client_message_id:S+String(L.numSentMessages++),rich_message:_.UC(L.input.liveChatRichMessageInput)};
L.pendingMessageId=u.client_message_id;L.inReplyPanel&&(L.sendReplyMessageInFlight=!0);_.H2(L.hostElement,[Z,u]);L.input.setLiveChatRichMessageInput(null)}_.w7(T)})};
_.t.handleSendButtonAction=function(L){L.detail.actionName==="yt-service-request"&&(L.stopPropagation(),this.sendMessage())};
_.t.onSendCompleted=function(L,Z){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(L=this.get("timeoutDurationUsec",Z.data))&&this.handleTimeout(Number(L)/1E3);this.errorMessage=this.get("errorMessage",Z.data);this.pendingMessageId=""};
_.t.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.XJ(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.t.handlePickerButtonToggle=function(L){L=L.detail.targetId;this.ytPickerBehavior.togglePicker_(L);if(L==="emoji")this.input.focus();else if(L==="qna-start-panel"){var Z,N;(Z=_.QJ(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(N=Z.querySelector("#qna-creator-text-input-field"))==null||N.focus()}};
_.t.onComponentReplaced=function(L){var Z,N;L.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((Z=L.replacement.liveChatMessageInputRenderer)==null?0:(N=Z.headerRenderer)==null?0:N.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.t.onEmojiSelect=function(L){this.input.focus();this.input.insertEmoji(L.detail)};
_.t.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.t.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.XJ(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.XJ(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.t.onOpenPopupAction=function(L,Z){var N=this;Z===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.XJ(N.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.t.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.t.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.t.focusChanged=function(){this.maybeToggleCharacterCount()};
_.t.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var L=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",L>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.t.computeId=function(){return this.data&&this.data.targetId||""};
_.t.computeSendDisabled=function(L,Z,N,S){L=!!(!L||Z&&L>Z||S);(Z=_.QJ(this.hostElement).querySelector("#send-button"))&&Z.children.length&&(Z.children[0].disabled=L);return L};
_.t.handleTimeout=function(L){this.timeoutDurationMs=this.timeoutMs=L;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.t.updateTimeout=function(L){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(L-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=L,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.t.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.t.onErrorMessageEdit=function(L){this.input.setLiveChatRichMessageInput(L.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.t.errorMessageChanged=function(){var L=this;_.Uk(function(){_.XJ(L.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.t.computeAuthorNameColor=function(L){var Z;if(_.c("live_chat_author_name_color_usernames")&&(L==null?0:(Z=L.authorName)==null?0:Z.simpleText))return _.FGH(_.$xw(L.authorName.simpleText));if(_.c("live_chat_seed_color_usernames")&&(L==null?0:L.authorSeedColorArgb))return _.FGH(_.AJ(L.authorSeedColorArgb));if(_.c("live_chat_colored_usernames"))return"#cc0000";var N;return _.c("live_chat_simple_color_usernames")&&(L==null?0:(N=L.authorName)==null?0:N.simpleText)&&(L==null?0:L.authorUsernameColorLight)&&
(L==null?0:L.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.AJ(L.authorUsernameColorDark):_.AJ(L.authorUsernameColorLight):""};
_.t.onIsTooltipVisibleChanged=function(){var L=_.QJ(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){L.hidden=!1;L.setAttribute("role","alert")},0):(L.hidden=!0,L.removeAttribute("role"))};
_.t.onFocusedChanged=function(L){this.inputFocused=L.detail.value};
_.gd.Object.defineProperties(t_.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 L;return!((L=this.data)==null||!L.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?void 0:(Z=L.pickers)==null?void 0:Z.find(function(N){return N.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var L=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return L?this.ytRendererBehavior.getSimpleString(L):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
t_.prototype.onIsTooltipVisibleChanged=t_.prototype.onIsTooltipVisibleChanged;t_.prototype.errorMessageChanged=t_.prototype.errorMessageChanged;t_.prototype.onErrorMessageEdit=t_.prototype.onErrorMessageEdit;t_.prototype.onErrorMessageDismiss=t_.prototype.onErrorMessageDismiss;t_.prototype.focusChanged=t_.prototype.focusChanged;t_.prototype.characterCountChanged=t_.prototype.characterCountChanged;t_.prototype.onEmojiSelect=t_.prototype.onEmojiSelect;t_.prototype.handlePickerButtonToggle=t_.prototype.handlePickerButtonToggle;
t_.prototype.onSendError=t_.prototype.onSendError;t_.prototype.onSendCompleted=t_.prototype.onSendCompleted;t_.prototype.sendMessage=t_.prototype.sendMessage;t_.prototype.dataChanged=t_.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],t_.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.y(lkV.YtPickerBehavior),_.Q("design:type",Object)],t_.prototype,"ytPickerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],t_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Cf.YtLiveChatTooltipTargetingBehavior),_.Q("design:type",Object)],t_.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],t_.prototype,"hasFiredInitialFocusActions",void 0);
_.r([_.Y(),_.Q("design:type",Object)],t_.prototype,"isBeforeFocusEnabled",void 0);_.r([_.Y(),_.Q("design:type",Object)],t_.prototype,"data",void 0);_.r([_.Y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Q("design:type",Object)],t_.prototype,"id",void 0);_.r([_.Y(),_.Q("design:type",Object)],t_.prototype,"characterCount",void 0);_.r([_.Y(),_.Q("design:type",Object)],t_.prototype,"maxCharacterLimit",void 0);
_.r([_.Y(),_.Q("design:type",Object)],t_.prototype,"remainingCharacterCount",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],t_.prototype,"inputExpanded",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],t_.prototype,"inputFocused",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],t_.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.r([_.Y(),_.Q("design:type",_.io)],t_.prototype,"participantsManager",void 0);
_.r([_.Y(),_.Q("design:type",Object)],t_.prototype,"buttonOverrides",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],t_.prototype,"inReplyPanel",void 0);_.r([_.w("characterCount, maxCharacterLimit, countdownActive"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],t_.prototype,"sendDisabled",null);_.r([_.Y(),_.Q("design:type",Object)],t_.prototype,"countdownRatio",void 0);
_.r([_.w("countdownRatio"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],t_.prototype,"countdownStrokeDashOffset",null);_.r([_.w("countdownRatio"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],t_.prototype,"countdownActive",null);_.r([_.w("data.interactionMessage"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],t_.prototype,"hasInteractionMessage",null);
_.r([_.w("data.emojiPickerButton"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],t_.prototype,"hasEmojiPickerButton",null);_.r([_.w("data, characterCount"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],t_.prototype,"showAvatar",null);_.r([_.w("data.pickers"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],t_.prototype,"hasProductPickerPanelViewModel",null);
_.r([_.Y(),_.Q("design:type",Object)],t_.prototype,"errorMessage",void 0);_.r([_.Y(),_.Q("design:type",Object)],t_.prototype,"genericErrorMessage",void 0);_.r([_.Y(),_.Q("design:type",Object)],t_.prototype,"isTooltipVisible",void 0);_.r([_.Y(),_.Q("design:type",Object)],t_.prototype,"tooltipTimeout",void 0);_.r([_.w("data.onInitialFocusCommand"),_.Q("design:type",String),_.Q("design:paramtypes",[])],t_.prototype,"tooltipMessage",null);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],t_.prototype,"systemIcons",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],t_.prototype,"tallerEmojiPicker",void 0);_.r([_.w("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],t_.prototype,"authorNameColor",null);_.r([_.Y(),_.Q("design:type",Object)],t_.prototype,"sendReplyMessageInFlight",void 0);_.r([_.TX("#input"),_.Q("design:type",_.z8L)],t_.prototype,"input",void 0);
_.r([_.TX("#count"),_.Q("design:type",HTMLElement)],t_.prototype,"count",void 0);_.r([_.TX("#input-container"),_.Q("design:type",HTMLElement)],t_.prototype,"inputContainer",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],t_.prototype,"dataChanged",null);_.r([_.SA("yt-live-chat-send-message"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],t_.prototype,"sendMessage",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event,_.EC]),_.Q("design:returntype")],t_.prototype,"onSendCompleted",null);_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],t_.prototype,"onSendError",null);
_.r([_.SA("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],t_.prototype,"handlePickerButtonToggle",null);_.r([_.SA("yt-emoji-select"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],t_.prototype,"onEmojiSelect",null);
_.r([_.iA("characterCount"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],t_.prototype,"characterCountChanged",null);_.r([_.iA("inputFocused"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],t_.prototype,"focusChanged",null);_.r([_.SA("yt-live-chat-error-message-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],t_.prototype,"onErrorMessageDismiss",null);
_.r([_.SA("yt-live-chat-error-message-edit"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],t_.prototype,"onErrorMessageEdit",null);_.r([_.iA("errorMessage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],t_.prototype,"errorMessageChanged",null);_.r([_.iA("isTooltipVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],t_.prototype,"onIsTooltipVisibleChanged",null);
_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],t_);
_.m(t_,"yt-live-chat-message-input-renderer",function(){if(PQw===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Es6===void 0&&(Es6=document.createElement("template"));var S=Es6;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);PQw=L}L=PQw;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var vjn;var ojn;var OP=function(){var L=_.e.apply(this,arguments)||this;L.systemIcons=_.c("kevlar_system_icons");L.firedOnClickCommand=!1;L.inReplyPanel=!1;return L};
_.f(OP,_.e);
OP.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"}}}};
OP.prototype.onButtonToggle=function(L){L.target.disabled||this.ytPickerBehavior.togglePicker_(L.detail.targetId)};
OP.prototype.onClick=function(){var L=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.XJ(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return L.firedOnClickCommand=!1},5E3))};
_.gd.Object.defineProperties(OP.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?void 0:(Z=L.panels)==null?void 0:Z.find(function(N){return N.liveChatProductPickerPanelViewModel}))!==void 0}}});
OP.prototype.onButtonToggle=OP.prototype.onButtonToggle;_.r([_.y(lkV.YtPickerBehavior),_.Q("design:type",Object)],OP.prototype,"ytPickerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],OP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],OP.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],OP.prototype,"systemIcons",void 0);_.r([_.Y({reflectToAttribute:!1}),_.Q("design:type",Object)],OP.prototype,"firedOnClickCommand",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],OP.prototype,"inReplyPanel",void 0);_.r([_.w("data.pickers"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],OP.prototype,"hasProductPickerPanelViewModel",null);
_.r([_.SA("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],OP.prototype,"onButtonToggle",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],OP);
_.m(OP,"yt-live-chat-restricted-participation-renderer",function(){if(ojn===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;vjn===void 0&&(vjn=document.createElement("template"));var S=vjn;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);ojn=L}L=ojn;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var WG=function(){var L=_.e.apply(this,arguments)||this;L.genericErrorMessage=_.s9("Error, try again.");L.inReplyPanel=!1;L.hideBorder=!1;return L};
_.f(WG,_.e);WG.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}}}}}};
_.gd.Object.defineProperties(WG,{template:{configurable:!0,enumerable:!0,get:function(){return du9()}}});
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],WG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],WG.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],WG.prototype,"genericErrorMessage",void 0);_.r([_.Y(),_.Q("design:type",Object)],WG.prototype,"inReplyPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],WG.prototype,"hideBorder",void 0);
_.r([_.ch({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],WG);_.m(WG,"yt-live-chat-engagement-panel-input-renderer",function(){return du9()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var RGn,caG;RGn=_.Ll(115994);caG=_.Ll(115993);_.Vt=function(L,Z,N){var S=this;var u=N.dragDownAction;this.layer=0;this.JSC$22780_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return S.dragDownAction()}}}};
this.JSC$22780_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return S.dragDownAction()}}}};
this.fullscreen=!1;var T=_.tC();_.yn(T,RGn,this.layer);_.yn(T,caG,this.layer);this.dragDownAction=function(){u();_.ew(T,{visualElement:S.fullscreen?RGn:caG})};
this.gesture=new _.Pf(L,Z,this.getConfig(!1),"pandown");this.attach()};
_.Vt.prototype.attach=function(){this.gesture.attach()};
_.Vt.prototype.detach=function(){this.gesture.detach()};
_.Vt.prototype.update=function(L){this.fullscreen=L;var Z=this.gesture;L=this.getConfig(L);Z.config=L};
_.Vt.prototype.getConfig=function(L){return L?this.JSC$22780_watchFullScreenConfig:this.JSC$22780_watchConfig};var njM={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(L){if(L&&L.length==1&&Array.isArray(L[0].loggingUrls)){L=_.Py.unsafeClone(L[0]);var Z=this.macros||{},N=this.getAdModuleClient_();if(!N)return _.xP();L.loggingUrls.forEach(function(S){if(S.baseUrl){var u=S.baseUrl;var T=Z;T=T===void 0?{}:T;u=N.getOptions().includes("replaceUrlMacros")?_.TT5(N,"replaceUrlMacros",{url:u,additionalMapping:T}):u;S.baseUrl=u}},this);
L=[L]}return _.H2(this.hostElement,L)},
getAdModuleClient_:function(){var L=_.CV(this);return L?(L=L.getPlayer())?new _.PA(L):null:null}}]};var Kz7;var fkn;var b$=function(){return _.e.apply(this,arguments)||this};
_.f(b$,_.e);b$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],b$.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],b$);
_.m(b$,"ytd-compact-tvfilm-entry-point-renderer",function(){if(fkn!==void 0)return fkn;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return fkn=L},{mode:1});var kTi;var ya8;var wx6;var Mn=function(){return _.e.apply(this,arguments)||this};
_.f(Mn,_.e);Mn.prototype.ready=function(){this.initializeDefs()};
Mn.prototype.initializeDefs=function(){var L=this.meta.byKey("yt-icons"),Z=_.QJ(L).querySelector("#star"),N=_.QJ(L).querySelector("#star_half");L=_.QJ(L).querySelector("#star_border");Z&&this.defs.appendChild(Z.cloneNode(!0));N&&this.defs.appendChild(N.cloneNode(!0));L&&this.defs.appendChild(L.cloneNode(!0))};
Mn.prototype.percentChanged=function(){for(var L=this.rating;L.firstChild;)L.removeChild(L.firstChild);var Z=Math.round(this.percent/10);L=Math.floor(Z/2);Z%=2;var N=5-L-Z;this.appendStars("star",L,0);this.appendStars("star_half",Z,L);this.appendStars("star_border",N,L+Z)};
Mn.prototype.appendStars=function(L,Z,N){for(var S=0;S<Z;S++){var u=(18+this.spacing)*(S+N),T=document.createElementNS("http://www.w3.org/2000/svg","use");_.OX5(T,"#"+L);T.setAttribute("x",""+u);T.setAttribute("y","0");this.rating.appendChild(T)}};
Mn.prototype.percentChanged=Mn.prototype.percentChanged;_.r([_.TX("#defs"),_.Q("design:type",HTMLElement)],Mn.prototype,"defs",void 0);_.r([_.TX("#rating"),_.Q("design:type",HTMLElement)],Mn.prototype,"rating",void 0);_.r([_.Y(),_.Q("design:type",Number)],Mn.prototype,"percent",void 0);_.r([_.Y({value:6}),_.Q("design:type",Number)],Mn.prototype,"spacing",void 0);_.r([_.Y({value:_.Ue.create("iron-meta",{type:"iconset"})}),_.Q("design:type",_.aN)],Mn.prototype,"meta",void 0);
_.r([_.iA("percent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Mn.prototype,"percentChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-ratings"})],Mn);
_.m(Mn,"ytd-ratings",function(){if(wx6!==void 0)return wx6;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return wx6=L},{mode:1});var UOf=function(){return _.e.apply(this,arguments)||this};
_.f(UOf,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],UOf.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],UOf.prototype,"data",void 0);_.r([_.P({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],UOf);
_.m(UOf,"ytd-offer-review-renderer",function(){if(ya8!==void 0)return ya8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ya8=L},{mode:1});var gu=function(){var L=_.e.apply(this,arguments)||this;L.badges=[{textBadge:{label:_.s9("CC")}}];return L};
_.f(gu,_.e);_.t=gu.prototype;_.t.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.t.dataChanged=function(){var L=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(L&&L.commandMetadata&&_.n(L.commandMetadata,_.hc)&&_.n(L.commandMetadata,_.hc).fireAutomatically)_.GR().resolve(_.$s).resolveCommand(L,{form:{element:this.hostElement}});else{var Z;L&&((Z=_.n(L,_.hc))==null?0:Z.fireAutomatically)&&_.GR().resolve(_.$s).resolveCommand(L,{form:{element:this.hostElement}})}};
_.t.isEmptyContent=function(L){return this.isStorefrontEntryPointEmpty(L)&&this.shouldHideOfferModule(L)};
_.t.isStorefrontEntryPointEmpty=function(L){return!L||!L.storefrontEntryPoint};
_.t.shouldHideOfferModule=function(L){return!!L.hideVideoDetails};
_.t.isOfferModuleNavigationInactive=function(L){return!L.navigationEndpoint&&!L.serviceEndpoint};
_.t.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.GR().resolve(_.$s).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
gu.prototype.dataChanged=gu.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],gu.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],gu.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.Q("design:type",Boolean)],gu.prototype,"hidden",void 0);
_.r([_.Y(),_.Q("design:type",Object)],gu.prototype,"badges",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gu.prototype,"dataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],gu);
_.m(gu,"ytd-movie-offer-module-renderer",function(){if(kTi!==void 0)return kTi;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return kTi=L},{mode:1});var Y6V;var eG9=function(){return _.e.apply(this,arguments)||this};
_.f(eG9,_.e);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],eG9.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],eG9.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],eG9);
_.m(eG9,"ytd-media-masthead-renderer",function(){if(Y6V!==void 0)return Y6V;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Y6V=L},{mode:1});var IkV;_.CY(_.p_5,"course-metadata-view-model",{props:{data:_.zl,isOverlay:_.zl}});var GG=function(){var L=_.e.apply(this,arguments)||this;L.isMetadataVisible=!1;L.modernPanels=_.c("kevlar_watch_modern_panels");L.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return L};
_.f(GG,_.e);_.t=GG.prototype;
_.t.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"}}}}};
_.t.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.t.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.t.expanderChanged=function(){var L;if((L=this.data)==null?0:L.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.t.isExpandButtonToggled=function(){var L,Z;return(Z=_.n((L=this.data)==null?void 0:L.expandMetadataButton,_.iD))==null?void 0:Z.isToggled};
_.t.onVisibilityButtonClick=function(){var L;if((L=this.data)==null?0:L.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.t.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
GG.prototype.expanderChanged=GG.prototype.expanderChanged;GG.prototype.dataChanged=GG.prototype.dataChanged;GG.prototype.descriptionChanged=GG.prototype.descriptionChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],GG.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],GG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y([_.nK.YtActionHandlerBehavior]),_.Q("design:type",Object)],GG.prototype,"actionHandlerBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],GG.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],GG.prototype,"isMetadataVisible",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],GG.prototype,"modernPanels",void 0);_.r([_.TX("#expander"),_.Q("design:type",Object)],GG.prototype,"expander",void 0);_.r([_.iA("data.description"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],GG.prototype,"descriptionChanged",null);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],GG.prototype,"dataChanged",null);_.r([_.iA("isMetadataVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],GG.prototype,"expanderChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],GG);
_.m(GG,"ytd-tvfilm-offer-module-renderer",function(){if(IkV!==void 0)return IkV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return IkV=L},{mode:2});var dO8;var Fy=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return L};
_.f(Fy,_.e);Fy.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Fy.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Fy.prototype.onThumbnailTap=function(L){this.data&&this.data.serviceEndpoint&&(_.GR().resolve(_.$s).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),L.stopPropagation())};
Fy.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Fy.prototype.dataChanged=Fy.prototype.dataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Fy.prototype,"rendererBehaviors",void 0);_.r([_.y([_.nK.YtActionHandlerBehavior]),_.Q("design:type",Object)],Fy.prototype,"actionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Fy.prototype,"data",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Fy.prototype,"dataChanged",null);_.r([_.P({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Fy);
_.m(Fy,"ytd-unlimited-offer-module-renderer",function(){if(dO8!==void 0)return dO8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return dO8=L},{mode:1});var akw;var hGn;var $k=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return L};
_.f($k,_.e);$k.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
$k.prototype.handleRelatedChipCommand=function(L){L=_.n(L,NvM);var Z=L.contents;Z?_.Ad(this.hostElement,"yt-item-section-replace-action",[Z,L.targetSectionIdentifier]):_.Ad(this.hostElement,"yt-item-section-continuation-action",[L.continuationData,L.targetSectionIdentifier])};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],$k.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],$k.prototype,"actionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],$k.prototype,"data",void 0);_.r([_.ch({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],$k);
_.m($k,"yt-related-chip-cloud-renderer",function(){if(hGn===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;akw===void 0&&(akw=document.createElement("template"));var S=akw;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);hGn=L}L=hGn;return L},{mode:2});var Dq=function(){var L=_.e.apply(this,arguments)||this;L.isTwoColumns=!0;L.watchFeedBigThumbs=_.c("kevlar_watch_feed_big_thumbs");L.watchFeedBigThumbsOnLockup=_.c("web_watch_next_big_thumbs");L.watchNextGridHideChips=_.c("kevlar_watch_grid_hide_chips");L.eligibleToSwitchToGrid=!0;L.disableShortsShelfHeightOverride=_.c("web_shorts_wn_shelf_ratio_tuning");L.isWatchNextGrid=!1;L.reuseComponents=!_.c("kevlar_watch_grid");L.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return L};
_.f(Dq,_.e);_.t=Dq.prototype;
_.t.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:!_.c("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}}};
_.t.getItemsPath=function(){return"data.results"};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.t.created=function(){this.ytLazyListBehavior.initialCount=1};
_.t.ready=function(){_.Ld(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.t.resultsChanged=function(){if(this.data&&this.data.results){for(var L=this.data.results,Z=null,N=null,S=0;S<L.length;S++)L[S].relatedChipCloudRenderer?Z=L[S].relatedChipCloudRenderer:L[S].itemSectionRenderer&&(N=L[S].itemSectionRenderer);if(Z&&N)for(this.set("data.continuations",[]),L=_.n(Z.content,_.ZDQ).chips,Z=0;Z<L.length;Z++)if(S=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",L[Z]),S.loadCached||!S.contents){S.contents=N.contents;break}}};
_.t.dataChanged=function(){var L=this,Z;if((Z=this.data)!=null&&Z.results&&this.hasAllowedInstreamAd(this.playerData)){if(Z=this.data.results.filter(function(V){return!!V.promotedSparklesWebRenderer})){for(var N=0;N<Z.length;N++){var S=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",Z[N]);
if(S)for(var u=0;u<S.length;u++)S[u]&&S[u].baseUrl&&_.NC(S[u].baseUrl)}this.set("data.results",this.data.results.filter(function(V){return!V.promotedSparklesWebRenderer}))}if(Z=this.data.results.filter(function(V){return!!L.getSparklesAd(V)})){Z=_.O(Z);
for(u=Z.next();!u.done;u=Z.next())if(S=N=void 0,u=(N=this.getSparklesAd(u.value))==null?void 0:(S=N.errorCommand)==null?void 0:S.loggingUrls)for(N=_.O(u),S=N.next();!S.done;S=N.next())(S=S.value)&&S.baseUrl&&_.NC(S.baseUrl);var T,W;this.set("data.results",(T=this.data)==null?void 0:(W=T.results)==null?void 0:W.filter(function(V){return!V.adSlotRenderer}))}}};
_.t.getSparklesAd=function(L){var Z,N;L=_.n((Z=L.adSlotRenderer)==null?void 0:(N=Z.fulfillmentContent)==null?void 0:N.fulfilledLayout,_.yvM);return _.n(L==null?void 0:L.renderingContent,v_M)};
_.t.hasAllowedInstreamAd=function(L){L=this.get("adPlacements",L)||[];for(var Z=0;Z<L.length;Z++){var N=this.get("adPlacementRenderer.config.adPlacementConfig",L[Z]);if(N&&N.suppressDisplayAd)return!0}return!1};
_.t.computeHideUnlimitedOfferModule=function(L,Z){return L&&L.offerModule&&Z&&L.offerModule.unlimitedOfferModuleRenderer&&L.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(Z)?!0:!1};
_.t.hideUnlimitedOfferModuleChanged=function(){var L=_.QJ(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");L&&(L.hidden=this.hideUnlimitedOfferModule)};
_.t.updateLockupContainerTypes=function(L){if(this.eligibleToSwitchToGrid){var Z;(Z=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||Z.forEach(function(N){N.containerType=L})}};
_.t.computeHideTvfilmOfferModule=function(L,Z){var N,S;return!!((L==null?0:(N=L.offerModule)==null?0:(S=N.tvfilmOfferModuleRenderer)==null?0:S.clientShouldSuppressIfCompanionAdDisplayed)&&Z&&this.hasCompanionAds(Z))};
_.t.hideTvfilmOfferModuleChanged=function(){var L=_.QJ(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");L&&(L.hidden=this.hideTvfilmOfferModule)};
_.t.hasCompanionAds=function(L){L=this.get("adPlacements",L)||[];for(var Z=0;Z<L.length;Z++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",L[Z]))return!0;var N=void 0,S=void 0,u=void 0;if(!_.c("web_watch_top_banner_companion_check_killswitch")&&((N=L[Z])==null?0:(S=N.adPlacementRenderer)==null?0:(u=S.renderer)==null?0:u.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.t.hasSuppressedResults=function(L){return L==null?!0:L.filter(function(Z){return!Z.continuationItemRenderer&&!Z.compactPromotedVideoRenderer&&!Z.promotedSparklesWebRenderer}).length===0};
_.t.computeShowButton=function(L,Z){return this.isWatchNextGrid?L:L||this.hasSuppressedResults(Z)};
_.t.showButtonChanged=function(){if(this.isWatchNextGrid){var L=_.QJ(this.hostElement).querySelector("ytd-rich-grid-renderer");L&&this.showButton!==null&&(L.continuationShowButton=this.showButton)}else{L=_.QJ(this.hostElement).querySelector("yt-next-continuation");var Z=_.QJ(this.hostElement).querySelector("ytd-continuation-item-renderer"),N=_.QJ(this.hostElement).querySelector("ytd-item-section-renderer");L&&(L.showButton=this.showButton);Z&&(Z.showButton=this.showButton);N&&(N.continuationShowButton=
this.showButton)}};
_.t.continuationTap=function(L){var Z;if(((Z=this.data)==null?void 0:Z.continuations)!=null&&L.target.tagName==="TP-YT-PAPER-BUTTON")for(L=this.data.continuations,Z=0;Z<L.length;Z++)L[Z].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(L[Z].nextContinuationData||{})};
_.t.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("shown-items-changed",this.shownItems))};
_.gd.Object.defineProperties(Dq.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 L;return!((L=this.shownItems)==null||!L.some(function(Z){return!!Z.lockupViewModel||Z.compactVideoRenderer}))}}});
Dq.prototype.shownItemsChangedForBinding=Dq.prototype.shownItemsChangedForBinding;Dq.prototype.showButtonChanged=Dq.prototype.showButtonChanged;Dq.prototype.hideTvfilmOfferModuleChanged=Dq.prototype.hideTvfilmOfferModuleChanged;Dq.prototype.updateLockupContainerTypes=Dq.prototype.updateLockupContainerTypes;Dq.prototype.hideUnlimitedOfferModuleChanged=Dq.prototype.hideUnlimitedOfferModuleChanged;Dq.prototype.dataChanged=Dq.prototype.dataChanged;Dq.prototype.resultsChanged=Dq.prototype.resultsChanged;
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Dq.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.bz.YtLazyListBehavior),_.Q("design:type",Object)],Dq.prototype,"ytLazyListBehavior",void 0);_.r([_.y(_.i_.YtNextContinuationBehavior),_.Q("design:type",Object)],Dq.prototype,"ytNextContinuationBehavior",void 0);
_.r([_.y(_.Sq),_.Q("design:type",Object)],Dq.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Dq.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Dq.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Dq.prototype,"playerData",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],Dq.prototype,"autoFill",void 0);_.r([_.Y({value:60}),_.Q("design:type",Number)],Dq.prototype,"targetFramerate",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Dq.prototype,"isTwoColumns",void 0);_.r([_.Y(),_.Q("design:type",Object)],Dq.prototype,"shownItems",void 0);_.r([_.Y({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.Q("design:type",Boolean)],Dq.prototype,"hideUnlimitedOfferModule",void 0);_.r([_.Y({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.Q("design:type",Boolean)],Dq.prototype,"hideTvfilmOfferModule",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Dq.prototype,"watchFeedBigThumbs",void 0);_.r([_.Y(),_.Q("design:type",Object)],Dq.prototype,"watchFeedBigThumbsOnLockup",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Dq.prototype,"watchNextGridHideChips",void 0);_.r([_.Y(),_.Q("design:type",Object)],Dq.prototype,"eligibleToSwitchToGrid",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Dq.prototype,"disableShortsShelfHeightOverride",void 0);
_.r([_.Y({selector:_.KV,reflectToAttribute:!0}),_.Q("design:type",Object)],Dq.prototype,"isGridViewEnabled",void 0);_.r([_.Y({selector:_.N_w,reflectToAttribute:!0}),_.Q("design:type",Object)],Dq.prototype,"isSwatcherooActive",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Dq.prototype,"showMoreButton",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Dq.prototype,"isWatchNextGrid",void 0);
_.r([_.Y({computed:"computeShowButton(showMoreButton, data.results)"}),_.Q("design:type",Boolean)],Dq.prototype,"showButton",void 0);_.r([_.Vr("data.results.*"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Dq.prototype,"resultsChanged",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Dq.prototype,"dataChanged",null);
_.r([_.iA("hideUnlimitedOfferModule"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Dq.prototype,"hideUnlimitedOfferModuleChanged",null);_.r([_.w("isGridViewEnabled","containsLockups","data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Dq.prototype,"lockupContainerType",null);
_.r([_.iA("lockupContainerType","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[Number]),_.Q("design:returntype")],Dq.prototype,"updateLockupContainerTypes",null);_.r([_.iA("hideTvfilmOfferModule"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Dq.prototype,"hideTvfilmOfferModuleChanged",null);_.r([_.iA("showButton"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Dq.prototype,"showButtonChanged",null);
_.r([_.iA("shownItems"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Dq.prototype,"shownItemsChangedForBinding",null);_.r([_.w("shownItems"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Dq.prototype,"containsLockups",null);
_.m(Dq,"ytd-watch-next-secondary-results-renderer",function(){if(Kz7===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);Kz7=L}L=Kz7;return L},{mode:1});var sZ9;var l$=function(){var L=_.e.apply(this,arguments)||this;L.isCollapsed=!1;L.modernPanels=_.c("kevlar_watch_modern_panels");L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return L};
_.f(l$,_.e);_.t=l$.prototype;_.t.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.t.onDonateTap=function(){var L=this.get("data.donateButton.buttonRenderer.command");if(L){var Z=_.RH(),N=this.get("data.donateButton.buttonRenderer.trackingParams");Z&&N&&_.sT(Z,_.Mg(N));this.ytOpenPopupBehavior.openPopup(L)}};
_.t.onShowMore=function(){this.isCollapsed=!1;var L=_.RH(),Z=this.get("data.expandButton.buttonRenderer.trackingParams");L&&Z&&_.sT(L,_.Mg(Z))};
_.t.onShowLess=function(){this.isCollapsed=!0};
_.t.dataChanged=function(){_.Ld(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.t.onDarkModeToggledAction=function(L){this.isDarkTheme=L};
_.t.handleUpdate=function(L){if(L=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",L))this.set("data.startLabel",L.startLabel),this.set("data.endLabel",L.endLabel),this.set("data.progress",L.progress),this.set("data.amountRaisedLabel",L.amountRaisedLabel),this.dataChanged()};
_.t.handleOpenPopupAction=function(L){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",L)&&_.XJ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.t.computeHeaderBackgroundUrl=function(L,Z){if(L)return Z?L.headerBackgroundDarkUrl:L.headerBackgroundUrl};
_.t.isProgressBarVisible=function(L){return!(!L||L.progress===void 0)};
_.t.headerBackgroundClass=function(){return _.X7("HTML_DIR")==="rtl"?"flip":""};
l$.prototype.dataChanged=l$.prototype.dataChanged;_.r([_.y(_.vS.YtOpenPopupBehavior),_.Q("design:type",Object)],l$.prototype,"ytOpenPopupBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],l$.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],l$.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],l$.prototype,"isCollapsed",void 0);_.r([_.Y({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.Q("design:type",String)],l$.prototype,"headerBackgroundUrl",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],l$.prototype,"isDarkTheme",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],l$.prototype,"modernPanels",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],l$.prototype,"dataChanged",null);_.r([_.P({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],l$);
_.m(l$,"ytd-donation-shelf-renderer",function(){if(sZ9!==void 0)return sZ9;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return sZ9=L},{mode:1});var jZ8;var Ej6=function(){return _.e.apply(this,arguments)||this};
_.f(Ej6,_.e);_.r([_.Y(),_.Q("design:type",Object)],Ej6.prototype,"data",void 0);_.r([_.P({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Ej6);
_.m(Ej6,"ytd-donation-unavailable-renderer",function(){if(jZ8!==void 0)return jZ8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return jZ8=L},{mode:1});var PpM;var vG=function(){return _.e.apply(this,arguments)||this};
_.f(vG,_.e);vG.prototype.computeIconType=function(L){return L?"yt-icons:"+L.toLowerCase():null};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],vG.prototype,"data",void 0);_.r([_.P({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],vG);
_.m(vG,"ytd-limited-state-message-renderer",function(){if(PpM!==void 0)return PpM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return PpM=L},{mode:1});var pxq;var oJ=function(){return _.e.apply(this,arguments)||this};
_.f(oJ,_.e);oJ.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
oJ.prototype.onTap=function(L){var Z=this.data&&this.data.endpoint;Z&&!_.PQ(_.sx(L),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.QT(this.hostElement,"yt-navigate",{endpoint:Z})};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],oJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],oJ.prototype,"data",void 0);_.r([_.P({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],oJ);
_.m(oJ,"ytd-autotagging-metadata-renderer",function(){if(pxq!==void 0)return pxq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return pxq=L},{mode:1});var zG6;var RJ=function(){return _.e.apply(this,arguments)||this};
_.f(RJ,_.e);RJ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],RJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],RJ.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],RJ.prototype,"data",void 0);_.r([_.P({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],RJ);
_.m(RJ,"ytd-autotagging-metadata-row-renderer",function(){if(zG6!==void 0)return zG6;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return zG6=L},{mode:1});var mOG;var Jaf;var cG=function(){var L=_.e.apply(this,arguments)||this;L.engagementPanelContent=!1;return L};
_.f(cG,_.e);cG.prototype.computeHasDividerLine=function(L,Z){return L&&!Z};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],cG.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.Q("design:type",Boolean)],cG.prototype,"hasDividerLine",void 0);_.r([_.Y(),_.Q("design:type",Object)],cG.prototype,"engagementPanelContent",void 0);
_.r([_.P({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],cG);
_.m(cG,"ytd-metadata-row-header-renderer",function(){if(Jaf!==void 0)return Jaf;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Jaf=L},{mode:1});var CpM;var np=function(){return _.e.apply(this,arguments)||this};
_.f(np,_.e);np.prototype.computeHasDividerLine=function(L){return L};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],np.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Q("design:type",Boolean)],np.prototype,"hasDividerLine",void 0);_.r([_.P({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],np);
_.m(np,"ytd-metadata-row-renderer",function(){if(CpM!==void 0)return CpM;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return CpM=L},{mode:1});var ran;var QZt=function(){return _.e.apply(this,arguments)||this};
_.f(QZt,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],QZt.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],QZt.prototype,"data",void 0);_.r([_.P({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],QZt);
_.m(QZt,"ytd-metadata-with-image-row-renderer",function(){if(ran!==void 0)return ran;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ran=L},{mode:1});var XxG;var Kp=function(){var L=_.e.apply(this,arguments)||this;L.rounded=!0;L.fixie=!1;L.fullWidth=!1;return L};
_.f(Kp,_.e);_.t=Kp.prototype;_.t.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.onDataChanged=function(){var L=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(Z){L.onEndpointLinkKeyPress(Z)}))};
_.t.onEndpointLinkKeyPress=function(L){L.target===this.endpointLink&&L.keyCode===13&&_.QT(this.hostElement,"click")};
_.t.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var L;if((L=this.data)==null?0:L.endpoint)_.B2(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.t.onYtNavigate=function(L){this.endpointHref||(L.stopPropagation(),L.preventDefault())};
_.t.onInformationButtonContainerClick=function(L){L.target.id!=="information-button-container"&&(L.stopPropagation(),L.preventDefault())};
_.t.computeStyle=function(L){return L};
_.t.computeIsThumbnailStyle=function(L){return L==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.t.computeThumbnailWidth=function(L){switch(L){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}};
_.t.computeThumbnailObjectFit=function(L){switch(L){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.gd.Object.defineProperties(Kp.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?0:L.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
Kp.prototype.onYtNavigate=Kp.prototype.onYtNavigate;Kp.prototype.onClick=Kp.prototype.onClick;Kp.prototype.onDataChanged=Kp.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Kp.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Kp.prototype,"componentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Kp.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Kp.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Q("design:type",String)],Kp.prototype,"componentStyle",void 0);_.r([_.Y({computed:"computeIsThumbnailStyle(data.style)"}),_.Q("design:type",Boolean)],Kp.prototype,"isThumbnailStyle",void 0);_.r([_.Y({computed:"computeThumbnailObjectFit(data.style)"}),_.Q("design:type",String)],Kp.prototype,"thumbnailObjectFit",void 0);
_.r([_.Y({computed:"computeThumbnailWidth(data.style)"}),_.Q("design:type",Number)],Kp.prototype,"thumbnailWidth",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Kp.prototype,"rounded",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Kp.prototype,"fixie",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Kp.prototype,"fullWidth",void 0);_.r([_.TX("#endpoint-link"),_.Q("design:type",HTMLAnchorElement)],Kp.prototype,"endpointLink",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Kp.prototype,"onDataChanged",null);_.r([_.w("data.endpoint"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Kp.prototype,"endpointHref",null);_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Kp.prototype,"onClick",null);
_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Kp.prototype,"onYtNavigate",null);_.r([_.P({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Kp);
_.m(Kp,"ytd-rich-metadata-renderer",function(){if(XxG!==void 0)return XxG;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return XxG=L},{mode:_.Qr("kevlar_poly_si_batch_j075")?1:2});var AaV;var fp=function(){var L=_.e.apply(this,arguments)||this;L.fixie=!1;L.fullWidth=!1;return L};
_.f(fp,_.e);fp.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
fp.prototype.computeHasDividerLine=function(L){return L};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],fp.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],fp.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Q("design:type",Boolean)],fp.prototype,"hasDividerLine",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],fp.prototype,"fixie",void 0);_.r([_.Y(),_.Q("design:type",Object)],fp.prototype,"fullWidth",void 0);
_.r([_.P({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],fp);
_.m(fp,"ytd-rich-metadata-row-renderer",function(){if(AaV!==void 0)return AaV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return AaV=L},{mode:1});var kk=function(){var L=_.e.apply(this,arguments)||this;L.engagementPanelContent=!1;L.fixie=!1;L.fullWidth=!1;return L};
_.f(kk,_.e);
kk.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"}}}};
kk.prototype.computeCollapsibleItems=function(L,Z,N){return L===void 0||Z===void 0||N===void 0||N?[]:L.slice(Z)};
kk.prototype.computeAlwaysShownItems=function(L,Z){return L&&L.length?L.slice(0,Z):[]};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],kk.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],kk.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],kk.prototype,"collapsed",void 0);
_.r([_.Y({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.Q("design:type",Array)],kk.prototype,"alwaysShownItems",void 0);_.r([_.Y({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.Q("design:type",Array)],kk.prototype,"collapsibleItems",void 0);_.r([_.Y(),_.Q("design:type",Object)],kk.prototype,"engagementPanelContent",void 0);_.r([_.Y(),_.Q("design:type",Object)],kk.prototype,"fixie",void 0);
_.r([_.Y(),_.Q("design:type",Object)],kk.prototype,"fullWidth",void 0);_.r([_.P({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],kk);
_.m(kk,"ytd-metadata-row-container-renderer",function(){if(mOG!==void 0)return mOG;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return mOG=L},{mode:1});var HQn;var wu=function(){var L=_.e.apply(this,arguments)||this;L.currentPageUrl="";L.baseUrl="";L.isHiddenByUser=null;L.hidden=!1;L.showAboveScrim=!1;L.watchNextGrid=_.c("kevlar_watch_grid");L.modernButtons=_.c("web_modern_buttons");L.roundedContainer=!0;L.noBorder=!1;L.roundBackground=!_.c("live_chat_round_background_killswitch");L.overflowHideChat=_.c("live_chat_overflow_hide_chat");L.forceDarkTheme=!1;L.theaterWatchWhile=!1;L.isListeningForPlayerProgress=!1;L.JSC$22851_playerEvents=new Map;L.isFrameReady=
!1;L.player=null;L.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 L};
_.f(wu,_.e);_.t=wu.prototype;_.t.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Ad(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.t.created=function(){var L=this;this.handleIframeEventListener=function(Z){L.handleIframeEvent(Z)};
this.handleKeyboardEventListener=function(Z){L.handleKeyboardEvent(Z)};
this.JSC$22851_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22851_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22851_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22851_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22851_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.t.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()};
_.t.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};
_.t.computeBaseUrl=function(L){var Z="/live_chat";this.isChatReplay()&&(Z="/live_chat_replay");return _.Ot(_.tL(_.TQ(_.qG(L),Z),null),"").toString()};
_.t.dataChanged=function(){_.c("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.t.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var L=this.url;if(this.isChatReplay()&&this.player){var Z=Math.floor(this.player.getProgressState().current*1E3);L=_.Z4(_.qG(L),"playerOffsetMs",Z.toString()).toString()}Z=this.chatframe;try{var N=L==="about:blank"?_.j7q:_.mY(L),S=Z.contentDocument.location,u=_.rw(N);u!==void 0&&S.replace(u)}catch(T){Z.src=L}}};
_.t.collapsedChanged=function(){_.QT(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.t.handleIframeEvent=function(L){if(L&&this.baseUrl.startsWith(L.origin)&&L.source===this.chatframe.contentWindow&&_.Q_(L.data))if(L.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(L);else if(L.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(L.data["yt-show-feedback-dialog"]){var Z=_.GR().resolve(_.gv(_.cfQ));if(Z){var N=L.ports,S;N&&N.length&&(S=function(){N[0].postMessage({})});
L=L.data["yt-show-feedback-dialog"];Z.showFeedbackDialog(L.customProductData,L.feedbackContent,S,L.bucket)}}else if(L.data["yt-show-survey"])_.QT(this.hostElement,"yt-show-survey",L.data["yt-show-survey"]);else if(L.data["yt-purchase-membership"])_.GR().resolve(_.$s).resolveCommand(L.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(L.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(L.data["yt-tunnel-out-live-service-request"]);else if(L.data["yt-user-activity"])_.GI();
else if(L.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(L.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(L.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(L.data["yt-open-popup"]);else if(L.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(L.data["yt-log-flow-logging-event-command"]);else if(L.data["yt-hide-live-chat"])this.onShowHideChat();else L.data["yt-report-moderation-state-log"]&&
this.player&&(Z={cpn:this.player.getVideoData().cpn},_.mS("liveChatBeingModerated",Z))};
_.t.attachLiveChatResponseVeTrackingParams=function(L){L=_.Mg(L);var Z=_.RH(),N=_.LZ("liveChatRenderer.trackingParams",this.data);Z&&N&&_.ez(Z,_.Mg(N),L)};
_.t.handleBuyflowMessages=function(L){var Z=L.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,N=L.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,S=L.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.sDx(_.pm(_.hz),Z.replace(/-/g,"+").replace(/_/g,"/"),function(u){L.ports[0].postMessage({success:!0,buyFlowResponse:u})},void 0,function(u){L.ports[0].postMessage({success:!1,
error:u&&u.message||"Buyflow rejected without error."})},_.tq().get("hl"),void 0,function(){L.ports[0].postMessage({closed:!0})},N,S)};
_.t.setupPlayerProgressRelay=function(){var L=this;if(!this.isListeningForPlayerProgress){var Z=_.r9();Z!=null&&Z.getPlayerPromise&&(Z.getPlayerPromise().then(function(N){L.playerApiReady(N)}),this.isListeningForPlayerProgress=!0)}};
_.t.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.t.playerApiReady=function(L){this.setPlayer(L)};
_.t.playerProgressHandler=function(){if(this.player){var L=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":L.current})}};
_.t.playerAdStartHandler=function(L){this.postToContentWindow({"yt-player-ad-start":L})};
_.t.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.t.playerStateChangeHandler=function(L){this.postToContentWindow({"yt-player-state-change":L})};
_.t.setPlayer=function(L){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22851_playerEvents);L&&(this.player=L,this.ytPlayerListenerBehavior.listenToPlayerEvents(L,this.JSC$22851_playerEvents),_.QT(this.hostElement,"player-api-ready"))};
_.t.liveChatPageUrl=function(L,Z,N,S){return!N||Z?"about:blank":N.liveChatRenderer?(Z=_.qG(this.currentPageUrl).JSC$10031_queryData_,g_t(Z),L=_.qG(L),Z.add("continuation",N.liveChatRenderer.continuations[0].reloadContinuationData.continuation),N=_.wr()==="USER_INTERFACE_THEME_DARK",(S||N)&&Z.add("dark_theme","true"),_.tL(L,Z),S=_.qG(L.toString()),N=S.JSC$10031_queryData_,"SESSION_INDEX"in _.rj&&(N.add("authuser",_.X7("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.rj&&N.add("pageId",_.X7("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.rj&&N.add("sdc",_.X7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),S.toString()):""};
_.t.isCollapsed=function(L,Z){return Z!==null?Z:this.isChatReplay()||L&&L.conversationBarRenderer&&L.conversationBarRenderer.availabilityMessage?!0:L?L.liveChatRenderer?L.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.c("live_chat_hide_premiere_replay_message")||L.conversationBarRenderer&&L.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.t.isHidden=function(L,Z,N){var S=Z&&Z.conversationBarRenderer&&Z.conversationBarRenderer.availabilityMessage,u=Z&&Z.liveChatRenderer&&Z.liveChatRenderer.showHideButton,T=Z&&Z.liveChatRenderer&&Z.liveChatRenderer.showButton;return N&&L&&!S&&!T||!N&&L&&!S&&!u?!0:Z&&Z.liveChatRenderer&&Z.liveChatRenderer.initialDisplayState?Z.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.t.computeButtonOverride=function(L,Z){if(L&&Z)return{type:"outline"}};
_.t.setCollapsedState=function(L){_.n(L,_.kKt)&&((this.isHiddenByUser=!!_.n(L,_.kKt).collapsed)||_.XJ(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.t.forwardReduxActionToIframe=function(L){this.postToContentWindow({"yt-live-chat-forward-redux-action":L})};
_.t.onLoopRangeChange=function(L){this.showAboveScrim=!(L==null||!L.postId)};
_.t.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.t.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.t.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.t.sendDarkThemePostMessage=function(L){this.postToContentWindow({"yt-live-chat-set-dark-theme":L})};
_.t.onLiveChatBuyFlowCallback=function(L){this.postToContentWindow({"yt-live-chat-buy-flow-callback":L})};
_.t.handleKeyboardEvent=function(L){(0,_.Py.containsValue)(GR7,L.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:L.type,keyCode:L.keyCode}})};
_.t.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.t.postToContentWindow=function(L){if(this.isFrameReady)try{var Z=window.location.protocol+"//"+window.location.host,N;(N=this.chatframe)!=null&&N.contentWindow?this.chatframe.contentWindow.postMessage(L,Z):_.Q7(new _.sr("Tried posting a message to an iframe with no content window",L))}catch(S){_.CA(S)}};
_.t.shouldHideChatFrame=function(L){return L&&_.c("hide_live_chat_button_when_collapsed")};
_.gd.Object.defineProperties(wu.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.c("live_chat_overflow_hide_chat")||_.c("web_watch_chat_hide_button_killswitch"))return _.c("live_chat_overflow_hide_chat");var L,Z,N,S;return!!((L=this.data)==null?0:(Z=L.liveChatRenderer)==null?0:(N=Z.header)==null?0:(S=N.liveChatHeaderRenderer)==null?0:S.collapseButton)}}});
wu.prototype.collapsedChanged=wu.prototype.collapsedChanged;wu.prototype.urlChanged=wu.prototype.urlChanged;wu.prototype.dataChanged=wu.prototype.dataChanged;wu.prototype.onShowHideChat=wu.prototype.onShowHideChat;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],wu.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],wu.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.No.YtPlayerListenerBehavior),_.Q("design:type",_.SG)],wu.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.y(_.vS.YtOpenPopupBehavior),_.Q("design:type",Object)],wu.prototype,"ytOpenPopupBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],wu.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],wu.prototype,"currentPageUrl",void 0);
_.r([_.Y({computed:"computeBaseUrl(currentPageUrl,data)"}),_.Q("design:type",Object)],wu.prototype,"baseUrl",void 0);_.r([_.Y({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.Q("design:type",String)],wu.prototype,"url",void 0);_.r([_.Y(),_.Q("design:type",Object)],wu.prototype,"isHiddenByUser",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.Q("design:type",Object)],wu.prototype,"hidden",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.Q("design:type",Boolean)],wu.prototype,"collapsed",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.Q("design:type",Boolean)],wu.prototype,"hideChatFrame",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wu.prototype,"showAboveScrim",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wu.prototype,"watchNextGrid",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],wu.prototype,"modernButtons",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wu.prototype,"roundedContainer",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wu.prototype,"noBorder",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],wu.prototype,"roundBackground",void 0);
_.r([_.Y({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.Q("design:type",Object)],wu.prototype,"toggleButtonOverride",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],wu.prototype,"overflowHideChat",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wu.prototype,"forceDarkTheme",void 0);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],wu.prototype,"enableShowWithoutHideChatButton",null);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wu.prototype,"theaterWatchWhile",void 0);_.r([_.TX("#chatframe"),_.Q("design:type",HTMLIFrameElement)],wu.prototype,"chatframe",void 0);_.r([_.SA("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wu.prototype,"onShowHideChat",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wu.prototype,"dataChanged",null);
_.r([_.iA("url"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wu.prototype,"urlChanged",null);_.r([_.iA("collapsed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wu.prototype,"collapsedChanged",null);_.r([_.P({is:"ytd-live-chat-frame",disableElementRegistration:!0})],wu);
_.m(wu,"ytd-live-chat-frame",function(){if(HQn!==void 0)return HQn;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return HQn=L},{mode:1});var BoG;var UP=function(){var L=_.e.apply(this,arguments)||this;L.modern=_.c("web_modern_buttons");L.buttonOverrides={style:"call-to-action",type:"filled"};return L};
_.f(UP,_.e);UP.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=_.vq(this.data.backgroundColor)))};
UP.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var L=this.getFormattedStringLoggingDirectives(this.data.headline);L&&this.rendererBehavior.logExplicitClick(L)}};
UP.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var L=this.getFormattedStringLoggingDirectives(this.data.description);L&&this.rendererBehavior.logExplicitClick(L)}};
UP.prototype.getFormattedStringLoggingDirectives=function(L){return L&&L.runs&&L.runs.length>0&&L.runs[0]&&L.runs[0].loggingDirectives?L.runs[0].loggingDirectives:null};
UP.prototype.dataChanged=UP.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],UP.prototype,"rendererBehavior",void 0);_.r([_.y(njM.YtMacroReplacementBehavior),_.Q("design:type",Object)],UP.prototype,"macroReplacementBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],UP.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],UP.prototype,"navigationEndpoint",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],UP.prototype,"enableColors",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],UP.prototype,"modern",void 0);_.r([_.Y(),_.Q("design:type",Object)],UP.prototype,"buttonOverrides",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UP.prototype,"dataChanged",null);_.r([_.P({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],UP);
_.m(UP,"ytd-action-basic-immersive-content-renderer",function(){if(BoG!==void 0)return BoG;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return BoG=L},{mode:1});var xOf;var q69;var Yk=function(){return _.e.apply(this,arguments)||this};
_.f(Yk,_.e);Yk.prototype.dataChanged=function(){var L;((L=this.data)==null?void 0:L.backgroundColor)!==void 0&&_.Ld(this.hostElement,{"--bgu-color":_.vq(this.data.backgroundColor)})};
Yk.prototype.onImageTileClick=function(){var L;((L=this.data)==null?0:L.navigationEndpoint)&&_.QT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var Z;((Z=this.data)==null?0:Z.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.gd.Object.defineProperties(Yk.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var L;if(((L=this.data)==null?void 0:L.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 L;return((L=this.data)==null?void 0:L.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;if(((L=this.data)==null?void 0:(Z=L.detailsLine)==null?void 0:Z.texts)!=null&&((N=this.data)==null?void 0:N.detailsLine.texts.length)>0){var S;return(S=this.data)==null?void 0:S.detailsLine.texts.map(function(u){return u.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;if(((L=this.data)==null?void 0:(Z=L.optionalDetailsLine)==null?void 0:Z.texts)!=null&&((N=this.data)==null?void 0:N.optionalDetailsLine.texts.length)>0){var S;return(S=this.data)==null?void 0:S.optionalDetailsLine.texts.map(function(u){return u.text}).join("")}return null}}});
Yk.prototype.dataChanged=Yk.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Yk.prototype,"rendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Yk.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yk.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data.backgroundColor"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Yk.prototype,"hasBackgroundColor",null);
_.r([_.w("data.objectFit"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yk.prototype,"getObjectFit",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.tileRenderingStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Yk.prototype,"hasTileMetadata",null);_.r([_.w("data.detailsLine"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yk.prototype,"getSecondaryDetails",null);
_.r([_.w("data.optionalDetailsLine"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yk.prototype,"getOptionalDetails",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yk.prototype,"dataChanged",null);_.r([_.P({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Yk);
_.m(Yk,"ytd-image-tile-renderer",function(){if(q69!==void 0)return q69;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return q69=L},{mode:1});var LSM;var em=function(){return _.e.apply(this,arguments)||this};
_.f(em,_.e);em.prototype.getOpenLinkIcon=function(){return _.c("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
em.prototype.onSitelinkTap=function(){_.QT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.c("kevlar_command_handler_migration_killswitch"))_.B2(this.hostElement,this.data.clickCommands,this.hostElement);else for(var L=_.O(this.data.clickCommands),Z=L.next();!Z.done;Z=L.next())this.ytComponentBehavior.resolveCommand(Z.value)};
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],em.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],em.prototype,"rendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],em.prototype,"data",void 0);_.r([_.P({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],em);
_.m(em,"ytd-sitelink-renderer",function(){if(LSM!==void 0)return LSM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return LSM=L},{mode:1});var IJ=function(){var L=_.e.apply(this,arguments)||this;L.paddingFix=_.c("enable_ads_web_ep_buenos_aires_and_padding_fix");return L};
_.f(IJ,_.e);IJ.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"}}}};
IJ.prototype.dataChanged=function(){var L=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(Z){Z.clickTrackingParams&&delete Z.clickTrackingParams;L.ytMacroReplacementBehavior.sendServiceRequestAction([Z])})};
IJ.prototype.shouldHideFooter=function(L){return!(L&&_.c("use_ads_engagement_panel_desktop_footer_cta"))};
_.gd.Object.defineProperties(IJ.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?void 0:L.imageTileRenderers)===void 0||((Z=this.data)==null?void 0:Z.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(N){var S;return(S=_.n(N,l8G))==null?void 0:S.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?void 0:L.imageTileRenderers)===void 0||((Z=this.data)==null?void 0:Z.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(N){var S;return((S=_.n(N,l8G))==null?void 0:S.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
IJ.prototype.dataChanged=IJ.prototype.dataChanged;_.r([_.y(njM.YtMacroReplacementBehavior),_.Q("design:type",Object)],IJ.prototype,"ytMacroReplacementBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],IJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],IJ.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],IJ.prototype,"paddingFix",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data.imageTileRenderers"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],IJ.prototype,"removeBorderFromImageTiles",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.imageTileRenderers"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],IJ.prototype,"useFooteredMetadataRenderingStyle",null);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],IJ.prototype,"dataChanged",null);_.r([_.P({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],IJ);
_.m(IJ,"ytd-action-engagement-panel-content-renderer",function(){if(xOf!==void 0)return xOf;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return xOf=L},{mode:1});var ZAt;var NYV=_.p(function(L){var Z=L.data;var N=L.customCommandResolver;return _.g("ad-grid-card-image-full-metadata-view-model",{class:function(){var S;return((S=Z().interaction)==null?0:S.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.P9(_.$b({visibilityCallback:function(S){var u,T=(u=Z().interaction)==null?void 0:u.onFirstVisible;S&&T&&_.w$(T)},
showOption:_.M1}),_.k9(function(){return Z().interaction},N)),
"aria-label":function(){var S,u;return(S=Z().interaction)==null?void 0:(u=S.accessibility)==null?void 0:u.label}},_.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.g(_.bj,{data:function(){return Z().adImage}},{adImageViewModel:function(S){return _.g(_.av,{data:S.data,
customCommandResolver:N})}})),_.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.g(_.F,{cond:function(){return Z().headline},
then:function(S){return _.g(_.qv,{text:S,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.g(_.F,{cond:function(){return Z().detailsLine},
then:function(S){return _.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.g(_.bj,{data:S},{adDetailsLineViewModel:function(u){return _.g(_.R9,{data:u.data,customCommandResolver:N,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.g(_.F,{cond:function(){return Z().secondaryDetailsLine},
then:function(S){return _.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.g(_.bj,{data:S},{adDetailsLineViewModel:function(u){return _.g(_.R9,{data:u.data,customCommandResolver:N,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"en");var SI6=_.p(function(L){var Z=L.data;var N=L.customCommandResolver;return _.g("ad-grid-card-image-view-model",{class:function(){var S;return((S=Z().interaction)==null?0:S.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.P9(_.$b({visibilityCallback:function(S){var u,T=(u=Z().interaction)==null?void 0:u.onFirstVisible;S&&T&&_.w$(T)},
showOption:_.M1}),_.k9(function(){return Z().interaction},N)),
"aria-label":function(){var S,u;return(S=Z().interaction)==null?void 0:(u=S.accessibility)==null?void 0:u.label}},_.g(_.bj,{data:function(){return Z().adImage}},{adImageViewModel:function(S){return _.g(_.av,{data:S.data,
customCommandResolver:N})}}),_.g("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.g(_.bj,{data:function(){return Z().adCardBadge}},{adCardBadgeViewModel:_.IYs})))},"fn");var iAn=_.p(function(L){var Z=L.data;var N=L.customCommandResolver;return _.g("ad-grid-card-text-view-model",{class:function(){var S;return((S=Z().interaction)==null?0:S.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.P9(_.$b({visibilityCallback:function(S){var u,T=(u=Z().interaction)==null?void 0:u.onFirstVisible;S&&T&&_.w$(T)},
showOption:_.M1}),_.k9(function(){return Z().interaction},N)),
"aria-label":function(){var S,u;return(S=Z().interaction)==null?void 0:(u=S.accessibility)==null?void 0:u.label}},_.g("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.g(_.F,{cond:function(){return Z().title},
then:function(S){return _.g(_.qv,{text:S,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.g("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.g(_.ju,{each:function(){var S;
return((S=Z())==null?void 0:S.descriptions)||[]},
keyBy:"INDEX"},function(S){return _.g(_.qv,{text:S,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.g("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.g(_.bj,{data:function(){return Z().moreInfoButton}},{adButtonViewModel:function(S){return _.g(_.G9,{data:S.data,
customCommandResolver:N})}})))},"gn");var uvM=_.p(function(L){var Z=L.data;var N=L.customCommandResolver;var S=L.adGridCardCollectionStyle;return _.g("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.P9(_.$b({visibilityCallback:function(u){var T,W=(T=Z().interaction)==null?void 0:T.onFirstVisible;u&&W&&_.w$(W)},
showOption:_.M1})),style:function(){return"grid-template-columns: repeat("+K8n(S?S():Z().style)+", minmax(0, 1fr));"}},_.g(_.bj,{data:function(){var u;
return(u=Z())==null?void 0:u.gridCards}},{adGridCardImageViewModel:function(u){return _.g(SI6,{data:u.data,
customCommandResolver:N})},
adGridCardImageFullMetadataViewModel:function(u){return _.g(NYV,{data:u.data,customCommandResolver:N})},
adGridCardTextViewModel:function(u){return _.g(iAn,{data:u.data,customCommandResolver:N})}}))},"hn");_.CY(_.p(function(L){var Z=L.data;return _.g("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.P9(_.$b({visibilityCallback:function(N){var S,u=(S=Z().interaction)==null?void 0:S.onFirstVisible;N&&u&&_.w$(u)},
showOption:_.M1}),_.k9(function(){return Z().interaction},ksq))},_.g("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.g(_.F,{cond:_.G4h("(min-width: "+((0,_.fr)()+_.j1)+"px)"),
then:function(){return _.g(_.bj,{data:function(){return Z().adGridCardCollection}},{adGridCardCollectionViewModel:function(N){return _.g(uvM,{data:N.data,
customCommandResolver:ksq})}})},
else:function(){return _.g(_.bj,{data:function(){return Z().adGridCardCollection}},{adGridCardCollectionViewModel:function(N){return _.g(uvM,{data:N.data,
customCommandResolver:ksq,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.g("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.g(_.bj,{data:function(){return Z().adButton}},{adButtonViewModel:function(N){return _.g(_.G9,{data:N.data,
customCommandResolver:ksq})}})))},"jn"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){var Z=L.data;return _.g("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.P9(_.$b({visibilityCallback:function(N){var S,u=(S=Z().interaction)==null?void 0:S.onFirstVisible;N&&u&&_.w$(u)},
showOption:_.M1}),_.k9(function(){return Z().interaction},yWM))},_.g("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.g(_.bj,{data:function(){if(_.G4h("(min-width: "+((0,_.fr)()+_.j1)+"px)")())var N=Z().adGridCardCollection;
else{N=Object.assign({},_.n(Z().adGridCardCollection,o_t));var S;N.gridCards!==void 0&&((S=N.gridCards)==null?void 0:S.length)>1?N.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":N.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";N={adGridCardCollectionViewModel:N}}return N}},{adGridCardCollectionViewModel:function(N){return _.g(uvM,{data:N.data,
customCommandResolver:yWM})}})),_.g("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.g(_.bj,{data:function(){return Z().adButton}},{adButtonViewModel:function(N){return _.g(_.G9,{data:N.data,
customCommandResolver:yWM})}})))},"kn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.LK}});var du=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return L};
_.f(du,_.e);_.t=du.prototype;_.t.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"}}}};
_.t.attached=function(){this.getDataFromPlayerAndRender()};
_.t.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.t.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.t.getDataFromPlayerAndRender=function(){var L=this,Z=_.CV(this.hostElement);Z&&Z.getPlayerPromise().then(function(N){L.getCachedDataAndListen(N)})};
_.t.getCachedDataAndListen=function(L){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(L,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(L,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=L)};
_.t.resolveCachedActions=function(){var L=_.LZ("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(L=L&&L())&&!_.Py.isEmpty(L)&&this.sendUpdateEngagementPanelAction(L);(L=(L=_.LZ("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&L())&&!_.Py.isEmpty(L)&&this.sendChangeEngagementPanelVisibilityAction(L);(L=(L=_.LZ("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&L())&&!_.Py.isEmpty(L)&&this.sendScrollToEngagementPanelCommand(L)};
_.t.sendUpdateEngagementPanelAction=function(L){var Z;_.XJ(this.hostElement,"yt-update-engagement-panel-action",[(Z=_.Py.get(L,"action"))!=null?Z:L])};
_.t.sendChangeEngagementPanelVisibilityAction=function(L){_.XJ(this.hostElement,"yt-change-engagement-panel-visibility-action",[L])};
_.t.sendScrollToEngagementPanelCommand=function(L){_.XJ(this.hostElement,"yt-scroll-to-engagement-panel-command",[L])};
_.t.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.c("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Q7(Error("Xo"))};
du.prototype.dataChanged=du.prototype.dataChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],du.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],du.prototype,"componentBehavior",void 0);_.r([_.y(_.No.YtPlayerListenerBehavior),_.Q("design:type",_.SG)],du.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],du.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],du.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],du.prototype,"player",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],du.prototype,"dataChanged",null);_.r([_.P({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],du);
_.m(du,"ytd-ads-engagement-panel-content-renderer",function(){if(ZAt!==void 0)return ZAt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
return ZAt=L},{mode:1});var TYf;var aJ=function(){var L=_.e.apply(this,arguments)||this;L.player=null;L.JSC$22888_playerEvents=new Map;L.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return L};
_.f(aJ,_.e);_.t=aJ.prototype;_.t.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]]"}}}}}};
_.t.created=function(){this.player=null;this.JSC$22888_playerEvents=new Map;this.JSC$22888_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22888_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22888_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22888_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.t.attached=function(){var L=this,Z=_.CV();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));Z&&Z.getPlayerPromise().then(function(N){L.setPlayer(N);L.set("isPageLoad",!1)})};
_.t.setPlayer=function(L){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22888_playerEvents);this.set("player",L);L&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(L,this.JSC$22888_playerEvents),L.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.t.onLoopRangeChange=function(L){var Z=_.GR().resolve(_.gv(_.mR));if((!Z||Z.isOnWatch())&&this.hostElement.clientHeight){var N;!L&&((N=this.data)==null?0:N.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.t.onVideoProgress=function(L){var Z,N,S=((Z=this.player)==null?void 0:(N=Z.getPresentingPlayerType)==null?void 0:N.call(Z))===2;this.isAdPlaying!==S&&this.set("isAdPlaying",S);var u;if(!S&&(u=this.player)!=null&&u.getLoopRange()){N=this.player.getLoopRange();Z=N.startTimeMs;N=N.endTimeMs;S=this.player.getProgressState(1).seekableStart;var T;Z<S*1E3&&((T=this.data)==null?0:T.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
L=N<L*1E3;var W;((W=this.player)==null?0:W.getLoopRange())&&L&&this.player.seekTo(Z/1E3)}};
_.t.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.t.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.t.onYtDeleteClipEngagementPanelCommand=function(L){_.n(L,han).command&&this.ytComponentBehavior.resolveCommand(_.n(L,han).command)};
_.gd.Object.defineProperties(aJ.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.voteCount)||_.s9("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],aJ.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],aJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],aJ.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.No.YtPlayerListenerBehavior),_.Q("design:type",_.SG)],aJ.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],aJ.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],aJ.prototype,"isAdPlaying",void 0);_.r([_.Y({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],aJ.prototype,"isPageLoad",void 0);_.r([_.Y({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],aJ.prototype,"isDarkTheme",void 0);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aJ.prototype,"voteCount",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aJ.prototype,"channelEndpoint",null);_.r([_.w("channelEndpoint"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aJ.prototype,"channelHref",null);_.r([_.P({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],aJ);
_.m(aJ,"ytd-clip-attribution-renderer",function(){if(TYf!==void 0)return TYf;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return TYf=L},{mode:1});var t2t;var h_=function(){var L=_.e.apply(this,arguments)||this;L.player=null;L.JSC$22893_playerEvents=new Map;return L};
_.f(h_,_.e);_.t=h_.prototype;_.t.created=function(){this.player=null;this.JSC$22893_playerEvents=new Map;this.JSC$22893_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22893_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22893_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.t.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.t.attached=function(){var L=this,Z=_.CV();Z&&Z.getPlayerPromise().then(function(N){L.setPlayer(N);L.set("isPageLoad",!1)})};
_.t.setPlayer=function(L){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22893_playerEvents);this.set("player",L);if(L){this.ytPlayerListenerBehavior.listenToPlayerEvents(L,this.JSC$22893_playerEvents);var Z;(L==null?void 0:(Z=L.getPresentingPlayerType)==null?void 0:Z.call(L))===2&&this.playerAdStartHandler()}};
_.t.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.t.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.t.onVideoProgress=function(){var L,Z,N=((L=this.player)==null?void 0:(Z=L.getPresentingPlayerType)==null?void 0:Z.call(L))===2;this.isAdPlaying!==N&&this.set("isAdPlaying",N)};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],h_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.No.YtPlayerListenerBehavior),_.Q("design:type",_.SG)],h_.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],h_.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],h_.prototype,"isAdPlaying",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],h_.prototype,"isPageLoad",void 0);_.r([_.P({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],h_);
_.m(h_,"ytd-clip-section-footer-renderer",function(){if(t2t!==void 0)return t2t;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return t2t=L},{mode:1});var OA8;var WS7;var V29=function(){return _.e.apply(this,arguments)||this};
_.f(V29,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],V29.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],V29.prototype,"data",void 0);_.r([_.P({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],V29);
_.m(V29,"ytd-clip-ad-state-renderer",function(){if(WS7!==void 0)return WS7;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return WS7=L},{mode:1});var bA7;var sP=function(){var L=_.e.apply(this,arguments)||this;L.value="";L.valid=!1;L.userChangedValue=!1;L.disabled=!1;L.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return L};
_.f(sP,_.e);_.t=sP.prototype;_.t.detached=function(){this.userChangedValue=!1};
_.t.handleKeyDown=function(L){if(_.xM)var Z=13;else _.Etq&&_.qH?Z=13:Z=13;L.keyCode===Z&&L.preventDefault()};
_.t.handleInput=function(){var L=_.QJ(this.hostElement).querySelector("#title");if(L){var Z=(L.value||"").replace(/\r|\n/g," ");this.set("value",Z);L.value=Z;this.valid=L.validate();this.userChangedValue=!0}};
_.t.handleBlur=function(){this.valid=_.QJ(this.hostElement).querySelector("#title").validate()};
_.t.onValueChanged=function(){_.QT(this.hostElement,"title-changed",{title:this.value})};
_.t.onValidChanged=function(){_.QT(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.t.setInput=function(L,Z){var N=_.QJ(this.hostElement).querySelector("#title");N&&(N.value=L,this.handleInput(),Z&&(N.invalid=!1,this.valid=!0))};
_.t.onClipCreationDisable=function(){this.set("disabled",!0)};
_.t.onClipCreationEnable=function(){this.set("disabled",!1)};
_.t.onClipCreationVisibilityChange=function(L){var Z=this;L.visible?requestAnimationFrame(function(){var N;((N=_.QJ(Z.hostElement).querySelector("#title"))==null?void 0:N.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
sP.prototype.onValidChanged=sP.prototype.onValidChanged;sP.prototype.onValueChanged=sP.prototype.onValueChanged;sP.prototype.handleBlur=sP.prototype.handleBlur;sP.prototype.handleInput=sP.prototype.handleInput;sP.prototype.handleKeyDown=sP.prototype.handleKeyDown;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],sP.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],sP.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],sP.prototype,"value",void 0);_.r([_.Y(),_.Q("design:type",Object)],sP.prototype,"valid",void 0);_.r([_.Y(),_.Q("design:type",Object)],sP.prototype,"userChangedValue",void 0);_.r([_.Y(),_.Q("design:type",Object)],sP.prototype,"disabled",void 0);_.r([_.SA("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent]),_.Q("design:returntype")],sP.prototype,"handleKeyDown",null);
_.r([_.SA("input"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sP.prototype,"handleInput",null);_.r([_.SA("blur"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sP.prototype,"handleBlur",null);_.r([_.iA("value"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sP.prototype,"onValueChanged",null);
_.r([_.iA("valid"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sP.prototype,"onValidChanged",null);_.r([_.P({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],sP);
_.m(sP,"ytd-clip-creation-text-input-renderer",function(){if(bA7!==void 0)return bA7;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return bA7=L},{mode:1});var M2Y;var gEn;var GI7;var FSV;var $Cf;var jm=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};L.pendingStoryboardImages_={};L.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];L.tickLabelInterval=30;L.mediumTickInterval=5;L.largeTickInterval=15;L.aboveRulerHeight=32;L.rulerHeight=50;L.smallTickHeight=4;L.mediumTickHeight=8;L.largeTickHeight=16;L.mediaListeners_=
{};return L};
_.f(jm,_.e);_.t=jm.prototype;_.t.attached=function(){var L=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(Z){Z=_.O(["screen and (min-resolution: "+Z+")","screen and (max-resolution: "+Z+")"]);for(var N=Z.next();!N.done;N=Z.next()){N=N.value;var S=window.matchMedia(N);S&&(L.mediaListeners_[N]=L.updatePixelRatio_.bind(L),S.addEventListener?S.addEventListener("change",L.mediaListeners_[N]):S.addListener?S.addListener(L.mediaListeners_[N]):delete L.mediaListeners_[N])}})};
_.t.detached=function(){this.setPlayer(null);for(var L=_.O(Object.keys(this.mediaListeners_)),Z=L.next();!Z.done;Z=L.next()){var N=Z.value;Z=this.mediaListeners_[N];(N=window.matchMedia(N))&&(N.removeEventListener?N.removeEventListener("change",Z):N.removeListener&&N.removeListener(Z))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.t.onVisibilityChangedAction_=function(L){var Z=this;L.visible&&!this.player_&&(L=_.CV())&&L.getPlayerPromise().then(function(N){Z.setPlayer(N)})};
_.t.setPlayer=function(L){L&&this.set("player_",L)};
_.t.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.t.setUpCanvas_=function(){var L=this.rulerWidth,Z=this.devicePixelRatio_,N=this.visible;this.set("canvasReady_",!1);if(N&&Z!==0){N=this.aboveRulerHeight+this.rulerHeight;var S=_.QJ(this.hostElement).querySelector("#ticks");S.width=L*Z;S.height=N*Z;S.style.width=L+"px";S.style.height=N+"px";S.getContext("2d").scale(Z,Z);this.set("canvasReady_",!0)}};
_.t.drawRuler_=function(L,Z,N,S,u,T,W,V,M,G,D,l){L&&N&&Z&&(L=_.QJ(this.hostElement).querySelector("#ticks"),Z=L.getContext("2d"),Z.clearRect(0,0,L.width,L.height),Z.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Z.lineWidth=2,Z.beginPath(),Z.moveTo(0,this.aboveRulerHeight),Z.lineTo(L.width,this.aboveRulerHeight),Z.moveTo(0,L.height),Z.lineTo(L.width,L.height),Z.stroke(),this.drawRulerTicks_(L,T,u,S),this.drawStoryboardImages_(L,N,T,u,S),Z.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
Z.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(W-T,S,!1),this.rulerHeight),N=this.timeToPixels_(V-T,S,!1),Z.fillRect(N,this.aboveRulerHeight,L.width-N,this.rulerHeight),this.drawSpeedLines_(L,T,l))};
_.t.drawRulerTicks_=function(L,Z,N,S){var u=L.getContext("2d");u.save();u.lineWidth=1;for(var T=Math.floor(Math.max(0,Z-this.tickLabelInterval));T<Z+N;T++){u.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var W=(T-Z)*S;u.beginPath();u.moveTo(W,L.height);var V=this.smallTickHeight;T%this.largeTickInterval===0?V=this.largeTickHeight:T%this.mediumTickInterval===0&&(V=this.mediumTickHeight);u.lineTo(W,L.height-V);u.stroke();T%this.tickLabelInterval===0&&(u.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),u.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),u.fillText(I4(T),W+4,12),u.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),u.moveTo(W,0),u.lineTo(W,this.aboveRulerHeight),u.stroke())}u.restore()};
_.t.percentToHex_=function(L){L=Math.round(L*255).toString(16);L.length<2&&(L="0"+L);return L};
_.t.drawSpeedLines_=function(L,Z,N){var S=L.getContext("2d");S.save();var u=Math.min(25,Math.abs(N)-15)/25,T=L.width*.3*u,W=L.width*-.3,V=L.width*1.3,M=this.aboveRulerHeight;L=L.height;var G=Math.round(4*u),D=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");D.length<7&&(D="#"+D.substring(1,4).repeat(2));var l=this.percentToHex_(.5+u/2);l=D+l;D+="00";if(u>0)for(u=0;u<G;u++){var v=W+Math.random()*(V-W),R=M+Math.random()*(L-M),K=T+Z%T,U=S.createLinearGradient(v,R,v+K,R);
N<0?(U.addColorStop(0,l),U.addColorStop(.4,l),U.addColorStop(.9,D)):(U.addColorStop(.1,D),U.addColorStop(.6,l),U.addColorStop(1,l));S.strokeStyle=U;S.lineWidth=1;S.beginPath();S.moveTo(v,R);S.lineTo(v+K,R);S.stroke()}S.restore()};
_.t.getStoryboardForTime_=function(L,Z,N){N===void 0&&(N=Z.getNumberOfStoryboardLevels()-1);L=Z.getStoryboardFrameIndex(L,N);return Z.getStoryboardFrame(L,N)};
_.t.drawStoryboardImages_=function(L,Z,N,S,u){if(!this.disabled){L=L.getContext("2d");var T=this.getStoryboardForTime_(0,Z);if(T){var W=T.width/T.columns;T=T.height/T.rows;var V=W/T,M=this.rulerHeight*V;M=this.tickLabelInterval*(V<this.tickLabelInterval*u/this.rulerHeight?1/Math.floor(this.tickLabelInterval*u/M):Math.round(M/(this.tickLabelInterval*u)));var G=M*u,D=this.rulerHeight,l=G/this.rulerHeight,v=Math.floor(Math.max(0,N-M));for(v-=v%M;v<N+S;v+=M){var R=this.getStoryboardForTime_(v,Z),K=this.getPreloadedStoryboard_(R.url);
if(K){var U=(v-N)*u,d=this.aboveRulerHeight,h=R.column*W,E=R.row*T;if(V<l){var A=D/(G/V);R=W;A*=T;E+=(T-A)/2}else R=G/(D*V)*W,A=T,h+=(W-R)/2;L.drawImage(K,h,E,R,A,U,d,G,D)}else this.fetchStoryboardImage_(R)}}}};
_.t.getPreloadedStoryboard_=function(L){return this.storyboardImages_.find(function(Z){if(Z.src==L)return!0;var N=Z.src.indexOf(L);return N!=-1&&N==Z.src.length-L.length})};
_.t.fetchStoryboardImage_=function(L){var Z=this,N=this.getPreloadedStoryboard_(L.url),S=this.pendingStoryboardImages_[L.url];N||S!==void 0||(N=new Promise(function(u){var T=new Image(L.width,L.height);T.src=L.url;T.onload=function(){u(T)};
T.onerror=function(){u(null)}}),this.pendingStoryboardImages_[L.url]=N,N.then(function(u){u&&Z.push("storyboardImages_",u);
return u}).finally(function(){delete Z.pendingStoryboardImages_[L.url]}))};
_.t.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.t.timeToPixels_=function(L,Z,N){L*=Z;return N===void 0||N?L+"px":L};
_.t.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
jm.prototype.drawRuler_=jm.prototype.drawRuler_;jm.prototype.setUpCanvas_=jm.prototype.setUpCanvas_;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],jm.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],jm.prototype,"start",void 0);_.r([_.Y({value:30}),_.Q("design:type",Number)],jm.prototype,"end",void 0);
_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],jm.prototype,"visible",void 0);_.r([_.Y(),_.Q("design:type",Object)],jm.prototype,"player_",void 0);_.r([_.Y(),_.Q("design:type",Number)],jm.prototype,"tickSpacing",void 0);_.r([_.Y(),_.Q("design:type",Number)],jm.prototype,"windowSizeSec",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],jm.prototype,"rulerWidth",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],jm.prototype,"rulerShift",void 0);
_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],jm.prototype,"canvasReady_",void 0);_.r([_.Y({value:function(){return[]}}),
_.Q("design:type",Array)],jm.prototype,"storyboardImages_",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],jm.prototype,"disabled",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],jm.prototype,"forceRender_",void 0);_.r([_.Y({value:1}),_.Q("design:type",Number)],jm.prototype,"devicePixelRatio_",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],jm.prototype,"windowSpeed",void 0);
_.r([_.iA("visible","devicePixelRatio_","rulerWidth"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],jm.prototype,"setUpCanvas_",null);
_.r([_.iA("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.Q("design:type",Function),_.Q("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.Q("design:returntype")],jm.prototype,"drawRuler_",null);_.r([_.ch({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],jm);
_.m(jm,"yt-clip-creation-scrubber-canvas",function(){if($Cf===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);$Cf=L}L=$Cf;return L},
{mode:2});var DCt;var llw;var EP=function(){var L=_.e.apply(this,arguments)||this;L.start=0;L.end=30;L.visible=!1;L.draggingLeft_=!1;L.draggingRight_=!1;L.draggingRuler_=!1;L.draggingWindow_=!1;L.seekableStart=0;L.seekableEnd=0;L.rulerWidth_=0;L.rulerShift_=0;L.windowSlideSpeed=0;L.disabled=!1;L.initialized=!1;L.durationAccessibilityLabel="";L.activeLoopRange_=!1;L.rulerDragMouseStart_=0;L.rulerDragRulerStart_=0;L.rulerDragStartTime_=0;L.rulerDragEndTime_=0;L.dragMouseLastX_=0;L.scrollInterval_=null;L.scrubberVe_=null;L.boundHandlers_=
{};L.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return L};
_.f(EP,_.e);_.t=EP.prototype;
_.t.created=function(){var L=this;this.JSC$22906_playerEvents=new Map;this.JSC$22906_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22906_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22906_playerEvents.set("onStateChange",this.onStateChange_);var Z={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(Z).forEach(function(N){L.boundHandlers_[N]=Z[N].bind(L)})};
_.t.attached=function(){this.activeLoopRange_=!1;_.QJ(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.QJ(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Ll(156731)};
_.t.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.QJ(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.QJ(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.t.onVisibilityChangedAction_=function(L){var Z=this;L.visible&&!this.player_&&(L=_.CV())&&L.getPlayerPromise().then(function(N){Z.setPlayer(N)})};
_.t.setPlayer=function(L){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22906_playerEvents);L&&(this.set("player_",L),this.ytPlayerListenerBehavior.listenToPlayerEvents(L,this.JSC$22906_playerEvents))};
_.t.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.t.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.t.beginHandleDrag_=function(L){this.disabled||(L.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=L.clientX,L.target===_.QJ(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():L.target===_.QJ(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.t.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.t.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.t.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.t.beginRulerDrag_=function(L){this.disabled||(L.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=L.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.t.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.t.beginWindowScroll_=function(){var L=this;this.scrollInterval_=setInterval(function(){var Z=L.windowSlideSpeed;if(Z=_.CGi(L.start,L.boundedRulerStartLimit_())?Z-.1:_.CGi(L.end,L.boundedRulerEndLimit_())?Z+.1:0){var N=L.capRulerOffset_(L.rulerShift_+Z);N==L.rulerShift_?Z=0:(L.set("rulerShift_",N),_.QT(L.hostElement,"set-fixed-length-range",{start:L.start+Z,duration:L.end-L.start}))}L.set("windowSlideSpeed",Z)},33)};
_.t.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.t.endDrag_=function(){this.logClick();var L=void 0;this.draggingRight_?L=this.end-1:this.draggingLeft_&&(L=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,L);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))};
_.t.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.t.updateRulerSize_=function(){this.set("rulerWidth_",_.QJ(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.t.handleMouseDrag_=function(L){L.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(L):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(L):this.draggingWindow_&&this.handleWindowDrag_(L))};
_.t.handleRulerDrag_=function(L){L=this.pixelsToTime_(L.clientX-this.rulerDragMouseStart_);L=this.capRulerOffset_(this.rulerDragRulerStart_-L);this.set("rulerShift_",L);var Z=this.rulerDragStartTime_-(this.rulerDragRulerStart_-L);_.QT(this.hostElement,"set-fixed-length-range",{start:Z,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-L)-Z})};
_.t.handleWindowDrag_=function(L){var Z=L.clientX-this.dragMouseLastX_;this.dragMouseLastX_=L.clientX;L=this.pixelsToTime_(Z);_.QT(this.hostElement,"set-fixed-length-range",{start:this.start+L,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.t.capRulerOffset_=function(L){var Z=this.seekableStart-this.pixelsToTime_(16),N=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(Z,L),N)};
_.t.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.t.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.t.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.t.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.t.handleWindowHandleDrag_=function(L){var Z=L.clientX-this.dragMouseLastX_;this.dragMouseLastX_=L.clientX;L=this.pixelsToTime_(Z);if(this.draggingLeft_){var N=this.start+L;var S=this.end}else this.draggingRight_&&(N=this.start,S=this.end+L);_.QT(this.hostElement,"set-range",{start:N,end:S,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.t.onVideoProgress_=function(L){this.disabled||(L=this.timeToPixels_(L-this.rulerShift_,this.tickSpacing_),_.QJ(this.hostElement).querySelector("#playhead").style.transform="translateX("+L+")")};
_.t.onClipCreationDisable_=function(){this.endDrag_()};
_.t.timeToPixels_=function(L,Z,N){L*=Z;return N===void 0||N?L+"px":L};
_.t.pixelsToTime_=function(L){return L/this.tickSpacing_};
_.t.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.t.centerRuler_=function(L,Z,N){this.set("rulerShift_",this.capRulerOffset_(L+(Z-L)/2-N/2))};
_.t.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.t.updateLoopRange_=function(L,Z,N,S,u,T,W){L&&(Z&&S&&!N?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(L.pauseVideo(),L.seekTo(u,!1,void 0,void 0,50)):this.draggingRight_?(L.pauseVideo(),L.seekTo(T-.1,!1,void 0,void 0,50)):(W!==void 0?L.seekTo(W,!0,void 0,void 0,50):(Z=L.getCurrentTime(),Z<u||Z>T?L.seekTo(u,!0,void 0,void 0,50):L.seekTo(Z,!0,void 0,void 0,50)),L.playVideo()),L.setLoopRange({startTimeMs:u*1E3,endTimeMs:T*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(L.getCurrentTime())):
this.activeLoopRange_&&(L.setLoopRange(null),this.activeLoopRange_=!1))};
_.t.updateHandles_=function(){_.QJ(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.QJ(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.t.updateRuler_=function(){var L=this.end,Z=this.start,N=this.draggableStartLimit_(),S=this.draggableEndLimit_();(Z<N-.001||L>S+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.t.computeDurationLabel_=function(L,Z){return L?L.replace("$clip_length",parseFloat(Z).toFixed(1)):""};
_.t.computeDuration_=function(L,Z){return this.isValidTime_(L)&&this.isValidTime_(Z)&&L<Z?Z-L:0};
_.t.isValidTime_=function(L){return isNaN(parseFloat(L))||L<0?!1:this.player_?L>=this.seekableStart&&L<=this.seekableEnd:!0};
_.t.computeWindowSizeSec_=function(L,Z,N){return Math.min((L||12E4)/1E3,N-Z)};
_.t.computeTickSpacing_=function(L,Z){return Z?Z/L:1};
_.t.onDragStateChanged_=function(){_.QT(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.t.centerRangeOnTime_=function(L){var Z=this.duration;L=U$n(L-Z/2,Z,this.seekableStart,this.seekableEnd);_.QT(this.hostElement,"set-fixed-length-range",{start:L.start,duration:L.end-L.start})};
_.t.nearlyLessThan_=function(L,Z,N){return L+(N===void 0?1E-6:N)<Z};
_.t.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var L=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(L,this.start)||this.nearlyLessThan_(this.end,L))&&this.centerRangeOnTime_(L)}};
_.t.onStateChange_=function(L){this.visible&&!this.disabled&&L==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.t.computeDragState_=function(L,Z,N,S){return L?"left":Z?"right":N?"ruler":S?"window":"none"};
_.t.logClick=function(){var L=_.RH(),Z=_.oH();L&&Z&&this.scrubberVe_&&(_.c("combine_ve_grafts")?_.k3(_.tC(),this.scrubberVe_,Z):_.ez(L,Z,this.scrubberVe_),_.sT(L,this.scrubberVe_))};
EP.prototype.onDragStateChanged_=EP.prototype.onDragStateChanged_;EP.prototype.updateRuler_=EP.prototype.updateRuler_;EP.prototype.updateHandles_=EP.prototype.updateHandles_;EP.prototype.onUpdateLoopRange=EP.prototype.onUpdateLoopRange;EP.prototype.onInitializedChanged_=EP.prototype.onInitializedChanged_;EP.prototype.onVisibleChanged_=EP.prototype.onVisibleChanged_;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],EP.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.y(_.No.YtPlayerListenerBehavior),_.Q("design:type",Object)],EP.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],EP.prototype,"start",void 0);_.r([_.Y(),_.Q("design:type",Object)],EP.prototype,"end",void 0);_.r([_.Y({computed:"computeDuration_(start, end)"}),_.Q("design:type",Number)],EP.prototype,"duration",void 0);
_.r([_.Y(),_.Q("design:type",String)],EP.prototype,"lengthTemplate",void 0);_.r([_.Y({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.Q("design:type",String)],EP.prototype,"durationLabel",void 0);_.r([_.Y(),_.Q("design:type",Object)],EP.prototype,"visible",void 0);_.r([_.Y(),_.Q("design:type",Object)],EP.prototype,"player_",void 0);_.r([_.Y(),_.Q("design:type",Object)],EP.prototype,"draggingLeft_",void 0);_.r([_.Y(),_.Q("design:type",Object)],EP.prototype,"draggingRight_",void 0);
_.r([_.Y(),_.Q("design:type",Object)],EP.prototype,"draggingRuler_",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Object)],EP.prototype,"draggingWindow_",void 0);_.r([_.Y({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.Q("design:type",Number)],EP.prototype,"tickSpacing_",void 0);_.r([_.Y(),_.Q("design:type",Object)],EP.prototype,"seekableStart",void 0);_.r([_.Y(),_.Q("design:type",Object)],EP.prototype,"seekableEnd",void 0);
_.r([_.Y(),_.Q("design:type",Number)],EP.prototype,"windowSizeMs",void 0);_.r([_.Y({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.Q("design:type",Number)],EP.prototype,"windowSizeSec_",void 0);_.r([_.Y(),_.Q("design:type",Object)],EP.prototype,"rulerWidth_",void 0);_.r([_.Y(),_.Q("design:type",Object)],EP.prototype,"rulerShift_",void 0);_.r([_.Y(),_.Q("design:type",Object)],EP.prototype,"windowSlideSpeed",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],EP.prototype,"disabled",void 0);_.r([_.Y(),_.Q("design:type",Object)],EP.prototype,"initialized",void 0);_.r([_.Y(),_.Q("design:type",Object)],EP.prototype,"durationAccessibilityLabel",void 0);_.r([_.Y({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.Q("design:type",String)],EP.prototype,"dragState",void 0);
_.r([_.iA("visible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EP.prototype,"onVisibleChanged_",null);_.r([_.iA("initialized"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EP.prototype,"onInitializedChanged_",null);_.r([_.iA("player_","visible","disabled","initialized","start","end"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EP.prototype,"onUpdateLoopRange",null);
_.r([_.iA("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EP.prototype,"updateHandles_",null);_.r([_.iA("start","end"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EP.prototype,"updateRuler_",null);
_.r([_.iA("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EP.prototype,"onDragStateChanged_",null);_.r([_.ch({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],EP);
_.m(EP,"yt-clip-creation-scrubber-view",function(){if(llw===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;DCt===void 0&&(DCt=document.createElement("template"));var S=DCt;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);llw=L}L=llw;return L},{mode:2});var PG=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};L.startHighlightTimeout=0;L.endHighlightTimeout=0;return L};
_.f(PG,_.e);_.t=PG.prototype;_.t.attached=function(){var L=this;this.startInput.addEventListener("input",function(Z){return L.handleStartInput_(Z)});
this.endInput.addEventListener("input",function(Z){return L.handleEndInput_(Z)});
this.startInput.addEventListener("focusout",function(Z){return L.handleStartBlur_(Z)});
this.endInput.addEventListener("focusout",function(Z){return L.handleEndBlur_(Z)})};
_.t.setPlayer=function(L){this.set("player_",L)};
_.t.onSetFixedLengthRange_=function(L){var Z=L.detail;L=Z.start;var N=Z.duration,S=Z.startLimit;Z=Z.endLimit;S||(S=this.seekableStart_);Z||(Z=this.seekableEnd_);L=U$n(L,N,S,Z);this.start=L.start;this.end=L.end};
_.t.onSetRange_=function(L){var Z=L.detail;L=Z.start;var N=Z.end,S=Z.startLimit;Z=Z.endLimit;S||(S=this.seekableStart_);Z||(Z=this.seekableEnd_);if(L=YK8(L,N,S,Z,this.minLengthSec,this.maxLengthSec))this.start=L.start,this.end=L.end};
_.t.updateInputs_=function(){var L=this.end,Z=this.start;this.startInput.focused||(this.startInput.value=I4(Z,!0));this.endInput.focused||(this.endInput.value=I4(L,!0))};
_.t.handleStartInput_=function(L){L=wEM(L.target.value);if(L===null)this.set("startValid",!1);else{var Z=this.end,N=YK8(L,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);N?(this.set("endWillUpdate",N.end!==Z),this.set("startValid",N.start===L)):this.set("startValid",!1)}};
_.t.handleEndInput_=function(L){L=wEM(L.target.value);if(L===null)this.set("endValid",!1);else{var Z=this.start,N=e07(this.start,L,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);N?(this.set("startWillUpdate",N.start!==Z),this.set("endValid",N.end===L)):this.set("endValid",!1)}};
_.t.handleStartBlur_=function(L){L=wEM(L.target.value);L===null?this.startInput.value=I4(this.start,!0):this.forceUpdateInputs_(YK8(L,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.t.handleEndBlur_=function(L){L=wEM(L.target.value);L===null?this.endInput.value=I4(this.end,!0):this.forceUpdateInputs_(e07(this.start,L,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.t.forceUpdateInputs_=function(L){L&&(this.start=L.start,this.end=L.end);this.startInput.value=I4(this.start,!0);this.endInput.value=I4(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.t.initializeClipRange_=function(){var L=this.seekableEnd_,Z=this.seekableStart_,N=this.visible_,S=this.player_;if(!S||!N||Z===null||!L)this.set("initialized",!1);else if(!this.initialized){var u=S.getCurrentTime(),T=this.getDefaultLengthSec_();N=S.getVideoData();var W=S.getPlayerState()==1,V=N.isLive;T=Math.min(T,L-Z);u=Math.max(0,u);L=V?e07(u-T,u,Z,L,this.minLengthSec,this.maxLengthSec):W?U$n(u-T/2,T,Z,L):U$n(u,T,Z,L);this.start=L.start;this.end=L.end;this.set("initialized",!0);N.isLive&&S.seekTo(L.start);
this.startInput.value=I4(this.start,!0);this.endInput.value=I4(this.end,!0)}};
_.t.onStartChanged_=function(){var L=this;_.QT(this.hostElement,"start-changed",{start:this.start});var Z;isNaN((Z=this.oldStart)!=null?Z:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){L.set("highlightStart",!1);L.startHighlightTimeout=0;L.oldStart=L.start},3E3))};
_.t.onEndChanged_=function(){var L=this;_.QT(this.hostElement,"end-changed",{end:this.end});var Z;isNaN((Z=this.oldEnd)!=null?Z:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){L.set("highlightEnd",!1);L.endHighlightTimeout=0;L.oldEnd=L.end},3E3))};
_.t.onVisibilityChangedAction_=function(L){var Z=this;this.set("visible_",L.visible);this.visible_&&!this.player_&&(L=_.CV())&&L.getPlayerPromise().then(function(N){Z.setPlayer(N)})};
_.t.computeMinLengthSec_=function(L){return L/1E3||5};
_.t.computeMaxLengthSec_=function(L){return L/1E3||60};
_.t.computeDefaultLengthSec_=function(L){return L/1E3};
_.t.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.t.computeSeekableStart_=function(L,Z){return L&&Z?L.getProgressState(1).seekableStart:0};
_.t.computeSeekableEnd_=function(L,Z){return L&&Z?L.getProgressState(1).seekableEnd:0};
_.t.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.t.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.t.onDragState_=function(L){this.set("highlightStart",L.detail.startChanging);this.set("highlightEnd",L.detail.endChanging)};
PG.prototype.onDragState_=PG.prototype.onDragState_;PG.prototype.onEndChanged_=PG.prototype.onEndChanged_;PG.prototype.onStartChanged_=PG.prototype.onStartChanged_;PG.prototype.initializeClipRange_=PG.prototype.initializeClipRange_;PG.prototype.updateInputs_=PG.prototype.updateInputs_;PG.prototype.onSetRange_=PG.prototype.onSetRange_;PG.prototype.onSetFixedLengthRange_=PG.prototype.onSetFixedLengthRange_;
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],PG.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],PG.prototype,"data",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],PG.prototype,"start",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],PG.prototype,"startValid",void 0);
_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],PG.prototype,"startWillUpdate",void 0);_.r([_.Y({value:30}),_.Q("design:type",Number)],PG.prototype,"end",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],PG.prototype,"endValid",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],PG.prototype,"endWillUpdate",void 0);_.r([_.Y({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.Q("design:type",Number)],PG.prototype,"minLengthSec",void 0);
_.r([_.Y({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.Q("design:type",Number)],PG.prototype,"maxLengthSec",void 0);_.r([_.Y({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.Q("design:type",Number)],PG.prototype,"defaultLengthSec",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],PG.prototype,"visible_",void 0);_.r([_.Y(),_.Q("design:type",Object)],PG.prototype,"player_",void 0);
_.r([_.Y({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.Q("design:type",Number)],PG.prototype,"seekableStart_",void 0);_.r([_.Y({computed:"computeSeekableEnd_(player_, visible_)"}),_.Q("design:type",Number)],PG.prototype,"seekableEnd_",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],PG.prototype,"initialized",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],PG.prototype,"disabled",void 0);
_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],PG.prototype,"highlightStart",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],PG.prototype,"highlightEnd",void 0);_.r([_.TX("#start"),_.Q("design:type",HTMLInputElement)],PG.prototype,"startInput",void 0);_.r([_.TX("#end"),_.Q("design:type",HTMLInputElement)],PG.prototype,"endInput",void 0);
_.r([_.SA("set-fixed-length-range"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],PG.prototype,"onSetFixedLengthRange_",null);_.r([_.SA("set-range"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],PG.prototype,"onSetRange_",null);_.r([_.iA("start","end"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PG.prototype,"updateInputs_",null);
_.r([_.iA("player_","visible_","seekableStart_","seekableEnd_"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PG.prototype,"initializeClipRange_",null);_.r([_.iA("start"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PG.prototype,"onStartChanged_",null);_.r([_.iA("end"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PG.prototype,"onEndChanged_",null);
_.r([_.SA("clips-drag-state"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],PG.prototype,"onDragState_",null);_.r([_.ch({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],PG);
_.m(PG,"yt-clip-creation-scrubber-renderer",function(){if(FSV===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;GI7===void 0&&(GI7=document.createElement("template"));var S=GI7;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);FSV=L}L=FSV;return L},{mode:2});var pp=function(){var L=_.e.apply(this,arguments)||this;L.player_=null;L.JSC$22920_playerEvents=new Map;L.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return L};
_.f(pp,_.e);_.t=pp.prototype;_.t.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"}}}};
_.t.created=function(){this.JSC$22920_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22920_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22920_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22920_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.t.detached=function(){this.setPlayer(null)};
_.t.onVisibilityChangedAction_=function(L){var Z=this,N;if((N=this.data)==null?0:N.externalVideoId){var S;this.videoId=(S=this.data)==null?void 0:S.externalVideoId}this.getPlayer().then(function(u){if(L.visible)Z.returnTime=u.getCurrentTime(),Z.isAtLiveHead=u.getProgressState().isAtLiveHead;else{var T=Z.returnTime;Z.isAtLiveHead&&(T=Number.POSITIVE_INFINITY);u.seekTo(T,void 0,void 0,void 0,51)}})};
_.t.getPlayer=function(){var L=this;if(!this.player_){var Z=_.CV();if(Z)return Z.getPlayerPromise().then(function(N){L.setPlayer(N);return N})}return Promise.resolve(this.player_)};
_.t.setPlayer=function(L){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22920_playerEvents);if(L){this.player_=L;var Z;((Z=this.data)==null?0:Z.externalVideoId)||this.set("videoId",L.getVideoData().video_id||"");var N;(L==null?void 0:(N=L.getPresentingPlayerType)==null?void 0:N.call(L))===2&&(this.set("isAdPlaying",!0),_.XJ(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(L,this.JSC$22920_playerEvents)}};
_.t.ready=function(){_.QJ(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.t.onTitleChanged_=function(L){this.set("titleValue",L.detail.title)};
_.t.onStartChanged_=function(L){this.set("start",L.detail.start)};
_.t.onEndChanged_=function(L){this.set("end",L.detail.end)};
_.t.onTitleValidChanged_=function(L){this.set("titleValid",L.detail.valid)};
_.t.onStartValidChanged_=function(L){this.set("startValid",L.detail.valid)};
_.t.onEndValidChanged_=function(L){this.set("endValid",L.detail.valid)};
_.t.onVideoDataChange_=function(){var L;if((L=this.data)==null||!L.externalVideoId){var Z;this.set("videoId",((Z=this.player_)==null?void 0:Z.getVideoData().video_id)||"")}};
_.t.computeFormValid_=function(L,Z,N,S){return!!(L&&Z&&N&&S)};
_.t.computeCancelButton_=function(L,Z,N){return L&&_.n(L,_.xZ)?{buttonRenderer:Object.assign({},_.n(L,_.xZ),{isDisabled:Z||N})}:null};
_.t.computeSubmitButton_=function(L,Z,N){return L&&_.n(L,_.xZ)?{buttonRenderer:Object.assign({},_.n(L,_.xZ),{command:void 0,isDisabled:!this.formValid||Z||N})}:null};
_.t.computeSubmitCommand_=function(L){return L||null};
_.t.onSubmit_=function(L){var Z=this;L.stopPropagation();L.preventDefault();this.submitCommand_&&(L={},L.comment_text=this.titleValue,L.clip_external_video_id=this.videoId,L.clip_offset_ms=parseInt(this.start*1E3,10),L.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.H2(this.hostElement,[this.submitCommand_,L]).then(function(){Z.set("isLoading_",!1)},function(){Z.set("isLoading_",!1)}))};
_.t.playerAdStartHandler_=function(){_.XJ(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.t.playerAdEndHandler_=function(){_.XJ(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.t.onVideoProgress_=function(){var L=this;this.getPlayer().then(function(Z){var N,S=(Z==null?void 0:(N=Z.getPresentingPlayerType)==null?void 0:N.call(Z))===2;L.isAdPlaying!==S&&(S?L.playerAdStartHandler_():L.playerAdEndHandler_())})};
pp.prototype.onEndValidChanged_=pp.prototype.onEndValidChanged_;pp.prototype.onStartValidChanged_=pp.prototype.onStartValidChanged_;pp.prototype.onTitleValidChanged_=pp.prototype.onTitleValidChanged_;pp.prototype.onEndChanged_=pp.prototype.onEndChanged_;pp.prototype.onStartChanged_=pp.prototype.onStartChanged_;pp.prototype.onTitleChanged_=pp.prototype.onTitleChanged_;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],pp.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.y(_.No.YtPlayerListenerBehavior),_.Q("design:type",Object)],pp.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],pp.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],pp.prototype,"data",void 0);_.r([_.Y({value:""}),_.Q("design:type",String)],pp.prototype,"titleValue",void 0);
_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],pp.prototype,"titleValid",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],pp.prototype,"start",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],pp.prototype,"startValid",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],pp.prototype,"end",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],pp.prototype,"endValid",void 0);_.r([_.Y({value:""}),_.Q("design:type",String)],pp.prototype,"videoId",void 0);
_.r([_.Y({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.Q("design:type",Boolean)],pp.prototype,"formValid",void 0);_.r([_.Y({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.Q("design:type",Object)],pp.prototype,"submitButton_",void 0);_.r([_.Y({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.Q("design:type",Object)],pp.prototype,"submitCommand_",void 0);
_.r([_.Y({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.Q("design:type",Object)],pp.prototype,"cancelButton_",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],pp.prototype,"isLoading_",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],pp.prototype,"isAdPlaying",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],pp.prototype,"returnTime",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],pp.prototype,"isAtLiveHead",void 0);
_.r([_.SA("title-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],pp.prototype,"onTitleChanged_",null);_.r([_.SA("start-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],pp.prototype,"onStartChanged_",null);_.r([_.SA("end-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],pp.prototype,"onEndChanged_",null);
_.r([_.SA("title-valid-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],pp.prototype,"onTitleValidChanged_",null);_.r([_.SA("start-valid-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],pp.prototype,"onStartValidChanged_",null);_.r([_.SA("end-valid-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],pp.prototype,"onEndValidChanged_",null);
_.r([_.ch({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],pp);
_.m(pp,"yt-clip-creation-renderer",function(){if(gEn===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;M2Y===void 0&&(M2Y=document.createElement("template"));var S=M2Y;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);gEn=L}L=gEn;return L},{mode:2});var zG=function(){return _.e.apply(this,arguments)||this};
_.f(zG,_.e);zG.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"}}}};
zG.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(L){return L.hasOwnProperty("clipCreationRenderer")})&&_.XJ(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
zG.prototype.onPanelContentVisibleChanged=zG.prototype.onPanelContentVisibleChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],zG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],zG.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Ae.YtVisibilityBehavior),_.Q("design:type",Object)],zG.prototype,"ytVisibilityBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],zG.prototype,"ytdReduxBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],zG.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],zG.prototype,"panelContentVisible",void 0);_.r([_.iA("panelContentVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zG.prototype,"onPanelContentVisibleChanged",null);_.r([_.P({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],zG);
_.m(zG,"ytd-clip-section-renderer",function(){if(OA8!==void 0)return OA8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return OA8=L},{mode:1});var vEt;var mu=function(){return _.e.apply(this,arguments)||this};
_.f(mu,_.e);_.t=mu.prototype;
_.t.onKeyDown=function(L){if(this.snippetElements.length!==0&&(L=L.keyCode,L===38||L===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);L===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.nM(this.highlightedIndex,-1,this.snippetElements.length);L=this.snippetElements.length;var Z=this.highlightedIndex%L;this.highlightedIndex=Z*L<0?Z+L:Z;L=this.snippetElements[this.highlightedIndex];this.highlightSnippet(L);this.ensureVisible(L)}};
_.t.onKeyUp=function(L){var Z=this;$Ti(L)&&(L.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.ro.cancelJob(this.inputTimerId),this.inputTimerId=_.ro.addLowPriorityJob(function(){Z.typedValue&&(Z.fetchSnippets(Z.typedValue),Z.logInputGesture(Z.data))},1E3))};
_.t.onClick=function(L){(L=_.wyh(L.target,null,"snippet-item"))&&this.selectSnippet(L)};
_.t.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.t.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.t.ready=function(){var L=this;this.inputElement.addEventListener("focus",function(){L.snippetsWrapper.style.removeProperty("display")})};
_.t.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.t.getSourceTimelines=function(){if(!this.data)return[];var L=[];if(this.data.searchInVideoSources)for(var Z=_.O(this.data.searchInVideoSources),N=Z.next();!N.done;N=Z.next())N=N.value,N==="SEARCH_IN_VIDEO_SOURCE_ASR"?L.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):N==="SEARCH_IN_VIDEO_SOURCE_OCR"&&L.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return L};
_.t.fetchSnippets=function(L){var Z=_.XJ(this.hostElement,"yt-get-current-video-id-action")[0],N=this.getSourceTimelines();L={getSearchInVideoCommand:{externalVideoId:Z,query:L!=null?L:"",sourceTimelines:N},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.GR().resolve(_.$s).resolveCommand(L,{form:{element:this.hostElement}})};
_.t.filterSnippets=function(L,Z){var N=this;if(Z){this.filteredSnippets=(0,_.Py.unsafeClone)(L);var S=RegExp(_.UXs(Z),"i");this.filteredSnippets=this.filteredSnippets.filter(function(W){return S.test(N.ytRendererBehavior.getSimpleString(W.snippet))});
L=_.O(this.filteredSnippets);for(var u=L.next();!u.done;u=L.next()){u=u.value;var T=this.ytRendererBehavior.getSimpleString(u.snippet);u.snippet={runs:[{text:T.substring(0,T.toLowerCase().indexOf(Z))},{text:T.substring(T.toLowerCase().indexOf(Z),T.toLowerCase().indexOf(Z)+Z.length),bold:!0},{text:T.substring(T.toLowerCase().indexOf(Z)+Z.length,T.length)}]}}}else this.filteredSnippets=L};
_.t.onUpdateSearchInVideoResults=function(L){if(!(this.snippets.length>0)){var Z,N,S;if((S=(Z=_.n(L,UTn))==null?void 0:(N=Z.results)==null?void 0:N.length)!=null&&S){var u;this.filteredSnippets=this.snippets=((u=_.n(L,UTn))==null?void 0:u.results).map(function(T){var W,V,M;return{startMs:T==null?void 0:(W=T.searchInVideoResultRenderer)==null?void 0:W.startMs,startTimeText:T==null?void 0:(V=T.searchInVideoResultRenderer)==null?void 0:V.startTimeText,snippet:T==null?void 0:(M=T.searchInVideoResultRenderer)==
null?void 0:M.snippet}})}}};
_.t.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};
_.t.highlightSnippet=function(L){L.classList.add("highlighted")};
_.t.removeSnippetHighlight=function(L){L.classList.remove("highlighted")};
_.t.selectSnippet=function(L){this.typedValue=String(L.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(L);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.t.ensureVisible=function(L){var Z=this.snippetsWrapper.scrollTop,N=Z+this.snippetsWrapper.clientHeight,S=L.offsetTop-this.snippetsWrapper.offsetTop;L=S+L.clientHeight;S<Z?this.snippetsWrapper.scrollTop-=Z-S:L>N&&(this.snippetsWrapper.scrollTop+=L-N)};
_.t.seekPlayer=function(L){var Z,N;return _.b(function(S){if(S.nextAddress==1){if(!L)return S.jumpTo(0);Z=Number(L.dataset.startOffset);return S.yield(_.r9().getPlayerPromise(),3)}N=S.yieldResult;N.seekTo(Z/1E3,!0);N.wakeUpControls();_.w7(S)})};
_.t.logInputGesture=function(L){var Z=_.RH();Z&&(L==null?0:L.trackingParams)&&_.jz(Z,_.Mg(L.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.t.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("typed-value-changed",this.typedValue))};
_.t.updateTypedValueFromBinding=function(L){this.typedValue=L.currentTarget.value};
mu.prototype.typedValueChangedForBinding=mu.prototype.typedValueChangedForBinding;mu.prototype.dataChanged=mu.prototype.dataChanged;mu.prototype.panelContentVisibleChanged=mu.prototype.panelContentVisibleChanged;mu.prototype.onClick=mu.prototype.onClick;mu.prototype.onKeyUp=mu.prototype.onKeyUp;mu.prototype.onKeyDown=mu.prototype.onKeyDown;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],mu.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],mu.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],mu.prototype,"data",void 0);_.r([_.Y({value:[]}),_.Q("design:type",Array)],mu.prototype,"snippets",void 0);_.r([_.Y({value:[]}),_.Q("design:type",Array)],mu.prototype,"filteredSnippets",void 0);_.r([_.Y({value:[]}),_.Q("design:type",Array)],mu.prototype,"snippetElements",void 0);
_.r([_.TX("#siv-input"),_.Q("design:type",HTMLElement)],mu.prototype,"inputElement",void 0);_.r([_.TX("#siv-snippets-wrapper"),_.Q("design:type",HTMLElement)],mu.prototype,"snippetsWrapper",void 0);_.r([_.Y(),_.Q("design:type",String)],mu.prototype,"typedValue",void 0);_.r([_.Y({value:-1}),_.Q("design:type",Number)],mu.prototype,"highlightedIndex",void 0);_.r([_.SA("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[_.o8]),_.Q("design:returntype")],mu.prototype,"onKeyDown",null);
_.r([_.SA("keyup"),_.Q("design:type",Function),_.Q("design:paramtypes",[_.o8]),_.Q("design:returntype")],mu.prototype,"onKeyUp",null);_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],mu.prototype,"onClick",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],mu.prototype,"panelContentVisible",void 0);
_.r([_.iA("panelContentVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mu.prototype,"panelContentVisibleChanged",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mu.prototype,"dataChanged",null);_.r([_.iA("typedValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mu.prototype,"typedValueChangedForBinding",null);
_.r([_.P({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],mu);
_.m(mu,"ytd-search-in-video-renderer",function(){if(vEt!==void 0)return vEt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return vEt=L},{mode:1});var oEf;var J_=function(){return _.e.apply(this,arguments)||this};
_.f(J_,_.e);J_.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
J_.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]]"}}}}}};
J_.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var L,Z,N,S,u=(Z=_.n((L=this.data)==null?void 0:L.onClickCommand,_.oFl))==null?void 0:(N=Z.item)==null?void 0:(S=N.notificationTextRenderer)==null?void 0:S.successResponseText;u&&_.Gvf(this.hostElement,u)}};
_.gd.Object.defineProperties(J_.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S;return this.isProductPlaceholder&&((L=this.data)==null?void 0:(Z=L.hiddenProductOptions)==null?void 0:Z.showDropCountdown)&&!!((N=this.data)==null?0:(S=N.hiddenProductOptions)==null?0:S.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var L;return!this.isProductPlaceholder&&!((L=this.data)==null?0:L.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!((L=this.data)==null?0:L.priceReplacementText)&&!((Z=this.data)==null||!Z.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],J_.prototype,"componentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],J_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],J_.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("isProductPlaceholder"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],J_.prototype,"useCenterLayoutContainer",null);_.r([_.Y({computed:"computeButtonOverride(data)"}),_.Q("design:type",Object)],J_.prototype,"buttonOverride",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],J_.prototype,"isProductPlaceholder",null);
_.r([_.w("isProductPlaceholder"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],J_.prototype,"showDropCountdown",null);_.r([_.w("isProductPlaceholder","data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],J_.prototype,"showBrandName",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],J_.prototype,"showPriceReplacementText",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],J_.prototype,"showPrice",null);
_.r([_.w("isProductPlaceholder"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],J_.prototype,"showMetadata",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],J_);
_.m(J_,"ytd-product-list-item-renderer",function(){if(oEf!==void 0)return oEf;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return oEf=L},{mode:1});var R9G;var Cp=function(){return _.e.apply(this,arguments)||this};
_.f(Cp,_.e);Cp.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Cp.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Cp.prototype.panelContentVisibleChanged=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1)return L.playerApi?N.jumpTo(2):N.yield(_.r9().getPlayerPromise(),3);N.nextAddress!=2&&(L.playerApi=N.yieldResult);(Z=L.playerApi)==null||Z.productsInVideoVisibilityUpdated(!!L.panelContentVisible);_.w7(N)})};
Cp.prototype.panelContentVisibleChanged=Cp.prototype.panelContentVisibleChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Cp.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Cp.prototype,"panelContentVisible",void 0);_.r([_.Y(),_.Q("design:type",Object)],Cp.prototype,"data",void 0);
_.r([_.iA("panelContentVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],Cp.prototype,"panelContentVisibleChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Cp);
_.m(Cp,"ytd-product-list-renderer",function(){if(R9G!==void 0)return R9G;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return R9G=L},{mode:1});var cVw;var ru=function(){var L=_.e.apply(this,arguments)||this;L.hideTimestamps=!!_.G7("hide-transcript-timestamps");L.currentCueIndex=-1;L.flatCues=[];L.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};L.TEST_ONLY={getFlatCues:function(){return L.flatCues}};
return L};
_.f(ru,_.e);_.t=ru.prototype;_.t.hideTimestampsChanged=function(){_.gr("hide-transcript-timestamps",this.hideTimestamps)};
_.t.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.t.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.t.dataChanged=function(){var L;if((L=this.data)!=null&&L.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;L=_.O(this.data.cueGroups);for(var Z=L.next();!Z.done;Z=L.next()){Z=_.O(_.n(Z.value,YM9).cues);for(var N=Z.next();!N.done;N=Z.next())this.flatCues.push(Number(_.n(N.value,ean).startOffsetMs))}}};
_.t.onYtPlayerTimeChanged=function(L){if(!(L<0)){for(var Z=this.currentCueIndex,N=Z;;){var S=N>=0?this.flatCues[N]/1E3:-1;if(L+.5<S)--N;else if(S=N+1<this.flatCues.length?this.flatCues[N+1]/1E3:Infinity,L+.5>S)N+=1;else break}N!==Z&&(Z>=0&&((L=this.getCueElement(Z))&&L.classList.remove("active"),(Z=this.getCueGroupElement(Z))&&Z.classList.remove("active")),(Z=this.getCueElement(N))&&Z.classList.add("active"),(Z=this.getCueGroupElement(N))&&Z.classList.add("active"),this.currentCueIndex=N,this.isHovered||
this.scrollElementToTop(N))}};
_.t.scrollElementToTop=function(L){L=this.getCueElement(L>=3?L-3:0);this.hostElement.scrollTop=Math.min(L.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.t.getCueElement=function(L){return _.QJ(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[L]+'"]')};
_.t.getCueGroupElement=function(L){return(L=this.getCueElement(L))&&L.parentElement?L.parentElement.parentElement:null};
_.t.onTap=function(L){var Z=_.jD(L);L.target.classList.contains("cue")&&this.seekCueElement(Z)};
_.t.onKeyPress=function(L){L.keyCode==13&&(L=_.wyh(L.target,null,"cue"))&&this.seekCueElement(L)};
_.t.seekCueElement=function(L){L=Number(L.getAttribute("start-offset"));_.XJ(this.hostElement,"yt-transcript-player-seek",[L/1E3])};
_.t.onMouseEnter=function(){this.isHovered=!0};
_.t.onMouseLeave=function(){this.isHovered=!1};
ru.prototype.onMouseLeave=ru.prototype.onMouseLeave;ru.prototype.onMouseEnter=ru.prototype.onMouseEnter;ru.prototype.onKeyPress=ru.prototype.onKeyPress;ru.prototype.onTap=ru.prototype.onTap;ru.prototype.dataChanged=ru.prototype.dataChanged;ru.prototype.hideTimestampsChanged=ru.prototype.hideTimestampsChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],ru.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ru.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ru.prototype,"hideTimestamps",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],ru.prototype,"isHovered",void 0);_.r([_.iA("hideTimestamps"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ru.prototype,"hideTimestampsChanged",null);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ru.prototype,"dataChanged",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],ru.prototype,"onTap",null);_.r([_.SA("keypress"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],ru.prototype,"onKeyPress",null);
_.r([_.SA("mouseenter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ru.prototype,"onMouseEnter",null);_.r([_.SA("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ru.prototype,"onMouseLeave",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],ru);
_.m(ru,"ytd-transcript-body-renderer",function(){if(cVw!==void 0)return cVw;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return cVw=L},{mode:1});var nEn;var Qt=function(){var L=_.e.apply(this,arguments)||this;L.darkerPanels=_.c("web_watch_darker_panels");return L};
_.f(Qt,_.e);Qt.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Qt.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Qt.prototype,"darkerPanels",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Qt);
_.m(Qt,"ytd-transcript-footer-renderer",function(){if(nEn!==void 0)return nEn;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return nEn=L},{mode:1});var KSM;var fl8;var Xy=function(){var L=_.e.apply(this,arguments)||this;L.systemIcons=_.c("kevlar_system_icons");L.showClearButton=!1;return L};
_.f(Xy,_.e);_.t=Xy.prototype;_.t.handleInput=function(L){var Z=this;L.target.value.length?_.YD(this,"ytdTranscriptSearchBoxSearch",function(){Z.emitSearchEvent(L)},500):(_.o7w(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=L.target.value.length>0};
_.t.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.t.handleClick=function(){var L,Z=(L=this.data)==null?void 0:L.trackingParams;Z&&_.U$(_.tC(),Z)};
_.t.handleClear=function(){_.o7w(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var L,Z,N=(Z=_.n((L=this.data)==null?void 0:L.clearButton,_.xZ))==null?void 0:Z.trackingParams;N&&_.U$(_.tC(),N);this.clear()};
_.t.emitSearchEvent=function(L){_.QT(this.hostElement,"yt-transcript-search-box-search",{query:L.target.value});var Z,N;(L=(N=_.n((Z=this.data)==null?void 0:Z.searchButton,_.xZ))==null?void 0:N.trackingParams)&&_.U$(_.tC(),L)};
_.t.emitClearEvent=function(){_.QT(this.hostElement,"yt-transcript-search-box-clear")};
_.gd.Object.defineProperties(Xy.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.QJ(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Xy.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Xy.prototype,"systemIcons",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Xy);
_.m(Xy,"ytd-transcript-search-box-renderer",function(){if(fl8!==void 0)return fl8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return fl8=L},{mode:1});var kIG;var yVG;var A_=function(){return _.e.apply(this,arguments)||this};
_.f(A_,_.e);A_.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var L,Z;this.sectionHeaderAriaLabel=(L=this.data)==null?void 0:(Z=L.accessibility)==null?void 0:Z.accessibilityData.label}};
A_.prototype.fireSelectedEvent=function(L){_.QT(this.hostElement,"ytd-transcript-section-header",{startMs:L})};
A_.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
A_.prototype.handleKeyPress=function(L){this.data&&L.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.gd.Object.defineProperties(A_.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var L,Z;return(Z=(L=this.data)==null?void 0:L.enableTappableTranscriptHeader)!=null?Z:!1}}});
A_.prototype.dataChanged=A_.prototype.dataChanged;_.r([_.Y(),_.Q("design:type",Object)],A_.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],A_.prototype,"sectionHeaderAriaLabel",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],A_.prototype,"enableTappableTranscriptHeader",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],A_.prototype,"dataChanged",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],A_);
_.m(A_,"ytd-transcript-section-header-renderer",function(){if(yVG!==void 0)return yVG;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return yVG=L},{mode:1});var wK8;var UCG;var HG=function(){var L=_.e.apply(this,arguments)||this;L.isEditMode=!1;L.touchCaptionsEnabled=!1;L.deleteCaptionCorrectionPopupCommand=null;L.voteCaptionCorrectionPopupCommand=null;L.roundedContainer=!0;L.mouseOver=!1;L.textChanged=!1;L.messages={suggest_correction:_.iB("suggest_correction",void 0,"Edit caption"),suggested_caption:_.iB("suggested_caption",void 0,"Suggested caption"),submit_correction:_.iB("submit_correction",void 0,"Submit for review"),cancel_correction:_.iB("cancel_correction",
void 0,"Cancel"),replay_segment:_.iB("replay_segment",void 0,"Re-play segment"),delete_correction:_.iB("delete_correction",void 0,"Delete correction")};L.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return L};
_.f(HG,_.e);_.t=HG.prototype;_.t.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)};
_.t.handleDelete=function(L){if(this.deleteCaptionCorrectionPopupCommand){var Z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);Z&&this.ytdOpenPopupBehavior.openPopup(Z);L.stopPropagation()}};
_.t.handleSubmit=function(L){if(this.data&&this.data.submitCaptionCorrectionCommand&&(L.stopPropagation(),this.textChanged)){var Z;L=(Z=_.n(this.data.submitCaptionCorrectionCommand,_.Kxt))==null?void 0:Z.params;Z=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:L,correctionText:String(this.ironTextAreaElement.value),originalText:_.jM(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(Z);this.isEditMode=!1}};
_.t.handleUpdateSegmentText=function(L){(L=_.n(L,Ah8))&&L.targetId&&this.data&&L.targetId===this.data.targetId&&(L.userCorrection&&(this.editedText=L.userCorrection),L.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.jM(this.data.snippet)),L.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=L.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=L.voteCaptionCorrectionPopupCommand?
L.voteCaptionCorrectionPopupCommand:null,L.accessibility&&(this.segmentAriaLabel=L.accessibility.accessibilityData.label))};
_.t.handleCancel=function(L){this.isEditMode=!1;L.stopPropagation();this.logClientVe(159409)};
_.t.handleEditSegmentCommand=function(L){(L=_.n(L,X8V))&&L.targetId&&this.data&&L.targetId===this.data.targetId&&this.handleEdit()};
_.t.handleEditButtonClick=function(L){this.data&&(this.handleEdit(),L.stopPropagation())};
_.t.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var L;(L=this.ironTextAreaElement.textarea)==null||L.focus();this.logClientVe(159407)}};
_.t.handleMouseEnter=function(){this.mouseOver=!0};
_.t.handleMouseLeave=function(){this.mouseOver=!1};
_.t.handleReplay=function(L){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),L.stopPropagation(),this.logClientVe(159408))};
_.t.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()))};
_.t.handleKeypress=function(L){this.data&&(this.isEditMode?L.stopPropagation():this.isEnterPress(L)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(L)&&this.logClientVe(138758))};
_.t.handleTextboxClick=function(L){L.stopPropagation()};
_.t.handleTextboxKeydown=function(L){this.isControlEnterPress(L)?this.handleSubmit(L):L.key==="Escape"&&this.handleCancel(L)};
_.t.handleTextboxKeyup=function(){this.textChanged=_.jM(this.latestText)!==String(this.ironTextAreaElement.value)};
_.t.fireSelectedEvent=function(L){_.QT(this.hostElement,"yt-transcript-segment-selected",{startMs:L})};
_.t.fireReplayEvent=function(L,Z){_.QT(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(L-100,0),endMs:Z})};
_.t.fireEditEvent=function(L,Z){_.QT(this.hostElement,"yt-transcript-segment-edit",{startMs:L,endMs:Z})};
_.t.isEnterPress=function(L){return L.key==="Enter"||L.code==="Enter"||L.code==="NumpadEnter"||L.keyCode===13?!0:!1};
_.t.isControlEnterPress=function(L){var Z=L.key==="Enter"||L.code==="Enter"||L.code==="NumpadEnter"||L.keyCode===13;return(L.ctrlKey||L.metaKey)&&Z};
_.t.isCopyPress=function(L){var Z=L.ctrlKey;return L.key==="c"&&Z};
_.t.logClick=function(){var L,Z=(L=this.data)==null?void 0:L.trackingParams;Z&&_.U$(_.tC(),Z)};
_.t.logClientVe=function(L){_.wM(_.tC(),_.Ll(L))};
_.gd.Object.defineProperties(HG.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}}});
HG.prototype.handleMouseLeave=HG.prototype.handleMouseLeave;HG.prototype.handleMouseEnter=HG.prototype.handleMouseEnter;HG.prototype.dataChanged=HG.prototype.dataChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],HG.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.W0),_.Q("design:type",Object)],HG.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],HG.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],HG.prototype,"isEditMode",void 0);_.r([_.Y(),_.Q("design:type",Object)],HG.prototype,"touchCaptionsEnabled",void 0);_.r([_.Y(),_.Q("design:type",Object)],HG.prototype,"editedText",void 0);_.r([_.Y(),_.Q("design:type",Object)],HG.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.r([_.Y(),_.Q("design:type",Object)],HG.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.r([_.Y(),_.Q("design:type",String)],HG.prototype,"segmentAriaLabel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],HG.prototype,"roundedContainer",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],HG.prototype,"mouseOver",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],HG.prototype,"textChanged",void 0);_.r([_.Y(),_.Q("design:type",Object)],HG.prototype,"messages",void 0);
_.r([_.TX("#suggestion"),_.Q("design:type",Object)],HG.prototype,"ironTextAreaElement",void 0);_.r([_.w("data","editedText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],HG.prototype,"latestText",null);_.r([_.w("touchCaptionsEnabled","isEditMode"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],HG.prototype,"enableEditButton",null);
_.r([_.w("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],HG.prototype,"enableUndoButton",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],HG.prototype,"dataChanged",null);_.r([_.SA("mouseenter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],HG.prototype,"handleMouseEnter",null);
_.r([_.SA("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],HG.prototype,"handleMouseLeave",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],HG);
_.m(HG,"ytd-transcript-segment-renderer",function(){if(UCG!==void 0)return UCG;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return UCG=L},{mode:1});var BG=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};L.isError=!1;L.darkerPanels=_.c("web_watch_darker_panels");L.useParentMaxHeight=_.c("web_watch_transscript_use_parent_max_height");L.segmentOffsets=[];L.segmentIndex=-1;return L};
_.f(BG,_.e);_.t=BG.prototype;_.t.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"}}}}};
_.t.segmentsChanged=function(){this.updateOffsets()};
_.t.onYtPlayerTimeChanged=function(L){for(var Z=this.segmentIndex,N=Z;;){if(N>=0){var S=this.segmentOffsets[N].start;var u=this.segmentOffsets[N].isAutoScrollable}else S=-1,u=!0;var T=L+.5;if(!u){S=N+1<this.segmentOffsets.length?this.segmentOffsets[N+1].start:Infinity;if(T>=S){N+=1;continue}N=-1;break}if(T<S)S=N-1>=0&&this.segmentOffsets[N-1].isAutoScrollable,u=N===0||S?1:2,N-=u;else if(u=N+1<this.segmentOffsets.length&&this.segmentOffsets[N+1].isAutoScrollable?1:2,S=N+u<this.segmentOffsets.length?
this.segmentOffsets[N+u].start:Infinity,T>S)N+=u;else{if(N<0)break;N<this.segmentOffsets.length&&T>this.segmentOffsets[N].end&&(N=-1);break}}if(Z!==N){if(Z>=0){var W;(W=this.getSegmentElement(Z))==null||W.classList.remove("active")}this.segmentIndex=N;if(!(N<0)){var V;(V=this.getSegmentElement(N))==null||V.classList.add("active");this.isHovered||this.scrollElementToTop(N)}}};
_.t.handleSegmentEdit=function(L){L.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=L.target,_.XJ(this.hostElement,"yt-transcript-player-edit",[L.detail.startMs/1E3,L.detail.endMs/1E3]))};
_.t.handleSegmentSelected=function(L){_.XJ(this.hostElement,"yt-transcript-player-seek",[L.detail.startMs/1E3])};
_.t.handleSegmentReplay=function(L){_.XJ(this.hostElement,"yt-transcript-player-replay",[L.detail.startMs/1E3,L.detail.endMs/1E3])};
_.t.handleSectionHeaderSelected=function(L){_.XJ(this.hostElement,"yt-transcript-player-seek",[L.detail.startMs/1E3])};
_.t.onMouseEnter=function(){this.isHovered=!0};
_.t.onMouseLeave=function(){this.isHovered=!1};
_.t.onRetryButtonClick=function(){_.QT(this.hostElement,"transcript-retry-button-click")};
_.t.getSegmentElement=function(L){return _.QJ(this.hostElement).querySelector(":nth-child("+(L+1)+")")};
_.t.scrollElementToTop=function(L){L=this.getSegmentElement(L>=2?L-2:0);this.hostElement.scrollTop=Math.min(L.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.t.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(L){var Z,N=(Z=L.transcriptSegmentRenderer)!=null?Z:L.transcriptSectionHeaderRenderer;return{start:Number(N.startMs)/1E3,end:Number(N.endMs)/1E3,isAutoScrollable:L.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.t.clearHighlightedSegments=function(){var L=_.QJ(this.hostElement);L=_.O(L.querySelectorAll("ytd-transcript-segment-renderer"));for(var Z=L.next();!Z.done;Z=L.next())Z.value.classList.remove("active")};
_.gd.Object.defineProperties(BG.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?void 0:L.searchResultSegments)||((Z=this.data)==null?void 0:Z.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
BG.prototype.onMouseLeave=BG.prototype.onMouseLeave;BG.prototype.onMouseEnter=BG.prototype.onMouseEnter;BG.prototype.handleSectionHeaderSelected=BG.prototype.handleSectionHeaderSelected;BG.prototype.handleSegmentReplay=BG.prototype.handleSegmentReplay;BG.prototype.handleSegmentSelected=BG.prototype.handleSegmentSelected;BG.prototype.handleSegmentEdit=BG.prototype.handleSegmentEdit;BG.prototype.segmentsChanged=BG.prototype.segmentsChanged;
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],BG.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],BG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],BG.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],BG.prototype,"isError",void 0);
_.r([_.Y(),_.Q("design:type",Object)],BG.prototype,"noResultLabel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BG.prototype,"darkerPanels",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BG.prototype,"useParentMaxHeight",void 0);_.r([_.w("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],BG.prototype,"segments",null);
_.r([_.w("segments","noResultLabel"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],BG.prototype,"displayNoResults",null);_.r([_.iA("segments"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BG.prototype,"segmentsChanged",null);_.r([_.SA("yt-transcript-segment-edit"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],BG.prototype,"handleSegmentEdit",null);
_.r([_.SA("yt-transcript-segment-selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],BG.prototype,"handleSegmentSelected",null);_.r([_.SA("yt-transcript-segment-replay"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],BG.prototype,"handleSegmentReplay",null);
_.r([_.SA("ytd-transcript-section-header"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],BG.prototype,"handleSectionHeaderSelected",null);_.r([_.SA("mouseenter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BG.prototype,"onMouseEnter",null);_.r([_.SA("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BG.prototype,"onMouseLeave",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],BG);
_.m(BG,"ytd-transcript-segment-list-renderer",function(){if(wK8!==void 0)return wK8;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return wK8=L},{mode:1});var xk=function(){var L=_.e.apply(this,arguments)||this;L.hideTimestamps=!!_.G7("hide-transcript-timestamps");L.isLoadingTranscripts=!1;L.darkerPanels=_.c("web_watch_darker_panels");L.isError=!1;L.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return L};
_.f(xk,_.e);_.t=xk.prototype;_.t.headerChanged=function(){var L,Z;this.baseGetTranscriptsCommand=(Z=_.n((L=this.data)==null?void 0:L.header,Hnw))==null?void 0:Z.onTextChangeCommand};
_.t.bodyChanged=function(){var L=this.getBodyRenderer();L&&(L.initialSegments&&(this.initialTranscriptsRenderer=L),L.noResultLabel&&(this.noResultLabel=L.noResultLabel),L.retryLabel&&(this.retryLabel=L.retryLabel))};
_.t.detached=function(){this.clearSearchBoxText()};
_.t.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.t.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"}}}};
_.t.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.t.fireSearch=function(L){var Z=this;if(L){var N=L.detail.query;if(this.baseGetTranscriptsCommand){var S;L=(S=_.n(this.baseGetTranscriptsCommand,_.naq))==null?void 0:S.params;var u;S=_.n((u=this.data)==null?void 0:u.footer,I88);var T;if((u=(T=_.n(S==null?void 0:S.languageMenu,CTn))==null?void 0:T.subMenuItems)&&u.length>0&&(T=u.find(function(M){return M.selected}))){var W,V;
L=(W=T.continuation)==null?void 0:(V=W.reloadContinuationData)==null?void 0:V.continuation}W=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:L,searchQuery:N}});this.ytComponentBehavior.resolveCommand(W,{commandController:{onServerError:function(){Z.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});Gpi(this.ytContinuationHandlerBehavior,function(){return N===Z.getCurrentSearchBoxText()})}}};
_.t.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.t.onRetryButtonClick=function(){this.isError=!1;var L={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:L}))};
_.t.hideTimestampsChanged=function(){_.gr("hide-transcript-timestamps",this.hideTimestamps)};
_.t.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.t.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.t.handleSignalActionCopyTranscript=function(){var L=this,Z=this.getBodyRenderer();Z&&(Z=((Z==null?void 0:Z.searchResultSegments)||(Z==null?void 0:Z.initialSegments)||[]).map(function(N){return _.n(N,xTw)}).filter(function(N){return!!N}).map(function(N){return{snippet:N.snippet||{runs:[{text:""}]},
startTimeText:N.startTimeText||{simpleText:""}}}).map(function(N){var S=(N.snippet.runs||[]).reduce(function(u,T){return u+T.text},"");
return L.hideTimestamps?S:N.startTimeText.simpleText+" "+S}).join("\n"),this.copyToClipboard(Z))};
_.t.copyToClipboard=function(L){navigator.clipboard&&navigator.clipboard.writeText(L)};
_.t.getCurrentSearchBoxText=function(){var L;return(L=this.searchBox)==null?void 0:L.value};
_.t.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.t.getBodyRenderer=function(){var L;return _.n((L=this.data)==null?void 0:L.body,Bjn)};
_.t.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.gd.Object.defineProperties(xk.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.QJ(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
xk.prototype.hideTimestampsChanged=xk.prototype.hideTimestampsChanged;xk.prototype.searchCleared=xk.prototype.searchCleared;xk.prototype.fireSearch=xk.prototype.fireSearch;xk.prototype.onReloadContinuationFinish=xk.prototype.onReloadContinuationFinish;xk.prototype.bodyChanged=xk.prototype.bodyChanged;xk.prototype.headerChanged=xk.prototype.headerChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],xk.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],xk.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Sq),_.Q("design:type",Object)],xk.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],xk.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xk.prototype,"hideTimestamps",void 0);
_.r([_.Y(),_.Q("design:type",Object)],xk.prototype,"isLoadingTranscripts",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xk.prototype,"darkerPanels",void 0);_.r([_.Y(),_.Q("design:type",Object)],xk.prototype,"isError",void 0);_.r([_.iA("data.header"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xk.prototype,"headerChanged",null);
_.r([_.Vr("data.body"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xk.prototype,"bodyChanged",null);_.r([_.SA("yt-reload-continuation-finish"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xk.prototype,"onReloadContinuationFinish",null);_.r([_.SA("yt-transcript-search-box-search"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],xk.prototype,"fireSearch",null);
_.r([_.SA("yt-transcript-search-box-clear"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xk.prototype,"searchCleared",null);_.r([_.iA("hideTimestamps"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xk.prototype,"hideTimestampsChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],xk);
_.m(xk,"ytd-transcript-search-panel-renderer",function(){if(kIG!==void 0)return kIG;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return kIG=L},{mode:1});var qn=function(){var L=_.e.apply(this,arguments)||this;L.player=null;L.playerPollJobId=0;return L};
_.f(qn,_.e);_.t=qn.prototype;_.t.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.t.onLoadReloadContinuation=function(L){_.c("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:L.target.data.continuation}}):(L={clickTrackingParams:L.target.data.clickTrackingParams,getTranscriptEndpoint:{params:L.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.GR().resolve(_.$s).resolveCommand(L,{form:{element:this.hostElement}}))};
_.t.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"}}}};
_.t.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.t.attached=function(){this.updatePlayerListening()};
_.t.detached=function(){this.updatePlayerListening()};
_.t.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.t.startPlayerListening=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1)return(Z=_.CV())?N.yield(Z.getPlayerPromise(),2):N.return();L.player=N.yieldResult;L.playerPollJobId=_.ro.addLowPriorityJob(function(){L.getPlayerVideoProgress()},1E3);
L.player.addEventListener("onCueRangeEnter",function(S){L.onCueRangeEnter(S)});
L.player.addEventListener("onCueRangeExit",function(S){L.onCueRangeExit(S)});
L.player.addEventListener("onStateChange",function(S){L.onPlayerStateChange(S)});
L.player.addEventListener("SEEK_TO",function(S){L.onPlayerSeek(S)});
_.w7(N)})};
_.t.getPlayerVideoProgress=function(){var L=this;_.ro.cancelJob(this.playerPollJobId);if(this.player){var Z=this.player.getCurrentTime();_.XJ(this.hostElement,"yt-player-time-changed",[Z])}this.playerPollJobId=_.ro.addLowPriorityJob(function(){L.getPlayerVideoProgress()},1E3)};
_.t.stopPlayerListening=function(){this.player=null;_.ro.cancelJob(this.playerPollJobId)};
_.t.onPlayerStateChange=function(L){L===2&&this.removePendingCue()};
_.t.onPlayerSeek=function(L){var Z;if(Z=this.pendingReplayCueId)Z=this.pendingReplayCueId,Z=L===(_.c("web_transcript_cue_id_killswitch")?Number(Z):Number(Z.split("_")[1]));Z||this.removePendingCue()};
_.t.onCueRangeEnter=function(L){d$Y(L)&&(this.pendingReplayCueId=L)};
_.t.onCueRangeExit=function(L){d$Y(L)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.t.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.t.onYtTranscriptPlayerSeek=function(L){this.player&&this.player.seekTo(L,!0)};
_.t.onYtTranscriptPlayerReplay=function(L,Z){this.player&&(this.player.addCueRange(I4Y(L),L,Z),this.player.seekTo(L,!0),this.player.playVideo())};
_.t.onYtTranscriptPlayerEdit=function(L,Z){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(I4Y(L),L,Z),this.player.seekTo(L,!0))};
qn.prototype.onLoadReloadContinuation=qn.prototype.onLoadReloadContinuation;qn.prototype.panelContentVisibleChanged=qn.prototype.panelContentVisibleChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],qn.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],qn.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],qn.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],qn.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],qn.prototype,"panelContentVisible",void 0);_.r([_.iA("panelContentVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qn.prototype,"panelContentVisibleChanged",null);
_.r([_.SA("yt-load-reload-continuation"),_.Q("design:type",Function),_.Q("design:paramtypes",[Object]),_.Q("design:returntype")],qn.prototype,"onLoadReloadContinuation",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],qn);
_.m(qn,"ytd-transcript-renderer",function(){if(KSM!==void 0)return KSM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return KSM=L},{mode:1});var YIM;var e9G;var La=function(){return _.e.apply(this,arguments)||this};
_.f(La,_.e);La.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.QT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.B2(this.hostElement,[this.data.clickCommand],this.hostElement))};
La.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.fr)()+_.j1)+"px)"};
La.prototype.updateShouldHideFromBinding=function(L){this.shouldHide=L.detail.value};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],La.prototype,"rendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],La.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],La.prototype,"shouldHide",void 0);_.r([_.P({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],La);
_.m(La,"ytd-ad-engagement-panel-banner-renderer",function(){if(e9G!==void 0)return e9G;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return e9G=L},{mode:_.Qr("kevlar_poly_si_batch_j070")?1:2});var Il8;var ZZ=function(){var L=_.e.apply(this,arguments)||this;L.modernPanels=_.c("kevlar_watch_modern_panels");L.buttonUpdate=_.c("web_modern_buttons");L.adsSemanticText=_.c("enable_ads_web_ep_buenos_aires_and_padding_fix");return L};
_.f(ZZ,_.e);ZZ.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.r([_.Y(),_.Q("design:type",Object)],ZZ.prototype,"data",void 0);_.r([_.Y({computed:"computeHideDefaultAdBadge(data)"}),_.Q("design:type",Boolean)],ZZ.prototype,"hideDefaultAdBadge",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ZZ.prototype,"modernPanels",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ZZ.prototype,"buttonUpdate",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ZZ.prototype,"adsSemanticText",void 0);
_.r([_.P({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],ZZ);
_.m(ZZ,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Il8!==void 0)return Il8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Il8=L},{mode:1});var dC7;var Nm=function(){var L=_.e.apply(this,arguments)||this;L.darkerPanels=_.c("web_watch_darker_panels");L.enableSqueezebackPanels=_.c("web_shorts_enable_squeezeback_panels");L.enableAnchoredPanel=_.c("desktop_shorts_v2_anchored_panel");L.modernPanels=_.c("kevlar_watch_modern_panels");L.headerClickListener=function(Z){L.onHeaderClick(Z)};
L.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return L};
_.f(Nm,_.e);_.t=Nm.prototype;_.t.computeAdsInfoButton=function(){if(_.c("web_modern_buttons")){var L,Z;return(Z=_.n((L=this.data)==null?void 0:L.subtitleComplex,dT9))==null?void 0:Z.adInfoRenderer}};
_.t.updateHeaderClickListener=function(){var L,Z,N;((L=this.data)==null?0:L.navigationEndpoint)||((Z=this.data)==null?0:Z.onClickCommand)||_.n((N=this.data)==null?void 0:N.visibilityButton,_.qf)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.t.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}}}}}};
_.t.collapsedChanged=function(){var L;(L=this.data)!=null&&L.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.c("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.t.focus=function(L){var Z=this;this.titleElement&&_.ro.addJob(function(){_.tV(Z.titleElement,L)},0,500)};
_.t.computeTitleAriaLabel=function(L){var Z=[];if(L.title){var N,S;Z.push(this.ytRendererBehavior.getSimpleString(L.title)||((N=L.title.accessibility)==null?void 0:(S=N.accessibilityData)==null?void 0:S.label))}L.contextualInfo&&Z.push(this.ytRendererBehavior.getSimpleString(L.contextualInfo));return Z.join(" ")};
_.t.onHeaderClick=function(L){this.shouldTriggerHeaderClick(L)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.QT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.B2(this.hostElement,[this.data.onClickCommand],this.hostElement)):(L=this.getVisibilityToggleButton())&&L.click())};
_.t.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var L=_.n(this.data.visibilityButton,_.xZ)||_.n(this.data.visibilityButton,_.qf);L&&this.ytRendererBehavior.logExplicitClick(L)}};
_.t.getVisibilityToggleButton=function(){var L=_.QJ(this.hostElement).querySelector("#visibility-button").firstElementChild;return(L==null?void 0:L.is)==="ytd-toggle-button-renderer"?L:null};
_.t.shouldTriggerHeaderClick=function(L){return!_.PQ(_.sx(L),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.t.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(L){L=_.n(L,_.K0w);this.targetId&&(L==null?void 0:L.targetId)===this.targetId&&(L=L.navigationButton)&&this.set("data.navigationButton",L)};
_.gd.Object.defineProperties(Nm.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.c("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var L;return!!(((L=this.entity)==null?0:L.isActionButtonHidden)||this.hideActionButton)}}});
Nm.prototype.collapsedChanged=Nm.prototype.collapsedChanged;Nm.prototype.updateHeaderClickListener=Nm.prototype.updateHeaderClickListener;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Nm.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Nm.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.CD),_.Q("design:type",Object)],Nm.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Nm.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],Nm.prototype,"targetId",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Nm.prototype,"collapsed",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Nm.prototype,"hideActionButton",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Nm.prototype,"shortsPanel",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Nm.prototype,"liveChatEngagementPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Nm.prototype,"learningChatEngagementPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Nm.prototype,"darkerPanels",void 0);_.r([_.TX("#title"),_.Q("design:type",HTMLElement)],Nm.prototype,"titleElement",void 0);_.r([_.TX("#header"),_.Q("design:type",HTMLElement)],Nm.prototype,"headerElement",void 0);
_.r([_.Y({computed:"computeAdsInfoButton(data)"}),_.Q("design:type",Object)],Nm.prototype,"adsInfoButton",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Nm.prototype,"enableSqueezebackPanels",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Nm.prototype,"enableAnchoredPanel",void 0);_.r([_.Y({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"engagementPanelTitleHeaderEntity",Z)}}),
_.Q("design:type",Object)],Nm.prototype,"entity",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Nm.prototype,"modernPanels",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("targetId"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Nm.prototype,"adsSemanticText",null);_.r([_.iA("data","data.navigationEndpoint","data.onClickCommand"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Nm.prototype,"updateHeaderClickListener",null);
_.r([_.Vr("collapsed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Nm.prototype,"collapsedChanged",null);_.r([_.w("entity","hideActionButton"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Nm.prototype,"isActionButtonHidden",null);_.r([_.P({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Nm);
_.m(Nm,"ytd-engagement-panel-title-header-renderer",function(){if(dC7!==void 0)return dC7;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return dC7=L},{mode:1});var al9;var S0=function(){return _.e.apply(this,arguments)||this};
_.f(S0,_.e);S0.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],S0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],S0.prototype,"data",void 0);_.r([_.P({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],S0);
_.m(S0,"ytd-macro-markers-info-item-renderer",function(){if(al9!==void 0)return al9;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return al9=L},{mode:1});var h9V;var iJ=function(L,Z,N,S,u,T){_.ag.call(this);var W=this;this.JSC$23021_containerElement=L;this.hostElement=Z;this.supportedSyncItems=N;this.syncEntityKey=S;this.options=u;this.renderLazyListItems=T;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;sWi(this);jWY(this);this.JSC$23021_scrollAnimation=new _.SH(function(V){L.scrollTop=V});
_.Ky(this,this.JSC$23021_scrollAnimation);this.addOnDisposeCallback(function(){EE6(W,!1);W.activeItem&&W.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.f(iJ,_.ag);var sWi=function(L){var Z=_.hK(_.GR().resolve(_.mc),function(N){return N.entities.markersEngagementPanelSyncEntity||{}},function(N,S){var u;
if(N[L.syncEntityKey]!==S[L.syncEntityKey]&&((u=N[L.syncEntityKey])==null?void 0:u.activeItemIndex)!==void 0)if(S=N[L.syncEntityKey].activeItemIndex,N=L.getItemByIndex(S)){if(PRi(L,N),L.contentVisible)if(L.browsingMode){var T;((T=L.options)==null?void 0:T.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(T=pKw(L),N.offsetTop<L.JSC$23021_containerElement.clientHeight+L.JSC$23021_containerElement.scrollTop&&T&&!L.activeItemBelowSyncPosition&&EE6(L,!1));z9t(L)}else L.scrollToItem(N)}else _.Q7(new _.sr("Could not find "+
L.supportedSyncItems+" sync child to set active.",S,L.JSC$23021_containerElement.querySelectorAll(L.supportedSyncItems).length))});
L.unsubscribeFromTimedMarkersListSyncEntity=Z;L.addOnDisposeCallback(Z);mCq(L)},mCq=function(L){var Z=_.GR().resolve(_.mc);
Z=_.$Kt(Z.getState(),L.syncEntityKey);(Z==null?void 0:Z.activeItemIndex)!==void 0&&(Z=L.getItemByIndex(Z.activeItemIndex))&&PRi(L,Z)},jWY=function(L){var Z=new _.Sw(L.onScroll,50,L);
_.Ky(L,Z);var N=function(){Z.fire()};
L.JSC$23021_containerElement.addEventListener("scroll",N);L.addOnDisposeCallback(function(){L.JSC$23021_containerElement.removeEventListener("scroll",N)})};
iJ.prototype.getItemByIndex=function(L){var Z;(Z=this.renderLazyListItems)==null||Z.call(this,L);Z=this.JSC$23021_containerElement.querySelectorAll(this.supportedSyncItems);if(Z.length>L)return Z[L]};
var PRi=function(L,Z){L.activeItem&&L.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));Z.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));L.activeItem=Z};
iJ.prototype.scrollToItem=function(L){L=this.getScrollPositionForItem(L);this.JSC$23021_containerElement.scrollTop!==L&&this.JSC$23021_scrollAnimation.start(this.JSC$23021_containerElement.scrollTop,L,300)};
iJ.prototype.getScrollPositionForItem=function(L){if(this.JSC$23021_containerElement.querySelectorAll(this.supportedSyncItems)[0]===L)return 0;var Z,N=((Z=this.options)==null?0:Z.percentOffset)?this.JSC$23021_containerElement.clientHeight*this.options.percentOffset:0;L=_.Cx(L).y+this.JSC$23021_containerElement.scrollTop-(_.Cx(this.JSC$23021_containerElement).y+N);return Math.max(0,Math.min(L,this.JSC$23021_containerElement.scrollHeight-this.JSC$23021_containerElement.offsetHeight))};
iJ.prototype.onScroll=function(){this.activeItemBelowSyncPosition=pKw(this);if(this.activeItem&&!this.JSC$23021_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23021_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var L;switch((L=this.options)==null?void 0:L.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":JVn(this,!CRf(this));z9t(this);break;default:JVn(this,!0)}}};
var JVn=function(L,Z){var N,S;_.b(function(u){if(u.nextAddress==1){if(L.browsingMode)return u.return();L.browsingMode=!0;Z&&L.hostElement.classList.add("browsing-mode");L.playerExitBrowsingModeListener=function(){EE6(L,!1)};
return u.yield(_.Z7(),2)}N=u.yieldResult;(S=N)==null||S.addEventListener("SEEK_TO",L.playerExitBrowsingModeListener);_.w7(u)})},EE6=function(L,Z){Z=Z===void 0?!0:Z;
L.browsingMode&&(L.browsingMode=!1,L.hostElement.classList.remove("browsing-mode"),Z&&L.scrollToItem(L.activeItem),rVn(L))},rVn=function(L){var Z,N;
_.b(function(S){if(S.nextAddress==1)return L.playerExitBrowsingModeListener?S.yield(_.Z7(),3):S.jumpTo(0);Z=S.yieldResult;(N=Z)==null||N.removeEventListener("SEEK_TO",L.playerExitBrowsingModeListener);L.playerExitBrowsingModeListener=void 0;_.w7(S)})},z9t=function(L){var Z;
((Z=L.options)==null?void 0:Z.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(CRf(L)?L.hostElement.classList.remove("browsing-mode"):L.activeItem&&L.hostElement.classList.add("browsing-mode"))},pKw=function(L){if(!L.activeItem)return!1;
var Z,N=((Z=L.options)==null?0:Z.percentOffset)?L.JSC$23021_containerElement.clientHeight*L.options.percentOffset:0;return L.activeItem.offsetTop>=L.JSC$23021_containerElement.scrollTop+N},CRf=function(L){if(!L.activeItem)return!1;
var Z=L.activeItem.offsetTop+14<=L.JSC$23021_containerElement.scrollTop+L.JSC$23021_containerElement.clientHeight;return L.activeItem.offsetTop+L.activeItem.clientHeight-14>=L.JSC$23021_containerElement.scrollTop&&Z};
iJ.prototype.panelContentVisibleChanged=function(L){(this.contentVisible=L)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var QWM=function(L,Z){L.syncEntityKey=Z;var N;(N=L.unsubscribeFromTimedMarkersListSyncEntity)==null||N.call(L);sWi(L)},XKV=function(L,Z){L.options=Z};var uJ=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return L};
_.f(uJ,_.e);_.t=uJ.prototype;_.t.detached=function(){var L;(L=this.scrollController)==null||L.dispose();this.scrollController=void 0};
_.t.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"}}}};
_.t.dataChanged=function(){var L=this;_.bN(this,function(){if(L.scrollController){var Z;(Z=L.scrollController)==null||EE6(Z,!1);var N,S,u;(S=L.scrollController)==null||QWM(S,(u=(N=L.data)==null?void 0:N.syncModelEntityKey)!=null?u:"default-macro-markers-list-renderer-entity-key");var T,W,V;(V=L.scrollController)==null||XKV(V,{percentOffset:(T=L.data)==null?void 0:T.selectedItemAlignmentPercentOffset,floatingPillType:(W=L.data)==null?void 0:W.floatingPillType})}else{var M,G,D,l;L.scrollController=
new iJ(L.contents,L.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(l=(M=L.data)==null?void 0:M.syncModelEntityKey)!=null?l:"default-macro-markers-list-renderer-entity-key",{percentOffset:(G=L.data)==null?void 0:G.selectedItemAlignmentPercentOffset,floatingPillType:(D=L.data)==null?void 0:D.floatingPillType},function(v){L.renderLazyListItems(v)})}L.scrollController.panelContentVisibleChanged(!!L.panelContentVisible)})};
_.t.computeButtonShape=function(){var L=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){L.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.t.renderLazyListItems=function(L){for(var Z=this.contents.children,N=0,S=0;S<Z.length;S++){var u=void 0;(u=Z[S].ytLazyListBehavior)==null||u.fillRemainingListItems();var T=void 0,W=void 0;u=_.n((T=this.data)==null?void 0:(W=T.contents)==null?void 0:W[S],_.uP5);W=T=void 0;if((T=u)==null?0:(W=T.contents)==null?0:W.length)N+=u.contents.length;if(N>=L)break}};
_.t.handleSetActivePanelItemAction=function(L){if((L=_.n(L,kpq))&&this.panelTargetId===L.panelTargetId){L=L.itemIndex;var Z,N,S=(N=(Z=this.data)==null?void 0:Z.syncModelEntityKey)!=null?N:"default-macro-markers-list-renderer-entity-key",u;((u=this.syncEntity)==null?void 0:u.activeItemIndex)!==L&&this.ytdReduxBehavior.dispatch(_.Mr("markersEngagementPanelSyncEntity",S,{key:S,activeItemIndex:L}))}};
_.t.onSyncClick=function(){var L;(L=this.scrollController)==null||EE6(L)};
_.t.panelContentVisibleChanged=function(){var L;(L=this.scrollController)==null||L.panelContentVisibleChanged(!!this.panelContentVisible)};
uJ.prototype.panelContentVisibleChanged=uJ.prototype.panelContentVisibleChanged;uJ.prototype.dataChanged=uJ.prototype.dataChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],uJ.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],uJ.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.CD),_.Q("design:type",Object)],uJ.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],uJ.prototype,"data",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],uJ.prototype,"useCustomColors",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],uJ.prototype,"panelTargetId",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],uJ.prototype,"panelContentVisible",void 0);
_.r([_.TX("#contents"),_.Q("design:type",HTMLElement)],uJ.prototype,"contents",void 0);_.r([_.Y({selectorArgs:["data.syncModelEntityKey"],selector:_.$Kt}),_.Q("design:type",Object)],uJ.prototype,"syncEntity",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],uJ.prototype,"dataChanged",null);
_.r([_.iA("panelContentVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],uJ.prototype,"panelContentVisibleChanged",null);_.r([_.P({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],uJ);
_.m(uJ,"ytd-macro-markers-list-renderer",function(){if(h9V!==void 0)return h9V;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return h9V=L},{mode:1});var AVi;var TM=function(){return _.e.apply(this,arguments)||this};
_.f(TM,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],TM.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],TM.prototype,"data",void 0);_.r([_.P({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],TM);
_.m(TM,"ytd-error-corrections-section-item-renderer",function(){if(AVi!==void 0)return AVi;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return AVi=L},{mode:1});var HAG;var tm=function(){return _.e.apply(this,arguments)||this};
_.f(tm,_.e);tm.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],tm.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],tm.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],tm.prototype,"data",void 0);_.r([_.P({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],tm);
_.m(tm,"ytd-error-corrections-section-renderer",function(){if(HAG!==void 0)return HAG;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return HAG=L},{mode:1});var BYq;var OD=function(){return _.e.apply(this,arguments)||this};
_.f(OD,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],OD.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],OD.prototype,"data",void 0);_.r([_.P({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],OD);
_.m(OD,"ytd-topic-link-renderer",function(){if(BYq!==void 0)return BYq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return BYq=L},{mode:1});var xC9;var W_=function(){var L=_.e.apply(this,arguments)||this;L.modern=_.c("kevlar_modern_sd_v2");L.modernLockupV2=_.c("modernize_structured_description_playlist_lockups_v2");return L};
_.f(W_,_.e);W_.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"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],W_.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],W_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],W_.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],W_.prototype,"modern",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],W_.prototype,"modernLockupV2",void 0);
_.r([_.P({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],W_);
_.m(W_,"ytd-video-description-course-section-renderer",function(){if(xC9!==void 0)return xC9;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return xC9=L},{mode:1});var qIn;var V1=function(){var L=_.e.apply(this,arguments)||this;L.modern=_.c("kevlar_modern_sd_v2");return L};
_.f(V1,_.e);V1.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"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],V1.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],V1.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],V1.prototype,"modern",void 0);_.r([_.P({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],V1);
_.m(V1,"ytd-video-description-files-section-renderer",function(){if(qIn!==void 0)return qIn;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return qIn=L},{mode:1});var Ld9;var bJ=function(){return _.e.apply(this,arguments)||this};
_.f(bJ,_.e);bJ.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"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],bJ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],bJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],bJ.prototype,"data",void 0);_.r([_.P({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],bJ);
_.m(bJ,"ytd-video-description-gaming-section-renderer",function(){if(Ld9!==void 0)return Ld9;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Ld9=L},{mode:1});var Zot;var Mm=function(){var L=_.e.apply(this,arguments)||this;L.isExpanded=!1;return L};
_.f(Mm,_.e);Mm.prototype.computeHasDefaultMetadataEndpoint=function(L){var Z;L=L==null?void 0:(Z=L.defaultMetadata)==null?void 0:Z.runs;return!(!L||L.length!==1||!L[0].navigationEndpoint)};
Mm.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.gd.Object.defineProperties(Mm.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Mm.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Mm.prototype,"isExpanded",void 0);_.r([_.Y({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Mm.prototype,"hasDefaultMetadataEndpoint",void 0);
_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Mm.prototype,"isExpandable",null);_.r([_.w("data","isExpandable","isExpanded"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Mm.prototype,"showExpandedMetadata",null);_.r([_.P({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Mm);
_.m(Mm,"ytd-info-row-renderer",function(){if(Zot!==void 0)return Zot;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Zot=L},{mode:1});var Nx9;var gb=function(){var L=_.e.apply(this,arguments)||this;L.currentIndex=0;L.supportComponentResize=!0;L.modern=_.c("kevlar_modern_sd_v2");L.JSC$23051_lastScrollContainerWidth=NaN;return L};
_.f(gb,_.e);_.t=gb.prototype;
_.t.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"}}}};
_.t.getItemsPath=function(){return"videoLockups"};
_.t.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.t.onIronResize=function(){this.updateVideoLockupStyles()};
_.t.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.t.updateVideoLockupStyles=function(){var L;this.JSC$23051_scrollContainer!==void 0&&(L=this.videoLockups)!=null&&L.length&&(L=this.JSC$23051_scrollContainer.clientWidth,L!==this.JSC$23051_lastScrollContainerWidth&&(this.JSC$23051_lastScrollContainerWidth=L,_.Ld(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(L*.8,415)+"px"}),_.QT(this.hostElement,"iron-resize")))};
_.gd.Object.defineProperties(gb.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var L=[],Z;if((Z=this.data)==null||!Z.carouselLockups)return L;Z=_.O(this.data.carouselLockups);for(var N=Z.next();!N.done;N=Z.next()){N=N.value;var S=void 0;((S=_.n(N,SrY))==null?0:S.videoLockup)&&L.push(_.n(N,SrY).videoLockup)}return L}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.videoLockups)==null||!L.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var L=[],Z;if((Z=this.data)==null||!Z.carouselLockups)return L;var N;return(N=_.n(this.data.carouselLockups[this.scrollCount],SrY))==null?void 0:N.infoRows}}});
gb.prototype.dataChanged=gb.prototype.dataChanged;gb.prototype.onIronResize=gb.prototype.onIronResize;gb.prototype.hiddenChanged=gb.prototype.hiddenChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],gb.prototype,"componentBehavior",void 0);_.r([_.y(_.Mo.YtdHorizontalListBehavior),_.Q("design:type",Object)],gb.prototype,"ytdHorizontalListBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],gb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],gb.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],gb.prototype,"inlineStructuredDescription",void 0);_.r([_.Y({value:2}),_.Q("design:type",Number)],gb.prototype,"initialCount",void 0);_.r([_.Y(),_.Q("design:type",Object)],gb.prototype,"currentIndex",void 0);
_.r([_.Y(),_.Q("design:type",Number)],gb.prototype,"scrollCount",void 0);_.r([_.Y(),_.Q("design:type",Object)],gb.prototype,"supportComponentResize",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],gb.prototype,"contentHidden",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],gb.prototype,"modern",void 0);_.r([_.TX("#scroll-container"),_.Q("design:type",HTMLDivElement)],gb.prototype,"JSC$23051_scrollContainer",void 0);
_.r([_.iA("contentHidden"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gb.prototype,"hiddenChanged",null);_.r([_.w("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],gb.prototype,"videoLockups",null);_.r([_.w("videoLockups"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],gb.prototype,"hasVideoLockups",null);
_.r([_.SA("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gb.prototype,"onIronResize",null);_.r([_.w("data","scrollCount"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],gb.prototype,"infoRows",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gb.prototype,"dataChanged",null);_.r([_.P({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],gb);
_.m(gb,"ytd-video-description-music-section-renderer",function(){if(Nx9!==void 0)return Nx9;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Nx9=L},{mode:_.Qr("kevlar_poly_si_batch_j081")?1:2});var SVM;var GM=function(){var L=_.e.apply(this,arguments)||this;L.modern=_.c("kevlar_modern_sd_v2");return L};
_.f(GM,_.e);GM.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],GM.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.r([_.Y({}),_.Q("design:type",Object)],GM.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],GM.prototype,"modern",void 0);_.r([_.P({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],GM);
_.m(GM,"ytd-video-description-transcript-section-renderer",function(){if(SVM!==void 0)return SVM;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return SVM=L},{mode:1});var ioM;_.CY(_.p(function(L){var Z=_.OS(_.vHB,function(){return L.data().firstProviderLinkStatusEntityKey}),N=_.OS(_.vHB,function(){return L.data().secondProviderLinkStatusEntityKey}),S=function(){var u,T;
return((u=Z())==null?void 0:u.linked)||((T=N())==null?void 0:T.linked)};
return _.g("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.g(_.qv,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return L.data().sectionTitle}}),_.g(_.qv,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return S()?L.data().connectedMessage:L.data().notConnectedMessage}}),_.g(_.F,{cond:S,
then:function(){return _.g(_.bj,{data:function(){return L.data().connectedButton}},{buttonViewModel:function(u){return _.g(_.$X,{data:u.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.g(_.F,{cond:function(){return!S()},
then:function(){return _.g(_.bj,{data:function(){return L.data().notConnectedButton}},{buttonViewModel:function(u){return _.g(_.$X,{data:u.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"ln"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){var Z=L.data;return _.g("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.g("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.g(_.qv,{text:function(){return Z().sectionTitle}})),_.g("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.g(_.qv,{text:function(){return Z().bodyHeader}})),_.g("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.g(_.qv,{text:function(){return Z().bodyText}})),_.g(_.F,{cond:function(){return Z().attributionText},
then:function(){return _.g("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.g(_.qv,{text:function(){return Z().attributionText}}))}}))},"mn"),"how-this-was-made-section-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){return _.g("yt-video-description-youchat-section-view-model",{class:_.qg("ytVideoDescriptionYouchatSectionViewModelHost")},_.g("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.g(_.qv,{text:function(){return L.data().sectionTitle}})),_.g("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.g(_.qv,{text:function(){return L.data().subHeaderText}})),_.g("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.g(_.$X,{data:function(){return _.n(L.data().primaryButton,
_.NU)}})))},"nn"),"yt-video-description-youchat-section-view-model",{props:{data:_.LK}});var F_=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return L};
_.f(F_,_.e);_.t=F_.prototype;
_.t.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}}}}}};
_.t.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.t.dataChanged=function(){var L,Z;this.hasDescriptionOnly=!(((L=this.data)==null?void 0:(Z=L.items)==null?void 0:Z.length)!==1||!_.n(this.data.items[0],hH))};
_.t.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.t.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.t.autoFocusDescription=function(){var L;((L=_.GR().resolve(_.gv(_.VG)))==null?0:L.isKeyBoardInUse())&&this.description&&_.OI(this.description)};
_.t.resize=function(){if(_.c("kevlar_disable_sd_resize"))this.JSC$23060_cardList&&_.QT(this.JSC$23060_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.QT(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.QT(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.t.scrollToSection=function(L){if(L=this.getSectionElement(L))_.XJ(this.hostElement,"yt-scroll-to-watch-element",[L]),L.focus()};
_.t.getSectionElement=function(L){switch(L){case "infocards-item-section":var Z;return(Z=this.infocardsSection)!=null?Z:null;case "transcript-item-section":var N;return(N=this.transcriptSection)!=null?N:null;case "how-this-was-made-section-item-section":var S;return(S=this.howThisWasMadeSection)!=null?S:null;case "files-item-section":var u;return(u=this.filesSection)!=null?u:null;default:return null}};
_.t.handleSetActiveItemAction=function(L){var Z=_.n(L,kpq),N=Z&&(Z==null?void 0:Z.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23060_cardList;if(Z&&N){L=this.currentActiveChapter;var S=this.currentActiveProblem;Z=N==null?void 0:N.getItemByIndex(Z.itemIndex);var u=N=!0;Z&&(Z.active=!0,Z.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(N=L!==Z,u=!1,this.currentActiveChapter=Z):(Z==null?void 0:Z.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(N=!1,u=S!==Z,this.currentActiveProblem=Z));L&&N&&(L.active=!1);S&&u&&(S.active=!1)}};
_.gd.Object.defineProperties(F_.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.c("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
F_.prototype.onYtExpanderMoreTapped=F_.prototype.onYtExpanderMoreTapped;F_.prototype.onHiddenChanged=F_.prototype.onHiddenChanged;F_.prototype.dataChanged=F_.prototype.dataChanged;F_.prototype.panelContentVisibleChanged=F_.prototype.panelContentVisibleChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],F_.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.Eb),_.Q("design:type",Object)],F_.prototype,"ironResizableBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],F_.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],F_.prototype,"panelContentVisible",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],F_.prototype,"hasDescriptionOnly",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],F_.prototype,"inlineStructuredDescription",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],F_.prototype,"hidden",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],F_.prototype,"shortsPanel",void 0);_.r([_.Y(),_.Q("design:type",Object)],F_.prototype,"videoSummary",void 0);_.r([_.Y(),_.Q("design:type",Object)],F_.prototype,"merchShelf",void 0);
_.r([_.w("videoSummary"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],F_.prototype,"showVideoSummary",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],F_.prototype,"engagementPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],F_.prototype,"watchWhileSdp",void 0);_.r([_.TX("ytd-expandable-video-description-body-renderer"),_.Q("design:type",Object)],F_.prototype,"description",void 0);
_.r([_.TX("ytd-horizontal-card-list-renderer"),_.Q("design:type",Object)],F_.prototype,"JSC$23060_cardList",void 0);_.r([_.TX("ytd-horizontal-card-list-renderer[center-items]"),_.Q("design:type",Object)],F_.prototype,"problemWalkthroughCardList",void 0);_.r([_.TX("ytd-shelf-renderer"),_.Q("design:type",Object)],F_.prototype,"shelfSection",void 0);_.r([_.TX("ytd-video-description-music-section-renderer"),_.Q("design:type",Object)],F_.prototype,"musicMetadataSection",void 0);
_.r([_.TX("ytd-video-description-infocards-section-renderer"),_.Q("design:type",Object)],F_.prototype,"infocardsSection",void 0);_.r([_.TX("ytd-video-description-transcript-section-renderer"),_.Q("design:type",Object)],F_.prototype,"transcriptSection",void 0);_.r([_.TX("how-this-was-made-section-view-model"),_.Q("design:type",Object)],F_.prototype,"howThisWasMadeSection",void 0);_.r([_.TX("ytd-video-description-files-section-renderer"),_.Q("design:type",Object)],F_.prototype,"filesSection",void 0);
_.r([_.iA("panelContentVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],F_.prototype,"panelContentVisibleChanged",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],F_.prototype,"dataChanged",null);_.r([_.iA("hidden"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],F_.prototype,"onHiddenChanged",null);
_.r([_.SA("yt-expander-more-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],F_.prototype,"onYtExpanderMoreTapped",null);_.r([_.P({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],F_);
_.m(F_,"ytd-structured-description-content-renderer",function(){if(ioM!==void 0)return ioM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ioM=L},{mode:2});var ul7;var TxG;var $O=function(){return _.e.apply(this,arguments)||this};
_.f($O,_.e);$O.prototype.computeAriaLabel=function(L){var Z,N;return(L==null?void 0:(Z=L.accessibility)==null?void 0:(N=Z.accessibilityData)==null?void 0:N.label)||_.iB("LOADING",void 0,"Loading")};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],$O.prototype,"data",void 0);_.r([_.Y({computed:"computeAriaLabel(data)"}),_.Q("design:type",String)],$O.prototype,"ariaLabel",void 0);_.r([_.ch({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],$O);
_.m($O,"yt-content-loading-renderer",function(){if(TxG===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;ul7===void 0&&(ul7=document.createElement("template"));var S=ul7;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);TxG=L}L=TxG;return L},{mode:_.Qr("kevlar_poly_si_batch_j043")?1:2});_.CY(_.p(function(L){var Z=_.O(_.nh(!1,void 0,"OZMtVb")),N=Z.next().value,S=Z.next().value;Z=_.O(_.nh(!1,void 0,"qWERsf"));var u=Z.next().value,T=Z.next().value;_.m0(function(){var M=_.n(L.data().collaboratePlaylistCollaborationSetting,rhM);M&&S(M.switchedOnByDefault);var G=_.n(L.data().allowNewCollaboratorsPlaylistCollaborationSetting,rhM);G&&T(G.switchedOnByDefault);if(!M&&!G||!M&&L.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")S(!0),T(!0)});
var W=function(M){S(M);T(M);var G=L.data().playlistCollaborationEntityKey||"";var D=_.hJ().getState();(D=_.Lk(D.entities,"playlistCollaborationEntity",G))&&(D==null?void 0:D.isCollaborative)===M||_.hJ().dispatch(_.Mr("playlistCollaborationEntity",G,Object.assign({},D,{isCollaborative:M})))},V=function(M){T(M)};
return _.g("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.g("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.g(_.bj,{data:function(){return L.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(M){return _.g(_.TbI,{data:M.data,
onSwitch:W})}})),_.g(_.F,{cond:N,
then:function(){return _.g(_.F7,null,_.g("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.g(_.bj,{data:function(){return L.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(M){return _.g(_.TbI,{data:M.data,
onSwitch:V,overrideDisabled:!1})}})),_.g(_.F,{cond:u,
then:function(){return _.g("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.g(_.bj,{data:function(){return L.data().copyLinkButton}},{buttonViewModel:_.$X}))}}),_.g("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.g(_.bj,{data:function(){return L.data().playlistCollaborators}},{contentListItemViewModel:_.u8g})))}}))},"on"),"playlist-collaboration-view-model",{props:{data:_.LK}});var tSV=_.p(function(L){var Z=L.data;var N=L.customCommandResolver;return _.g(_.F7,null,_.g("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.g(_.bj,{data:function(){return Z().adAvatar}},{adAvatarViewModel:function(S){return _.g(_.IdL,{data:S.data,
customCommandResolver:N})}})),_.g("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.g(_.F,{cond:function(){return Z().headline},
then:function(S){return _.g(_.qv,{text:S,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.g("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.g(_.bj,{data:function(){return Z().adBadge}},{adBadgeViewModel:function(S){return _.g(_.o9,{data:S.data,
hasDot:function(){return Z().primaryDetailsLine!==void 0},
customCommandResolver:N,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.g(_.bj,{data:function(){return Z().primaryDetailsLine}},{adDetailsLineViewModel:function(S){return _.g(_.R9,{data:S.data,
customCommandResolver:N,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"pn"),Oo7=_.p(function(L){var Z=L.data;
var N=L.customCommandResolver;return _.g("ad-avatar-lockup-view-model",{class:function(){var S;return((S=Z().interaction)==null?0:S.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.P9(_.$b({visibilityCallback:function(S){var u,T=(u=Z().interaction)==null?void 0:u.onFirstVisible;S&&T&&_.w$(T)},
showOption:_.M1}),_.k9(function(){return Z().interaction},N)),
"aria-label":function(){var S,u;return(S=Z().interaction)==null?void 0:(u=S.accessibility)==null?void 0:u.label}},_.g(_.EM,null,_.g(_.hh,{when:function(){return Z().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.g(tSV,{data:Z,
customCommandResolver:N})}),_.g(_.sM,null,function(){return null})))},"qn");_.CY(_.p(function(L){var Z=L.data;var N=L.panelContentVisibility;L=_.$b({visibilityCallback:function(T){var W,V=(W=Z().interaction)==null?void 0:W.onFirstVisible;T&&V&&_.w$(V)},
showOption:_.M1});var S=_.k9(function(){return Z().interaction},a48);
_.Ch(function(){var T,W;if(W=_.LZ("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var V;W=(V=W())==null?void 0:V.onLayoutVisibleCallback}else W=null;(T=W)==null||T()},"rn");
var u=function(){return N()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.g("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.P9(L,S)},_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.g(_.F,{cond:_.G4h("(min-width: "+((0,_.fr)()+_.j1)+"px) or (max-width: 600px)"),then:function(){return _.g(_.bj,{data:function(){return Z().adImage}},{adImageViewModel:function(T){return _.g(_.av,{data:T.data,
targetHeight:80,customCommandResolver:a48})}})}})),_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.g(_.bj,{data:function(){return Z().adAvatarLockup}},{adAvatarLockupViewModel:function(T){return _.g(Oo7,{data:T.data,
customCommandResolver:a48})}})),_.g(_.F,{cond:u,
then:function(){return _.g(_.bj,{data:function(){return Z().adButton}},{adButtonViewModel:function(T){return _.g(_.G9,{data:T.data,
customCommandResolver:a48})}})},
else:function(){return _.g(_.bj,{data:function(){return Z().menu}},{buttonViewModel:_.$X})}}),_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.g(_.bj,{data:function(){var T=_.n(Z().toggleButton,_.iD);
return{toggleButtonViewModel:Object.assign({},T,{isTogglingDisabled:!0,isToggled:u()})}}},{toggleButtonViewModel:_.sj})))))},"sn"),"panel-ad-header-image-lockup-view-model",{props:{data:_.LK,
panelContentVisibility:_.LK}});_.CY(_.p(function(L){var Z=function(){return _.n(L.data().inputComposerViewModel,Qln)},N=_.VB(_.Y9.currentPageSubTypeSelector),S=_.VB(_.Y9.persistentPanelVisibleSelector),u=_.O(_.nh(!1,void 0,"ZdYZ1d")),T=u.next().value,W=u.next().value;
u=_.O(_.nh(!1,void 0,"iu0Tnf"));var V=u.next().value,M=u.next().value,G=function(){U(!0);var RF;_.w$(((RF=Z())==null?void 0:RF.onSubmitCommand)||{})},D=function(){if(S()&&!V()){var RF;
(RF=_.Nr())==null||RF.removeCueRange("aic-proactive");W(!1);M(!0);G();RF={continuationCommand:{token:Z().endOfVideoContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var jf={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),pageContext:Yt()}};_.fY(RF,{form:{formData:jf},commandController:{onSuccess:function(){U(!1)},
onServerError:function(){_.fY(jYM(A()));U(!1)}}})}},l=function(){var RF=_.Nr();
if(RF&&!T()&&!V()){var jf=RF.getDuration();jf>60&&(RF.addCueRange("aic-proactive",jf-60,jf-20),W(!0))}},v=function(){var RF;
return((RF=Z())==null?void 0:RF.youchatPendingResponseEntityKey)||""},R=_.OS(_.g5t,v),K=function(){var RF;
return!((RF=R())==null||!RF.isPendingResponse)},U=function(RF){_.GgM(v())(RF)};
u=_.O(_.nh(!0,void 0,"FwVSpb"));var d=u.next().value,h=u.next().value,E=function(){var RF,jf;var f1=_.n((jf=Z())==null?void 0:jf.inputFormField,n_8);return f1==null?void 0:(RF=f1.contentProperties)==null?void 0:RF.placeholderText},A=function(){return Z().sectionTargetId||"youchat_messages_section"};
u=_.OV("yt-chat-input-view-model");var J=_.t2("textarea"),C=_.OS(cW8,"chat_input_view_model_state"),X=nRG(),L1=function(){var RF;return!((RF=C())==null||!RF.value)},Fw=function(){return L.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},GB=function(){var RF;
(RF=_.Nr())==null||RF.removeCueRange("aic-proactive");W(!1);M(!1);var jf;((jf=Z())==null?0:jf.navigationContinuation)&&S()&&(G(),RF={continuationCommand:{token:Z().navigationContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},jf={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:ERY(),pageContext:Yt()}},_.fY(RF,{form:{formData:jf},commandController:{onSuccess:function(){U(!1)},
onServerError:function(){_.fY(jYM(A()));U(!1)}}}))},Yt=function(){if(_.c("enable_ai_companion")){var RF=_.GR().resolve(_.gv(_.TJg));
switch(N()){case "watch":var jf,f1;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(jf=_.Nr())==null?void 0:(f1=jf.getVideoData())==null?void 0:f1.video_id};case "search":var n0,r5;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(n0=RF==null?void 0:_.DcM(RF))!=null?n0:[],entityId:(r5=(new URLSearchParams(window.location.search)).get("search_query"))!=null?r5:void 0};case "companion-canvas":var yq;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(yq=RF==null?void 0:_.DcM(RF))!=null?yq:[]}}}};
_.m0(function(){var RF;if(!L1()&&((RF=Z())==null?0:RF.welcomeFeatureContinuation)){var jf;((jf=Z())==null?0:jf.setPendingResponseOnWelcome)&&U(!0);RF={continuationCommand:{token:Z().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};jf={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:ERY(),pageContext:Yt()}};_.fY(RF,{form:{formData:jf}});X(!0)}var f1=A(),n0=_.GR().resolve(_.gv(_.kv)),r5=function(){_.Vm.remove(f1);X(!1)},yq=function(){_.cE(function(){if(Fw()&&
(GB(f1),N()==="watch")){var ZN=_.Nr();
ZN&&(ZN.addEventListener("onStateChange",l),ZN.addEventListener("onCueRangeEnter",D))}})};
RF=_.c("enable_ai_companion")?!Fw():!0;n0==null||n0.addEventListener("yt-navigate-start",r5,{once:RF});n0==null||n0.addEventListener("yt-navigate-finish",yq,{once:RF});_.zs(function(){n0==null||n0.removeEventListener("yt-navigate-start",r5);n0==null||n0.removeEventListener("yt-navigate-finish",yq);var ZN=_.Nr();ZN&&(ZN.removeEventListener("onCueRangeEnter",D),ZN.removeEventListener("onStateChange",l),ZN.removeCueRange("aic-proactive"))})});
var lH=function(){var RF=J.value.value;J.value.value="";h06(J.value);var jf,f1=((jf=Z())==null?void 0:jf.enableGradientColorBg)||!1;jf=sYn(A(),RF,f1);_.fY(jf);G();var n0;jf={continuationCommand:{token:(n0=Z())==null?void 0:n0.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};RF={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:RF,playerOffsetMs:ERY(),pageContext:Yt()}};_.fY(jf,{form:{formData:RF},commandController:{onSuccess:function(){U(!1)},
onServerError:function(){_.fY(jYM(A()));U(!1)}}})};
return _.g("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:u},_.g("div",{class:"chatInputViewModelChatInputWrapper"},_.g("form",{class:"chatInputViewModelChatInputForm"},_.g("textarea",{class:"chatInputViewModelChatInput",el:J,"on:keydown":_.Z9(function(RF){var jf=K()||!1;h06(J.value);jf||RF.key!=="Enter"||RF.shiftKey||(RF.preventDefault(),lH());return!1}),
"on:keyup":_.Z9(function(){h(J.value.value.length===0);return!1}),
"aria-label":function(){return K()?L.data().loadingAnimationA11yLabel||"":E()},
placeholder:E,rows:1}),_.g(_.$X,{data:function(){return _.n(L.data().sendButton,_.NU)},
onClick:function(RF){RF.preventDefault();lH();h(J.value.value.length===0)},
buttonOverrides:function(){return{disabled:d()||K()}}})),_.g(_.qv,{className:"chatInputViewModelChatDisclaimer",
text:function(){var RF;return(RF=_.n(L.data().disclaimer,_.TVh))==null?void 0:RF.text}})))},"tn"),"yt-chat-input-view-model",{props:{data:_.LK}});var Wdf=["engagement-panel-clip-create","engagement-panel-clip-view"],VSt=0,DZ=function(){var L=_.e.apply(this,arguments)||this;var Z;L.headerData=(Z=L.data)==null?void 0:Z.header;L.darkerPanels=_.c("web_watch_darker_panels");L.matchContentTheme=_.c("web_watch_panel_content_match_theme");L.disableAutoFill=!1;L.isFullscreen=!1;L.isTheaterMode=!1;L.modernPanels=_.c("kevlar_watch_modern_panels");L.liveChatReplyPanel=!1;L.enableAnchoredPanel=_.c("desktop_shorts_v2_anchored_panel");L.disableBackdropFilter=
_.c("web_disable_backdrop_filter");L.isPersistentPanel=!1;L.trackEngagementPanelVisibility=_.c("web_watch_track_engagement_panel_visibility");L.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 L};
_.f(DZ,_.e);_.t=DZ.prototype;
_.t.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(L){var Z;return(L==null?void 0:(Z=L.webComponentHint)==null?void 0:Z.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.t.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var L;if((L=this.hostElement.parentElement)==null?0:L.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.t.detached=function(){this.updateTheaterDisablement()};
_.t.showPanel=function(){var L=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.ro.addJob(function(){L.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.t.maybeScrollToItemSection=function(L){var Z=this,N,S=L==null?void 0:(N=L.sectionListEngagementPanelExtras)==null?void 0:N.scrollToItemSectionIdentifier;S&&_.ro.addJob(function(){var u;(u=Z.sectionListRendererElement)==null||u.scrollToItemSection(S)},8)};
_.t.hidePanel=function(){var L=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.ro.addJob(function(){L.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.t.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.t.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.t.updatePanel=function(L,Z,N,S){var u=this;if((L=L==null?void 0:L.engagementPanelSectionListRenderer)||S){if(L){S=L.header;var T=L.content,W=L.footer;(L=L.targetId)&&this.set("data.targetId",L);S&&this.set("data.header",S);T&&this.set("data.content",T);W&&this.set("data.footer",W)}else S&&(L=S.content,T=S.secondaryHeaderContent,(S=S.targetId)&&this.set("data.targetId",S),L&&this.set("data.content",L),T&&(this.secondaryHeaderData=T));this.updateChildVisibilityProperties();if(Z){var V;_.c("kevlar_update_panel_focus_scroll_killswitch")||
(V={preventScroll:!0});this.focus(V)}_.bN(this,function(){_.QT(u.hostElement,"yt-refit");u.maybeScrollToItemSection(N)})}};
_.t.computeHeaderData=function(){var L,Z=(0,_.Py.unsafeClone)((L=this.data)==null?void 0:L.header);if(Z){L=new _.S5(Object.keys(Z)[0]);var N=_.n(Z,L),S=_.n(this.secondaryHeaderData,L);S&&_.v9(Z,L,Object.assign({},S,N))}return Z};
_.t.getReloadContinuation=function(){var L,Z,N,S=_.O(((L=this.data)==null?void 0:(Z=L.content)==null?void 0:(N=Z.sectionListRenderer)==null?void 0:N.continuations)||[]);for(L=S.next();!L.done;L=S.next())if(L=L.value,L.reloadContinuationData)return L.reloadContinuationData.continuation};
_.t.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var L;((L=this.data)==null?0:L.targetId)&&(L=this.contentElement.firstElementChild)&&L.setAttribute("panel-target-id",this.data.targetId)};
_.t.forwardPopupClosedToFlowRootRenderer=function(){var L=_.QJ(this.hostElement).querySelector("ytd-flow-root-renderer");if(L)L.onPopupClosed()};
_.t.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var L;if(!Wdf.includes((L=this.theaterDisablementPanelIdentifier)!=null?L:""))if(L=_.c("web_watch_imax_theater_mode")&&this.isTheaterMode,L=_.c("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||L,_.c("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||L){var Z;this.visibility=(Z=this.data)==null?void 0:Z.visibility;var N;this.trackEngagementPanelVisibility&&((N=this.data)==null?void 0:N.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var S,u,T,W;this.contentEmpty=!!(((S=this.data)==null?0:(u=S.content)==null?0:u.structuredDescriptionContentRenderer)&&Object.keys((T=this.data)==null?void 0:(W=T.content)==null?void 0:
W.structuredDescriptionContentRenderer).length===0);(Z=_.GR().resolve(_.EB))&&Z.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.t.isTheaterModeChanged=function(){_.c("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.t.isFullscreenChanged=function(){_.c("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.t.focus=function(L){if(this.header)this.header.focus(L);else{var Z;(Z=_.QJ(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||Z.focus(L)}};
_.t.visibilityChanged=function(){if(!_.c("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var L=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Z=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",N=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",S=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",u=S||!this.lastVisibility,T,W,V,M=((T=this.data)==null?void 0:(W=T.identifier)==null?void 0:
W.tag)||((V=this.data)==null?void 0:V.panelIdentifier);if(L&&u){var G;((G=this.data)==null?0:G.onShowCommands)&&_.B2(this.hostElement,this.data.onShowCommands,this.hostElement);M&&_.Pv().dispatch(_.XK({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:M}}))}else if(Z&&N){var D;((D=this.data)==null?0:D.onHideCommands)&&_.B2(this.hostElement,this.data.onHideCommands,this.hostElement);M&&_.Pv().dispatch(_.XK({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:M}}))}L&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*VSt++));_.c("kevlar_watch_focus_on_engagement_panels")&&L&&S&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.t.notifyVisibilityChanged=function(L){var Z;_.Ad(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,L,(Z=this.data)==null?void 0:Z.targetId]);if(_.c("autonav_pause_for_comments_ep")){var N;_.QT(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:L==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(N=this.data)==null?void 0:N.targetId})}};
_.t.updateTheaterDisablement=function(){if(!_.c("kevlar_watch_theater_disablement_killswitch")){var L=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&Wdf.includes(L)&&!_.c("watch_next_grid_ignore_disallowed_panels")){var Z=_.cQ(_.Pv().getState()),N=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";L!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():N?(this.originalTheaterState===void 0&&(this.originalTheaterState=Z,this.theaterDisablementPanelIdentifier=
L),Z&&_.XJ(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.t.clearTheaterDisablement=function(){_.XJ(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.t.updateChildVisibilityProperties=function(){this.hostElement||_.c("kevlar_panel_property_init_killswitch")||this._enableProperties();var L=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=L);var Z,N=(Z=this.headerElement)==null?void 0:Z.firstElementChild;if(N&&!this.adHeaderImageLockupViewModel){Z=L==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";N.collapsed=Z;N=_.QJ(N).querySelector("#visibility-button");if(!N)return;(N=N.firstElementChild)&&
N.polymerController.is==="ytd-toggle-button-renderer"&&N.polymerController.data.isToggled!==Z&&N.polymerController.set("data.isToggled",Z)}var S;if(Z=(S=this.contentElement)==null?void 0:S.firstElementChild)if(L&&L!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")Z.removeAttribute("panel-content-visible");else{Z.setAttribute("panel-content-visible","");var u;(u=Z.markDirty)==null||u.call(Z)}};
_.t.onYtChangeEngagementPanelVisibilityAction=function(L){var Z=this,N,S=(N=this.data)==null?void 0:N.targetId,u,T,W;N=((u=this.data)==null?void 0:(T=u.identifier)==null?void 0:T.tag)||((W=this.data)==null?void 0:W.panelIdentifier);var V=_.n(L,_.U9M),M;L=S&&(V==null?void 0:V.targetId)===S||N&&(V==null?void 0:(M=V.panelIdentifier)==null?void 0:M.tag)===N;this.dialog&&L&&(V==null?void 0:V.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(S==="engagement-panel-comments-section"?_.XJ(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.XJ(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",N]));!_.c("kevlar_use_engagement_panel_management_component")&&L&&(S=V.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!S?_.ro.addJob(function(){Z.visibility=V.visibility},2,this.hideDelayMs):this.visibility=V.visibility,V.visibility&&this.notifyVisibilityChanged(V.visibility))};
_.t.onYtScrollToEngagementPanelCommand=function(L){var Z,N=(Z=this.data)==null?void 0:Z.targetId,S,u,T;Z=((S=this.data)==null?void 0:(u=S.identifier)==null?void 0:u.tag)||((T=this.data)==null?void 0:T.panelIdentifier);L=_.n(L,_.zyN);var W;(N&&(L==null?void 0:L.targetId)===N||Z&&(L==null?void 0:(W=L.panelIdentifier)==null?void 0:W.tag)===Z)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.XJ(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.t.attachVEs=function(L){var Z,N;(L==null?0:(Z=L.content)==null?0:(N=Z.productListRenderer)==null?0:N.trackingParams)&&_.tC().graftServerVe(L.content.productListRenderer.trackingParams);var S,u;(L==null?0:(S=L.content)==null?0:(u=S.transcriptRenderer)==null?0:u.trackingParams)&&_.tC().graftServerVe(L.content.transcriptRenderer.trackingParams)};
_.t.onYtUpdateEngagementPanelAction=function(L){var Z,N=(Z=this.data)==null?void 0:Z.targetId;L=_.n(L,w87);N&&(L==null?void 0:L.targetId)===N&&(this.updatePanel({engagementPanelSectionListRenderer:{header:L==null?void 0:L.header,content:L==null?void 0:L.content}},!1),this.attachVEs(L))};
_.t.onYtShowEngagementPanelScrimAction=function(L){var Z,N=(Z=this.data)==null?void 0:Z.targetId;L=_.n(L,yhf);N&&(L==null?void 0:L.engagementPanelTargetId)===N&&(this.scrimmed=!0)};
_.t.onYtHideEngagementPanelScrimAction=function(L){var Z,N=(Z=this.data)==null?void 0:Z.targetId;L=_.n(L,f87);N&&(L==null?void 0:L.engagementPanelTargetId)===N&&(this.scrimmed=!1)};
_.t.getIdentifier=function(){var L,Z,N;return((L=this.data)==null?void 0:L.panelIdentifier)||((Z=this.data)==null?void 0:(N=Z.identifier)==null?void 0:N.tag)};
_.t.getSurface=function(){var L,Z;return(L=this.data)==null?void 0:(Z=L.identifier)==null?void 0:Z.surface};
_.gd.Object.defineProperties(DZ.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var L=this.getIdentifier();return L==="engagement-panel-youchat"||L==="PAyouchat"}}});
DZ.prototype.visibilityChanged=DZ.prototype.visibilityChanged;DZ.prototype.isFullscreenChanged=DZ.prototype.isFullscreenChanged;DZ.prototype.isTheaterModeChanged=DZ.prototype.isTheaterModeChanged;DZ.prototype.dataChanged=DZ.prototype.dataChanged;DZ.prototype.forwardPopupClosedToFlowRootRenderer=DZ.prototype.forwardPopupClosedToFlowRootRenderer;DZ.prototype.onYtRendererstamperFinished=DZ.prototype.onYtRendererstamperFinished;
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],DZ.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],DZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],DZ.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],DZ.prototype,"ytEventForwardingBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],DZ.prototype,"data",void 0);
_.r([_.Y({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.Q("design:type",Object)],DZ.prototype,"headerData",void 0);_.r([_.Y(),_.Q("design:type",Object)],DZ.prototype,"secondaryHeaderData",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DZ.prototype,"visibility",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],DZ.prototype,"contentEmpty",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],DZ.prototype,"scrimmed",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],DZ.prototype,"dialog",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],DZ.prototype,"dropdown",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DZ.prototype,"darkerPanels",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DZ.prototype,"matchContentTheme",void 0);_.r([_.Y(),_.Q("design:type",Object)],DZ.prototype,"disableAutoFill",void 0);
_.r([_.Y({reflectToAttribute:!0,value:_.c("optimal_reading_width_comments_ep")}),_.Q("design:type",Boolean)],DZ.prototype,"optimalReadingWidthComments",void 0);_.r([_.Y(),_.Q("design:type",Number)],DZ.prototype,"hideDelayMs",void 0);_.r([_.Y({selector:_.nV,reflectToAttribute:!0}),_.Q("design:type",Object)],DZ.prototype,"isFullscreen",void 0);_.r([_.Y({selector:_.cQ,reflectToAttribute:!0}),_.Q("design:type",Object)],DZ.prototype,"isTheaterMode",void 0);
_.r([_.Y(),_.Q("design:type",Number)],DZ.prototype,"showDelayMs",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data.targetId"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DZ.prototype,"targetId",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DZ.prototype,"webSize",null);_.r([_.Y(),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DZ.prototype,"hideFooterBorder",null);
_.r([_.Y(),_.Q("design:type",Object)],DZ.prototype,"isWatch",void 0);_.r([_.Y(),_.Q("design:type",Object)],DZ.prototype,"originalTheaterState",void 0);_.r([_.Y(),_.Q("design:type",Object)],DZ.prototype,"theaterDisablementPanelIdentifier",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DZ.prototype,"modernPanels",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],DZ.prototype,"isWatchWhilePanel",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],DZ.prototype,"shortsPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],DZ.prototype,"liveChatEngagementPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],DZ.prototype,"learningChatEngagementPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DZ.prototype,"liveChatReplyPanel",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DZ.prototype,"enableAnchoredPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DZ.prototype,"disableBackdropFilter",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],DZ.prototype,"isPersistentPanel",void 0);_.r([_.Y(),_.Q("design:type",Object)],DZ.prototype,"trackEngagementPanelVisibility",void 0);_.r([_.TX("#header"),_.Q("design:type",HTMLElement)],DZ.prototype,"headerElement",void 0);
_.r([_.TX("#header > *"),_.Q("design:type",HTMLElement)],DZ.prototype,"header",void 0);_.r([_.TX("ytd-section-list-renderer"),_.Q("design:type",Object)],DZ.prototype,"sectionListRendererElement",void 0);_.r([_.TX("panel-ad-header-image-lockup-view-model"),_.Q("design:type",HTMLElement)],DZ.prototype,"adHeaderImageLockupViewModel",void 0);_.r([_.TX("#content"),_.Q("design:type",HTMLElement)],DZ.prototype,"contentElement",void 0);
_.r([_.SA("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DZ.prototype,"onYtRendererstamperFinished",null);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DZ.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.r([_.Vr("data","isFullscreen","isTheaterMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DZ.prototype,"dataChanged",null);
_.r([_.iA("isTheaterMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DZ.prototype,"isTheaterModeChanged",null);_.r([_.iA("isFullscreen"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DZ.prototype,"isFullscreenChanged",null);_.r([_.iA("visibility"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DZ.prototype,"visibilityChanged",null);
_.r([_.P({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],DZ);
_.m(DZ,"ytd-engagement-panel-section-list-renderer",function(){if(YIM!==void 0)return YIM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return YIM=L},{mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});var bot;var lJ=function(){var L=_.e.apply(this,arguments)||this;L.lastRenderedPanelIds=new Set;L.visiblePanels=[];L.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return L};
_.f(lJ,_.e);_.t=lJ.prototype;_.t.dataChanged=function(){if(this.data){for(var L=[],Z=_.O(this.data),N=Z.next();!N.done;N=Z.next()){N=N.value;var S=void 0,u=void 0,T=(S=N)==null?void 0:(u=S.engagementPanelSectionListRenderer)==null?void 0:u.visibility;u=S=void 0;((S=N)==null?0:(u=S.engagementPanelSectionListRenderer)==null?0:u.targetId)&&T!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&L.push(N)}this.visiblePanels=L}else this.visiblePanels=[]};
_.t.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}}};
_.t.withoutVisiblePanelById=function(L){return this.visiblePanels.filter(function(Z){var N;return((N=Z.engagementPanelSectionListRenderer)==null?void 0:N.targetId)!==L})};
_.t.onYtChangeEngagementPanelVisibilityAction=function(L){var Z=this,N=_.n(L,_.U9M);if(this.data&&(N==null?0:N.targetId)&&(N==null?0:N.visibility)){var S,u=(S=this.data.find(function(W){var V;return((V=W.engagementPanelSectionListRenderer)==null?void 0:V.targetId)===N.targetId}))==null?void 0:S.engagementPanelSectionListRenderer;
if(u){var T=this.withoutVisiblePanelById(N.targetId);N.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(L=this.data.find(function(W){var V;return((V=W.engagementPanelSectionListRenderer)==null?void 0:V.targetId)===N.targetId}))&&(T=[L].concat(_.Pd(T)));
this.hideDelayMs&&N.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&T.length===0?_.ro.addJob(function(){u.visibility=N.visibility;Z.visiblePanels=T},10,this.hideDelayMs):(u.visibility=N.visibility,this.visiblePanels=T);
_.Ad(this.hostElement,"yt-engagement-panels-visible-changed",[T])}}};
_.t.onRendererstamperFinished=function(){var L=new Set(this.visiblePanels.map(function(Z){var N;return(N=Z.engagementPanelSectionListRenderer)==null?void 0:N.targetId}));
this.handlePanelVisibilityChange(L,this.lastRenderedPanelIds);this.lastRenderedPanelIds=L};
_.t.handlePanelVisibilityChange=function(L,Z){L=L===void 0?new Set:L;Z=Z===void 0?new Set:Z;if(this.data)for(var N=_.O(this.data),S=N.next();!S.done;S=N.next()){S=S.value;var u=void 0,T=void 0,W=(u=S)==null?void 0:(T=u.engagementPanelSectionListRenderer)==null?void 0:T.targetId;if(W&&(u=Z.has(W),T=L.has(W),W=void 0,!u&&T?(T=u=void 0,W=(u=S)==null?void 0:(T=u.engagementPanelSectionListRenderer)==null?void 0:T.onShowCommands):u&&!T&&(T=u=void 0,W=(u=S)==null?void 0:(T=u.engagementPanelSectionListRenderer)==
null?void 0:T.onHideCommands),W))for(S=_.O(W),W=S.next();!W.done;W=S.next())this.ytComponentBehavior.resolveCommand(W.value)}};
lJ.prototype.onRendererstamperFinished=lJ.prototype.onRendererstamperFinished;lJ.prototype.dataChanged=lJ.prototype.dataChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],lJ.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],lJ.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],lJ.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],lJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],lJ.prototype,"lastRenderedPanelIds",void 0);_.r([_.Y(),_.Q("design:type",Number)],lJ.prototype,"hideDelayMs",void 0);_.r([_.Y(),_.Q("design:type",Array)],lJ.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Array)],lJ.prototype,"visiblePanels",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],lJ.prototype,"isWatchWhilePanel",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lJ.prototype,"dataChanged",null);_.r([_.SA("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lJ.prototype,"onRendererstamperFinished",null);_.r([_.P({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],lJ);
_.m(lJ,"ytd-watch-engagement-panels",function(){if(bot!==void 0)return bot;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return bot=L},{mode:1});var MSM;var v_=function(){return _.e.apply(this,arguments)||this};
_.f(v_,_.e);v_.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.tU(_.QJ(this.hostElement).querySelector("#text"),_.Cg0(_.XdL,this.data.companionLegalText))};
v_.prototype.computeAutoScrollEnabled=function(L,Z){return L&&!Z};
v_.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
v_.prototype.onToggleTap=function(){this.expanded=!this.expanded};
v_.prototype.expandedChanged=v_.prototype.expandedChanged;v_.prototype.dataChanged=v_.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.YvG),_.Q("design:type",Object)],v_.prototype,"ytdAutoScrollBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],v_.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],v_.prototype,"expanded",void 0);
_.r([_.Y({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.Q("design:type",Boolean)],v_.prototype,"autoScrollEnabled",void 0);_.r([_.Y(),_.Q("design:type",String)],v_.prototype,"expanderIcon",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],v_.prototype,"dataChanged",null);
_.r([_.iA("expanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],v_.prototype,"expandedChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],v_);
_.m(v_,"ytd-companion-legal-text-renderer",function(){if(MSM!==void 0)return MSM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return MSM=L},{mode:1});var gbn;var ot=function(){var L=_.e.apply(this,arguments)||this;L.buttonUpdate=_.c("web_modern_buttons");L.kevlarWatchGrid=_.c("kevlar_watch_grid");L.centerAlignDescription=_.c("action_companion_center_align_description");L.truncateDomain=_.c("action_companion_truncate_domain");L.enableMonoStyle=_.c("enable_default_mono_cta_migration_web_client");return L};
_.f(ot,_.e);_.t=ot.prototype;_.t.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.t.getOnLayoutVisibleCallback=function(){var L=_.LZ("yt.www.ads.eventcache.getLastCompanionData");return L?(L=L())&&L.onLayoutVisibleCallback:null};
_.t.getLayoutId=function(){var L=_.LZ("yt.www.ads.eventcache.getLastCompanionData");return L?(L=L())&&L.layoutId:null};
_.t.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",ot.JSC$23109_DEFAULT_AD_BADGE_RENDERER);var L=this.getOnLayoutVisibleCallback();L&&L()}};
_.t.getButtonRenderer=function(L){return L.actionButton&&_.n(L.actionButton,_.xZ)?(delete _.n(L.actionButton,_.xZ).navigationEndpoint,_.n(L.actionButton,_.xZ)):{}};
_.t.onClick=function(L){var Z=this;if((!_.c("web_modern_buttons")||!_.PQ(_.sx(L),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){L=_.CV();var N=this.getLayoutId();L&&N&&_.c("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?L.getPlayerPromise().then(function(S){(new _.PA(S)).executeCommand(Z.data.navigationEndpoint,N)}):_.c("kevlar_companion_resolve_command_killswitch")?_.QT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.XJ(this.hostElement,"yt-companion-ad-clicked",["action-companion",N])}};
_.gd.Object.defineProperties(ot.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return((L=this.data)==null?0:(Z=L.detailsLine)==null?0:(N=Z.adRating)==null?0:N.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 L,Z,N,S;return((L=this.data)==null?0:(Z=L.detailsLine)==null?0:(N=Z.adRating)==null?0:(S=N.ratingIcon)==null?0:S.iconType)?_.Bh(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S;return((L=this.data)==null?0:(Z=L.detailsLine)==null?0:(N=Z.texts)==null?0:(S=N[0])==null?0:S.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 L,Z;return((L=this.data)==null?0:(Z=L.description)==null?0:Z.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var L=_.LZ("yt.www.ads.eventcache.getLastCompanionData");return L?(L=L())&&L.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var L=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return L?L.indexOf("/default_banner")!==-1:!0}}});
ot.prototype.onClick=ot.prototype.onClick;ot.prototype.dataChanged=ot.prototype.dataChanged;ot.JSC$23109_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.iB("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],ot.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ot.prototype,"rendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ot.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ot.prototype,"buttonUpdate",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ot.prototype,"kevlarWatchGrid",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ot.prototype,"centerAlignDescription",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ot.prototype,"truncateDomain",void 0);
_.r([_.Y({computed:"computeButtonOverride(buttonUpdate)"}),_.Q("design:type",Object)],ot.prototype,"buttonOverride",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ot.prototype,"enableMonoStyle",void 0);_.r([_.w("data.detailsLine.adRating.ratingText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ot.prototype,"getRating",null);_.r([_.w("getRating"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ot.prototype,"computeRatingHidden",null);
_.r([_.w("data.detailsLine.adRating.ratingIcon.iconType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ot.prototype,"iconType",null);_.r([_.w("data.detailsLine.texts.0.text"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ot.prototype,"getDetailsLine",null);_.r([_.w("getDetailsLine"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ot.prototype,"computeDetailsLineHidden",null);
_.r([_.w("data.description.text"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ot.prototype,"getDescriptionText",null);_.r([_.w("getDescriptionText"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ot.prototype,"computeDescriptionTextHidden",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ot.prototype,"interactionLoggingClientData",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ot.prototype,"hideBanner",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ot.prototype,"dataChanged",null);_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],ot.prototype,"onClick",null);_.r([_.P({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],ot);
_.m(ot,"ytd-action-companion-ad-renderer",function(){if(gbn!==void 0)return gbn;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return gbn=L},{mode:_.Qr("kevlar_poly_si_batch_j067")?1:2});var GDi;var Fd6;var Rt=function(){var L=_.e.apply(this,arguments)||this;L.buttonUpdate=_.c("web_modern_buttons");L.hideLegacyBanner=_.c("enable_dsa_one_click_ata_translators_infeed_elements");L.adInfoButtonStyle="mono";L.adInfoButtonType="text";L.noDotAdBadge=!0;return L};
_.f(Rt,_.e);_.t=Rt.prototype;_.t.getOnLayoutVisibleCallback=function(){var L=_.LZ("yt.www.ads.eventcache.getLastCompanionData");return L?(L=L())&&L.onLayoutVisibleCallback:null};
_.t.getLayoutId=function(){var L=_.LZ("yt.www.ads.eventcache.getLastCompanionData");return L?(L=L())&&L.layoutId:null};
_.t.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 L=this.data.image.thumbnail.thumbnails[0];this.imageSrc=L.url?_.mY(L.url):void 0;this.imageWidth=L.width||0;this.imageHeight=L.height||0}this.data.clickthroughEndpoint&&_.n(this.data.clickthroughEndpoint,_.Lo)&&(L=_.n(this.data.clickthroughEndpoint,_.Lo).url,_.c("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
L||"":L?(L=_.mY(L),this.clickThroughUrl=_.jn(L)):this.clickThroughUrl=void 0);(L=this.getOnLayoutVisibleCallback())&&L()}};
_.t.onClick=function(L){_.PQ(_.sx(L),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(L)};
_.t.handleClick=function(){var L=this;this.data&&this.data.clickthroughEndpoint&&(_.QT(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(Z){L.macroReplacementBehavior.sendServiceRequestAction([Z])}),_.XJ(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.t.onLoad=function(){_.Ad(this.hostElement,"yt-refit-popups-action")};
_.gd.Object.defineProperties(Rt.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var L=_.LZ("yt.www.ads.eventcache.getLastCompanionData");return L?(L=L())&&L.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var L=_.LZ("yt.www.ads.eventcache.getLastCompanionData");return L?(L=L())&&L.interactionLoggingClientData:null}}});
Rt.prototype.onLoad=Rt.prototype.onLoad;Rt.prototype.onClick=Rt.prototype.onClick;Rt.prototype.dataChanged=Rt.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Rt.prototype,"rendererBehavior",void 0);_.r([_.y(njM.YtMacroReplacementBehavior),_.Q("design:type",Object)],Rt.prototype,"macroReplacementBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Rt.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Rt.prototype,"buttonUpdate",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Rt.prototype,"hideLegacyBanner",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Rt.prototype,"adInfoButtonStyle",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Rt.prototype,"adInfoButtonType",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Rt.prototype,"macros",null);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Rt.prototype,"interactionLoggingClientData",null);_.r([_.Y(),_.Q("design:type",String)],Rt.prototype,"clickThroughUrl",void 0);_.r([_.Y(),_.Q("design:type",_.a7)],Rt.prototype,"imageSrc",void 0);_.r([_.Y(),_.Q("design:type",Number)],Rt.prototype,"imageWidth",void 0);_.r([_.Y(),_.Q("design:type",Number)],Rt.prototype,"imageHeight",void 0);_.r([_.Y(),_.Q("design:type",Object)],Rt.prototype,"noDotAdBadge",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Rt.prototype,"dataChanged",null);_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Rt.prototype,"onClick",null);_.r([_.SA("load"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Rt.prototype,"onLoad",null);_.r([_.P({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Rt);
_.m(Rt,"ytd-image-companion-renderer",function(){if(Fd6!==void 0)return Fd6;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Fd6=L},{mode:_.Qr("kevlar_poly_si_batch_j067")?1:2});var $4q;var c_=function(){return _.e.apply(this,arguments)||this};
_.f(c_,_.e);_.t=c_.prototype;_.t.dataChanged=function(){this.set("data.adBadge",c_.JSC$23118_DEFAULT_AD_BADGE_RENDERER);if(this.data){var L=this.getOnLayoutVisibleCallback();L&&L()}};
_.t.getOnLayoutVisibleCallback=function(){var L=_.LZ("yt.www.ads.eventcache.getLastCompanionData");return L?(L=L())&&L.onLayoutVisibleCallback:null};
_.t.getLayoutId=function(){var L=_.LZ("yt.www.ads.eventcache.getLastCompanionData");return L?(L=L())&&L.layoutId:null};
_.t.onCompanionClicked=function(L){this.data&&(L.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.XJ(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.t.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var L=_.CV(),Z=this.getLayoutId(),N=this.data.clickToAdvSiteEndpoint;L&&Z&&_.c("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?L.getPlayerPromise().then(function(S){(new _.PA(S)).executeCommand(N,Z)}):_.QT(this.hostElement,"yt-navigate",{endpoint:N})}};
_.t.sendTrackingPings=function(L){if(L&&L.length!==0&&L[0].loggingUrls&&(L=L[0].loggingUrls.map(this.getBaseUrl)))for(var Z=0;Z<L.length;Z++)_.NC(L[Z])};
_.t.getBaseUrl=function(L){return L.baseUrl||""};
_.gd.Object.defineProperties(c_.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var L=_.LZ("yt.www.ads.eventcache.getLastCompanionData");return L?(L=L())&&L.interactionLoggingClientData:null}}});
c_.prototype.onCompanionClicked=c_.prototype.onCompanionClicked;c_.prototype.dataChanged=c_.prototype.dataChanged;c_.JSC$23118_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.iB("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],c_.prototype,"data",void 0);_.r([_.TX("#title"),_.Q("design:type",HTMLElement)],c_.prototype,"shopTitle",void 0);
_.r([_.Vr("data.impressionEndpoints"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],c_.prototype,"dataChanged",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],c_.prototype,"interactionLoggingClientData",null);_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],c_.prototype,"onCompanionClicked",null);
_.r([_.P({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],c_);
_.m(c_,"ytd-shopping-companion-renderer",function(){if($4q!==void 0)return $4q;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return $4q=L},{mode:1});_.CY(_.p(function(L){var Z=L.data;L=_.$b({visibilityCallback:function(S){var u,T=(u=Z().interaction)==null?void 0:u.onFirstVisible;S&&T&&_.w$(T)},
showOption:_.M1});var N=_.k9(function(){return Z().interaction},PI7);
_.Ch(function(){var S,u;u=(u=_.LZ("yt.www.ads.eventcache.getLastCompanionData"))?(u=u())&&u.onLayoutVisibleCallback:null;(S=u)==null||S()},"un");
return _.g("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Z9(function(S){_.Ad(S.currentTarget,"yt-refit-popups-action")}),
el:_.P9(L,N),"aria-label":function(){var S,u;return(S=Z().interaction)==null?void 0:(u=S.accessibility)==null?void 0:u.label}},_.g("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.g(_.bj,{data:function(){return Z().adImage}},{adImageViewModel:function(S){return _.g(_.av,{data:S.data,
targetHeight:80,customCommandResolver:PI7})}})),_.g("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.g("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.g(_.bj,{data:function(){return Z().adBadge}},{adBadgeViewModel:function(S){return _.g(_.o9,{data:S.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.g("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.g(_.bj,{data:function(){return Z().menu}},{buttonViewModel:_.$X}))))},"vn"),"banner-image-layout-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){var Z=L.data;L=_.$b({visibilityCallback:function(S){var u,T=(u=Z().interaction)==null?void 0:u.onFirstVisible;S&&T&&_.w$(T)},
showOption:_.M1});var N=_.k9(function(){return Z().interaction},pE7);
_.Ch(function(){var S,u;u=(u=_.LZ("yt.www.ads.eventcache.getLastCompanionData"))?(u=u())&&u.onLayoutVisibleCallback:null;(S=u)==null||S()},"wn");
return _.g("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.P9(L,N)},_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.g(_.bj,{data:function(){return Z().adImage}},{adImageViewModel:function(S){return _.g(_.av,{data:S.data,
targetHeight:80,customCommandResolver:pE7})}})),_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.g(_.bj,{data:function(){return Z().adAvatarLockup}},{adAvatarLockupViewModel:function(S){return _.g(Oo7,{data:S.data,
customCommandResolver:pE7})}})),_.g(_.bj,{data:function(){return Z().adButton}},{adButtonViewModel:function(S){return _.g(_.G9,{data:S.data,
customCommandResolver:pE7})}}),_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.g(_.bj,{data:function(){return Z().menu}},{buttonViewModel:_.$X}))))},"xn"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.LK}});var D4f={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"},na=function(){var L=_.e.apply(this,arguments)||this;L.updateCompanionDataJobId=0;L.contentVideoId=null;L.player=null;L.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return L};
_.f(na,_.e);_.t=na.prototype;_.t.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:D4f}}};
_.t.attached=function(){var L=this,Z=_.CV();Z&&Z.getPlayerPromise().then(function(N){L.getCachedDataAndListen(N)})};
_.t.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.t.updateRendererStamper=function(){var L={};if(this.data)for(var Z in D4f)if(this.data[Z]){L[Z]=this.data[Z];break}if(this.oneofRenderer!=void 0||Object.keys(L).length)this.oneofRenderer=L};
_.t.getCachedDataAndListen=function(L){var Z=this.retrieveCachedCompanionData();Z&&Object.keys(Z).length&&this.receiveCompanionData(Z);this.ytPlayerListenerBehavior.listenToPlayerEvent(L,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=L};
_.t.retrieveCachedCompanionData=function(){return _.iH.yt&&_.iH.yt.www&&_.iH.yt.www.ads&&_.iH.yt.www.ads.eventcache&&_.iH.yt.www.ads.eventcache.getLastCompanionData?_.iH.yt.www.ads.eventcache.getLastCompanionData():null};
_.t.receiveCompanionData=function(L){L&&Object.keys(L).length?(this.contentVideoId=L.contentVideoId,this.setCompanionData(L)):this.setCompanionData(L)};
_.t.setCompanionData=function(L){this.cancelPendingCompanionAdJobs();if(L){this.updateCompanionDataJobId=0;for(var Z in D4f)D4f.hasOwnProperty(Z)&&(this.data[Z]=void 0);L.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",L.shoppingCompanionCarouselRenderer):L.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",L.imageCompanionAdRenderer):L.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",L.actionCompanionAdRenderer),_.Ad(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Ad(this.hostElement,"yt-hide-tvfilm-offer-module")):L.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",L.bannerImageLayoutViewModel):L.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",L.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.t.dataChanged=function(){var L=this,Z=_.CV();Z?Z.getPlayerPromise().then(function(N){L.contentVideoId&&N.getVideoUrl().includes("v="+L.contentVideoId)||(L.cancelPendingCompanionAdJobs(),L.updateRendererStamper())}):_.Zx(Error("Yo"))};
_.t.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.ro.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.t.handleCompanionAdClicked=function(L,Z){this.player.onAdUxClicked(L,Z);this.player.pauseVideo()};
na.prototype.dataChanged=na.prototype.dataChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],na.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],na.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],na.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.No.YtPlayerListenerBehavior),_.Q("design:type",_.SG)],na.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],na.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],na.prototype,"oneofRenderer",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],na.prototype,"dataChanged",null);_.r([_.P({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],na);
_.m(na,"ytd-companion-slot-renderer",function(){if(GDi!==void 0)return GDi;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return GDi=L},{mode:_.Qr("kevlar_poly_si_batch_j067")?
1:2});var lbY;var Ka=function(){return _.e.apply(this,arguments)||this};
_.f(Ka,_.e);Ka.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Ka.prototype.dataChanged=Ka.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ka.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ka.prototype,"companionSlotData",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ka.prototype,"dataChanged",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Ka);
_.m(Ka,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(lbY!==void 0)return lbY;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return lbY=L},{mode:1});var vbf;var fa=function(){var L=_.e.apply(this,arguments)||this;L.skinnyMode=!1;L.COMPACT_EVENT_COUNT=4;L.onShelfToggleButtonTap=function(){L.logTap(L.data);L.showingMore=!L.showingMore};
L.onShelfToggleButtonFocus=function(){L.showingMore||(L.logTap(L.data),L.showingMore=!0,_.bN(L,function(){var Z=L.COMPACT_EVENT_COUNT-1,N;(N=_.QJ(L.hostElement).querySelector("#event-"+Z))==null||N.focus()}))};
return L};
_.f(fa,_.e);_.t=fa.prototype;_.t.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.t.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.t.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Nd(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Nd(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Nd(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Nd(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Nd(this.infoTooltip,this.infoTooltip.hide))};
_.t.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Nd(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Nd(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Nd(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Nd(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Nd(this.infoTooltip,this.infoTooltip.hide))};
_.t.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)};
_.t.onShowingMoreChanged=function(){var L;this.showingMoreChanged((L=this.showingMore)!=null?L:!1)};
_.t.showingMoreChanged=function(L){var Z=this.get("data.events")||[];this.set("restEvents",Z.slice(1,L?Z.length:this.COMPACT_EVENT_COUNT).map(function(N){return N.ticketEventRenderer}));
Z.slice(0,L?Z.length:this.COMPACT_EVENT_COUNT).forEach(function(N){var S=_.RH();N=N.ticketEventRenderer.trackingParams;_.oH()&&S&&N&&(N=_.Mg(N),S&&_.dR(S,N))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.t.computeAriaLabel=function(L){return L.subtitle1+", "+L.subtitle2};
_.t.logTap=function(L){_.oH()&&this.ytRendererBehavior.logExplicitClick(L)};
_.t.isKeyboardAction=function(L){return this.get("detail.x",L)===0&&this.get("detail.y",L)===0};
_.t.onFirstEventTap=function(L){L.target&&this.handleTap(L.target,this.firstEvent,this.isKeyboardAction(L))};
_.t.onTicketLinkTap=function(L){L.target&&this.handleTap(L.target,L.model.item,this.isKeyboardAction(L))};
_.t.handleTap=function(L,Z,N){if(Z.buttonCommand)if(Z.hasMultipleOffers)Object.assign(_.n(Z.buttonCommand,_.aw),{properties:{source:N?"keyboard":"tap"}}),this.logTap(Z),this.popupPositionTarget=L,_.B2(this.hostElement,[Z.buttonCommand],this.hostElement);else{var S;if((S=_.n(Z.buttonCommand,_.Lo))==null?0:S.url)this.logTap(Z),_.Ls(window,_.n(Z.buttonCommand,_.Lo).url)}};
fa.prototype.onShowingMoreChanged=fa.prototype.onShowingMoreChanged;fa.prototype.dataChanged=fa.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],fa.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],fa.prototype,"firstEvent",void 0);_.r([_.Y(),_.Q("design:type",Object)],fa.prototype,"restEvents",void 0);_.r([_.Y(),_.Q("design:type",String)],fa.prototype,"imageUrl",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],fa.prototype,"showingMore",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],fa.prototype,"canShowMore",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],fa.prototype,"skinnyMode",void 0);_.r([_.Y(),_.Q("design:type",HTMLElement)],fa.prototype,"popupPositionTarget",void 0);_.r([_.TX("#banner-info-tooltip"),_.Q("design:type",Object)],fa.prototype,"infoTooltip",void 0);
_.r([_.TX("#info-container"),_.Q("design:type",HTMLElement)],fa.prototype,"infoContainer",void 0);_.r([_.TX("#shelf-toggler"),_.Q("design:type",HTMLElement)],fa.prototype,"shelfToggleButton",void 0);_.r([_.TX("#separator"),_.Q("design:type",HTMLDivElement)],fa.prototype,"separator",void 0);_.r([_.Y(),_.Q("design:type",String)],fa.prototype,"shelfTogglerLabelText",void 0);_.r([_.Y(),_.Q("design:type",String)],fa.prototype,"shelfTogglerIcon",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fa.prototype,"dataChanged",null);_.r([_.Vr("showingMore"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fa.prototype,"onShowingMoreChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],fa);
_.m(fa,"ytd-ticket-shelf-renderer",function(){if(vbf!==void 0)return vbf;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return vbf=L},{mode:1});var ob9;var R58;var c2n=function(){return _.e.apply(this,arguments)||this};
_.f(c2n,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],c2n.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],c2n.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],c2n);
_.m(c2n,"ytd-comments-entry-point-message-renderer",function(){if(R58!==void 0)return R58;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return R58=L},{mode:1});var nb9;var kO=function(){return _.e.apply(this,arguments)||this};
_.f(kO,_.e);_.gd.Object.defineProperties(kO.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.teaserAvatar)}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],kO.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],kO.prototype,"hasAvatar",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],kO);
_.m(kO,"ytd-comments-entry-point-teaser-renderer",function(){if(nb9!==void 0)return nb9;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return nb9=L},{mode:1});var KdV;var fbn=function(){return _.e.apply(this,arguments)||this};
_.f(fbn,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],fbn.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],fbn.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],fbn);
_.m(fbn,"ytd-comments-simplebox-renderer",function(){if(KdV!==void 0)return KdV;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return KdV=L},{mode:1});var y1=function(){var L=_.e.apply(this,arguments)||this;L.fullHeight=!_.c("comment_teaser_full_height_kill_switch")&&_.c("kevlar_watch_grid");return L};
_.f(y1,_.e);y1.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"}}}};
y1.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
y1.prototype.onTap=function(){var L=this.tapCommand;L&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(L))};
y1.prototype.onKeyUp=function(L){if(L.keyCode===13)this.onTap()};
_.gd.Object.defineProperties(y1.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.data)==null?0:L.onTap)return this.data.onTap;var Z,N;if(((Z=this.data)==null?0:Z.teaserContent)||((N=this.data)==null?0:N.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)!=null&&L.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
y1.prototype.onKeyUp=y1.prototype.onKeyUp;y1.prototype.onTap=y1.prototype.onTap;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],y1.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],y1.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],y1.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],y1.prototype,"fullHeight",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],y1.prototype,"tapCommand",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],y1.prototype,"simpleboxPlaceholder",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],y1.prototype,"hasSimpleboxPlaceholder",null);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],y1.prototype,"simpleboxAvatar",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],y1.prototype,"teaserContent",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],y1.prototype,"hasTeaserContent",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],y1.prototype,"teaserAvatar",null);
_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],y1.prototype,"hasTeaserAvatar",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],y1.prototype,"messageText",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],y1.prototype,"contentRenderer",null);_.r([_.w("data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],y1.prototype,"hasContents",null);
_.r([_.w("data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],y1.prototype,"hasContentRenderer",null);_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],y1.prototype,"onTap",null);_.r([_.SA("keypress"),_.Q("design:type",Function),_.Q("design:paramtypes",[_.o8]),_.Q("design:returntype")],y1.prototype,"onKeyUp",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],y1);
_.m(y1,"ytd-comments-entry-point-header-renderer",function(){if(ob9!==void 0)return ob9;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return ob9=L},{mode:1});var kDq;_.CY(_.Uah,"yt-animated-rolling-number",{props:{numberText:_.LK,numberValue:_.LK,heightPx:_.LK,fontSizeMultiplier:_.LK,shouldAnimate:_.LK,forceRollUp:_.LK}});var y2i=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),wMY={numberText:"",heightPx:2*y2i,shouldAnimate:!1},wb=function(){var L=_.e.apply(this,arguments)||this;L.usingAnimatedComponents=!0;L.wasDetailed=!1;L.JSC$23155_browserSupportsAnimation=_.c("web_supports_animations_api");L.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};L.detailed=!1;L.shouldAnimate=!1;L.viewCountProps=wMY;L.dateTextProps=
wMY;L.metadataBadgesInDescription=_.c("web_metadata_badges_in_description");return L};
_.f(wb,_.e);_.t=wb.prototype;_.t.attached=function(){var L=this;_.GR().resolve(_.tG).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(Z){L.set("videoPrimaryInfoRenderer.subtitle",Z)})};
_.t.detached=function(){_.GR().resolve(_.tG).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.t.resetAnimationState=function(){this.shouldAnimate=!1};
_.t.updateDynamicMetadata=function(){if(this.JSC$23155_browserSupportsAnimation){if(!this.detailed){var L,Z,N,S;var u=(L=this.videoPrimaryInfoRenderer)==null?void 0:(Z=L.viewCount)==null?void 0:(N=Z.videoViewCountRenderer)==null?void 0:(S=N.extraShortViewCount)==null?void 0:S.simpleText;var T,W,V,M;var G=(T=this.videoPrimaryInfoRenderer)==null?void 0:(W=T.viewCount)==null?void 0:(V=W.videoViewCountRenderer)==null?void 0:(M=V.shortViewCount)==null?void 0:M.simpleText}if(!G){var D,l,v,R;u=(D=this.videoPrimaryInfoRenderer)==
null?void 0:(l=D.viewCount)==null?void 0:(v=l.videoViewCountRenderer)==null?void 0:(R=v.unlabeledViewCountValue)==null?void 0:R.simpleText;var K,U,d,h;G=(K=this.videoPrimaryInfoRenderer)==null?void 0:(U=K.viewCount)==null?void 0:(d=U.videoViewCountRenderer)==null?void 0:(h=d.viewCount)==null?void 0:h.simpleText}var E,A,J;L=Number((E=this.videoPrimaryInfoRenderer)==null?void 0:(A=E.viewCount)==null?void 0:(J=A.videoViewCountRenderer)==null?void 0:J.originalViewCount);var C,X;E=(C=this.videoPrimaryInfoRenderer)==
null?void 0:(X=C.relativeDateText)==null?void 0:X.simpleText;var L1;C=!((L1=this.videoPrimaryInfoRenderer)==null||!L1.relativeDateText);if(u&&G&&L&&(E||!C)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;L1=G.split(new RegExp("("+u+")"));u=_.s9(L1[0]);var Fw;G={numberText:(Fw=L1[1])!=null?Fw:"",numberValue:L,heightPx:2*y2i,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var GB;Fw=((GB=L1[2])!=null?GB:"")+"  ";this.setViewCount(G,u,_.s9(Fw));
if(!this.detailed&&C){u=E.split(/(\d+)/);GB=_.s9(u[0]);var Yt;Fw={numberText:(Yt=u[1])!=null?Yt:"",heightPx:2*y2i,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var lH;Yt=((lH=u[2])!=null?lH:"")+"  ";this.setDateText(Fw,GB,_.s9(Yt))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.t.setViewCount=function(L,Z,N){_.jM(Z)!==_.jM(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=Z);this.viewCountProps.numberText!==(L==null?void 0:L.numberText)&&(this.viewCountProps=L||wMY);_.jM(N)!==_.jM(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=N)};
_.t.setDateText=function(L,Z,N){_.jM(Z)!==_.jM(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=Z);this.dateTextProps.numberText!==(L==null?void 0:L.numberText)&&(this.dateTextProps=L||wMY);_.jM(N)!==_.jM(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=N)};
_.t.onYtUpdateViewershipAction=function(L){this.videoPrimaryInfoRenderer&&(_.n(L,ZZw).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.n(L,ZZw).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.n(L,ZZw).viewCount)))};
_.t.onYtUpdateDateTextAction=function(L){if(this.videoPrimaryInfoRenderer){L=_.n(L,_.qMM).dateText;this.shouldAnimate=!0;var Z;((Z=this.videoPrimaryInfoRenderer)==null?0:Z.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",L):this.set("videoPrimaryInfoRenderer.dateText",L)}};
_.gd.Object.defineProperties(wb.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return rWY(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.jM(rWY(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.jM(this.viewCountPreNumberText),this.viewCountProps.numberText,_.jM(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.jM(this.dateTextPreNumberText),this.dateTextProps.numberText,_.jM(this.dateTextPostNumberText)].join("")}}});
wb.prototype.updateDynamicMetadata=wb.prototype.updateDynamicMetadata;wb.prototype.resetAnimationState=wb.prototype.resetAnimationState;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],wb.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],wb.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],wb.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],wb.prototype,"videoPrimaryInfoRenderer",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wb.prototype,"detailed",void 0);_.r([_.Y(),_.Q("design:type",Object)],wb.prototype,"shouldAnimate",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wb.prototype,"viewCountPreNumberText",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wb.prototype,"viewCountProps",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wb.prototype,"viewCountPostNumberText",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wb.prototype,"dateTextPreNumberText",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wb.prototype,"dateTextProps",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wb.prototype,"dateTextPostNumberText",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wb.prototype,"metadataBadgesInDescription",void 0);_.r([_.w("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],wb.prototype,"infoText",null);
_.r([_.w("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.Q("design:type",String),_.Q("design:paramtypes",[])],wb.prototype,"descriptionInfoTooltipText",null);_.r([_.w("detailed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],wb.prototype,"showDescriptionInfoTooltip",null);
_.r([_.w("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.Q("design:type",String),_.Q("design:paramtypes",[])],wb.prototype,"animatedViewCountAccessibilityLabel",null);_.r([_.w("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.Q("design:type",String),_.Q("design:paramtypes",[])],wb.prototype,"animatedDateTextAccessibilityLabel",null);
_.r([_.iA("videoPrimaryInfoRenderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wb.prototype,"resetAnimationState",null);_.r([_.iA("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wb.prototype,"updateDynamicMetadata",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-watch-info-text"})],wb);
_.m(wb,"ytd-watch-info-text",function(){if(kDq!==void 0)return kDq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return kDq=L},{mode:1});var U49;var YVY="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var e57=_.p(function(L){var Z=L.data;var N=L.setTapCommand;_.ph(function(){var S=_.KY(Z().onTap);N(S)},"Hj6Srd");
return _.g("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.g(_.bj,{data:function(){return Z().avatar}},{avatarViewModel:_.JO}),_.g("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.g("span",null,function(){return Z().simpleboxText})))},"zn");var IbG=_.p(function(L){return _.g("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.g(_.F,{cond:function(){return _.n(L.data().avatar,_.nl)},
then:function(Z){return _.g(_.JO,{data:Z,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.g("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.g(_.qv,{text:function(){return L.data().teaserText}})))},"An");var d4t=_.p(function(L){var Z=L.data;var N=L.setTapCommand;_.ph(function(){var S=_.KY(Z().onTap);N(S)},"IlZFqc");
return _.g("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.g(_.bj,{data:function(){return Z().teasers}},{commentsEntryPointTeaserViewModel:IbG}))},"Cn");var abY=_.p(function(L){var Z=L.data;var N=L.setTapCommand;_.ph(function(){var S=_.KY(Z().onTap);N(S)},"sYe8ye");
return _.g("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.g(_.qv,{text:function(){return Z().messageText}}))},"En");var h58=_.p(function(L){var Z=L.data;var N=L.setTapCommand;var S=L.isDisabled;_.ph(function(){var u=(S==null?0:S())?void 0:_.KY(Z().onTap);N(u)},"GZxRqd");
return _.g("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.g(_.T0,{icon:function(){return Z().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.g(_.F,{cond:function(){return Z().image},
then:function(u){return _.g(_.ji,{data:u,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.g(_.qv,{text:function(){return Z().text},
className:function(){return Z().image||Z().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.g(_.bj,{data:function(){return Z().button}},{buttonViewModel:function(u){return _.g(_.$X,{data:u.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:S==null?void 0:S()}}})}}))},"Gn");var s6V=_.p(function(L){var Z=L.data;var N=L.itemIndex;var S=L.selectedIndex;var u=L.indexUpdatedCallback;var T=L.observer;L=L.title;var W=_.t2("yt-carousel-item-view-model",function(l){T&&T().observe(l)}),V=function(l){N()===S()&&u(l)},M=_.VB(vRn),G=_.VB(_.iRs),D=function(){var l,v,R,K,U;
return((l=Z())==null?void 0:l.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!M()||((v=Z())==null?void 0:v.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((R=G())==null?void 0:R.includes("PAposts_by_host"))||((K=Z())==null?void 0:K.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((U=G())==null?void 0:U.includes("PAyouchat"))};
return _.g("yt-carousel-item-view-model",{el:W,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":L},_.g(_.bj,{data:function(){var l,v;return(v=(l=_.n(Z().carouselItem,chf))==null?void 0:l.textCarousel)!=null?v:Z().carouselItem}},{textCarouselItemViewModel:function(l){return _.g(h58,{data:l.data,
setTapCommand:V,isDisabled:D})},
commentTeaserCarouselItemViewModel:function(l){return _.g(d4t,{data:l.data,setTapCommand:V})},
commentInputBoxCarouselItemViewModel:function(l){return _.g(e57,{data:l.data,setTapCommand:V})},
commentsEntryPointMessageViewModel:function(l){return _.g(abY,{data:l.data,setTapCommand:V})}}))},"Hn");var j69=_.p(function(L){var Z=L.numDots;var N=L.activeIndex;return _.g("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.g(_.ju,{each:function(){return Array.from({length:Z()})},
keyBy:"INDEX"},function(S,u){return _.g("div",{class:function(){var T={};return _.D7("ytCarouselDotsShapeDot",(T.ytCarouselDotsShapeDotActive=u===N(),T))}})}))},"In");var EbV=_.p(function(L){var Z=L.data;var N=L.handleCarouselNavigation;var S=L.numItems;var u=L.selectedIndex;var T=function(){return{disabled:u()===0}},W=function(){return{disabled:u()===S()-1}};
return _.g("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.g("div",null,_.g("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return Z().title}),_.g(_.F,{cond:function(){return Z().subtitle},
then:function(V){return _.g("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return Z().subtitleAccessibilityText}},V)}})),_.g(_.F,{cond:function(){return S()>1},
then:function(){return _.g("div",{class:"ytCarouselTitleViewModelNavigation"},_.g(j69,{numDots:S,activeIndex:u}),_.g(_.F,{cond:function(){return Z().previousButton},
then:function(V){return _.g(_.bj,{data:V},{buttonViewModel:function(M){return _.g(_.$X,{data:M.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return N(-1)},
buttonOverrides:T})}})}}),_.g(_.F,{cond:function(){return Z().nextButton},
then:function(V){return _.g(_.bj,{data:V},{buttonViewModel:function(M){return _.g(_.$X,{data:M.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return N(1)},
buttonOverrides:W})}})}}))}}))},"Jn");_.CY(_.p(function(L){var Z=L.data;var N,S=_.t2("yt-video-metadata-carousel-view-model"),u=_.t2("div",function(C){var X=function(){var L1=C.offsetWidth*U(),Fw=24*(U()-1);v(L1+Fw)};
X();window.ResizeObserver&&(N=new ResizeObserver(X),N.observe(C))}),T=_.X7("HTML_DIR")==="rtl",W=!1,V=0,M=0;
L=_.O(_.nh(0,void 0,"M49TDf"));var G=L.next().value,D=L.next().value;L=_.O(_.nh(0,void 0,"zLIok"));var l=L.next().value,v=L.next().value;L=_.O(_.nh(!1,void 0,"bhelhc"));var R=L.next().value,K=L.next().value,U=function(){var C,X,L1;return(L1=(C=Z())==null?void 0:(X=C.carouselTitles)==null?void 0:X.length)!=null?L1:0},d=function(){u.value&&u.value.scrollLeft!==V&&D((T?u.value.scrollLeft<V:u.value.scrollLeft>V)?Math.min(G()+1,U()-1):Math.max(G()-1,0))},h;
window.IntersectionObserver&&(h=new IntersectionObserver(function(C){C=_.O(C);for(var X=C.next();!X.done;X=C.next())if(X.value.isIntersecting){if(W){W=!1;break}d()}else D(M)},{threshold:.2}));
_.ph(function(){if(u.value){var C=(T?-1:1)*(l()/U()+12)*(R()&&h?M:G());typeof u.value.scrollTo==="function"?u.value.scrollTo({left:C,behavior:"smooth"}):u.value.scrollLeft=C;V=C;M=R()&&h?M:G()}},"s9rbgc");
var E,A=function(C){E=C};
_.zs(function(){var C;(C=N)==null||C.disconnect();var X;(X=h)==null||X.disconnect()});
var J=function(C){C=G()+C;C>=0&&C<U()&&(W=!0,D(C))};
return _.g("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:S,"on:click":_.Z9(function(C){if(_.vT(_.lj(C),S.value,["BUTTON".toString()])||!E)return!1;_.GR().resolve(_.$s).resolveCommand(E,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Z9(function(){K(!0);return!1}),
"on:touchend":_.Z9(function(){h||d();K(!1);return!1}),
hidden:function(){var C,X;return!((C=Z())==null?0:(X=C.carouselItems)==null?0:X.length)}},_.g("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.g(_.F,{cond:function(){return Z().carouselTitles},
then:function(C){return _.g(_.bj,{data:function(){return C()[R()&&h?M:G()]}},{carouselTitleViewModel:function(X){return _.g(EbV,{data:X.data,
handleCarouselNavigation:J,numItems:U,selectedIndex:G})}})}})),_.g("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:u},_.g("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+l()+"px;"}},_.g(_.F,{cond:function(){return Z().carouselItems},
then:function(C){return _.g(_.ju,{each:C},function(X,L1){return _.g(_.bj,{data:function(){return X}},{carouselItemViewModel:function(Fw){return _.g(s6V,{data:Fw.data,
itemIndex:L1,selectedIndex:G,indexUpdatedCallback:A,observer:h,title:function(){a:{var GB=L1();var Yt,lH=(Yt=Z())==null?void 0:Yt.carouselTitles;if(lH&&(GB=lH[GB])){var RF;GB=(RF=_.n(GB,RaY))==null?void 0:RF.title;break a}GB=void 0}return GB}})}})})}}))))},"Ln"),"yt-video-metadata-carousel-view-model",{props:{data:_.LK}});var PeM=_.c("web_action_buttons_update_owner_width")?32:12,UD=function(){var L=_.e.apply(this,arguments)||this;L.isHovering=!1;L.enableColorSampling=_.c("web_delhi_colorful_sd");L.metadataBadgesInDescription=_.c("web_metadata_badges_in_description");L.descriptionCollapsed=!0;L.useFadedScrimDescription=_.c("kevlar_enable_faded_scrim_on_description");L.skinnyMode=!1;L.playlist=!1;L.isDark=document.documentElement.hasAttribute("dark");L.disableVideoOwnerOnTap=_.c("swatchie_video_owner_on_tap_ks");L.swatcherooDelayLoad=
_.c("swatcheroo_enable_ghost_cards");L.primaryMenuWidth=0;L.videoId="";L.titleHeadlineXs=_.c("web_watch_typography_title_headline_xs");L.titleHeadlineS=_.c("web_watch_typography_title_headline_s");L.titleHeadlineM=_.c("web_watch_typography_title_headline_m");L.titleHashtagBlackLinkified=_.c("web_title_hashtag_black_linkified");L.titleHashtagGreyLinkified=_.c("web_title_hashtag_grey_linkified");L.actionButtonsUpdateOwnerWidth=_.c("web_action_buttons_update_owner_width");L.shouldForceIconOnly=!1;L.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};L.isFullscreen=!1;L.isTheaterMode=!1;return L};
_.f(UD,_.e);_.t=UD.prototype;_.t.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.t.updateOwnerAndDescriptionPosition=function(){_.c("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.a4(this.bottomRowElement,this.ownerElement)):(_.a4(this.bottomRowElement,this.descriptionElement),_.a4(this.topRowElement,this.ownerElement)))};
_.t.titleOnTap=function(L){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.PQ(_.sx(L)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Z;((Z=window.getSelection())==null?0:Z.toString().length)||this.handleExpandDescriptionCommands()}};
_.t.videoOwnerOnTap=function(L){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.PQ(_.sx(L)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.t.detached=function(){var L=this,Z;return _.b(function(N){(Z=L.resizeObserver)==null||Z.disconnect();_.w7(N)})};
_.t.maybeAttachResizeObserver=function(){var L=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Sw(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){L.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.t.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var L=this.hostElement.clientWidth,Z=Math.max(this.largerItemWrap?400:350,L/2-PeM);_.c("web_action_buttons_update_owner_width")&&(Z=this.ownerElement.clientWidth+PeM);this.actionsOnSeparateLine=this.primaryMenuWidth>L-Z?!0:!1}};
_.t.stripAttributedDescription=function(L){return{content:L.content.replace(/[\r\n]{2,}/g,"\n")}};
_.t.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.c("web_modern_buttons"),forceIconButton:!_.c("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:_.c("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.t.videoPrimaryInfoRendererChanged=function(){var L;if((L=this.videoPrimaryInfoRenderer)==null?0:L.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.t.videoSecondaryInfoRendererChanged=function(){var L,Z;(L=this.descriptionInlineExpander)==null||(Z=L.collapse)==null||Z.call(L);this.descriptionExpandClientVe=_.Ll(110509);this.descriptionCollapseClientVe=_.Ll(110510);L=_.RH();Z=_.oH();L&&Z&&(_.c("combine_ve_grafts")?(_.k3(_.tC(),this.descriptionExpandClientVe,Z),_.k3(_.tC(),this.descriptionCollapseClientVe,Z)):_.Iq(L,Z,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.t.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.t.updateTopLevelIconsOnly=function(){var L=this;_.c("top_level_update_killswitch")||this.menu&&_.ro.addLowPriorityJob(function(){L.menu.topLevelIconsOnly=L.skinnyMode},_.lQ("swathceroo_delay_flexible_menu_update",100))};
_.t.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.c("web_action_buttons_minimize_subscribe")};
_.t.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.t.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.t.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.t.onYtTextInlineExpanderExpandedChanged=function(){if(!_.c("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var L,Z;(Z=(L=this.structuredDescriptionContentRendererElement).resize)==null||Z.call(L)}};
_.t.onRenderStamperFinished=function(L){(L==null?void 0:L.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.t.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.t.onYtExpanderLessTapped=function(){var L,Z=(L=this.videoSecondaryInfoRenderer)==null?void 0:L.showLessCommand;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.t.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.t.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.t.onDescriptionClick=function(L){if(!_.PQ(_.sx(L)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Z;((Z=window.getSelection())==null?0:Z.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.c("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.t.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.t.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.t.logCollapseClick=function(){var L=_.RH();L&&this.descriptionCollapseClientVe&&_.sT(L,this.descriptionCollapseClientVe)};
_.t.logExpandClick=function(){var L=_.RH();L&&this.descriptionExpandClientVe&&_.sT(L,this.descriptionExpandClientVe)};
_.t.collapseDescription=function(){this.descriptionCollapsed=!0};
_.t.scrollToTopOfContainer=function(){_.XJ(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.t.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.t.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.t.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.t.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var L,Z;(Z=(L=this.descriptionInlineExpander).resize)==null||Z.call(L)}else _.Q7(new _.sr("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var N;(N=this.menu)==null||N.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.t.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var L,Z,N,S,u=_.c("web_action_buttons_update_owner_width")?(N=(L=_.QJ(this.menu).querySelector("#button-shape"))==null?void 0:L.clientWidth)!=null?N:0:(S=(Z=_.QJ(this.menu).querySelector("#button"))==null?void 0:Z.clientWidth)!=null?S:0,T,W;L=((W=(T=_.QJ(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:T.clientWidth)!=null?W:0)+8+u;var V,M;u=(M=(V=_.QJ(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:V.children.length)!=null?M:2;L<=8*u||(this.primaryMenuWidth=L)}};
_.t.onYtUpdateTitleAction=function(L){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.n(L,L5Y).title)};
_.t.onYtUpdateDescriptionAction=function(L){if(L=_.n(L,_.Uk5)){var Z,N=!((Z=this.videoSecondaryInfoRenderer)==null||!Z.attributedDescription);L.isEmpty||!L.description&&!L.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):L.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",L.attributedDescription):L.description&&(N?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.oX(L.description)):this.set("videoSecondaryInfoRenderer.description",L.description))}};
_.t.onYtDarkModeToggledAction=function(L){this.isDark=L};
_.t.registerPanel=function(){if(!_.c("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var L=_.c("web_watch_imax_theater_mode")&&this.isTheaterMode;L=_.c("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||L;var Z=_.GR().resolve(_.EB);Z&&!L&&Z.registerPanel("engagement-panel-structured-description",this)}};
_.t.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.t.parseColorSamplingData=function(){var L;if(_.c("web_delhi_colorful_sd")&&((L=this.structuredDescriptionContentRenderer)==null?0:L.items)&&(L=this.structuredDescriptionContentRenderer.items.find(function(u){return!!_.n(u,hH)}))){var Z,N;
this.hoverColor={lightTheme:(Z=_.n(L,hH))==null?void 0:Z.lightThemeColorPalette,darkTheme:(N=_.n(L,hH))==null?void 0:N.darkThemeColorPalette};var S;this.hoverText=(S=_.n(L,hH))==null?void 0:S.colorSampledDescriptionBodyText}};
_.t.updateHoverColor=function(){if(_.c("web_delhi_colorful_sd")){var L=this.hoverColor,Z={},N;L=(N=this.isDark?L==null?void 0:L.darkTheme:L==null?void 0:L.lightTheme)!=null?N:{};N=_.O(YVY);for(var S=N.next();!S.done;S=N.next()){S=S.value;var u=L[S];Z["--yt-saturated-"+_.uc(S)]=u?_.Rs(u):"initial"}_.Ld(this.hostElement,Z)}};
_.t.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.t.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.t.showPanel=function(L){this.expandDescription();var Z=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;Z.resize();var N,S=L==null?void 0:(N=L.sectionListEngagementPanelExtras)==null?void 0:N.scrollToItemSectionIdentifier;S?_.ro.addJob(function(){Z==null||Z.scrollToSection(S)},8):this.scrollToTopOfContainer()};
_.t.isVisible=function(){return!this.descriptionCollapsed};
_.t.getReloadContinuation=function(){};
_.t.hidePanel=function(){};
_.t.updatePanel=function(){};
_.gd.Object.defineProperties(UD.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var L;return _.c("web_delhi_colorful_sd")&&(L=this.structuredDescriptionContentRenderer)!=null&&L.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(Z){return!_.n(Z,hH)&&!_.n(Z,iZ9)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.structuredDescriptionContentRendererComputed)!=null&&L.items){var Z;L=_.O((Z=this.structuredDescriptionContentRendererComputed)==null?void 0:Z.items);for(Z=L.next();!Z.done;Z=L.next())if(Z=_.n(Z.value,_.ov0))return Z}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.videoPrimaryInfoRenderer)==null?0:L.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return!!((L=this.videoSecondaryInfoRenderer)==null?0:(Z=L.owner)==null?0:(N=Z.videoOwnerRenderer)==null?0:N.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var L,Z;if((L=this.videoSecondaryInfoRenderer)==null?0:(Z=L.attributedDescription)==null?0:Z.content){var N,S;return(S=this.stripAttributedDescription((N=this.videoSecondaryInfoRenderer)==null?void 0:N.attributedDescription))!=null?S:{runs:[]}}}if(_.c("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var u,T,W,V;return(V=(W=(u=this.videoSecondaryInfoRenderer)==
null?void 0:u.description)!=null?W:(T=this.videoSecondaryInfoRenderer)==null?void 0:T.attributedDescription)!=null?V:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var L,Z;return(Z=(L=this.videoSecondaryInfoRenderer)==null?void 0:L.headerRuns)!=null?Z:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.commentsEntryPointHeaderRenderer)==null||!L.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.videoMetadataCarousel)==null||!L.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.lQ("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=Object.assign({},(L=this.videoSecondaryInfoRenderer)==null?void 0:(Z=L.metadataRowContainer)==null?void 0:Z.metadataRowContainerRenderer);if(N&&N.rows&&N.collapsedItemCount!==void 0&&!(N.rows.length<=N.collapsedItemCount))return N.rows=N.rows.slice(N.collapsedItemCount),N.collapsedItemCount=0,N}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var L,Z,N=Object.assign({},(L=this.videoSecondaryInfoRenderer)==null?void 0:(Z=L.metadataRowContainer)==null?void 0:Z.metadataRowContainerRenderer);if(N&&N.rows&&N.collapsedItemCount!==void 0)return N.rows=N.rows.slice(0,N.collapsedItemCount),N.collapsedItemCount=N.rows.length,N}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!!((L=this.structuredDescriptionContentRendererComputed)==null?0:(Z=L.items)==null?0:Z.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 L;return(L=this.videoSecondaryInfoRenderer)==null?void 0:L.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return((L=this.videoSecondaryInfoRenderer)==null?0:(Z=L.owner)==null?0:(N=Z.videoOwnerRenderer)==null?0:N.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S;return!!((L=this.videoPrimaryInfoRenderer)==null?0:(Z=L.videoActions)==null?0:(N=Z.menuRenderer)==null?0:(S=N.flexibleItems)==null?0:S.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.aX(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.aX(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var L=this;if(_.c("web_title_hashtag_grey_delinkified")){var Z,N=_.Py.unsafeClone((Z=this.videoPrimaryInfoRenderer)==null?void 0:Z.title);(Z=N==null?void 0:N.runs)&&Z.forEach(function(S){if(S==null?0:S.navigationEndpoint)S.textColor=4284506208,L.isDark&&(S.textColor=4289374890)});
return N}return(N=this.videoPrimaryInfoRenderer)==null?void 0:N.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.c("web_title_hashtag_black_delinkified")||_.c("web_title_hashtag_grey_delinkified")}}});
UD.prototype.updateHoverColor=UD.prototype.updateHoverColor;UD.prototype.parseColorSamplingData=UD.prototype.parseColorSamplingData;UD.prototype.resetDescriptionState=UD.prototype.resetDescriptionState;UD.prototype.registerPanel=UD.prototype.registerPanel;UD.prototype.onYtExpanderLessTapped=UD.prototype.onYtExpanderLessTapped;UD.prototype.onYtExpanderMoreTapped=UD.prototype.onYtExpanderMoreTapped;UD.prototype.onRenderStamperFinished=UD.prototype.onRenderStamperFinished;
UD.prototype.onYtTextInlineExpanderExpandedChanged=UD.prototype.onYtTextInlineExpanderExpandedChanged;UD.prototype.onYtTextInlineExpanderCollapseClicked=UD.prototype.onYtTextInlineExpanderCollapseClicked;UD.prototype.onYtTextInlineExpanderExpandClicked=UD.prototype.onYtTextInlineExpanderExpandClicked;UD.prototype.moveActionsElement=UD.prototype.moveActionsElement;UD.prototype.updateShouldForceIconOnly=UD.prototype.updateShouldForceIconOnly;UD.prototype.updateTopLevelIconsOnly=UD.prototype.updateTopLevelIconsOnly;
UD.prototype.structuredDescriptionContentRendererChanged=UD.prototype.structuredDescriptionContentRendererChanged;UD.prototype.videoSecondaryInfoRendererChanged=UD.prototype.videoSecondaryInfoRendererChanged;UD.prototype.videoPrimaryInfoRendererChanged=UD.prototype.videoPrimaryInfoRendererChanged;UD.prototype.maybeUpdateActionsOnSeparateLine=UD.prototype.maybeUpdateActionsOnSeparateLine;UD.prototype.updateOwnerAndDescriptionPosition=UD.prototype.updateOwnerAndDescriptionPosition;
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],UD.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],UD.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.CD),_.Q("design:type",Object)],UD.prototype,"ytdReduxBehavior",void 0);_.r([_.TX("#above-the-fold"),_.Q("design:type",HTMLElement)],UD.prototype,"aboveTheFoldContainer",void 0);_.r([_.TX("#menu ytd-menu-renderer"),_.Q("design:type",Object)],UD.prototype,"menu",void 0);_.r([_.TX("#description-inline-expander"),_.Q("design:type",Object)],UD.prototype,"descriptionInlineExpander",void 0);
_.r([_.TX("#faded-structured-description"),_.Q("design:type",Object)],UD.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.r([_.TX("#structured-description"),_.Q("design:type",Object)],UD.prototype,"structuredDescriptionContentRendererElement",void 0);_.r([_.TX("#title"),_.Q("design:type",HTMLElement)],UD.prototype,"titleElement",void 0);_.r([_.TX("#description"),_.Q("design:type",HTMLElement)],UD.prototype,"descriptionElement",void 0);
_.r([_.TX("#description-interaction"),_.Q("design:type",Object)],UD.prototype,"descriptionInteraction",void 0);_.r([_.TX("#owner"),_.Q("design:type",HTMLElement)],UD.prototype,"ownerElement",void 0);_.r([_.TX("#top-row"),_.Q("design:type",HTMLElement)],UD.prototype,"topRowElement",void 0);_.r([_.TX("#bottom-row"),_.Q("design:type",HTMLElement)],UD.prototype,"bottomRowElement",void 0);_.r([_.TX("#actions"),_.Q("design:type",HTMLElement)],UD.prototype,"actionsElement",void 0);
_.r([_.TX("#bottom-actions"),_.Q("design:type",HTMLElement)],UD.prototype,"bottomActionsElement",void 0);_.r([_.TX("#ytd-watch-info-text"),_.Q("design:type",Object)],UD.prototype,"watchInfoTextElement",void 0);_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"videoPrimaryInfoRenderer",void 0);_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"videoSecondaryInfoRenderer",void 0);
_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"commentsEntryPointHeaderRenderer",void 0);_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"videoMetadataCarousel",void 0);_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"structuredDescriptionContentRenderer",void 0);_.r([_.w("structuredDescriptionContentRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UD.prototype,"structuredDescriptionContentRendererComputed",null);
_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"videoSummary",void 0);_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"merchShelf",void 0);_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"infoPanelBelowMetadata",void 0);_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"hoverColor",void 0);_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"hoverText",void 0);_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"isHovering",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"enableColorSampling",void 0);_.r([_.w("structuredDescriptionContentRendererComputed"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UD.prototype,"productShelf",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"metadataBadgesInDescription",void 0);_.r([_.w("videoPrimaryInfoRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UD.prototype,"shouldHideBadges",null);
_.r([_.w("productShelf","descriptionCollapsed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],UD.prototype,"shouldShowProductShelf",null);_.r([_.Y(),_.Q("design:type",Boolean)],UD.prototype,"isWatchFlexy",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"descriptionCollapsed",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],UD.prototype,"useFadedScrimDescription",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"skinnyMode",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("videoSecondaryInfoRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UD.prototype,"largerItemWrap",null);_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"playlist",void 0);_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"clarifyBox",void 0);_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"playerAds",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],UD.prototype,"isDark",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],UD.prototype,"actionsOnSeparateLine",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"disableVideoOwnerOnTap",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"swatcherooDelayLoad",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],UD.prototype,"suppressTopLevelMetadataRows",void 0);
_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"primaryMenuWidth",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"videoId",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"titleHeadlineXs",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"titleHeadlineS",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"titleHeadlineM",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"titleHashtagBlackLinkified",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"titleHashtagGreyLinkified",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.r([_.Y(),_.Q("design:type",Object)],UD.prototype,"shouldForceIconOnly",void 0);
_.r([_.Vr("skinnyMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"updateOwnerAndDescriptionPosition",null);_.r([_.Vr("skinnyMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.r([_.w("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UD.prototype,"descriptionText",null);_.r([_.w("videoSecondaryInfoRenderer.headerRuns"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],UD.prototype,"headerRuns",null);
_.r([_.Y({value:!1}),_.w("commentsEntryPointHeaderRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UD.prototype,"hasTeaser",null);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.w("videoMetadataCarousel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UD.prototype,"hasTeaserCarousel",null);_.r([_.Y({value:3}),_.w("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UD.prototype,"descriptionMaxLines",null);
_.r([_.w("videoSecondaryInfoRenderer.metadataRowContainer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UD.prototype,"collapsibleMetadataRows",null);_.r([_.w("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UD.prototype,"alwaysVisibleMetadataRows",null);
_.r([_.w("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],UD.prototype,"hasInlineStructuredDescription",null);_.r([_.w("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],UD.prototype,"showInlineStructuredDescription",null);
_.r([_.w("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UD.prototype,"descriptionExpandCommand",null);_.r([_.w("videoSecondaryInfoRenderer.owner"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UD.prototype,"videoOwnerCommand",null);_.r([_.Y({reflectToAttribute:!0}),_.w("videoPrimaryInfoRenderer.videoActions"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],UD.prototype,"flexMenuEnabled",null);
_.r([_.Y({selector:_.nV,reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"isFullscreen",void 0);_.r([_.Y({selector:_.cQ,reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"isTheaterMode",void 0);_.r([_.w("descriptionText","useFadedScrimDescription"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],UD.prototype,"showAttributedStringDescription",null);
_.r([_.w("descriptionText","useFadedScrimDescription"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],UD.prototype,"showFormattedStringDescription",null);_.r([_.w("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],UD.prototype,"showFadedStructuredDescription",null);
_.r([_.Vr("videoPrimaryInfoRenderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"videoPrimaryInfoRendererChanged",null);_.r([_.w("videoPrimaryInfoRenderer.title"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UD.prototype,"videoTitle",null);_.r([_.w("videoPrimaryInfoRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UD.prototype,"noEndpoints",null);
_.r([_.Vr("videoSecondaryInfoRenderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"videoSecondaryInfoRendererChanged",null);_.r([_.iA("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"structuredDescriptionContentRendererChanged",null);
_.r([_.iA("skinnyMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"updateTopLevelIconsOnly",null);_.r([_.iA("skinnyMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"updateShouldForceIconOnly",null);_.r([_.iA("skinnyMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"moveActionsElement",null);
_.r([_.SA("yt-text-inline-expander-expand-clicked"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"onYtTextInlineExpanderExpandClicked",null);_.r([_.SA("yt-text-inline-expander-collapse-clicked"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.r([_.SA("yt-text-inline-expander-expanded-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.r([_.SA("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],UD.prototype,"onRenderStamperFinished",null);
_.r([_.SA("yt-expander-more-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"onYtExpanderMoreTapped",null);_.r([_.SA("yt-expander-less-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"onYtExpanderLessTapped",null);
_.r([_.iA("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"registerPanel",null);_.r([_.iA("videoSecondaryInfoRenderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"resetDescriptionState",null);
_.r([_.iA("structuredDescriptionContentRenderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"parseColorSamplingData",null);_.r([_.iA("hoverColor","isDark"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UD.prototype,"updateHoverColor",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-watch-metadata"})],UD);
_.m(UD,"ytd-watch-metadata",function(){if(U49!==void 0)return U49;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return U49=L},{mode:2});_.XMf=function(L){_.ag.call(this);this.JSC$23180_watchApi=L;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;pM9(this);z5V(this);m46(this);J2n(this);Cen(this);r29(this);Q6Y(this)};
_.f(_.XMf,_.ag);var m46=function(L){var Z=function(){_.c("kevlar_is_pupi_enabled")||YO(L)};
L.JSC$23180_watchApi.getRoot().addEventListener("yt-player-updated",Z);L.addOnDisposeCallback(function(){L.JSC$23180_watchApi.getRoot().removeEventListener("yt-player-updated",Z)})},Cen=function(L){if(_.c("kevlar_endscreen_auto_theater_mode")){var Z=L.JSC$23180_watchApi.subscribeToActiveChanged(function(){A2w(L)},!1);
L.addOnDisposeCallback(Z)}},pM9=function(L){var Z,N,S,u,T;
_.b(function(W){if(W.nextAddress==1)return W.yield(L.JSC$23180_watchApi.playerApi,2);Z=W.yieldResult;N=function(V){V=!!V;HoY(L)&&(V=V?2:1,_.Fx.getInstance().setState(V,!0,!1))};
S=function(V){V&&_.l48(_.Pv().getState())&&(_.XJ(L.JSC$23180_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),L.temporaryTheaterMode=!0)};
u=function(V){_.c("kevlar_player_update_autonav_on_new_data")&&V.type==="newdata"&&(_.c("kevlar_is_pupi_enabled")||YO(L))};
T=function(V){L.onPlayerStateChange(V)};
_.c("kevlar_endscreen_auto_theater_mode")&&Z.addEventListener("onAutonavCancelled",S);Z.addEventListener("onAutonavChangeRequest",N);Z.addEventListener("onVideoDataChange",u);Z.addEventListener("onStateChange",T);L.addOnDisposeCallback(function(){Z.removeEventListener("onAutonavChangeRequest",N);Z.removeEventListener("onVideoDataChange",u);Z.removeEventListener("onStateChange",T);_.c("kevlar_endscreen_auto_theater_mode")&&Z.removeEventListener("onAutonavCancelled",S)});
_.w7(W)})},z5V=function(L){L.JSC$23180_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){L.autonavCancelledBySignal=!0;
_.c("kevlar_is_pupi_enabled")||YO(L)});
L.JSC$23180_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(Z,N,S){N&&YO(L,S)});
L.JSC$23180_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){HoY(L)&&_.Fx.getInstance().setState(2,!0,!0)});
L.JSC$23180_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){HoY(L)&&_.Fx.getInstance().setState(1,!0,!0)});
L.addOnDisposeCallback(function(){L.JSC$23180_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");L.JSC$23180_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");L.JSC$23180_watchApi.unregisterActionHandler("yt-enable-autoplay-command");L.JSC$23180_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},J2n=function(L){var Z=L.JSC$23180_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Q6Y(L)}),N=L.JSC$23180_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){r29(L)});
L.addOnDisposeCallback(function(){L.JSC$23180_watchApi.unsubscribeByKey(Z);L.JSC$23180_watchApi.unsubscribeByKey(N)})},Q6Y=function(L){L.autonavCancelledBySignal=!1;
_.c("kevlar_is_pupi_enabled")||YO(L)},r29=function(L){var Z=L.JSC$23180_watchApi.getWatchNextResponse(),N,S;
var u=(Z=(S=_.n(Z==null?void 0:(u=Z.playerOverlays)==null?void 0:(N=u.playerOverlayRenderer)==null?void 0:N.autonavToggle,_.dk0))==null?void 0:S.enabled)?2:1;_.c("kevlar_is_pupi_enabled")?_.Fx.getInstance().setState(u,!1,!1):YO(L);_.c("web_persist_server_autonav_state_on_client")&&typeof Z==="boolean"&&_.McF(u===2)},HoY=function(L){if(L.autonavCancelledBySignal)return!1;
var Z,N,S,u;return!!((Z=L.JSC$23180_watchApi.getWatchNextResponse())==null?0:(N=Z.contents)==null?0:(S=N.twoColumnWatchNextResults)==null?0:(u=S.autoplay)==null?0:u.autoplay)};
_.XMf.prototype.onPlayerStateChange=function(L){if(L===0){L=!_.Fx.getInstance().isAutoplaySetExplicitly();var Z=this.JSC$23180_watchApi.getWatchNextResponse(),N,S,u,T;Z=_.n(Z==null?void 0:(N=Z.contents)==null?void 0:(S=N.twoColumnWatchNextResults)==null?void 0:(u=S.autoplay)==null?void 0:(T=u.autoplay)==null?void 0:T.autoplayExplicitChoiceDialogRenderer,_.HKs);HoY(this)&&L&&Z&&_.qd.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:Z},popupType:"DIALOG"}})}else A2w(this)};
var A2w=function(L){L.temporaryTheaterMode&&(L.temporaryTheaterMode=!1,_.XJ(L.JSC$23180_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},YO=function(L,Z){Z=Z===void 0?!1:Z;
var N;_.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$23180_watchApi.playerApi,2);N=S.yieldResult;HoY(L)?N.setAutonavState(_.Fx.getInstance().getState(),Z):N.setAutonavState(1,Z);_.w7(S)})};var Bxn={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"};_.qV6=function(L){_.ag.call(this);var Z=this;this.JSC$23185_watchApi=L;var N=this.JSC$23185_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){x48(Z)});
this.addOnDisposeCallback(function(){Z.JSC$23185_watchApi.unsubscribeByKey(N)});
x48(this)};
_.f(_.qV6,_.ag);var x48=function(L){var Z=L.JSC$23185_watchApi.getPlayerResponse(),N=L.JSC$23185_watchApi.getWatchNextResponse();if(!_.jI_(Z==null?void 0:Z.playabilityStatus,N==null?void 0:N.playerOverlays)){var S;var u=Z==null?void 0:(S=Z.playabilityStatus)==null?void 0:S.errorScreen}L.JSC$23185_watchApi.provideRenderingData("ERROR_SCREEN",u)};var L_q=_.p(function(L){var Z=L.data;L=_.c("web_watch_video_details_hide_subtitle");var N=_.c("web_watch_video_details_single_line_title"),S=_.Z9(function(){var V=Z().onTap;V&&_.GR().resolve(_.$s).resolveCommand(V)}),u={},T={},W={};
return _.g("yt-player-overlay-video-details-renderer",{class:_.qg("ytPlayerOverlayVideoDetailsRendererHost",(u.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.c("web_watch_video_details_transparent_background"),u)),"on:click":S,role:"button"},_.g("h2",{class:_.qg("ytPlayerOverlayVideoDetailsRendererTitle",(T.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return N},T))},_.g(_.qv,{text:function(){return Z().title}})),_.g("div",{class:_.qg("ytPlayerOverlayVideoDetailsRendererSubtitle",
(W.ytPlayerOverlayVideoDetailsRendererHideSubtitle=L,W))},_.g(_.qv,{text:function(){return Z().subtitle}})))},"Mn");var e0={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},ZHi=_.p(function(L){var Z=L.data;var N=_.VB(_.nV),S=_.c("web_watch_action_bar_resize_buttons"),u=_.c("web_watch_video_action_dsdvb"),T=_.c("delhi_modern_web_player_icons")&&!_.c("enable_web_delhi_icons");L=_.c("delhi_modern_web_player_disable_frosted_glass");var W=_.c("delhi_modern_web_player_compact_video_actions_controls"),
V=_.c("web_player_quick_action_buttons_icon_only"),M=function(){var D=S&&!N(),l={};W?l.size="S":D&&(l.size="M");V&&(l.iconPosition="icon-only");if(Object.keys(l).length!==0)return l},G={};
return _.g("yt-player-quick-action-buttons",{class:_.qg("ytPlayerQuickActionButtonsHost",(G.ytPlayerQuickActionButtonsHostCompactControls=function(){return!N()||W},G.ytPlayerQuickActionButtonsHostDisableBackdropFilter=L,G))},_.g(_.ju,{each:function(){var D=Z();
if(T){D=JSON.parse(JSON.stringify(D));for(var l=_.O(D),v=l.next();!v.done;v=l.next()){var R=v.value,K=void 0;v=_.n((K=_.n(R,_.QY))==null?void 0:K.toggleButtonViewModel,_.iD);var U=void 0;K=_.n((U=_.n(R,_.rf))==null?void 0:U.toggleButtonViewModel,_.iD);U=_.n(R,_.NU);R=_.n(R,_.iD);if(v)K=_.n(v.defaultButtonViewModel,_.NU),v=_.n(v.toggledButtonViewModel,_.NU),K&&K.iconName&&(K.iconName=e0[K.iconName]),v&&v.iconName&&(v.iconName=e0[v.iconName]);else if(K)v=_.n(K.defaultButtonViewModel,_.NU),K=_.n(K.toggledButtonViewModel,
_.NU),v&&v.iconName&&(v.iconName=e0[v.iconName]),K&&K.iconName&&(K.iconName=e0[K.iconName]);else if(U)U.iconName&&(U.iconName=e0[U.iconName]);else if(R){v=_.n(R.defaultButtonViewModel,_.NU);K=_.n(R.toggledButtonViewModel,_.NU);R=void 0;if((R=v)==null?0:R.iconName)v.iconName=e0[v.iconName];v=void 0;if((v=K)==null?0:v.iconName)K.iconName=e0[K.iconName]}}}u&&(D=QYM(D));return D}},function(D){return _.g(_.bj,{data:function(){return D}},{buttonViewModel:function(l){return _.g(_.$X,{data:l.data,
buttonOverrides:M})},
likeButtonViewModel:function(l){return _.g(_.XX,{data:l.data,buttonShapeOverrideables:M})},
dislikeButtonViewModel:function(l){return _.g(_.QK,{data:l.data,buttonShapeOverrideables:M})},
toggleButtonViewModel:function(l){return _.g(_.sj,{data:l.data,buttonShapeOverrides:M})}})}))},"Nn");_.SU7=function(L){_.ag.call(this);var Z=this;this.JSC$23189_watchApi=L;L=_.O(_.nh({},void 0,"n9wCVe"));this.quickActionsViewModel=L.next().value;this.setQuickActionsViewModel=L.next().value;L=_.O(_.nh({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=L.next().value;this.setPlayerOverlayVideoDetailsRenderer=L.next().value;var N=this.JSC$23189_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){NdY(Z)});
this.addOnDisposeCallback(function(){Z.JSC$23189_watchApi.unsubscribeByKey(N)});
NdY(this)};
_.f(_.SU7,_.ag);
var NdY=function(L){var Z,N,S,u,T,W,V,M,G,D,l,v,R,K;_.b(function(U){if(U.nextAddress==1)return U.yield(L.JSC$23189_watchApi.playerApi,2);Z=U.yieldResult;N=L.JSC$23189_watchApi.getWatchNextResponse();T=(S=N)==null?void 0:(u=S.playerOverlays)==null?void 0:u.playerOverlayRenderer;V=_.n((W=T)==null?void 0:W.fullscreenQuickActionsBar,_.Yjl);(G=(M=L).setQuickActionsViewModel)==null||G.call(M,V||{});V&&iHf(L,Z);v=(D=T)==null?void 0:(l=D.videoDetails)==null?void 0:l.playerOverlayVideoDetailsRenderer;(K=(R=
L).setPlayerOverlayVideoDetailsRenderer)==null||K.call(R,v||{});v&&u$w(L,Z);_.w7(U)})},iHf=function(L,Z){if(!L.quickActionButtonsContainer)if(Z.setFullscreenQuickActions){L.quickActionButtonsContainer=document.createElement("div");
Z.setFullscreenQuickActions(L.quickActionButtonsContainer);var N=function(){return L.quickActionsViewModel().quickActionButtons||[]},S=_.pn(L.quickActionButtonsContainer,function(){return _.g(ZHi,{data:N})},"On");
L.addOnDisposeCallback(function(){Z.setFullscreenQuickActions(void 0);S()})}else _.Q7(new _.sr("setFullscreenQuickActions not defined",{playerApi:Object.keys(Z),
isReady:Z.isReady(),appState:Z.getAppState()}))},u$w=function(L,Z){if(!L.playerOverlayVideoDetailsRendererContainer)if(Z.setPlayerOverlayVideoDetailsRenderer){L.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
Z.setPlayerOverlayVideoDetailsRenderer(L.playerOverlayVideoDetailsRendererContainer);var N=_.pn(L.playerOverlayVideoDetailsRendererContainer,function(){return _.g(L_q,{data:L.playerOverlayVideoDetailsRenderer})},"Pn");
L.addOnDisposeCallback(function(){Z.setPlayerOverlayVideoDetailsRenderer(void 0);N()})}else _.Q7(new _.sr("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(Z),
isReady:Z.isReady(),appState:Z.getAppState()}))};_.It=function(L){_.ag.call(this);var Z=this;this.JSC$23195_watchApi=L;this.JSC$23195_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;L=_.hK(_.Pv(),_.nV,function(N){Z.onFullscreenChanged(N)});
this.addOnDisposeCallback(L);L=_.hK(_.Pv(),_.e1,function(N){Z.onWatchScroll(N)});
this.addOnDisposeCallback(L);_.c("kevlar_watch_while_v2")&&(L=_.hK(_.Pv(),_.Ri,function(N){Td8(Z,N)}),this.addOnDisposeCallback(L));
tjn(this);OHn(this);W_7();this.onWatchScroll(_.e1(_.Pv().getState()));_.Ah("START_IN_FULL_WINDOW_MODE")&&this.JSC$23195_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.f(_.It,_.ag);var tjn=function(L){L.JSC$23195_watchApi.registerActionHandler("yt-fullscreen-change-action",function(Z){var N=L.JSC$23195_watchApi.isActive();Z&&!N||_.Pv().dispatch(_.XK({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!Z}}))});
L.addOnDisposeCallback(function(){L.JSC$23195_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},OHn=function(L){var Z,N;
_.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$23195_watchApi.playerApi,2);Z=S.yieldResult;N=function(){L.onFullerscreenEduClicked()};
Z.addEventListener("onFullerscreenEduClicked",N);L.addOnDisposeCallback(function(){Z.removeEventListener("onFullerscreenEduClicked",N)});
_.w7(S)})};
_.It.prototype.onFullscreenChanged=function(L){var Z=this,N;return _.b(function(S){if(S.nextAddress==1)return Z.isFullscreen=!!_.mg(),S.yield(Z.JSC$23195_watchApi.playerApi,2);N=S.yieldResult;Z.JSC$23195_miniplayerActive||N.setFauxFullscreen(Z.isFullscreen);if(L&&(Z.JSC$23195_watchApi.focusOnPlayer(),!Z.fullerscreenEduButtonShownThisPlayback)){Z.fullerscreenEduButtonShownThisPlayback=!0;var u=_.G7("yt-fullerscreen-edu-button-shown-count")||0;_.gr("yt-fullerscreen-edu-button-shown-count",u+1,31536E3);
Z.updateFullerscreenEduButtonSubtleModeState()}_.w7(S)})};
var Td8=function(L,Z){var N;_.b(function(S){if(S.nextAddress==1)return L.JSC$23195_miniplayerActive=Z,S.yield(L.JSC$23195_watchApi.playerApi,2);N=S.yieldResult;N.setFauxFullscreen(!L.JSC$23195_miniplayerActive&&L.isFullscreen);_.w7(S)})};
_.It.prototype.onWatchScroll=function(L){var Z=this,N,S;return _.b(function(u){if(u.nextAddress==1)return _.c("external_fullscreen_with_edu")?u.yield(Z.JSC$23195_watchApi.playerApi,2):u.return();N=u.yieldResult;S=L<=0;Z.shouldShowFullerscreenEdu!==S&&(Z.shouldShowFullerscreenEdu=S,N.updateFullerscreenEduButtonVisibility(!Z.shouldShowFullerscreenEdu));_.w7(u)})};
_.It.prototype.onFullerscreenEduClicked=function(){this.JSC$23195_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var L=_.G7("yt-fullerscreen-edu-button-click-count")||0;_.gr("yt-fullerscreen-edu-button-click-count",L+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.It.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var L=this,Z,N,S,u,T,W;return _.b(function(V){if(V.nextAddress==1)return Z=_.G7("yt-fullerscreen-edu-button-click-count")||0,N=_.G7("yt-fullerscreen-edu-button-shown-count")||0,S=_.lQ("external_fullscreen_button_click_threshold"),u=_.lQ("external_fullscreen_button_shown_threshold"),T=Z>=S||N>=u,V.yield(L.JSC$23195_watchApi.playerApi,2);W=V.yieldResult;W.updateFullerscreenEduButtonSubtleModeState(T);_.w7(V)})};
_.It.prototype.disposeInternal=function(){_.ag.prototype.disposeInternal.call(this);var L=_.mg();_.c("kevlar_exit_fullscreen_leaving_watch")&&L&&_.Jd(L)};
var W_7=function(){if(_.c("web_watch_add_viewport_meta_tag")){var L=document.querySelector("meta[name=viewport]"),Z=document.head;Z&&!L&&(L=document.createElement("meta"),L.name="viewport",L.content="width=device-width, initial-scale=1.0, viewport-fit=cover",Z.appendChild(L))}};_.bHf=function(L){_.ag.call(this);var Z=this;this.JSC$23198_watchApi=L;this.jobId=0;this.pendingRequestId=void 0;var N=this.JSC$23198_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){VjG(Z)});
this.addOnDisposeCallback(function(){Z.JSC$23198_watchApi.unsubscribeByKey(N)});
VjG(this)};
_.f(_.bHf,_.ag);var Mj6=function(L){_.ro.cancelJob(L.jobId);L.pendingRequestId=void 0},VjG=function(L){Mj6(L);
var Z=XEi(L.JSC$23198_watchApi.getWatchNextResponse());if(Z){var N=250,S,u=(S=_.n(Z,_.UWh))==null?void 0:S.initialDelayMs;_.c("web_watch_updated_metadata_server_initial_delay")&&u&&(N=u);L.jobId=_.ro.addLowPriorityJob(function(){return L.fetchUpdatedMetadata(Z)},N)}};
_.bHf.prototype.fetchUpdatedMetadata=function(L,Z){var N=this,S,u,T,W,V,M,G,D,l,v,R,K,U,d,h;return _.b(function(E){switch(E.nextAddress){case 1:Z&&(S={continuation:Z});if(!_.c("web_get_updated_metadata_fantasy_panel_continuation_params")){E.jumpTo(2);break}u=_.GR().resolve(_.EB);T="PAsports_fantasy";return E.yield(u.isVisible(T,!0),3);case 3:E.yieldResult&&(G=(V=(W=u).getUpdatePanelContinuationData)==null?void 0:(M=V.call(W,T))==null?void 0:M.updatePanelContinuationRequest)&&(S||(S={}),S.clientParams=
{panelContinuationParams:{panelContinuation:G}});case 2:D=_.GR().resolve(_.bv);if(!D)return _.CA(Error("Zo")),E.return();l={};N.pendingRequestId=l;return E.yield(_.aV(D,L,S),4);case 4:v=E.yieldResult;if(l!==N.pendingRequestId)return E.return();U=(R=v)==null?void 0:(K=R.continuation)==null?void 0:K.timedContinuationData;((d=U)==null?0:d.continuation)&&((h=U)==null?0:h.timeoutMs)&&(N.jobId=_.ro.addLowPriorityJob(function(){return N.fetchUpdatedMetadata(L,U.continuation)},U.timeoutMs));
_.w7(E)}})};
_.bHf.prototype.disposeInternal=function(){_.ag.prototype.disposeInternal.call(this);Mj6(this)};var gdG=_.p(function(L){var Z=_.Z9(function(){var S=L.data().videoId;if(L.active())S=_.Jq(S),_.GR().resolve(_.$s).resolveCommand(S);else{var u=L.playerApi(),T=u.getAvailableAudioTracks(),W,V,M=(W=L.sourceVideoConfig().audioTracks)==null?void 0:(V=W.find(function(G){return G.isDefaultForSource}))==null?void 0:V.id;
if(T=T.find(function(G){return G.getLanguageInfo().getId()===M}))u.setAudioTrack(T,!0),u.setCompositeParam({activeVideoId:S}),L.setActiveSourceId(S)}}),N={};
return _.g("ytw-composite-source-video-overlay",{class:_.qg("ytwCompositeSourceVideoOverlayHost",(N.ytwCompositeSourceVideoOverlayActive=L.active,N.ytwCompositeSourceVideoOverlayInteracting=L.interacting,N)),style:_.u4({left:function(){var S;return((S=L.data().topLeftCornerX)!=null?S:0)*100+"%"},
top:function(){var S;return((S=L.data().topLeftCornerY)!=null?S:0)*100+"%"},
width:function(){var S;return((S=L.data().width)!=null?S:0)*100+"%"},
height:function(){var S;return((S=L.data().height)!=null?S:0)*100+"%"}}),
"on:click":Z},_.g("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Qn");var Gc7=_.p(function(L){var Z=_.O(_.i4(function(){var W,V=(W=L.data().sources)==null?void 0:W.find(function(M){return M.isActive});
if(V)return V.videoId})),N=Z.next().value,S=Z.next().value;
Z=_.O(_.nh(!1,void 0,"yNRzwd"));var u=Z.next().value,T=Z.next().value;return _.g("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Z9(function(){T(!0)}),
"on:mouseout":_.Z9(function(){T(!1)})},_.g(_.F,{cond:function(){return L.data().sources},
then:function(W){return _.g(_.ju,{each:W},function(V){return _.g(gdG,{data:V,active:function(){return V.videoId===N()},
setActiveSourceId:S,interacting:u,playerApi:L.playerApi,sourceVideoConfig:function(){return AWt(L.compositeVideoConfig(),V.videoId)}})})}}))},"Rn");_.D7q=function(L){_.ag.call(this);this.JSC$23214_watchApi=L;L=_.O(_.nh({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=L.next().value;this.setCompositeVideoOverlayRenderer=L.next().value;L=_.O(_.nh({},void 0,"OlaJpc"));this.compositeVideoConfig=L.next().value;this.setCompositeVideoConfig=L.next().value;F_n(this);$7q(this)};
_.f(_.D7q,_.ag);var F_n=function(L){var Z=L.JSC$23214_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){$7q(L)});
L.addOnDisposeCallback(function(){L.JSC$23214_watchApi.unsubscribeByKey(Z)})},lfV=function(L){var Z;
return _.b(function(N){if(N.nextAddress==1)return N.yield(L.JSC$23214_watchApi.playerApi,2);Z=N.yieldResult;Z.setCompositeVideoOverlayRendererComponent(L.container);_.w7(N)})},vdi=function(L){var Z;
return _.b(function(N){if(N.nextAddress==1)return N.yield(L.JSC$23214_watchApi.playerApi,2);Z=N.yieldResult;Z.setCompositeVideoOverlayRendererComponent(void 0);_.w7(N)})},od6=function(L){var Z,N;
return _.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$23214_watchApi.playerApi,2);Z=S.yieldResult;L.container=document.createElement("div");N=_.pn(L.container,function(){return _.g(Gc7,{data:L.compositeVideoOverlayRenderer,compositeVideoConfig:L.compositeVideoConfig,playerApi:Z})},"Sn");
L.addOnDisposeCallback(N);_.w7(S)})},$7q=function(L){var Z,N,S,u,T,W,V,M;
_.b(function(G){return G.nextAddress==1?(Z=L.JSC$23214_watchApi.getPlayerResponse(),T=_.n((N=Z)==null?void 0:(S=N.overlay)==null?void 0:(u=S.playerControlsOverlayRenderer)==null?void 0:u.compositeVideoOverlay,Jhw),M=(W=Z)==null?void 0:(V=W.playerConfig)==null?void 0:V.compositeVideoConfig,T&&L.setCompositeVideoOverlayRenderer(T),M&&L.setCompositeVideoConfig(M),T&&M?L.container?G.jumpTo(6):G.yield(od6(L),6):RCn(L)?G.yield(vdi(L),0):G.jumpTo(0)):RCn(L)?G.jumpTo(0):G.yield(lfV(L),0)})},RCn=function(L){var Z;
return!((Z=L.container)==null||!Z.parentElement)};
_.D7q.prototype.disposeInternal=function(){RCn(this)&&vdi(this);_.ag.prototype.disposeInternal.call(this)};_.kct=function(L){_.ag.call(this);var Z=this;this.JSC$23220_watchApi=L;var N=this.JSC$23220_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var S=Z.JSC$23220_watchApi.getPlayerResponse();if(S){var u,T;if(S=_.n((u=S.endscreen)==null?void 0:(T=u.endscreenRenderer)==null?void 0:T.hideButton,_.iD)){var W;(W=Z.setEndscreenHideButton)==null||W.call(Z,S);cQt(Z)}}});
this.addOnDisposeCallback(function(){Z.JSC$23220_watchApi.unsubscribeByKey(N)});
L=_.O(_.nh({},void 0,"ER3tqb"));this.endscreenHideButton=L.next().value;this.setEndscreenHideButton=L.next().value;ndM(this);K_V(this);ffn(this)};
_.f(_.kct,_.ag);
var cQt=function(L){var Z,N;_.b(function(S){if(S.nextAddress==1)return L.creatorEndscreenHideButtonContainer?S.return():S.yield(L.JSC$23220_watchApi.playerApi,2);Z=S.yieldResult;L.creatorEndscreenHideButtonContainer=document.createElement("div");_.N$(L.creatorEndscreenHideButtonContainer,!1);Z.setCreatorEndscreenHideButton(L.creatorEndscreenHideButtonContainer);N=_.pn(L.creatorEndscreenHideButtonContainer,function(){return _.g(_.sj,{data:L.endscreenHideButton,useOutlinedIcon:!0})},"Tn");
L.addOnDisposeCallback(function(){N();var u;(u=Z)==null||u.setCreatorEndscreenHideButton(void 0)});
_.w7(S)})},ndM=function(L){var Z,N;
_.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$23220_watchApi.playerApi,2);Z=S.yieldResult;N=function(){L.creatorEndscreenHideButtonContainer&&_.N$(L.creatorEndscreenHideButtonContainer,!0)};
Z.addEventListener("endscreenelementshown",N);L.addOnDisposeCallback(function(){var u;(u=Z)==null||u.removeEventListener("endscreenelementshown",N)});
_.w7(S)})},K_V=function(L){var Z=function(){L.creatorEndscreenHideButtonContainer&&_.N$(L.creatorEndscreenHideButtonContainer,!1)},N=L.JSC$23220_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",Z),S=L.JSC$23220_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",Z);
L.addOnDisposeCallback(function(){L.JSC$23220_watchApi.unsubscribeByKey(N);L.JSC$23220_watchApi.unsubscribeByKey(S)})},ffn=function(L){L.JSC$23220_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(Z){var N=_.n(Z,jlG);
L.JSC$23220_watchApi.playerApi.then(function(S){S==null||S.setCreatorEndscreenVisibility(!!N.hide)})});
L.addOnDisposeCallback(function(){L.JSC$23220_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.wXM=function(L){_.ag.call(this);this.JSC$23226_watchApi=L;yQM(this)};
_.f(_.wXM,_.ag);var yQM=function(L){var Z,N;_.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$23226_watchApi.playerApi,2);Z=S.yieldResult;N=function(u){_.Pv().dispatch(_.XK({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:u}}))};
Z.addEventListener("onRetroModeChanged",N);L.addOnDisposeCallback(function(){Z.removeEventListener("onRetroModeChanged",N)});
_.w7(S)})};var SMY=0,ds=0,u7G=0;var U7Y;U7Y=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.db=function(L){_.ag.call(this);this.JSC$23231_watchApi=L;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;YU8(this)};
_.f(_.db,_.ag);
var YU8=function(L){var Z,N,S;_.b(function(u){if(u.nextAddress==1)return u.yield(L.JSC$23231_watchApi.playerApi,2);Z=u.yieldResult;if(L.isDisposed())return u.return();L.sessionStorage=_.sl5("yt-sleep-timer");L.sessionStorage||_.Q7(new _.sr("SessionStorage for Sleep Timer is undefined."));((N=L.sessionStorage)==null?void 0:N.get("yt-sleep-timer"))==="true"&&(OnG(),(S=L.sessionStorage)==null||S.remove("yt-sleep-timer"),Z.syncVolume());eCn(L,Z);Ifn(L,Z);d79(L,Z);_.w7(u)})},eCn=function(L,Z){var N=function(G){L.onSleepTimerSettingsChanged(G,
Z)},S=function(G){L.onPlayerStateChange(G,Z)},u=function(){L.onLoopChange(Z)},T=function(){L.onCloseMiniplayer(Z)},W=function(){NjG(Z,(0,_.GT)(),W0M(Z),L.selectedOption==="End of video",Z.getPlayerState()!==1)},V=function(){L.onSeekComplete(Z)},M=function(){_.ro.cancelJob(ds);
var G=Z.getCurrentTime()>=Z.getDuration(),D=L.selectedOption==="End of video"||L.selectedOption==="End of playlist"&&!qKn(L.playlistId);G&&D&&afG(L,Z)};
Z.addEventListener("onSleepTimerSettingsChanged",N);Z.addEventListener("onLoopChange",u);Z.addEventListener("onLoopRangeChange",u);Z.addEventListener("onStateChange",S);Z.addEventListener("onCloseMiniplayer",T);Z.addEventListener("onSleepTimerFeatureAvailable",W);Z.addEventListener("SEEK_COMPLETE",V);Z.addEventListener("onAdStart",M);L.addOnDisposeCallback(function(){Z.removeEventListener("onSleepTimerSettingsChanged",N);Z.removeEventListener("onLoopChange",u);Z.removeEventListener("onLoopRangeChange",
u);Z.removeEventListener("onStateChange",S);Z.removeEventListener("onCloseMiniplayer",T);Z.removeEventListener("onSleepTimerFeatureAvailable",W);Z.removeEventListener("SEEK_COMPLETE",V);Z.removeEventListener("onAdStart",M)})},Ifn=function(L,Z){var N=L.JSC$23231_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var S=Z.getVideoData().video_id,u,T=(u=BJG(L.JSC$23231_watchApi))==null?void 0:u.playlistId;
L.pauseAutonavPlayback&&(Z.pauseVideo(),Z.syncVolume(),L.pauseAutonavPlayback=!1);if(L.selectedOption==="End of video"&&S!==L.videoId)at(L,Z);else{if(L.selectedOption==="End of playlist"){u=qKn(L.playlistId);if(T!==L.playlistId){at(L,Z);break a}u?u&&hC9(L,Z):sMV(L,Z)}L.videoId=S;L.playlistId=T}}});
L.addOnDisposeCallback(function(){L.JSC$23231_watchApi.unsubscribeByKey(N)})},d79=function(L,Z){var N=_.GR().resolve(_.mc),S=_.hK(N,_.IAw,function(T){T&&L.selectedOption!=="Off"&&at(L,Z)}),u=L.JSC$23231_watchApi.subscribeToActiveChanged(function(T){var W,V;
return _.b(function(M){if(M.nextAddress==1)return M.yield(_.dM().navigationFinishPromise,2);W=!_.BCN();V=_.GR().resolve(_.yk).isMiniplayerActive();T||!Hhn(L.selectedOption)||V||W||at(L,Z);_.w7(M)})},!1);
N=_.hK(N,function(T){return T.entities.playlistLoopStateEntity||{}},function(T){T=T===void 0?{}:T;
var W=x$6(L.JSC$23231_watchApi);if(W){var V;((V=T[W])==null?void 0:V.state)==="PLAYLIST_LOOP_STATE_ALL"&&Hhn(L.selectedOption)&&at(L,Z)}});
L.addOnDisposeCallback(S);L.addOnDisposeCallback(N);L.addOnDisposeCallback(u)};
_.db.prototype.onSleepTimerSettingsChanged=function(L,Z){switch(L){case "Off":this.selectedOption!=="Off"&&at(this,Z);break;case "End of video":case "End of playlist":jMt(this,L,Z);break;default:jMt(this,L,Z,U7Y.get(L))}};
_.db.prototype.onLoopChange=function(L){(L.getLoopVideo()||L.getLoopRange())&&Hhn(this.selectedOption)&&at(this,L)};
_.db.prototype.onCloseMiniplayer=function(L){Hhn(this.selectedOption)&&at(this,L)};
var jMt=function(L,Z,N,S){Edf(L,N);L.selectedOption=Z;L.videoId=N.getVideoData().video_id;L.playlistId="";var u;(u=L.sessionStorage)==null||u.set("yt-sleep-timer","true");L.adjustmentsCount++;NjG(N,(0,_.GT)(),W0M(N),L.selectedOption==="End of video");if(L.selectedOption==="End of video")sMV(L,N),PNn(L,N);else if(L.selectedOption==="End of playlist"){PNn(L,N);var T,W;L.playlistId=(W=(T=BJG(L.JSC$23231_watchApi))==null?void 0:T.playlistId)!=null?W:"";qKn(L.playlistId)||sMV(L,N)}else S&&(L.presetFadeSchedulerId=
_.Gq(_.ro,function(){Tj7(N,15E3)},S-15E3),L.presetPauseSchedulerId=_.Gq(_.ro,function(){afG(L,N)},S),inn(N,(0,_.GT)(),S))},afG=function(L,Z){if(L.JSC$23231_watchApi.isActive()){var N={dismissDialogEndpoint:{}};
var S={commandExecutorCommand:{commands:[N,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};N={buttonViewModel:{title:_.iB("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:N}}};S={buttonViewModel:{title:_.iB("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:S}}};var u={dialogHeaderViewModel:{headline:{content:_.iB("SLEEP_TIMER_ENDED_TITLE")}}},
T={basicContentViewModel:{paragraphs:[{text:{content:_.iB("SLEEP_TIMER_ENDED_TEXT")}}]}};N={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:u,content:T,footer:{panelFooterViewModel:{primaryButton:N,secondaryButton:S,shouldHideDivider:!0}}}}}}};_.GR().resolve(_.$s).resolveCommand(N,{form:{element:L}})}else OnG();pXw(L,!1);zCn(L,Z);Z.pauseVideo();_.Fx.getInstance().getState()===2&&Z.getPlayerState()===5&&(L.pauseAutonavPlayback=!0)},at=function(L,Z){pXw(L,!0);
zCn(L,Z);OnG()},zCn=function(L,Z){Edf(L,Z);
L.selectedOption="Off";L.videoId="";L.playlistId="";L.adjustmentsCount=0;var N;(N=L.sessionStorage)==null||N.remove("yt-sleep-timer");_.ro.cancelJob(SMY);Z.resetSleepTimerMenuSettings()},pXw=function(L,Z){Z={timer_length_adjustment_times_during_session:L.adjustmentsCount-1,
is_session_cancelled:Z};switch(L.selectedOption){case "Off":Z.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":Z.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":Z.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:Z.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",Z.option_duration_in_minutes=U7Y.get(L.selectedOption)/6E4}_.mS("sleepTimerSessionFinishEvent",Z)};
_.db.prototype.onPlayerStateChange=function(L,Z){L===1?NjG(Z,(0,_.GT)(),W0M(Z),this.selectedOption==="End of video"):L===0?(_.ro.cancelJob(ds),Z.setVideoTimeLeft(Znq(0,0))):L===2&&_.ro.cancelJob(ds);this.selectedOption==="End of video"?L===0?afG(this,Z):L===2&&tuM(Z):this.selectedOption!=="End of playlist"||qKn(this.playlistId)||(L===0?afG(this,Z):L===2&&tuM(Z))};
_.db.prototype.onSeekComplete=function(L){L.getPlayerState()===2&&NjG(L,(0,_.GT)(),W0M(L),this.selectedOption==="End of video",!0)};
_.db.prototype.onCueRangeEnter=function(L,Z){L==="sleep-timer-fade-audio"&&Tj7(Z,(Z.getDuration()-Z.getProgressState().current)*1E3)};
_.db.prototype.onCueRangeExit=function(L,Z){L==="sleep-timer-fade-audio"&&Z.getPlayerState()!==0&&tuM(Z,!0)};
var sMV=function(L,Z){Z.addCueRange("sleep-timer-fade-audio",Z.getDuration()-15,Z.getDuration());Z.addEventListener("onCueRangeEnter",function(N){L.onCueRangeEnter(N,Z)});
Z.addEventListener("onCueRangeExit",function(N){L.onCueRangeExit(N,Z)})},hC9=function(L,Z){Z.removeCueRange("sleep-timer-fade-audio");
Z.removeEventListener("onCueRangeEnter",function(N){L.onCueRangeEnter(N,Z)});
Z.removeEventListener("onCueRangeExit",function(N){L.onCueRangeExit(N,Z)})},Edf=function(L,Z){Hhn(L.selectedOption)?hC9(L,Z):(_.ro.cancelJob(L.presetPauseSchedulerId),_.ro.cancelJob(L.presetFadeSchedulerId),L.presetPauseSchedulerId=0,L.presetFadeSchedulerId=0);
tuM(Z,!0)},PNn=function(L,Z){Z.setLoop(!1);
Z.setLoopVideo(!1);Z.setLoopRange(null);(L=x$6(L.JSC$23231_watchApi))&&_.GR().resolve(_.mc).dispatch(_.Mr("playlistLoopStateEntity",L,{key:L,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.rQn=function(L){_.ag.call(this);var Z=this;this.JSC$23234_watchApi=L;m77(this);JQM(this);CN9(this);var N=this.JSC$23234_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.lQ("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.eZ.get("wide",void 0)==="1"&&_.Ie("wide","1",_.lQ("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){Z.JSC$23234_watchApi.unsubscribeByKey(N)});
L=L.getRoot();if(L.is==="ytd-watch-flexy"||L.is==="ytd-watch-grid")L.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.oRG();_.c("web_watch_log_theater_mode_cookie_state")&&_.eZ.get("wide","0")==="1"&&_.yo1("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.f(_.rQn,_.ag);var m77=function(L){var Z,N;_.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$23234_watchApi.playerApi,2);Z=S.yieldResult;N=function(u){QMn(L,!!u)};
Z.addEventListener("SIZE_CLICKED",N);L.addOnDisposeCallback(function(){Z.removeEventListener("SIZE_CLICKED",N)});
_.w7(S)})},JQM=function(L){L.JSC$23234_watchApi.registerActionHandler("yt-toggle-theater-mode",function(Z,N){QMn(L,Z,N===void 0?!0:N)});
L.addOnDisposeCallback(function(){L.JSC$23234_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.rQn.prototype.getState=function(){return _.cQ(_.Pv().getState())};
var QMn=function(L,Z,N){N=N===void 0?!0:N;var S,u,T,W=_.c("enable_player_resize_transition")&&!!L.JSC$23234_watchApi.getWatchNextResponse()&&!((S=L.JSC$23234_watchApi.getWatchNextResponse())==null?0:(u=S.contents)==null?0:(T=u.twoColumnWatchNextResults)==null?0:T.conversationBar);_.tDv(function(){_.Pv().dispatch(_.XK({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:Z}}));_.c("theater_mode_scroll_to_top_killswitch")||L.JSC$23234_watchApi.scrollWatchTo(0,!1);_.mg()&&_.c("external_fullscreen")&&_.Jd(document.documentElement);
CN9(L);N&&_.Ie("wide",Z?"1":"0",_.lQ("theater_mode_cookie_max_age_seconds",-1));_.XJ(L.JSC$23234_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);L.JSC$23234_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:Z});Z&&_.oRG()},{shouldWrap:W})},CN9=function(L){var Z;
_.b(function(N){if(N.nextAddress==1)return N.yield(L.JSC$23234_watchApi.playerApi,2);Z=N.yieldResult;Z.setSizeStyle(!0,L.getState());_.w7(N)})};var HHi=function(L){_.ag.call(this);var Z=this;this.playerApi=L;this.timeToPanelSyncKeyMap={};var N;if(L==null?0:(N=L.isReady)==null?0:N.call(L)){N=_.hK(_.GR().resolve(_.mc),function(u){return u.entities.timedMarkersListSyncEntity||{}},function(u,T){u=u===void 0?{}:u;
T=T===void 0?{}:T;for(var W=_.O(Object.keys(T)),V=W.next();!V.done;V=W.next())V=V.value,u[V]!==T[V]&&XXt(Z,T[V]);T=_.O(Object.keys(u));for(W=T.next();!W.done;W=T.next())W=W.value,V=u[W],Z.timeToPanelSyncKeyMap[W]&&AQf(Z,V)});
this.addOnDisposeCallback(N);var S=function(u){Z.onCueRangeEnter(u)};
L.addEventListener("onCueRangeEnter",S);this.addOnDisposeCallback(function(){var u;(u=L.removeEventListener)==null||u.call(L,"onCueRangeEnter",S)})}};
_.f(HHi,_.ag);
var AQf=function(L,Z){var N,S;if((N=L.playerApi)==null?0:(S=N.isReady)==null?0:S.call(N)){var u;if((N=Z==null?void 0:(u=Z.timedListData)==null?void 0:u.sections)&&Z!=null&&Z.key)for(u=_.O(N),N=u.next();!N.done;N=u.next())if(N=N.value,N.timedSyncDataList&&N.sectionId)for(S=0;S<N.timedSyncDataList.length;S++){var T=N.timedSyncDataList[S];T.syncItemId&&L.playerApi.addCueRange(N.sectionId+"_"+Z.key+"_"+T.syncItemId,Number(T.videoTimeMs)/1E3,S===N.timedSyncDataList.length-1?0x8000000000000:Number(N.timedSyncDataList[S+
1].videoTimeMs)/1E3)}}},XXt=function(L,Z){var N,S;
if((N=L.playerApi)==null?0:(S=N.isReady)==null?0:S.call(N)){var u;if((N=Z==null?void 0:(u=Z.timedListData)==null?void 0:u.sections)&&Z!=null&&Z.key)for(u=_.O(N),N=u.next();!N.done;N=u.next())if(N=N.value,N.timedSyncDataList&&N.sectionId){S=_.O(N.timedSyncDataList);for(var T=S.next();!T.done;T=S.next())T=T.value,T.syncItemId&&L.playerApi.removeCueRange(N.sectionId+"_"+Z.key+"_"+T.syncItemId)}}};
HHi.prototype.onCueRangeEnter=function(L){for(var Z=_.O(Object.keys(this.timeToPanelSyncKeyMap)),N=Z.next();!N.done;N=Z.next()){N=N.value;var S=_.O(L.split("_"+N+"_")),u=S.next().value;S=S.next().value;if(u&&S){L=_.GR().resolve(_.mc);Z=this.timeToPanelSyncKeyMap[N];var T=_.$Kt(L.getState(),Z);N=BdG(N,u,S);if(N===-1)break;N={activeSyncId:S,activeItemIndex:N,activeSectionInfo:{sectionIdentifier:u}};T?L.dispatch(_.vt("markersEngagementPanelSyncEntity",Z,N)):L.dispatch(_.Mr("markersEngagementPanelSyncEntity",
Z,Object.assign({},{key:Z},N)));break}}};
var BdG=function(L,Z,N){var S=_.GR().resolve(_.mc),u,T;L=(u=MUq(S.getState(),L))==null?void 0:(T=u.timedListData)==null?void 0:T.sections;if(!L)return-1;u=0;T=_.O(L);for(L=T.next();!L.done;L=T.next()){L=L.value;S=L.timedSyncDataList||[];if(L.sectionId===Z)return Z=S.findIndex(function(W){return W.syncItemId===N}),Z===-1?Z:u+Z;
u+=S.length}return-1};_.Lgn=function(L){_.ag.call(this);var Z=this;this.JSC$23247_watchApi=L;this.unresolvedCommands=[];this.JSC$23247_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(N){x7G(Z,N)});
this.addOnDisposeCallback(function(){Z.JSC$23247_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
qU9(this)};
_.f(_.Lgn,_.ag);var qU9=function(L){var Z;_.b(function(N){if(N.nextAddress==1)return N.yield(L.JSC$23247_watchApi.playerApi,2);Z=N.yieldResult;if(L.isDisposed())return N.return();L.timedSyncObserver=new HHi(Z);L.unresolvedCommands.length&&(L.unresolvedCommands.forEach(function(S){return x7G(L,S)}),L.unresolvedCommands=[]);
_.Ky(L,L.timedSyncObserver);_.w7(N)})},x7G=function(L,Z){if(L.timedSyncObserver){var N=_.n(Z,PT9);
if(N&&N.timedSyncEntityKey&&N.panelSyncEntityKey){L=L.timedSyncObserver;Z=N.timedSyncEntityKey;var S=N.panelSyncEntityKey;N=!!N.isEnabled;N=N===void 0?!0:N;var u=_.GR().resolve(_.mc);u=MUq(u.getState(),Z);N?L.timeToPanelSyncKeyMap[Z]||(L.timeToPanelSyncKeyMap[Z]=S,AQf(L,u)):(delete L.timeToPanelSyncKeyMap[Z],XXt(L,u))}}else L.unresolvedCommands.push(Z)};var Zvt=_.p(function(L){var Z=L.data,N=L.maybeLogSmartSkipClientData,S=null,u=null,T=_.c("web_enable_auto_focus_for_timely_action_button"),W=function(){S=document.activeElement},V=function(){Z().smartSkipMetadata&&(S=document.activeElement,_.Xln(function(){return u}))},M=function(D){if(Z().smartSkipMetadata&&(!D||D.key!=="Enter")){S&&S.isConnected&&(_.Xln(function(){return S}),S=null);
var l;(l=u)==null||l.blur()}};
L=_.Z9(function(){N==null||N(!0,Z());return!1});
var G=_.P9(_.cT(function(){return Z().rendererContext},{onTap:function(D,l){l({disableClickTracking:!0})}}),_.$b({visibilityCallback:function(D){if(T)D?u&&Z().smartSkipMetadata&&(V(),document.addEventListener("focusin",W)):(document.removeEventListener("focusin",W),M());
else if(D){D=_.ob(Z().rendererContext);var l=Number(Z().maxVisibleDurationMilliseconds),v,R=(v=_.n(Z().rendererContext,_.Oi))==null?void 0:v.label;D&&l&&R&&(v={label:R,command:D,durationMs:l},_.GR().resolve(_.LR).enqueue(v))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.zp(function(){if(T){var D;if((u=(D=G.value)==null?void 0:D.querySelector("button"))&&Z().smartSkipMetadata){var l;(l=G.value)==null||l.addEventListener("keydown",M)}}});
_.zs(function(){T&&(u&&Z().smartSkipMetadata&&u.removeEventListener("keydown",M),document.removeEventListener("focusin",W),M())});
return _.g("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:G,"on:click":L},_.g(_.bj,{data:function(){return Z().content}},{buttonViewModel:_.$X}))},"Vn");var N0Y=_.p(function(L){var Z=L.data,N=L.playerApi,S=_.GR().resolve(_.Wty);L=_.O(_.i4(function(){Z()}));
var u=L.next().value,T=L.next().value,W=function(){return Mu7(Z(),u())},V=function(G,D){var l,v,R=(l=_.n(D==null?void 0:D.rendererContext,_.OR))==null?void 0:(v=l.loggingDirectives)==null?void 0:v.trackingParams;
if((D=D==null?void 0:D.smartSkipMetadata)&&D.loggingData&&(v=D.loggingData,D=v.algorithmId,l=v.startMilliseconds,v=v.endMilliseconds,D&&l!==void 0&&v!==void 0)){var K,U;G={smartSkipData:Object.assign({},{versionName:D,startMediaTimeMs:l,endMediaTimeMs:v},G&&{userInteractionMediaTimeMs:(Math.floor(((K=_.CV())==null?void 0:(U=K.getPlayer())==null?void 0:U.getCurrentTime())||0)*1E3).toString()})};K=_.RH();var d;R&&(d=_.Mg(R));K&&d&&_.ET(K,d,G)}},M=function(G,D){var l=Mu7(Z(),G);
if(l){var v=_.n(l,bnV),R;if(R=D)R=N(),l=_.n(l,bnV),R=l!=null&&l.smartSkipMetadata?!(R==null?0:R.isSameMarkerTypeVisible((l==null?void 0:l.smartSkipMetadata.markerKey)||"")):!0;if(R){var K,U;(v==null?0:(K=v.smartSkipMetadata)==null?0:(U=K.loggingData)==null?0:U.isCounterfactual)||(V(!1,v),T(G))}else D||u()!==G||T(void 0)}};
_.ph(function(){var G=Z().timelyActions;if(G){G=_.O(G);for(var D=G.next();!D.done;D=G.next()){D=_.n(D.value,bnV);var l=void 0;(l=D)!=null&&l.cueRangeId&&S.timelyActionsMap.set(D.cueRangeId,M)}_.zs(function(){S.timelyActionsMap.clear()})}},"PSaw4c");
return _.g("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.g(_.bj,{data:W},{timelyActionViewModel:function(G){return _.g(Zvt,{data:G.data,maybeLogSmartSkipClientData:function(){V(!0,_.n(W(),bnV))}})}}))},"Xn");_.ivM=function(L){_.ag.call(this);this.JSC$23259_watchApi=L;L=_.O(_.nh({},void 0,"UN7k5e"));this.timelyActionsOverlay=L.next().value;this.setTimelyActionsOverlay=L.next().value;SoY(this)};
_.f(_.ivM,_.ag);var SoY=function(L){var Z,N,S,u;_.b(function(T){if(T.nextAddress==1)return uJw(L),T0n(L),L.timelyActionsContainer=document.createElement("div"),T.yield(L.JSC$23259_watchApi.playerApi,2);Z=T.yieldResult;(S=(N=Z).insertTimelyActionUi)==null||S.call(N,L.timelyActionsContainer);u=_.pn(L.timelyActionsContainer,function(){return _.g(N0Y,{data:L.timelyActionsOverlay,playerApi:Z})},"Yn");
L.addOnDisposeCallback(u);_.w7(T)})},T0n=function(L){var Z=L.JSC$23259_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){uJw(L)});
L.addOnDisposeCallback(function(){L.JSC$23259_watchApi.unsubscribeByKey(Z)})},uJw=function(L){var Z=L.JSC$23259_watchApi.getWatchNextResponse();
if(Z){var N,S;if(Z=_.n((N=Z.playerOverlays)==null?void 0:(S=N.playerOverlayRenderer)==null?void 0:S.timelyActionsOverlayViewModel,p8n)){var u;(u=L.setTimelyActionsOverlay)==null||u.call(L,Z)}}};_.Ov8=function(L){_.ag.call(this);this.JSC$23263_watchApi=L;t9t(this)};
_.f(_.Ov8,_.ag);var t9t=function(L){var Z,N;_.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$23263_watchApi.playerApi,2);Z=S.yieldResult;N=function(u){_.qd.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.n(u,_.QmM)},popupType:"TOAST"}})};
Z.addEventListener("onYtShowToast",N);L.addOnDisposeCallback(function(){Z.removeEventListener("onYtShowToast",N)});
_.w7(S)})};var WgV,M9i,D26,V9f,bv8,$2f,GoM,Fgi,lF8,oP8;WgV=!1;_.gP9=function(L){_.ag.call(this);this.JSC$23266_watchApi=L;this.fullscreen=this.theater=!1;V9f(this);bv8(this);M9i(this)};
_.f(_.gP9,_.ag);M9i=function(L){var Z,N,S;_.b(function(u){if(u.nextAddress==1)return u.yield(L.JSC$23266_watchApi.playerApi,2);Z=u.yieldResult;if(L.isDisposed())return u.return();N=L.JSC$23266_watchApi.getElement("CINEMATICS");if(!N)return u.return();L.JSC$23266_cinematicController=new _.R4(N,Z);_.Ky(L,L.JSC$23266_cinematicController);_.FmY(L.JSC$23266_cinematicController);GoM(L,_.B8L());S=L.JSC$23266_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(T){Fgi(L,T)});
L.addOnDisposeCallback(function(){L.JSC$23266_watchApi.unsubscribeByKey(S)});
$2f(L);Fgi(L,L.JSC$23266_cinematicController.isAllowed());D26(L);lF8(L);_.w7(u)})};
D26=function(L){L.fullscreen=_.nV(_.Pv().getState());L.theater=_.cQ(_.Pv().getState());_.vP8(L,L.fullscreen,L.theater);var Z=_.hK(_.Pv(),_.nV,function(S){L.fullscreen=S;_.vP8(L,L.fullscreen,L.theater)}),N=_.hK(_.Pv(),_.cQ,function(S){L.theater=S;
_.vP8(L,L.fullscreen,L.theater)});
L.addOnDisposeCallback(Z);L.addOnDisposeCallback(N)};
V9f=function(L){var Z=L.JSC$23266_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){$2f(L)});
L.addOnDisposeCallback(function(){L.JSC$23266_watchApi.unsubscribeByKey(Z)})};
bv8=function(L){var Z,N;_.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$23266_watchApi.playerApi,2);Z=S.yieldResult;N=function(u){GoM(L,u)};
Z.addEventListener("cinematicSettingsToggleChange",N);L.addOnDisposeCallback(function(){Z.removeEventListener("cinematicSettingsToggleChange",N)});
_.w7(S)})};
$2f=function(L){var Z=L.JSC$23266_watchApi.getWatchNextResponse(),N;Z=_.n(Z==null?void 0:(N=Z.pageVisualEffects)==null?void 0:N[0],_.NE);var S;(S=L.JSC$23266_cinematicController)==null||_.DGY(S,Z)};
GoM=function(L,Z){var N;(N=L.JSC$23266_cinematicController)==null||_.$GM(N,Z);oP8(L)};
Fgi=function(L,Z){var N;_.b(function(S){if(S.nextAddress==1)return _.c("kevlar_watch_cinematics_invisible")&&(Z=!1),S.yield(L.JSC$23266_watchApi.playerApi,2);N=S.yieldResult;N.updateCinematicSettings(Z);oP8(L);_.w7(S)})};
lF8=function(L){var Z=_.tq();if(_.c("kevlar_measure_ambient_mode_idle")&&!Z.getFlag(192)&&!WgV){WgV=!0;var N=_.sI(_.ro,function(){_.GR().resolve(_.a85).start(1E4)},5E3);
L.addOnDisposeCallback(function(){_.ro.cancelJob(N);_.GR().resolve(_.a85).stop()})}};
_.vP8=function(L,Z,N){L.fullscreen=Z;L.theater=N;var S;(S=L.JSC$23266_cinematicController)==null||S.setFullscreen(L.fullscreen,L.theater);if(_.c("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(L.theater||L.fullscreen){var u;(u=L.JSC$23266_cinematicController)==null||_.lGn(u)}else if((L=L.JSC$23266_cinematicController)!=null){var T;(T=L.currentCinematicEffect)==null||T.pause()}};
oP8=function(L){if(_.c("web_cinematic_theater_mode")||_.c("web_cinematic_fullscreen")){var Z;L.JSC$23266_watchApi.getRoot().toggleCinematicsActive(!((Z=L.JSC$23266_cinematicController)==null||!Z.isEnabled()))}};_.Kg9=function(L){_.ag.call(this);var Z=this;this.JSC$23269_watchApi=L;this.commentsReady=!1;this.setCommentsJobId=0;L=_.hK(_.Pv(),_.e1,function(){Rb9(Z)});
this.addOnDisposeCallback(L);var N=this.JSC$23269_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){cd9(Z)}),S=this.JSC$23269_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){cd9(Z)});
this.addOnDisposeCallback(function(){Z.JSC$23269_watchApi.unsubscribeByKey(N);Z.JSC$23269_watchApi.unsubscribeByKey(S)});
var u=function(){_.c("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&nPn(Z,"false")};
this.JSC$23269_watchApi.getRoot().addEventListener("yt-page-data-will-update",u);this.addOnDisposeCallback(function(){Z.JSC$23269_watchApi.getRoot().removeEventListener("yt-page-data-will-update",u)});
cd9(this)};
_.f(_.Kg9,_.ag);var cd9=function(L){L.commentsReady=!1;_.ro.cancelJob(L.setCommentsJobId);L.setCommentsJobId=_.sI(_.ro,function(){Rb9(L)},1E3)},Rb9=function(L){if(!L.commentsReady){_.Rq("cmi");
_.ro.cancelJob(L.setCommentsJobId);var Z,N,S,u,T=(Z=L.JSC$23269_watchApi.getWatchNextResponse())==null?void 0:(N=Z.contents)==null?void 0:(S=N.twoColumnWatchNextResults)==null?void 0:(u=S.results)==null?void 0:u.results.contents;Z=void 0;if(T&&T.length)for(T=_.O(T),N=T.next();!N.done;N=T.next())if(N=N.value,u=S=void 0,((S=N)==null?void 0:(u=S.itemSectionRenderer)==null?void 0:u.sectionIdentifier)==="comment-item-section"){_.c("web_watch_provide_undefined_comments")?Z=N.itemSectionRenderer:L.JSC$23269_watchApi.provideRenderingData("COMMENTS",
N.itemSectionRenderer);nPn(L,"true");break}_.c("web_watch_provide_undefined_comments")&&L.JSC$23269_watchApi.provideRenderingData("COMMENTS",Z);L.commentsReady=!0;L.JSC$23269_watchApi.dispatchEvent("yt-watch-comments-ready")}},nPn=function(L,Z){var N;
(N=L.JSC$23269_watchApi.getElement("COMMENTS"))==null||N.setAttribute("canScheduleJobs",Z)};_.U2q=function(L){_.ag.call(this);var Z=this;this.JSC$23272_watchApi=L;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.c("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.c("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.c("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.lQ("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)fFq(this);
else{var N=this.JSC$23272_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){kow(Z);hm(Z)}),S=this.JSC$23272_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){sD(Z);
hm(Z)});
this.JSC$23272_watchApi.getRoot().is==="ytd-watch-grid"&&_.c("swatcheroo_pbs_load_grid")&&(ydi(this),w2V(this));this.addOnDisposeCallback(function(){Z.JSC$23272_watchApi.unsubscribeByKey(N);Z.JSC$23272_watchApi.unsubscribeByKey(S);_.ro.cancelJob(Z.provideRichGridJobId)});
kow(this);sD(this)}};
_.f(_.U2q,_.ag);var fFq=function(L){var Z=L.JSC$23272_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){L.providePlayerJobId=_.SW(_.ro,function(){kow(L);hm(L)},L.provideAllDataDelayMs)}),N=L.JSC$23272_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){L.provideWatchNextJobId=_.SW(_.ro,function(){sD(L);
hm(L)},L.provideAllDataDelayMs)}),S=L.JSC$23272_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){L.provideWatchNextJobId=_.SW(_.ro,function(){sD(L);
hm(L)},L.provideAllDataDelayMs)});
L.JSC$23272_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.sI(_.ro,function(){kow(L);sD(L);hm(L)},100)});
L.JSC$23272_watchApi.addPageDisposeJob(function(){_.ro.cancelJob(L.provideWatchNextJobId);_.ro.cancelJob(L.providePlayerJobId)});
L.addOnDisposeCallback(function(){L.JSC$23272_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");L.JSC$23272_watchApi.unsubscribeByKey(Z);L.JSC$23272_watchApi.unsubscribeByKey(N);L.JSC$23272_watchApi.unsubscribeByKey(S);_.ro.cancelJob(L.providePlayerJobId);_.ro.cancelJob(L.provideWatchNextJobId)});
kow(L);sD(L)},kow=function(L){var Z=L.JSC$23272_watchApi.getPlayerResponse(),N,S,u=(S=Z==null?void 0:(N=Z.playabilityStatus)==null?void 0:N.messageRenderers)!=null?S:[],T,W;
Z=(W=Z==null?void 0:(T=Z.playabilityStatus)==null?void 0:T.messages)!=null?W:[];T=_.O(Z);for(W=T.next();!W.done;W=T.next())u.push({alertRenderer:{text:_.s9(W.value),type:"WARNING"}});L.JSC$23272_watchApi.provideRenderingData("ALERTS",u)},sD=function(L){var Z=[],N,S,u,T=L.JSC$23272_watchApi.getWatchNextResponse(),W,V,M,G,D=T==null?void 0:(W=T.contents)==null?void 0:(V=W.twoColumnWatchNextResults)==null?void 0:(M=V.results)==null?void 0:(G=M.results)==null?void 0:G.contents;
if(D)for(W=_.O(D),V=W.next();!V.done;V=W.next())if(V=V.value,V.videoPrimaryInfoRenderer)var l=V;else if(V.videoSecondaryInfoRenderer){var v=V;G=M=void 0;V=Object.assign({},(M=V.videoSecondaryInfoRenderer)==null?void 0:(G=M.metadataRowContainer)==null?void 0:G.metadataRowContainerRenderer);if(V.rows&&V.collapsedItemCount!==void 0){V.rows=V.rows.slice(0,V.collapsedItemCount).filter(function(iq){return!!iq.richMetadataRowRenderer});
V.collapsedItemCount=V.rows.length;var R={metadataRowContainerRenderer:V}}}else if(V.merchandiseShelfRenderer)var K=V;else if(V.ticketShelfRenderer)var U=V;else if(V.expandableMetadataRenderer)var d=V;else if(V.itemSectionRenderer)if(M=V.itemSectionRenderer.contents,G=void 0,L.directlyProvideComments&&((G=V.itemSectionRenderer)==null?void 0:G.sectionIdentifier)==="comment-item-section")_.Rq("cmi"),L.JSC$23272_watchApi.provideRenderingData("COMMENTS",V.itemSectionRenderer);else if(M)for(V=_.O(M),M=
V.next();!M.done;M=V.next())if(M=M.value,M.commentsEntryPointHeaderRenderer)var h=M;else if(M.clarificationRenderer||M.infoPanelContainerRenderer||M.infoPanelContentRenderer||M.emergencyOneboxRenderer){Z.push(M);var E=E||!!v}else M.limitedStateMessageRenderer?S=M:M.videoMetadataCarouselViewModel&&(u=M);if(_.c("web_watch_merch_in_sd_when_ticket_shelf_present")&&K&&U){var A=K;K=void 0}if(L.provideWatchNextSecondaryResults){var J,C,X;L.JSC$23272_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
T==null?void 0:(J=T.contents)==null?void 0:(C=J.twoColumnWatchNextResults)==null?void 0:(X=C.secondaryResults)==null?void 0:X.secondaryResults)}if(L.JSC$23272_watchApi.getRoot().is==="ytd-watch-grid"){var L1,Fw;L.JSC$23272_watchApi.provideRenderingData("LIVE_CHAT",T==null?void 0:(L1=T.contents)==null?void 0:(Fw=L1.twoColumnWatchNextResults)==null?void 0:Fw.conversationBar)}var GB,Yt,lH,RF;(J=T==null?void 0:(GB=T.contents)==null?void 0:(Yt=GB.twoColumnWatchNextResults)==null?void 0:(lH=Yt.secondaryResults)==
null?void 0:(RF=lH.secondaryResults)==null?void 0:RF.offerModule)&&(J.donationShelfRenderer||J.donationUnavailableRenderer)&&L.JSC$23272_watchApi.getRoot().is!=="ytd-watch-grid"&&(N=J);GB=L.JSC$23272_watchApi.getPlayerResponse();if(!GB||!_.jI_(GB.playabilityStatus,T==null?void 0:T.playerOverlays)){var jf;if(T==null?0:(jf=T.contents)==null?0:jf.singleColumnWatchNextResults){var f1,n0;var r5=T==null?void 0:(f1=T.contents.singleColumnWatchNextResults.results)==null?void 0:(n0=f1.results)==null?void 0:
n0.contents}else{var yq,ZN,GV,IO;jf=!!(D==null?0:(yq=D[0])==null?0:(ZN=yq.itemSectionRenderer)==null?0:(GV=ZN.contents)==null?0:(IO=GV[0])==null?0:IO.backgroundPromoRenderer);var d5,n8;yq=!!(T==null?0:(d5=T.contents)==null?0:(n8=d5.twoColumnWatchNextResults)==null?0:n8.secondaryResults);jf&&!yq&&(r5=D)}}D=Z[0];d5=Z[1];E&&Z.length===1&&(d5=D,D=void 0);L.JSC$23272_watchApi.provideRenderingData("PRIMARY_INFO",l);L.JSC$23272_watchApi.provideRenderingData("SECONDARY_INFO",v);L.JSC$23272_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
h);L.JSC$23272_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",u);L.JSC$23272_watchApi.provideRenderingData("CLARIFICATION",D);L.JSC$23272_watchApi.provideRenderingData("RICH_METADATA",R);L.JSC$23272_watchApi.provideRenderingData("MERCH_SHELF",K);_.c("web_watch_merch_in_sd_when_ticket_shelf_present")&&L.JSC$23272_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",A);L.JSC$23272_watchApi.provideRenderingData("TICKET_SHELF",U);L.JSC$23272_watchApi.provideRenderingData("LIMITED_STATE",S);L.JSC$23272_watchApi.getRoot().is!==
"ytd-watch-grid"&&L.JSC$23272_watchApi.provideRenderingData("DONATION_SHELF",N);L.JSC$23272_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",r5);L.JSC$23272_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",d5);L.JSC$23272_watchApi.provideRenderingData("EXPANDABLE_METADATA",d);if(L.swatcherooProvideAllDataOnScheduledJob){var lq,tx,ut,oO,uq,RO;l=T==null?void 0:(lq=T.contents)==null?void 0:(tx=lq.twoColumnWatchNextResults)==null?void 0:(ut=tx.secondaryResults)==null?void 0:(oO=ut.secondaryResults)==
null?void 0:(uq=oO.results)==null?void 0:(RO=uq[0])==null?void 0:RO.richGridRenderer;L.JSC$23272_watchApi.provideRenderingData("RICH_GRID_RENDERER",l)}};
_.U2q.prototype.hasCompanionAds=function(L){var Z,N;return(N=L==null?void 0:(Z=L.adPlacements)==null?void 0:Z.some(function(S){var u,T,W,V;return(S==null?void 0:(u=S.adPlacementRenderer)==null?void 0:(T=u.renderer)==null?void 0:T.actionCompanionAdRenderer)||(S==null?void 0:(W=S.adPlacementRenderer)==null?void 0:(V=W.renderer)==null?void 0:V.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?N:!1};
var hm=function(L){if(!_.c("swaterdoo_ps_wn_handle_ks")){L.swatcherooProvideAllDataOnScheduledJob||w2V(L,3E3);var Z=L.JSC$23272_watchApi.getPlayerResponse(),N,S,u,T,W,V=(N=L.JSC$23272_watchApi.getWatchNextResponse())==null?void 0:(S=N.contents)==null?void 0:(u=S.twoColumnWatchNextResults)==null?void 0:(T=u.secondaryResults)==null?void 0:(W=T.secondaryResults)==null?void 0:W.offerModule;Z=L.hasCompanionAds(Z);var M,G;N=(V==null?void 0:(M=V.tvfilmOfferModuleRenderer)==null?void 0:M.clientShouldSuppressIfCompanionAdDisplayed)||
(V==null?void 0:(G=V.unlimitedOfferModuleRenderer)==null?void 0:G.suppressIfCompanionAds);M=Z&&N;L.JSC$23272_watchApi.getRoot().is==="ytd-watch-grid"&&L.JSC$23272_watchApi.provideRenderingData("OFFER_MODULE",M?void 0:V)}},w2V=function(L,Z){_.c("swatcheroo_pbs_load_grid")&&(L.provideRichGridJobId&&_.ro.cancelJob(L.provideRichGridJobId),L.provideRichGridJobId=_.SW(_.ro,function(){L.provideRichGridJobId=0;
var N,S,u,T,W,V,M,G=(N=L.JSC$23272_watchApi.getWatchNextResponse())==null?void 0:(S=N.contents)==null?void 0:(u=S.twoColumnWatchNextResults)==null?void 0:(T=u.secondaryResults)==null?void 0:(W=T.secondaryResults)==null?void 0:(V=W.results)==null?void 0:(M=V[0])==null?void 0:M.richGridRenderer;G&&L.JSC$23272_watchApi.provideRenderingData("RICH_GRID_RENDERER",G)},Z))},ydi=function(L){var Z,N;
_.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$23272_watchApi.playerApi,2);Z=S.yieldResult;N=function(){L.onPlaybackStart()};
Z.addEventListener("onPlaybackStartExternal",N);L.addOnDisposeCallback(function(){Z.removeEventListener("onPlaybackStartExternal",N)});
_.w7(S)})};
_.U2q.prototype.onPlaybackStart=function(){w2V(this)};_.ebw=function(L){_.ag.call(this);var Z=this;this.JSC$23285_watchApi=L;L.playerApi.then(function(N){Z.player=N});
this.gestures=new _.Vt(this.JSC$23285_watchApi.getRoot(),L.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.$$V(_.Pv().getState())&&_.e1(_.Pv().getState())<=0)if(_.nV(_.Pv().getState())){var N;(N=Z.player)==null||N.toggleFullscreen()}else _.XJ(Z.JSC$23285_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Yo7(this)};
_.f(_.ebw,_.ag);var Yo7=function(L){var Z=_.hK(_.Pv(),_.nV,function(N){L.onFullscreenChanged(N)});
L.addOnDisposeCallback(Z);Z=_.hK(_.Pv(),_.e1,function(N){L.gestures&&(N>0?L.gestures.detach():L.gestures.attach())});
L.addOnDisposeCallback(Z)};
_.ebw.prototype.onFullscreenChanged=function(L){this.gestures&&this.gestures.update(L)};_.d2t=function(L){_.ag.call(this);var Z=this;this.JSC$23288_watchApi=L;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(L.subscribeToActiveChanged(function(N){Z.onActiveChanged(N)}));
IFn(this)};
_.f(_.d2t,_.ag);var aFi=function(L){if(_.c("swatcheroo_page_dispose_all_watch_data"))L.pageDisposalDataTypes=Object.values(Bxn).filter(function(N){return N!=="PLAYLIST"});
else if(_.c("swatcheroo_page_dispose_rich_grid")){var Z;(Z=L.pageDisposalDataTypes)==null||Z.push("RICH_GRID_RENDERER")}},IFn=function(L){_.c("swatcheroo_enable_ghost_cards")&&(aFi(L),L.JSC$23288_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.ro.cancelJob(L.clearDataJobId);
L.clearDataJobId=0}),L.runPageDisposeJob=function(){var Z=_.GR().resolve(_.mR).getDestinationPageType()==="watch";
L.clearDataJobId=_.SW(_.ro,L.runClearDataJob,Z?0:_.lQ("web_watch_delay_page_dispose_ms",1E4))},L.runClearDataJob=function(){hb8(L)},L.runOnYtNavigateAwayFinish=function(){L.clearDataJobId&&(_.ro.cancelJob(L.clearDataJobId),L.clearDataJobId=0,hb8(L))},document.addEventListener("yt-navigate-finish",L.runOnYtNavigateAwayFinish),L.JSC$23288_watchApi.addPageDisposeJob(L.runPageDisposeJob),L.addOnDisposeCallback(function(){L.JSC$23288_watchApi.removePageDisposeJob(L.runPageDisposeJob);
L.JSC$23288_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",L.runOnYtNavigateAwayFinish)}))},hb8=function(L){L.pageDisposalDataTypes.forEach(function(Z){L.JSC$23288_watchApi.provideRenderingData(Z,void 0)});
L.clearDataJobId=0};
_.d2t.prototype.onActiveChanged=function(L){L&&((L=document.querySelector("#watch-page-skeleton"))&&_.U_(L),sHt(this),document.body.removeAttribute("no-y-overflow"),_.Ah("IS_SHELL_LOAD")&&_.gVt())};
var sHt=function(L){_.b(function(Z){if(Z.nextAddress==1)return Z.yield(L.JSC$23288_watchApi.playerApi,2);_.Ui();_.w7(Z)})};var jHf;jHf=_.c("kevlar_watch_while_counterfactual")?0:.25;_.zbw=function(L){_.ag.call(this);this.JSC$23291_watchApi=L;this.JSC$23291_watchWhileEnabled=_.c("kevlar_watch_while_v2");this.pipEnabled=_.c("web_enable_pip_on_miniplayer");EP7(this);Pcw(this);p28(this)};
_.f(_.zbw,_.ag);var EP7=function(L){L.JSC$23291_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){m2q(L)});
L.addOnDisposeCallback(function(){L.JSC$23291_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Pcw=function(L){var Z,N;
_.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$23291_watchApi.playerApi,2);Z=S.yieldResult;N=function(){m2q(L)};
Z.addEventListener("onCollapseMiniplayer",N);L.addOnDisposeCallback(function(){Z.removeEventListener("onCollapseMiniplayer",N)});
_.w7(S)})},p28=function(L){var Z=L.JSC$23291_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&Z&&L.JSC$23291_watchWhileEnabled&&(L.playerIntersectionObserver=new IntersectionObserver(function(N){L.handleIntersect(N)},{threshold:[jHf]}),L.playerIntersectionObserver.observe(Z),L.addOnDisposeCallback(function(){var N;
(N=L.playerIntersectionObserver)==null||N.disconnect()}))},m2q=function(L){var Z,N,S;
_.b(function(u){if(u.nextAddress==1){Z=_.GR().resolve(_.mR);N=Z.data;S=_.cV(N.response,!1,N.playerResponse);_.dM().miniplayerButtonActivation=!0;if(L.pipEnabled)return _.dM().watchPipActivation=!0,u.jumpTo(2);_.GR().resolve(_.yk).collapse();return u.yield(_.dM().navigationFinishPromise,2)}if(u.nextAddress!=4)return _.dM().currentEndpoint=S.watchEndpoint||null,u.yield(_.GR().resolve(_.yk).activate(L.JSC$23291_watchApi.getElement("PLAYER"),S,N),4);_.dM().userActivation=!0;_.w7(u)})};
_.zbw.prototype.handleIntersect=function(L){Jdi(this,L[L.length-1])};
var Jdi=function(L,Z){L.watchWhileJobId&&_.ro.cancelJob(L.watchWhileJobId);L.watchWhileJobId=_.ro.addLowPriorityJob(function(){var N,S;return _.b(function(u){if(u.nextAddress==1)return L.watchWhileJobId=void 0,N=_.GR().resolve(_.yk),Z.intersectionRatio>jHf?N.isMiniplayerActive()?u.yield(N.deactivate(),0):u.jumpTo(0):(S=!N.isMiniplayerActive())?u.yield(Cct(L),5):u.jumpTo(4);u.nextAddress!=4&&(S=u.yieldResult);if(!S)return u.jumpTo(0);_.dM().watchWhileActivation=!0;return u.yield(rdw(L),0)})},100)},
Cct=function(L){return _.b(function(Z){return Z.nextAddress==1?_.c("kevlar_watch_while_paused")?Z.return(!0):Z.yield(L.isPlayerPlaying(),2):Z.return(Z.yieldResult)})};
_.zbw.prototype.isPlayerPlaying=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1)return N.yield(L.JSC$23291_watchApi.playerApi,2);Z=N.yieldResult;return N.return(Z.getPlayerStateObject().isPlaying)})};
var rdw=function(L){var Z,N;return _.b(function(S){Z=_.GR().resolve(_.mR).data;N=_.cV(Z.response,!1,Z.playerResponse);_.dM().currentEndpoint=N.watchEndpoint||null;return S.yield(_.GR().resolve(_.yk).activate(L.JSC$23291_watchApi.getElement("PLAYER"),N,Z),0)})};_.Adn=function(L){_.ag.call(this);this.JSC$23295_watchApi=L;QHt(this);X2w(this)};
_.f(_.Adn,_.ag);var X2w=function(L){var Z,N;_.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$23295_watchApi.playerApi,2);Z=S.yieldResult;N=function(u){var T;u.sessionData&&u.sessionData.itct&&(T=u.sessionData.itct);var W=u.watchEndpoint;if(W&&u.sessionData&&u.sessionData.autonav)W=_.pJB(W,T);else{var V;W=_.Jq(u.videoId,(V=u.listId)!=null?V:void 0,T)}T={endpoint:W};u.sessionData&&(T.tempData=u.sessionData);L.JSC$23295_watchApi.dispatchEvent("yt-navigate",T)};
Z.addEventListener("onPlayVideo",N);L.addOnDisposeCallback(function(){Z.removeEventListener("onPlayVideo",N)});
_.w7(S)})},QHt=function(L){var Z=function(N){L.onYtNavigate(N)};
L.JSC$23295_watchApi.getRoot().addEventListener("yt-navigate",Z);L.addOnDisposeCallback(function(){L.JSC$23295_watchApi.getRoot().removeEventListener("yt-navigate",Z)})};
_.Adn.prototype.onYtNavigate=function(L){var Z=this,N,S,u,T,W,V,M,G,D;return _.b(function(l){if(l.nextAddress==1){if(!((N=L.detail)==null?0:(S=N.endpoint)==null?0:S.watchEndpoint))return l.return();u=L.detail.endpoint.watchEndpoint;T=Z.JSC$23295_watchApi.getWatchNextResponse();V=_.n((W=T)==null?void 0:W.currentVideoEndpoint,_.so);if(!V)return l.return();if(u.videoId!==V.videoId||u.playlistId&&u.playlistId!==V.playlistId||typeof u.startTimeSeconds!=="number")return l.jumpTo(0);L.stopPropagation();
(M=_.c("kevlar_watch_while_v2")&&!_.c("kevlar_watch_while_counterfactual"))&&_.GR().resolve(_.yk).isMiniplayerActive()||Z.JSC$23295_watchApi.scrollWatchTo(0,!0);return l.yield(Z.JSC$23295_watchApi.playerApi,3)}G=l.yieldResult;D=u.startTimeSeconds;G.seekTo(D,void 0,void 0,void 0,84);G.wakeUpControls();D<G.getDuration()&&G.playVideo();_.w7(l)})};_.B08=function(L){_.ag.call(this);var Z=this;this.JSC$23298_watchApi=L;var N=this.JSC$23298_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){HvM(Z)});
this.addOnDisposeCallback(function(){Z.JSC$23298_watchApi.unsubscribeByKey(N)});
HvM(this);_.c("enable_ai_companion")&&(L=this.JSC$23298_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.Wl8(_.GR().resolve(_.zz),L,"WATCH")};
_.f(_.B08,_.ag);var HvM=function(L){var Z=L.JSC$23298_watchApi.getWatchNextResponse();if(Z){var N,S=[].concat(_.Pd((N=Z==null?void 0:Z.engagementPanels)!=null?N:[]));S.unshift.apply(S,_.Pd(x2n(Z)));L.JSC$23298_watchApi.provideRenderingData("ENGAGEMENT_PANELS",S)}},qoV=function(L){var Z,N,S,u=(Z=L.engagementPanels)==null?void 0:(N=Z.find(function(R){var K;
return((K=R.engagementPanelSectionListRenderer)==null?void 0:K.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(S=N.engagementPanelSectionListRenderer.content)==null?void 0:S.structuredDescriptionContentRenderer,T;
if(_.n(u==null?void 0:(T=u.items)==null?void 0:T.find(function(R){return!!_.n(R,u26)}),u26))return!0;
var W,V,M,G;if(L=(((W=L.contents)==null?void 0:(V=W.twoColumnWatchNextResults)==null?void 0:(M=V.results)==null?void 0:(G=M.results)==null?void 0:G.contents)||[]).find(function(R){return R.videoPrimaryInfoRenderer})){var D,l,v;
return(((D=L.videoPrimaryInfoRenderer)==null?void 0:(l=D.videoActions)==null?void 0:(v=l.menuRenderer)==null?void 0:v.flexibleItems)||[]).some(function(R){R=_.n(R,_.xN0);if(!R)return!1;var K,U;R=(K=R.topLevelButton)==null?void 0:(U=K.buttonViewModel)==null?void 0:U.onTap;if(!R)return!1;K=_.KY(R);if(!K)return!1;var d;return((d=_.n(K,_.oj))==null?void 0:d.panelIdentifier)==="PAyouchat"})}return!1},x2n=function(L){var Z=[];
if(!_.c("web_watch_inject_placeholder_fantasy_panel_killswitch")){var N,S,u,T=(N=L.engagementPanels)==null?void 0:(S=N.find(function(V){var M;return((M=V.engagementPanelSectionListRenderer)==null?void 0:M.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(u=S.engagementPanelSectionListRenderer.content)==null?void 0:u.structuredDescriptionContentRenderer,W;
_.n(T==null?void 0:(W=T.items)==null?void 0:W.find(function(V){return!!_.n(V,a8V)}),a8V)&&(N=_.l5f("PAsports_fantasy"),N.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Z.push(N))}qoV(L)&&(L=_.l5f("PAyouchat"),L.engagementPanelSectionListRenderer.targetId="PAyouchat",L.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Z.push(L));
return Z};_.ZqY=function(L){_.ag.call(this);this.JSC$23301_watchApi=L;L2M(this)};
_.f(_.ZqY,_.ag);var L2M=function(L){L.JSC$23301_watchApi.registerActionHandler("yt-loop-command",function(Z){NRM(L,Z)});
L.JSC$23301_watchApi.registerActionHandler("yt-repeat-chapter-command",function(Z){STw(L,Z)});
L.addOnDisposeCallback(function(){L.JSC$23301_watchApi.unregisterActionHandler("yt-loop-command");L.JSC$23301_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},NRM=function(L,Z){var N;
_.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$23301_watchApi.playerApi,2);N=S.yieldResult;_.n(Z,slV).loop?(N.setLoopRange({startTimeMs:Number(_.n(Z,slV).startTimeMs),endTimeMs:Number(_.n(Z,slV).endTimeMs),postId:_.n(Z,slV).postId,type:"clips"}),N.playVideo()):N.setLoopRange(null);_.w7(S)})},STw=function(L,Z){var N,S;
_.b(function(u){if(u.nextAddress==1)return u.yield(L.JSC$23301_watchApi.playerApi,2);N=u.yieldResult;S=_.n(Z,zaf).repeat;S==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(N.setLoopRange({startTimeMs:Number(_.n(Z,zaf).startTimeMs),endTimeMs:Number(_.n(Z,zaf).endTimeMs),type:"repeatChapter"}),N.playVideo()):S==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&N.setLoopRange(null);_.w7(u)})};_.uKf=function(L){_.ag.call(this);this.JSC$23306_watchApi=L;iqG(this)};
_.f(_.uKf,_.ag);var iqG=function(L){L.JSC$23306_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(Z){TRG(L,Z)});
L.addOnDisposeCallback(function(){L.JSC$23306_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},TRG=function(L,Z){var N,S,u,T,W,V,M,G,D,l,v;
_.b(function(R){if(R.nextAddress==1)return R.yield(L.JSC$23306_watchApi.playerApi,2);N=R.yieldResult;if(T=(u=(S=_.n(Z,mT7))==null?void 0:S.highlightedMenuItemKey)!=null?u:"")(V=(W=N).highlightSettingsMenuItem)==null||V.call(W,T);if(D=(G=(M=_.n(Z,mT7))==null?void 0:M.openMenuItemKey)!=null?G:"")(v=(l=N).openSettingsMenuItem)==null||v.call(l,D);_.w7(R)})};var tzG=_.qj("/youtube/app/watch/player_state","playerStateEntity");_.j0=function(L){_.ag.call(this);this.JSC$23309_watchApi=L;Oq9(this)};
_.f(_.j0,_.ag);var W2n=function(L){switch(L){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"}},Oq9=function(L){var Z,N,S,u;
_.b(function(T){if(T.nextAddress==1)return T.yield(L.JSC$23309_watchApi.playerApi,2);Z=T.yieldResult;if(L.isDisposed())return T.return();N=function(W){L.onPlayerStateChange(W)};
S=function(W){L.onAdStateChange(W)};
u=function(){L.onAdSkip()};
Z.addEventListener("onStateChange",N);Z.addEventListener("onAdStateChange",S);Z.addEventListener("onAdSkip",u);L.addOnDisposeCallback(function(){Z.removeEventListener("onStateChange",N);Z.removeEventListener("onAdStateChange",S);Z.removeEventListener("onAdSkip",u)});
_.w7(T)})},VzY=function(L){var Z=_.hJ(),N=Z.dispatch;
a:switch(L.adsState){case -1:case 0:var S="ADS_STATE_NONE";break a;case 1:case 2:case 3:S="ADS_STATE_PLAYING";break a;default:S="ADS_STATE_UNKNOWN"}N.call(Z,_.Mr("playerStateEntity",tzG,{key:tzG,playerState:W2n(L.playerState),adsState:S,videoId:L.videoId}))};
_.j0.prototype.onPlayerStateChange=function(L){var Z=this,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(Z.JSC$23309_watchApi.playerApi,2);N=S.yieldResult;if(Z.isDisposed())return S.return();Z.playerState=L;Z.videoId=N.getVideoData().video_id;VzY(Z);_.w7(S)})};
_.j0.prototype.onAdStateChange=function(L){this.adsState=L;VzY(this)};
_.j0.prototype.onAdSkip=function(){this.adsState=0;VzY(this)};_.Mzf=function(L){_.ag.call(this);var Z=this;this.JSC$23313_watchApi=L;this.enableExternalPlaylistPanelInPlayer=_.c("delhi_web_player_use_external_playlist_panel");_.GR().resolve(_.Nv).setPlayer(this.JSC$23313_watchApi.getElement("PLAYER"));L=this.JSC$23313_watchApi.subscribeToActiveChanged(function(N){Z.onActiveChanged(N)});
this.addOnDisposeCallback(L);bqn(this)};
_.f(_.Mzf,_.ag);var bqn=function(L){var Z,N;_.b(function(S){if(S.nextAddress==1)return L.enableExternalPlaylistPanelInPlayer?S.yield(L.JSC$23313_watchApi.playerApi,2):S.return();Z=S.yieldResult;N=function(){if(L.playlistPanelElement)L.playlistPanelElement.onToggleExpanded()};
Z.addEventListener("onToggleExternalPlaylistPanel",N);L.addOnDisposeCallback(function(){Z.removeEventListener("onToggleExternalPlaylistPanel",N)});
_.w7(S)})};
_.Mzf.prototype.onActiveChanged=function(L){var Z=this,N=_.GR().resolve(_.Nv),S=function(){g6n(Z)};
L?(this.playlistPanelElement=this.JSC$23313_watchApi.getElement("PLAYLIST_PANEL"))?(N.setPlaylistComponent(this.playlistPanelElement),N.addEventListener("yt-playlist-data-updated",S),this.addOnDisposeCallback(function(){N.removeEventListener("yt-playlist-data-updated",S)}),g6n(this)):_.Zx(Error("$o")):(N.removeEventListener("yt-playlist-data-updated",S),N.cancelVideoSkip())};
var g6n=function(L){var Z=_.GR().resolve(_.Nv);L.JSC$23313_watchApi.provideRenderingData("PLAYLIST",Z.getPlaylistData())};_.ED=function(L){_.ag.call(this);var Z=this;this.JSC$23316_watchApi=L;this.onPageScroll=function(){Z.scrollThrottle.fire();Z.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Sw(this.onThrottledScroll,200,this);_.Ky(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Sw(this.onMastheadThrottledScroll,50,this);_.Ky(this,this.mastheadScrollThrottle);this.animation=new _.SH(function(N){Z.JSC$23316_watchApi.getRoot().setScrollTop(N)});
L=_.hK(_.Pv(),_.nV,function(){Z.onFullscreenChanged()});
this.addOnDisposeCallback(L);G6V(this);F26(this);this.onThrottledScroll()};
_.f(_.ED,_.ag);
_.ED.prototype.onFullscreenChanged=function(){var L=this,Z=this.JSC$23316_watchApi.getRoot();!this.pageScrollElement&&Z.pageScrollElement?(this.pageScrollElement=Z.pageScrollElement,Z.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){L.pageScrollElement&&L.pageScrollElement.removeEventListener("scroll",L.onPageScroll)})):this.pageScrollElement&&!Z.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var G6V=function(L){window.addEventListener("scroll",L.onPageScroll);L.addOnDisposeCallback(function(){window.removeEventListener("scroll",L.onPageScroll)})},F26=function(L){L.JSC$23316_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(Z){a:{var N;
if(N=L.JSC$23316_watchApi.getRoot().contains(Z)&&!L.animation.isAnimating()){N=Z.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var S,u,T=(Z==null?void 0:(S=Z.parentElement)==null?void 0:(u=S.parentElement)==null?void 0:u.id)==="fixed-secondary";N=!(N&&T)}if(N){if(_.c("kevlar_watch_scroll_manager_absolute_offset_killswitch"))S=Z.offsetTop;else for(S=0,u=Z;u!==null;)S+=u.offsetTop,S-=u.scrollTop,u=u.offsetParent;u=S;S=u-24;Z=u+Z.offsetHeight+24;u=L.JSC$23316_watchApi.getRoot().getPageScrollingElement();
N=L.JSC$23316_watchApi.getRoot().getScrollTop();T=N+u.clientHeight-56;if(S<N+56)Z=S-56;else if(Z>T)Z-=u.clientHeight;else break a;L.scrollWatchTo(Math.max(0,Z),!0)}}});
L.addOnDisposeCallback(function(){L.JSC$23316_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.ED.prototype.onThrottledScroll=function(){var L=_.Pv(),Z=L.dispatch,N=this.JSC$23316_watchApi.getRoot().getScrollTop();Z.call(L,_.XK({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:N}}))};
_.ED.prototype.onMastheadThrottledScroll=function(){this.JSC$23316_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23316_watchApi.getRoot().getScrollTop())};
_.ED.prototype.scrollWatchTo=function(L,Z){(Z===void 0?0:Z)?this.animation.start(this.JSC$23316_watchApi.getRoot().getScrollTop(),Math.max(0,L),500):this.JSC$23316_watchApi.getRoot().setScrollTop(L)};_.lWG=function(L){_.ag.call(this);var Z=this;this.JSC$23319_watchApi=L;var N=this.JSC$23319_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){$j6(Z)}),S=this.JSC$23319_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){DjV(Z)});
this.addOnDisposeCallback(function(){Z.JSC$23319_watchApi.unsubscribeByKey(N);Z.JSC$23319_watchApi.unsubscribeByKey(S)});
$j6(this);DjV(this)};
_.f(_.lWG,_.ag);
var $j6=function(L){var Z,N,S,u=(S=(Z=L.JSC$23319_watchApi.getPlayerResponse())==null?void 0:(N=Z.videoDetails)==null?void 0:N.title)!=null?S:"";L.JSC$23319_watchApi.dispatchEvent("yt-update-title",u)},DjV=function(L){var Z,N,S,u,T,W,V,M=(V=((W=(Z=L.JSC$23319_watchApi.getWatchNextResponse())==null?void 0:(N=Z.contents)==null?void 0:(S=N.twoColumnWatchNextResults)==null?void 0:(u=S.results)==null?void 0:(T=u.results)==null?void 0:T.contents)!=null?W:[]).find(function(G){return!!G.videoPrimaryInfoRenderer}))==null?
void 0:V.videoPrimaryInfoRenderer;
(Z=_.jM(M==null?void 0:M.title))&&L.JSC$23319_watchApi.dispatchEvent("yt-update-title",Z)};_.o6n=function(L){_.ag.call(this);this.JSC$23322_watchApi=L;v6Y(this)};
_.f(_.o6n,_.ag);var v6Y=function(L){var Z,N;_.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$23322_watchApi.playerApi,2);Z=S.yieldResult;N=function(){L.onYpcContentRequest()};
Z.addEventListener("onYpcContentRequest",N);L.addOnDisposeCallback(function(){Z.removeEventListener("onYpcContentRequest",N)});
_.w7(S)})};
_.o6n.prototype.onYpcContentRequest=function(){var L,Z,N,S,u,T=(L=this.JSC$23322_watchApi.getWatchNextResponse())==null?void 0:(Z=L.contents)==null?void 0:(N=Z.twoColumnWatchNextResults)==null?void 0:(S=N.secondaryResults)==null?void 0:(u=S.secondaryResults)==null?void 0:u.offerModule,W,V,M,G;L=(G=(M=(V=(W=T==null?void 0:T.episodeOfferModuleRenderer)!=null?W:T==null?void 0:T.movieOfferModuleRenderer)!=null?V:T==null?void 0:T.unlimitedOfferModuleRenderer)!=null?M:T==null?void 0:T.liveOfferModuleRenderer)!=
null?G:T==null?void 0:T.tvfilmOfferModuleRenderer;var D,l,v;T=(v=T==null?void 0:(D=T.tvfilmOfferModuleRenderer)==null?void 0:(l=D.actionButtons)==null?void 0:l.length)!=null?v:0;l=Math.max(T-1,0);var R,K,U;D=(U=L==null?void 0:(R=L.offerButton)==null?void 0:R.buttonRenderer)!=null?U:L==null?void 0:(K=L.actionButtons)==null?void 0:K[l].buttonRenderer;var d,h;(R=(h=(d=D==null?void 0:D.navigationEndpoint)!=null?d:D==null?void 0:D.serviceEndpoint)!=null?h:D==null?void 0:D.command)&&_.qd.instance.resolveCommand(R)};
}catch(e){_._DumpException(e)}
try{
var HX5,Qsk,Cvq;_.rzv=function(){var L=_.Py.clone(JzQ),Z;return(new _.kE(function(N,S){L.onSuccess=function(u){_.tz1(u)?N(new Cvq(u)):S(new _.jF("Request failed, status="+_.Re(u),"net.badstatus",u))};
L.onError=function(u){S(new _.jF("Unknown request error","net.unknown",u))};
L.onTimeout=function(u){S(new _.jF("Request timed out","net.timeout",u))};
Z=_.yZ("//googleads.g.doubleclick.net/pagead/id",L)})).thenCatch(function(N){if(N instanceof _.ko){var S;
(S=Z)==null||S.abort()}return _.$N(N)})};
_.Xq5=function(L){a:{var Z="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(Z="EMBEDDED_PLAYER_MODE_PFL");var N=L.raw_embedded_player_response;if(!N&&(L=L.embedded_player_response))try{N=JSON.parse(L)}catch(u){break a}if(N)b:for(var S in Qsk)if(Qsk[S]==N.embeddedPlayerMode){Z=Qsk[S];break b}}return Z==="EMBEDDED_PLAYER_MODE_PFL"};
_.Azk=function(){if(_.c("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("xf");if(!_.QNF())return Error("yf");var L=_.X7("PLAYER_VARS",{});if(_.Py.get(L,"privembed",!1)=="1")return Error("zf");if(_.Xq5(L))return Error("Af")};
HX5=function(L){switch(L){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:_.Xh(L,"unknown result type")}};
_.Brm=function(L,Z,N){Z=_.qlw[Z];N={detected:L===0,source:Z.syM,detectionResult:HX5(L),contentCpn:N};_.mS("biscottiBasedDetection",N);_.pet.increment(Z.syM,L);Z.rSU!==void 0&&_.Qc("CATSTAT",_.BiP(L,Z))};
_.Eu=function(L,Z){var N={};N.key=L;N.value=Z;return _.ogt().then(function(S){return new Promise(function(u,T){try{var W=S.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(N);W.onsuccess=function(){u()};
W.onerror=function(){T()}}catch(V){T(V)}})})};
_.qxm=function(){var L=_.lQ("user_engagement_experiments_rate_limit_ms"),Z=xJg.get("last-user-engagement-exp-trigger-timestamp");return!Z||(0,_.GT)()>=Z+L?(xJg.set("last-user-engagement-exp-trigger-timestamp",(0,_.GT)()),!0):!1};
_.Pm=function(L,Z,N,S,u){Z=Z===void 0?null:Z;N=N===void 0?null:N;S=S===void 0?null:S;u=u===void 0?null:u;L={youThereEventType:L};N&&(L.lactThresholdMs=N.lactThresholdMs,L.mediaPosSec=N.promptDelaySec,L.lactServerRequestMs=N.lactServerRequestMs,L.triggerReason=N.triggerReason);u!=null&&(L.renderingMediaPosSec=Math.round(u));Z||(Z=_.RH());Z&&(L.clientScreenNonce=Z);S&&(L.clientPlaybackNonce=S);_.mS("youThere",L)};
Qsk={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"};Cvq=function(L){this.xhr=L};
_.jF=function(L,Z,N){_.NL.call(this,L+", errorCode="+Z);this.errorCode=Z;this.xhr=N;this.name="PromiseAjaxError"};
_.f(_.jF,_.NL);var JzQ={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var xJg=new _.Bx("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.mJg=function(L){return _.XK({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:L})};
}catch(e){_._DumpException(e)}
try{
var mT,AqM,BRq,xj8,qTY,L39,Nnf,bkf,MMw,gQn,Zki,Hqt,Tnq,u8i,$en;_.XBn=function(){var L=window.location.hash;L.charAt(0)==="#"&&(L=L.charAt(1)==="!"?L.substring(2):L.substring(1));return _.iQ(L)};
mT=function(L,Z,N){var S;return _.b(function(u){if(u.nextAddress==1)return u.yield(Z(),2);S=u.yieldResult;N(S,L);_.w7(u)})};
AqM=function(){return _.b(function(L){return L.nextAddress==1?L.yield((_.Azk()!==void 0?_.$N(Error("Bf")):_.rzv()).then(function(){return 1},function(Z){if(Z.message==="Biscotti id is disabled")return 3;
_.Q7("Failed fetching bid");return 0}),2):L.return(L.yieldResult)})};
BRq=function(){var L=_.JN("bi1lbWJlZC1wbGF5ZXIjdmtyNDk4NHo5cWg4eXQtaGF2ZQ=="),Z=_.JN("cmczNnZ3ZHlpZnJhbWUjZHljOA==");return document.querySelector(Z+Hqt+L)?0:1};
xj8=function(){return _.jfG(_.Vx)};
qTY=function(){return _.ECH()===0?0:_.PUx()};
L39=function(){return _.CUt(_.uq1([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
Nnf=function(){return _.UkP(Zki)};
_.S9i=function(L){_.b(function(Z){switch(Z.nextAddress){case 1:return Z.yield(mT("b.f_",AqM,L),2);case 2:return Z.yield(mT("j.s_",_.yOs,L),3);case 3:return Z.yield(mT("r.s_",_.Kxf,L),4);case 4:return Z.yield(mT("e.h_",Nnf,L),5);case 5:if(!_.c("ab_det_sc_inj")){Z.jumpTo(6);break}return Z.yield(mT("s.i_",_.h6H,L),6);case 6:if(_.c("ab_deg_unex_thr")){Z.jumpTo(8);break}return Z.yield(mT("a.o_",_.dk1,L),8);case 8:if(_.c("ks_get_o_pp")){Z.jumpTo(10);break}return Z.yield(mT("g.o_",_.IR0,L),10);case 10:if(_.c("ks_det_gpbl")){Z.jumpTo(12);
break}return Z.yield(mT("p.i_",_.e6L,L),12);case 12:return Z.yield(mT("f.i_",_.gCx,L),14);case 14:return Z.yield(mT("a.b_",_.cOG,L),15);case 15:return Z.yield(mT("p.m_",_.$kB,L),16);case 16:if(!_.c("ab_det_el_h_v2")){Z.jumpTo(17);break}return Z.yield(mT("n.h_",L39,L),17);case 17:return Z.yield(mT("o.p_",xj8,L),19);case 19:return Z.yield(mT("e.i_",BRq,L),20);case 20:if(_.c("ab_det_apm"))return Z.yield(mT("o.a_",qTY,L),0);Z.jumpTo(0)}})};
_.ik6=function(L,Z){L={videoId:L};Z&&(L.playlistId=Z);return L};
_.tMt=function(){if(_.QNF()){var L=_.X7("PLAYER_VARS",{});if(_.Py.get(L,"privembed",!1)!="1"&&!_.Xq5(L)){var Z=function(){u8i=!0;"google_ad_status"in window?_.Qc("DCLKSTAT",1):_.Qc("DCLKSTAT",2)};
try{_.Uo(_.s7y,Z)}catch(N){}Tnq.push(_.ro.addLowPriorityJob(function(){if(!(u8i||"google_ad_status"in window)){try{_.Ea1(_.s7y.toString(),Z)}catch(N){}u8i=!0;_.Qc("DCLKSTAT",3)}},5E3))}}};
_.Okn=function(L,Z,N){N=N===void 0?!1:N;var S=Math.max(L.width,_.tZM);if(_.c("kevlar_watch_feed_big_thumbs")&&L.width>=1550-_.fr()&&L.height>=800)S-=_.gsY;else if(L.width>=_.j1){var u=_.OZ8+_.W5M+_.sz;_.c("kevlar_watch_feed_big_thumbs")&&(u=_.MZM);S-=u}else S-=_.OZ8;S=Math.min(S,_.VZf);u=240;N&&(u=380);Z<.5624||(!_.c("kevlar_watch_flexy_disable_small_window_sizing")&&(L.height<630&&L.width>=657||L.height>=630&&L.width>=_.j1&&L.width<1327)?u=360:!_.c("kevlar_watch_flexy_disable_large_window_sizing")&&
L.height>=630&&L.width>=1327&&(u=480));var T=Math.min(S*Z,L.height-(56+_.Tv9+_.bZn));T=Math.max(T,u);Z<1?S=T/Z:L.width>=_.j1&&(S=_.Okn(L,.5625,N).width);return new _.wF(Math.round(S),Math.round(T))};
_.W36=function(L){var Z=0;L.indexOf("h")!=-1&&(L=L.split("h"),Z=L[0]*60*60,L=L[1]);L.indexOf("m")!=-1&&(L=L.split("m"),Z=L[0]*60+Z,L=L[1]);L.indexOf("s")!=-1?(L=L.split("s"),Z=L[0]*1+Z):Z=L*1+Z;return Z};
_.VM9=function(){_.lQ("service_worker_push_logged_out_prompt_watches")!=-1&&_.ky("WatchCount").then(function(L){L>=100||_.Eu("WatchCount",L+1)})};
bkf=function(L){var Z=L.externalVideoId||"";return Z?L.isShortsEligible?"https://www.youtube.com/shorts/"+Z:"https://www.youtube.com/watch?v="+Z:""};
MMw=function(L){var Z=[];L.viewCount&&Z.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:L.viewCount});L.likeCount&&Z.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:L.likeCount});return Z};
gQn=function(L){var Z,N,S={"@context":"https://schema.org","@type":"VideoObject",description:_.jM(L.description),duration:"PT"+(L.lengthSeconds||"0")+"S",embedUrl:L.embed?L.embed.iframeUrl:"",name:_.jM(L.title),thumbnailUrl:((Z=L.thumbnail)==null?void 0:(N=Z.thumbnails)==null?void 0:N.map(function(D){return D&&D.url||""}))||[],
uploadDate:L.publishDate};_.c("mweb_video_schema_id_killswitch")||(S["@id"]=bkf(L));Z=MMw(L);Z.length&&(S.interactionStatistic=Z);L.category&&(S.genre=L.category);L.ownerChannelName&&(S.author=L.ownerChannelName);L.liveBroadcastDetails&&(S.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:L.liveBroadcastDetails.startTimestamp,endDate:L.liveBroadcastDetails.endTimestamp}]);if(L.learningResource){L=L.learningResource;S["@type"]=["VideoObject","LearningResource"];var u;if((u=L.learningResourceType)==
null?0:u.length)S.learningResourceType=L.learningResourceType[0];var T;if((T=L.educationalAlignment)==null?0:T.length)S.educationalAlignment={"@type":"AlignmentObject",targetName:L.educationalAlignment[0]};var W;if((W=L.educationalLevel)==null?0:W.length){u=L.educationalLevel[0];var V;if((V=L.educationalLevelCountry)==null?0:V.length)u+=" ("+L.educationalLevelCountry+")";S.educationalLevel=u}var M,G;if(((M=L.learningResourceType)==null?0:M.length)&&L.learningResourceType[0]==="Problem walkthrough"&&
((G=L.problemDescriptions)==null?0:G.length))for(S.hasPart=[],V=_.O(L.problemDescriptions),M=V.next();!M.done;M=V.next())u=M.value,M=u.problemDescriptionText,G=u.startOffset,u=u.url,M&&G!==void 0&&u&&S.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:M,text:M,startOffset:G,url:u})}return S};
_.Gan=function(L){return _.XK({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:L}})};
Zki=[[["bWhxd2Fnb3ByaW1hcnkjemNubHI=",null,null],[null,["c3VsdHMtcmVuZGVyZXIjM3g2aWpwdmh0em5xeXRkLXR3by1jb2x1bW4tYnJvd3NlLXJl","bXltc3R5bGUtc2NvcGUjaXI3MHFvY3Mx"],null],["OWc1Nm1hc3RoZWFkLWFkI3YzdDlrejE=",["aC1ncmlkLXJlbmRlcmVyI3Bwemh5OWs1d2M5eXRkLXJpYw=="],null],[null,["aC1ncmlkLXJlbmRlcmVyI29zdTl0eTVncjc4eXRkLXJpYw==","ZjJwc3R5bGUtc2NvcGUjMXY3cnBqZjlp"],null],[null,["cHJvbW8tcmVuZGVyZXIjZW5odzR5ejVueGRzeXRkLWJhbm5lci0=","cThlc3R5bGUtc2NvcGUjdXdobWVxbnF3"],null],[null,["LXNsb3QtcmVuZGVyZXIjN3l5czM4amUwb2tkeXRkLWFk"],
null]],[["dXM5ZXBsYXllci1hZHMjZzM3aTJoNjQ=",null,null]],[[null,null,"ZXItY3RhLXJlbmRlcmVyIzc2aWNqYndsNml3eXRsci1iYW5u"]]];Hqt="#";Tnq=[];u8i=!1;_.F3i=["engagement-panel-ads"];$en=new _.S5("updateSentimentBarStateCommand");_.Dei=new _.S5("showSurveyCommand");_.Jm=new _.S5("changeMarkersVisibilityCommand");var vQ7,oQV,K3n,nQn,cNi,Ca;_.lT8=function(L,Z){this.playerProvider_=L;this.actionSenderElement_=Z;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.lT8.prototype.reset=function(){vQ7(this);this.isUserPredictedAbsent_=!1};
vQ7=function(L,Z){!L.youThereData_||L.showWarningJob_||Z!==void 0&&Z||(_.Pm("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.RH(),L.youThereData_,L.clientPlaybackNonce_),_.JV());_.ro.cancelJob(L.showWarningJob_);L.showWarningJob_=0;_.ro.cancelJob(L.showBlockingWarningJob_);L.showBlockingWarningJob_=0;_.ro.cancelJob(L.pausePlaybackJob_);L.pausePlaybackJob_=0;L.youThereData_=null;L.clientPlaybackNonce_=void 0;L.inYouThereFlow_=!1};
_.RRw=function(L,Z){var N,S,u;_.b(function(T){if(T.nextAddress==1)return L.reset(),T.yield(L.playerProvider_().getPlayerPromise(),2);N=T.yieldResult;L.clientPlaybackNonce_=N.getVideoData().cpn;L.youThereData_=Z.configData.youThereData;if(!L.youThereData_)return T.return();if(L.youThereData_.triggerReason&&L.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.qxm())return _.Pm("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.RH(),L.youThereData_,L.clientPlaybackNonce_),T.return();S=L.youThereData_.promptDelaySec;
u=N.getCurrentTime();L.showWarningJob_=_.ro.addLowPriorityJob(function(){return _.b(function(W){L.showWarningJob_=0;return W.yield(oQV(L),0)})},Math.max(S-u,0)*1E3);
_.w7(T)})};
oQV=function(L){var Z,N,S,u,T,W;return _.b(function(V){if(V.nextAddress==1)return V.yield(L.playerProvider_().getPlayerPromise(),2);if(V.nextAddress!=3)return Z=V.yieldResult,N=Z.getCurrentTime(),V.yield(cNi(L),3);S=V.yieldResult;if(!S||!L.youThereData_)return V.return();if(_.c("check_user_lact_at_prompt_shown_time_on_web")&&(u=parseInt(L.youThereData_.lactThresholdMs,10),_.Fv()<u))return _.Pm("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.RH(),L.youThereData_,L.clientPlaybackNonce_),V.return();if(L.youThereData_.playbackPauseDelayMs<=
0)return nQn(L),V.return();!_.c("external_fullscreen")&&(T=_.mg())&&(L.ignoreFullscreenExitUserActivity_=!0,_.ro.addLowPriorityJob(function(){L.ignoreFullscreenExitUserActivity_=!1},2E3),_.Jd(T));
L.youThereData_.showToastWarningPrompt&&(Ca(L,L.youThereData_.showWarningActions),L.inYouThereFlow_=!0,_.Pm("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.RH(),L.youThereData_,L.clientPlaybackNonce_,N),_.Pm("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.RH(),L.youThereData_,L.clientPlaybackNonce_,N));W=0;L.youThereData_.blockingPromptDelayMs&&(W=L.youThereData_.blockingPromptDelayMs);L.showBlockingWarningJob_=_.ro.addLowPriorityJob(function(){return _.b(function(M){L.showBlockingWarningJob_=0;return M.yield(K3n(L),
0)})},W);
_.w7(V)})};
K3n=function(L){var Z,N,S;return _.b(function(u){if(u.nextAddress==1)return u.yield(cNi(L),2);Z=u.yieldResult;if(!L.youThereData_)return u.return();Z&&(L.youThereData_.showBlockingWarningAction&&(_.Pm("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.RH(),L.youThereData_,L.clientPlaybackNonce_),(N=_.n(L.youThereData_.showBlockingWarningAction,_.q2))?Ca(L,N.commands):Ca(L,[L.youThereData_.showBlockingWarningAction]),L.inYouThereFlow_=!0),S=L.youThereData_.playbackPauseDelayMs,L.pausePlaybackJob_=
_.ro.addLowPriorityJob(function(){return _.b(function(T){L.pausePlaybackJob_=0;return T.yield(nQn(L),0)})},S));
_.w7(u)})};
nQn=function(L){var Z;return _.b(function(N){if(N.nextAddress==1)return N.yield(cNi(L),2);Z=N.yieldResult;if(!L.youThereData_)return N.return();Z&&(_.Pm("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.RH(),L.youThereData_,L.clientPlaybackNonce_),Ca(L,L.youThereData_.showPausedActions),L.inYouThereFlow_=!0);_.w7(N)})};
_.lT8.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var L=_.n(this.youThereData_.userActiveDuringFlowAction,_.q2);L?Ca(this,L.commands):Ca(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Pm("YOU_THERE_EVENT_TYPE_LACT_RESET",_.RH(),this.youThereData_,this.clientPlaybackNonce_),_.JV());vQ7(this,!0)}_.fTG(this,!1)};
_.kaf=function(L){_.Pm("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.RH(),L.youThereData_,L.clientPlaybackNonce_)};
cNi=function(L){var Z,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(L.playerProvider_().getPlayerPromise(),2);Z=S.yieldResult;N=Z.getPlayerState();return S.return(N==-1||N==1||N==3)})};
_.fTG=function(L,Z){var N;_.b(function(S){if(S.nextAddress==1){if(L.isUserPredictedAbsent_==Z)return S.jumpTo(0);L.isUserPredictedAbsent_=Z;return S.yield(L.playerProvider_().getPlayerPromise(),3)}N=S.yieldResult;N.setUserEngagement(Z);Z&&_.Pm("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.RH(),L.youThereData_,L.clientPlaybackNonce_);_.w7(S)})};
Ca=function(L,Z){if(_.c("handle_service_request_actions")||_.c("kevlar_youthere_service_endpoint_actions_killswitch"))_.B2(L.actionSenderElement_,Z,L.actionSenderElement_);else{Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())N=N.value,N.commandMetadata&&N.commandMetadata.webCommandMetadata&&N.commandMetadata.webCommandMetadata.sendPost?_.H2(L.actionSenderElement_,[N]):_.B2(L.actionSenderElement_,[N],L.actionSenderElement_)}};var yNn;var wvt;var rb=function(){var L=_.e.apply(this,arguments)||this;L.systemIcons=_.c("kevlar_system_icons");L.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return L};
_.f(rb,_.e);rb.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var L=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(L=this.data.percentIfLiked||0,this.activated=!0):(L=this.data.percentIfIndifferent||0,this.activated=!1);_.QJ(this.hostElement).querySelector("#like-bar").style.width=L+"%"}};
rb.prototype.handleUpdateSentimentBarStateCommand=function(L){this.data&&this.set("data.likeStatus",_.n(L,$en).likeStatus)};
rb.prototype.observeLikeStatus=rb.prototype.observeLikeStatus;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],rb.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],rb.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],rb.prototype,"activated",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],rb.prototype,"systemIcons",void 0);_.r([_.iA("data.likeStatus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],rb.prototype,"observeLikeStatus",null);_.r([_.P({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],rb);
_.m(rb,"ytd-sentiment-bar-renderer",function(){if(wvt!==void 0)return wvt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return wvt=L},{mode:1});var Ue8;var Q1=function(){var L=_.e.apply(this,arguments)||this;L.small=!0;return L};
_.f(Q1,_.e);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Q1.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Q1.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Q1.prototype,"small",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Q1);
_.m(Q1,"ytd-video-view-count-renderer",function(){if(Ue8!==void 0)return Ue8;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Ue8=L},{mode:_.Qr("kevlar_poly_si_batch_j080")?1:2});var X_=function(){var L=_.e.apply(this,arguments)||this;L.infoFormattedStrings=[];L.wrapVideoActions=_.c("kevar_watch_wrap_video_actions");L.hideSentimentBar=_.c("kevlar_watch_hide_sentiment_bar");L.actionMap={};return L};
_.f(X_,_.e);_.t=X_.prototype;_.t.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.c("web_modern_buttons"),forceIconButton:!_.c("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.t.dataChanged=function(){_.c("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.t.computeInfoFormattedStrings=function(L){if(!L)return[];var Z=[];L.dateText&&Z.push(L.dateText);L.stationName&&Z.push(L.stationName);L.rating&&Z.push(L.rating);L.startEndTimeTemplate&&L.startTimeUtcMillis&&L.endTimeUtcMillis&&Z.push(_.s9(_.R0q(_.jM(L.startEndTimeTemplate),Number(L.startTimeUtcMillis),Number(L.endTimeUtcMillis))));L.upNextProgramText&&Z.push(L.upNextProgramText);return Z};
_.t.scheduleInitialUpdatedMetadataRequest=function(){var L,Z=(L=this.data)==null?void 0:L.updatedMetadataEndpoint;if(Z){var N;L=Number((N=_.n(Z,_.UWh))==null?void 0:N.initialDelayMs);N=isNaN(L)?250:L;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),N)}};
_.t.setSentimentBarWidth=function(){var L=this;_.bN(this,function(){var Z=_.QJ(L.hostElement).querySelector("ytd-menu-renderer");if(Z){Z=Z.topLevelButtons;for(var N=0,S=0;S<Z.length;S++){var u=Z[S],T=L.get("toggleButtonSupportedData.toggleButtonIdData.id",u.data);if(T==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||T==="TOGGLE_BUTTON_ID_TYPE_LIKE")N+=u.clientWidth+8;else break}N&&(L.sentiment.style.width=N-8+" px")}})};
_.t.fetchUpdatedMetadata=function(L){var Z;L&&(Z={continuation:L});var N;(L=(N=this.data)==null?void 0:N.updatedMetadataEndpoint)&&_.GR().resolve(_.$s).resolveCommand(L,{form:Object.assign({},Z,{element:this.hostElement})})};
_.t.onYtServiceRequestSent=function(L,Z){Z.endpoint&&_.n(Z.endpoint,_.fm)&&(this.hasUpdateSentimentBarStateCommands()&&!_.c("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.n(Z.endpoint,_.fm).status),this.setSentimentBarWidth())};
_.t.hasUpdateSentimentBarStateCommands=function(){var L,Z,N,S,u=(S=(L=this.data)==null?void 0:(Z=L.videoActions)==null?void 0:(N=Z.menuRenderer)==null?void 0:N.topLevelButtons)!=null?S:[];L=_.O(u);for(Z=L.next();!Z.done;Z=L.next()){Z=Z.value;u=S=N=void 0;var T=(N=Z.toggleButtonRenderer)==null?void 0:(S=N.toggleButtonSupportedData)==null?void 0:(u=S.toggleButtonIdData)==null?void 0:u.id;if(T==="TOGGLE_BUTTON_ID_TYPE_LIKE"||T==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){S=N=void 0;Z=(S=_.n((N=Z.toggleButtonRenderer)==
null?void 0:N.defaultServiceEndpoint,_.q2))==null?void 0:S.commands;if(!Z)break;Z=_.O(Z);for(N=Z.next();!N.done;N=Z.next())if(_.n(N.value,$en))return!0}}return!1};
_.t.onYtServiceRequestCompleted=function(L,Z){var N;(L=(N=Z.data)==null?void 0:N.loggingDirectives)&&_.zDs(_.tC(),L);this.get("continuation.timedContinuationData",Z.data)&&this.data&&this.data.updatedMetadataEndpoint&&(Z=Z.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,Z.continuation),Z.timeoutMs))};
_.t.computeHasDateText=function(L){return!!L&&!!L.dateText};
_.gd.Object.defineProperties(X_.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S;return!((S=(L=this.data)==null?void 0:(Z=L.videoActions)==null?void 0:(N=Z.menuRenderer)==null?void 0:N.flexibleItems)==null||!S.length)}}});
X_.prototype.onYtServiceRequestCompleted=X_.prototype.onYtServiceRequestCompleted;X_.prototype.onYtServiceRequestSent=X_.prototype.onYtServiceRequestSent;X_.prototype.dataChanged=X_.prototype.dataChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],X_.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.uM.YtTaskEmitterBehavior),_.Q("design:type",Object)],X_.prototype,"ytTaskEmitterBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],X_.prototype,"data",void 0);_.r([_.Y({computed:"computeInfoFormattedStrings(data)"}),_.Q("design:type",Array)],X_.prototype,"infoFormattedStrings",void 0);
_.r([_.Y({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],X_.prototype,"hasDateText",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],X_.prototype,"wrapVideoActions",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],X_.prototype,"hideSentimentBar",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],X_.prototype,"flexMenuEnabled",null);
_.r([_.TX("#sentiment"),_.Q("design:type",Object)],X_.prototype,"sentiment",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],X_.prototype,"dataChanged",null);_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],X_.prototype,"onYtServiceRequestSent",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],X_.prototype,"onYtServiceRequestCompleted",null);
_.m(X_,"ytd-video-primary-info-renderer",function(){if(yNn===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);yNn=L}L=yNn;return L},{mode:1});var Y9Y;var Am=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return L};
_.f(Am,_.e);_.t=Am.prototype;_.t.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"}}}};
_.t.dataChanged=function(){var L;this.descriptionToggled=!((L=this.data)==null||!L.defaultExpanded);var Z;this.collapsed=this.descriptionAlwaysCollapsed||!((Z=this.data)==null?0:Z.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Ll(110509);this.showLessClientVe=_.Ll(110510);L=_.RH();Z=_.oH();L&&Z&&_.Iq(L,Z,[this.showMoreClientVe,this.showLessClientVe])};
_.t.onYtExpanderMoreTapped=function(){var L,Z=(L=this.data)==null?void 0:L.showMoreCommand;Z&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(Z);(L=_.RH())&&this.showMoreClientVe&&_.sT(L,this.showMoreClientVe)};
_.t.onYtExpanderLessTapped=function(){var L=_.RH();L&&this.showLessClientVe&&_.sT(L,this.showLessClientVe);var Z;(L=(Z=this.data)==null?void 0:Z.showLessCommand)&&this.componentBehavior.resolveCommand(L)};
_.t.handleUpdateDateTextAction=function(L){this.data&&this.data.dateText&&this.set("data.dateText",_.n(L,_.qMM).dateText)};
_.t.handleUpdateDescriptionAction=function(L){if(L=_.n(L,_.Uk5))L.isEmpty||!L.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.oX(L.description)):this.set("data.description",L.description)};
_.t.onYtChangeEngagementPanelVisibilityAction=function(L){if(_.c("web_structured_description_show_more")||_.c("web_engagement_panel_open_description")){var Z,N=(Z=_.n(L,_.U9M))==null?void 0:Z.targetId,S;L=((S=_.n(L,_.U9M))==null?void 0:S.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";N==="engagement-panel-structured-description"&&L&&(this.descriptionToggled=!0)}};
_.t.updateCollapsedFromBinding=function(L){this.collapsed=L.detail.value};
_.t.updateDescriptionToggledFromBinding=function(L){this.descriptionToggled=L.detail.value};
_.t.updateCanCollapseFromBinding=function(L){this.canCollapse=L.detail.value};
_.gd.Object.defineProperties(Am.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=(L=this.data)==null?void 0:(Z=L.metadataRowContainer)==null?void 0:Z.metadataRowContainerRenderer;return!!N&&!!N.rows&&N.rows.length>N.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.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}}});
Am.prototype.onYtExpanderLessTapped=Am.prototype.onYtExpanderLessTapped;Am.prototype.onYtExpanderMoreTapped=Am.prototype.onYtExpanderMoreTapped;Am.prototype.dataChanged=Am.prototype.dataChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Am.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Am.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Am.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Am.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Am.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Am.prototype,"collapsed",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Am.prototype,"descriptionToggled",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],Am.prototype,"canCollapse",void 0);_.r([_.Y(),_.Q("design:type",Object)],Am.prototype,"subscribeButtonData",void 0);_.r([_.Y(),_.Q("design:type",Number)],Am.prototype,"descriptionCollapsedHeight",void 0);_.r([_.Y(),_.Q("design:type",Object)],Am.prototype,"structuredDescriptionContentRenderer",void 0);_.r([_.Y({value:function(){return _.c("web_watch_description_always_collapsed")}}),
_.Q("design:type",Boolean)],Am.prototype,"descriptionAlwaysCollapsed",void 0);_.r([_.TX("#description"),_.Q("design:type",HTMLDivElement)],Am.prototype,"description",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Am.prototype,"dataChanged",null);_.r([_.SA("yt-expander-more-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Am.prototype,"onYtExpanderMoreTapped",null);
_.r([_.SA("yt-expander-less-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Am.prototype,"onYtExpanderLessTapped",null);_.r([_.w("data.metadataRowContainer"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Am.prototype,"metadataCollapsible",null);_.r([_.w("data","structuredDescriptionContentRenderer"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Am.prototype,"hasInlineStructuredDescription",null);
_.r([_.w("data.attributedDescription"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Am.prototype,"hasAttributedDescription",null);_.r([_.w("hasInlineStructuredDescription","collapsed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Am.prototype,"loadStructuredDescription",null);_.r([_.w("data","structuredDescriptionContentRenderer","collapsed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Am.prototype,"showInlineStructuredDescription",null);
_.r([_.w("data","hasInlineStructuredDescription","metadataCollapsible"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Am.prototype,"descriptionAlwaysCollapsible",null);
_.m(Am,"ytd-video-secondary-info-renderer",function(){if(Y9Y===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);Y9Y=L}L=Y9Y;return L},{mode:2});var eR6;var H_=function(){return _.e.apply(this,arguments)||this};
_.f(H_,_.e);H_.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:_.c("web_modern_buttons"),forceIconButton:!_.c("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
H_.prototype.activate=function(L){L.appendTo(this.player);L.getPlayerPromise().then(function(Z){Z.setMinimized(!0)});
this.active=!0};
H_.prototype.deactivate=function(){var L=this.player.firstElementChild;L.getPlayerPromise().then(function(Z){Z.setMinimized(!1)});
this.active=!1;return L};
H_.prototype.onScrollUpTap=function(){var L=_.GR().resolve(_.mR).getCurrentPage();L&&L.setScrollTop(0)};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],H_.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],H_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],H_.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],H_.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],H_.prototype,"active",void 0);
_.r([_.Y({reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.Q("design:type",Boolean)],H_.prototype,"darkLaunch",void 0);_.r([_.TX("#player"),_.Q("design:type",HTMLDivElement)],H_.prototype,"player",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],H_);
_.m(H_,"ytd-miniplayer-bar-renderer",function(){if(eR6!==void 0)return eR6;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return eR6=L},{mode:1});_.CY(_.p(function(L){var Z=_.t2("script");_.ph(function(){var N;if(N=JSON)N=gQn(L.data()),N=_.So(JSON.stringify(N).replace(/</g,"\\u003C"));var S=L.data(),u=_.jM(S.title).trim().length===0,T=!S.publishDate||S.publishDate.trim().length===0,W,V,M,G,D=!((W=S.thumbnail)==null?0:(V=W.thumbnails)==null?0:V.length)||!((M=S.thumbnail)==null?0:M.thumbnails[0].url)||((G=S.thumbnail)==null?void 0:G.thumbnails[0].url.trim().length)===0;Z.value&&N&&!(u||T||D)&&_.ug(Z.value,N)},"Vy9K7b");
return _.g("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.g("script",{el:Z,type:"application/ld+json"}))},"$n"),"player-microformat-renderer",{props:{data:_.zl}});
}catch(e){_._DumpException(e)}
try{
var cq9,n6t,fWM;_.RZt=function(L){return L.watch.watchWindowSize};
cq9=function(L,Z){var N=document.querySelector(L);N?Z(N):setTimeout(function(){cq9(L,Z)},1E3)};
n6t=function(L,Z,N,S){if(L.isLockupToWatchTransitionEnabled){if(Z){var u={};u=(u["watch-next-appears"]="player-watch-next-loaded",u);u["lockup-to-watch"]=L.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";L.viewTransitionCoordinator.registerElement(Z,u)}N&&(Z={},L.viewTransitionCoordinator.registerElement(N,(Z["lockup-to-watch"]="below-lockup-to-watch",Z["watch-next-appears"]="below-watch-next-loaded",Z)));S&&(N={},L.viewTransitionCoordinator.registerElement(S,
(N["watch-next-appears"]="secondary-watch-next-loaded",N)))}};
_.K2n=function(L){return _.XK({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:L}})};
fWM=new _.S5("webWatchNextResponseExtensionData");var yqM=function(L){_.ag.call(this);var Z=this;this.JSC$23326_watchApi=L;this.observer=null;var N=this.JSC$23326_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){k6n(Z)});
this.addOnDisposeCallback(function(){Z.JSC$23326_watchApi.unsubscribeByKey(N);Z.observer&&(Z.observer.disconnect(),Z.observer=null)});
k6n(this)};
_.f(yqM,_.ag);
var k6n=function(L){var Z,N,S,u;_.b(function(T){if(T.nextAddress==1){L.observer&&(L.observer.disconnect(),L.observer=null);Z=L.JSC$23326_watchApi.getWatchNextResponse();if(!Z)return T.return();N=_.n(Z,fWM);return((S=N)==null?0:S.enableCreatorChatbot)&&N.creatorChannelId?T.yield((0,_.imP)("NSzT5"),3):T.jumpTo(0)}u=_.WLy;u(N.creatorChannelId);cq9("ytd-watch-metadata",function(W){L.observer=new MutationObserver(function(){var V,M;(V=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||
(M=V.closest("yt-button-view-model.ytd-menu-renderer"))==null||M.remove()});
L.observer.observe(W,{childList:!0,subtree:!0})});
_.w7(T)})};var Ujn=function(L){_.ag.call(this);this.JSC$23330_watchApi=L;this.isShelfVisible=this.isSeeking=!1;wB9(this)};
_.f(Ujn,_.ag);var wB9=function(L){_.b(function(Z){if(Z.nextAddress==1)return Z.yield(YTn(L),2);eZG(L);_.w7(Z)})},YTn=function(L){var Z,N,S,u,T,W;
return _.b(function(V){if(V.nextAddress==1)return V.yield(L.JSC$23330_watchApi.playerApi,2);Z=V.yieldResult;L.JSC$23330_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){IWM(L)});
L.JSC$23330_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){L.isShelfVisible?djw(L):aWw(L)});
N=L.JSC$23330_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){eZG(L)});
S=function(M){L.onCueRangeEnter(M)};
Z.addEventListener("onCueRangeEnter",S);u=function(M){L.onCueRangeExit(M)};
Z.addEventListener("onCueRangeExit",u);T=function(){L.isSeeking=!0};
Z.addEventListener("SEEK_TO",T);W=function(){L.onSeekComplete()};
Z.addEventListener("SEEK_COMPLETE",W);L.addOnDisposeCallback(function(){L.JSC$23330_watchApi.unsubscribeByKey(N);Z.removeEventListener("onCueRangeEnter",S);Z.removeEventListener("onCueRangeExit",u);Z.removeEventListener("SEEK_TO",T);Z.removeEventListener("SEEK_COMPLETE",W)});
_.w7(V)})},hZw=function(L){var Z,N,S,u,T,W,V,M,G;
return(T=(Z=L.contents)==null?void 0:(N=Z.twoColumnWatchNextResults)==null?void 0:(S=N.results)==null?void 0:(u=S.results)==null?void 0:u.contents)==null?void 0:(W=T.find(function(D){var l,v,R;return(l=D.itemSectionRenderer)==null?void 0:(v=l.contents)==null?void 0:(R=v[0])==null?void 0:R.shoppingTimelyShelfViewModel}))==null?void 0:(V=W.itemSectionRenderer)==null?void 0:(M=V.contents)==null?void 0:(G=M[0])==null?void 0:G.shoppingTimelyShelfViewModel},eZG=function(L){var Z;
_.b(function(N){if(N.nextAddress==1)return(Z=L.JSC$23330_watchApi.getWatchNextResponse())?N.yield(IWM(L),2):N.return();L.shoppingTimelyShelfViewModel=hZw(Z);sqn(L);jq6(L);_.w7(N)})},sqn=function(L){var Z,N=(Z=L.shoppingTimelyShelfViewModel)==null?void 0:Z.offerIdToVariants;
N&&(Z=N.filter(function(S){return S.key&&S.value}).map(function(S){return[S.key,
S.value]}),L.variantsMap=new Map(Z))},jq6=function(L){var Z,N,S,u,T,W;
_.b(function(V){if(V.nextAddress==1)return(N=(Z=L.shoppingTimelyShelfViewModel)==null?void 0:Z.cueRanges)?V.yield(L.JSC$23330_watchApi.playerApi,2):V.return();S=V.yieldResult;L.cueRanges=N;u=_.O(N);for(T=u.next();!T.done;T=u.next())W=T.value,W.startTime!==void 0&&W.endTime!==void 0&&W.id!==void 0&&S.addCueRange("shopping_timely_shelf"+W.id,E6f(W.startTime),E6f(W.endTime));_.w7(V)})},E6f=function(L){return Number(L.seconds||0)+(L.nanos||0)/1E9};
Ujn.prototype.onCueRangeEnter=function(L){if(L.startsWith("shopping_timely_shelf")&&(this.activeCueId=L,!this.isSeeking)){var Z=L.substring(21),N,S;L=(N=this.variantsMap)==null?void 0:(S=N.get(Z))==null?void 0:S.shelf;if(_.c("web_enable_shopping_timely_shelf_client_overwrite")){var u,T,W,V,M;N=L==null?void 0:(u=L.shoppingTimelyShelfContentViewModel)==null?void 0:(T=u.button)==null?void 0:(W=T[1])==null?void 0:(V=W.buttonViewModel)==null?void 0:(M=V.onTap)==null?void 0:M.innertubeCommand;var G,D;if(N==
null?0:(G=N.menuEndpoint)==null?0:(D=G.menu)==null?0:D.menuRenderer)N.openPopupAction=N.menuEndpoint,N.openPopupAction.popup=N.openPopupAction.menu,N.openPopupAction.popup.menuPopupRenderer=N.openPopupAction.popup.menuRenderer,N.openPopupAction.popupType="DROPDOWN",delete N.menuEndpoint,delete N.openPopupAction.menu,delete N.openPopupAction.popup.menuRenderer}L&&(this.JSC$23330_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",L),djw(this))}};
Ujn.prototype.onCueRangeExit=function(L){L.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||aWw(this))};
Ujn.prototype.onSeekComplete=function(){this.isSeeking=!1;if(this.activeCueId)this.onCueRangeEnter(this.activeCueId);else aWw(this)};
var djw=function(L){L.shoppingTimelyShelfViewModel&&(L.isShelfVisible=!0,_.SS.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},aWw=function(L){L.shoppingTimelyShelfViewModel&&(L.isShelfVisible=!1,_.SS.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},IWM=function(L){var Z,N,S,u,T;
return _.b(function(W){if(W.nextAddress==1)return W.yield(L.JSC$23330_watchApi.playerApi,2);Z=W.yieldResult;if(L.cueRanges)for(N=_.O(L.cueRanges),S=N.next();!S.done;S=N.next())u=S.value,u.id&&(T="shopping_timely_shelf"+u.id,Z.removeCueRange(T));L.JSC$23330_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});aWw(L);L.shoppingTimelyShelfViewModel=void 0;L.cueRanges=void 0;L.variantsMap=void 0;L.isSeeking=!1;L.activeCueId=void 0;_.w7(W)})};var Jq6=function(L){_.ag.call(this);var Z=this;this.JSC$23337_watchApi=L;L=_.hK(_.Pv(),_.Sgt,function(){PBY(Z)});
this.addOnDisposeCallback(L);L=_.hK(_.Pv(),_.RZt,function(){PBY(Z)});
this.addOnDisposeCallback(L);pB9(this);zZ8(this);mjG()};
_.f(Jq6,_.ag);var pB9=function(L){var Z=function(S){_.Pv().dispatch(_.DTV(S.matches))},N=window.matchMedia("(max-width: "+(999+_.fr())+"px)");
N.addListener(Z);L.addOnDisposeCallback(function(){N.removeListener(Z)});
Z(N)},zZ8=function(L){L.JSC$23337_watchApi.registerActionHandler("yt-window-resized",function(){mjG()});
L.addOnDisposeCallback(function(){L.JSC$23337_watchApi.unregisterActionHandler("yt-window-resized")})},mjG=function(){var L=_.tz();
_.Pv().dispatch(_.XK({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:L.width,height:L.height}}}))},PBY=function(L){var Z;
_.b(function(N){if(N.nextAddress==1)return N.yield(L.JSC$23337_watchApi.playerApi,2);Z=N.yieldResult;Z.setSize(NaN,NaN);_.w7(N)})};var CBY=function(L){_.ag.call(this);var Z=_.GR().resolve(_.eB);n6t(Z,L.getElement("PLAYER_CONTAINER"),L.getElement("BELOW_THE_PLAYER"),L.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var N=L.getElement("PLAYER_CONTAINER"),S=L.getElement("BELOW_THE_PLAYER"),u=L.getElement("SECONDARY");Z.isLockupToWatchTransitionEnabled&&(N&&_.fl(Z.viewTransitionCoordinator,N),S&&_.fl(Z.viewTransitionCoordinator,S),u&&_.fl(Z.viewTransitionCoordinator,u))})};
_.f(CBY,_.ag);_.P_=function(L){_.zO.call(this);var Z=this;this.rootElement=L;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return Z.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(N){Z.initOrDisposeActiveModules(N)}));
this.onAttached()};
_.f(_.P_,_.zO);_.t=_.P_.prototype;_.t.getRoot=function(){return this.rootElement};
_.t.getElement=function(L){return this.rootElement.getElement(L)};
_.t.setPlayerResponse=function(L){this.playerResponse=L;this.publish("PLAYER_RESPONSE_UPDATED",L)};
_.t.getPlayerResponse=function(){return this.playerResponse};
_.t.setWatchNextResponse=function(L){this.watchNextResponse===L?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=L,this.publish("WATCH_NEXT_RESPONSE_UPDATED",L))};
_.t.getWatchNextResponse=function(){return this.watchNextResponse};
_.t.registerActionHandler=function(L,Z){var N=this;if(_.c("web_watch_controller_reg_multiple_handlers_killswitch")){var S={};_.ie(_.SS.getInstance(),(S[L]=Z,S),this.getRoot())}else this.actionHandlers.has(L)||(this.actionHandlers.set(L,[]),S={},_.ie(_.SS.getInstance(),(S[L]=function(){var u=_.CG.apply(0,arguments);return(N.actionHandlers.get(L)||[]).map(function(T){return T.apply(null,_.Pd(u))})},S),this.getRoot())),this.actionHandlers.get(L).push(Z)};
_.t.unregisterActionHandler=function(L){if(_.c("web_watch_controller_reg_multiple_handlers_killswitch")){var Z={};_.ue(_.SS.getInstance(),(Z[L]=!0,Z),this.getRoot())}else(Z=this.actionHandlers.get(L))?(Z.pop(),Z.length===0&&(Z={},_.ue(_.SS.getInstance(),(Z[L]=!0,Z),this.getRoot()),this.actionHandlers.delete(L))):_.Q7(new _.sr("Attempted to unregister an action handler which is not registered.",L))};
_.t.addPageDisposeJob=function(L){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.YGt(this.rootElement.pageDisposeJobs,L)};
_.t.removePageDisposeJob=function(L){this.rootElement.pageDisposeJobs&&_.zB(this.rootElement.pageDisposeJobs,L)};
_.t.dispatchEvent=function(L,Z){_.QT(this.rootElement,L,Z)};
_.t.provideRenderingData=function(L,Z){this.rootElement.provideRenderingData(L,Z)};
_.t.scrollWatchTo=function(L,Z){var N;(N=this.watchScrollManager)==null||N.scrollWatchTo(L,Z)};
_.t.focusOnPlayer=function(){var L=this.getElement("PLAYER");_.bN(L,function(){if(L&&L.firstElementChild){var Z=L.querySelector(".html5-video-player");Z&&(_.Wo(_.GR().resolve(_.MV)),Z.focus())}else _.Q7(Error("ap"))})};
_.t.subscribeToActiveChanged=function(L,Z){Z=Z===void 0?!0:Z;var N=_.hK(_.Pv(),_.$$V,function(S){L(S)});
Z&&L(_.$$V(_.Pv().getState()));return N};
_.t.isActive=function(){return _.$$V(_.Pv().getState())};
_.t.onAttached=function(){var L=_.c("external_fullscreen");_.c("use_unified_flag_accessor")&&(L=_.GR().resolve(_.F0v).retriever.getFlag(_.lkL));(L||_.Ah("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var rq6=function(L){return L.getRoot().is==="ytd-watch-flexy"||L.getRoot().is==="ytd-watch-grid"},pa=function(L){return L.getRoot().is==="ytd-watch-fixie"};
_.P_.prototype.initPersistentModules=function(){if(pa(this)||rq6(this)&&_.c("kevlar_watch_flexy_theater_manager")){var L=new _.rQn(this);_.Ky(this,L)}L=new _.d2t(this);_.Ky(this,L);L=new _.It(this);_.Ky(this,L);L=new _.U2q(this);_.Ky(this,L);L=new _.j0(this);_.Ky(this,L);L=new _.db(this);_.Ky(this,L);if(pa(this)||rq6(this)&&_.c("kevlar_watch_flexy_playlist_manager"))L=new _.Mzf(this),_.Ky(this,L);_.c("web_thumbnail_to_watch_transition")&&(L=new CBY(this),_.Ky(this,L))};
_.P_.prototype.initOrDisposeActiveModules=function(L){L?(this.watchScrollManager=new _.ED(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Adn(this)),_.c("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new Ujn(this)),this.activeModules.push(new _.XMf(this)),pa(this)&&this.activeModules.push(new Jq6(this)),this.activeModules.push(new _.lWG(this)),this.activeModules.push(new _.zbw(this)),(pa(this)||_.c("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.qV6(this)),this.activeModules.push(new _.ZqY(this)),(pa(this)||_.c("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.o6n(this)),(pa(this)||_.c("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.Ov8(this)),_.c("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.gP9(this),this.activeModules.push(this.watchCinematicManager)),_.c("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.uKf(this)),_.c("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.ebw(this)),L=_.c("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.c("kevlar_watch_flexy_comments_manager")&&!L&&this.activeModules.push(new _.Kg9(this)),_.c("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.bHf(this)),this.activeModules.push(new _.Lgn(this)),this.activeModules.push(new _.B08(this)),_.c("web_enable_timely_actions")&&this.activeModules.push(new _.ivM(this)),_.c("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.kct(this)),_.c("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.D7q(this)),_.c("web_fullscreen_components")&&this.activeModules.push(new _.SU7(this)),_.c("web_player_rtr_ctrls")&&this.activeModules.push(new _.wXM(this)),_.c("enable_creator_chatbot")&&this.activeModules.push(new yqM(this))):(_.VL(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.P_.prototype.disposeInternal=function(){_.zO.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.gd.Object.defineProperties(_.P_.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var FY7,iw,$qn,Dq7,vVV,oVV,lMn,RMi;FY7=function(){var L=_.WB();L.info||(L.info={});return L.info};
iw=function(L){return Math.round(_.gR()+L)};
$qn=function(){var L;if(_.c("csi_use_performance_navigation_timing")){var Z,N,S,u=_.Mj==null?void 0:(L=_.Mj.getEntriesByType)==null?void 0:(Z=L.call(_.Mj,"navigation"))==null?void 0:(N=Z[0])==null?void 0:(S=N.toJSON)==null?void 0:S.call(N);u?(u.requestStart=iw(u.requestStart),u.responseEnd=iw(u.responseEnd),u.redirectStart=iw(u.redirectStart),u.redirectEnd=iw(u.redirectEnd),u.domainLookupEnd=iw(u.domainLookupEnd),u.connectStart=iw(u.connectStart),u.connectEnd=iw(u.connectEnd),u.responseStart=iw(u.responseStart),
u.secureConnectionStart=iw(u.secureConnectionStart),u.domainLookupStart=iw(u.domainLookupStart),u.isPerformanceNavigationTiming=!0,L=u):L=_.Mj.timing}else L=_.c("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Mj.timing)):_.Mj.timing;return L};
Dq7=function(){if(_.Mj.getEntriesByType){var L=_.Mj.getEntriesByType("paint");if(L=_.hx(L,function(N){return N.name==="first-paint"}))return iw(L.startTime)}var Z;
_.c("csi_use_performance_navigation_timing")?Z=_.Mj.getEntriesByType("first-paint")[0].startTime:Z=_.Mj.timing.msFirstPaint;return Z?Math.max(0,Z):0};
vVV=function(){var L=window.location.protocol,Z=_.Mj.getEntriesByType("resource");Z=_.A9(Z,function(N){return N.name.indexOf(L+"//fonts.gstatic.com/s/")===0});
(Z=lMn(Z,function(N,S){return S.duration>N.duration?S:N}))&&Z.startTime>0&&Z.responseEnd>0&&(_.G6("wffs",iw(Z.startTime)),_.G6("wffe",iw(Z.responseEnd)))};
oVV=function(L,Z){L=document.querySelector(L);if(!L)return!1;var N="",S=L.nodeName;S==="SCRIPT"?(N=L.src,N||(N=L.getAttribute("data-timing-href"))&&(N=window.location.protocol+N)):S==="LINK"&&(N=L.href);_.ZS(document)&&L.setAttribute("nonce",_.ZS(document));return N?(L=_.Mj.getEntriesByName(N))&&L[0]&&(L=L[0],N=_.gR(),_.G6("rsf_"+Z,N+Math.round(L.fetchStart)),_.G6("rse_"+Z,N+Math.round(L.responseEnd)),L.transferSize!==void 0&&L.transferSize===0)?!0:!1:!1};
_.cf7=function(L,Z){_.B8(function(){_.bB("").info.actionType=L;Z&&_.Qc("TIMING_AFT_KEYS",Z);_.Qc("TIMING_ACTION",L);var N=_.jw_(_.X7("TIMING_INFO",{}));Object.keys(N).length>0&&_.FK(N);N={isNavigation:!0,actionType:_.KZG(_.X7("TIMING_ACTION"))};var S=_.X7("PREVIOUS_ACTION");S&&(N.previousAction=_.KZG(S));if(S=_.X7("CLIENT_PROTOCOL"))N.httpProtocol=S;if(S=_.X7("CLIENT_TRANSPORT"))N.transportProtocol=S;(S=_.RH())&&S!=="UNDEFINED_CSN"&&(N.clientScreenNonce=S);S=_.swL();if(S===1||S===-1)N.isVisible=!0;
S=_.$fx().loadType==="cold";var u=FY7();S||(S=u.yt_lt==="cold");if(S){N.loadType="cold";S=FY7();u=$qn();var T=_.gR(),W=_.X7("CSI_START_TIMESTAMP_MILLIS",0);W>0&&!_.c("embeds_web_enable_csi_start_override_killswitch")&&(T=W);T&&(_.G6("srt",u.responseStart),S.prerender!==1&&_.Ufs(T));S=Dq7();S>0&&_.G6("fpt",S);S=$qn();S.isPerformanceNavigationTiming&&_.FK({performanceNavigationTiming:!0},void 0);_.G6("nreqs",S.requestStart,void 0);_.G6("nress",S.responseStart,void 0);_.G6("nrese",S.responseEnd,void 0);
S.redirectEnd-S.redirectStart>0&&(_.G6("nrs",S.redirectStart,void 0),_.G6("nre",S.redirectEnd,void 0));S.domainLookupEnd-S.domainLookupStart>0&&(_.G6("ndnss",S.domainLookupStart,void 0),_.G6("ndnse",S.domainLookupEnd,void 0));S.connectEnd-S.connectStart>0&&(_.G6("ntcps",S.connectStart,void 0),_.G6("ntcpe",S.connectEnd,void 0));S.secureConnectionStart>=_.gR()&&S.connectEnd-S.secureConnectionStart>0&&(_.G6("nstcps",S.secureConnectionStart,void 0),_.G6("ntcpe",S.connectEnd,void 0));_.Mj&&"getEntriesByType"in
_.Mj&&vVV();S=[];if(document.querySelector&&_.Mj&&_.Mj.getEntriesByName)for(var V in RMi)RMi.hasOwnProperty(V)&&(u=RMi[V],oVV(V,u)&&S.push(u));if(S.length>0)for(N.resourceInfo=[],V=_.O(S),S=V.next();!S.done;S=V.next())N.resourceInfo.push({resourceCache:S.value})}_.FK(N);N=_.Va();N.preLoggedGelInfos||(N.preLoggedGelInfos=[]);V=N.preLoggedGelInfos;N=_.ls1();S=void 0;for(u=0;u<V.length;u++)if(T=V[u],T.loadType){S=T.loadType;break}if(_.$fx().loadType==="cold"&&(N.loadType==="cold"||S==="cold")){S=_.Dfh();
u=_.Va();u=u.gelTicks?u.gelTicks:u.gelTicks={};for(var M in S)if(!(M in u))if(typeof S[M]==="number")_.G6(M,_.$6(M));else if(_.c("log_repeated_ytcsi_ticks"))for(T=_.O(S[M]),W=T.next();!W.done;W=T.next())W=W.value,_.G6(M.slice(1),W);M={};S=!1;V=_.O(V);for(u=V.next();!u.done;u=V.next())S=u.value,_.kP(N,S),_.kP(M,S),S=!0;S&&_.FK(M)}_.zof(!0);M=_.X7("TIMING_ACTION");_.LZ("ytglobal.timingready_")&&M&&_.Bft()&&_.pbA()&&_.ass()})()};
lMn=function(L,Z){return Array.prototype.reduce.call(L,Z,{duration:0})};
RMi={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"};var nVw={};nVw.YtVisibilityRootBehavior=[_.WNt.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.W4(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.X7("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var L=_.X7("INNERTUBE_CLIENT_NAME")!=="WEB";_.c("kevlar_use_vimio_behavior")&&L&&_.Y5l()}}];_.uw={};_.uw.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(L){L.detail.contextProvider=this;L.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
nVw.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.hS();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(L){var Z=this;this.pageCount+=1;_.c("kevlar_use_vimio_behavior")&&(_.X7("INNERTUBE_CLIENT_NAME")==="WEB"?_.ro.addJob(function(){Z.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(L)},
loadPage_:function(L){this.data=L},
ytPageBehaviorActiveObserver_:function(L){var Z=this;_.c("kevlar_use_vimio_behavior")&&(L?_.X7("INNERTUBE_CLIENT_NAME")==="WEB"?_.ro.addJob(function(){Z.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(L){if(!this.setScrollTopJobId_){var Z=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){Z.setScrollTopJobId_=0;var N=_.GR().resolve(_.gv(_.MV));N&&_.Wo(N);this.getPageScrollingElement().scrollTop=L}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.yN(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var GiM;var Se=function(){var L=_.e.apply(this,arguments)||this;L.playerListenerConfig=null;L.actionMap={"yt-show-watch-page-survey":"openSurvey"};return L};
_.f(Se,_.e);_.t=Se.prototype;_.t.dataChanged=function(){var L=this,Z=_.CV();Z&&Z.getPlayerPromise().then(function(S){L.maybeRemovePlayerListeners(S)});
var N=this.data&&this.data.survey;N&&((N=(N=N.singleOptionSurveyRenderer||N.checkboxSurveyRenderer||N.multiStageSurveyRenderer)&&N.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(Z,N):this.openSurvey())};
_.t.triggerWatchPageSurvey=function(L,Z){var N=this,S,u,T,W,V,M,G,D,l;return _.b(function(v){if(v.nextAddress==1)return L?v.yield(L.getPlayerPromise(),2):v.return();N.player=v.yieldResult;if(!N.player)return v.return();S={};u=_.O(Z);for(T=u.next();!T.done;T=u.next())W=T.value,V=_.O(N.createEventListenerPair(W)),M=V.next().value,G=V.next().value,D=M,l=G,D&&l&&(S[D]=l,N.ytPlayerListenerBehavior.listenToPlayerEvent(N.player,D,l));N.playerListenerConfig=S;_.w7(v)})};
_.t.createEventListenerPair=function(L){var Z=L.playbackEventTrigger;return Z?this.handlePlaybackTrigger(Z):(L=L.watchTimeTrigger)?this.handleWatchTimeTrigger(L):[void 0,void 0]};
_.t.handleWatchTimeTrigger=function(L){var Z=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var N=L.videoWatchFraction,S=L.watchTimeSec;return S&&N?["onVideoProgress",function(){Z.player&&Z.isWatchTimeConditionMet(Z.player,N,S)&&Z.showSurvey()}]:[void 0,
void 0]};
_.t.isWatchTimeConditionMet=function(L,Z,N){var S=L.getProgressState(),u=S.current-this.lastKnownPlaybackPosition;u<5&&(this.accumulatedMediaTime+=u);this.lastKnownPlaybackPosition=S.current;S=Math.round(this.accumulatedMediaTime/S.duration*1E3)/1E3;return L.getPresentingPlayerType&&L.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>N||S>Z)};
_.t.handlePlaybackTrigger=function(L){var Z=this;L=L.playbackEvent;if(L==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var N="onStateChange";var S=function(u){u===0&&Z.showSurvey()}}else L==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(N="onVideoProgress",S=function(u){Z.player&&Z.player.getPresentingPlayerType&&Z.player.getPresentingPlayerType()===1&&u&&Z.showSurvey()}):L==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(N="onAdEnd",S=this.showSurvey);
return[N,S]};
_.t.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.t.openSurvey=function(){var L=this,Z=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.mJg(!!Z));_.ro.addJob(function(){L.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:Z}})},0,0)};
_.t.maybeRemovePlayerListeners=function(L){if(this.playerListenerConfig){for(var Z=_.O(Object.keys(this.playerListenerConfig)),N=Z.next();!N.done;N=Z.next())N=N.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(L,N,this.playerListenerConfig[N]);this.playerListenerConfig=null}};
Se.prototype.dataChanged=Se.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.W0),_.Q("design:type",Object)],Se.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.y(_.No.YtPlayerListenerBehavior),_.Q("design:type",_.SG)],Se.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Se.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.y(_.CD),_.Q("design:type",Object)],Se.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Se.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Se.prototype,"playerListenerConfig",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],Se.prototype,"lastKnownPlaybackPosition",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],Se.prototype,"accumulatedMediaTime",void 0);_.r([_.Y(),_.Q("design:type",Object)],Se.prototype,"player",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Se.prototype,"dataChanged",null);_.r([_.P({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Se);
_.m(Se,"ytd-survey-trigger-renderer",function(){if(GiM!==void 0)return GiM;var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return GiM=L},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Sn8=new _.S5("replaceFeedContentAction");var iG8;var utV;var Twq=function(){return _.e.apply(this,arguments)||this};
_.f(Twq,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Twq.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Twq.prototype,"data",void 0);_.r([_.P({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],Twq);
_.m(Twq,"ytd-sub-feed-option-renderer",function(){if(utV!==void 0)return utV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return utV=L},{mode:1});var tnw;var Hf=function(){return _.e.apply(this,arguments)||this};
_.f(Hf,_.e);Hf.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Hf.prototype,"ytRendererStamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Hf.prototype,"data",void 0);_.r([_.P({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Hf);
_.m(Hf,"ytd-sub-feed-selector-renderer",function(){if(tnw!==void 0)return tnw;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return tnw=L},{mode:1});var Bf=function(){return _.e.apply(this,arguments)||this};
_.f(Bf,_.e);
Bf.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}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Bf.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Bf.prototype,"data",void 0);_.r([_.P({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Bf);
_.m(Bf,"ytd-browse-feed-actions-renderer",function(){if(iG8!==void 0)return iG8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return iG8=L},{mode:1});var OG9;var WYt;var xx=function(){return _.e.apply(this,arguments)||this};
_.f(xx,_.e);xx.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],xx.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],xx.prototype,"data",void 0);_.r([_.P({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],xx);
_.m(xx,"ytd-mini-channel-renderer",function(){if(WYt!==void 0)return WYt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return WYt=L},{mode:1});var Vnq;var qF=function(){return _.e.apply(this,arguments)||this};
_.f(qF,_.e);qF.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],qF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],qF.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],qF);
_.m(qF,"ytd-vertical-channel-section-renderer",function(){if(Vnq!==void 0)return Vnq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Vnq=L},{mode:1});var LU=function(){return _.e.apply(this,arguments)||this};
_.f(LU,_.e);LU.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],LU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],LU.prototype,"data",void 0);_.r([_.P({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],LU);
_.m(LU,"ytd-browse-secondary-contents-renderer",function(){if(OG9!==void 0)return OG9;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
return OG9=L},{mode:1});var bG7;var Zv=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};L.notActive=!1;L.isConstrainedList=!1;return L};
_.f(Zv,_.e);_.t=Zv.prototype;
_.t.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(L){var Z;return(L==null?void 0:(Z=L.webComponentHint)==null?void 0:Z.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}}}}};
_.t.getPath=function(L,Z){var N="data.tabs.#"+Z+".";L.tabs[Z].tabRenderer?N+="tabRenderer.":L.tabs[Z].expandableTabRenderer&&(N+="expandableTabRenderer.");return N+"content.sectionListRenderer"};
_.t.computeDisplayedContent=function(L){this.unlinkPaths("content");if(L&&L.tabs)for(var Z=L.tabs.length,N=0;N<Z;N++){var S=L.tabs[N].tabRenderer||L.tabs[N].expandableTabRenderer;if(S.selected&&S.content)return this.linkPaths("content",this.getPath(L,N)),S.content}return null};
_.t.computeHasSecondaryColumnData=function(L){return!!L&&!!L.secondaryContents};
_.t.onRetrieveLocation=function(L,Z){Z.locationRetrieved(Z.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);L.stopPropagation()};
_.t.onYtServiceRequestSent=function(L,Z){_.c("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(Z)};
_.t.onYtServiceRequestCompleted=function(L,Z){_.c("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(Z)};
_.t.onReplaceFeedContentAction=function(L){if(!_.c("replace_feed_content_action_killswitch")&&!this.notActive){var Z;(L=(Z=_.n(L,Sn8))==null?void 0:Z.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(L)}};
_.t.handleServiceRequestActions=function(L){if(L=L.actions){L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var N=void 0;((N=_.n(Z,Sn8))==null?0:N.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.n(Z,Sn8).items)}}};
Zv.prototype.onYtServiceRequestCompleted=Zv.prototype.onYtServiceRequestCompleted;Zv.prototype.onYtServiceRequestSent=Zv.prototype.onYtServiceRequestSent;Zv.prototype.onRetrieveLocation=Zv.prototype.onRetrieveLocation;_.r([_.y(_.AE),_.Q("design:type",Object)],Zv.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Zv.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Zv.prototype,"data",void 0);_.r([_.Y({computed:"computeDisplayedContent(data)"}),_.Q("design:type",Object)],Zv.prototype,"content",void 0);
_.r([_.Y({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Zv.prototype,"hasSecondaryColumnData",void 0);_.r([_.Y({value:function(){return window.outerHeight>1024?3:2}}),
_.Q("design:type",Number)],Zv.prototype,"initialCount",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],Zv.prototype,"pageSubtype",void 0);_.r([_.TX("ytd-section-list-renderer"),_.Q("design:type",Object)],Zv.prototype,"listRenderer",void 0);_.r([_.Y(),_.Q("design:type",Object)],Zv.prototype,"notActive",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Zv.prototype,"isConstrainedList",void 0);
_.r([_.Y(),_.Q("design:type",String)],Zv.prototype,"responsiveSizing",void 0);_.r([_.SA("yt-retrieve-location"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],Zv.prototype,"onRetrieveLocation",null);_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],Zv.prototype,"onYtServiceRequestSent",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],Zv.prototype,"onYtServiceRequestCompleted",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Zv);
_.m(Zv,"ytd-two-column-browse-results-renderer",function(){if(bG7!==void 0)return bG7;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return bG7=L},{mode:2});
}catch(e){_._DumpException(e)}
try{
var ITG=function(L){if((L==null?void 0:L.value)===void 0||L==null||!L.unit)return"initial";a:{switch(L.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var Z="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":Z="%";break a}Z=void 0}return Z?""+L.value+Z:"initial"};_.CY(_.p(function(L){var Z=L.data;L=_.O(_.nh(!1,void 0,"leWY9b"));var N=L.next().value,S=L.next().value;_.m0(function(){_.SS.getInstance().triggerAction("yt-request-timely-shelf-state")});
_.ie(_.SS.getInstance(),{"yt-hide-shopping-timely-shelf":function(){S(!1)},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){S(!0)})}});
var u=function(){var T;return((T=Z().image)==null?void 0:T.height)||40};
L={};return _.g("yt-shopping-timely-shelf-content-view-model",{el:_.P9(_.cT(function(){return Z().rendererContext})),
class:_.qg("ytShoppingTimelyShelfContentViewModelHost",(L.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(Z().image||Z().avatar||Z().line1)&&N()},L)),
style:_.u4({"--shopping-timely-shelf-content-padding-top":function(){var T;return ITG((T=Z().padding)==null?void 0:T.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var T;return ITG((T=Z().padding)==null?void 0:T.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var T;return ITG((T=Z().padding)==null?void 0:T.start)},
"--shopping-timely-shelf-content-padding-end":function(){var T;return ITG((T=Z().padding)==null?void 0:T.end)},
"--yt-shopping-timely-shelf-background-color":function(){return Z().backgroundColor!==void 0?_.Rs(Z().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var T,W;return((W=(T=Z().image)==null?void 0:T.cornerRadius)!=null?W:0)+"px"}})},_.g(_.F,{cond:function(){var T;
return(T=Z().image)==null?void 0:T.image},
then:function(T){return _.g(_.ji,{preserveHeight:!0,preserveWidth:!0,height:u,data:T,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.g(_.bj,{data:function(){return Z().avatar}},{avatarViewModel:_.JO}),_.g("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.g(_.bj,{data:function(){return Z().line1}},{shoppingContentLineViewModel:function(T){return _.g(_.N0,{data:T.data})}}),_.g(_.bj,{data:function(){return Z().line2}},{shoppingContentLineViewModel:function(T){return _.g(_.N0,
{data:T.data})}})),_.g("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.g(_.bj,{data:function(){var T;
return(T=Z().button)!=null?T:[]}},{buttonViewModel:function(T){var W=T.data;
return _.g(_.$X,{data:W,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(V){W().onTap&&V.stopPropagation()}})}})))},"ao"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.LK}});_.de9={};
_.de9.YtdWatchBehavior=[_.B.YtRendererBehavior,_.No.YtPlayerListenerBehavior,_.WS.YtRendererstamperBehavior,_.nK.YtActionHandlerBehavior,_.uw.YtPageBehavior,_.o3.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 _.Ah("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.c("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 _.Ah("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 _.c("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.c("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 _.lQ("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.lQ("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.c("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("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 _.c("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.c("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.c("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("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 _.c("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("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 _.c("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 _.c("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var L={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:_.$y(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.$y(["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"||_.c("swa_prov_panels_ks")?L.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(L.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},L.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return L},
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 L=this;this.watchController=void 0;this.pageDisposeJobs=[function(){L.showMetadataPlaceholder_()},
function(){_.c("web_watch_dont_clear_comments")||L.clearComments_()},
function(){L.clearPlayerAds_()},
function(){L.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;_.c("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.c("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.lT8(function(){return _.JS(L)},this.hostElement);
this.pageDisposeJobs.push(function(){L.youThereManager_.reset()});
_.c("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){L.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.$a;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;_.c("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));_.c("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Nd(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(L){L&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:L}),L.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(L){_.c("kevlar_watch_flexy_theater_manager")&&(this.theater=L,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(L){!_.c("kevlar_watch_while_v2")&&!_.c("web_watch_pip")||L||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(L){this.active!==void 0&&(this.fullscreen=L,_.c("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(L){this.active!==void 0&&(_.QT(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.c("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(L>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(L){this.initCsi_();this.updatePageData_(L)},
updatePageData_:function(L){var Z=this;if(L)if(this.data===L){this.onPageLoadWithSameData_();var N;(N=this.watchController)==null||N.setWatchNextResponse(this.data)}else this.data=L;this.playlist&&_.lB({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Rq("nw");this.loading=!1;_.sI(_.ro,function(){Z.initDclkstatus_();var S,u=((S=Z.player)==null?void 0:S.getVideoData().cpn)||"";_.S9i(function(T,W){_.Brm(T,W,u)})})},
onPageLoadWithSameData_:function(){_.c("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 L=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!L);this.set("loadingData.playlistLoading",L&&L!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),L=this.watchNextSkeletonEl_.firstElementChild;L;)L.classList.remove("hidden"),L=L.nextElementSibling;if(_.c("kevlar_watch_frame0_loading_state")){var Z,N,S;L=(Z=this.loadingData)==null?void 0:(N=Z.endpoint)==null?void 0:(S=N.watchEndpoint)==null?void 0:S.videoId;var u;L&&(u="https://i.ytimg.com/vi/"+L+"/frame0.jpg");_.QJ(this.hostElement).querySelector("#player").style.backgroundImage=u?"url("+u+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var L=_.QJ(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&L&&(L.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var Z,N;(N=(Z=this.watchMetadata).updateSentimentBarWidth)==
null||N.call(Z);var S,u;(u=(S=this.watchMetadata).resize)==null||u.call(S)}_.c("kevlar_watch_frame0_loading_state")&&(_.QJ(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(L){var Z=_.QJ(this.hostElement).querySelector(L);Z?_.Cv(Z,!1):_.Q7(new _.sr("Overscroll monitor not found for component: ",L))},
removeSplitScrollMouseTrap:function(L){var Z=_.QJ(this.hostElement).querySelector(L);Z?_.r0(Z):_.Q7(new _.sr("Disposal component for  overscroll monitoring not found: ",L))},
onLoadingChanged_:function(L){L?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.c("web_thumbnail_to_watch_transition")&&!_.hl0||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.c("web_thumbnail_to_watch_transition")&&!_.hl0||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(L){var Z=this;L?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.ro.addLowPriorityJob(function(){Z.onWindowResized_(_.tz(!0))})},
updateTheaterModeState_:function(L){if(!_.c("kevlar_watch_flexy_theater_manager")){L=L||this.fullWindowMode_;if(this.theater!==void 0||L)this.theater=L;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();L&&_.oRG()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var L=this.fullBleedPlayer?_.QJ(this.hostElement).querySelector("#player-full-bleed-container"):_.QJ(this.hostElement).querySelector("#player-container-inner");var Z=this.getPlayerContainer(),N=_.c("kevlar_watch_while_v2")||_.c("web_watch_pip");Z.parentElement!==L&&(N&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.JS(this).appendTo(L,Z))},
updateErrorScreenLocation:function(){var L=_.QJ(this.hostElement).querySelector("#error-screen"),Z=this.fullBleedPlayer?_.QJ(this.hostElement).querySelector("#player-full-bleed-container"):_.QJ(this.hostElement).querySelector("#player");L.parentElement!==Z&&Z.appendChild(L)},
deactivateMiniplayerAndResetPlayer:function(){var L=this;return _.b(function(Z){if(Z.nextAddress==1)return Z.yield(_.GR().resolve(_.yk).deactivate(),2);L.updatePlayerLocation();_.w7(Z)})},
updateCinematicsLocation:function(){var L=this.getElement("CINEMATICS");if(L){var Z=this.getCinematicsLocationContainer();L.parentElement!==Z&&Z.appendChild(L)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.QJ(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.QJ(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(L,Z,N){var S=document.documentElement.hasAttribute("dark"),u=S&&_.c("web_cinematic_theater_mode"),T=S&&_.c("web_cinematic_fullscreen");S=!S&&this.cinematicLightTheme;return N||L&&u||Z&&T||(Z||L)&&S},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var L=this,Z;(Z=this.watchController)==null||Z.setWatchNextResponse(this.data);_.c("kevlar_watch_flexy_comments_manager")||this.initComments_();_.c("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.GR().resolve(_.Nv).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.c("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.ro.addLowPriorityJob(function(){_.Ad(L.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.c("web_watch_start_chat_in_theater_mode")){var N,S,u;if((N=this.data)==null?0:(S=N.contents)==null?0:(u=S.twoColumnWatchNextResults)==null?0:u.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var T,W;((T=this.data)==null?0:(W=T.contents)==null?0:W.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(L){var Z;(Z=this.watchController)==null||Z.setPlayerResponse(this.playerData);L&&L.playabilityStatus&&(Z=this.isVideoPlayable_(L.playabilityStatus,this.getPlayerOverlays_(this.data)),L=this.isLiveStreamOffline_(L.playabilityStatus),Z&&!L||_.bN(this,function(){_.Rq("pbu")}));
this.setPlayerAds_();_.Ad(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(L,Z){if((_.c("kevlar_watch_while_v2")||_.c("web_watch_pip"))&&this.playerData&&Z)return this.playerData.videoDetails},
watchPageActiveChanged_:function(L){_.Pv().dispatch(_.K2n(this.active));L?this.activate_():this.deactivate_()},
attached:function(){var L=this;this.watchController=new _.P_(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);_.c("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var Z=_.JS(this);_.c("kevlar_disable_prepare_player")||
Z.preparePlayer();_.c("kevlar_watch_flexy_playlist_manager")||_.GR().resolve(_.Nv).setPlayer(Z);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();Z={"--ytd-watch-flexy-scrollbar-width":_.fr()+"px"};this.is==="ytd-watch-grid"&&(_.Pv().dispatch(_.XK({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),Z["--ytd-watch-flexy-sidebar-width"]=_.W5M+"px",Z["--ytd-watch-grid-horizontal-page-margins"]=_.sz+"px",Z["--ytd-watch-grid-columns-top-margins"]=
_.Tv9+"px",Z["--ytd-watch-grid-min-player-height-medium"]="360px");!_.lQ("kv_pl_mx_sz_ks")&&_.lQ("kevlar_watch_max_player_width")&&(Z["--ytd-watch-flexy-max-player-width-wide-screen"]=_.VZf+"px");_.lQ("kevlar_watch_flexy_metadata_height")&&(Z["--ytd-watch-flexy-space-below-player"]=_.bZn+"px");this.safeUpdateStyles(Z);_.c("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Vt(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return L.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.QJ(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var L=_.fr(),Z=_.j1+L,N=Z;this.fixedPanels&&(Z+=_.W5M);var S=657+L;L=1327+L;_.QJ(this.hostElement).querySelector("#two-column-query").query="(min-width: "+Z+"px)";_.QJ(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(S+"px), (min-height: 630px) and (min-width: ")+(Z+"px) and (max-width: ")+(L+"px)");_.QJ(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(L+"px)");
_.QJ(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+N+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var L=_.QJ(this.hostElement).querySelector("#miniplayer-bar").firstChild,Z=this.squeezeback&&!_.c("web_watch_squeezeback_player_size_killswitch");return L&&L.active||this.theater||_.c("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||Z||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.wF(NaN,NaN):_.Okn(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Okn(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.W4(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var L=this;this.onWindowResized_(_.tz());_.c("browse_skeleton_removal_on_watch_killswitch")||_.Ah("IS_SHELL_LOAD")&&_.gVt();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var Z=_.JS(this);Z.addEventListener("yt-player-updated",_.Nd(this,this.onPlayerUpdated_));Z.getPlayerPromise().then(function(N){L.playerApiReady_(N)});
_.c("kevlar_watch_flexy_playlist_manager")||(Z=_.GR().resolve(_.Nv),_.c("kevlar_watch_observe_playlist_navigations_killswitch")&&Z.addEventListener("yt-navigate",_.Nd(this,this.onYtNavigate_)),Z.setPlaylistComponent(_.QJ(this.hostElement).querySelector("#playlist")),Z.addEventListener("yt-playlist-data-updated",_.Nd(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.ro.addLowPriorityJob(function(){_.QT(L.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.JS(this).removeEventListener("yt-player-updated",_.Nd(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.c("kevlar_watch_flexy_playlist_manager")){var L=_.GR().resolve(_.Nv);_.c("kevlar_watch_observe_playlist_navigations_killswitch")&&L.removeEventListener("yt-navigate",_.Nd(this,this.onYtNavigate_));
L.cancelVideoSkip();L.removeEventListener("yt-playlist-data-updated",_.Nd(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.QT(this.hostElement,"yt-autonav-pause-player",!1);L=_.mg();_.c("kevlar_exit_fullscreen_leaving_watch")&&L&&_.Jd(L)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(L){this.player&&this.player.updateVideoData({rvs:L.rvs})},
getPageContents:function(L){return L&&L.contents&&L.contents.twoColumnWatchNextResults&&L.contents.twoColumnWatchNextResults.results&&L.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(L){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",L)},
onRetrieveLocation_:function(L,Z){Z.hasComments?Z.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):Z.locationRetrieved("/related_ajax",void 0);L.stopPropagation()},
onSubscriptionChanged_:function(L,Z){this.player&&(Z?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.cf7("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.QJ(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.QJ(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(L){this.player=L;this.setPlayerState(L.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.c("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.c("kevlar_unified_player")||_.c("kevlar_player_new_bootstrap_adoption"))&&_.Ui()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(L,Z){Z=Z===void 0?!0:Z;_.mg()&&_.c("external_fullscreen")&&_.Jd(document.documentElement);this.theaterRequested_=L;Z&&_.Ie("wide",L?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.XJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.QT(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(L){_.Xv(L,typeof this.player),this.player&&_.Xv(L,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var L;((L=this.player)==null?0:L.isFullscreen())?this.player.toggleFullscreen():_.XJ(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(L,Z){return this.loading?Z:!!Object.keys(L).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(L){if(L){L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.youThereRenderer&&_.RRw(this.youThereManager_,Z.youThereRenderer)}},
setPlaylistData_:function(L){return L||{}},
userEngagementConfigDataChanged_:function(L){if(L)if(L.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var Z=this.youThereManager_;_.Fv()<L.lowEngagementThresholdMs||_.fTG(Z,!0)}else L.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.XJ(this.hostElement,"yt-autonav-pause-user-engagement",[L])},
isPlayerUnavailable_:function(L,Z,N){return!!L&&!this.isVideoPlayable_(L,N)&&!Z},
getPlayerOverlays_:function(L){return(L==null?void 0:L.playerOverlays)||null},
isVideoPlayable_:function(L,Z){if(!L)return!1;var N=L.status==="OK"||L.status==="LIVE_STREAM_OFFLINE",S=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",L)||this.get("errorScreen.ypcTrailerRenderer",L);L=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",L);var u;Z=Z==null?void 0:(u=Z.playerOverlayRenderer)==null?void 0:u.gatedActionsOverlayRenderer;return!!N||!!S||!!L||!!Z},
hasWatchNextResponseErrorRenderer:function(L){var Z=this.getPageContents(L),N,S,u,T,W;return!(L==null?0:(N=L.contents)==null?0:(S=N.twoColumnWatchNextResults)==null?0:S.secondaryResults)&&!!((u=Z[0])==null?0:(T=u.itemSectionRenderer)==null?0:(W=T.contents[0])==null?0:W.backgroundPromoRenderer)},
isLiveStreamOffline_:function(L){return L?L.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(L,Z,N){var S=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Z),u=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];u=_.c("web_no_skip_video_on_verification_checks")?(L==null?void 0:L.status)&&u.includes(L.status):L&&L.status==="AGE_CHECK_REQUIRED";var T=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",L);T==void 0&&(T=!0);!N||this.isVideoPlayable_(L,this.getPlayerOverlays_(Z))||
S||u||!T||_.GR().resolve(_.Nv).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.VM9()},
onPlayerFeedbackStartRequest_:function(L){_.XJ(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:L}])},
onPlayerFeedbackArticleRequest_:function(L){_.XJ(this.hostElement,"yt-help-dialog-requested",[L])},
onPlayerYpcContentRequest_:function(){var L,Z,N,S,u,T,W,V,M=((L=this.data)==null?NaN:(Z=L.contents)==null?NaN:(N=Z.twoColumnWatchNextResults)==null?NaN:(S=N.secondaryResults)==null?NaN:(u=S.secondaryResults)==null?NaN:(T=u.offerModule)==null?NaN:(W=T.tvfilmOfferModuleRenderer)==null?NaN:(V=W.actionButtons)==null?NaN:V.length)-1;L=[".offerButton.buttonRenderer.",".actionButtons."+(M>=0?M:0)+".buttonRenderer."];Z=_.O(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(N=Z.next();!N.done;N=Z.next())for(N=N.value,S=_.O(L),u=S.next();!u.done;u=S.next())if(u="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+N+u.value,u=this.get(u+"navigationEndpoint",this.data)||this.get(u+"serviceEndpoint",this.data)||this.get(u+"command",this.data)){_.LY(u,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(L){_.QT(this.hostElement,"yt-autonav-pause-player",L)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(L){L()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(L){switch(L){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(L){switch(L){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.QT(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(L)},
setPlayerState:function(L){_.Pv().dispatch(_.APL(L))},
onPlayerSubscribe_:function(L){_.XJ(this.hostElement,"yt-player-subscribe",[L])},
onPlayerUnsubscribe_:function(L){_.XJ(this.hostElement,"yt-player-unsubscribe",[L])},
onPlayerAdYtShowToast_:function(L){_.XJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:L.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(L){if(L)return L},
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(L){return!_.c("web_watch_move_summary_to_sd")&&!!L},
computeWatchMetadataRefresh:function(){return _.c("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.c("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var L,Z,N,S;this.watchNextSecondaryResults=(L=this.data)==null?void 0:(Z=L.contents)==null?void 0:(N=Z.twoColumnWatchNextResults)==null?void 0:(S=N.secondaryResults)==null?void 0:S.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var L,Z=(L=this.data)==null?void 0:L.engagementPanels;if(Z==null?0:Z.length){L=null;Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next()){N=N.value;var S=void 0;if(((S=N.engagementPanelSectionListRenderer)==null?void 0:S.targetId)==="engagement-panel-structured-description"){L=N;break}}var u,T,W;L=(u=L)==null?void 0:(T=u.engagementPanelSectionListRenderer)==null?void 0:(W=T.content)==null?void 0:W.structuredDescriptionContentRenderer;if(L==null?0:L.items){u=
[];T=_.O(L.items);for(W=T.next();!W.done;W=T.next()){W=W.value;if(!_.c("sd_horizontal_list_show_nav_killswitch")){var V=S=N=Z=L=void 0,M=void 0,G=(L=W.horizontalCardListRenderer)==null?void 0:(Z=L.header)==null?void 0:(N=Z.richListHeaderRenderer)==null?void 0:(S=N.navigationButton)==null?void 0:(V=S.buttonRenderer)==null?void 0:(M=V.command)==null?void 0:M.commandExecutorCommand;G&&G.commands&&(G.commands=G.commands.filter(function(D){return!_.n(D,_.K0w)}))}(!W.expandableVideoDescriptionBodyRenderer&&
!W.videoDescriptionHeaderRenderer||_.c("web_delhi_colorful_sd"))&&u.push(W)}return{items:u}}}},
constructWarning_:function(L){return{text:_.s9(L),type:"WARNING"}},
isPlaShelfEnabled_:function(L){if((this.get("adPlacements",L)||[]).length)return!0;L=this.get("playerAds",L)||[];return!(!L.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",L[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var L=this;_.QT(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var Z=this.getScrollTop()>0;this.gestures_&&(Z?this.gestures_.detach():this.gestures_.attach());Z!==this.showFullerscreenEdu_&&_.c("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=Z,_.JS(this).getPlayerPromise().then(function(N){N.updateFullerscreenEduButtonVisibility(L.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.QT(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var L=this;this.commentsReady=!1;_.ro.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.sI(_.ro,function(){L.setComments_()},1E3)},
setComments_:function(){if(!_.c("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Rq("cmi");_.ro.cancelJob(this.setCommentsJobId_);var L=this.getPageContents(this.data);if(L&&L.length){L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,this.get("itemSectionRenderer.sectionIdentifier",Z)==="comment-item-section"){this.comments=Z.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.QT(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.c("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.c("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Rq("cmc")},
doRemoveComments_:function(){this.comments={};_.c("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.ro.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.ro.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(L,Z){var N=_.n(Z.endpoint,_.so);N&&(!(Z=this.get("data.currentVideoEndpoint.watchEndpoint"))||N.videoId!==Z.videoId||N.playlistId&&N.playlistId!==Z.playlistId||N.index!==void 0&&N.index!==Z.index||typeof N.startTimeSeconds!=="number"||(L.stopPropagation(),this.setScrollTop(0),_.JS(this).getPlayerPromise().then(function(S){var u=N.startTimeSeconds;S.seekTo(u);S.wakeUpControls();u<S.getDuration()&&S.playVideo()})))},
updatePlayerStartTime_:function(){var L=_.XBn();"t"in L&&(L=_.W36(L.t),this.player.seekTo(L,!0))},
updateTitleFromWatchNext:function(L){L=this.getPageContents(L);var Z,N;(L=_.jM(L==null?void 0:(Z=L[0])==null?void 0:(N=Z.videoPrimaryInfoRenderer)==null?void 0:N.title))&&_.QT(this.hostElement,"yt-update-title",L)},
updateTitle_:function(L){L=this.get("videoDetails.title",L)||"";_.QT(this.hostElement,"yt-update-title",L)},
syncWithRemoteVideo_:function(L,Z,N){if(this.active&&this.player){var S=this.player.getVideoData();if(S.video_id===N&&(N=S.list,_.c("polymer_enable_mdx_queue")&&N&&N.startsWith("RQ")&&(N=void 0),S.video_id!==L||N!=Z)){var u;_.c("kevlar_player_watch_endpoint_navigation")?u=_.pJB(_.ik6(L,Z)):u=this.buildWatchEndpoint_(L,Z);_.QT(this.hostElement,"yt-navigate",{endpoint:u,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(L,Z,N){return _.Jq(L,Z,N)},
initDclkstatus_:function(){_.tMt()},
attachWatchPageSkeleton_:function(){var L=document.querySelector("#watch-page-skeleton");if(L){var Z=L.querySelector("#primary-info"),N=L.querySelector("#secondary-info"),S=L.querySelector("#related");Z&&_.QJ(this.hostElement).querySelector("#info-skeleton").appendChild(Z);N&&_.QJ(this.hostElement).querySelector("#meta-skeleton").appendChild(N);S&&(_.QJ(this.hostElement).querySelector("#related-skeleton").appendChild(S),this.watchNextSkeletonEl_=S);_.U_(L)}},
handlePlayerUpdated_:function(){_.JS(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(L,Z){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof Z!=="undefined"){var N=this.watchNextSkeletonEl_.children,S=L&&L.indexSplices.length?L.indexSplices[0].index:0;L=Math.min(this.watchNextShownItems.length,N.length);Z||(S=0,L=N.length);for(Z=S;Z<L;Z++)N[Z].classList.add("hidden")}},
onPlayerFullscreenChange_:function(L){_.c("external_fullscreen")||_.XJ(this.hostElement,"yt-player-fullscreen",[L.fullscreen])},
onFullscreenChange_:function(L){this.fullscreen=L;this.gestures_&&this.gestures_.update(this.fullscreen);var Z=_.JS(this);Z.getPlayerPromise().then(function(N){N.setFauxFullscreen(!!_.mg())});
this.updateFullBleedElementLocations();L&&(Z.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(L,Z){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!Z},
computeIsDonationShelfCollapsed_:function(L){return L},
computeShouldShowMerchShelf:function(L,Z){return Z&&!!L},
computeResponseHasComments:function(L){var Z,N,S,u,T;return!!(L==null?0:(Z=L.contents)==null?0:(N=Z.twoColumnWatchNextResults)==null?0:(S=N.results)==null?0:(u=S.results)==null?0:(T=u.contents)==null?0:T.some(function(W){var V;return(W==null?void 0:(V=W.itemSectionRenderer)==null?void 0:V.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(L,Z,N,S){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&S?!1:!!L&&!!Object.keys(L).length&&!Z},
identity:_.sG,onWindowResized_:function(L){this.windowSize_=L;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(L){var Z=this;L&&L.type!=="dataloaded"&&L.type!=="dataupdated"||_.JS(this).getPlayerPromise().then(function(N){var S=N.getPlayerState();S!==5&&S!==0&&(N=1/N.getVideoAspectRatio(),Z.videoHeightToWidthRatio_!==N&&(Z.videoHeightToWidthRatio_=N))})},
schedulePlayerSizeUpdate_:function(L){var Z=this,N=_.c("kevlar_watch_while_v2")||_.c("web_watch_pip"),S=function(){if(Z.watchMetadata){var u,T;(T=(u=Z.watchMetadata).resize)==null||T.call(u)}_.JS(Z).getPlayerPromise().then(function(W){if(_.c("kevlar_set_internal_player_size")){if(!N||!Z.isMiniplayerActive()){var V=Z.calculateCurrentPlayerSize_();W.setInternalSize(V.width,V.height)}}else W.setSize(NaN,NaN);_.c("kevlar_watch_while")&&Z.updateWatchWhileScrollThreshold_()})};
L?S():_.SW(_.ro,S)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(L){this.set("data.survey",L.detail)},
onYtShowSurveyCommand_:function(L){this.set("data.survey",_.n(L,_.Dei).survey)},
onDownloadedVideoDeleted:function(L){var Z=this,N,S;return _.b(function(u){if(u.nextAddress==1){if(!Z.active||(N=Z.playerData)==null||!N.offlineState||Z.videoId!==L)return u.return();(S=Z.player)==null||S.stopVideo();_.dM().navigatingAwayFromWatchDeletedVideo=!0;_.LY(_.C8B,Z.hostElement);return u.yield(_.dM().navigationFinishPromise,2)}_.dM().navigatingAwayFromWatchDeletedVideo=!1;_.w7(u)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var L;this.theater?L=_.nM(.5625*this.windowSize_.width,480,this.windowSize_.height-185):L=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==L&&(this.watchWhileScrollThreshold_=L,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var L=_.QJ(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&L){var Z=this.windowSize_.height>=624,N=this.active?this.getScrollTop():0;!L.active&&Z&&N>=this.watchWhileScrollThreshold_?(L.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):L.active&&(!Z||N<this.watchWhileScrollThreshold_&&!_.mg())&&(L.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var L=_.QJ(this.hostElement).querySelector("#secondary-inner");if(L){var Z=_.QJ(this.hostElement).querySelector("#below"),N=_.QJ(this.hostElement).querySelector("#secondary"),S=_.QJ(this.hostElement).querySelector("#comments");S&&N&&Z&&(this.defaultTwoColumnLayout?(L.appendChild(S),N.appendChild(L)):(Z.appendChild(S),_.a4(Z,L)))}}},
isTwoColumnsChanged_:function(L,Z){if(L!==!0||Z!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(L=_.QJ(this.hostElement).querySelector("#secondary-inner"))){Z=_.QJ(this.hostElement).querySelector("#below");var N=_.QJ(this.hostElement).querySelector("#secondary"),S=_.QJ(this.hostElement).querySelector("#comments");S&&N&&Z&&(this.isTwoColumns_?(L.appendChild(S),N.appendChild(L)):(Z.appendChild(S),_.a4(Z,L)))}}else{L=!_.c("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);Z=_.QJ(this.hostElement).querySelector("#panels");var u=_.QJ(this.hostElement).querySelector("#alerts"),T=_.QJ(this.hostElement).querySelector("#shopping-timely-shelf");N=_.QJ(this.hostElement).querySelector("#playlist");S=_.QJ(this.hostElement).querySelector("#related");var W=_.QJ(this.hostElement).querySelector("#donation-shelf"),V=_.QJ(this.hostElement).querySelector("#comments"),M=_.QJ(this.hostElement).querySelector("#persistent-panel-container");
this.isTwoColumns_?(u=_.QJ(this.hostElement).querySelector("#secondary-inner"),L&&(u.appendChild(Z),u.appendChild(N),this.aiCompanionEnabled&&M&&u.appendChild(M)),u.appendChild(W),u.appendChild(S)):(L&&(_.In(Z,u),_.In(N,u),this.aiCompanionEnabled&&M&&_.In(M,u),_.In(T,N)),_.In(W,u),V&&_.In(S,V));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.c("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.c("web_watch_enable_fs_squeezeback_panels")&&_.c("web_watch_theater_chat")){var L=_.QJ(this.hostElement).querySelector("#chat-container"),Z=this.theater&&!this.fullscreen||_.c("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&Z?(Z=_.QJ(this.hostElement).querySelector("#columns"),(L==null?void 0:L.parentElement)!==Z&&Z.append(L),this.fixedPanels=!0):(this.fixedPanels=
!1,Z=_.QJ(this.hostElement).querySelector("#playlist"),L&&Z?_.dI(L,Z):_.Q7(new _.sr("Missing element when updating chat location",{"chatContainer defined":!!L,"playlist defined":!!Z})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(L,Z){return _.c("sw_metadata_vis_toggle_ks")?!0:!!L||!!Z},
computeForceDarkPanelTheme:function(L){return _.c("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&L:!1},
safeUpdateStyles:function(L){try{_.Ld(this.hostElement,L)}catch(Z){_.Q7(Z)}},
videoHeightToWidthRatioChanged_:function(L,Z){Z&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(L){this.videoHeightToWidthRatio_=1/L},
computeIsVerticalVideo_:function(L){return L>=1},
computeIsFourThreeToSixteenNineVideo_:function(L){return L<=.7501&&L>=.5624},
computeIsExtraWideVideo_:function(L){return L<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.JS(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.JS(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.kaf(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(L){var Z=_.G7(L)||0;_.gr(L,Z+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var L=_.G7("yt-fullerscreen-edu-button-click-count")||0,Z=_.G7("yt-fullerscreen-edu-button-shown-count")||0,N=_.lQ("external_fullscreen_button_shown_threshold"),S=L>=_.lQ("external_fullscreen_button_click_threshold")||Z>=N;_.JS(this).getPlayerPromise().then(function(u){u.updateFullerscreenEduButtonSubtleModeState(S)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(L,Z){return Z},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.GR().resolve(_.Nv).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var L=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.ro.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.ro.addLowPriorityJob(function(){L.fullHeightPanelPositionUpdateJobId=0;var Z=_.QJ(L.hostElement).querySelector("#secondary"),N=_.QJ(L.hostElement).querySelector("#fixed-secondary");Z=Z.getBoundingClientRect();var S=Z.width;L.swatcherooSqueezeback&&
(S+=_.sz);if(L.swatcherooSqueezeback){var u=_.QJ(L.hostElement).querySelector("#squeezeback-constraining-container");u.style.width=S+"px";u.style.flex="0 0 "+S+"px"}N.style.width=S+"px";N.style.left=Z.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var L=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.ro.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.ro.addLowPriorityJob(function(){L.panelMaxHeightUpdateJob_=0;var Z;!L.isTwoColumns_||L.theater||L.fullscreen?Z=460:Z=L.calculateNormalPlayerSize_().height;var N=Z+"px";_.c("live_chat_taller_height")&&!L.theater&&(N="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.c("live_chat_medium_height")&&!L.theater&&(N="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.c("live_chat_scaled_height")&&!L.theater&&(N="calc(100vh - var(--ytd-toolbar-height) - 238px)");L.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":Z+"px","--ytd-watch-flexy-chat-max-height":N,"--ytd-watch-flexy-structured-description-max-height":Z+"px","--ytd-watch-flexy-comments-panel-max-height":Z+"px","--ytd-comments-engagement-panel-content-height":Z+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(L){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",L)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.B2(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(L){var Z=_.QJ(this.hostElement).querySelector("#engagement-panel-scrim");L?Z.addEventListener("tap",_.Nd(this,this.onEngagementPanelScrimClick_)):Z.removeEventListener("tap",_.Nd(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(L){if(this.hostElement.contains(L)&&!this.scrollToAnimation_.isAnimating()){var Z=L.offsetTop-24;L=L.offsetTop+L.offsetHeight+24;var N=this.getPageScrollingElement(),S=this.getScrollTop(),u=S+N.clientHeight-56;if(Z<S+56)Z-=56;else if(L>u)Z=L-N.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,Z),500)}},
onYtSignalActionScrollToComments:function(){var L=this.hostElement.querySelector("#comments");if(L&&!this.scrollToAnimation_.isAnimating()){L=L.offsetTop-56-24;if(_.c("kevlar_comment_teaser_scroll_to_midpoint")&&(L-=_.UN().height/3,L<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,L),500)}},
onYtEngagementPanelVisibleChanged:function(L,Z,N){if(this.active&&this.trackEngagementPanelVisibility&&!_.F3i.includes(N)){if(Z==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Ad(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var S=_.GR().resolve(_.EB);this.visiblePanelIdentifiers_.forEach(function(u){u!==N&&S.hidePanel({identifier:u})})}this.visiblePanelIdentifiers_.add(N)}Z!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&Z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(N);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(L){return L?"":"watch-active-metadata"},
computeNewMetadataClass:function(L){return L?"watch-active-metadata":""},
computeIsSingleColumn:function(L,Z){return Z&&!L},
computeFullBleedPlayer:function(L,Z,N){return _.c("external_fullscreen")&&L||Z||N},
computeDefaultLayout:function(L){return!L},
computeDefaultTwoColumnLayout:function(L,Z){return!L&&Z},
updatePanelsLocation:function(){if(_.c("web_watch_enable_fs_squeezeback_panels")){var L=_.QJ(this.hostElement).querySelector("#below"),Z=_.QJ(this.hostElement).querySelector("#panels"),N=_.QJ(this.hostElement).querySelector("#playlist"),S=_.QJ(this.hostElement).querySelector("#chat-container"),u=_.QJ(this.hostElement).querySelector("#panels-full-bleed-container"),T=_.QJ(this.hostElement).querySelector("#secondary-inner"),W=_.QJ(this.hostElement).querySelector("#shopping-timely-shelf"),V=_.QJ(this.hostElement).querySelector("#persistent-panel-container");
if(L&&Z&&N&&S&&u&&T&&W&&(this.aiCompanionEnabled?V:1)){var M=this.fullscreen||this.theater&&this.iMaxTheaterMode,G=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;M?(u.appendChild(Z),u.appendChild(S),u.appendChild(N),this.aiCompanionEnabled&&V&&u.appendChild(V)):this.isTwoColumns_?(G?(L=_.QJ(this.hostElement).querySelector("#columns"),(S==null?void 0:S.parentElement)!==L&&L.append(S),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):
_.a4(T,S),_.a4(T,Z),_.a4(T,N),this.aiCompanionEnabled&&V&&_.a4(T,V)):(L.appendChild(Z),L.appendChild(W),L.appendChild(S),L.appendChild(N),this.aiCompanionEnabled&&V&&L.appendChild(V))}}},
swatcherooUpdatePanelsLocation:function(L,Z,N,S,u,T){if(this.is==="ytd-watch-grid"){Z=L&&!Z;this.swatcherooSplitScroll&&(Z?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));N=_.QJ(this.hostElement).querySelector("#panels");var W=_.QJ(this.hostElement).querySelector("#playlist"),V=_.QJ(this.hostElement).querySelector("#persistent-panel-container"),
M=_.QJ(this.hostElement).querySelector("#fixed-secondary"),G=_.QJ(this.hostElement).querySelector("#fixed-below"),D=_.QJ(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),l=_.QJ(this.hostElement).querySelector("#chat-container");T&&(L?(M.appendChild(N),this.aiCompanionEnabled&&V&&M.appendChild(V)):(G.appendChild(N),this.aiCompanionEnabled&&V&&G.appendChild(V)));u?L?M.appendChild(l):G.appendChild(l):_.dI(l,D);S?L?M.appendChild(W):G.appendChild(W):_.dI(W,
D);this.swatcherooSplitScroll&&(L=_.QJ(this.hostElement).querySelector("#secondary"),S=_.QJ(this.hostElement).querySelector("#columns"),u=_.QJ(this.hostElement).querySelector("#fixed-columns-secondary"),Z?u.appendChild(L):S.appendChild(L))}},
computeMetadataSkinnyMode:function(L,Z,N){return this.is!=="ytd-watch-grid"?!1:L?N:Z},
computeWatchWhilePanelsActive:function(L,Z){return L||Z},
computeNoBorderOnChat:function(L){return _.c("web_watch_theater_chat_no_border")&&L},
computeLiveChatPresentAndExpanded:function(L,Z){return L&&!Z},
computePanelExpanded:function(L,Z,N){return L||Z||N},
computeSqueezeback:function(L,Z,N,S){if(_.c("web_watch_enable_fs_squeezeback_panels")){var u=this.iMaxTheaterMode&&this.theater,T=this.theater&&!this.iMaxTheaterMode;return(L||Z||N)&&(u||S)||Z&&T}},
computeSwatcherooSqueezeback:function(L,Z,N){return this.is!=="ytd-watch-grid"||_.c("ww_squeezeback_killswitch")?!1:L&&Z&&N},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(L){_.JS(this).getPlayerPromise().then(function(Z){var N;(N=Z.changeMarkerVisibility)==null||N.call(Z,_.n(L,_.Jm).isVisible||!1,_.n(L,_.Jm).entityKeys||[],_.n(L,_.Jm).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(L){this.liveChatCollapsed=L.detail;_.Pv().dispatch(_.Gan(L.detail));if(!this.liveChatCollapsed&&this.squeezeback){var Z=_.GR().resolve(_.EB);this.visiblePanelIdentifiers_.forEach(function(N){Z.hidePanel({identifier:N})})}},
onSetPlaylistCollapsed:function(L){_.c("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!L)},
provideRenderingData:function(L,Z){switch(L){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=Z;break;case "PRIMARY_INFO":_.c("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=Z);this.videoPrimaryInfoRendererValue=Z==null?void 0:Z.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.c("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=Z);this.videoSecondaryInfoRendererValue=Z==null?void 0:Z.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
Z;break;case "CLARIFICATION":this.clarifyBoxValue=Z;break;case "LIVE_CHAT":this.conversationBar=Z;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=Z;break;case "PLAYLIST":this.externalPlaylistData_=Z!=null?Z:{};break;case "MERCH_SHELF":this.merchShelfValue=Z==null?void 0:Z.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=Z;break;case "TICKET_SHELF":this.ticket=Z;break;case "OFFER_MODULE":this.offerModule=Z;break;case "LIMITED_STATE":this.limitedStateValue=
Z;break;case "DONATION_SHELF":this.donation=Z;break;case "ALERTS":this.alertsValue=Z;break;case "COMMENTS":this.comments=Z;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=Z;break;case "ENGAGEMENT_PANELS":this.engagementPanels=Z;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=Z;break;case "RICH_GRID_RENDERER":this.richGridRendererData=Z;break;case "EXPANDABLE_METADATA":this.expandableMetadata=Z;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
Z;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=Z}},
toggleCinematicsActive:function(L){this.cinematicsActive=L},
isMiniplayerActive:function(){return _.GR().resolve(_.yk).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var Zdy;_.LL5=function(L){if(!(0,_.MtN)(L))throw Error("K``"+String(L));};
_.NDk=function(L){return L.findIndex(function(Z){return Zdy.indexOf(Z.tagName)>-1})>-1};
_.Sk8=function(){var L=_.GR().resolve(_.D1);_.WWP(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(L.isFullscreenEnabled()?_.Jd(document.documentElement):_.LZB(document.documentElement))};
Zdy=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.me=new Map;_.me.set(32,59972);_.me.set(27,50765);_.me.set(70,60102);_.me.set(76,60221);_.me.set(77,60222);_.me.set(74,60223);_.me.set(84,60224);_.me.set(38,61941);_.me.set(40,61942);_.me.set(73,62521);_.me.set(67,62522);_.me.set(80,63390);_.me.set(78,63397);_.me.set(75,59972);_.me.set(188,63385);_.me.set(190,63384);_.me.set(36,63387);
_.me.set(35,63386);_.me.set(37,63388);_.me.set(39,63389);_.me.set(79,63423);_.me.set(87,63424);_.me.set(107,63426);_.me.set(109,63425);_.me.set(65,63428);_.me.set(83,63430);_.me.set(68,63429);_.me.set(221,63431);_.me.set(219,63432);_.me.set(97,63439);_.me.set(98,63440);_.me.set(99,63441);_.me.set(100,63442);_.me.set(101,63443);_.me.set(102,63444);_.me.set(103,63445);_.me.set(104,63446);_.me.set(105,63447);_.J6=new Map;_.J6.set(80,63390);_.J6.set(78,63397);_.J6.set(188,63400);_.J6.set(190,63401);
_.J6.set(191,60765);_.J6.set(13,247917);_.Cr=new Map;_.rz=new Map;
}catch(e){_._DumpException(e)}
try{
var lCY,R3g,czq,nek;_.G7Y=function(L){return L.ui.guideIsVisibleButNotPersistent};
_.Flq=function(L){return L.ui.tabGesturesIsActive};
_.$J0=function(){var L=_.vW("service_worker_scope");try{return navigator.serviceWorker.getRegistration(L)}catch(Z){return Promise.reject(Z)}};
_.DJv=function(L){return!(!L||!L.pushManager)};
lCY=function(){return _.$J0().then(_.DJv).catch(function(){return!1})};
_.vec=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?lCY():Promise.resolve(!1)};
_.oe8=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
R3g=function(){var L,Z,N;return _.b(function(S){switch(S.nextAddress){case 1:return S.yield(_.mi.getInstance(),2);case 2:L=S.yieldResult;if(!L){Z=void 0;S.jumpTo(3);break}return S.yield(L.get("lmqf"),4);case 4:Z=S.yieldResult;case 3:switch((N=Z)||(N="SD"),N){case "HD":return S.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return S.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return S.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return S.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return S.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
czq=function(L){var Z,N,S;return _.b(function(u){if(u.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.c("disable_av1_setting")){var T=window.localStorage["yt-player-av1-pref"];T=T==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":T==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else T="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(Z=L===T)return u.jumpTo(2);S=N=L;return u.yield(R3g(),3)}u.nextAddress!=2&&(Z=S===u.yieldResult);return u.return(Z)})};var Kl0;var fCv=_.IN.IronButtonState,k7y=(0,_.wS)(HTMLElement);
_.DU({_template:function(){if(Kl0!==void 0)return Kl0;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;nek===void 0&&(nek=document.createElement("template"));var S=nek;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return Kl0=L},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[fCv,_.Ya,_.dE,_.sb],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(L){var Z=(0,_.dx)(this);Z.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:L});Z.shadowRoot.appendChild(L);return k7y.prototype._attachDom.call(this,L)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var L=this.contentElement;L&&L.selectedItem&&this._setSelectedItem(L.selectedItem)},
get contentElement(){for(var L=_.g0(this.$.content).getDistributedNodes(),Z=0,N=L.length;Z<N;Z++)if(L[Z].nodeType===Node.ELEMENT_NODE)return L[Z]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(L){this._setSelectedItem(L.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(L){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L)===this&&this.open()},
_selectedItemChanged:function(L){var Z="";L?Z=L.label||L.getAttribute("label")||L.textContent.trim():Z="";this.value=Z;this._setSelectedItemLabel(Z)},
_computeMenuVerticalOffset:function(L,Z){return Z?Z:L?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var L=this.opened?"true":"false",Z=this.contentElement;Z&&Z.setAttribute("aria-expanded",L)}});_.yf=new _.S5("navigateAction");var yzg=new _.S5("formRenderer");var wz=function(){var L=_.Ok.apply(this,arguments)||this;L.showInput=!1;return L};
_.f(wz,_.Ok);_.t=wz.prototype;_.t.detached=function(){this.showInput&&window.removeEventListener("click",_.Nd(this,this.closeOnOutsideClick_))};
_.t.stopPropagation_=function(L){this.showInput&&L.stopPropagation()};
_.t.closeOnOutsideClick_=function(L){this.closeOnOutsideClickCondition(L)&&(this.showInput=!1,window.removeEventListener("click",_.Nd(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.t.closeOnOutsideClickCondition=function(){return!0};
_.t.closeOnOutsideClickHandler=function(){};
_.t.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Nd(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.t.openOnClickHandler=function(){};
_.t.showInputChanged=function(){};
_.t.setShowInput=function(L){this.showInput=L};
wz.prototype.setShowInput=wz.prototype.setShowInput;wz.prototype.showInputChanged=wz.prototype.showInputChanged;wz.prototype.openOnClickHandler=wz.prototype.openOnClickHandler;wz.prototype.openOnClick_=wz.prototype.openOnClick_;wz.prototype.closeOnOutsideClickHandler=wz.prototype.closeOnOutsideClickHandler;wz.prototype.closeOnOutsideClickCondition=wz.prototype.closeOnOutsideClickCondition;wz.prototype.closeOnOutsideClick_=wz.prototype.closeOnOutsideClick_;wz.prototype.stopPropagation_=wz.prototype.stopPropagation_;
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wz.prototype,"showInput",void 0);_.r([_.SA("click"),_.SA("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],wz.prototype,"stopPropagation_",null);_.r([_.iA("showInput"),_.Q("design:type",Function),_.Q("design:paramtypes",[Boolean]),_.Q("design:returntype")],wz.prototype,"showInputChanged",null);_.r([_.Wh()],wz);_.wqq=[wz.prototype];var UJc;var Yxy;var Uu=function(){return _.e.apply(this,arguments)||this};
_.f(Uu,_.e);_.t=Uu.prototype;_.t.computePreselectedOption=function(L,Z){return Z===this.itemSelected_?L:void 0};
_.t.dataChanged_=function(){var L=this;this.preselectedSubreason=this.itemSelected_=-1;var Z;(Z=this.data)!=null&&Z.key&&_.bN(this,function(){var N,S=Number((N=L.data)==null?void 0:N.key);!Number.isNaN(S)&&(L.itemSelected_=S,N=(N=(L.data.items||[])[S])&&N.optionSelectableItemRenderer&&N.optionSelectableItemRenderer.preselectedIndex)&&(L.preselectedSubreason=N)})};
_.t.isSubReasonHidden_=function(L,Z){return L!=Z};
_.t.onTopItemSelected_=function(L,Z){for(var N=_.QJ(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),S=0,u=N.length;S<u;S++)N[S].select(0);_.XJ(this.hostElement,"yt-report-form-update",[Z.item.value]);L.stopPropagation()};
_.t.onItemSelected_=function(L,Z){_.XJ(this.hostElement,"yt-report-form-update",[Z.item.value]);L.stopPropagation()};
_.t.getItem_=function(L){return L.serviceItem?L.serviceItem:L.navigationItem?L.navigationItem:L.optionSelectableItemRenderer?L.optionSelectableItemRenderer:null};
_.t.computeText_=function(L){return(L=this.getItem_(L))?this.ytRendererBehavior.getSimpleString(L.text):null};
_.t.validate=function(){return this.itemSelected_!==-1};
_.t.computeAriaLabel_=function(L){var Z=_.jM(L.text);(L=L.accessibility&&L.accessibility.accessibilityData&&L.accessibility.accessibilityData.label)&&(Z+=". "+L);return Z};
_.t.computeItemSelected_=function(L){return L};
_.t.preventSelection_=function(L){L.stopPropagation();this.tooltipTapped=!0};
_.t.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.t.updateItemSelectedFromBinding=function(L){this.itemSelected_=L.detail.value};
_.t.save=function(){var L;this.validate()&&(L=this.data)!=null&&L.items&&(L=this.data.items[this.itemSelected_],L!=null&&L.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(L.optionSelectableItemRenderer.submitEndpoint)||_.H2(this.hostElement,[L.optionSelectableItemRenderer.submitEndpoint])))};
Uu.prototype.onPaperRippleTransitionEnd_=Uu.prototype.onPaperRippleTransitionEnd_;Uu.prototype.dataChanged_=Uu.prototype.dataChanged_;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Uu.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uu.prototype,"data",void 0);_.r([_.Y({value:-1}),_.Q("design:type",Number)],Uu.prototype,"itemSelected_",void 0);
_.r([_.Y({computed:"computeItemSelected_(itemSelected_)"}),_.Q("design:type",Number)],Uu.prototype,"value",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Uu.prototype,"restoreFocusOnClose",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Uu.prototype,"tooltipTapped",void 0);_.r([_.Y({value:-1}),_.Q("design:type",Number)],Uu.prototype,"preselectedSubreason",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uu.prototype,"dataChanged_",null);_.r([_.SA("transitionend"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uu.prototype,"onPaperRippleTransitionEnd_",null);_.r([_.ch({is:"yt-options-renderer",disableElementRegistration:!0})],Uu);
_.m(Uu,"yt-options-renderer",function(){if(Yxy===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;UJc===void 0&&(UJc=document.createElement("template"));var S=UJc;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Yxy=L}L=Yxy;return L},{mode:2});var e3y;var ICm;var dJY;var aCs;var h3s;var ssQ;var Yc=function(){return _.e.apply(this,arguments)||this};
_.f(Yc,_.e);Yc.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Yc.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Yc.prototype.onTap=function(L){if(this.hostElement.classList.contains("selected")||_.XJ(this.hostElement,"yt-share-panel-can-select-contact-action")[0])L&&L.detail&&(L.detail.x||L.detail.y)&&_.QJ(this.hostElement).querySelector("#target").blur(),(L=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),L={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:L?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.XJ(this.hostElement,"yt-share-panel-select-contact-action",[L])};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Yc.prototype,"ytRendererBehavior",void 0);_.r([_.Y({observer:"onDataChanged"}),_.Q("design:type",Object)],Yc.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Q("design:type",String)],Yc.prototype,"componentTitle",void 0);_.r([_.TX("#thumbnail"),_.Q("design:type",Object)],Yc.prototype,"thumbnail",void 0);_.r([_.ch({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Yc);
_.m(Yc,"yt-enrolled-contact-renderer",function(){if(ssQ===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;h3s===void 0&&(h3s=document.createElement("template"));var S=h3s;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);ssQ=L}L=ssQ;return L},{mode:2});var jsw;var Ee0;var eF=function(){return _.e.apply(this,arguments)||this};
_.f(eF,_.e);eF.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
eF.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
eF.prototype.onTap=function(L){if(this.hostElement.classList.contains("selected")||_.XJ(this.hostElement,"yt-share-panel-can-select-contact-action")[0])L&&L.detail&&(L.detail.x||L.detail.y)&&_.QJ(this.hostElement).querySelector("#target").blur(),(L=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),L={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:L?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.XJ(this.hostElement,"yt-share-panel-select-contact-action",[L])};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.r([_.Y({observer:"onDataChanged"}),_.Q("design:type",Object)],eF.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Q("design:type",String)],eF.prototype,"componentTitle",void 0);_.r([_.TX("#thumbnail"),_.Q("design:type",Object)],eF.prototype,"thumbnail",void 0);_.r([_.ch({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],eF);
_.m(eF,"yt-suggested-contact-renderer",function(){if(Ee0===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;jsw===void 0&&(jsw=document.createElement("template"));var S=jsw;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Ee0=L}L=Ee0;return L},{mode:2});var IC=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-share-panel-reset-action":"onReset"};return L};
_.f(IC,_.e);IC.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"}}}}}};
IC.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.XJ(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
IC.prototype.onReset=function(){for(var L=_.QJ(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),Z=L.length-1;Z>=0;Z--)L[Z].classList.toggle("selected")};
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],IC.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],IC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y({observer:"onDataChanged"}),_.Q("design:type",Object)],IC.prototype,"data",void 0);
_.r([_.ch({is:"yt-contact-section-renderer",disableElementRegistration:!0})],IC);
_.m(IC,"yt-contact-section-renderer",function(){if(aCs===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;dJY===void 0&&(dJY=document.createElement("template"));var S=dJY;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);aCs=L}L=aCs;return L},{mode:2});var dz=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return L};
_.f(dz,_.e);_.t=dz.prototype;_.t.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"}}}};
_.t.onYtRefreshFormCommand=function(L){var Z;(L=_.n((Z=_.n(L,_.PO0))==null?void 0:Z.formRenderer,yzg))&&this.set("data",L)};
_.t.reset=function(){var L=_.QJ(this.hostElement).querySelector("#fields").children;L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.reset&&Z.reset()};
_.t.getForm=function(){var L={},Z=_.QJ(this.hostElement).querySelector("#fields").children;Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next()){N=N.value;if(!N.validate())return null;L[N.data.key]=N.value}return L};
_.t.submitFormFields=function(){if(this.fields)for(var L=_.O(this.fields),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?Z.save():Z.nodeName==="YT-OPTIONS-RENDERER"&&Z.save()};
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],dz.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],dz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],dz.prototype,"data",void 0);_.r([_.tJ("#fields > *"),_.Q("design:type",Array)],dz.prototype,"fields",void 0);
_.r([_.ch({is:"yt-form-renderer",disableElementRegistration:!0})],dz);
_.m(dz,"yt-form-renderer",function(){if(ICm===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;e3y===void 0&&(e3y=document.createElement("template"));var S=e3y;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);ICm=L}L=ICm;return L},{mode:2});var Pvv;var aC=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return L};
_.f(aC,_.e);aC.prototype.onCheckboxChange=function(L){this.data&&(L=(this.checked=_.jD(L).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.GR().resolve(_.$s).resolveCommand(L,{form:{element:this.hostElement}})};
aC.prototype.handleUpdateCheckboxCommand=function(L){(L=_.n(L,_.SbN))&&this.data&&this.data.id===L.id&&(this.set("data.disabled",L.disabled),this.set("data.title",L.title))};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],aC.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],aC.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],aC.prototype,"checked",void 0);_.r([_.P({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],aC);
_.m(aC,"ytd-settings-checkbox-renderer",function(){if(Pvv!==void 0)return Pvv;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Pvv=L},{mode:1});var pq8;var h6=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return L};
_.f(h6,_.e);h6.prototype.dataChanged=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1)return L.radio.removeAttribute("checked"),!L.data||!L.data.id||L.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.oe8()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(Z=L.data&&L.data.id)?N.yield(czq(L.data.id),4):N.jumpTo(3):(L.set("data.hidden",!0),N.jumpTo(0));N.nextAddress!=3&&(Z=N.yieldResult);Z&&_.XJ(L.hostElement,"yt-select-settings-radio-option",[L.data.id]);_.w7(N)})};
h6.prototype.onButtonChanged=function(L){_.jD(L).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.GR().resolve(_.$s).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.XJ(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
h6.prototype.onSelectOption=function(L){this.data&&this.data.id&&(this.data.id===L?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
h6.prototype.dataChanged=h6.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],h6.prototype,"ytActionHandlerBehavior",void 0);_.r([_.TX("#radio"),_.Q("design:type",Object)],h6.prototype,"radio",void 0);_.r([_.Y(),_.Q("design:type",Object)],h6.prototype,"data",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],h6.prototype,"dataChanged",null);_.r([_.P({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],h6);
_.m(h6,"ytd-settings-radio-option-renderer",function(){if(pq8!==void 0)return pq8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return pq8=L},{mode:1});var z38;var su=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return L};
_.f(su,_.e);
su.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"}}}};
su.prototype.handleUpdateTextCommand=function(L){(L=_.n(L,_.iON))&&this.data&&this.data.id===L.id&&this.set("data",L)};
su.prototype.handleUpdateConnectedAppRendererCommand=function(L){if(_.n(L,_.tQs)&&this.data){var Z,N;if(L=(Z=_.n(L,_.tQs))==null?void 0:(N=Z.newConnectedAppRenderer)==null?void 0:N.connectedAppRenderer)this.data=L}};
su.prototype.computeConnectedAppStyle=function(L){return L.style?L.style.toLowerCase().replace(/_/g,"-"):""};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],su.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],su.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],su.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.Q("design:type",String)],su.prototype,"connectedAppStyle",void 0);_.r([_.P({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],su);
_.m(su,"ytd-connected-app-renderer",function(){if(z38!==void 0)return z38;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return z38=L},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.z3("iuT5Oc");

_.mm();
}catch(e){_._DumpException(e)}
try{
_.z3("L3n37");
var pvq=function(L){return L.watch.isLearningJourneyActive},zRV=_.Ll(115994),men=_.Ll(115993),JN9=function(L,Z,N){var S=this;
var u=N.dragDownAction;this.layer=0;this.JSC$23405_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return S.dragDownAction()}}}};
this.JSC$23405_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return S.dragDownAction()}}}};
this.fullscreen=!1;var T=_.tC();_.yn(T,zRV,this.layer);_.yn(T,men,this.layer);this.dragDownAction=function(){u();_.ew(T,{visualElement:S.fullscreen?zRV:men})};
this.gesture=new _.Pf(L,Z,this.getConfig(!1),"pandown");this.attach()};
JN9.prototype.attach=function(){this.gesture.attach()};
JN9.prototype.detach=function(){this.gesture.detach()};
JN9.prototype.update=function(L){this.fullscreen=L;var Z=this.gesture;L=this.getConfig(L);Z.config=L};
JN9.prototype.getConfig=function(L){return L?this.JSC$23405_watchFullScreenConfig:this.JSC$23405_watchConfig};var C2M=function(L){_.zO.call(this);var Z=this;this.rootElement=L;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return Z.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(N){Z.initOrDisposeActiveModules(N)}));
this.onAttached()};
_.f(C2M,_.zO);_.t=C2M.prototype;_.t.getRoot=function(){return this.rootElement};
_.t.getElement=function(L){return this.rootElement.getElement(L)};
_.t.setPlayerResponse=function(L){this.playerResponse=L;this.publish("PLAYER_RESPONSE_UPDATED",L)};
_.t.getPlayerResponse=function(){return this.playerResponse};
_.t.setWatchNextResponse=function(L){this.watchNextResponse===L?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=L,this.publish("WATCH_NEXT_RESPONSE_UPDATED",L))};
_.t.getWatchNextResponse=function(){return this.watchNextResponse};
_.t.registerActionHandler=function(L,Z){var N=this;if(_.c("web_watch_controller_reg_multiple_handlers_killswitch")){var S={};_.ie(_.SS.getInstance(),(S[L]=Z,S),this.getRoot())}else this.actionHandlers.has(L)||(this.actionHandlers.set(L,[]),S={},_.ie(_.SS.getInstance(),(S[L]=function(){var u=_.CG.apply(0,arguments);return(N.actionHandlers.get(L)||[]).map(function(T){return T.apply(null,_.Pd(u))})},S),this.getRoot())),this.actionHandlers.get(L).push(Z)};
_.t.unregisterActionHandler=function(L){if(_.c("web_watch_controller_reg_multiple_handlers_killswitch")){var Z={};_.ue(_.SS.getInstance(),(Z[L]=!0,Z),this.getRoot())}else(Z=this.actionHandlers.get(L))?(Z.pop(),Z.length===0&&(Z={},_.ue(_.SS.getInstance(),(Z[L]=!0,Z),this.getRoot()),this.actionHandlers.delete(L))):_.Q7(new _.sr("Attempted to unregister an action handler which is not registered.",L))};
_.t.addPageDisposeJob=function(L){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.YGt(this.rootElement.pageDisposeJobs,L)};
_.t.removePageDisposeJob=function(L){this.rootElement.pageDisposeJobs&&_.zB(this.rootElement.pageDisposeJobs,L)};
_.t.dispatchEvent=function(L,Z){_.QT(this.rootElement,L,Z)};
_.t.provideRenderingData=function(L,Z){this.rootElement.provideRenderingData(L,Z)};
_.t.scrollWatchTo=function(L,Z){var N;(N=this.watchScrollManager)==null||N.scrollWatchTo(L,Z)};
_.t.focusOnPlayer=function(){var L=this.getElement("PLAYER");_.bN(L,function(){if(L&&L.firstElementChild){var Z=L.querySelector(".html5-video-player");Z&&(_.Wo(_.GR().resolve(_.MV)),Z.focus())}else _.Q7(Error("ap"))})};
var rN9=function(L){var Z=!!L.rootElement.theater,N=!!L.rootElement.fullscreen,S;(S=L.watchCinematicManager)==null||_.vP8(S,N,Z)};
_.t=C2M.prototype;_.t.subscribeToActiveChanged=function(L,Z){Z=Z===void 0?!0:Z;var N=_.hK(_.Pv(),pvq,function(S){L(S)});
Z&&L(pvq(_.Pv().getState()));return N};
_.t.isActive=function(){return pvq(_.Pv().getState())};
_.t.onAttached=function(){var L=_.c("external_fullscreen");_.c("use_unified_flag_accessor")&&(L=_.GR().resolve(_.F0v).retriever.getFlag(_.lkL));(L||_.Ah("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.t.initPersistentModules=function(){if(_.c("kevlar_watch_flexy_theater_manager")){var L=new _.rQn(this);_.Ky(this,L)}L=new _.d2t(this);_.Ky(this,L);L=new _.It(this);_.Ky(this,L);L=new _.U2q(this);_.Ky(this,L);L=new _.j0(this);_.Ky(this,L);L=new _.db(this);_.Ky(this,L);_.c("kevlar_watch_flexy_playlist_manager")&&(L=new _.Mzf(this),_.Ky(this,L))};
_.t.initOrDisposeActiveModules=function(L){L?(this.watchScrollManager=new _.ED(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Adn(this)),this.activeModules.push(new _.XMf(this)),this.activeModules.push(new _.lWG(this)),this.activeModules.push(new _.zbw(this)),_.c("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.qV6(this)),this.activeModules.push(new _.ZqY(this)),_.c("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.o6n(this)),
_.c("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.Ov8(this)),_.c("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.gP9(this),this.activeModules.push(this.watchCinematicManager),rN9(this)),_.c("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.uKf(this)),_.c("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.ebw(this)),L=_.c("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.c("kevlar_watch_flexy_comments_manager")&&
!L&&this.activeModules.push(new _.Kg9(this)),_.c("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.bHf(this)),this.activeModules.push(new _.Lgn(this)),this.activeModules.push(new _.B08(this)),_.c("web_enable_timely_actions")&&this.activeModules.push(new _.ivM(this)),_.c("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.kct(this)),_.c("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.D7q(this)),_.c("web_fullscreen_components")&&
this.activeModules.push(new _.SU7(this)),_.c("web_player_rtr_ctrls")&&this.activeModules.push(new _.wXM(this))):(_.VL(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.t.disposeInternal=function(){_.zO.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.gd.Object.defineProperties(C2M.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var QiV={},XvM=["learning-journey-engagement-panel","PAlearning_chat"];
QiV.YtdLearningJourneyWatchBehavior=[_.B.YtRendererBehavior,_.No.YtPlayerListenerBehavior,_.WS.YtRendererstamperBehavior,_.nK.YtActionHandlerBehavior,_.uw.YtPageBehavior,_.o3.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 _.Ah("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.c("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 _.Ah("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 _.c("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.c("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 _.lQ("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.lQ("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 _.c("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 _.c("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("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 _.c("web_watch_rounded_player_large")||_.c("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 _.c("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.c("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("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 _.c("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("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:_.$y(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.$y(["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 L=this;this.watchController=void 0;this.pageDisposeJobs=[function(){L.showMetadataPlaceholder_()},
function(){_.c("web_watch_dont_clear_comments")||L.clearComments_()},
function(){L.clearPlayerAds_()},
function(){L.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;_.c("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.c("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.lT8(function(){return _.JS(L)},
this.hostElement);
this.pageDisposeJobs.push(function(){L.youThereManager_.reset()});
_.c("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){L.resetFullerscreenEduButtonForNewPlayback_()}));
_.c("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.$a;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;_.c("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.c("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));_.c("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Nd(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(L){L&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:L}),L.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(L){_.c("kevlar_watch_flexy_theater_manager")&&(this.theater=L,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.c("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(L){!_.c("kevlar_watch_while_v2")&&!_.c("web_watch_pip")||L||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(L){this.active!==void 0&&(this.fullscreen=L,_.c("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(L){this.active!==void 0&&(_.QT(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.c("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(L>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(L){this.initCsi_();this.updatePageData_(L)},
updatePageData_:function(L){var Z=this;if(L)if(this.data===L){this.onPageLoadWithSameData_();var N;(N=this.watchController)==null||N.setWatchNextResponse(this.data)}else this.data=L;this.playlist&&_.lB({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Rq("nw");this.loading=!1;_.sI(_.ro,function(){Z.initDclkstatus_();var S,u=((S=Z.player)==null?void 0:S.getVideoData().cpn)||"";_.S9i(function(T,W){_.Brm(T,W,u)})})},
onPageLoadWithSameData_:function(){_.c("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 L=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!L);this.set("loadingData.playlistLoading",L&&L!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),L=this.watchNextSkeletonEl_.firstElementChild;L;)L.classList.remove("hidden"),L=L.nextElementSibling;var Z,N,S;L=(Z=this.loadingData)==null?void 0:(N=Z.endpoint)==null?void 0:(S=N.watchEndpoint)==null?void 0:S.videoId;var u;L&&(u="https://i.ytimg.com/vi/"+L+"/frame0.jpg");_.QJ(this.hostElement).querySelector("#player").style.backgroundImage=u?"url("+u+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var L=_.QJ(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&L&&(L.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var Z,N;(N=(Z=this.watchMetadata).updateSentimentBarWidth)==
null||N.call(Z);var S,u;(u=(S=this.watchMetadata).resize)==null||u.call(S)}_.QJ(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(L){var Z=_.QJ(this.hostElement).querySelector(L);Z?_.Cv(Z,!1):_.Q7(new _.sr("Overscroll monitor not found for component: ",L))},
removeSplitScrollMouseTrap:function(L){var Z=_.QJ(this.hostElement).querySelector(L);Z?_.r0(Z):_.Q7(new _.sr("Disposal component for  overscroll monitoring not found: ",L))},
onLoadingChanged_:function(L){L?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(L){var Z=this;L?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.ro.addLowPriorityJob(function(){Z.onWindowResized_(_.tz(!0))})},
updateTheaterModeState_:function(L){if(!_.c("kevlar_watch_flexy_theater_manager")){L=L||this.fullWindowMode_;if(this.theater!==void 0||L)this.theater=L;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();L&&_.oRG()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var L=this.theater;_.c("external_fullscreen")&&this.fullscreen&&(L=!0);L=L?_.QJ(this.hostElement).querySelector("#player-full-bleed-container"):_.QJ(this.hostElement).querySelector("#player-container-inner");var Z=this.getPlayerContainer(),N=_.c("kevlar_watch_while_v2")||_.c("web_watch_pip");Z.parentElement!==L&&(N&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.JS(this).appendTo(L,Z),L.appendChild(_.QJ(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var L=this;return _.b(function(Z){if(Z.nextAddress==1)return Z.yield(_.GR().resolve(_.yk).deactivate(),2);L.updatePlayerLocation();_.w7(Z)})},
updateCinematicsLocation:function(){var L=this.getElement("CINEMATICS");if(L){var Z=this.getCinematicsLocationContainer();L.parentElement!==Z&&Z.appendChild(L);var N;(N=this.watchController)==null||rN9(N)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.QJ(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.QJ(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(L,Z){var N=document.documentElement.hasAttribute("dark"),S=N&&_.c("web_cinematic_theater_mode"),u=N&&_.c("web_cinematic_fullscreen");N=!N&&this.cinematicLightTheme;return L&&S||Z&&u||(Z||L)&&N},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var L;(L=this.watchController)==null||L.setWatchNextResponse(this.data);_.c("kevlar_watch_flexy_comments_manager")||this.initComments_();_.c("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.GR().resolve(_.Nv).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.c("web_watch_start_chat_in_theater_mode")){var Z,
N,S;if((Z=this.data)==null?0:(N=Z.contents)==null?0:(S=N.twoColumnWatchNextResults)==null?0:S.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var u,T;((u=this.data)==null?0:(T=u.contents)==null?0:T.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(L){var Z;(Z=this.watchController)==null||Z.setPlayerResponse(this.playerData);L&&L.playabilityStatus&&(Z=this.isVideoPlayable_(L.playabilityStatus,this.getPlayerOverlays_(this.data)),L=this.isLiveStreamOffline_(L.playabilityStatus),Z&&!L||_.bN(this,function(){_.Rq("pbu")}));
this.setPlayerAds_();_.Ad(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(L){_.Pv().dispatch(_.XK({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));L?this.activate_():this.deactivate_()},
attached:function(){var L=this;this.watchController=new C2M(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.c("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var Z=_.JS(this);_.c("kevlar_disable_prepare_player")||Z.preparePlayer();_.c("kevlar_watch_flexy_playlist_manager")||_.GR().resolve(_.Nv).setPlayer(Z);this.updatePageMediaQueries();Z={"--ytd-watch-flexy-scrollbar-width":_.fr()+
"px"};!_.lQ("kv_pl_mx_sz_ks")&&_.lQ("kevlar_watch_max_player_width")&&(Z["--ytd-watch-flexy-max-player-width-wide-screen"]=_.VZf+"px");_.lQ("kevlar_watch_flexy_metadata_height")&&(Z["--ytd-watch-flexy-space-below-player"]=_.bZn+"px");this.safeUpdateStyles(Z);_.c("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new JN9(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return L.onPlayerTouchPanDown_()}}));
_.c("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.QJ(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var L=_.fr(),Z=_.j1+L,N=Z;this.fixedPanels&&(Z+=_.W5M);var S=657+L;L=1327+L;_.QJ(this.hostElement).querySelector("#two-column-query").query="(min-width: "+Z+"px)";_.QJ(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(S+"px), (min-height: 630px) and (min-width: ")+(Z+"px) and (max-width: ")+(L+"px)");_.QJ(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(L+"px)");
_.QJ(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+N+"px)"},
calculateCurrentPlayerSize_:function(){var L=_.QJ(this.hostElement).querySelector("#miniplayer-bar").firstChild;return L&&L.active||this.theater||_.c("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.wF(NaN,NaN):_.Okn(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Okn(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.W4(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var L=this;this.onWindowResized_(_.tz());_.c("browse_skeleton_removal_on_watch_killswitch")||_.Ah("IS_SHELL_LOAD")&&_.gVt();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var Z=_.JS(this);Z.addEventListener("yt-player-updated",_.Nd(this,this.onPlayerUpdated_));Z.getPlayerPromise().then(function(N){L.playerApiReady_(N)});
_.c("kevlar_watch_flexy_playlist_manager")||(Z=_.GR().resolve(_.Nv),_.c("kevlar_watch_observe_playlist_navigations_killswitch")&&Z.addEventListener("yt-navigate",_.Nd(this,this.onYtNavigate_)),Z.setPlaylistComponent(_.QJ(this.hostElement).querySelector("#playlist")),Z.addEventListener("yt-playlist-data-updated",_.Nd(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.ro.addLowPriorityJob(function(){_.QT(L.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.JS(this).removeEventListener("yt-player-updated",_.Nd(this,this.onPlayerUpdated_));if(!_.c("kevlar_watch_flexy_playlist_manager")){var L=_.GR().resolve(_.Nv);_.c("kevlar_watch_observe_playlist_navigations_killswitch")&&L.removeEventListener("yt-navigate",_.Nd(this,this.onYtNavigate_));L.cancelVideoSkip();L.removeEventListener("yt-playlist-data-updated",_.Nd(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.c("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.QT(this.hostElement,"yt-autonav-pause-player",!1);L=_.mg();_.c("kevlar_exit_fullscreen_leaving_watch")&&L&&_.Jd(L)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(L){this.player&&this.player.updateVideoData({rvs:L.rvs})},
getPageContents:function(L){return L&&L.contents&&L.contents.twoColumnWatchNextResults&&L.contents.twoColumnWatchNextResults.results&&L.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(L){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",L)},
onRetrieveLocation_:function(L,Z){Z.hasComments?Z.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):Z.locationRetrieved("/related_ajax",void 0);L.stopPropagation()},
onSubscriptionChanged_:function(L,Z){this.player&&(Z?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.cf7("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.QJ(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.QJ(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(L){this.player=L;this.setPlayerState(L.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.c("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.c("kevlar_unified_player")||_.c("kevlar_player_new_bootstrap_adoption"))&&_.Ui()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(L,Z){Z=Z===void 0?!0:Z;_.mg()&&_.c("external_fullscreen")&&_.Jd(document.documentElement);this.theaterRequested_=L;Z&&_.Ie("wide",L?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.c("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.XJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.QT(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(L){_.Xv(L,typeof this.player),this.player&&_.Xv(L,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var L;((L=this.player)==null?0:L.isFullscreen())?this.player.toggleFullscreen():_.XJ(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(L,Z){return this.loading?Z:!!Object.keys(L).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(L){if(L){L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.youThereRenderer&&_.RRw(this.youThereManager_,Z.youThereRenderer)}},
setPlaylistData_:function(L){return L||{}},
userEngagementConfigDataChanged_:function(L){if(L)if(L.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var Z=this.youThereManager_;_.Fv()<L.lowEngagementThresholdMs||_.fTG(Z,!0)}else L.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.XJ(this.hostElement,"yt-autonav-pause-user-engagement",[L])},
isPlayerUnavailable_:function(L,Z,N){return!!L&&!this.isVideoPlayable_(L,N)&&!Z},
getPlayerOverlays_:function(L){return(L==null?void 0:L.playerOverlays)||null},
isVideoPlayable_:function(L,Z){if(!L)return!1;var N=L.status==="OK"||L.status==="LIVE_STREAM_OFFLINE",S=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",L)||this.get("errorScreen.ypcTrailerRenderer",L);L=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",L);var u;Z=Z==null?void 0:(u=Z.playerOverlayRenderer)==null?void 0:u.gatedActionsOverlayRenderer;return!!N||!!S||!!L||!!Z},
hasWatchNextResponseErrorRenderer:function(L){var Z=this.getPageContents(L),N,S,u,T,W;return!(L==null?0:(N=L.contents)==null?0:(S=N.twoColumnWatchNextResults)==null?0:S.secondaryResults)&&!!((u=Z[0])==null?0:(T=u.itemSectionRenderer)==null?0:(W=T.contents[0])==null?0:W.backgroundPromoRenderer)},
isLiveStreamOffline_:function(L){return L?L.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(L,Z,N){var S=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Z),u=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];u=_.c("web_no_skip_video_on_verification_checks")?(L==null?void 0:L.status)&&u.includes(L.status):L&&L.status==="AGE_CHECK_REQUIRED";var T=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",L);T==void 0&&(T=!0);!N||this.isVideoPlayable_(L,this.getPlayerOverlays_(Z))||
S||u||!T||_.GR().resolve(_.Nv).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.VM9()},
onPlayerFeedbackStartRequest_:function(L){_.XJ(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:L}])},
onPlayerFeedbackArticleRequest_:function(L){_.XJ(this.hostElement,"yt-help-dialog-requested",[L])},
onPlayerYpcContentRequest_:function(){var L,Z,N,S,u,T,W,V,M=((L=this.data)==null?NaN:(Z=L.contents)==null?NaN:(N=Z.twoColumnWatchNextResults)==null?NaN:(S=N.secondaryResults)==null?NaN:(u=S.secondaryResults)==null?NaN:(T=u.offerModule)==null?NaN:(W=T.tvfilmOfferModuleRenderer)==null?NaN:(V=W.actionButtons)==null?NaN:V.length)-1;L=[".offerButton.buttonRenderer.",".actionButtons."+(M>=0?M:0)+".buttonRenderer."];Z=_.O(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(N=Z.next();!N.done;N=Z.next())for(N=N.value,S=_.O(L),u=S.next();!u.done;u=S.next())if(u="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+N+u.value,u=this.get(u+"navigationEndpoint",this.data)||this.get(u+"serviceEndpoint",this.data)||this.get(u+"command",this.data)){_.LY(u,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(L){_.QT(this.hostElement,"yt-autonav-pause-player",L)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(L){L()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(L){switch(L){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(L){switch(L){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.QT(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(L)},
setPlayerState:function(L){_.Pv().dispatch(_.APL(L))},
onPlayerSubscribe_:function(L){_.XJ(this.hostElement,"yt-player-subscribe",[L])},
onPlayerUnsubscribe_:function(L){_.XJ(this.hostElement,"yt-player-unsubscribe",[L])},
onPlayerAdYtShowToast_:function(L){_.XJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:L.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(L){if(L)return L},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(L){return!_.c("web_watch_move_summary_to_sd")&&!!L},
computeWatchMetadataRefresh:function(){return _.c("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var L,Z,N,S;this.watchNextSecondaryResults=(L=this.data)==null?void 0:(Z=L.contents)==null?void 0:(N=Z.twoColumnWatchNextResults)==null?void 0:(S=N.secondaryResults)==null?void 0:S.secondaryResults}},
setRichGridRendererData:function(L){this.richGridRendererData=L},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var L,Z=(L=this.data)==null?void 0:L.engagementPanels;if(Z==null?0:Z.length){L=null;Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next()){N=N.value;var S=void 0;if(((S=N.engagementPanelSectionListRenderer)==null?void 0:S.targetId)==="engagement-panel-structured-description"){L=N;break}}var u,T,W;L=(u=L)==null?void 0:(T=u.engagementPanelSectionListRenderer)==null?void 0:(W=T.content)==null?void 0:W.structuredDescriptionContentRenderer;if(L==null?0:L.items){u=
[];T=_.O(L.items);for(W=T.next();!W.done;W=T.next()){W=W.value;if(!_.c("sd_horizontal_list_show_nav_killswitch")){var V=S=N=Z=L=void 0,M=void 0,G=(L=W.horizontalCardListRenderer)==null?void 0:(Z=L.header)==null?void 0:(N=Z.richListHeaderRenderer)==null?void 0:(S=N.navigationButton)==null?void 0:(V=S.buttonRenderer)==null?void 0:(M=V.command)==null?void 0:M.commandExecutorCommand;G&&G.commands&&(G.commands=G.commands.filter(function(D){return!_.n(D,_.K0w)}))}W.expandableVideoDescriptionBodyRenderer||
W.videoDescriptionHeaderRenderer||u.push(W)}return{items:u}}}},
constructWarning_:function(L){return{text:_.s9(L),type:"WARNING"}},
isPlaShelfEnabled_:function(L){if((this.get("adPlacements",L)||[]).length)return!0;L=this.get("playerAds",L)||[];return!(!L.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",L[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var L=this;_.QT(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var Z=this.getScrollTop()>0;this.gestures_&&(Z?this.gestures_.detach():this.gestures_.attach());Z!==this.showFullerscreenEdu_&&_.c("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=Z,_.JS(this).getPlayerPromise().then(function(N){N.updateFullerscreenEduButtonVisibility(L.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.QT(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var L=this;this.commentsReady=!1;_.ro.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.sI(_.ro,function(){L.setComments_()},1E3)},
setComments_:function(){if(!_.c("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Rq("cmi");_.ro.cancelJob(this.setCommentsJobId_);var L=this.getPageContents(this.data);if(L&&L.length){L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,this.get("itemSectionRenderer.sectionIdentifier",Z)==="comment-item-section"){this.comments=Z.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.QT(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.c("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.c("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Rq("cmc")},
doRemoveComments_:function(){this.comments={};_.c("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.ro.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.ro.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(L,Z){var N=_.n(Z.endpoint,_.so);N&&(!(Z=this.get("data.currentVideoEndpoint.watchEndpoint"))||N.videoId!==Z.videoId||N.playlistId&&N.playlistId!==Z.playlistId||N.index!==void 0&&N.index!==Z.index||typeof N.startTimeSeconds!=="number"||(L.stopPropagation(),this.setScrollTop(0),_.JS(this).getPlayerPromise().then(function(S){var u=N.startTimeSeconds;S.seekTo(u);S.wakeUpControls();u<S.getDuration()&&S.playVideo()})))},
updatePlayerStartTime_:function(){var L=_.XBn();"t"in L&&(L=_.W36(L.t),this.player.seekTo(L,!0))},
updateTitleFromWatchNext:function(L){L=this.getPageContents(L);var Z,N;(L=_.jM(L==null?void 0:(Z=L[0])==null?void 0:(N=Z.videoPrimaryInfoRenderer)==null?void 0:N.title))&&_.QT(this.hostElement,"yt-update-title",L)},
updateTitle_:function(L){L=this.get("videoDetails.title",L)||"";_.QT(this.hostElement,"yt-update-title",L)},
syncWithRemoteVideo_:function(L,Z,N){if(this.active&&this.player){var S=this.player.getVideoData();if(S.video_id===N&&(N=S.list,_.c("polymer_enable_mdx_queue")&&N&&N.startsWith("RQ")&&(N=void 0),S.video_id!==L||N!=Z)){var u;_.c("kevlar_player_watch_endpoint_navigation")?u=_.pJB(_.ik6(L,Z)):u=this.buildWatchEndpoint_(L,Z);_.QT(this.hostElement,"yt-navigate",{endpoint:u,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(L,Z,N){return _.Jq(L,Z,N)},
initDclkstatus_:function(){_.tMt()},
attachWatchPageSkeleton_:function(){var L=document.querySelector("#watch-page-skeleton");if(L){var Z=L.querySelector("#primary-info"),N=L.querySelector("#secondary-info"),S=L.querySelector("#related");Z&&_.QJ(this.hostElement).querySelector("#info-skeleton").appendChild(Z);N&&_.QJ(this.hostElement).querySelector("#meta-skeleton").appendChild(N);S&&(_.QJ(this.hostElement).querySelector("#related-skeleton").appendChild(S),this.watchNextSkeletonEl_=S);_.U_(L)}},
handlePlayerUpdated_:function(){_.JS(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(L,Z){if(this.watchNextSkeletonEl_&&typeof Z!=="undefined"){var N=this.watchNextSkeletonEl_.children,S=L&&L.indexSplices.length?L.indexSplices[0].index:0;L=Math.min(this.watchNextShownItems.length,N.length);Z||(S=0,L=N.length);for(Z=S;Z<L;Z++)N[Z].classList.add("hidden")}},
onPlayerFullscreenChange_:function(L){_.c("external_fullscreen")||_.XJ(this.hostElement,"yt-player-fullscreen",[L.fullscreen])},
onFullscreenChange_:function(L){this.fullscreen=L;this.gestures_&&this.gestures_.update(this.fullscreen);var Z=_.JS(this);Z.getPlayerPromise().then(function(N){N.setFauxFullscreen(!!_.mg())});
this.updateFullBleedElementLocations();L&&(Z.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(L,Z){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!Z},
computeIsDonationShelfCollapsed_:function(L){return L},
computeShouldShowMerchShelf:function(L,Z){return Z&&!!L},
computeResponseHasComments:function(L){var Z,N,S,u,T;return!!(L==null?0:(Z=L.contents)==null?0:(N=Z.twoColumnWatchNextResults)==null?0:(S=N.results)==null?0:(u=S.results)==null?0:(T=u.contents)==null?0:T.some(function(W){var V;return(W==null?void 0:(V=W.itemSectionRenderer)==null?void 0:V.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(L,Z){this.responseHasComments=this.computeResponseHasComments(this.data);return!!L&&!!Object.keys(L).length&&!Z},
identity:_.sG,onWindowResized_:function(L){this.windowSize_=L;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.c("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(L){var Z=this;L&&L.type!=="dataloaded"&&L.type!=="dataupdated"||_.JS(this).getPlayerPromise().then(function(N){var S=N.getPlayerState();S!==5&&S!==0&&(N=1/N.getVideoAspectRatio(),Z.videoHeightToWidthRatio_!==N&&(Z.videoHeightToWidthRatio_=N))})},
schedulePlayerSizeUpdate_:function(L){var Z=this,N=_.c("kevlar_watch_while_v2")||_.c("web_watch_pip"),S=function(){if(Z.watchMetadata){var u,T;(T=(u=Z.watchMetadata).resize)==null||T.call(u)}_.JS(Z).getPlayerPromise().then(function(W){if(_.c("kevlar_set_internal_player_size")){if(!N||!Z.isMiniplayerActive()){var V=Z.calculateCurrentPlayerSize_();W.setInternalSize(V.width,V.height)}}else W.setSize(NaN,NaN);_.c("kevlar_watch_while")&&Z.updateWatchWhileScrollThreshold_()})};
L?S():_.SW(_.ro,S)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(L){this.set("data.survey",L.detail)},
onYtShowSurveyCommand_:function(L){this.set("data.survey",_.n(L,_.Dei).survey)},
onDownloadedVideoDeleted:function(L){var Z=this,N,S;return _.b(function(u){if(u.nextAddress==1){if(!Z.active||(N=Z.playerData)==null||!N.offlineState||Z.videoId!==L)return u.return();(S=Z.player)==null||S.stopVideo();_.dM().navigatingAwayFromWatchDeletedVideo=!0;_.LY(_.C8B,Z.hostElement);return u.yield(_.dM().navigationFinishPromise,2)}_.dM().navigatingAwayFromWatchDeletedVideo=!1;_.w7(u)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var L;this.theater?L=_.nM(.5625*this.windowSize_.width,480,this.windowSize_.height-185):L=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==L&&(this.watchWhileScrollThreshold_=L,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var L=_.QJ(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&L){var Z=this.windowSize_.height>=624,N=this.active?this.getScrollTop():0;!L.active&&Z&&N>=this.watchWhileScrollThreshold_?(L.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):L.active&&(!Z||N<this.watchWhileScrollThreshold_&&!_.mg())&&(L.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(L,Z){if(L!==!0||Z!==void 0){L=!_.c("live_chat_over_engagement_panels");Z=_.QJ(this.hostElement).querySelector("#chat-container");var N=_.QJ(this.hostElement).querySelector("#plj-sidebar"),S=_.QJ(this.hostElement).querySelector("#panels"),u=_.QJ(this.hostElement).querySelector("#plj-panels"),T=_.QJ(this.hostElement).querySelector("#plj-playlist"),W=_.QJ(this.hostElement).querySelector("#alerts"),V=_.QJ(this.hostElement).querySelector("#playlist"),M=_.QJ(this.hostElement).querySelector("#related"),
G=_.QJ(this.hostElement).querySelector("#donation-shelf"),D=_.QJ(this.hostElement).querySelector("#comments");this.isTwoColumns_?(W=_.QJ(this.hostElement).querySelector("#secondary-inner"),W.appendChild(N),N.appendChild(T),T.appendChild(V),N.appendChild(u),L&&W.appendChild(S),_.c("web_watch_theater_chat")||W.appendChild(Z),L||W.appendChild(S),W.appendChild(G),W.appendChild(M)):(L&&_.In(S,W),_.In(V,W),_.c("web_watch_theater_chat")||_.In(Z,W),L||_.In(S,W),_.In(G,W),D&&(u&&_.In(u,D),_.In(M,D)));_.c("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.c("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.c("web_watch_theater_chat")){var L=_.QJ(this.hostElement).querySelector("#chat-container"),Z=this.theater&&!this.fullscreen||_.c("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&Z?_.c("web_watch_theater_chat_beside_player")?(Z=_.QJ(this.hostElement).querySelector("#panels-full-bleed-container"),(L==null?void 0:L.parentElement)!==Z&&Z.append(L),this.panelsBesidePlayer=!0):_.c("web_watch_theater_fixed_chat")&&
(Z=_.QJ(this.hostElement).querySelector("#columns"),(L==null?void 0:L.parentElement)!==Z&&Z.append(L),this.fixedPanels=!0):(_.c("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.c("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),Z=_.QJ(this.hostElement).querySelector("#playlist"),L&&Z?_.dI(L,Z):_.Q7(new _.sr("Missing element when updating chat location",{"chatContainer defined":!!L,"playlist defined":!!Z})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(L,Z){return _.c("sw_metadata_vis_toggle_ks")?!0:!!L||!!Z},
computeForceDarkPanelTheme:function(L){return _.c("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&L:!1},
safeUpdateStyles:function(L){try{_.Ld(this.hostElement,L)}catch(Z){_.Q7(Z)}},
videoHeightToWidthRatioChanged_:function(L,Z){Z&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.c("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(L){this.videoHeightToWidthRatio_=1/L},
computeIsVerticalVideo_:function(L){return L>=1},
computeIsFourThreeToSixteenNineVideo_:function(L){return L<=.7501&&L>=.5624},
computeIsExtraWideVideo_:function(L){return L<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.JS(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.JS(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.kaf(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(L){var Z=_.G7(L)||0;_.gr(L,Z+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var L=_.G7("yt-fullerscreen-edu-button-click-count")||0,Z=_.G7("yt-fullerscreen-edu-button-shown-count")||0,N=_.lQ("external_fullscreen_button_shown_threshold"),S=L>=_.lQ("external_fullscreen_button_click_threshold")||Z>=N;_.JS(this).getPlayerPromise().then(function(u){u.updateFullerscreenEduButtonSubtleModeState(S)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(L,Z){return Z},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.GR().resolve(_.Nv).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var L=this;this.panelMaxHeightUpdateJob_&&_.ro.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.ro.addLowPriorityJob(function(){L.panelMaxHeightUpdateJob_=0;var Z;!L.isTwoColumns_||L.theater||L.fullscreen?Z=460:Z=L.calculateNormalPlayerSize_().height;var N=Z+"px";_.c("live_chat_taller_height")&&!L.theater&&(N="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.c("live_chat_medium_height")&&
!L.theater&&(N="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.c("live_chat_scaled_height")&&!L.theater&&(N="calc(100vh - var(--ytd-toolbar-height) - 238px)");L.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":Z+"px","--ytd-watch-flexy-chat-max-height":N,"--ytd-watch-flexy-structured-description-max-height":Z+"px","--ytd-watch-flexy-comments-panel-max-height":Z+"px","--ytd-comments-engagement-panel-content-height":Z+"px"})})},
onYtShowEngagementPanelScrimAction_:function(L){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",L)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.B2(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(L){var Z=_.QJ(this.hostElement).querySelector("#engagement-panel-scrim");L?Z.addEventListener("tap",_.Nd(this,this.onEngagementPanelScrimClick_)):Z.removeEventListener("tap",_.Nd(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(L){if(this.hostElement.contains(L)&&!this.scrollToAnimation_.isAnimating()){var Z=L.offsetTop-24;L=L.offsetTop+L.offsetHeight+24;var N=this.getPageScrollingElement(),S=this.getScrollTop(),u=S+N.clientHeight-56;if(Z<S+56)Z-=56;else if(L>u)Z=L-N.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,Z),500)}},
onYtSignalActionScrollToComments:function(){var L=this.hostElement.querySelector("#comments");if(L&&!this.scrollToAnimation_.isAnimating()){L=L.offsetTop-56-24;if(_.c("kevlar_comment_teaser_scroll_to_midpoint")&&(L-=_.UN().height/3,L<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,L),500)}},
onYtEngagementPanelVisibleChanged:function(L,Z,N){this.active&&this.trackEngagementPanelVisibility&&!_.F3i.includes(N)&&(Z==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(N),Z!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&Z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(N),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(L){return L?"":"watch-active-metadata"},
computeNewMetadataClass:function(L){return L?"watch-active-metadata":""},
computeFullBleedPlayer:function(L,Z){return L||Z},
computeDefaultLayout:function(L){return!L},
computeDefaultTwoColumnLayout:function(L,Z){return!L&&Z},
computeWatchWhilePanelsActive:function(L,Z){return L||Z},
computeNoBorderOnChat:function(L){return _.c("web_watch_theater_chat_no_border")&&L},
computeLiveChatPresentAndExpanded:function(L,Z){return L&&!Z},
computePanelExpanded:function(L,Z,N){return L||Z||N},
onChangeMarkersVisibility:function(L){_.JS(this).getPlayerPromise().then(function(Z){var N;(N=Z.changeMarkerVisibility)==null||N.call(Z,_.n(L,_.Jm).isVisible||!1,_.n(L,_.Jm).entityKeys||[],_.n(L,_.Jm).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(L){this.liveChatCollapsed=L.detail;_.Pv().dispatch(_.Gan(L.detail))},
provideRenderingData:function(L,Z){switch(L){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=Z;break;case "PRIMARY_INFO":_.c("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=Z);this.videoPrimaryInfoRendererValue=Z==null?void 0:Z.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.c("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=Z);this.videoSecondaryInfoRendererValue=Z==null?void 0:Z.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
Z;break;case "CLARIFICATION":this.clarifyBoxValue=Z;break;case "LIVE_CHAT":this.conversationBar=Z;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=Z;break;case "PLAYLIST":this.externalPlaylistData_=Z!=null?Z:{};break;case "MERCH_SHELF":this.merchShelfValue=Z==null?void 0:Z.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=Z;break;case "OFFER_MODULE":this.offerModule=Z;break;case "LIMITED_STATE":this.limitedStateValue=Z;break;case "DONATION_SHELF":this.donation=Z;break;
case "ALERTS":this.alertsValue=Z;break;case "COMMENTS":this.comments=Z;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=Z;break;case "ENGAGEMENT_PANELS":this.engagementPanels=Z;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=Z;break;case "RICH_GRID_RENDERER":this.richGridRendererData=Z;break;case "EXPANDABLE_METADATA":this.expandableMetadata=Z;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=Z}},
toggleCinematicsActive:function(L){this.cinematicsActive=L},
isMiniplayerActive:function(){return _.GR().resolve(_.yk).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(L){return XvM.map(function(Z){return L.find(function(N){var S;return(N==null?void 0:(S=N.engagementPanelSectionListRenderer)==null?void 0:S.targetId)===Z})}).filter(function(Z){return Z!==void 0})},
getNonLearningJourneyEngagementPanels:function(L){return L.filter(function(Z){var N;return!XvM.includes((Z==null?void 0:(N=Z.engagementPanelSectionListRenderer)==null?void 0:N.targetId)||"")})}}];var AN7;var qm=function(){var L=_.e.apply(this,arguments)||this;L.flexy=!0;L.learningJourney=!0;L.viewTransitionEnabled=_.c("enable_player_resize_transition");L.smallerChatMinHeight=_.c("live_chat_smaller_min_height");L.cinematicTheaterMode=_.c("web_cinematic_theater_mode");L.transparentTheaterMode=_.c("web_transparent_theater_mode");L.cinematicFullscreen=_.c("web_cinematic_fullscreen");L.cinematicFullscreenV2=_.c("web_cinematic_fullscreen_v2");L.isDarkTheme=document.documentElement.hasAttribute("dark");
L.theaterLargerPlayer=_.c("web_watch_theater_larger_player");L.defaultCollapsePlaylist=_.c("web_watch_default_collapse_playlist");L.enableCanvasLayout=_.c("web_enable_canvas_on_learning_journey");return L};
_.f(qm,_.e);_.t=qm.prototype;_.t.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.t.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.t.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.t.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.t.ready=function(){var L=this,Z=function(){L.onColumnScroll()};
this.primary.addEventListener("scroll",Z);this.secondary.addEventListener("scroll",Z)};
_.t.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.t.updateIsTwoColumnsFromBinding=function(L){_.c("web_watch_update_narrow_width_killswitch")||_.Pv().dispatch(_.DTV(!L.detail.value));this.ytdWatchBehavior.isTwoColumns_=L.detail.value};
_.t.updateFlexySmallWindowFromBinding=function(L){this.ytdWatchBehavior.flexySmallWindow_=L.detail.value};
_.t.updateFlexyLargeWindowFromBinding=function(L){this.ytdWatchBehavior.flexyLargeWindow_=L.detail.value};
_.t.updateWatchWhileWindowSizeSufficientFromBinding=function(L){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=L.detail.value};
_.t.updateWatchNextCanShowMoreFromBinding=function(L){this.ytdWatchBehavior.watchNextCanShowMore=L.detail.value};
_.t.updateShownItemsFromBinding=function(L){L.detail.path?this.set(L.detail.path,L.detail.value):this.ytdWatchBehavior.watchNextShownItems=L.detail.value};
_.t.getElement=function(L){switch(L){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23414_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23414_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.gd.Object.defineProperties(qm.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 L;if((L=this.data)==null||!L.pageVisualEffects)return!1;for(var Z=0;Z<this.data.pageVisualEffects.length;Z++)if(L=_.n(this.data.pageVisualEffects[Z],_.NE))return Z=void 0,(Z=L.config)==null?void 0:Z.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.learningJourneyEngagementPanels)==null?void 0:L.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var L,Z=(L=this.learningJourneyEngagementPanels)==null?void 0:L.find(function(v){var R;return(v==null?void 0:(R=v.engagementPanelSectionListRenderer)==null?void 0:R.panelIdentifier)==="learning-journey-engagement-panel"});
if(Z){var N,S,u,T,W,V,M,G,D;if(L=(G=((M=(W=((T=Z==null?void 0:(N=Z.engagementPanelSectionListRenderer)==null?void 0:(S=N.content)==null?void 0:(u=S.sectionListRenderer)==null?void 0:u.contents)!=null?T:[])[0])==null?void 0:(V=W.itemSectionRenderer)==null?void 0:V.contents)!=null?M:[])[0])==null?void 0:(D=G.accordionViewModel)==null?void 0:D.onTitleTap){var l=_.KY(L);if(l)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.qd.instance.resolveCommand(l)}}}}}}});
_.gd.Object.defineProperties(qm,{template:{configurable:!0,enumerable:!0,get:function(){if(AN7===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);AN7=L}L=AN7;return L}}});
qm.prototype.updateMiniplayerIsActiveValue=qm.prototype.updateMiniplayerIsActiveValue;qm.prototype.updateScrollTopValue=qm.prototype.updateScrollTopValue;qm.prototype.updateFullscreenValue=qm.prototype.updateFullscreenValue;qm.prototype.updateTheaterValue=qm.prototype.updateTheaterValue;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],qm.prototype,"ytComponentBehavior",void 0);
_.r([_.y(QiV.YtdLearningJourneyWatchBehavior),_.Q("design:type",Object)],qm.prototype,"ytdWatchBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],qm.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],qm.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],qm.prototype,"playerData",void 0);_.r([_.Y(),_.Q("design:type",Object)],qm.prototype,"browseData",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],qm.prototype,"flexy",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],qm.prototype,"learningJourney",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],qm.prototype,"viewTransitionEnabled",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],qm.prototype,"smallerChatMinHeight",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],qm.prototype,"cinematicTheaterMode",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],qm.prototype,"transparentTheaterMode",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],qm.prototype,"cinematicFullscreen",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],qm.prototype,"cinematicFullscreenV2",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],qm.prototype,"isDarkTheme",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],qm.prototype,"theaterLargerPlayer",void 0);_.r([_.Y(),_.Q("design:type",Object)],qm.prototype,"defaultCollapsePlaylist",void 0);_.r([_.Y(),_.Q("design:type",Object)],qm.prototype,"enableCanvasLayout",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("playerData","browseData","enableCanvasLayout"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],qm.prototype,"showBrowseResponse",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("playerData","enableCanvasLayout"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],qm.prototype,"showWatchResponse",null);_.r([_.Y({selector:_.cQ}),_.Q("design:type",Object)],qm.prototype,"theaterValue",void 0);_.r([_.Y({selector:_.nV}),_.Q("design:type",Object)],qm.prototype,"fullscreenValue",void 0);_.r([_.Y({selector:_.e1}),_.Q("design:type",Object)],qm.prototype,"scrollTopValue",void 0);
_.r([_.Y({selector:_.Ri}),_.Q("design:type",Object)],qm.prototype,"miniplayerIsActiveValue",void 0);_.r([_.TX("#ytd-plj-player"),_.Q("design:type",HTMLElement)],qm.prototype,"ytdPlayer",void 0);_.r([_.TX("#playlist"),_.Q("design:type",HTMLElement)],qm.prototype,"JSC$23414_ytdPlaylistPanelRenderer",void 0);_.r([_.pr("ytd-comments"),_.Q("design:type",HTMLElement)],qm.prototype,"ytdComments",void 0);_.r([_.TX("#primary"),_.Q("design:type",HTMLElement)],qm.prototype,"primary",void 0);
_.r([_.TX("#secondary"),_.Q("design:type",HTMLElement)],qm.prototype,"secondary",void 0);_.r([_.TX("#player-container"),_.Q("design:type",HTMLElement)],qm.prototype,"playerContainer",void 0);_.r([_.TX("#cinematics"),_.Q("design:type",HTMLElement)],qm.prototype,"JSC$23414_cinematics",void 0);_.r([_.iA("theaterValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qm.prototype,"updateTheaterValue",null);
_.r([_.iA("fullscreenValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qm.prototype,"updateFullscreenValue",null);_.r([_.iA("scrollTopValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qm.prototype,"updateScrollTopValue",null);_.r([_.iA("miniplayerIsActiveValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qm.prototype,"updateMiniplayerIsActiveValue",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],qm.prototype,"cinematicLightTheme",null);_.r([_.Y({reflectToAttribute:!0}),_.w("learningJourneyEngagementPanels"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],qm.prototype,"hasLearningJourneyPanels",null);_.r([_.w("learningJourneyEngagementPanels"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],qm.prototype,"backButtonData",null);_.r([_.P({is:"ytd-watch-learning-journey"})],qm);_.re.registerService(_.V0f,qm);
_.mm();
}catch(e){_._DumpException(e)}
try{
_.z3("Tm0L3c");
var hR8;var siw;var jin=function(){return _.e.apply(this,arguments)||this};
_.f(jin,_.e);_.r([_.P({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],jin);
_.m(jin,"ytd-ghost-comments-renderer",function(){if(siw===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);siw=L}L=siw;return L},{mode:1});var EQM;var P2G=function(){return _.e.apply(this,arguments)||this};
_.f(P2G,_.e);_.r([_.P({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],P2G);
_.m(P2G,"ytd-ghost-watch-metadata-renderer",function(){if(EQM===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);EQM=L}L=EQM;return L},{mode:1});var xO=function(){var L=_.e.apply(this,arguments)||this;L.ghostGridRenderer={rows:6};L.smallerChatMinHeight=_.c("live_chat_smaller_min_height");L.cinematicTheaterMode=_.c("web_cinematic_theater_mode");L.transparentTheaterMode=_.c("web_transparent_theater_mode");L.darkerPanels=_.c("web_watch_darker_panels");L.cinematicFullscreen=_.c("web_cinematic_fullscreen");L.cinematicFullscreenV2=_.c("web_cinematic_fullscreen_v2");L.isDarkTheme=document.documentElement.hasAttribute("dark");return L};
_.f(xO,_.e);_.t=xO.prototype;_.t.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.t.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.t.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.t.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.t.ready=function(){var L=this,Z=function(){L.onColumnScroll()};
this.primary.addEventListener("scroll",Z);this.secondary.addEventListener("scroll",Z)};
_.t.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.t.updateIsTwoColumnsFromBinding=function(L){this.ytdWatchBehavior.isTwoColumns_=L.detail.value};
_.t.updateFlexySmallWindowFromBinding=function(L){this.ytdWatchBehavior.flexySmallWindow_=L.detail.value};
_.t.updateFlexyLargeWindowFromBinding=function(L){this.ytdWatchBehavior.flexyLargeWindow_=L.detail.value};
_.t.updateWatchWhileWindowSizeSufficientFromBinding=function(L){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=L.detail.value};
_.t.updateWatchNextCanShowMoreFromBinding=function(L){this.ytdWatchBehavior.watchNextCanShowMore=L.detail.value};
_.t.updateShownItemsFromBinding=function(L){_.c("swatcheroo_direct_use_rich_grid")||(L.detail.path?this.set(L.detail.path,L.detail.value):this.ytdWatchBehavior.watchNextShownItems=L.detail.value)};
_.t.getElement=function(L){switch(L){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23402_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23402_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.gd.Object.defineProperties(xO.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.data)==null||!L.pageVisualEffects)return!1;for(var Z=0;Z<this.data.pageVisualEffects.length;Z++)if(L=_.n(this.data.pageVisualEffects[Z],_.NE))return Z=void 0,(Z=L.config)==null?void 0:Z.enableInLightTheme;return!1}}});
xO.prototype.updateMiniplayerIsActiveValue=xO.prototype.updateMiniplayerIsActiveValue;xO.prototype.updateScrollTopValue=xO.prototype.updateScrollTopValue;xO.prototype.updateFullscreenValue=xO.prototype.updateFullscreenValue;xO.prototype.updateTheaterValue=xO.prototype.updateTheaterValue;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],xO.prototype,"ytComponentBehavior",void 0);
_.r([_.y(_.de9.YtdWatchBehavior),_.Q("design:type",Object)],xO.prototype,"ytdWatchBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],xO.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],xO.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],xO.prototype,"ghostGridRenderer",void 0);_.r([_.Y(),_.Q("design:type",Object)],xO.prototype,"playerData",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xO.prototype,"smallerChatMinHeight",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xO.prototype,"cinematicTheaterMode",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xO.prototype,"transparentTheaterMode",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xO.prototype,"darkerPanels",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xO.prototype,"cinematicFullscreen",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xO.prototype,"cinematicFullscreenV2",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xO.prototype,"isDarkTheme",void 0);_.r([_.Y({selector:_.cQ}),_.Q("design:type",Object)],xO.prototype,"theaterValue",void 0);_.r([_.Y({selector:_.nV}),_.Q("design:type",Object)],xO.prototype,"fullscreenValue",void 0);_.r([_.Y({selector:_.e1}),_.Q("design:type",Object)],xO.prototype,"scrollTopValue",void 0);
_.r([_.Y({selector:_.Ri}),_.Q("design:type",Object)],xO.prototype,"miniplayerIsActiveValue",void 0);_.r([_.TX("#ytd-player"),_.Q("design:type",HTMLElement)],xO.prototype,"ytdPlayer",void 0);_.r([_.TX("#playlist"),_.Q("design:type",HTMLElement)],xO.prototype,"JSC$23402_ytdPlaylistPanelRenderer",void 0);_.r([_.TX("#ytd-comments"),_.Q("design:type",HTMLElement)],xO.prototype,"ytdComments",void 0);_.r([_.TX("#primary"),_.Q("design:type",HTMLElement)],xO.prototype,"primary",void 0);
_.r([_.TX("#secondary"),_.Q("design:type",HTMLElement)],xO.prototype,"secondary",void 0);_.r([_.TX("#player-container"),_.Q("design:type",HTMLElement)],xO.prototype,"playerContainer",void 0);_.r([_.TX("#cinematics"),_.Q("design:type",HTMLElement)],xO.prototype,"JSC$23402_cinematics",void 0);_.r([_.iA("theaterValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xO.prototype,"updateTheaterValue",null);
_.r([_.iA("fullscreenValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xO.prototype,"updateFullscreenValue",null);_.r([_.iA("scrollTopValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xO.prototype,"updateScrollTopValue",null);_.r([_.iA("miniplayerIsActiveValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xO.prototype,"updateMiniplayerIsActiveValue",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xO.prototype,"cinematicLightTheme",null);
_.m(xO,"ytd-watch-grid",function(){if(hR8===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);hR8=L}L=hR8;return L},{mode:2});_.re.registerService(_.WTw,xO);
_.mm();
}catch(e){_._DumpException(e)}
try{
_.z3("CF909");
var aTV;var B_=function(){var L=_.e.apply(this,arguments)||this;L.viewTransitionEnabled=_.c("enable_player_resize_transition");L.smallerChatMinHeight=_.c("live_chat_smaller_min_height");L.cinematicTheaterMode=_.c("web_cinematic_theater_mode");L.transparentTheaterMode=_.c("web_transparent_theater_mode");L.cinematicFullscreen=_.c("web_cinematic_fullscreen");L.isDarkTheme=document.documentElement.hasAttribute("dark");L.defaultCollapsePlaylist=_.c("web_watch_default_collapse_playlist");L.retroModeReduxValue=
!1;L.persistentPanelVisibleValue=!1;return L};
_.f(B_,_.e);_.t=B_.prototype;_.t.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.t.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.t.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.t.updateRetroModeReduxValue=function(){_.c("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.t.updatePersistentPanelVisibleValue=function(){_.c("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.t.ready=function(){var L=this,Z=function(){L.onColumnScroll()};
this.primary.addEventListener("scroll",Z);this.secondary.addEventListener("scroll",Z)};
_.t.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.t.updateIsTwoColumnsFromBinding=function(L){_.c("web_watch_update_narrow_width_killswitch")||_.Pv().dispatch(_.DTV(!L.detail.value));this.ytdWatchBehavior.isTwoColumns_=L.detail.value};
_.t.updateFlexySmallWindowFromBinding=function(L){this.ytdWatchBehavior.flexySmallWindow_=L.detail.value};
_.t.updateFlexyLargeWindowFromBinding=function(L){this.ytdWatchBehavior.flexyLargeWindow_=L.detail.value};
_.t.updateWatchWhileWindowSizeSufficientFromBinding=function(L){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=L.detail.value};
_.t.updateWatchNextCanShowMoreFromBinding=function(L){this.ytdWatchBehavior.watchNextCanShowMore=L.detail.value};
_.t.updateShownItemsFromBinding=function(L){L.detail.path?this.set(L.detail.path,L.detail.value):this.ytdWatchBehavior.watchNextShownItems=L.detail.value};
_.t.getElement=function(L){switch(L){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23397_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23397_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}};
_.gd.Object.defineProperties(B_.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.data)==null||!L.pageVisualEffects)return!1;for(var Z=0;Z<this.data.pageVisualEffects.length;Z++)if(L=_.n(this.data.pageVisualEffects[Z],_.NE))return Z=void 0,(Z=L.config)==null?void 0:Z.enableInLightTheme;return!1}}});
_.gd.Object.defineProperties(B_,{template:{configurable:!0,enumerable:!0,get:function(){if(aTV===void 0){var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);aTV=L}L=aTV;return L}}});
B_.prototype.updatePersistentPanelVisibleValue=B_.prototype.updatePersistentPanelVisibleValue;B_.prototype.updateRetroModeReduxValue=B_.prototype.updateRetroModeReduxValue;B_.prototype.updateScrollTopValue=B_.prototype.updateScrollTopValue;B_.prototype.updateFullscreenValue=B_.prototype.updateFullscreenValue;B_.prototype.updateTheaterValue=B_.prototype.updateTheaterValue;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],B_.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.de9.YtdWatchBehavior),_.Q("design:type",Object)],B_.prototype,"ytdWatchBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],B_.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],B_.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],B_.prototype,"playerData",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],B_.prototype,"viewTransitionEnabled",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],B_.prototype,"smallerChatMinHeight",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],B_.prototype,"cinematicTheaterMode",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],B_.prototype,"transparentTheaterMode",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],B_.prototype,"cinematicFullscreen",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],B_.prototype,"isDarkTheme",void 0);_.r([_.Y(),_.Q("design:type",Object)],B_.prototype,"defaultCollapsePlaylist",void 0);_.r([_.Y({selector:_.cQ}),_.Q("design:type",Object)],B_.prototype,"theaterValue",void 0);_.r([_.Y({selector:_.nV}),_.Q("design:type",Object)],B_.prototype,"fullscreenValue",void 0);
_.r([_.Y({selector:_.e1}),_.Q("design:type",Object)],B_.prototype,"scrollTopValue",void 0);_.r([_.Y({selector:_.Ri}),_.Q("design:type",Object)],B_.prototype,"miniplayerIsActive",void 0);_.r([_.Y({selector:function(L){return L.watch.isWatchRetroMode}}),
_.Q("design:type",Object)],B_.prototype,"retroModeReduxValue",void 0);_.r([_.Y({selector:_.Y9.persistentPanelVisibleSelector}),_.Q("design:type",Object)],B_.prototype,"persistentPanelVisibleValue",void 0);_.r([_.pr("ytd-player"),_.Q("design:type",HTMLElement)],B_.prototype,"ytdPlayer",void 0);_.r([_.TX("#playlist"),_.Q("design:type",HTMLElement)],B_.prototype,"JSC$23397_ytdPlaylistPanelRenderer",void 0);_.r([_.pr("ytd-comments"),_.Q("design:type",HTMLElement)],B_.prototype,"ytdComments",void 0);
_.r([_.TX("#primary"),_.Q("design:type",HTMLElement)],B_.prototype,"primary",void 0);_.r([_.TX("#secondary"),_.Q("design:type",HTMLElement)],B_.prototype,"secondary",void 0);_.r([_.TX("#player-container"),_.Q("design:type",HTMLElement)],B_.prototype,"playerContainer",void 0);_.r([_.TX("#below"),_.Q("design:type",HTMLElement)],B_.prototype,"below",void 0);_.r([_.TX("#cinematics"),_.Q("design:type",HTMLElement)],B_.prototype,"JSC$23397_cinematics",void 0);
_.r([_.TX("#persistent-panel-container"),_.Q("design:type",HTMLElement)],B_.prototype,"persistentPanelContainer",void 0);_.r([_.iA("theaterValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],B_.prototype,"updateTheaterValue",null);_.r([_.iA("fullscreenValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],B_.prototype,"updateFullscreenValue",null);
_.r([_.iA("scrollTopValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],B_.prototype,"updateScrollTopValue",null);_.r([_.iA("retroModeReduxValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],B_.prototype,"updateRetroModeReduxValue",null);_.r([_.iA("persistentPanelVisibleValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],B_.prototype,"updatePersistentPanelVisibleValue",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],B_.prototype,"cinematicLightTheme",null);_.r([_.P({is:"ytd-watch-flexy"})],B_);_.re.registerService(_.Oa1,B_);
_.mm();
}catch(e){_._DumpException(e)}
try{
_.z3("nmfa2d");
var QqM;var zM=function(){var L=_.e.apply(this,arguments)||this;L.hidden=!1;L.errorScreen=null;L.playlistData={};return L};
_.f(zM,_.e);_.t=zM.prototype;_.t.getPlayer=function(){return this.ytdPlayer};
_.t.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:_.$y(["aa","eocs"])}}};
_.t.onActiveChanged=function(){_.Pv().dispatch(_.K2n(this.ytPageBehavior.active))};
_.t.playerDataChanged=function(){var L;(L=this.watchController)==null||L.setPlayerResponse(this.playerData)};
_.t.dataChanged=function(){var L;(L=this.watchController)==null||L.setWatchNextResponse(this.data)};
_.t.sizeChanged=function(){var L,Z;(Z=(L=this.metadata).resize)==null||Z.call(L)};
_.t.attached=function(){this.watchController=new _.P_(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.t.detached=function(){_.W4(this.watchController);this.watchController=void 0};
_.t.getPlayerContainer=function(){return this.playerContainer};
_.t.getElement=function(L){switch(L){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.t.provideRenderingData=function(L,Z){switch(L){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=Z;break;case "ERROR_SCREEN":this.errorScreen=Z!=null?Z:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=Z;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=Z;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=Z;break;case "RICH_METADATA":this.richMetadataRowContainer=Z;break;case "CLARIFICATION":this.clarificationData=Z;break;case "PLAYLIST":this.playlistData=
Z!=null?Z:{};break;case "MERCH_SHELF":this.merchShelf=Z;break;case "TICKET_SHELF":this.ticketShelf=Z;break;case "LIMITED_STATE":this.limitedState=Z;break;case "DONATION_SHELF":this.donationShelf=Z;break;case "ALERTS":this.alerts=Z}};
_.gd.Object.defineProperties(zM.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return!this.hidden&&!!((L=this.data)==null?0:(Z=L.contents)==null?0:(N=Z.twoColumnWatchNextResults)==null?0:N.conversationBar)}}});
zM.prototype.sizeChanged=zM.prototype.sizeChanged;zM.prototype.dataChanged=zM.prototype.dataChanged;zM.prototype.playerDataChanged=zM.prototype.playerDataChanged;zM.prototype.onActiveChanged=zM.prototype.onActiveChanged;_.r([_.y(_.uw.YtPageBehavior),_.Q("design:type",Object)],zM.prototype,"ytPageBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],zM.prototype,"ytComponentBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],zM.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],zM.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],zM.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],zM.prototype,"playerData",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],zM.prototype,"hidden",void 0);_.r([_.TX("#ytd-player"),_.Q("design:type",HTMLElement)],zM.prototype,"ytdPlayer",void 0);_.r([_.TX("#player-container"),_.Q("design:type",HTMLElement)],zM.prototype,"playerContainer",void 0);_.r([_.TX("#metadata"),_.Q("design:type",Object)],zM.prototype,"metadata",void 0);_.r([_.TX("#playlist"),_.Q("design:type",HTMLElement)],zM.prototype,"playlistPanel",void 0);
_.r([_.Y({selector:_.l48,reflectToAttribute:!0}),_.Q("design:type",Object)],zM.prototype,"fixie",void 0);_.r([_.Y({selector:_.D$w,reflectToAttribute:!0}),_.Q("design:type",Object)],zM.prototype,"singleColumn",void 0);_.r([_.Y({selector:function(L){return _.cQ(L)&&!_.nV(L)},
reflectToAttribute:!0}),_.Q("design:type",Object)],zM.prototype,"theater",void 0);_.r([_.Y({selector:_.nV,reflectToAttribute:!0}),_.Q("design:type",Object)],zM.prototype,"fullscreen",void 0);_.r([_.Y({selector:_.RZt}),_.Q("design:type",Object)],zM.prototype,"windowSize",void 0);_.r([_.Y(),_.Q("design:type",Object)],zM.prototype,"singleColumnContents",void 0);_.r([_.Y(),_.Q("design:type",Object)],zM.prototype,"errorScreen",void 0);_.r([_.Y(),_.Q("design:type",Object)],zM.prototype,"playlistData",void 0);
_.r([_.Y(),_.Q("design:type",Object)],zM.prototype,"videoPrimaryInfoRenderer",void 0);_.r([_.Y(),_.Q("design:type",Object)],zM.prototype,"videoSecondaryInfoRenderer",void 0);_.r([_.Y(),_.Q("design:type",Object)],zM.prototype,"richMetadataRowContainer",void 0);_.r([_.Y(),_.Q("design:type",Object)],zM.prototype,"clarificationData",void 0);_.r([_.Y(),_.Q("design:type",Object)],zM.prototype,"commentsEntryPointHeaderRenderer",void 0);_.r([_.Y(),_.Q("design:type",Object)],zM.prototype,"ticketShelf",void 0);
_.r([_.Y(),_.Q("design:type",Object)],zM.prototype,"merchShelf",void 0);_.r([_.Y(),_.Q("design:type",Object)],zM.prototype,"donationShelf",void 0);_.r([_.Y(),_.Q("design:type",Object)],zM.prototype,"limitedState",void 0);_.r([_.Y(),_.Q("design:type",Object)],zM.prototype,"alerts",void 0);_.r([_.w("playlistData"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],zM.prototype,"hasPlaylistData",null);
_.r([_.w("data","hidden"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],zM.prototype,"hasChat",null);_.r([_.iA("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zM.prototype,"onActiveChanged",null);_.r([_.iA("playerData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zM.prototype,"playerDataChanged",null);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zM.prototype,"dataChanged",null);_.r([_.iA("windowSize","singleColumn"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zM.prototype,"sizeChanged",null);
_.m(zM,"ytd-watch-fixie",function(){if(QqM===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);QqM=L}L=QqM;return L},{mode:1});_.re.registerService(_.t0h,zM);
_.mm();
}catch(e){_._DumpException(e)}
try{
_.z3("xwEKAe");
var v$t=function(L){return _.WK(L)?L.getAttribute("jsname")==="coFSxe":!1},o$n=function(L,Z){Z.id||(Z.id="ow"+_.Hs(Z));
L.setAttribute("jsowner",Z.id);L.__owner=Z;var N=_.rF(Z,v$t);N&&(_.IFY.has(N)||_.IFY.set(N,[]),_.IFY.get(N).push(L));(N=_.eb5.get(Z))||_.eb5.set(Z,N=[]);N.includes(L)||N.push(L);Z.setAttribute("__IS_OWNER",!0)},Ret=function(){var L=_.RGf(1);
L=_.WE(L,_.ya_);if(!(_.ojG(L)||L[_.oP_]&&!L.__hasBeenSet))return L.value},crt=function(L){return(L=_.Sf_(L))?_.uYH(L):0},n$M=function(L){return L.shorts.isSmallScreenSqueezeback},KmM=function(L){return L.shorts.isPlaybackStarted},fGY=function(L){var Z=_.tq();
if(Z.getFlag(202))Z=Z.getFlag(201);else{var N;Z=(L==null?void 0:(N=L.config)==null?void 0:N.settingOnByDefault)!==void 0?L.config.settingOnByDefault:!_.c("web_shorts_cinematics_disabled_by_default")}return Z},k3w=function(L){var Z=_.tq();
_.OT(0,201,L);_.OT(0,202,!0);Z.save()},UG7=function(L){var Z=_.RGf(2),N=new Set;
_.zs(function(){return void N.forEach(function(S){return void S()})});
return function(S){var u=_.OK(Z);try{var T=yrt(w4w(L),S);N.add(T);return function(){T();N.delete(T)}}finally{_.OK(u)}}},Y_w=function(L){var Z=L.children;
var N=L.root;_.zp(function(){var S=UG7(N)(Z);_.zs(S)});
return document.createTextNode("")},yrt=function(L,Z){var N=ee7(L);
(L=Ret())&&o$n(N,L);_.Kn.setUp();Z=_.O(_.JuH(Z,!0));L=Z.next().value;var S=Z.next().value;Z=_.O(L);for(L=Z.next();!L.done;L=Z.next())N.appendChild(L.value);_.Kn.log(N);_.Kn.tearDown();return function(){S();N.remove()}},w4w=function(L){if(typeof L==="string")return L=document.querySelector(L),_.LL5(L),L;
if(_.D8(L)&&L.nodeType===Node.ELEMENT_NODE)return L;if(!L.__value&&!L.__optional){var Z=_.cdH.USE_ELEMENT_NOT_ASSIGNED(L.__expectedTagName);L.__hasErrored=!0;throw Z;}return L.value},ee7=function(L){var Z=document.createElementNS(L.namespaceURI,L.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return L.appendChild(Z)},IGn=function(L,Z,N,S){L=Z-L;
N=S-N;return Math.sqrt(L*L+N*N)},dGG=function(L){var Z=L>>8&255,N=L&255;
return"#"+(L>>16&255).toString(16).padStart(2,"0")+Z.toString(16).padStart(2,"0")+N.toString(16).padStart(2,"0")},aGM=function(L,Z){L&&_.GR().resolve(_.$s).resolveCommand(L,{forceClickLogging:!0,
form:{element:Z}})},he7=function(){return _.GR().resolve(_.D1).dismissedIndices},sgn=function(L,Z){var N,S,u,T,W,V,M,G,D;
return _.b(function(l){if(l.nextAddress==1){N=_.GR().resolve(_.U8w);T=(S=N)==null?void 0:(u=S.reelWatchEndpointMap)==null?void 0:u.reelWatchSequence;V=(W=L.innertubeTransportService)!=null?W:_.GR().resolve(_.bv);if(!T)return l.jumpTo(2);M=T();return(G=M.JSC$14167_getRequest(Z,{}))?l.yield(_.Za(V,G.innerTubeRequest,G.input,Z.clickTrackingParams,G.config),4):l.jumpTo(2)}return l.nextAddress!=2?(D=l.yieldResult,l.return(D)):l.return(void 0)})},jgt=function(L){return _.XK({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:L}})},E$M=function(L){return _.XK({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:L}})},PXn=function(L){return _.XK({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:L}})};var cH=function(L,Z){if(L instanceof cH)this.array_=L.array_;else{var N;if(N=_.Jx(L))a:{for(var S=N=0;S<L.length;S++){if(!_.Jx(L[S])||N>0&&L[S].length!=N){N=!1;break a}for(var u=0;u<L[S].length;u++)if(typeof L[S][u]!=="number"){N=!1;break a}N==0&&(N=L[S].length)}N=N!=0}if(N)this.array_=_.mh(L);else if(L instanceof _.wF)this.array_=p4f(L.height,L.width);else if(typeof L==="number"&&typeof Z==="number"&&L>0&&Z>0)this.array_=p4f(L,Z);else throw Error("Oo");}this.size_=new _.wF(this.array_[0].length,
this.array_.length)},ze9=function(L,Z,N){for(var S=0;S<L.getSize().height;S++)for(var u=0;u<L.getSize().width;u++)Z.call(N,L.array_[S][u],S,u,L)},mG6=function(L,Z){var N=new cH(L.getSize());
ze9(L,function(S,u,T){N.array_[u][T]=Z.call(void 0,S,u,T,L)});
return N},p4f=function(L,Z){for(var N=[],S=0;S<L;S++){N[S]=[];
for(var u=0;u<Z;u++)N[S][u]=0}return N};
cH.prototype.add=function(L){if(!_.rj8(this.size_,L.getSize()))throw Error("Po");return mG6(this,function(Z,N,S){return Z+L.array_[N][S]})};
cH.prototype.equals=function(L,Z){if(this.size_.width!=L.size_.width||this.size_.height!=L.size_.height)return!1;Z=Z||0;for(var N=0;N<this.size_.height;N++)for(var S=0;S<this.size_.width;S++)if(!_.CGi(this.array_[N][S],L.array_[N][S],Z))return!1;return!0};
cH.prototype.getSize=function(){return this.size_};
var n4=function(L,Z,N){return Z>=0&&Z<L.size_.height&&N>=0&&N<L.size_.width?L.array_[Z][N]:null};
cH.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var Jrn=function(L,Z,N,S){if(!(Z>=0&&Z<L.size_.height&&N>=0&&N<L.size_.width))throw Error("Qo`"+Z+"`"+N+"`"+L.size_.height+"`"+L.size_.width);L.array_[Z][N]=S};
cH.prototype.multiply=function(L){if(L instanceof cH){if(this.size_.width!=L.getSize().height)throw Error("Ro");return CXt(this,L)}if(typeof L==="number")return rr6(this,L);throw Error("So");};
var CXt=function(L,Z){var N=new cH(L.size_.height,Z.getSize().width);ze9(N,function(S,u,T){for(var W=S=0;W<this.size_.width;W++)S+=n4(this,u,W)*n4(Z,W,T);Jrn(N,u,T,S)},L);
return N},rr6=function(L,Z){return mG6(L,function(N){return N*Z})};var Qgq=new _.S5("inlineSurveyRenderer");var X46=new _.S5("interstitialViewModel");var Ari=new _.S5("reelNavigateCommand");var Hyn=new _.S5("reelNonVideoContentDismissalCommand");var BZt=new _.S5("showReelsCommentsOverlayCommand");var xG8=new _.S5("videoInteractionPopUpRenderer");var q_V=new _.S5("pollChoiceData");var L8V;var ZhG;var NJf;var K4=function(){var L=_.e.apply(this,arguments)||this;L.ctaVisualElement=null;L.currentCsn=null;return L};
_.f(K4,_.e);_.t=K4.prototype;_.t.onDataChanged=function(){this.maybeLogShows()};
_.t.computeButtonShape=function(){var L=this;if(this.data)return{buttonText:_.jM(this.data.text),state:"active",onTap:function(){L.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.t.maybeCreateCtaVe=function(){var L;if((L=this.data)!=null&&L.badgeInteractionLogging){var Z;if(L=(Z=this.data.badgeInteractionLogging)==null?void 0:Z.trackingParams)this.ctaVisualElement=_.Mg(L)}};
_.t.maybeLogClicks=function(){this.currentCsn=_.RH(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.sT(this.currentCsn,this.ctaVisualElement)};
_.t.maybeLogShows=function(){this.currentCsn=_.RH(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.aq(this.currentCsn,[this.ctaVisualElement])};
_.t.onTap=function(){var L;if((L=this.data)!=null&&L.onClickCommand){var Z;this.ytComponentBehavior.resolveCommand((Z=this.data)==null?void 0:Z.onClickCommand);this.maybeLogClicks()}};
K4.prototype.onDataChanged=K4.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],K4.prototype,"ytComponentBehavior",void 0);_.r([_.Y({}),_.Q("design:type",Object)],K4.prototype,"data",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],K4.prototype,"onDataChanged",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],K4);
_.m(K4,"ytd-shopping-overlay-badge-renderer",function(){if(NJf!==void 0)return NJf;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return NJf=L},{mode:1});_.CY(_.sYY,"reel-sound-metadata-view-model",{props:{data:_.zl,overlayDensity:_.zl}});_.CY(_.eGq,"player-disclosure-view-model",{props:{data:_.LK,extractOverlay:_.LK}});_.CY(_.jxM,"pivot-button-view-model",{props:{data:_.zl,className:_.zl}});_.CY(_.EJQ,"reel-action-bar-view-model",{props:{data:_.LK,buttonShapeOverrideables:_.LK}});_.CY(_.sZq,"yt-reel-metapanel-view-model",{props:{data:_.LK,overlayDensity:_.LK,extractOverlay:_.LK}});var SK7=_.p(function(L){var Z=L.children;var N=L.region;L=_.O(_.nh(void 0,void 0,"MsSyte"));var S=L.next().value,u=L.next().value;L=_.O(_.nh("0px",void 0,"U9Yihd"));var T=L.next().value,W=L.next().value;L=_.O(_.nh("0px",void 0,"UO1H6d"));var V=L.next().value,M=L.next().value;L=_.O(_.nh(0,void 0,"sMVTKb"));var G=L.next().value,D=L.next().value;L=_.O(_.nh(0,void 0,"kZZV8b"));var l=L.next().value,v=L.next().value,R=function(){var A=S();if(A){var J;if(((J=_.Nr())==null?void 0:J.getPlayerState())!==-1){A.style.display=
"inherit";var C;(C=_.Nr())==null||C.removeEventListener("onStateChange",R)}U()}},K=function(){var A=document.querySelectorAll("video");
return Array.from(A).find(function(J){var C;return J==null?void 0:(C=J.style)==null?void 0:C.width})},U=function(){var A=K();
if(A){D(A.getBoundingClientRect().width);v(A.getBoundingClientRect().height);var J;W((A==null?void 0:(J=A.style)==null?void 0:J.left)||"0px");var C;M((A==null?void 0:(C=A.style)==null?void 0:C.top)||"0px")}};
_.ph(function(){var A=S();if(A){var J,C,X;if(((J=_.Nr())==null?void 0:J.getPlayerState())===-1&&Math.round(((X=(C=_.Nr())==null?void 0:C.getVideoAspectRatio())!=null?X:0)*100)!==Math.round(G()/l()*100)){A.style.display="none";var L1,Fw;v(G()/((Fw=(L1=_.Nr())==null?void 0:L1.getVideoAspectRatio())!=null?Fw:1))}}},"jJLfwe");
var d=function(){U()},h;
_.zp(function(){U();var A;if(!(N==null?0:(A=N())==null?0:A.transformationMatrix))throw Error("Wo");var J;(J=_.Nr())==null||J.addEventListener("onStateChange",R);if(window.ResizeObserver){if(A=K())h=new ResizeObserver(d),h.observe(A)}else window.addEventListener("resize",U);_.zs(function(){var C;(C=_.Nr())==null||C.removeEventListener("onStateChange",R);h?h.disconnect():window.removeEventListener("resize",U)})});
var E=function(){var A,J,C=(J=N==null?void 0:(A=N())==null?void 0:A.transformationMatrix)!=null?J:[];A=G();J=l();for(var X=[],L1=0,Fw=-1;L1<C.length;L1++)L1%3===0&&(Fw++,X[Fw]=[]),X[Fw].push(C[L1]);C=new cH(X);X=new cH([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);X=C.multiply(X);C=new cH([[0,0],[0,0],[0,0],[0,0]]);for(L1=0;L1<X.getSize().width;L1++){Fw=n4(X,0,L1);var GB=n4(X,1,L1);if(Fw===null||GB===null)throw Error("Vo`"+(L1+1).toString());Jrn(C,L1,0,Fw*A);Jrn(C,L1,1,GB*J)}A=n4(C,0,0);L1=n4(C,1,0);J=n4(C,0,
1);Fw=n4(C,1,1);if(A===null||L1===null||J===null||Fw===null)throw Error("To");X=IGn(A,L1,J,Fw);GB=n4(C,3,0);C=n4(C,3,1);if(GB===null||C===null)throw Error("Uo");C=IGn(A,GB,J,C);Fw=(Number((Fw*-1).toFixed(2))-Number((J*-1).toFixed(2)))/(Number(L1.toFixed(2))-Number(A.toFixed(2)));GB=Math.atan(Fw)*180/Math.PI;L1=Fw===Number.POSITIVE_INFINITY?-90:Fw===Number.NEGATIVE_INFINITY?90:Object.is(Fw,-0)?180:Fw===0?0:Fw>0?GB*-1:A<L1?GB*-1:Math.abs(GB)+180;return"left:calc("+A+"px + "+T()+"); top:calc("+(J+"px + "+
V()+"); width:")+(X+"px; height:")+(C+"px; transform:rotate(")+(L1+"deg);\n        --sticker-width:"+X+";")};
return _.g(Y_w,{root:"#sticker-layer"},function(){return _.g("yt-overlay-sticker",{el:_.P9(u),style:E,class:"ytOverlayStickerHost"},Z)})},"Xm");var ih7=_.p(function(L){function Z(){var R,K,U,d,h=(K=_.n((R=M())==null?void 0:R.command,_.oFl))==null?void 0:(U=K.item)==null?void 0:(d=U.notificationTextRenderer)==null?void 0:d.successResponseText;if(h)R=_.za(h),_.XJ(S.value,"yt-open-popup-action",[R,S.value]);else if(G())aGM(G(),S.value);else{var E;aGM((E=M())==null?void 0:E.command,S.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var N=L.data;var S=_.t2("svg"),u=_.O(_.nh(!1,void 0,"i4BL1"));L=u.next().value;var T=u.next().value,W=_.O(_.nh(!1,void 0,"FzRJKd"));u=W.next().value;var V=W.next().value,M=function(){var R;return _.n((R=N())==null?void 0:R.popUp,xG8)},G=function(){var R;
return(R=N())==null?void 0:R.command},D=function(){return _.n(G(),_.bgL)!==void 0};
W=_.Z9(function(){Z();return!1});
var l={},v={};return _.g("svg",{"on:mouseover":_.Z9(function(){D()&&T(!0);V(!0);return!1}),
"on:mouseout":_.Z9(function(){T(!1);V(!1);return!1}),
"on:keydown":_.Z9(function(R){R.key==="Enter"&&Z();return!1}),
"on:focus":_.Z9(function(){D()&&T(!0);return!1}),
"on:blur":_.Z9(function(){D()&&T(!1);return!1}),
el:S,tabindex:0,"aria-label":function(){var R;return(R=N())==null?void 0:R.a11yString},
id:"player-overlay-video-interaction-svg",class:_.qg("ytPlayerOverlayInteractionInteractionsSvg",(l.ytPlayerOverlayInteractionInteractionsSvgHover=L,l),(v.ytPlayerOverlayInteractionInteractionsSvgHideOutline=u,v)),role:"button","on:click":W})},"$m");_.CY(_.p(function(L){var Z=L.data;_.zp(function(){var N;if((N=Z())==null?0:N.trackingParams){var S;_.tC().graftServerVe((S=Z().trackingParams)!=null?S:"")}});
return _.g("yt-player-overlay-interaction",null,_.g(SK7,{region:function(){var N,S;return(N=Z())==null?void 0:(S=N.regions)==null?void 0:S[0]}},_.g(ih7,Object.assign({},L))))},"Zm"),"yt-player-overlay-interaction",{props:{data:_.LK}});var u5G=_.p(function(L){var Z=L.data;var N=L.index;var S=L.selectedChoice;var u=function(){var T;return _.n((T=Z())==null?void 0:T.renderer,q_V)};
L={};return _.g("yt-overlay-poll-sticker-choice",{class:_.qg("ytOverlayPollStickerChoiceHost"),style:_.u4({"--displayed-percentage":function(){var T,W,V,M;return""+Math.ceil(Number((S==null?void 0:S())===N()?(T=u())==null?void 0:(W=T.selected)==null?void 0:W.progressBarWidth:(V=u())==null?void 0:(M=V.unselected)==null?void 0:M.progressBarWidth)*100)}})},_.g("div",{class:_.qg("ytOverlayPollStickerChoicePollChoice",(L.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(S==null?void 0:S())!==
void 0},L.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(S==null?void 0:S())===N()},L))},_.g("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var T;
return((T=u())==null?void 0:T.text)||""}),_.g("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(S==null?void 0:S())==="undefined")var T="";
else{var W,V,M,G;T=(S==null?void 0:S())===N()?(W=u())==null?void 0:(V=W.selected)==null?void 0:V.votePercentage:(M=u())==null?void 0:(G=M.unselected)==null?void 0:G.votePercentage}return T})))},"an");var TJi=_.p(function(L){var Z=L.data;L=_.O(_.nh(void 0,void 0,"sDpzBb"));var N=L.next().value,S=L.next().value;return _.g("yt-overlay-poll-sticker",null,_.g(SK7,{region:function(){var u,T;return(u=Z())==null?void 0:(T=u.region)==null?void 0:T.interactionRegion}},_.g("div",{class:_.qg("ytOverlayPollStickerHost"),
style:_.u4({"--original-height":function(){var u;return""+(((u=Z())==null?void 0:u.mainBodyHeight)||1)},
"--original-width":function(){var u;return""+(((u=Z())==null?void 0:u.mainBodyWidth)||1)},
"--scaled-width":function(){var u;return""+(((u=Z())==null?void 0:u.mainBodyWidth)||1)},
"--primary-surface":function(){var u,T;return dGG(((u=Z())==null?void 0:(T=u.theme)==null?void 0:T.primarySurface)||0)},
"--raised-surface":function(){var u,T;return dGG(((u=Z())==null?void 0:(T=u.theme)==null?void 0:T.raisedSurface)||0)},
"--secondary-surface":function(){var u,T;return dGG(((u=Z())==null?void 0:(T=u.theme)==null?void 0:T.secondarySurface)||0)},
"--primary-text":function(){var u,T;return dGG(((u=Z())==null?void 0:(T=u.theme)==null?void 0:T.primaryText)||0)},
"--secondary-text":function(){var u,T;return dGG(((u=Z())==null?void 0:(T=u.theme)==null?void 0:T.secondaryText)||0)}})},_.g("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return Z().questionText}," "),_.g(_.ju,{each:function(){return Z().pollChoiceConfigs||[]}},function(u,T){return _.g("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.Z9(function(){S(N()===T()?void 0:T())})},_.g(u5G,{data:u,
index:T,selectedChoice:N}))}),_.g("div",{class:"ytOverlayPollStickerVoteCount"},function(){return typeof(N==null?void 0:N())==="undefined"?Z().preVoteCountText:Z().postVoteCountText}))))},"bn");_.CY(_.p(function(L){var Z=L.data;return _.g("yt-stickers-layer",null,_.g(_.ju,{each:function(){var N;return((N=Z())==null?void 0:N.stickers)||[]}},function(N){return _.g(_.F,{cond:function(){return _.c("enable_shorts_poll_stickers_web")},
then:function(){return _.g(_.F,{cond:function(){return N==null?void 0:N.pollSticker},
then:function(S){return _.g(TJi,{data:S})}})}})}))},"cn"),"yt-stickers-layer",{props:{data:_.LK}});var f4=function(){var L=_.e.apply(this,arguments)||this;L.showScrubber=!1;L.isWatchWhileMode=!1;L.enableAnchoredPanel=_.c("desktop_shorts_v2_anchored_panel");L.enablePollStickers=_.c("enable_shorts_poll_stickers_web");L.enableShortsModernControls=_.c("web_shorts_modern_controls");L.anchoredPanelActive=!1;L.enableLivingroomLayout=_.c("reels_enable_livingroom_layout");L.enablePlayerMetadataContainer=_.c("reels_web_enable_metadata_container");L.enableSqueezebackPanels=_.c("web_shorts_enable_squeezeback_panels");
L.useAspectRatio=_.c("web_use_aspect_ratio");L.isSqueezebackActive=!1;L.smallScreenSqueezeback=!1;L.isPlayerStarted=!1;L.overlayDensity=0;L.extractOverlay=!1;L.extractActionBar=!1;L.isOverlay=!1;L.isImmersive=!1;L.isImmersiveHorizontal=!1;L.isFullscreen=!1;L.onWindowResized=function(){var Z;L.set("isImmersive",((Z=window.getComputedStyle(L.hostElement))==null?void 0:Z.getPropertyValue("--immersive-mode-on"))==="1");L.set("isImmersiveHorizontal",L.isImmersive&&L.enableLivingroomLayout&&!L.isWatchWhileMode)};
return L};
_.f(f4,_.e);_.t=f4.prototype;_.t.updateIsOverlay=function(L){this.isOverlay=L.detail.value};
_.t.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.t.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.t.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.t.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.t.onOverlayDensityChange=function(){var L=_.QJ(this.hostElement).querySelector("ytd-info-panel-container-renderer");L&&(L.set("extractOverlay",this.extractOverlay),L.set("roundedContainer",this.extractOverlay))};
_.t.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.t.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.t.ready=function(){(_.c("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"))&&(!_.c("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.vW("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.vW("reels_action_justified_content")||"flex-start")};
_.t.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.t.setFakeLoadingButtons=function(){_.c("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.iB("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.iB("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.iB("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.iB("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.iB("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()};
_.t.setEmptyOverlayMetadata=function(){_.c("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}))};
_.gd.Object.defineProperties(f4.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.infoPanel)}}});
f4.prototype.onOverlayDensityChange=f4.prototype.onOverlayDensityChange;f4.prototype.onIsActiveChanged=f4.prototype.onIsActiveChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],f4.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],f4.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],f4.prototype,"ytdReduxBehavior",void 0);
_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],f4.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],f4.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],f4.prototype,"isActive",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],f4.prototype,"hidden",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],f4.prototype,"useShortsIcon",void 0);
_.r([_.Y({value:"left"}),_.Q("design:type",String)],f4.prototype,"buttonTooltipPosition",void 0);_.r([_.Y({value:_.c("reels_enable_livingroom_layout")?"top":"left"}),_.Q("design:type",String)],f4.prototype,"likeButtonTooltipPosition",void 0);_.r([_.Y({value:"none"}),_.Q("design:type",String)],f4.prototype,"textTransform",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],f4.prototype,"showScrubber",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],f4.prototype,"isWatchWhileMode",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data.infoPanel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],f4.prototype,"hasInfoPanel",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],f4.prototype,"enableAnchoredPanel",void 0);_.r([_.Y(),_.Q("design:type",Object)],f4.prototype,"enablePollStickers",void 0);
_.r([_.Y(),_.Q("design:type",Object)],f4.prototype,"enableShortsModernControls",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],f4.prototype,"anchoredPanelActive",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],f4.prototype,"enableLivingroomLayout",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],f4.prototype,"enablePlayerMetadataContainer",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],f4.prototype,"enableSqueezebackPanels",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],f4.prototype,"useAspectRatio",void 0);_.r([_.Y({selector:_.QcB,reflectToAttribute:!0}),_.Q("design:type",Object)],f4.prototype,"isSqueezebackActive",void 0);_.r([_.Y({selector:n$M,reflectToAttribute:!0}),_.Q("design:type",Object)],f4.prototype,"smallScreenSqueezeback",void 0);
_.r([_.Y({selector:KmM}),_.Q("design:type",Object)],f4.prototype,"isPlayerStarted",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],f4.prototype,"overlayDensity",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],f4.prototype,"extractOverlay",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],f4.prototype,"extractActionBar",void 0);_.r([_.Y(),_.Q("design:type",Object)],f4.prototype,"isOverlay",void 0);
_.r([_.Y(),_.Q("design:type",Object)],f4.prototype,"isImmersive",void 0);_.r([_.Y(),_.Q("design:type",Object)],f4.prototype,"isImmersiveHorizontal",void 0);_.r([_.Y({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.Q("design:type",Boolean)],f4.prototype,"isShortsImmersive",void 0);_.r([_.Y({computed:"computeButtonOverride(extractActionBar)"}),_.Q("design:type",Object)],f4.prototype,"buttonOverride",void 0);
_.r([_.Y({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.Q("design:type",Object)],f4.prototype,"actionBarButtonOverride",void 0);_.r([_.Y({selector:_.Cl,reflectToAttribute:!0}),_.Q("design:type",Object)],f4.prototype,"isFullscreen",void 0);_.r([_.iA("isActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],f4.prototype,"onIsActiveChanged",null);
_.r([_.iA("extractOverlay"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],f4.prototype,"onOverlayDensityChange",null);_.r([_.P({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],f4);
_.m(f4,"ytd-reel-player-overlay-renderer",function(){if(ZhG!==void 0)return ZhG;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers &amp;&amp; data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ZhG=L},{mode:1});var tUt;var kf=function(){var L=_.e.apply(this,arguments)||this;L.videoDuration=0;L.playedTime=0;L.isActive=!1;L.JSC$22598_playerEvents=new Map;return L};
_.f(kf,_.e);_.t=kf.prototype;_.t.created=function(){this.JSC$22598_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22598_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.t.attached=function(){this.getPlayerAndInitializeListeners()};
_.t.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22598_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Nd(this,this.onPageChanged))};
_.t.getPlayerAndInitializeListeners=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1)return Z=_.CV(),Z?N.yield(Z.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Nd(L,L.onPageChanged)),N.jumpTo(0));L.player=N.yieldResult;L.initializePlayerListeners();_.w7(N)})};
_.t.onPageChanged=function(L){var Z=this;return _.b(function(N){if(N.nextAddress==1)return L.detail.newPageType!=="ytd-shorts"?N.return():N.yield(_.r9().getPlayerPromise(),2);Z.player=N.yieldResult;Z.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Nd(Z,Z.onPageChanged));_.w7(N)})};
_.t.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22598_playerEvents)};
_.t.onVideoDataChange=function(L){var Z=this;return _.b(function(N){if(!Z.player||L.type!=="newdata")return N.return();Z.videoDuration=_.c("web_shorts_use_progress_state_for_gapless")?Z.player.getProgressState(L.playertype).seekableEnd:Z.player.getDuration(L.playertype);Z.playedTime=0;_.w7(N)})};
_.t.onVideoProgress=function(L){var Z=this,N,S;return _.b(function(u){if(!Z.player)return u.return();N=Z.player.getPresentingPlayerType();S=Z.player.getPlayerState();Z.videoDuration=_.c("web_shorts_use_progress_state_for_gapless")?Z.player.getProgressState(N).seekableEnd:Z.player.getDuration(N);Z.playedTime=S===0?Z.videoDuration:L;_.w7(u)})};
_.t.getPercentPlayed=function(L,Z){return L?_.nM(Z/L,0,1):0};
_.gd.Object.defineProperties(kf.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 L="";return L=this.videoDuration&&this.playedTime?L+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):L+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],kf.prototype,"componentBehavior",void 0);_.r([_.y(_.No.YtPlayerListenerBehavior),_.Q("design:type",_.SG)],kf.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],kf.prototype,"player",void 0);_.r([_.Y(),_.Q("design:type",Object)],kf.prototype,"videoDuration",void 0);_.r([_.Y(),_.Q("design:type",Object)],kf.prototype,"playedTime",void 0);_.r([_.Y(),_.Q("design:type",Object)],kf.prototype,"isActive",void 0);
_.r([_.w("videoDuration","playedTime"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],kf.prototype,"percentPlayed",null);_.r([_.w("videoDuration","playedTime"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],kf.prototype,"percentPlayedStyle",null);_.r([_.w("videoDuration","isActive"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],kf.prototype,"hideProgressBar",null);
_.m(kf,"ytd-progress-bar-line",function(){if(tUt===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);tUt=L}L=tUt;return L},{mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});var Ohw;_.CY(_.Zom,"ytm-closed-captioning-button",{props:{captionIconType:_.LK,onClick:_.zl,ariaLabel:_.LK,ariaPressed:_.LK,isOverlay:_.zl,isModern:_.zl}});_.CY(_.Y65,"desktop-shorts-volume-controls",{props:{orientation:_.LK}});var yF=function(){var L=_.e.apply(this,arguments)||this;L.playerState=null;L.isMuted=!1;L.shortsModernControlsEnabled=_.c("web_shorts_modern_controls");L.volumeControlsOrientationState="horizontal_right";L.isOverlay=!0;L.captionIconType=-1;L.ariaLabel="";L.overlayDensity=0;L.JSC$22601_playerEvents=new Map;L.onClosedCaptionsButtonClick=function(){L.player&&_.vJ(L.player)&&(L.player.toggleSubtitles(),L.updateCaptionIconType())};
return L};
_.f(yF,_.e);_.t=yF.prototype;_.t.created=function(){this.JSC$22601_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22601_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22601_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.t.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Ll(28662);this.playPauseButtonClientVE=_.Ll(36842);this.fullscreenButtonToggleOffClientVE=_.Ll(222256);this.fullscreenButtonToggleOnClientVE=_.Ll(222257);var L=_.RH(),Z=_.oH();L&&Z&&(_.c("combine_ve_grafts")?(_.k3(_.tC(),this.muteButtonClientVE,Z),_.k3(_.tC(),this.playPauseButtonClientVE,Z)):_.Iq(L,Z,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.t.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22601_playerEvents),this.player=null)};
_.t.updateCaptionIconType=function(){var L=-1,Z=void 0,N=_.iB("CLOSED_CAPTIONS_DISABLED");this.player&&_.vJ(this.player)&&(_.mCc(this.player)?(Z=!0,N=_.iB("CLOSED_CAPTIONS_ON"),L=1):(Z=!1,N=_.iB("CLOSED_CAPTIONS_OFF"),L=0));this.captionIconType=L;this.ariaPressedState=Z;this.ariaLabel=N};
_.t.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-with-label",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-static-overlay-icon-active-other)"}}};
_.t.getPlayerAndInitializeListeners=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1)return Z=_.CV(),Z?N.yield(Z.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Nd(L,L.onPageChanged)),N.jumpTo(0));L.player=N.yieldResult;L.initializePlayerListeners();_.w7(N)})};
_.t.onPageChanged=function(L){var Z=this;return _.b(function(N){if(N.nextAddress==1)return L.detail.newPageType!=="ytd-shorts"?N.return():N.yield(_.r9().getPlayerPromise(),2);Z.player=N.yieldResult;Z.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Nd(Z,Z.onPageChanged));_.w7(N)})};
_.t.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22601_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.t.onPlayerStateChange=function(L){this.playerState=L};
_.t.onPlayerVolumeChange=function(L){this.isMuted=L.muted};
_.t.onPlayPauseButtonClick=function(){var L=this,Z,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(_.r9().getPlayerPromise(),2);Z=S.yieldResult;(N=_.RH())&&L.playPauseButtonClientVE&&_.sT(N,L.playPauseButtonClientVE);Z.getPlayerState()!==1?Z.playVideo():Z.pauseVideo();_.w7(S)})};
_.t.computePlayPauseIcon=function(L){return L===2||L===-1||L===5?_.c("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.c("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.c("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.t.computeFullscreenLabel=function(L){return L?_.iB("FULLSCREEN_EXIT_LABEL"):_.iB("FULLSCREEN_ENTER_LABEL")};
_.t.computePlayPauseLabel=function(L){return L===1||L===3?_.iB("PLAYER_LABEL_PAUSE"):_.iB("PLAYER_LABEL_PLAY")};
_.t.onMuteButtonClick=function(){var L=this,Z,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(_.r9().getPlayerPromise(),2);Z=S.yieldResult;(N=_.RH())&&L.muteButtonClientVE&&_.sT(N,L.muteButtonClientVE);Z.isMuted()?Z.unMute(!0):Z.mute(!0);_.w7(S)})};
_.t.computeMuteIcon=function(L){return L?"miniplayer:volume-off":"miniplayer:volume-up"};
_.t.computeMuteLabel=function(L){return L?_.iB("PLAYER_LABEL_UNMUTE"):_.iB("PLAYER_LABEL_MUTE")};
_.t.onFullscreenButtonClick=function(){var L=_.RH();L&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.sT(L,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.sT(L,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.Sk8()};
_.gd.Object.defineProperties(yF.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var L=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(){L.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.c("web_shorts_modern_controls")?"player_full_exit_alt":_.c("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.c("web_shorts_modern_controls")?"player_full_enter_alt":_.c("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],yF.prototype,"componentBehavior",void 0);_.r([_.y(_.No.YtPlayerListenerBehavior),_.Q("design:type",_.SG)],yF.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],yF.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],yF.prototype,"player",void 0);_.r([_.Y(),_.Q("design:type",Object)],yF.prototype,"playerState",void 0);_.r([_.Y(),_.Q("design:type",Object)],yF.prototype,"isMuted",void 0);
_.r([_.Y({computed:"computePlayPauseIcon(playerState)"}),_.Q("design:type",String)],yF.prototype,"playPauseIcon",void 0);_.r([_.Y({computed:"computeMuteIcon(isMuted)"}),_.Q("design:type",String)],yF.prototype,"muteIcon",void 0);_.r([_.Y({selector:_.Cl}),_.Q("design:type",Boolean)],yF.prototype,"isFullscreen",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yF.prototype,"shortsModernControlsEnabled",void 0);
_.r([_.Y(),_.Q("design:type",Object)],yF.prototype,"volumeControlsOrientationState",void 0);_.r([_.Y(),_.Q("design:type",Object)],yF.prototype,"isOverlay",void 0);_.r([_.Y(),_.Q("design:type",Object)],yF.prototype,"captionIconType",void 0);_.r([_.Y(),_.Q("design:type",Object)],yF.prototype,"ariaLabel",void 0);_.r([_.Y(),_.Q("design:type",Object)],yF.prototype,"ariaPressedState",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yF.prototype,"overlayDensity",void 0);
_.r([_.Y(),_.Q("design:type",Object)],yF.prototype,"data",void 0);_.r([_.Y({computed:"computeActionBarButtonOverride()"}),_.Q("design:type",Object)],yF.prototype,"actionBarButtonOverride",void 0);_.r([_.w("playerState"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],yF.prototype,"playPauseButtonData",null);_.r([_.w("isFullscreen"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],yF.prototype,"fullscreenButtonData",null);
_.r([_.Y(),_.Q("design:type",Object)],yF.prototype,"onClosedCaptionsButtonClick",void 0);_.r([_.w("isFullscreen"),_.Q("design:type",String),_.Q("design:paramtypes",[])],yF.prototype,"fullscreenIcon",null);
_.m(yF,"ytd-shorts-player-controls",function(){if(Ohw===void 0){var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);Ohw=L}L=Ohw;return L},{mode:1});var W8w;_.CY(_.Uq0,"yt-interstitial-view-model",{props:{data:_.LK}});var VUY=_.p(function(L){var Z=L.data;return _.g("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.g("h1",{class:"reelWatchBreakViewModelHostTitle"},_.g(_.qv,{text:function(){return Z().title}})),_.g("h2",{class:"reelWatchBreakViewModelHostBody"},_.g(_.qv,{text:function(){return Z().body},
isOverlay:!0})),_.g(_.bj,{data:function(){return Z().buttons}},{buttonViewModel:function(N,S){return _.g("div",{class:function(){return S()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.g(_.$X,{data:N.data}))}}))},"dn");
VUY.idomCompat=!0;_.CY(VUY,"reel-watch-break-view-model",{props:{data:_.LK}});var ws=function(){return _.e.apply(this,arguments)||this};
_.f(ws,_.e);ws.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}}};
_.gd.Object.defineProperties(ws.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var L;return!!_.n((L=this.data)==null?void 0:L.renderer,Qgq)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var L;return!!_.n((L=this.data)==null?void 0:L.renderer,X46)}}});
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ws.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],ws.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],ws.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ws.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("data.renderer"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ws.prototype,"isSurvey",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.renderer"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ws.prototype,"isInterstitialViewModel",null);_.r([_.P({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],ws);
_.m(ws,"ytd-reel-non-video-content-renderer",function(){if(W8w!==void 0)return W8w;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
return W8w=L},{mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});var bhM;_.CY(_.UO0,"desktop-shorts-player-controls",{});var Uz=function(){var L=_.e.apply(this,arguments)||this;L.isPlayerPaused=!1;L.isPlayerStarted=!1;L.showPlayerControls=!1;L.showScrubber=!1;L.autoHideJobId=0;L.modern=_.c("web_button_rework");L.overlayType=_.vW("web_shorts_expanded_overlay_type");L.panelData=void 0;L.isWatchWhileMode=!1;L.hasError=!1;L.panelShowDelayMs=1;L.scrubberComponent={};L.isFullscreen=!1;L.shouldHideOverlay=!1;L.enableAnchoredPanel=_.c("desktop_shorts_v2_anchored_panel");L.enablePersistentAnchoredPanel=_.c("desktop_shorts_v2_persistent_anchored_panel");
L.hideWatchWhilePanel=_.c("web_shorts_hide_watch_while_panel");L.useAspectRatio=_.c("web_use_aspect_ratio");L.enableShortsModernControls=_.c("web_shorts_modern_controls");L.isPersistentPanelActive=!1;L.anchoredPanelActive=!1;L.isShortsPipActive=!1;L.smallScreenSqueezeback=!1;L.enableFlexibleOverlay=_.c("web_enable_flexible_overlay");L.overlayDensity=0;L.extractOverlay=!1;L.extractActionBar=!1;L.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
L.onWindowResized=function(){_.YD(L,"calculateOverlayDensity",function(){L.calculateOverlayDensity()},100)};
return L};
_.f(Uz,_.e);_.t=Uz.prototype;_.t.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.t.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.t.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var L=_.GR().resolve(_.EB);this.isWatchWhileMode&&_.ro.addJob(function(){L.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.t.handleShowReelsCommentsOverlayCommand=function(L){L=_.n(L,BZt);this.isActive&&(L==null?0:L.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))};
_.t.updateEngagementPanelVisibility=function(L,Z){L&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:Z?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:L}})};
_.t.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.t.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.GR().resolve(_.D1).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.t.handleWatchWhilePanelScrimClick=function(){var L=_.GR().resolve(_.EB);this.activeWatchWhilePanel&&(L.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.t.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.t.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.t.handlePlayerClick=function(L){var Z=this,N,S;if((S=(N=window).matchMedia)!=null&&S.call(N,"(any-pointer: coarse)").matches||!L)this.showPlayerControls=!0,_.ro.cancelJob(this.autoHideJobId),this.autoHideJobId=_.sI(_.ro,function(){Z.showPlayerControls=!1},4E3)};
_.t.isFirstReel=function(){return this.index===0};
_.t.handleMouseenter=function(){_.ro.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.t.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.t.handleScrubberEnter=function(){this.showScrubber=!0};
_.t.handleScrubberLeave=function(){this.showScrubber=!1};
_.t.maybeLogNonDefaultAspectRatio=function(){var L;(L=this.data)!=null&&L.thumbnail&&this.isActive&&.5625!==crt(this.data.thumbnail)&&_.yo1("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.t.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var L=document.querySelector("#shorts-container");if(L){var Z=!1,N,S=this.playerContainer.offsetWidth,u=this.playerContainer.offsetHeight;L=L.offsetWidth/2-S/2;L>=368?(L=1,Z=N=!0):L>=72?(L=0,N=!0):(L=2,N=!1);S>=600&&u>=840?L=1:window.innerWidth<=599&&(L=2,N=Z=!1);this.isPersistentPanelActive&&(L=0,Z=!1);this.extractActionBar=N;_.c("web_enable_flexible_overlay")&&(this.overlayDensity=L,this.extractOverlay=
Z);var T;(T=this.onOverlayDensityChanged)==null||T.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.t.onOverlayDensityChange=function(){var L;(L=this.onOverlayDensityChanged)==null||L.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(L=_.QJ(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))L.set("overlayDensity",this.overlayDensity),L.set("extractOverlay",this.extractOverlay),L.set("extractActionBar",this.extractActionBar);if(L=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))L.overlayDensity=this.overlayDensity,L.extractOverlay=
this.extractOverlay,L.extractActionBar=this.extractActionBar};
_.t.isVideoContent=function(L){_.GR().resolve(_.D1);return!!_.n(L,_.Ox)};
_.t.isNonVideoContent=function(L){_.GR().resolve(_.D1);return!!_.n(L,_.Hb)};
_.t.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.gd.Object.defineProperties(Uz.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var L,Z;return _.c("web_enable_format_first")||((L=this.data)==null?void 0:L.adsOverlay)&&_.c("web_enable_format_first_ads_only")||((Z=this.data)==null?void 0:Z.reelPlayerOverlayRenderer)&&_.c("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.c("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var L;return!this.isActive||!this.isPlayerStarted||(L=this.data)!=null&&L.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var L;if(((L=this.data)==null?0:L.command)&&this.isVideoContent(this.data.command)){var Z,N;if(((Z=this.data)==null?0:Z.adsOverlay)&&Object.keys((N=this.data)==null?void 0:N.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var S,u;if(((S=this.data)==null?0:S.reelPlayerOverlayRenderer)&&Object.keys((u=this.data)==null?void 0:u.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Uz.prototype.onOverlayDensityChange=Uz.prototype.onOverlayDensityChange;Uz.prototype.calculateOverlayDensity=Uz.prototype.calculateOverlayDensity;Uz.prototype.maybeLogNonDefaultAspectRatio=Uz.prototype.maybeLogNonDefaultAspectRatio;Uz.prototype.onEngagementPanelsChanged=Uz.prototype.onEngagementPanelsChanged;Uz.prototype.onScrubberDataChange=Uz.prototype.onScrubberDataChange;Uz.prototype.updateShouldHideOverlay=Uz.prototype.updateShouldHideOverlay;
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Uz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Uz.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],Uz.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uz.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Number)],Uz.prototype,"index",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Uz.prototype,"isActive",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Uz.prototype,"isHiddenInDom",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uz.prototype,"isPlayerPaused",void 0);_.r([_.Y({selector:KmM}),_.Q("design:type",Object)],Uz.prototype,"isPlayerStarted",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"showPlayerControls",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"showScrubber",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uz.prototype,"autoHideJobId",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"modern",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"overlayType",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Uz.prototype,"ytdReduxBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Uz.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uz.prototype,"watchWhileEngagementPanels",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uz.prototype,"panelData",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"isWatchWhileMode",void 0);_.r([_.Y(),_.Q("design:type",String)],Uz.prototype,"activeWatchWhilePanel",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Uz.prototype,"hasError",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uz.prototype,"panelShowDelayMs",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uz.prototype,"scrubberComponent",void 0);_.r([_.Y({selector:_.Cl,reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"isFullscreen",void 0);_.r([_.Y(),_.Q("design:type",Object)],Uz.prototype,"shouldHideOverlay",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"enableAnchoredPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"enablePersistentAnchoredPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"hideWatchWhilePanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"useAspectRatio",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"enableShortsModernControls",void 0);_.r([_.Y({selector:_.QcB,reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"isPersistentPanelActive",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"anchoredPanelActive",void 0);_.r([_.Y({selector:_.rm,reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"isShortsPipActive",void 0);
_.r([_.Y({selector:n$M,reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"smallScreenSqueezeback",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Uz.prototype,"enableFormatFirst",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"enableFlexibleOverlay",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"overlayDensity",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"extractOverlay",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"extractActionBar",void 0);_.r([_.Y(),_.Q("design:type",Function)],Uz.prototype,"onOverlayDensityChanged",void 0);
_.r([_.Y(),_.w("isActive","hasError","isPlayerStarted"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Uz.prototype,"shouldRenderPlayerElements",null);_.r([_.Y(),_.w("isActive","isWatchWhileMode"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Uz.prototype,"watchWhileOrPersistentActive",null);_.r([_.iA("isActive","hasError","showingExpandedOverlay"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uz.prototype,"updateShouldHideOverlay",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("isActive","isPlayerStarted","data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Uz.prototype,"shouldRenderScrubber",null);_.r([_.iA("shouldRenderScrubber"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uz.prototype,"onScrubberDataChange",null);_.r([_.w("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Uz.prototype,"overlayComponent",null);
_.r([_.iA("watchWhileEngagementPanels"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uz.prototype,"onEngagementPanelsChanged",null);_.r([_.TX("#player-container"),_.Q("design:type",HTMLElement)],Uz.prototype,"playerContainer",void 0);_.r([_.TX("#cinematic-container"),_.Q("design:type",HTMLElement)],Uz.prototype,"cinematicContainer",void 0);
_.r([_.iA("isPersistentPanelActive","data.thumbnail"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uz.prototype,"maybeLogNonDefaultAspectRatio",null);_.r([_.iA("isPersistentPanelActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uz.prototype,"calculateOverlayDensity",null);
_.r([_.iA("overlayDensity","extractOverlay","extractActionBar"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uz.prototype,"onOverlayDensityChange",null);_.r([_.P({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Uz);
_.m(Uz,"ytd-reel-video-renderer",function(){if(bhM!==void 0)return bhM;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return bhM=L},{mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});var Yf=function(){var L=_.e.apply(this,arguments)||this;L.isPreviousPageShorts=!1;L.index=0;L.delayedActiveIndex=0;L.playablePreviousIndex=null;L.isPlayerPaused=!1;L.isPlayerStarted=!1;L.intersectionObserverThreshold=.6;L.fitToVisibleBounds=!1;L.pageSubtype="shorts";L.enablePreviousContinuation=_.c("shorts_in_playlists_web");L.shortsPipEnabled=_.c("web_shorts_pip");L.isDark=document.documentElement.hasAttribute("dark");L.shortsViewTransitions=_.c("web_shorts_view_transitions");L.isFullscreen=!1;L.isShortsPipActive=
!1;L.buttonOverride={iconPosition:"icon-only",size:"XL"};L.anchoredPanelActive=!1;L.isActive=!1;L.smallScreenPersistentPanel=!1;L.isPersistentPanelActive=!1;L.smallScreenSqueezeBack=!1;L.enableScrollIntoViewCenter=_.c("web_scroll_into_view_center");L.formatFirst=_.c("web_enable_format_first")||_.c("web_enable_format_first_ads_only")||_.c("web_enable_format_first_organic_only");L.enableFlexibleOverlay=_.c("web_enable_flexible_overlay");L.extractOverlay=!1;L.useAspectRatio=_.c("web_use_aspect_ratio");
L.isShortsInitialized=!1;L.hasDataUpdated=!1;L.playerInPosition=!1;L.hidePreviousButtonImmediately=!1;L.showPreviousButtonImmediately=!1;L.endOfNextContinuation=!1;L.currentPlayerIndex=0;L.nextReelVe=_.Ll(56921);L.prevReelVe=_.Ll(56922);L.loopToggleOffVe=_.Ll(198013);L.loopToggleOnVe=_.Ll(198014);L.ambientModeToggleVe=_.Ll(227860);L.reelPlayerPausedStateRendererVe=_.Ll(141313);L.storedPlaybackSpeed=null;L.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"};L.onOverlayDensityChanged=function(Z,N,S,u){Z=L.getActiveReelVideo(Z);L.extractOverlay=!!S;Z==null||Z.setAttribute("overlay-density",String(N));S===void 0||Z!=null&&Z.toggleAttribute("extract-overlay",S);u===void 0||Z!=null&&Z.toggleAttribute("extract-action-bar",u)};
return L};
_.f(Yf,_.e);_.t=Yf.prototype;_.t.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.t.deflateInactivePreviousSlides=function(){var L=_.lQ("web_shorts_deflate_inactive_slides_aggressive_distance");if(L>0&&this.shortsProcessedSequence&&this.activeIndex){L=this.activeIndex-L;for(var Z=0;Z<=L;Z++){var N=void 0;((N=this.shortsProcessedSequence[Z].reelPlayerOverlayRenderer)==null?0:N.metapanel)&&this.set("shortsProcessedSequence."+Z+".reelPlayerOverlayRenderer",{});N=void 0;((N=this.shortsProcessedSequence[Z].adsOverlay)==null?0:N.adSlotMetadata)&&this.set("shortsProcessedSequence."+
Z+".adsOverlay",{})}}};
_.t.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.t.onResize=function(){var L=_.Pv(),Z=L.dispatch,N=this.calculateIsSmallWidth();Z.call(L,_.XK({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:N}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.t.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.t.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var L=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,Z=L,N=0;L<250&&(Z=L+this.shortsInnerContainer.clientWidth,N=24);_.Ld(this.hostElement,{"--ytd-shorts-header-width":Z+"px","--ytd-shorts-top-spacing":N+"px"})}};
_.t.isFirstShorts=function(L){return L?this.index===-L.length:this.index===0};
_.t.isActiveReel=function(L,Z,N){N&&(Z=this.calculatePrevIndex(Z,N));return L===Z};
_.t.onFullscreenChange=function(){if(_.c("web_fullscreen_shorts")){var L;(L=this.getActiveReelVideo(this.activeIndex))==null||L.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.GR().resolve(_.yk).close(!0)}};
_.t.engagementPanelsChanged=function(){var L;this.watchWhileEngagementPanels=(L=this.data)==null?void 0:L.engagementPanels};
_.t.unregisterPanels=function(){var L=_.GR().resolve(_.EB);if(this.watchWhileEngagementPanels)for(var Z=_.O(this.watchWhileEngagementPanels),N=Z.next();!N.done;N=Z.next()){var S=N.value,u=void 0,T=void 0;N=(u=S.engagementPanelSectionListRenderer)==null?void 0:(T=u.identifier)==null?void 0:T.tag;S=this.getPanelContentIdentifier(S.engagementPanelSectionListRenderer);L&&(N&&L.panelMap.delete(N),S&&_.c("web_shorts_panel_caching_bugfix")&&(u=N=void 0,(u=(N=L).unregisterPanelContent)==null||u.call(N,S)))}};
_.t.isVideoContent=function(L){return this.isVideoContentCommand(L==null?void 0:L.command)};
_.t.getActiveReelVideo=function(L){return _.QJ(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+L+'"]')};
_.t.calculatePrevIndex=function(L,Z){return Z?L-((Z==null?void 0:Z.length)||0):-1};
_.t.onKeydown=function(L){var Z=_.sx(L)||[];if(!_.NDk(Z))if(L.code==="ArrowUp")L.preventDefault(),this.handlePrevButtonClick();else if(L.code==="ArrowDown")L.preventDefault(),this.handleNextButtonClick();else if(L.code==="KeyM")this.toggleMuteUnmuteVideo();else if(L.code==="KeyK"||L.code==="Space")this.togglePlayPauseVideo();else if((L.code==="KeyA"||L.code==="ArrowLeft")&&_.c("web_shorts_keyboard_enable_seek_shortcuts")){var N;(N=this.player)==null||N.seekBy(-5)}else if((L.code==="KeyD"||L.code===
"ArrowRight")&&_.c("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var S;(S=this.player)==null||S.seekBy(5)}};
_.t.onServiceRequestCompleted=function(L,Z){L=Z.data;L.continuationEndpoint&&L.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:L.entries,continuationEndpoint:L.continuationEndpoint}}),_.c("web_enable_shorts_sequence_cache_fix")&&(this.cachedReelWatchSequenceResponse=L)):L.prevContinuationEndpoint&&L.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:L.prevEntries,
prevContinuationEndpoint:L.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.t.handleEngagementPanelVisibilityChanged=function(L,Z){var N=_.GR().resolve(_.EB);if(L&&N){var S=this.getPanelIdentifier(L);if(Z==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==S){N.hidePanel({identifier:this.activePanel});var u;this.activePanel=((u=L.identifier)==null?void 0:u.tag)||L.panelIdentifier}else this.isPersistentPanelActive=!0,_.Pv().dispatch(jgt(!0)),this.anchoredPanelActive=!0,this.activePanel=S;else Z==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===S&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Pv().dispatch(jgt(!1)))}};
_.t.handlePanelScrimClick=function(){var L=_.GR().resolve(_.EB);this.activePanel&&(L.hidePanel({identifier:this.activePanel}),_.Pv().dispatch(jgt(!1)))};
_.t.getShortsLoopSetting=function(){var L,Z,N,S,u;return _.b(function(T){switch(T.nextAddress){case 1:return _.c("kevlar_shorts_auto_advance")?T.yield(_.mi.getInstance(),2):T.return(!0);case 2:return(L=T.yieldResult)?T.yield(L.get("sfvles"),3):T.return(!0);case 3:return N=(Z=T.yieldResult)!=null?Z:!1,T.yield(L.get("sfvle"),4);case 4:return u=(S=T.yieldResult)!=null?S:!0,N?T.return(u):T.return(!0)}})};
_.t.handleSignalActionToggleLoopShortsOff=function(){var L=this,Z,N,S;return _.b(function(u){switch(u.nextAddress){case 1:if(!L.player)return u.return();L.player.setLoopVideo(!1);Z=_.tC();_.wM(Z,L.loopToggleOffVe);return u.yield(_.mi.getInstance(),2);case 2:return(N=u.yieldResult)?u.yield(N.set("sfvle",!1),3):u.return();case 3:return u.yield(N.set("sfvles",!0),4);case 4:S=_.tq(),_.OT(0,203,!1),_.OT(0,204,!0),S.save(),_.w7(u)}})};
_.t.handleSignalActionToggleLoopShortsOn=function(){var L=this,Z,N,S;return _.b(function(u){switch(u.nextAddress){case 1:if(!L.player)return u.return();L.player.setLoopVideo(!0);Z=_.tC();_.wM(Z,L.loopToggleOnVe);return u.yield(_.mi.getInstance(),2);case 2:return(N=u.yieldResult)?u.yield(N.set("sfvle",!0),3):u.return();case 3:return u.yield(N.set("sfvles",!0),4);case 4:S=_.tq(),_.OT(0,203,!0),_.OT(0,204,!0),S.save(),_.w7(u)}})};
_.t.handleSignalActionToggleCinematicShortsOn=function(){k3w(!0);var L;(L=this.JSC$22625_cinematicController)==null||_.$GM(L,!0);_.wM(_.tC(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.t.handleSignalActionToggleCinematicShortsOff=function(){k3w(!1);var L;(L=this.JSC$22625_cinematicController)==null||_.$GM(L,!1);_.wM(_.tC(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.t.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.t.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.t.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var L=this.overlayContainer.querySelector("#experiment-overlay");L&&_.ro.addLowPriorityJob(function(){L.style.display="unset"},100)}};
_.t.getCurrentShort=function(){if(this.currentEndpoint){var L=this.currentEndpoint;if(this.isNonVideoContentCommand(L)){var Z=_.n(L,_.Hb);return{reelNonVideoContentRenderer:_.n(Z==null?void 0:Z.renderer,_.JyI),command:L}}if(this.data){var N;Z=(N=_.n(this.currentEndpoint,_.Ox))==null?void 0:N.thumbnail;var S;N=(S=this.data.overlay)==null?void 0:S.reelPlayerOverlayRenderer;_.GR().resolve(_.D1);L=this.data;var u,T;S=(u=L.overlay)==null?void 0:(T=u.shortsAdsRenderer)==null?void 0:T.adSlots;if(S!==void 0)S.length===
0?(_.eC("Shorts ads returned no ad slots."),L=void 0):(S.length>1&&_.eC("Shorts ads has more than one ad slots."),L=_.n(S[0],_.UXl));else{var W,V;L=_.n((W=L.overlay)==null?void 0:(V=W.shortsAdsRenderer)==null?void 0:V.overlay,_.UXl)}W=L;L=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.n(this.currentEndpoint,_.Ox),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:N,thumbnail:Z,command:L,adsOverlay:W}}}};
_.t.created=function(){var L=this;this.scrollToVideoThrottle=new _.Sw(function(Z){var N;(N=L.getActiveReelVideo(Z))==null||N.scrollIntoView({behavior:"smooth",block:"nearest",inline:L.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.Sw(function(Z){var N;(N=L.getActiveReelVideo(Z))==null||N.scrollIntoView({behavior:"auto",block:"nearest",inline:L.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.t.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.t.attached=function(){var L=this;_.GR().resolve(_.D1).registerRootElement(this);this.pageScrollElement=_.QJ(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Nd(this,this.processResetAction));_.c("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var Z=L.getActiveReelVideo(L.activeIndex);L.maybeCreateIntersectionObserver();Z==null||Z.scrollIntoView({behavior:"instant",
block:"nearest",inline:L.enableScrollIntoViewCenter?"center":"start"});L.shortsContainer.style.overflowY="scroll"}))};
_.t.updateReelWatchSequenceResponse=function(){var L=this,Z;_.c("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((Z=_.n(this.currentEndpoint,_.Ox))==null?0:Z.sequenceParams)&&!this.reelWatchSequenceResponse&&(Z=_.GR().resolve(_.D1))&&sgn(Z,this.currentEndpoint).then(function(N){N&&(L.reelWatchSequenceResponse=N,_.ro.addLowPriorityJob(function(){L.observeShorts()}))})};
_.t.calculateSqueezebackPanelSize=function(){var L=this,Z=window.innerWidth-456-(window.innerHeight-106)*.5625;_.ro.addLowPriorityJob(function(){Z<360?_.Pv().dispatch(E$M(!0)):(L.hostElement.style.setProperty("--anchored-panel-width",Math.min(Z,480)+"px"),_.Pv().dispatch(E$M(!1)))})};
_.t.detached=function(){var L=_.GR().resolve(_.D1);L.rootElement=void 0;var Z;(Z=L.unsubscribeFromStore)==null||Z.call(L);L.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Nd(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.t.onResizeFinished=function(L,Z){var N=this,S=new ResizeObserver(function(){N.shortsContainer.style.overflowY="hidden";_.ro.addLowPriorityJob(function(){Z()},100)});
S.observe(L);return S};
_.t.resetDocumentScrollTop=function(){var L,Z;if((L=document)==null?0:(Z=L.scrollingElement)==null?0:Z.scrollTop)document.scrollingElement.scrollTop=0};
_.t.loadPage_=function(L){var Z=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),L){var N;!_.c("web_enable_delay_shorts_sequence_call")&&((N=_.n(this.currentEndpoint,_.Ox))==null?0:N.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=L;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){Z.isPlayerStarted&&(Z.handleOnPlaybackCommand(),Z.afterPlayerStarted=function(){})};
this.registerPanel(L)}};
_.t.afterPlayerStarted=function(){};
_.t.handleOnPlaybackCommand=function(){if(_.c("web_shorts_comment_stickers")&&this.isPlayerStarted){var L,Z=(L=_.n(this.currentEndpoint,_.Ox))==null?void 0:L.onPlaybackCommand;Z&&this.ytComponentBehavior.resolveCommand(Z)}};
_.t.maybeCreateIntersectionObserver=function(){var L=this,Z=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==Z){this.intersectionObserverThreshold=Z;var N={rootMargin:"0px",threshold:Z},S;(S=this.intersectionObserver)==null||S.disconnect();this.intersectionObserver=new IntersectionObserver(function(u){u=_.O(u);for(var T=u.next();!T.done;T=u.next())if(T=T.value,T.intersectionRatio>Z){T=Number(T.target.id);if(isNaN(T))break;if(T===L.index)break;
_.Xbw();L.loadVideo(T);_.fq("r_vtc")}},N);
this.observeShorts()}};
_.t.observeShorts=function(){var L=[].concat(_.Pd(_.QJ(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var N=void 0;(N=this.intersectionObserver)==null||N.observe(Z)}};
_.t.initCsi=function(){_.cf7("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var L={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"}},Z,N;if((Z=this.playerData)==null?0:(N=Z.cacheMetadata)==null?0:N.isCacheHit)L.isCacheHit=!0;var S;if(Z=(S=_.n(this.currentEndpoint,_.Ox))==null?void 0:
S.prefetchTaskId)L.prefetchInfo={taskId:Z};_.lB(L)};
_.t.isAd=function(){var L,Z;return!!((L=_.n(this.currentEndpoint,_.Ox))==null?0:(Z=L.adClientParams)==null?0:Z.isAd)};
_.t.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.t.getPlayerContainer=function(){var L;return(L=_.QJ(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:L.playerContainer};
_.t.onPlayerStateChange=function(L){var Z=this;this.isPlayerPaused=L===2;L!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?L===1&&this.index===0&&(this.isPlayerStarted||_.Pv().dispatch(PXn(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Pv().dispatch(PXn(!0)));this.player&&!this.player.getLoopVideo()&&_.ro.addLowPriorityJob(function(){Z.getShortsLoopSetting().then(function(N){var S;(S=Z.player)==null||S.setLoopVideo(N)})});
this.isPlayerPaused&&_.c("web_shorts_paused_state_logging")&&_.aq(_.RH(),[this.reelPlayerPausedStateRendererVe])};
_.t.isInBackground=function(){var L=window.document.visibilityState;return!(!L||L==="visible")};
_.t.isShortPlayable=function(){if(_.c("kevlar_playable_short_killswitch"))return!0;var L;return(L=this.playerData)!=null&&L.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.t.setNormalPlaybackSpeed=function(){var L=this,Z,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(L.getPlayer().getPlayerPromise(),2);Z=S.yieldResult;N=Z.getPlaybackRate();N!==1&&(L.storedPlaybackSpeed=N,Z.setPlaybackRate(1));_.w7(S)})};
_.t.restorePlaybackSpeed=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1)return L.storedPlaybackSpeed===null?N.jumpTo(0):N.yield(L.getPlayer().getPlayerPromise(),3);Z=N.yieldResult;Z.setPlaybackRate(L.storedPlaybackSpeed);L.storedPlaybackSpeed=null;_.w7(N)})};
_.t.playerDataChanged=function(){var L=this,Z,N,S,u,T,W,V,M,G;return _.b(function(D){if(D.nextAddress==1){Z=L.getPlayer();(N=L.intersectionObserver)==null||N.disconnect();if(L.playerData){if(((S=L.playerData.videoDetails)==null?void 0:S.videoId)!==((u=Z.getPlayer())==null?void 0:u.getVideoData().video_id)){T={};if(W=_.n(L.currentEndpoint,_.Ox))T.watch_endpoint=W,W.endTimeSeconds&&(T.end=W.endTimeSeconds);Z.loadVideoWithPlayerResponse(L.playerData,T)}}else return D.return();return L.player?D.jumpTo(2):
D.yield(Z.getPlayerPromise(),3)}D.nextAddress!=2&&(L.player=D.yieldResult,L.JSC$22625_playerStateChangeListener=L.onPlayerStateChange.bind(L),L.player.addEventListener("onStateChange",L.JSC$22625_playerStateChangeListener),_.c("kevlar_client_enable_shorts_player_bootstrap")&&_.Ui(),L.scrollToVideoThrottle.fire(L.index),L.movePlayerToVideo(L.index),_.ro.addLowPriorityJob(function(){L.getShortsLoopSetting().then(function(l){var v;(v=L.player)==null||v.setLoopVideo(l)})}),_.EGO.resolve(L.player),L.player.syncVolume(),
L.getPlayer().focusOnPlayer());
_.ro.addLowPriorityJob(function(){L.observeShorts()},100);
V=L.player.getPlayerState(L.player.getPresentingPlayerType());V!==1||L.isPlayerStarted||_.Pv().dispatch(PXn(!0));L.updateBackNavContainerWidth();M=_.n(L.currentEndpoint,_.Ox);((G=M)==null?0:G.startTimeSeconds)&&L.player.seekTo(M.startTimeSeconds);if(L.JSC$22625_cinematicController||L.cinematicsInitializeJobId)return D.return();L.cinematicsInitializeJobId=_.ro.addLowPriorityJob(function(){L.initCinematicController();L.cinematicsInitializeJobId=void 0});
_.w7(D)})};
_.t.onShortUndoDismiss=function(){var L=this,Z=he7().pop();Z!==void 0&&(_.bN(this,function(){L.showCardWithIndex(Z)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.t.onShortsDismiss=function(L){if(L=L.detail.reelDismissalActionRenderer)(L=_.n(L.onDismissalCompletionRenderer,_.QmM))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:L}}}),this.scrollAndDismissCard()};
_.t.processReelNonVideoContentDismissalCommand=function(L){var Z=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);L=_.n(L,Hyn);this.activeDimissalTimeout=setTimeout(function(){Z.scrollAndDismissCard()},Number(L==null?void 0:L.delayMs))};
_.t.scrollAndDismissCard=function(){var L=this,Z=this.index;he7().push(Z);_.bN(this,function(){var N=L.getPlayableNextIndex();N!==null&&(N=L.getActiveReelVideo(N),L.hideCardWithIndex(Z),N==null||N.scrollIntoView({behavior:"smooth",block:"nearest",inline:L.enableScrollIntoViewCenter?"center":"start"}))})};
_.t.hideCardWithIndex=function(L){if(L=this.getActiveReelVideo(L))L.hidden=!0};
_.t.showCardWithIndex=function(L){if(L=this.getActiveReelVideo(L))L.hidden=!1};
_.t.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.t.activeChanged=function(L){_.Pv().dispatch(_.XK({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:L}}));if(L)document.addEventListener("keydown",_.Nd(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var Z;(Z=this.player)==null||Z.sendAbandonmentPing()}var N;(N=this.player)==null||N.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Nd(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.t.graftClientVisualElements=function(){if(this.data){var L=_.tC();_.aLM(L,_.xP({response:this.reelWatchSequenceResponse}));_.k3(L,this.nextReelVe);_.k3(L,this.prevReelVe);_.c("kevlar_shorts_auto_advance")&&(_.k3(L,this.loopToggleOffVe),_.k3(L,this.loopToggleOnVe));_.k3(L,this.ambientModeToggleVe);_.aq(_.RH(),[this.nextReelVe,this.prevReelVe]);_.c("web_shorts_paused_state_logging")&&_.k3(L,this.reelPlayerPausedStateRendererVe)}};
_.t.graftNvcRenderer=function(){var L,Z,N,S,u=this.index<0?(L=this.shortsProcessedPrevSequence)==null?void 0:(Z=L[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:Z.command:(N=this.shortsProcessedSequence)==null?void 0:(S=N[this.index])==null?void 0:S.command;if(u&&this.isNonVideoContentCommand(u)){L=_.n(u,_.Hb);var T,W;(L=(T=_.n(L==null?void 0:L.renderer,_.JyI))==null?void 0:(W=T.loggingDirectives)==null?void 0:W.trackingParams)&&_.tC().graftServerVe(L)}};
_.t.setActiveIndex=function(){_.GR().resolve(_.D1).setActiveIndex(this.index)};
_.t.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.t.lazyUpdateMiniplayerData=function(){var L=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.ro.addLowPriorityJob(function(){L.updateMiniplayerData();L.updateMiniplayerDataJobId=void 0}))};
_.t.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.ro.cancelJob(this.updateMiniplayerDataJobId)};
_.t.updateMiniplayerData=function(){var L,Z,N,S=_.GR().resolve(_.yk),u={shortsData:this.getCurrentShort(),previousButtonDisabled:!((L=this.prevButtonData)==null||!L.isDisabled),nextButtonDisabled:!((Z=this.nextButtonData)==null||!Z.isDisabled),playabilityStatus:(N=this.playerData)==null?void 0:N.playabilityStatus};_.GC(S,u)};
_.t.resetPlayerLocation=function(){var L=this.getPlayer();this.initialPlayerContainer&&L.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.t.movePlayerToVideo=function(L,Z){var N=this;Z=Z===void 0?!0:Z;var S=this.getActiveReelVideo(L),u=this.getPlayer();if(S){this.overlayContainer?S.appendChild(this.overlayContainer):(this.overlayContainer=_.QJ(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,S.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||u.appendTo(this.overlayContainer.playerContainer,void 0,!0));var T;(T=this.player)==null||T.setSize(NaN,NaN);this.isActive||_.sI(_.ro,function(){N.isActive=
!0});
u.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.c("reels_web_disable_rtr_tick")||_.c("reels_web_use_pbs_first_shorts")&&L===0||_.Rq("r_tr");this.currentPlayerIndex=L;S.appendChild(this.errorScreenContainer);var W;(W=this.JSC$22625_cinematicController)==null||_.lGn(W)}else Z?_.ro.addLowPriorityJob(function(){N.movePlayerToVideo(N.index,!1)}):Math.random()<=_.lQ("web_shorts_error_logging_threshold")&&_.rY(new _.sr("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:Z,
index:L}))};
_.t.enableFormatFirst=function(L){return _.c("web_enable_format_first")||L.adsOverlay&&_.c("web_enable_format_first_ads_only")||L.reelPlayerOverlayRenderer&&_.c("web_enable_format_first_organic_only")};
_.t.getAspectRatio=function(L){if(this.enableFormatFirst(L))return(L==null?0:L.thumbnail)&&crt(L.thumbnail)?"--ytd-shorts-player-ratio: "+crt(L.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.t.getBackgroundImage=function(L){if(L!=null&&L.thumbnail)return(L=_.QV(L.thumbnail.thumbnails))?'background-image:url("'+L+'");':"background-color:black;"};
_.t.onPersistentPanelActiveChanged=function(){var L=this.getCurrentShort();if(L&&this.enableFormatFirst(L)&&(L==null?0:L.thumbnail)&&crt(L.thumbnail)!==.5625){var Z;(Z=this.player)==null||Z.setSize(NaN,NaN)}};
_.t.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.t.moveCinematicsToVideo=function(){var L=_.QJ(this.hostElement).querySelector("ytd-reel-video-renderer");(L==null?0:L.cinematicContainer)&&L.cinematicContainer!==this.shortsCinematicContainer.parentElement&&L.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.t.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.t.updatePrevButtonData=function(){var L=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(L){var Z;this.prevButtonData=L=Object.assign({},L,{accessibility:{label:_.iB("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:L.isDisabled||this.index===-(((Z=this.shortsProcessedPrevSequence)==null?void 0:Z.length)||0),tooltip:this.isUpArrowHidden?"":_.iB("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=L=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.t.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.t.updateNextButtonData=function(){var L=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(L){var Z;this.nextButtonData=L=Object.assign({},L,{accessibility:{label:_.iB("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:L.isDisabled||this.index===((Z=this.shortsProcessedSequence)==null?void 0:Z.length),tooltip:_.iB("NEXT_VIDEO_LABEL")||""})}};
_.t.getPlayablePreviousIndex=function(){for(var L,Z=this.index-1;Z>=-(((L=this.prevShortsSequence)==null?void 0:L.length)||0);Z--)if(!he7().includes(Z))return Z;return null};
_.t.getIndexInSequence=function(L,Z){return L.findIndex(function(N){var S;return((S=_.n(N.command,_.Ox))==null?void 0:S.videoId)===Z})};
_.t.handlePrevButtonClick=function(L){var Z=this,N,S;return _.b(function(u){N=Z.getPlayablePreviousIndex();if(N===null)return u.return();Z.gestureType=((S=L)==null?void 0:S.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";N===0&&(Z.hidePreviousButtonImmediately=!0);if(Z.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){Z.transitionToVideoThrottle.fire(N)}),u.return();
Z.scrollToVideoThrottle.fire(N);_.w7(u)})};
_.t.getPlayableNextIndex=function(){for(var L,Z=this.index+1;Z<(((L=this.shortsProcessedSequence)==null?void 0:L.length)||0);Z++)if(!he7().includes(Z))return Z;return null};
_.t.handleNextButtonClick=function(L,Z){var N=this,S,u;return _.b(function(T){S=N.getPlayableNextIndex();if(S===null)return T.return();S===1&&(N.showPreviousButtonImmediately=!0);N.gestureType=((u=L)==null?void 0:u.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";Z&&(N.gestureType=Z);if(N.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){N.transitionToVideoThrottle.fire(S)}),T.return();
N.scrollToVideoThrottle.fire(S);_.w7(T)})};
_.t.handleReelNavigateCommand=function(L,Z,N){(L=_.n(L,Ari))&&Z&&L.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(N)};
_.t.loadVideo=function(L,Z){Z=Z===void 0?!1:Z;if(L!==this.currentPlayerIndex){_.Pv().dispatch(PXn(!1));if(this.isAd()&&!Z){var N;(N=this.player)==null||N.notifyShortsAdSwipeEvent()}if((Z=this.JSC$22625_cinematicController)!=null){var S;(S=Z.currentCinematicEffect)==null||S.pause()}if((S=this.JSC$22625_cinematicController)!=null){var u;(u=S.currentCinematicEffect)==null||u.clear()}S=L>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(S));
this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var T,W,V,M;u=L<0?(T=this.shortsProcessedPrevSequence)==null?void 0:(W=T[this.shortsProcessedPrevSequence.length+L])==null?void 0:W.command:(V=this.shortsProcessedSequence)==null?void 0:(M=V[L])==null?void 0:M.command;this.index=L;this.gestureType||(this.gestureType=S?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");u&&this.isVideoContentCommand(u)&&(this.ytComponentBehavior.resolveCommand(u,{form:{createScreenConfig:{clickedVisualElement:S?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(u&&this.isNonVideoContentCommand(u)){this.currentEndpoint=u;this.data=void 0;T=_.tC();W=_.n(u,_.Hb);var G,D;(W=(G=_.n(W==null?void 0:W.renderer,_.JyI))==null?void 0:(D=G.screenLoggingData)==null?void 0:D.screenVeType)&&_.fF(T,
W);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(G=this.getActiveReelVideo(L))&&G.appendChild(this.overlayContainer)}var l,v;if(((l=this.reelWatchSequenceResponse)==null?0:l.continuationEndpoint)&&((v=this.reelWatchSequenceResponse)==null?0:v.entries)&&L===this.reelWatchSequenceResponse.entries.length-1){var R,K;l={contentPlaybackContext:_.r3({},(K=_.n((R=this.currentEndpoint)==null?void 0:R.commandMetadata,_.Nj))==null?void 0:K.url,window.location.href)};
this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:l})}var U,d,h;((U=this.reelWatchSequenceResponse)==null?0:U.prevContinuationEndpoint)&&L===-(((d=this.reelWatchSequenceResponse)==null?void 0:(h=d.prevEntries)==null?void 0:h.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.t.setMiniplayerPreview=function(L){L=(L===void 0?0:L)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var Z,N,S=_.GR().resolve(_.yk),u={shortsData:void 0,shortsPreviewThumbnail:L?(Z=this.shortsProcessedSequence)==null?void 0:(N=Z[L])==null?void 0:N.thumbnail:void 0};_.GC(S,u)};
_.t.updateTitle=function(L){var Z,N;L=(L==null?0:L.adSlots)?"":(N=L==null?void 0:(Z=L.videoDetails)==null?void 0:Z.title)!=null?N:"";_.QT(this.hostElement,"yt-update-title",L)};
_.t.registerPanel=function(L){var Z=_.GR().resolve(_.EB);if(Z){L=_.O(L.engagementPanels||[]);for(var N=L.next();!N.done;N=L.next()){N=N.value;var S=this.getPanelContentIdentifier(N.engagementPanelSectionListRenderer),u=void 0,T=void 0;(T=(u=Z).registerPanelContent)==null||T.call(u,S,N)}}};
_.t.getPanelIdentifier=function(L){var Z;return(L==null?void 0:(Z=L.identifier)==null?void 0:Z.tag)||(L==null?void 0:L.panelIdentifier)||(L==null?void 0:L.targetId)};
_.t.getPanelContentIdentifier=function(L){var Z;return(L==null?void 0:L.targetId)||(L==null?void 0:L.panelIdentifier)||(L==null?void 0:(Z=L.identifier)==null?void 0:Z.tag)};
_.t.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.Pv().dispatch(PXn(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.Pv().dispatch(jgt(!1));var L=_.GR().resolve(_.D1);L.dismissedIndices=[];L.watchWhileIndices.clear();
this.isShortsMiniplayerActive()&&_.GR().resolve(_.yk).close(!0)};
_.t.processAppendReelWatchSequenceContinuationEntriesAction=function(L){var Z=this,N;(N=this.intersectionObserver)==null||N.disconnect();L=L.appendReelWatchSequenceContinuationEntriesAction;if(L==null?0:L.entries){var S;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Pd(((S=this.reelWatchSequenceResponse)==null?void 0:S.entries)||[]),_.Pd(L.entries)),continuationEndpoint:L.continuationEndpoint})}else if(L==null?0:L.prevEntries){var u;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Pd(((u=this.reelWatchSequenceResponse)==null?void 0:u.prevEntries)||[]),_.Pd(L.prevEntries)),prevContinuationEndpoint:L.prevContinuationEndpoint});_.ro.addLowPriorityJob(function(){Z.movePlayerToVideo(Z.index);var T;(T=Z.getActiveReelVideo(Z.index))==null||T.scrollIntoView({block:"nearest",inline:Z.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.ro.addLowPriorityJob(function(){Z.observeShorts()},100)};
_.t.processWatchSequence=function(L){var Z=this;return L.map(function(N){N=N.command;if(Z.isVideoContentCommand(N)){var S=_.n(N,_.Ox);return{reelPlayerOverlayRenderer:_.n(S==null?void 0:S.overlay,_.CMt),thumbnail:S.thumbnail,command:N}}return Z.isNonVideoContentCommand(N)?(S=_.n(N,_.Hb),{reelNonVideoContentRenderer:_.n(S==null?void 0:S.renderer,_.JyI),command:N}):{command:N}})};
_.t.calculateIntersectionObserverThreshold=function(){var L=_.QJ(this.hostElement).querySelector("ytd-reel-video-renderer"),Z=1;(L==null?0:L.offsetHeight)&&(L==null?0:L.offsetWidth)&&(Z=Math.min(L.offsetHeight,this.shortsContainer.offsetHeight)/L.offsetHeight*(Math.min(L.offsetWidth,this.shortsContainer.offsetWidth)/L.offsetWidth));return Math.round(Z*.6*10)/10};
_.t.isVideoContentCommand=function(L){_.GR().resolve(_.D1);return!!_.n(L,_.Ox)};
_.t.isNonVideoContentCommand=function(L){_.GR().resolve(_.D1);return!!_.n(L,_.Hb)};
_.t.initCinematicController=function(){var L=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22625_cinematicController=new _.R4(this.shortsCinematicContainer,this.player);var Z,N=_.n((Z=this.data)==null?void 0:Z.background,_.NE);_.DGY(this.JSC$22625_cinematicController,N);_.$GM(this.JSC$22625_cinematicController,fGY(N));_.FmY(this.JSC$22625_cinematicController);_.ro.addLowPriorityJob(function(){L.moveCinematicsToVideo()})}};
_.t.handleMiniplayerNavigateShorts=function(L){L==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():L==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.t.handleSignalActionToggleShortsPictureInPicture=function(){if(_.GR().resolve(_.yk).pictureInPictureSupported()){var L=_.GR().resolve(_.D1);if(_.c("web_shorts_pip")){var Z=_.GR().resolve(_.yk);L.isShortsPipActive()?Z.deactivate():Z.isMiniplayerActive()||(_.dM().shortsPipActivation=!0,_.pxc(Z))}}else(L=this.player)==null||L.togglePictureInPicture()};
_.gd.Object.defineProperties(Yf.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.reelWatchSequenceResponse)!=null&&L.prevEntries)return this.processWatchSequence([].concat(_.Pd(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(_.Pd(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.reelWatchSequenceResponse)!=null&&L.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var L=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var Z;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((Z=this.shortsProcessedSequence)==null?void 0:Z.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var N;Z=_.n((N=this.firstShortsData)==null?void 0:N.command,_.Ox);if(Z==null||!Z.videoId)return this.shortsProcessedSequence;N=this.getIndexInSequence(this.shortsSequence,
Z.videoId);if(N!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=N,_.ro.addLowPriorityJob(function(){L.transitionToVideoThrottle.fire(L.index);L.movePlayerToVideo(L.index)}));
return[].concat(_.Pd(this.shortsSequence))}return[this.firstShortsData].concat(_.Pd(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var L=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;L&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(L)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var L,Z;return this.index===((L=this.reelWatchSequenceResponse)==null?void 0:(Z=L.entries)==null?void 0:Z.length)}var N;return!((N=this.reelWatchSequenceResponse)==null?0:N.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var L;(L=this.delayedActiveIndexUpdateDebouncer)==null||L.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return this.isShortPlayable()||((Z=_.n((L=this.data)==null?void 0:L.watchStatus,_.Lys))==null?void 0:(N=Z.style)==null?void 0:N.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var L=this,Z=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),N;if((this.data||Z)&&(((N=this.data)==null?0:N.engagementPanels)||this.isAd()||Z)){Z=!1;this.activePanel="shorts-comments-panel";var S;N=_.O(((S=this.data)==null?void 0:S.engagementPanels)||[]);for(S=N.next();!S.done;S=N.next())if(this.getPanelIdentifier(S.value.engagementPanelSectionListRenderer)===this.activePanel){Z=!0;break}if(this.isPersistentPanelActive){var u=
_.GR().resolve(_.EB);_.sI(_.ro,function(){u.showPanel({identifier:L.activePanel,target:null})},100)}var T;
S=[].concat(_.Pd(Object.values(((T=this.data)==null?void 0:T.engagementPanels)||{})));T=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);N=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return T===void 0&&N===void 0||(T==null?0:T.isDisabled)||(N==null?void 0:N.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!Z?(Z=S==null?void 0:S.findIndex(function(W){var V,M;return((V=W.engagementPanelSectionListRenderer)==null?void 0:(M=V.identifier)==null?void 0:M.tag)==="shorts-comments-panel"}),Z===-1||Z===void 0||S!=null&&S.splice(Z,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.iB("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.iB("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:_.iB("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.iB("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(_.Pd(Object.values(S||
{})))):S}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.shortsProcessedSequence)==null?void 0:L[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var L=this,Z,N,S;if((Z=this.playerData)==null?0:(N=Z.playabilityStatus)==null?0:(S=N.errorScreen)==null?0:S.playerInterstitialRenderer)return _.ro.addLowPriorityJob(function(){L.movePlayerToVideo(L.index)}),this.playerData.playabilityStatus.errorScreen;
var u,T;return((u=this.data)==null?void 0:u.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((T=this.data)==null?0:T.watchStatus)&&_.n(this.data.watchStatus,_.oZh)?(_.ro.addLowPriorityJob(function(){L.movePlayerToVideo(L.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.gd.Object.defineProperties(Yf,{template:{configurable:!0,enumerable:!0,get:function(){if(L8V===void 0){var L=document.createElement("template");_.k(L,'\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    <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    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);L8V=L}L=L8V;return L}}});
Yf.prototype.onNextButtonDataChange=Yf.prototype.onNextButtonDataChange;Yf.prototype.onPrevButtonDataChange=Yf.prototype.onPrevButtonDataChange;Yf.prototype.onPersistentPanelActiveChanged=Yf.prototype.onPersistentPanelActiveChanged;Yf.prototype.lazyUpdateMiniplayerData=Yf.prototype.lazyUpdateMiniplayerData;Yf.prototype.onShortsPipActiveChanged=Yf.prototype.onShortsPipActiveChanged;Yf.prototype.setActiveIndex=Yf.prototype.setActiveIndex;Yf.prototype.graftNvcRenderer=Yf.prototype.graftNvcRenderer;
Yf.prototype.graftClientVisualElements=Yf.prototype.graftClientVisualElements;Yf.prototype.onActiveChanged=Yf.prototype.onActiveChanged;Yf.prototype.onShortsDismiss=Yf.prototype.onShortsDismiss;Yf.prototype.onShortUndoDismiss=Yf.prototype.onShortUndoDismiss;Yf.prototype.playerDataChanged=Yf.prototype.playerDataChanged;Yf.prototype.afterPlayerStarted=Yf.prototype.afterPlayerStarted;Yf.prototype.updateReelWatchSequenceResponse=Yf.prototype.updateReelWatchSequenceResponse;
Yf.prototype.unhideCurrentOverlay=Yf.prototype.unhideCurrentOverlay;Yf.prototype.onServiceRequestCompleted=Yf.prototype.onServiceRequestCompleted;Yf.prototype.engagementPanelsChanged=Yf.prototype.engagementPanelsChanged;Yf.prototype.onFullscreenChange=Yf.prototype.onFullscreenChange;Yf.prototype.onResize=Yf.prototype.onResize;Yf.prototype.setFirstShortsData=Yf.prototype.setFirstShortsData;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Yf.prototype,"ytComponentBehavior",void 0);
_.r([_.y(_.uw.YtPageBehavior),_.Q("design:type",Object)],Yf.prototype,"ytPageBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Yf.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.Eb),_.Q("design:type",Object)],Yf.prototype,"ironResizableBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Yf.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],Yf.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],Yf.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Yf.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"playerData",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"reelWatchSequenceResponse",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"cachedReelWatchSequenceResponse",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"cachedSequenceParams",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"cachedSequenceProvider",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"currentEndpoint",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"nextButtonData",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"prevButtonData",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"isPreviousPageShorts",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"index",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"delayedActiveIndex",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"playablePreviousIndex",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"player",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"isPlayerPaused",void 0);
_.r([_.Y({selector:KmM}),_.Q("design:type",Object)],Yf.prototype,"isPlayerStarted",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"intersectionObserver",void 0);_.r([_.Y(),_.Q("design:type",Number)],Yf.prototype,"cinematicsInitializeJobId",void 0);_.r([_.Y(),_.Q("design:type",Number)],Yf.prototype,"updateMiniplayerDataJobId",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"fitToVisibleBounds",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"pageSubtype",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Yf.prototype,"enablePreviousContinuation",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Yf.prototype,"shortsPipEnabled",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Yf.prototype,"isDark",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Yf.prototype,"shortsViewTransitions",void 0);
_.r([_.Y({selector:_.Cl,reflectToAttribute:!0}),_.Q("design:type",Object)],Yf.prototype,"isFullscreen",void 0);_.r([_.Y({selector:_.rm,reflectToAttribute:!0}),_.Q("design:type",Object)],Yf.prototype,"isShortsPipActive",void 0);_.r([_.TX("#shorts-inner-container"),_.Q("design:type",HTMLElement)],Yf.prototype,"shortsInnerContainer",void 0);_.r([_.TX("#back-nav-button ytd-button-renderer"),_.Q("design:type",_.bo)],Yf.prototype,"backNavButton",void 0);
_.r([_.TX("#shorts-container"),_.Q("design:type",HTMLElement)],Yf.prototype,"shortsContainer",void 0);_.r([_.pr("error-screen"),_.Q("design:type",HTMLElement)],Yf.prototype,"errorScreenContainer",void 0);_.r([_.pr("player"),_.Q("design:type",Object)],Yf.prototype,"playerElement",void 0);_.r([_.pr("shorts-cinematic-container"),_.Q("design:type",HTMLElement)],Yf.prototype,"shortsCinematicContainer",void 0);
_.r([_.pr("initial-player-container"),_.Q("design:type",HTMLElement)],Yf.prototype,"initialPlayerContainer",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"buttonOverride",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Yf.prototype,"anchoredPanelActive",void 0);_.r([_.Y(),_.Q("design:type",String)],Yf.prototype,"activePanel",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"isActive",void 0);
_.r([_.Y({selector:n$M,reflectToAttribute:!0}),_.Q("design:type",Object)],Yf.prototype,"smallScreenPersistentPanel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Yf.prototype,"isPersistentPanelActive",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"smallScreenSqueezeBack",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"enableScrollIntoViewCenter",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Yf.prototype,"formatFirst",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Yf.prototype,"enableFlexibleOverlay",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Yf.prototype,"extractOverlay",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Yf.prototype,"useAspectRatio",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"panelContainer",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"overlayContainer",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"isShortsInitialized",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"firstShortsData",void 0);_.r([_.w("reelWatchSequenceResponse"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yf.prototype,"prevShortsSequence",null);_.r([_.w("data","prevShortsSequence"),_.w("data","prevShortsSequence"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yf.prototype,"shortsProcessedPrevSequence",null);
_.r([_.w("reelWatchSequenceResponse"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yf.prototype,"shortsSequence",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"setFirstShortsData",null);_.r([_.w("data","shortsSequence","firstShortsData"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yf.prototype,"shortsProcessedSequence",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Yf.prototype,"isUpArrowHidden",null);_.r([_.Y({reflectToAttribute:!0}),_.w("reelWatchSequenceResponse","index","endOfNextContinuation"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Yf.prototype,"isDownArrowHidden",null);
_.r([_.Y(),_.w("index"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Yf.prototype,"activeIndex",null);_.r([_.w("isShortPlayable","data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Yf.prototype,"shouldRenderOfflineContent",null);_.r([_.SA("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"onResize",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yf.prototype,"anchoredEngagementPanels",null);
_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"watchWhileEngagementPanels",void 0);_.r([_.iA("isFullscreen"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"onFullscreenChange",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"engagementPanelsChanged",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],Yf.prototype,"onServiceRequestCompleted",null);_.r([_.w("data","shortsSequence","index"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yf.prototype,"activeReel",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"unhideCurrentOverlay",null);
_.r([_.iA("currentEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"updateReelWatchSequenceResponse",null);_.r([_.iA("isPlayerStarted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"afterPlayerStarted",null);_.r([_.w("playerData","reelWatchSequenceResponse","data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yf.prototype,"errorScreen",null);
_.r([_.w("errorScreen"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Yf.prototype,"hasError",null);_.r([_.iA("playerData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],Yf.prototype,"playerDataChanged",null);_.r([_.SA("yt-dismissible-item-undo-feedback"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"onShortUndoDismiss",null);
_.r([_.SA("yt-disable-lockup-interaction"),_.Q("design:type",Function),_.Q("design:paramtypes",[Object]),_.Q("design:returntype")],Yf.prototype,"onShortsDismiss",null);_.r([_.Vr("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"onActiveChanged",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"graftClientVisualElements",null);
_.r([_.iA("currentPlayerIndex"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"graftNvcRenderer",null);_.r([_.iA("index"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"setActiveIndex",null);_.r([_.iA("isShortsPipActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"onShortsPipActiveChanged",null);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"lazyUpdateMiniplayerData",null);_.r([_.Y(),_.Q("design:type",Object)],Yf.prototype,"onOverlayDensityChanged",void 0);_.r([_.iA("isPersistentPanelActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"onPersistentPanelActiveChanged",null);
_.r([_.iA("index","data","isUpArrowHidden"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"onPrevButtonDataChange",null);_.r([_.iA("index","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yf.prototype,"onNextButtonDataChange",null);_.r([_.P({is:"ytd-shorts"})],Yf);_.re.registerService(_.TbL,Yf);
_.mm();
}catch(e){_._DumpException(e)}
try{
_.z3("JzFVk");
var $89;var D8V;var Zr=function(){return _.e.apply(this,arguments)||this};
_.f(Zr,_.e);Zr.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Zr.prototype.computeBlueBottomLink=function(L){return L};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Zr.prototype,"data",void 0);_.r([_.Y({computed:"computeIcon_(data.bottomIcon)"}),_.Q("design:type",String)],Zr.prototype,"bottomIcon",void 0);
_.r([_.Y({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Zr.prototype,"enableBlueBottomLink",void 0);_.r([_.P({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Zr);
_.m(Zr,"ytd-web-answer-renderer",function(){if(D8V!==void 0)return D8V;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return D8V=L},{mode:_.Qr("kevlar_poly_si_batch_j035")?1:2});var lD9;var Ni=function(){var L=_.e.apply(this,arguments)||this;L.hasChipBar=!1;return L};
_.f(Ni,_.e);Ni.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}}};
Ni.prototype.computeHasChipBar=function(L){return!(L==null||!L.chipBar)};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Ni.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ni.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.Q("design:type",Object)],Ni.prototype,"hasChipBar",void 0);_.r([_.P({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Ni);
_.m(Ni,"ytd-search-header-renderer",function(){if(lD9!==void 0)return lD9;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return lD9=L},{mode:1});var vhi;var S1=function(){return _.e.apply(this,arguments)||this};
_.f(S1,_.e);S1.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],S1.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-page-continuation"})],S1);
_.m(S1,"ytd-page-continuation",function(){if(vhi!==void 0)return vhi;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return vhi=L},{mode:1});var ohi;var R2n;var cj9;var nhn=function(){return _.e.apply(this,arguments)||this};
_.f(nhn,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],nhn.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],nhn.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],nhn);
_.m(nhn,"ytd-watch-card-one-vs-one-event",function(){if(cj9!==void 0)return cj9;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return cj9=L},{mode:1});var Kt9=function(){return _.e.apply(this,arguments)||this};
_.f(Kt9,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Kt9.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Kt9.prototype,"data",void 0);_.r([_.P({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],Kt9);
_.m(Kt9,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(R2n!==void 0)return R2n;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return R2n=L},{mode:1});var fDn;var kFn=function(){return _.e.apply(this,arguments)||this};
_.f(kFn,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],kFn.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],kFn.prototype,"data",void 0);_.r([_.P({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],kFn);
_.m(kFn,"ytd-banner-and-box-hero-image-renderer",function(){if(fDn!==void 0)return fDn;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return fDn=L},{mode:1});var yj8;var iC=function(){var L=_.e.apply(this,arguments)||this;L.modern=_.c("web_modern_buttons");return L};
_.f(iC,_.e);iC.prototype.computeIcon=function(){var L,Z,N=(L=this.data)==null?void 0:(Z=L.icon)==null?void 0:Z.iconType;if(N)return _.Bh(N)};
iC.prototype.computeButtonShape=function(){var L;return{buttonText:_.jM((L=this.data)==null?void 0:L.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.gd.Object.defineProperties(iC.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"}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],iC.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],iC.prototype,"modern",void 0);_.r([_.Y({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.w("data.style"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],iC.prototype,"buttonColor",null);
_.r([_.P({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],iC);
_.m(iC,"ytd-call-to-action-button-renderer",function(){if(yj8!==void 0)return yj8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return yj8=L},{mode:1});var wyt;var uC=function(){return _.e.apply(this,arguments)||this};
_.f(uC,_.e);uC.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.QJ(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.r$(this.data.leftThumbnail.thumbnails,216)+")")};
uC.prototype.onLeftThumbnailChanged=uC.prototype.onLeftThumbnailChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],uC.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],uC.prototype,"data",void 0);_.r([_.iA("data.leftThumbnail"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],uC.prototype,"onLeftThumbnailChanged",null);_.r([_.P({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],uC);
_.m(uC,"ytd-collage-hero-image-renderer",function(){if(wyt!==void 0)return wyt;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return wyt=L},{mode:1});var U86;var TY=function(){return _.e.apply(this,arguments)||this};
_.f(TY,_.e);TY.prototype.computeStyle=function(L){return L};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],TY.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Q("design:type",String)],TY.prototype,"componentStyle",void 0);_.r([_.P({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],TY);
_.m(TY,"ytd-single-hero-image-renderer",function(){if(U86!==void 0)return U86;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return U86=L},{mode:1});var YN6;var tH=function(){return _.e.apply(this,arguments)||this};
_.f(tH,_.e);_.t=tH.prototype;
_.t.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:_.c("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.t.computeSubtitle=function(L){if(this.data){var Z;if(this.data.upcomingEventData){L=_.jM(L.subtitle);var N=Number(this.data.upcomingEventData.startTime);isNaN(N)||(Z=_.s9(_.FM(L,N)))}else Z=L.subtitle;return Z}};
_.t.onHeroTap=function(L){L.preventDefault();var Z=this.data&&this.data.navigationEndpoint;!Z||!_.PQ(_.sx(L),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.PQ(_.sx(L),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.c("kevlar_watchcard_hero_video_renderer_killswitch")?_.QT(this.hostElement,"yt-navigate",{navigationEndpoint:Z}):this.ytComponentBehavior.resolveCommand(Z))};
_.t.computeHeroTabIndex=function(L){return L&&L.simpleText?-1:0};
_.t.computeHeroRole=function(L){return L&&L.simpleText?"":"link"};
_.t.computeIsReminderButtonPresent=function(L){return!(!L||!L.reminderButton)};
_.t.computeHideBottomItems=function(L){return!(this.computeIsReminderButtonPresent(L)||L.subtitle)};
_.t.dataChanged=function(){var L=this.get("data.buttons.buttonRenderer.serviceEndpoint"),Z;((Z=_.n(L==null?void 0:L.commandMetadata,_.hc))==null?0:Z.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(L)};
tH.prototype.dataChanged=tH.prototype.dataChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],tH.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],tH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],tH.prototype,"data",void 0);
_.r([_.Y({computed:"computeSubtitle(data)"}),_.Q("design:type",String)],tH.prototype,"subtitle",void 0);_.r([_.Y({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],tH.prototype,"isReminderButtonPresent",void 0);_.r([_.Y({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],tH.prototype,"hideBottomItems",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tH.prototype,"dataChanged",null);_.r([_.P({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],tH);
_.m(tH,"ytd-watch-card-hero-video-renderer",function(){if(YN6!==void 0)return YN6;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return YN6=L},{mode:1});var e29;var Oz=function(){return _.e.apply(this,arguments)||this};
_.f(Oz,_.e);_.t=Oz.prototype;_.t.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"}}}};
_.t.computeTitleBadges=function(L){return L?[L]:[]};
_.t.computeHeaderStyle=function(L){return L?L.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.t.computeAvatarAriaLabel=function(L){if(L){var Z,N,S,u;return(u=(Z=L.avatar)==null?void 0:(N=Z.accessibility)==null?void 0:(S=N.accessibilityData)==null?void 0:S.label)!=null?u:_.jM(L==null?void 0:L.title)}};
_.t.computeAvatarHeight=function(L){return L==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.t.computeBadgeRowClass=function(L){return(L==null?0:L[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Oz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Oz.prototype,"data",void 0);_.r([_.Y({computed:"computeTitleBadges(data.titleBadge)"}),_.Q("design:type",Array)],Oz.prototype,"titleBadges",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.Q("design:type",String)],Oz.prototype,"headerStyle",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.Q("design:type",String)],Oz.prototype,"badgeRowClass",void 0);_.r([_.P({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Oz);
_.m(Oz,"ytd-watch-card-rich-header-renderer",function(){if(e29!==void 0)return e29;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return e29=L},{mode:1});var IDt;var d8f;var WH=function(){return _.e.apply(this,arguments)||this};
_.f(WH,_.e);WH.prototype.onMetadataTap=function(L){var Z=this.data&&this.data.navigationEndpoint;Z&&!_.PQ(_.sx(L),this.hostElement,["A".toString()])&&_.QT(this.hostElement,"yt-navigate",{endpoint:Z})};
_.gd.Object.defineProperties(WH.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 L;if(this.data.upcomingEventData){var Z=_.jM(this.data.subtitle),N=Number(this.data.upcomingEventData.startTime);isNaN(N)||(L=_.s9(_.FM(Z,N)))}else L=this.data.subtitle;return L}}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],WH.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data.style"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],WH.prototype,"isCondensed",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],WH.prototype,"subtitle",null);
_.r([_.P({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],WH);
_.m(WH,"ytd-watch-card-compact-video-renderer",function(){if(d8f!==void 0)return d8f;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return d8f=L},{mode:1});var aDn;var h2Y=function(){return _.e.apply(this,arguments)||this};
_.f(h2Y,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],h2Y.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],h2Y.prototype,"data",void 0);_.r([_.P({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],h2Y);
_.m(h2Y,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(aDn!==void 0)return aDn;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return aDn=L},{mode:1});var VF=function(){return _.e.apply(this,arguments)||this};
_.f(VF,_.e);VF.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}}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],VF.prototype,"ytRendererStamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],VF.prototype,"data",void 0);_.r([_.P({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],VF);
_.m(VF,"ytd-vertical-watch-card-list-renderer",function(){if(IDt!==void 0)return IDt;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return IDt=L},{mode:1});var sm9;var bC=function(){var L=_.e.apply(this,arguments)||this;L.ariaExpanded="false";return L};
_.f(bC,_.e);_.t=bC.prototype;_.t.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.t.dataChanged=function(){var L;this.currentSeasonIndex=((L=this.data)==null?void 0:L.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.t.computeEpisodesInfo=function(L,Z,N){if(L!==void 0&&Z.length===L.length)return L[N]};
_.t.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.t.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.t.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.t.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.t.getUppercaseSimpleString=function(L){return this.ytRendererBehavior.getSimpleString(L).toUpperCase()};
_.t.updateCurrentSeasonIndexFromBinding=function(L){this.currentSeasonIndex=L.detail.value};
bC.prototype.onIronOverlayClosed=bC.prototype.onIronOverlayClosed;bC.prototype.currentSeasonIndexChanged=bC.prototype.currentSeasonIndexChanged;bC.prototype.dataChanged=bC.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],bC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],bC.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",String)],bC.prototype,"label",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],bC.prototype,"currentSeasonIndex",void 0);_.r([_.Y({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.Q("design:type",Object)],bC.prototype,"episodesInfo",void 0);_.r([_.Y({value:"false"}),_.Q("design:type",Object)],bC.prototype,"ariaExpanded",void 0);_.r([_.TX("#lists"),_.Q("design:type",Object)],bC.prototype,"lists",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bC.prototype,"dataChanged",null);_.r([_.Vr("currentSeasonIndex"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bC.prototype,"currentSeasonIndexChanged",null);_.r([_.SA("iron-overlay-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],bC.prototype,"onIronOverlayClosed",null);
_.r([_.P({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],bC);
_.m(bC,"ytd-watch-card-section-dropdown-renderer",function(){if(sm9!==void 0)return sm9;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return sm9=L},{mode:1});var jmt;var Mi=function(){var L=_.e.apply(this,arguments)||this;L.isSearch=!1;return L};
_.f(Mi,_.e);Mi.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}}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Mi.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Mi.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Mi.prototype,"isSearch",void 0);_.r([_.P({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Mi);
_.m(Mi,"ytd-watch-card-section-sequence-renderer",function(){if(jmt!==void 0)return jmt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
return jmt=L},{mode:1});var EhM=_.p(function(L){return _.g("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.g(_.bj,{data:function(){return L.data().ctaButton}},{buttonViewModel:_.$X}),_.g(_.qv,{text:function(){return L.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Sm");
EhM.idomCompat=!0;_.CY(EhM,"ytd-button-banner-view-model",{props:{data:_.LK}});var gs=function(){var L=_.e.apply(this,arguments)||this;L.isSearch=!1;return L};
_.f(gs,_.e);
gs.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"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],gs.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],gs.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],gs.prototype,"rounded",void 0);_.r([_.Y(),_.Q("design:type",Object)],gs.prototype,"isSearch",void 0);
_.r([_.P({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],gs);
_.m(gs,"ytd-universal-watch-card-renderer",function(){if(ohi!==void 0)return ohi;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ohi=L},{mode:1});var PG9;_.CY(_.p(function(L){var Z=L.data;var N;L=!((N=_.GR().resolve(_.gv(_.d$)))==null||!N());N={};return _.g("overview-message-view-model",{class:_.qg("ytwOverviewMessageViewModelHost",(N.ytwOverviewMessageViewModelDarkBackground=L,N.ytwOverviewMessageViewModelLightBackground=!L,N))},_.g(_.F,{cond:function(){return Z().primaryImage},
then:function(S){return _.g(_.ji,{data:S,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.g(_.F,{cond:function(){return Z().primaryText},
then:function(){return _.g("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.g(_.qv,{text:function(){return Z().primaryText}}))}}),_.g(_.F,{cond:function(){return Z().secondaryText},
then:function(){return _.g("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.g(_.qv,{text:function(){return Z().secondaryText}}))}}))},"Tm"),"overview-message-view-model",{props:{data:_.LK}});_.CY(_.Bbh,"ytd-overview-answer-view-model",{props:{data:_.LK}});var GY=function(){return _.e.apply(this,arguments)||this};
_.f(GY,_.e);GY.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"}}}};
GY.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],GY.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Sq),_.Q("design:type",Object)],GY.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],GY.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],GY.prototype,"isSearch",void 0);
_.r([_.P({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],GY);
_.m(GY,"ytd-secondary-search-container-renderer",function(){if(PG9!==void 0)return PG9;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
return PG9=L},{mode:1});var pyG;var Fu=function(){var L=_.e.apply(this,arguments)||this;L.renderSecondarySearchContainer=!1;L.isSearch=!1;return L};
_.f(Fu,_.e);_.t=Fu.prototype;_.t.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"}}}};
_.t.created=function(){var L=this;this.boundStampSecondarySearchContainerIfFits=function(){L.stampSecondarySearchContainerIfFits()};
_.Qc("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.t.computeIsSearchFrictionPage=function(L){var Z,N,S,u,T;L=L==null?void 0:(Z=L.primaryContents)==null?void 0:(N=Z.sectionListRenderer)==null?void 0:(S=N.contents)==null?void 0:(u=S[0])==null?void 0:(T=u.itemSectionRenderer)==null?void 0:T.contents;if(!L)return!1;Z=_.O(L);for(N=Z.next();!N.done;N=Z.next())if(S=void 0,(S=N.value)==null?0:S.searchFrictionViewModel)return!0;return!1};
_.t.computeShowSecondaryColumn=function(L,Z){return!!(Z&&Z.secondaryContents&&L)};
_.t.activeChanged=function(){var L=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Nd(this,this.debounceStampSecondarySearchContainerIfFits)),_.Uk(function(){L.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Nd(this,this.debounceStampSecondarySearchContainerIfFits))};
_.t.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.t.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.t.debounceStampSecondarySearchContainerIfFits=function(){_.YD(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.t.onRetrieveLocation=function(L,Z){Z.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);L.stopPropagation()};
_.t.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
Fu.prototype.dataChanged=Fu.prototype.dataChanged;Fu.prototype.onRetrieveLocation=Fu.prototype.onRetrieveLocation;Fu.prototype.persistentGuideChanged=Fu.prototype.persistentGuideChanged;Fu.prototype.activeChanged=Fu.prototype.activeChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Fu.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],Fu.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.y(_.Eb),_.Q("design:type",Object)],Fu.prototype,"ironResizableBehavior",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Fu.prototype,"active",void 0);_.r([_.Y(),_.Q("design:type",Object)],Fu.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.Q("design:type",Boolean)],Fu.prototype,"useBiggerThumbs",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.vW("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],Fu.prototype,"biggerThumbsStyle",void 0);_.r([_.Y(),_.Q("design:type",Object)],Fu.prototype,"renderSecondarySearchContainer",void 0);_.r([_.Y({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.Q("design:type",Boolean)],Fu.prototype,"showSecondaryColumn",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.Q("design:type",Boolean)],Fu.prototype,"isSearchFrictionPage",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Fu.prototype,"isSearch",void 0);_.r([_.iA("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Fu.prototype,"activeChanged",null);_.r([_.iA("guidePersistentAndVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Fu.prototype,"persistentGuideChanged",null);
_.r([_.SA("yt-retrieve-location"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],Fu.prototype,"onRetrieveLocation",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Fu.prototype,"dataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],Fu);
_.m(Fu,"ytd-two-column-search-results-renderer",function(){if(pyG!==void 0)return pyG;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return pyG=L},{mode:1});var $f=function(){var L=_.e.apply(this,arguments)||this;L.hasSearchHeader=!1;L.hasSecondaryContent=!1;L.hasBiggerThumbs=_.c("enable_desktop_search_bigger_thumbs");L.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return L};
_.f($f,_.e);_.t=$f.prototype;_.t.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:_.$y(["aa","eocs"])}}};
_.t.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.t.loadPage_=function(L){this.initCsi();L&&(this.data=L,_.Qc("REFINEMENTS_TUPLE",["FromSearchResponse",L.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.OI(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.t.initCsi=function(){_.cf7("results",["ol","cpt"])};
_.t.updateTitle=function(){var L=_.B4(window.location.href,"q");L||(L=_.B4(window.location.href,"search_query"));_.QT(this.hostElement,"yt-update-title",L||"")};
_.t.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.t.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.c("web_srp_data_changed_terminate_imp_killswitch")||_.XJ(this.hostElement,"yt-terminate-video-preview-action")};
_.t.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.t.computeHasSearchHeader=function(L){var Z;L=L==null?void 0:(Z=L.header)==null?void 0:Z.searchHeaderRenderer;return!!L&&(!!L.searchFilterButton||!!L.chipBar)};
_.t.computeHasSecondaryContent=function(L){var Z,N;return!!(L==null?0:(Z=L.contents)==null?0:(N=Z.twoColumnSearchResultsRenderer)==null?0:N.secondaryContents)};
_.gd.Object.defineProperties($f,{template:{configurable:!0,enumerable:!0,get:function(){if($89===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);$89=L}L=$89;return L}}});
$f.prototype.onReloadContinuationFinish=$f.prototype.onReloadContinuationFinish;$f.prototype.dataChanged=$f.prototype.dataChanged;_.r([_.y(_.uw.YtPageBehavior),_.Q("design:type",Object)],$f.prototype,"ytPageBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],$f.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],$f.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],$f.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Sq),_.Q("design:type",Object)],$f.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],$f.prototype,"data",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],$f.prototype,"monitorScroll",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],$f.prototype,"hasSearchHeader",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],$f.prototype,"hasSecondaryContent",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],$f.prototype,"hasBiggerThumbs",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$f.prototype,"dataChanged",null);
_.r([_.SA("yt-reload-continuation-finish"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$f.prototype,"onReloadContinuationFinish",null);_.r([_.P({is:"ytd-search"})],$f);_.re.registerService(_.u_1,$f);
_.mm();
}catch(e){_._DumpException(e)}
try{
_.z3("h8y2qb");
var KY9=function(L){if(L=_.Sf_(L)){var Z;(Z=L.sources)!=null&&Z[0]?(Z=_.uYH(L),Z=Z<1?"VERTICAL":Z>1?"HORIZONTAL":"SQUARE"):Z=void 0;return Z}},T$=function(L){_.kW.call(this,"upload");
this.opts.query=L},kin=function(L,Z){return _.g(fMM,{data:L,
onYtNavigate:Z})},yfG=function(L,Z){return _.Lk(L.entities,"pageHeaderEntity",Z)},Uqf=function(L,Z){return L.map(function(N){if(N.tabRenderer)return w6G(N.tabRenderer);
if(N.expandableTabRenderer&&Z){var S=N.expandableTabRenderer;return{customTabRenderable:function(){return Z(S)}}}return{}})},w6G=function(L){return{identifier:L.tabIdentifier,
aTagConfig:_.kN({innertubeCommand:L.endpoint,forceNewState:!0}),title:L.title,selected:L.selected,disabled:L.unselectable,icon:L.icon}},YnM=function(L){return _.XK({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:L})},eMw=function(L){if(!_.QB(document,"gtm-noscript")){var Z=document.createElement("noscript");
Z.id="gtm-noscript";Z.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+L+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(Z)}};_.Qk(T$,_.kW);T$.prototype.JSC$10073_setLabel=function(L){T$.superClass_.JSC$10073_setLabel.call(this,L);return this};
T$.prototype.addUploadMetadata=function(L,Z){T$.superClass_.addUploadMetadata.call(this,L,Z);return this};var IMV=function(L){if(L!=="youtubebanner"&&L!=="youtube-channel-banner")throw Error("Ko");T$.call(this,L)};
_.f(IMV,T$);IMV.prototype.JSC$10073_setLabel=function(L){T$.prototype.JSC$10073_setLabel.call(this,L);return this};
IMV.prototype.addUploadMetadata=function(L,Z){T$.prototype.addUploadMetadata.call(this,L,Z);return this};var dqG=[_.Eb,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(L){_.g0(L).path[0]!==this&&(this.resetLayout(),L.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var L=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Gb(this._layoutDebouncer,_.FZ,L);_.FO(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var L=this;requestAnimationFrame(function(){L.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(L){this.resizerShouldNotify(L)&&this._notifyDescendant(L)},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 aMn=[_.r9M,{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(L,Z){var N=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[L];if(!N)throw new ReferenceError(this._getUndefinedMsg(L));L=this._boundEffect(N,Z||{});L.setUp();return L},
_effectsChanged:function(L,Z,N){this._tearDownEffects();L&&N&&(L.split(" ").forEach(function(S){var u;S!==""&&((u=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[S])?this._effects.push(this._boundEffect(u,Z[S])):console.warn(this._getUndefinedMsg(S)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(L,Z){Z=Z||{};var N=parseFloat(Z.startsAt||0),S=parseFloat(Z.endsAt||1),u=S-N,T=function(){};
S=N===0&&S===1?L.run:function(W,V){L.run.call(this,Math.max(0,(W-N)/u),V)};
return{setUp:L.setUp?L.setUp.bind(this,Z):T,run:L.run?S.bind(this):T,tearDown:L.tearDown?L.tearDown.bind(this):T}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(L){L.setUp()!==!1&&this._effectsRunFn.push(L.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(L){L.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(L,Z){this._effectsRunFn&&this._effectsRunFn.forEach(function(N){N(L,Z)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var L=this._clampedScrollTop;this._updateScrollState(L);this.threshold>0&&this._setThresholdTriggered(L>=this.threshold)}},
_getDOMRef:function(L){console.warn("_getDOMRef","`"+L+"` is undefined")},
_getUndefinedMsg:function(L){return"Scroll effect `"+L+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+L+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Lo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(L){var Z={};L=parseFloat(L.scalar);Z.background=this._getDOMRef("background");Z.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");Z.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");Z.deltaBg=Z.backgroundFrontLayer.offsetHeight-Z.background.offsetHeight;Z.deltaBg===0?(isNaN(L)&&(L=.8),Z.deltaBg=(this._dHeight||0)*L):(isNaN(L)&&(L=
1),Z.deltaBg*=L);this._fxParallaxBackground=Z},
run:function(L){var Z=this._fxParallaxBackground;this.transform("translate3d(0px, "+Z.deltaBg*Math.min(1,L)+"px, 0px)",Z.backgroundFrontLayer);Z.backgroundRearLayer&&this.transform("translate3d(0px, "+Z.deltaBg*Math.min(1,L)+"px, 0px)",Z.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var hMq;var s7w;var j78=function(){};
_.t=j78.prototype;_.t._scrollTargetChanged=function(){};
_.t.scroll=function(){};
_.t._isValidScrollTarget=function(){};
_.t._toggleScrollListener=function(){};
_.t.toggleScrollListener=function(){};
_.t.createEffect=function(){};
_.t._effectsChanged=function(){};
_.t._layoutIfDirty=function(){};
_.t._boundEffect=function(){};
_.t._setUpEffect=function(){};
_.t._tearDownEffects=function(){};
_.t._runEffects=function(){};
_.t._scrollHandler=function(){};
_.t._scrollStateChanged=function(){};
_.t._getUndefinedMsg=function(){};
_.t.notifyResize=function(){};
_.t.assignParentResizable=function(){};
_.t.stopResizeNotificationsFor=function(){};
_.t._subscribeIronResize=function(){};
_.t._unsubscribeIronResize=function(){};
_.t.resizerShouldNotify=function(){};
_.t._onDescendantIronResize=function(){};
_.t._fireResize=function(){};
_.t._onIronRequestResizeNotifications=function(){};
_.t._parentResizableChanged=function(){};
_.t._notifyDescendant=function(){};
_.t._requestResizeNotifications=function(){};
_.t._findParent=function(){};
_.t._appResetLayoutHandler=function(){};
_.t.resetLayout=function(){};
_.t._notifyLayoutChanged=function(){};
_.t._notifyDescendantResize=function(){};
_.t._setThresholdTriggered=function(){};
j78=_.DU({_template:function(){if(s7w!==void 0)return s7w;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;hMq===void 0&&(hMq=document.createElement("template"));var S=hMq;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return s7w=L},
is:"tp-yt-app-header",behaviors:[aMn,dqG],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 L=_.g0(this.$.slot).getDistributedNodes(),Z=0,N;N=L[Z];Z++)if(N.nodeType===Node.ELEMENT_NODE)if(N.hasAttribute("sticky")){this._stickyElRef=N;break}else this._stickyElRef||(this._stickyElRef=N);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var L=this._clampedScrollTop,Z=this._height===0||L===0,N=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;Z||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();Z?this._updateScrollState(L,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=N}},
_updateScrollState:function(L,Z){if(this._height!==0){var N=0,S=this._top;var u=this._maxHeaderTop;var T=L-this._lastScrollTop,W=Math.abs(T),V=L>this._lastScrollTop,M=performance.now();this._mayMove()&&(N=this._clamp(this.reveals?S+T:L,0,u));L>=this._dHeight&&(N=this.condenses&&!this.fixed?Math.max(this._dHeight,N):N,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&W<100){if(M-this._initTimestamp>300||this._wasScrollingDown!==V)this._initScrollTop=L,this._initTimestamp=M;L>=u&&
(Math.abs(this._initScrollTop-L)>30||W>10?(V&&L>=u?N=u:!V&&L>=this._dHeight&&(N=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((N-S)/(T/(M-this._lastTimestamp)),0,300)+"ms"):N=this._top)}u=this._dHeight===0?L>0?1:0:N/this._dHeight;Z||(this._lastScrollTop=L,this._top=N,this._wasScrollingDown=V,this._lastTimestamp=M);if(Z||u!==this._progress||S!==N||L===0)this._progress=u,this._runEffects(u,N),this._transformHeader(N)}},
_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(L){this.translate3d(0,-L+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&L>=this._stickyElTop?Math.min(L,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(L,Z,N){return Math.min(N,Math.max(Z,L))},
_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),_.g0(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(L){switch(L){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.g0(this).querySelector("[main-title]");case "condensedTitle":return _.g0(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var EVi;var P9n;_.DU({_template:function(){if(P9n!==void 0)return P9n;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;EVi===void 0&&(EVi=document.createElement("template"));var S=EVi;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return P9n=L},
is:"tp-yt-app-header-layout",behaviors:[dqG],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.g0(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var L=this.header;if(this.isAttached&&L){this.$.wrapper.classList.remove("initializing");L.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)L.style.left=
"",L.style.right="";else{var Z=this.getBoundingClientRect(),N=document.documentElement.clientWidth-Z.right;L.style.left=Z.left+"px";L.style.right=N+"px"}Z=this.$.contentContainer.style;N=L.offsetHeight;L.fixed&&!L.condenses&&this.hasScrollingRegion?(Z.marginTop=N+"px",Z.paddingTop=""):(Z.paddingTop=N+"px",Z.marginTop="")}}});var p6M=new _.S5("alertCommand");var zMV=new _.S5("manageLabsStateCommand");var mqV=new _.S5("inlineFormRenderer");var Jfi=new _.S5("playlistSidebarPrimaryInfoRenderer");var C99=new _.S5("productDetailsThumbnailRenderer"),rf9=new _.S5("productDetailsVariantRenderer"),Q7V=new _.S5("productDetailsVariantOptionRenderer"),X6M=new _.S5("productDetailsOffersContainerRenderer"),AfY=new _.S5("productDetailsOfferRenderer");var HGG=new _.S5("shoppingFlaggingRenderer");var Bw7=new _.S5("playlistBylineRenderer");var xqf=new _.S5("insertChannelTabCommand");var t1=function(){return _.Ok.apply(this,arguments)||this};
_.f(t1,_.Ok);_.t=t1.prototype;_.t.activeChanged=function(){if(this.active){var L=_.QJ(this.hostElement).querySelector("#header");L&&_.QT(L,"iron-resize");window.addEventListener("scroll",_.Nd(this,this.onScroll))}else window.removeEventListener("scroll",_.Nd(this,this.onScroll)),_.QT(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.t.guideVisibleChanged=function(){var L=_.QJ(this.hostElement).querySelector("#header");L&&_.QT(L,"iron-resize")};
_.t.onScroll=function(){var L=this;_.YD(this,"onScroll",function(){var Z=_.QJ(L.hostElement).querySelector("#header");Z&&Z.polymerController&&(Z=Z.polymerController.getScrollState().progress===1?"standard":"seamed",_.QT(L.hostElement,"yt-request-panel-mode-change",{mode:Z}))},10)};
_.t.tabsChanged=function(){if(this.tabs){for(var L=null,Z=0,N=this.tabs.length;Z<N;++Z){var S=this.tabs[Z].tabRenderer;if(S&&S.selected){L=Z;break}}this.selected=L}};
_.t.onTabsActivate=function(L){_.QT(this.hostElement,"yt-navigate",{endpoint:this.tabs[L.detail.selected].tabRenderer.endpoint})};
t1.prototype.tabsChanged=t1.prototype.tabsChanged;t1.prototype.guideVisibleChanged=t1.prototype.guideVisibleChanged;t1.prototype.activeChanged=t1.prototype.activeChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],t1.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.Y(),_.Q("design:type",Array)],t1.prototype,"tabs",void 0);
_.r([_.Y(),_.Q("design:type",Object)],t1.prototype,"selected",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],t1.prototype,"active",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],t1.prototype,"disableHeaderFluidWidth",void 0);_.r([_.iA("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],t1.prototype,"activeChanged",null);
_.r([_.iA("guidePersistentAndVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],t1.prototype,"guideVisibleChanged",null);_.r([_.iA("tabs"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],t1.prototype,"tabsChanged",null);_.r([_.Wh()],t1);var qnf=[_.B.YtRendererBehavior,_.B0.YtdGuideStateAwareBehavior,t1.prototype];var Lw6=2/3,Zsw=_.Ll(130749),N7Y=function(L,Z){var N=this;this.element=L;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){N.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:Lw6,moveAction:function(S){N.moveAction(S)},
triggerAction:function(){N.element.isReloading=!0;_.ew(_.tC(),{visualElement:Zsw});_.qd.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:N.element}})}}}};
_.yn(_.tC(),Zsw,this.layer);this.gesture=new _.Pf(L,Z,this.refreshConfig,"pan-down");this.attach()};
_.t=N7Y.prototype;_.t.attach=function(){this.gesture.attach()};
_.t.detach=function(){this.gesture.detach()};
_.t.reset=function(){this.element.close()};
_.t.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.t.moveAction=function(L){this.element.rotation=L*360};var S3M=_.Ll(130750),ugM=function(L,Z,N,S,u){var T=this;this.element=L;this.parent=N;this.channelHeader=S;this.ytdReduxDispatch=u;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){T.tabsStartAtInPx=T.channelHeader.clientHeight-48;var W;(W=T.selectedTab)!=null&&W.title&&(W=_.GR().resolve(_.gv(_.mR)))&&(W=W.getCurrentPage(),T.lastVisitedTabScrollPosition=W.getScrollTop(),T.previousTab&&
((T.lastVisitedTabScrollPosition===void 0?0:T.lastVisitedTabScrollPosition<T.channelHeader.clientHeight-48)?T.scrollPositionForTabs.has(T.selectedTab.title)&&T.scrollPositionForTabs.delete(T.selectedTab.title):T.scrollPositionForTabs.set(T.selectedTab.title,W.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:is6(),triggerAction:function(){T.navigate(T.previousTab)},
moveAction:function(W,V){T.moveAction(W,V)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-is6(),triggerAction:function(){T.navigate(T.nextTab)},
moveAction:function(W,V){T.moveAction(W,V)}}}};
_.yn(_.tC(),S3M,this.layer);this.gesture=new _.Pf(L,Z,this.tabConfig);this.attach()};
_.t=ugM.prototype;_.t.attach=function(){this.gesture.attach()};
_.t.detach=function(){this.gesture.detach()};
_.t.tabsChanged=function(L){if(L){var Z=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;L=_.O(L);for(var N=L.next();!N.done;N=L.next()){N=N.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=N);var S=void 0;if((S=N)==null?0:S.selected)this.previousTab=Z,this.selectedTab=N;Z=N}Z=this.gesture;L=this.getConfig();Z.config=L;this.scrollPositionNeedsUpdate=!0}};
_.t.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}})};
_.t.moveAction=function(L,Z){if(!this.tabsElement){var N;this.tabsElement=(N=this.parent.header)==null?void 0:N.tabsElement;Z==="right"&&this.previousTab?(N=this.previousTab.endpoint,_.CGg(_.GR().resolve(_.G1),N,{},"")):Z==="left"&&this.nextTab&&(N=this.nextTab.endpoint,_.CGg(_.GR().resolve(_.G1),N,{},""));if(!this.tabsElement)return}N=this.tabsElement._pos;Z==="right"&&(L*=-1);this.tabsElement._positionBar(N.width,N.left*1+N.width*L)};
var is6=function(){var L,Z;return(Z=(L=_.GR().resolve(_.mR).getCurrentPage())==null?void 0:L.clientWidth)!=null?Z:0};
ugM.prototype.navigate=function(L){this.element.data=void 0;if(L=L==null?void 0:L.endpoint)this.ytdReduxDispatch(YnM(!0)),_.ew(_.tC(),{visualElement:S3M}),_.qd.instance.resolveCommand({navigateAction:{endpoint:L}},{form:{element:this.element}})};var T7i;var to6;var Op=function(){return _.e.apply(this,arguments)||this};
_.f(Op,_.e);Op.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Op.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Op.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Op.prototype,"data",void 0);_.r([_.P({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Op);
_.m(Op,"ytd-labs-edit-renderer",function(){if(to6!==void 0)return to6;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return to6=L},{mode:1});var Osf;var WR=function(){var L=_.e.apply(this,arguments)||this;L.dark=!1;L.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";L.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return L};
_.f(WR,_.e);WR.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
WR.prototype.ready=function(){var L=document.documentElement.hasAttribute("dark");this.setBackgroundImage(L);this.dark=L};
WR.prototype.onDarkModeToggledAction=function(L){this.setBackgroundImage(L);this.dark=L};
WR.prototype.setBackgroundImage=function(L){_.Ld(this.hostElement,{"--yt-labs-header-background":"url("+(L?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],WR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],WR.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],WR.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],WR.prototype,"dark",void 0);
_.r([_.P({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],WR);
_.m(WR,"ytd-labs-header-renderer",function(){if(Osf!==void 0)return Osf;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Osf=L},{mode:1});var WwM;var Vv=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return L};
_.f(Vv,_.e);Vv.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"}}}}}};
Vv.prototype.onYtToggleButton=function(L){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",L.detail.toggled)};
Vv.prototype.onManageLabsState=function(L){if(L=_.n(L,zMV))L.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?L.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&L.labsItemId===this.data.labsItemId&&(L.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.XJ(this.hostElement,"yt-check-labs-opted-in-state").some(function(Z){return Z})&&this.data.confirmationDialogCommand?_.B2(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.GR().resolve(_.$s).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&L.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.GR().resolve(_.$s).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Vv.prototype.onCheckLabsOptedInState=function(){var L=this.get("data.primaryButton.toggleButtonRenderer");return L?L.isToggled:!1};
_.gd.Object.defineProperties(Vv.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Vv.prototype.onYtToggleButton=Vv.prototype.onYtToggleButton;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Vv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Vv.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Vv.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Vv.prototype,"itemStyle",null);_.r([_.SA("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Vv.prototype,"onYtToggleButton",null);_.r([_.P({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Vv);
_.m(Vv,"ytd-labs-item-renderer",function(){if(WwM!==void 0)return WwM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return WwM=L},{mode:1});var VoY;var bsG;var MoM=function(){return _.e.apply(this,arguments)||this};
_.f(MoM,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],MoM.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],MoM.prototype,"data",void 0);_.r([_.P({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],MoM);
_.m(MoM,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(bsG!==void 0)return bsG;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return bsG=L},{mode:1});var gSn;var bw=function(){return _.e.apply(this,arguments)||this};
_.f(bw,_.e);bw.prototype.observeSuperchatChip=function(){if(this.data){var L={"--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)};_.Ld(this.hostElement,L)}};
bw.prototype.colorFromDecimal=function(L){return _.Rs(Number(L||0))};
bw.prototype.observeSuperchatChip=bw.prototype.observeSuperchatChip;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],bw.prototype,"data",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bw.prototype,"observeSuperchatChip",null);_.r([_.P({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],bw);
_.m(bw,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(gSn!==void 0)return gSn;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return gSn=L},{mode:1});var ME=function(){return _.e.apply(this,arguments)||this};
_.f(ME,_.e);ME.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"}}}};
_.gd.Object.defineProperties(ME.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ME.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Q$),_.Q("design:type",Object)],ME.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ME.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ME.prototype,"hideMessageBlock",null);
_.r([_.P({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],ME);
_.m(ME,"ytd-live-chat-history-entry-renderer",function(){if(VoY!==void 0)return VoY;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return VoY=L},{mode:1});var GEV;var Fwn=function(){return _.e.apply(this,arguments)||this};
_.f(Fwn,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Fwn.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Fwn.prototype,"data",void 0);_.r([_.P({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],Fwn);
_.m(Fwn,"ytd-channel-options-renderer",function(){if(GEV!==void 0)return GEV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return GEV=L},{mode:1});var $ZM;var gq=function(){return _.e.apply(this,arguments)||this};
_.f(gq,_.e);gq.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],gq.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],gq.prototype,"data",void 0);_.r([_.P({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],gq);
_.m(gq,"ytd-settings-email-item-renderer",function(){if($ZM!==void 0)return $ZM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return $ZM=L},{mode:1});var DZ7;var G$=function(){return _.e.apply(this,arguments)||this};
_.f(G$,_.e);G$.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"}}}};
G$.prototype.getExpansionIcon=function(L){return L?"COLLAPSE":"EXPAND"};
G$.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.gd.Object.defineProperties(G$.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],G$.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],G$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],G$.prototype,"data",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],G$.prototype,"expanded",void 0);_.r([_.w("expanded"),_.Q("design:type",String),_.Q("design:paramtypes",[])],G$.prototype,"emailListExpanded",null);
_.r([_.TX("#options"),_.Q("design:type",Object)],G$.prototype,"options",void 0);_.r([_.P({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],G$);
_.m(G$,"ytd-settings-email-list-renderer",function(){if(DZ7!==void 0)return DZ7;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return DZ7=L},{mode:1});var lSf;var Fz=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return L};
_.f(Fz,_.e);Fz.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"}}}};
Fz.prototype.handleSignalActionSubmitForm=function(){var L,Z=(L=this.formRenderer)==null?void 0:L.getForm();Z&&this.data.serviceEndpoint&&_.GR().resolve(_.$s).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},Z,{element:this.hostElement})})};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Fz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Fz.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Fz.prototype,"data",void 0);_.r([_.TX("yt-form-renderer"),_.Q("design:type",Object)],Fz.prototype,"formRenderer",void 0);
_.r([_.P({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Fz);
_.m(Fz,"ytd-settings-gaia-link-renderer",function(){if(lSf!==void 0)return lSf;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return lSf=L},{mode:1});var vSG;var $K=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return L};
_.f($K,_.e);$K.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.oe8()&&this.set("data.hidden",!1)};
$K.prototype.onSwitchReady=function(){var L=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.c("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.vec().then(function(Z){Z&&(Notification.permission==="default"?L.set("data.hidden",!1):Notification.permission==="granted"&&_.ky("NotificationsDisabled").then(function(N){N||_.XJ(L.hostElement,"yt-toggle-settings-switch",[L.data.id,!N]);L.set("data.hidden",!1)}).catch(function(){}))})})};
$K.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}}}}};
$K.prototype.handleUpdateOptionsCommand=function(L){(L=_.n(L,_.udl))&&this.data&&this.data.id===L.id&&(this.set("data.hidden",L.hidden),L.text!==void 0&&this.set("data.text",L.text),L.clearOptions&&this.set("data.options",[]))};
$K.prototype.onSwitchReady=$K.prototype.onSwitchReady;$K.prototype.dataChanged=$K.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],$K.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],$K.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],$K.prototype,"data",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$K.prototype,"dataChanged",null);_.r([_.SA("yt-settings-switch-ready"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$K.prototype,"onSwitchReady",null);_.r([_.P({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],$K);
_.m($K,"ytd-settings-options-renderer",function(){if(vSG!==void 0)return vSG;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return vSG=L},{mode:1});var oSt;var Dv=function(){return _.e.apply(this,arguments)||this};
_.f(Dv,_.e);Dv.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Dv.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
Dv.prototype.onYtExpanderMoreTapped=Dv.prototype.onYtExpanderMoreTapped;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Dv.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Dv.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Dv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Dv.prototype,"data",void 0);
_.r([_.SA("yt-expander-more-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Dv.prototype,"onYtExpanderMoreTapped",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Dv);
_.m(Dv,"ytd-product-details-description-renderer",function(){if(oSt!==void 0)return oSt;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return oSt=L},{mode:1});var R16;var lw=function(){var L=_.e.apply(this,arguments)||this;L.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";L.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";L.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";L.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return L};
_.f(lw,_.e);lw.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.gd.Object.defineProperties(lw.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?void 0:(Z=L.offerData)==null?void 0:Z.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?void 0:L.purchaseButtonRenderers)!==void 0&&((Z=this.data)==null?void 0:Z.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!((L=this.data)==null||!L.formattedFromMerchantText)&&(!((Z=this.data)==null||!Z.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],lw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],lw.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],lw.prototype,"data",void 0);
_.r([_.Y({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0}),_.Q("design:type",Object)],lw.prototype,"shippingIcon",void 0);_.r([_.Y({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0}),_.Q("design:type",Object)],lw.prototype,"shippingAddressIcon",void 0);_.r([_.Y({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0}),_.Q("design:type",Object)],lw.prototype,"googleGuaranteeIcon",void 0);
_.r([_.Y({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0}),_.Q("design:type",Object)],lw.prototype,"returnPolicyIcon",void 0);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],lw.prototype,"showAdditionalFees",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],lw.prototype,"showMultiPurchaseButtons",null);
_.r([_.w("data","showMultiPurchaseButtons"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],lw.prototype,"showPurchaseData",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],lw);
_.m(lw,"ytd-product-details-hero-offer-renderer",function(){if(R16!==void 0)return R16;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return R16=L},{mode:1});var cUi;var nSw;var vR=function(){return _.e.apply(this,arguments)||this};
_.f(vR,_.e);_.t=vR.prototype;_.t.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.t.onKeyDown=function(L){L=L.keyCode;L!==13&&L!==32||this.handleSelection()};
_.t.onMouseEnterImage=function(){var L;((L=this.data)==null?void 0:L.thumbnailDetails)!==void 0&&_.Ad(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.t.onMouseLeaveImage=function(){_.Ad(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.t.handleSelection=function(){this.data&&_.QT(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.gd.Object.defineProperties(vR.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.isSelected)}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],vR.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vR.prototype,"isSelected",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],vR);
_.m(vR,"ytd-product-details-thumbnail-renderer",function(){if(nSw!==void 0)return nSw;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return nSw=L},{mode:1});var oI=function(){var L=_.e.apply(this,arguments)||this;var Z={};L.actionMap=(Z["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",Z["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",Z);L.selectedThumbnailIndex=0;L.selectItem=function(N){N.target.onKeyDown(N)};
return L};
_.f(oI,_.e);_.t=oI.prototype;_.t.handlePreviewImageSelect=function(L){this.hoverThumbnail=L};
_.t.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.t.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.t.onThumbnailSelected=function(L,Z){this.selectedThumbnailIndex=Z};
_.t.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.t.updateOffset=function(){var L=_.QJ(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-L));this.ytdHorizontalListBehavior.reposition_()};
_.gd.Object.defineProperties(oI.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.data)==null?0:L.imageRenderer){var Z,N;return((Z=this.data)==null?void 0:(N=Z.imageRenderer)==null?void 0:N.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var L;if((L=this.data)==null?0:L.imageRenderer){var Z;return(Z=_.n(this.data.imageRenderer[this.selectedThumbnailIndex],C99))==null?void 0:Z.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var L=this,Z,N,S,u=(S=(Z=this.data)==null?void 0:(N=Z.imageRenderer)==null?void 0:N.map(function(T,W){return{productDetailsThumbnailRenderer:Object.assign({},_.n(T,C99),{index:W,isSelected:W===L.selectedThumbnailIndex})}}))!=null?S:[];
return Object.assign({},this.data,{imageRenderer:u})}}});
oI.prototype.updateOffset=oI.prototype.updateOffset;oI.prototype.dataChanged=oI.prototype.dataChanged;oI.prototype.onThumbnailSelected=oI.prototype.onThumbnailSelected;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],oI.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],oI.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Mo.YtdHorizontalListBehavior),_.Q("design:type",Object)],oI.prototype,"ytdHorizontalListBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],oI.prototype,"componentBehavior",void 0);_.r([_.y([_.nK.YtActionHandlerBehavior]),_.Q("design:type",Object)],oI.prototype,"actionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],oI.prototype,"data",void 0);_.r([_.Y({value:"$.items.children"}),_.Q("design:type",String)],oI.prototype,"itemsPath",void 0);_.r([_.Y({value:3}),_.Q("design:type",Number)],oI.prototype,"initialCount",void 0);
_.r([_.TX("#items"),_.Q("design:type",Object)],oI.prototype,"items",void 0);_.r([_.Y(),_.Q("design:type",Object)],oI.prototype,"selectedThumbnailIndex",void 0);_.r([_.Y(),_.Q("design:type",Object)],oI.prototype,"hoverThumbnail",void 0);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],oI.prototype,"showThumbnails",null);
_.r([_.SA("ytd-product-details-thumbnail-renderer-selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Number]),_.Q("design:returntype")],oI.prototype,"onThumbnailSelected",null);_.r([_.w("data","selectedThumbnailIndex","hoverThumbnail"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],oI.prototype,"thumbnailDetails",null);_.r([_.w("data","selectedThumbnailIndex"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],oI.prototype,"populatedData",null);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oI.prototype,"dataChanged",null);_.r([_.SA("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oI.prototype,"updateOffset",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],oI);
_.m(oI,"ytd-product-details-image-carousel-renderer",function(){if(cUi!==void 0)return cUi;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return cUi=L},{mode:_.Qr("kevlar_poly_si_batch_j079")?1:2});var Kwn;var RI=function(){return _.e.apply(this,arguments)||this};
_.f(RI,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],RI.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],RI.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],RI.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],RI.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],RI);
_.m(RI,"ytd-product-details-offer-renderer",function(){if(Kwn!==void 0)return Kwn;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Kwn=L},{mode:1});var fSM;var cR=function(){var L=_.e.apply(this,arguments)||this;L.isOffersHidden=!0;return L};
_.f(cR,_.e);cR.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var L,Z=_.n((L=this.data)==null?void 0:L.viewOffersButton,_.xZ);Z&&this.ytRendererBehavior.logExplicitClick(Z)};
cR.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.gd.Object.defineProperties(cR.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S;return(N=_.n((L=this.data)==null?void 0:(Z=L.offers)==null?void 0:Z[0],AfY))==null?void 0:(S=N.offerData)==null?void 0:S.vendorLogoUrl}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],cR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],cR.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],cR.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],cR.prototype,"isOffersHidden",void 0);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],cR.prototype,"firstOfferVendorLogoUrl",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],cR);
_.m(cR,"ytd-product-details-offers-container-renderer",function(){if(fSM!==void 0)return fSM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return fSM=L},{mode:1});var kEf;var yUi;var nU=function(){return _.e.apply(this,arguments)||this};
_.f(nU,_.e);nU.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
nU.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Ad(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
nU.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Ad(this,"ytd-product-details-variant-image-unselect")};
_.gd.Object.defineProperties(nU.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 L;return((L=this.data)==null?void 0:L.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return((L=this.data)==null?void 0:L.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((Z=this.data)==null?void 0:Z.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((N=this.data)==null?void 0:N.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var L;if(((L=this.data)==null?void 0:L.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var L,Z;return this.isUnavailable?(L=this.data)==null?void 0:L.variantOptionUnavailableAccessibilityLabel:(Z=this.data)==null?void 0:Z.variantOptionAccessibilityLabel}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],nU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],nU.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],nU.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],nU.prototype,"displayType",void 0);
_.r([_.w("displayType","data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],nU.prototype,"isImageButton",null);_.r([_.w("displayType","data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],nU.prototype,"isPillButton",null);_.r([_.w("data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],nU.prototype,"isActive",null);
_.r([_.w("data"),_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],nU.prototype,"isUnavailable",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],nU.prototype,"thumbnailDetails",null);_.r([_.w("isUnavailable","data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],nU.prototype,"accessibilityLabel",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],nU);
_.m(nU,"ytd-product-details-variant-option-renderer",function(){if(yUi!==void 0)return yUi;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return yUi=L},{mode:1});var wdM;var KU=function(){var L=_.e.apply(this,arguments)||this;L.variantsExpanded=!1;L.hideShowMoreLessVariantButton=!0;L.initialized=!1;L.computeVariantsDebouncer=null;L.computeVariants=function(Z){Z=Z===void 0?!1:Z;L.variantsExpanded||L.showOptions()||!Z||(L.variantsExpanded=!0);if(L.variantsExpanded){Z=_.O(L.items.children);for(var N=Z.next();!N.done;N=Z.next())N.value.hidden=!1}L.initialized=!0};
return L};
_.f(KU,_.e);_.t=KU.prototype;_.t.ready=function(){var L=this;setTimeout(function(){L.computeVariants(!0)})};
_.t.showOptions=function(){for(var L=_.O(this.items.children),Z=L.next();!Z.done;Z=L.next())Z.value.hidden=!0;var N=this.container.getBoundingClientRect().width,S=0,u=L=0;Z=!1;for(var T=_.O(this.items.children),W=T.next();!W.done;W=T.next()){W=W.value;W.hidden=!1;var V=W.getBoundingClientRect().width;if(S+V<N)S+=V;else if(++u<2)S=V;else break;L+=1;W.hasAttribute("is-active")&&(Z=!0)}for(N=L;N<this.items.children.length;N++)this.items.children[N].hidden=!0;this.hideShowMoreLessVariantButton=L===this.items.children.length;
return Z};
_.t.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Gb(this.computeVariantsDebouncer,_.N9.after(100),this.computeVariants)};
_.t.onShowMoreLessVariantsButtonClick=function(){var L;(L=this.data)!=null&&L.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.t.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.gd.Object.defineProperties(KU.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=(L=this.data)==null?void 0:(Z=L.variantOptionRenderers)==null?void 0:Z.find(function(T){return _.n(T,Q7V).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),S,u;
return(u=(S=_.n(N,Q7V))==null?void 0:S.name)!=null?u:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.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"}}}});
KU.prototype.debouncedComputeVariants=KU.prototype.debouncedComputeVariants;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],KU.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],KU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],KU.prototype,"componentBehavior",void 0);_.r([_.y(_.Eb),_.Q("design:type",Object)],KU.prototype,"ironResizableBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],KU.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],KU.prototype,"variantsExpanded",void 0);_.r([_.Y(),_.Q("design:type",Object)],KU.prototype,"hideShowMoreLessVariantButton",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],KU.prototype,"initialized",void 0);_.r([_.TX("#items"),_.Q("design:type",HTMLDivElement)],KU.prototype,"items",void 0);_.r([_.TX("#container"),_.Q("design:type",HTMLDivElement)],KU.prototype,"container",void 0);
_.r([_.TX("#more-variants-button"),_.Q("design:type",HTMLElement)],KU.prototype,"moreVariantsButton",void 0);_.r([_.w("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],KU.prototype,"selectedOptionName",null);_.r([_.iA("data","variantsExpanded"),_.SA("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],KU.prototype,"debouncedComputeVariants",null);
_.r([_.w("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],KU.prototype,"displayType",null);_.r([_.w("displayType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],KU.prototype,"variantItemsClassname",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],KU);
_.m(KU,"ytd-product-details-variant-renderer",function(){if(wdM!==void 0)return wdM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return wdM=L},{mode:1});var fU=function(){return _.e.apply(this,arguments)||this};
_.f(fU,_.e);
fU.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"}}}};
_.gd.Object.defineProperties(fU.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=(Z=_.n((L=this.data)==null?void 0:L.offersContainerRenderer,X6M))==null?void 0:Z.offers;return N!==void 0&&(N==null?void 0:N.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 L,Z,N;return((N=(L=this.data)==null?void 0:(Z=L.variants)==null?void 0:Z.map(function(S){var u,T;S=(T=(u=_.n(S,rf9))==null?void 0:u.variantOptionRenderers)==null?void 0:T.find(function(V){var M;return((M=_.n(V,Q7V))==null?void 0:M.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var W;return(W=_.n(S,Q7V))==null?void 0:W.name}).filter(function(S){return typeof S==="string"}))!=null?N:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var L,Z,N,S=(Z=_.n((L=this.data)==null?void 0:L.shoppingFlaggingRenderer,HGG))==null?void 0:(N=Z.reportButton)==null?void 0:N.buttonRenderer;if(S)return{text:S.text,command:S.command,icon:{iconType:"FLAG"},accessibilityData:S.accessibilityData,trackingParams:S.trackingParams,loggingDirectives:S.loggingDirectives}}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],fU.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],fU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],fU.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],fU.prototype,"data",void 0);_.r([_.TX("#image-carousel-renderer"),_.Q("design:type",Object)],fU.prototype,"imageCarouselRenderer",void 0);
_.r([_.TX("#hero-offer-renderer"),_.Q("design:type",Object)],fU.prototype,"productDetailsHeroOfferRenderer",void 0);_.r([_.TX("#variants"),_.Q("design:type",Object)],fU.prototype,"productDetailsVariantRenderer",void 0);_.r([_.TX("#offers"),_.Q("design:type",Object)],fU.prototype,"productDetailsOffersContainerRenderer",void 0);_.r([_.TX("#description-renderer"),_.Q("design:type",Object)],fU.prototype,"productDetailsDescriptionRenderer",void 0);
_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fU.prototype,"showPurchaseData",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fU.prototype,"showHeroOfferRenderer",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fU.prototype,"showBrandText",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fU.prototype,"showOffers",null);
_.r([_.w("showOffers","showPurchaseData"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fU.prototype,"showBuySeparator",null);_.r([_.w("showOffers","showPurchaseData"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fU.prototype,"showBuyCard",null);_.r([_.w("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],fU.prototype,"selectedVariantsText",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],fU.prototype,"shoppingReportingButtonData",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],fU);
_.m(fU,"ytd-product-details-renderer",function(){if(kEf!==void 0)return kEf;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return kEf=L},{mode:1});var UZ7;var Y37;var e17;var kK=function(){return _.e.apply(this,arguments)||this};
_.f(kK,_.e);kK.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.gd.Object.defineProperties(kK.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],kK.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],kK.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],kK.prototype,"formattedAmount",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],kK.prototype,"ariaLabel",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("data.style"),_.Q("design:type",String),_.Q("design:paramtypes",[])],kK.prototype,"vcBalanceWidgetStyle",null);_.r([_.ch({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],kK);
_.m(kK,"yt-vc-balance-renderer",function(){if(e17===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Y37===void 0&&(Y37=document.createElement("template"));var S=Y37;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);e17=L}L=e17;return L},{mode:2});_.l4("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var yv=function(){return _.e.apply(this,arguments)||this};
_.f(yv,_.e);_.gd.Object.defineProperties(yv.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:""}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],yv.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],yv.prototype,"data",void 0);_.r([_.Y({selectorArgs:["data.vcBalanceEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"vcBalanceEntity",Z)}}),
_.Q("design:type",Object)],yv.prototype,"vcBalanceEntity",void 0);_.r([_.w("vcBalanceEntity"),_.Q("design:type",String),_.Q("design:paramtypes",[])],yv.prototype,"formattedAmount",null);_.r([_.w("vcBalanceEntity"),_.Q("design:type",String),_.Q("design:paramtypes",[])],yv.prototype,"vcBalanceAriaLabel",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],yv);
_.m(yv,"ytd-vc-balance-renderer",function(){if(UZ7!==void 0)return UZ7;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return UZ7=L},{mode:1});var ISV;var wq=function(){var L=_.e.apply(this,arguments)||this;L.rotation=0;L.isReloading=!1;return L};
_.f(wq,_.e);wq.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
wq.prototype.reset=function(){this.hostElement.style.opacity=""};
wq.prototype.close=function(){var L=this;return _.b(function(Z){if(Z.nextAddress==1)return Z.yield(L.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);L.hostElement.style.opacity="0";_.w7(Z)})};
wq.prototype.rotationChanged=wq.prototype.rotationChanged;_.r([_.Y(),_.Q("design:type",Object)],wq.prototype,"rotation",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],wq.prototype,"isReloading",void 0);_.r([_.TX("#icon"),_.Q("design:type",HTMLElement)],wq.prototype,"icon",void 0);_.r([_.iA("rotation"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wq.prototype,"rotationChanged",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-refresh"})],wq);
_.m(wq,"ytd-refresh",function(){if(ISV!==void 0)return ISV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ISV=L},{mode:1});var dZM;var Up=function(){return _.e.apply(this,arguments)||this};
_.f(Up,_.e);Up.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"}}}};
Up.prototype.dataChanged=function(){if(this.data){var L=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var Z=_.r$(this.data.banner.thumbnails,this.hostElement.clientWidth);Z&&(Z.indexOf("//")===0&&(Z="https:"+Z),this.hasBannerArt=!0,_.Ld(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+Z+")"}))}this.hasBannerArt!==L&&_.QJ(this.hostElement).querySelector("#header").fire("iron-resize")}};
Up.prototype.updateSelectedFromBinding=function(L){this.selected=L.detail.value};
Up.prototype.dataChanged=Up.prototype.dataChanged;_.r([_.y(qnf),_.Q("design:type",Object)],Up.prototype,"ytdTabbedHeaderBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Up.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.AE),_.Q("design:type",Object)],Up.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],Up.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Up.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Up.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Number)],Up.prototype,"selected",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Up.prototype,"active",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Up.prototype,"hasBannerArt",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Up.prototype,"dataChanged",null);_.r([_.P({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Up);
_.m(Up,"ytd-interactive-tabbed-header-renderer",function(){if(dZM!==void 0)return dZM;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return dZM=L},{mode:1});var aSM;var YK=function(){return _.e.apply(this,arguments)||this};
_.f(YK,_.e);YK.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
YK.prototype.computeActionsAlignment=function(L){return(L==null?void 0:L.actionsAlignment)||""};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],YK.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.Q("design:type",String)],YK.prototype,"actionsAlignment",void 0);_.r([_.P({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],YK);
_.m(YK,"ytd-page-footer-renderer",function(){if(aSM!==void 0)return aSM;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return aSM=L},{mode:1});var h19;var sSn;var ee=function(){var L=_.e.apply(this,arguments)||this;L.isEditing=!1;L.useSlot=!1;L.isMultiline=!1;return L};
_.f(ee,_.e);_.t=ee.prototype;_.t.onKeydown=function(L){if(L.keyCode===13&&!this.isMultiline)this.onSave();else if(L.keyCode===27)this.onCancel()};
_.t.computeComponentStyle=function(L){return(L==null?0:L.style)?L.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.t.computeisMultiline=function(L){if(this.multilineOverride!==void 0)return this.multilineOverride;var Z,N;return!!(L==null?0:(Z=L.formField)==null?0:(N=Z.textInputFormFieldRenderer)==null?0:N.isMultiline)};
_.t.computeTextDisplayed=function(L,Z){if(L)return L;if(Z)return Z};
_.t.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.t.onSave=function(){if(this.textForm.validate()){this.textForm.save();var L=this.textForm.value;if(L)this.set("data.textDisplayed",_.s9(L));else{var Z;((Z=this.data)==null?0:Z.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Sk("inline-form-changed",this.data));this.isEditing=!1}};
_.t.onCancel=function(){var L=_.jM(this.data.textDisplayed);L===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(L);this.isEditing=!1};
ee.prototype.onKeydown=ee.prototype.onKeydown;_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],ee.prototype,"ytEventForwardingBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ee.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ee.prototype,"isEditing",void 0);_.r([_.Y(),_.Q("design:type",Object)],ee.prototype,"useSlot",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],ee.prototype,"multilineOverride",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],ee.prototype,"enableOverlayTheme",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.Q("design:type",String)],ee.prototype,"componentStyle",void 0);
_.r([_.Y({computed:"computeisMultiline(data)"}),_.Q("design:type",Object)],ee.prototype,"isMultiline",void 0);_.r([_.TX("#text-form"),_.Q("design:type",Object)],ee.prototype,"textForm",void 0);_.r([_.SA("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent]),_.Q("design:returntype")],ee.prototype,"onKeydown",null);_.r([_.P({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],ee);
_.m(ee,"ytd-inline-form-renderer",function(){if(sSn!==void 0)return sSn;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return sSn=L},{mode:1});var jS6;var II=function(){var L=_.e.apply(this,arguments)||this;L.previousSelectValue=void 0;L.selectedItemMessage=void 0;return L};
_.f(II,_.e);II.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
II.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var L,Z,N,S,u=(L=this.data)==null?void 0:(Z=L.dropdown)==null?void 0:(N=Z.dropdownRenderer)==null?void 0:(S=N.entries)==null?void 0:S.map(function(V){return V.privacyDropdownItemRenderer});
L=_.O(u!=null?u:[]);for(Z=L.next();!Z.done;Z=L.next())if((Z=Z.value)&&Z.int32Value===this.selectedValue){this.selectedItemMessage=Z.itemMessage;break}}else this.selectedItemMessage=void 0;var T;(T=this.onValueChanged)==null||T.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)}};
II.prototype.onValueChangedForSelectedValue=function(L){this.selectedValue=L.detail.value};
II.prototype.selectedValueChanged=II.prototype.selectedValueChanged;_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],II.prototype,"ytEventForwardingBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],II.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],II.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],II.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],II.prototype,"theme",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Number)],II.prototype,"selectedValue",void 0);_.r([_.Y(),_.Q("design:type",Function)],II.prototype,"onValueChanged",void 0);
_.r([_.Vr("selectedValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],II.prototype,"selectedValueChanged",null);_.r([_.P({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],II);
_.m(II,"ytd-dropdown-form-field-renderer",function(){if(jS6!==void 0)return jS6;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return jS6=L},{mode:_.Qr("kevlar_poly_si_batch_j025")?1:2});var ES8;var dq=function(){return _.e.apply(this,arguments)||this};
_.f(dq,_.e);_.gd.Object.defineProperties(dq.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var L=[],Z=_.O(this.data||[]),N=Z.next();!N.done;N=Z.next())(N=_.n(N.value,Bw7))&&L.push(N);return L}}});
_.r([_.Y(),_.Q("design:type",Array)],dq.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dq.prototype,"byline",null);_.r([_.P({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],dq);
_.m(dq,"ytd-playlist-byline-renderer",function(){if(ES8!==void 0)return ES8;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ES8=L},{mode:1});var Pg9;var aI=function(){var L=_.e.apply(this,arguments)||this;L.rtlBullet=_.c("web_playlist_stats_rtl_bullet_icon_killswitch");L.modern=_.c("web_modern_buttons");L.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return L};
_.f(aI,_.e);_.t=aI.prototype;_.t.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"}}}}};
_.t.attached=function(){};
_.t.computeIsCustomThumbnail=function(L){return L?!!L.playlistCustomThumbnailRenderer:!1};
_.t.onYtNavigate=function(L,Z){if(Z&&Z.actions&&Z.actions.indexOf("shuffle")>-1){L=_.GR().resolve(_.Nv);var N=Z.tempData||{};N.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);Z.tempData=N;L.isShuffleNextPlaylist=!0}};
_.t.onUpdatePlaylistAction=function(L){var Z;L=(Z=_.n(L,_.aXO))==null?void 0:Z.updatedRenderer;if(Z=_.n(L,Jfi))this.data=Z};
_.t.computeStyleType=function(L){return L?L.toLowerCase().replace(/_/g,"-"):""};
_.t.computeThumbnailWidth=function(L){return L==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.t.computeHideThumbnailAria=function(L){if(L==null?0:L.thumbnailOverlays)for(var Z=0;Z<L.thumbnailOverlays.length;Z++){var N=void 0;if((N=L.thumbnailOverlays[Z])==null?0:N.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
aI.prototype.onYtNavigate=aI.prototype.onYtNavigate;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],aI.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],aI.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],aI.prototype,"ytComponentBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],aI.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],aI.prototype,"rtlBullet",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.Q("design:type",String)],aI.prototype,"styleType",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.Q("design:type",Number)],aI.prototype,"thumbnailWidth",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],aI.prototype,"modern",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.Q("design:type",Boolean)],aI.prototype,"isCustomThumbnail",void 0);_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event,Object]),_.Q("design:returntype")],aI.prototype,"onYtNavigate",null);_.r([_.P({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],aI);
_.m(aI,"ytd-playlist-sidebar-primary-info-renderer",function(){if(Pg9!==void 0)return Pg9;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Pg9=L},{mode:1});var pdn;var h1=function(){return _.e.apply(this,arguments)||this};
_.f(h1,_.e);h1.prototype.computeOwnerVisibility=function(L){return!(!L.videoOwner&&!L.button)};
h1.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"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],h1.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],h1.prototype,"data",void 0);_.r([_.P({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],h1);
_.m(h1,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(pdn!==void 0)return pdn;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return pdn=L},{mode:1});var z1G;var sp=function(){var L=_.e.apply(this,arguments)||this;L.expanded=!1;L.isCompact=!1;return L};
_.f(sp,_.e);_.t=sp.prototype;_.t.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.t.dataChanged=function(){this.data&&_.tU(_.QJ(this.text),_.Cg0(_.XdL,_.jM(this.data.text||null)))};
_.t.computeAutoScrollEnabled=function(L,Z){return L&&!Z};
_.t.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.t.toggleOnTap=function(){this.expanded=!this.expanded};
sp.prototype.expandedChanged=sp.prototype.expandedChanged;sp.prototype.dataChanged=sp.prototype.dataChanged;_.r([_.y(_.YvG),_.Q("design:type",Object)],sp.prototype,"ytdAutoScrollBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],sp.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],sp.prototype,"expanded",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],sp.prototype,"isCompact",void 0);_.r([_.Y({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.Q("design:type",Boolean)],sp.prototype,"autoScrollEnabled",void 0);_.r([_.TX("#text"),_.Q("design:type",Object)],sp.prototype,"text",void 0);_.r([_.TX("#expander-icon"),_.Q("design:type",Object)],sp.prototype,"expanderIcon",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sp.prototype,"dataChanged",null);_.r([_.iA("expanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sp.prototype,"expandedChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],sp);
_.m(sp,"ytd-channel-legal-info-renderer",function(){if(z1G!==void 0)return z1G;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return z1G=L},{mode:1});var mZi;var JUM=_.iB("DOWNLOAD",{},"Download"),CgG=_.iB("DOWNLOADING",{},"Downloading"),rU9=_.iB("DOWNLOADED",{},"Downloaded"),je=function(){var L=_.e.apply(this,arguments)||this;L.downloadProgress=0;L.isDownloadComplete=!1;L.transferState="TRANSFER_STATE_UNKNOWN";return L};
_.f(je,_.e);_.t=je.prototype;_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.dataChanged=function(){var L;(L=this.data)!=null&&L.tooltip||(L=_.fk(_.Pv().getState(),this.playlistId),this.updateButtonState(L))};
_.t.computePlaylistId=function(L){return L};
_.t.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.t.updateButtonState=function(L){if(this.data&&(this.data.tooltip!==CgG||!_.Wv(L))){this.isDownloadComplete=!1;switch(L){case "TRANSFER_STATE_UNKNOWN":L=JUM;var Z="OFFLINE_DOWNLOAD";var N="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":L=rU9;Z="OFFLINE_PIN";N="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":L=CgG;Z="OFFLINE_DOWNLOADING_ZERO";N="ACTION_REMOVE_WITH_PROMPT";
break;default:L=JUM,Z="OFFLINE_DOWNLOAD",N="ACTION_ADD"}var S=Object.assign({},this.data);S.tooltip=L;S.accessibilityData={accessibilityData:{label:L}};S.icon={iconType:Z};S.size="SIZE_DEFAULT";_.n(S.command,_.tu)&&(_.n(S.command,_.tu).action=N);this.set("data",S)}};
_.t.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var L="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?L="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?L="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?L="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?L="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?L="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(L="OFFLINE_PIN",this.isDownloadComplete=!0);var Z;L!==((Z=this.data.icon)==null?void 0:Z.iconType)&&(Z=Object.assign({},this.data),Z.tooltip=CgG,Z.accessibilityData={accessibilityData:{label:CgG}},Z.icon={iconType:L},_.n(Z.command,_.tu)&&(_.n(Z.command,_.tu).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",Z))}};
je.prototype.updateProgress=je.prototype.updateProgress;je.prototype.onTransferStateChanged=je.prototype.onTransferStateChanged;je.prototype.dataChanged=je.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],je.prototype,"ytdReduxBehavior",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],je.prototype,"forceIconButton",void 0);
_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],je.prototype,"forceIconOnly",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],je.prototype,"overrides",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],je.prototype,"buttonTooltipPosition",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],je.prototype,"styleActionButton",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],je.prototype,"disableTextTransform",void 0);
_.r([_.Y({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.Q("design:type",String)],je.prototype,"playlistId",void 0);_.r([_.Y(),_.Q("design:type",Object)],je.prototype,"data",void 0);_.r([_.Y({selector:_.mNP,selectorArgs:["playlistId"]}),_.Q("design:type",Object)],je.prototype,"downloadProgress",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],je.prototype,"isDownloadComplete",void 0);
_.r([_.Y({selector:_.fk,selectorArgs:["playlistId"]}),_.Q("design:type",String)],je.prototype,"transferState",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],je.prototype,"showTooltips",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],je.prototype,"sendCommandWhenDisabled",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],je.prototype,"disabled",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],je.prototype,"dataChanged",null);_.r([_.Vr("transferState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],je.prototype,"onTransferStateChanged",null);_.r([_.Vr("downloadProgress"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],je.prototype,"updateProgress",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],je);
_.m(je,"ytd-download-playlist-button-renderer",function(){if(mZi!==void 0)return mZi;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return mZi=L},{mode:1});var QS9;_.CY(_.Wqt,"thumbnail-overlay-button-view-model",{props:{data:_.LK,lockupExperiments:_.LK}});var Ep=function(){var L=_.e.apply(this,arguments)||this;L.isSquare=!1;L.isVertical=!1;return L};
_.f(Ep,_.e);Ep.prototype.computeIsSquare=function(L){return L!=null&&L.thumbnail?KY9(L.thumbnail)==="SQUARE":!1};
Ep.prototype.computeIsVertical=function(L){return L!=null&&L.thumbnail?KY9(L.thumbnail)==="VERTICAL":!1};
Ep.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Ep.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.Q("design:type",Object)],Ep.prototype,"isSquare",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.Q("design:type",Object)],Ep.prototype,"isVertical",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Ep.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],Ep);
_.m(Ep,"ytd-hero-playlist-thumbnail-renderer",function(){if(QS9!==void 0)return QS9;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return QS9=L},{mode:1});var PR=function(){var L=_.e.apply(this,arguments)||this;L.isDarkTheme=!1;L.isUltraWide=!1;L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return L};
_.f(PR,_.e);_.t=PR.prototype;_.t.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.GR();var L;(L=_.GR().resolve(_.gv(_.k8)))!=null&&(L.headerElement=this.hostElement)};
_.t.detached=function(){var L;(L=_.GR().resolve(_.gv(_.k8)))!=null&&(L.headerElement=void 0)};
_.t.onUpdateHeader=function(L){(L=L.detail)&&this.set("data",L)};
_.t.computeTextDisplayed=function(L){if(L)return L.textDisplayed?L.textDisplayed:L.placeholder};
_.t.gradientColorToLinearGradientStop=function(L){var Z=this.isDarkTheme?L.darkThemeColor:L.lightThemeColor;return Z?_.Rs(Z)+" "+((L==null?void 0:L.startLocation)||0)*100+"%":"transparent"};
_.t.onWindowResize=function(){var L;((L=this.data)==null?0:L.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.t.onIronResize=function(L){this.isUltraWide=!L.detail.value};
_.t.onDarkModeToggledAction=function(L){this.isDarkTheme=L};
_.t.onUpdatePlaylistName=function(L){var Z=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},L.detail.value));_.bN(this,function(){var N;(N=Z.editableTitle)==null||N.resize()})};
_.t.onUpdatePlaylistDescription=function(L){var Z=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},L.detail.value));_.bN(this,function(){var N;(N=Z.editableDescriptionInlineExpander)==null||N.resize()})};
_.t.getCinematicData=function(L){return _.n(L==null?void 0:L.cinematicContainer,_.NE)};
_.gd.Object.defineProperties(PR.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 L,Z=(L=this.getCinematicData(this.data))==null?void 0:L.config;return(L=this.isDarkTheme?Z==null?void 0:Z.darkThemeBackgroundColor:Z==null?void 0:Z.lightThemeBackgroundColor)?"background-color:"+_.vq(L)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var L;return _.n((L=this.data)==null?void 0:L.descriptionForm,mqV)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var L=this,Z,N,S;return"background:linear-gradient(to bottom, "+(((S=(Z=this.getCinematicData(this.data))==null?void 0:(N=Z.gradientColorConfig)==null?void 0:N.map(function(u){return L.gradientColorToLinearGradientStop(u)}))==null?void 0:S.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var L;return _.jM((L=this.data)==null?void 0:L.descriptionTapText)}}});
PR.prototype.onUpdateHeader=PR.prototype.onUpdateHeader;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],PR.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],PR.prototype,"actionHandlerBehavior",void 0);_.r([_.TX("#description-inline-expander"),_.Q("design:type",Object)],PR.prototype,"descriptionInlineExpander",void 0);
_.r([_.TX("#editable-description-inline-expander"),_.Q("design:type",Object)],PR.prototype,"editableDescriptionInlineExpander",void 0);_.r([_.Y(),_.Q("design:type",Object)],PR.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],PR.prototype,"isUltraWide",void 0);_.r([_.TX("#editable-title-display"),_.Q("design:type",Object)],PR.prototype,"editableTitle",void 0);_.r([_.w("isUltraWide"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],PR.prototype,"maxDescriptionLines",null);
_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],PR.prototype,"noCinematicData",null);_.r([_.SA("yt-new-playlist-header"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],PR.prototype,"onUpdateHeader",null);_.r([_.w("data","isDarkTheme"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],PR.prototype,"backgroundStyle",null);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],PR.prototype,"descriptionFormData",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],PR.prototype,"getDropdownTheme",null);_.r([_.w("data","isDarkTheme"),_.Q("design:type",String),_.Q("design:paramtypes",[])],PR.prototype,"gradientStyle",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],PR.prototype,"descriptionTapText",null);
_.r([_.P({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],PR);
_.m(PR,"ytd-playlist-header-renderer",function(){if(h19!==void 0)return h19;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return h19=L},{mode:_.Qr("kevlar_poly_si_batch_j078")?1:2});var XdV;var AUV;var pU=function(){return _.e.apply(this,arguments)||this};
_.f(pU,_.e);pU.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],pU.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],pU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],pU.prototype,"data",void 0);_.r([_.P({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],pU);
_.m(pU,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(AUV!==void 0)return AUV;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return AUV=L},{mode:1});var z$=function(){return _.e.apply(this,arguments)||this};
_.f(z$,_.e);
z$.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}}}}};
z$.prototype.computeUsePremiumShowStyle=function(L){if(!L||!L.items)return!1;for(var Z=0;Z<L.items.length;Z++)if(_.n(L.items[Z],Jfi)){var N=void 0;return((N=_.n(L.items[Z],Jfi))==null?void 0:N.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],z$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],z$.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.Q("design:type",Boolean)],z$.prototype,"usePremiumShowStyle",void 0);
_.r([_.P({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],z$);
_.m(z$,"ytd-playlist-sidebar-renderer",function(){if(XdV!==void 0)return XdV;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return XdV=L},{mode:1});var Hst;var B7i;var xZ8=function(L,Z,N,S,u,T,W,V){this.minWidth=L;this.minHeight=Z;this.recommendedWidth=N;this.recommendedHeight=S;this.JSC$22406_maxFileSize=u;this.title=T;this.bannerGalleryTitle=W;this.channelId=V;this.picker_=null;L=_.bNf("yt-banner");Z=L.addView;N=(new IMV("youtubebanner")).addUploadMetadata("silo_id","19");N.opts.ytMaxFileSize=this.JSC$22406_maxFileSize;S=this.recommendedHeight;N.opts.ytRecWidth=this.recommendedWidth;N.opts.ytRecHeight=S;Z.call(L,N);L.addView(new _.Ut);Z=L.addView;N=new _.Ut;
N.opts.type="ytbanner";Z.call(L,N.JSC$10073_setLabel(this.bannerGalleryTitle));Z=L.setTitle(this.title).setSize(1E3);Z.urlParamMap_.set("thumbs","orig");N=this.minWidth;S=this.minHeight;if(isNaN(N)||isNaN(S))throw Error("gb`"+N+"`"+S);Z.urlParamMap_.set("minSize",N+"x"+S);Z.urlParamMap_.set("cropMode","ytcb");this.builder_=L};
xZ8.prototype.open=function(){var L=this;return new _.kE(function(Z,N){_.YVM(L.builder_,function(S){S.action=="picked"?Z(S):S.action=="cancel"&&N(Error("Mo"))});
L.picker_&&L.picker_.dispose();L.picker_=L.builder_.build();L.picker_.setVisible(!0)})};
xZ8.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var q36=function(L){this.channelId=L};
q36.prototype.upload=function(L){var Z="";L.viewToken&&(Z=L.viewToken[2].type);var N=L.docs[0];L=N.crop;Z={channel_id:this.channelId,fife_url:N.thumbnails[0].url,photo_id:N.id,is_gallery_image:Z=="ytbanner"};L&&(Z.crop_top=L.top,Z.crop_right=L.right,Z.crop_bottom=L.bottom,Z.crop_left=L.left);return _.MPG("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:Z})};var m$=function(){var L=_.e.apply(this,arguments)||this;L.ariaLabel=null;return L};
_.f(m$,_.e);_.t=m$.prototype;_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.t.detached=function(){this.picker&&this.picker.dispose()};
_.t.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.t.computeAriaLabel=function(L){return L};
_.t.onTap=function(){var L=this,Z;if((Z=this.data)==null||!Z.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new xZ8(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 N;(N=this.picker)==null||N.open().then(function(S){L.handleBannerPicked(S)},function(){})}};
_.t.handleBannerPicked=function(L){var Z=this;this.uploader||(this.uploader=new q36(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(L).then(function(N){Z.handleBannerUploadSucceeded(N)},function(N){Z.handleBannerUploadFailed(N)})};
_.t.handleBannerUploadSucceeded=function(L){L&&L.errors?this.handleBannerUploadFailed(L):(_.QT(this.hostElement,"yt-banner-updated",L),this.message=null)};
_.t.handleBannerUploadFailed=function(L){this.message=L&&L.errors&&L.errors.length?L.errors[0]:null};
m$.prototype.dataChanged=m$.prototype.dataChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],m$.prototype,"componentBehavior",void 0);_.r([_.y(_.pO),_.Q("design:type",Object)],m$.prototype,"ironButtonState",void 0);_.r([_.Y(),_.Q("design:type",Object)],m$.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.Q("design:type",Object)],m$.prototype,"ariaLabel",void 0);
_.r([_.Y(),_.Q("design:type",Object)],m$.prototype,"message",void 0);_.r([_.Y(),_.Q("design:type",Object)],m$.prototype,"picker",void 0);_.r([_.Y(),_.Q("design:type",Object)],m$.prototype,"uploader",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],m$.prototype,"dataChanged",null);_.r([_.P({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],m$);
_.m(m$,"ytd-channel-banner-editor-renderer",function(){if(B7i!==void 0)return B7i;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return B7i=L},{mode:1});var Ltn;var Zx8=_.sc(["#"]),J1=function(){return _.e.apply(this,arguments)||this};
_.f(J1,_.e);J1.prototype.computeHrefWithDefault=function(L){return this.ytComponentBehavior.computeHref_(L,!0)||_.Osx(Zx8)};
J1.prototype.dataChanged=function(){var L=this.data;L&&L.targetId&&_.RL0(_.yx(),L.targetId,this.moreIcon)};
J1.prototype.dataChanged=J1.prototype.dataChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],J1.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],J1.prototype,"data",void 0);_.r([_.TX("#more-icon"),_.Q("design:type",Object)],J1.prototype,"moreIcon",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],J1.prototype,"dataChanged",null);
_.r([_.P({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],J1);
_.m(J1,"ytd-channel-tagline-renderer",function(){if(Ltn!==void 0)return Ltn;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Ltn=L},{mode:1});var NFn;var CU=function(){return _.e.apply(this,arguments)||this};
_.f(CU,_.e);_.t=CU.prototype;_.t.ready=function(){var L=this;_.QJ(this.hostElement).querySelector("#form").addEventListener("submit",function(Z){L.onSubmit(Z)})};
_.t.onDataChanged=function(){var L;((L=this.data)==null?0:L.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.t.onIconButtonKeydown=function(L){L.keyCode===13&&this.iconButton.click()};
_.t.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.t.openOnClickHandler=function(){this.input.focus()};
_.t.onSubmit=function(L){L.preventDefault();return!1};
_.t.submitOnEnterKeyUp=function(L){var Z;if(L.keyCode===13&&((Z=this.data)==null?0:Z.expandedText)){L=this.data.endpoint;Z=_.Py.unsafeClone(L);var N;((N=_.n(Z==null?void 0:Z.commandMetadata,_.Nj))==null?0:N.url)?(_.n(Z.commandMetadata,_.Nj).url=_.HK(_.n(Z.commandMetadata,_.Nj).url,"query",this.data.expandedText),_.n(Z,_.iv)&&(_.n(Z,_.iv).query=this.data.expandedText),_.QT(this.hostElement,"yt-navigate",{endpoint:Z,tempData:{disableCache:!0}})):(N=new _.sr("Error: Trying to navigate to an endpoint without url",
L),_.CA(N))}};
_.t.updateDataExpandedTextFromBinding=function(L){this.set("data.expandedText",L.detail.value)};
_.gd.Object.defineProperties(CU.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.c("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
CU.prototype.onDataChanged=CU.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],CU.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.wqq),_.Q("design:type",Object)],CU.prototype,"ytdExpandableInputBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],CU.prototype,"data",void 0);_.r([_.TX("#input"),_.Q("design:type",Object)],CU.prototype,"input",void 0);_.r([_.TX("#icon-button"),_.Q("design:type",HTMLElement)],CU.prototype,"iconButton",void 0);
_.r([_.Y(),_.Q("design:type",String),_.Q("design:paramtypes",[])],CU.prototype,"searchIcon",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],CU.prototype,"onDataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],CU);
var fMM=_.rD()(CU,"ytd-expandable-tab-renderer",function(){if(NFn===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);NFn=L}L=NFn;return L},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var SN9;var rq=function(){var L=_.e.apply(this,arguments)||this;L.avatarSize=80;L.ariaLabel=_.iB("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return L};
_.f(rq,_.e);rq.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
rq.prototype.computeHref=function(L){var Z;return((Z=_.n(L,_.Lo))==null?0:Z.url)?this.componentBehavior.computeHref_(L):null};
rq.prototype.onTap=function(){var L,Z;(L=this.data)==null||!L.editAvatarServiceEndpoint||((Z=_.n(this.data.editAvatarServiceEndpoint,_.Lo))==null?0:Z.url)||_.GR().resolve(_.$s).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.r([_.y(_.pO),_.Q("design:type",Object)],rq.prototype,"ironButtonState",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],rq.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],rq.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],rq.prototype,"avatarSize",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],rq.prototype,"ariaLabel",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],rq);
_.m(rq,"ytd-channel-avatar-editor",function(){if(SN9!==void 0)return SN9;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return SN9=L},{mode:1});var ixw=_.p(function(L){var Z=L.data;var N=L.noPadding;var S=L.enableBanner;var u=L.cinematicContainerTopbarOffset;var T=L.allowCinematicContainerOverflow;var W=L.displayAsSidebar;L=L.className;_.ph(function(){Z().tagManagerId&&(_.dH(Z().tagManagerId,_.X7("GL")),eMw(Z().tagManagerId))},"vUc8md");
var V=_.OS(yfG,function(){return Z().pageHeaderEntityKey});
return _.g("yt-page-header-renderer",{class:_.qg("pageHeaderRendererHost",L)},_.g(_.bj,{data:function(){var M;return((M=V())==null?0:M.header)?V().header:(W==null?0:W())&&Z().sidebarContent?Z().sidebarContent:Z().content}},{pageHeaderViewModel:function(M){return _.g(_.CJs,{data:M.data,
noPadding:N,enableBanner:S,cinematicContainerTopbarOffset:u,allowCinematicContainerOverflow:T,displayAsSidebar:function(){return(W==null?void 0:W())&&Z().enableSidebarView}})}}))},"Qm");
ixw.idomCompat=!0;_.CY(ixw,"yt-page-header-renderer",{props:{data:_.LK,noPadding:_.LK,enableBanner:_.LK,cinematicContainerTopbarOffset:_.LK,allowCinematicContainerOverflow:_.LK,displayAsSidebar:_.LK,className:_.LK}});_.CY(_.qt,"yt-image-banner-view-model",{props:{data:_.LK,isPositionRelative:_.LK}});_.CY(_.Vf0,"yt-tab-group-shape",{props:{shape:_.LK}});var ur8=_.Y9.persistentPanelVisibleSelector,Qv=function(){var L=_.e.apply(this,arguments)||this;L.expandableCustomTabRenderable=function(Z){return kin(Z,function(){return void L.onSearchNavigate()})};
L.isRichGrid=!1;L.isConstrainedList=!1;L.richGridMiniMode=!1;L.richGridStyle="RICH_GRID_STYLE_UNKNOWN";L.isRichGridShorts=!1;L.responsiveSizing="COMPACT";L.disableGridStateAware=!1;L.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return L};
_.f(Qv,_.e);_.t=Qv.prototype;_.t.computeHeaderDisabled=function(L,Z){return Z||!L||this.tabsHidden};
_.t.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.t.computeIsRichGridShorts=function(L){return L==="RICH_GRID_STYLE_SHORTS_GRID"||L==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.t.computeImageBannerViewModel=function(){var L,Z;return _.n((Z=_.n((L=this.data)==null?void 0:L.content,_.gCs))==null?void 0:Z.banner,_.TiL)};
_.t.computeHasCinematicContainer=function(){var L,Z;return!((Z=_.n((L=this.data)==null?void 0:L.content,_.gCs))==null||!Z.background)};
_.t.handleHeaderResize=function(){var L=_.QJ(this.hostElement).querySelector("#header");L&&_.QT(L,"iron-resize")};
_.t.handleInsertTabCommand=function(L){var Z=_.n(L,xqf);Z&&(Z.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(N){return N.tabRenderer&&N.tabRenderer.tabIdentifier===Z.tabIdentifier})||this.splice("tabs",Z.tabIndex||-1,0,Z.tab))};
_.t.handleRefreshChannelTabAction=function(L){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===L&&_.QT(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.t.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.t.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Ld(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.t.observerRichGridSlimItemsPerRow=function(){_.Ld(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.t.updateCssVars=function(){this.richGridItemsPerRow&&_.Ld(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.lQ("rich_grid_max_item_width",500))+16)-16+"px"})};
_.t.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Ld(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.t.onDataChanged=function(){this.handleHeaderResize()};
_.t.onWindowResize=function(){this.handleHeaderResize()};
_.t.onFocusedChanged=function(L){(L=_.jD(L))&&L.is==="tp-yt-paper-tab"&&L.hasRipple()&&(L.getRipple().holdDown=!L.pointerDown&&L.focused)};
_.t.updateSelectedFromBinding=function(L){this.ytdTabbedHeaderBehavior.selected=L.detail.value};
_.t.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.gd.Object.defineProperties(Qv.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Uqf(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.imageBannerViewModel)==null?void 0:L.style)==="IMAGE_BANNER_STYLE_INSET"}}});
Qv.prototype.onDataChanged=Qv.prototype.onDataChanged;Qv.prototype.updateCssVarsForResponsiveGrid=Qv.prototype.updateCssVarsForResponsiveGrid;Qv.prototype.updateCssVars=Qv.prototype.updateCssVars;Qv.prototype.observerRichGridSlimItemsPerRow=Qv.prototype.observerRichGridSlimItemsPerRow;Qv.prototype.observerRichGridItemsPerRow=Qv.prototype.observerRichGridItemsPerRow;Qv.prototype.persistentPanelVisibleChanged=Qv.prototype.persistentPanelVisibleChanged;
_.r([_.y(_.AE),_.Q("design:type",Object)],Qv.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.y(qnf),_.Q("design:type",Object)],Qv.prototype,"ytdTabbedHeaderBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Qv.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Qv.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],Qv.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Qv.prototype,"ytdReduxBehavior",void 0);_.r([_.TX("#tabs"),_.Q("design:type",Object)],Qv.prototype,"tabsElement",void 0);_.r([_.Y(),_.Q("design:type",Array)],Qv.prototype,"tabs",void 0);_.r([_.Y(),_.Q("design:type",Object)],Qv.prototype,"expandableCustomTabRenderable",void 0);
_.r([_.w("tabs.*"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Qv.prototype,"tabGroupShape",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Qv.prototype,"isRichGrid",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Qv.prototype,"isConstrainedList",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.vv}),_.Q("design:type",Object)],Qv.prototype,"richGridMiniMode",void 0);_.r([_.Y({selector:function(L){return L.ui.richGridStyle}}),
_.Q("design:type",Object)],Qv.prototype,"richGridStyle",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.Q("design:type",Object)],Qv.prototype,"isRichGridShorts",void 0);_.r([_.Y({selector:_.oi}),_.Q("design:type",Number)],Qv.prototype,"richGridItemsPerRow",void 0);_.r([_.Y({selector:function(L){return L.ui.richGridContainerWidth}}),
_.Q("design:type",Number)],Qv.prototype,"richGridContainerWidth",void 0);_.r([_.Y({selector:_.wSf}),_.Q("design:type",Number)],Qv.prototype,"richGridSlimItemsPerRow",void 0);_.r([_.Y(),_.Q("design:type",Object)],Qv.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Qv.prototype,"responsiveSizing",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Qv.prototype,"disableGridStateAware",void 0);
_.r([_.Y({computed:"computeImageBannerViewModel(data)"}),_.Q("design:type",Object)],Qv.prototype,"imageBannerViewModel",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.Q("design:type",Boolean)],Qv.prototype,"hasCinematicContainer",void 0);_.r([_.Y({selector:_.G7Y,reflectToAttribute:!0}),_.Q("design:type",Boolean)],Qv.prototype,"guideIsVisibleButNotPersistent",void 0);
_.r([_.Y({selector:ur8}),_.Q("design:type",Boolean)],Qv.prototype,"persistentPanelVisible",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("imageBannerViewModel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Qv.prototype,"hasBanner",null);_.r([_.Y({reflectToAttribute:!0}),_.w("imageBannerViewModel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Qv.prototype,"hasInsetBanner",null);
_.r([_.Y({computed:"computeTabsHidden(tabs)",value:!0}),_.Q("design:type",Boolean)],Qv.prototype,"tabsHidden",void 0);_.r([_.iA("persistentPanelVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qv.prototype,"persistentPanelVisibleChanged",null);_.r([_.iA("richGridItemsPerRow","isRichGrid"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qv.prototype,"observerRichGridItemsPerRow",null);
_.r([_.iA("richGridSlimItemsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qv.prototype,"observerRichGridSlimItemsPerRow",null);_.r([_.iA("richGridItemsPerRow","richGridMiniMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qv.prototype,"updateCssVars",null);
_.r([_.iA("richGridContainerWidth"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qv.prototype,"updateCssVarsForResponsiveGrid",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qv.prototype,"onDataChanged",null);_.r([_.P({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],Qv);
_.m(Qv,"ytd-tabbed-page-header",function(){if(Hst!==void 0)return Hst;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Hst=L},{mode:1});var TFw;var Xz=function(){return _.e.apply(this,arguments)||this};
_.f(Xz,_.e);Xz.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Ld(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.gd.Object.defineProperties(Xz.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var L,Z;return this.componentBehavior.computeIcon_(((Z=_.n((L=this.data)==null?void 0:L.badge,_.DRl))==null?void 0:Z.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var L,Z;return(Z=_.n((L=this.data)==null?void 0:L.badge,_.DRl))==null?void 0:Z.label}}});
Xz.prototype.observerRichGridItemsPerRow=Xz.prototype.observerRichGridItemsPerRow;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Xz.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Xz.prototype,"componentBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Xz.prototype,"ytdReduxBehavior",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.vv}),_.Q("design:type",Boolean)],Xz.prototype,"richGridMiniMode",void 0);
_.r([_.Y({selector:_.oi}),_.Q("design:type",Number)],Xz.prototype,"richGridItemsPerRow",void 0);_.r([_.Y(),_.Q("design:type",Object)],Xz.prototype,"data",void 0);_.r([_.iA("richGridItemsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xz.prototype,"observerRichGridItemsPerRow",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Xz.prototype,"badgeIconName",null);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Xz.prototype,"badgeLabel",null);_.r([_.P({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Xz);
_.m(Xz,"ytd-member-hub-profile-renderer",function(){if(TFw!==void 0)return TFw;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return TFw=L},{mode:1});var tN8;var A1=function(){return _.e.apply(this,arguments)||this};
_.f(A1,_.e);A1.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],A1.prototype,"data",void 0);_.r([_.P({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],A1);
_.m(A1,"ytd-settings-sidebar-renderer",function(){if(tN8!==void 0)return tN8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return tN8=L},{mode:1});var Oxi;var HR=function(){var L=_.e.apply(this,arguments)||this;L.expandableCustomTabRenderable=function(Z){return kin(Z,function(){return void L.onSearchNavigate()})};
return L};
_.f(HR,_.e);HR.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
HR.prototype.onSearchNavigate=function(){this.selected=void 0};
HR.prototype.onTabsChange=function(){var L,Z=(L=this.tabs)==null?void 0:L.findIndex(function(N){var S;return N==null?void 0:(S=N.tabRenderer)==null?void 0:S.selected});
Z!==void 0&&(this.selected=Z)};
HR.prototype.onTabsActive=function(L){if(this.tabs!==void 0){var Z,N;(L=(Z=this.tabs[L.detail.selected])==null?void 0:(N=Z.tabRenderer)==null?void 0:N.endpoint)&&_.QT(this.hostElement,"yt-navigate",{endpoint:L})}};
_.gd.Object.defineProperties(HR.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Uqf(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
HR.prototype.onTabsChange=HR.prototype.onTabsChange;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],HR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.AE),_.Q("design:type",Object)],HR.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],HR.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],HR.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Array)],HR.prototype,"tabs",void 0);_.r([_.Y(),_.Q("design:type",Number)],HR.prototype,"selected",void 0);_.r([_.w("tabs.*"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],HR.prototype,"tabGroupShape",null);_.r([_.Y(),_.Q("design:type",Object)],HR.prototype,"expandableCustomTabRenderable",void 0);
_.r([_.w("tabs"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],HR.prototype,"tabsEnabled",null);_.r([_.Vr("tabs"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],HR.prototype,"onTabsChange",null);_.r([_.P({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],HR);
_.m(HR,"ytd-topic-channel-details-renderer",function(){if(Oxi!==void 0)return Oxi;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Oxi=L},{mode:1});var Wtw;var BR=function(){var L=_.e.apply(this,arguments)||this;L.disableGridStateAware=!1;return L};
_.f(BR,_.e);BR.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]]"}}}}}};
BR.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
BR.prototype.updateCssVars=function(){_.Ld(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.lQ("rich_grid_max_item_width",500))+16)-16+"px"})};
BR.prototype.updateCssVars=BR.prototype.updateCssVars;BR.prototype.activeChanged=BR.prototype.activeChanged;_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],BR.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],BR.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],BR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],BR.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Array)],BR.prototype,"tabs",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],BR.prototype,"active",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],BR.prototype,"disableGridStateAware",void 0);
_.r([_.Y({selector:_.oi}),_.Q("design:type",Number)],BR.prototype,"richGridItemsPerRow",void 0);_.r([_.Y({selector:_.vv}),_.Q("design:type",Boolean)],BR.prototype,"richGridMiniMode",void 0);_.r([_.TX("ytd-carousel-item-renderer"),_.Q("design:type",Object)],BR.prototype,"carousel",void 0);_.r([_.iA("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BR.prototype,"activeChanged",null);
_.r([_.iA("richGridItemsPerRow","richGridMiniMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BR.prototype,"updateCssVars",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],BR);
_.m(BR,"ytd-carousel-header-renderer",function(){if(Wtw!==void 0)return Wtw;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Wtw=L},{mode:1});var VN6;var bxY=_.sc(["https://www.google-analytics.com/analytics.js"]),xK=function(){var L=_.e.apply(this,arguments)||this;L.scriptAnalyticsAdded=!1;return L};
_.f(xK,_.e);xK.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var L,Z=(L=this.data)==null?void 0:L.tagManagerId;Z&&(_.dH(Z,_.X7("GL")),eMw(Z))};
xK.prototype.sendGoogleAnalyticsPageview=function(L){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var N=_.CG.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(N)};
var Z=window.ga;Z("set","page",window.location.pathname);Z.l=+new Date;Z("set","forceSSL",!0);Z("create",L,"'auto'");Z("send","pageview")};
xK.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var L=_.wZ("SCRIPT");L.name="ga-analytics";var Z=_.vy(bxY);_.TE(L,Z);L.async=!0;_.QJ(this.hostElement).appendChild(L)};
xK.prototype.dataChanged=xK.prototype.dataChanged;_.r([_.Y(),_.Q("design:type",Object)],xK.prototype,"data",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xK.prototype,"dataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],xK);
_.m(xK,"ytd-channel-metadata-renderer",function(){if(VN6!==void 0)return VN6;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return VN6=L},{mode:1});var MNq;var gh6;var qE=function(){var L=_.e.apply(this,arguments)||this;L.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"]);L.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"]);L.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return L};
_.f(qE,_.e);_.t=qE.prototype;_.t.attached=function(){this.requestElementsPerRow()};
_.t.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_]]"}}}}}};
_.t.onUpdateElementsPerRowAction=function(L){L&&this.elementsPerRow!==L&&(this.elementsPerRow=L)};
_.t.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.t.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.t.computeAlertStyle_=function(L){return L};
_.t.observerElementsPerRow=function(){this.elementsPerRow&&_.Ld(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.t.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.t.requestElementsPerRow=function(){_.QT(this.hostElement,"yt-request-elements-per-row")};
qE.prototype.onIsVisibleChanged_=qE.prototype.onIsVisibleChanged_;qE.prototype.observerElementsPerRow=qE.prototype.observerElementsPerRow;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],qE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],qE.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],qE.prototype,"actionHandlerBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],qE.prototype,"data",void 0);_.r([_.Y({value:6,reflectToAttribute:!0}),_.Q("design:type",Number)],qE.prototype,"elementsPerRow",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],qE.prototype,"wrapButtons",void 0);_.r([_.Y({value:_.X7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Q("design:type",Boolean)],qE.prototype,"isMusic",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.Q("design:type",String)],qE.prototype,"alertStyle",void 0);_.r([_.Y({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.Q("design:type",Function)],qE.prototype,"dismissBoundButtonTap_",void 0);_.r([_.Y({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.Q("design:type",Function)],qE.prototype,"acceptBoundButtonTap_",void 0);_.r([_.iA("elementsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qE.prototype,"observerElementsPerRow",null);_.r([_.iA("data.isVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qE.prototype,"onIsVisibleChanged_",null);_.r([_.ch({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],qE);
_.m(qE,"yt-alert-with-actions-renderer",function(){if(gh6===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;MNq===void 0&&(MNq=document.createElement("template"));var S=MNq;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);gh6=L}L=gh6;return L},{mode:2});_.CY(_.p(function(L){function Z(v){var R={};return _.g(_.qv,{text:v,className:_.qg("ytPersonalGreetingViewModelHeadline",(R.ytPersonalGreetingViewModelHeadlineSmall=function(){return V()===48},R))})}
function N(v,R){return _.g("span",{el:v,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},Z(R))}
var S=_.P9(_.cT(function(){var v;return(v=L.data())==null?void 0:v.rendererContext},void 0,void 0,void 0,!0)),u=_.t2("span"),T=_.t2("span"),W=function(){return L.data().canvasPromoData},V=function(){var v;
return(v=L.data().bannerHeight)!=null?v:56},M=_.h7t(S,{throttleMs:100}),G=_.h7t(u,{throttleMs:100}),D=_.h7t(T,{throttleMs:100}),l=function(){return G.width()-M.width()>1};
return _.g("yt-personal-greeting-view-model",{el:S,"aria-hidden":l,class:_.qg(L.className,"ytPersonalGreetingViewModelHost"),style:_.u4({height:(0,_.Wt)(function(){return l()?0:V()})})},_.g(_.F,{cond:function(){return L.data().avatar&&!(D.width()+(L.data().avatar?48:0)-M.width()>1)},
then:function(){return _.g(_.bj,{data:function(){return L.data().avatar}},{decoratedAvatarViewModel:function(v){return _.g(_.CS,{data:v.data,
className:_.qg("ytPersonalGreetingViewModelAvatar")})}})}}),_.g("h1",null,Z(function(){var v;
return(W==null?void 0:(v=W())==null?void 0:v.headline)||(D.width()+(L.data().avatar?48:0)-M.width()>1?L.data().shorterGreeting:L.data().greeting)})),N(T,function(){return L.data().greeting}),N(u,function(){return L.data().shorterGreeting}))},"Rm"),"yt-personal-greeting-view-model",{props:{data:_.LK,
className:_.LK}});var L4=function(){var L=_.e.apply(this,arguments)||this;L.hidden=!1;L.isConstrainedList=!1;L.darkerDarkTheme=_.c("web_darker_dark_theme");L.responsiveSizing="COMPACT";L.attachedPlayers=_.c("kevlar_channel_trailer_multi_attach")?[]:void 0;L.player=null;L.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return L};
_.f(L4,_.e);_.t=L4.prototype;
_.t.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}}}}};
_.t.created=function(){var L=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){L.disposeMastheadAd()}]};
_.t.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new N7Y(this.refresh,this.contents))};
_.t.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.t.activeChanged=function(){var L=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=L)};
_.t.tabsChanged=function(){var L=this,Z,N;if(this.pageSubtype==="channels"||_.c("kevlar_tab_gestures_for_tabbed_header_data")&&((Z=this.data)==null?0:(N=Z.header)==null?0:N.carouselHeaderRenderer))this.tabGestures=new ugM(this.contents,this.contents,this.hostElement,this.header,function(W){L.ytdReduxBehavior.dispatch(W)});
var S,u,T;Z=(S=this.data)==null?void 0:(u=S.contents)==null?void 0:(T=u.twoColumnBrowseResultsRenderer)==null?void 0:T.tabs;this.tabGestures&&this.tabGestures.tabsChanged(Z)};
_.t.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.t.engagementPanelsChanged=function(){var L=_.GR().resolve(_.EB);if(L){if(this.engagementPanels)for(var Z=_.O(this.engagementPanels),N=Z.next();!N.done;N=Z.next()){var S=void 0;(N=(S=N.value.identifier)==null?void 0:S.tag)&&L.panelMap.delete(N)}this.engagementPanels=[];var u;Z=_.O(((u=this.data)==null?void 0:u.panels)||[]);for(u=Z.next();!u.done;u=Z.next()){u=_.n(u.value,_.n58);var T=N=void 0,W=void 0,V=void 0;if(S=((N=u)==null?void 0:N.targetId)||((T=u)==null?void 0:T.panelIdentifier)||((W=u)==
null?void 0:(V=W.identifier)==null?void 0:V.tag))T=N=void 0,(T=(N=L).registerPanelContent)==null||T.call(N,S,{engagementPanelSectionListRenderer:u}),this.engagementPanels.push(u)}}};
_.t.onStampFinished=function(){var L=this;_.bN(this,function(){if(L.tabGestures){var Z=L.tabGestures;if(Z.scrollPositionNeedsUpdate){var N=_.GR().resolve(_.gv(_.mR)),S;if((S=Z.selectedTab)!=null&&S.title&&N&&(S=N.getCurrentPage())){if(Z.scrollPositionForTabs.has(Z.selectedTab.title)){var u,T;N=(T=(u=N.getCurrentPage())==null?void 0:u.clientHeight)!=null?T:0;u=Z.scrollPositionForTabs.get(Z.selectedTab.title);S.setScrollTop(u);N>u+100&&(Z.scrollPositionNeedsUpdate=!1)}else S.setScrollTop(Math.min(Z.lastVisitedTabScrollPosition!==
void 0?Z.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,Z.tabsStartAtInPx)),Z.scrollPositionNeedsUpdate=!1;Z.ytdReduxDispatch(YnM(!1))}}}})};
_.t.loadPage_=function(L){this.initCsi();L&&(this.data=L);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.t.getTitle=function(L){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",L))return this.get("microformat.microformatDataRenderer.title",L);if(this.get("header.feedTabbedHeaderRenderer.title",L))return _.jM(this.get("header.feedTabbedHeaderRenderer.title",L));if(this.get("header.interactiveTabbedHeaderRenderer.title",L))return this.get("header.interactiveTabbedHeaderRenderer.title",L);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
L))return _.jM(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",L));var Z,N;return(L==null?0:(Z=L.header)==null?0:(N=Z.pageHeaderRenderer)==null?0:N.pageTitle)?L.header.pageHeaderRenderer.pageTitle:""};
_.t.updateTitle=function(L){_.QT(this.hostElement,"yt-update-title",this.getTitle(L))};
_.t.initCsi=function(){_.cf7(this.pageSubtype||"browse",["ol","cpt"])};
_.t.getPlayer=function(){if(_.c("kevlar_channel_trailer_multi_attach")){for(var L=_.O(this.attachedPlayers),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.isConnected||_.H4(this.hostElement,Z))return Z;return null}return this.player};
_.t.getPlayerContainer=function(){return null};
_.t.onPlayerAttached=function(L,Z){_.c("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(Z):this.player=Z};
_.t.onPlayerDetached=function(L,Z){_.c("kevlar_channel_trailer_multi_attach")?(L=this.attachedPlayers.indexOf(Z),L<0||this.attachedPlayers.splice(L,1)):this.player=null};
_.t.getServiceTrackingParams=function(){var L,Z;return((L=this.data)==null?void 0:(Z=L.responseContext)==null?void 0:Z.serviceTrackingParams)||[]};
_.t.setMastheadAd=function(L){L&&L.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=L&&L.mastheadAd};
_.t.dataChanged=function(){var L=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.gVt();_.bN(this,function(){_.Ad(L.hostElement,"ytd-update-grid-state-action")})};
_.t.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.t.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var L=this.data.alerts;return L&&L.find(function(Z){return!!Z.alertWithActionsRenderer})}};
_.t.computeGreetingData=function(){if(this.data&&this.data.alerts){var L=this.data.alerts;return L&&L.find(function(Z){return!!Z.personalGreetingViewModel})}};
_.t.computeHasMemberHubProfileRenderer=function(L){var Z;return!!(L==null?0:(Z=L.header)==null?0:Z.memberHubProfileRenderer)};
_.t.handleAlertCommand=function(L){this.get("alertCommand.alert.alertWithActionsRenderer",L)&&(L=_.n(L,p6M),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",L.alert))};
_.t.handleYtPlaylistDeletionRedirect=function(L){L=this.get("playlistDeletionRedirectCommand.redirectEndpoint",L);_.QT(this.hostElement,"yt-navigate",{endpoint:L})};
_.t.computeFluidWidth=function(L,Z,N){if(Z==="mini_app"||N)return!0;var S,u,T;L=L==null?void 0:(S=L.contents)==null?void 0:(u=S.twoColumnBrowseResultsRenderer)==null?void 0:(T=u.tabs)==null?void 0:T.find(function(M){var G;return M==null?void 0:(G=M.tabRenderer)==null?void 0:G.selected});
if(!L)return!1;var W,V;return!!((W=L.tabRenderer)==null?0:(V=W.content)==null?0:V.richGridRenderer)&&!["channel","channels","playables"].includes(Z)};
_.t.computeHeaderFluidWidth=function(L){return L==="hashtag-landing-page"};
_.t.computeHasSidebar=function(L){var Z;return!!(L.sidebar||((Z=L.header)==null?0:Z.playlistHeaderRenderer))};
_.t.computeHasPageHeaderSidebar=function(L){var Z,N;return!!((Z=L.header)==null?0:(N=Z.pageHeaderRenderer)==null?0:N.enableSidebarView)};
_.t.computeUseUnifiedShowPageLayout=function(L){if(!L||this.pageSubtype!=="show"||!L.sidebar||!L.sidebar.playlistSidebarRenderer)return!1;L=L.sidebar.playlistSidebarRenderer;if(!L.items)return!1;for(var Z=0;Z<L.items.length;Z++)if(_.n(L.items[Z],Jfi)){var N=void 0;return((N=_.n(L.items[Z],Jfi))==null?void 0:N.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.t.computeIsConstrainedList=function(L){return _.c("web_enable_constrained_list_subscriptions_channels")&&L==="subscriptions-channels"};
_.t.computeResponsiveSizing=function(L){return L==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.gd.Object.defineProperties(L4.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var L,Z;return((L=this.data)==null?0:(Z=L.header)==null?0:Z.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var L,Z;if(!((L=this.data)==null?0:(Z=L.sidebar)==null?0:Z.playlistSidebarRenderer))return!1;var N;return(N=this.data)!=null&&N.header?!1:!0}}});
_.gd.Object.defineProperties(L4,{template:{configurable:!0,enumerable:!0,get:function(){if(T7i===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);T7i=L}L=T7i;return L}}});
L4.prototype.dataChanged=L4.prototype.dataChanged;L4.prototype.onPlayerDetached=L4.prototype.onPlayerDetached;L4.prototype.onPlayerAttached=L4.prototype.onPlayerAttached;L4.prototype.onStampFinished=L4.prototype.onStampFinished;L4.prototype.engagementPanelsChanged=L4.prototype.engagementPanelsChanged;L4.prototype.scrollAtTopChanged=L4.prototype.scrollAtTopChanged;L4.prototype.tabsChanged=L4.prototype.tabsChanged;L4.prototype.activeChanged=L4.prototype.activeChanged;
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],L4.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.W0),_.Q("design:type",Object)],L4.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],L4.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],L4.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.uw.YtPageBehavior),_.Q("design:type",Object)],L4.prototype,"ytPageBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],L4.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],L4.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],L4.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],L4.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],L4.prototype,"hidden",void 0);
_.r([_.Y(),_.Q("design:type",Object)],L4.prototype,"mastheadAdData",void 0);_.r([_.Y({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.Q("design:type",Object)],L4.prototype,"alertBannerData",void 0);_.r([_.Y({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.Q("design:type",Object)],L4.prototype,"greetingData",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],L4.prototype,"pageSubtype",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.Q("design:type",Boolean)],L4.prototype,"hasMemberHubProfileRenderer",void 0);_.r([_.Y({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],L4.prototype,"hasSidebar",void 0);_.r([_.Y({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],L4.prototype,"hasPageHeaderSidebar",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],L4.prototype,"roundedContainer",void 0);_.r([_.Y({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],L4.prototype,"useUnifiedShowPageLayout",void 0);_.r([_.Y({computed:"computeIsConstrainedList(pageSubtype)"}),_.Q("design:type",Object)],L4.prototype,"isConstrainedList",void 0);
_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],L4.prototype,"usePlaylistHeaderRenderer",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],L4.prototype,"useOldPlaylistSidebarRenderer",null);_.r([_.Y({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.Q("design:type",Boolean)],L4.prototype,"fluidWidth",void 0);_.r([_.Y({selector:function(L){return L.ui.scrollAtTop}}),
_.Q("design:type",Boolean)],L4.prototype,"scrollAtTop",void 0);_.r([_.Y({selector:_.Flq}),_.Q("design:type",Boolean)],L4.prototype,"tabGesturesIsActive",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],L4.prototype,"darkerDarkTheme",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.Q("design:type",Boolean)],L4.prototype,"disableHeaderFluidWidth",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.Q("design:type",String)],L4.prototype,"responsiveSizing",void 0);_.r([_.TX("ytd-two-column-browse-results-renderer"),_.Q("design:type",HTMLElement)],L4.prototype,"contents",void 0);_.r([_.TX("#header"),_.Q("design:type",HTMLElement)],L4.prototype,"header",void 0);_.r([_.TX("ytd-refresh"),_.Q("design:type",Object)],L4.prototype,"refresh",void 0);
_.r([_.iA("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],L4.prototype,"activeChanged",null);_.r([_.iA("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],L4.prototype,"tabsChanged",null);_.r([_.iA("scrollAtTop"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],L4.prototype,"scrollAtTopChanged",null);
_.r([_.Y(),_.Q("design:type",Object)],L4.prototype,"engagementPanels",void 0);_.r([_.iA("data.panels"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],L4.prototype,"engagementPanelsChanged",null);_.r([_.SA("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],L4.prototype,"onStampFinished",null);
_.r([_.SA("yt-player-attached"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Element]),_.Q("design:returntype")],L4.prototype,"onPlayerAttached",null);_.r([_.SA("yt-player-detached"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Element]),_.Q("design:returntype")],L4.prototype,"onPlayerDetached",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],L4.prototype,"dataChanged",null);
_.r([_.P({is:"ytd-browse"})],L4);_.re.registerService(_.iaP,L4);
_.mm();
}catch(e){_._DumpException(e)}
try{
_.z3("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 qy,lUy,vDP,oDg,Rdg,cJw,nDs,KLw,fUg,kXw,yJk,whY,Ykk,edk,ddk,aUv,hdP,j_Y,EDs,PAv,ph8,LE,mdv,ZV,JJP,CAg,rJg,Q_P,Xhk,Hdq,xdm,AJ0,UdQ,qky,LW5,ZYQ,N$v,SR8,iYw,uZg,T$g,tik,WWy,Vig,Mic,Gl8,FWw,$gQ,lhy,oNc,RE0,cCk,nN5,KWY,fhw,klg,yCm,w9s,Ug5,YRv,eEc,dgv,ah5,hEk,sXv,jXQ,ENq,PnP,p9q,mgm,JCm,Cnc,rCk,QXk,X9Y,ACY,HYq,B$q,xgw,qRy,LR5,ZV0,N9Q,SCY,iV5,u6k,T9v,twv,OVq,WRq,Vwv,bVc,Mwm,VS,g0m,G0s,DVc,k0s,YCv,e_v,sVw,jVP,h_q,dVk,z_8,C4v,B9g,I95,QVm,mVk,$m,qCy,Nm8,uMw,SSm,il0,Tmy,VC5,Olv,blw,MCg,WKv,tCm,g90,oo,Ro,
v95,o9s,cP,Rsq,cuq,n9v,Urv,YSg,nE,KE,I75,ess,drv,a78,hsv,sby,fE,km,yS,Cj5,ruc,Qbv,U1,xr8,XT5,Bms,qSv,Auk,Zmm,HlQ,imy,N3Q,Sim,Ym,T3m,uT0,VyY,Gnv,ao,hn,Myq,$3q,gom,F4g,j$,PP,pE,zH,jLs,yZm,pt5,zUm,m3v,JZy,rZm,cZk,noy,CE,f2s,mD,Jn,kny,CFw,Eoc,K40,QS,LXy,Ncv,Sc8,ZMs,Hmk,uQm,OMs,xm,HP,BP,bMy,AZw,Lg,tWv,B3q,Tc0,qiq,XtY,x3g,gMq,G1k,FX5,DH8,vMk,oMm,Rxs,c9v,KXw,nMv,k10,y98,UHv,YcP,IK5,dHs,aKY,hxv,sjk,jjq,EMv,pVv,PmY,zxk,J9g,Cmc,Sv,r9k,Qjw,uf,XVP,A9k,HM8,BcP,xHv,qcY,Laq,Z5Q,SWm,Tr,i5m,uEv,O58,Vd8,b58,gTQ,Mds,
G5m,Fav,$Qq,liw,vTw,oTs,RH0,c5w,nTv,Ka5,fiq,k5w,y58,wak,UQc,dQw,aiv,eHm,Iig,YWQ,hHk,ETs,sAP,jAk,zH0,PyQ,pav,mQk,J5g,Cyw,r5q,Xak,A5q,H5q,xQv,qWY,Z7Y,Syy,uis,tsv,WQP,b7c,gpv,FQg,lIg,vps,opY,cYc,Rms,KQ5,fI8,kwv,yYP,Oa,wzy,UYm,Yyc,pzm,mYv,JYg,Xzm,gt,AYq,H7s,BIs,qys,xYg,LFc,Zcy,Ngv,S8c,icy,bE,uRy,Gr,TIm,Tg0,tJk,gNy,Ocg,WFk,VJc,bck,MJc,gBy;
qy=function(L){if(!L)return"browse";var Z=L.page,N=L.url,S,u,T,W=(S=L.response)==null?void 0:(u=S.responseContext)==null?void 0:(T=u.webResponseContextExtensionData)==null?void 0:T.pageTheme;if(W)Z=W.toLowerCase().replace(/_/g,"-");else if(Z!=="watch"&&Z!=="learning_journey_watch"){var V,M;if((Z==="browse"||Z==="settings")&&((V=L.response)==null?0:(M=V.sidebar)==null?0:M.settingsSidebarRenderer))Z="WEB_PAGE_TYPE_SETTINGS";else{var G,D;Z==="browse"&&((G=L.response)==null?0:(D=G.metadata)==null?0:D.channelMetadataRenderer)?
Z="channel":N&&(Z=_.uos(N)||Z)}}return Z};
lUy=function(){var L=_.LZ("yt.aba.att");return L?L:_.nt.instance!==void 0?_.nt.instance.uFB.bind(_.nt.instance):null};
vDP=function(L,Z){var N;return _.b(function(S){return(N=lUy())?S.return(N(L,Z,6E4)):S.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
oDg=function(L,Z,N,S,u){Z=Z===void 0?[]:Z;u=u?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:u}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Cq(L),dialogMessages:Z.map(function(T){return _.Cq(T)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Cq(N),serviceEndpoint:u}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Cq(S)}}}}}};
Rdg=function(L,Z,N){N=N===void 0?!1:N;var S=_.dM(),u=!!_.te().queueProxy,T,W,V;L=L==null?void 0:(T=L.response)==null?void 0:(W=T.currentVideoEndpoint)==null?void 0:(V=W.watchEndpoint)==null?void 0:V.playlistId;if((u||L)&&!_.c("web_watch_disable_playlist_auto_miniplayer"))return N&&(S.playlistWatchPageActivation=!0),!0;switch(qy(Z)){case "yts-products":return N&&(S.productDetailsPageActivation=!0),!0;case "mini_app":return N&&(S.miniAppPageActivation=!0),!0;case "playables":return N&&(S.playablesDestPageActivation=
!0),!0;case "companion-canvas":return N&&(S.companionCanvasActivation=!0),!0;default:return!1}};
cJw=function(L){L=_.tfL(L);L.length>0&&L[0].focus()};
nDs=function(L,Z,N){for(var S=typeof L==="string"?L.split(""):L,u=L.length-1;u>=0;--u)u in S&&Z.call(N,S[u],u,L)};
KLw=function(L,Z){Z=_.wsx(L,Z);Z>=0&&_.eAs(L,Z)};
fUg=function(L){return Array.prototype.concat.apply([],arguments)};
kXw=function(L){var Z=0;Z=Z===void 0?0:Z;if(!_.ZP(L))throw _.L0("uint64");var N=typeof L;switch(Z){case 512:switch(N){case "string":return _.INh(L);case "bigint":return String((0,_.DP)(64,L));default:return _.YYP(L)}case 1024:switch(N){case "string":return _.dIH(L);case "bigint":return _.jt((0,_.DP)(64,L));default:return _.eQ_(L)}case 0:switch(N){case "string":return _.INh(L);case "bigint":return _.jt((0,_.DP)(64,L));default:return _.UIs(L)}default:return _.Xh(Z,"Unknown format requested type for int64")}};
yJk=function(L){L!=null&&(L=L.JSC$8819_value_||"",L=typeof L==="string"?L:new Uint8Array(L));return L};
whY=function(L,Z){if(/-[a-z]/.test(Z))return null;if(_.tbl&&L.dataset){if(_.vtF()&&!(Z in L.dataset))return null;L=L.dataset[Z];return L===void 0?null:L}return L.getAttribute("data-"+_.uc(Z))};
Ykk=function(){var L=UdQ;_.LZ("yt.ads.biscotti.getId_")||_.bp("yt.ads.biscotti.getId_",L)};
edk=function(L){_.bp("yt.ads.biscotti.lastId_",L)};
ddk=function(){var L={};for(_.zR=new IUv(L.handleError===void 0?_.rY:L.handleError,L.logEvent===void 0?_.mS:L.logEvent);_.m5.length>0;)switch(L=_.m5.shift(),L.type){case "ERROR":_.zR.logError(L.payload);break;case "EVENT":_.zR.logEvent(L.eventType,L.payload)}};
aUv=function(L,Z,N){return _.VMH(function(S){return N?S.userIdentifier!==void 0&&!L.includes(S.userIdentifier)&&N.includes(S.publicName):S.userIdentifier!==void 0&&!L.includes(S.userIdentifier)},Z)};
hdP=function(L){var Z,N;return _.b(function(S){if(S.nextAddress==1)return Z=_.ae("YtIdbMeta hasAnyMeta other"),S.yield(_.VMH(function(u){return u.userIdentifier!==void 0&&u.userIdentifier!==Z},L),2);
N=S.yieldResult;return S.return(N.length>0)})};
j_Y=function(L,Z){s_5||(s_5=_.ro.addLowPriorityJob(function(){var N,S,u,T,W;return _.b(function(V){switch(V.nextAddress){case 1:return V.yield(_.MO(),2);case 2:N=V.yieldResult;if(!N)return V.return();S=!0;_.RS(V,3);return V.yield(aUv(L,N,Z),5);case 5:u=V.yieldResult;if(!u.length){S=!1;V.jumpTo(6);break}T=u[0];return V.yield(_.ip(T.actualName),7);case 7:return V.yield(_.ta(T.actualName,N),6);case 6:_.SX(V,4);break;case 3:W=_.yd(V),_.J3(W),S=!1;case 4:_.ro.cancelJob(s_5),s_5=0,S&&j_Y(L,Z),_.w7(V)}})}))};
EDs=function(){var L;return _.b(function(Z){return Z.nextAddress==1?Z.yield(_.MO(),2):(L=Z.yieldResult)?Z.return(hdP(L)):Z.return(!1)})};
PAv=function(L){var Z=100;Z=Z===void 0?500:Z;var N,S,u,T,W,V;return _.b(function(M){return M.nextAddress==1?(N=_.X7("INNERTUBE_CONTEXT_CLIENT_NAME",0),S=[N,(0,_.GT)()-2592E6],u=[N,(0,_.GT)()],T=IDBKeyRange.bound(S,u),M.yield(_.s_t(L),2)):M.nextAddress!=3?(W=M.yieldResult,V=[],M.yield(_.TT(W,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(G){V.length=0;return _.FW(G.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:T,direction:"prev"},function(D){if(D.getValue()&&V.length<
Z)return V.push(D.getValue()),D.delete().then(function(){return D.continue()})})}),3)):M.return(V)})};
ph8=function(){var L;return _.b(function(Z){if(Z.nextAddress==1)return Z.yield(_.MO(),2);L=Z.yieldResult;if(!L||!_.h3()&&!_.c("nwl_init_require_datasync_id_killswitch")||!_.N$G())return Z.jumpTo(0);_.iYs=!0;_.SR1.isNwlInitialized=_.iYs;return Z.yield(_.nQY().awaitInitialization(),0)})};
LE=function(L,Z){_.REx[L]=!0;var N=_.$E();N&&N.publish.apply(N,arguments);_.REx[L]=!1};
mdv=function(){if(_.xJB()&&!zdY){var L=function(N){N=N.data;if(N.op==="serializedGelBatch"){var S=_.cSt.get(N.key);S&&(_.KRF(N.serializedBatch,S.client,S.resolve,S.networklessOptions,S.isIsolated,S.useVSSEndpoint,S.dangerousLogToVisitorSession,S.requestsOutstanding),_.cSt.delete(N.key))}},Z=_.Brw();
Z&&(Z.addEventListener("message",L),Z.onerror=function(){_.cSt.clear()});
zdY=!0}};
ZV=function(){this.relativeTimeStart_=_.rc()};
JJP=function(L,Z){L!=null&&this.append.apply(this,arguments)};
CAg=function(){return _.yT("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
rJg=function(L,Z,N){N=N===void 0?!1:N;var S,u,T,W,V;return _.b(function(M){switch(M.nextAddress){case 1:_.Ie("SOCS",L,34128E3,"youtube.com",!0);if(_.Zi)return u=fetch(Z,{method:"POST",mode:_.d0(Z),credentials:_.IH(Z),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),T=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.d0("/upgrade_visitor_cookie?eom=1"),credentials:_.IH("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),M.yield(Promise.all([u,T]).then(function(G){return G[1]}),5);
fetch(Z,{method:"POST",mode:_.d0(Z),credentials:_.IH(Z),cache:"no-store",headers:{"Content-Type":"text/plain"}});return M.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.d0("/upgrade_visitor_cookie?eom=1"),credentials:_.IH("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:S=M.yieldResult;M.jumpTo(3);break;case 5:S=W=M.yieldResult;case 3:if(!S.ok)throw Error("wf");return M.yield(S.text(),7);case 7:V=M.yieldResult,
!V.includes('"state_switch":true')&&!N||V.includes("skip_reload_for_test")||window.location.reload(),_.w7(M)}})};
Q_P=function(L){return _.b(function(Z){return Z.nextAddress==1?Z.yield(rJg(L.socsCookie,L.savePreferenceUrl,!0),2):Z.return()})};
Xhk=function(L){return _.b(function(Z){return Z.nextAddress==1?Z.yield(rJg(L.socsCookie,L.savePreferenceUrl),2):Z.return()})};
Hdq=function(L){L=L.xhr.responseText;if(!_.TB(L,")]}'"))throw new Ns;L=JSON.parse(L.substr(4));if((L.type||1)>1)throw new Ns;L=L.id;edk(L);S$=_.W$(L);AJ0(18E5,2);return L};
xdm=function(L,Z){Z=new BDs(Z);edk("");S$=_.k9s(Z);L>0&&AJ0(12E4,L-1);throw Z;};
AJ0=function(L,Z){_.cW(function(){_.rzv().then(Hdq,function(N){return xdm(Z,N)}).thenCatch(_.on)},L)};
UdQ=function(){var L=_.Azk();if(L!==void 0)return _.$N(L);S$||(S$=_.rzv().then(Hdq).thenCatch(function(Z){return xdm(2,Z)}));
return S$};
qky=function(){var L=document;return _.hx(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(Z){return"on"+Z.toLowerCase()in L})};
LW5=function(L){L.addEventListener("click",function(Z){var N=Z.target;N&&N.getAttribute("href")&&(N=N.getAttribute("href"),_.Ls(window,N,"_blank"),Z.preventDefault(),Z.stopImmediatePropagation())})};
ZYQ=function(L){var Z,N,S,u=(S=(N=((Z=L.mainDownloadsListEntity)!=null?Z:{})[_.oXw])==null?void 0:N.refresh)!=null?S:"",T;L=(T=L.refresh)==null?void 0:T[u];u=L!=null?L:{};return(u==null?0:u.refreshTime)?Number(u==null?void 0:u.refreshTime):0};
N$v=function(L,Z){var N=_.Ga(L);return Z.every(function(S){var u;S=S==null?void 0:(u=S.playbackDataEntity)==null?void 0:u.key;if(!S)return!1;u=_.qj(_.HB(S).entityId,"mainVideoEntity");return!!N[u]})};
SR8=function(L){L=_.b2(L.entities);return _.aaH(L).length};
iYw=function(L,Z){if(Z){var N;L=(N=_.Lk(L.entities,"downloadQualityPickerEntity",Z))!=null?N:void 0}else L=void 0;return L};
uZg=function(L){var Z=document.getElementsByTagName("ytd-enforcement-message-view-model");Z.length===0||getComputedStyle(Z[0]).display==="none"?L(0,"p.h_"):L(1,"p.h_")};
T$g=function(){iE=0;var L=[_.tz(!0)];uE&&_.Ad(uE,"yt-window-resized",L)};
tik=function(){iE||(iE=_.ro.addLowPriorityJob(T$g,200))};
WWy=function(){TH=0;OYs=_.OxV(document);var L=[OYs];uE&&_.Ad(uE,"yt-window-scrolled",L)};
Vig=function(){TH||(TH=_.ro.addLowPriorityJob(WWy,200))};
Mic=function(L){L=L===void 0?null:L;bYy.push(_.MC(window,"resize",tik));bYy.push(_.MC(window,"scroll",Vig));L&&(uE=L)};
Gl8=function(){var L=_.MJ.getLocalStorage();L&&gNy(L,L.mechanism.__iterator__(!0))};
FWw=function(L){_.b(function(Z){if(Z.nextAddress==1)return Z.yield(L.delete("yt-appshell-assets"),2);_.w7(Z)})};
$gQ=function(L){return _.up((0,_.YhI)(),L)};
lhy=function(){var L;_.b(function(Z){return Z.nextAddress==1?Z.yield(tn.getInstance(),2):(L=Z.yieldResult)?Z.yield(DgQ(L),0):Z.jumpTo(0)})};
oNc=function(){var L;_.b(function(Z){return Z.nextAddress==1?Z.yield(O1.getInstance(),2):(L=Z.yieldResult)?Z.yield(vN8(L),0):Z.jumpTo(0)})};
RE0=function(L){FWw(L);lhy();oNc()};
cCk=function(L){var Z,N;return _.b(function(S){if(S.nextAddress==1)return S.yield(_.yIP(L),2);if(Z=S.yieldResult){var u;a:{if(Z.headers&&(u=Z.headers.get("date"))&&(u=Date.parse(u),!isNaN(u))){u=Math.round((0,_.GT)()-u);break a}u=-1}N=u;if(N>-1)return S.return(N)}return S.return(-1)})};
nN5=function(){var L=_.iH.caches,Z=_.Ah("IS_SHELL_LOAD"),N,S;_.b(function(u){if(u.nextAddress==1)return N=-1,Z?u.yield(cCk(L),3):(S=_.gR(),N=Math.round((0,_.GT)()-S),u.jumpTo(2));u.nextAddress!=2&&(N=u.yieldResult);N>=0&&N<2147483648&&_.lB({appInstallDataAgeMs:N});_.w7(u)})};
KWY=function(L){var Z=_.qG(_.iH.location.href),N={};"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(S){var u=Z.JSC$10031_queryData_.getValues(S);if(u==null?0:u.length)N[S]=u});
return _.om(L,new Map(Object.entries(N)))};
fhw=function(L){L=L.match(/(.*)::.*::.*/);if(L!==null)return L[1]};
klg=function(L){if(_.rI0()){var Z=Object.keys(window.localStorage);Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next()){N=N.value;var S=fhw(N);S===void 0||L.includes(S)||self.localStorage.removeItem(N)}}};
yCm=function(){if(!_.rI0())return!1;var L=_.ae(),Z=Object.keys(window.localStorage);Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())if(N=fhw(N.value),N!==void 0&&N!==L)return!0;return!1};
w9s=function(L){return _.Eu("NotificationsDisabled",L)};
Ug5=function(){return Notification.permission!="granted"?Promise.resolve():_.$J0().then(function(L){return L?L.pushManager.getSubscription().then(function(Z){if(Z)return Promise.resolve();Z={userVisibleOnly:!0,applicationServerKey:_.xt("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return L.pushManager.subscribe(Z).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
YRv=function(L){return _.$J0().then(function(Z){if(!Z||!Z.active)return Promise.reject(new _.sr("serviceworker.postMessage",L,Z));try{return Z.active.postMessage(L),Promise.resolve()}catch(N){return Promise.reject(N)}})};
eEc=function(){YRv({type:"notifications_register",data:_.X7("ID_TOKEN")})};
dgv=function(){var L={isWide:_.eZ.get("wide","0")==="1"},Z=_.tq();if(Z=Z.getFlag(165)||Z.getFlag(174))L.theme=_.wr(!0);if(_.VqA()){var N=_.yJ()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";L.systemTheme=N}!Z&&_.c("parent_tools_enable_app_settings")&&_.uQ(window.location.href).theme!==void 0&&(L.theme=_.wr());if((Z=WP)?!_.Py.equals(Z,L):L)Z={currentValue:L},Ihk&&(Z.timeSinceLastSnapshotSecs=Math.round(((0,_.GT)()-Ihk)/1E3)),WP&&(Z.previousValue=WP),_.mS("appSettingsCaptured",Z),WP=L,Ihk=
(0,_.GT)()};
ah5=function(){if(!_.Ah("LOGGED_IN"))return Promise.resolve(!1);var L=_.vW("service_worker_push_force_notification_prompt_tag");return L?_.ky("PromptTags").then(function(Z){if(!Z)return!0;var N=[];try{N=JSON.parse(Z)}catch(S){return!1}return N&&N.indexOf(L)==-1}):Promise.resolve(!1)};
hEk=function(){var L=_.lQ("service_worker_push_prompt_delay_microseconds");return L?_.ky("PromptTime").then(function(Z){return Promise.resolve(Date.now()-L>(Z||0))}):Promise.resolve(!0)};
sXv=function(){var L=_.lQ("service_worker_push_logged_out_prompt_watches");return L==-1?Promise.resolve(!1):_.ky("WatchCount").then(function(Z){return Z>=L})};
jXQ=function(){var L=_.QB(document,"yt-push-prompt-modal-bg");L&&_.U_(L)};
ENq=function(){return _.lQ("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.ky("PromptCount").then(function(L){L||(L=0);return Promise.resolve(L<_.lQ("service_worker_push_prompt_cap"))})};
PnP=function(L){return _.Ah("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Ah("LOGGED_IN")&&(L===void 0?0:L)?ah5().then(function(Z){if(Z)return!0;Z=[ENq(),hEk()];_.Ah("LOGGED_IN")||Z.push(sXv());return Promise.all(Z).then(function(N){return N.every(function(S){return S})})}):Promise.resolve(!1)};
p9q=function(){_.ky("PromptCount").then(function(L){return _.Eu("PromptCount",L+1)}).then(function(){return _.Eu("PromptTime",Date.now())}).then(function(){var L=_.vW("service_worker_push_force_notification_prompt_tag");
if(L)return _.ky("PromptTags").then(function(Z){var N=[];if(Z)try{N=JSON.parse(Z)}catch(S){return!1}N||(N=[]);N.push(L);return _.Eu("PromptTags",JSON.stringify(N))})})};
mgm=function(){zEg||jXQ()};
JCm=function(L){L.style.zIndex=2147483648;L.style.pointerEvents="auto";L.style.backgroundColor="rgba(0, 0, 0, 0.6)";L.style.width="100%";L.style.height="100vh";L.style.position="absolute";L.style.top="0";L.style.left="0";L.style.border="none"};
Cnc=function(){var L=_.QB(document,"yt-push-prompt-modal-bg");zEg=_.c("service_worker_push_prompt_modal_ignore_click");L?JCm(L):(L=_.wI("div",{id:"yt-push-prompt-modal-bg"}),JCm(L),document.body.appendChild(L),_.$gF(document,"click",mgm))};
rCk=function(){var L=arguments;_.c("service_worker_push_prompt_modal_enable")&&Cnc();return Notification.requestPermission().then(function(Z){jXQ();var N=document.getElementById("ticker");N&&(N.className=N.classList.remove("show"));if(Z=="granted")return Ug5().then(function(){w9s(!1);eEc();return Promise.resolve(!0)});
Z=="denied"&&eEc();return Promise.resolve(!1)}).catch(function(){jXQ();
return Promise.reject.apply(Promise,_.Pd(L))})};
QXk=function(L){L=L===void 0?!1:L;var Z=_.FU_().client;if(Z&&Z.browserVersion){var N=Z.browserVersion,S=Z.browserName=="CHROME"&&_.$t(N,"50.0.0")<0;Z=Z.browserName=="OPERA"&&_.$t(N,"42.0.0")<0;if(S||Z)return Promise.resolve()}return _.vec().then(function(u){if(!u)return Promise.resolve();u=Ug5().then(function(){return YRv({type:"notifications_check_registration",data:_.X7("ID_TOKEN")})});
return Notification.permission!="default"?u.catch(function(){}):u.then(function(){return PnP(L)}).then(function(T){if(T)return p9q(),rCk().then(function(){})}).catch(function(){})})};
X9Y=function(L){return _.DJv(L)?QXk():Promise.resolve()};
ACY=function(L){var Z=L.installing||L.waiting;return L.active||!Z?Promise.resolve(L):new Promise(function(N){var S=function(u){u=u.target;if(u.state==="activated"||u.state==="redundant")Z.removeEventListener("statechange",S),N(L)};
Z.addEventListener("statechange",S)})};
HYq=function(){var L=new _.fc1("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.LM(L,{mainAppWeb:_.Is()});var Z=_.BGQ;_.c("service_worker_forward_exp_params")&&(Z=KWY(Z));try{var N=_.lpt(Z).catch(function(){_.ZK(L,"FAILURE");return new Promise(function(){})});
_.c("service_worker_push_enabled")&&N.then(function(S){_.ZK(L,"SUCCESS");return S}).then(ACY).then(X9Y)}catch(S){if(_.ZK(L,"FAILURE"),S.name!=="SecurityError")throw S;
}};
B$q=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&HYq()};
xgw=function(L,Z){var N={};Z&&(N.serializedYpcFamilyCreateLoggingParams=Z);_.mS(L,N);_.JV()};
qRy=function(L,Z){var N={};N.serializedYpcRefundFlowLoggingParams=Z;L&&(N.eventType=L);_.mS("ypcRefundFlowEvent",N);_.JV()};
LR5=function(L){L&&_.o1_("transactionFlowSucceeded",L)};
ZV0=function(L){L&&_.Fe("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",L,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
N9Q=function(L){var Z,N,S,u,T,W,V;_.b(function(M){if(M.nextAddress==1)return M.yield(_.NBw(),2);if(M.nextAddress!=3){if(!M.yieldResult)return M.return(!1);Z=[];return M.yield(_.B9.keys(),3)}N=M.yieldResult;S=_.O(N);for(u=S.next();!u.done;u=S.next())T=u.value,W=_.L6A(T),V=W.datasyncId,!V||L.includes(V)||Z.push(_.B9.delete(T));return M.return(Promise.all(Z).then(function(G){return G.some(function(D){return D})}))})};
SCY=function(){var L,Z,N,S,u,T,W;return _.b(function(V){if(V.nextAddress==1)return V.yield(_.NBw(),2);if(V.nextAddress!=3){if(!V.yieldResult)return V.return(!1);L=_.ae("cache contains other");return V.yield(_.B9.keys(),3)}Z=V.yieldResult;N=_.O(Z);for(S=N.next();!S.done;S=N.next())if(u=S.value,T=_.L6A(u),(W=T.datasyncId)&&W!==L)return V.return(!0);return V.return(!1)})};
iV5=function(){var L=_.GR().resolve(_.gv(_.Hrq));return L?L.getCurrentTime():0};
u6k=function(){var L,Z,N,S,u,T,W,V,M,G,D,l,v,R;return _.b(function(K){switch(K.nextAddress){case 1:L={},Z=_.u1P(),N=_.O(Object.entries(Z)),S=N.next();case 4:if(S.done){K.jumpTo(3);break}u=S.value;T=_.O(u);W=T.next().value;V=T.next().value;M=W;G=V;if(!G){K.jumpTo(5);break}return K.yield(G(),8);case 8:L[M]=K.yieldResult;case 5:S=N.next();K.jumpTo(4);break;case 2:D=_.O(),l=D.next();case 9:if(l.done){K.jumpTo(3);break}v=l.value;R=Z[v];if(!R){K.jumpTo(10);break}return K.yield(R(),13);case 13:L[v]=K.yieldResult;
case 10:l=D.next();K.jumpTo(9);break;case 3:return K.return(L)}})};
T9v=function(){var L;_.b(function(Z){if(Z.nextAddress==1)return Z.yield(u6k(),2);L=Z.yieldResult;return Z.yield(navigator.clipboard.writeText(JSON.stringify(L,null,2)),0)})};
twv=function(L,Z){return _.Lk(L.entities,"superThanksSelectedTierEntity",Z)};
OVq=function(L,Z){return{popup:{searchSuggestionReportDialog:{searchQuery:L,title:_.iB("SBOX_INAPPROPRIATE_TITLE"),suggestions:Z,categoryLabel:_.iB("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.iB("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.iB("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.iB("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.iB("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.iB("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.iB("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.iB("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.iB("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.iB("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
WRq=function(L){var Z,N,S,u,T,W,V,M,G,D,l,v,R,K,U,d,h,E,A;return _.b(function(J){switch(J.nextAddress){case 1:return J.yield(_.SM(),2);case 2:return(Z=J.yieldResult)?J.yield(_.bUf(Z),3):J.return();case 3:N=J.yieldResult;if(!N)return J.return();u=((S=N.offlineVideos)==null?void 0:S.length)||0;W=((T=N.offlinePlaylists)==null?void 0:T.length)||0;if(u===0&&W===0)return J.return();V=0;if(N.offlineVideos)for(M=_.O(N.offlineVideos),G=M.next();!G.done;G=M.next())D=G.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
D.videoState&&(V+=1);L.offline_videos_count=u.toString();_.c("kevlar_log_offline_current_network_type_ks")||(L.offline_current_network_type=(l=_.E6x())!=null?l:"CONN_INVALID");_.c("kevlar_log_updated_time_for_smart_downloads")&&(v=_.Pv().getState().entities,R=_.l2(v),K=ZYQ(v),L.offline_smart_downloads_last_sync_time_ms=R.toString(),L.offline_smart_downloads_next_sync_time_ms=K.toString());L.offline_videos_playable=V.toString();L.offline_playlists_count=W.toString();N.offlineVideos&&(U=N.offlineVideos.reduce(function(C,
X){X.downloadedBytes&&(C+=Number(X.downloadedBytes));return C},0).toString())&&(L.offline_used_disk_space_bytes=U);
if(!((d=navigator)==null?0:(h=d.storage)==null?0:h.estimate)){J.jumpTo(4);break}return J.yield(navigator.storage.estimate(),5);case 5:E=J.yieldResult,L.offline_free_disk_space_bytes=(((A=E)==null?void 0:A.quota)||0).toString();case 4:L.offline_client_state=JSON.stringify(N),_.w7(J)}})};
Vwv=function(L){L=L.match(/(.*)::.*::.*/);if(L!==null)return L[1]};
bVc=function(L){if(_.wHF()){var Z=Object.keys(window.sessionStorage);Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next()){N=N.value;var S=Vwv(N);S===void 0||L.includes(S)||self.sessionStorage.removeItem(N)}}};
Mwm=function(){if(!_.wHF())return!1;var L=_.ae(),Z=Object.keys(window.sessionStorage);Z=_.O(Z);for(var N=Z.next();!N.done;N=Z.next())if(N=Vwv(N.value),N!==void 0&&N!==L)return!0;return!1};
VS=function(L,Z,N){(_.c("desktop_keyboard_shortcut_usage_log")||N&&_.c("web_shorts_keyboard_shortcut_usage_log"))&&(Z?_.J6.get(L):_.me.get(L))&&(L=Z?_.rz.get(L):_.Cr.get(L))&&_.sT(_.RH(),L)};
g0m=function(L,Z){return L.findIndex(function(N){return N.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(Z.keyCode):!1};
G0s=function(L,Z){Z.stack&&(L.stack+="\n"+Z.stack);return L};
DVc=function(L){var Z=bE(L,"Content-Type");if(!Z)return null;Z=Z.toLowerCase();if(Z.startsWith("application/json"))return Z.startsWith("application/json+protobuf")?new FRc:new _.gE;if(Z.startsWith("application/x-protobuf")){L=bE(L,"Content-Transfer-Encoding");if(!L)return new Ms;if(L.toLowerCase()=="base64")return new $Vv}return null};
k0s=function(L,Z,N,S){var u=new l9c(function(V,M){return v0P.has(M)?V.sentinel==="gal"&&V.event!==void 0:!1},function(V){V.event?(V=o00(V.event),V=!V||R_v(S,V)?!0:_.Wa(L.lastEvent,gW,2,GH)?!_.Wa(V,FF,1,GH)&&!_.Wa(V,gW,2,GH):!_.Wa(V,FF,1,GH)&&!_.Wa(V,gW,3,GH)):V=!0;
return V});
N=_.om(L.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",cS5(N)]]));if(L.nestedOrigins!==void 0)for(var T=_.O(L.nestedOrigins),W=T.next();!W.done;W=T.next())N=_.om(N,new Map([["origin",W.value]]));return n0q(u,N,Z).then(function(V){V=KRQ(V.event);if(_.Wa(V,FF,1,GH)){var M,G=(M=_.f5(V,FF,1,GH))==null?void 0:_.oA(M,2);G&&S.JSC$19642_logErrorEvent(f90(G));M=_.f5(V,FF,1,GH);_.oA(M,2)===4?(V=_.f5(V,FF,1,GH),V={statusCode:11,statusMessage:_.va(V,
3)}):(V=_.f5(V,FF,1,GH),V={statusCode:12,statusMessage:_.va(V,3)});return V}_.Wa(V,gW,3,GH)?(V=_.f5(V,gW,3,GH),V={statusCode:1,consentLanguageKeys:_.va(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"}})};
YCv=function(L){var Z={};if(L===void 0||L===null)return Z;L.getToken()!==void 0&&ySm(L.getToken())&&ySm(L.getToken()).length>0&&(Z.scopes=new Set(ySm(L.getToken())));L.getToken()!==void 0&&wQy(L.getToken())&&wQy(L.getToken()).length>0&&(Z.capabilities=new Set(wQy(L.getToken())));_.va(L,3)!==void 0&&(Z.consistencyKey=_.va(L,3));L.getName()!==void 0&&L.getName()!==""&&(Z.linkName=L.getName());_.OW(L,UVQ,4)&&(L=_.lp(L,UVQ,4),L=Object.assign({},_.va(L,1)&&{userId:_.va(L,1)},_.va(L,2)&&{displayName:_.va(L,
2)},_.va(L,3)&&{email:_.va(L,3)},_.va(L,5)&&{username:_.va(L,5)},_.va(L,4)&&{profilePicture:_.va(L,4)}),Z.profile=L);return Z};
e_v=function(L,Z){var N=L.flowParams,S;return{serviceId:N.serviceId,sessionId:N.sessionId,currentFlow:L.currentFlow,googleScopesString:Z,linkingSessionSerialized:L.session.serialize(),consentLanguageKeys:N.consentLanguageKeys,callerState:L.callerState,dynamicUrlParameters:N.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(S=N.partnerConfigMinReadTimestamp)==null?void 0:S.serialize()}};
sVw=function(L){var Z=L.googleScopes!==void 0?Array.from(L.googleScopes).join(","):"";I95(e_v(L,Z));Z=dVk(L);return Z===null?Promise.resolve(a9y):Z.start().then(function(N){var S,u=(S=N.link)==null?void 0:S.consistencyKey;return N.statusCode===1&&L.googleScopes!==void 0&&L.googleScopes.size>0&&u!==void 0?(S=L.flowParams,h_q(S.serviceId,S.sessionId,L.googleScopes,u,S.galService,L.config,N)):N})};
jVP=function(L){var Z=dVk(L);return Z===null?Promise.resolve($m({statusCode:7,statusMessage:"Failed to create flow object"},L.callerState)):Z.complete().then(function(N){var S,u=(S=N.link)==null?void 0:S.consistencyKey;return N.statusCode===1&&L.googleScopes!==void 0&&L.googleScopes.size>0&&u!==void 0?(S=L.flowParams,h_q(S.serviceId,S.sessionId,L.googleScopes,u,S.galService,L.config,N)):$m(N,L.callerState)},function(N){return $m({statusCode:12,
statusMessage:"Failed to complete the flow: "+N.message},L.callerState)})};
h_q=function(L,Z,N,S,u,T,W){return E0m(u,{serviceId:L,sessionId:Z,googleScopes:N,consistencyKey:S}).then(function(){return W},function(V){return u.deleteLink({serviceId:L,
sessionId:Z,accountLinkingEntryPoint:T.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+V.message}},function(M){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+M.message}})})};
dVk=function(L){switch(L.currentFlow){case 1:var Z=L.flowParams;L=_.lp(L.session,P4v,1);return DV.createOAuthFlow(Z,L);case 2:case 3:return Z=L.flowParams,L=_.lp(L.session,pQs,6),lE.createStreamlinedFlow(Z,L);default:return null}};
z_8=function(L,Z){L===2&&(L=3);var N=0;vP.indexOf(L)!==-1&&(N=vP.indexOf(L)+1);for(L=N;L<vP.length;L++)if(Z.has(vP[L]))return vP[L]};
C4v=function(L){var Z=L.serviceId;var N=L.sessionId;var S=L.config;var u=L.galService;var T=L.capabilities;var W=L.scopes;var V=L.loginHint;var M=L.callerState;var G=L.consentLanguageKeys;var D=L.linkName;var l=L.dynamicUrlParameters;var v=L.partnerConfigMinReadTimestamp;L=S.dataUsageNoticeConfig?S.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return u.startLinkingSession({serviceId:Z,sessionId:N,capabilities:T,scopes:W,loginHint:V,callerState:M,supportedFlows:mVk(S.supportedFlows),completionUrl:S.completionUrl,
accountLinkingEntryPoint:S.accountLinkingEntryPoint,consentLanguageKeys:G,dataUsageNoticeConfig:L,linkName:D,dynamicUrlParameters:l,partnerConfigMinReadTimestamp:v}).then(function(R){return new JSy(Z,N,S,u,R,void 0,M,G,l,v)})};
B9g=function(L,Z,N){var S=(new rSm).getSession(L);if(S===null)return Promise.resolve({statusCode:2});QVm(L);var u=XQq(S.linkingSessionSerialized),T=S.googleScopesString!==""&&S.googleScopesString!==void 0?new Set(S.googleScopesString.split(",")):void 0,W=S.partnerConfigMinReadTimestampSerialized?ASq(S.partnerConfigMinReadTimestampSerialized):void 0;return HVq(new JSy(L,S.sessionId,Z,N,u,T,S.callerState,S.consentLanguageKeys,S.dynamicUrlParameters,W),S.currentFlow,S.consentLanguageKeys)};
I95=function(L){var Z=new rSm;Z.storage!==null&&Z.storage.set("SAVED_SESSION",L)};
QVm=function(L){var Z=new rSm;if(Z.storage!==null){var N=Z.storage.get("SAVED_SESSION");N!==void 0&&N.serviceId===L&&Z.storage.remove("SAVED_SESSION")}};
mVk=function(L){var Z=new Set;L=_.O(L);for(var N=L.next();!N.done;N=L.next())N=N.value,N!==1&&xV0.has(N)&&Z.add(xV0.get(N));return Z};
$m=function(L,Z){Z!==void 0&&(L.callerState=Z);return L};
qCy=function(L){switch(L){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
Nm8=function(L){return new LKY(L,new Zl0(L))};
uMw=function(L,Z){Z=Z===void 0?!1:Z;var N=document.createElement("div");L&&(N.style.transform="scaleX(-1)");N.style.backgroundColor=Z?"rgba(138,180,248,.24)":"#e8f0fe";N.style.height="4px";N.style.overflow="hidden";N.style.position="absolute";N.style.top="0";N.style.width="100%";N.style.zIndex="1500";N.setAttribute("aria-label","Loading");N.setAttribute("aria-live","polite");L=document.createElement("style");L.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  }";
N.appendChild(L);L=SSm();L.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";L.style.left="-145.166611%";var S=il0(Z);S.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";L.appendChild(S);N.appendChild(L);L=SSm();L.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";L.style.left="-54.888891%";Z=il0(Z);Z.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
L.appendChild(Z);N.appendChild(L);return N};
SSm=function(){var L=document.createElement("div");L.style.height="100%";L.style.position="absolute";L.style.transformOrigin="top left";L.style.width="100%";return L};
il0=function(L){var Z=document.createElement("span");Z.style.borderTop=L?"4px solid #669df6":"4px solid #4285f4";Z.style.display="inline-block";Z.style.position="absolute";Z.style.width="100%";return Z};
Tmy=function(L){return L==null?void 0:_.FmM(L).valueOf()};
VC5=function(L){var Z=document.body,N=!1,S=function(){N||(N=!0,tCm(u,T),setTimeout(function(){Z.removeChild(T);Z.removeChild(u)},150))},u=Olv(L,getComputedStyle(Z).direction==="rtl",S),T=WKv(S);
tCm(u,T);Z.appendChild(T);Z.appendChild(u);window.requestAnimationFrame(function(){T.style.opacity="1";u.style.opacity="1";u.style.transform="translate(-50%, -50%) scale(1)";u.children[0].focus()})};
Olv=function(L,Z,N){var S=document.createElement("div");S.style.position="fixed";S.style.alignItems="center";S.style.backgroundColor=L?"rgb(32, 33, 36)":"white";S.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";S.style.display="flex";S.style.flexDirection="column";S.style.justifyContent="center";S.style.left="50%";S.style.top="50%";S.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";S.style.zIndex="2002";document.body.clientWidth>=
660?(S.style.borderRadius="8px",S.style.minHeight="220px",S.style.maxHeight="90%",S.style.maxWidth="90%",S.style.minWidth="540px"):(S.style.height="100%",S.style.width="100%");S.setAttribute("aria-label","Error");S.setAttribute("aria-modal","true");S.setAttribute("role","alertdialog");S.addEventListener("keydown",function(T){T.key==="Escape"&&N()});
Z=blw(L,Z,N);S.appendChild(MCg(Z));S.appendChild(Z);var u=document.createElement("img");u.src=L?"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";u.style.height="72px";u.style.width="72px";u.style.color="#9aa0a6";u.setAttribute("alt","");S.appendChild(u);u=document.createElement("h1");u.textContent="Something went wrong.  Try again.";
u.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";u.style.lineHeight="24px";u.style.fontSize="16px";u.style.textAlign="center";u.style.letterSpacing="0.1px";u.style.color=L?"rgb(232,234,237)":"#3c4043";S.appendChild(u);S.appendChild(MCg(Z));return S};
blw=function(L,Z,N){var S=document.createElement("button");S.style.backgroundColor="transparent";S.style.border="none";S.style.borderRadius="50%";S.style.cursor="pointer";S.style.outline="none";S.style.padding="12px";S.setAttribute("aria-label","Close dialog");S.style.position="absolute";S.style.top="0";Z?S.style.right="0":S.style.left="0";S.addEventListener("focus",function(){S.style.backgroundColor=L?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
S.addEventListener("blur",function(){S.style.backgroundColor="transparent"});
S.addEventListener("mouseenter",function(){S.style.backgroundColor=L?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
S.addEventListener("mouseleave",function(){S.style.backgroundColor="transparent"});
S.addEventListener("click",N);S.addEventListener("keydown",function(u){u.key!=="Enter"&&u.key!=="Space"||N()});
Z=document.createElement("img");Z.src=L?"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";Z.style.display="block";Z.style.height="24px";Z.style.width="24px";Z.setAttribute("alt","");S.appendChild(Z);return S};
MCg=function(L){var Z=document.createElement("div");Z.setAttribute("tabindex","0");Z.setAttribute("aria-hidden","true");Z.addEventListener("focus",function(){return void L.focus()});
return Z};
WKv=function(L){var Z=document.createElement("div");Z.style.backgroundColor="rgba(32,33,36,0.6)";Z.style.bottom="0";Z.style.left="0";Z.style.position="fixed";Z.style.right="0";Z.style.top="0";Z.style.transition=" opacity 150 ms linear";Z.style.zIndex="2001";Z.addEventListener("click",L);return Z};
tCm=function(L,Z){Z.style.opacity="0";L.style.opacity="0";L.style.transform="translate(-50%, -50%) scale(0.8)"};
g90=function(L,Z){L.sandbox&&L.sandbox.add&&(L.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),L.sandbox.add("allow-downloads"));L.src=Z};
oo=function(L){Gqv.call(this,L)};
Ro=function(L,Z){Z=Z===void 0?!1:Z;this.parsedImageUrl_=null;L instanceof FKQ||($rv==void 0&&($rv=new Drw),L=$rv.parse(L.toString(),Z));L=this.parsedImageUrl_=L;L.JSC$19854_parsedOptions_==void 0&&((Z=L.getOptions())||(Z=""),L.JSC$19854_parsedOptions_=(new l7y).parse(Z));Gqv.call(this,L.JSC$19854_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;L=this.parsedImageUrl_;Z=L.uri_.JSC$10031_port_;this.JSC$19856_domain_=L.uri_.JSC$10031_domain_+(Z?":"+Z:"");this.JSC$19856_query_=
this.parsedImageUrl_.uri_.JSC$10031_queryData_.toString()};
v95=function(L){this.mode=4;this.data=L;this.parsedData=[];L=0;for(var Z=this.data.length;L<Z;L++){var N=[],S=this.data.charCodeAt(L);S>65536?(N[0]=240|(S&1835008)>>>18,N[1]=128|(S&258048)>>>12,N[2]=128|(S&4032)>>>6,N[3]=128|S&63):S>2048?(N[0]=224|(S&61440)>>>12,N[1]=128|(S&4032)>>>6,N[2]=128|S&63):S>128?(N[0]=192|(S&1984)>>>6,N[1]=128|S&63):N[0]=S;this.parsedData.push(N)}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))};
o9s=function(L){this.typeNumber=0;this.errorCorrectLevel=L===void 0?2:L;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
cP=function(L,Z){if(L.length==void 0)throw Error("Ok`"+L.length+"`"+Z);for(var N=0;N<L.length&&L[N]==0;)N++;this.num=Array(L.length-N+Z);for(Z=0;Z<L.length-N;Z++)this.num[Z]=L[Z+N]};
Rsq=function(L,Z){this.totalCount=L;this.dataCount=Z};
cuq=function(){this.buffer=[];this.length=0};
n9v=function(){var L=!1;if(_.ntt()){L=_.vs();var Z="";_.kBw()?(Z=/Windows (?:NT|Phone) ([0-9.]+)/,Z=(L=Z.exec(L))?L[1]:"0.0"):_.IF()?(Z=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,Z=(L=Z.exec(L))&&L[1].replace(/_/g,".")):_.f0A()?(Z=/Mac OS X ([0-9_.]+)/,Z=(L=Z.exec(L))?L[1].replace(/_/g,"."):"10"):_.ML(_.vs(),"KaiOS")?(Z=/(?:KaiOS)\/(\S+)/i,Z=(L=Z.exec(L))&&L[1]):_.ntt()?(Z=/Android\s+([^\);]+)(\)|;)/,Z=(L=Z.exec(L))&&L[1]):_.yxw()&&(Z=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,Z=(L=Z.exec(L))&&L[1]);L=
Z||""}return L};
Urv=function(L,Z){this.JSC$19879__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(Z)for(var N in Z)this.JSC$19879__htOption[N]=Z[N];this.JSC$19879__htOption.useSVG&&(KK8=f7q);this.JSC$19879__android=n9v();this.JSC$19879__el=L;this._oQRCode=null;this._oDrawing=new KK8(this.JSC$19879__el,this.JSC$19879__htOption);this.JSC$19879__htOption.text&&(L=this.JSC$19879__htOption.text,this._oQRCode=new o9s(this.JSC$19879__htOption.correctLevel),kqv(this._oQRCode,
L),Z=this._oQRCode,yu0(Z,!1,wTq(Z)),this.JSC$19879__el.title=L,this._oDrawing.draw(this._oQRCode),this.makeImage())};
YSg=function(L,Z,N,S,u){L.save();var T=new Path2D;T.roundRect(Z,N,S*7,S*7,S*2);T.roundRect(Z+S,N+S,S*5,S*5,S*1.3);T.roundRect(Z+2*S,N+2*S,S*3,S*3,S);L.clip(T,"evenodd");L.fillStyle=u;L.fillRect(0,0,L.canvas.width,L.canvas.height);L.restore()};
nE=function(L,Z){if(typeof L!=="function")throw Error("Rk");return _.iH.setTimeout(function(){L()},Z)};
KE=function(){};
I75=function(L,Z,N,S,u){(new KE).debug("TestLoadImageWithRetries: "+u);if(S==0)N(!1);else{var T=u||0;S--;ess(L,Z,function(W){W?N(!0):_.iH.setTimeout(function(){I75(L,Z,N,S,T)},T)})}};
ess=function(L,Z,N){var S=new KE;S.debug("TestLoadImage: loading "+L);var u=new Image;u.onload=function(){try{S.debug("TestLoadImage: loaded"),drv(u),N(!0)}catch(T){}};
u.onerror=function(){try{S.debug("TestLoadImage: error"),drv(u),N(!1)}catch(T){}};
u.onabort=function(){try{S.debug("TestLoadImage: abort"),drv(u),N(!1)}catch(T){}};
u.ontimeout=function(){try{S.debug("TestLoadImage: timeout"),drv(u),N(!1)}catch(T){}};
_.iH.setTimeout(function(){if(u.ontimeout)u.ontimeout()},Z);
u.src=L};
drv=function(L){L.onload=null;L.onerror=null;L.onabort=null;L.ontimeout=null};
a78=function(){this.front_=[];this.back_=[]};
hsv=function(L,Z){this.action=L;this.params=Z||{}};
sby=function(L,Z){_.ag.call(this);this.delay_=new _.s_(this.JSC$20005_onTick_,0,this);_.Ky(this,this.delay_);this.JSC$20003_interval_=5E3;this.nextTickTime_=0;if(typeof L==="function")Z&&(L=(0,_.hr)(L,Z));else if(L&&typeof L.handleEvent==="function")L=(0,_.hr)(L.handleEvent,L);else throw Error("ya");this.JSC$20005_listener_=L};
fE=function(L,Z,N,S,u,T,W,V,M,G,D,l,v,R){N=N===void 0?!1:N;S=S===void 0?function(){return""}:S;
u=u===void 0?!1:u;T=T===void 0?!1:T;W=W===void 0?!1:W;V=V===void 0?function(){return _.xP({})}:V;
M=M===void 0?!1:M;D=D===void 0?!1:D;l=l===void 0?!1:l;v=v===void 0?!1:v;R=R===void 0?!1:R;this.JSC$20006_pathPrefix_=L;this.defaultQueryParams_=Z;this.pubsub_=new _.Ur;this.reconnectTimer_=new sby(this.safeReconnect_,this);this.JSC$20006_channel_=null;this.JSC$20006_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20006_pendingMessages_=[];this.enableAsyncTest_=N;this.JSC$20006_getXsrfToken_=S;this.useAsyncBrowserChannelHandler_=T;this.getAuthorizationHeader_=
V;this.getAuthorizationHeaderSync_=G;this.enableCachedUpdateAuthorizationHeader_=W;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.xP();this.enableLoungeTokenRefresh_=u;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=M;this.disableMdxAuthForNonPlaybackMessages_=D;this.disableMdxAuthForAdMessages_=l;this.enableMdxAuthForConnectionOnly_=v;this.disableMdxAuthForShortsMessages_=R;this.JSC$20006_channelOpenedCounter=new jb5;this.JSC$20006_channelClosedCounter=new E9g;this.channelMessageSentCounter=
new PjY;this.JSC$20006_channelMessageReceivedCounter=new pTm;this.JSC$20006_channelErrorCounter=new zsP;this.pendingMapsOnClosedCounter=new mrs;this.undeliveredMapsOnClosedCounter=new Juq};
km=function(L){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;L=L||document.location.href;var Z=Number(_.Or(L)[4]||null)||"";Z&&(this.port=":"+Z);this.domain=_.WW(L)||"";L=_.vs();L.search("MSIE")>=0&&_.$t(L.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
yS=function(L){L=L||{};this.name=L.name||"";this.id=L.id||L.screenId||"";this.token=L.token||L.loungeToken||"";this.uuid=L.uuid||L.dialId||"";this.idType=L.screenIdType||"normal";this.secret=L.screenIdSecret||""};
Cj5=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(L){var Z=Math.random()*16|0;return(L=="x"?Z:Z&3|8).toString(16)})};
ruc=function(L){return _.px(L,function(Z){return{key:Z.id,name:Z.name}})};
Qbv=function(L,Z){return _.hx(L,function(N){return N||Z?!N!=!Z?!1:N.id==Z.id:!0})};
U1=function(L,Z){return _.hx(L,function(N){return wW(N,Z)})};
xr8=function(){var L=XT5(),Z=Auk();if(HlQ()){var N=L,S=_.sFA(N,Z);S<0&&_.dLx(N,-(S+1),0,Z)}L=Bms(L);if(L.length==0)try{_.aWP("remote_sid")}catch(u){}else try{_.Ie("remote_sid",L.join(","),-1)}catch(u){}};
XT5=function(){var L=_.G7("yt-remote-connected-devices")||[];L.sort(_.hAL);return L};
Bms=function(L){if(L.length==0)return[];var Z=L[0].indexOf("#"),N=Z==-1?L[0]:L[0].substring(0,Z);return _.px(L,function(S,u){return u==0?S:S.substring(N.length)})};
qSv=function(L){_.gr("yt-remote-connected-devices",L,86400)};
Auk=function(){if(L4w)return L4w;var L=_.G7("yt-remote-device-id");L||(L=Cj5(),_.gr("yt-remote-device-id",L,31536E3));for(var Z=XT5(),N=1,S=L;_.p1(Z,S);)N++,S=L+"#"+N;return L4w=S};
Zmm=function(){return _.G7("yt-remote-session-browser-channel")};
HlQ=function(){return _.G7("yt-remote-session-screen-id")};
imy=function(L){L.length>5&&(L=L.slice(L.length-5));var Z=_.px(N3Q(),function(S){return S.loungeToken}),N=_.px(L,function(S){return S.loungeToken});
_.m1f(N,function(S){return!_.p1(Z,S)})&&Sim();
_.gr("yt-remote-local-screens",L,31536E3)};
N3Q=function(){return _.G7("yt-remote-local-screens")||[]};
Sim=function(){_.gr("yt-remote-lounge-token-expiration",!0,86400)};
Ym=function(L){L||(_.FB("yt-remote-session-screen-id"),_.FB("yt-remote-session-video-id"));xr8();L=XT5();_.zB(L,Auk());qSv(L)};
T3m=function(){uT0();return e$?!!e$.get("yt-remote-use-staging-server"):!1};
uT0=function(){if(!e$){var L=_.Jqs();L&&(e$=new _.jZ(L))}};
VyY=function(L,Z,N,S,u){N=N===void 0?function(){return""}:N;
var T=function(){return new fE(Io(L,"/bc"),Z,!1,N,S)};
return _.c("enable_mdx_web_channel_desktop")?new ty5(function(){return new Om5(Io(L,"/wc"),Z,N)}):new W4Y(T,u)};
Gnv=function(){var L=bmm;Myq();dW.push(L);gom()};
ao=function(L,Z){Myq();var N=F4g(L,String(Z));dW.length==0?$3q(N):(gom(),_.SZ(dW,function(S){S(N)}))};
hn=function(L){ao("CP",L)};
Myq=function(){dW||(dW=_.LZ("yt.mdx.remote.debug.handlers_")||[],_.bp("yt.mdx.remote.debug.handlers_",dW))};
$3q=function(L){var Z=(s1+1)%50;s1=Z;D3P[Z]=L;l2s||(l2s=Z==49)};
gom=function(){var L=dW;if(D3P[0]){var Z=l2s?s1:-1,N={};do N={record$jscomp$15:void 0},Z=(Z+1)%50,N.record$jscomp$15=D3P[Z],_.SZ(L,function(S){return function(u){u(S.record$jscomp$15)}}(N));
while(Z!=s1);D3P=Array(50);s1=-1;l2s=!1}};
F4g=function(L,Z){var N=(Date.now()-vos)/1E3;N.toFixed&&(N=N.toFixed(3));var S=[];S.push("[",N+"s","] ");S.push("[","yt.mdx.remote","] ");S.push(L+": "+Z,"\n");return S.join("")};
j$=function(L){_.zO.call(this);this.JSC$20030_logName_=L;this.screens=[]};
PP=function(L){j$.call(this,"LocalScreenService");this.JSC$20037_http_=L;this.loungeTokenRefreshTimer_=NaN;E1(this);this.info("Initializing with "+ooq(this.screens))};
pE=function(L,Z){Z=Z===void 0?!1:Z;j$.call(this,"ScreenService");this.JSC$20043_http_=L;this.disableAutomaticScreenCache_=Z;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};RU0(this)};
zH=function(L,Z,N){_.zO.call(this);this.JSC$20047_logName_=N;this.JSC$20047_screenService_=L;this.receiver_=Z;this.screen_=null};
jLs=function(L,Z,N){N.disableCastApi?mD("Cannot initialize because disabled by Mdx config."):cZk()?noy(L,N)&&(K40(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?f2s(Z):(window.__onGCastApiAvailable=function(S,u){S?f2s(Z):(Jn("Failed to load cast API: "+u),kny(!1),K40(!1),_.FB("yt-remote-cast-available"),_.FB("yt-remote-cast-receiver"),yZm(),Z(!1))},N.loadCastApiSetupScript?_.Uo(wtg):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
U38()>=60&&Yis():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?eUY():U38()>=89?I2w():(d3s(),a25(hUc.map(sLg))))):mD("Cannot initialize because not running Chrome")};
yZm=function(){mD("dispose");var L=CE();L&&L.dispose();_.bp("yt.mdx.remote.cloudview.instance_",null);Eoc(!1);_.cCh(PFm);PFm.length=0};
pt5=function(){return!!_.G7("yt-remote-cast-installed")};
zUm=function(){var L=_.G7("yt-remote-cast-receiver");return L?L.friendlyName:null};
m3v=function(){mD("clearCurrentReceiver");_.FB("yt-remote-cast-receiver")};
JZy=function(){return pt5()?CE()?CE().getCastSession():(Jn("getCastSelector: Cast is not initialized."),null):(Jn("getCastSelector: Cast API is not installed!"),null)};
rZm=function(L,Z){CFw()?CE().setConnectedScreenStatus(L,Z):Jn("setConnectedScreenStatus called before ready.")};
cZk=function(){var L=_.vs().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.NQ||L};
noy=function(L,Z){var N=!1;CE()||(L=new rW(L,Z),L.subscribe("yt-remote-cast2-availability-change",function(S){_.gr("yt-remote-cast-available",S);LE("yt-remote-cast2-availability-change",S)}),L.subscribe("yt-remote-cast2-receiver-selected",function(S){mD("onReceiverSelected: "+S.friendlyName);
_.gr("yt-remote-cast-receiver",S);LE("yt-remote-cast2-receiver-selected",S)}),L.subscribe("yt-remote-cast2-receiver-resumed",function(S){mD("onReceiverResumed: "+S.friendlyName);
_.gr("yt-remote-cast-receiver",S);LE("yt-remote-cast2-receiver-resumed",S)}),L.subscribe("yt-remote-cast2-session-change",function(S){mD("onSessionChange: "+QL0(S));
S||_.FB("yt-remote-cast-receiver");LE("yt-remote-cast2-session-change",S)}),_.bp("yt.mdx.remote.cloudview.instance_",L),N=!0);
mD("cloudview.createSingleton_: "+N);return N};
CE=function(){return _.LZ("yt.mdx.remote.cloudview.instance_")};
f2s=function(L){kny(!0);K40(!1);CE().init(!1,function(Z){Z?(Eoc(!0),_.nNt("yt-remote-cast2-api-ready")):(Jn("Failed to initialize cast API."),kny(!1),_.FB("yt-remote-cast-available"),_.FB("yt-remote-cast-receiver"),yZm());L(Z)})};
mD=function(L){ao("cloudview",L)};
Jn=function(L){ao("cloudview",L)};
kny=function(L){mD("setCastInstalled_ "+L);_.gr("yt-remote-cast-installed",L)};
CFw=function(){return!!_.LZ("yt.mdx.remote.cloudview.apiReady_")};
Eoc=function(L){mD("setApiReady_ "+L);_.bp("yt.mdx.remote.cloudview.apiReady_",L)};
K40=function(L){_.bp("yt.mdx.remote.cloudview.initializing_",L)};
QS=function(L){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(L)};
LXy=function(L){uT0();if(!e$||!e$.get("yt-remote-disable-remote-module-for-dev")){L=_.X7("MDX_CONFIG")||L;Gl8();xr8();XF||(XF=new km(L?L.loungeApiHost:void 0),T3m()&&(XF.basePath="/api/loungedev"));An||(An=_.LZ("yt.mdx.remote.deferredProxies_")||[],_.bp("yt.mdx.remote.deferredProxies_",An));XtY();var Z=HP();if(!Z){var N=new pE(XF,L?L.disableAutomaticScreenCache||!1:!1);_.bp("yt.mdx.remote.screenService_",N);Z=HP();var S={};L&&(S={appId:L.appId,disableDial:L.disableDial,theme:L.theme,loadCastApiSetupScript:L.loadCastApiSetupScript,
disableCastApi:L.disableCastApi,enableDialLoungeToken:L.enableDialLoungeToken,enableCastLoungeToken:L.enableCastLoungeToken,forceMirroring:L.forceMirroring});_.bp("yt.mdx.remote.enableConnectWithInitialState_",L?L.enableConnectWithInitialState||!1:!1);jLs(N,function(T){T?BP()&&rZm(BP(),"YouTube TV"):N.subscribe("onlineScreenChange",function(){LE("yt-remote-receiver-availability-change")})},S)}if(L&&!_.LZ("yt.mdx.remote.initialized_")){_.bp("yt.mdx.remote.initialized_",!0);
xm("Initializing: "+(0,_.eJ)(L));qs.push(_.vK("yt-remote-cast2-api-ready",function(){LE("yt-remote-api-ready")}));
qs.push(_.vK("yt-remote-cast2-availability-change",function(){LE("yt-remote-receiver-availability-change")}));
qs.push(_.vK("yt-remote-cast2-receiver-selected",function(){AZw();LE("yt-remote-auto-connect","cast-selector-receiver")}));
qs.push(_.vK("yt-remote-cast2-receiver-resumed",function(){LE("yt-remote-receiver-resumed","cast-selector-receiver")}));
qs.push(_.vK("yt-remote-cast2-session-change",Hmk));qs.push(_.vK("yt-remote-connection-change",function(T){T?rZm(BP(),"YouTube TV"):B3q()||(rZm(null,null),m3v())}));
qs.push(_.vK("yt-remote-cast2-session-failed",function(){LE("yt-remote-connection-failed")}));
S=x3g();L.isAuto&&(S.id+="#dial");var u=L.capabilities||[];u.length>0&&(S.capabilities=u);S.name=L.device;S.app=L.app;(L=L.theme)&&(S.theme=L);xm(" -- with channel params: "+(0,_.eJ)(S));S?(_.gr("yt-remote-session-app",S.app),_.gr("yt-remote-session-name",S.name)):(_.FB("yt-remote-session-app"),_.FB("yt-remote-session-name"));_.bp("yt.mdx.remote.channelParams_",S);Z.start();BP()||qiq()}}};
Ncv=function(){var L=HP().instance_.$_gos();var Z=ZMs();Z&&Lg()&&(Qbv(L,Z)||L.push(Z));return ruc(L)};
Sc8=function(){var L=Ncv(),Z=ZMs();Z||(Z=B3q());return _.hx(L,function(N){return Z&&wW(Z,N.key)?!0:!1})};
ZMs=function(){var L=BP();if(!L)return null;var Z=HP().getScreens();return U1(Z,L)};
Hmk=function(L){xm("remote.onCastSessionChange_: "+QL0(L));if(L){var Z=ZMs();if(Z&&Z.id==L.id){if(rZm(Z.id,"YouTube TV"),L.idType=="shortLived"&&(L=L.token))iMq&&(iMq.token=L),(Z=Lg())&&Z.setLoungeToken(L)}else Z&&uQm(),Tc0(L,1)}else Lg()&&uQm()};
uQm=function(){CFw()?CE().stopSession():Jn("stopSession called before API ready.");var L=Lg();L&&(L.disconnect(1),tWv(null))};
OMs=function(){var L=Lg();return L&&L.getProxyState()!=3?new Zo(Lg(),void 0):null};
xm=function(L){ao("remote",L)};
HP=function(){if(!WXm){var L=_.LZ("yt.mdx.remote.screenService_");WXm=L?new VWq(L):null}return WXm};
BP=function(){return _.LZ("yt.mdx.remote.currentScreenId_")};
bMy=function(L){_.bp("yt.mdx.remote.currentScreenId_",L)};
AZw=function(){_.bp("yt.mdx.remote.connectData_",null)};
Lg=function(){return _.LZ("yt.mdx.remote.connection_")};
tWv=function(L){var Z=Lg();AZw();L||bMy("");_.bp("yt.mdx.remote.connection_",L);An&&(_.SZ(An,function(N){N(L)}),An.length=0);
Z&&!L?LE("yt-remote-connection-change",!1):!Z&&L&&LE("yt-remote-connection-change",!0)};
B3q=function(){var L=HlQ();if(!L)return null;var Z=HP();if(!Z)return null;Z=Z.getScreens();return U1(Z,L)};
Tc0=function(L,Z){MWv?iMq=L:(bMy(L.id),L=new NS(XF,L,x3g(),_.LZ("yt.mdx.remote.enableConnectWithInitialState_")||!1),L.connect(Z,_.LZ("yt.mdx.remote.connectData_")),L.subscribe("beforeDisconnect",function(N){LE("yt-remote-before-disconnect",N)}),L.subscribe("beforeDispose",function(){Lg()&&tWv(null)}),L.subscribe("browserChannelAuthError",function(){var N=ZMs();
N&&N.idType=="shortLived"&&(CFw()?CE().handleBrowserChannelAuthError():Jn("refreshLoungeToken called before API ready."))}),tWv(L))};
qiq=function(){var L=B3q();L?(xm("Resume connection to: "+QL0(L)),Tc0(L,0)):(Ym(),m3v(),xm("Skipping connecting because no session screen found."))};
XtY=function(){var L=x3g();if(_.Py.isEmpty(L)){L=Auk();var Z=_.G7("yt-remote-session-name")||"",N=_.G7("yt-remote-session-app")||"";L={device:"REMOTE_CONTROL",id:L,name:Z,app:N,mdxVersion:3};L.authuser=String(_.X7("SESSION_INDEX","0"));(Z=_.X7("DELEGATED_SESSION_ID"))&&(L.pageId=String(Z));_.bp("yt.mdx.remote.channelParams_",L)}};
x3g=function(){return _.LZ("yt.mdx.remote.channelParams_")||{}};
gMq=function(){var L,Z;return _.b(function(N){if(N.nextAddress==1)return(_.uZB()||_.c("use_new_nwl"))&&_.ZYF().isNetworkAvailable()?N.yield(_.MO(),2):N.return();if(N.nextAddress!=3)return(L=N.yieldResult)?N.yield(PAv(L),3):N.return();Z=N.yieldResult;if(!Z.length)return N.return();Z.forEach(function(S){var u={timestamp:S.timestamp};S=S.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:S.appShellAssetLoadReport,options:u}:S.clientError?{payloadName:"clientError",payload:S.clientError,
options:u}:void 0;S&&_.mS(S.payloadName,S.payload,S.options)});
Z.length===100&&_.ro.addLowPriorityJob(gMq);_.w7(N)})};
G1k=function(L){if(L.playerResponse){if(L=L.playerResponse,L.messages&&L.messages.length>0&&(L=L.messages.find(function(Z){return!(!Z||!Z.mealbarPromoRenderer)}))&&L.mealbarPromoRenderer)return L.mealbarPromoRenderer}else if(L.response&&(L=L.response)&&L.overlay&&L.overlay.mealbarPromoRenderer)return L.overlay.mealbarPromoRenderer};
FX5=function(L){if(L.response){var Z=L.response;if(Z&&Z.overlay&&Z.overlay.tooltipRenderer)return Z.overlay.tooltipRenderer}if(L.playerResponse&&(L=L.playerResponse,L.messages&&L.messages.length>0&&(L=L.messages.find(function(N){return!(!N||!N.tooltipRenderer)}))&&L.tooltipRenderer))return L.tooltipRenderer};
DH8=function(L){if(!$H8&&(L=L||_.X7("ZWIEBACK_PING_URLS"))&&L.length){$H8=!0;for(var Z=0;Z<L.length;Z++)_.NC(L[Z])}};
vMk=function(L){if(_.Py.get(_.X7("PLAYER_VARS",{}),"privembed",!1)!="1"){L&&Ykk();try{lKy().then(function(){},function(){}),_.cW(vMk,18E5)}catch(Z){_.H8(Z)}}};
oMm=function(){var L=_.tq(),Z=L.getFlag(119),N=window.devicePixelRatio>1;document.body&&_.Cc(document.body,"exp-invert-logo")&&(N&&!_.Cc(document.body,"inverted-hdpi")?_.ER(document.body,"inverted-hdpi"):!N&&_.Cc(document.body,"inverted-hdpi")&&_.sR(document.body,"inverted-hdpi"));Z!=N&&(_.OT(0,119,N),L.save())};
Rxs=function(L){return L.filter(function(Z){return"ypcGetCartEndpoint"in Z||"ypcFixInstrumentEndpoint"in Z})};
c9v=function(L){return L.filter(function(Z){return!_.n(Z,_.bNt)})};
KXw=function(L,Z){var N,S,u,T,W,V,M;_.b(function(G){switch(G.nextAddress){case 1:N=_.eD.getInstance();S=_.qd.instance;u=_.IV.instance;if(!u)return nMv(L,S,Z),G.return();_.RS(G,2);L.onLoadingCommand&&S.resolveCommand(L.onLoadingCommand);return G.yield(N.getCurrentPositionFromGeolocation(),4);case 4:T=G.yieldResult;if(!L.resolveLocationCommand){G.jumpTo(5);break}W=N.createLocationInfo(T);return G.yield(_.aV(u,L.resolveLocationCommand,{locationInfo:W}),6);case 6:V=G.yieldResult;if(!V||"error"in V&&V.error||
V.errorMetadata)return nMv(L,S,Z),G.return();var D;if(V==null?0:(D=V.onResponseReceivedActions)==null?0:D.length){D=_.O(V.onResponseReceivedActions);for(var l=D.next();!l.done;l=D.next())S.resolveCommand(l.value)}(_.n(L.onSuccessCommand,_.so)||_.n(L.onSuccessCommand,_.iv))&&_.QT(Z.hostElement,"yt-navigate",{endpoint:L.onSuccessCommand,reload:!0});case 5:_.SX(G,0);break;case 2:M=_.yd(G);if(M instanceof GeolocationPositionError&&M.code===GeolocationPositionError.PERMISSION_DENIED)return L.onDeniedCommand&&
S.resolveCommand(L.onDeniedCommand),G.return();nMv(L,S,Z);_.w7(G)}})};
nMv=function(L,Z,N){L.onFailureCommand&&(Z.resolveCommand(L.onFailureCommand),_.XJ(N.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
k10=function(L,Z){var N=_.n(L,_.hys);if(N&&Z){L=N.videoIds||[N.videoId];var S;Z=(S=_.QT(Z,"yt-lockup-requested",{videoIds:L}).detail)==null?void 0:S.returnValue;var u;N.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?u=Z?Z:L.map(function(T){return{videoId:T,navigationEndpoint:N.videoCommand}}):Z&&(u=Z);
u&&(S=u.map(function(T){var W=Object,V=W.assign;var M=T.navigationEndpoint;if(!_.n(M,_.Ox)){var G=_.n(M,_.so);if(G){if(delete G.index,delete G.playlistId,G=_.n(M==null?void 0:M.commandMetadata,_.Nj),G==null?0:G.url){var D=G.url;D=_.zo(D,"list");D=_.zo(D,"index");G.url=D}}else M=void 0}return V.call(W,{},T,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:M})}),fKc(S,N))}};
y98=function(L){var Z=_.te();if(L=_.n(L,_.s15))L.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&Z.clearQueue(),L.closeMiniplayer&&_.GR().resolve(_.yk).close(!0)};
UHv=function(L){wVw(_.te(),L)};
YcP=function(L){var Z;(L=(Z=_.n(L,_.d90))==null?void 0:Z.setVideoIds)&&L.forEach(function(N){_.fOL(_.te(),N)})};
IK5=function(L){exq(_.te(),L)};
dHs=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(L){return!1}};
aKY=function(L){var Z=["h","m","s"],N=_.mh(Z);N.reverse();var S={};L=(L.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(W){var V=(W.match(/[hms]/)||[""])[0];return V?(S[V]=parseInt(W.match(/\d+/)[0],10),!1):!0});
for(L.reverse();L.length&&N.length;){var u=N.shift();u in S||(S[u]=parseInt(L.shift(),10))}if(L.length||S.s>59||S.m>59||S.h>9)return null;var T="";Z.forEach(function(W){S[W]&&(T+=""+S[W]+W)});
return T||null};
hxv=function(L,Z){var N=_.i2h(Z,{},L,!0);return new Promise(function(S,u){N.listenOnce("n",function(){u(Error("Cl`"+N.JSC$29730_getErrorDescription()))});
N.listenOnce("l",function(){var T=N.getResponseCode();if(T!==200)u(Error("Dl`"+Z+"`"+L.type+"`"+L.size+"`"+T));else try{S(JSON.parse(N.getResponseText()).encryptedBlobId)}catch(W){u(W)}});
N.run()})};
sjk=function(L){return L.substring(L.indexOf(":")+1,L.indexOf(";"))};
jjq=function(L){return new Promise(function(Z,N){var S=new FileReader;S.onloadend=function(){try{var u=new Uint8Array(S.result);u.length<8&&N(void 0);var T=u.subarray(0,8);u="";for(var W=0;W<T.length;W++)u+=("0"+T[W].toString(16)).substr(-2);u.startsWith("ffd8ff")?Z("image/jpeg"):u.startsWith("47494638")?Z("image/gif"):u.startsWith("89504e470d0a1a0a")?Z("image/png"):u.startsWith("424d")?Z("image/bmp"):Z(void 0)}catch(V){N(V)}};
S.onerror=N;S.readAsArrayBuffer(L)})};
EMv=function(L){return new Promise(function(Z,N){var S=new Image;S.crossOrigin="anonymous";S.onload=function(){var u=document.createElement("canvas");u.width=S.naturalWidth;u.height=S.naturalHeight;var T=u.getContext("2d");if(!T)throw Error("El");T.drawImage(S,0,0);T=sjk(L);u.toBlob(function(W){W?Z(W):N()},T)};
S.src=L})};
pVv=function(L,Z){var N;if(((N=_.n(L,_.Ox))==null?void 0:N.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var S;_.QT((S=Z.hostElement)!=null?S:Z,"yt-shorts-reset");_.z2v(_.GR().resolve(_.D1),L).then(function(T){PmY(T,Z,L)})}else{var u;
_.H2((u=Z.hostElement)!=null?u:Z,[L]).then(function(T){T&&PmY(T.data,Z,L)})}};
PmY=function(L,Z,N){if(L){var S=_.n(L.replacementEndpoint,_.Ox);if(S){L.sequenceContinuation&&(S.sequenceParams=L.sequenceContinuation);var u;_.QT((u=Z.hostElement)!=null?u:Z,"yt-navigate",{endpoint:L.replacementEndpoint})}else if((L==null?void 0:L.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(L==null?0:L.watchStatus)&&_.n(L.watchStatus,_.oZh)){var T;_.QT((T=Z.hostElement)!=null?T:Z,"yt-navigate",{endpoint:N})}}};
zxk=function(L){var Z=_.GR().resolve(_.mc),N=_.Y9.currentPageTypeSelector(Z.getState())||"";Z=_.Y9.currentPageSubTypeSelector(Z.getState())||"";N=N==="ytd-browse"&&Z==="home";return _.c("web_guide_entry_enable_cache_for_non_home_pages")?(L=(L==null?void 0:L.navigationEndpoint)&&_.SD(L.navigationEndpoint)==="home",{disableCache:N&&L}):{disableCache:N}};
J9g=function(L,Z,N){if(Z!=null&&Z.isPrimary){a:{if(N&&N.length){var S=Z.formattedTitle;var u={};S&&(u.header={panelHeaderViewModel:{title:_.oX(S)}});S=[];N=_.O(N);for(var T=N.next();!T.done;T=N.next()){T=_.n(T.value,mHP);var W=void 0,V=void 0,M=((W=T)==null?0:W.formattedTitle)?_.oX((V=T)==null?void 0:V.formattedTitle):void 0;W=void 0;V=(W=T)==null?void 0:W.isPrimary;if(T&&M&&!V){M={title:M};T.navigationEndpoint&&(M.rendererContext={commandContext:{onTap:{innertubeCommand:T.navigationEndpoint}}});
W=[];var G=V=void 0;if(((V=T)==null?0:(G=V.thumbnail)==null?0:G.thumbnails)&&T.thumbnail.thumbnails.length>0){V=_.O(T.thumbnail.thumbnails);for(G=V.next();!G.done;G=V.next())W.push({url:G.value.url});M.leadingAccessory={avatarViewModel:{image:{sources:W},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(V=void 0,(V=T.icon)==null?0:V.iconType)W.push({clientResource:{imageName:T.icon.iconType||""}}),M.leadingImage={sources:W};V=W=void 0;((W=T)==null?0:(V=W.badges)==null?0:V.liveBroadcasting)?M.trailingImage=
{sources:[{clientResource:{imageName:"live"}}]}:T.count&&(M.trailingLabel={content:T.count.toString()});S.push({listItemViewModel:M})}}S.length!==0?u.content={listViewModel:{listItems:S}}:u=void 0;if(u){u={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:u}},contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT"}}};break a}}u=void 0}u&&(Z.mouseEnterEndpoint=u,Z.mouseLeaveEndpoint={hideSheetCommand:{}});L.push({guideEntryRenderer:Z})}};
Cmc=function(L){if(!L)return!1;try{if(L.host&&L.host.tagName==="YT-FORMATTED-STRING"&&L.host.id==="contenteditable-textarea"||L.nodeType===Node.ELEMENT_NODE&&L.tagName==="YTD-COMMENT-INPUT")return!0}catch(Z){return!1}return Cmc(L.parentNode)};
Sv=function(L){return L?L.tagName==="A"&&L.href&&L.classList.contains("yt-simple-endpoint"):!1};
r9k=function(L){return L?L.tagName==="IMG"&&L.classList.contains("emoji"):!1};
Qjw=function(L,Z,N){if(!L)return null;var S=Sv(L);if(S&&N)return Z=L.pathname.substring(L.pathname.indexOf("/channel/")+9),document.createTextNode("@"+Z);if(S&&!N)return document.createTextNode("");if(r9k(L))return N=L.alt,L=L.dataset.emojiId,!L&&Z&&(Z=_.XM(Z,N))&&Z.isCustomEmoji&&(L=Z.emojiId),L?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+L+">"):document.createTextNode(N);S=L.cloneNode(!1);for(var u=0;u<L.childNodes.length;++u){var T=Qjw(L.childNodes[u],Z,N);T&&S.appendChild(T)}return S};
uf=function(L){return L?Sv(L)?L:uf(L.lastChild):null};
XVP=function(L){return L?Sv(L)?L:XVP(L.firstChild):null};
A9k=function(L){if(!L)return null;for(var Z=L.previousSibling;Z;)if(Z.nodeType===Node.ELEMENT_NODE&&Z.nodeName==="BR")Z=Z.previousSibling;else if(Z.nodeType===Node.TEXT_NODE&&/\s+/.test(Z.textContent))Z=Z.previousSibling;else break;(Z=uf(Z))?L=Z:L=(L=L.parentNode)?uf(L.previousElementSibling):null;return L};
HM8=function(L){if(!L)return null;for(var Z=L.nextSibling;Z;)if(Z.nodeType===Node.ELEMENT_NODE&&Z.nodeName==="BR")Z=Z.nextSibling;else if(Z.nodeType===Node.TEXT_NODE&&/\s+/.test(Z.textContent))Z=Z.nextSibling;else break;return(Z=XVP(Z))?Z:HM8(L.parentNode)};
BcP=function(L){var Z=_.HT(),N=Z.JSC$11350_getStartNode();if(!Cmc(N.parentNode))return null;Z=Z.JSC$11350_getStartOffset();if(N.nodeType===Node.TEXT_NODE){var S=_.rF(N,Sv);if(S){if(L&&Z===0||!L&&Z===N.length)return S}else{if(L&&Z===N.length)return!N||N.nodeName==="BR"||N.nextElementSibling&&_.BT(N.nextElementSibling,"display")==="block"?null:XVP(N.nextElementSibling);if(!L&&Z===0)return N?uf(N.previousElementSibling):null}}if(N.nodeType===Node.ELEMENT_NODE)if(L){if(0<=Z&&Z<N.childNodes.length)return XVP(N.childNodes[Z])}else if(0<
Z&&Z<=N.childNodes.length)return uf(N.childNodes[Z-1]);return null};
xHv=function(L,Z,N){if(!L)return null;if(L.nodeType===Node.TEXT_NODE)if(N){var S=A9k(L);if(S&&!/^\s+\S/.test(L.wholeText.substr(0,Z)))return S}else if((S=HM8(L))&&!/\S\s+/.test(L.wholeText.substr(Z,L.wholeText.length)))return S;return L.nodeType===Node.ELEMENT_NODE?N?A9k(L.childNodes[Z]):HM8(L.childNodes[Z]):xHv(L.parentNode,Z,N)};
qcY=function(L){if(L.hasChildNodes())switch(L.tagName){case "DIV":case "A":case "SPAN":var Z="";for(L=L.firstChild;L;L=L.nextSibling)Z+=qcY(L);return Z;default:return""}else switch(L.nodeType){case 3:return L.textContent;default:return""}};
Laq=function(L){switch(L){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"}};
Z5Q=function(L){return L.map(function(Z){return{settingsRadioOptionRenderer:{title:_.Qa(Z.name),asideText:_.Qa(Z.approximateSize),id:Laq(Z.format)}}})};
SWm=function(L){if(L&&L.length!==0)return L.filter(NKq()).map(function(Z){return{settingsRadioOptionRenderer:{title:Z.name,asideText:Z.approximateSize,id:Laq(Z.formatType)}}})};
Tr=function(L){if(L)return L.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
i5m=function(L,Z){L=new Set(L!=null?L:[]);if(L.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(L.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(L.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(L.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(L.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(Z)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
uEv=function(L){var Z=L.indexOf("(");return Z!==-1?L.substring(Z+1,L.length-1):L};
_.tds=function(L,Z,N,S,u,T){N||(N=TKv);var W;(W=_.n(N.commandMetadata,_.Nj))!=null&&W.url||(N=Error("Jl`"+JSON.stringify(N)),_.CA(N),N=TKv);N=_.Py.unsafeClone(N);W=_.HK(_.n(N.commandMetadata,_.Nj).url,"search_query",L);_.B4(location.href,"sv")==="1"&&(_.n(N,_.uv).params="EgOAAgE%3D",W=_.HK(W,"sv","1"));_.n(N,_.uv)&&(_.n(N,_.uv).query=L);W=W.replace(/%20/g,"+");_.n(N.commandMetadata,_.Nj).url=W;u=_.c("desktop_enable_entity_suggest")?{entityMid:u}:{};_.GR().resolve(_.$s).resolveCommand(N,{form:{tempData:Object.assign({},
{gs_l:Z,oq:S!=null?S:L},u,{isFromShorts:T})}})};
O58=function(L){switch(L){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
Vd8=function(L,Z,N,S,u,T){var W=_.Py.clone(Wav);W.locale=_.X7("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;W.report={description:u||"<empty>"};u=_.X7("SBOX_SETTINGS",{});Z=Z.join(",");var V=Date.now();L={choice_cc:S,choice_id_cc:N,choices_sc:Z,gl:u.REQUEST_DOMAIN,hl:u.REQUEST_LANGUAGE,query:L,time:V};T&&(L.choice_additional_comment_cc=T);_.V5h(W,L)};
b58=function(L){var Z=new Map;Z.set("authuser",_.X7("SESSION_INDEX","0"));return _.om(L,Z)};
gTQ=function(L){var Z;return _.b(function(N){switch(N.nextAddress){case 1:if(!L||!Mds(L))return N.return(null);Z=null;switch(_.X7("INNERTUBE_CLIENT_NAME")){case "WEB":return N.jumpTo(2);case "WEB_REMIX":Z=L.getPlayer()}N.jumpTo(3);break;case 2:return N.yield(L.getPlayerPromise(),4);case 4:Z=N.yieldResult;N.jumpTo(3);break;case 3:return N.return(Z)}})};
Mds=function(L){return["ytd-player","ytmusic-player"].includes(String(L.tagName||"").toLowerCase())};
G5m=function(L){L=Math.round(L);return L%2?L-1:L};
Fav=function(L){L=Math.round(L);return L%2===0?L-1:L};
$Qq=function(L){var Z,N,S;if(L=(Z=L.createPlaylistDialogFormSchema)==null?void 0:(N=Z.fieldSchemas)==null?void 0:(S=N.title)==null?void 0:S.validationSchema)for(Z=[L.syncStep,L.asyncStep].filter(function(u){return u!==void 0}),Z=_.O(Z),N=Z.next();!N.done;N=Z.next()){N=N.value.rules;
if(!N)break;N=_.O(N);for(N=N.next();!N.done;N=N.next())return _.n(N.value,_.x4s)}};
liw=function(L){var Z,N,S;if(L=(Z=L.createPlaylistDialogFormSchema)==null?void 0:(N=Z.fieldSchemas)==null?void 0:(S=N.visibility)==null?void 0:S.validationSchema)for(Z=[L.syncStep,L.asyncStep].filter(function(u){return u!==void 0}),Z=_.O(Z),N=Z.next();!N.done;N=Z.next()){N=N.value.rules;
if(!N)break;N=_.O(N);for(S=N.next();!S.done;S=N.next())if(S=_.n(S.value,DQv))return Z=void 0,(Z=S.translations)==null?void 0:Z.visibilityNotValidErrorMessage}};
vTw=function(){var L,Z;return(Z=(L=_.GR().resolve(_.gv(_.d$)))==null?void 0:L())!=null?Z:!1};
oTs=function(L){var Z=21;if(!L)return Z;Z+=L.headerTitle?27:0;Z+=L.headerTitle&&L.hasHeaderActionHeader?4:0;return Z+=L.headerTitle&&L.headerSubtitle?16:0};
RH0=function(L){var Z=0;if(!L)return Z;Z+=L.hasFooterPrimaryButton||L.hasFooterSecondaryButton?48:0;Z+=L.footerTrailingLabel||L.footerLeadingLabel?30:0;return Z+=L.hasFooterPrimaryButton||L.hasFooterSecondaryButton||!L.footerTrailingLabel&&!L.footerLeadingLabel?0:12};
c5w=function(L){var Z=new _.Ur,N=L;return{subscribe:function(S){Z.subscribe("changed",S)},
dispatch:function(S,u){var T=N;S==="Touch Start"?N=Object.assign({},T,{isAnimating:!1,initialY:u.event.touches[0].clientY}):S==="Touch Move"?(S=Math.min(u.fullContentWrapperHeight,u.contentHeightMap[u.contentWrapperId]+oTs(u.header)-RH0(u.footer)),N=Object.assign({},T,{currentY:Math.max(u.contentScrollable?-1*(T.initialY-24):0,u.event.touches[0].clientY-T.initialY),maxHeightForContentWrapper:Math.min(S,Math.max(0,(T.isFullScreen?S:u.contentWrapperHeight)-T.currentY))})):N=S==="Snap To Full Screen"?
Object.assign({},T,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:u.maxHeight}):S==="Snap To Neutral Position"?Object.assign({},T,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:u.maxHeight}):S==="Close Sheet"?Object.assign({},T,{isAnimating:!0,currentY:u.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:u.maxHeight}):T;Z.publish("changed",N)}}};
nTv=function(L){return _.Z9(function(Z){L(Z);return!1})};
Ka5=function(){_.GR().resolve(_.Po).closeSheet()};
fiq=function(L){var Z,N,S,u,T,W,V,M,G,D,l;return{headerTitle:(Z=L.headerTitle)==null?void 0:Z.call(L),headerSubtitle:(N=L.headerSubtitle)==null?void 0:N.call(L),headerActionHeader:L.headerActionHeader,footerPrimaryButton:L.footerPrimaryButton,footerSecondaryButton:L.footerSecondaryButton,footerButtonType:(S=L.footerButtonType)==null?void 0:S.call(L),footerLeadingLabel:(u=L.footerLeadingLabel)==null?void 0:u.call(L),footerTrailingLabel:(T=L.footerTrailingLabel)==null?void 0:T.call(L),shouldShowIcons:(W=
L.shouldShowIcons)==null?void 0:W.call(L),skipContentClick:(V=L.skipContentClick)==null?void 0:V.call(L),additionalClassName:(M=L.additionalClassName)==null?void 0:M.call(L),onClosedCallback:L.onClosedCallback,focusOnClose:(G=L.focusOnClose)==null?void 0:G.call(L),isDisabled:(D=L.isDisabled)==null?void 0:D.call(L),disabledCommand:(l=L.disabledCommand)==null?void 0:l.call(L),headerFn:L.headerFn,contentFn:L.contentFn,footerFn:L.footerFn,hasHeaderFn:L.hasHeaderFn(),hasContentFn:L.hasContentFn(),hasFooterFn:L.hasFooterFn(),
hasFooterPrimaryButton:L.hasFooterPrimaryButton(),hasFooterSecondaryButton:L.hasFooterSecondaryButton(),hasHeaderActionHeader:L.hasHeaderActionHeader()}};
k5w=function(L){switch(L){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""}};
y58=function(L){switch(L){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""}};
wak=function(L){switch(L){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""}};
UQc=function(L,Z,N){Z.forEach(function(S){_.U$(_.GR().resolve(_.a3),S)});
_.XJ(L,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",N])};
dQw=function(L,Z,N,S){var u=_.n(N,_.uD).commandLifeCycleConfig;u&&u.onStartCommand&&_.B2(L,[u.onStartCommand],Z);_.y6(Z);var T=_.IV.instance;T&&_.d9(T,N)?_.aV(T,N,S).then(function(W){if(!W||(W==null?0:W.error))return W=_.n(N,_.uD).serializedTransactionFlowLoggingParams,_.w3(Z),_.$N(new to("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",W));_.w3(Z);return{data:W}}).then(function(W){_.w3(Z);
YWQ(W.data);var V=W.data.command;V&&_.B2(L,[V],Z);V=eHm(N,W.data);if(!V){var M=W.data;W=!1;if(M&&M.command&&_.n(M.command,_.q2)){var G;M=((G=_.n(M.command,_.q2))==null?void 0:G.commands)||[];for(G=0;G<M.length;G++)if(_.n(M[G],_.Xph)){W=!0;break}}W||_.au('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!V&&u&&u.onSuccessCommand?_.B2(L,[u.onSuccessCommand],Z):V&&u&&u.onFailureCommand&&_.B2(L,[u.onFailureCommand],Z)},function(){_.w3(Z);
u&&u.onFailureCommand&&_.B2(L,[u.onFailureCommand],Z);Iig(N)}):_.CA(Error("Vl"),"ERROR")};
aiv=function(L,Z,N){var S=[Z];N&&S.push(N);return _.H2(L,S).then(function(u){var T=_.n(Z,_.uD).serializedTransactionFlowLoggingParams,W=u.data,V=eHm(Z,W);V?u=_.$N(new to(V,T)):YWQ(W);return u},function(){var u=_.n(Z,_.uD).serializedTransactionFlowLoggingParams;
Iig(Z);return _.$N(new to("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",u))})};
eHm=function(L,Z){L=_.n(L,_.uD).serializedTransactionFlowLoggingParams;var N=null;switch(Z.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":N="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":N="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":N="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}N?_.as(N,L):LR5(L);return N};
Iig=function(L){_.as("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.n(L,_.uD).serializedTransactionFlowLoggingParams)};
YWQ=function(L){if(L.trackingParams){var Z=_.RH(),N=_.oH();Z&&N&&_.ez(Z,N,_.Mg(L.trackingParams))}};
hHk=function(L,Z,N){var S=_.IV.instance,u=_.dF_(_.X7("YPC_MB_URL")),T=(new _.ePL).init(),W=_.I5t(),V=_.n(N,_.JOY).languageCode;V===void 0?_.CA(Error("Ii"),"ERROR"):_.yz([T,u]).then(function(){var M={ctk:_.Pt.payments.business.integration.ClientTokenFactory.createClientToken(V,W)};S&&_.d9(S,N)?_.aV(S,N,M).then(function(G){return{data:G}}).then(function(G){_.QT(Z,"yt-service-request-completed",G);
G.code!=="ERROR"&&(G=G.data.command)&&_.B2(L,[G],Z)}):_.CA(Error("Vl"),"ERROR")})};
ETs=function(L,Z,N,S){var u=_.IV.instance;u&&_.d9(u,N)?_.aV(u,N,S).then(function(T){return{data:T}}).then(function(T){sAP(L,Z,N,T)},function(){jAk(N)}):(u=_.GR().resolve(_.gv(_.VJ)))&&u.requestDataForServiceEndpoint(N,S).then(function(T){sAP(L,Z,N,T)},function(){jAk(N)})};
sAP=function(L,Z,N,S){_.QT(Z,"yt-service-request-completed",S);if(S.code&&S.code=="ERROR")jAk(N);else{(S=S.data.commands)&&_.B2(L,S,Z);var u;(L=(u=_.n(N,_.HSO))==null?void 0:u.serializedYpcPauseFlowLoggingParams)&&L&&_.Fe("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",L)}};
jAk=function(L){var Z;(L=(Z=_.n(L,_.HSO))==null?void 0:Z.serializedYpcPauseFlowLoggingParams)&&L&&_.Fe("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",L,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
zH0=function(L,Z,N){var S=_.IV.instance;S&&_.d9(S,N)?_.aV(S,N).then(function(u){return{data:u}}).then(function(u){PyQ(L,Z,N,u)},function(){pav(N)}):(S=_.GR().resolve(_.gv(_.VJ)))&&S.requestDataForServiceEndpoint(N).then(function(u){PyQ(L,Z,N,u)},function(){pav(N)})};
PyQ=function(L,Z,N,S){_.QT(Z,"yt-service-request-completed",S);S.code&&S.code=="ERROR"?pav(N):((S=S.data.commands)&&_.B2(L,S,Z),(L=_.n(N,_.Bi5).serializedYpcResumeFlowLoggingParams)&&L&&_.Fe("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",L))};
pav=function(L){(L=_.n(L,_.Bi5).serializedYpcResumeFlowLoggingParams)&&L&&_.Fe("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",L,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
mQk=function(L){L=L===void 0?{}:L;_.GR().resolve(_.cfQ).showFeedbackDialog(L.customProductData,L.feedbackContent,L.onFeedbackSubmitted,L.bucket)};
J5g=function(L){L=L===void 0?{}:L;_.GR().resolve(_.cfQ).showHelpDialog(L.helpContext,L.articleId,L.productData)};
Cyw=function(){J5g()};
r5q=function(){mQk()};
Xak=function(L,Z,N){var S,u,T,W,V,M,G;return _.b(function(D){switch(D.nextAddress){case 1:S=_.n(L,QAY);if((u=S)==null?0:u.productId){M={productId:S.productId,bucket:S.bucket,enableAnonymousFeedback:(V=S.enableAnonymousFeedback)!=null?V:!0,allowNonLoggedInFeedback:!0};G={feedbackChoice:N.feedbackChoice};if(!_.c("web_collect_offline_state")){D.jumpTo(8);break}_.RS(D,9);return D.yield(WRq(G),11)}W={bucket:(T=S)==null?void 0:T.bucket};if(!_.c("web_collect_offline_state")){D.jumpTo(4);break}W.customProductData=
{};_.RS(D,5);return D.yield(WRq(W.customProductData),7);case 7:_.SX(D,4);break;case 5:_.yd(D);case 4:mQk(W);D.jumpTo(0);break;case 11:_.SX(D,8);break;case 9:_.yd(D);case 8:_.viP(G),_.lgB("GFEEDBACK",G),S.productId==="5295751"&&(G.client_attestation=Number(_.X7("CATSTAT",0))),S.productId==="5295751"&&(G.client_time=Date.now()/1E3/3600),S.productId==="5295751"&&(G.original_playback_id=_.spt||""),_.V5h(M,G),_.w7(D)}})};
A5q=function(L){if(L=_.n(L,_.KsB)){var Z={bucket:L.bucketIdentifier};L.additionalDatas&&(Z.customProductData={},L.additionalDatas.forEach(function(N){if(N=N.userFeedbackEndpointProductSpecificValueData)Z.customProductData[N.key]=N.value}));
mQk(Z)}};
H5q=function(L){var Z=_.SS.getInstance();var N=_.iB("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var S=_.iB("DELETE",void 0,"Delete"),u=_.iB("CANCEL",void 0,"Cancel");N=oDg(N,void 0,S,u,{signal:"DELETE_ALL_DOWNLOADS"});_.Pc(Z,[{openPopupAction:N}],L)};
xQv=function(){return _.b(function(L){return L.nextAddress==1?L.yield(_.GR().resolve(_.pw),2):L.yield(BKQ(),0)})};
qWY=function(L){var Z,N;return _.b(function(S){return S.nextAddress==1?(N=(Z=_.n(L,_.xE))==null?void 0:Z.targetId)?S.yield(_.GR().resolve(_.pw),3):S.jumpTo(0):S.yield(_.GR().resolve(_.PC).deleteVideo(N),0)})};
Z7Y=function(L){var Z,N;return _.b(function(S){return S.nextAddress==1?(N=(Z=_.n(L,_.xE))==null?void 0:Z.targetId)?S.yield(_.GR().resolve(_.pw),3):S.jumpTo(0):S.yield(LQ5(_.GR().resolve(_.PC),N),0)})};
Syy=function(L){var Z,N;return _.b(function(S){return(N=(Z=_.n(L,_.xE))==null?void 0:Z.targetId)?S.yield(NIs(N),0):S.jumpTo(0)})};
uis=function(){_.c("kevlar_woffle_refresh_dl_load_killswitch")||i7Q()};
tsv=function(){_.c("kevlar_woffle")&&_.Ye.instance&&TIm()};
WQP=function(L){var Z;if((Z=_.n(L,_.uj))==null||!Z.videoId)return!1;O7P(_.GR().resolve(_.PC),_.n(L,_.uj),L.clickTrackingParams);return!0};
b7c=function(L){var Z;if((Z=_.n(L,_.tu))==null||!Z.playlistId)return!1;VsQ(_.GR().resolve(_.PC),_.n(L,_.tu),L.clickTrackingParams);return!0};
gpv=function(L){var Z=_.n(L,_.eKQ);(Z==null?void 0:Z.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(Z==null?void 0:Z.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||MsQ(_.GR().resolve(_.PC),_.n(L,_.eKQ))};
FQg=function(L){L=_.n(L,_.OK0);var Z;(L==null?0:(Z=L.actions)==null?0:Z.length)&&GwY(L)};
lIg=function(L){var Z,N;return _.b(function(S){Z=_.n(L,$Ys);return(N=Z)!=null&&N.localWatchHistoryCommandType?S.yield(DYy(Z),0):S.return()})};
vps=function(L){setTimeout(function(){requestAnimationFrame(L)},80)};
opY=function(L){return Object.entries(L).map(function(Z){return Z.join(":")}).join(";")};
cYc=function(L){var Z,N,S;_.b(function(u){if(u.nextAddress==1)return u.yield(Rms(),2);Z=u.yieldResult;N=_.qd.instance;switch(Z){case "granted":S=L.getLocationCommand;break;case "denied":S=L.openDeniedDialogAction;break;case "prompt":S=L.openCollectionDialogAction;break;default:S=L.openCollectionDialogAction}S&&N.resolveCommand(S);_.w7(u)})};
Rms=function(){var L,Z;return _.b(function(N){if(N.nextAddress==1)return L="prompt",navigator.permissions?N.yield(navigator.permissions.query({name:"geolocation"}),3):N.jumpTo(2);N.nextAddress!=2&&(Z=N.yieldResult,L=Z.state);return N.return(L)})};
KQ5=function(){_.b(function(L){return L.yield(_.np5(),0)})};
fI8=function(){var L,Z,N;return _.b(function(S){if(S.nextAddress==1)return L=_.GR().resolve(_.bv),L?S.yield(_.aV(L,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Q7(Error("Yl")),S.return(void 0));if(Z=S.yieldResult){if(Z.errorMetadata)return _.Q7(Error("Zl`"+Z.errorMetadata.status+"`"+Z.error)),S.return(void 0);N=Z.datasyncIds;_.h1q=N.length;return S.return(N)}_.Q7(Error("$l"));return S.return(void 0)})};
kwv=function(){fI8().then(function(L){L&&(j_Y(L),N9Q(L),klg(L),bVc(L))})};
yYP=function(L){_.ro.addLowPriorityJob(function(){var Z,N,S,u,T;return _.b(function(W){switch(W.nextAddress){case 1:if(_.c("ytidb_clear_optimizations_killswitch")){W.jumpTo(2);break}Z=_.ae("clear");if(Z.startsWith("V")&&Z.endsWith("||")){var V=[Z];j_Y(V);N9Q(V);klg(V);bVc(V);return W.return()}N=yCm();S=Mwm();return W.yield(SCY(),3);case 3:return u=W.yieldResult,W.yield(EDs(),4);case 4:if(T=W.yieldResult,!(N||S||u||T))return W.return();case 2:L.isNetworkAvailable()?kwv():L.listenOnce("publicytnetworkstatus-online",
kwv),_.w7(W)}})})};
Oa=function(L){L={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.s9(L)}}}};_.qd.instance&&_.qd.instance.resolveCommand(L)};
wzy=function(L){if(L){var Z=_.tC();_.fF(Z,3854,void 0,{layer:0,parentLayer:4});switch(L){case 1:var N=238708;break;case 2:N=238715;break;case 3:N=238710;break;case 6:N=238709}N&&(L=_.Si(Z,{veType:N}))&&_.wM(Z,L)}};
UYm=function(L){if(L){var Z=_.tC();_.fF(Z,3854,void 0,{layer:0,parentLayer:4});switch(L){case 1:var N=238714;break;case 2:N=238711;break;case 8:N=238709;break;case 7:N=238713;break;case 3:case 4:case 5:N=238712}N&&(L=_.Si(Z,{veType:N}))&&_.wM(Z,L)}};
Yyc=function(L){switch(L.latencyType){case 0:_.oq("consent_primitive_flow");_.Rq("cpit",L.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Rq("cpist",L.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Rq("cprtif",L.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Rq("cprtli",L.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Rq("cprt",L.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Rq("cpdt",L.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.Rq("cpjct",L.timestampEpochMillis,"consent_primitive_flow")}};
pzm=function(L,Z){var N,S,u,T,W,V,M,G,D,l,v,R,K,U,d,h,E,A,J,C;return _.b(function(X){switch(X.nextAddress){case 1:_.RS(X,2);(S=(N=_.n(L,emk))==null?void 0:N.serializedConsentRequest)||(S=(u=_.n(L,IIg))==null?void 0:u.serializedConsentRequest);S&&(T=dYv(_.xt(S)));if(T===void 0)return X.return();W=aIw(T);W.latencyCallback=Yyc;Z&&hmk(W,function(){Z.then(function(L1){L1.pauseVideo();(new snQ).increment()})});
return((V=_.n(L,emk))==null?void 0:V.consentAction)==="CONSENT_ACTION_PREWARM"||((M=_.n(L,IIg))==null?void 0:M.consentAction)==="CONSENT_ACTION_PREWARM"?X.yield(jny(W),5):X.yield(Epv(W),6);case 6:G=X.yieldResult;D=_.MQ(G,Wj);if(D===1){if(((l=_.f5(G,VP,1,Wj))==null?void 0:_.oA(l,1))===1||((v=_.f5(G,VP,1,Wj))==null?void 0:_.oA(v,1))===2||((R=_.f5(G,VP,1,Wj))==null?void 0:_.oA(R,1))===3)_.n(L,IIg)?Oa(_.iB("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Oa(_.iB("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));wzy((K=_.f5(G,VP,1,Wj))==null?void 0:_.oA(K,1),_.MG(G,P3P,3,_.gZ()))}else D===2?(((U=bf(G))==null?void 0:_.oA(U,1))===5?_.n(L,IIg)?Oa(_.iB("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Oa(_.iB("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((d=bf(G))==null?void 0:_.oA(d,1))===1||((h=bf(G))==null?void 0:_.oA(h,1))===4?Oa(_.iB("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((E=bf(G))==null?void 0:_.oA(E,1))===7&&((A=T)==null?void 0:(J=_.lp(A,MS,4))==null?void 0:_.oA(J,4))!==1&&Oa(_.iB("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),UYm((C=bf(G))==null?void 0:_.oA(C,1))):Oa(_.iB("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));X.jumpTo(5);break;case 5:_.SX(X,0);break;case 2:_.yd(X),Oa(_.iB("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.w7(X)}})};
mYv=function(){if(!zmy.has("Worker")){zmy.set("Worker",!0);var L={api:"BROWSER_API_WEB_WORKER"};L.available="Worker"in window?!0:!1;_.mS("apiTest",L)}};
JYg=function(L){return typeof L==="undefined"?"-1":String(Math.ceil(L/1048576))};
Xzm=function(L,Z){C3y(new rYy(_.n(Z,Qnm).addToken,_.n(Z,Qnm).commonToken)).then(function(){_.QT(L,"yt-invoke-instrument-manager-action-completed")},function(N){_.QT(L,"yt-invoke-instrument-manager-action-error",N)})};
gt=function(){return _.X7("HTML_DIR")==="rtl"};
AYq=function(){var L,Z;return(Z=(L=window).matchMedia)==null?void 0:Z.call(L,"(prefers-reduced-motion: reduce)").matches};
H7s=function(L){var Z=_.GR().resolve(_.gv(_.eB));if(Z&&Z.isAnyTransitionEnabled){var N={};Z.viewTransitionCoordinator.registerElement(L,(N.slide="miniplayer-page-transition",N["lockup-to-watch"]="miniplayer-page-transition",N["learning-journey"]="miniplayer-page-transition",N))}};
BIs=function(L,Z,N){return{horizontalAlignment:L.x+N.width/2<Z.width/2?"west":"east",verticalAlignment:L.y+N.height/2<Z.height/2?"north":"south"}};
qys=function(L,Z,N,S,u){u=u===void 0?new _.zF(0,0):u;L=xYg(L,Z,N,S,!1);return new _.zF(L.x+u.x,L.y+u.y)};
xYg=function(L,Z,N,S,u){u=(u===void 0?0:u)?400:0;return new _.zF(L==="west"?16+(gt()?u:0):N.width-S.width-16-(gt()?0:u),Z==="north"?16:N.height-S.height-16)};
LFc=function(L,Z){var N=0;L&&(N+=76);Z&&(N+=285);return N};
Zcy=function(L){return _.ed(L)};
Ngv=function(L){var Z=1;L=L.split(":");for(var N=[];Z>0&&L.length;)N.push(L.shift()),Z--;L.length&&N.push(L.join(":"));return N};
S8c=function(L){var Z=new _.Mb;return _.kT(Z,11,L)};
icy=function(L){var Z={};L=L.getAllResponseHeaders().split("\r\n");for(var N=0;N<L.length;N++)if(!_.V_(L[N])){var S=Ngv(L[N]),u=S[0];S=S[1];if(typeof S==="string"){S=S.trim();var T=Z[u]||[];Z[u]=T;T.push(S)}}return _.Py.map(Z,function(W){return W.join(", ")})};
bE=function(L,Z){return L.JSC$9795_xhr_?L.JSC$9795_xhr_.getResponseHeader(Z):null};
uRy=function(L,Z){if(L.isDisposed())throw Error("Ea");L.oo.o2("n");var N=_.h4(L.oo,function(){return L.e1K([Z.oL,Z.fWx,Z.q0v,Z.f9Y])},"n");
L.oo.qX7(N.length);L.oo.pD();return N};
Gr=function(L,Z,N){Array.isArray(N)||(N=[String(N)]);_.gEY(L.JSC$10031_queryData_,Z,N);return L};
TIm=function(){var L=_.Ye.instance;_.b(function(Z){return L.deferredInstallPrompt?Z.yield(L.deferredInstallPrompt.prompt(),0):Z.jumpTo(0)})};
Tg0=function(L,Z,N){if(_.Jx(L))_.SZ(L,Z,N);else for(L=_.cqt(L);;){var S=L.next();if(S.done)break;Z.call(N,S.value,void 0,L)}};
tJk=function(L,Z){var N=[];Tg0(Z,function(S){try{var u=_.cX.prototype.getWrapper.call(this,S,!0)}catch(T){if(T=="Storage: Invalid value was encountered")return;throw T;}u===void 0?N.push(S):_.RZh(u)&&N.push(S)},L);
return N};
gNy=function(L,Z){tJk(L,Z).forEach(function(N){_.cX.prototype.remove.call(this,N)},L)};
Ocg=function(L){var Z=_.qR;Z._minimumZ=Math.max(Z._minimumZ,L)};
WFk=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];VJc=function(L,Z){_.W4(L.vm);L.vm=Z};
bck=function(L,Z,N,S){L.setState(5);var u=!!L.xgA&&WFk.includes(_.WW(L.xgA)||"");try{var T=new _.s8({program:Z,globalName:N,t77:{disable:!_.c("att_web_record_metrics")||!_.c("att_skip_metrics_for_cookieless_domains_ks")&&u,mh:"aGIf"}});T.mXG.then(function(){L.setState(6);S&&S(Z)});
VJc(L,T)}catch(W){L.setState(7),W instanceof Error&&_.Q7(W)}};
MJc=function(L,Z,N,S,u,T){var W=W===void 0?"trayride":W;N?(L.setState(2),_.Uo(_.jb(N),function(){if(window[W])bck(L,S,W,u);else{L.setState(3);var V=_.P01(N),M=document.getElementById(V);M&&(_.fhs(V),M.parentNode.removeChild(M));_.Q7(new _.sr("BL:ULB",N))}},T)):Z?(T=_.wZ("SCRIPT"),Z instanceof _.NZ?_.ug(T,Z):T.textContent=Z,T.nonce=_.ZS(document),document.head.appendChild(T),document.head.removeChild(T),window[W]?bck(L,S,W,u):(L.setState(4),_.Q7(new _.sr("BL:ULBJ")))):_.Q7(new _.sr("BL:ULV"))};
gBy=function(){this.state=1;this.vm=null;this.xgA=void 0};
_.t=gBy.prototype;_.t.initialize=function(L,Z,N,S){this.xgA=S;if(L.program){var u;S=(u=L.interpreterUrl)!=null?u:null;if(L.interpreterSafeScript)u=_.Qsh(L.interpreterSafeScript);else{var T;u=(T=L.interpreterScript)!=null?T:null}L.interpreterSafeUrl&&(S=_.QH(L.interpreterSafeUrl).toString());MJc(this,u,S,L.program,Z,N)}else _.Q7(Error("uf"))};
_.t.isInitialized=function(){return!!this.vm};
_.t.getState=function(){return this.state};
_.t.isLoading=function(){return this.state===2};
_.t.invoke=function(L){L=L===void 0?{}:L;var Z;this.vm?Z=uRy(this.vm,{oL:L}):Z=null;return Z};
_.t.dispose=function(){VJc(this,null);this.setState(8)};
_.t.setState=function(L){this.state=L};
var Gkc=function(L,Z){return L.vm.snapshot(Z)},FFc=function(L,Z){var N=_.lQ("botguard_async_snapshot_timeout_ms",3E3);
Z=Z===void 0?{}:Z;N=N===void 0?3E3:N;return L.vm?new Promise(function(S,u){var T=!1,W=_.ro.addJob(function(){T=!0;u(Error("vf"))},1,N);
L.vm?Gkc(L,{oL:Z}).then(function(V){_.ro.cancelJob(W);T||S(V)}).catch(function(V){_.ro.cancelJob(W);
T||u(V)}):(_.ro.cancelJob(W),S(null))}):Promise.resolve(null)},$bw=["att/log"],TKv;
TKv={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var Dbs={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},lww=function(L,Z){return _.Ta(L,{mode:"readwrite",enableRetries:!0},function(N){return _.vvx(N,Z,"settingEntity")})},vB5=function(L,Z,N){return _.Ta(L,{mode:"readonly",
enableRetries:!0},function(S){return _.oGY(S,Z,N)})},oBy=function(L){if(!L.storage)return!1;
a:{if(L.storage){try{var Z=L.storage.get("TLPQtimestamp")}catch(N){}L=Number(Z);if(!isNaN(L))break a}L=void 0}return L?Date.now()-L<864E5:!1},R$Q=function(L){if(L.storage){try{var Z=L.storage.get("TLPQindex")}catch(N){}L=Number(Z);
if(!isNaN(L))return L}},c4Y=function(L,Z){L.queueProxy&&Z.forEach(function(N){if(N.videoId&&N.trackingParams&&L.queueProxy instanceof _.qU){var S=_.RH();
L.queueProxy.attributionData.set(N.videoId,{enqueueingVe:_.Mg(N.trackingParams).getAsJson(),enqueueingCsn:S?S:void 0,clientEnqueueingTimeMs:Math.floor((0,_.GT)()).toString()})}})},nBQ=function(L){var Z=_.ZzI(L);
Z!=L.currentSnapState_&&(L.currentSnapState_=Z,L.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},FV=function(L){this.JSC$13220_networkManager_=L;
this.partCallbacks_=[]};
FV.prototype.getCacheKeyForEndpoint=function(L){return _.Vrh(L,!1)};
FV.prototype.onPartsCallback_=function(L){this.partCallbacks_.forEach(function(Z){L&&Z(L)})};
var $H=function(L,Z,N){FV.call(this,L);this.player_=Z;this.autoplayData_=N};
_.f($H,FV);$H.prototype.getCacheKeyForEndpoint=function(L){return _.Vrh(L,!!this.autoplayData_)};
$H.prototype.getTempData=function(L,Z){Z=Z.timeBeforeNextVideo;L={itct:L.clickTrackingParams,lact:_.Fv(),pbis:Z,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(L.autonav=1);return L};
$H.prototype.getXhrParams=function(L){return Object.assign({pbj:"prefetch"},L)};
$H.prototype.getParams=function(L){L={frags:L.fragmentsRequested.join(",")};_.c("kevlar_droppable_prefetchable_requests")&&(L.prefetch=1);return L};
var KFy=function(L){L.playerEvents_.forEach(function(Z){L.player.removeEventListener(Z.eventName,Z.callback)});
L.playerEvents_.length=0},Do=function(L,Z,N){this.player=L;
this.JSC$13230_taskManager=Z;this.prefetchDelay=N;this.completionResolver_=null;this.playerEvents_=[]};
Do.prototype.start=function(){var L=this;this.completionResolver_=_.hS();_.wg(this.completionResolver_.promise,function(){KFy(L);L.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var fws=function(L,Z,N){L.player.addEventListener(Z,N);L.playerEvents_.push({eventName:Z,callback:N})},kkv={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},y45={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},wn5=function(L,Z,N){Do.call(this,L,Z,N);this.cueId_="playbackTrigger-"+Math.random()};
_.f(wn5,Do);
wn5.prototype.prepareTrigger=function(L){var Z=this,N=this.player.getDuration(),S=this.player.getVideoData(),u=S.isLive&&S.hasProgressBarBoundaries;if(u&&S.progressBarEndPositionUtcTimeMillis){var T=S.progressBarEndPositionUtcTimeMillis/1E3;isNaN(T)||(N=T)}var W=0;this.prefetchDelay>=0?u?S.progressBarStartPositionUtcTimeMillis&&(S=S.progressBarStartPositionUtcTimeMillis/1E3,isNaN(S)||(W=S+this.prefetchDelay)):W=this.prefetchDelay:W=N+this.prefetchDelay;u?this.player.addUtcCueRange(this.cueId_,W,N):
this.player.addCueRange(this.cueId_,W,N);_.wg(L.promise,function(){Z.player.removeCueRange(Z.cueId_)});
fws(this,"onCueRangeEnter",function(V){V==Z.cueId_&&L.resolve(N-W)})};
var Ubk=function(L,Z){L.fragmentConfiguration_[Z].requiredKeys.every(function(N){return!!L.prefetchedData_[N]})&&(L.validatedFragments_.push(Z),Z=L.missingFragments_.indexOf(Z),Z!==-1&&L.missingFragments_.splice(Z,1))},Y85=function(L){L.prefetchedFragments_.forEach(function(Z){Ubk(L,Z)})},e$q=function(L,Z,N){this.pageFragments_=L;
this.prefetchedFragments_=Z;this.fragmentConfiguration_=y45;this.prefetchedData_=N;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;Y85(this)},Iwq=function(){},dbk=function(L){this.JSC$13244_playlistManager_=L};
_.f(dbk,Iwq);dbk.prototype.getPrefetchEndpoint=function(){return this.JSC$13244_playlistManager_.getAutoplayEndpoint()};
var awk=function(L){this.autonavEndpoints_=L};
_.f(awk,Iwq);awk.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var h$k=function(L,Z,N,S,u){this.autonavEndpoints=L;this.foregroundTrigger=Z;this.backgroundTrigger=N;this.pageType=S;this.isInPlaylist=u},s8y=function(L,Z){if(L.webPrefetchData&&L.webPrefetchData.navigationEndpoints&&L.webPrefetchData.navigationEndpoints.length){L=L.webPrefetchData.navigationEndpoints;
var N=_.n(L[0],_.so);if(N.watchEndpointSupportedPrefetchConfig&&N.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var S=N.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;N=S.playbackRelativeSecondsPrefetchCondition;N=typeof N==="number"&&Math.abs(N)<Z.videoDuration?N:void 0;S=S.countdownUiRelativeSecondsPrefetchCondition;S=typeof S!=="number"||_.c("prefetch_job_config_cleanup_ks")&&Z.inPlaylist?void 0:S;if(typeof S==="number")return new h$k(L,Z.makeUpNextTrigger(S),Z.makePlaybackTrigger(S),
"watch",Z.inPlaylist);if(typeof N==="number")return new h$k(L,Z.makePlaybackTrigger(N),null,"watch",Z.inPlaylist)}}},j85=function(L){return L.prefetchJobConfig_.backgroundTrigger?_.B8(_.swL)()==0?L.prefetchJobConfig_.backgroundTrigger:L.prefetchJobConfig_.foregroundTrigger:L.prefetchJobConfig_.foregroundTrigger},EBQ=function(L){_.nc(document,"visibilitychange",L.onVisibilityChange_,!1,L)},lf=function(L){FV.call(this,L)};
_.f(lf,FV);lf.prototype.getCacheKeyForEndpoint=function(L){return FV.prototype.getCacheKeyForEndpoint.call(this,L)};
lf.prototype.getTempData=function(){return{}};
lf.prototype.getXhrParams=function(L){return L};
lf.prototype.getParams=function(){return{}};
var Plg=function(L,Z,N){var S=L.prefetchDelay*1E3;if(Math.abs(S)>Z)N.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var u=S,T=Z-S;S<0&&(u=Z+S,T=Math.abs(S));var W=L.JSC$13230_taskManager.addJob(function(){N.resolve(T/1E3)},10,u);
N.promise.thenCatch(function(){L.JSC$13230_taskManager.cancelJob(W)})}},pnq=function(L,Z,N){Do.call(this,L,Z,N)};
_.f(pnq,Do);pnq.prototype.prepareTrigger=function(L){var Z=this;fws(this,"onAutonavCoundownStarted",function(N){Plg(Z,N,L)})};
var z$k=function(L){L.pendingPrefetchJob_&&(L.pendingPrefetchJob_.cancel(),L.pendingPrefetchJob_=null)},mbv=function(L,Z,N){if(!L.triggeredTargets.has(Z)){var S=_.o4M(L,Z);
S.action=N;_.ltV(L,Z,S)}},J4y=function(L){_.WIQ();
_.HTs("cpt")&&_.Q7(Error("lh"));_.iH.requestAnimationFrame(function(){_.iH.setTimeout(function(){_.Rq("cpt");var Z=_.k6("vpl"),N=_.k6("cpt");Z&&N&&_.Rq("ol",Math.max(Z,N))})});
try{_.Rq("fr_s"),L()}catch(Z){_.CA(Z)}_.iH.requestAnimationFrame(function(){_.Rq("bcp")})},ClP=function(L,Z){L.serviceEndpointHandlers.push(Z)},r45=function(L,Z){Z=L.pendingPages_.indexOf(Z);
Z>-1&&L.pendingPages_.splice(Z,1)},Q8q=function(L,Z){var N=_.sCh.indexOf(Z);
N>-1&&_.sCh.splice(N,1);L.targetPage_==Z?(L.abort(),_.EcQ(L)):r45(L,Z)},XnQ=function(L,Z,N,S){Z={challenge:Z};
N&&(Z.webResponse=N);return _.Za(L.innertubeTransportService,Z,_.pk($bw),S)},A4q=function(L,Z,N){if(!Z.challenge)throw Error("qi");
if(Z.botguardData&&Z.botguardData.program){var S=new gBy;S.initialize(Z.botguardData,function(){FFc(S,{atr_challenge:Z.challenge}).then(function(u){if(!u)throw Error("ri");return XnQ(L,Z.challenge,u,N)}).catch(function(u){_.Q7(u);
return XnQ(L,Z.challenge,void 0,N)})},void 0)}else XnQ(L,Z.challenge,void 0,N)},Hc8=function(L,Z,N){var S={};
Z.ids&&(S.ids=[].concat(_.Pd(Z.ids)));Z.engagementType&&(S.engagementType=Z.engagementType);return _.Za(L.innertubeTransportService,S,_.pk(_.hBM),N).then(function(u){if(!u)throw new _.sr("GetAttestationChallenge returned falsy");A4q(L,u,N)}).thenCatch(function(u){_.CA(u)})},Bgy=function(L,Z,N){return new _.kE(function(S,u){var T;
return _.b(function(W){if(W.nextAddress==1){var V=W.yield,M=Z.engagementType,G=Z.ids,D={};G=_.O(G!=null?G:[]);for(var l=G.next();!l.done;l=G.next())l=l.value,l.encryptedVideoId?D.encryptedVideoId=l.encryptedVideoId:l.externalChannelId?D.externalChannelId=l.externalChannelId:l.commentId?D.commentId=l.commentId:l.externalOwnerId?D.externalOwnerId=l.externalOwnerId:l.artistId?D.artistId=l.artistId:l.playlistId?D.playlistId=l.playlistId:l.externalPostId?D.externalPostId=l.externalPostId:l.shareId&&(D.shareId=
l.shareId);return V.call(W,vDP(M,D),2)}T=W.yieldResult;if(!T.challenge)return _.Q7(Error("si")),Hc8(L,Z,N).then(S,u),W.return();V=T;M={challenge:V.challenge};M.webResponse=V.webResponse;M.engagementType=Z.engagementType;M.ids=Z.ids;_.Za(L.innertubeTransportService,M,_.pk($bw),N).then(S,u);_.w7(W)})})},exq=function(L,Z){var N,S,u,T;
_.b(function(W){if(W.nextAddress==1){N=_.n(Z,_.EUM);if(!(N&&N.listId&&L.response&&L.response.playingVideoId)||L.listId!==N.listId)return W.return();L.index===void 0&&(L.index=0);return W.yield(_.SEY(L.JSC$13083_playlistNetworkManager,N.listId,L.index,L.response.playingVideoId),2)}S=W.yieldResult;if(!S)return W.return();u=S.playlistId;T=S.playlistPanelRenderer;L.setPlaylistData(u,T,S.autoplayRenderer);_.w7(W)})},xbs=function(L,Z,N){var S=L.getParams(N),u=_.SSw(Z,S),T=L.getTempData(Z,N);
T.endpoint=JSON.stringify(Z);_.c("enable_unknown_lact_fix_on_html5")&&(_.GR().resolve(_.MV),T.lact=_.Fv());var W={headers:{"X-YouTube-STS":_.X7("STS"),"x-youtube-csoc":1}};_.pv(u,T);return new _.kE(function(V,M){var G=L.getXhrParams(S),D;_.c("kevlar_cache_on_ttl_player")&&(D=_.GR().resolve(_.G1));D&&_.Ehv(D,Z)?_.CGg(D,Z,T,window.location.href).then(function(l){l?V(l):M()},M):_.I_Y(L.JSC$13220_networkManager_,Z,G,L.onPartsCallback_.bind(L),W).then(function(l){l?V(l):M()},M)})},q8Q=function(L,Z){L.triggerPromise_=
Z.start();
L.triggerPromise_.then(function(N){var S=L.prefetchEndpointProvider_.getPrefetchEndpoint();if(S){var u=kkv[L.prefetchJobConfig_.pageType].prefetchedFragments;L.prefetchRequestPromise_=xbs(L.JSC$13256_networkPrefetchRequest_,S,{fragmentsRequested:u,timeBeforeNextVideo:N});L.prefetchResponseCacheKey_=L.JSC$13256_networkPrefetchRequest_.getCacheKeyForEndpoint(S);EBQ(L);L.prefetchRequestPromise_.then(function(T){L.storePrefetchedDataCallback_(L.prefetchResponseCacheKey_,T);if(_.c("web_prefetch_preload_video")&&
u.length===1&&u[0]==="pl"&&T&&!T.playerAds&&!T.adPlacements){var W=_.n(S,_.Ox),V=W!=null,M={raw_player_response:T,watch_endpoint:W};(T=_.GR().resolve(V?_.PuO:_.HQ))&&S&&T.then(function(G){V&&_.c("web_queue_preload_video")?(M.prefer_gapless=!0,G.queueNextVideo(M)):G.preloadVideoByPlayerVars(M)})}})}})},vj=function(L,Z,N,S){this.prefetchEndpointProvider_=L;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=Z;this.prefetchJobConfig_=N;this.JSC$13256_networkPrefetchRequest_=S;this.prefetchResponseCacheKey_=null};
vj.prototype.enqueue=function(){this.triggerPromise_||(q8Q(this,j85(this)),_.Gl(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
vj.prototype.resolve=function(){this.cancel()};
vj.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.");EBQ(this)};
vj.prototype.onVisibilityChange_=function(){var L=this;_.B8(_.swL)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){L.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||q8Q(this,j85(this))};
var LBY=function(L,Z,N,S,u){Z&&(Z==null?0:Z.videoId)&&N&&N.entries&&_.c("kevlar_enable_shorts_prefetch_in_sequence")&&(z$k(L),Z=N.entries.map(function(T){var W;return(W=_.n(T.command,_.Ox))==null?void 0:W.videoId}).indexOf(Z.videoId),N=N.entries[Z+1],N!=null&&N.command&&!_.n(N==null?void 0:N.command,_.Hb)&&(S=new h$k([N.command],new wn5(S,_.ro,1),null,"shorts",!1),L.pendingPrefetchJob_=new vj(new awk(S.autonavEndpoints),function(){return!1},S,new lf(u)),L.pendingPrefetchJob_.enqueue()))},ZLy=function(L,
Z,N,S,u,T){var W=_.Fx.getInstance();
if(!_.c("block_all_player_prefetch_requests")){z$k(L);var V=!!N.getPlaylistId(),M=N.getVideoData().isLive&&N.getVideoData().hasProgressBarBoundaries;if((W.getState()==2||V||M)&&(!N.getVideoData().isLive||M)){W={inPlaylist:V,videoDuration:N.getDuration(),makeUpNextTrigger:function(D){return new pnq(N,_.ro,D)},
makePlaybackTrigger:function(D){return new wn5(N,_.ro,D)}};
var G=s8y(Z,W);G&&(L.pendingPrefetchJob_=new vj(G.isInPlaylist?new dbk(u):new awk(G.autonavEndpoints),function(D,l){l=new e$q(kkv[G.pageType].pageFragments,kkv[G.pageType].prefetchedFragments,l);return _.WHM(l)?(L.prefetchCache_.set(D,l),!0):!1},G,new $H(S,N,T,u)),L.pendingPrefetchJob_.enqueue())}}},Nps=function(){var L=_.te();
L.signals.parkOrScheduleJob(function(){var Z=L.storage;if(Z.storage)if(oBy(Z)){var N=Z.getPlaylistId();Z=R$Q(Z);N=!!N&&Z!==void 0}else Z.clear(),N=!1;else N=!1;if(N){N=L.JSC$13083_pageManager.isOnWatch();a:{var S=L.storage;if(S.storage&&oBy(S)&&(Z=S.getPlaylistId(),S=R$Q(S),Z&&S!==void 0)){N={recoverPlaylistCommand:{listId:Z,index:S,openMiniplayer:!N,openListPanel:N,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}N=void 0}N&&_.Pc(L.JSC$13083_actionRouter,[N],null)}},0,"ma")},Stv=function(L,Z,N,
S,u,T){var W=_.Ll(7111);
_.k3(L.JSC$18556_screenManager,W,T?_.Mg(T):void 0);_.wM(L.JSC$18556_screenManager,W,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:S,offlineId:Z,offlineabilityFormatType:N,isDefaultFormatType:u==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:u}})},iLq=function(L,Z,N,S,u){var T,W,V,M,G;
return _.b(function(D){if(D.nextAddress==1)return D.yield(L.JSC$18556_playerApiPromise,2);T=D.yieldResult;Stv(L,Z,N,"OFFLINE_OBJECT_TYPE_PLAYLIST",S,u);if(V=_.yPq[L.entityTypeMap.listEntityType])G={},W=(G[V]={maximumDownloadQuality:(M=N)!=null?M:void 0},G);return D.yield(T.queueOfflineAction(Z,L.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",W),0)})},uGg=function(L,Z){var N,S,u,T;
return _.b(function(W){if(W.nextAddress==1)return W.yield(L.JSC$18556_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3){N=W.yieldResult;if(!N)return _.Q7(new _.sr("PES is undefined")),W.return();S=_.qj(Z,"downloadStatusEntity");return W.yield(vB5(N,S,"downloadStatusEntity"),3)}u=W.yieldResult;return W.return((T=u)==null?void 0:T.downloadState)})},Tpg=function(L,Z,N,S,u){var T,W,V,M,G,D;
return _.b(function(l){switch(l.nextAddress){case 1:return l.yield(L.JSC$18556_playerApiPromise,2);case 2:T=l.yieldResult;Stv(L,Z,N,"OFFLINE_OBJECT_TYPE_VIDEO",S,u);if(V=_.yPq[L.entityTypeMap.singleEntityType])G={},W=(G[V]={maximumDownloadQuality:(M=N)!=null?M:void 0},G);return l.yield(uGg(L,Z),3);case 3:D=l.yieldResult;if(D!=="DOWNLOAD_STATE_USER_DELETED"){l.jumpTo(4);break}return l.yield(L.deleteVideo(Z),4);case 4:return l.yield(T.queueOfflineAction(Z,L.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
W),0)}})},t7k=function(L,Z,N,S,u){return _.b(function(T){return T.nextAddress==1?T.yield(L.deleteVideo(Z,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):T.yield(Tpg(L,Z,N,S,u),0)})},OL8=function(L,Z,N){var S,u;
return _.b(function(T){if(T.nextAddress==1)return T.yield(L.JSC$18556_playerApiPromise,2);S=T.yieldResult;u=_.qj(Z,"mainVideoDownloadStateEntity");return T.yield(S.updateDownloadState(u,N),0)})},NIs=function(L){var Z=_.GR().resolve(_.PC);
return _.b(function(N){if(N.nextAddress==1)return Z.previousDownloadStateForVideo[L]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&Z.previousDownloadStateForVideo[L]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?N.jumpTo(2):N.yield(Z.resumeVideoDownload(L),2);if(N.nextAddress!=4)return N.yield(OL8(Z,L,Z.previousDownloadStateForVideo[L]),4);delete Z.previousDownloadStateForVideo[L];_.w7(N)})},LQ5=function(L,Z){var N;
return _.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$18556_playerApiPromise,2);N=S.yieldResult;return S.yield(N.queueOfflineAction(Z,L.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},BKQ=function(){var L=_.GR().resolve(_.PC),Z,N;
return _.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$18556_playerApiPromise,2);if(S.nextAddress!=3)return Z=S.yieldResult,N={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},S.yield(Z.queueOfflineAction("!*$_ALL_ENTITIES_!*$",L.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",N),3);var u=L.JSC$18556_commandHandler,T=u.resolveCommand,W=_.iB("DELETING_ALL",void 0,"Downloads are being deleted");T.call(u,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Cq(W)}},
popupType:"TOAST"}});_.w7(S)})},WBs=function(L,Z){var N,S,u,T,W,V;
return _.b(function(M){if(M.nextAddress==1)return M.yield(L.JSC$18556_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return N=M.yieldResult,N?M.yield(vB5(N,_.F8,"downloadsPageViewConfigurationEntity"),3):(_.Q7(new _.sr("PES is undefined")),M.return());u=(S=M.yieldResult)!=null?S:{};V=(W=(T=u)==null?void 0:T.downloadsUpsellBannerVisibility)!=null?W:{};return V.visibleWithConnection?M.yield(Z.refreshAllStaleEntities(0),0):M.jumpTo(0)})},V7k=function(L){var Z,N;
return _.b(function(S){if(S.nextAddress==1)return S.yield(L.JSC$18556_prefStorage,2);Z=S.yieldResult;return S.return((N=Z)==null?void 0:N.get("sdois"))})},bLk=function(L){var Z,N,S,u,T,W;
return _.b(function(V){if(V.nextAddress==1)return V.yield(L.JSC$18556_persistentStorePromiseAccessor(),2);if(V.nextAddress!=3){Z=V.yieldResult;if(!Z)return _.Q7(new _.sr("PES is undefined")),V.return();N=_.qj("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return V.yield(vB5(Z,N,"settingEntity"),3)}S=V.yieldResult;return V.return((W=(u=S)==null?void 0:(T=u.settingOptionValue)==null?void 0:T.boolValue)!=null?W:!1)})},M78=function(L,Z){var N,S,u,T;
return _.b(function(W){switch(W.nextAddress){case 1:return((N=Z)==null?void 0:N.formatType)===void 0?W.return():W.yield(L.JSC$18556_prefStorage,2);case 2:S=W.yieldResult;if(S===void 0)return W.return();if(((u=Z)==null?void 0:u.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return W.yield(S.set("lmqf",Z.formatType),8);if(((T=Z)==null?void 0:T.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){W.jumpTo(0);break}return W.yield(S.set("lmqf",Z.formatType),6);case 6:return W.yield(S.set("lmqflst",
Math.floor((0,_.GT)())),0);case 8:return W.yield(S.remove("lmqflst"),0)}})},gW8=function(L){var Z,N;
return _.b(function(S){switch(S.nextAddress){case 1:return S.yield(L.JSC$18556_prefStorage,2);case 2:Z=S.yieldResult;if(!Z){S.jumpTo(3);break}return S.yield(Z.get("lmqflst"),4);case 4:if(N=S.yieldResult,N!==void 0)return S.return(N);case 3:return S.return(0)}})},GQg=function(L){var Z,N;
return _.b(function(S){switch(S.nextAddress){case 1:return S.yield(L.JSC$18556_prefStorage,2);case 2:Z=S.yieldResult;if(Z===void 0){S.jumpTo(3);break}return S.yield(Z.get("lmqf"),4);case 4:if(N=S.yieldResult,N!==void 0)return S.return(N);case 3:return S.return("SD")}})},VsQ=function(L,Z,N){var S,u,T,W,V,M,G,D;
_.b(function(l){switch(l.nextAddress){case 1:return l.yield(M78(L,(S=Z)==null?void 0:S.actionParams),2);case 2:u=Z.playlistId;if(!u)return l.return();if(Z.action==="ACTION_ADD")return((W=Z.actionParams)==null?0:W.formatType)?l.yield(iLq(L,u,Z.actionParams.formatType,(D=Z.actionParams)==null?void 0:D.settingsAction,N),0):l.yield(L.offlineWebClientEligibility,14);if(Z.action==="ACTION_REMOVE_WITH_PROMPT"){var v=L.JSC$18556_commandHandler,R=v.resolveCommand,K=_.X7("INNERTUBE_CLIENT_NAME");var U=K===
"WEB_REMIX"?_.iB("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.iB("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var d=K==="WEB_REMIX"?[_.iB("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];K=K==="WEB_REMIX"?_.iB("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.iB("DELETE",void 0,"Delete");var h=_.iB("CANCEL",void 0,"Cancel");U=oDg(U,d,K,h,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:u});R.call(v,{openPopupAction:U});return l.return()}if(Z.action===
"ACTION_REMOVE")return l.yield(LQ5(L,u),0);if(Z.action!=="ACTION_SYNC"){l.jumpTo(0);break}return l.yield(L.JSC$18556_playerApiPromise,9);case 9:return T=l.yieldResult,l.yield(T.queueOfflineAction(u,L.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return V=l.yieldResult,l.yield(GQg(L),15);case 15:return M=l.yieldResult,l.yield(gW8(L),16);case 16:G=l.yieldResult,Z.onAddCommand&&L.JSC$18556_commandHandler.resolveCommand(Z.onAddCommand,{form:{preferredFormatType:M,
offlineWebClientEligibility:V,lastOfflineQualitySettingsSavedMs:G.toString()}}),l.jumpTo(0)}})},O7P=function(L,Z,N){var S,u,T,W,V,M,G,D,l,v,R,K,U,d;
_.b(function(h){switch(h.nextAddress){case 1:return h.yield(M78(L,(S=Z)==null?void 0:S.actionParams),2);case 2:u=Z.videoId;if(!u)return h.return();if(Z.action==="ACTION_REMOVE_WITH_PROMPT"){var E=L.JSC$18556_commandHandler,A=E.resolveCommand,J=_.X7("INNERTUBE_CLIENT_NAME");var C=J==="WEB_REMIX"?_.iB("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.iB("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var X=J==="WEB_REMIX"?[_.iB("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];J=J==="WEB_REMIX"?_.iB("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.iB("DELETE",void 0,"Delete");var L1=_.iB("CANCEL",void 0,"Cancel");C=oDg(C,X,J,L1,{signal:"DELETE_DOWNLOAD",targetId:u});A.call(E,{openPopupAction:C});return h.return()}if(Z.action==="ACTION_ADD")return((v=Z.actionParams)==null?0:v.formatType)?h.yield(Tpg(L,u,Z.actionParams.formatType,(d=Z.actionParams)==null?void 0:d.settingsAction,N),0):h.yield(L.offlineWebClientEligibility,23);if(Z.action==="ACTION_RETRY")return h.yield(GQg(L),
19);if(Z.action==="ACTION_PAUSE")return h.yield(L.pauseVideoDownload(u),0);if(Z.action==="ACTION_RESUME")return h.yield(L.resumeVideoDownload(u),0);if(Z.action!=="ACTION_REMOVE"){h.jumpTo(0);break}return h.yield(uGg(L,u),13);case 13:return T=h.yieldResult,L.previousDownloadStateForVideo[u]=(W=T)!=null?W:"DOWNLOAD_STATE_UNKNOWN",h.yield(OL8(L,u,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(L.previousDownloadStateForVideo[u]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&L.previousDownloadStateForVideo[u]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){h.jumpTo(15);break}return h.yield(L.pauseVideoDownload(u),15);case 15:E=_.iB("DELETED_VIDEO",void 0,"Video deleted from downloads.");A=_.iB("UNDO_ACTION",void 0,"Undo");C=_.iB("CLOSE",void 0,"Close");V={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Cq(E),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Cq(A),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:u}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:E+" "+A}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:u}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:C}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};L.JSC$18556_commandHandler.resolveCommand(V);
h.jumpTo(0);break;case 19:M=h.yieldResult;M==="UNKNOWN_FORMAT_TYPE"&&(M="SD");G="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((D=Z.actionParams)==null?0:D.formatType)M=Z.actionParams.formatType,G=(l=Z.actionParams)==null?void 0:l.settingsAction;return h.yield(t7k(L,u,M,G,N),20);case 20:return h.return();case 23:return R=h.yieldResult,h.yield(GQg(L),24);case 24:return K=h.yieldResult,h.yield(gW8(L),25);case 25:U=h.yieldResult,Z.onAddCommand&&L.JSC$18556_commandHandler.resolveCommand(Z.onAddCommand,
{form:{preferredFormatType:K,offlineWebClientEligibility:R,lastOfflineQualitySettingsSavedMs:U.toString()}}),h.jumpTo(0)}})},FBY=function(L,Z){var N,S,u,T,W,V,M;
return _.b(function(G){if(G.nextAddress==1)return G.yield(L.JSC$18556_persistentStorePromiseAccessor(),2);N=G.yieldResult;if(!N)return _.Q7(new _.sr("PES is undefined")),G.return();if((S=Z)==null||!S.settingItemId)return G.return();u=Z;T=u.settingItemId;W=u.boolValue;V=_.qj(T,"settingEntity");M={key:V,settingOptionValue:{boolValue:W}};return G.yield(lww(N,M),0)})},$6m=function(L,Z){var N,S,u,T,W,V,M;
return _.b(function(G){switch(G.nextAddress){case 1:return G.yield(L.JSC$18556_prefStorage,2);case 2:return N=G.yieldResult,S=_.tq(),G.yield(L.JSC$18556_persistentStorePromiseAccessor(),3);case 3:return u=G.yieldResult,N?u?G.yield(N.get("sdois"),4):(_.Q7(new _.sr("PES is undefined")),G.return()):(_.Q7(new _.sr("prefStorage is undefined")),G.return());case 4:T=G.yieldResult;V=(W=Z)==null?void 0:W.boolValue;V===void 0||_.c("kevlar_set_sd_enabled_flag_killswitch")||_.OT(0,197,!0);T===void 0&&V===void 0&&
(V=!1);if(V===void 0){G.jumpTo(0);break}return G.yield(N.set("sdois",V),6);case 6:return _.c("kevlar_set_sd_enabled_flag_killswitch")||(_.OT(0,196,V),S.save()),M={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:V},G.yield(FBY(L,M),0)}})},D6q=function(L,Z,N){var S,u,T,W,V;
return _.b(function(M){switch(M.nextAddress){case 1:return M.yield(V7k(L),2);case 2:return S=M.yieldResult,M.yield($6m(L,N),3);case 3:return M.yield(V7k(L),4);case 4:return u=M.yieldResult,T=u!==S,M.yield(bLk(L),5);case 5:W=M.yieldResult&&!_.c("kevlar_modern_downloads_page");if((V=!u&&!W)||T)return M.yield(Z.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);M.jumpTo(0)}})},i7Q=function(){var L=_.GR().resolve(_.PC),
Z;
_.b(function(N){switch(N.nextAddress){case 1:return N.yield(L.JSC$18556_playerApiPromise,2);case 2:Z=N.yieldResult;if(!_.c("kevlar_force_refresh_smart_downloads")){N.jumpTo(3);break}return N.yield(Z.refreshAllStaleEntities(0),4);case 4:return N.return();case 3:return N.yield(Z.refreshAllStaleEntities(),5);case 5:return N.yield(D6q(L,Z),6);case 6:if(_.c("enable_download_pep_for_premium_countries_web"))return N.yield(WBs(L,Z),0);N.jumpTo(0)}})},MsQ=function(L,Z){var N,S;
_.b(function(u){switch(u.nextAddress){case 1:return u.yield(L.JSC$18556_playerApiPromise,2);case 2:N=u.yieldResult;switch((S=Z)==null?void 0:S.settingItemId){case "SMART_DOWNLOADS_ENABLED":return u.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return u.jumpTo(4)}u.jumpTo(0);break;case 3:return u.yield(D6q(L,N,Z),6);case 6:u.jumpTo(0);break;case 4:return u.yield(FBY(L,Z),7);case 7:u.jumpTo(0)}})},l35=function(L,Z){var N,S,u;
return _.b(function(T){if(T.nextAddress==1)return T.yield(L.JSC$18556_persistentStorePromiseAccessor(),2);if(T.nextAddress!=3){N=T.yieldResult;if(!N)return _.Q7(new _.sr("PES is undefined")),T.return(!1);if(!Z)return T.return(!1);S=_.qj(Z,"mainVideoEntity");return T.yield(vB5(N,S,"mainVideoEntity"),3)}u=T.yieldResult;return T.return(u!==void 0)})},GwY=function(L){var Z=_.GR().resolve(_.PC),N,S,u,T,W,V,M,G,D,l,v;
_.b(function(R){switch(R.nextAddress){case 1:return R.yield(Z.JSC$18556_playerApiPromise,2);case 2:N=R.yieldResult;u=(S=L)==null?void 0:S.actions;if(!u)return R.return();T=_.O(u);W=T.next();case 3:if(W.done){R.jumpTo(0);break}V=W.value;G=M=void 0;if(!(((M=V)==null?0:M.entityKey)&&((G=V)==null?0:G.actionType))){R.jumpTo(4);break}D=_.HB(V.entityKey);l=D.entityId;v=D.entityType;return R.yield(N.queueOfflineAction(l,v,V.actionType),4);case 4:W=T.next(),R.jumpTo(3)}})},vWP=function(L,Z){var N,S,u,T,W;
return _.b(function(V){if(V.nextAddress==1)return V.yield(L.JSC$18556_prefStorage,2);if(V.nextAddress!=3)return(N=V.yieldResult)?V.yield(N.get("psi"),3):V.return();S=V.yieldResult;W={isPaused:Z,lastSyncTimestamp:(T=(u=S)==null?void 0:u.lastSyncTimestamp)!=null?T:"0"};return V.yield(N.set("psi",W),0)})},DYy=function(L){var Z=_.GR().resolve(_.PC),N,S,u,T,W,V,M,G;
return _.b(function(D){switch(D.nextAddress){case 1:return D.yield(Z.JSC$18556_playerApiPromise,2);case 2:N=D.yieldResult;u=((S=L)==null?void 0:S.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((V=L)==null?void 0:V.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":T="!*$_ALL_ENTITIES_!*$";W="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return D.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return D.jumpTo(4)}D.jumpTo(5);break;case 3:return D.yield(vWP(Z,u),6);case 6:D.jumpTo(5);break;case 4:return D.yield(l35(Z,(M=L)==null?void 0:M.videoId),7);case 7:D.yieldResult&&(T=(G=L)==null?void 0:G.videoId,W="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");D.jumpTo(5);break;case 5:if(T&&W)return D.yield(N.queueOfflineAction(T,"videoPlaybackPositionEntity",W),0);D.jumpTo(0)}})},oW5=function(L,Z){var N;
Z!==1||((N=L.currentPersistentToast)==null?0:N.isOpened())?L.openToast():L.currentPersistentToast=void 0},RXy=function(L,Z){var N;
return(N=L.transitionTasksMap.get(Z))!=null?N:[]},cLc=function(L,Z){var N=[];
L.elementTasksMap.forEach(function(S){(S=S.get(Z))&&N.push(S)});
return N},nW5=function(L,Z,N,S,u){u=u===void 0?{}:u;
var T=Z.defaultViewTransitionOptions;return Object.assign({},T,u,{beforeTransition:function(){S.forEach(function(G){G.beforeTransition()});
var W;(W=T.beforeTransition)==null||W.call(T);var V,M;(M=(V=u).beforeTransition)==null||M.call(V);N.forEach(function(G){G.beforeTransition()})},
afterTransition:function(){S.forEach(function(G){G.afterTransition()});
var W;(W=T.afterTransition)==null||W.call(T);var V,M;(M=(V=u).afterTransition)==null||M.call(V);N.forEach(function(G){G.afterTransition()})},
ignoredErrors:L.config.ignoredErrors})},KBv=function(L,Z,N){L.transitionTasksMap.has(Z)?L.transitionTasksMap.get(Z).push(N):(L=new _.sr("Transition task registered for unknown transition type",Z),_.CA(L))},f3v=function(L,Z,N){if(L.transitionTasksMap.has(Z)){var S=L.transitionTasksMap.get(Z).filter(function(u){return u!==N});
L.transitionTasksMap.set(Z,S)}},kQv=function(L,Z){var N=RXy(L,Z);
N=_.O(N);for(var S=N.next();!S.done;S=N.next())S=S.value,S.runOnce&&f3v(L,Z,S);L.elementTasksMap.forEach(function(u,T){u.forEach(function(W,V){W.runOnce&&Z===V&&(u.delete(V),u.size===0&&L.elementTasksMap.delete(T))})})},yLP=function(L,Z,N){var S,u,T,W,V,M,G,D,l;
_.b(function(v){if(v.nextAddress==1){if(L.config.disableAllTransitions)return v.return(Z());if((S=N)==null||!S.transitionType)return v.return(_.tDv(Z,Object.assign({},(u=N)==null?void 0:u.viewTransitionOptions,{ignoredErrors:L.config.ignoredErrors})));T=N;W=T.transitionType;V=T.viewTransitionOptions;M=L.config.transitionConfigs.get(W);if(!M)return v.return(Z());G=RXy(L,W);D=cLc(L,W);l=_.tDv(Z,nW5(L,M,G,D,V));return v.yield(l,2)}kQv(L,W);_.w7(v)})},wFw=function(){var L,Z,N,S;
return _.b(function(u){if(u.nextAddress==1)return L=navigator,(Z=L.storage)!=null&&Z.persisted?u.yield((N=L.storage)==null?void 0:N.persisted(),2):u.return("PERSISTED_STATE_NOT_SUPPORTED");S=u.yieldResult;return u.return(S?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},U6Q=function(){var L,Z,N,S;
return _.b(function(u){if(u.nextAddress==1)return L=navigator,(Z=L.storage)!=null&&Z.persist?u.yield((N=L.storage)==null?void 0:N.persist(),2):u.return("PERSISTED_STATE_NOT_SUPPORTED");S=u.yieldResult;return u.return(S?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},Yty=function(){var L,Z;
return _.b(function(N){switch(N.nextAddress){case 1:return L="PERSISTED_STATE_NOT_SUPPORTED",_.RS(N,2),N.yield(wFw(),4);case 4:L=N.yieldResult;if(L!=="PERSISTED_STATE_NOT_GRANTED"){N.jumpTo(5);break}return N.yield(U6Q(),6);case 6:L=N.yieldResult;case 5:_.SX(N,3);break;case 2:Z=_.yd(N),Z instanceof Error&&_.CA(Z);case 3:return _.mS("persistentStorageStateChecked",{persistedState:L}),N.return(L)}})},eXw=function(L,Z){var N=[],S=!1;
Z=_.O(Z);for(var u=Z.next();!u.done;u=Z.next()){u=L.moduleRegistry[u.value];var T=void 0,W=void 0;((T=u)==null?0:T.isFetching)&&((W=u)==null?0:W.resolver)?(N.push(u.resolver.promise),S=!0):(u=new _.qe,u.resolve(void 0),N.push(u.promise))}return S?Promise.all(N):void 0},I3y=function(L,Z,N){if(L.isAnyTransitionEnabled){var S={beforeTransition:function(){N(!0);
Z.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){Z.style.viewTransitionName&&(Z.style.viewTransitionName="",N(!1))}};
KBv(L.viewTransitionCoordinator,"slide",S);KBv(L.viewTransitionCoordinator,"lockup-to-watch",S);KBv(L.viewTransitionCoordinator,"watch-next-appears",S);KBv(L.viewTransitionCoordinator,"learning-journey",S)}},d6y=function(L,Z){L.isBrowseTransitionEnabled?yLP(L.viewTransitionCoordinator,Z,{transitionType:"slide"}):(Z(),Promise.resolve())},a3v=function(L,Z){L.isLockupToWatchTransitionEnabled?yLP(L.viewTransitionCoordinator,Z,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){L.registeredLockupThumbnail=void 0;L.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(Z(),Promise.resolve())},hXv=function(L,Z){L.isLockupToWatchTransitionEnabled?yLP(L.viewTransitionCoordinator,Z,{transitionType:"watch-next-appears"}):(Z(),Promise.resolve())},sTg=function(L,Z){L.isLearningJourneyTransitionEnabled?yLP(L.viewTransitionCoordinator,Z,{transitionType:"learning-journey"}):(Z(),Promise.resolve())},jTk=function(L,Z,N){if(L.isInitialized()){var S=
qy(N),u=S==="watch";
S=S==="shorts";var T=qy(Z)==="watch";if(u)T||(L.backgroundPageData=Z),L.watchPipMode&&T||L.deactivate(N.endpoint);else if(S){if(qy(Z)!=="shorts"){var W;(W=L.getPlayerElement())==null||W.pause()}}else T&&!L.watchPipMode&&(Rdg(Z,N,!0)?(L.watchWhileMode&&_.raY(L,!1),_.PpP(L,Z)):L.isMiniplayerActive()&&L.watchWhileMode&&L.deactivate());T&&_.Xx8(L);L.shortsPipMode&&!S&&(window.focus(),L.deactivate());if(L.pictureInPictureEnabled())if(S&&L.shortsPipEnabled||u&&L.watchPipEnabled)_.vKB(L.handleMediaSessionPipActivation);
else if(!L.isMiniplayerActive()&&(L.shortsPipEnabled||L.watchPipEnabled)&&window.documentPictureInPicture&&_.UG()&&_.cxA("Chromium")>=120){L=_.lvG().mediaSession;try{L.setActionHandler("enterpictureinpicture",null)}catch(V){}}}},EWw=function(L,Z){var N,S;
_.b(function(u){if(u.nextAddress==1){if(!L||!L.navigationEndpoint)return u.return();_.dM().lockupActivation=!0;var T;Z?T=_.s9(_.iB("QUEUE",void 0,"Queue")):T=L.longBylineText;S=(N=T)&&L.title?{miniplayerTitle:L.title,miniplayerSubtitle:N,playlistData:null}:void 0;return u.yield(_.wHO(_.GR().resolve(_.yk),L.navigationEndpoint,!0,S),2)}_.dM().userActivation=!0;_.w7(u)})},wVw=function(L,Z){var N,S,u,T,W,V;
_.b(function(M){if(M.nextAddress==1){N=_.n(Z,_.j1s);if(!N||!N.listId)return M.return();L.index=N.index||L.index||0;S=L.response&&L.response.playingVideoId||void 0;return M.yield(_.SEY(L.JSC$13083_playlistNetworkManager,N.listId,L.index,S),2)}u=M.yieldResult;if(!u)return M.return();T=u.playlistId;W=u.playlistPanelRenderer;!L.queueProxy&&T&&W&&T.startsWith("TLPQ")&&(L.queueProxy=new _.qU(L.JSC$13083_playlistNetworkManager,T,L.setPlaylistData.bind(L),L.clearQueue.bind(L),_.LxL(W),L.storage));if(N.openMiniplayer&&
(V=_.ZSB(W))&&!L.JSC$13083_pageManager.isOnWatch()){var G=V,D=N.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";L.isMiniplayerActive()?L.openToast(G):EWw(G,D)}L.setPlaylistData(T,W,u.autoplayRenderer);_.w7(M)})},fKc=function(L,Z){var N=_.te();
N.index===void 0&&(N.index=0);N.temporaryItems.push.apply(N.temporaryItems,_.Pd(L));if((Z.videoId||Z.videoIds)&&N.index!==void 0&&Z.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!N.queueProxy){var S=[];if(N.response){var u=_.GR().resolve(_.yk).isMiniplayerActive();if(N.response.playlistPanelRenderer&&N.response.playlistId&&!N.response.playlistId.startsWith("TLPQ")){if(N.JSC$13083_pageManager.isOnWatch()||u)S=_.LxL(N.response.playlistPanelRenderer)}else N.response.playingVideoId&&!Z.openMiniplayer?
S.push(N.response.playingVideoId):u&&N.response.playingVideoId&&Z.openMiniplayer&&S.push(N.response.playingVideoId)}N.queueProxy=new _.qU(N.JSC$13083_playlistNetworkManager,"",N.setPlaylistData.bind(N),N.clearQueue.bind(N),S,N.storage);N.queueProxy.JSC$13029_setCurrentIndex(N.index)}N.queueProxy.addVideos(Z.videoIds||[Z.videoId],Z)}c4Y(N,L);N.response&&_.OO(N,_.W3(N,N.response.autoplayRenderer));N.JSC$13083_pageManager.isOnWatch()?N.isMiniplayerActive()&&N.openToast(L[0]):(L=L[0],Z=Z.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
N.isMiniplayerActive()?N.openToast(L):EWw(L,Z))},Pxk=function(L){var Z=_.qI(L);
if(Z=="object"||Z=="array"){if(typeof L.clone==="function")return L.clone();if(typeof Map!=="undefined"&&L instanceof Map)return new Map(L);if(typeof Set!=="undefined"&&L instanceof Set)return new Set(L);Z=Z=="array"?[]:{};for(var N in L)Z[N]=Pxk(L[N]);return Z}return L},ok=function(L,Z){return _.vLh(_.t5(L,Z,void 0,_.T5))},Rk=function(L,Z){return _.Ww(_.t5(L,Z,void 0,_.T5))},cj=function(L,Z){return _.jOx(_.t5(L,Z,void 0,_.T5))},ng=function(L,Z){return _.t5(L,Z,void 0,_.T5,_.xL)},pF0=_.V8(function(L,
Z,N,S){if(L.nextWireType_!==0)return!1;
_.by(Z,N,S,_.UW(L.decoder_,_.DI0));return!0},_.$V,_.h5),zXm=_.V8(function(L,Z,N){if(L.nextWireType_!==1)return!1;
var S=L.decoder_;L=_.IA(S);S=_.IA(S);L=_.zV(L,S);_.Mq(Z,N,L);return!0},_.j7_,_.LkO),m6v=_.V8(function(L,Z,N){if(L.nextWireType_!==2)return!1;
L=_.jOs(L);_.Mq(Z,N,L===_.YL()?void 0:L);return!0},_.mqt,_.Svl),JLv=_.w61(function(L,Z,N){if(L.nextWireType_!==0&&L.nextWireType_!==2)return!1;
Z=_.Nq(Z,Z[_.ts]|0,N);L.nextWireType_==2?_.ELh(L,Zcy,Z):Z.push(_.ed(L.decoder_));return!0},function(L,Z,N){Z=_.yf1(_.Ww,Z,!0);
if(Z!=null&&Z.length){N=_.Ctq(L,N);for(var S=0;S<Z.length;S++)_.aMf(L.encoder_,Z[S]);_.rsY(L,N)}},_.i8t),Cxv=_.V8(function(L,Z,N,S){if(L.nextWireType_!==0)return!1;
_.by(Z,N,S,_.ed(L.decoder_));return!0},_.C9H,_.i8t),rLv=function(L){return L.previousElementSibling!==void 0?L.previousElementSibling:_.Fth(L.previousSibling,!1)},QTm=function(L,Z){var N=[];
for(Z=Z||0;Z<L.length;Z+=2)_.iyI(L[Z],L[Z+1],N);return N.join("&")},XF8=function(L,Z){var N=arguments.length==2?QTm(arguments[1],0):QTm(arguments,1);
return _.S_l(L,N)},ASq=_.R7(_.oL),ALQ=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(ALQ,_.On);ALQ.prototype.getTypeName=function(){return _.va(this,1).split("/").pop()};
ALQ.prototype.getValue=function(){var L=_.t5(this,2);if(Array.isArray(L)||L instanceof _.On)throw Error("W");return _.VM(this,2)};
var jb5=function(){var L=_.AN();this.JSC$9916_streamzService=L;L.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.DG("channel_type"))};
jb5.prototype.increment=function(L){this.JSC$9916_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",L)};
var E9g=function(){var L=_.AN();this.JSC$9919_streamzService=L;L.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.DG("channel_type"))};
E9g.prototype.increment=function(L){this.JSC$9919_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",L)};
var pTm=function(){var L=_.AN();this.JSC$9922_streamzService=L;L.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.DG("channel_type"))};
pTm.prototype.increment=function(L){this.JSC$9922_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",L)};
var PjY=function(){var L=_.AN();this.JSC$9925_streamzService=L;L.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
PjY.prototype.increment=function(){this.JSC$9925_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var zsP=function(){var L=_.AN();this.JSC$9928_streamzService=L;L.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.DG("channel_type"),_.DG("error_type"))};
zsP.prototype.increment=function(L,Z){this.JSC$9928_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",L,Z)};
var mrs=function(){var L=_.AN();this.JSC$9931_streamzService=L;L.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
mrs.prototype.increment=function(){this.JSC$9931_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Juq=function(){var L=_.AN();this.JSC$9934_streamzService=L;L.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Juq.prototype.increment=function(){this.JSC$9934_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var snQ=function(){var L=_.AN();this.JSC$9940_streamzService=L;L.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
snQ.prototype.increment=function(){this.JSC$9940_streamzService.JSC$9786_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var HLv=function(L){return L.getCount&&typeof L.getCount=="function"?L.getCount():_.Jx(L)||typeof L==="string"?L.length:_.Py.getCount(L)},Bp8=function(L,Z){if(typeof L.every=="function")return L.every(Z,void 0);
if(_.Jx(L)||typeof L==="string")return Array.prototype.every.call(L,Z,void 0);for(var N=_.iAY(L),S=_.N6(L),u=S.length,T=0;T<u;T++)if(!Z.call(void 0,S[T],N&&N[T],L))return!1;return!0},x6v=function(L,Z,N,S){var u=new _.j9(null);
L&&_.S7(u,L);Z&&_.ix(u,Z);N&&_.ux(u,N);S&&_.TQ(u,S);return u},qtg=function(){var L=_.HW&&_.$t(_.lfL,10)>=0,Z;
if(Z=_.CHh)Z=_.$t(_.D7I,10)>=0;var N=_.NQ&&_.$t(_.lfL,85)>=0;return _.xM||L||Z||N},LCv=function(L){var Z=_.jmh(L);
return Z&&qtg()?-L.scrollLeft:Z&&_.Ar(L,"overflowX")!="visible"?L.scrollWidth-L.clientWidth-L.scrollLeft:L.scrollLeft},Z2v=function(L,Z){Z=Math.max(Z,0);
_.jmh(L)?qtg()?L.scrollLeft=-Z:L.scrollLeft=L.scrollWidth-Z-L.clientWidth:L.scrollLeft=Z},s_5=0,zdY=!1;
ZV.prototype.set=function(L){this.relativeTimeStart_=L};
ZV.prototype.reset=function(){this.set(_.rc())};
ZV.prototype.get=function(){return this.relativeTimeStart_};
var N1g=null,S4Q=function(){N1g||(N1g=new ZV)},i2m=function(){N1g||(N1g=new ZV)};
_.Qk(i2m,S4Q);_.t=JJP.prototype;_.t.JSC$11359_buffer_="";_.t.set=function(L){this.JSC$11359_buffer_=""+L};
_.t.append=function(L,Z,N){this.JSC$11359_buffer_+=String(L);if(Z!=null)for(var S=1;S<arguments.length;S++)this.JSC$11359_buffer_+=arguments[S];return this};
_.t.clear=function(){this.JSC$11359_buffer_=""};
_.t.getLength=function(){return this.JSC$11359_buffer_.length};
_.t.toString=function(){return this.JSC$11359_buffer_};
var uDq=!1,BDs=function(L){_.NL.call(this,L.message||L.description||L.name);this.isMissing=L instanceof Ns;this.isTimeout=L instanceof _.jF&&L.errorCode=="net.timeout";this.isCanceled=L instanceof _.ko};
_.f(BDs,_.NL);BDs.prototype.name="BiscottiError";var Ns=function(){_.NL.call(this,"Biscotti ID is missing from server")};
_.f(Ns,_.NL);Ns.prototype.name="BiscottiMissingError";var S$=null,lKy=function(){try{var L=_.LZ("yt.ads.biscotti.getId_");return L?L():UdQ()}catch(Z){return _.$N(Z)}},T1w=function(L,Z){return _.XK({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:L,command:Z}})},t5c=function(L){return _.XK({type:"SET_GUIDE_IS_EXPANDED",
payload:L})},O28=function(L){return _.XK({type:"SET_ONLINE_STATUS",
payload:L})},WCP=function(L,Z){return _.XK({type:"SET_TRANSCRIPTION_STATE",
payload:{high:L,low:Z}})},V5m=function(L){return _.XK({type:"SET_OVERLAY_STATE",
payload:L})},b20=0,M5c=function(L,Z,N){var S=this;
this.priority=Z;this.delay=N;this.jobId=0;this.completionCallback=_.on;this.wrappedJob=function(){L();S.completionCallback()};
this.id=++b20};
M5c.prototype.enqueue=function(L){this.completionCallback=L;this.jobId=_.ro.addJob(this.wrappedJob,this.priority,this.delay)};
var Kg=function(){_.tv.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.f(Kg,_.tv);Kg.prototype.addJob=function(L,Z,N){L=new M5c(L,Z,N);this.taskIdToTask.set(L.id,L);this.isActive?gFP(this,L):this.suspendedTasks.add(L);return L.id};
var gFP=function(L,Z){L.scheduledTasks.add(Z);Z.enqueue(function(){L.scheduledTasks.delete(Z)})};
Kg.prototype.cancelJob=function(L){(L=this.taskIdToTask.get(L))&&(this.scheduledTasks.delete(L)?_.ro.cancelJob(L.jobId):this.suspendedTasks.delete(L))};
Kg.prototype.pause=function(){var L=this;this.isActive=!1;this.scheduledTasks.forEach(function(Z){_.ro.cancelJob(Z.jobId);L.suspendedTasks.add(Z)});
this.scheduledTasks.clear()};
Kg.prototype.start=function(){var L=this;this.isActive=!0;this.suspendedTasks.forEach(function(Z){gFP(L,Z)});
this.suspendedTasks.clear()};
Kg.prototype.reset=function(){this.scheduledTasks.forEach(function(L){_.ro.cancelJob(L.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var fg=function(L,Z){this.JSC$13209_networkService_=L;this.pageRequestPromise=Z};
fg.prototype.fetchData=function(L){GAk(this,this.JSC$13209_networkService_.fetchData(L))};
fg.prototype.postData=function(L,Z){GAk(this,this.JSC$13209_networkService_.postData(L,Z))};
fg.prototype.requestDataForServiceEndpoint=function(L,Z){GAk(this,this.JSC$13209_networkService_.requestDataForServiceEndpoint(L,Z))};
var GAk=function(L,Z){Z.then(L.pageRequestPromise.onSuccess,L.pageRequestPromise.onFailure,L.pageRequestPromise)};
fg.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var kH=function(L){this.buildNetworkRequest_=L;this.pendingRequests_=new Set};
kH.prototype.reset=function(){this.pendingRequests_.forEach(function(L){L.cancel()});
this.pendingRequests_.clear()};
kH.prototype.fetchData=function(L){var Z=FCc(this);Z.fetchData(L);return Z.pageRequestPromise};
kH.prototype.postData=function(L,Z){var N=FCc(this);N.postData(L,Z);return N.pageRequestPromise};
kH.prototype.requestDataForServiceEndpoint=function(L,Z){var N=FCc(this);N.requestDataForServiceEndpoint(L,Z);return N.pageRequestPromise};
var FCc=function(L){var Z=L.buildNetworkRequest_();L.pendingRequests_.add(Z);var N=function(){L.pendingRequests_.delete(Z)};
Z.pageRequestPromise.then(N,N);return Z},$XP=function(L){var Z=new Kg;
this.JSC$13216_networkService_=L;this.JSC$13216_taskManager_=Z;this.JSC$13216_networkManager_=new kH(this.networkRequestFactory_.bind(this))};
_.t=$XP.prototype;_.t.networkRequestFactory_=function(){return new fg(this.JSC$13216_networkService_,new _.Kf(this.JSC$13216_taskManager_))};
_.t.reset=function(){this.JSC$13216_taskManager_.reset();this.JSC$13216_networkManager_.reset()};
_.t.start=function(){this.JSC$13216_taskManager_.start()};
_.t.pause=function(){this.JSC$13216_taskManager_.pause()};
_.t.getTaskManager=function(){return this.JSC$13216_taskManager_};
_.t.getNetworkManager=function(){return this.JSC$13216_networkManager_};
var OYs=null,bYy=[],iE=0,TH=0,uE=null,O1=function(L){this.token=L};
O1.getInstance=function(){var L;return _.b(function(Z){if(Z.nextAddress==1)return Z.yield(_.MO(),2);L=Z.yieldResult;if(!L)return Z.return();O1.instance||(O1.instance=new O1(L));return Z.return(O1.instance)})};
var vN8=function(L){var Z;return _.b(function(N){if(N.nextAddress==1)return N.yield($gQ(L.token),2);Z=N.yieldResult;return N.return(Z.clear("resource-manifest-assets"))})},tn=function(L){this.token=L};
tn.getInstance=function(){var L;return _.b(function(Z){if(Z.nextAddress==1)return Z.yield(_.MO(),2);L=Z.yieldResult;if(!L)return Z.return();tn.instance||(tn.instance=new tn(L));return Z.return(tn.instance)})};
var DgQ=function(L){var Z;return _.b(function(N){if(N.nextAddress==1)return N.yield($gQ(L.token),2);Z=N.yieldResult;return N.yield(Z.clear("auth"),0)})},DX5=!1,WP=null,Ihk=void 0,zEg=!1,lQm=function(L){_.NL.call(this,L)};
_.f(lQm,_.yRN);var U38=function(){var L=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return L?parseInt(L[1],10):0},vFv=function(L){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+L)!=-1||document.currentScript.src.indexOf("&"+L)!=-1)},oFw=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},a25=function(L){L.length?Rkw(L.shift(),function(){a25(L)}):eUY()},sLg=function(L){return"chrome-extension://"+L+"/cast_sender.js"},Rkw=function(L,
Z,N){var S=document.createElement("script");
S.onerror=Z;N&&(S.onload=N);_.TE(S,_.jb(L));(document.head||document.documentElement).appendChild(S)},cvm=function(){var L=U38(),Z=[];
if(L>1){var N=L-1;Z.push("//www.gstatic.com/eureka/clank/"+L+"/cast_sender.js");Z.push("//www.gstatic.com/eureka/clank/"+N+"/cast_sender.js")}return Z},eUY=function(){var L=oFw();
L&&L(!1,"No cast extension found")},d3s=function(){if(nFk){var L=2,Z=oFw(),N=function(){L--;
L==0&&Z&&Z(!0)};
window.__onGCastApiAvailable=N;Rkw("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",eUY,N)}},Yis=function(){d3s();
var L=cvm();L.push("//www.gstatic.com/eureka/clank/cast_sender.js");a25(L)},I2w=function(){d3s();
var L=cvm();L.push.apply(L,_.Pd(hUc.map(sLg)));L.push("//www.gstatic.com/eureka/clank/cast_sender.js");a25(L)},nFk=vFv("loadCastFramework")||vFv("loadCastApplicationFramework"),hUc=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var KCP=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(KCP,_.On);var fQm=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(fQm,_.On);var kAy=function(){var L=new fQm;return _.yM(L,1,3)};var yP=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(yP,_.On);var UVQ=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(UVQ,_.On);var yvk=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(yvk,_.On);yvk.prototype.getToken=function(){return _.va(this,1)};
yvk.prototype.setToken=function(L){return _.ey(this,1,L)};
var ySm=function(L){return _.Bw(L,3,_.K8,_.gZ())},wQy=function(L){return _.Bw(L,6,_.K8,_.gZ())};var wt=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(wt,_.On);wt.prototype.getToken=function(){return _.lp(this,yvk,2)};
wt.prototype.setToken=function(L){return _.fG(this,2,L)};
wt.prototype.getName=function(){return _.va(this,6)};
var wcQ=_.R7(wt);var UXw=function(L,Z,N){this.requestMessage=L;this.methodDescriptor=Z;this.metadata=N};
UXw.prototype.getMetadata=function(){return this.metadata};var Y4Q=function(L,Z){Z=Z===void 0?{}:Z;this.responseMessage=L;this.metadata=Z;this.status=null};
Y4Q.prototype.getMetadata=function(){return this.metadata};
Y4Q.prototype.getStatus=function(){return this.status};var Ua=function(L,Z,N,S,u){this.name=L;this.methodType="unary";this.requestType=Z;this.responseType=N;this.requestSerializeFn=S;this.responseDeserializeFn=u},ek8=function(L,Z,N){N=N===void 0?{}:N;
return new UXw(Z,L,N)};
Ua.prototype.getName=function(){return this.name};var YH=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(YH,_.On);YH.prototype.getHeader=function(){return _.lp(this,yP,1)};
YH.prototype.setHeader=function(L){return _.fG(this,1,L)};
YH.prototype.hasHeader=function(){return _.OW(this,yP,1)};var IQP=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(IQP,_.On);var dXv=new Ua("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",YH,IQP,function(L){return L.serialize()},_.R7(IQP));var ev=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(ev,_.On);ev.prototype.getHeader=function(){return _.lp(this,yP,1)};
ev.prototype.setHeader=function(L){return _.fG(this,1,L)};
ev.prototype.hasHeader=function(){return _.OW(this,yP,1)};var aQk=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(aQk,_.On);var hk5=new Ua("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",ev,aQk,function(L){return L.serialize()},_.R7(aQk));var Ik=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Ik,_.On);Ik.prototype.getHeader=function(){return _.lp(this,yP,1)};
Ik.prototype.setHeader=function(L){return _.fG(this,1,L)};
Ik.prototype.hasHeader=function(){return _.OW(this,yP,1)};var syy=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(syy,_.On);syy.prototype.getLink=function(){return _.lp(this,wt,1)};var jyg=new Ua("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Ik,syy,function(L){return L.serialize()},_.R7(syy));var dt=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(dt,_.On);dt.prototype.getHeader=function(){return _.lp(this,yP,1)};
dt.prototype.setHeader=function(L){return _.fG(this,1,L)};
dt.prototype.hasHeader=function(){return _.OW(this,yP,1)};var EFg=new Ua("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",dt,wt,function(L){return L.serialize()},wcQ);var PYY=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(PYY,_.On);var pcy=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(pcy,_.On);pcy.prototype.getUrl=function(){return _.va(this,2)};
pcy.prototype.setUrl=function(L){return _.ey(this,2,L)};var zkY=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(zkY,_.On);var mXg=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(mXg,_.On);var Jvw=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Jvw,_.On);var pQs=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(pQs,_.On);var P4v=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(P4v,_.On);var CY0=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(CY0,_.On);var XQq=_.R7(CY0);var rvm=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(rvm,_.On);var QyY=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(QyY,_.On);_.t=QyY.prototype;_.t.getHeader=function(){return _.lp(this,yP,1)};
_.t.setHeader=function(L){return _.fG(this,1,L)};
_.t.hasHeader=function(){return _.OW(this,yP,1)};
_.t.getCompletionUrl=function(){return _.va(this,6)};
_.t.getDeviceId=function(){return _.va(this,11)};var Xcv=new Ua("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",QyY,CY0,function(L){return L.serialize()},XQq);var Avs=new Set(["SAPISIDHASH","APISIDHASH"]);var H2y=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(H2y,_.On);H2y.prototype.getMessage=function(){return _.va(this,2)};
var B15=_.R7(H2y);var q4y=function(L,Z){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=L.nodeReadableStream;this.grpcResponseDeserializeFn=Z;this.xhr=L.xhr;this.xhrNodeReadableStream&&xXQ(this)},uO5=function(L,Z){var N=new LVm;
_.Gl(L.xhr,"complete",function(){if(L.xhr.isSuccess()){var S=L.xhr.getResponseText();var u;if(u=Z)u=L.xhr,u.JSC$9795_xhr_&&u.isComplete()?(u=u.JSC$9795_xhr_.getResponseHeader("Content-Type"),u=u===null?void 0:u):u=void 0,u=u==="text/plain";if(u){if(!atob)throw Error("hk");S=atob(S)}try{var T=L.grpcResponseDeserializeFn(S)}catch(V){ak(L,G0s(new _.YB(13,"Error when deserializing response data; error: "+V+(", response: "+S)),N));return}S=_.bZG(L.xhr.getStatus());Z6s(L,NSv(L));S===0?SeP(L,T):ak(L,G0s(new _.YB(S,
"Xhr succeeded but the status code is not 200"),N))}else{S=L.xhr.getResponseText();T=NSv(L);if(S){var W=i6m(L,S);S=W.code;u=W.details;W=W.metadata}else S=2,u="Rpc failed due to xhr error. uri: "+String(L.xhr.JSC$9795_lastUri_)+", error code: "+(L.xhr.JSC$9795_lastErrorCode_+", error: ")+L.xhr.getLastError(),W=T;Z6s(L,T);ak(L,G0s(new _.YB(S,u,W),N))}})},xXQ=function(L){L.xhrNodeReadableStream.on("data",function(Z){if("1"in Z){var N=Z["1"];
try{var S=L.grpcResponseDeserializeFn(N)}catch(u){ak(L,new _.YB(13,"Error when deserializing response data; error: "+u+(", response: "+N)))}S&&SeP(L,S)}if("2"in Z)for(Z=i6m(L,Z["2"]),N=0;N<L.onStatusCallbacks.length;N++)L.onStatusCallbacks[N](Z)});
L.xhrNodeReadableStream.on("end",function(){Z6s(L,NSv(L));for(var Z=0;Z<L.onEndCallbacks.length;Z++)L.onEndCallbacks[Z]()});
L.xhrNodeReadableStream.on("error",function(){if(L.onErrorCallbacks.length!==0){var Z=L.xhr.JSC$9795_lastErrorCode_;Z!==0||L.xhr.isSuccess()||(Z=6);var N=-1;switch(Z){case 0:var S=2;break;case 7:S=10;break;case 8:S=4;break;case 6:N=L.xhr.getStatus();S=_.bZG(N);break;default:S=14}Z6s(L,NSv(L));Z=_.haY(Z)+", error: "+L.xhr.getLastError();N!==-1&&(Z+=", http status code: "+N);ak(L,new _.YB(S,Z))}})},NSv=function(L){var Z={},N=icy(L.xhr);
Object.keys(N).forEach(function(S){Z[S]=N[S]});
return Z},i6m=function(L,Z){var N=2,S={};
try{var u=B15(Z);N=_.G3(u,1);var T=u.getMessage();_.MG(u,ALQ,3,_.gZ()).length&&(S["grpc-web-status-details-bin"]=Z)}catch(W){L.xhr&&L.xhr.getStatus()===404?(N=5,T="Not Found: "+String(L.xhr.JSC$9795_lastUri_)):(N=14,T="Unable to parse RpcStatus: "+W)}return{code:N,details:T,metadata:S}};
q4y.prototype.on=function(L,Z){L==="data"?this.onDataCallbacks.push(Z):L==="metadata"?this.onMetadataCallbacks.push(Z):L==="status"?this.onStatusCallbacks.push(Z):L==="end"?this.onEndCallbacks.push(Z):L==="error"&&this.onErrorCallbacks.push(Z);return this};
var ho=function(L,Z){Z=L.indexOf(Z);Z>-1&&L.splice(Z,1)};
q4y.prototype.removeListener=function(L,Z){L==="data"?ho(this.onDataCallbacks,Z):L==="metadata"?ho(this.onMetadataCallbacks,Z):L==="status"?ho(this.onStatusCallbacks,Z):L==="end"?ho(this.onEndCallbacks,Z):L==="error"&&ho(this.onErrorCallbacks,Z);return this};
q4y.prototype.cancel=function(){this.xhr.abort()};
var SeP=function(L,Z){for(var N=0;N<L.onDataCallbacks.length;N++)L.onDataCallbacks[N](Z)},Z6s=function(L,Z){for(var N=0;N<L.onMetadataCallbacks.length;N++)L.onMetadataCallbacks[N](Z)},ak=function(L,Z){for(var N=0;N<L.onErrorCallbacks.length;N++)L.onErrorCallbacks[N](Z)},LVm=function(){var L=Error.call(this);
this.message=L.message;"stack"in L&&(this.stack=L.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(LVm,Error);var sa=function(L){this.JSC$19577_worker_=L.worker||null;this.JSC$19577_streamBinaryChunks_=L.streamBinaryChunks||!1;this.JSC$19577_credentialsMode_=void 0};
_.Qk(sa,_.gsh);sa.prototype.createInstance=function(){var L=new jv(this.JSC$19577_worker_,this.JSC$19577_streamBinaryChunks_);this.JSC$19577_credentialsMode_&&L.setCredentialsMode(this.JSC$19577_credentialsMode_);return L};
sa.prototype.setCredentialsMode=function(L){this.JSC$19577_credentialsMode_=L};
var jv=function(L,Z){_.Kc.call(this);this.JSC$19581_worker_=L;this.JSC$19581_streamBinaryChunks_=Z;this.JSC$19581_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19581_responseHeaders_=null;this.JSC$19581_method_="GET";this.JSC$19581_url_="";this.inProgress_=!1;this.JSC$19581_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Qk(jv,_.Kc);jv.prototype.open=function(L,Z){if(this.readyState!=0)throw this.abort(),Error("ik");this.JSC$19581_method_=L;this.JSC$19581_url_=Z;this.readyState=1;Ea(this)};
jv.prototype.send=function(L){if(this.readyState!=1)throw this.abort(),Error("jk");if(this.abortController_.signal.aborted)throw this.abort(),Error("kk");this.inProgress_=!0;var Z={headers:this.requestHeaders_,method:this.JSC$19581_method_,credentials:this.JSC$19581_credentialsMode_,cache:void 0,signal:this.abortController_.signal};L&&(Z.body=L);(this.JSC$19581_worker_||_.iH).fetch(new Request(this.JSC$19581_url_,Z)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
jv.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,Pj(this));this.readyState=0};
jv.prototype.handleResponse_=function(L){if(this.inProgress_&&(this.fetchResponse_=L,this.JSC$19581_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19581_responseHeaders_=L.headers,this.readyState=2,Ea(this)),this.inProgress_&&(this.readyState=3,Ea(this),this.inProgress_)))if(this.responseType==="arraybuffer")L.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.iH.ReadableStream!==
"undefined"&&"body"in L){this.currentReader_=L.body.getReader();if(this.JSC$19581_streamBinaryChunks_){if(this.responseType)throw Error("lk");this.response=[]}else this.response=this.responseText="",this.JSC$19581_textDecoder_=new TextDecoder;TSv(this)}else L.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var TSv=function(L){L.currentReader_.read().then(L.handleDataFromStream_.bind(L)).catch(L.handleSendFailure_.bind(L))};
jv.prototype.handleDataFromStream_=function(L){if(this.inProgress_){if(this.JSC$19581_streamBinaryChunks_&&L.value)this.response.push(L.value);else if(!this.JSC$19581_streamBinaryChunks_){var Z=L.value?L.value:new Uint8Array(0);if(Z=this.JSC$19581_textDecoder_.decode(Z,{stream:!L.done}))this.response=this.responseText+=Z}L.done?Pj(this):Ea(this);this.readyState==3&&TSv(this)}};
jv.prototype.handleResponseText_=function(L){this.inProgress_&&(this.response=this.responseText=L,Pj(this))};
jv.prototype.handleResponseArrayBuffer_=function(L){this.inProgress_&&(this.response=L,Pj(this))};
jv.prototype.handleSendFailure_=function(){this.inProgress_&&Pj(this)};
var Pj=function(L){L.readyState=4;L.fetchResponse_=null;L.currentReader_=null;L.JSC$19581_textDecoder_=null;Ea(L)};
jv.prototype.setRequestHeader=function(L,Z){this.requestHeaders_.append(L,Z)};
jv.prototype.getResponseHeader=function(L){return this.JSC$19581_responseHeaders_?this.JSC$19581_responseHeaders_.get(L.toLowerCase())||"":""};
jv.prototype.getAllResponseHeaders=function(){if(!this.JSC$19581_responseHeaders_)return"";for(var L=[],Z=this.JSC$19581_responseHeaders_.entries(),N=Z.next();!N.done;)N=N.value,L.push(N[0]+": "+N[1]),N=Z.next();return L.join("\r\n")};
jv.prototype.setCredentialsMode=function(L){this.JSC$19581_credentialsMode_=L};
var Ea=function(L){L.onreadystatechange&&L.onreadystatechange.call(L)};
Object.defineProperty(jv.prototype,"withCredentials",{get:function(){return this.JSC$19581_credentialsMode_==="include"},
set:function(L){this.setCredentialsMode(L?"include":"same-origin")}});var tRg=function(L){var Z="";_.Py.forEach(L,function(N,S){Z+=S;Z+=":";Z+=N;Z+="\r\n"});
return Z},O6q=function(L,Z,N){if(_.Py.isEmpty(N))return L;
N=tRg(N);if(typeof L==="string")return _.JY(L,_.Nu(Z),N);_.Z4(L,Z,N);return L};var WVy=function(){this.isInputValid_=!0;this.JSC$19587_streamPos_=0;this.leftoverInput_=""};
WVy.prototype.isInputValid=function(){return this.isInputValid_};
WVy.prototype.decode=function(L){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("mk`"+this.JSC$19587_streamPos_+"`stream already broken`"+L);this.leftoverInput_+=L;L=Math.floor(this.leftoverInput_.length/4);if(L==0)return null;try{var Z=_.agt(this.leftoverInput_.slice(0,L*4))}catch(N){throw Z=this.leftoverInput_,L=N.message,this.isInputValid_=!1,Error("mk`"+this.JSC$19587_streamPos_+"`"+L+"`"+Z);}this.JSC$19587_streamPos_+=L*4;this.leftoverInput_=this.leftoverInput_.slice(L*4);return Z};var Ms=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19590_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Ms.prototype.isInputValid=function(){return this.state_!=3};
var VRs=function(L,Z,N,S){L.state_=3;L.errorMessage_="The stream is broken @"+L.JSC$19590_streamPos_+"/"+N+". Error: "+S+". With input:\n"+Z;throw Error(L.errorMessage_);};
Ms.prototype.acceptsBinaryInput=function(){return!0};
Ms.prototype.parse=function(L){function Z(M){M&128&&VRs(T,W,V,"invalid tag");(M&7)!=2&&VRs(T,W,V,"invalid wire type");T.tag_=M>>>3;T.tag_!=1&&T.tag_!=2&&T.tag_!=15&&VRs(T,W,V,"unexpected tag");T.state_=1;T.length_=0;T.countLengthBytes_=0}
function N(M){T.countLengthBytes_++;T.countLengthBytes_==5&&M&240&&VRs(T,W,V,"message length too long");T.length_|=(M&127)<<(T.countLengthBytes_-1)*7;M&128||(T.state_=2,T.countMessageBytes_=0,typeof Uint8Array!=="undefined"?T.messageBuffer_=new Uint8Array(T.length_):T.messageBuffer_=Array(T.length_),T.length_==0&&u())}
function S(M){T.messageBuffer_[T.countMessageBytes_++]=M;T.countMessageBytes_==T.length_&&u()}
function u(){if(T.tag_<15){var M={};M[T.tag_]=T.messageBuffer_;T.result_.push(M)}T.state_=0}
for(var T=this,W=L instanceof Array?L:new Uint8Array(L),V=0;V<W.length;){switch(T.state_){case 3:VRs(T,W,V,"stream already broken");break;case 0:Z(W[V]);break;case 1:N(W[V]);break;case 2:S(W[V]);break;default:throw Error("nk`"+T.state_);}T.JSC$19590_streamPos_++;V++}L=T.result_;T.result_=[];return L.length>0?L:null};var $Vv=function(){this.errorMessage_=null;this.JSC$19593_streamPos_=0;this.base64Decoder_=new WVy;this.pbParser_=new Ms};
$Vv.prototype.isInputValid=function(){return this.errorMessage_===null};
var b6w=function(L,Z,N){L.errorMessage_="The stream is broken @"+L.JSC$19593_streamPos_+". Error: "+N+". With input:\n"+Z;throw Error(L.errorMessage_);};
$Vv.prototype.acceptsBinaryInput=function(){return!1};
$Vv.prototype.parse=function(L){this.errorMessage_!==null&&b6w(this,L,"stream already broken");var Z=null;try{var N=this.base64Decoder_.decode(L);Z=N===null?null:this.pbParser_.parse(N)}catch(S){b6w(this,L,S.message)}this.JSC$19593_streamPos_+=L.length;return Z};var FRc=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19596_streamPos_=0;this.result_=[];this.statusParsed_=!1};
FRc.prototype.isInputValid=function(){return this.errorMessage_===null};
FRc.prototype.acceptsBinaryInput=function(){return!1};
FRc.prototype.parse=function(L){function Z(M){T.state_=6;T.errorMessage_="The stream is broken @"+T.JSC$19596_streamPos_+"/"+W+". Error: "+M+". With input:\n";throw Error(T.errorMessage_);}
function N(){T.jsonStreamParser_=new _.gE({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function S(M){if(M)for(var G=0;G<M.length;G++){var D={};D[1]=M[G];T.result_.push(D)}}
function u(M){if(M){(T.statusParsed_||M.length>1)&&Z("extra status: "+M);T.statusParsed_=!0;var G={};G[2]=M[0];T.result_.push(G)}}
for(var T=this,W=0;W<L.length;){var V;if(V=T.state_!==2){a:{for(;W<L.length;){if(!_.MR(L[W])){V=!0;break a}W++;T.JSC$19596_streamPos_++}V=!1}V=!V}if(V)return null;switch(T.state_){case 6:Z("stream already broken");break;case 0:L[W]==="["?(T.state_=1,W++,T.JSC$19596_streamPos_++):Z("unexpected input token");break;case 1:L[W]==="["?(T.state_=2,N()):L[W]===","||L.slice(W,W+5)=="null,"?T.state_=3:L[W]==="]"?(T.state_=5,W++,T.JSC$19596_streamPos_++):Z("unexpected input token");break;case 2:V=T.jsonStreamParser_.parse(L.substring(W));
S(V);T.jsonStreamParser_.done()?(T.state_=3,V=T.jsonStreamParser_.JSC$11486_buffer_,T.JSC$19596_streamPos_+=L.length-W-V.length,L=V,W=0):(T.JSC$19596_streamPos_+=L.length-W,W=L.length);break;case 3:L[W]===","||L.slice(W,W+5)=="null,"?(T.state_=4,N(),T.jsonStreamParser_.parse("["),W+=L[W]===","?1:5,T.JSC$19596_streamPos_++):L[W]==="]"&&(T.state_=5,W++,T.JSC$19596_streamPos_++);break;case 4:V=T.jsonStreamParser_.parse(L.substring(W));u(V);T.jsonStreamParser_.done()?(T.state_=5,V=T.jsonStreamParser_.JSC$11486_buffer_,
T.JSC$19596_streamPos_+=L.length-W-V.length,L=V,W=0):(T.JSC$19596_streamPos_+=L.length-W,W=L.length);break;case 5:Z("extra input after stream end")}}return T.result_.length>0?(L=T.result_,T.result_=[],L):null};var MR8=function(L){this.JSC$19599_xhr_=L;this.JSC$19599_parser_=null;this.status_=this.JSC$19599_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19599_textDecoder_=null;this.JSC$19599_eventHandler_=new _.oM(this);this.JSC$19599_eventHandler_.listen(this.JSC$19599_xhr_,"readystatechange",this.JSC$19601_readyStateChangeHandler_)},pg=function(L,Z){L.status_!=Z&&(L.status_=Z,L.statusHandler_&&L.statusHandler_())},gUy=function(L){L.JSC$19599_eventHandler_.removeAll();
if(L.JSC$19599_xhr_){var Z=L.JSC$19599_xhr_;L.JSC$19599_xhr_=null;Z.abort();Z.dispose()}};
MR8.prototype.getStatus=function(){return this.status_};
MR8.prototype.JSC$19601_readyStateChangeHandler_=function(L){L=L.target;try{if(L==this.JSC$19599_xhr_)a:{var Z=_.dg(this.JSC$19599_xhr_),N=this.JSC$19599_xhr_.JSC$9795_lastErrorCode_,S=this.JSC$19599_xhr_.getStatus(),u=this.JSC$19599_xhr_.getResponseText();L=[];if(this.JSC$19599_xhr_.getResponse()instanceof Array){var T=this.JSC$19599_xhr_.getResponse();T.length>0&&T[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,L=T)}if(!(Z<3||Z==3&&!u&&L.length==0))if(S=S==200||S==206,Z==4&&(N==8?pg(this,
7):N==7?pg(this,8):S||pg(this,3)),this.JSC$19599_parser_||(this.JSC$19599_parser_=DVc(this.JSC$19599_xhr_),this.JSC$19599_parser_==null&&pg(this,5)),this.status_>2)gUy(this);else{if(L.length>this.JSC$19599_pos_){var W=L.length;N=[];try{if(this.JSC$19599_parser_.acceptsBinaryInput())for(var V=0;V<W;V++){var M=this.JSC$19599_parser_.parse(Array.from(L[V]));M&&(N=N.concat(M))}else{M="";if(!this.JSC$19599_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("ok");this.JSC$19599_textDecoder_=
new TextDecoder}for(V=0;V<W;V++)M+=this.JSC$19599_textDecoder_.decode(L[V],{stream:Z==4&&V==W-1});N=this.JSC$19599_parser_.parse(M)}L.splice(0,W);N&&this.dataHandler_(N)}catch(D){pg(this,5);gUy(this);break a}}else if(u.length>this.JSC$19599_pos_){V=u.slice(this.JSC$19599_pos_);this.JSC$19599_pos_=u.length;try{var G=this.JSC$19599_parser_.parse(V);G!=null&&this.dataHandler_&&this.dataHandler_(G)}catch(D){pg(this,5);gUy(this);break a}}Z==4?(u.length!=0||this.hasStreamingResponseData_?pg(this,2):pg(this,
4),gUy(this)):pg(this,1)}}}catch(D){pg(this,6),gUy(this)}};var Gb0=function(L){L=this.xhrReader_=L;var Z=(0,_.hr)(this.onData_,this);L.dataHandler_=Z;L=this.xhrReader_;Z=(0,_.hr)(this.onStatusChange_,this);L.statusHandler_=Z;this.JSC$19603_callbackMap_={};this.callbackOnceMap_={}};
_.t=Gb0.prototype;_.t.on=function(L,Z){var N=this.JSC$19603_callbackMap_[L];N||(N=[],this.JSC$19603_callbackMap_[L]=N);N.push(Z);return this};
_.t.addListener=function(L,Z){this.on(L,Z);return this};
_.t.removeListener=function(L,Z){var N=this.JSC$19603_callbackMap_[L];N&&_.zB(N,Z);(L=this.callbackOnceMap_[L])&&_.zB(L,Z);return this};
_.t.once=function(L,Z){var N=this.callbackOnceMap_[L];N||(N=[],this.callbackOnceMap_[L]=N);N.push(Z);return this};
_.t.onData_=function(L){var Z=this.JSC$19603_callbackMap_.data;Z&&FVY(L,Z);(Z=this.callbackOnceMap_.data)&&FVY(L,Z);this.callbackOnceMap_.data=[]};
var FVY=function(L,Z){for(var N={},S=0;S<L.length;N={message$jscomp$1008:void 0},S++)N.message$jscomp$1008=L[S],Z.forEach(function(u){return function(T){try{T(u.message$jscomp$1008)}catch(W){}}}(N))};
Gb0.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:$9s(this,"readable");break;case 5:case 6:case 4:case 7:case 3:$9s(this,"error");break;case 8:$9s(this,"close");break;case 2:$9s(this,"end")}};
var $9s=function(L,Z){var N=L.JSC$19603_callbackMap_[Z];N&&N.forEach(function(S){try{S()}catch(u){}});
(N=L.callbackOnceMap_[Z])&&N.forEach(function(S){S()});
L.callbackOnceMap_[Z]=[]};var D9v=function(){var L={format:"jspb"};L=L===void 0?{}:L;this.suppressCorsPreflight=L.suppressCorsPreflight||_.LZ("suppressCorsPreflight",L)||!1;this.withCredentials=L.withCredentials||_.LZ("withCredentials",L)||!1;this.streamInterceptors=L.streamInterceptors||[];this.unaryInterceptors=L.unaryInterceptors||[];this.workerScope=L.workerScope;this.chunkedServerStreaming=L.useFetchDownloadStreams||!1},oUs=function(L,Z,N,S,u,T){T=T===void 0?{}:T;
var W=Z.substring(0,Z.length-u.name.length),V,M=(V=T)==null?void 0:V.signal;return lXy(function(G){return new Promise(function(D,l){if(M==null?0:M.aborted){var v=new _.YB(1,"Aborted");v.cause=M.reason;l(v)}else{var R={},K=vUP(L,G,W);K.on("error",function(U){return void l(U)});
K.on("metadata",function(U){R=U});
K.on("data",function(U){var d=R;d=d===void 0?{}:d;D(new Y4Q(U,d))});
M&&M.addEventListener("abort",function(){K.cancel();var U=new _.YB(1,"Aborted");U.cause=M.reason;l(U)})}})},L.unaryInterceptors).call(L,ek8(u,N,S)).then(function(G){return G.responseMessage})},Ry0=function(L,Z,N,S,u,T){T=T===void 0?{}:T;
return oUs(L,Z,N,S,u,T)};
D9v.prototype.serverStreaming=function(L,Z,N,S){var u=this,T=L.substring(0,L.length-S.name.length);return cp8(function(W){var V=W.methodDescriptor,M=W.getMetadata(),G=nUv(u,!1);M=KVs(u,M,G,T+V.getName());var D=fX5(G,V.responseDeserializeFn,!0);W=V.requestSerializeFn(W.requestMessage);G.send(M,"POST",W);return D},this.streamInterceptors).call(this,ek8(S,Z,N))};
var vUP=function(L,Z,N){var S=Z.methodDescriptor,u=Z.getMetadata(),T=nUv(L,!0);L=KVs(L,u,T,N+S.getName());N=fX5(T,S.responseDeserializeFn,!1);uO5(N,u["X-Goog-Encode-Response-If-Executable"]==="base64");Z=S.requestSerializeFn(Z.requestMessage);T.send(L,"POST",Z);return N},nUv=function(L,Z){Z=L.chunkedServerStreaming&&!Z;
return L.workerScope||Z?new _.I8(new sa({worker:L.workerScope,streamBinaryChunks:Z})):new _.I8},KVs=function(L,Z,N,S){Z["Content-Type"]="application/json+protobuf";
Z["X-User-Agent"]="grpc-web-javascript/0.1";var u=Z.Authorization;if(u&&Avs.has(u.split(" ")[0])||L.withCredentials)N.JSC$9795_withCredentials_=!0;if(L.suppressCorsPreflight)S=O6q(S,"$httpHeaders",Z);else for(L=_.O(Object.keys(Z)),u=L.next();!u.done;u=L.next())u=u.value,N.headers.set(u,Z[u]);return S},fX5=function(L,Z,N){if(N){N=new MR8(L);
var S=new Gb0(N)}return new q4y({xhr:L,nodeReadableStream:S},Z)},cp8=function(L,Z){return Z.reduce(function(N,S){return function(u){return S.intercept(u,N)}},L)},lXy=function(L,Z){return Z.reduce(function(N,S){return function(u){return S.intercept(u,N)}},L)};var kb8=function(L){this.client_=new D9v;this.hostname_=L==void 0?L:L.replace(/\/+$/,"")};
_.t=kb8.prototype;_.t.JSC$19621_depositGoogleCredential=function(L,Z,N){return Ry0(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",L,Z||{},hk5,N)};
_.t.deleteLink=function(L,Z,N){return Ry0(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",L,Z||{},dXv,N)};
_.t.JSC$19621_finishOAuth=function(L,Z,N){return Ry0(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",L,Z||{},jyg,N)};
_.t.getLink=function(L,Z,N){return Ry0(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",L,Z||{},EFg,N)};
_.t.startLinkingSession=function(L,Z,N){return Ry0(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",L,Z||{},Xcv,N)};var ypg=[0,_.ma,1,JLv,[0,_.XE,[0,_.rK,-1]],[0,m6v],[0,_.qQ,-1],[0,m6v]];var wLY=function(){this.storage=new Map},Ye0=function(L,Z,N,S,u){if(!L.storage.has(Z))return null;
L=_.O(L.storage.get(Z));for(Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,!u||Z.linkName===u)if(N&&Z.scopes&&U9k(Z.scopes,N)||S&&Z.capabilities&&U9k(Z.capabilities,S))return Z;return null},eys=function(L,Z,N){if(!N)L.storage.delete(Z);
else if(L.storage.has(Z)){var S=L.storage.get(Z).filter(function(u){return u.linkName!==N});
S.length>0?L.storage.set(Z,S):L.storage.delete(Z)}},U9k=function(L,Z){Z=_.O(Z);
for(var N=Z.next();!N.done;N=Z.next())if(!L.has(N.value))return!1;return!0};var IXP=function(){var L=_.X7("LINK_GAL_DOMAIN");this.alsDomain1p=_.X7("LINK_GAL_DOMAIN");this.alsDomain3p=L;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},d98=function(L,Z){L.apiKey=Z;
return L};
IXP.prototype.build=function(){var L={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("pk");L.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("qk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("rk");L.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(L.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)L.apiKey=
this.apiKey,L.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("sk");L.oauthToken=this.oauthToken;L.alsDomain=this.alsDomain3p}L.clientXd3=this.clientXd3;L.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(L.authUser=this.authUser);this.bucket!==void 0&&(L.bucket=this.bucket);this.completionUrl!==void 0&&(L.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(L.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(L.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(L.locale=this.locale);L.loggerType=this.loggerType;L.clientEnvironment=this.clientEnvironment;L.colorScheme=this.colorScheme;L.showCloseOption=this.showCloseOption;return L};var gW=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(gW,_.On);var aXQ=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(aXQ,_.On);var hy0=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(hy0,_.On);var FF=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(FF,_.On);var s1y=function(L){return _.oA(L,1)};var j10=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(j10,_.On);var KRQ=_.R7(j10),GH=[1,2,3,4,5];var o00=function(L){try{return KRQ(L)}catch(Z){return null}},EUk=function(){},R_v=function(L,Z){switch(_.MQ(Z,GH)){case 4:return(Z=_.f5(Z,hy0,4,GH))&&L.logStateTransition(_.oA(Z,1)),!0;
case 5:return(Z=_.f5(Z,aXQ,5,GH))&&L.logInternalEvent(_.oA(Z,1)),!0}return!1},f90=function(L){switch(L){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Xh(L)}};var l9c=function(L,Z){var N=this;this.validator=L;this.messageListener=Z;this.dismissCallback=function(){PO8(N,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19650_receiveMessage=function(S){S.type==="message"&&(S=S.event_,S!==null&&(new URL(N.iframe.src)).origin===S.origin&&N.validator(S.data,S.origin)&&!N.messageListener(S.data)&&(N.JSC$19650_resolveCb!==void 0&&N.JSC$19650_resolveCb(S.data),pLs(N)))}},n0q=function(L,Z,N){L.uiHandler!==void 0&&PO8(L,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(S,u){L.JSC$19650_resolveCb=S;L.JSC$19650_rejectCb=u;L.iframe=document.createElement("iframe");_.qq(L.iframe,Z);L.uiHandler=N.displayContent(L.iframe,L.dismissCallback);_.Gl(window,"message",L.JSC$19650_receiveMessage,!1,L)})},PO8=function(L,Z){L.JSC$19650_rejectCb!==void 0&&L.JSC$19650_rejectCb(Z);
pLs(L)},pLs=function(L){L.uiHandler!==void 0&&L.uiHandler.hideContent();
_.nc(window,"message",L.JSC$19650_receiveMessage,!1,L);L.JSC$19650_resolveCb=void 0;L.JSC$19650_rejectCb=void 0;L.uiHandler=void 0;L.iframe=void 0};var zyP=function(L){if(L===2){var Z;L=((Z=window)==null?0:Z.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return L},cS5=function(L){L=zyP(L);
switch(L){case 0:return"light";case 1:return"dark";default:_.Xh(L)}};var v0P=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),m9q=function(L,Z){this.JSC$19662_linkingSession=L;this.noticeConfig=Z;this.displayInfoMap=new Map;var N=new Map;if(_.OW(this.JSC$19662_linkingSession,zkY,7))for(L=_.lp(this.JSC$19662_linkingSession,zkY,7),L=_.MG(L,pcy,1,_.gZ()),L=_.O(L),Z=L.next();!Z.done;Z=L.next())Z=Z.value,N.set(_.oA(Z,1),_.y3P(_.lp(Z,_.Pds,3)));if(N.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){Z=this.noticeConfig.enabledDataUsageNoticeUis;L=Z.has(0)?N.get(1):void 0;Z=Z.has(1)?N.get(2):void 0;N=L!==void 0&&Z!==void 0?N.get(3):void 0;var S=this.noticeConfig.nestedOrigins;var u=new j10;var T=new gW;u=_.kV(u,2,GH,T);T=new j10;var W=new gW;T=_.kV(T,3,GH,W);W=[];L!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:L,lastEvent:u,nestedOrigins:S}]),W.push({trustedUrl:L,lastEvent:u,nestedOrigins:S}));Z!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:Z,lastEvent:T,nestedOrigins:S}]),W.push({trustedUrl:Z,lastEvent:T,nestedOrigins:S}));N!==void 0?this.displayInfoMap.set(3,[{trustedUrl:N,lastEvent:T,nestedOrigins:S}]):this.displayInfoMap.set(3,W)}};var JpY=function(L){var Z=new wLY;this.galService=L;this.galCache=Z};
JpY.prototype.getLink=function(L){var Z=L.serviceId;var N=L.scopes;var S=L.capabilities;var u=L.linkName;var T=this,W;return _.b(function(V){if(S!==void 0&&N!==void 0)throw Error("tk");W=Ye0(T.galCache,Z,N,S,u);return W!==null?V.return(W):V.return(T.galService.getLink({serviceId:Z,sessionId:Math.floor(Math.random()*2147483648),scopes:N,capabilities:S,linkName:u}).then(function(M){M=YCv(M);var G=T.galCache;G.storage.has(Z)?G.storage.get(Z).push(M):G.storage.set(Z,[M]);return M}))})};
JpY.prototype.deleteLink=function(L,Z,N){var S=this;return _.b(function(u){eys(S.galCache,L,N);return u.return(S.galService.deleteLink({serviceId:L,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:Z,linkName:N}).then(function(){return!0}))})};var rp8=function(L,Z){var N=this;this.validator=L;this.msgHandler=Z;this.closedPopupTimeout=this.JSC$19684_rejectCb=this.JSC$19684_resolveCb=this.popup=null;this.JSC$19684_receiveMessage=function(S){if(S!==null&&(S=S.event_,S.source===N.popup)){var u=S.data;if(N.validator(u,S.origin)){var T;(T=N.msgHandler)!=null&&T.call(N,u)||(N.JSC$19684_resolveCb!==null&&N.JSC$19684_resolveCb(u),COs(N))}}}};
rp8.prototype.open=function(L,Z){var N=this;this.popup!==null&&Q1v(this);return new Promise(function(S,u){N.JSC$19684_resolveCb=S;N.JSC$19684_rejectCb=u;N.popup=_.Ls(window,L,"",Z);_.Gl(window,"message",N.JSC$19684_receiveMessage,!1,N);XLk(N)})};
var Q1v=function(L,Z){L.JSC$19684_rejectCb!==null&&L.JSC$19684_rejectCb(Z);COs(L)},COs=function(L){L.closedPopupTimeout&&(L.closedPopupTimeout.cancel(),L.closedPopupTimeout=null);
L.popup&&L.popup.close();_.nc(window,"message",L.JSC$19684_receiveMessage,!1,L);L.popup=null;L.JSC$19684_resolveCb=null;L.JSC$19684_rejectCb=null},XLk=function(L){L.closedPopupTimeout=_.YMt(100).then(function(){L.popup?L.popup.closed?Aps(L):XLk(L):Q1v(L,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},Aps=function(L){L.closedPopupTimeout=_.YMt(100).then(function(){Q1v(L,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var H68=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),BSP=function(L,Z,N,S,u,T,W,V,M,G){var D=this;this.serviceId=L;this.sessionId=Z;this.galService=N;this.oauthDetails=S;this.galLogger=u;this.interactionMode=T;this.redirectServiceUrl=W;this.consentLanguageKeys=V;this.dynamicUrlParameters=M;this.partnerConfigMinReadTimestamp=G;this.started=!1;this.JSC$19690_dataValidator=function(l,
v){var R=H68.has(v);R||D.redirectServiceUrl===void 0||(R=D.redirectServiceUrl===v);return R?l.sentinel==="gdi":!1}};
BSP.prototype.complete=function(){var L=this,Z;return _.b(function(N){if(L.interactionMode!==1)return N.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));Z=DV.getRedirectStateFromUri();return Z===null?N.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):N.return(x9s(L,Z))})};
BSP.prototype.start=function(){var L=this,Z;return _.b(function(N){if(L.started)return N.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.va(L.oauthDetails,1))return N.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(L.interactionMode===1)return DV.setLocation(_.va(L.oauthDetails,1)),N.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));L.started=!0;L.galLogger.logStateTransition(5);
Z=DV.getPostMessagePopup(L.JSC$19690_dataValidator);return N.return(Z.open(_.va(L.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(S){L.started=!1;var u=L.galLogger;if((S==null?void 0:S.error)!==void 0)throw u.logInternalEvent(59),Error("uk");if((S==null?void 0:S.redirect_state)===void 0)throw u.logInternalEvent(131),Error("vk");return x9s(L,S.redirect_state)}).catch(function(S){L.started=
!1;
return S.errorCode!==void 0?{statusCode:S.errorCode,statusMessage:S.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var x9s=function(L,Z){return _.b(function(N){return N.return(qec(L.galService,{serviceId:L.serviceId,sessionId:L.sessionId,dynamicUrlParameters:L.dynamicUrlParameters,redirectState:Z,consentLanguageKeys:L.consentLanguageKeys,partnerConfigMinReadTimestamp:L.partnerConfigMinReadTimestamp}).then(function(S){var u={statusCode:1,link:YCv(S.getLink())};yJk(_.VM(S,3))!==void 0&&(u.callerState=yJk(_.VM(S,3)));L.galLogger.logInternalEvent(134);return u}))})},DV={getPostMessagePopup:function(L){return new rp8(L)},
getRedirectStateFromUri:function(){var L=_.qG(DV.getLocation()).fragment_;return(new _.VI(L)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(L){_.vS1(window.location,_.mY(L))},
createOAuthFlow:function(L,Z){return new BSP(L.serviceId,L.sessionId,L.galService,Z,L.galLogger,L.interactionMode,L.redirectServiceUrl,L.consentLanguageKeys,L.dynamicUrlParameters,L.partnerConfigMinReadTimestamp)}};var LPw=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(LPw,_.On);var ZOP=_.R7(LPw);var NEy=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),SbP=function(L,Z,N,S,u,T,W,V,M){var G=this;this.serviceId=L;this.sessionId=Z;this.galService=N;this.gsiWebFlowDetails=S;this.colorScheme=u;this.showCloseOption=T;this.galLogger=W;this.interactionMode=V;this.redirectServiceUrl=M;this.started=!1;this.JSC$19702_dataValidator=function(D,l){var v=NEy.has(l);v||G.redirectServiceUrl===
void 0||(v=G.redirectServiceUrl===l);return v?D.sentinel==="gal":!1};
this.logEventProcessor=function(D){return D.result?(D=o00(D.result))?R_v(G.galLogger,D):!1:!1}};
SbP.prototype.complete=function(){var L=this,Z,N;return _.b(function(S){if(L.interactionMode!==1)return S.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));Z=lE.getRedirectStateFromUri();if(Z===void 0)return L.galLogger.JSC$19642_logErrorEvent(131),S.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return N=iOP(L,Z),S.return(udw(L,N))}catch(u){return S.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
SbP.prototype.start=function(){var L=this,Z;return _.b(function(N){if(L.started)return N.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.va(L.gsiWebFlowDetails,1))return N.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(L.interactionMode===1)return lE.setLocation(TE5(L,_.va(L.gsiWebFlowDetails,1))),N.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
L.started=!0;Z=lE.getPostMessagePopup(L.JSC$19702_dataValidator,L.logEventProcessor);return N.return(Z.open(TE5(L,_.va(L.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(S){L.started=!1;if((S==null?void 0:S.result)===void 0)throw L.galLogger.JSC$19642_logErrorEvent(131),Error("vk");S=iOP(L,S.result);return udw(L,S)}).catch(function(S){L.started=!1;
return S.errorCode!==void 0?{statusCode:S.errorCode,statusMessage:S.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var TE5=function(L,Z){L=["result_channel",L.interactionMode===1?"2":"1","color_scheme",cS5(L.colorScheme),"show_close_option",L.showCloseOption];return XF8(Z,L)},udw=function(L,Z){if(Z!==null&&_.OW(Z,FF,2)){var N,S=Z==null?void 0:(N=_.lp(Z,FF,2))==null?void 0:_.oA(N,2);
S&&L.galLogger.JSC$19642_logErrorEvent(f90(S));return s1y(_.lp(Z,FF,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 L.galService.getLink({serviceId:L.serviceId,sessionId:L.sessionId,consistencyKey:_.va(Z,1)}).then(function(u){u=YCv(u);L.galLogger.logInternalEvent(134);return{statusCode:1,link:u}})},iOP=function(L,Z){Z=ZOP(Z);
if(!_.OW(Z,FF,2)&&_.va(Z,1)==="")throw L.galLogger.JSC$19642_logErrorEvent(5),Error("wk");return Z},lE={getPostMessagePopup:function(L,Z){return new rp8(L,Z)},
getRedirectStateFromUri:function(){return _.Lh(_.qG(lE.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(L){_.vS1(window.location,_.mY(L))},
createStreamlinedFlow:function(L,Z){return new SbP(L.serviceId,L.sessionId,L.galService,Z,L.colorScheme,L.showCloseOption,L.galLogger,L.interactionMode,L.redirectServiceUrl)}};var rSm=function(){var L=_.CBh("GAL");this.storage=L?new _.jZ(L):null};
rSm.prototype.getSession=function(L){if(this.storage!==null)try{var Z=this.storage.get("SAVED_SESSION");if(Z===void 0)return null;if(Z.serviceId===L)return Z}catch(N){}return null};var tQ0=function(){};
_.f(tQ0,EUk);tQ0.prototype.logStateTransition=function(){};
tQ0.prototype.logInternalEvent=function(){};
tQ0.prototype.JSC$19642_logErrorEvent=function(){};var OO8=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(OO8,_.On);OO8.prototype.getCompletionUrl=function(){return _.va(this,15)};var zr=function(L,Z,N,S,u,T){this.serviceId=L;this.environment=Z;this.sessionId=N;this.colorSchemeSelected=S;this.colorThemeDisplayed=u;this.JSC$19715_transport=T;this.currentState=1};
_.f(zr,EUk);zr.prototype.logStateTransition=function(L){var Z=WPQ(this);Z=_.vx(Z,3,this.currentState);Z=_.vx(Z,1,L);this.currentState=L;L=S8c(1);this.dispatch(Z,L)};
zr.prototype.logInternalEvent=function(L){L=S8c(L);this.dispatch(WPQ(this),L)};
zr.prototype.JSC$19642_logErrorEvent=function(L){var Z=WPQ(this);Z=_.vx(Z,1,10);L=S8c(L);this.dispatch(Z,L)};
var WPQ=function(L){var Z=new OO8;Z=_.vx(Z,1,L.currentState);Z=_.dF(Z,7,L.serviceId);var N,S;var u=((N=window)==null?0:(S=N.location)==null?0:S.href)?_.qG(window.location.href).JSC$10031_domain_:"NO_PACKAGE_NAME";N=_.dF(Z,8,u);N=_.vx(N,6,L.environment);N=_.dF(N,5,"100");N=_.vx(N,11,L.colorSchemeSelected);return _.vx(N,12,L.colorThemeDisplayed)};
zr.prototype.dispatch=function(L,Z){Z===void 0&&(Z=new _.Mb);var N=Z;L=L.serialize();N=_.dF(N,8,L);_.aW(N,12,this.sessionId);this.JSC$19715_transport.dispatch(Z)};var VQw=function(L,Z){this.loggerType=L;this.sessionIndex=Z!=null?Z:0},bOQ;
VQw.prototype.create=function(L,Z,N,S,u){switch(this.loggerType){case 0:return new tQ0;case 1:return bOQ||(bOQ=(new _.Rg(555,this.sessionIndex.toString())).build()),new zr(L,Z,N,S,u,bOQ);default:_.Xh(this.loggerType,"unknown logger type")}};var vP=[6,2,3,1],xV0=new Map([[4,1],[1,6],[2,2],[3,3]]),a9y={statusCode:7,statusMessage:"Failed to create flow object"},JSy=function(L,Z,N,S,u,T,W,V,M,G){this.serviceId=L;this.sessionId=Z;this.config=N;this.galService=S;this.JSC$19722_linkingSession=u;this.googleScopes=T;this.callerState=W;this.consentLanguageKeys=V;this.dynamicUrlParameters=M;this.partnerConfigMinReadTimestamp=G;this.currentFlow=0;S=this.JSC$19722_linkingSession;u=new Set;_.OW(S,P4v,1)&&u.add(1);_.OW(S,Jvw,2)&&_.OW(S,pQs,6)&&u.add(2);
_.OW(S,mXg,3)&&_.OW(S,pQs,6)&&u.add(3);_.OW(S,PYY,4)&&u.add(6);this.supportedFlows=u;S=N.loggerType;u=N.clientEnvironment;a:{T=N.colorScheme;switch(T){case 0:T=1;break a;case 1:T=2;break a;case 2:T=3;break a;default:_.Xh(T)}T=void 0}a:{W=N.colorScheme;W=zyP(W);switch(W){case 0:W=1;break a;case 1:W=2;break a;default:_.Xh(W)}W=void 0}this.galLogger=(new VQw(S,N.authUser)).create(L,u,Z,T,W)},ga5=function(L){return new Promise(function(Z){var N,S,u,T,W,V,M,G,D,l;
return _.b(function(v){switch(v.nextAddress){case 1:N=z_8(L.currentFlow,L.supportedFlows),S=!1,u=new m9q(L.JSC$19722_linkingSession,L.config.dataUsageNoticeConfig);case 2:if(N===void 0){v.jumpTo(4);break}_.RS(v,5);var R=u,K=N,U=void 0;S?K===1&&(U=R.displayInfoMap.get(2)):K===2||K===3?U=R.displayInfoMap.get(1):K===1&&(U=R.displayInfoMap.get(3));T=U?U:[];W=L.consentLanguageKeys;V=_.O(T);M=V.next();case 7:if(M.done)return L.currentFlow=N,v.yield(sVw(MQv(L,W)),11);G=M.value;return v.yield(k0s(G,L.config.dataUsageNoticeConfig.uiAdapter,
L.config.colorScheme,L.galLogger),10);case 10:D=v.yieldResult;if(D.statusCode!==1)return QVm(L.serviceId),L.currentFlow=0,Z($m({statusCode:D.statusCode,statusMessage:D.statusMessage},L.callerState)),v.return();D.consentLanguageKeys!==void 0&&(W=D.consentLanguageKeys);M=V.next();v.jumpTo(7);break;case 11:l=v.yieldResult;if(l.statusCode!==10)return l.statusCode!==6&&(QVm(L.serviceId),L.currentFlow=0),l.statusCode!==1&&L.callerState!==void 0&&(l.callerState=L.callerState),Z(l),v.return();_.SX(v,6);break;
case 5:_.yd(v);case 6:N=z_8(L.currentFlow,L.supportedFlows);S=!0;v.jumpTo(2);break;case 4:QVm(L.serviceId),L.currentFlow=0,Z($m({statusCode:12,statusMessage:"Linking failed"},L.callerState)),_.w7(v)}})})},HVq=function(L,Z,N){L.currentFlow=Z;
return jVP(MQv(L,N)).then(function(S){return S.statusCode===10&&L.config.interactionMode===1&&z_8(L.currentFlow,L.supportedFlows)!==void 0?ga5(L):S})},MQv=function(L,Z){return{flowParams:{serviceId:L.serviceId,
sessionId:L.sessionId,galService:L.galService,galLogger:L.galLogger,interactionMode:L.config.interactionMode,redirectServiceUrl:L.config.redirectServiceUrl,colorScheme:L.config.colorScheme,consentLanguageKeys:Z,dynamicUrlParameters:L.dynamicUrlParameters,showCloseOption:L.config.showCloseOption,partnerConfigMinReadTimestamp:L.partnerConfigMinReadTimestamp},currentFlow:L.currentFlow,config:L.config,session:L.JSC$19722_linkingSession,googleScopes:L.googleScopes,callerState:L.callerState}};var LKY=function(L,Z){this.config=L;this.galService=Z.getService();this.JSC$19735_galRepository=Z.JSC$19753_galRepository};
LKY.prototype.getLink=function(L,Z){return G_y(this,L,Z)};
var G_y=function(L,Z,N){return L.JSC$19735_galRepository.getLink({serviceId:Z,scopes:void 0,capabilities:void 0,linkName:N}).then(function(S){return{statusCode:1,link:S}}).catch(function(S){return{statusCode:qCy(S.code),
statusMessage:S.message}})};
LKY.prototype.deleteLink=function(L,Z){return this.JSC$19735_galRepository.deleteLink(L,this.config.accountLinkingEntryPoint,Z).then(function(){return{statusCode:1}}).catch(function(N){return{statusCode:qCy(N.code),
statusMessage:N.message}})};
LKY.prototype.startLinkingSession=function(L){var Z=L.serviceId;var N=L.sessionId;return C4v({serviceId:Z,sessionId:N!==void 0?N:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:L.loginHint,callerState:L.callerState,consentLanguageKeys:L.consentLanguageKeys,linkName:L.linkName,dynamicUrlParameters:L.dynamicUrlParameters,partnerConfigMinReadTimestamp:L.partnerConfigMinReadTimestamp})};var mf=function(L,Z,N,S,u,T,W){this.apiKey=Z;this.authUser=N;this.oauthToken=S;this.bucket=u;this.locale=T;this.galSdkEventHandler=W;if(S===void 0){if(Z===void 0)throw Error("xk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new kb8(L)};
mf.prototype.deleteLink=function(L){var Z=L.serviceId;var N=L.sessionId;var S=L.accountLinkingEntryPoint;var u=L.linkName;var T=this,W;return _.b(function(V){var M=(new YH).setHeader(T.getHeader(N));var G=FPw({serviceId:Z,linkName:u});M=_.fG(M,2,G);W=_.yM(M,3,S);return V.return(T.makeRequest(T.galServiceClient.deleteLink,W,[1,3],[2,4]))})};
var qec=function(L,Z){var N=Z.serviceId;var S=Z.sessionId;var u=Z.dynamicUrlParameters;var T=Z.redirectState;var W=Z.consentLanguageKeys;var V=Z.partnerConfigMinReadTimestamp;var M;return _.b(function(G){var D=(new Ik).setHeader(L.getHeader(S,u));D=_.ey(D,2,N);M=_.ey(D,4,T);W!==void 0&&_.ey(M,5,W);V!==void 0&&_.fG(M,6,V);return G.return(L.makeRequest(L.galServiceClient.JSC$19621_finishOAuth,M,[1,3],[2,4]))})};
mf.prototype.getLink=function(L){var Z=L.serviceId;var N=L.sessionId;var S=L.scopes;var u=L.capabilities;var T=L.consistencyKey;var W=L.linkName;var V=this,M;return _.b(function(G){var D=(new dt).setHeader(V.getHeader(N)),l=FPw({serviceId:Z,scopes:S,capabilities:u,linkName:W});M=_.fG(D,2,l);T!==void 0&&(D=kAy(),D=_.ey(D,2,T),_.fG(M,3,D));return G.return(V.makeRequest(V.galServiceClient.getLink,M,[1,3],[2,4]))})};
var E0m=function(L,Z){var N=Z.serviceId;var S=Z.sessionId;var u=Z.googleScopes;var T=Z.consistencyKey;var W;return _.b(function(V){var M=(new ev).setHeader(L.getHeader(S));M=_.ey(M,2,N);var G=Array.from(u.values());M=_.LG(M,3,G,_.vw);G=kAy();G=_.ey(G,2,T);W=_.fG(M,4,G);return V.return(L.makeRequest(L.galServiceClient.JSC$19621_depositGoogleCredential,W,[1,3],[2,4]))})};
mf.prototype.startLinkingSession=function(L){var Z=L.serviceId;var N=L.sessionId;var S=L.scopes;var u=L.capabilities;var T=L.loginHint;var W=L.supportedFlows;var V=L.completionUrl;var M=L.usePingPong;var G=L.twoWayLinking;var D=L.accountLinkingEntryPoint;var l=L.callerState;var v=L.consentLanguageKeys;var R=L.googleScopes;var K=L.dataUsageNoticeConfig;var U=L.linkName;var d=L.dynamicUrlParameters;var h=L.partnerConfigMinReadTimestamp;var E=this,A,J;return _.b(function(C){if(u!==void 0&&S!==void 0)throw Error("tk");
var X=(new QyY).setHeader(E.getHeader(N,d));A=_.ey(X,2,Z);U!==void 0&&_.ey(A,14,U);if(u!==void 0){X=A;var L1=Array.from(u.values());_.LG(X,5,L1,_.vw)}else S!==void 0&&(X=A,L1=Array.from(S.values()),_.LG(X,3,L1,_.vw));V!==void 0&&_.ey(A,6,V);M!==void 0&&_.DF(A,15,M);W!==void 0&&(X=A,L1=Array.from(W.values()),_.LG(X,4,L1,_.Nc));if(G!==void 0){if(G&&(!R||R.size===0))throw Error("yk");_.DF(A,8,G)}D!==void 0&&_.yM(A,9,D);T!==void 0&&_.ey(A,13,T);l!==void 0&&(X=A,L1=(new TextEncoder).encode(l),_.ZM(X,12,
_.et(L1,!1),_.YL()));v!==void 0&&_.ey(A,16,v);h!==void 0&&_.fG(A,18,h);if(K!==void 0&&K.size>0||R!==void 0&&R.size>0)J=new rvm,R!==void 0&&R.size>0&&(X=J,L1=Array.from(R.values()),_.LG(X,1,L1,_.vw)),K!==void 0&&(K.has(0)&&_.zvt(J,2,_.Nc,1,_.t0),K.has(1)&&_.zvt(J,2,_.Nc,2,_.t0)),_.fG(A,17,J);return C.return(E.makeRequest(E.galServiceClient.startLinkingSession,A,[1],[2]))})};
mf.prototype.getMetadata=function(){var L=this,Z,N;return _.b(function(S){Z={};L.useFpa?(Z["X-Goog-Api-Key"]=L.apiKey,Z["X-Goog-AuthUser"]=L.authUser!==void 0?L.authUser.toString():"0",(N=_.$dt([]))&&(Z.Authorization=N)):Z.Authorization="Bearer "+L.oauthToken;L.locale&&(Z["accept-language"]=L.locale);return S.return(Z)})};
mf.prototype.makeRequest=function(L,Z,N,S){var u=this,T;return _.b(function(W){if(W.nextAddress==1)return W.yield(u.getMetadata(),2);T=W.yieldResult;$R0(u,N);return W.return(L.bind(u.galServiceClient)(Z,T).finally(function(){$R0(u,S)}))})};
var $R0=function(L,Z){L.galSdkEventHandler!==void 0&&Z.forEach(function(N){L.galSdkEventHandler.onEvent(N)})};
mf.prototype.getHeader=function(L,Z){var N=new yP;L=_.ZM(N,2,_.Ov(L),0);L=_.yM(L,5,3);Z=_.LG(L,8,Z,_.vw);this.bucket!==void 0&&_.ey(Z,1,this.bucket);return Z};
var FPw=function(L){var Z=L.serviceId;var N=L.scopes;var S=L.capabilities;L=L.linkName;if(S!==void 0&&N!==void 0)throw Error("tk");var u=new KCP;Z=_.ey(u,1,Z);S!==void 0?(N=Array.from(S.values()),_.LG(Z,5,N,_.vw)):N!==void 0&&(N=Array.from(N.values()),_.LG(Z,3,N,_.vw));L!==void 0&&_.ey(Z,6,L);return Z};var Zl0=function(L){this.galService=new mf(L.alsDomain,L.apiKey,L.authUser,L.oauthToken,L.bucket,L.locale,L.galSdkEventHandler);this.JSC$19753_galRepository=new JpY(this.galService)};
Zl0.prototype.getService=function(){return this.galService};var DRw=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(DRw,_.On);var lcy=function(L){var Z=new DRw;return _.vx(Z,1,L)};
DRw.prototype.setErrorMessage=function(L){return _.dF(this,2,L)};var va5=[0,_.xT,_.J5,_.xT];var Jo=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Jo,_.On);var oa8=[0,[1,2,3],_.A5,[0,_.VYt,_.ivP,-1],_.A5,[0,zXm,-1],_.QM];var RYv=[0,_.p5,1,_.xT,_.J5,-1,1,_.Ha,_.jd,_.xT,-1,oa8];var cww=[0,_.xT,[0,_.Ha,_.jd,[0,_.J5]],_.z5,[0,_.xT,-1]];var MS=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(MS,_.On);var nas=[0,_.J5,_.xT,-2,_.p5,_.xT,_.p5,_.xT,-2,1,_.z5];var KPv=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(KPv,_.On);var fc8=[0,_.p5];var k_0=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(k_0,_.On);var ywk=[0,_.xT,cww,fc8,nas,RYv];var dYv=_.l9(k_0,ywk);var wDc=[0,ypg];var P3P=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(P3P,_.On);var URw=[0,[1,3],Cxv,_.xT,Cxv];var VP=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(VP,_.On);var Yb5=[0,_.xT];var eYc=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(eYc,_.On);var bf=function(L){return _.f5(L,DRw,2,Wj)},Ic0=function(L){var Z=new eYc;
return _.kV(Z,2,Wj,L)},Wj=[1,
2];var dRs=[0,Wj,_.A5,Yb5,_.A5,va5,_.XE,URw,1,_.xT,wDc];var acQ=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(acQ,_.On);var sNw=function(L){var Z=new acQ;return _.kV(Z,3,hYw,L)},hYw=[2,
3];var jNs=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(jNs,_.On);var Ea8=function(L,Z){return _.fG(L,2,Z)},P08=function(L,Z){return _.fG(L,8,Z)},pDs=function(L,Z){return _.fG(L,3,Z)};var zY0=[0,_.xT,dRs,ywk,_.Nb,[0,[5,6,7],[0,_.xT,-2],[0,_.p5,_.xT,_.J5],[0,oa8],[0,_.J5,_.xT,-1,_.Zw,_.xT],_.A5,[0,[0,_.p5],_.xT,-1],_.A5,[0,[3,4],_.xT,-1,_.A5,[0,[0,_.xT,_.z5]],_.A5,[0,[0,[0,[1,2,3],_.A5,[0],_.A5,[0],_.A5,[0]]]]],_.A5,[0,_.xT]],_.Nb,-1,[0,hYw,_.xT,_.A5,Yb5,_.A5,va5,_.XE,URw,[0,ypg]]];var mRy=_.l9(jNs,zY0),Jwc=_.v6(zY0);var C0q=function(){_.ag.call(this)};
_.f(C0q,_.ag);C0q.prototype.init=function(){};
new C0q;var rwQ=_.sc(["data-"]),QNQ=_.sc(["aria-"]),XDc=_.sc(["aria-"]),Cg=function(L,Z){this.isLatencyMeasurementExperiment=L===void 0?!1:L;this.enableDialogA11yFix=Z===void 0?!1:Z;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.qNl(_.iH.location.href)},hmk=function(L,Z){L.onConsentPrimitiveShownCallback=Z},AwY=function(L,Z){return L.overriddenIframeLoadTimeout?L.overriddenIframeLoadTimeout:Z!==void 0?Z:5E3},jny=function(L){if(L.prewarmPromise!==void 0)return L.prewarmPromise;
L.prewarmPromise=new Promise(function(Z,N){rt(L,1);HOy(L,BEg(L,!0),xRk(L));L.iframe?L.prewarmChannel||qbQ(L,L.iframe,Z):N(Error("zk"))});
L.prewarmPromise.finally(function(){L.prewarmPromise=void 0});
return L.prewarmPromise};
Cg.prototype.showPrimitive=function(){var L=this;if(this.consentPromise!==void 0)return this.consentPromise;var Z=Date.now();LZg(this,Z);this.consentPromise=new Promise(function(N,S){rt(L,0,Z);var u=L.isDarkTheme();L.isLatencyMeasurementExperiment||L.initialLoadingStrategy===1||L.initialLoadingStrategy===2||(L.loadingBar||(L.loadingBar=uMw(getComputedStyle(document.body).direction==="rtl",u),L.loadingBar.style.position="fixed",L.loadingBar.style.zIndex="15000"),document.body.appendChild(L.loadingBar));
HOy(L,BEg(L),xRk(L));L.iframe?L.channel||ZTY(L,L.iframe,N,S):(Nf0(L),S(Error("zk")))});
this.consentPromise.finally(function(){L.consentPromise=void 0});
return this.consentPromise};
var ZTY=function(L,Z,N,S){var u,T;_.b(function(W){switch(W.nextAddress){case 1:rt(L,3);u=!1;setTimeout(function(){if(!u){Nf0(L);SFP(L);iTq(L);var V=lcy(7).setErrorMessage("Timeout connecting to iframe");N(P08(Ea8(new jNs,Ic0(V)),sNw(V)))}},AwY(L,uNg(L)));
if(!L.prewarmPromise){W.jumpTo(2);break}_.RS(W,3);return W.yield(L.prewarmPromise,5);case 5:_.SX(W,2);break;case 3:_.yd(W),T=lcy(4).setErrorMessage("Error while prewarming."),N(P08(Ea8(new jNs,Ic0(T)),sNw(T)));case 2:L.prewarmChannel&&L.prewarmChannel.send(Jwc(pDs(new jNs,L.consentPrimitiveRequest))),L.channel=_.NY({destination:L.win,iframe:Z,origin:TfQ(L),channelName:"cpw",onEstablished:function(){u=!0;Nf0(L);L.isLatencyMeasurementExperiment||(L.JSC$19782_previousBodyOverflow=document.body.style.overflow,
L.JSC$19782_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,L.JSC$19782_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",L.enableDialogA11yFix&&window.addEventListener("blur",L.focusChangeListener));var V=L.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="";L.initialLoadingStrategy===2||L.initialLoadingStrategy===3?rt(L,4):rt(L,6);var M;(M=L.onConsentPrimitiveShownCallback)==null||M.call(L)},
onMessage:function(V){V=mRy(V.data);switch(_.oA(V,1)){case 1:SFP(L);var M=Tmy(_.lp(V,_.oL,7));M&&(L.initialLoadingStrategy!==2&&L.initialLoadingStrategy!==3||rt(L,6,M),rt(L,5,M));if(M=Tmy(_.lp(V,_.oL,6)))rt(L,7,M),rt(L,8);var G,D;((G=_.lp(V,eYc,2))==null?void 0:_.MQ(G,Wj))!==0&&((D=_.lp(V,acQ,8))==null?void 0:_.MQ(D,hYw))!==0||S(Error("Ak"));N(V);break;case 2:iTq(L)}}}),_.w7(W)}})},qbQ=function(L,Z,N){L.prewarmChannel=_.NY({destination:L.win,
iframe:Z,origin:TfQ(L),channelName:"pwcp",onEstablished:function(){rt(L,2);N()}})},TfQ=function(L){var Z=_.en(L.src).toString();
return Z&&Z.indexOf("://")<0&&Z.indexOf("//")!==0?L.origin:_.qNl(Z)},BEg=function(L,Z){Z=Z===void 0?!1:Z;
var N,S=new Map([["origin",L.origin],["hl",(N=tc0(L))!=null?N:null]]);Z&&S.set("pw","1");Z=_.O([["cpr",L.consentPrimitiveRequest.serialize()]]);for(N=Z.next();!N.done;N=Z.next()){var u=_.O(N.value);N=u.next().value;u=u.next().value;S.set(N,u)}L.isDarkTheme()&&S.set("color_scheme","dark");return _.om(L.src,S)},Nf0=function(L){L.isLatencyMeasurementExperiment||L.loadingBar&&document.body.removeChild(L.loadingBar)};
Cg.prototype.getSrc=function(){var L=_.WW(this.origin),Z;var N=(Z=_.lp(this.consentPrimitiveRequest,KPv,3))==null?void 0:_.G3(Z,1);Z="consent.google.com";N=N?"/u/"+encodeURIComponent(N.toString()):"";(L==null?0:L.endsWith("youtube.com"))?Z="consent.youtube.com":(L=L==null?void 0:L.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(Z="consent.google."+((L[1]?"co.":"")+encodeURIComponent(L[2])));return _.YV("https://"+Z+"/signedin"+N+"/landing")};
var HOy=function(L,Z,N){L.iframe||(L.iframe=document.createElement("iframe"),L.iframe.style.width="100%",L.iframe.style.height="100%",N!==112496729&&(L.iframe.style.colorScheme="auto"),L.isLatencyMeasurementExperiment&&(L.iframe.style.display="none"),_.qq(L.iframe,Z),L.iframe.setAttribute("jsname","C5o1O"),OTg(L.iframe),document.body.appendChild(L.iframe))},OTg=function(L){L.style.bottom="-200vh";
L.style.position="fixed";L.style.right="-200vw";L.style.border="";L.style.left="";L.style.top="";L.style.zIndex="";L.style.pointerEvents="none";L.style.visibility="hidden"},SFP=function(L){L.iframe&&(L.isLatencyMeasurementExperiment||(L.JSC$19782_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=L.JSC$19782_previousHtmlOverscroll),L.JSC$19782_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=L.JSC$19782_previousBodyOverscroll),L.JSC$19782_previousBodyOverflow!==
void 0&&(document.body.style.overflow=L.JSC$19782_previousBodyOverflow),L.enableDialogA11yFix&&WZv(L,!1)),OTg(L.iframe))};
Cg.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(WZv(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var WZv=function(L,Z){var N,S,u=(N=L.iframe)==null?void 0:(S=N.parentElement)==null?void 0:S.children;if(u)for(N=0;N<u.length;N++)S=u[N],S!==L.iframe&&(Z?(S.hasAttribute("aria-hidden")&&_.O3([_.Fr(rwQ)],S,"data-old-aria-hidden",S.getAttribute("aria-hidden")),_.O3([_.Fr(QNQ)],S,"aria-hidden","true")):(S.removeAttribute("aria-hidden"),S.hasAttribute("data-old-aria-hidden")&&(_.O3([_.Fr(XDc)],S,"aria-hidden",S.getAttribute("data-old-aria-hidden")),S.removeAttribute("data-old-aria-hidden"))))},rt=function(L,
Z,N){var S;
(S=L.latencyCallback)==null||S.call(L,{latencyType:Z,timestampEpochMillis:N!=null?N:Date.now()})};var VcP=function(L,Z,N){Cg.call(this,Z,N===void 0?!1:N);this.consentPrimitiveRequest=L;L=tc0(this);_.LL5(L);this.src=this.getSrc();var S;this.initialLoadingStrategy=(S=_.lp(this.consentPrimitiveRequest,MS,4))==null?void 0:_.oA(S,4)},bTv;
_.f(VcP,Cg);var aIw=function(L){var Z=_.c("enable_primitive_dialog_aria_hide_siblings");L={request:L,enableDialogA11yFix:Z===void 0?!1:Z};bTv||(bTv=new VcP(L.request,L.isLatencyMeasurementExperiment||_.oA(L.request,1)===2,L.enableDialogA11yFix));return bTv},tc0=function(L){var Z;
return(Z=_.lp(L.consentPrimitiveRequest,MS,4))==null?void 0:_.va(Z,1)},LZg=function(L,Z){if(!_.OW(L.consentPrimitiveRequest,Jo,5)){var N=L.consentPrimitiveRequest,S=new Jo;
_.fG(N,5,S)}var u;if((u=_.lp(L.consentPrimitiveRequest,Jo,5))==null||_.hQH(_.t5(u,8))==null){var T;(T=_.lp(L.consentPrimitiveRequest,Jo,5))!=null&&_.aW(T,8,Z)}},xRk=function(L){var Z;
return(Z=_.lp(L.consentPrimitiveRequest,Jo,5))==null?void 0:_.G3(Z,1)};
VcP.prototype.isDarkTheme=function(){var L;return((L=_.lp(this.consentPrimitiveRequest,MS,4))==null?void 0:_.oA(L,2))===2};
var uNg=function(L){var Z;return((Z=_.lp(L.consentPrimitiveRequest,MS,4))==null?void 0:_.G3(Z,5))||void 0},iTq=function(L){L.channel=void 0;
L.prewarmChannel=void 0;L.iframe&&(document.body.contains(L.iframe)&&document.body.removeChild(L.iframe),L.iframe=void 0);bTv=void 0},Epv=function(L){return Cg.prototype.showPrimitive.call(L).then(function(Z){return _.lp(Z,eYc,2)})};for(var QP={},McQ=(QP[64]="ma",QP[73]="ogb",QP[89]="cr",QP[21]="test",QP[0]="unkn",QP[137]="con",QP[155]="hl",QP[78]="yt",QP[171]="lp",QP[172]="ap",QP[177]="amo",QP[178]="pqe",QP[74]="gg",QP[1]="gm",QP[140]="am",QP[193]="sc",QP),gZy=_.O(Object.keys(McQ)),GK8=gZy.next();!GK8.done;GK8=gZy.next());var FZP=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(FZP,_.On);var $f0=[0,[2,3,4],_.xT,pF0,Cxv,_.QM];var Dfk=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(Dfk,_.On);var ls8=_.l9(Dfk,[0,_.qQ,_.J5,_.xT,_.J5,_.xT,$f0]);var vZv=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(vZv,_.On);vZv.prototype.getCommand=function(){return _.oA(this,1)};
var oZm=function(){var L=new vZv;return _.yM(L,1,0)};var Rok=_.v6([0,_.qQ,_.J5,[0,_.xT,_.J5,-1]]);var ccw=new _.ll("s"),nZm=new _.ll("t"),KZv=new _.ll("u"),fsv=new _.ll("v"),kKq=function(L,Z,N){_.vn.call(this,ccw);this.mediaKey=L;this.photoUrl=Z;this.photoSource=N};
_.f(kKq,_.vn);var yc5=function(){_.vn.call(this,nZm)};
_.f(yc5,_.vn);var wbk=function(L){L=L===void 0?!1:L;_.vn.call(this,KZv);this.isError=L};
_.f(wbk,_.vn);var Ufw=function(){_.vn.call(this,fsv)};
_.f(Ufw,_.vn);var YFY=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,asw=function(L){if(typeof L=="string"){if(L.charAt(0)==".")return eoP(L.substr(1));if(L.charAt(0)=="["){var Z=YFY.exec(L);L=L.indexOf("=")==-1?void 0:Z[3];return Isy(Z[1],L)}return df5(L)}return L},eoP=function(L){return function(Z){return Z.getAttribute&&_.Cc(Z,L)}},Isy=function(L,Z){return function(N){return Z!==void 0?N.getAttribute&&N.getAttribute(L)==Z:N.hasAttribute&&N.hasAttribute(L)}},df5=function(L){L=L.toUpperCase();
return function(Z){return(Z=Z.tagName)&&Z.toUpperCase()==L}},hog=function(){return!0};var XV=function(L,Z){this.JSC$19810_key_=L;this.JSC$19810_value_=Z},swc=function(L){throw Error("Bk`"+L.JSC$19810_key_);
},jws=function(L,Z){return new TypeError("Ck`"+Z+"`"+L.JSC$19810_key_+"`"+L.JSC$19810_value_+"`"+typeof L.JSC$19810_value_)};
XV.prototype.string=function(L){return arguments.length==0?EZs(this):PkQ(this,L)};
var PkQ=function(L,Z){var N;return(N=pbv(L))!=null?N:Z},EZs=function(L){var Z=pbv(L);
Z===null&&swc(L);return Z},pbv=function(L){var Z=L.JSC$19810_value_;
if(Z==null)return null;if(typeof Z==="string")return Z;throw jws(L,"string");};
XV.prototype.bool=function(L){if(arguments.length==0){var Z=this.optionalBool();Z===null&&swc(this)}else{var N;Z=(N=this.optionalBool())!=null?N:L}return Z};
XV.prototype.optionalBool=function(){var L=this.JSC$19810_value_;if(L==null)return null;if(typeof L==="boolean")return L;if(typeof L==="string"){L=L.toLowerCase();if(L==="true"||L==="1")return!0;if(L==="false"||L==="0")return!1}throw jws(this,"boolean");};
XV.prototype.number=function(L){if(arguments.length==0){var Z=zoY(this);Z===null&&swc(this)}else Z=mfk(this,L);return Z};
var mfk=function(L,Z){var N;return(N=zoY(L))!=null?N:Z},zoY=function(L){var Z=L.JSC$19810_value_;
if(Z==null)return null;if(typeof Z==="number")return Z;if(typeof Z==="string"){var N=Number(Z);if(!isNaN(N)&&(N!==0||Z.trim().length!==0))return N}throw jws(L,"number");};
XV.prototype.toString=function(){return EZs(this)};
XV.prototype.enum=function(L,Z){var N=!0,S=void 0,u;for(u in L){var T=L[u];N&&(N=!1,S=typeof T==="number"?mfk(this,Z):PkQ(this,Z));if(T==S)return S}JSON.stringify(L);return S};
XV.prototype.array=function(L){if(arguments.length==0){var Z=Jcg(this);Z===null&&swc(this);return Z}Z=Jcg(this);return Z==null?L:Z};
var Jcg=function(L){var Z=L.JSC$19810_value_;if(Z==null)return null;Array.isArray(Z)||(typeof Z!=="string"?Z=[Z]:(Z=Z.trim(),Z=Z==""?[]:Z.split(",").map(function(N){return N.trim()})));
return Ckq(L,Z)},Ckq=function(L,Z){var N=L.JSC$19810_key_+"[";
return Array.from(Z,function(S,u){return new XV(N+u+"]",S)})};
XV.prototype.object=function(L){var Z=this.JSC$19810_value_;if(Z==null)return L===void 0&&swc(this),L;if(typeof Z==="object"&&Z.constructor===Object){L={};var N=this.JSC$19810_key_+".",S;for(S in Z)L[S]=new XV(N+S,Z[S]);return L}throw jws(this,"object");};var Ao=function(L){this.list_=rc5(L)},rc5=function(L){if(L instanceof Ao)L=L.list_;
else if(L[0]instanceof Ao){for(var Z=new Set,N=0;N<L.length;N++)for(var S=_.O(L[N].list_),u=S.next();!u.done;u=S.next())Z.add(u.value);L=Z}return[].concat(_.Pd(L))};
_.t=Ao.prototype;_.t.each=function(L,Z,N){((N===void 0?0:N)?nDs:_.SZ)(this.list_,L,Z);return this};
_.t.size=function(){return this.list_.length};
_.t.isEmpty=function(){return this.list_.length===0};
_.t.get=function(L){return this.list_[L]||null};
_.t.el=function(){return this.list_[0]||null};
_.t.map=function(L,Z){return _.px(this.list_,L,Z)};
_.t.equals=function(L){return this===L||_.Bs(this.list_,L.list_)};
_.t.first=function(){return this.list_.length==0?null:new Hj(this.list_[0])};
_.t.last=function(){return this.list_.length==0?null:new Hj(this.list_[this.list_.length-1])};
_.t.find=function(L){var Z=[];this.each(function(N){N=N.querySelectorAll(String(L));for(var S=0;S<N.length;S++)Z.push(N[S])});
return new Ao(Z)};
_.t.parent=function(){var L=[];this.each(function(Z){(Z=Z.parentElement||null)&&!_.p1(L,Z)&&L.push(Z)});
return new Ao(L)};
_.t.children=function(){var L=[];this.each(function(Z){Z=_.an(Z);for(var N=0;N<Z.length;N++)L.push(Z[N])});
return new Ao(L)};
_.t.filter=function(L){L=_.A9(this.list_,asw(L));return new Ao(L)};
_.t.closest=function(L){var Z=[],N=asw(L),S=function(u){return _.WK(u)&&N(u)};
this.each(function(u){(u=_.rF(u,S,!0))&&!_.p1(Z,u)&&Z.push(u)});
return new Ao(Z)};
_.t.next=function(L){return Qwc(this,_.$8t,L)};
_.t.prev=function(L){return Qwc(this,rLv,L)};
var Qwc=function(L,Z,N){var S=[];var u=N?asw(N):hog;L.each(function(T){(T=Z(T))&&u(T)&&S.push(T)});
return new Ao(S)};
Ao.prototype.setClass=function(L){return this.each(function(Z){_.J4(Z,L)})};
var Xbm=function(L,Z){return L.each(function(N){_.ER(N,Z)})},Acw=function(L,Z){return L.each(function(N){_.sR(N,Z)})};
Ao.prototype.toggleClass=function(L,Z){return Z===!0?Xbm(this,L):Z===!1?Acw(this,L):this.each(function(N){_.Cc(N,L)?_.sR(N,L):_.ER(N,L)})};
Ao.prototype.setText=function(L){return this.each(function(Z){_.hY(Z,L)})};
var HTw=function(L){L.each(function(Z){Z.removeAttribute("aria-hidden")})};
Ao.prototype.getStyle=function(L){if(this.list_.length>0){var Z=this.list_[0],N=Z.style[_.To(L)];return typeof N!=="undefined"?N:Z.style[_.U8l(Z,L)]||""}};
Ao.prototype.getData=function(L){if(this.list_.length===0)return new XV(L,null);var Z=whY(this.list_[0],L);return new XV(L,Z)};
Ao.prototype.focus=function(L){try{L?this.el().focus(L):this.el().focus()}catch(Z){}return this};
Ao.prototype.click=function(){var L=_.Jj(this.el());if(L.createEvent){var Z=L.createEvent("MouseEvents");Z.initMouseEvent("click",!0,!0,L.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(Z)}else L=L.createEventObject(),L.clientX=0,L.clientY=0,L.screenX=0,L.screenY=0,L.altKey=!1,L.ctrlKey=!1,L.shiftKey=!1,L.button=0,this.el().fireEvent("onclick",L)};
var Bj=function(L,Z,N,S){function u(V,M,G){var D=M;M&&M.parentNode&&(D=M.cloneNode(!0));V(D,G)}
S=S===void 0?!1:S;if(L.list_.length==1){var T=L.list_[0],W=function(V){return Z(V,T)};
N instanceof Ao?N.each(W,void 0,S):Array.isArray(N)?(S?nDs:_.SZ)(N,W):W(N);return L}return L.each(function(V){N instanceof Ao?N.each(function(M){u(Z,M,V)}):Array.isArray(N)?_.SZ(N,function(M){u(Z,M,V)}):u(Z,N,V)})};
_.t=Ao.prototype;_.t.append=function(L){return Bj(this,function(Z,N){Z&&N.appendChild(Z)},L)};
_.t.appendTo=function(L){(new Ao([L])).append(this);return this};
_.t.remove=function(){return Bj(this,function(L,Z){_.U_(Z)},null)};
_.t.empty=function(){return Bj(this,function(L,Z){_.es(Z)},null)};
_.t.after=function(L,Z){return Bj(this,function(N,S){N&&_.dI(N,S)},L,!(Z===void 0||Z))};
_.t.before=function(L){return Bj(this,function(Z,N){Z&&_.In(Z,N)},L)};
_.t.replaceWith=function(L){return Bj(this,function(Z,N){Z&&_.ghl(Z,N)},L)};
_.t.toggle=function(L){return this.each(function(Z){_.N$(Z,L)})};
_.t.show=function(){return this.toggle(!0)};
_.t.hide=function(){return this.toggle(!1)};
_.t.trigger=function(L,Z,N,S){return Bf5(this,L,Z,N,S)};
var Bf5=function(L,Z,N,S,u){return L.each(function(T){_.lkt(_.Jj(T)).triggerWizEventInternal(T,Z,N,S,u)})},Hj=function(L,Z){L instanceof Ao&&(Z=L.list_,L=null);
this.list_=rc5(L!=null?[L]:Z)};
_.Qk(Hj,Ao);_.t=Hj.prototype;_.t.children=function(){return new Ao(Array.prototype.slice.call(_.an(this.list_[0])))};
_.t.each=function(L,Z){L.call(Z,this.list_[0],0);return this};
_.t.size=function(){return 1};
_.t.el=function(){return this.list_[0]};
_.t.first=function(){return this};var xH=function(L,Z){Z=Z===void 0?window:Z;this.hostId=L;this.win=Z;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$19821_previousHtmlOverscroll=this.JSC$19821_previousBodyOverscroll=this.JSC$19821_previousBodyOverflow="";this.eventTarget=new _.Kc;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},LiY=function(L){var Z=
xfk(xfk(xfk(new qFc(78),"po"),"hppp"),"hhc");
Z.authUser=Number(_.X7("SESSION_INDEX","0"));Z.colorScheme=L;return Z};
xH.prototype.getOrigin=function(){return this.origin?this.origin:_.ux(_.ix(_.S7(new _.j9,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
xH.prototype.getTargetOrigin=function(){return _.ux(_.ix(_.S7(new _.j9,this.scheme),this.domain),this.port)};
xH.prototype.preloadIframe=function(L){var Z=this;if(this.iframeLoadPromise===void 0){var N=document.createElement("iframe");this.iframe=N;g90(N,L);this.iframeLoadPromise=new Promise(function(S,u){var T=!1,W=function(V){V.stopPropagation();N.removeEventListener("error",W);N.removeEventListener("securitypolicyviolation",W);u(Error("Dk",{cause:V}))};
N.addEventListener("error",W);N.addEventListener("securitypolicyviolation",W);setTimeout(function(){T||u(Error("Ek"))},3E4);
ZF8(Z,N,function(){T=!0;N.removeEventListener("error",W);N.removeEventListener("securitypolicyviolation",W);S()})});
NMY(this);L=this.getTargetOrigin().toString();N.setAttribute("allow","camera "+L+"; display-capture "+L);this.parentElement.appendChild(N)}return this.iframeLoadPromise};
var uxQ=function(L,Z){var N,S;return _.b(function(u){if(u.nextAddress==1)return N=uMw(getComputedStyle(L.parentElement).direction==="rtl"),L.parentElement.appendChild(N),document.activeElement instanceof HTMLElement&&(L.elementToFocusAfterClose=document.activeElement),_.RS(u,2),u.yield(L.preloadIframe(Z),4);if(u.nextAddress!=2){L.parentElement.removeChild(N);L.JSC$19821_previousBodyOverflow=L.parentElement.style.overflow;L.JSC$19821_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
L.JSC$19821_previousBodyOverscroll=L.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";L.parentElement.style.overscrollBehavior="contain";L.parentElement.style.overflow="hidden";var T=L.iframe;T.style.bottom="0";T.style.border="none";T.style.height="100%";T.style.left="0";T.style.position=L.iframePosition;T.style.right="0";T.style.top="0";T.style.width="100%";T.style.zIndex="2202";T.setAttribute("aria-hidden","false");T.setAttribute("aria-modal","true");
L.opened=!0;S$m(L);return _.SX(u,0)}S=_.yd(u);L.parentElement.removeChild(N);VC5(L.isDarkTheme());iFY(L,!1);throw Error("Fk",{cause:S});})},iFY=function(L,Z){Z=Z===void 0?!0:Z;
L.iframe!==void 0&&(TMQ(L),document.documentElement.style.overscrollBehavior=L.JSC$19821_previousHtmlOverscroll,L.parentElement.style.overscrollBehavior=L.JSC$19821_previousBodyOverscroll,L.parentElement.style.overflow=L.JSC$19821_previousBodyOverflow,L.elementToFocusAfterClose!==void 0&&(L.elementToFocusAfterClose.focus(),L.elementToFocusAfterClose=void 0),Z?NMY(L):(L.parentElement.removeChild(L.iframe),L.iframe=void 0,L.iframeLoadPromise=void 0,L.mainChannel=void 0),L.opened=!1)},TMQ=function(L){L.backgroundElementsAriaHiddenIsNull&&
(HTw(L.backgroundElementsAriaHiddenIsNull),L.backgroundElementsAriaHiddenIsNull=void 0);
L.backgroundElementsAriaHiddenIsFalse&&(L.backgroundElementsAriaHiddenIsFalse.each(function(Z){Z.setAttribute("aria-hidden","false")}),L.backgroundElementsAriaHiddenIsFalse=void 0);
L.backgroundElementsWithoutInert&&(L.backgroundElementsWithoutInert.each(function(Z){Z.removeAttribute("inert")}),L.backgroundElementsWithoutInert=void 0)},S$m=function(L){L.backgroundElementsAriaHiddenIsNull=(new Hj(L.iframe.parentElement)).children().filter(function(Z){return Z.getAttribute("aria-hidden")===null&&Z!==L.iframe});
L.backgroundElementsAriaHiddenIsNull.each(function(Z){Z.setAttribute("aria-hidden","true")});
L.backgroundElementsAriaHiddenIsFalse=(new Hj(L.iframe.parentElement)).children().filter(function(Z){return Z.getAttribute("aria-hidden")==="false"&&Z!==L.iframe});
L.backgroundElementsAriaHiddenIsFalse.each(function(Z){Z.setAttribute("aria-hidden","true")});
L.backgroundElementsWithoutInert=(new Hj(L.iframe.parentElement)).children().filter(function(Z){return!Z.hasAttribute("inert")&&Z!==L.iframe});
L.backgroundElementsWithoutInert.each(function(Z){Z.setAttribute("inert","true")})},NMY=function(L){L=L.iframe;
L.style.bottom="-1000px";L.style.position="fixed";L.style.right="-1000px";L.style.border="";L.style.height="";L.style.left="";L.style.top="";L.style.width="";L.style.zIndex="";L.setAttribute("aria-hidden","true");L.setAttribute("aria-modal","false")};
xH.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var qFc=function(L,Z){xH.call(this,McQ[L],Z);this.options=[];this.style=""};
_.f(qFc,xH);var thv=function(L){L.style="youtube";return L},OFQ=function(L,Z){L.eventTarget.listen(KZv,Z);
return L},Wiw=function(L,Z){L.eventTarget.listen(ccw,Z);
return L},xfk=function(L,Z){L.options.push(Z);
return L},VhY=function(L){var Z=[L.getOrigin()];
L.ancestorOrigins&&Z.push.apply(Z,_.Pd(L.ancestorOrigins));var N=new _.j9(L.win.location.href),S=L.startUrl?L.startUrl:L.options.includes("po")?"profile-picture/art":"profile-picture";Z=Gr(_.TQ(L.getTargetOrigin(),S),"origin",Z);L.startUrl&&_.Z4(Z,"startPath",L.startUrl);L.authUser>0&&_.Z4(Z,"authuser",L.authUser);L.pageId!==void 0&&_.Z4(Z,"pageId",L.pageId);_.Z4(Z,"hostId",L.hostId);L.jsMode!==void 0&&_.Z4(Z,"jsmode",L.jsMode);L.rectangleRatio!==void 0&&_.Z4(Z,"rectangleRatio",L.rectangleRatio);
L.options.length>0&&_.Z4(Z,"opts",L.options.join(","));try{for(var u=_.O(["utm_source","utm_medium","utm_campaign","utm_content"]),T=u.next();!T.done;T=u.next()){var W=T.value;_.Lh(N,W)&&_.Z4(Z,W,_.Lh(N,W))}var V,M=(V=L.hl)!=null?V:_.Lh(N,"hl");M!==void 0&&_.Z4(Z,"hl",M)}catch(G){if(!(G instanceof URIError))throw G;}L.colorScheme&&_.Z4(Z,"theme",L.colorScheme);L.style&&_.Z4(Z,"style",L.style);return Z},bFs=function(L,Z){L.mainChannel=_.NY({destination:L.win,
iframe:Z,origin:L.getTargetOrigin().toString(),channelName:"ow",onMessage:function(N){N=ls8(N.data);if(Z===L.iframe)switch(_.oA(N,1)){case 1:L.eventTarget.dispatchEvent(new wbk);iFY(L);break;case 2:L.eventTarget.dispatchEvent(new kKq(_.va(N,4),_.va(N,2),_.oA(N,5),_.lp(N,FZP,6)));break;case 0:var S;L.eventTarget.dispatchEvent(new yc5(_.va(N,2),(S=_.oA(N,3))!=null?S:0));break;case 3:L.eventTarget.dispatchEvent(new wbk(!0));iFY(L,!1);break;case 4:L.eventTarget.dispatchEvent(new Ufw)}}})},ZF8=function(L,
Z,N){_.NY({destination:L.win,
iframe:Z,origin:_.ux(_.ix(_.S7(new _.j9,L.scheme),L.domain),L.port).toString(),channelName:"owi",onMessage:function(S){Z===L.iframe&&(N!==void 0&&N(),bFs(L,Z),L.opened&&L.mainChannel.send(Rok(oZm())),S.reply(),ZF8(L,Z))}})};
qFc.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?xH.prototype.preloadIframe.call(this,VhY(this).toString()):this.iframeLoadPromise};
qFc.prototype.openPicker=function(L){var Z=this;return _.b(function(N){if(N.nextAddress==1)return Z.startUrl=L?L:Z.options.includes("po")?"profile-picture/art":"profile-picture",N.yield(uxQ(Z,VhY(Z).toString()),2);if(Z.mainChannel){var S=Z.mainChannel,u=S.send;var T=oZm();T=_.dF(T,2,Z.startUrl);u.call(S,Rok(T))}_.w7(N)})};var MhQ=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(MhQ,_.On);_.t=MhQ.prototype;_.t.getSize=function(){return Rk(this,1)};
_.t.setSize=function(L){return _.kT(this,1,L)};
_.t.getWidth=function(){return Rk(this,12)};
_.t.getHeight=function(){return Rk(this,13)};
_.t.setCenterCrop=function(L){return _.lX(this,20,L)};
_.t.getHtml=function(){return _.$T(this,4)};
_.t.getToken=function(){return _.yL(this,24)};
_.t.setToken=function(L){return _.dF(this,24,L)};
_.t.getBackgroundColor=function(){return Rk(this,87)};
_.t.hasBackgroundColor=function(){return _.Ww(_.t5(this,87))!=null};
_.t.getStoryboardLevel=function(){return Rk(this,109)};var qS=function(L){this.JSC$19829_value_=void 0;this.childNodes_={};if(L){var Z=_.iAY(L);L=_.N6(L);for(var N=0;N<Z.length;N++)this.set(Z[N],L[N])}};
qS.prototype.set=function(L,Z){g3Y(this,L,Z,!1)};
qS.prototype.add=function(L,Z){g3Y(this,L,Z,!0)};
var g3Y=function(L,Z,N,S){for(var u=0;u<Z.length;u++){var T=Z.charAt(u);L.childNodes_[T]||(L.childNodes_[T]=new qS);L=L.childNodes_[T]}if(S&&L.JSC$19829_value_!==void 0)throw Error("Gk`"+Z);L.JSC$19829_value_=N},GWg=function(L,Z){for(var N=0;N<Z.length;N++)if(L=L.childNodes_[Z.charAt(N)],!L)return;
return L};
qS.prototype.get=function(L){return(L=GWg(this,L))?L.JSC$19829_value_:void 0};
qS.prototype.getValues=function(){var L=[];Fis(this,L);return L};
var Fis=function(L,Z){L.JSC$19829_value_!==void 0&&Z.push(L.JSC$19829_value_);for(var N in L.childNodes_)Fis(L.childNodes_[N],Z)};
qS.prototype.getKeys=function(L){var Z=[];if(L){for(var N=this,S=0;S<L.length;S++){var u=L.charAt(S);if(!N.childNodes_[u])return[];N=N.childNodes_[u]}$Uv(N,L,Z)}else $Uv(this,"",Z);return Z};
var $Uv=function(L,Z,N){L.JSC$19829_value_!==void 0&&N.push(Z);for(var S in L.childNodes_)$Uv(L.childNodes_[S],Z+S,N)};
_.t=qS.prototype;_.t.containsKey=function(L){return this.get(L)!==void 0};
_.t.containsValue=function(L){if(this.JSC$19829_value_===L)return!0;for(var Z in this.childNodes_)if(this.childNodes_[Z].containsValue(L))return!0;return!1};
_.t.clear=function(){this.childNodes_={};this.JSC$19829_value_=void 0};
_.t.remove=function(L){for(var Z=this,N=[],S=0;S<L.length;S++){var u=L.charAt(S);if(!Z.childNodes_[u])throw Error("Hk`"+L);N.push([Z,u]);Z=Z.childNodes_[u]}L=Z.JSC$19829_value_;for(delete Z.JSC$19829_value_;N.length>0;)if(S=N.pop(),Z=S[0],S=S[1],Z.childNodes_[S].isEmpty())delete Z.childNodes_[S];else break;return L};
_.t.clone=function(){return new qS(this)};
_.t.getCount=function(){return HLv(this.getValues())};
_.t.isEmpty=function(){return this.JSC$19829_value_===void 0&&_.Py.isEmpty(this.childNodes_)};var l7y=function(){if(!DU0){var L=DU0=new qS,Z;for(Z in ljm)L.add(Z,ljm[Z])}},DU0,L_=function(L,Z){this.types=L;
this.setters=Z},ljm={a:new L_([3,
0],[function(L,Z){_.lX(L,21,Z)},
function(L,Z){_.kT(L,56,Z)}]),
al:new L_([3],[function(L,Z){_.lX(L,74,Z)}]),
b:new L_([3,0],[function(L,Z){_.lX(L,23,Z)},
function(L,Z){_.kT(L,38,Z)}]),
ba:new L_([0],[function(L,Z){_.kT(L,85,Z)}]),
bc:new L_([0],[function(L,Z){_.kT(L,87,Z)}]),
br:new L_([0],[function(L,Z){_.kT(L,86,Z)}]),
c:new L_([3,0],[function(L,Z){_.lX(L,2,Z)},
function(L,Z){_.kT(L,39,Z)}]),
cc:new L_([3],[function(L,Z){_.lX(L,51,Z)}]),
ci:new L_([3],[function(L,Z){_.lX(L,32,Z)}]),
ckm:new L_([3],[function(L,Z){_.lX(L,104,Z)}]),
cp:new L_([0],[function(L,Z){_.kT(L,92,Z)}]),
cr:new L_([3],[function(L,Z){_.lX(L,108,Z)}]),
cv:new L_([0],[function(L,Z){_.kT(L,94,Z)}]),
d:new L_([3],[function(L,Z){_.lX(L,3,Z)}]),
dc:new L_([5],[function(L,Z){_.dF(L,99,Z)}]),
df:new L_([3],[function(L,Z){_.lX(L,80,Z)}]),
dv:new L_([3],[function(L,Z){_.lX(L,90,Z)}]),
e:new L_([0],[function(L,Z){_.kT(L,15,Z)}]),
em:new L_([0],[function(L,Z){_.kT(L,107,Z)}]),
f:new L_([4],[function(L,Z){_.dF(L,16,Z)}]),
fg:new L_([3],[function(L,Z){_.lX(L,34,Z)}]),
fh:new L_([3],[function(L,Z){_.lX(L,30,Z)}]),
fm:new L_([3],[function(L,Z){_.lX(L,84,Z)}]),
fo:new L_([2],[function(L,Z){_.oZ(L,79,_.Bl(Z))}]),
ft:new L_([3],[function(L,Z){_.lX(L,50,Z)}]),
fv:new L_([3],[function(L,Z){_.lX(L,31,Z)}]),
g:new L_([3],[function(L,Z){_.lX(L,14,Z)}]),
gce:new L_([4],[function(L,Z){_.dF(L,112,Z)}]),
gd:new L_([3],[function(L,Z){_.lX(L,83,Z)}]),
gm:new L_([3],[function(L,Z){_.lX(L,105,Z)}]),
h:new L_([3,0],[function(L,Z){_.lX(L,4,Z)},
function(L,Z){_.kT(L,13,Z)}]),
i:new L_([3],[function(L,Z){_.lX(L,22,Z)}]),
ic:new L_([0],[function(L,Z){_.kT(L,71,Z)}]),
id:new L_([3],[function(L,Z){_.lX(L,70,Z)}]),
il:new L_([3],[function(L,Z){_.lX(L,96,Z)}]),
ip:new L_([3],[function(L,Z){_.lX(L,54,Z)}]),
iv:new L_([0],[function(L,Z){_.aW(L,75,Z)}]),
j:new L_([1],[function(L,Z){Z=Z==null?Z:kXw(Z);_.oZ(L,29,Z)}]),
k:new L_([3,0],[function(L,Z){_.lX(L,17,Z)},
function(L,Z){_.kT(L,42,Z)}]),
l:new L_([0],[function(L,Z){_.kT(L,44,Z)}]),
lf:new L_([3],[function(L,Z){_.lX(L,65,Z)}]),
lo:new L_([3],[function(L,Z){_.lX(L,97,Z)}]),
m:new L_([0],[function(L,Z){_.kT(L,63,Z)}]),
md:new L_([3],[function(L,Z){_.lX(L,91,Z)}]),
mm:new L_([4],[function(L,Z){_.dF(L,81,Z)}]),
mo:new L_([3],[function(L,Z){_.lX(L,73,Z)}]),
mp:new L_([0],[function(L,Z){_.kT(L,115,Z)}]),
mv:new L_([3],[function(L,Z){_.lX(L,66,Z)}]),
n:new L_([3],[function(L,Z){L.setCenterCrop(Z)}]),
nc:new L_([3],[function(L,Z){_.lX(L,55,Z)}]),
nd:new L_([3],[function(L,Z){_.lX(L,53,Z)}]),
ng:new L_([3],[function(L,Z){_.lX(L,95,Z)}]),
ngm:new L_([3],[function(L,Z){_.lX(L,106,Z)}]),
no:new L_([3],[function(L,Z){_.lX(L,37,Z)}]),
ns:new L_([3],[function(L,Z){_.lX(L,40,Z)}]),
nt0:new L_([4],[function(L,Z){_.dF(L,36,Z)}]),
ntm:new L_([3],[function(L,Z){_.lX(L,114,Z)}]),
nu:new L_([3],[function(L,Z){_.lX(L,46,Z)}]),
nw:new L_([3],[function(L,Z){_.lX(L,48,Z)}]),
o:new L_([1,3],[function(L,Z){Z=Z==null?Z:kXw(Z);_.oZ(L,7,Z)},
function(L,Z){_.lX(L,27,Z)}]),
p:new L_([3,0],[function(L,Z){_.lX(L,19,Z)},
function(L,Z){_.kT(L,43,Z)}]),
pa:new L_([3],[function(L,Z){_.lX(L,61,Z)}]),
pc:new L_([0],[function(L,Z){_.kT(L,88,Z)}]),
pd:new L_([3],[function(L,Z){_.lX(L,60,Z)}]),
pf:new L_([3],[function(L,Z){_.lX(L,67,Z)}]),
pg:new L_([3],[function(L,Z){_.lX(L,72,Z)}]),
pi:new L_([2],[function(L,Z){_.oZ(L,76,_.Bl(Z))}]),
pp:new L_([3],[function(L,Z){_.lX(L,52,Z)}]),
pt:new L_([4],[function(L,Z){_.dF(L,111,Z)}]),
q:new L_([4],[function(L,Z){_.dF(L,28,Z)}]),
r:new L_([3,0],[function(L,Z){_.lX(L,6,Z)},
function(L,Z){_.kT(L,26,Z)}]),
ra:new L_([3],[function(L,Z){_.lX(L,103,Z)}]),
rf:new L_([3],[function(L,Z){_.lX(L,100,Z)}]),
rg:new L_([3],[function(L,Z){_.lX(L,59,Z)}]),
rh:new L_([3],[function(L,Z){_.lX(L,49,Z)}]),
rj:new L_([3],[function(L,Z){_.lX(L,57,Z)}]),
ro:new L_([2],[function(L,Z){_.oZ(L,78,_.Bl(Z))}]),
rp:new L_([3],[function(L,Z){_.lX(L,58,Z)}]),
rw:new L_([3],[function(L,Z){_.lX(L,35,Z)}]),
rwa:new L_([3],[function(L,Z){_.lX(L,64,Z)}]),
rwu:new L_([3],[function(L,Z){_.lX(L,41,Z)}]),
s:new L_([3,0],[function(L,Z){_.lX(L,33,Z)},
function(L,Z){L.setSize(Z)}]),
sb:new L_([0],[function(L,Z){_.kT(L,110,Z)}]),
sc:new L_([0],[function(L,Z){_.kT(L,89,Z)}]),
sg:new L_([3],[function(L,Z){_.lX(L,82,Z)}]),
sl:new L_([0],[function(L,Z){_.kT(L,109,Z)}]),
sm:new L_([3],[function(L,Z){_.lX(L,93,Z)}]),
t:new L_([4],[function(L,Z){L.setToken(Z)}]),
tm:new L_([3],[function(L,Z){_.lX(L,113,Z)}]),
u:new L_([3],[function(L,Z){_.lX(L,18,Z)}]),
ut:new L_([3],[function(L,Z){_.lX(L,45,Z)}]),
v:new L_([0],[function(L,Z){_.kT(L,62,Z)}]),
vb:new L_([0],[function(L,Z){_.aW(L,68,Z)}]),
vf:new L_([4],[function(L,Z){_.dF(L,102,Z)}]),
vl:new L_([0],[function(L,Z){_.aW(L,69,Z)}]),
vm:new L_([3],[function(L,Z){_.lX(L,98,Z)}]),
w:new L_([0],[function(L,Z){_.kT(L,12,Z)}]),
x:new L_([0],[function(L,Z){_.kT(L,9,Z)}]),
y:new L_([0],[function(L,Z){_.kT(L,10,Z)}]),
ya:new L_([2],[function(L,Z){_.oZ(L,77,_.Bl(Z))}]),
z:new L_([0],[function(L,Z){_.kT(L,11,Z)}])};
l7y.prototype.parse=function(L){var Z=new MhQ,N=new MhQ;if(L=="")L=!0;else{L=L.split("-");for(var S=!0,u=0;u<L.length;u++){var T=L[u];if(T.length==0)S=!1;else{var W=T,V=!1;var M=W;var G=W.charAt(0);G!=G.toLowerCase()&&(V=!0,M=W.charAt(0).toLowerCase()+W.substring(1));var D=DU0;for(G=1;G<=M.length;++G){var l=D,v=M.substring(0,G);if(v.length==0?l.isEmpty():!GWg(l,v))break}M=G==1?null:(M=D.get(M.substring(0,G-1)))?{option:W.substring(0,G-1),value:W.substring(G-1),signed:V,attributes:M}:null;if(M){W=
[];V=[];G=!1;for(D=0;D<M.attributes.types.length;D++){l=M.attributes.types[D];var R=M.value;v=u;if(M.signed&&l==1)for(var K=R.length;K<12&&v<L.length-1;)R+="-"+L[v+1],K=R.length,++v;else if(l==2)for(;v<L.length-1&&L[v+1].match(/^[\d\.]/);)R+="-"+L[v+1],++v;K=M.attributes.setters[D];R=v30(this,l)(M.option,R,Z,N,K);if(R===null){G=!0;u=v;break}else W.push(l),V.push(R)}if(!G)for(M=0;M<V.length;M++)D=W[M],R=V[M],o3g(this,D)(T,R);S=S&&G}else S=!1}}L=S}return new RTm(Z,N,L)};
var cKv=function(L,Z,N,S,u,T){u(N,Z);L=L.charAt(0);T=T(L==L.toUpperCase());u(S,T)};
_.t=l7y.prototype;_.t.parseAndSetIntOption_=function(L,Z,N,S,u){if(Z=="")return 0;isFinite(Z)&&(Z=String(Z));Z=typeof Z==="string"?/^\s*-?0x/i.test(Z)?parseInt(Z,16):parseInt(Z,10):NaN;if(isNaN(Z))return 1;cKv(L,Z,N,S,u,Number);return null};
_.t.logIntParseError_=function(){};
_.t.parseAndSetFloatOption_=function(L,Z,N,S,u){if(Z=="")return 0;var T=Number(Z);Z=T==0&&_.V_(Z)?NaN:T;if(isNaN(Z))return 1;cKv(L,Z,N,S,u,Number);return null};
_.t.logFloatParseError_=function(){};
_.t.parseAndSetBoolOption_=function(L,Z,N,S,u){if(Z!="")return 2;cKv(L,!0,N,S,u,Boolean);return null};
_.t.logBoolParseError_=function(){};
_.t.parseAndSetStringOption_=function(L,Z,N,S,u){if(Z=="")return 0;cKv(L,Z,N,S,u,function(T){return T?"1":""});
return null};
_.t.logStringParseError_=function(){};
_.t.parseAndSetUint64Base64Option_=function(L,Z,N,S,u){if(Z=="")return 0;cKv(L,Z,N,S,u,function(T){return T?1:0});
return null};
var v30=function(L,Z){switch(Z){case 0:return(0,_.hr)(L.parseAndSetIntOption_,L);case 2:return(0,_.hr)(L.parseAndSetFloatOption_,L);case 3:return(0,_.hr)(L.parseAndSetBoolOption_,L);case 4:return(0,_.hr)(L.parseAndSetStringOption_,L);case 1:return(0,_.hr)(L.parseAndSetUint64Base64Option_,L);default:return function(){}}},o3g=function(L,Z){switch(Z){case 0:return(0,_.hr)(L.logIntParseError_,L);
case 2:return(0,_.hr)(L.logFloatParseError_,L);case 3:return(0,_.hr)(L.logBoolParseError_,L);case 4:case 1:return(0,_.hr)(L.logStringParseError_,L);default:return function(){}}},RTm=function(L,Z,N){this.valueProto_=L;
this.signatureFlagProto_=Z;this.JSC$19841_valid_=N};
RTm.prototype.isValid=function(){return this.JSC$19841_valid_};var Gqv=function(L){this.JSC$19842_parser_=null;this.JSC$19842_components_=[];this.JSC$19842_parsedOptions_=null;n35(this,L)},Kis=function(L){L.JSC$19842_parser_==null&&(L.JSC$19842_parser_=new l7y);
return L.JSC$19842_parser_},n35=function(L,Z){L.JSC$19842_parsedOptions_=Z?typeof Z==="string"?Kis(L).parse(Z):Z:Kis(L).parse("")},ZB=function(L,Z){return L==Z?!1:!0};
_.t=Gqv.prototype;_.t.JSC$19844_setCrop=function(L){L=L||void 0;var Z=this.JSC$19842_parsedOptions_,N=Z.valueProto_;ZB(L,_.$T(N,2),_.$T(Z.signatureFlagProto_,2))&&_.lX(N,2,L);return this};
_.t.JSC$19844_setCircleCrop=function(L){L=L||void 0;var Z=this.JSC$19842_parsedOptions_,N=Z.valueProto_;ZB(L,ok(N,51),ok(Z.signatureFlagProto_,51))&&_.lX(N,51,L);return this};
_.t.JSC$19844_setImageCrop=function(L){L=L||void 0;var Z=this.JSC$19842_parsedOptions_,N=Z.valueProto_;ZB(L,ok(N,32),ok(Z.signatureFlagProto_,32))&&_.lX(N,32,L);return this};
_.t.JSC$19844_setHeight=function(L){var Z=this.JSC$19842_parsedOptions_,N=Z.valueProto_;ZB(L,N.getHeight(),Z.signatureFlagProto_.getHeight())&&_.kT(N,13,L);return this};
_.t.setCenterCrop=function(L){L=L||void 0;var Z=this.JSC$19842_parsedOptions_,N=Z.valueProto_;ZB(L,_.$T(N,20),_.$T(Z.signatureFlagProto_,20))&&N.setCenterCrop(L);return this};
_.t.JSC$19844_setSmartCrop=function(L){L=L||void 0;var Z=this.JSC$19842_parsedOptions_,N=Z.valueProto_;ZB(L,_.$T(N,19),_.$T(Z.signatureFlagProto_,19))&&_.lX(N,19,L);return this};
_.t.JSC$19844_setPad=function(L){L=L||void 0;var Z=this.JSC$19842_parsedOptions_,N=Z.valueProto_;ZB(L,ok(N,60),ok(Z.signatureFlagProto_,60))&&_.lX(N,60,L);return this};
_.t.JSC$19844_setSmartCropUseFace=function(L){L=L||void 0;var Z=this.JSC$19842_parsedOptions_,N=Z.valueProto_;ZB(L,_.$T(N,67),_.$T(Z.signatureFlagProto_,67))&&_.lX(N,67,L);return this};
_.t.JSC$19844_setSmartCropNoClip=function(L){L=L||void 0;var Z=this.JSC$19842_parsedOptions_,N=Z.valueProto_;ZB(L,_.$T(N,52),_.$T(Z.signatureFlagProto_,52))&&_.lX(N,52,L);return this};
_.t.setSize=function(L){var Z=this.JSC$19842_parsedOptions_,N=Z.valueProto_;ZB(L,N.getSize(),Z.signatureFlagProto_.getSize())&&N.setSize(L);return this};
_.t.setToken=function(L){L=L||void 0;var Z=this.JSC$19842_parsedOptions_,N=Z.valueProto_;ZB(L,N.getToken(),Z.signatureFlagProto_.getToken())&&N.setToken(L);return this};
_.t.JSC$19844_setWidth=function(L){var Z=this.JSC$19842_parsedOptions_,N=Z.valueProto_;ZB(L,N.getWidth(),Z.signatureFlagProto_.getWidth())&&_.kT(N,12,L);return this};
_.t.clearOptions=function(){n35(this,"");return this};
_.t.build=function(){this.JSC$19842_components_.length=0;var L=this.JSC$19842_parsedOptions_,Z=L.valueProto_;L=L.signatureFlagProto_;ND(this,"s",Z.getSize(),L.getSize());ND(this,"w",Z.getWidth(),L.getWidth());S8(this,"c",_.$T(Z,2),_.$T(L,2));S8(this,"d",_.$T(Z,3),_.$T(L,3));ND(this,"h",Z.getHeight(),L.getHeight());S8(this,"s",ok(Z,33),ok(L,33));S8(this,"h",Z.getHtml(),L.getHtml());S8(this,"p",_.$T(Z,19),_.$T(L,19));S8(this,"pp",_.$T(Z,52),_.$T(L,52));S8(this,"pf",_.$T(Z,67),_.$T(L,67));S8(this,"n",
_.$T(Z,20),_.$T(L,20));ND(this,"r",Rk(Z,26),Rk(L,26));S8(this,"r",_.$T(Z,6),_.$T(L,6));S8(this,"o",ok(Z,27),ok(L,27));var N=_.FE(Z,7,_.T5);iW(this,"o",N,_.FE(L,7,_.T5));N=_.FE(Z,29,_.T5);iW(this,"j",N,_.FE(L,29,_.T5));ND(this,"x",Rk(Z,9),Rk(L,9));ND(this,"y",Rk(Z,10),Rk(L,10));ND(this,"z",Rk(Z,11),Rk(L,11));S8(this,"g",_.$T(Z,14),_.$T(L,14));ND(this,"e",Rk(Z,15),Rk(L,15));iW(this,"f",_.yL(Z,16),_.yL(L,16));S8(this,"k",ok(Z,17),ok(L,17));S8(this,"u",ok(Z,18),!0);S8(this,"ut",ok(Z,45),!0);S8(this,"i",
ok(Z,22),!0);S8(this,"a",ok(Z,21),ok(L,21));S8(this,"b",_.$T(Z,23),_.$T(L,23));ND(this,"b",Rk(Z,38),Rk(L,38));ND(this,"c",Rk(Z,39),Rk(L,39),16,8);iW(this,"q",_.yL(Z,28),_.yL(L,28));S8(this,"fh",ok(Z,30),ok(L,30));S8(this,"fv",ok(Z,31),ok(L,31));S8(this,"fg",_.$T(Z,34),_.$T(L,34));S8(this,"ci",ok(Z,32),ok(L,32));iW(this,"t",Z.getToken(),L.getToken());iW(this,"nt0",_.yL(Z,36),_.yL(L,36));S8(this,"rw",_.$T(Z,35),_.$T(L,35));S8(this,"rwu",_.$T(Z,41),_.$T(L,41));S8(this,"rwa",_.$T(Z,64),_.$T(L,64));S8(this,
"nw",_.$T(Z,48),_.$T(L,48));S8(this,"rh",_.$T(Z,49),_.$T(L,49));S8(this,"no",_.$T(Z,37),_.$T(L,37));S8(this,"ns",ok(Z,40),ok(L,40));ND(this,"k",Rk(Z,42),Rk(L,42));ND(this,"p",Rk(Z,43),Rk(L,43));ND(this,"l",Rk(Z,44),Rk(L,44));ND(this,"v",Rk(Z,62),Rk(L,62));S8(this,"nu",ok(Z,46),ok(L,46));S8(this,"ft",ok(Z,50),ok(L,50));S8(this,"cc",ok(Z,51),ok(L,51));S8(this,"nd",ok(Z,53),ok(L,53));S8(this,"ip",ok(Z,54),ok(L,54));S8(this,"nc",ok(Z,55),ok(L,55));ND(this,"a",Rk(Z,56),Rk(L,56));S8(this,"rj",ok(Z,57),
ok(L,57));S8(this,"rp",ok(Z,58),ok(L,58));S8(this,"rg",ok(Z,59),ok(L,59));S8(this,"pd",ok(Z,60),ok(L,60));S8(this,"pa",ok(Z,61),ok(L,61));ND(this,"m",Rk(Z,63),Rk(L,63));ND(this,"vb",cj(Z,68),cj(L,68));ND(this,"vl",cj(Z,69),cj(L,69));S8(this,"lf",ok(Z,65),ok(L,65));S8(this,"mv",ok(Z,66),ok(L,66));S8(this,"id",ok(Z,70),ok(L,70));ND(this,"ic",Rk(Z,71),!0);S8(this,"pg",_.$T(Z,72),_.$T(L,72));S8(this,"mo",ok(Z,73),ok(L,73));S8(this,"al",ok(Z,74),ok(L,74));ND(this,"iv",cj(Z,75),cj(L,75));ND(this,"pi",ng(Z,
76),ng(L,76));ND(this,"ya",ng(Z,77),ng(L,77));ND(this,"ro",ng(Z,78),ng(L,78));ND(this,"fo",ng(Z,79),ng(L,79));S8(this,"df",ok(Z,80),ok(L,80));iW(this,"mm",_.yL(Z,81),_.yL(L,81));S8(this,"sg",ok(Z,82),ok(L,82));S8(this,"gd",ok(Z,83),ok(L,83));S8(this,"fm",ok(Z,84),ok(L,84));ND(this,"ba",Rk(Z,85),Rk(L,85));ND(this,"br",Rk(Z,86),Rk(L,86));ND(this,"bc",Z.getBackgroundColor(),L.getBackgroundColor(),16,8);ND(this,"pc",Rk(Z,88),Rk(L,88),16,8);ND(this,"sc",Rk(Z,89),Rk(L,89),16,8);S8(this,"dv",ok(Z,90),ok(L,
90));S8(this,"md",ok(Z,91),ok(L,91));ND(this,"cp",Rk(Z,92),Rk(L,92));S8(this,"sm",ok(Z,93),ok(L,93));ND(this,"cv",Rk(Z,94),Rk(L,94));S8(this,"ng",ok(Z,95),ok(L,95));S8(this,"il",ok(Z,96),ok(L,96));S8(this,"lo",ok(Z,97),ok(L,97));S8(this,"vm",ok(Z,98),ok(L,98));iW(this,"dc",_.yL(Z,99),_.yL(L,99));S8(this,"rf",ok(Z,100),ok(L,100));iW(this,"vf",_.yL(Z,102),_.yL(L,102));S8(this,"ra",_.$T(Z,103),_.$T(L,103));S8(this,"ckm",ok(Z,104),ok(L,104));S8(this,"gm",ok(Z,105),ok(L,105));S8(this,"ngm",ok(Z,106),ok(L,
106));ND(this,"em",Rk(Z,107),Rk(L,107));S8(this,"cr",ok(Z,108),ok(L,108));ND(this,"sl",Z.getStoryboardLevel(),L.getStoryboardLevel());ND(this,"sb",Rk(Z,110),Rk(L,110));iW(this,"pt",_.yL(Z,111),_.yL(L,111));iW(this,"gce",_.yL(Z,112),_.yL(L,112));S8(this,"tm",ok(Z,113),ok(L,113));S8(this,"ntm",ok(Z,114),ok(L,114));ND(this,"mp",Rk(Z,115),Rk(L,115));return this.JSC$19842_components_.join("-")};
var ND=function(L,Z,N,S,u,T){if(N!=null){var W=u==void 0||u!=10&&u!=16?10:u;N=Number(N).toString(W);u=new JJP;u.append(W==16?"0x":"");W=u.append;T==void 0?T="":(T-=N.length,T=T<=0?"":(0,_.Zs5)("0",T));W.call(u,T);u.append(N);fjm(L,Z,u.toString(),!!Number(S))}},S8=function(L,Z,N,S){N&&fjm(L,Z,"",!!S)},iW=function(L,Z,N,S){N&&fjm(L,Z,String(N),!!Number(S))},fjm=function(L,Z,N,S){S&&(Z=Z.charAt(0).toUpperCase()+Z.substring(1));
L.JSC$19842_components_.push(Z+N)};_.Qk(oo,Gqv);_.t=oo.prototype;_.t.JSC$19844_setCrop=function(L){L&&uW(this);return oo.superClass_.JSC$19844_setCrop.call(this,L)};
_.t.JSC$19844_setHeight=function(L){L=L==null||L<0?void 0:L;L!=null&&this.setSize();return oo.superClass_.JSC$19844_setHeight.call(this,L)};
_.t.JSC$19844_setImageCrop=function(L){L&&uW(this);return oo.superClass_.JSC$19844_setImageCrop.call(this,L)};
_.t.JSC$19844_setCircleCrop=function(L){L&&uW(this);return oo.superClass_.JSC$19844_setCircleCrop.call(this,L)};
_.t.setSize=function(L){_.Q_(L)&&(L=Math.max(L.width,L.height));L=L==null||L<0?void 0:L;L!=null&&(this.JSC$19844_setWidth(),this.JSC$19844_setHeight());return oo.superClass_.setSize.call(this,L)};
_.t.JSC$19844_setSmartCrop=function(L){L&&uW(this);return oo.superClass_.JSC$19844_setSmartCrop.call(this,L)};
_.t.JSC$19844_setSmartCropNoClip=function(L){L&&uW(this);return oo.superClass_.JSC$19844_setSmartCropNoClip.call(this,L)};
_.t.JSC$19844_setSmartCropUseFace=function(L){L&&uW(this);return oo.superClass_.JSC$19844_setSmartCropUseFace.call(this,L)};
_.t.setCenterCrop=function(L){L&&uW(this);return oo.superClass_.setCenterCrop.call(this,L)};
_.t.JSC$19844_setPad=function(L){L&&uW(this);return oo.superClass_.JSC$19844_setPad.call(this,L)};
_.t.JSC$19844_setWidth=function(L){L=L==null||L<0?void 0:L;L!=null&&this.setSize();return oo.superClass_.JSC$19844_setWidth.call(this,L)};
var kWP=function(L){L.clearOptions();var Z=L.JSC$19842_parsedOptions_,N=Z.valueProto_;ZB(!0,_.$T(N,3),_.$T(Z.signatureFlagProto_,3))&&_.lX(N,3,!0);return L},uW=function(L){L.setCenterCrop();
L.JSC$19844_setCircleCrop();L.JSC$19844_setCrop();L.JSC$19844_setImageCrop();L.JSC$19844_setPad();L.JSC$19844_setSmartCrop();L.JSC$19844_setSmartCropNoClip();L.JSC$19844_setSmartCropUseFace()};
oo.prototype.build=function(){var L=this.JSC$19842_parsedOptions_.valueProto_;ok(L,18)||ok(L,45)?L.getSize()||this.setSize(0):(L=this.JSC$19842_parsedOptions_.valueProto_,L.getSize()||L.getWidth()||L.getHeight()||(this.setSize(),this.JSC$19844_setHeight(),this.JSC$19844_setWidth(),uW(this)));return oo.superClass_.build.call(this)};var yKQ=/^[^\/]*\/\//,w$g=function(L,Z){Z=Z===void 0?!1:Z;this.original_=L;this.originalPrefix_="";(L=this.original_.match(yKQ))&&L[0]?(this.originalPrefix_=L[0],L=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):L="http://"+this.original_;this.uri_=_.qG(L,!0);this.isFreeformUrl_=Z;this.JSC$19848_valid_=!0;this.obfuscated_=!1},UUg=function(L,Z){L.JSC$19850_pathPrefix_=L.JSC$19850_pathPrefix_?L.JSC$19850_pathPrefix_+("/"+Z):Z},Tj=function(L){if(L.JSC$19850_components_==
void 0){var Z=L.uri_.getPath().substring(1);
L.JSC$19850_pathPrefix_=null;if(L.isFreeformUrl_){L.JSC$19850_components_=[];if((Z.match(/=/g)||[]).length>1)return L.JSC$19848_valid_=!1,L.JSC$19850_components_;var N=Z.indexOf("=");N!=-1?(L.JSC$19850_components_.push(Z.substr(0,N)),L.JSC$19850_components_.push(Z.substr(N+1))):L.JSC$19850_components_.push(Z);return L.JSC$19850_components_}L.JSC$19850_components_=Z.split("/");Z=L.JSC$19850_components_.length;Z>2&&L.JSC$19850_components_[0]=="u"&&(UUg(L,L.JSC$19850_components_[0]+"/"+L.JSC$19850_components_[1]),
L.JSC$19850_components_.shift(),L.JSC$19850_components_.shift(),Z-=2);if(Z==0||Z==4||Z>7)return L.JSC$19848_valid_=!1,L.JSC$19850_components_;if(Z==2)UUg(L,L.JSC$19850_components_[0]);else if(L.JSC$19850_components_[0]=="image")UUg(L,L.JSC$19850_components_[0]);else if(Z==7||Z==3)return L.JSC$19848_valid_=!1,L.JSC$19850_components_;if(Z<=3){L.obfuscated_=!0;Z==3&&(UUg(L,L.JSC$19850_components_[1]),L.JSC$19850_components_.shift(),--Z);--Z;N=L.JSC$19850_components_[Z];var S=N.indexOf("=");S!=-1&&(L.JSC$19850_components_[Z]=
N.substr(0,S),L.JSC$19850_components_.push(N.substr(S+1)))}}return L.JSC$19850_components_};
w$g.prototype.isValid=function(){Tj(this);return this.JSC$19848_valid_};
w$g.prototype.isObfuscated=function(){Tj(this);return this.obfuscated_};
var Y$Q=function(L){Tj(L);return L.isFreeformUrl_},tg=function(L){Tj(L);
L.JSC$19850_pathPrefix_==void 0&&(L.JSC$19850_pathPrefix_=null);return L.JSC$19850_pathPrefix_},eTm=function(L){switch(Tj(L).length){case 7:return!0;
case 6:return tg(L)==null;case 5:return!1;case 3:return!0;case 2:return tg(L)==null;case 1:return!1;default:return!1}},OQ=function(L,Z){if(Y$Q(L))a:{switch(Z){case 7:Z=0;
break;case 4:if(!eTm(L)){L=null;break a}Z=1;break;default:L=null;break a}L=Tj(L)[Z]}else if(L.isObfuscated())a:{var N=tg(L)!=null?1:0;switch(Z){case 6:Z=N;break;case 4:if(!eTm(L)){L=null;break a}Z=1+N;break;default:L=null;break a}L=Tj(L)[Z]}else a:{N=tg(L)!=null?1:0;switch(Z){case 0:Z=N;break;case 1:Z=1+N;break;case 2:Z=2+N;break;case 3:Z=3+N;break;case 4:if(!eTm(L)){L=null;break a}Z=4+N;break;case 5:Z=eTm(L)?1:0;Z=4+N+Z;break;default:L=null;break a}L=Tj(L)[Z]}return L};
w$g.prototype.getOptions=function(){this.options_==void 0&&(this.options_=OQ(this,4));return this.options_};var Drw=function(){};
Drw.prototype.parse=function(L,Z){return new FKQ(L,Z===void 0?!1:Z)};
var FKQ=function(L,Z){w$g.call(this,L,Z===void 0?!1:Z)};
_.f(FKQ,w$g);_.Qk(Ro,oo);var $rv;Ro.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Ro.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var L=Ro.superClass_.build.call(this),Z=[];tg(this.parsedImageUrl_)!=null&&Z.push(tg(this.parsedImageUrl_));var N=Y$Q(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var S=this.parsedImageUrl_;S.obfuscatedData_==void 0&&(S.obfuscatedData_=OQ(S,6));Z.push(S.obfuscatedData_+(L?"="+L:""))}else if(N){S=Z.push;var u=this.parsedImageUrl_;u.freeformUrlPath_===void 0&&(u.freeformUrlPath_=OQ(u,
7));S.call(Z,u.freeformUrlPath_);L&&Z.push(L)}else S=Z.push,u=this.parsedImageUrl_,u.obfuscatedGaiaId_==void 0&&(u.obfuscatedGaiaId_=OQ(u,0)),S.call(Z,u.obfuscatedGaiaId_),S=Z.push,u=this.parsedImageUrl_,u.photoId_==void 0&&(u.photoId_=OQ(u,1)),S.call(Z,u.photoId_),S=Z.push,u=this.parsedImageUrl_,u.imageVersion_==void 0&&(u.imageVersion_=OQ(u,2)),S.call(Z,u.imageVersion_),S=Z.push,u=this.parsedImageUrl_,u.signature_==void 0&&(u.signature_=OQ(u,3)),S.call(Z,u.signature_),L&&Z.push(L),L=Z.push,S=this.parsedImageUrl_,
S.filename_==void 0&&(S.filename_=OQ(S,5)),L.call(Z,S.filename_);Z=N?Z.join("="):Z.join("/");Z=_.qG(this.protocolPrefix_+this.JSC$19856_domain_+"/"+Z+(this.JSC$19856_query_?"?"+this.JSC$19856_query_:"")).toString();Z.startsWith("%3a//")&&(Z=Z.replace("%3a//","://"));return Z};var Ij0=_.sc(["viewBox"]),dUy=_.sc(["width"]),ajv=_.sc(["height"]),hTk=_.sc(["fill"]),sBq=_.sc(["id"]),jB0=_.sc(["x"]),E38=_.sc(["y"]);v95.prototype.getLength=function(){return this.parsedData.length};
v95.prototype.write=function(L){for(var Z=0,N=this.parsedData.length;Z<N;Z++)L.put(this.parsedData[Z],8)};
var kqv=function(L,Z){var N=new v95(Z);L.dataList.push(N);N=L.errorCorrectLevel;var S=1,u=encodeURI(Z).toString().replace(/%[0-9a-fA-F]{2}/g,"a");Z=u.length+(u.length!=Z?3:0);u=0;for(var T=Wk.length;u<=T;u++){var W=0;switch(N){case 1:W=Wk[u][0];break;case 0:W=Wk[u][1];break;case 3:W=Wk[u][2];break;case 2:W=Wk[u][3]}if(Z<=W)break;else S++}if(S>Wk.length)throw Error("Qk");L.typeNumber=S;L.dataCache=null};
o9s.prototype.isDark=function(L,Z){if(L<0||this.moduleCount<=L||Z<0||this.moduleCount<=Z)throw Error("Ik`"+L+"`"+Z);return this.modules[L][Z]};
for(var yu0=function(L,Z,N){L.moduleCount=L.typeNumber*4+17;L.modules=Array(L.moduleCount);for(var S=0;S<L.moduleCount;S++){L.modules[S]=Array(L.moduleCount);for(var u=0;u<L.moduleCount;u++)L.modules[S][u]=null}PDc(L,0,0);PDc(L,L.moduleCount-7,0);PDc(L,0,L.moduleCount-7);S=p$Y[L.typeNumber-1];for(u=0;u<S.length;u++)for(var T=0;T<S.length;T++){var W=S[u],V=S[T];if(L.modules[W][V]==null)for(var M=-2;M<=2;M++)for(var G=-2;G<=2;G++)L.modules[W+M][V+G]=M==-2||M==2||G==-2||G==2||M==0&&G==0?!0:!1}for(S=
8;S<L.moduleCount-8;S++)L.modules[S][6]==null&&(L.modules[S][6]=S%2==0);for(S=8;S<L.moduleCount-8;S++)L.modules[6][S]==null&&(L.modules[6][S]=S%2==0);S=L.errorCorrectLevel<<3|N;for(u=S<<10;Vo(u)-Vo(1335)>=0;)u^=1335<<Vo(u)-Vo(1335);S=(S<<10|u)^21522;for(u=0;u<15;u++)T=!Z&&(S>>u&1)==1,u<6?L.modules[u][8]=T:u<8?L.modules[u+1][8]=T:L.modules[L.moduleCount-15+u][8]=T;for(u=0;u<15;u++)T=!Z&&(S>>u&1)==1,u<8?L.modules[8][L.moduleCount-u-1]=T:u<9?L.modules[8][15-u-1+1]=T:L.modules[8][15-u-1]=T;L.modules[L.moduleCount-
8][8]=!Z;if(L.typeNumber>=7){S=L.typeNumber;for(u=S<<12;Vo(u)-Vo(7973)>=0;)u^=7973<<Vo(u)-Vo(7973);S=S<<12|u;for(u=0;u<18;u++)T=!Z&&(S>>u&1)==1,L.modules[Math.floor(u/3)][u%3+L.moduleCount-8-3]=T;for(u=0;u<18;u++)T=!Z&&(S>>u&1)==1,L.modules[u%3+L.moduleCount-8-3][Math.floor(u/3)]=T}if(L.dataCache==null){u=L.typeNumber;T=L.dataList;Z=L.errorCorrectLevel;S=zTs(u,Z);if(S==void 0)throw Error("Pk`"+u+"`"+Z);W=S.length/3;Z=[];for(V=0;V<W;V++){M=S[V*3];G=S[V*3+1];for(var D=S[V*3+2],l=0;l<M;l++)Z.push(new Rsq(G,
D))}S=new cuq;for(W=0;W<T.length;W++)V=T[W],S.put(V.mode,4),S.put(V.getLength(),mUv(V.mode,u)),V.write(S);for(W=u=0;W<Z.length;W++)u+=Z[W].dataCount;if(S.length>u*8)throw Error("Jk`"+S.length+"`"+u*8);for(S.length+4<=u*8&&S.put(0,4);S.length%8!=0;)JKs(S,!1);for(;!(S.length>=u*8);){S.put(236,8);if(S.length>=u*8)break;S.put(17,8)}T=u=G=0;W=Array(Z.length);V=Array(Z.length);for(M=0;M<Z.length;M++){l=Z[M].dataCount;var v=Z[M].totalCount-l;u=Math.max(u,l);T=Math.max(T,v);W[M]=Array(l);for(D=0;D<W[M].length;D++)W[M][D]=
255&S.buffer[D+G];G+=l;D=v;l=new cP([1],0);for(v=0;v<D;v++)l=l.multiply(new cP([1,CDy(v)],0));D=l;l=(new cP(W[M],D.getLength()-1)).mod(D);V[M]=Array(D.getLength()-1);for(D=0;D<V[M].length;D++)v=D+l.getLength()-V[M].length,V[M][D]=v>=0?l.get(v):0}for(D=S=0;D<Z.length;D++)S+=Z[D].totalCount;S=Array(S);for(D=G=0;D<u;D++)for(M=0;M<Z.length;M++)D<W[M].length&&(S[G++]=W[M][D]);for(D=0;D<T;D++)for(M=0;M<Z.length;M++)D<V[M].length&&(S[G++]=V[M][D]);L.dataCache=S}Z=L.dataCache;S=-1;u=L.moduleCount-1;T=7;W=
0;for(V=L.moduleCount-1;V>0;V-=2)for(V==6&&V--;;){for(M=0;M<2;M++)L.modules[u][V-M]==null&&(G=!1,W<Z.length&&(G=(Z[W]>>>T&1)==1),rKy(N,u,V-M)&&(G=!G),L.modules[u][V-M]=G,T--,T==-1&&(W++,T=7));u+=S;if(u<0||L.moduleCount<=u){u-=S;S=-S;break}}},PDc=function(L,Z,N){for(var S=-1;S<=7;S++)if(!(Z+S<=-1||L.moduleCount<=Z+S))for(var u=-1;u<=7;u++)N+u<=-1||L.moduleCount<=N+u||(L.modules[Z+S][N+u]=0<=S&&S<=6&&(u==0||u==6)||0<=u&&u<=6&&(S==0||S==6)||2<=S&&S<=4&&2<=u&&u<=4?!0:!1)},wTq=function(L){for(var Z=0,
N=0,S=0;S<8;S++){yu0(L,!0,S);
var u=L;for(var T=u.moduleCount,W=0,V=0;V<T;V++)for(var M=0;M<T;M++){for(var G=0,D=u.isDark(V,M),l=-1;l<=1;l++)if(!(V+l<0||T<=V+l))for(var v=-1;v<=1;v++)M+v<0||T<=M+v||(l!=0||v!=0)&&D==u.isDark(V+l,M+v)&&G++;G>5&&(W+=3+G-5)}for(V=0;V<T-1;V++)for(M=0;M<T-1;M++)if(G=0,u.isDark(V,M)&&G++,u.isDark(V+1,M)&&G++,u.isDark(V,M+1)&&G++,u.isDark(V+1,M+1)&&G++,G==0||G==4)W+=3;for(V=0;V<T;V++)for(M=0;M<T-6;M++)u.isDark(V,M)&&!u.isDark(V,M+1)&&u.isDark(V,M+2)&&u.isDark(V,M+3)&&u.isDark(V,M+4)&&!u.isDark(V,M+5)&&
u.isDark(V,M+6)&&(W+=40);for(M=0;M<T;M++)for(V=0;V<T-6;V++)u.isDark(V,M)&&!u.isDark(V+1,M)&&u.isDark(V+2,M)&&u.isDark(V+3,M)&&u.isDark(V+4,M)&&!u.isDark(V+5,M)&&u.isDark(V+6,M)&&(W+=40);for(M=G=0;M<T;M++)for(V=0;V<T;V++)u.isDark(V,M)&&G++;u=W+=Math.abs(100*G/T/T-50)/5*10;if(S==0||Z>u)Z=u,N=S}return N},p$Y=[[],
[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]],Vo=function(L){for(var Z=0;L!=0;)Z++,L>>>=1;return Z},rKy=function(L,Z,N){switch(L){case 0:return(Z+N)%2==0;
case 1:return Z%2==0;case 2:return N%3==0;case 3:return(Z+N)%3==0;case 4:return(Math.floor(Z/2)+Math.floor(N/3))%2==0;case 5:return Z*N%2+Z*N%3==0;case 6:return(Z*N%2+Z*N%3)%2==0;case 7:return(Z*N%3+(Z+N)%2)%2==0;default:throw Error("Kk`"+L);}},mUv=function(L,Z){if(1<=Z&&Z<10)switch(L){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Lk`"+L);}else if(Z<27)switch(L){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Lk`"+L);}else if(Z<41)switch(L){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Lk`"+L);}else throw Error("Mk`"+Z);},X$5=function(L){if(L<1)throw Error("Nk`"+L);
return QBy[L]},CDy=function(L){for(;L<0;)L+=255;
for(;L>=256;)L-=255;return bW[L]},bW=Array(256),QBy=Array(256),AKy=0;AKy<8;AKy++)bW[AKy]=1<<AKy;
for(var MD=8;MD<256;MD++)bW[MD]=bW[MD-4]^bW[MD-5]^bW[MD-6]^bW[MD-8];for(var HFw=0;HFw<255;HFw++)QBy[bW[HFw]]=HFw;cP.prototype.get=function(L){return this.num[L]};
cP.prototype.getLength=function(){return this.num.length};
cP.prototype.multiply=function(L){for(var Z=Array(this.getLength()+L.getLength()-1),N=0;N<this.getLength();N++)for(var S=0;S<L.getLength();S++)Z[N+S]^=CDy(X$5(this.get(N))+X$5(L.get(S)));return new cP(Z,0)};
cP.prototype.mod=function(L){if(this.getLength()-L.getLength()<0)return this;for(var Z=X$5(this.get(0))-X$5(L.get(0)),N=Array(this.getLength()),S=0;S<this.getLength();S++)N[S]=this.get(S);for(S=0;S<L.getLength();S++)N[S]^=CDy(X$5(L.get(S))+Z);return(new cP(N,0)).mod(L)};
var BMw=[[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]],zTs=function(L,Z){switch(Z){case 1:return BMw[(L-1)*4];case 0:return BMw[(L-1)*4+1];case 3:return BMw[(L-1)*4+2];case 2:return BMw[(L-1)*4+3]}};
cuq.prototype.get=function(L){return(this.buffer[Math.floor(L/8)]>>>7-L%8&1)==1};
cuq.prototype.put=function(L,Z){for(var N=0;N<Z;N++)JKs(this,(L>>>Z-N-1&1)==1)};
var JKs=function(L,Z){var N=Math.floor(L.length/8);L.buffer.length<=N&&L.buffer.push(0);Z&&(L.buffer[N]|=128>>>L.length%8);L.length++},Wk=[[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]],f7q=function(){var L=function(Z,N){this.JSC$19876__el=Z;this.JSC$19876__htOption=N};
L.prototype.draw=function(Z){function N(D,l){D=document.createElementNS("http://www.w3.org/2000/svg",D);for(var v in l)l.hasOwnProperty(v)&&(v==="href"?_.OX5(D,l[v]):_.O3([_.Fr(Ij0),_.Fr(dUy),_.Fr(ajv),_.Fr(hTk),_.Fr(sBq),_.Fr(jB0),_.Fr(E38)],D,v,l[v]));return D}
var S=this.JSC$19876__htOption,u=this.JSC$19876__el,T=Z.moduleCount;this.clear();var W=N("svg",{viewBox:"0 0 "+String(T)+" "+String(T),width:"100%",height:"100%",fill:S.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});u.appendChild(W);W.appendChild(N("rect",{fill:S.colorLight,width:"100%",height:"100%"}));W.appendChild(N("rect",{fill:S.colorDark,width:"1",height:"1",id:"template"}));for(var V=0;V<T;V++)for(var M=0;M<T;M++)if(Z.isDark(V,M)){var G=N("use",{x:String(V),y:String(M),href:"#template"});
W.appendChild(G)}};
L.prototype.clear=function(){for(;this.JSC$19876__el.hasChildNodes();)this.JSC$19876__el.removeChild(this.JSC$19876__el.lastChild)};
return L}(),KK8=document.documentElement.tagName.toLowerCase()==="svg"?f7q:typeof CanvasRenderingContext2D!="undefined"?function(){var L=function(Z,N){this._bIsPainted=!1;
n9v();this.JSC$19876__htOption=N;this._elCanvas=document.createElement("canvas");this._elCanvas.width=N.width;this._elCanvas.height=N.height;Z.appendChild(this._elCanvas);this.JSC$19876__el=Z;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$19876__el.appendChild(this._elImage);this._bSupportDataURI=null};
L.prototype._onMakeImage=function(){var Z=this._elCanvas.toDataURL("image/png");this._elImage.src=Z;this._elImage.style.display="block";this._elCanvas.style.display="none"};
L.prototype._safeSetDataURI=function(Z,N){var S=this;S._fFail=N;S._fSuccess=Z;S._bSupportDataURI===null?(Z=_.wZ("IMG"),N=function(){S._bSupportDataURI=!1;S._fFail&&S._fFail.call(S)},Z.onabort=N,Z.onerror=N,Z.onload=function(){S._bSupportDataURI=!0;
S._fSuccess&&S._fSuccess.call(S)},Z.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):S._bSupportDataURI===!0&&S._fSuccess?S._fSuccess.call(S):S._bSupportDataURI===!1&&S._fFail&&S._fFail.call(S)};
L.prototype.draw=function(Z){var N=this._oContext,S=this.JSC$19876__htOption,u=Z.moduleCount,T=S.width/u,W=S.height/u,V=Math.round(T),M=Math.round(W);this._elImage.style.display="none";this.clear();for(var G=0;G<u;G++)for(var D=0;D<u;D++){var l=Z.isDark(G,D),v=D*T,R=G*W;N.strokeStyle=l?S.colorDark:S.colorLight;N.lineWidth=1;N.fillStyle=l?S.colorDark:S.colorLight;N.fillRect(v,R,T,W);N.strokeRect(Math.floor(v)+.5,Math.floor(R)+.5,V,M);N.strokeRect(Math.ceil(v)-.5,Math.ceil(R)-.5,V,M)}this._bIsPainted=
!0};
L.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
L.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
L.prototype.round=function(Z){return Z?Math.floor(Z*1E3)/1E3:Z};
return L}():function(){var L=function(Z,N){this.JSC$19876__el=Z;
this.JSC$19876__htOption=N};
L.prototype.draw=function(Z){for(var N=this.JSC$19876__htOption,S=this.JSC$19876__el,u=Z.moduleCount,T=Math.floor(N.width/u),W=Math.floor(N.height/u),V=['<table style="border:0;border-collapse:collapse;">'],M=0;M<u;M++){V.push("<tr>");for(var G=0;G<u;G++)V.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+T+"px;height:"+W+"px;background-color:"+(Z.isDark(M,G)?N.colorDark:N.colorLight)+';"></td>');V.push("</tr>")}V.push("</table>");Z=V.join("");Z=_.Cg0(_.QSt,Z);_.tU(S,Z);
Z=S.childNodes[0];u=(N.width-Z.offsetWidth)/2;T=(N.height-Z.offsetHeight)/2;u>0&&T>0&&(Z.style.margin=T+"px "+u+"px")};
L.prototype.clear=function(){this.JSC$19876__el.textContent=""};
return L}();
Urv.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19879__android||this.JSC$19879__android>=3)&&this._oDrawing.makeImage()};
Urv.prototype.clear=function(){this._oDrawing.clear()};
_.iH.QRCode=Urv;var xUs={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var q$5=function(){};
q$5.prototype.stringify=function(L){return _.iH.JSON.stringify(L,void 0)};
q$5.prototype.parse=function(L){return _.iH.JSON.parse(L,void 0)};var Lc8=function(){_.vn.call(this,"z")};
_.Qk(Lc8,_.vn);var Zfv=function(){_.vn.call(this,"y")};
_.Qk(Zfv,_.vn);var NHQ=null,SO5=function(){return NHQ=NHQ||new _.Kc},ifQ=function(L){_.vn.call(this,"serverreachability",L)};
_.Qk(ifQ,_.vn);var uIm=function(L){var Z=SO5();Z.dispatchEvent(new ifQ(Z,L))},THP=function(L,Z){_.vn.call(this,"statevent",L);
this.stat=Z};
_.Qk(THP,_.vn);var gN=function(L){var Z=SO5();Z.dispatchEvent(new THP(Z,L))},t3Q=function(L,Z,N,S){_.vn.call(this,"timingevent",L);
this.size=Z;this.rtt=N;this.retries=S};
_.Qk(t3Q,_.vn);var Of8=function(L,Z,N){var S=SO5();S.dispatchEvent(new t3Q(S,L,Z,N))},Wcy=function(L,Z){if(typeof L!=="function")throw Error("Rk");
return _.iH.setTimeout(function(){L()},Z)};var Gj=function(){this.redactEnabled_=!0};
Gj.prototype.disableRedact=function(){this.redactEnabled_=!1};
var V3s=function(L,Z,N,S,u,T){L.info(function(){if(L.redactEnabled_)if(T){var W="";for(var V=T.split("&"),M=0;M<V.length;M++){var G=V[M].split("=");if(G.length>1){var D=G[0];G=G[1];var l=D.split("_");W=l.length>=2&&l[1]=="type"?W+(D+"="+G+"&"):W+(D+"=redacted&")}}}else W=null;else W=T;return"XMLHTTP REQ ("+S+") [attempt "+u+"]: "+Z+"\n"+N+"\n"+W})},bfq=function(L,Z,N,S,u,T,W){L.info(function(){return"XMLHTTP RESP ("+S+") [ attempt "+u+"]: "+Z+"\n"+N+"\n"+T+" "+W})},F0=function(L,Z,N,S){L.info(function(){return"XMLHTTP TEXT ("+
Z+"): "+M3q(L,N)+(S?" "+S:"")})},gvv=function(L,Z){L.info(function(){return"TIMEOUT: "+Z})};
Gj.prototype.debug=function(){};
Gj.prototype.info=function(){};
Gj.prototype.warning=function(){};
var M3q=function(L,Z){if(!L.redactEnabled_)return Z;if(!Z)return null;try{var N=JSON.parse(Z);if(N)for(var S=0;S<N.length;S++)if(Array.isArray(N[S])){var u=N[S];if(!(u.length<2)){var T=u[1];if(Array.isArray(T)&&!(T.length<1)){var W=T[0];if(W!="noop"&&W!="stop"&&W!="close")for(var V=1;V<T.length;V++)T[V]=""}}}return(0,_.eJ)(N)}catch(M){return L.debug("Exception parsing expected JS array - probably was not JS"),Z}};var $l=function(L,Z,N,S,u){this.JSC$19901_channel_=L;this.JSC$19901_channelDebug_=Z;this.sid_=N;this.JSC$19901_rid_=S;this.JSC$19901_retryId_=u||1;this.JSC$19901_eventHandler_=new _.oM(this);this.timeout_=45E3;this.JSC$19901_extraHeaders_=null;this.JSC$19901_successful_=!1;this.JSC$19901_postData_=this.JSC$19901_requestUri_=this.JSC$19901_baseUri_=this.JSC$19901_type_=this.JSC$19901_requestStartTime_=this.JSC$19901_watchDogTimeoutTime_=this.JSC$19901_watchDogTimerId_=null;this.JSC$19901_pendingMessages_=
[];this.JSC$19901_xmlHttp_=null;this.JSC$19901_xmlHttpChunkStart_=0;this.JSC$19901_lastError_=this.JSC$19901_verb_=null;this.JSC$19901_lastStatusCode_=-1;this.JSC$19901_cancelled_=!1;this.JSC$19901_readyStateChangeThrottleMs_=0;this.JSC$19901_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new G2P},G2P=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},Fcg=function(L,Z){switch(L){case 0:return"Non-200 return code ("+Z+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},$vP={},Dv0={};
$l.prototype.setTimeout=function(L){this.timeout_=L};
var vv0=function(L,Z,N){L.JSC$19901_type_=1;L.JSC$19901_baseUri_=_.M6(Z.clone());L.JSC$19901_postData_=N;L.decodeChunks_=!0;lak(L,null)},lak=function(L,Z){L.JSC$19901_requestStartTime_=Date.now();
ov8(L);L.JSC$19901_requestUri_=L.JSC$19901_baseUri_.clone();Gr(L.JSC$19901_requestUri_,"t",L.JSC$19901_retryId_);L.JSC$19901_xmlHttpChunkStart_=0;var N=L.JSC$19901_channel_.JSC$19920_supportsCrossDomainXhrs_;L.fetchResponseState_=new G2P;L.JSC$19901_xmlHttp_=RVk(L.JSC$19901_channel_,N?Z:null,!L.JSC$19901_postData_);L.JSC$19901_readyStateChangeThrottleMs_>0&&(L.JSC$19901_readyStateChangeThrottle_=new _.Sw((0,_.hr)(L.JSC$19905_xmlHttpHandler_,L,L.JSC$19901_xmlHttp_),L.JSC$19901_readyStateChangeThrottleMs_));
L.JSC$19901_eventHandler_.listen(L.JSC$19901_xmlHttp_,"readystatechange",L.JSC$19905_readyStateChangeHandler_);Z=L.JSC$19901_extraHeaders_?_.Py.clone(L.JSC$19901_extraHeaders_):{};L.JSC$19901_postData_?(L.JSC$19901_verb_||(L.JSC$19901_verb_="POST"),Z["Content-Type"]="application/x-www-form-urlencoded",L.JSC$19901_xmlHttp_.send(L.JSC$19901_requestUri_,L.JSC$19901_verb_,L.JSC$19901_postData_,Z)):(L.JSC$19901_verb_="GET",L.JSC$19901_xmlHttp_.send(L.JSC$19901_requestUri_,L.JSC$19901_verb_,null,Z));uIm(1);
V3s(L.JSC$19901_channelDebug_,L.JSC$19901_verb_,L.JSC$19901_requestUri_,L.JSC$19901_rid_,L.JSC$19901_retryId_,L.JSC$19901_postData_)};
$l.prototype.JSC$19905_readyStateChangeHandler_=function(L){L=L.target;var Z=this.JSC$19901_readyStateChangeThrottle_;Z&&_.dg(L)==3?(this.JSC$19901_channelDebug_.debug("Throttling readystatechange."),Z.fire()):this.JSC$19905_xmlHttpHandler_(L)};
$l.prototype.JSC$19905_xmlHttpHandler_=function(L){try{L==this.JSC$19901_xmlHttp_?ceg(this):this.JSC$19901_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(Z){this.JSC$19901_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),nv5(this)}finally{}};
var ceg=function(L){var Z=_.dg(L.JSC$19901_xmlHttp_),N=L.JSC$19901_xmlHttp_.JSC$9795_lastErrorCode_,S=L.JSC$19901_xmlHttp_.getStatus();if(!(Z<3||Z==3&&!nv5(L))){L.JSC$19901_cancelled_||Z!=4||N==7||(N==8||S<=0?uIm(3):uIm(2));Kcm(L);var u=L.JSC$19901_xmlHttp_.getStatus();L.JSC$19901_lastStatusCode_=u;N=fa0(L);nv5(L)||L.JSC$19901_channelDebug_.debug(function(){return"No response text for uri "+L.JSC$19901_requestUri_+" status "+u});
L.JSC$19901_successful_=u==200;bfq(L.JSC$19901_channelDebug_,L.JSC$19901_verb_,L.JSC$19901_requestUri_,L.JSC$19901_rid_,L.JSC$19901_retryId_,Z,u);if(L.JSC$19901_successful_){if(L.decodeInitialResponse_&&!L.initialResponseDecoded_)if(S=k2v(L))F0(L.JSC$19901_channelDebug_,L.JSC$19901_rid_,S,"Initial handshake response via X-HTTP-Initial-Response"),L.initialResponseDecoded_=!0,ye0(L,S);else{L.JSC$19901_successful_=!1;L.JSC$19901_lastError_=3;gN(12);L.JSC$19901_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
L.JSC$19901_rid_+")");DB(L);w3c(L);return}L.decodeChunks_?Uv5(L,Z,N):(F0(L.JSC$19901_channelDebug_,L.JSC$19901_rid_,N,null),ye0(L,N));Z==4&&DB(L);L.JSC$19901_successful_&&!L.JSC$19901_cancelled_&&(Z==4?YOq(L.JSC$19901_channel_,L):(L.JSC$19901_successful_=!1,ov8(L)))}else icy(L.JSC$19901_xmlHttp_),u==400&&N.indexOf("Unknown SID")>0?(L.JSC$19901_lastError_=3,gN(12),L.JSC$19901_channelDebug_.warning("XMLHTTP Unknown SID ("+L.JSC$19901_rid_+")")):(L.JSC$19901_lastError_=0,gN(13),L.JSC$19901_channelDebug_.warning("XMLHTTP Bad status "+
u+" ("+L.JSC$19901_rid_+")")),DB(L),w3c(L)}},k2v=function(L){return L.JSC$19901_xmlHttp_&&(L=bE(L.JSC$19901_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.V_(L)?L:null},fa0=function(L){if(!eVY(L))return L.JSC$19901_xmlHttp_.getResponseText();
var Z=L.JSC$19901_xmlHttp_.getResponse();if(Z==="")return"";var N="",S=Z.length,u=_.dg(L.JSC$19901_xmlHttp_)==4;if(!L.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return DB(L),w3c(L),"";L.fetchResponseState_.textDecoder=new _.iH.TextDecoder}for(var T=0;T<S;T++)L.fetchResponseState_.responseArrivedForFetch=!0,N+=L.fetchResponseState_.textDecoder.decode(Z[T],{stream:!(u&&T==S-1)});Z.length=0;L.fetchResponseState_.responseBuffer+=N;L.JSC$19901_xmlHttpChunkStart_=0;return L.fetchResponseState_.responseBuffer},
nv5=function(L){return L.JSC$19901_xmlHttp_?L.fetchResponseState_.responseArrivedForFetch?!0:!(!L.JSC$19901_xmlHttp_.getResponseText()&&!L.JSC$19901_xmlHttp_.getResponse()):!1},eVY=function(L){return L.JSC$19901_xmlHttp_?L.JSC$19901_verb_=="GET"&&L.JSC$19901_type_!=2&&L.JSC$19901_channel_.usesFetchStreams_:!1},Uv5=function(L,Z,N){for(var S=!0,u;!L.JSC$19901_cancelled_&&L.JSC$19901_xmlHttpChunkStart_<N.length;)if(u=Ia5(L,N),u==Dv0){Z==4&&(L.JSC$19901_lastError_=4,gN(14),S=!1);
F0(L.JSC$19901_channelDebug_,L.JSC$19901_rid_,null,"[Incomplete Response]");break}else if(u==$vP){L.JSC$19901_lastError_=4;gN(15);F0(L.JSC$19901_channelDebug_,L.JSC$19901_rid_,N,"[Invalid Chunk]");S=!1;break}else F0(L.JSC$19901_channelDebug_,L.JSC$19901_rid_,u,null),ye0(L,u);eVY(L)&&L.JSC$19901_xmlHttpChunkStart_!=0&&(L.fetchResponseState_.responseBuffer=L.fetchResponseState_.responseBuffer.slice(L.JSC$19901_xmlHttpChunkStart_),L.JSC$19901_xmlHttpChunkStart_=0);Z!=4||N.length!=0||L.fetchResponseState_.responseArrivedForFetch||
(L.JSC$19901_lastError_=1,gN(16),S=!1);L.JSC$19901_successful_=L.JSC$19901_successful_&&S;S?N.length>0&&!L.firstByteReceived_&&(L.firstByteReceived_=!0,Z=L.JSC$19901_channel_,Z.JSC$19920_backChannelRequest_==L&&Z.detectBufferingProxy_&&!Z.bpDetectionDone_&&(Z.JSC$19920_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+N.length),dvc(Z),Z.bpDetectionDone_=!0,gN(11))):(F0(L.JSC$19901_channelDebug_,L.JSC$19901_rid_,N,"[Invalid Chunked Response]"),DB(L),w3c(L))},Ia5=function(L,
Z){var N=L.JSC$19901_xmlHttpChunkStart_,S=Z.indexOf("\n",N);
if(S==-1)return Dv0;N=Number(Z.substring(N,S));if(isNaN(N))return $vP;S+=1;if(S+N>Z.length)return Dv0;Z=Z.slice(S,S+N);L.JSC$19901_xmlHttpChunkStart_=S+N;return Z};
$l.prototype.cancel=function(){this.JSC$19901_cancelled_=!0;DB(this)};
var ov8=function(L){L.JSC$19901_watchDogTimeoutTime_=Date.now()+L.timeout_;aaq(L,L.timeout_)},aaq=function(L,Z){if(L.JSC$19901_watchDogTimerId_!=null)throw Error("Sk");
L.JSC$19901_watchDogTimerId_=Wcy((0,_.hr)(L.JSC$19905_onWatchDogTimeout_,L),Z)},Kcm=function(L){L.JSC$19901_watchDogTimerId_&&(_.iH.clearTimeout(L.JSC$19901_watchDogTimerId_),L.JSC$19901_watchDogTimerId_=null)};
$l.prototype.JSC$19905_onWatchDogTimeout_=function(){this.JSC$19901_watchDogTimerId_=null;var L=Date.now();L-this.JSC$19901_watchDogTimeoutTime_>=0?(gvv(this.JSC$19901_channelDebug_,this.JSC$19901_requestUri_),this.JSC$19901_type_!=2&&(uIm(3),gN(17)),DB(this),this.JSC$19901_lastError_=2,w3c(this)):(this.JSC$19901_channelDebug_.warning("WatchDog timer called too early"),aaq(this,this.JSC$19901_watchDogTimeoutTime_-L))};
var w3c=function(L){L.JSC$19901_channel_.state_==0||L.JSC$19901_cancelled_||YOq(L.JSC$19901_channel_,L)},DB=function(L){Kcm(L);
_.W4(L.JSC$19901_readyStateChangeThrottle_);L.JSC$19901_readyStateChangeThrottle_=null;L.JSC$19901_eventHandler_.removeAll();if(L.JSC$19901_xmlHttp_){var Z=L.JSC$19901_xmlHttp_;L.JSC$19901_xmlHttp_=null;Z.abort();Z.dispose()}};
$l.prototype.getLastError=function(){return this.JSC$19901_lastError_};
var ye0=function(L,Z){try{var N=L.JSC$19901_channel_;if(N.state_!=0&&(N.JSC$19920_backChannelRequest_==L||hVQ(N.forwardChannelRequestPool_,L)))if(!L.initialResponseDecoded_&&hVQ(N.forwardChannelRequestPool_,L)&&N.state_==3){try{var S=N.wireCodec_.JSC$19915_parser_.parse(Z)}catch(V){S=null}if(Array.isArray(S)&&S.length==3){Z=S;if(Z[0]==0)a:if(N.JSC$19920_channelDebug_.debug("Server claims our backchannel is missing."),N.JSC$19920_backChannelTimerId_)N.JSC$19920_channelDebug_.debug("But we are currently starting the request.");
else{if(N.JSC$19920_backChannelRequest_)if(N.JSC$19920_backChannelRequest_.JSC$19901_requestStartTime_+3E3<L.JSC$19901_requestStartTime_)suQ(N),juk(N);else break a;else N.JSC$19920_channelDebug_.warning("We do not have a BackChannel established");EvQ(N);gN(18)}else{N.JSC$19920_lastPostResponseArrayId_=Z[1];var u=N.JSC$19920_lastPostResponseArrayId_-N.JSC$19920_lastArrayId_;if(0<u){var T=Z[2];N.JSC$19920_channelDebug_.debug(T+" bytes (in "+u+" arrays) are outstanding on the BackChannel");T<37500&&
N.enableStreaming_&&N.JSC$19920_backChannelRetryCount_==0&&!N.JSC$19920_deadBackChannelTimerId_&&(N.JSC$19920_deadBackChannelTimerId_=Wcy((0,_.hr)(N.JSC$19922_onBackChannelDead_,N),6E3))}}if(Phs(N.forwardChannelRequestPool_)<=1&&N.forwardChannelFlushedCallback_){try{N.forwardChannelFlushedCallback_()}catch(V){}N.forwardChannelFlushedCallback_=void 0}}else N.JSC$19920_channelDebug_.debug("Bad POST response data returned"),lW(N,11)}else if((L.initialResponseDecoded_||N.JSC$19920_backChannelRequest_==
L)&&suQ(N),!_.V_(Z)){var W=N.wireCodec_.JSC$19915_parser_.parse(Z);N.onInput_(W,L)}uIm(4)}catch(V){}};var p3v=function(L,Z){this.JSC$19908_mapId=L;this.map=Z;this.context=null};var zVc=function(L){this.maxPoolSizeConfigured_=L||10;_.iH.PerformanceNavigationTiming?(L=_.iH.performance.getEntriesByType("navigation"),L=L.length>0&&(L[0].nextHopProtocol=="hq"||L[0].nextHopProtocol=="h2")):L=!!(_.iH.chrome&&_.iH.chrome.loadTimes&&_.iH.chrome.loadTimes()&&_.iH.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19911_maxSize_=L?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19911_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19911_request_=null;this.JSC$19911_pendingMessages_=
[]},mvs=function(L){return L.JSC$19911_request_?!0:L.requestPool_?L.requestPool_.size>=L.JSC$19911_maxSize_:!1},Phs=function(L){return L.JSC$19911_request_?1:L.requestPool_?L.requestPool_.size:0},hVQ=function(L,Z){return L.JSC$19911_request_?L.JSC$19911_request_==Z:L.requestPool_?L.requestPool_.has(Z):!1},JeP=function(L,Z){L.requestPool_?L.requestPool_.add(Z):L.JSC$19911_request_=Z},ChP=function(L,Z){L.JSC$19911_request_&&L.JSC$19911_request_==Z?L.JSC$19911_request_=null:L.requestPool_&&L.requestPool_.has(Z)&&
L.requestPool_.delete(Z)};
zVc.prototype.cancel=function(){this.JSC$19911_pendingMessages_=rek(this);if(this.JSC$19911_request_)this.JSC$19911_request_.cancel(),this.JSC$19911_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var L=_.O(this.requestPool_.values()),Z=L.next();!Z.done;Z=L.next())Z.value.cancel();this.requestPool_.clear()}};
var rek=function(L){if(L.JSC$19911_request_!=null)return L.JSC$19911_pendingMessages_.concat(L.JSC$19911_request_.JSC$19901_pendingMessages_);if(L.requestPool_!=null&&L.requestPool_.size!==0){var Z=L.JSC$19911_pendingMessages_;L=_.O(L.requestPool_.values());for(var N=L.next();!N.done;N=L.next())Z=Z.concat(N.value.JSC$19901_pendingMessages_);return Z}return _.mh(L.JSC$19911_pendingMessages_)},Qus=function(L,Z){L.JSC$19911_pendingMessages_=L.JSC$19911_pendingMessages_.concat(Z)};var X3k=function(L,Z){var N=new Gj;N.debug("TestLoadImage: loading "+L);if(_.iH.Image){var S=new Image;S.onload=_.T6(vk,N,"TestLoadImage: loaded",!0,Z,S);S.onerror=_.T6(vk,N,"TestLoadImage: error",!1,Z,S);S.onabort=_.T6(vk,N,"TestLoadImage: abort",!1,Z,S);S.ontimeout=_.T6(vk,N,"TestLoadImage: timeout",!1,Z,S);_.iH.setTimeout(function(){if(S.ontimeout)S.ontimeout()},1E4);
S.src=L}else Z(!1)},Ae8=function(L,Z){var N=new Gj,S=new AbortController,u=setTimeout(function(){S.abort();
vk(N,"TestPingServer: timeout",!1,Z)},1E4);
fetch(L,{signal:S.signal}).then(function(T){clearTimeout(u);T.ok?vk(N,"TestPingServer: ok",!0,Z):vk(N,"TestPingServer: server error",!1,Z)}).catch(function(){clearTimeout(u);
vk(N,"TestPingServer: error",!1,Z)})},vk=function(L,Z,N,S,u){try{L.debug(Z),u&&(u.onload=null,u.onerror=null,u.onabort=null,u.ontimeout=null),S(N)}catch(T){}};var Hfq=function(){this.JSC$19915_parser_=new q$5};var BHm=function(L,Z,N){return N&&N.internalChannelParams?N.internalChannelParams[L]||Z:Z},oP=function(L){this.serverVersion_=0;
this.JSC$19920_outgoingMaps_=[];this.JSC$19920_channelDebug_=new Gj;this.JSC$19920_hostPrefix_=this.JSC$19920_backChannelUri_=this.JSC$19920_forwardChannelUri_=this.JSC$19920_path_=this.JSC$19920_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19920_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19920_extraHeaders_=null;this.JSC$19920_nextMapId_=this.JSC$19920_nextRid_=0;this.JSC$19920_failFast_=BHm("failFast",!1,L);this.enableStreaming_=this.JSC$19920_deadBackChannelTimerId_=
this.JSC$19920_backChannelTimerId_=this.JSC$19920_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19920_lastPostResponseArrayId_=this.JSC$19920_lastArrayId_=-1;this.JSC$19920_backChannelAttemptId_=this.JSC$19920_backChannelRetryCount_=this.JSC$19920_forwardChannelRetryCount_=0;this.JSC$19920_baseRetryDelayMs_=BHm("baseRetryDelayMs",5E3,L);this.JSC$19920_retryDelaySeedMs_=BHm("retryDelaySeedMs",1E4,L);this.JSC$19920_forwardChannelMaxRetries_=
BHm("forwardChannelMaxRetries",2,L);this.JSC$19920_forwardChannelRequestTimeoutMs_=BHm("forwardChannelRequestTimeoutMs",2E4,L);this.JSC$19920_xmlHttpFactory_=L&&L.xmlHttpFactory||void 0;this.networkTestUrl_=L&&L.networkTestUrl||void 0;this.usesFetchStreams_=L&&L.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19920_supportsCrossDomainXhrs_=L&&L.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new zVc(L&&L.concurrentRequestLimit);this.wireCodec_=new Hfq;
this.fastHandshake_=L&&L.fastHandshake||!1;this.encodeInitMessageHeaders_=L&&L.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19920_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=L&&L.blockingHandshake||!1;L&&L.disableRedact&&this.JSC$19920_channelDebug_.disableRedact();L&&L.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&L&&L.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;L&&L.longPollingTimeout&&L.longPollingTimeout>0&&(this.longPollingTimeout_=L.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
oP.prototype.JSC$19922_channelVersion_=8;oP.prototype.state_=1;
oP.prototype.connect=function(L,Z,N,S){this.JSC$19920_channelDebug_.debug("connect()");gN(0);this.JSC$19920_path_=L;this.JSC$19920_extraParams_=Z||{};N&&S!==void 0&&(this.JSC$19920_extraParams_.OSID=N,this.JSC$19920_extraParams_.OAID=S);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19920_channelDebug_.debug("connectChannel_()");L=xvY(this,null,this.JSC$19920_path_);this.JSC$19920_channelDebug_.debug("GetForwardChannelUri: "+L);this.JSC$19920_forwardChannelUri_=L;qOc(this)};
oP.prototype.disconnect=function(){this.JSC$19920_channelDebug_.debug("disconnect()");LAw(this);if(this.state_==3){var L=this.JSC$19920_nextRid_++,Z=this.JSC$19920_forwardChannelUri_.clone();_.Z4(Z,"SID",this.sid_);_.Z4(Z,"RID",L);_.Z4(Z,"TYPE","terminate");ZKw(this,Z);L=new $l(this,this.JSC$19920_channelDebug_,this.sid_,L);L.JSC$19901_type_=2;L.JSC$19901_baseUri_=_.M6(Z.clone());Z=!1;if(_.iH.navigator&&_.iH.navigator.sendBeacon)try{Z=_.iH.navigator.sendBeacon(L.JSC$19901_baseUri_.toString(),"")}catch(N){}!Z&&
_.iH.Image&&((new Image).src=L.JSC$19901_baseUri_,Z=!0);Z||(L.JSC$19901_xmlHttp_=RVk(L.JSC$19901_channel_,null),L.JSC$19901_xmlHttp_.send(L.JSC$19901_baseUri_));L.JSC$19901_requestStartTime_=Date.now();ov8(L)}Ne5(this)};
var juk=function(L){L.JSC$19920_backChannelRequest_&&(dvc(L),L.JSC$19920_backChannelRequest_.cancel(),L.JSC$19920_backChannelRequest_=null)},LAw=function(L){juk(L);
L.JSC$19920_backChannelTimerId_&&(_.iH.clearTimeout(L.JSC$19920_backChannelTimerId_),L.JSC$19920_backChannelTimerId_=null);suQ(L);L.forwardChannelRequestPool_.cancel();L.JSC$19920_forwardChannelTimerId_&&(typeof L.JSC$19920_forwardChannelTimerId_==="number"&&_.iH.clearTimeout(L.JSC$19920_forwardChannelTimerId_),L.JSC$19920_forwardChannelTimerId_=null)};
oP.prototype.getState=function(){return this.state_};
var qOc=function(L){mvs(L.forwardChannelRequestPool_)||L.JSC$19920_forwardChannelTimerId_||(L.JSC$19920_forwardChannelTimerId_=!0,_.kB(L.JSC$19922_onStartForwardChannelTimer_,L),L.JSC$19920_forwardChannelRetryCount_=0)},iKY=function(L,Z){if(Phs(L.forwardChannelRequestPool_)>=L.forwardChannelRequestPool_.JSC$19911_maxSize_-(L.JSC$19920_forwardChannelTimerId_?1:0))return!1;
if(L.JSC$19920_forwardChannelTimerId_)return L.JSC$19920_channelDebug_.debug("Use the retry request that is already scheduled."),L.JSC$19920_outgoingMaps_=Z.JSC$19901_pendingMessages_.concat(L.JSC$19920_outgoingMaps_),!0;if(L.state_==1||L.state_==2||L.JSC$19920_forwardChannelRetryCount_>=(L.JSC$19920_failFast_?0:L.JSC$19920_forwardChannelMaxRetries_))return!1;L.JSC$19920_channelDebug_.debug("Going to retry POST");L.JSC$19920_forwardChannelTimerId_=Wcy((0,_.hr)(L.JSC$19922_onStartForwardChannelTimer_,
L,Z),SjY(L,L.JSC$19920_forwardChannelRetryCount_));L.JSC$19920_forwardChannelRetryCount_++;return!0};
oP.prototype.JSC$19922_onStartForwardChannelTimer_=function(L){if(this.JSC$19920_forwardChannelTimerId_)if(this.JSC$19920_forwardChannelTimerId_=null,this.JSC$19920_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!L){this.JSC$19920_channelDebug_.debug("open_()");this.JSC$19920_nextRid_=Math.floor(Math.random()*1E5);L=this.JSC$19920_nextRid_++;var Z=new $l(this,this.JSC$19920_channelDebug_,"",L),N=this.JSC$19920_extraHeaders_;this.initHeaders_&&(N?(N=_.Py.clone(N),_.Py.extend(N,this.initHeaders_)):
N=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(Z.JSC$19901_extraHeaders_=N,N=null);var S;if(this.fastHandshake_)a:{for(var u=S=0;u<this.JSC$19920_outgoingMaps_.length;u++){b:{var T=this.JSC$19920_outgoingMaps_[u];if("__data__"in T.map&&(T=T.map.__data__,typeof T==="string")){T=T.length;break b}T=void 0}if(T===void 0)break;S+=T;if(S>4096){S=u;break a}if(S===4096||u===this.JSC$19920_outgoingMaps_.length-1){S=u+1;break a}}S=1E3}else S=1E3;S=ufv(this,Z,S);
u=this.JSC$19920_forwardChannelUri_.clone();_.Z4(u,"RID",L);_.Z4(u,"CVER",22);this.httpSessionIdParam_&&_.Z4(u,"X-HTTP-Session-Id",this.httpSessionIdParam_);ZKw(this,u);N&&(this.encodeInitMessageHeaders_?S="headers="+_.Nu(tRg(N))+"&"+S:this.httpHeadersOverwriteParam_&&O6q(u,this.httpHeadersOverwriteParam_,N));JeP(this.forwardChannelRequestPool_,Z);this.blockingHandshake_&&_.Z4(u,"TYPE","init");this.fastHandshake_?(_.Z4(u,"$req",S),_.Z4(u,"SID","null"),Z.decodeInitialResponse_=!0,vv0(Z,u,null)):vv0(Z,
u,S);this.state_=2}}else this.state_==3&&(L?Teg(this,L):this.JSC$19920_outgoingMaps_.length==0?this.JSC$19920_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):mvs(this.forwardChannelRequestPool_)||(Teg(this),this.JSC$19920_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Teg=function(L,Z){var N;Z?N=Z.JSC$19901_rid_:N=L.JSC$19920_nextRid_++;var S=L.JSC$19920_forwardChannelUri_.clone();_.Z4(S,"SID",L.sid_);_.Z4(S,"RID",N);_.Z4(S,"AID",L.JSC$19920_lastArrayId_);ZKw(L,S);L.httpHeadersOverwriteParam_&&L.JSC$19920_extraHeaders_&&O6q(S,L.httpHeadersOverwriteParam_,L.JSC$19920_extraHeaders_);N=new $l(L,L.JSC$19920_channelDebug_,L.sid_,N,L.JSC$19920_forwardChannelRetryCount_+1);L.httpHeadersOverwriteParam_===null&&(N.JSC$19901_extraHeaders_=L.JSC$19920_extraHeaders_);
Z&&(L.JSC$19920_outgoingMaps_=Z.JSC$19901_pendingMessages_.concat(L.JSC$19920_outgoingMaps_));Z=ufv(L,N,1E3);N.setTimeout(Math.round(L.JSC$19920_forwardChannelRequestTimeoutMs_*.5)+Math.round(L.JSC$19920_forwardChannelRequestTimeoutMs_*.5*Math.random()));JeP(L.forwardChannelRequestPool_,N);vv0(N,S,Z)},ZKw=function(L,Z){L.JSC$19920_extraParams_&&_.Py.forEach(L.JSC$19920_extraParams_,function(N,S){_.Z4(Z,S,N)});
L.handler_&&_.Py.forEach({},function(N,S){_.Z4(Z,S,N)})},ufv=function(L,Z,N){N=Math.min(L.JSC$19920_outgoingMaps_.length,N);
var S=L.handler_?(0,_.hr)(L.handler_.JSC$19926_badMapError,L.handler_,L):null;a:{for(var u=L.JSC$19920_outgoingMaps_,T=-1;;){var W=["count="+N];T==-1?N>0?(T=u[0].JSC$19908_mapId,W.push("ofs="+T)):T=0:W.push("ofs="+T);for(var V=!0,M=0;M<N;M++){var G=u[M].JSC$19908_mapId,D=u[M].map;G-=T;if(G<0)T=Math.max(0,u[M].JSC$19908_mapId-100),V=!1;else try{G="req"+G+"_"||"";try{var l=D instanceof Map?D:Object.entries(D);for(var v=_.O(l),R=v.next();!R.done;R=v.next()){var K=_.O(R.value),U=K.next().value,d=K.next().value,
h=d;_.Q_(d)&&(h=(0,_.eJ)(d));W.push(G+U+"="+encodeURIComponent(h))}}catch(E){throw W.push(G+"type="+encodeURIComponent("_badmap")),E;}}catch(E){S&&S(D)}}if(V){l=W.join("&");break a}}l=void 0}L=L.JSC$19920_outgoingMaps_.splice(0,N);Z.JSC$19901_pendingMessages_=L;return l},tKv=function(L){L.JSC$19920_backChannelRequest_||L.JSC$19920_backChannelTimerId_||(L.JSC$19920_backChannelAttemptId_=1,_.kB(L.JSC$19922_onStartBackChannelTimer_,L),L.JSC$19920_backChannelRetryCount_=0)},EvQ=function(L){if(L.JSC$19920_backChannelRequest_||
L.JSC$19920_backChannelTimerId_||L.JSC$19920_backChannelRetryCount_>=3)return!1;
L.JSC$19920_channelDebug_.debug("Going to retry GET");L.JSC$19920_backChannelAttemptId_++;L.JSC$19920_backChannelTimerId_=Wcy((0,_.hr)(L.JSC$19922_onStartBackChannelTimer_,L),SjY(L,L.JSC$19920_backChannelRetryCount_));L.JSC$19920_backChannelRetryCount_++;return!0};
oP.prototype.JSC$19922_onStartBackChannelTimer_=function(){this.JSC$19920_backChannelTimerId_=null;OK8(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19920_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19920_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19920_backChannelRequest_+" "+this.handshakeRttMs_);else{var L=4*this.handshakeRttMs_;this.JSC$19920_channelDebug_.info("BP detection timer enabled: "+L);this.bpDetectionTimerId_=Wcy((0,_.hr)(this.onBpDetectionTimer_,
this),L)}};
oP.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19920_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19920_backChannelRequest_.JSC$19901_xmlHttp_!=null){var L=this.JSC$19920_backChannelRequest_.JSC$19901_xmlHttp_.getResponseText();L&&this.JSC$19920_channelDebug_.warning("Timer should have been cancelled : "+L)}this.JSC$19920_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;gN(10);juk(this);OK8(this)}else this.JSC$19920_channelDebug_.warning("Invalid operation.")};
var dvc=function(L){L.bpDetectionTimerId_!=null&&(L.JSC$19920_channelDebug_.debug("Cancel the BP detection timer."),_.iH.clearTimeout(L.bpDetectionTimerId_),L.bpDetectionTimerId_=null)},OK8=function(L){L.JSC$19920_channelDebug_.debug("Creating new HttpRequest");
L.JSC$19920_backChannelRequest_=new $l(L,L.JSC$19920_channelDebug_,L.sid_,"rpc",L.JSC$19920_backChannelAttemptId_);L.httpHeadersOverwriteParam_===null&&(L.JSC$19920_backChannelRequest_.JSC$19901_extraHeaders_=L.JSC$19920_extraHeaders_);L.JSC$19920_backChannelRequest_.JSC$19901_readyStateChangeThrottleMs_=0;var Z=L.JSC$19920_backChannelUri_.clone();_.Z4(Z,"RID","rpc");_.Z4(Z,"SID",L.sid_);_.Z4(Z,"AID",L.JSC$19920_lastArrayId_);_.Z4(Z,"CI",L.enableStreaming_?"0":"1");!L.enableStreaming_&&L.longPollingTimeout_&&
_.Z4(Z,"TO",L.longPollingTimeout_);_.Z4(Z,"TYPE","xmlhttp");ZKw(L,Z);L.httpHeadersOverwriteParam_&&L.JSC$19920_extraHeaders_&&O6q(Z,L.httpHeadersOverwriteParam_,L.JSC$19920_extraHeaders_);L.backChannelRequestTimeoutMs_&&L.JSC$19920_backChannelRequest_.setTimeout(L.backChannelRequestTimeoutMs_);var N=L.JSC$19920_backChannelRequest_,S=L.JSC$19920_hostPrefix_;N.JSC$19901_type_=1;N.JSC$19901_baseUri_=_.M6(Z.clone());N.JSC$19901_postData_=null;N.decodeChunks_=!0;lak(N,S);L.JSC$19920_channelDebug_.debug("New Request created")};
oP.prototype.JSC$19922_onBackChannelDead_=function(){this.JSC$19920_deadBackChannelTimerId_!=null&&(this.JSC$19920_deadBackChannelTimerId_=null,juk(this),EvQ(this),gN(19))};
var suQ=function(L){L.JSC$19920_deadBackChannelTimerId_!=null&&(_.iH.clearTimeout(L.JSC$19920_deadBackChannelTimerId_),L.JSC$19920_deadBackChannelTimerId_=null)},YOq=function(L,Z){L.JSC$19920_channelDebug_.debug("Request complete");
var N=null;if(L.JSC$19920_backChannelRequest_==Z){suQ(L);dvc(L);L.JSC$19920_backChannelRequest_=null;var S=2}else if(hVQ(L.forwardChannelRequestPool_,Z))N=Z.JSC$19901_pendingMessages_,ChP(L.forwardChannelRequestPool_,Z),S=1;else return;if(L.state_!=0)if(Z.JSC$19901_successful_)S==1?(Of8(Z.JSC$19901_postData_?Z.JSC$19901_postData_.length:0,Date.now()-Z.JSC$19901_requestStartTime_,L.JSC$19920_forwardChannelRetryCount_),qOc(L)):tKv(L);else{var u=Z.JSC$19901_lastStatusCode_,T=Z.getLastError();if(T==3||
T==0&&u>0)L.JSC$19920_channelDebug_.debug("Not retrying due to error type"),u>200&&(L.errorResponseStatusCode_=Z.JSC$19901_lastStatusCode_);else{L.JSC$19920_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Fcg(T,L.errorResponseStatusCode_)});
if(S==1&&iKY(L,Z)||S==2&&EvQ(L))return;L.JSC$19920_channelDebug_.debug("Exceeded max number of retries")}N&&N.length>0&&Qus(L.forwardChannelRequestPool_,N);L.JSC$19920_channelDebug_.debug("Error: HTTP request failed");switch(T){case 1:lW(L,5);break;case 4:lW(L,10);break;case 3:lW(L,6);break;default:lW(L,2)}}},SjY=function(L,Z){var N=L.JSC$19920_baseRetryDelayMs_+Math.floor(Math.random()*L.JSC$19920_retryDelaySeedMs_);
L.isActive()||(L.JSC$19920_channelDebug_.debug("Inactive channel"),N*=2);return N*Z};
oP.prototype.onInput_=function(L,Z){for(var N=0;N<L.length;N++){var S=L[N],u=S[0];if(u<=this.JSC$19920_lastArrayId_)this.JSC$19920_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+u+", lastArrayId: "+this.JSC$19920_lastArrayId_);else if(u>this.JSC$19920_lastArrayId_+1&&this.JSC$19920_lastArrayId_>-1&&this.JSC$19920_channelDebug_.warning("Received non-consecutive message with arrayId: "+u+", lastArrayId: "+this.JSC$19920_lastArrayId_),this.JSC$19920_lastArrayId_=u,
S=S[1],this.state_==2)if(S[0]=="c"){this.sid_=S[1];this.JSC$19920_hostPrefix_=S[2];u=S[3];u!=null&&(this.JSC$19922_channelVersion_=u,this.JSC$19920_channelDebug_.info("VER="+this.JSC$19922_channelVersion_));u=S[4];u!=null&&(this.serverVersion_=u,this.JSC$19920_channelDebug_.info("SVER="+this.serverVersion_));S=S[5];S!=null&&typeof S==="number"&&S>0&&(this.backChannelRequestTimeoutMs_=S*=1.5,this.JSC$19920_channelDebug_.info("backChannelRequestTimeoutMs_="+S));if(S=Z.JSC$19901_xmlHttp_){var T=bE(S,
"X-Client-Wire-Protocol");T&&(u=this.forwardChannelRequestPool_,!u.requestPool_&&(_.bH(T,"spdy")||_.bH(T,"quic")||_.bH(T,"h2"))&&(u.JSC$19911_maxSize_=u.maxPoolSizeConfigured_,u.requestPool_=new Set,u.JSC$19911_request_&&(JeP(u,u.JSC$19911_request_),u.JSC$19911_request_=null)));this.httpSessionIdParam_&&((S=bE(S,"X-HTTP-Session-Id"))?(this.httpSessionId_=S,_.Z4(this.JSC$19920_forwardChannelUri_,this.httpSessionIdParam_,S)):this.JSC$19920_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19926_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-Z.JSC$19901_requestStartTime_,this.JSC$19920_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));S=Z;u=xvY(this,this.JSC$19920_supportsCrossDomainXhrs_?this.JSC$19920_hostPrefix_:null,this.JSC$19920_path_);this.JSC$19920_channelDebug_.debug("GetBackChannelUri: "+u);this.JSC$19920_backChannelUri_=u;S.initialResponseDecoded_?(this.JSC$19920_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
ChP(this.forwardChannelRequestPool_,S),u=S,(T=this.backChannelRequestTimeoutMs_)&&u.setTimeout(T),u.JSC$19901_watchDogTimerId_&&(Kcm(u),ov8(u)),this.JSC$19920_backChannelRequest_=S):tKv(this);this.JSC$19920_outgoingMaps_.length>0&&qOc(this)}else S[0]!="stop"&&S[0]!="close"||lW(this,7);else this.state_==3&&(S[0]=="stop"||S[0]=="close"?S[0]=="stop"?lW(this,7):this.disconnect():S[0]!="noop"&&this.handler_&&this.handler_.JSC$19926_channelHandleArray(S),this.JSC$19920_backChannelRetryCount_=0)}};
var lW=function(L,Z){L.JSC$19920_channelDebug_.info("Error code "+Z);if(Z==2){var N=(0,_.hr)(L.testNetworkCallback_,L),S=L.networkTestUrl_,u=!S;S=new _.j9(S||"//www.google.com/images/cleardot.gif");_.iH.location&&_.iH.location.protocol=="http"||_.S7(S,"https");_.M6(S);u?X3k(S.toString(),N):Ae8(S.toString(),N)}else gN(2);L.onError_(Z)};
oP.prototype.testNetworkCallback_=function(L){L?(this.JSC$19920_channelDebug_.info("Successfully pinged google.com"),gN(2)):(this.JSC$19920_channelDebug_.info("Failed to ping google.com"),gN(1))};
oP.prototype.onError_=function(L){this.JSC$19920_channelDebug_.debug("HttpChannel: error - "+L);this.state_=0;this.handler_&&this.handler_.JSC$19926_channelError(L);Ne5(this);LAw(this)};
var Ne5=function(L){L.state_=0;L.nonAckedMapsAtChannelClose_=[];if(L.handler_){var Z=rek(L.forwardChannelRequestPool_);if(Z.length!=0||L.JSC$19920_outgoingMaps_.length!=0)L.JSC$19920_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+Z.length+", outgoing: "+L.JSC$19920_outgoingMaps_.length}),_.C1(L.nonAckedMapsAtChannelClose_,Z),_.C1(L.nonAckedMapsAtChannelClose_,L.JSC$19920_outgoingMaps_),L.forwardChannelRequestPool_.JSC$19911_pendingMessages_.length=0,_.mh(L.JSC$19920_outgoingMaps_),
L.JSC$19920_outgoingMaps_.length=0;
L.handler_.JSC$19926_channelClosed()}},WAg=function(L){if(L.state_==0)return L.nonAckedMapsAtChannelClose_;
var Z=[];_.C1(Z,rek(L.forwardChannelRequestPool_));_.C1(Z,L.JSC$19920_outgoingMaps_);return Z},xvY=function(L,Z,N){var S=_.qG(N);
S.JSC$10031_domain_!=""?(Z&&_.ix(S,Z+"."+S.JSC$10031_domain_),_.ux(S,S.JSC$10031_port_)):(S=_.iH.location,S=x6v(S.protocol,Z?Z+"."+S.hostname:S.hostname,+S.port,N));Z=L.httpSessionIdParam_;N=L.httpSessionId_;Z&&N&&_.Z4(S,Z,N);_.Z4(S,"VER",L.JSC$19922_channelVersion_);ZKw(L,S);return S},RVk=function(L,Z,N){if(Z&&!L.JSC$19920_supportsCrossDomainXhrs_)throw Error("Tk");
Z=L.usesFetchStreams_&&!L.JSC$19920_xmlHttpFactory_?new _.I8(new sa({streamBinaryChunks:N})):new _.I8(L.JSC$19920_xmlHttpFactory_);Z.JSC$9795_withCredentials_=L.JSC$19920_supportsCrossDomainXhrs_;return Z};
oP.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var VKy=function(){};
_.t=VKy.prototype;_.t.JSC$19926_channelOpened=function(){};
_.t.JSC$19926_channelHandleArray=function(){};
_.t.JSC$19926_channelError=function(){};
_.t.JSC$19926_channelClosed=function(){};
_.t.isActive=function(){return!0};
_.t.JSC$19926_badMapError=function(){};var bKw=function(){},ck=function(L,Z){_.Kc.call(this);
this.JSC$19929_channel_=new oP(Z);this.JSC$19929_url_=L;this.messageUrlParams_=Z&&Z.messageUrlParams||null;L=Z&&Z.messageHeaders||null;Z&&Z.clientProtocolHeaderRequired&&(L?_.Py.set(L,"X-Client-Protocol","webchannel"):L=_.Py.create("X-Client-Protocol","webchannel"));this.JSC$19929_channel_.JSC$19920_extraHeaders_=L;L=Z&&Z.initMessageHeaders||null;Z&&Z.messageContentType&&(L?_.Py.set(L,"X-WebChannel-Content-Type",Z.messageContentType):L=_.Py.create("X-WebChannel-Content-Type",Z.messageContentType));
Z&&Z.clientProfile&&(L?_.Py.set(L,"X-WebChannel-Client-Profile",Z.clientProfile):L=_.Py.create("X-WebChannel-Client-Profile",Z.clientProfile));this.JSC$19929_channel_.initHeaders_=L;(L=Z&&Z.httpHeadersOverwriteParam)&&!_.V_(L)&&(this.JSC$19929_channel_.httpHeadersOverwriteParam_=L);this.supportsCrossDomainXhr_=Z&&Z.supportsCrossDomainXhr||!1;this.sendRawJson_=Z&&Z.sendRawJson||!1;(Z=Z&&Z.httpSessionIdParam)&&!_.V_(Z)&&(this.JSC$19929_channel_.httpSessionIdParam_=Z,_.Py.containsKey(this.messageUrlParams_,
Z)&&_.Py.remove(this.messageUrlParams_,Z));this.channelHandler_=new RP(this)};
_.Qk(ck,_.Kc);ck.prototype.open=function(){this.JSC$19929_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19929_channel_.JSC$19920_supportsCrossDomainXhrs_=!0);this.JSC$19929_channel_.connect(this.JSC$19929_url_,this.messageUrlParams_||void 0)};
ck.prototype.close=function(){this.JSC$19929_channel_.disconnect()};
ck.prototype.send=function(L){var Z=this.JSC$19929_channel_;if(typeof L==="string"){var N={};N.__data__=L;L=N}else this.sendRawJson_&&(N={},N.__data__=(0,_.eJ)(L),L=N);Z.JSC$19920_outgoingMaps_.push(new p3v(Z.JSC$19920_nextMapId_++,L));Z.state_==3&&qOc(Z)};
ck.prototype.disposeInternal=function(){this.JSC$19929_channel_.handler_=null;delete this.channelHandler_;this.JSC$19929_channel_.disconnect();delete this.JSC$19929_channel_;ck.superClass_.disposeInternal.call(this)};
var MKs=function(L){Lc8.call(this);L.__headers__&&(this.headers=L.__headers__,this.statusCode=L.__status__,delete L.__headers__,delete L.__status__);var Z=L.__sm__;Z?this.data=(this.metadataKey=_.Py.getAnyKey(Z))?_.Py.get(Z,this.metadataKey):Z:this.data=L};
_.Qk(MKs,Lc8);var gXY=function(L){Zfv.call(this);this.status=1;this.errorCode=L};
_.Qk(gXY,Zfv);var RP=function(L){this.JSC$19936_channel_=L};
_.Qk(RP,VKy);RP.prototype.JSC$19926_channelOpened=function(){this.JSC$19936_channel_.dispatchEvent("w")};
RP.prototype.JSC$19926_channelHandleArray=function(L){this.JSC$19936_channel_.dispatchEvent(new MKs(L))};
RP.prototype.JSC$19926_channelError=function(L){this.JSC$19936_channel_.dispatchEvent(new gXY(L))};
RP.prototype.JSC$19926_channelClosed=function(){this.JSC$19936_channel_.dispatchEvent("x")};
var Gx8=function(L,Z){this.transportChannel_=L;this.JSC$19939_channel_=Z},FAv=function(L){return WAg(L.JSC$19939_channel_).map(function(Z){var N=L.transportChannel_;
Z=Z.map;"__data__"in Z?(Z=Z.__data__,N=N.sendRawJson_?(0,_.a8L)(Z):Z):N=Z;return N})};
Gx8.prototype.commit=function(L){this.JSC$19939_channel_.forwardChannelFlushedCallback_=L};var n_=function(L){$Ns.dispatchEvent(new DNP($Ns,L))},$Ns=new _.Kc,DNP=function(L,Z){_.vn.call(this,"statevent",L);
this.stat=Z};
_.f(DNP,_.vn);var K_=function(L,Z,N,S,u){this.JSC$19944_channel_=L;this.JSC$19944_channelDebug_=Z;this.sid_=N;this.JSC$19944_rid_=S;this.JSC$19944_retryId_=u||1;this.timeout_=45E3;this.JSC$19944_eventHandler_=new _.oM(this);this.pollingTimer_=new _.vX;this.pollingTimer_.setInterval(250)};
_.t=K_.prototype;_.t.JSC$19946_extraHeaders_=null;_.t.JSC$19946_successful_=!1;_.t.JSC$19946_watchDogTimerId_=null;_.t.JSC$19946_watchDogTimeoutTime_=null;_.t.JSC$19946_requestStartTime_=null;_.t.JSC$19946_type_=null;_.t.JSC$19946_baseUri_=null;_.t.JSC$19946_requestUri_=null;_.t.JSC$19946_postData_=null;_.t.JSC$19946_xmlHttp_=null;_.t.JSC$19946_xmlHttpChunkStart_=0;_.t.trident_=null;_.t.JSC$19946_verb_=null;_.t.JSC$19946_lastError_=null;_.t.JSC$19946_lastStatusCode_=-1;_.t.sendClose_=!0;
_.t.JSC$19946_cancelled_=!1;_.t.JSC$19946_readyStateChangeThrottleMs_=0;_.t.JSC$19946_readyStateChangeThrottle_=null;var lA8=function(L,Z){switch(L){case 0:return"Non-200 return code ("+Z+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},vXs={},oXm={};
K_.prototype.setTimeout=function(L){this.timeout_=L};
var cyw=function(L,Z,N){L.JSC$19946_type_=1;L.JSC$19946_baseUri_=_.M6(Z.clone());L.JSC$19946_postData_=N;L.decodeChunks_=!0;Ru8(L,null)},nXQ=function(L,Z,N,S,u){L.JSC$19946_type_=1;
L.JSC$19946_baseUri_=_.M6(Z.clone());L.JSC$19946_postData_=null;L.decodeChunks_=N;u&&(L.sendClose_=!1);Ru8(L,S)},Ru8=function(L,Z){L.JSC$19946_requestStartTime_=Date.now();
KAc(L);L.JSC$19946_requestUri_=L.JSC$19946_baseUri_.clone();Gr(L.JSC$19946_requestUri_,"t",L.JSC$19944_retryId_);L.JSC$19946_xmlHttpChunkStart_=0;L.JSC$19946_xmlHttp_=L.JSC$19944_channel_.JSC$19953_createXhrIo(L.JSC$19944_channel_.JSC$19953_shouldUseSecondaryDomains()?Z:null);L.JSC$19946_readyStateChangeThrottleMs_>0&&(L.JSC$19946_readyStateChangeThrottle_=new _.Sw((0,_.hr)(L.JSC$19946_xmlHttpHandler_,L,L.JSC$19946_xmlHttp_),L.JSC$19946_readyStateChangeThrottleMs_));L.JSC$19944_eventHandler_.listen(L.JSC$19946_xmlHttp_,
"readystatechange",L.JSC$19946_readyStateChangeHandler_);Z=L.JSC$19946_extraHeaders_?_.Py.clone(L.JSC$19946_extraHeaders_):{};L.JSC$19946_postData_?(L.JSC$19946_verb_="POST",Z["Content-Type"]="application/x-www-form-urlencoded",L.JSC$19946_xmlHttp_.send(L.JSC$19946_requestUri_,L.JSC$19946_verb_,L.JSC$19946_postData_,Z)):(L.JSC$19946_verb_="GET",L.sendClose_&&!_.qH&&(Z.Connection="close"),L.JSC$19946_xmlHttp_.send(L.JSC$19946_requestUri_,L.JSC$19946_verb_,null,Z));L.JSC$19944_channel_.notifyServerReachabilityEvent(1);
Z=L.JSC$19944_channelDebug_;var N=L.JSC$19946_postData_;if(N){var S="";N=N.split("&");for(var u=0;u<N.length;u++){var T=N[u].split("=");if(T.length>1){var W=T[0];T=T[1];var V=W.split("_");S=V.length>=2&&V[1]=="type"?S+(W+"="+T+"&"):S+(W+"=redacted&")}}}else S=null;Z.info("XMLHTTP REQ ("+L.JSC$19944_rid_+") [attempt "+L.JSC$19944_retryId_+"]: "+L.JSC$19946_verb_+"\n"+L.JSC$19946_requestUri_+"\n"+S)};
K_.prototype.JSC$19946_readyStateChangeHandler_=function(L){L=L.target;var Z=this.JSC$19946_readyStateChangeThrottle_;Z&&_.dg(L)==3?(this.JSC$19944_channelDebug_.debug("Throttling readystatechange."),Z.fire()):this.JSC$19946_xmlHttpHandler_(L)};
K_.prototype.JSC$19946_xmlHttpHandler_=function(L){try{if(L==this.JSC$19946_xmlHttp_)a:{var Z=_.dg(this.JSC$19946_xmlHttp_),N=this.JSC$19946_xmlHttp_.JSC$9795_lastErrorCode_,S=this.JSC$19946_xmlHttp_.getStatus();if(_.qH&&!_.L5("420+")){if(Z<4)break a}else if(Z<3||Z==3&&!this.JSC$19946_xmlHttp_.getResponseText())break a;this.JSC$19946_cancelled_||Z!=4||N==7||(N==8||S<=0?this.JSC$19944_channel_.notifyServerReachabilityEvent(3):this.JSC$19944_channel_.notifyServerReachabilityEvent(2));fA8(this);var u=
this.JSC$19946_xmlHttp_.getStatus();this.JSC$19946_lastStatusCode_=u;var T=this.JSC$19946_xmlHttp_.getResponseText();T||this.JSC$19944_channelDebug_.debug("No response text for uri "+this.JSC$19946_requestUri_+" status "+u);this.JSC$19946_successful_=u==200;this.JSC$19944_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19944_rid_+") [ attempt "+this.JSC$19944_retryId_+"]: "+this.JSC$19946_verb_+"\n"+this.JSC$19946_requestUri_+"\n"+Z+" "+u);if(this.JSC$19946_successful_){Z==4&&kxm(this);if(this.decodeChunks_){for(L=
!0;!this.JSC$19946_cancelled_&&this.JSC$19946_xmlHttpChunkStart_<T.length;){var W=yyq(this,T);if(W==oXm){Z==4&&(this.JSC$19946_lastError_=4,n_(15),L=!1);wSY(this.JSC$19944_channelDebug_,this.JSC$19944_rid_,null,"[Incomplete Response]");break}else if(W==vXs){this.JSC$19946_lastError_=4;n_(16);wSY(this.JSC$19944_channelDebug_,this.JSC$19944_rid_,T,"[Invalid Chunk]");L=!1;break}else wSY(this.JSC$19944_channelDebug_,this.JSC$19944_rid_,W,null),UNm(this,W)}Z==4&&T.length==0&&(this.JSC$19946_lastError_=
1,n_(17),L=!1);this.JSC$19946_successful_=this.JSC$19946_successful_&&L;L||(wSY(this.JSC$19944_channelDebug_,this.JSC$19944_rid_,T,"[Invalid Chunked Response]"),kxm(this),Yjw(this))}else wSY(this.JSC$19944_channelDebug_,this.JSC$19944_rid_,T,null),UNm(this,T);this.JSC$19946_successful_&&!this.JSC$19946_cancelled_&&(Z==4?this.JSC$19944_channel_.JSC$19953_onRequestComplete(this):(this.JSC$19946_successful_=!1,KAc(this)))}else u==400&&T.indexOf("Unknown SID")>0?(this.JSC$19946_lastError_=3,n_(13),this.JSC$19944_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19944_rid_+")")):(this.JSC$19946_lastError_=0,n_(14),this.JSC$19944_channelDebug_.warning("XMLHTTP Bad status "+u+" ("+this.JSC$19944_rid_+")")),kxm(this),Yjw(this)}else this.JSC$19944_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(V){this.JSC$19944_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var yyq=function(L,Z){var N=L.JSC$19946_xmlHttpChunkStart_,S=Z.indexOf("\n",N);if(S==-1)return oXm;N=Number(Z.substring(N,S));if(isNaN(N))return vXs;S+=1;if(S+N>Z.length)return oXm;Z=Z.slice(S,S+N);L.JSC$19946_xmlHttpChunkStart_=S+N;return Z};
K_.prototype.cancel=function(){this.JSC$19946_cancelled_=!0;kxm(this)};
var KAc=function(L){L.JSC$19946_watchDogTimeoutTime_=Date.now()+L.timeout_;eu5(L,L.timeout_)},eu5=function(L,Z){if(L.JSC$19946_watchDogTimerId_!=null)throw Error("Sk");
L.JSC$19946_watchDogTimerId_=nE((0,_.hr)(L.JSC$19946_onWatchDogTimeout_,L),Z)},fA8=function(L){L.JSC$19946_watchDogTimerId_&&(_.iH.clearTimeout(L.JSC$19946_watchDogTimerId_),L.JSC$19946_watchDogTimerId_=null)};
K_.prototype.JSC$19946_onWatchDogTimeout_=function(){this.JSC$19946_watchDogTimerId_=null;var L=Date.now();L-this.JSC$19946_watchDogTimeoutTime_>=0?(this.JSC$19944_channelDebug_.info("TIMEOUT: "+this.JSC$19946_requestUri_),this.JSC$19946_type_!=2&&this.JSC$19944_channel_.notifyServerReachabilityEvent(3),kxm(this),this.JSC$19946_lastError_=2,n_(18),Yjw(this)):(this.JSC$19944_channelDebug_.warning("WatchDog timer called too early"),eu5(this,this.JSC$19946_watchDogTimeoutTime_-L))};
var Yjw=function(L){L.JSC$19944_channel_.JSC$19953_isClosed()||L.JSC$19946_cancelled_||L.JSC$19944_channel_.JSC$19953_onRequestComplete(L)},kxm=function(L){fA8(L);
_.W4(L.JSC$19946_readyStateChangeThrottle_);L.JSC$19946_readyStateChangeThrottle_=null;L.pollingTimer_.stop();L.JSC$19944_eventHandler_.removeAll();if(L.JSC$19946_xmlHttp_){var Z=L.JSC$19946_xmlHttp_;L.JSC$19946_xmlHttp_=null;Z.abort();Z.dispose()}L.trident_&&(L.trident_=null)};
K_.prototype.getLastError=function(){return this.JSC$19946_lastError_};
var UNm=function(L,Z){try{L.JSC$19944_channel_.JSC$19953_onRequestData(L,Z),L.JSC$19944_channel_.notifyServerReachabilityEvent(4)}catch(N){}};var wSY=function(L,Z,N,S){var u=L.info;a:if(N&&N!="y2f%"){try{var T=JSON.parse(N);if(T)for(var W=0;W<T.length;W++)if(Array.isArray(T[W])){var V=T[W];if(!(V.length<2)){var M=V[1];if(Array.isArray(M)&&!(M.length<1)){var G=M[0];if(G!="noop"&&G!="stop")for(var D=1;D<M.length;D++)M[D]=""}}}var l=(0,_.eJ)(T);break a}catch(v){L.debug("Exception parsing expected JS array - probably was not JS");l=N;break a}l=void 0}else l=N;u.call(L,"XMLHTTP TEXT ("+Z+"): "+l+(S?" "+S:""))};
KE.prototype.debug=function(L){this.info(L)};
KE.prototype.info=function(){};
KE.prototype.warning=function(){};var IAm=function(L,Z){this.JSC$19951_channel_=L;this.JSC$19951_channelDebug_=Z;this.JSC$19951_parser_=new q$5};
_.t=IAm.prototype;_.t.JSC$19953_extraHeaders_=null;_.t.JSC$19953_request_=null;_.t.receivedIntermediateResult_=!1;_.t.JSC$19953_path_=null;_.t.state_=null;_.t.JSC$19953_lastStatusCode_=-1;_.t.JSC$19953_hostPrefix_=null;_.t.blockedPrefix_=null;
_.t.connect=function(L){this.JSC$19953_path_=L;L=dNm(this.JSC$19951_channel_,this.JSC$19953_path_);n_(3);Date.now();var Z=this.JSC$19951_channel_.firstTestResults_;Z!=null?(this.JSC$19953_hostPrefix_=Z[0],(this.blockedPrefix_=Z[1])?(this.state_=1,aAv(this)):(this.state_=2,huv(this))):(Gr(L,"MODE","init"),this.JSC$19953_request_=new K_(this,this.JSC$19951_channelDebug_),this.JSC$19953_request_.JSC$19946_extraHeaders_=this.JSC$19953_extraHeaders_,nXQ(this.JSC$19953_request_,L,!1,null,!0),this.state_=
0)};
var aAv=function(L){var Z=s38(L.JSC$19951_channel_,L.blockedPrefix_,"/mail/images/cleardot.gif");_.M6(Z);I75(Z.toString(),5E3,(0,_.hr)(L.checkBlockedCallback_,L),3,2E3);L.notifyServerReachabilityEvent(1)};
IAm.prototype.checkBlockedCallback_=function(L){if(L)this.state_=2,huv(this);else{n_(4);var Z=this.JSC$19951_channel_;Z.JSC$19954_channelDebug_.debug("Test Connection Blocked");Z.JSC$19958_lastStatusCode_=Z.connectionTest_.JSC$19953_lastStatusCode_;f_(Z,9)}L&&this.notifyServerReachabilityEvent(2)};
var huv=function(L){L.JSC$19951_channelDebug_.debug("TestConnection: starting stage 2");var Z=L.JSC$19951_channel_.secondTestResults_;Z!=null?(L.JSC$19951_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+Z?"Buffered":"Unbuffered"),n_(5),Z?(n_(11),j3y(L.JSC$19951_channel_,L,!1)):(n_(12),j3y(L.JSC$19951_channel_,L,!0))):(L.JSC$19953_request_=new K_(L,L.JSC$19951_channelDebug_),L.JSC$19953_request_.JSC$19946_extraHeaders_=L.JSC$19953_extraHeaders_,Z=EXm(L.JSC$19951_channel_,
L.JSC$19953_hostPrefix_,L.JSC$19953_path_),n_(5),Gr(Z,"TYPE","xmlhttp"),nXQ(L.JSC$19953_request_,Z,!1,L.JSC$19953_hostPrefix_,!1))};
_.t=IAm.prototype;_.t.JSC$19953_createXhrIo=function(L){return this.JSC$19951_channel_.JSC$19953_createXhrIo(L)};
_.t.abort=function(){this.JSC$19953_request_&&(this.JSC$19953_request_.cancel(),this.JSC$19953_request_=null);this.JSC$19953_lastStatusCode_=-1};
_.t.JSC$19953_isClosed=function(){return!1};
_.t.JSC$19953_onRequestData=function(L,Z){this.JSC$19953_lastStatusCode_=L.JSC$19946_lastStatusCode_;if(this.state_==0)if(this.JSC$19951_channelDebug_.debug("TestConnection: Got data for stage 1"),Z){try{var N=this.JSC$19951_parser_.parse(Z)}catch(S){PMs(this.JSC$19951_channel_,this);return}this.JSC$19953_hostPrefix_=N[0];this.blockedPrefix_=N[1]}else this.JSC$19951_channelDebug_.debug("TestConnection: Null responseText"),PMs(this.JSC$19951_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(n_(7),Date.now()):Z=="11111"?(n_(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19953_lastStatusCode_=200,this.JSC$19953_request_.cancel(),this.JSC$19951_channelDebug_.debug("Test connection succeeded; using streaming connection"),n_(12),j3y(this.JSC$19951_channel_,this,!0)):(n_(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.t.JSC$19953_onRequestComplete=function(){this.JSC$19953_lastStatusCode_=this.JSC$19953_request_.JSC$19946_lastStatusCode_;this.JSC$19953_request_.JSC$19946_successful_?this.state_==0?(this.JSC$19951_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,aAv(this)):(this.state_=2,huv(this))):this.state_==2&&(this.JSC$19951_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19951_channelDebug_.debug("Test connection succeeded; using streaming connection"),
n_(12),j3y(this.JSC$19951_channel_,this,!0)):(this.JSC$19951_channelDebug_.debug("Test connection failed; not using streaming"),n_(11),j3y(this.JSC$19951_channel_,this,!1))):(this.JSC$19951_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?n_(9):this.state_==2&&n_(10),PMs(this.JSC$19951_channel_,this,this.JSC$19953_request_.getLastError()))};
_.t.JSC$19953_shouldUseSecondaryDomains=function(){return this.JSC$19951_channel_.JSC$19953_shouldUseSecondaryDomains()};
_.t.isActive=function(){return this.JSC$19951_channel_.isActive()};
_.t.notifyServerReachabilityEvent=function(L){this.JSC$19951_channel_.notifyServerReachabilityEvent(L)};var kl=function(L,Z,N){this.state_=1;this.JSC$19954_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19954_channelDebug_=new KE;this.JSC$19954_parser_=new q$5;this.firstTestResults_=L||null;this.secondTestResults_=Z!=null?Z:null;this.asyncTest_=N||!1},pSk=function(L,Z){this.JSC$19956_mapId=L;
this.map=Z;this.context=null};
_.t=kl.prototype;_.t.JSC$19958_extraHeaders_=null;_.t.JSC$19958_extraParams_=null;_.t.forwardChannelRequest_=null;_.t.JSC$19958_backChannelRequest_=null;_.t.JSC$19958_path_=null;_.t.JSC$19958_forwardChannelUri_=null;_.t.JSC$19958_backChannelUri_=null;_.t.JSC$19958_hostPrefix_=null;_.t.JSC$19958_nextRid_=0;_.t.JSC$19958_nextMapId_=0;_.t.handler_=null;_.t.JSC$19958_forwardChannelTimerId_=null;_.t.JSC$19958_backChannelTimerId_=null;_.t.JSC$19958_deadBackChannelTimerId_=null;_.t.connectionTest_=null;
_.t.useChunked_=null;_.t.JSC$19958_lastArrayId_=-1;_.t.JSC$19958_lastPostResponseArrayId_=-1;_.t.JSC$19958_lastStatusCode_=-1;_.t.JSC$19958_forwardChannelRetryCount_=0;_.t.JSC$19958_backChannelRetryCount_=0;_.t.JSC$19958_channelVersion_=8;var zuq={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},mNy=function(L,Z,N,S){_.vn.call(this,"timingevent",L);this.size=Z;this.rtt=N;this.retries=S};
_.Qk(mNy,_.vn);var Jyc=function(L){_.vn.call(this,"serverreachability",L)};
_.Qk(Jyc,_.vn);kl.prototype.connect=function(L,Z,N,S,u){this.JSC$19954_channelDebug_.debug("connect()");n_(0);this.JSC$19958_path_=Z;this.JSC$19958_extraParams_=N||{};S&&u!==void 0&&(this.JSC$19958_extraParams_.OSID=S,this.JSC$19958_extraParams_.OAID=u);this.asyncTest_?(nE((0,_.hr)(this.connectTest_,this,L),100),CMq(this)):this.connectTest_(L)};
kl.prototype.disconnect=function(){this.JSC$19954_channelDebug_.debug("disconnect()");ryQ(this);if(this.state_==3){var L=this.JSC$19958_nextRid_++,Z=this.JSC$19958_forwardChannelUri_.clone();_.Z4(Z,"SID",this.sid_);_.Z4(Z,"RID",L);_.Z4(Z,"TYPE","terminate");Q3P(this,Z);L=new K_(this,this.JSC$19954_channelDebug_,this.sid_,L);L.JSC$19946_type_=2;L.JSC$19946_baseUri_=_.M6(Z.clone());(new Image).src=L.JSC$19946_baseUri_.toString();L.JSC$19946_requestStartTime_=Date.now();KAc(L)}XSm(this)};
kl.prototype.connectTest_=function(L){this.JSC$19954_channelDebug_.debug("connectTest_()");this.connectionTest_=new IAm(this,this.JSC$19954_channelDebug_);this.connectionTest_.JSC$19953_extraHeaders_=this.JSC$19958_extraHeaders_;this.connectionTest_.JSC$19951_parser_=this.JSC$19954_parser_;this.connectionTest_.connect(L)};
var CMq=function(L){L.JSC$19954_channelDebug_.debug("connectChannel_()");L.JSC$19958_ensureInState_(1,0);L.JSC$19958_forwardChannelUri_=dNm(L,L.JSC$19958_path_);Ayw(L)},ryQ=function(L){L.connectionTest_&&(L.connectionTest_.abort(),L.connectionTest_=null);
L.JSC$19958_backChannelRequest_&&(L.JSC$19958_backChannelRequest_.cancel(),L.JSC$19958_backChannelRequest_=null);L.JSC$19958_backChannelTimerId_&&(_.iH.clearTimeout(L.JSC$19958_backChannelTimerId_),L.JSC$19958_backChannelTimerId_=null);HK0(L);L.forwardChannelRequest_&&(L.forwardChannelRequest_.cancel(),L.forwardChannelRequest_=null);L.JSC$19958_forwardChannelTimerId_&&(_.iH.clearTimeout(L.JSC$19958_forwardChannelTimerId_),L.JSC$19958_forwardChannelTimerId_=null)},Bek=function(L,Z){if(L.state_==0)throw Error("Vk");
L.JSC$19954_outgoingMaps_.length==1E3&&L.JSC$19954_parser_.stringify(Z);L.JSC$19954_outgoingMaps_.push(new pSk(L.JSC$19958_nextMapId_++,Z));L.state_!=2&&L.state_!=3||Ayw(L)};
kl.prototype.JSC$19953_isClosed=function(){return this.state_==0};
kl.prototype.getState=function(){return this.state_};
var Ayw=function(L){L.forwardChannelRequest_||L.JSC$19958_forwardChannelTimerId_||(L.JSC$19958_forwardChannelTimerId_=nE((0,_.hr)(L.JSC$19958_onStartForwardChannelTimer_,L),0),L.JSC$19958_forwardChannelRetryCount_=0)};
kl.prototype.JSC$19958_onStartForwardChannelTimer_=function(L){this.JSC$19958_forwardChannelTimerId_=null;xN8(this,L)};
var xN8=function(L,Z){L.JSC$19954_channelDebug_.debug("startForwardChannel_");if(L.state_==1){if(!Z){L.JSC$19954_channelDebug_.debug("open_()");L.JSC$19958_nextRid_=Math.floor(Math.random()*1E5);Z=L.JSC$19958_nextRid_++;var N=new K_(L,L.JSC$19954_channelDebug_,"",Z);N.JSC$19946_extraHeaders_=L.JSC$19958_extraHeaders_;var S=qjm(L),u=L.JSC$19958_forwardChannelUri_.clone();_.Z4(u,"RID",Z);_.Z4(u,"CVER","1");Q3P(L,u);cyw(N,u,S);L.forwardChannelRequest_=N;L.state_=2}}else L.state_==3&&(Z?Ly0(L,Z):L.JSC$19954_outgoingMaps_.length==
0?L.JSC$19954_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):L.forwardChannelRequest_||(Ly0(L),L.JSC$19954_channelDebug_.debug("startForwardChannel_ finished, sent request")))},Ly0=function(L,Z){if(Z)if(L.JSC$19958_channelVersion_>6){L.JSC$19954_outgoingMaps_=L.pendingMaps_.concat(L.JSC$19954_outgoingMaps_);
L.pendingMaps_.length=0;var N=L.JSC$19958_nextRid_-1;Z=qjm(L)}else N=Z.JSC$19944_rid_,Z=Z.JSC$19946_postData_;else N=L.JSC$19958_nextRid_++,Z=qjm(L);var S=L.JSC$19958_forwardChannelUri_.clone();_.Z4(S,"SID",L.sid_);_.Z4(S,"RID",N);_.Z4(S,"AID",L.JSC$19958_lastArrayId_);Q3P(L,S);N=new K_(L,L.JSC$19954_channelDebug_,L.sid_,N,L.JSC$19958_forwardChannelRetryCount_+1);N.JSC$19946_extraHeaders_=L.JSC$19958_extraHeaders_;N.setTimeout(1E4+Math.round(1E4*Math.random()));L.forwardChannelRequest_=N;cyw(N,S,
Z)},Q3P=function(L,Z){L.handler_&&(L=L.handler_.JSC$19965_getAdditionalParams())&&_.Py.forEach(L,function(N,S){_.Z4(Z,S,N)})},qjm=function(L){var Z=Math.min(L.JSC$19954_outgoingMaps_.length,1E3),N=["count="+Z];
if(L.JSC$19958_channelVersion_>6&&Z>0){var S=L.JSC$19954_outgoingMaps_[0].JSC$19956_mapId;N.push("ofs="+S)}else S=0;for(var u={},T=0;T<Z;u={mapId$jscomp$3:void 0},T++){u.mapId$jscomp$3=L.JSC$19954_outgoingMaps_[T].JSC$19956_mapId;var W=L.JSC$19954_outgoingMaps_[T].map;u.mapId$jscomp$3=L.JSC$19958_channelVersion_<=6?T:u.mapId$jscomp$3-S;try{_.Py.forEach(W,function(V){return function(M,G){N.push("req"+V.mapId$jscomp$3+"_"+G+"="+encodeURIComponent(M))}}(u))}catch(V){N.push("req"+u.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}L.pendingMaps_=L.pendingMaps_.concat(L.JSC$19954_outgoingMaps_.splice(0,Z));
return N.join("&")},ZDv=function(L){L.JSC$19958_backChannelRequest_||L.JSC$19958_backChannelTimerId_||(L.JSC$19958_backChannelAttemptId_=1,L.JSC$19958_backChannelTimerId_=nE((0,_.hr)(L.JSC$19958_onStartBackChannelTimer_,L),0),L.JSC$19958_backChannelRetryCount_=0)},Swm=function(L){if(L.JSC$19958_backChannelRequest_||L.JSC$19958_backChannelTimerId_||L.JSC$19958_backChannelRetryCount_>=3)return!1;
L.JSC$19954_channelDebug_.debug("Going to retry GET");L.JSC$19958_backChannelAttemptId_++;L.JSC$19958_backChannelTimerId_=nE((0,_.hr)(L.JSC$19958_onStartBackChannelTimer_,L),NVP(L,L.JSC$19958_backChannelRetryCount_));L.JSC$19958_backChannelRetryCount_++;return!0};
kl.prototype.JSC$19958_onStartBackChannelTimer_=function(){this.JSC$19958_backChannelTimerId_=null;this.JSC$19954_channelDebug_.debug("Creating new HttpRequest");this.JSC$19958_backChannelRequest_=new K_(this,this.JSC$19954_channelDebug_,this.sid_,"rpc",this.JSC$19958_backChannelAttemptId_);this.JSC$19958_backChannelRequest_.JSC$19946_extraHeaders_=this.JSC$19958_extraHeaders_;this.JSC$19958_backChannelRequest_.JSC$19946_readyStateChangeThrottleMs_=0;var L=this.JSC$19958_backChannelUri_.clone();_.Z4(L,
"RID","rpc");_.Z4(L,"SID",this.sid_);_.Z4(L,"CI",this.useChunked_?"0":"1");_.Z4(L,"AID",this.JSC$19958_lastArrayId_);Q3P(this,L);_.Z4(L,"TYPE","xmlhttp");nXQ(this.JSC$19958_backChannelRequest_,L,!0,this.JSC$19958_hostPrefix_,!1);this.JSC$19954_channelDebug_.debug("New Request created")};
var j3y=function(L,Z,N){L.JSC$19954_channelDebug_.debug("Test Connection Finished");L.useChunked_=L.secondTestResults_==null?N:!L.secondTestResults_;L.JSC$19958_lastStatusCode_=Z.JSC$19953_lastStatusCode_;L.asyncTest_||CMq(L)},PMs=function(L,Z){L.JSC$19954_channelDebug_.debug("Test Connection Failed");
L.JSC$19958_lastStatusCode_=Z.JSC$19953_lastStatusCode_;f_(L,2)};
kl.prototype.JSC$19953_onRequestData=function(L,Z){if(this.state_!=0&&(this.JSC$19958_backChannelRequest_==L||this.forwardChannelRequest_==L))if(this.JSC$19958_lastStatusCode_=L.JSC$19946_lastStatusCode_,this.forwardChannelRequest_==L&&this.state_==3)if(this.JSC$19958_channelVersion_>7){try{var N=this.JSC$19954_parser_.parse(Z)}catch(S){N=null}if(Array.isArray(N)&&N.length==3)if(Z=N,Z[0]==0)a:if(this.JSC$19954_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19958_backChannelTimerId_)this.JSC$19954_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19958_backChannelRequest_)if(this.JSC$19958_backChannelRequest_.JSC$19946_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19946_requestStartTime_)HK0(this),this.JSC$19958_backChannelRequest_.cancel(),this.JSC$19958_backChannelRequest_=null;else break a;else this.JSC$19954_channelDebug_.warning("We do not have a BackChannel established");Swm(this);n_(19)}else this.JSC$19958_lastPostResponseArrayId_=Z[1],L=this.JSC$19958_lastPostResponseArrayId_-this.JSC$19958_lastArrayId_,0<
L&&(Z=Z[2],this.JSC$19954_channelDebug_.debug(Z+" bytes (in "+L+" arrays) are outstanding on the BackChannel"),Z<37500&&this.useChunked_&&this.JSC$19958_backChannelRetryCount_==0&&!this.JSC$19958_deadBackChannelTimerId_&&(this.JSC$19958_deadBackChannelTimerId_=nE((0,_.hr)(this.JSC$19958_onBackChannelDead_,this),6E3)));else this.JSC$19954_channelDebug_.debug("Bad POST response data returned"),f_(this,11)}else Z!="y2f%"&&(this.JSC$19954_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
f_(this,11));else this.JSC$19958_backChannelRequest_==L&&HK0(this),_.V_(Z)||(L=this.JSC$19954_parser_.parse(Z),this.onInput_(L))};
kl.prototype.JSC$19958_onBackChannelDead_=function(){this.JSC$19958_deadBackChannelTimerId_!=null&&(this.JSC$19958_deadBackChannelTimerId_=null,this.JSC$19958_backChannelRequest_.cancel(),this.JSC$19958_backChannelRequest_=null,Swm(this),n_(20))};
var HK0=function(L){L.JSC$19958_deadBackChannelTimerId_!=null&&(_.iH.clearTimeout(L.JSC$19958_deadBackChannelTimerId_),L.JSC$19958_deadBackChannelTimerId_=null)};
kl.prototype.JSC$19953_onRequestComplete=function(L){this.JSC$19954_channelDebug_.debug("Request complete");if(this.JSC$19958_backChannelRequest_==L){HK0(this);this.JSC$19958_backChannelRequest_=null;var Z=2}else if(this.forwardChannelRequest_==L)this.forwardChannelRequest_=null,Z=1;else return;this.JSC$19958_lastStatusCode_=L.JSC$19946_lastStatusCode_;if(this.state_!=0)if(L.JSC$19946_successful_)if(Z==1){Z=L.JSC$19946_postData_?L.JSC$19946_postData_.length:0;L=Date.now()-L.JSC$19946_requestStartTime_;
var N=$Ns;N.dispatchEvent(new mNy(N,Z,L,this.JSC$19958_forwardChannelRetryCount_));Ayw(this);this.handler_&&this.handler_.JSC$19965_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else ZDv(this);else{N=L.getLastError();if(N==3||N==7||N==0&&this.JSC$19958_lastStatusCode_>0)this.JSC$19954_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19954_channelDebug_.debug("Maybe retrying, last error: "+lA8(N,this.JSC$19958_lastStatusCode_));var S;if(S=Z==1)this.forwardChannelRequest_||
this.JSC$19958_forwardChannelTimerId_||this.state_==1||this.JSC$19958_forwardChannelRetryCount_>=2?S=!1:(this.JSC$19954_channelDebug_.debug("Going to retry POST"),this.JSC$19958_forwardChannelTimerId_=nE((0,_.hr)(this.JSC$19958_onStartForwardChannelTimer_,this,L),NVP(this,this.JSC$19958_forwardChannelRetryCount_)),this.JSC$19958_forwardChannelRetryCount_++,S=!0);if(S||Z==2&&Swm(this))return;this.JSC$19954_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19954_channelDebug_.debug("Error: HTTP request failed");
switch(N){case 1:f_(this,5);break;case 4:f_(this,10);break;case 3:f_(this,6);break;case 7:f_(this,12);break;default:f_(this,2)}}};
var NVP=function(L,Z){var N=5E3+Math.floor(Math.random()*1E4);L.isActive()||(L.JSC$19954_channelDebug_.debug("Inactive channel"),N*=2);return N*Z};
kl.prototype.onInput_=function(L){for(var Z=0;Z<L.length;Z++){var N=L[Z];this.JSC$19958_lastArrayId_=N[0];N=N[1];this.state_==2?N[0]=="c"?(this.sid_=N[1],this.JSC$19958_hostPrefix_=N[2],N=N[3],N!=null?this.JSC$19958_channelVersion_=N:this.JSC$19958_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19965_channelOpened(),this.JSC$19958_backChannelUri_=EXm(this,this.JSC$19958_hostPrefix_,this.JSC$19958_path_),ZDv(this)):N[0]=="stop"&&f_(this,7):this.state_==3&&(N[0]=="stop"?f_(this,7):
N[0]!="noop"&&this.handler_&&this.handler_.JSC$19965_channelHandleArray(N),this.JSC$19958_backChannelRetryCount_=0)}};
kl.prototype.JSC$19958_ensureInState_=function(L){if(!_.p1(arguments,this.state_))throw Error("Wk`"+this.state_);};
var f_=function(L,Z){L.JSC$19954_channelDebug_.info("Error code "+Z);if(Z==2||Z==9){var N=null;L.handler_&&(N=null);var S=(0,_.hr)(L.testGoogleComCallback_,L);N||(N=new _.j9("//www.google.com/images/cleardot.gif"),_.M6(N));ess(N.toString(),1E4,S)}else n_(2);L.onError_(Z)};
kl.prototype.testGoogleComCallback_=function(L){L?(this.JSC$19954_channelDebug_.info("Successfully pinged google.com"),n_(2)):(this.JSC$19954_channelDebug_.info("Failed to ping google.com"),n_(1),this.onError_(8))};
kl.prototype.onError_=function(L){this.JSC$19954_channelDebug_.debug("HttpChannel: error - "+L);this.state_=0;this.handler_&&this.handler_.JSC$19965_channelError(L);XSm(this);ryQ(this)};
var XSm=function(L){L.state_=0;L.JSC$19958_lastStatusCode_=-1;if(L.handler_)if(L.pendingMaps_.length==0&&L.JSC$19954_outgoingMaps_.length==0)L.handler_.JSC$19965_channelClosed();else{L.JSC$19954_channelDebug_.debug("Number of undelivered maps, pending: "+L.pendingMaps_.length+", outgoing: "+L.JSC$19954_outgoingMaps_.length);var Z=_.mh(L.pendingMaps_),N=_.mh(L.JSC$19954_outgoingMaps_);L.pendingMaps_.length=0;L.JSC$19954_outgoingMaps_.length=0;L.handler_.JSC$19965_channelClosed(Z,N)}},dNm=function(L,
Z){Z=s38(L,null,Z);
L.JSC$19954_channelDebug_.debug("GetForwardChannelUri: "+Z);return Z},EXm=function(L,Z,N){Z=s38(L,L.JSC$19953_shouldUseSecondaryDomains()?Z:null,N);
L.JSC$19954_channelDebug_.debug("GetBackChannelUri: "+Z);return Z},s38=function(L,Z,N){var S=_.qG(N);
if(S.JSC$10031_domain_!="")Z&&_.ix(S,Z+"."+S.JSC$10031_domain_),_.ux(S,S.JSC$10031_port_);else{var u=window.location;S=x6v(u.protocol,Z?Z+"."+u.hostname:u.hostname,+u.port,N)}L.JSC$19958_extraParams_&&_.Py.forEach(L.JSC$19958_extraParams_,function(T,W){_.Z4(S,W,T)});
_.Z4(S,"VER",L.JSC$19958_channelVersion_);Q3P(L,S);return S};
kl.prototype.JSC$19953_createXhrIo=function(L){if(L)throw Error("Tk");L=new _.I8;L.JSC$9795_withCredentials_=!1;return L};
kl.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
kl.prototype.notifyServerReachabilityEvent=function(L){var Z=$Ns;Z.dispatchEvent(new Jyc(Z,L))};
kl.prototype.JSC$19953_shouldUseSecondaryDomains=function(){return!1};
new i2m;var iDk=function(){};
_.t=iDk.prototype;_.t.JSC$19965_channelOpened=function(){};
_.t.JSC$19965_channelHandleArray=function(){};
_.t.JSC$19965_channelSuccess=function(){};
_.t.JSC$19965_channelError=function(){};
_.t.JSC$19965_channelClosed=function(){};
_.t.JSC$19965_getAdditionalParams=function(){return{}};
_.t.isActive=function(){return!0};var uPy=function(L){L.front_.length===0&&(L.front_=L.back_,L.front_.reverse(),L.back_=[])};
_.t=a78.prototype;_.t.enqueue=function(L){this.back_.push(L)};
_.t.peek=function(){uPy(this);return _.aF(this.front_)};
_.t.getCount=function(){return this.front_.length+this.back_.length};
_.t.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.t.clear=function(){this.front_=[];this.back_=[]};
_.t.contains=function(L){return _.p1(this.front_,L)||_.p1(this.back_,L)};
_.t.remove=function(L){var Z=this.front_;var N=Array.prototype.lastIndexOf.call(Z,L,Z.length-1);N>=0?(_.eAs(Z,N),Z=!0):Z=!1;return Z||_.zB(this.back_,L)};
_.t.getValues=function(){for(var L=[],Z=this.front_.length-1;Z>=0;--Z)L.push(this.front_[Z]);Z=this.back_.length;for(var N=0;N<Z;++N)L.push(this.back_[N]);return L};var yo=function(L){this.JSC$19969_map_=new _.$a;this.size=0;L&&this.addAll(L)},TVm=function(L){var Z=typeof L;
return Z=="object"&&L||Z=="function"?"o"+_.Hs(L):Z.charAt(0)+L};
_.t=yo.prototype;_.t.getCount=function(){return this.JSC$19969_map_.size};
_.t.add=function(L){this.JSC$19969_map_.set(TVm(L),L);this.size=this.JSC$19969_map_.size};
_.t.addAll=function(L){L=_.N6(L);for(var Z=L.length,N=0;N<Z;N++)this.add(L[N]);this.size=this.JSC$19969_map_.size};
_.t.removeAll=function(L){L=_.N6(L);for(var Z=L.length,N=0;N<Z;N++)this.remove(L[N]);this.size=this.JSC$19969_map_.size};
_.t.delete=function(L){L=this.JSC$19969_map_.remove(TVm(L));this.size=this.JSC$19969_map_.size;return L};
_.t.remove=function(L){return this.delete(L)};
_.t.clear=function(){this.JSC$19969_map_.clear();this.size=0};
_.t.isEmpty=function(){return this.JSC$19969_map_.size===0};
_.t.has=function(L){return this.JSC$19969_map_.containsKey(TVm(L))};
_.t.contains=function(L){return this.JSC$19969_map_.containsKey(TVm(L))};
_.t.getValues=function(){return this.JSC$19969_map_.getValues()};
_.t.values=function(){return this.JSC$19969_map_.values()};
_.t.clone=function(){return new yo(this)};
_.t.equals=function(L){return this.getCount()==HLv(L)&&tkP(this,L)};
var tkP=function(L,Z){var N=HLv(Z);if(L.getCount()>N)return!1;!(Z instanceof yo)&&N>5&&(Z=new yo(Z));return Bp8(L,function(S){var u=Z;return u.contains&&typeof u.contains=="function"?u.contains(S):u.containsValue&&typeof u.containsValue=="function"?u.containsValue(S):_.Jx(u)||typeof u==="string"?_.p1(u,S):_.Py.containsValue(u,S)})};
yo.prototype.__iterator__=function(){return this.JSC$19969_map_.__iterator__(!1)};
yo.prototype[Symbol.iterator]=function(){return this.values()};var ODq={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(L){return(this._clampValue(L)-this.min)/(this.max-this.min)},
_clampValue:function(L){return Math.min(this.max,Math.max(this.min,this._calcStep(L)))},
_calcStep:function(L){L=parseFloat(L);if(!this.step)return L;L=Math.round((L-this.min)/this.step);return this.step<1?L/(1/this.step)+this.min:L*this.step+this.min},
_validateValue:function(){var L=this._clampValue(this.value);this.value=this.oldValue=isNaN(L)?this.oldValue:L;return this.value!==L},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var Wys;var Vkv;_.DU({_template:function(){if(Vkv!==void 0)return Vkv;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Wys===void 0&&(Wys=document.createElement("template"));var S=Wys;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return Vkv=L},
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(){_.bN(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(L){L.keyCode===27&&(L.preventDefault(),this.close())},
_track:function(L){if(!this.persistent&&!this.disableSwipe)switch(L.preventDefault(),L.detail.state){case "start":this._trackStart(L);break;case "track":this._trackMove(L);break;case "end":this._trackEnd(L)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var L=this.$.contentContainer.getBoundingClientRect();this._savedWidth=L.width;this._translateOffset=this.position==="left"?L.left:L.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(L){this._trackDetails&&(this._translateDrawer(L.detail.dx+this._translateOffset),this._trackDetails.push({dx:L.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(L){if(this._trackDetails){var Z=L.detail.dx+this._translateOffset,N=this.getWidth();Z=this.position==="left"?Z>=0||Z<=-N:Z<=0||Z>=N;if(!Z){var S=this._trackDetails;this._trackDetails=null;this._flingDrawer(L,S);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}N/=2;L.detail.dx<-N?this.opened=this.position==="right":L.detail.dx>N&&(this.opened=this.position==="left");Z?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(L,Z){for(var N=Date.now(),S=N-100,u,T=0,W=Z.length-1;T<=W;){var V=T+W>>1,M=Z[V];M.timeStamp>=S?(u=M,W=V-1):T=V+1}return u?(L.detail.dx-u.dx)/(N-u.timeStamp||1):0},
_flingDrawer:function(L,Z){Z=this._calculateVelocity(L,Z);if(!(Math.abs(Z)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;L=L.detail.dx+this._translateOffset;var N=this.getWidth(),S=this.position==="left",u=Z>0;u?(Z=Math.max(Z,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(Z=Math.min(Z,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");Z=this._FLING_INITIAL_SLOPE*(!u&&S?-(L+N):u&&!S?N-L:-L)/Z;this._styleTransitionDuration(Z);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,Z)}},
_styleTransitionDuration:function(L){this.style.transitionDuration=L+"ms";this.$.contentContainer.style.transitionDuration=L+"ms";this.$.scrim.style.transitionDuration=L+"ms"},
_styleTransitionTimingFunction:function(L){this.$.contentContainer.style.transitionTimingFunction=L;this.$.scrim.style.transitionTimingFunction=L},
_translateDrawer:function(L){var Z=this.getWidth();this.position==="left"?(L=Math.max(-Z,Math.min(L,0)),this.$.scrim.style.opacity=1+L/Z):(L=Math.max(0,Math.min(L,Z)),this.$.scrim.style.opacity=1-L/Z);this.translate3d(L+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var L=this._drawerState;L===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;L!==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=""),L!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var L=_.g0(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"])');L.length>0?(this._firstTabStop=L[0],this._lastTabStop=L[L.length-1]):
this._lastTabStop=this._firstTabStop=null;(L=this.getAttribute("tabindex"))&&parseInt(L,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(L){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||L.keyCode!==9||(L.shiftKey?this._firstTabStop&&_.g0(L).localTarget===this._firstTabStop&&(L.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.g0(L).localTarget===this._lastTabStop&&(L.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(L,Z){this.toggleClass("visible",L&&!Z,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 bDQ;var Mkv;_.DU({_template:function(){if(Mkv!==void 0)return Mkv;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;bDQ===void 0&&(bDQ=document.createElement("template"));var S=bDQ;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return Mkv=L},
is:"tp-yt-paper-progress",behaviors:[ODq],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(L){this.toggleClass("indeterminate",L,this.$.primaryProgress)},
_transformProgress:function(L,Z){L.style.transform=L.style.webkitTransform="scaleX("+Z/100+")"},
_mainRatioChanged:function(L){this._transformProgress(this.$.primaryProgress,L)},
_progressChanged:function(L,Z,N,S,u){L=this._clampValue(L);Z=this._clampValue(Z);var T=this._calcRatio(L)*100,W=this._calcRatio(Z)*100;this._setSecondaryRatio(T);this._transformProgress(this.$.secondaryProgress,T);this._transformProgress(this.$.primaryProgress,W);this.secondaryProgress=L;u?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",Z);this.setAttribute("aria-valuemin",N);this.setAttribute("aria-valuemax",S)},
_disabledChanged:function(L){this.setAttribute("aria-disabled",L?"true":"false")},
_hideSecondaryProgress:function(L){return L===0}});var Sqv;var iNq;var uow=function(){};
_.t=uow.prototype;_.t.registered=function(){};
_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t._tapHandler=function(){};
_.t._focusChanged=function(){};
_.t._detectKeyboardFocus=function(){};
_.t._userActivate=function(){};
_.t._upHandler=function(){};
_.t._spaceKeyDownHandler=function(){};
_.t._spaceKeyUpHandler=function(){};
_.t._asyncClick=function(){};
_.t._pressedChanged=function(){};
_.t._ariaActiveAttributeChanged=function(){};
_.t._activeChanged=function(){};
_.t._controlStateChanged=function(){};
_.t._changedButtonState=function(){};
_.t._focusBlurHandler=function(){};
_.t._disabledChanged=function(){};
_.t._changedControlState=function(){};
_.t._buttonStateChanged=function(){};
_.t._downHandler=function(){};
_.t.ensureRipple=function(){};
_.t.getRipple=function(){};
_.t.hasRipple=function(){};
_.t._noinkChanged=function(){};
_.t._calcRatio=function(){};
_.t._clampValue=function(){};
_.t._calcStep=function(){};
_.t._validateValue=function(){};
_.t._update=function(){};
_.t._setImmediateValue=function(){};
_.t._setExpand=function(){};
_.t._setDragging=function(){};
_.t._setTransiting=function(){};
_.t._setMarkers=function(){};
_.t._setPressed=function(){};
_.t._setPointerDown=function(){};
_.t._setReceivedFocusFromKeyboard=function(){};
_.t._setFocused=function(){};
_.t._setRatio=function(){};
uow=_.DU({_template:function(){if(iNq!==void 0)return iNq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Sqv===void 0&&(Sqv=document.createElement("template"));var S=Sqv;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return iNq=L},
is:"tp-yt-paper-slider",behaviors:[_.Ub,_.dE,_.BIq,ODq],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&&_.Xl(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(L,Z,N){this.setAttribute("aria-valuemin",Z);this.setAttribute("aria-valuemax",N);this.setAttribute("aria-valuenow",L);this._positionKnob(this._calcRatio(L)*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(L){this._setImmediateValue(this._calcStep(this._calcKnobPosition(L)));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(L){return(this.max-this.min)*L/100+this.min},
_onTrack:function(L){L.stopPropagation();switch(L.detail.state){case "start":this._trackStart(L);break;case "track":this._trackX(L);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(L){this.dragging||this._trackStart(L);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,L.detail.dx*(this._isRTL?-1:1)));L=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(L);L=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(L+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var L=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;L.transform=L.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(L){this._expandKnob();L.preventDefault();this.focus()},
_bartrack:function(L){this._allowBarEvent(L)&&this._onTrack(L)},
_barclick:function(L){this._w=this.$.sliderBar.offsetWidth;var Z=this.$.sliderBar.getBoundingClientRect();Z=(L.detail.x-Z.left)/this._w*100;this._isRTL&&(Z=100-Z);var N=this.ratio;this._setTransiting(!0);this._positionKnob(Z);N===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
L.preventDefault();this.focus()},
_bardown:function(L){this._allowBarEvent(L)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(L))},
_knobTransitionEnd:function(L){L.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(L,Z,N,S){S||this._setMarkers([]);Z=Math.round((N-Z)/this.step);Z>L&&(Z=L);if(Z<0||!isFinite(Z))Z=0;this._setMarkers(Array(Z))},
_mergeClasses:function(L){return Object.keys(L).filter(function(Z){return L[Z]}).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(L){return!this.ignoreBarTouch||L.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(L){this._isRTL?this._incrementKey(L):this._decrementKey(L)},
_rightKey:function(L){this._isRTL?this._decrementKey(L):this._incrementKey(L)},
_incrementKey:function(L){this.disabled||(L.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),L.preventDefault())},
_decrementKey:function(L){this.disabled||(L.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),L.preventDefault())},
_changeValue:function(L){this.value=L.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(L){L.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.H7q._createRipple.call(this)},
_focusedChanged:function(L){L&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=L?"":"none",this._ripple.holdDown=L)}});var TLv;var trQ;var wN=null,ONY=function(){};
_.t=ONY.prototype;_.t.fit=function(){};
_.t._discoverInfo=function(){};
_.t.resetFit=function(){};
_.t.refit=function(){};
_.t.position=function(){};
_.t.constrain=function(){};
_.t._sizeDimension=function(){};
_.t.__sizeDimension=function(){};
_.t.center=function(){};
_.t.__getNormalizedRect=function(){};
_.t.__getOffscreenArea=function(){};
_.t.__getPosition=function(){};
_.t.notifyResize=function(){};
_.t.assignParentResizable=function(){};
_.t.stopResizeNotificationsFor=function(){};
_.t._subscribeIronResize=function(){};
_.t._unsubscribeIronResize=function(){};
_.t.resizerShouldNotify=function(){};
_.t._onDescendantIronResize=function(){};
_.t._fireResize=function(){};
_.t._onIronRequestResizeNotifications=function(){};
_.t._parentResizableChanged=function(){};
_.t._notifyDescendant=function(){};
_.t._requestResizeNotifications=function(){};
_.t._findParent=function(){};
_.t.toggle=function(){};
_.t.open=function(){};
_.t.close=function(){};
_.t.cancel=function(){};
_.t.invalidateTabbables=function(){};
_.t._ensureSetup=function(){};
_.t._canceledChanged=function(){};
_.t._withBackdropChanged=function(){};
_.t._prepareRenderOpened=function(){};
_.t._finishRenderOpened=function(){};
_.t._finishRenderClosed=function(){};
_.t._preparePositioning=function(){};
_.t._finishPositioning=function(){};
_.t._applyFocus=function(){};
_.t._onCaptureClick=function(){};
_.t._onCaptureFocus=function(){};
_.t._onCaptureEsc=function(){};
_.t._onCaptureTab=function(){};
_.t._onIronResize=function(){};
_.t._onNodesChange=function(){};
_.t.__ensureFirstLastFocusables=function(){};
_.t.__openedChanged=function(){};
_.t.__deraf=function(){};
_.t.__updateScrollObservers=function(){};
_.t.__addScrollListeners=function(){};
_.t.__removeScrollListeners=function(){};
_.t.__isValidScrollAction=function(){};
_.t.__onCaptureScroll=function(){};
_.t.__saveScrollPosition=function(){};
_.t.__restoreScrollPosition=function(){};
_.t._setCanceled=function(){};
ONY=_.DU({_template:function(){if(trQ!==void 0)return trQ;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;TLv===void 0&&(TLv=document.createElement("template"));var S=TLv;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);return trQ=L},
is:"tp-yt-paper-toast",behaviors:[_.Zs],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(){_.Ue._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.HD.requestAvailability()},
show:function(L){typeof L=="string"&&(L={text:L});for(var Z in L)Z.indexOf("_")===0?_.Ue._warn('The property "'+Z+'" is private and was not set.'):Z in this?this[Z]=L[Z]:_.Ue._warn('The property "'+Z+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(L){L&&L.target===this&&L.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(wN&&wN!==this&&wN.close(),wN=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):wN===this&&(wN=null);_.LT._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(L){this.positionTarget=L},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var Wbv=new _.S5("disablePersonalizationAction");var emk=new _.S5("showDmaConsentFlowCommand");var IIg=new _.S5("showMmgNoticeCommand");var Vrk=new _.S5("saveConsentAction");var bNY=function(L){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.p8(L)};
_.f(bNY,_.On);var Mrc=_.X6A(bNY);var ggP=new _.S5("updateTopbarAvatarAction");var G9v=new _.S5("channelHandleValidationResultRenderer");var Fbg=new _.S5("generateHandleFromNameResultRenderer");var $1Q=new _.S5("channelHandleInputRenderer");var D18=new _.S5("copyLinkRenderer");var lHm=new _.S5("timedCommand");var vgv=new _.S5("clearCookieAction");var og5=new _.S5("getMultiPageMenuAction");var RBg=new _.S5("addToGuideSectionAction"),cIs=new _.S5("removeFromGuideSectionAction");var ngm=new _.S5("updateNotificationsUnseenCountAction");var Kbv=new _.S5("resetChannelUnreadCountCommand");var fHg=new _.S5("resetSubscriptionsUnreadDotCommand");var k90=new _.S5("selectLanguageCommand");var QAY=new _.S5("sendFeedbackAction");var yIy=new _.S5("uploadImageToScottyCommand");var wAc=new _.S5("registerPromoCommand");var U1c=new _.S5("setPushNotificationsEnabledCommand");var Yqs=new _.S5("desktopTopbarRenderer");var eB8=new _.S5("surveyFollowUpRenderer");var IH0=new _.S5("handlesClaimingRadioOptionRenderer");var d15=new _.S5("hotkeyDialogRenderer");var aHY=new _.S5("modifyReportFormCommand");var hBk=new _.S5("accountLinkCommand");var s9Q=new _.S5("accountUnlinkCommand");var j9Q=new _.S5("logAccountLinkingEventCommand");var Egg=new _.S5("guideCollapsibleEntryRenderer");var P7v=new _.S5("guideDownloadsEntryRenderer");var mHP=new _.S5("guideEntryRenderer");var pA8=new _.S5("getLocationCommand");var zB8=new _.S5("locationCollectionCommand");var m1Y=new _.S5("storiesItemViewModel");var JIg=new _.S5("addToRemoteQueueAction");var C7v=new _.S5("insertInRemoteQueueAction");var rIP=new _.S5("removeFromRemoteQueueAction");var Q9g=new _.S5("notificationRenderer");var $Ys=new _.S5("localWatchHistoryCommand");var XAv=new _.S5("pdgBuyFlowHeaderRenderer");var AIv=new _.S5("pdgColorSliderRenderer");var HNw=new _.S5("pdgCommentOptionRenderer");var BLw=new _.S5("pdgCommentPreviewRenderer");var x1Y=new _.S5("superVodSelectableItemButtonRenderer");var qqw=new _.S5("switchButtonRenderer");var LUy=new _.S5("upsellDialogRenderer");var ZJc=new _.S5("feedbackQuestionRenderer"),Nag=new _.S5("feedbackOptionRenderer");var SLs=new _.S5("sponsorshipsTierRenderer"),iJQ=new _.S5("sponsorshipsPromotionChannelRenderer");var u3q=new _.S5("simpleSurveyMessageRenderer");var Qnm=new _.S5("invokeInstrumentManagerAction");var Taq=new _.S5("logYpcFlowDismissCommand");var tq8=new _.S5("logYpcFlowStartCommand");var OJ5=new _.S5("unlimitedCreateFamilyEndpoint");var WUw=new _.S5("iconBadgeRenderer");var DQv=new _.S5("collaborativePlaylistVisibilityValidationRule");var Vqv=function(L){_.vn.call(this,"channelMessage");this.message=L};
_.f(Vqv,_.vn);var bJs=function(L){_.vn.call(this,"channelError");this.error=L};
_.f(bJs,_.vn);var Mqv={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"},g1P={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},Ge5={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},FUs={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},$Py={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var UQ=function(L){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 _.$a;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;L&&(this.id=L.id||L.name,this.name=L.name,this.clientName=L.clientName?L.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=L.app,this.type=L.type||"REMOTE_CONTROL",this.username=L.user||"",this.avatar=L.userAvatarUri||"",this.obfuscatedGaiaId=L.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=L.ownerObfuscatedGaiaId||"",this.castUserId=L.castUserId||"",this.theme=L.theme||"u",DPP(this,L.capabilities||""),lp5(this,
L.compatibleSenderThemes||""),v1k(this,L.experiments||""),this.remoteControllerUrl=L.remoteControllerUrl||"",this.localChannelEncryptionKey=L.localChannelEncryptionKey||"",this.deviceContext=L.deviceContext,this.brand=L.brand||"",this.model=L.model||"",this.year=L.year||0,this.os=L.os||"",this.osVersion=L.osVersion||"",this.chipset=L.chipset||"",this.mdxDialServerType=L.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=L.pairingType||"unknown",L=L.deviceInfo)&&(L=JSON.parse(L),this.brand=
L.brand||"",this.model=L.model||"",this.year=L.year||0,this.os=L.os||"",this.osVersion=L.osVersion||"",this.chipset=L.chipset||"",this.clientName=L.clientName?L.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=L.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
UQ.prototype.copy=function(){var L={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&&(L.brand=this.brand);
this.model&&(L.model=this.model);this.year&&(L.year=this.year);this.os&&(L.os=this.os);this.osVersion&&(L.osVersion=this.osVersion);this.chipset&&(L.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(L.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(L.mdxDialServerType=this.mdxDialServerType);L=new UQ(L);L.connected=this.connected;L.remoteControllerUrl=this.remoteControllerUrl;L.localChannelEncryptionKey=this.localChannelEncryptionKey;L.deviceContext=
this.deviceContext;L.castUserId=this.castUserId;return L};
UQ.prototype.equals=function(L){return L?this.id==L.id:!1};
var DPP=function(L,Z){L.capabilities.clear();_.A9(Z.split(","),_.T6(_.Py.contains,Mqv)).forEach(function(N){L.capabilities.add(N)})},lp5=function(L,Z){L.compatibleSenderThemes.clear();
_.A9(Z.split(","),_.T6(_.Py.contains,g1P)).forEach(function(N){L.compatibleSenderThemes.add(N)})},v1k=function(L,Z){L.experiments.clear();
Z.split(",").forEach(function(N){L.experiments.add(N)})};_.Qk(sby,_.ag);_.t=sby.prototype;_.t.JSC$20005_onTick_=function(){this.JSC$20003_interval_=Math.min(3E5,this.JSC$20003_interval_*2);this.JSC$20005_listener_();this.nextTickTime_&&this.start()};
_.t.start=function(){var L=this.JSC$20003_interval_+15E3*Math.random(),Z=this.delay_;Z.isActive()||Z.start(L);this.nextTickTime_=Date.now()+L};
_.t.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.t.isActive=function(){return this.delay_.isActive()};
_.t.reset=function(){this.delay_.stop();this.JSC$20003_interval_=5E3};_.Qk(fE,iDk);_.t=fE.prototype;_.t.subscribe=function(L,Z,N){return this.pubsub_.subscribe(L,Z,N)};
_.t.unsubscribe=function(L,Z,N){return this.pubsub_.unsubscribe(L,Z,N)};
_.t.unsubscribeByKey=function(L){return this.pubsub_.unsubscribeByKey(L)};
_.t.publish=function(L,Z){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.t.dispose=function(){this.JSC$20006_disposed_||(this.JSC$20006_disposed_=!0,_.W4(this.pubsub_),this.disconnect(),_.W4(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20006_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.xP({})})};
_.t.isDisposed=function(){return this.JSC$20006_disposed_};
_.t.connect=function(L,Z,N){var S=this,u,T,W,V;return _.b(function(M){if(M.nextAddress==1)return _.Ks(M,2),S.useAsyncBrowserChannelHandler_?M.yield(S.connectPromise_,2):M.jumpTo(2);_.ns(M);if(S.JSC$20006_disposed_||S.JSC$20006_channel_&&S.JSC$20006_channel_.getState()==2)return M.return();S.sCookie_="";S.reconnectTimer_.stop();S.connectionParams_=L||null;S.connectUi_=Z||0;u=S.JSC$20006_pathPrefix_+"/test";T=S.JSC$20006_pathPrefix_+"/bind";W=new kl(N?N.firstTestResults:null,N?N.secondTestResults:null,
S.enableAsyncTest_);if(V=S.JSC$20006_channel_)V.handler_=null;W.handler_=S;S.JSC$20006_channel_=W;if(S.useAsyncBrowserChannelHandler_)return S.connectPromise_=o1s(S).then(function(){return Rc0(S,u,T,V,N)}),M.return(S.connectPromise_.then(function(){S.connectPromise_=_.xP()}));
Rc0(S,u,T,V,N);return _.kS(M,0)})};
var Rc0=function(L,Z,N,S,u){cks(L);if(L.JSC$20006_channel_){var T=_.X7("ID_TOKEN"),W=L.JSC$20006_channel_.JSC$19958_extraHeaders_||{};T?W["x-youtube-identity-token"]=T:delete W["x-youtube-identity-token"];L.JSC$20006_channel_.JSC$19958_extraHeaders_=W}n1w(L);S?(S.getState(),L.JSC$20006_channel_.connect(Z,N,L.defaultQueryParams_,S.sid_,S.JSC$19958_lastArrayId_)):u?L.JSC$20006_channel_.connect(Z,N,L.defaultQueryParams_,u.sessionId,u.arrayId):L.JSC$20006_channel_.connect(Z,N,L.defaultQueryParams_)};
fE.prototype.disconnect=function(L){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.xP())}finally{this.disconnectUi_=L||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),cks(this),this.JSC$20006_channel_&&(this.JSC$20006_channel_.getState()==3&&xN8(this.JSC$20006_channel_),this.JSC$20006_channel_.disconnect()),this.disconnectUi_=0}};
fE.prototype.sendMessage=function(L,Z){var N=this,S;return _.b(function(u){switch(u.nextAddress){case 1:_.Ks(u,2);if(!N.useAsyncBrowserChannelHandler_){u.jumpTo(2);break}return u.yield(N.connectPromise_,2);case 2:_.ns(u);if(N.JSC$20006_disposed_)return u.return();S={_sc:L};Z&&_.Py.extend(S,Z);if(N.reconnectTimer_.isActive()||(N.JSC$20006_channel_?N.JSC$20006_channel_.getState():0)==2){N.JSC$20006_pendingMessages_.push(S);u.jumpTo(6);break}if(!N.isChannelOpened()){u.jumpTo(6);break}_.Ks(u,8);if(!N.useAsyncBrowserChannelHandler_||
KUQ(N,L)){u.jumpTo(8);break}return u.yield(o1s(N),8);case 8:_.ns(u,0,0,1);N.isChannelOpened()&&(KUQ(N,L)||n1w(N),cks(N),Bek(N.JSC$20006_channel_,S));_.kS(u,6,1);break;case 6:_.kS(u,0)}})};
var KUQ=function(L,Z){return L.enableMdxAuthForConnectionOnly_?!0:L.disableMdxAuthForAdMessages_?Object.values(Ge5).includes(Z):L.disableMdxAuthForNonPlaybackMessages_?!Object.values(FUs).includes(Z):L.disableMdxAuthForShortsMessages_?Object.values($Py).includes(Z):!1};
fE.prototype.JSC$19965_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20006_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)fp0(this);else{var L=this.JSC$20006_pendingMessages_;this.JSC$20006_pendingMessages_=[];var Z=L.length;n1w(this);keq(this,L,Z);yky(this)}else yky(this)};
var fp0=function(L){var Z,N;_.b(function(S){if(S.nextAddress==1)return _.Ks(S,2),S.yield(o1s(L),2);_.ns(S);Z=L.JSC$20006_pendingMessages_;L.JSC$20006_pendingMessages_=[];N=Z.length;keq(L,Z,N);yky(L);return _.kS(S,0)})},keq=function(L,Z,N){for(var S=0;S<N;++S)Bek(L.JSC$20006_channel_,Z[S]);
yky(L)},yky=function(L){L.publish("handlerOpened");
L.JSC$20006_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.t=fE.prototype;_.t.JSC$19965_channelError=function(L){var Z=L==2&&this.JSC$20006_channel_.JSC$19958_lastStatusCode_==401;L==4||Z||this.reconnectTimer_.start();this.publish("handlerError",L,Z);Z=Object.keys(zuq).find(function(N){return zuq[N]===L});
this.JSC$20006_channelErrorCounter.increment("BROWSER_CHANNEL",Z!=null?Z:"UNKNOWN")};
_.t.JSC$19965_channelClosed=function(L,Z){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(Z)for(var N=Z.length,S=0;S<N;++S){var u=Z[S].map;u&&this.JSC$20006_pendingMessages_.push(u)}this.JSC$20006_channelClosedCounter.increment("BROWSER_CHANNEL");L&&this.pendingMapsOnClosedCounter.JSC$9931_streamzService.JSC$9786_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",L.length);Z&&this.undeliveredMapsOnClosedCounter.JSC$9934_streamzService.JSC$9786_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
Z.length)};
_.t.JSC$19965_channelSuccess=function(L,Z){Z!=null&&L!=null&&this.channelMessageSentCounter.increment()};
_.t.JSC$19965_getAdditionalParams=function(){var L={v:2};this.sCookie_&&(L.gsessionid=this.sCookie_);this.connectUi_!=0&&(L.ui=""+this.connectUi_);this.disconnectUi_!=0&&(L.ui=""+this.disconnectUi_);this.connectionParams_&&_.Py.extend(L,this.connectionParams_);return L};
_.t.JSC$19965_channelHandleArray=function(L){L[0]=="S"?this.sCookie_=L[1]:L[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20006_channel_.disconnect()):this.publish("handlerMessage",new hsv(L[0],L[1]));this.JSC$20006_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.t.isChannelOpened=function(){return!!this.JSC$20006_channel_&&this.JSC$20006_channel_.getState()==3};
var cks=function(L){if(L.JSC$20006_channel_){var Z=L.JSC$20006_getXsrfToken_(),N=L.JSC$20006_channel_.JSC$19958_extraHeaders_||{};Z?N["x-youtube-lounge-xsrf-token"]=Z:delete N["x-youtube-lounge-xsrf-token"];L.JSC$20006_channel_.JSC$19958_extraHeaders_=N}},o1s=function(L){if(L.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.xP();
if(!L.enableCachedUpdateAuthorizationHeader_)return w7y(L);L.updateAuthorizationHeaderPromise_===null&&(L.updateAuthorizationHeaderPromise_=w7y(L));return L.updateAuthorizationHeaderPromise_},w7y=function(L){return _.wg(L.getAuthorizationHeader_().then(function(Z){UPw(L,Z)}).thenCatch(function(){}),function(){L.updateAuthorizationHeaderPromise_=null})},UPw=function(L,Z){if(L.JSC$20006_channel_){var N=L.JSC$20006_channel_.JSC$19958_extraHeaders_||{};
Z&&Object.keys(Z).length>0?N=Object.assign({},N,Z):delete N.Authorization;L.JSC$20006_channel_.JSC$19958_extraHeaders_=N}},n1w=function(L){L.getAuthorizationHeaderSync_&&!L.useAsyncBrowserChannelHandler_&&UPw(L,L.getAuthorizationHeaderSync_())};
_.t=fE.prototype;_.t.setLoungeToken=function(L){(this.defaultQueryParams_.loungeIdToken=L)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20006_channel_){var Z=this.JSC$20006_channel_.JSC$19958_extraHeaders_||{};L?Z["X-YouTube-LoungeId-Token"]=L:delete Z["X-YouTube-LoungeId-Token"];this.JSC$20006_channel_.JSC$19958_extraHeaders_=Z}};
_.t.getDeviceId=function(){return this.defaultQueryParams_.id};
_.t.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.t.reconnect=function(){var L=this.reconnectTimer_;L.delay_.fire();L.start()};
_.t.safeReconnect_=function(){var L=this.JSC$20006_channel_,Z=0;L.JSC$19958_backChannelRequest_&&Z++;L.forwardChannelRequest_&&Z++;Z==0&&this.connect(this.connectionParams_,this.connectUi_)};var Io=function(L,Z){var N=L.basePath;L.supportCors&&(N=L.scheme+"://"+L.domain+L.port+L.basePath);return _.t3(N+Z,{})};
km.prototype.sendRequest=function(L,Z,N,S,u,T,W){L={format:T?"RAW":"JSON",method:L,context:this,timeout:5E3,withCredentials:!!W,onSuccess:_.T6(this.JSC$20011_onSuccess_,S,!T),onError:_.T6(this.onError_,u),onTimeout:_.T6(this.JSC$20011_onTimeout_,u)};N&&(L.postParams=N,L.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.yZ(Z,L)};
km.prototype.JSC$20011_onSuccess_=function(L,Z,N,S){Z?L(S):L({text:N.responseText})};
km.prototype.onError_=function(L,Z){L(Error("Xk`"+Z.status))};
km.prototype.JSC$20011_onTimeout_=function(L){L(Error("Yk"))};var wW=function(L,Z){return!!Z&&(L.id==Z||L.uuid==Z)},YLs=function(L){return{name:L.name,
screenId:L.id,loungeToken:L.token,dialId:L.uuid,screenIdType:L.idType,screenIdSecret:L.secret}},ecs=function(L){return new yS(L)},IpQ=function(L){return Array.isArray(L)?_.px(L,ecs):[]},QL0=function(L){if(!L)return"null";
var Z=L.token?".."+L.token.slice(-6):"-",N=L.uuid?".."+L.uuid.slice(-6):"-",S=L.secret?".."+L.secret.slice(-6):"-";return'{name:"'+L.name+'",id:'+L.id.substr(0,6)+"..,token:"+(Z+",uuid:"+N+",idType:"+L.idType+",secret:")+(S+"}")},ooq=function(L){return Array.isArray(L)?"["+_.px(L,QL0).join(",")+"]":"null"};var L4w="",e$=null;var W4Y=function(L,Z){_.Kc.call(this);var N=this;this.handler=L();this.handler.subscribe("handlerOpened",this.JSC$20018_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(S,u){N.onError(u)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=Z};
_.f(W4Y,_.Kc);_.t=W4Y.prototype;_.t.connect=function(L,Z,N){this.handler.connect(L,Z,N)};
_.t.disconnect=function(L){this.handler.disconnect(L)};
_.t.reconnect=function(){this.handler.reconnect()};
_.t.getDeviceId=function(){return this.handler.getDeviceId()};
_.t.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.t.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.t.JSC$20018_onOpened=function(){this.dispatchEvent("channelOpened");var L=this.handler,Z=this.currentScreenId;_.gr("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!L.JSC$20006_channel_.useChunked_,sessionId:L.JSC$20006_channel_.sid_,arrayId:L.JSC$20006_channel_.JSC$19958_lastArrayId_});_.gr("yt-remote-session-screen-id",Z);L=XT5();Z=Auk();_.p1(L,Z)||L.push(Z);qSv(L);xr8()};
_.t.onClosed=function(){this.dispatchEvent("channelClosed")};
_.t.onMessage=function(L){this.dispatchEvent(new Vqv(L))};
_.t.onError=function(L){this.dispatchEvent(new bJs(L?1:0))};
_.t.sendMessage=function(L,Z){this.handler.sendMessage(L,Z)};
_.t.setLoungeToken=function(L){this.handler.setLoungeToken(L)};
_.t.dispose=function(){this.handler.dispose()};var Om5=function(L,Z,N){var S=this;N=N===void 0?function(){return""}:N;
var u=u===void 0?new bKw:u;var T=T===void 0?new _.Ur:T;this.pathPrefix=L;this.defaultQueryParams=Z;this.getXsrfToken=N;this.JSC$20021_pubsub=T;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new sby(function(){var W;((W=S.channel)==null?void 0:Phs((new Gx8(W,W.JSC$19929_channel_)).JSC$19939_channel_.forwardChannelRequestPool_))===0&&S.connect(S.connectionParams,S.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20021_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20021_channelOpenedCounter=new jb5;this.JSC$20021_channelClosedCounter=new E9g;this.JSC$20021_channelMessageReceivedCounter=new pTm;this.JSC$20021_channelErrorCounter=new zsP};
Om5.prototype.connect=function(L,Z){L=L===void 0?{}:L;Z=Z===void 0?0:Z;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=L,this.connectUi=Z,dPq(this),(L=_.X7("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=L: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 ck(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,apq(this))};
var apq=function(L){_.Gl(L.channel,"w",function(){L.channelState=3;L.reconnectTimer.reset();L.connectionParams=null;L.connectUi=0;for(var Z=_.O(L.nonAckedMessagesOnChannelClosed),N=Z.next();!N.done;N=Z.next())N=N.value,L.channel&&L.channel.send(N);L.nonAckedMessagesOnChannelClosed=[];L.publish("webChannelOpened");L.JSC$20021_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Gl(L.channel,"x",function(){L.channelState=0;L.reconnectTimer.isActive()||L.publish("webChannelClosed");var Z,N=(Z=L.channel)==null?void 0:FAv(new Gx8(Z,Z.JSC$19929_channel_));N&&(L.nonAckedMessagesOnChannelClosed=[].concat(_.Pd(N)));L.JSC$20021_channelClosedCounter.increment("WEB_CHANNEL")});
_.Gl(L.channel,"z",function(Z){var N=Z.data;N[0]==="gracefulReconnect"?(L.reconnectTimer.start(),L.channel&&L.channel.close()):L.publish("webChannelMessage",new hsv(N[0],N[1]));L.lastStatusCode=Z.statusCode;L.JSC$20021_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Gl(L.channel,"y",function(){L.lastStatusCode===401||L.reconnectTimer.start();L.publish("webChannelError");L.JSC$20021_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.t=Om5.prototype;_.t.disconnect=function(L){this.disconnectUi=L===void 0?0:L;this.reconnectTimer.stop();dPq(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.t.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.t.reconnect=function(){var L=this.reconnectTimer;L.delay_.fire();L.start()};
_.t.sendMessage=function(L,Z){this.channel&&(dPq(this),L=Object.assign({},{_sc:L},Z),this.channel.send(L))};
_.t.setLoungeToken=function(L){L||this.reconnectTimer.stop();L?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=L:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var dPq=function(L){var Z=L.getXsrfToken();Z?L.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=Z:delete L.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.t=Om5.prototype;_.t.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.t.publish=function(L){return this.JSC$20021_pubsub.publish.apply(this.JSC$20021_pubsub,[L].concat(_.Pd(_.CG.apply(1,arguments))))};
_.t.subscribe=function(L,Z,N){return this.JSC$20021_pubsub.subscribe(L,Z,N)};
_.t.unsubscribe=function(L,Z,N){return this.JSC$20021_pubsub.unsubscribe(L,Z,N)};
_.t.unsubscribeByKey=function(L){return this.JSC$20021_pubsub.unsubscribeByKey(L)};
_.t.dispose=function(){this.JSC$20021_disposed||(this.JSC$20021_disposed=!0,_.W4(this.JSC$20021_pubsub),this.disconnect(),_.W4(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.t.isDisposed=function(){return this.JSC$20021_disposed};var ty5=function(L){_.Kc.call(this);this.webChannelService=L();this.webChannelService.subscribe("webChannelOpened",this.JSC$20029_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.f(ty5,_.Kc);_.t=ty5.prototype;_.t.connect=function(L,Z){this.webChannelService.connect(L,Z)};
_.t.disconnect=function(L){this.webChannelService.disconnect(L)};
_.t.reconnect=function(){this.webChannelService.reconnect()};
_.t.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.t.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.t.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.t.JSC$20029_onOpened=function(){this.dispatchEvent("channelOpened")};
_.t.onClosed=function(){this.dispatchEvent("channelClosed")};
_.t.onMessage=function(L){this.dispatchEvent(new Vqv(L))};
_.t.onError=function(){this.dispatchEvent(new bJs(this.webChannelService.lastStatusCode===401?1:0))};
_.t.sendMessage=function(L,Z){this.webChannelService.sendMessage(L,Z)};
_.t.setLoungeToken=function(L){this.webChannelService.setLoungeToken(L)};
_.t.dispose=function(){this.webChannelService.dispose()};var vos=Date.now(),dW=null,D3P=Array(50),s1=-1,l2s=!1;_.Qk(j$,_.zO);j$.prototype.getScreens=function(){return this.screens};
j$.prototype.contains=function(L){return!!Qbv(this.screens,L)};
j$.prototype.get=function(L){return L?U1(this.screens,L):null};
var hcg=function(L,Z){var N=L.get(Z.uuid)||L.get(Z.id);if(N)return L=N.name,N.id=Z.id||N.id,N.name=Z.name,N.token=Z.token,N.uuid=Z.uuid||N.uuid,N.name!=L;L.screens.push(Z);return!0},sv5=function(L,Z){var N=L.screens.length!=Z.length;
L.screens=_.A9(L.screens,function(T){return!!Qbv(Z,T)});
for(var S=Z.length,u=0;u<S;u++)N=hcg(L,Z[u])||N;return N},jvv=function(L,Z){var N=L.screens.length;
L.screens=_.A9(L.screens,function(S){return!(S||Z?!S!=!Z?0:S.id==Z.id:1)});
return L.screens.length<N};
j$.prototype.info=function(L){ao(this.JSC$20030_logName_,L)};var E1s=function(L,Z,N,S,u){_.zO.call(this);this.JSC$20033_http_=L;this.pairingCode_=Z;this.deviceId_=N;this.friendlyName_=S;this.enableShortLivedLoungeToken_=u;this.pollIndex_=0;this.JSC$20033_xhr_=null;this.JSC$20033_timer_=NaN};
_.f(E1s,_.zO);_.t=E1s.prototype;_.t.start=function(){!this.JSC$20033_xhr_&&isNaN(this.JSC$20033_timer_)&&this.poll_()};
_.t.stop=function(){this.JSC$20033_xhr_&&(this.JSC$20033_xhr_.abort(),this.JSC$20033_xhr_=null);isNaN(this.JSC$20033_timer_)||(_.fZ(this.JSC$20033_timer_),this.JSC$20033_timer_=NaN)};
_.t.disposeInternal=function(){this.stop();_.zO.prototype.disposeInternal.call(this)};
_.t.poll_=function(){this.JSC$20033_timer_=NaN;this.JSC$20033_xhr_=_.yZ(Io(this.JSC$20033_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.hr)(this.JSC$20035_onSuccess_,this),onError:(0,_.hr)(this.onError_,this),onTimeout:(0,_.hr)(this.JSC$20035_onTimeout_,this)})};
_.t.JSC$20035_onSuccess_=function(L,Z){this.JSC$20033_xhr_=null;L=Z.screen||{};L.dialId=this.deviceId_;L.name=this.friendlyName_;Z=-1;this.enableShortLivedLoungeToken_&&L.shortLivedLoungeToken&&L.shortLivedLoungeToken.value&&L.shortLivedLoungeToken.refreshIntervalMs&&(L.screenIdType="shortLived",L.loungeToken=L.shortLivedLoungeToken.value,Z=L.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new yS(L),Z)};
_.t.onError_=function(L){this.JSC$20033_xhr_=null;L.status&&L.status==404?this.pollIndex_>=P_0.length?this.publish("pairingFailed",Error("Zk")):(L=P_0[this.pollIndex_],this.JSC$20033_timer_=_.cW((0,_.hr)(this.poll_,this),L),this.pollIndex_++):this.publish("pairingFailed",Error("$k`"+L.status))};
_.t.JSC$20035_onTimeout_=function(){this.JSC$20033_xhr_=null;this.publish("pairingFailed",Error("al"))};
var P_0=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Qk(PP,j$);_.t=PP.prototype;_.t.start=function(){E1(this)&&this.publish("screenChange");!_.G7("yt-remote-lounge-token-expiration")&&p75(this);_.fZ(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.cW((0,_.hr)(this.start,this),1E4)};
_.t.add=function(L,Z){E1(this);hcg(this,L);zcv(this,!1);this.publish("screenChange");Z(L);L.token||p75(this)};
_.t.remove=function(L,Z){var N=E1(this);jvv(this,L)&&(zcv(this,!1),N=!0);Z(L);N&&this.publish("screenChange")};
_.t.updateName=function(L,Z,N,S){var u=E1(this),T=this.get(L.id);T?(T.name!=Z&&(T.name=Z,zcv(this,!1),u=!0),N(L)):S(Error("bl"));u&&this.publish("screenChange")};
_.t.disposeInternal=function(){_.fZ(this.loungeTokenRefreshTimer_);PP.superClass_.disposeInternal.call(this)};
var p75=function(L){if(L.screens.length){var Z=_.px(L.screens,function(S){return S.id}),N=Io(L.JSC$20037_http_,"/pairing/get_lounge_token_batch");
L.JSC$20037_http_.sendRequest("POST",N,{screen_ids:Z.join(",")},(0,_.hr)(L.handleLoungeTokens_,L),(0,_.hr)(L.handleLoungeTokenError_,L))}};
PP.prototype.handleLoungeTokens_=function(L){E1(this);var Z=this.screens.length;L=L&&L.screens||[];for(var N=L.length,S=0;S<N;++S){var u=L[S],T=this.get(u.screenId);T&&(T.token=u.loungeToken,--Z)}zcv(this,!Z);Z&&ao(this.JSC$20030_logName_,"Missed "+Z+" lounge tokens.")};
PP.prototype.handleLoungeTokenError_=function(L){ao(this.JSC$20030_logName_,"Requesting lounge tokens failed: "+L)};
var E1=function(L){if(_.c("deprecate_pair_servlet_enabled"))return sv5(L,[]);var Z=IpQ(N3Q());Z=_.A9(Z,function(N){return!N.uuid});
return sv5(L,Z)},zcv=function(L,Z){imy(_.px(L.screens,YLs));
Z&&Sim()};var Yl=function(L,Z){_.zO.call(this);this.getScreensToCheck_=Z;Z=(Z=_.G7("yt-remote-online-screen-ids")||"")?Z.split(","):[];for(var N={},S=this.getScreensToCheck_(),u=S.length,T=0;T<u;++T){var W=S[T].id;N[W]=_.p1(Z,W)}this.screenIdSet_=N;this.JSC$20040_http_=L;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;mP5("Initialized with "+(0,_.eJ)(this.screenIdSet_))};
_.f(Yl,_.zO);Yl.prototype.isOnline=function(L){return!!this.screenIdSet_[L]};
Yl.prototype.start=function(){var L=parseInt(_.G7("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.rc()-144E5<L?0:L)?JkQ(this):(this.fastCheckEndTime_=_.rc()+3E5,_.gr("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
Yl.prototype.isEmpty=function(){return _.Py.isEmpty(this.screenIdSet_)};
Yl.prototype.update=function(){mP5("Updating availability on schedule.");var L=this.getScreensToCheck_(),Z=_.Py.filter(this.screenIdSet_,function(N,S){return N&&!!U1(L,S)},this);
C_P(this,Z)};
var rks=function(L,Z,N){var S=Io(L.JSC$20040_http_,"/pairing/get_screen_availability");L.JSC$20040_http_.sendRequest("POST",S,{lounge_token:Z.token},(0,_.hr)(function(u){u=u.screens||[];for(var T=u.length,W=0;W<T;++W)if(u[W].loungeToken==Z.token){N(u[W].status=="online");return}N(!1)},L),(0,_.hr)(function(){N(!1)},L))};
Yl.prototype.disposeInternal=function(){_.fZ(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.zO.prototype.disposeInternal.call(this)};
var C_P=function(L,Z){a:if(_.Py.getCount(Z)!=_.Py.getCount(L.screenIdSet_))var N=!1;else{N=_.Py.getKeys(Z);for(var S=N.length,u=0;u<S;++u)if(!L.screenIdSet_[N[u]]){N=!1;break a}N=!0}N||(mP5("Updated online screens: "+(0,_.eJ)(L.screenIdSet_)),L.screenIdSet_=Z,L.publish("screenChange"));Qv0(L)},JkQ=function(L){isNaN(L.refreshTimer_)||_.fZ(L.refreshTimer_);
L.refreshTimer_=_.cW((0,_.hr)(L.requestScreenAvailability_,L),L.fastCheckEndTime_>0&&L.fastCheckEndTime_<_.rc()?2E4:1E4)};
Yl.prototype.requestScreenAvailability_=function(){_.fZ(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var L=X7k(this);if(_.Py.getCount(L)){var Z=Io(this.JSC$20040_http_,"/pairing/get_screen_availability"),N={lounge_token:_.Py.getKeys(L).join(",")};this.currentRequest_=this.JSC$20040_http_.sendRequest("POST",Z,N,(0,_.hr)(this.onScreenAvailability_,this,L),(0,_.hr)(this.onScreenAvailabilityError_,this))}else C_P(this,{}),JkQ(this)};
Yl.prototype.onScreenAvailability_=function(L,Z){this.currentRequest_=null;var N=_.Py.getKeys(X7k(this));if(_.Bs(N,_.Py.getKeys(L))){Z=Z.screens||[];N={};for(var S=Z.length,u=0;u<S;++u)N[L[Z[u].loungeToken]]=Z[u].status=="online";C_P(this,N);JkQ(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
Yl.prototype.onScreenAvailabilityError_=function(L){this.warn_("Screen availability failed: "+L);this.currentRequest_=null;JkQ(this)};
var mP5=function(L){ao("OnlineScreenService",L)};
Yl.prototype.warn_=function(L){ao("OnlineScreenService",L)};
var X7k=function(L){var Z={};_.SZ(L.getScreensToCheck_(),function(N){N.token?Z[N.token]=N.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return Z},Qv0=function(L){L=_.Py.getKeys(_.Py.filter(L.screenIdSet_,function(Z){return Z}));
L.sort(_.hAL);L.length?_.gr("yt-remote-online-screen-ids",L.join(","),60):_.FB("yt-remote-online-screen-ids")};_.Qk(pE,j$);_.t=pE.prototype;_.t.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.t.add=function(L,Z,N){this.localScreenService_.add(L,Z,N)};
_.t.remove=function(L,Z,N){this.localScreenService_.remove(L,Z,N);this.onlineScreenService_.update()};
_.t.updateName=function(L,Z,N,S){this.localScreenService_.contains(L)?this.localScreenService_.updateName(L,Z,N,S):(L="Updating name of unknown screen: "+L.name,ao(this.JSC$20030_logName_,L),S(Error(L)))};
_.t.getScreens=function(L){return L?this.screens:fUg(this.screens,_.A9(this.automaticScreens_,function(Z){return!this.contains(Z)},this))};
_.t.JSC$20045_getOnlineScreens=function(){return _.A9(this.getScreens(!0),function(L){return this.onlineScreenService_.isOnline(L.id)},this)};
var HJw=function(L,Z,N,S,u,T){L.info("getAutomaticScreenByIds "+N+" / "+Z);N||(N=L.deviceToScreenId_[Z]);var W=L.getScreens(),V=N?U1(W,N):null;N&&(L.disableAutomaticScreenCache_||V)||(V=U1(W,Z));if(V){V.uuid=Z;var M=e8(L,V);rks(L.onlineScreenService_,M,function(G){u(G?M:null)})}else N?Akv(L,N,(0,_.hr)(function(G){var D=e8(this,new yS({name:S,
screenId:N,loungeToken:G,dialId:Z||""}));rks(this.onlineScreenService_,D,function(l){u(l?D:null)})},L),T):u(null)};
pE.prototype.JSC$20045_getScreenByPollingPairingCode=function(L,Z,N,S,u,T){var W=this;this.info("getDialScreenByPairingCode "+L+" / "+Z);var V=new E1s(this.JSC$20043_http_,L,Z,N,S);V.subscribe("pairingComplete",function(M,G){_.W4(V);u(e8(W,M),G)});
V.subscribe("pairingFailed",function(M){_.W4(V);T(M)});
V.start();return(0,_.hr)(V.stop,V)};
var Bac=function(L,Z){for(var N=L.screens.length,S=0;S<N;++S)if(L.screens[S].name==Z)return L.screens[S];return null};
pE.prototype.JSC$20045_getScreenByPairingCode=function(L,Z,N,S){_.yZ(Io(this.JSC$20043_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:L},timeout:5E3,onSuccess:(0,_.hr)(function(u,T){u=new yS(T.screen||{});if(!u.name||Bac(this,u.name)){a:{T=u.name;for(var W=2,V=Z(T,W);Bac(this,V);){W++;if(W>20)break a;V=Z(T,W)}T=V}u.name=T}N(e8(this,u))},this),
onError:(0,_.hr)(function(u){S(Error("cl`"+u.status))},this),
onTimeout:(0,_.hr)(function(){S(Error("dl"))},this)})};
var xP5=function(L,Z,N){rks(L.onlineScreenService_,Z,N)};
pE.prototype.disposeInternal=function(){_.W4(this.localScreenService_);_.W4(this.onlineScreenService_);pE.superClass_.disposeInternal.call(this)};
var Akv=function(L,Z,N,S){L.info("requestLoungeToken_ for "+Z);var u={postParams:{screen_ids:Z},method:"POST",context:L,onSuccess:function(T,W){T=W&&W.screens||[];T[0]&&T[0].screenId==Z?N(T[0].loungeToken):S(Error("el"))},
onError:function(){S(Error("fl"))}};
_.yZ(Io(L.JSC$20043_http_,"/pairing/get_lounge_token_batch"),u)},qLv=function(L){L.screens=L.localScreenService_.getScreens();
for(var Z=_.Py.transpose(L.deviceToScreenId_),N=L.screens.length,S=0;S<N;++S){var u=L.screens[S];u.uuid=Z[u.id]||""}L.info("Updated manual screens: "+ooq(L.screens))};
pE.prototype.handleScreenChange_=function(){qLv(this);this.publish("screenChange");this.onlineScreenService_.update()};
var RU0=function(L){Lnc(L);L.localScreenService_=new PP(L.JSC$20043_http_);L.localScreenService_.subscribe("screenChange",(0,_.hr)(L.handleScreenChange_,L));qLv(L);L.disableAutomaticScreenCache_||(L.automaticScreens_=IpQ(_.G7("yt-remote-automatic-screen-cache")||[]));Lnc(L);L.info("Initializing automatic screens: "+ooq(L.automaticScreens_));L.onlineScreenService_=new Yl(L.JSC$20043_http_,(0,_.hr)(L.getScreens,L,!0));L.onlineScreenService_.subscribe("screenChange",(0,_.hr)(function(){this.publish("onlineScreenChange")},
L))},e8=function(L,Z){var N=L.get(Z.id);
N?(N.uuid=Z.uuid,Z=N):((N=U1(L.automaticScreens_,Z.uuid))?(N.id=Z.id,N.token=Z.token,Z=N):L.automaticScreens_.push(Z),L.disableAutomaticScreenCache_||ZPs(L));Lnc(L);L.deviceToScreenId_[Z.uuid]=Z.id;_.gr("yt-remote-device-id-map",L.deviceToScreenId_,31536E3);return Z},ZPs=function(L){L=_.A9(L.automaticScreens_,function(Z){return Z.idType!="shortLived"});
_.gr("yt-remote-automatic-screen-cache",_.px(L,YLs))},Lnc=function(L){L.deviceToScreenId_=_.G7("yt-remote-device-id-map")||{}};
pE.prototype.dispose=pE.prototype.dispose;_.Qk(zH,_.zO);var IP=function(L,Z){L.screen_=Z;L.publish("sessionScreen",L.screen_)},NC8=function(L,Z){L.screen_&&(L.screen_.token=Z,e8(L.JSC$20047_screenService_,L.screen_));
L.publish("sessionScreen",L.screen_)};
zH.prototype.onSessionStopped=function(L){this.isDisposed()||(L&&(dN(this,""+L),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
zH.prototype.info=function(L){ao(this.JSC$20047_logName_,L)};
var dN=function(L,Z){ao(L.JSC$20047_logName_,Z)};
zH.prototype.JSC$20049_getCastSession=function(){return null};
zH.prototype.setDisplayStatus=function(L){var Z=this.receiver_;L?(Z.displayStatus=new chrome.cast.ReceiverDisplayStatus(L,[]),Z.displayStatus.showStop=!0):Z.displayStatus=null;chrome.cast.setReceiverDisplayStatus(Z,(0,_.hr)(function(){this.info("Updated receiver status for "+Z.friendlyName+": "+L)},this),(0,_.hr)(function(){dN(this,"Failed to update receiver status for: "+Z.friendlyName)},this))};
zH.prototype.disposeInternal=function(){this.setDisplayStatus("");zH.superClass_.disposeInternal.call(this)};var aP=function(L,Z,N){zH.call(this,L,Z,"CastSession");var S=this;this.config_=N;this.JSC$20052_session_=null;this.JSC$20052_boundSessionUpdate_=(0,_.hr)(this.JSC$20054_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.hr)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.cW(function(){S55(S,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20052_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20052_isInitLoungeToken_=!1;this.JSC$20052_lastLoungeTokenRefreshError_="unknown"};
_.f(aP,zH);_.t=aP.prototype;
_.t.setCastSession=function(L){if(this.JSC$20052_session_){if(this.JSC$20052_session_==L)return;dN(this,"Overriding cast session with new session object");iPk(this);this.JSC$20052_isInitLoungeToken_=!1;this.JSC$20052_lastLoungeTokenRefreshError_="unknown";this.JSC$20052_session_.removeUpdateListener(this.JSC$20052_boundSessionUpdate_);this.JSC$20052_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20052_session_=L;this.JSC$20052_session_.addUpdateListener(this.JSC$20052_boundSessionUpdate_);this.JSC$20052_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);ucQ(this,"getMdxSessionStatus")};
_.t.launchWithParams=function(L){this.info("launchWithParams no-op for Cast: "+(0,_.eJ)(L))};
_.t.stop=function(){if(this.JSC$20052_session_)this.JSC$20052_session_.stop((0,_.hr)(function(){this.onSessionStopped()},this),(0,_.hr)(function(){this.onSessionStopped(Error("gl"))},this));
else this.onSessionStopped(Error("hl"))};
_.t.setDisplayStatus=function(){};
_.t.disposeInternal=function(){this.info("disposeInternal");iPk(this);this.JSC$20052_session_&&(this.JSC$20052_session_.removeUpdateListener(this.JSC$20052_boundSessionUpdate_),this.JSC$20052_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20052_session_=null;zH.prototype.disposeInternal.call(this)};
var tTv=function(L,Z){_.fZ(L.getLoungeTokenTimeoutKey_);L.getLoungeTokenTimeoutKey_=0;Z==0?TCy(L):L.getLoungeTokenTimeoutKey_=_.cW(function(){TCy(L)},Z)},TCy=function(L){ucQ(L,"getLoungeToken");
_.fZ(L.onLoungeTokenTimeoutKey_);L.onLoungeTokenTimeoutKey_=_.cW(function(){OP5(L,null)},3E4)},ucQ=function(L,Z){L.info("sendYoutubeMessage_: "+Z+" "+(0,_.eJ)(void 0));
var N={};N.type=Z;L.JSC$20052_session_?L.JSC$20052_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",N,function(){},(0,_.hr)(function(){dN(this,"Failed to send message: "+Z+".")},L)):dN(L,"Sending yt message without session: "+(0,_.eJ)(N))};
aP.prototype.onYoutubeMessage_=function(L,Z){if(!this.isDisposed())if(Z)if(Z=(0,_.$P)(Z),_.Q_(Z))switch(L=""+Z.type,Z=Z.data||{},this.info("onYoutubeMessage_: "+L+" "+(0,_.eJ)(Z)),L){case "mdxSessionStatus":S55(this,Z);break;case "loungeToken":OP5(this,Z);break;default:dN(this,"Unknown youtube message: "+L)}else dN(this,"Unable to parse message.");else dN(this,"No data in message.")};
var Wnv=function(L,Z){if(Z)L.info("onConnectedScreenId_: Received screenId: "+Z),L.screen_&&L.screen_.id==Z||L.getScreen_(Z,function(N){IP(L,N)},function(){return L.onSessionStopped()},5);
else L.onSessionStopped(Error("il"))},bPk=function(L,Z,N){L.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(Z));
var S=new yS(Z);VTQ(L,S,function(u){u?(L.JSC$20052_isInitLoungeToken_=!0,e8(L.JSC$20047_screenService_,S),IP(L,S),L.JSC$20052_lastLoungeTokenRefreshError_="unknown",tTv(L,N)):(_.H8(Error("jl`"+JSON.stringify(Z))),L.onSessionStopped())},5)},S55=function(L,Z){_.fZ(L.sessionStatusTimeoutKey_);
L.sessionStatusTimeoutKey_=0;if(Z)L.config_.enableCastLoungeToken&&Z.loungeToken?Z.deviceId?L.screen_&&L.screen_.uuid==Z.deviceId||(Z.loungeTokenRefreshIntervalMs?bPk(L,{name:L.receiver_.friendlyName,screenId:Z.screenId,loungeToken:Z.loungeToken,dialId:Z.deviceId,screenIdType:"shortLived"},Z.loungeTokenRefreshIntervalMs):(_.H8(Error("ll`"+JSON.stringify(Z))),Wnv(L,Z.screenId))):(_.H8(Error("kl`"+JSON.stringify(Z))),Wnv(L,Z.screenId)):Wnv(L,Z.screenId);else L.onSessionStopped(Error("il"))},OP5=function(L,
Z){_.fZ(L.onLoungeTokenTimeoutKey_);
L.onLoungeTokenTimeoutKey_=0;var N=null;if(Z)if(Z.loungeToken){var S;((S=L.screen_)==null?void 0:S.token)==Z.loungeToken&&(N="staleLoungeToken")}else N="missingLoungeToken";else N="noLoungeTokenResponse";N?(L.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(Z)+", error: "+N)),L.JSC$20052_lastLoungeTokenRefreshError_=N,tTv(L,3E4)):(NC8(L,Z.loungeToken),L.JSC$20052_isInitLoungeToken_=!1,L.JSC$20052_lastLoungeTokenRefreshError_="unknown",tTv(L,Z.loungeTokenRefreshIntervalMs))};
aP.prototype.getScreen_=function(L,Z,N,S){_.fZ(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;HJw(this.JSC$20047_screenService_,this.receiver_.label,L,this.receiver_.friendlyName,(0,_.hr)(function(u){u?Z(u):S>=0?(dN(this,"Screen "+L+" appears to be offline. "+S+" retries left."),this.getScreenTimeoutKey_=_.cW((0,_.hr)(this.getScreen_,this,L,Z,N,S-1),300)):N(Error("ml"))},this),N)};
var VTQ=function(L,Z,N,S){_.fZ(L.JSC$20052_checkScreenAvailabilityTimeoutKey_);L.JSC$20052_checkScreenAvailabilityTimeoutKey_=0;xP5(L.JSC$20047_screenService_,Z,function(u){u||S<0?N(u):L.JSC$20052_checkScreenAvailabilityTimeoutKey_=_.cW(function(){VTQ(L,Z,N,S-1)},300)})};
aP.prototype.JSC$20049_getCastSession=function(){return this.JSC$20052_session_};
aP.prototype.JSC$20054_onSessionUpdate_=function(L){this.isDisposed()||L||(dN(this,"Cast session died."),this.onSessionStopped())};
var iPk=function(L){_.fZ(L.getScreenTimeoutKey_);L.getScreenTimeoutKey_=0;_.fZ(L.JSC$20052_checkScreenAvailabilityTimeoutKey_);L.JSC$20052_checkScreenAvailabilityTimeoutKey_=0;_.fZ(L.sessionStatusTimeoutKey_);L.sessionStatusTimeoutKey_=0;_.fZ(L.onLoungeTokenTimeoutKey_);L.onLoungeTokenTimeoutKey_=0;_.fZ(L.getLoungeTokenTimeoutKey_);L.getLoungeTokenTimeoutKey_=0};var hg=function(L,Z,N,S){zH.call(this,L,Z,"DialSession");this.config_=S;this.JSC$20056_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20056_theme_=N;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20056_deferredLaunchDeadlineTimer_=NaN;this.JSC$20056_boundSessionUpdate_=(0,_.hr)(this.JSC$20058_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20056_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20056_isInitLoungeToken_=!1;this.JSC$20056_lastLoungeTokenRefreshError_="unknown"};
_.f(hg,zH);hg.prototype.setCastSession=function(L){this.JSC$20056_session_=L;this.JSC$20056_session_.addUpdateListener(this.JSC$20056_boundSessionUpdate_)};
hg.prototype.launchWithParams=function(L){this.connectData_=L;this.deferredLaunch_()};
hg.prototype.stop=function(){MTq(this);if(this.JSC$20056_session_)this.JSC$20056_session_.stop((0,_.hr)(this.onSessionStopped,this,null),(0,_.hr)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
hg.prototype.disposeInternal=function(){MTq(this);this.JSC$20056_session_&&this.JSC$20056_session_.removeUpdateListener(this.JSC$20056_boundSessionUpdate_);this.JSC$20056_session_=null;zH.prototype.disposeInternal.call(this)};
var g2s=function(L){var Z;return!!(L.config_.enableDialLoungeToken&&((Z=L.JSC$20056_session_)==null?0:Z.getDialAppInfo))},Fnw=function(L){L.cancelPolling_=L.JSC$20047_screenService_.JSC$20045_getScreenByPollingPairingCode(L.reversePairingCode_,L.receiver_.label,L.receiver_.friendlyName,g2s(L),function(Z,N){L.cancelPolling_=function(){};
L.JSC$20056_isInitLoungeToken_=!0;IP(L,Z);Z.idType=="shortLived"&&N>0&&Guw(L,N)},function(Z){L.cancelPolling_=function(){};
L.onSessionStopped(Z)})};
hg.prototype.JSC$20058_onSessionUpdate_=function(L){this.isDisposed()||L||(dN(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var $ls=function(L){var Z={};Z.pairingCode=L.reversePairingCode_;Z.theme=L.JSC$20056_theme_;T3m()&&(Z.env_useStageMdx=1);return _.wv(Z)},DlY=function(L){return new Promise(function(Z){L.reversePairingCode_=Cj5();
if(L.connectData_){var N=new chrome.cast.DialLaunchResponse(!0,$ls(L));Z(N);Fnw(L)}else L.deferredLaunch_=function(){_.fZ(L.JSC$20056_deferredLaunchDeadlineTimer_);L.deferredLaunch_=function(){};
L.JSC$20056_deferredLaunchDeadlineTimer_=NaN;var S=new chrome.cast.DialLaunchResponse(!0,$ls(L));Z(S);Fnw(L)},L.JSC$20056_deferredLaunchDeadlineTimer_=_.cW(function(){L.deferredLaunch_()},100)})},v2Q=function(L,Z,N){L.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(Z));
var S=new yS(Z);return(new Promise(function(u){lLm(L,S,function(T){T?(L.JSC$20056_isInitLoungeToken_=!0,e8(L.JSC$20047_screenService_,S),IP(L,S),Guw(L,N)):_.H8(Error("ol`"+JSON.stringify(Z)));u(T)},5)})).then(function(u){return u?new chrome.cast.DialLaunchResponse(!1):DlY(L)})},o2s=function(L,Z){var N=L.launchData_.receiver.label,S=L.receiver_.friendlyName;
return(new Promise(function(u){HJw(L.JSC$20047_screenService_,N,Z,S,function(T){T&&T.token&&IP(L,T);u(T)},function(T){dN(L,"Failed to get DIAL screen: "+T);
u(null)})})).then(function(u){return u&&u.token?new chrome.cast.DialLaunchResponse(!1):DlY(L)})},lLm=function(L,Z,N,S){_.fZ(L.JSC$20056_checkScreenAvailabilityTimeoutKey_);
L.JSC$20056_checkScreenAvailabilityTimeoutKey_=0;xP5(L.JSC$20047_screenService_,Z,function(u){u||S<0?N(u):L.JSC$20056_checkScreenAvailabilityTimeoutKey_=_.cW(function(){lLm(L,Z,N,S-1)},300)})},Guw=function(L,Z){L.info("getDialAppInfoWithTimeout_ "+Z);
g2s(L)&&(_.fZ(L.getDialAppInfoTimeoutKey_),L.getDialAppInfoTimeoutKey_=0,Z==0?R4c(L):L.getDialAppInfoTimeoutKey_=_.cW(function(){R4c(L)},Z))},R4c=function(L){g2s(L)&&L.JSC$20056_session_.getDialAppInfo(function(Z){L.info("getDialAppInfo dialLaunchData: "+JSON.stringify(Z));
Z=Z.extraData||{};var N=null;if(Z.loungeToken){var S;((S=L.screen_)==null?void 0:S.token)==Z.loungeToken&&(N="staleLoungeToken")}else N="missingLoungeToken";N?(L.JSC$20056_lastLoungeTokenRefreshError_=N,Guw(L,3E4)):(L.JSC$20056_isInitLoungeToken_=!1,L.JSC$20056_lastLoungeTokenRefreshError_="unknown",NC8(L,Z.loungeToken),Guw(L,Z.loungeTokenRefreshIntervalMs))},function(Z){L.info("getDialAppInfo error: "+Z);
L.JSC$20056_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Guw(L,3E4)})},MTq=function(L){_.fZ(L.JSC$20056_checkScreenAvailabilityTimeoutKey_);
L.JSC$20056_checkScreenAvailabilityTimeoutKey_=0;_.fZ(L.getDialAppInfoTimeoutKey_);L.getDialAppInfoTimeoutKey_=0;L.cancelPolling_();L.cancelPolling_=function(){};
_.fZ(L.JSC$20056_deferredLaunchDeadlineTimer_)};var sQ=function(L,Z){zH.call(this,L,Z,"ManualSession");this.JSC$20060_deferredLaunchDeadlineTimer_=_.cW((0,_.hr)(this.launchWithParams,this,null),150)};
_.f(sQ,zH);sQ.prototype.stop=function(){this.onSessionStopped()};
sQ.prototype.setCastSession=function(){};
sQ.prototype.launchWithParams=function(){_.fZ(this.JSC$20060_deferredLaunchDeadlineTimer_);this.JSC$20060_deferredLaunchDeadlineTimer_=NaN;var L=U1(this.JSC$20047_screenService_.getScreens(),this.receiver_.label);if(L)IP(this,L);else this.onSessionStopped(Error("pl"))};
sQ.prototype.disposeInternal=function(){_.fZ(this.JSC$20060_deferredLaunchDeadlineTimer_);this.JSC$20060_deferredLaunchDeadlineTimer_=NaN;zH.prototype.disposeInternal.call(this)};var rW=function(L,Z){_.zO.call(this);this.config_=Z;this.JSC$20063_screenService_=L;this.JSC$20063_appId_=Z.appId||"233637DE";this.JSC$20063_theme_=Z.theme||"cl";this.disableDial_=Z.disableCastApi||!1;this.forceMirroring_=Z.forceMirroring||!1;this.JSC$20063_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.hr)(this.onReceiverAction_,this)};
_.f(rW,_.zO);
rW.prototype.init=function(L,Z){chrome.cast.timeout.requestSession=3E4;var N=new chrome.cast.SessionRequest(this.JSC$20063_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.c("desktop_enable_cast_connect")&&(N.androidReceiverCompatible=!0);this.disableDial_||(N.dialRequest=new chrome.cast.DialRequest("YouTube"));var S=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;L=L||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var u=(0,_.hr)(this.onReceiverUpdated_,
this);N=new chrome.cast.ApiConfig(N,(0,_.hr)(this.onSessionEstablished_,this),u,S,L);N.customDialLaunchCallback=(0,_.hr)(this.onDialLaunchRequested_,this);chrome.cast.initialize(N,(0,_.hr)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Gnv(),this.JSC$20063_screenService_.subscribe("onlineScreenChange",(0,_.hr)(this.JSC$20065_onScreenChange_,this)),this.customReceivers_=ctw(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.hr)(function(T){this.warn_("Failed to set initial custom receivers: "+(0,_.eJ)(T))},this)),this.publish("yt-remote-cast2-availability-change",n2v(this)),Z(!0))},this),(0,_.hr)(function(T){this.warn_("Failed to initialize API: "+(0,_.eJ)(T));
Z(!1)},this))};
rW.prototype.setConnectedScreenStatus=function(L,Z){j8("Setting connected screen ID: "+L+" -> "+Z);if(this.JSC$20063_session_){var N=this.JSC$20063_session_.screen_;if(!L||N&&N.id!=L)j8("Unsetting old screen status: "+this.JSC$20063_session_.receiver_.friendlyName),EQ(this,null)}if(L&&Z){if(!this.JSC$20063_session_){L=U1(this.JSC$20063_screenService_.getScreens(),L);if(!L){j8("setConnectedScreenStatus: Unknown screen.");return}if(L.idType=="shortLived"){j8("setConnectedScreenStatus: Screen with id type to be short lived.");
return}N=Kn8(this,L);N||(j8("setConnectedScreenStatus: Connected receiver not custom..."),N=new chrome.cast.Receiver(L.uuid?L.uuid:L.id,L.name),N.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(N),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.hr)(function(S){this.warn_("Failed to set initial custom receivers: "+(0,_.eJ)(S))},this)));
j8("setConnectedScreenStatus: new active receiver: "+N.friendlyName);EQ(this,new sQ(this.JSC$20063_screenService_,N),!0)}this.JSC$20063_session_.setDisplayStatus(Z)}else j8("setConnectedScreenStatus: no screen.")};
var Kn8=function(L,Z){return Z?_.hx(L.customReceivers_,function(N){return wW(Z,N.label)},L):null};
rW.prototype.setLaunchParams=function(L){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20063_session_?this.JSC$20063_session_.launchWithParams(L):this.warn_("Setting connection data without a session")};
rW.prototype.JSC$20065_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20063_session_?(this.JSC$20063_session_.stop(),EQ(this,null)):j8("Stopping non-existing session")};
rW.prototype.requestSession=function(){chrome.cast.requestSession((0,_.hr)(this.onSessionEstablished_,this),(0,_.hr)(this.onSessionRequestFailed_,this))};
rW.prototype.disposeInternal=function(){this.JSC$20063_screenService_.unsubscribe("onlineScreenChange",(0,_.hr)(this.JSC$20065_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.zB(_.LZ("yt.mdx.remote.debug.handlers_")||[],bmm);_.W4(this.JSC$20063_session_);_.zO.prototype.disposeInternal.call(this)};
var j8=function(L){ao("Controller",L)};
rW.prototype.warn_=function(L){ao("Controller",L)};
var bmm=function(L){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(L)},n2v=function(L){return L.hasCastReceiver_||!!L.customReceivers_.length||!!L.JSC$20063_session_},EQ=function(L,Z,N){Z!=L.JSC$20063_session_&&(_.W4(L.JSC$20063_session_),(L.JSC$20063_session_=Z)?(N?L.publish("yt-remote-cast2-receiver-resumed",Z.receiver_):L.publish("yt-remote-cast2-receiver-selected",Z.receiver_),Z.subscribe("sessionScreen",(0,_.hr)(L.onSessionScreen_,L,Z)),Z.subscribe("sessionFailed",
function(){return fLv(L,Z)}),Z.screen_?L.publish("yt-remote-cast2-session-change",Z.screen_):N&&L.JSC$20063_session_.launchWithParams(null)):L.publish("yt-remote-cast2-session-change",null))},fLv=function(L,Z){L.JSC$20063_session_==Z&&L.publish("yt-remote-cast2-session-failed")};
_.t=rW.prototype;_.t.onSessionScreen_=function(L,Z){this.JSC$20063_session_==L&&(Z||EQ(this,null),this.publish("yt-remote-cast2-session-change",Z))};
_.t.onReceiverAction_=function(L,Z){if(!this.isDisposed())if(L)switch(L.friendlyName=chrome.cast.unescape(L.friendlyName),j8("onReceiverAction_ "+L.label+" / "+L.friendlyName+"-- "+Z),Z){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20063_session_)if(this.JSC$20063_session_.receiver_.label!=L.label)j8("onReceiverAction_: Stopping active receiver: "+this.JSC$20063_session_.receiver_.friendlyName),this.JSC$20063_session_.stop();else{j8("onReceiverAction_: Casting to active receiver.");this.JSC$20063_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20063_session_.screen_);break}switch(L.receiverType){case chrome.cast.ReceiverType.CUSTOM:EQ(this,new sQ(this.JSC$20063_screenService_,L));break;case chrome.cast.ReceiverType.DIAL:EQ(this,new hg(this.JSC$20063_screenService_,L,this.JSC$20063_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:EQ(this,new aP(this.JSC$20063_screenService_,L,this.config_));break;default:this.warn_("Unknown receiver type: "+L.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20063_session_&&
this.JSC$20063_session_.receiver_.label==L.label?this.JSC$20063_session_.stop():this.warn_("Stopping receiver w/o session: "+L.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.t.onDialLaunchRequested_=function(L){if(this.isDisposed())return Promise.reject(Error("ql"));var Z=L.receiver;Z.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+Z.friendlyName),Z.receiverType=chrome.cast.ReceiverType.DIAL);var N=this.JSC$20063_session_?this.JSC$20063_session_.receiver_:null;if(!N||N.label!=Z.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+Z.friendlyName),Promise.reject(Error("rl"));if(N&&N.label==Z.label&&N.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20063_session_.screen_)return j8("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20063_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+N.receiverType+'" to "dial" for '+Z.friendlyName);EQ(this,new hg(this.JSC$20063_screenService_,Z,this.JSC$20063_theme_,this.config_))}Z=this.JSC$20063_session_;Z.launchData_=L;Z.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(L=Z.launchData_.extraData||{},N=L.screenId||null,g2s(Z)&&L.loungeToken?L.loungeTokenRefreshIntervalMs?L=v2Q(Z,{name:Z.receiver_.friendlyName,screenId:L.screenId,loungeToken:L.loungeToken,dialId:Z.launchData_.receiver.label,screenIdType:"shortLived"},L.loungeTokenRefreshIntervalMs):(_.H8(Error("nl`"+JSON.stringify(L))),L=o2s(Z,N)):L=o2s(Z,N)):L=DlY(Z);return L};
_.t.onSessionEstablished_=function(L){var Z=this;if(!this.isDisposed()&&!this.forceMirroring_){j8("New cast session ID: "+L.sessionId);var N=L.receiver;if(N.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20063_session_)if(N.receiverType==chrome.cast.ReceiverType.CAST)j8("Got resumed cast session before resumed mdx connection."),N.friendlyName=chrome.cast.unescape(N.friendlyName),EQ(this,new aP(this.JSC$20063_screenService_,N,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var S=this.JSC$20063_session_.receiver_,u=U1(this.JSC$20063_screenService_.getScreens(),S.label);u&&wW(u,N.label)&&S.receiverType!=chrome.cast.ReceiverType.CAST&&N.receiverType==chrome.cast.ReceiverType.CAST&&(j8("onSessionEstablished_: manual to cast session change "+N.friendlyName),_.W4(this.JSC$20063_session_),this.JSC$20063_session_=new aP(this.JSC$20063_screenService_,N,this.config_),this.JSC$20063_session_.subscribe("sessionScreen",(0,_.hr)(this.onSessionScreen_,this,this.JSC$20063_session_)),
this.JSC$20063_session_.subscribe("sessionFailed",function(){return fLv(Z,Z.JSC$20063_session_)}),this.JSC$20063_session_.launchWithParams(null));
this.JSC$20063_session_.setCastSession(L)}}};
_.t.JSC$20065_getCastSession=function(){return this.JSC$20063_session_?this.JSC$20063_session_.JSC$20049_getCastSession():null};
_.t.onSessionRequestFailed_=function(L){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.eJ)(L)),L.code!=chrome.cast.ErrorCode.CANCEL&&EQ(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.t.onReceiverUpdated_=function(L){j8("Receiver availability updated: "+L);if(!this.isDisposed()){var Z=n2v(this);this.hasCastReceiver_=L==chrome.cast.ReceiverAvailability.AVAILABLE;n2v(this)!=Z&&this.publish("yt-remote-cast2-availability-change",n2v(this))}};
var ctw=function(L){var Z=L.JSC$20063_screenService_.JSC$20045_getOnlineScreens(),N=L.JSC$20063_session_&&L.JSC$20063_session_.receiver_;L=_.px(Z,function(S){N&&wW(S,N.label)&&(N=null);var u=S.uuid?S.uuid:S.id,T=Kn8(this,S);T?(T.label=u,T.friendlyName=S.name):(T=new chrome.cast.Receiver(u,S.name),T.receiverType=chrome.cast.ReceiverType.CUSTOM);return T},L);
N&&(N.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(N=new chrome.cast.Receiver(N.label,N.friendlyName),N.receiverType=chrome.cast.ReceiverType.CUSTOM),L.push(N));return L};
rW.prototype.JSC$20065_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=ctw(this),j8("Updating custom receivers: "+(0,_.eJ)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.hr)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",n2v(this)))};
rW.prototype.setLaunchParams=rW.prototype.setLaunchParams;rW.prototype.setConnectedScreenStatus=rW.prototype.setConnectedScreenStatus;rW.prototype.stopSession=rW.prototype.JSC$20065_stopSession;rW.prototype.getCastSession=rW.prototype.JSC$20065_getCastSession;rW.prototype.requestSession=rW.prototype.requestSession;rW.prototype.init=rW.prototype.init;rW.prototype.dispose=rW.prototype.dispose;var kuq=_.sc(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),PFm=[],wtg=_.vy(kuq);var ytm=function(L){L.audioTrackId=null;L.trackData=null;L.playerState=-1;L.hasPrevious=!1;L.hasNext=!1;L.playerTime_=0;L.playerTimeAt_=_.rc();L.seekableStart_=0;L.seekableEnd_=0;L.duration_=0;L.loadedTime=0;L.liveIngestionTime_=NaN;L.isLive_=!1};
_.t=QS.prototype;
_.t.reset=function(L){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;L&&(this.index=L.index,this.listId=L.listId,this.videoId=L.videoId,this.playerState=L.playerState,this.volume=L.volume,this.muted=L.muted,this.audioTrackId=L.audioTrackId,this.trackData=L.trackData,this.hasPrevious=L.hasPrevious,this.hasNext=L.hasNext,this.playerTime_=L.playerTime,this.playerTimeAt_=L.playerTimeAt,this.seekableStart_=L.seekableStart,this.seekableEnd_=L.seekableEnd,this.duration_=L.duration,this.loadedTime=
L.loadedTime,this.liveIngestionTime_=L.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.t.stopPlayer=function(){this.index=-1;this.videoId="";ytm(this)};
_.t.isPlaying=function(){return this.playerState==1};
_.t.isBuffering=function(){return this.playerState==3};
_.t.isAdPlaying=function(){return this.playerState==1081};
var Pk=function(L,Z){L.playerTime_=Z;L.playerTimeAt_=_.rc()},wN5=function(L){switch(L.playerState){case 1:case 1081:return(_.rc()-L.playerTimeAt_)/1E3+L.playerTime_;
case -1E3:return 0}return L.playerTime_};
QS.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.rc()-this.playerTimeAt_)/1E3:0):this.duration_};
var UlQ=function(L,Z,N){var S=L.videoId;L.videoId=Z;L.index=N;Z!=S&&ytm(L)},Y5w=function(L){var Z={};
Z.index=L.index;Z.listId=L.listId;Z.videoId=L.videoId;Z.playerState=L.playerState;Z.volume=L.volume;Z.muted=L.muted;Z.audioTrackId=L.audioTrackId;Z.trackData=_.Py.unsafeClone(L.trackData);Z.hasPrevious=L.hasPrevious;Z.hasNext=L.hasNext;Z.playerTime=L.playerTime_;Z.playerTimeAt=L.playerTimeAt_;Z.seekableStart=L.seekableStart_;Z.seekableEnd=L.seekableEnd_;Z.duration=L.duration_;Z.loadedTime=L.loadedTime;Z.liveIngestionTime=L.liveIngestionTime_;return Z};
QS.prototype.clone=function(){return new QS(Y5w(this))};var Zo=function(L,Z){_.zO.call(this);var N=this;this.state_=0;this.connection_=L;this.contextSubscriptions_=[];this.actionQueue_=new a78;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.hr)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.hr)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.hr)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.hr)(this.onCloudviewAvailabilityChange_,this);var S=0;L?(S=L.getProxyState(),
S!=3&&(L.subscribe("proxyStateChange",this.setState_,this),e4v(this))):S=3;S!=0&&(Z?this.setState_(S):_.cW(function(){N.setState_(S)},0));
(L=JZy())&&ILc(this,L);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.f(Zo,_.zO);Zo.prototype.getState=function(){return this.state_};
Zo.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Zo.prototype.reconnect=function(){this.connection_.reconnect()};
var p_=function(L){return new QS(L.connection_.getPlayerContextData())};
_.t=Zo.prototype;_.t.play=function(){zj(this)?(this.castMedia_?this.castMedia_.play(null,_.on,dlw(this,"play")):mr(this,"play"),aLk(this,1,wN5(p_(this))),this.publish("remotePlayerChange")):Jg(this,this.play)};
_.t.pause=function(){zj(this)?(this.castMedia_?this.castMedia_.pause(null,_.on,dlw(this,"pause")):mr(this,"pause"),aLk(this,2,wN5(p_(this))),this.publish("remotePlayerChange")):Jg(this,this.pause)};
_.t.seekTo=function(L){if(zj(this)){if(this.castMedia_){var Z=p_(this),N=new chrome.cast.media.SeekRequest;N.currentTime=L;Z.isPlaying()||Z.isBuffering()?N.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:N.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(N,_.on,dlw(this,"seekTo",{newTime:L}))}else mr(this,"seekTo",{newTime:L});aLk(this,3,L);this.publish("remotePlayerChange")}else Jg(this,_.T6(this.seekTo,L))};
_.t.stop=function(){if(zj(this)){this.castMedia_?this.castMedia_.stop(null,_.on,dlw(this,"stopVideo")):mr(this,"stopVideo");var L=p_(this);L.stopPlayer();C_(this,L);this.publish("remotePlayerChange")}else Jg(this,this.stop)};
_.t.setVolume=function(L,Z){if(zj(this)){var N=p_(this);if(this.castSession_){if(N.volume!=L){var S=Math.round(L)/100;this.castSession_.setReceiverVolumeLevel(S,(0,_.hr)(function(){hn("set receiver volume: "+S)},this),(0,_.hr)(function(){this.warn_("failed to set receiver volume.")},this))}N.muted!=Z&&this.castSession_.setReceiverMuted(Z,(0,_.hr)(function(){hn("set receiver muted: "+Z)},this),(0,_.hr)(function(){this.warn_("failed to set receiver muted.")},this))}else{var u={volume:L,
muted:Z};N.volume!=-1&&(u.delta=L-N.volume);mr(this,"setVolume",u)}N.muted=Z;N.volume=L;C_(this,N)}else Jg(this,_.T6(this.setVolume,L,Z))};
_.t.setAudioTrack=function(L,Z){zj(this)?(Z=Z.getLanguageInfo().getId(),mr(this,"setAudioTrack",{videoId:L,audioTrackId:Z}),L=p_(this),L.audioTrackId=Z,C_(this,L)):Jg(this,_.T6(this.setAudioTrack,L,Z))};
_.t.addVideo=function(L){zj(this)?mr(this,"addVideo",{videoId:L}):Jg(this,_.T6(this.addVideo,L))};
_.t.addPlaylist=function(L){zj(this)?mr(this,"addVideos",{listId:L}):Jg(this,_.T6(this.addPlaylist,L))};
_.t.addVideos=function(L){L.length==0?this.warn_("Ignore add videos request due to empty list"):zj(this)?mr(this,"addVideos",{videoIds:L.join(",")}):Jg(this,_.T6(this.addVideos,L))};
_.t.JSC$20075_removeVideo=function(L){zj(this)?mr(this,"removeVideo",{videoId:L}):Jg(this,_.T6(this.JSC$20075_removeVideo,L))};
_.t.JSC$20075_insertVideo=function(L){zj(this)?mr(this,"insertVideo",{videoId:L}):Jg(this,_.T6(this.JSC$20075_insertVideo,L))};
_.t.playVideo=function(L,Z,N,S,u,T,W){S=S===void 0?null:S;u=u===void 0?null:u;T=T===void 0?null:T;W=W===void 0?null:W;var V=p_(this),M={videoId:L};N!==void 0&&(M.currentIndex=N);UlQ(V,L,N||0);Z!==void 0&&(Pk(V,Z),M.currentTime=Z);S&&(M.listId=S);u&&(M.playerParams=u);T&&(M.clickTrackingParams=T);W&&(M.locationInfo=(0,_.eJ)(W));mr(this,"setPlaylist",M);S||C_(this,V)};
_.t.nextVideo=function(L,Z){if(zj(this)){if(L&&Z){var N=p_(this);UlQ(N,L,Z);C_(this,N)}mr(this,"next")}else Jg(this,_.T6(this.nextVideo,L,Z))};
_.t.clearPlaylist=function(){if(zj(this)){mr(this,"clearPlaylist");var L=p_(this);L.reset();C_(this,L);this.publish("remotePlayerChange")}else Jg(this,this.clearPlaylist)};
_.t.dispose=function(){if(this.state_!=3){var L=this.state_;this.state_=3;this.publish("proxyStateChange",L,this.state_)}_.zO.prototype.dispose.call(this)};
_.t.disposeInternal=function(){h4s(this);this.connection_=null;this.actionQueue_.clear();ILc(this,null);_.zO.prototype.disposeInternal.call(this)};
var e4v=function(L){_.SZ("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(Z){this.contextSubscriptions_.push(this.connection_.subscribe(Z,_.T6(this.onProxyEvent_,Z),this))},L)},h4s=function(L){_.SZ(L.contextSubscriptions_,function(Z){this.connection_.unsubscribeByKey(Z)},L);
L.contextSubscriptions_.length=0},zj=function(L){return L.getState()==1},Jg=function(L,Z){L.actionQueue_.getCount()<50&&L.actionQueue_.enqueue(Z)},aLk=function(L,Z,N){var S=p_(L);
Pk(S,N);S.playerState!=-1E3&&(S.playerState=Z);C_(L,S)},mr=function(L,Z,N){L.connection_.sendMessage(Z,N)},C_=function(L,Z){h4s(L);
L.connection_.setPlayerContextData(Y5w(Z));e4v(L)};
Zo.prototype.setState_=function(L){if((L!=this.state_||L==2)&&this.state_!=3&&L!=0){var Z=this.state_;this.state_=L;this.publish("proxyStateChange",Z,L);if(L==1)for(;!this.actionQueue_.isEmpty();)L=this.actionQueue_,uPy(L),L.front_.pop().apply(this);else L==3&&this.dispose()}};
Zo.prototype.onProxyEvent_=function(L,Z){this.publish(L,Z)};
var ILc=function(L,Z){L.castSession_&&(L.castSession_.removeUpdateListener(L.boundCastStatusListener_),L.castSession_.removeMediaListener(L.boundCastMediaListener_),L.onCastMediaChange_(null));L.castSession_=Z;if(L.castSession_&&(hn("Setting cast session: "+L.castSession_.sessionId),L.castSession_.addUpdateListener(L.boundCastStatusListener_),L.castSession_.addMediaListener(L.boundCastMediaListener_),L.castSession_.media.length))L.onCastMediaChange_(L.castSession_.media[0])};
Zo.prototype.onCastStatusUpdate_=function(L){if(!L)this.onCastMediaChange_(null),ILc(this,null);else if(this.castSession_.receiver.volume){L=this.castSession_.receiver.volume;var Z=p_(this),N=Math.round(100*L.level||0);if(Z.volume!=N||Z.muted!=L.muted)hn("Cast volume update: "+L.level+(L.muted?" muted":"")),Z.volume=N,Z.muted=!!L.muted,C_(this,Z)}};
Zo.prototype.onCastMediaChange_=function(L){hn("Cast media: "+!!L);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=L)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),sd0(this),this.publish("remotePlayerChange")};
var sd0=function(L){var Z=L.castMedia_.media,N=L.castMedia_.customData;if(Z&&N){var S=p_(L);Z.contentId!=S.videoId&&hn("Cast changing video to: "+Z.contentId);S.videoId=Z.contentId;S.playerState=N.playerState;Pk(S,L.castMedia_.getEstimatedTime());C_(L,S)}else hn("No cast media video. Ignoring state update.")};
Zo.prototype.onCastMediaUpdate_=function(L){if(L)sd0(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Zo.prototype.onCloudviewAvailabilityChange_=function(){var L=JZy();L&&ILc(this,L)};
Zo.prototype.warn_=function(L){ao("CP",L)};
var dlw=function(L,Z,N){return(0,_.hr)(function(S){this.warn_("Failed to "+Z+" with cast v2 channel. Error code: "+S.code);S.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+Z+" using MDx browser channel."),mr(this,Z,N))},L)};var NS=function(L,Z,N,S){S=S===void 0?!1:S;_.zO.call(this);var u=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$20080_http_=L;this.enableConnectWithInitialState_=S;this.listeners_.push(_.MC(window,"beforeunload",function(){u.JSC$20083_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new QS;this.currentScreenId_=Z.id;this.currentScreenIdType_=Z.idType;this.channelService=VyY(this.JSC$20080_http_,N,this.JSC$20083_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){jdq(u)});
this.channelService.listen("channelClosed",function(){rN("Channel closed");isNaN(u.connectTimerId_)?Ym(!0):Ym();u.dispose()});
this.channelService.listen("channelError",function(T){Ym();isNaN(u.getReconnectTimeout_())?(T==1&&u.currentScreenIdType_=="shortLived"&&u.publish("browserChannelAuthError",T),rN("Channel error: "+T+" without reconnection"),u.dispose()):(u.reconnecting_=!0,rN("Channel error: "+T+" with reconnection in "+u.getReconnectTimeout_()+" ms"),E2Y(u,2))});
this.channelService.listen("channelMessage",function(T){PK5(u,T)});
this.channelService.setLoungeToken(Z.token);this.subscribe("remoteQueueChange",function(){var T=u.playerContext_.videoId;HlQ()&&_.gr("yt-remote-session-video-id",T)})};
_.f(NS,_.zO);
NS.prototype.connect=function(L,Z){if(Z){var N=Z.listId,S=Z.videoId,u=Z.videoIds,T=Z.playerParams,W=Z.clickTrackingParams,V=Z.index,M={videoId:S},G=Z.currentTime,D=Z.locationInfo;Z=Z.loopMode;G!==void 0&&(M.currentTime=G<=5?0:G);T&&(M.playerParams=T);D&&(M.locationInfo=D);W&&(M.clickTrackingParams=W);N&&(M.listId=N);u&&u.length>0&&(M.videoIds=u.join(","));V!==void 0&&(M.currentIndex=V);this.enableConnectWithInitialState_&&(M.loopMode=Z||"LOOP_MODE_OFF");N&&(this.playerContext_.listId=N);this.playerContext_.videoId=
S;this.playerContext_.index=V||0;this.playerContext_.state=3;Pk(this.playerContext_,G);this.autoplayMode_="UNSUPPORTED";N=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";rN("Connecting with "+N+" and params: "+(0,_.eJ)(M));this.channelService.connect({method:N,params:(0,_.eJ)(M)},L,Zmm())}else rN("Connecting without params"),this.channelService.connect({},L,Zmm());pN8(this)};
NS.prototype.setLoungeToken=function(L){this.channelService.setLoungeToken(L)};
NS.prototype.dispose=function(){this.isDisposed()||(_.bp("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),E2Y(this,3));_.zO.prototype.dispose.call(this)};
NS.prototype.disposeInternal=function(){z4v(this);mlc(this);Jts(this);_.fZ(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.fZ(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.FWs(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.zO.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var CKY=function(L){return _.hx(L.connectedDevices_,function(Z){return Z.type=="LOUNGE_SCREEN"})},rN=function(L){ao("conn",L)},E2Y=function(L,Z){L.publish("proxyStateChange",Z)},pN8=function(L){L.connectTimerId_=_.cW(function(){rN("Connecting timeout");
L.JSC$20083_disconnect_(1)},2E4)},z4v=function(L){_.fZ(L.connectTimerId_);
L.connectTimerId_=NaN},Jts=function(L){_.fZ(L.reconnectedCheckScreenTimeout_);
L.reconnectedCheckScreenTimeout_=NaN},Qdk=function(L){mlc(L);
L.playingSyncTimerId_=_.cW(function(){rtY(L,"getNowPlaying")},2E4)},mlc=function(L){_.fZ(L.playingSyncTimerId_);
L.playingSyncTimerId_=NaN},jdq=function(L){rN("Channel opened");
L.reconnecting_&&(L.reconnecting_=!1,Jts(L),L.reconnectedCheckScreenTimeout_=_.cW(function(){rN("Timing out waiting for a screen.");L.JSC$20083_disconnect_(1)},15E3))},Atv=function(L,Z){var N=null;
if(Z){var S=CKY(L);S&&(N={clientName:S.clientName,deviceMake:S.brand,deviceModel:S.model,osVersion:S.osVersion})}_.bp("yt.mdx.remote.remoteClient_",N);Z&&(z4v(L),Jts(L));N=L.channelService.isChannelOpened()&&isNaN(L.connectTimerId_);Z==N?Z&&(E2Y(L,1),rtY(L,"getSubtitlesTrack")):Z?(L.getOtherConnectedRemoteId_()&&L.playerContext_.reset(),E2Y(L,1),rtY(L,"getNowPlaying"),XN0(L)):L.JSC$20083_disconnect_(1)},HPg=function(L,Z){var N=Z.params.videoId;
delete Z.params.videoId;N==L.playerContext_.videoId&&(_.Py.isEmpty(Z.params)?L.playerContext_.trackData=null:L.playerContext_.trackData=Z.params,L.publish("remotePlayerChange"))},BCP=function(L,Z,N){var S=Z.params.videoId||Z.params.video_id,u=parseInt(Z.params.currentIndex,10);
L.playerContext_.listId=Z.params.listId||L.playerContext_.listId;UlQ(L.playerContext_,S,u);L.publish("remoteQueueChange",N)},xlv=function(L,Z){Z.params=Z.params||{};
BCP(L,Z,"NOW_PLAYING_MAY_CHANGE");L.onStateChange_(Z);L.publish("autoplayDismissed")};
NS.prototype.onStateChange_=function(L){var Z=parseInt(L.params.currentTime||L.params.current_time,10);Pk(this.playerContext_,isNaN(Z)?0:Z);Z=parseInt(L.params.state,10);Z=isNaN(Z)?-1:Z;Z==-1&&this.playerContext_.playerState==-1E3&&(Z=-1E3);this.playerContext_.playerState=Z;Z=Number(L.params.loadedTime);this.playerContext_.loadedTime=isNaN(Z)?0:Z;Z=Number(L.params.duration);this.playerContext_.duration_=isNaN(Z)?0:Z;Z=this.playerContext_;var N=Number(L.params.liveIngestionTime);Z.liveIngestionTime_=
N;Z.isLive_=isNaN(N)?!1:!0;Z=this.playerContext_;N=Number(L.params.seekableStartTime);L=Number(L.params.seekableEndTime);Z.seekableStart_=isNaN(N)?0:N;Z.seekableEnd_=isNaN(L)?0:L;this.playerContext_.playerState==1?Qdk(this):mlc(this);this.publish("remotePlayerChange")};
NS.prototype.onAdStateChange_=function(L){if(this.playerContext_.playerState!=-1E3){var Z=1085;switch(parseInt(L.params.adState,10)){case 1:Z=1081;break;case 2:Z=1084;break;case 0:Z=1083}this.playerContext_.playerState=Z;L=parseInt(L.params.currentTime,10);Pk(this.playerContext_,isNaN(L)?0:L);this.publish("remotePlayerChange")}};
var q5P=function(L,Z){var N=Z.params.muted=="true";L.playerContext_.volume=parseInt(Z.params.volume,10);L.playerContext_.muted=N;L.publish("remotePlayerChange")},LOY=function(L,Z){L.autoplayVideoId_=Z.params.videoId;
L.publish("nowAutoplaying",parseInt(Z.params.timeout,10))},ZWk=function(L,Z){L.autoplayVideoId_=Z.params.videoId||null;
L.publish("autoplayUpNext",L.autoplayVideoId_)},NA5=function(L,Z){L.autoplayMode_=Z.params.autoplayMode;
L.publish("autoplayModeChange",L.autoplayMode_);L.autoplayMode_=="DISABLED"&&L.publish("autoplayDismissed")},S0v=function(L,Z){var N=Z.params.hasNext=="true";
L.playerContext_.hasPrevious=Z.params.hasPrevious=="true";L.playerContext_.hasNext=N;L.publish("previousNextChange")};
NS.prototype.isCapabilitySupportedOnConnectedDevices_=function(L){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var Z=_.O(this.connectedDevices_),N=Z.next();!N.done;N=Z.next())if(!N.value.capabilities.has(L))return!1;return!0};
var PK5=function(L,Z){Z=Z.message;Z.params?rN("Received: action="+Z.action+", params="+(0,_.eJ)(Z.params)):rN("Received: action="+Z.action+" {}");switch(Z.action){case "loungeStatus":Z=(0,_.$P)(Z.params.devices);L.connectedDevices_=_.px(Z,function(S){return new UQ(S)});
Z=!!_.hx(L.connectedDevices_,function(S){return S.type=="LOUNGE_SCREEN"});
Atv(L,Z);Z=L.isCapabilitySupportedOnConnectedDevices_("mlm");L.publish("multiStateLoopEnabled",Z);break;case "loungeScreenDisconnected":KLw(L.connectedDevices_,function(S){return S.type=="LOUNGE_SCREEN"});
Atv(L,!1);break;case "remoteConnected":var N=new UQ((0,_.$P)(Z.params.device));_.hx(L.connectedDevices_,function(S){return S.equals(N)})||_.YGt(L.connectedDevices_,N);
break;case "remoteDisconnected":N=new UQ((0,_.$P)(Z.params.device));KLw(L.connectedDevices_,function(S){return S.equals(N)});
break;case "gracefulDisconnect":break;case "playlistModified":BCP(L,Z,"QUEUE_MODIFIED");break;case "nowPlaying":xlv(L,Z);break;case "onStateChange":L.onStateChange_(Z);break;case "onAdStateChange":L.onAdStateChange_(Z);break;case "onVolumeChanged":q5P(L,Z);break;case "onSubtitlesTrackChanged":HPg(L,Z);break;case "nowAutoplaying":LOY(L,Z);break;case "autoplayDismissed":L.publish("autoplayDismissed");break;case "autoplayUpNext":ZWk(L,Z);break;case "onAutoplayModeChanged":NA5(L,Z);break;case "onHasPreviousNextChanged":S0v(L,
Z);break;case "requestAssistedSignIn":L.publish("assistedSignInRequested",Z.params.authCode);break;case "onLoopModeChanged":L.publish("loopModeChange",Z.params.loopMode);break;default:rN("Unrecognized action: "+Z.action)}};
_.t=NS.prototype;_.t.getProxyState_=function(){var L=3;this.isDisposed()||(L=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(L=1):L=2);return L};
_.t.JSC$20083_disconnect_=function(L){rN("Disconnecting with "+L);_.bp("yt.mdx.remote.remoteClient_",null);z4v(this);this.publish("beforeDisconnect",L);L==1&&Ym();this.channelService.disconnect(L);this.dispose()};
_.t.getPlayerContextData_=function(){var L=this.playerContext_;this.clientVideoId_&&(L=this.playerContext_.clone(),UlQ(L,this.clientVideoId_,L.index));return Y5w(L)};
_.t.setPlayerContextData_=function(L){var Z=this,N=new QS(L);N.videoId&&N.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=N.videoId,_.fZ(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.cW(function(){if(Z.clientVideoId_){var u=Z.clientVideoId_;Z.clientVideoId_=null;Z.playerContext_.videoId!=u&&rtY(Z,"getNowPlaying")}},5E3));
var S=[];this.playerContext_.listId==N.listId&&this.playerContext_.videoId==N.videoId&&this.playerContext_.index==N.index||S.push("remoteQueueChange");this.playerContext_.playerState==N.playerState&&this.playerContext_.volume==N.volume&&this.playerContext_.muted==N.muted&&wN5(this.playerContext_)==wN5(N)&&(0,_.eJ)(this.playerContext_.trackData)==(0,_.eJ)(N.trackData)||S.push("remotePlayerChange");this.playerContext_.reset(L);_.SZ(S,function(u){this.publish(u)},this)};
_.t.getOtherConnectedRemoteId_=function(){var L=this.channelService.getDeviceId(),Z=_.hx(this.connectedDevices_,function(N){return N.type=="REMOTE_CONTROL"&&N.id!=L});
return Z?Z.id:""};
_.t.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.t.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.t.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.t.JSC$20083_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var XN0=function(L){_.fZ(L.idleDisconnectTimerId_);L.idleDisconnectTimerId_=_.cW(function(){L.JSC$20083_disconnect_(1)},864E5)},rtY=function(L,Z,N){N?rN("Sending: action="+Z+", params="+(0,_.eJ)(N)):rN("Sending: action="+Z);
L.channelService.sendMessage(Z,N)};
NS.prototype.sendMessageWithUserAction_=function(L,Z){rtY(this,L,Z);XN0(this)};
NS.prototype.JSC$20083_getXsrfToken_=function(){var L=_.eZ.get("SAPISID","")||_.eZ.get("__Secure-1PAPISID",void 0)||"",Z=_.eZ.get("__Secure-3PAPISID","")||"";if(!L&&!Z)return"";L=_.jY(_.dZ(L),2);Z=_.jY(_.dZ(Z),2);return _.jY(_.dZ(","+L+","+Z),2)};
NS.prototype.subscribe=NS.prototype.subscribe;NS.prototype.unsubscribeByKey=NS.prototype.unsubscribeByKey;NS.prototype.getProxyState=NS.prototype.getProxyState_;NS.prototype.disconnect=NS.prototype.JSC$20083_disconnect_;NS.prototype.getPlayerContextData=NS.prototype.getPlayerContextData_;NS.prototype.setPlayerContextData=NS.prototype.setPlayerContextData_;NS.prototype.getOtherConnectedRemoteId=NS.prototype.getOtherConnectedRemoteId_;NS.prototype.getReconnectTimeout=NS.prototype.getReconnectTimeout_;
NS.prototype.getAutoplayMode=NS.prototype.getAutoplayMode_;NS.prototype.getAutoplayVideoId=NS.prototype.getAutoplayVideoId_;NS.prototype.reconnect=NS.prototype.JSC$20083_reconnect_;NS.prototype.sendMessage=NS.prototype.sendMessageWithUserAction_;NS.prototype.getXsrfToken=NS.prototype.JSC$20083_getXsrfToken_;NS.prototype.isCapabilitySupportedOnConnectedDevices=NS.prototype.isCapabilitySupportedOnConnectedDevices_;var VWq=function(L){j$.call(this,"ScreenServiceProxy");this.instance_=L;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.hr)(this.JSC$20086_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.hr)(this.onOnlineScreenChange_,this)))};
_.f(VWq,j$);_.t=VWq.prototype;_.t.getScreens=function(L){return this.instance_.$_gs(L)};
_.t.contains=function(L){return!!this.instance_.$_c(L)};
_.t.get=function(L){return this.instance_.$_g(L)};
_.t.start=function(){this.instance_.$_st()};
_.t.add=function(L,Z,N){this.instance_.$_a(L,Z,N)};
_.t.remove=function(L,Z,N){this.instance_.$_r(L,Z,N)};
_.t.updateName=function(L,Z,N,S){this.instance_.$_un(L,Z,N,S)};
_.t.disposeInternal=function(){for(var L=this.subscriptionKeys_.length,Z=0;Z<L;++Z)this.instance_.$_ubk(this.subscriptionKeys_[Z]);this.subscriptionKeys_.length=0;this.instance_=null;j$.prototype.disposeInternal.call(this)};
_.t.JSC$20086_onScreenChange_=function(){this.publish("screenChange")};
_.t.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
pE.prototype.$_st=pE.prototype.start;pE.prototype.$_gspc=pE.prototype.JSC$20045_getScreenByPairingCode;pE.prototype.$_gsppc=pE.prototype.JSC$20045_getScreenByPollingPairingCode;pE.prototype.$_c=pE.prototype.contains;pE.prototype.$_g=pE.prototype.get;pE.prototype.$_a=pE.prototype.add;pE.prototype.$_un=pE.prototype.updateName;pE.prototype.$_r=pE.prototype.remove;pE.prototype.$_gs=pE.prototype.getScreens;pE.prototype.$_gos=pE.prototype.JSC$20045_getOnlineScreens;pE.prototype.$_s=pE.prototype.subscribe;
pE.prototype.$_ubk=pE.prototype.unsubscribeByKey;var iMq=null,MWv=!1,XF=null,An=null,WXm=null,qs=[];var iWk=new _.Bx("yt-menu"),uA8=function(){},tBy=function(L,Z,N){L=Z=="right-click"?N.rightClickMenuPopupHint:N.menuPopupHint;
if(!(TAP(Z)>10))return Z=Z||"default",iWk.set(Z+"-impression",TAP(Z)+1),L},TAP=function(L){return parseInt(iWk.get((L||"default")+"-impression")||0,10)};
_.CM(uA8);var OW8=function(){this.contexts_=new WeakMap;this.JSC$20092_networkService_=this.activeContext_=null},WOv=function(L,Z,N){var S=L.contexts_.get(Z);
S||(S=new $XP(L.JSC$20092_networkService_),L.contexts_.set(Z,S));L.activeContext_=S;N&&L.activeContext_.reset();L.activeContext_.start();return L.activeContext_};var Qo=function(){};
Qo.prototype.enqueue=function(){var L=this,Z;return _.b(function(N){if(L.isCounterfactual())return(Z=L.getCounterfactualData())&&L.shouldLogCounterfactualImpression()&&L.sendImpressionEndpoints(Z),N.return();L.doEnqueue();_.w7(N)})};
Qo.prototype.sendImpressionEndpoints=function(L){_.SS.getInstance().triggerOptionalAction("yt-service-request",{},L[0])};var X0=function(L,Z){this.renderer=L;this.page=Z};
_.f(X0,Qo);X0.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
X0.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
X0.prototype.shouldLogCounterfactualImpression=function(){return!0};
X0.prototype.doEnqueue=function(){var L=_.JS(this.page);L&&L.pause();this.renderer.impressionCommand&&_.SS.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Pc(_.SS.getInstance(),[this.renderer.promoCommand],this.page)};var VBs=function(L,Z){this.renderer=L;this.resolver=_.hS();this.JSC$20104_enforcementCounter=new _.NoO;Z?this.JSC$20104_playerManager=_.JS(Z):this.JSC$20104_playerManager=null;_.NJ(1,!0)};
_.f(VBs,Qo);_.t=VBs.prototype;_.t.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var L=[];this.renderer.impressionEndpoints.forEach(function(Z){(Z=_.KY(Z))&&L.push(Z)});
return L}};
_.t.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.t.shouldLogCounterfactualImpression=function(){var L=_.wYs();L?(this.JSC$20104_enforcementCounter.increment("POPUP"),_.NJ(3)):_.NJ(2);return L};
_.t.cancel=function(){this.resolver.promise.cancel()};
_.t.doEnqueue=function(){var L=this;_.wYs()?(this.JSC$20104_enforcementCounter.increment("POPUP"),_.NJ(3),bWw(this)):this.JSC$20104_playerManager?(this.resolver.promise.then(function(){bWw(L)}),MBv(this.resolver,this.JSC$20104_playerManager)):_.NJ(2)};
var MBv=function(L,Z){var N=_.hS();Z.getPlayerPromise().then(function(S){N.resolve(S)});
N.promise.then(function(S){S.addEventListener("onAbnormalityDetected",L.resolve);_.wg(L.promise,function(){S.removeEventListener("onAbnormalityDetected",L.resolve)})});
L.promise.thenCatch(function(){N.promise.cancel()})},bWw=function(L){_.NJ(3);
var Z={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:L.renderer}};Z=_.SS.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:Z},{});Promise.all(Z).then(function(){gGy();L.JSC$20104_playerManager&&L.JSC$20104_playerManager.pause()})},gGy=function(){uZg(function(L,Z){_.Brm(L,Z);
L===0?_.NJ(7):_.NJ(4)})};var Gy8=function(L,Z){this.renderer=L;this.page=Z;this.resolver=_.hS()};
_.f(Gy8,Qo);_.t=Gy8.prototype;_.t.cancel=function(){this.resolver.promise.cancel()};
_.t.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.t.isCounterfactual=function(){return!this.renderer.isVisible};
_.t.shouldLogCounterfactualImpression=function(){return!0};
_.t.doEnqueue=function(){var L=this;this.resolver.promise.then(function(){var N={popup:{mealbarPromoRenderer:L.renderer},popupType:"MEALBAR"};_.SS.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:N},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var Z=_.JS(this.page);Z&&FO8(this.resolver,Z)}break;default:this.resolver.resolve()}};
var FO8=function(L,Z){var N=_.hS();Z.getPlayerPromise().then(function(S){N.resolve(S)});
N.promise.then(function(S){S.addEventListener("onAdEnd",L.resolve);_.wg(L.promise,function(){S.removeEventListener("onAdEnd",L.resolve)})});
L.promise.thenCatch(function(){N.promise.cancel()})};var $ws=function(L,Z){this.renderer=L;this.page=Z};
_.f($ws,Qo);_.t=$ws.prototype;_.t.cancel=function(){this.JSC$20112_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20112_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20112_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.t.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.t.isCounterfactual=function(){return!this.renderer.isVisible};
_.t.shouldLogCounterfactualImpression=function(){return!0};
_.t.doEnqueue=function(){var L=this,Z,N;((Z=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(N=Z.playbackUpsellDialogTriggerConditionData)==null?void 0:N.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20112_downloadedVideosCountSelectorUnsubscriber=_.hK(_.Pv(),SR8,function(S,u){S>u&&(DwY(L),L.cancel())}):DwY(this)};
var DwY=function(L){var Z={popup:{upsellDialogRenderer:L.renderer},popupType:"MODAL"};_.SS.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:Z},{});(L=_.JS(L.page))&&L.pause()};var Ag={},l$Y=(Ag.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Ag.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Ag.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Ag.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Ag.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Ag.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Ag.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Ag),vGY=function(L,Z){this.renderer=L;this.targetManager=
Z};
_.f(vGY,Qo);_.t=vGY.prototype;_.t.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20119_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20119_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20119_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.t.getCounterfactualData=function(){if(this.isCounterfactual()){var L;return(L=this.renderer.promoConfig)==null?void 0:L.impressionEndpoints}};
_.t.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.t.shouldLogCounterfactualImpression=function(){return!0};
_.t.doEnqueue=function(){var L=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20119_downloadedVideosCountSelectorUnsubscriber=_.hK(_.Pv(),SR8,function(Z,N){L.renderer.targetId&&Z>N&&(mbv(L.targetManager,L.renderer.targetId,oGv(L)),L.cancel())});
break;default:mbv(this.targetManager,this.renderer.targetId,oGv(this))}};
var oGv=function(L){var Z;if((Z=L.renderer.suggestedPosition)==null?0:Z.type)var N=l$Y[L.renderer.suggestedPosition.type];N||(N="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:L.renderer},popupType:"HINT",position:N}}};var RjY=function(){this.previousPage=null},cPg;
RjY.prototype.registerPromoCommand=function(L,Z){nGk(this,void 0,void 0,_.n(L.roadblock,LUy),void 0,void 0,Z)};
var nGk=function(L,Z,N,S,u,T,W){L.previousPage!==W&&L.pendingTooltipPromo&&L.pendingTooltipPromo.cancel();L.previousPage=W;u?(L.pendingEnforcementPromo&&L.pendingEnforcementPromo.cancel(),L.pendingEnforcementPromo=new VBs(u,W),L.pendingEnforcementPromo.enqueue()):T?(L.pendingCommandWrapperPromo=new X0(T,W),L.pendingCommandWrapperPromo.enqueue()):S?(L.pendingRoadblockPromo&&L.pendingRoadblockPromo.cancel(),L.pendingRoadblockPromo=new $ws(S,W),L.pendingRoadblockPromo.enqueue()):Z?(L.pendingMealbarPromo&&
L.pendingMealbarPromo.cancel(),L.pendingMealbarPromo=new Gy8(Z,W),L.pendingMealbarPromo.enqueue()):N&&(L.pendingTooltipPromo&&L.pendingTooltipPromo.cancel(),L.pendingTooltipPromo=new vGY(N,_.yx()),L.pendingTooltipPromo.enqueue())},KOw=function(){cPg||(cPg=new RjY);
return cPg};var $H8=!1;var rYy=function(L,Z){var N=_.X7("SESSION_INDEX");this.actionToken_=L;this.commonToken_=Z;this.sessionIndex_=N},C3y=function(L){var Z=_.hS(),N=_.LZ("payments.business.integration.bootstrap"),S=_.LZ("payments.business.integration"),u=S.Style.create().withMaterialDesignStyle(),T=S.mashupMode.popup("instrument-manager");
N.asMashupMode(T).usingUserIndex(L.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(u).inStandaloneContext(S.standaloneContextAuthId.forUserId()).instrumentManager(L.actionToken_,L.commonToken_.length>0?L.commonToken_:void 0,function(W){var V=W.instrumentId;V?Z.resolve(V):(V=_.LZ("payments.business.integration.scenario.InstrumentManager"),Z.reject(W.errorCode&&W.errorCode===V.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(W){_.H8(W);
Z.reject("instrumentManagerLoadError")});
return Z.promise};var to=function(L,Z,N){this.payloadName="transactionFlowFailed";this.payload={errorType:L,serializedTransactionFlowLoggingParams:Z,isUserDismiss:N===void 0?!1:N}};
_.bp("yt.ypc.shared.YpcTransactionFlowError",to);var Hk=function(){return _.Ok.apply(this,arguments)||this};
_.f(Hk,_.Ok);Hk.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Hk.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Hk.prototype.onErrorMessageDismiss=Hk.prototype.onErrorMessageDismiss;_.r([_.Y({readOnly:!0,observer:"errorRendererChanged"}),_.Q("design:type",Object)],Hk.prototype,"errorRenderer",void 0);_.r([_.SA("yt-live-chat-error-message-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Hk.prototype,"onErrorMessageDismiss",null);_.r([_.Wh()],Hk);var f$y=[Hk.prototype];var kyY;var yPs;var wi5=new _.Bx("yt-live-chat"),Uwg=new Map;Uwg.set("timestamp_toggle","show-timestamps");Uwg.set("reactions_toggle","allow-reactions");var Bk=function(){return _.e.apply(this,arguments)||this};
_.f(Bk,_.e);_.t=Bk.prototype;_.t.menuItemIdentifierChanged=function(){var L;(L=this.data)!=null&&L.menuItemIdentifier&&(L=Uwg.get(this.data.menuItemIdentifier))&&(_.c("enable_lwe_web_mute")?(L=wi5.get(L),this.isToggled=!(L===void 0?!this.data.isToggled:!L)):this.isToggled=wi5.get(L))};
_.t.onFocus=function(){this.toggleButton.focus()};
_.t.onTap=function(){var L=this.data.command;L&&this.componentBehavior.resolveCommand(L)};
_.t.computeText=function(L,Z,N){return this.componentBehavior.getSimpleString(L?N:Z)};
_.t.computeIcon=function(L,Z,N){return(L=L?N:Z)&&L.iconType?_.Bh(L.iconType):""};
Bk.prototype.onTap=Bk.prototype.onTap;Bk.prototype.onFocus=Bk.prototype.onFocus;Bk.prototype.menuItemIdentifierChanged=Bk.prototype.menuItemIdentifierChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Bk.prototype,"componentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Bk.prototype,"data",void 0);
_.r([_.Y({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Q("design:type",String)],Bk.prototype,"icon",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Bk.prototype,"isToggled",void 0);_.r([_.TX("tp-yt-paper-toggle-button"),_.Q("design:type",Object)],Bk.prototype,"toggleButton",void 0);_.r([_.iA("data.menuItemIdentifier"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bk.prototype,"menuItemIdentifierChanged",null);
_.r([_.SA("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bk.prototype,"onFocus",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bk.prototype,"onTap",null);_.r([_.ch({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Bk);
_.m(Bk,"yt-live-chat-toggle-renderer",function(){if(yPs===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;kyY===void 0&&(kyY=document.createElement("template"));var S=kyY;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);yPs=L}L=yPs;return L},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Y0Y=new _.iY("NAVIGATION_PROGRESS_TOKEN");var ejv={},I$v={},dw8=(I$v[zB8.name]=!0,I$v),xl=function(){var L=_.Ok.apply(this,arguments)||this;L._noAccessors=!0;L.tabGesturesIsActive=!1;L.actionRouterIsRoot=!0;L.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"};L.pageTitle="";L.titleSuffix="YouTube";L.unseenNotificationCount=
0;L.hasNavigated=!1;L.hasSetScrollTopForNavigation=!1;L.pagePreparer=null;L.zwiebackInitJobId=0;L.dataUpdatePromise=null;L.loadDepsPromise=_.xP();L.hasPendingNavigation=!1;L.pendingPlayerOnResponseReceivedActions=[];return L};
_.f(xl,_.Ok);xl.prototype.attached=function(){a$c(this);document.addEventListener("yt-navigate-cache",_.Nd(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var L=qD();L.init();L.dispatchElement=this.hostElement};
var a$c=function(L,Z){Z=Z===void 0?0:Z;var N=_.GR().resolve(_.gv(_.kv));if(N)hj8(L,N);else{if(Z>=5)throw Error("sl");setTimeout(function(){a$c(L,Z+1)},0)}},hj8=function(L,Z){Z.addEventListener("yt-navigate-start",_.Nd(L,L.onYtNavigateStart));
Z.addEventListener("yt-navigate-finish",_.Nd(L,L.onYtNavigateFinish));Z.addEventListener("yt-navigate-error",_.Nd(L,L.onYtNavigateError));Z.addEventListener("yt-page-data-fetched",_.Nd(L,L.onYtPageDataFetched))};
_.t=xl.prototype;_.t.detached=function(){var L=_.GR().resolve(_.kv);L.removeEventListener("yt-navigate-start",_.Nd(this,this.onYtNavigateStart));L.removeEventListener("yt-navigate-finish",_.Nd(this,this.onYtNavigateFinish));L.removeEventListener("yt-navigate-error",_.Nd(this,this.onYtNavigateError));L.removeEventListener("yt-page-data-fetched",_.Nd(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Nd(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.t.setPageOffset=function(L,Z){L?_.XJ(this.hostElement,"yt-set-page-offset",[L,Z]):_.CA(Error("tl"))};
_.t.setPageOffsetForNavigation=function(L,Z){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(L,Z))};
_.t.onYtNavigateSetPageOffset=function(L,Z){this.setPageOffsetForNavigation(Z.page,Z.offset)};
_.t.getPageOffset=function(){var L=_.QJ(this.hostElement).querySelector("#page-manager").getCurrentPage(),Z=0;L&&(Z=_.XJ(this.hostElement,"yt-get-page-offset",[L])[0]);return Z};
_.t.onYtHistoryPop=function(L,Z){if(_.Ah("DISABLE_WARM_LOADS"))L.preventDefault(),window.location.reload();else{var N=_.GR().resolve(_.kv);N.hasPendingNavigation()&&L.preventDefault();N.cancelPendingNavigation();_.Ad(this.hostElement,"yt-pending-navigation-cancelled");Z.errorMsg&&(L=Z.errorMsg.split(" - "),Z=Error(L[0]),L.length==2&&L[1]&&(_.Xv(Z,L[1]),_.Q7(Z)),window.location.reload())}};
_.t.onYtHistoryLoad=function(L,Z){var N=this;if(_.Ah("DISABLE_WARM_LOADS"))window.location.reload();else{(L=Z.endpoint)&&Object.keys(L).length||(L=null);var S=Z.historyEntry,u=_.GR().resolve(_.kv),T=_.GR().resolve(_.mR),W=null;S&&S.rootData&&(W=S.rootData);var V=W&&sa0(W);!W||V||W.filler?L?(u.navigate(L,!0),jaP(this,L)):(Z.legacyBorder||V||(Z.JSC$30421_savedComponentState==null&&W==null?_.Q7(new _.sr("Incomplete history entry",Z.forward)):_.rY(new _.sr("Malformed history entry",Z.JSC$30421_savedComponentState,
Z.forward,W))),window.location.reload()):(_.Xbw({isHot:!0}),_.lB({webInfo:{navigationReason:"h"}}),_.ocf(),_.Rq("srt"),_.Rq("pdc"),this.cancelPendingTasks(),EGQ(this,Z.forward,W),W.player&&(W.player.loaded=!1),jaP(this,L),_.oHl(u,L||{},W,2,{},!1,Z).then(function(){N.setPageOffset(T.getCurrentPage(),S.scrollTop||0)}))}};
_.t.initHistoryManager=function(L){if(!this.hasNavigated){this.hasNavigated=!0;var Z=_.QJ(this.hostElement).querySelector("#page-manager").getCurrentData();L=isNaN(L)?this.getPageOffset():L;var N=_.GR().resolve(_.kv).currentEndpoint;this.replaceState(N,Z,L)}};
_.t.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.t.onYtNavigateStart=function(L,Z){this.cancelPendingTasks();Z.noProgressBar||(L=_.GR().resolve(_.gv(Y0Y)))&&L.start();L=this.hasPendingNavigation?null:this.data;var N=_.GR().resolve(_.mR),S,u,T;_.c("kevlar_use_vimio_behavior")&&!((S=Z.endpoint)==null?0:(u=S.commandMetadata)==null?0:(T=u.webCommandMetadata)==null?0:T.ignoreNavigation)&&(S=N.getCurrentPage())&&S.disconnectVisibilityRoot();N.prepareForNavigation(Z.pageType,Z.endpoint);_.c("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.ty(1,
"pcl"),_.Oj(this.pagePreparer,N.preparePage.bind(N,Z.pageType,Z.endpoint)));S=this.getPageOffset();this.initHistoryManager(S);Z.reload||this.hasPendingNavigation?((_.c("web_enable_delay_shorts_sequence_call")||_.c("web_enable_shorts_sequence_cache_fix"))&&Z.pageType==="shorts"&&Z.reload&&_.QT(this.hostElement,"yt-shorts-reset"),this.replaceState(Z.endpoint,L,S)):(L==null?void 0:L.page)==="watch"&&Z.pageType==="watch"&&_.c("kevlar_replace_watch_to_watch_history_state")?this.replaceState(Z.endpoint,
L,S):(L==null?void 0:L.page)!=="shorts"||Z.pageType!=="shorts"||Z.endpoint.reelWatchEndpoint.sequenceParams||_.c("short_to_short_back_nav_killswitch")?Z.type!="navigate-back"&&Z.type!="navigate-forward"&&(Z.pageType==="shorts"&&_.QT(this.hostElement,"yt-shorts-reset"),this.saveAndPush(Z.url,Z.endpoint,L,S)):(_.c("web_enable_delay_shorts_sequence_call")&&(Z.endpoint.reelWatchEndpoint.sequenceParams=L==null?void 0:L.cachedSequenceParams,Z.endpoint.reelWatchEndpoint.sequenceProvider=L==null?void 0:L.cachedSequenceProvider),
this.replaceState(Z.endpoint,L,0));this.hasPendingNavigation=!0};
var PuQ=function(L){L.hasPendingNavigation=!1;(L=_.GR().resolve(_.gv(Y0Y)))&&L.finish()};
xl.prototype.onYtNavigateError=function(L,Z){PuQ(this);L=this.get("endpoint.commandMetadata.webCommandMetadata.url",Z);var N=_.uQ(window.location.href);L&&!N.pbjreload&&(Z=Z.navigationErrorReason||"10",_.c("kevlar_parent_on_pbjreload")&&(N={csn:_.RH()},this.get("data.endpoint.clickTrackingParams")&&(N.itct=this.data.endpoint.clickTrackingParams),_.pv(L,N)),_.ke(_.TR(L,{pbjreload:Z})))};
xl.prototype.onYtNavigateCache=function(L,Z){var N=this,S=Z.url,u=Z.endpoint,T=Z.data;L=!!Z.miniplayer;Z=!!Z.skipHistory;if(S&&u&&T){var W=this.getPageOffset(),V=this.data||null;Z||this.saveAndPush(S,u,V,W);S=_.oHl(_.GR().resolve(_.kv),u,T,L?4:3,{},L);L&&S.then(function(){N.dataUpdatePromise&&N.dataUpdatePromise.then(function(){var M=_.GR().resolve(_.mR);N.setPageOffset(M.getCurrentPage(),0)})})}};
xl.prototype.onYtNavigateFinish=function(L,Z){var N=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){piw(N,Z.fromHistory)})};
var piw=function(L,Z){PuQ(L);if(L.pendingPlayerOnResponseReceivedActions){for(var N=_.O(L.pendingPlayerOnResponseReceivedActions),S=N.next();!S.done;S=N.next())_.LY(S.value,L.hostElement);L.pendingPlayerOnResponseReceivedActions=[]}N=_.GR().resolve(_.mR);Z||!L.hasNavigated||_.c("web_disable_scroll_on_navigate_finish")||((Z=N.getCurrentPage())?Z.is==="ytd-shorts"||L.tabGesturesIsActive||L.setPageOffsetForNavigation(Z,0):_.Q7(Error("ul")));_.Uk(function(){_.Uk(function(){_.Rq("pda")})})};
xl.prototype.onYtNavigate=function(L){if(!L.detail.endpoint){var Z=new _.sr("Error: Missing yt-navigate endpoint from target:",L.target,L.target.nodeName);_.CA(Z)}if(Z=_.c("cold_missing_history"))Z=qD(),Z.init(!1),Z=!(Z.browserHistory.boundHistoryReplaceState&&Z.browserHistory.boundHistoryPushState);if(Z){_.Qc("DISABLE_WARM_LOADS",!0);Z=new _.sr("Failed to initialize history manager",this.getDebugString());var N=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
N?_.Q7(Z):_.CA(Z)}Z=L.detail.endpoint;var S,u;_.c("debug_forward_web_query_parameters")&&((S=Z.commandMetadata)==null?0:(u=S.webCommandMetadata)==null?0:u.url)&&(Z=JSON.parse(JSON.stringify(Z)),Z.commandMetadata.webCommandMetadata.url=_.F2s(Z.commandMetadata.webCommandMetadata.url,window.location.search));L={type:0,command:Z,form:{params:L.detail.params,tempData:L.detail.tempData||{},requestType:L.detail.type,createScreenConfig:L.detail.createScreenConfig,reload:L.detail.reload?L.detail.reload:!1,
requestForm:L.detail}};_.c("kevlar_yt_navigate_command_handler")?(S=_.GR().resolve(_.$s),L.form.skipDefaultElement=!0,S.resolveCommand(Z,{form:L.form})):this.handleNavigate(L)};
xl.prototype.handleNavigate=function(L){this.hasSetScrollTopForNavigation=!1;var Z=_.GR().resolve(_.kv),N=L.form||{};Z.navigate(L.command,N.reload,N.params,N.tempData,N.requestType,N.createScreenConfig,N.ignoreConfirmation,N.requestForm)&&jaP(this,L.command,N.tempData)};
xl.prototype.onYtPageDataFetched=function(L,Z){try{_.WIQ().reset();this.data=Z.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.GR().resolve(_.mR).updatePageData(this.data);var N=this.get("playerResponse.onResponseReceivedActions",this.data);N&&(N=zjP(this,N));N&&_.B2(this.hostElement,N,this.hostElement);var S=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),u=this.get("response.responseContext.consistencyTokenJar",this.data);if(S||u){var T=_.Get(),W=(0,_.Py.getValues)(T.tokenJars);S&&T.replace(W,S);u&&T.replace(W,u)}}catch(V){_.CA(V)}};
var jaP=function(L,Z,N){try{L.onYtEndpointChangeHandler(Z,N)}catch(S){_.CA(S)}};
_.t=xl.prototype;_.t.onYtEndpointChangeHandler=function(){};
_.t.setPageTitle=function(L){L=(this.pageTitle=L)?L+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+L};
_.t.onYtUpdateTitle=function(L,Z){this.setPageTitle(Z)};
_.t.setUnseenNotificationCount=function(L){this.unseenNotificationCount=L;this.setPageTitle(this.pageTitle)};
_.t.handleUpdateNotificationsUnseenCountAction=function(L){_.n(L,ngm)&&((L=_.n(L,ngm).unseenCount)?this.setUnseenNotificationCount(L):this.setUnseenNotificationCount(0))};
_.t.handleClearCookieAction=function(L){var Z;(L=(Z=_.n(L,vgv))==null?void 0:Z.cookieName)&&_.aWP(L)};
_.t.onYtUpdateUnseenNotificationCount=function(L,Z){this.setUnseenNotificationCount(Z)};
_.t.loadData=function(L){var Z=this;this.loadDepsPromise.then(function(){var N=_.GR().resolve(_.gv(_.kv));N||_.CA(Error("vl"));if(L&&L.response){if(!L.endpoint){var S=_.e9(window.document.location.href)||"/",u="";if(S==="/"||S.startsWith("/?"))u="WEB_PAGE_TYPE_BROWSE";L.endpoint={commandMetadata:{webCommandMetadata:{url:S,webPageType:u,rootVe:3854}}}}_.oHl(N,L.endpoint,L,5,{})}else L.endpoint?N.navigate(L.endpoint):N.navigate(_.aB);_.ro.cancelJob(Z.zwiebackInitJobId);Z.zwiebackInitJobId=_.ro.addLowPriorityJob(DH8)})};
var qD=function(){return _.GR().resolve(_.ku)};
xl.prototype.getDebugString=function(){return qD().getDebugString()};
xl.prototype.getThirdPartyManipulationSuspected=function(){return qD().getThirdPartyManipulationSuspected()};
xl.prototype.replaceState=function(L,Z,N){qD().saveAndReplace(L,Z,N)};
xl.prototype.saveAndPush=function(L,Z,N,S){qD().saveAndPush(L,Z,N,S)};
var sa0=function(L){return _.n(L.endpoint,_.so)||_.n(L.endpoint,_.Ox)?!0:!L||isNaN(L.expirationTime)?!1:(0,_.GT)()>L.expirationTime},EGQ=function(L,Z,N){var S=L.get("response.trackingParams",N),u=_.oH(),T=_.RH();
if(S&&u&&T&&(S=L.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",N),!S&&N.rootVe&&(S=N.rootVe),u=Z?"forwardButton":"backButton",Z=L.get("playerResponse.topbar.desktopTopbarRenderer."+u+".buttonRenderer.command.clickTrackingParams",L.data),L=L.get("response.topbar.desktopTopbarRenderer."+u+".buttonRenderer.command.clickTrackingParams",L.data),Z=(L=Z||L)?_.Mg(L):void 0,L=_.tC(),u=[_.xP(N)],_.fF(L,S,Z,{dataPromises:u,csnToClone:N.csn}),N.graftedVes))for(N=
_.O(N.graftedVes),S=N.next();!S.done;S=N.next())_.k3(L,S.value)};
xl.prototype.onStoreGraftedVeAction=function(L){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(L)):_.Q7(Error("wl"))};
var zjP=function(L,Z){return Z.filter(function(N){for(var S in N)if(dw8[S])return L.pendingPlayerOnResponseReceivedActions.push(N),!0;return!1})};
_.gd.Object.defineProperties(xl.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
xl.prototype.onStoreGraftedVeAction=xl.prototype.onStoreGraftedVeAction;xl.prototype.loadData=xl.prototype.loadData;xl.prototype.onYtUpdateUnseenNotificationCount=xl.prototype.onYtUpdateUnseenNotificationCount;xl.prototype.handleClearCookieAction=xl.prototype.handleClearCookieAction;xl.prototype.handleUpdateNotificationsUnseenCountAction=xl.prototype.handleUpdateNotificationsUnseenCountAction;xl.prototype.setUnseenNotificationCount=xl.prototype.setUnseenNotificationCount;
xl.prototype.onYtUpdateTitle=xl.prototype.onYtUpdateTitle;xl.prototype.setPageTitle=xl.prototype.setPageTitle;xl.prototype.onYtEndpointChangeHandler=xl.prototype.onYtEndpointChangeHandler;xl.prototype.onYtPageDataFetched=xl.prototype.onYtPageDataFetched;xl.prototype.handleNavigate=xl.prototype.handleNavigate;xl.prototype.onYtNavigate=xl.prototype.onYtNavigate;xl.prototype.onYtNavigateFinish=xl.prototype.onYtNavigateFinish;xl.prototype.onYtNavigateCache=xl.prototype.onYtNavigateCache;
xl.prototype.onYtNavigateError=xl.prototype.onYtNavigateError;xl.prototype.onYtNavigateStart=xl.prototype.onYtNavigateStart;xl.prototype.cancelPendingTasks=xl.prototype.cancelPendingTasks;xl.prototype.initHistoryManager=xl.prototype.initHistoryManager;xl.prototype.onYtHistoryLoad=xl.prototype.onYtHistoryLoad;xl.prototype.onYtHistoryPop=xl.prototype.onYtHistoryPop;xl.prototype.onYtNavigateSetPageOffset=xl.prototype.onYtNavigateSetPageOffset;xl.prototype.setPageOffset=xl.prototype.setPageOffset;
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],xl.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],xl.prototype,"data",void 0);_.r([_.SA("yt-navigate-set-page-offset"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],xl.prototype,"onYtNavigateSetPageOffset",null);
_.r([_.SA("yt-history-pop"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],xl.prototype,"onYtHistoryPop",null);_.r([_.SA("yt-history-load"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event,_.soV]),_.Q("design:returntype")],xl.prototype,"onYtHistoryLoad",null);_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],xl.prototype,"onYtNavigate",null);
_.r([_.SA("yt-update-title"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event,String]),_.Q("design:returntype")],xl.prototype,"onYtUpdateTitle",null);_.r([_.SA("yt-update-unseen-notification-count"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event,Number]),_.Q("design:returntype")],xl.prototype,"onYtUpdateUnseenNotificationCount",null);_.r([_.Wh()],xl);ejv.YtdAppBehavior=[_.nK.YtActionHandlerBehavior,xl.prototype];var LC=function(){var L=_.Ok.apply(this,arguments)||this;L._noAccessors=!0;return L};
_.f(LC,_.Ok);LC.prototype.ready=function(){var L=this;_.QJ(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){L.onChange_()})};
LC.prototype.dataChanged_=function(){_.QJ(this.hostElement).querySelector("#checkbox").checked=!1};
LC.prototype.onChange_=function(){var L=_.QJ(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.QT(this.hostElement,"yt-dismissal-reason-"+L,this.data.feedbackToken)};
LC.prototype.dataChanged_=LC.prototype.dataChanged_;_.r([_.Y(),_.Q("design:type",Object)],LC.prototype,"data",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],LC.prototype,"dataChanged_",null);_.r([_.Wh()],LC);var mwy=[LC.prototype];var Zm=function(){var L=_.Ok.apply(this,arguments)||this;L.timeoutJobId=0;L.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return L};
_.f(Zm,_.Ok);Zm.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
Zm.prototype.startTimeout=function(){var L=this,Z=this.data&&this.data.displayDurationSeconds;Z&&!this.timeoutJobId&&(this.timeoutJobId=_.sI(_.ro,function(){_.XJ(L.hostElement,"yt-close-popup-action",[L.is]);L.timeoutJobId=0},Z*1E3))};
Zm.prototype.cancelTimeout=function(){_.ro.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
Zm.prototype.ytdHatsSurveyBehaviorDataChanged=Zm.prototype.ytdHatsSurveyBehaviorDataChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Zm.prototype,"ytActionHandlerBehavior",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Zm.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.r([_.Wh()],Zm);var JPv=[_.nK.YtActionHandlerBehavior,Zm.prototype];var Cuv=function(L,Z){var N;return((N=L.prefixMapping)==null?0:N[Z])?L.prefixMapping[Z]:L.SHARED_RENDERERS_.hasOwnProperty(Z)?"yt":L.prefix},N5={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}};N5.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.c("kevlar_mealbar_above_player"),modern:_.c("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
N5.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};N5.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};N5.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
N5.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)"}};
N5.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};
N5.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};
N5.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};
N5.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
N5.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"}};N5.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};N5.TOAST={component:null,properties:{}};var rPm=new function(L,Z,N){this.supportedPopups=L;this.navigationEndpointPopupMap=Z;this.popupTypeMap=N;this.supportedPopups=L;this.navigationEndpointPopupMap=Z;this.popupTypeMap=N}({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:_.c("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"}),Qaq=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$20170_popupConfig=N5;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 Xi0=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.JE.getInstance()},SI=function(L,Z){var N=L.pageNameToElement.get(Z);
if(!N){switch(Z){case "watch":var S=_.c("web_watch_force_learning_journey_for_testing")?_.Tx("ytd-watch-learning-journey"):_.c("kevlar_watch_fixie")?_.Tx("ytd-watch-fixie"):_.c("kevlar_watch_grid")?_.Tx("ytd-watch-grid"):_.Tx("ytd-watch-flexy");break;case "learning_journey_watch":S=_.Tx("ytd-watch-learning-journey");break;case "shorts":S=_.Tx("ytd-shorts");break;case "search":S=_.Tx("ytd-search");break;case "channel":S=_.Tx("ytd-browse");S.pageSubtype="channels";break;case "trending":S=_.Tx("ytd-browse");
S.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":S=
_.Tx("ytd-browse");S.pageSubtype=Z;break;case "browse":S=_.Tx("ytd-browse");break;default:_.Q7(new _.sr("Error getting page element for type",Z))}N=S;L.pageNameToElement.set(Z,N)}return N};
Xi0.prototype.preparePage=function(L,Z,N){N&&(L=_.SD(N)||L);if(L!=="watch"&&L!=="learning_journey_watch"){var S=this.elementPoolPopulator,u=L;u!=S.targetPage_&&S.pendingPages_.indexOf(u)>-1&&(S.targetPage_&&(S.pendingPages_.unshift(S.targetPage_),S.abort()),r45(S,u),_.jCh(S,u))}if((S=SI(this,L))||!_.n(N,_.Lo)){S.isAttached||S===Z||(S.hidden=!0);if(!S.data&&(L!=="watch"&&L!=="learning_journey_watch"||!_.c("swatcheroo_page_pool_dont_provide_filler_data"))){var T;if(L=(T=_.X7("FILLER_DATA",{})[L])==
null?void 0:T.response)S.data=L}return S}};var AP5=function(L){this.JSC$32386_clientRoot=L;this.playlistHandlerActionMap={"yt-add-to-playlist-command":k10,"yt-end-playlist-command":y98,"yt-recover-playlist-command":UHv,"yt-refresh-playlist-command":IK5,"yt-playlist-remove-videos-action":YcP};_.ie(_.SS.getInstance(),this.playlistHandlerActionMap,this.JSC$32386_clientRoot);Nps()},HW8;var iL=function(L,Z,N){this.apiKey=L;this.endpoint=Z;this.confidenceThreshold=N===void 0?.5:N;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=Z==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||Z==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
Z==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||Z==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new bKw};
_.t=iL.prototype;
_.t.start=function(L){if(this.state===0)if(this.isOnline()){L.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=L.supportsHttpHeadersOverwriteParam);L.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=L.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.oq("voice_assistant");_.Kq("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=L.languageCode||"en-US";this.supportsCrossDomainXhr=L.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=L.youtubeAssistantRequest||null;this.listeningHandler=L.listeningHandler||this.listeningHandler;this.audioDetectedHandler=L.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=L.stopHandler||this.stopHandler;this.completeHandler=L.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=L.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=L.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
L.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=L.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=L.accessToken;this.additionalHeaders=L.additionalHeaders||{};var Z;this.prefetchResponseTimeoutMs=(Z=L.prefetchResponseTimeoutMs)!=null?Z:this.prefetchResponseTimeoutMs;BAY(this);this.startAudio();xw5(this)}else this.errorHandler("OFFLINE")};
_.t.stop=function(L){var Z=L===void 0?{}:L;L=Z.logCancel===void 0?!0:Z.logCancel;var N=Z.logMicClosed===void 0?!0:Z.logMicClosed;var S=Z.handleError===void 0?!0:Z.handleError;Z=Z.handleStop===void 0?!0:Z.handleStop;this.state!==0&&(L&&uL("voz_cx"),Tv(this,{logMicClosed:N,handleStop:Z}),S&&this.errorHandler("ABORTED"))};
_.t.getState=function(){return this.state};
_.t.isSupported=function(){return!0};
_.t.stopAudio=function(L){(L===void 0||L)&&uL("voz_mf")};
_.t.startAudio=function(){uL("voz_vp");return _.xP(null)};
var q0g=function(L,Z){L.channelOpen&&(L.state!==2&&(L.state=2,uL("voz_ss"),L.listeningHandler()),Z=new Uint8Array(Z),Z='{ "audioIn": "'+_.jY(Z)+'" }',L.channel.send(Z))},Tv=function(L,Z){var N=Z===void 0?{}:Z;
Z=N.logMicClosed===void 0?!0:N.logMicClosed;N=N.handleStop===void 0?!0:N.handleStop;L.vozEndOfDataTimeout>-1&&(clearTimeout(L.vozEndOfDataTimeout),L.vozEndOfDataTimeout=-1);LEy(L);L.stopAudio(Z);L.channel&&(L.channelOpen=!1,L.manuallyClosedChannel=!0,L.channel.close(),L.channel=void 0);L.transcribedSpeechResults=[];L.state=0;N&&L.stopHandler()},BAY=function(L){var Z={httpHeadersOverwriteParam:L.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},L.additionalHeaders,L.accessToken&&L.isUsingVoz?{Authorization:"Bearer "+L.accessToken}:{"x-goog-api-key":L.apiKey}),supportsCrossDomainXhr:L.supportsCrossDomainXhr};L.channel=new ck(L.endpoint,Z);L.channel.open();_.Gl(L.channel,"w",function(){var N=L.channel,S=N.send,u=L.isUsingVoz?"PLACEHOLDER":"example";u={config:{dialogStateIn:{languageCode:L.languageCode},deviceConfig:{deviceId:u,deviceModelId:u},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!L.isUsingVoz)u.config.requestType=4;else if(L.isUsingVoz&&L.youtubeAssistantRequest){var T=JSON.stringify(L.youtubeAssistantRequest);u.config.internalIn={youtubeAssistantS3InputJson:T}}S.call(N,u);L.channelOpen=!0;L.manuallyClosedChannel=!1});
_.Gl(L.channel,"x",function(){L.manuallyClosedChannel||(L.channelOpen=!1,L.channel=void 0,Tv(L))});
_.Gl(L.channel,"z",function(N){if(N.data){LEy(L);for(var S=0;S<N.data.length;S++){var u=L,T=N.data[S],W=T.speechResults;if(W)a:{var V=[];T=[];var M=!1;W=_.O(W);for(var G=W.next();!G.done;G=W.next()){G=G.value;if(G.noSpeech){Tv(u);u.errorHandler("NO_SPEECH");break a}G.transcript!==void 0&&G.stability!==void 0&&(G.stability<u.confidenceThreshold&&(M=!0),M?T.push(G.transcript):V.push(G.transcript))}if(V.length!==0||T.length!==0)V=V.join(" "),T=T.join(" "),u.receivedEndOfUtterance&&!u.isUsingVoz?u.isUsingVoz||
u.completeHandler([V,T]):(M=u,W=V,G=T,uL("voz_sf"),M.transcriptionUpdateHandler(W,G),M.transcribedSpeechResults=[W,G]),u.receivedEndOfUtterance&&(uL("voz_eou"),u.transcriptionCompleteHandler([V,T]),u.isUsingVoz&&(u.prefetchResponseTimeoutMs===0?Tv(u,{logMicClosed:!1,handleStop:!0}):u.prefetchResponseTimeoutMs>0&&Z$0(u)))}else u.isUsingVoz&&(T==null?0:T.internalOut)?(T=JSON.parse(T.internalOut.youtubeAssistantS3OutputJson),T.userHasOptedInToVaa||T.vaaConsent?u.vaaConsentUpdateHandler(!!T.userHasOptedInToVaa,
!!T.vaaConsent):(NUY(u),T&&(V=u.transcribedSpeechResults,uL("voz_rqf"),u.completeHandler(V,T)))):T.eventType==="END_OF_UTTERANCE"?u.receivedEndOfUtterance=!0:(uL("voz_err"),u.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Q7(Error("xl")))}}});
_.Gl(L.channel,"y",function(N){Tv(L);switch(N.status){case 1:N="WEBCHANNEL_NETWORK_ERROR";break;case 2:N="WEBCHANNEL_SERVER_ERROR";break;default:N="WEBCHANNEL_UNKNOWN_ERROR"}L.errorHandler(N);L.logError(Error(N))})};
iL.prototype.logError=function(L){_.CA(L)};
iL.prototype.isOnline=function(){return!0};
var Z$0=function(L){NUY(L);L.prefetchResponseSetTimeoutId=setTimeout(function(){Tv(L,{logMicClosed:!1,handleStop:!0})},L.prefetchResponseTimeoutMs)},NUY=function(L){L.prefetchResponseSetTimeoutId>-1&&(clearTimeout(L.prefetchResponseSetTimeoutId),L.prefetchResponseSetTimeoutId=-1)},xw5=function(L){LEy(L);
L.noResponseReceivedTimeout=window.setTimeout(function(){Tv(L);L.errorHandler("NO_SPEECH")},11E3)},LEy=function(L){L.noResponseReceivedTimeout>-1&&(window.clearTimeout(L.noResponseReceivedTimeout),L.noResponseReceivedTimeout=-1)},uL=function(L){_.Rq(L,void 0,"voice_assistant")};var t7=function(){iL.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.f(t7,iL);t7.prototype.isSupported=function(){return dHs()};
t7.prototype.startAudio=function(){var L=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.$N(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(S){SEv(L,S)};
this.processor.connect(this.audioContext.destination);var Z=function(S){L.stream=S;if(!L.audioContext)return _.xP(null);S=L.audioContext.createMediaStreamSource(S);L.processor&&S.connect(L.processor);return _.xP(null)},N={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?Z(this.stream):(N=navigator.mediaDevices.getUserMedia(N))?N.then(Z).catch(function(S){Tv(L);S.name&&S.name==="NotAllowedError"?L.errorHandler("NO_MICROPHONE_PERMISSION"):(L.errorHandler("AUDIO_ERROR"),L.logError(S));return _.$N(null)}):(Tv(this),this.errorHandler("AUDIO_ERROR"),_.Q7(Error("yl")));
return iL.prototype.startAudio.call(this)};
t7.prototype.stopAudio=function(L){L=L===void 0?!0:L;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(Z){Z.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;iL.prototype.stopAudio.call(this,L)};
t7.prototype.isOnline=function(){return navigator.onLine};
var SEv=function(L,Z){if(L.audioContext)if(window.OfflineAudioContext){var N=L.audioContext.sampleRate,S=Z.inputBuffer.getChannelData(0);Z=new window.OfflineAudioContext(1,S.length,16E3);for(var u=Z.createBuffer(1,S.length,N),T=u.getChannelData(0),W=0,V=0;V<S.length;V++)T[V]=S[V],W+=T[V]*T[V];!L.audioDetected&&Math.sqrt(W/S.length)>.01&&(L.audioDetected=!0,L.audioDetectedHandler());S=Z.createBufferSource();S.buffer=u;S.connect(Z.destination);S.start(0);Z.oncomplete=function(M){M=M.renderedBuffer.getChannelData(0);
for(var G=Math.floor(16384E3/N),D=new Int16Array(G),l=0;l<G;++l)D[l]=Math.max(-1,Math.min(1,M[l]))*32767;q0g(L,D.buffer)};
Z.startRendering()}else i$k(L,Z)},i$k=function(L,Z){var N=L.audioContext.sampleRate,S=Z.inputBuffer.getChannelData(0),u=Math.floor((N+8E3)/16E3);
N=S.length/u;Z=new Float32Array(N);for(var T=0;T<N;++T)Z[T]=S[T*u];S=new Int16Array(N);for(u=0;u<N;++u)S[u]=Math.max(-1,Math.min(1,Z[u]))*32767;q0g(L,S.buffer)};var usk={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var TUY=function(){this.JSC$20236_audioEnabled=!0;this.audioFeedbackHolder={}};
TUY.prototype.isPlaying=function(L){return L.currentTime>0&&!L.paused&&!L.ended&&L.readyState>2};
var t4v=function(L){for(var Z=_.O(Object.values(usk)),N=Z.next();!N.done;N=Z.next())N=N.value,L.audioFeedbackHolder[N]=new Audio,L.audioFeedbackHolder[N].src="/s/search/audio/"+N+".mp3",L.audioFeedbackHolder[N].load()},OH=function(L,Z){if(L.JSC$20236_audioEnabled!==!1&&Z in L.audioFeedbackHolder){for(var N=_.O(Object.values(L.audioFeedbackHolder)),S=N.next();!S.done;S=N.next())S=S.value,L.isPlaying(S)&&S.pause();
L.audioFeedbackHolder[Z].currentTime=0;L.audioFeedbackHolder[Z].play().catch(function(){})}};var O$c=function(L,Z){var N=this;this.store=L;this.service=Z;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){N.setState("offline");N.stop()};
this.audioPlayer=new TUY;var S;(S=this.audioPlayer)==null||t4v(S)};
_.t=O$c.prototype;_.t.getService=function(){return this.service};
_.t.isEnabled=function(){return!!this.service};
_.t.isSupported=function(){var L;return(L=this.service)==null?void 0:L.isSupported()};
_.t.start=function(){var L=this,Z,N,S,u,T,W,V,M,G,D,l,v,R;return _.b(function(K){switch(K.nextAddress){case 1:L.store.dispatch(WCP("",""));if(!navigator.onLine)return L.setState("offline"),K.return();window.addEventListener("offline",L.handleOfflineEvent);L.stream=null;if(!L.permissionsSupported){K.jumpTo(2);break}_.RS(K,3);return K.yield(WEc(L),5);case 5:Z=K.yieldResult;if(!Z)return(N=L.audioPlayer)==null||OH(N,"failure"),K.return();L.service.stream=L.stream;L.setState("listening");_.SX(K,2);break;
case 3:_.yd(K),L.permissionsSupported=!1;case 2:S={context:_.pvL(_.Dk())},S.youtubeAssistantParams={searchParams:{inlineSearchResponse:L.enableInlineSearchResponse}},u=function(U,d){L.store.dispatch(V5m("transcribing"));L.store.dispatch(WCP(U,d))},T=function(){var U;
(U=L.audioPlayer)==null||OH(U,"open");L.setState("listening")},W=function(){L.setState("transcribing")},V=function(U){L.setErrorState(U)},M=function(U,d){var h;
(h=L.audioPlayer)==null||OH(h,"success");d&&(_.c("kevlar_voice_search_inline_search")&&(L.responseProcessor=_.GR().resolve(_.lZx),L.responseProcessor&&(h=d.navigationAction,U=d.prefetchedSearchResponse,h&&U&&(h=(new _.iyc).JSC$14174_getStoreKey(h),_.eW(L.responseProcessor,U,h)))),L.JSC$20254_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",d))},G=function(){window.removeEventListener("offline",L.handleOfflineEvent)},D=_.HkF(!1),l=D.Authorization!=null,v=L.enableFirstPartyAuth||
L.enableFPAForSignedInUsers&&l?D:{"X-Goog-Visitor-Id":D["X-Goog-Visitor-Id"]},R={completeHandler:M,
errorHandler:V,listeningHandler:T,audioDetectedHandler:W,stopHandler:G,transcriptionUpdateHandler:u,youtubeAssistantRequest:S,languageCode:V4c(),additionalHeaders:v,supportsCrossDomainXhr:L.enableFirstPartyAuth||L.enableFPAForSignedInUsers&&l,supportsHttpHeadersOverwriteParam:!L.disableHttpHeadersOverwrite},L.service.start(R),_.w7(K)}})};
_.t.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.t.reset=function(){this.store.dispatch(_.XK({type:"RESET_VOICE_SEARCH_STATE"}))};
_.t.setState=function(L){this.store.dispatch(V5m(L))};
_.t.setErrorState=function(L){switch(L){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var Z;(Z=this.audioPlayer)==null||OH(Z,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)WEc(this);else{var N;(N=this.audioPlayer)==null||OH(N,"failure");this.setState("permission-denied")}break;case "ABORTED":var S;(S=this.audioPlayer)==null||OH(S,"no_input");break;default:var u;(u=this.audioPlayer)==
null||OH(u,"no_input");this.setState("timeout")}};
var WEc=function(L){var Z,N;return _.b(function(S){switch(S.nextAddress){case 1:return S.yield(navigator.permissions.query({name:"microphone"}),2);case 2:Z=S.yieldResult;if(Z.state==="granted")return S.return(!0);if(Z.state==="denied")return L.setState("permission-denied"),S.return(!1);L.setState("permission");N={audio:{sampleSize:16,channelCount:1},video:!1};_.RS(S,3);return S.yield(navigator.mediaDevices.getUserMedia(N),5);case 5:return L.stream=S.yieldResult,S.return(!0);case 3:return _.yd(S),
L.setState("permission-denied"),S.return(!1)}})},V4c=function(){var L=_.X7("INNERTUBE_CONTEXT_HL"),Z=_.X7("INNERTUBE_CONTEXT_GL");
return L.indexOf("-")>-1?L:L+"-"+Z};var b$Q=function(L,Z,N){O$c.call(this,Z,N);this.JSC$20254_actionRouter=L;this.enableInlineSearchResponse=_.c("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.c("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.c("kevlar_voice_search_enable_fpa_signedin_users")},M4k;
_.f(b$Q,O$c);
var g7q=function(){if(!M4k){var L="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.c("kevlar_voice_search_auth_enabled")||_.c("kevlar_voice_search_use_yt_endpoint")?L="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.c("kevlar_voice_search_use_fp_endpoint")&&(L="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");M4k=
new b$Q(_.SS.getInstance(),_.Pv(),new t7(_.X7("VOZ_API_KEY"),L,.5))}return M4k};var GNm=function(L){this.JSC$20258_clientRoot=L;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$20258_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)]]));L=_.O(this.eventListeners);for(var Z=L.next();!Z.done;Z=L.next()){var N=
_.O(Z.value);Z=N.next().value;N=N.next().value;N=_.O(N);for(var S=N.next();!S.done;S=N.next()){var u=_.O(S.value);S=u.next().value;u=u.next().value;Z.addEventListener(S,u)}}_.ie(_.SS.getInstance(),this.autonavPauseActionMap,this.JSC$20258_clientRoot)},FEw,$tv=function(L){return _.c("kevlar_autonav_popup_filtering")?(L=_.jD(L))?L.hasAttribute("prevent-autonav"):!0:!0};
_.t=GNm.prototype;_.t.onIronOverlayOpened=function(L){$tv(L)&&(this.autonavPauseReasons.overlayOpen=!0,Wr(this))};
_.t.onIronOverlayClosed=function(L){$tv(L)&&(this.autonavPauseReasons.overlayOpen=!1,Wr(this))};
_.t.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Wr(this)};
_.t.onYtAutonavPauseBlur=function(){var L=this;_.ro.addJob(function(){L.isInBackground()||(L.autonavPauseReasons.inputBoxFocus=!1,Wr(L))},8,0)};
_.t.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Wr(this)};
_.t.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Wr(this)};
_.t.onYtAutonavPauseScroll=function(){var L=_.GR().resolve(_.mR);L.isOnWatch()&&(L=L.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=L.getBoundingClientRect().top<-200,Wr(this))};
_.t.onYtAutonavPauseUserEngagement=function(L){var Z=this;if(_.c("user_engagement_enable_autoplay_pause_feature")){var N=Number(L.lowEngagementThresholdMs);isNaN(N)||N<=0||L.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Pm("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.GR().resolve(_.MV),_.Fv()<N?_.sI(_.ro,function(){_.Pm("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.qxm()?(this.userEngagementCsn=_.RH(),_.sI(_.ro,function(){_.Pm("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
Z.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Wr(this)):_.Pm("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.LKf(Error("zl`"+JSON.stringify(L)))};
_.t.onYtAutonavPausePlayer=function(L){this.autonavPauseReasons.requestedByPlayer=!!L.detail;Wr(this)};
_.t.onYtAutonavVisibilityChanged=function(){var L=this,Z,N,S;return _.b(function(u){if(u.nextAddress==1)return(Z=_.CV())?u.yield(Z.getPlayerPromise(),2):u.return();N=u.yieldResult;S=N.isMuted()||N.getVolume()===0;L.autonavPauseReasons.backgroundAndMute=L.isInBackground()&&S;Wr(L);_.w7(u)})};
_.t.onYtAutonavPausePlayerEnded=function(){_.GR().resolve(_.MV);var L=144E5;_.c("user_engagement_enable_autoplay_pause_feature")||_.c("is_part_of_any_user_engagement_experiment")||(L=45E5);this.autonavPauseReasons.longIdle=_.Fv()>L;DtQ(this);Wr(this)};
_.t.onYtUserActivity=function(){var L=this;this.autonavPauseReasons.userEngagement&&(_.sI(_.ro,function(){_.Pm("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",L.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Wr(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.sI(_.ro,function(){_.Pm("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",L.userEngagementCsn);_.JV()}),this.autonavPauseReasons.youthereLactExperiment=!1,Wr(this));
this.autonavPauseReasons.longIdle&&!_.c("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Wr(this))};
_.t.isInBackground=function(){var L=window.document.visibilityState;return!(!L||L==="visible")};
var Wr=function(L){for(var Z=!1,N=_.O(Object.values(L.autonavPauseReasons)),S=N.next();!S.done;S=N.next())S=S.value,Z=Z||S;Z?_.Fx.getInstance().pause(L.autonavPauseReasons):(L=_.Fx.getInstance(),L.autonavState_==3?(L.setState(2,!1,!1),L.autonavPauseReason_=void 0):L.autonavState_==1&&(L.disabledAutonavPauseReason_=void 0))},DtQ=function(L){var Z=!1;
if(_.c("enable_autoplay_pause_by_lact")){_.GR().resolve(_.MV);Z=_.lQ("autoplay_pause_by_lact_sec")*1E3;var N=_.lQ("autoplay_pause_by_lact_sampling_fraction");(Z=_.Fv()>=Z&&Math.random()<N)&&!_.qxm()&&(_.sI(_.ro,function(){_.Pm("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),Z=!1)}Z!==L.autonavPauseReasons.youthereLactExperiment&&(L.autonavPauseReasons.youthereLactExperiment=Z)&&(L.userEngagementCsn=_.RH(),_.sI(_.ro,function(){_.Pm("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",L.userEngagementCsn)}));
L.autonavPauseReasons.userEngagement&&_.sI(_.ro,function(){_.Pm("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",L.userEngagementCsn)})};
GNm.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Pm("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.JV(),this.autonavPauseReasons.youthereLactExperiment=!1,Wr(this));this.autonavPauseReasons.userEngagement&&(_.Pm("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Wr(this))};
GNm.prototype.onYtEngagementPanelVisibleChanged=function(L){L.detail&&L.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=L.detail.visible,Wr(this))};
GNm.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var lOv=_.Y9.persistentPanelVisibleSelector,Vy=function(){var L=_.e.apply(this,arguments)||this;L.miniGuideVisible=!1;L.guideOpened=_.c("disable_initial_guide_state_fix")?!1:L.canFitPersistentGuide(L.initialBodyClientWidth);L.guideUserStateOpened=L.getInitialGuideUserStateOpened();L.isFullscreenShorts=!1;L.miniGuideWidthThreshold=_.lQ("kevlar_mini_guide_width_threshold",791);L.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
L.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");L.persistentGuideBlockedPagePathRegex=new RegExp(L.persistentGuideBlockedPagesPatterns.join("|"));L.animationTransitionDuration=0;L.lateDataResolver=_.hS();L.initialGuideDataFetchFailed=!1;L.initialLoad=!0;L.guideRenderers=new Set;L.isMouseOverGuide=!1;L.sessionUserManuallyExpandedGuideState=
!1;L.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return L};
_.f(Vy,_.e);_.t=Vy.prototype;_.t.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.t.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.t.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.t.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.t.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.t.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.t.ready=function(){_.GR().addProvider({provide:_.H0,useValue:this.hostElement})};
_.t.attached=function(){var L=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Nd(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Nd(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Nd(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Nd(this,this.onYtGuideShow));_.bN(this,function(){L.animationTransitionDuration=200})};
_.t.detached=function(){document.removeEventListener("yt-navigate-finish",_.Nd(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Nd(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Nd(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Nd(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Nd(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Nd(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Nd(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.t.getData=function(){return this.data};
_.t.load=function(){var L=this,Z,N,S,u;return _.b(function(T){switch(T.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=L.lateDataResolver.resolve.bind(L),T.return(L.lateDataResolver.promise);if(window.ytInitialGuideData)return Z=_.hS(),Z.resolve(window.ytInitialGuideData),T.return(Z.promise);S=!1;_.RS(T,2);return T.yield(L.fetchGuideData(),4);case 4:N=T.yieldResult;_.SX(T,3);break;case 2:u=_.yd(T),u.message==="Returned error"&&(S=
!0);case 3:if(N)return T.return(N);L.onYtGuideClose();S||(L.initialGuideDataFetchFailed=!0);return T.return(L.lateDataResolver.promise)}})};
_.t.fetchGuideData=function(){var L=this,Z,N,S,u,T,W,V;return _.b(function(M){if(M.nextAddress==1)return Z=_.GR(),L.guidePromise||(N=Z.resolve(_.bv),L.guidePromise=_.aV(N,Dbs)),M.yield(L.guidePromise,2);if(M.nextAddress!=3)return S=M.yieldResult,u=Z.resolve(_.el),M.yield(u(),3);(T=M.yieldResult)&&((W=S)==null?void 0:(V=W.responseContext)==null?void 0:V.maxAgeSeconds)!==0&&T.put("service:guide:fallback",new _.co({innertubeResponse:S}));return M.return(S)})};
_.t.initializeGuideDataIfEmpty=function(){var L=this,Z,N;return _.b(function(S){if(S.nextAddress==1){if(!L.initialGuideDataFetchFailed||L.data)return S.return();_.RS(S,2);return S.yield(L.fetchGuideData(),4)}if(S.nextAddress!=2)return(Z=S.yieldResult)&&L.lateDataResolver.resolve(Z),_.SX(S,0);N=_.yd(S);_.Q7(N);_.w7(S)})};
_.t.initializeGuideData=function(){var L=this,Z;return _.b(function(N){switch(N.nextAddress){case 1:return _.LM(CAg(),{mainAppWeb:_.Is()}),_.RS(N,2),N.yield(L.load(),4);case 4:L.data=N.yieldResult;_.SX(N,3);break;case 2:_.yd(N),_.ZK(CAg(),"FAILURE");case 3:Z=L.data&&L.data.items&&L.data.items.length>0?"SUCCESS":"FAILURE",_.ZK(CAg(),Z),_.w7(N)}})};
_.t.setGuideData=function(L){var Z=this,N,S;return _.b(function(u){if(u.nextAddress==1)return Z.disabled?u.return():Z.data?(L.data=Z.data,Z.guideRenderers.add(L),u.return()):u.yield(Z.initializeGuideData(),2);Z.graftGuideToPage();N=_.Ah("IS_HOMEPAGE_COLD")?"eop":void 0;_.c("disable_element_pool_populator")?Z.setGuideDataAfterInit(L):(S=new _.ty(1,N),_.Oj(S,Z.setGuideDataAfterInit.bind(Z,L)));_.w7(u)})};
_.t.setGuideDataAfterInit=function(L){L.data=this.data;L.markDirty();this.guideRenderers.add(L);_.Uk(function(){_.Rq("gle")});
_.bN(this,function(){_.Rq("gpe")})};
_.t.graftGuideToPage=function(){if(this.data){var L=this.data&&this.data.trackingParams;L&&(L=_.Mg(L),_.yn(_.tC(),L))}};
_.t.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Nd(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.t.onDrawerOpenedChanged=function(L,Z){!Z.value&&this.guideOpened&&(this.guideOpened=!1)};
_.t.onYtGuideToggle=function(L){var Z=this.guideOpened;this.guideOpened=!Z;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var N=_.tq();_.OT(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;N.save()}this.updateGuideDrawerElementState();if(this.guideElement){var S;this.guideOpened&&((S=L.detail)==null?0:S.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Nd(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.Nd(this,this.onAppDrawerTransitioned))}Z||this.initializeGuideDataIfEmpty()};
_.t.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Nd(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.OI(this.guideElement)};
_.t.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Nd(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(t5c(this.guideOpened))};
_.t.guidePersistentAndVisibleChanged=function(){_.Ad(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.t.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.XK({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.t.miniGuideVisibleChanged=function(){_.Ad(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.t.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(t5c(this.guideOpened)),this.initialLoad=!1);_.Ad(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.t.activeEndpointChanged=function(){_.Ad(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.t.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.t.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()};
_.t.cachedClientWidthChanged=function(){this.updateGuideState()};
_.t.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.t.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var L=this.canFitPersistentGuide(this.cachedClientWidth);L?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=L}this.updateGuideDrawerElementState()};
_.t.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.t.getGuideOpened=function(){return this.guideOpened};
_.t.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.t.getActiveEndpoint=function(){return this.activeEndpoint};
_.t.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.t.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&&_.QT(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.t.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.c("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.t.handleGuideMouseLeave=function(){var L=this;!this.sessionUserManuallyExpandedGuideState&&_.c("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.YD(this,"handleGuideMouseLeave",function(){L.isMouseOverGuide||!L.guideOpened||L.miniGuideVisible||(L.guideOpened=!1,L.updateGuideDrawerElementState())},100))};
_.t.computeGuidePersistentAndVisible=function(){var L=this;_.YD(this,"computeGuidePersistentAndVisible",function(){L.guidePersistentAndVisible=L.guideOpened&&L.guidePersistent;L.guideIsVisibleButNotPersistent=!(!L.guideOpened||L.guidePersistent)})};
_.t.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.t.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.t.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.t.startLoadingWatch=function(){this.closeGuide()};
_.t.startLoadingShorts=function(){_.c("web_hide_guide_on_shorts")&&this.closeGuide()};
_.t.onYtNavigateFinish=function(L,Z){if(!_.BV||Z){this.activeEndpoint=Z.endpoint;this.pageType=Z.pageType;this.pageUrl=Z.response.url;var N,S;L=(S=_.n((N=Z.endpoint)==null?void 0:N.commandMetadata,_.Nj))==null?void 0:S.url;!this.pageUrl&&L&&(this.pageUrl=L);_.c("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.t.getVisibleGuideRenderer=function(){for(var L=_.O(this.guideRenderers),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,this.miniGuideVisible&&Z.is==="ytd-mini-guide-renderer"||this.guideOpened&&Z.is==="ytd-guide-renderer")return Z;return null};
_.t.markGuideRendererDirty=function(L){if(L){typeof L.markDirty==="function"&&L.markDirty();L=_.O([].concat(_.Pd(_.QJ(L).children)));for(var Z=L.next();!Z.done;Z=L.next())this.markGuideRendererDirty(Z.value)}};
_.t.persistentGuideEnabled=function(L,Z){if(!Z||L==="watch"||L==="settings"||L==="shorts"&&this.isFullscreenShorts||_.c("reels_web_disable_persistent_guide_shorts")&&L==="shorts")return!1;var N=_.ks(Z)||"";return _.c("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(S){return N===S}):!this.persistentGuideBlockedPagePathRegex.test(N)};
_.t.canFitPersistentGuide=function(L){var Z=_.lQ("kevlar_persistent_guide_width_threshold",1312);return Z===-1||_.c("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:L>this.calculateGuideThreshold(Z)};
_.t.calculateGuideThreshold=function(L){return _.c("enable_ai_companion")?L+(this.persistentPanelVisible?400:0):L};
_.t.canFitMiniGuide=function(L){return this.miniGuideWidthThreshold===-1?!1:L>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.t.onResize=function(){var L=this;_.YD(this,"calculateGuideState",function(){L.onResizeDebounced()})};
_.t.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.t.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.t.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.t.getInitialGuideUserStateOpened=function(){return _.c("web_force_mini_guide_default")?!1:!_.tq().getFlag(109)};
_.gd.Object.defineProperties(Vy.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.X7("initialBodyClientWidth")||window.innerWidth}}});
Vy.prototype.onResize=Vy.prototype.onResize;Vy.prototype.observeForMiniGuideVisible=Vy.prototype.observeForMiniGuideVisible;Vy.prototype.computeGuidePersistentAndVisible=Vy.prototype.computeGuidePersistentAndVisible;Vy.prototype.persistentPanelVisibleChanged=Vy.prototype.persistentPanelVisibleChanged;Vy.prototype.cachedClientWidthChanged=Vy.prototype.cachedClientWidthChanged;Vy.prototype.resetGuide=Vy.prototype.resetGuide;Vy.prototype.activeEndpointChanged=Vy.prototype.activeEndpointChanged;
Vy.prototype.guideOpenedChanged=Vy.prototype.guideOpenedChanged;Vy.prototype.miniGuideVisibleChanged=Vy.prototype.miniGuideVisibleChanged;Vy.prototype.guideIsVisibleButNotPersistentChanged=Vy.prototype.guideIsVisibleButNotPersistentChanged;Vy.prototype.guidePersistentAndVisibleChanged=Vy.prototype.guidePersistentAndVisibleChanged;Vy.prototype.onGuideElementChanged=Vy.prototype.onGuideElementChanged;Vy.prototype.onGuidePersistentChanged=Vy.prototype.onGuidePersistentChanged;
Vy.prototype.onRenderGuideChanged=Vy.prototype.onRenderGuideChanged;Vy.prototype.onActiveEndpointChanged=Vy.prototype.onActiveEndpointChanged;Vy.prototype.onMiniGuideVisibleChanged=Vy.prototype.onMiniGuideVisibleChanged;Vy.prototype.onGuideIsVisibleButNotPersistentChanged=Vy.prototype.onGuideIsVisibleButNotPersistentChanged;Vy.prototype.onGuidePersistendAndVisibleChanged=Vy.prototype.onGuidePersistendAndVisibleChanged;
_.r([_.y(_.Eb),_.Q("design:type",Object)],Vy.prototype,"ironResizableBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Vy.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Vy.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Vy.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Vy.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],Vy.prototype,"disabled",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Vy.prototype,"guidePersistentAndVisible",void 0);_.r([_.iA("guidePersistentAndVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"onGuidePersistendAndVisibleChanged",null);_.r([_.Y(),_.Q("design:type",Boolean)],Vy.prototype,"guideIsVisibleButNotPersistent",void 0);
_.r([_.iA("guideIsVisibleButNotPersistent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.r([_.Y(),_.Q("design:type",Object)],Vy.prototype,"miniGuideVisible",void 0);_.r([_.iA("miniGuideVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"onMiniGuideVisibleChanged",null);_.r([_.Y(),_.Q("design:type",Boolean)],Vy.prototype,"forceMiniGuideClose",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Vy.prototype,"activeEndpoint",void 0);_.r([_.iA("activeEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"onActiveEndpointChanged",null);_.r([_.Y(),_.Q("design:type",Boolean)],Vy.prototype,"renderGuide",void 0);_.r([_.iA("renderGuide"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"onRenderGuideChanged",null);
_.r([_.Y({selector:lOv}),_.Q("design:type",Boolean)],Vy.prototype,"persistentPanelVisible",void 0);_.r([_.Y(),_.Q("design:type",Object)],Vy.prototype,"guideOpened",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Vy.prototype,"guidePersistent",void 0);_.r([_.iA("guidePersistent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"onGuidePersistentChanged",null);_.r([_.Y(),_.Q("design:type",Object)],Vy.prototype,"guideUserStateOpened",void 0);
_.r([_.Y(),_.Q("design:type",String)],Vy.prototype,"pageUrl",void 0);_.r([_.Y(),_.Q("design:type",String)],Vy.prototype,"pageType",void 0);_.r([_.Y(),_.Q("design:type",Number)],Vy.prototype,"cachedClientWidth",void 0);_.r([_.Y(),_.Q("design:type",Object)],Vy.prototype,"guideElement",void 0);_.r([_.Y({selector:_.Cl}),_.Q("design:type",Object)],Vy.prototype,"isFullscreenShorts",void 0);
_.r([_.iA("guideElement"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"onGuideElementChanged",null);_.r([_.iA("guidePersistentAndVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"guidePersistentAndVisibleChanged",null);
_.r([_.Vr("guideIsVisibleButNotPersistent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"guideIsVisibleButNotPersistentChanged",null);_.r([_.iA("miniGuideVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"miniGuideVisibleChanged",null);_.r([_.Vr("guideOpened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"guideOpenedChanged",null);
_.r([_.iA("activeEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"activeEndpointChanged",null);_.r([_.Vr("pageUrl"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"resetGuide",null);_.r([_.Vr("cachedClientWidth"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"cachedClientWidthChanged",null);
_.r([_.Vr("persistentPanelVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"persistentPanelVisibleChanged",null);_.r([_.iA("guideOpened","guidePersistent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"computeGuidePersistentAndVisible",null);
_.r([_.Vr("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"observeForMiniGuideVisible",null);_.r([_.SA("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vy.prototype,"onResize",null);_.r([_.P({disableElementRegistration:!0,is:"yt-guide-manager"})],Vy);
var v7Y=_.m(Vy,"yt-guide-manager",void 0,{mode:_.Qr("kevlar_poly_si_batch_j081")?1:2});var bL=function(){var L=_.e.apply(this,arguments)||this;L.JSC$20268_keyboardInUse=!1;L.boundHandleCapturedKeydownEvent=function(Z){L.handleCapturedKeydownEvent(Z)};
return L};
_.f(bL,_.e);_.t=bL.prototype;_.t.attached=function(){this.listenToDocument(document)};
_.t.listenToDocument=function(L){L.addEventListener("keydown",_.Nd(this,this.onKeyDownEvent));L.addEventListener("keyup",_.Nd(this,this.onKeyUpEvent));L.addEventListener("mousedown",_.Nd(this,this.onMouseDownEvent));_.c("desktop_keyboard_capture_keydown_killswitch")||L.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);L.addEventListener("yt-page-data-updated",_.Nd(this,this.onPageUpdate))};
_.t.detached=function(){this.unlistenFromDocument(document)};
_.t.unlistenFromDocument=function(L){L.removeEventListener("keydown",_.Nd(this,this.onKeyDownEvent));L.removeEventListener("keyup",_.Nd(this,this.onKeyUpEvent));L.removeEventListener("mousedown",_.Nd(this,this.onMouseDownEvent));_.c("desktop_keyboard_capture_keydown_killswitch")||L.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);L.removeEventListener("yt-page-data-updated",_.Nd(this,this.onPageUpdate))};
_.t.ready=function(){_.GR().addProvider({provide:_.VG,useValue:this})};
_.t.isKeyBoardInUse=function(){return this.JSC$20268_keyboardInUse};
_.t.handleCapturedKeydownEvent=function(L){if(L.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(L)};
_.t.onMouseDownEvent=function(){this.JSC$20268_keyboardInUse=!1};
_.t.onPageUpdate=function(){if(_.c("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.c("web_shorts_keyboard_shortcut_usage_log")){_.Cr.clear();for(var L=_.O(_.me),Z=L.next();!Z.done;Z=L.next()){var N=_.O(Z.value);Z=N.next().value;N=N.next().value;N=_.Ll(N);_.Cr.set(Z,N);_.ez(_.RH(),_.oH(),N)}_.rz.clear();L=_.O(_.J6);for(Z=L.next();!Z.done;Z=L.next())N=_.O(Z.value),Z=N.next().value,N=N.next().value,N=_.Ll(N),_.rz.set(Z,N),_.ez(_.RH(),_.oH(),N);_.Iq(_.RH(),_.oH(),[].concat(_.Pd(_.rz.values()),
_.Pd(_.Cr.values())));_.aq(_.RH(),[].concat(_.Pd(_.rz.values()),_.Pd(_.Cr.values())))}};
_.t.onMiniplayerActiveChange=function(){var L;(L=_.GR().resolve(_.yk).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(L.document):this.unlistenFromDocument(L.document))};
_.t.ignoreKeyEvent=function(L){if(L.ctrlKey||L.altKey)if(_.c("kevlar_macro_markers_keyboard_shortcut")){if(L.keyCode!==37&&L.keyCode!==39)return!0}else return!0;var Z=_.sx(L)||[];return _.NDk(Z)?(_.c("web_button_or_anchor_list_item")&&g0m(Z,L)&&(this.JSC$20268_keyboardInUse=!0),!0):L.defaultPrevented?(VS(L.keyCode,L.shiftKey,this.isShortsPage),!0):L.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(L):!1};
_.t.isSpacebarClick=function(L){var Z=L||window.event;var N;Z.composedPath&&typeof Z.composedPath==="function"?N=Z.composedPath():N=Z.path;N&&N.length?Z=N[0]:(Z=Z||window.event,Z=Z.target||Z.srcElement,Z.nodeType==3&&(Z=Z.parentNode));return Z&&L.keyCode===32&&(L=Z.tagName==="BUTTON"||Z.tagName==="A"||Z.tagName==="INPUT",Z=(Z=Z.getAttribute("role"))&&(Z==="option"||Z==="button"||Z.indexOf("menuitem")===0),L||Z)?!0:!1};
_.t.onKeyDownEvent=function(L){if(!this.ignoreKeyEvent(L)&&(L.keyCode===191&&(L.shiftKey||L.metaKey?L.repeat!=null&&L.repeat||(this.openHotkeyDialog(),VS(L.keyCode,L.shiftKey,this.isShortsPage)):(this.focusSearchBox(),L.preventDefault())),!L.metaKey)){var Z=_.GR().resolve(_.yk);switch(L.keyCode){case 9:this.JSC$20268_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(L);break;case 84:Z.pipController.getWindow()&&window.focus();this.toggleTheaterMode(L.keyCode,L.shiftKey);break;case 73:Z.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(L.keyCode,L.shiftKey);break;case 70:if(this.isShortsPage){_.Sk8();break}this.isMiniplayerActive()?Z.pipController.getWindow()&&(Z.close(!0),window.focus()):this.passEventToPlayer(L);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(L.keyCode,L.shiftKey):this.closeMiniplayer(L.keyCode,L.shiftKey)||this.passEventToPlayer(L);break;case 13:L.shiftKey&&_.GR().resolve(_.LR).activate(L);break;default:this.passEventToPlayer(L)}}};
_.t.onKeyUpEvent=function(L){if(!this.ignoreKeyEvent(L))if(_.c("web_speedmaster_spacebar_control")&&L.keyCode===32)this.handlePlayerSpaceKey(L,!0);else{var Z=this.getPlayerManager();Z&&(Z=Z.getPlayer())&&Z.handleGlobalKeyUp(L.keyCode,L.shiftKey,L.ctrlKey,L.altKey,L.metaKey,L.key,L.code)}};
_.t.getPlayerManager=function(){var L=_.CV(),Z=_.GR().resolve(_.gv(_.mR));return L&&Z&&Z.isOnWatch()?L:null};
_.t.passEventToPlayer=function(L,Z){var N=this,S,u,T,W;return _.b(function(V){if(V.nextAddress==1){if(!_.c("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&N.isMiniplayerActive())S=_.GR().resolve(_.yk).getPlayerElement();else if(N.inlinePreviewIsActive){if(u=_.Ad(N.hostElement,"yt-get-inline-preview-player-action"),(T=u)==null?0:T[0])S=u[0]}else S=_.CV();return S?V.yield(S.getPlayerPromise(),3):V.jumpTo(0)}W=V.yieldResult;Z?W.handleGlobalKeyUp(L.keyCode,L.shiftKey,L.ctrlKey,L.altKey,L.metaKey,
L.key,L.code):W.handleGlobalKeyDown(L.keyCode,L.shiftKey,L.ctrlKey,L.altKey,L.metaKey,L.key,L.code,L.repeat);L.keyCode!==38&&L.keyCode!==40&&VS(L.keyCode,L.shiftKey,N.isShortsPage);_.w7(V)})};
_.t.focusSearchBox=function(){_.QT(this.hostElement,"yt-focus-searchbox")};
_.t.openHotkeyDialog=function(){_.QT(this.hostElement,"yt-open-hotkey-dialog")};
_.t.isMiniplayerActive=function(){return _.GR().resolve(_.yk).isMiniplayerActive()};
_.t.closeMiniplayer=function(L,Z){return this.isMiniplayerActive()?(_.GR().resolve(_.yk).close(),VS(L,Z,this.isShortsPage),!0):!1};
_.t.toggleTheaterMode=function(L,Z){var N=_.cQ(_.Pv().getState()),S=this.getPlayerManager(),u=_.c("disable_theater_mode_keyboard")||_.Ah("START_IN_FULL_WINDOW_MODE");S&&!u&&(N=!N,_.mg()&&_.c("external_fullscreen")&&(N=!0),_.XJ(this.hostElement,"yt-toggle-theater-mode",[N]),VS(L,Z,this.isShortsPage))};
_.t.toggleMiniplayer=function(L,Z){var N=this.getPlayerManager();if(this.isMiniplayerActive()){var S;((S=_.GR().resolve(_.gv(_.mR)))==null?0:S.isOnWatch())?_.GR().resolve(_.yk).close(!0):_.Vl(_.GR().resolve(_.yk));VS(L,Z,this.isShortsPage)}else N&&(_.XJ(this.hostElement,"yt-activate-miniplayer-from-watch-action"),VS(L,Z,this.isShortsPage))};
_.t.handlePlayerSpaceKey=function(L,Z){var N=!!_.CV()||this.isMiniplayerActive();N=_.c("disable_space_scroll_fix")||N;_.c("global_spacebar_pause")&&!this.isKeyBoardInUse()&&N&&(L.preventDefault(),this.passEventToPlayer(L,Z))};
_.t.isPresentingTheaterMode=function(){return _.c("web_watch_enable_tm_esc_key")?_.cQ(_.Pv().getState())&&!_.mg():!1};
bL.prototype.onMiniplayerActiveChange=bL.prototype.onMiniplayerActiveChange;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],bL.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],bL.prototype,"ytdReduxBehavior",void 0);_.r([_.Y({selector:_.dNw}),_.Q("design:type",Boolean)],bL.prototype,"inlinePreviewIsActive",void 0);_.r([_.Y({selector:_.r7w}),_.Q("design:type",Boolean)],bL.prototype,"isShortsPage",void 0);
_.r([_.Y({selector:_.Ri}),_.Q("design:type",Boolean)],bL.prototype,"miniplayerIsActive",void 0);_.r([_.iA("miniplayerIsActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bL.prototype,"onMiniplayerActiveChange",null);_.r([_.P({disableElementRegistration:!0,is:"yt-hotkey-manager"})],bL);_.m(bL,"yt-hotkey-manager",void 0,{mode:_.Qr("kevlar_poly_si_batch_j081")?1:2});var M5=function(){var L=_.e.apply(this,arguments)||this;L.loopStateEntityKey_=null;L.playlistLoopStateEntity_=null;L.isShuffleNextPlaylist=!1;L.PLAYER_EVENTS_=new Map;L.playerListenersSetup_=!1;L.videoSkipJob_=0;L.canAutoAdvance_=!1;L.playerManager_=null;L.TEST_ONLY={};return L};
_.f(M5,_.e);_.t=M5.prototype;_.t.ready=function(){_.GR().addProvider({provide:_.Nv,useValue:this.hostElement})};
_.t.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_)};
_.t.attached=function(){document.addEventListener("yt-navigate-start",_.Nd(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Nd(this,this.onYtNavigateFinish_))};
_.t.detached=function(){document.removeEventListener("yt-navigate-start",_.Nd(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Nd(this,this.onYtNavigateFinish_))};
_.t.updatePlaylistEventListeners=function(L,Z){Z&&!this.playerListenersSetup_?(this.playerManager_=L,this.registerPlaylistEventListeners_(L)):!Z&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(L))};
_.t.setPlayer=function(L){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=L};
_.t.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.t.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.t.registerPlaylistEventListeners_=function(L){var Z=this;L.getPlayerPromise().then(function(N){Z.playerListenersSetup_||(Z.ytPlayerListenerBehavior.listenToPlayerEvents(N,Z.PLAYER_EVENTS_),Z.playerListenersSetup_=!0)})};
_.t.removePlaylistEventListeners_=function(L){var Z=this;L.getPlayerPromise().then(function(N){Z.playerListenersSetup_&&(Z.ytPlayerListenerBehavior.unlistenFromPlayerEvents(N,Z.PLAYER_EVENTS_),Z.playerListenersSetup_=!1)})};
_.t.setPlaylistComponent=function(L){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Nd(this,this.onPlaylistYtNavigate_)),L&&(L.data&&this.playlistComponent.data&&L.data.playlistId==this.playlistComponent.data.playlistId?(L.loopOn=this.playlistComponent.loopOn,L.shuffleOn=this.playlistComponent.shuffleOn):(L.loopOn=!1,L.shuffleOn=!1),this.isShuffleNextPlaylist&&(L.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=L;this.playlistComponent.addEventListener("yt-navigate",
_.Nd(this,this.onPlaylistYtNavigate_))};
_.t.setAutoplayRenderer=function(L){this.autoplayData=L};
_.t.setPlaylistData=function(L){this.currentPlaylistData_=L;_.QT(this.hostElement,"yt-playlist-data-updated");_.Py.isEmpty(L)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(L)};
_.t.setPlayerPlaybackControlData=function(L){this.playerManager_&&this.playerManager_.updatePlayerComponents(L.playlistPanelRenderer)};
_.t.getPlaylistData=function(){return this.currentPlaylistData_};
_.t.getTempData_=function(L,Z){if(this.playlistComponent==null)return null;L={};this.playlistComponent.shuffleOn&&(L.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(L.loop_on=this.playlistComponent.loopOn);Z&&(L.autonav="1",_.GR().resolve(_.MV),Z=_.Fv(),Z>0&&(L.lact=Z),this.playerManager_&&(Z=this.playerManager_.getPlayer())&&Z.shouldSendVisibilityState()&&(Z=Z.getVisibilityState(),Z!=0&&(L.vis=Z)));_.c("enable_unknown_lact_fix_on_html5")&&(_.GR().resolve(_.MV),L.lact=
_.Fv());return L};
_.t.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.t.setLoopStateEntityKey_=function(L){var Z;this.loopStateEntityKey_=((Z=this.getPlaylistLoopData_(L))==null?void 0:Z.playlistLoopStateEntityKey)||null};
_.t.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.t.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.t.skipVideo=function(){var L=this,Z=_.c("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||Z)Z=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.Gq(_.ro,function(){L.onPlaylistNext();L.videoSkipJob_=0},Z)};
_.t.cancelVideoSkip=function(){this.videoSkipJob_&&(_.ro.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.t.isInBackground_=function(){var L=window.document.visibilityState;return!(!L||L=="visible")};
_.t.onPlaylistIndex_=function(L){this.playlistComponent&&(L=this.playlistComponent.data.contents[L].playlistPanelVideoRenderer.navigationEndpoint,_.QT(this.hostElement,"yt-navigate",{endpoint:L,tempData:this.getTempData_(L)}))};
_.t.onPlayerStateChange_=function(L){if(L=L==0&&this.playlistComponent&&this.canAutoAdvance_)L=_.Fx.getInstance(),L=!(L.autonavState_===3?L.autonavPauseReason_&&L.autonavPauseReason_.inputBoxFocus===!0:L.autonavState_===1&&L.disabledAutonavPauseReason_&&L.disabledAutonavPauseReason_.inputBoxFocus===!0);L&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.t.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.t.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.t.navigateToAutoplayWatchEndpoint_=function(L,Z,N){var S=this.playlistComponent.data.currentIndex,u=this.getNumPlayableVideos_();L=="NORMAL"&&Z=="autoplayVideo"&&S+1>=u&&N||!(L=this.getVideoEndpoint_(L,Z))||(N=this.getTempData_(L,N),_.QT(this.hostElement,"yt-navigate",{endpoint:L,tempData:N}))};
_.t.getNumPlayableVideos_=function(){for(var L=0,Z=_.O(this.playlistComponent.data.contents||[]),N=Z.next();!N.done;N=Z.next())N.value.playlistPanelVideoRenderer&&(L+=1);return L};
_.t.getVideoEndpoint_=function(L,Z){if(this.autoplayData&&this.autoplayData.sets)for(var N=0,S=this.autoplayData.sets.length;N<S;N++){var u=this.autoplayData.sets[N];if(u.mode==L){if(u[Z])return u[Z];break}}else L=new _.sr("AutoplayData is undefined in playlist manager","Mode: "+L+" endpoint: "+Z),_.Q7(L)};
_.t.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.t.onPlaylistYtNavigate_=function(L){if(L.detail.endpoint){L.stopPropagation();var Z=L.detail;Z.tempData=this.getTempData_(L.detail.endpoint);_.QT(this.hostElement,"yt-navigate",Z)}};
_.t.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.t.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.t.playlistLoopStateEntityChanged_=function(L){var Z=this,N,S,u;return _.b(function(T){if(T.nextAddress==1){if(!L)return T.return();N=L.state==="PLAYLIST_LOOP_STATE_ONE";return Z.playerManager_?T.yield(Z.playerManager_.getPlayerPromise(),3):T.jumpTo(2)}T.nextAddress!=2&&(S=T.yieldResult,S.setLoopVideo(N));u=L.state==="PLAYLIST_LOOP_STATE_ALL";Z.playlistComponent&&(Z.playlistComponent.loopOn=u);_.w7(T)})};
_.t.getPlaylistLoopData_=function(L){var Z,N;if(L=L==null?void 0:(Z=L.playlistButtons)==null?void 0:(N=Z.menuRenderer)==null?void 0:N.topLevelButtons)for(Z=_.O(L),N=Z.next();!N.done;N=Z.next())if(N=N.value,N.playlistLoopButtonRenderer)return N.playlistLoopButtonRenderer};
_.t.getLoopStateCommand_=function(L){var Z=this.getPlaylistData(),N;Z=((N=this.getPlaylistLoopData_(Z))==null?void 0:N.states)||[];var S;L=(S=_.n(Z[L?1:2],_.vaL))==null?void 0:S.button;var u;return(u=_.n(L,_.xZ))==null?void 0:u.command};
_.t.onPlayerLoopChange_=function(L){this.playlistLoopStateEntity_&&(L?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(L=this.getLoopStateCommand_(L))&&this.ytComponentBehavior.resolveCommand(L)};
_.t.onSleepTimerSettingsChanged_=function(L){this.canAutoAdvance_=L!=="End of video"};
M5.prototype.onPlaylistLoopStateEntityChanged=M5.prototype.onPlaylistLoopStateEntityChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],M5.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.No.YtPlayerListenerBehavior),_.Q("design:type",_.SG)],M5.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],M5.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],M5.prototype,"loopStateEntityKey_",void 0);
_.r([_.Y({selectorArgs:["loopStateEntityKey_"],selector:_.hy.playlistLoopStateEntitySelector}),_.Q("design:type",Object)],M5.prototype,"playlistLoopStateEntity_",void 0);_.r([_.iA("playlistLoopStateEntity_"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],M5.prototype,"onPlaylistLoopStateEntityChanged",null);_.r([_.P({disableElementRegistration:!0,is:"yt-playlist-manager"})],M5);_.m(M5,"yt-playlist-manager",void 0,{mode:_.Qr("kevlar_poly_si_batch_j081")?1:2});var o7m,RiY=function(){if(o7m!==void 0)return o7m;var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return o7m=L};var gh=function(){var L=_.e.apply(this,arguments)||this;L.lastCallback=null;L.getAccountLinkPromises={};L.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);L.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return L};
_.f(gh,_.e);_.t=gh.prototype;_.t.getLocation=function(){return window.location.href};
_.t.getCompletionUrl=function(){return _.P2(this.getLocation())};
_.t.containsRedirectState=function(L){return(L=_.$M(_.GOB(L)))?(new URLSearchParams(L)).get("redirect_state")!==null:!1};
_.t.createGalConfig=function(L,Z){var N=new IXP;L=N=Z?this.getPopupOrRedirectSetting(N,_.X7("LINK_API_KEY"),_.X7("LINK_API_KEY_REDIRECT"),L):d98(N,_.X7("LINK_API_KEY"));L.authUser=_.X7("SESSION_INDEX")||0;L.supportedFlows=new Set([4]);return L.build()};
_.t.getPopupOrRedirectSetting=function(L,Z,N,S){this.isGalInteractionPopupMode(S)?(L.interactionMode=0,L=d98(L,Z)):(L.interactionMode=1,Z=this.getCompletionUrl(),L.completionUrl=Z,L=d98(L,N));return L};
_.t.isGalInteractionPopupMode=function(L){if(this.redirectModeProviderAllowlist.has(L))switch(L){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.t.getStatusEntityKeyForProviderId=function(L){return _.qj(L+":all","accountLinkStatusEntity")};
_.t.findNestedPropValue=function(L,Z){var N=!1,S=null;JSON.stringify(L,function(u,T){N||u!==Z||(N=!0,S=T);return N?null:T});
return S};
_.t.findAccountLinkButtonViewModel=function(L,Z){var N=null,S=!1;JSON.stringify(L,function(u,T){S||T.accountLinkStatusEntityKey!==Z||T.accountLinkStatusSecondaryEntityKey||(S=!0,N=T);return S?null:T});
return N};
_.t.executeLinkingSuccessOrFailureCommands=function(L,Z,N){var S=null,u;(Z==null?0:(u=Z.url)==null?0:u.includes("account_sharing"))?S=Z==null?void 0:Z.response:S=Z==null?void 0:Z.response;(Z=this.findAccountLinkButtonViewModel(S,L))?(L=N?this.findNestedPropValue(Z,"onSuccessCommand"):this.findNestedPropValue(Z,"onFailureCommand"))?_.Lq([L],this.hostElement):_.Zx(Error("Al")):_.Zx(Error("Bl`"+L))};
_.t.handleInitializeRequest=function(L,Z){var N=this,S=Nm8(this.createGalConfig(L,!0));this.containsRedirectState(this.getLocation())?B9g(L,S.config,S.galService).then(function(u){var T=N.getStatusEntityKeyForProviderId(L);if(u.statusCode===1)Z&&N.executeLinkingSuccessOrFailureCommands(T,Z,!0),u=N.getLocation().indexOf("#"),u!==-1&&window.history.pushState(null,"",N.getLocation().substring(0,u));else return Z&&N.executeLinkingSuccessOrFailureCommands(T,Z,!1),Promise.reject(Error(u.statusMessage))}).catch(function(u){_.Q7(u);
_.mS("gamingAccountLinkStatusChanged",{serviceId:L,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(u)}):this.getAccountLinkPromises[L]=S.startLinkingSession({serviceId:L})};
_.t.handleAccountLinkCommand=function(L){_.n(L,hBk)&&this.handleLinkRequest(_.n(L,hBk))};
_.t.handleLinkRequest=function(L){var Z=this,N=L.thirdPartyId;if(N)if(this.isGalInteractionPopupMode(N)){var S=function(){Z.closeAndFire("ytd-gaming-account-link-setting-renderer",L.onFailureCommand)},u=function(){Z.closeAndFire("ytd-gaming-account-link-setting-renderer",L.onSuccessCommand)};
this.lastCallback=u;this.getAccountLinkPromises[N].then(function(T){ga5(T).then(function(W){W.statusCode===1?u():S()})}).catch(function(){S()})}else this.getAccountLinkPromises[N].then(function(T){ga5(T).then(function(W){if(W.statusCode!==1)return Promise.reject(Error(W.statusMessage))})}).catch(function(T){_.Q7(T);
_.mS("gamingAccountLinkStatusChanged",{serviceId:N,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(T)})};
_.t.closeAndFire=function(L,Z){_.XJ(this.hostElement,"yt-close-popup-action",[L]);Z&&_.Lq([Z],this.hostElement)};
_.t.handleAccountUnlinkCommand=function(L){_.n(L,s9Q)&&this.handleUnlinkRequest(_.n(L,s9Q))};
_.t.handleUnlinkRequest=function(L){var Z=this,N=L.thirdPartyId;if(N){var S=function(){Z.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",L.onFailureCommand)},u=function(){Z.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",L.onSuccessCommand)};
this.lastCallback=u;var T=Nm8(this.createGalConfig(N,!1));this.unlinkUserGal(T,N).then(function(W){W.statusCode===1?u():S()}).catch(function(){S()})}};
_.t.unlinkUserGal=function(L,Z){return L.deleteLink(Z)};
_.t.handleLogAccountLinkingEventCommand=function(L){_.c("enable_gel_log_commands")&&_.n(L,j9Q)&&(L=_.n(L,j9Q).event)&&_.mS("gamingAccountLinkStatusChanged",L)};
_.gd.Object.defineProperties(gh,{template:{configurable:!0,enumerable:!0,get:function(){return RiY()}}});
_.r([_.y(_.vS.YtOpenPopupBehavior),_.Q("design:type",Object)],gh.prototype,"ytOpenPopupBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],gh.prototype,"ytActionHandlerBehavior",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-third-party-manager"})],gh);_.m(gh,"ytd-third-party-manager",function(){return RiY()},{mode:_.Qr("kevlar_poly_si_batch_j081")?1:2});var c8k,n7k=function(){if(c8k!==void 0)return c8k;var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return c8k=L};var Gv=function(){var L=_.e.apply(this,arguments)||this;L.currentPage=void 0;L.renderLoadingStateJobId=0;L.updatePageDataJobId=0;L.pageDisposeJobsets=new WeakMap;L.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"};L.shouldApplyLockupToWatchTransition=_.c("web_thumbnail_to_watch_transition");L.shouldApplySlideTransition=_.vW("web_page_transition_type")==="slide"||_.c("enable_plj_landing_page");L.shouldApplyLearningJourneyTransition=_.c("enable_plj_landing_page");L.TEST_ONLY=void 0;return L};
_.f(Gv,_.e);_.t=Gv.prototype;_.t.ready=function(){var L=_.GR();L.addProvider({provide:_.mR,useValue:this});L.addProvider({provide:_.jQg,useValue:this})};
_.t.created=function(){this.pagePool=new Xi0;this.contextSwitcher=new OW8};
_.t.attached=function(){_.QT(this.hostElement,"attached");var L=_.GR().resolve(_.gv(_.VJ));L&&(this.contextSwitcher.JSC$20092_networkService_=L);this.viewTransitionManager=_.GR().resolve(_.eB)};
_.t.getPageOffset=function(L){return L.getScrollTop()};
_.t.setPageOffset=function(L,Z){try{L.setScrollTop(Z)}catch(N){}};
_.t.setPageOffsetForNavigation=function(L,Z){_.QT(this.hostElement,"yt-navigate-set-page-offset",{page:L,offset:Z===void 0?0:Z})};
_.t.pauseActiveContext=function(){var L=this.contextSwitcher;L.activeContext_&&L.activeContext_.pause()};
_.t.getModuleNameForType=function(L){return L==="watch"?_.c("kevlar_watch_fixie")?"watchFixie":_.c("kevlar_watch_grid")?"watchGrid":"watchFlexy":L==="shorts"||L==="search"?L:"browse"};
_.t.attachPage=function(L){var Z,N=!_.c("pc_is_attached_ks")&&(L==null?void 0:(Z=L.polymerController)==null?void 0:Z.isAttached);if(!L.isAttached&&!N)try{_.QJ(this.hostElement).appendChild(L)}catch(u){var S;_.Q7(new _.sr("Error attaching page element for component",{origin:(S=this.currentPage)==null?void 0:S.is,component:L.is}))}};
_.t.setActivePage=function(L,Z){var N=this,S=!1,u=function(){var T=N.isOnWatch(),W=N.currentPage;if(L)if(L!==N.currentPage){W&&(W.hidden=!0,W.active=!1,W.removeAttribute("role"));N.currentPage=L;var V,M=Z!=null?Z:_.SD((V=N.data)==null?void 0:V.endpoint);W&&_.QT(N.hostElement,"yt-page-type-changed",{oldPageType:W.is,newPageType:L.is,newPageSubtype:M});_.hJ().dispatch(_.XK({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:L.is}));_.hJ().dispatch(_.XK({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:M||""}));
L.hidden=!1;N.attachPage(L);L.active=!0;L.setAttribute("role","main");W&&N.setPageOffsetForNavigation(L,0);_.c("kevlar_remove_page_dom_on_switch")&&!T&&W&&_.QJ(N.hostElement).removeChild(W)}else S=!0;else N.handleMissingDestinationPage(W)};
this.shouldRunBrowseTransition(this.currentPage,L)?d6y(this.viewTransitionManager,u):this.shouldRunLearningJourneyTransition(this.currentPage,L)?sTg(this.viewTransitionManager,u):u();return S};
_.t.handleMissingDestinationPage=function(L){if(this.isColdLoadForUnknownPage(L))_.Q7(new _.sr("Cold load for unknown page"));else{var Z;L=new _.sr("Unable to set active page",L?L.is:"unknown origin",(Z=this.data)==null?void 0:Z.endpoint);_.CA(L)}};
_.t.isColdLoadForUnknownPage=function(L){return!L&&qy(this.data)==="unknown"};
_.t.shouldRunBrowseTransition=function(L,Z){return this.shouldApplySlideTransition&&(L==null?void 0:L.is)==="ytd-browse"&&(Z==null?void 0:Z.is)==="ytd-browse"&&L!==Z};
_.t.shouldRunLearningJourneyTransition=function(L,Z){return this.shouldApplyLearningJourneyTransition&&(L==null?void 0:L.is)==="ytd-browse"&&((Z==null?void 0:Z.is)==="ytd-watch-learning-journey"||(Z==null?void 0:Z.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.t.shouldRunWatchNextLoadedTransition=function(L,Z){return this.viewTransitionManager&&L.is==="ytd-watch-flexy"&&Z};
_.t.updatePageData=function(L){var Z=this,N=this.data;this.updatePageDataJobId&&_.ro.cancelJob(this.updatePageDataJobId);this.data=L;return new _.kE(function(S){var u=function(){L.filler?Z.performDataUpdate(L,N):J4y(function(){Z.performDataUpdate(L,N)});
var M=_.ih();_.uh(M,"cr")||M.processSignal("cr");S()},T=function(){L&&L.page==="watch"?Z.updatePageDataJobId=_.Gq(_.ro,u):u()};
if(_.c("kevlar_enable_mss_page_modules_client")&&L){var W=_.GR().resolve(_.Uc),V=Z.getModuleNameForType(L.page);(W=eXw(W,[V]))?W.then(T):T()}else T()})};
_.t.isDownloadsPage=function(L){var Z,N;return(L==null?void 0:(Z=L.endpoint)==null?void 0:(N=Z.browseEndpoint)==null?void 0:N.browseId)==="FEdownloads"};
_.t.setPlayerSyncInterval=function(L){var Z;return _.b(function(N){if(N.nextAddress==1)return N.yield(_.GR().resolve(_.HQ),2);Z=N.yieldResult;Z.setUpPositionSyncInterval(L);_.w7(N)})};
_.t.performDataUpdate=function(L,Z){_.c("kevlar_early_popup_close")||_.XJ(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var N=!L.filler;N&&(_.Rq("lps"),_.c("config_age_report_killswitch")||nN5());var S=qy(L),u,T=!1;if(_.c("kevlar_remove_page_dom_on_switch")){var W=Z&&qy(Z);S===W&&(u=this.getCurrentPage())}u||(u=SI(this.pagePool,S));N&&Q8q(this.pagePool.elementPoolPopulator,S);N&&!this.renderLoadingStateJobId&&(T=this.setActivePage(u));if(u){W=S==="watch";var V=
S==="shorts",M=S==="learning_journey_watch";_.c("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(u);if(W||V||M)u.playerData=L.playerResponse;if(V)if(_.c("web_enable_delay_shorts_sequence_call")){L.reelWatchSequenceResponse&&(L.reelWatchSequenceResponse.entries||L.reelWatchSequenceResponse.prevEntries)&&(u.reelWatchSequenceResponse=L.reelWatchSequenceResponse);u.currentEndpoint=L.endpoint;var G;u.isPreviousPageShorts=!!(Z==null?0:(G=Z.endpoint)==null?0:G.reelWatchEndpoint);
var D,l;L.cachedSequenceParams=((D=L.endpoint)==null?void 0:(l=D.reelWatchEndpoint)==null?void 0:l.sequenceParams)||L.cachedSequenceParams||(Z==null?void 0:Z.cachedSequenceParams);var v,R;L.cachedSequenceProvider=((v=L.endpoint)==null?void 0:(R=v.reelWatchEndpoint)==null?void 0:R.sequenceProvider)||L.cachedSequenceProvider||(Z==null?void 0:Z.cachedSequenceProvider);u.cachedSequenceParams=L.cachedSequenceParams;u.cachedSequenceProvider=L.cachedSequenceProvider}else if(_.c("web_enable_shorts_sequence_cache_fix")){L.reelWatchSequenceResponse&&
(L.reelWatchSequenceResponse.entries||L.reelWatchSequenceResponse.prevEntries)?u.reelWatchSequenceResponse=L.reelWatchSequenceResponse:u.cachedReelWatchSequenceResponse&&!u.reelWatchSequenceResponse&&(u.reelWatchSequenceResponse=u.cachedReelWatchSequenceResponse);L.reelWatchSequenceResponse&&(Z==null?void 0:Z.page)!=="shorts"&&(u.cachedReelWatchSequenceResponse=L.reelWatchSequenceResponse);u.currentEndpoint=L.endpoint;var K;u.isPreviousPageShorts=!!(Z==null?0:(K=Z.endpoint)==null?0:K.reelWatchEndpoint)}else{L.reelWatchSequenceResponse&&
(L.reelWatchSequenceResponse.entries||L.reelWatchSequenceResponse.prevEntries)?u.reelWatchSequenceResponse=L.reelWatchSequenceResponse:L.cachedReelWatchSequenceResponse?u.reelWatchSequenceResponse=L.cachedReelWatchSequenceResponse:_.c("web_enable_cached_reel_sequence_fix")&&u.cachedReelWatchSequenceResponse&&!u.reelWatchSequenceResponse&&(u.reelWatchSequenceResponse=u.cachedReelWatchSequenceResponse);u.currentEndpoint=L.endpoint;var U;u.isPreviousPageShorts=!!(Z==null?0:(U=Z.endpoint)==null?0:U.reelWatchEndpoint);
L.cachedReelWatchSequenceResponse=L.reelWatchSequenceResponse||L.cachedReelWatchSequenceResponse||(Z==null?void 0:Z.cachedReelWatchSequenceResponse);u.cachedReelWatchSequenceResponse=L.cachedReelWatchSequenceResponse}G=this.isDownloadsPage(L);D=this.isDownloadsPage(Z);G&&!D?this.setPlayerSyncInterval(6E5):!G&&D&&this.setPlayerSyncInterval();_.c("block_all_player_prefetch_requests")||this.preparePrefetchRequest(L,u,N,W,V,M);jTk(_.GR().resolve(_.yk),Z,L);if(_.c("enable_ai_companion")){var d;(d=_.GR().resolve(_.gv(_.zz)))==
null||_.bhP(d,this.getPersistentPanelSurface(S))}_.Wo(_.GR().resolve(_.MV));_.c("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(u);N?(N=typeof u.loadPage,N==="function"?(u.pageContext=WOv(this.contextSwitcher,u,u.data!==L.response),N=function(){u.loadPage(L.response)},this.shouldApplySlideTransition&&u.is==="ytd-browse"&&T&&(S==="learning"||this.isDifferentBrowseId(L==null?void 0:L.endpoint,Z==null?void 0:Z.endpoint))?d6y(this.viewTransitionManager,N):this.shouldRunWatchNextLoadedTransition(u,
T)?hXv(this.viewTransitionManager,N):N()):_.rY(new _.sr("b/38014653 ",[S,
u.is,u.nodeName,N,u.isAttached,Z&&qy(Z),this.hostElement.children.length])),_.Rq("pdl")):(u.hidden=!0,L.response.filler=!0,u.data=L.response,this.attachPage(u));_.QT(this.hostElement,"yt-page-data-updated",{pageType:S})}_.sI(_.ro,function(){_.c("logging_avoid_blocking_during_navigation")&&_.k0_().transition("none");var h=KOw(),E=u;if(L){var A=G1k(L),J=FX5(L),C;a:{if(L.playerResponse){var X=L.playerResponse,L1;if((C=X.auxiliaryUi)==null?0:(L1=C.messageRenderers)==null?0:L1.upsellDialogRenderer){C=
X.auxiliaryUi.messageRenderers.upsellDialogRenderer;break a}}else if(L.response&&(C=L.response,(X=C.overlay)==null?0:X.upsellDialogRenderer)){C=C.overlay.upsellDialogRenderer;break a}C=void 0}var Fw;var GB;L1=(Fw=L.playerResponse)==null?void 0:(GB=Fw.auxiliaryUi)==null?void 0:GB.messageRenderers;Fw=(L1==null?void 0:L1.enforcementMessageViewModel)||(L1==null?void 0:L1.bkaEnforcementMessageViewModel);Fw=(Fw==null?void 0:Fw.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?Fw:void 0;
var Yt;a:{if(L.response&&(GB=L.response,(Yt=GB.overlay)==null?0:Yt.commandWrapperPromoRenderer)){Yt=GB.overlay.commandWrapperPromoRenderer;break a}Yt=void 0}nGk(h,A,J,C,Fw,Yt,E)}})};
_.t.preparePrefetchRequest=function(L,Z,N,S,u,T){var W,V,M,G,D,l,v,R,K,U,d,h,E,A,J;return _.b(function(C){if(C.nextAddress==1)return!N||!(S||u||T)||_.c("kevlar_disable_background_prefetch")&&_.B8(_.swL)()===0?C.return():(W=_.JS(Z))?C.yield(W.getPlayerPromise(),2):C.return();V=C.yieldResult;M=_.GR().resolve(_.gv(_.VJ));if(!M)return C.return();if(u)return G=_.pm(_.ff),LBY(G,(D=L.endpoint)==null?void 0:D.reelWatchEndpoint,Z.reelWatchSequenceResponse,V,M),C.return();R=(l=L.response)==null?void 0:(v=l.responseContext)==
null?void 0:v.webResponseContextExtensionData;if(!R)return C.return();E=(K=L.response)==null?void 0:(U=K.contents)==null?void 0:(d=U.twoColumnWatchNextResults)==null?void 0:(h=d.autoplay)==null?void 0:h.autoplay;A=_.GR().resolve(_.Nv);J=_.pm(_.ff);ZLy(J,R,V,M,A,E);_.w7(C)})};
_.t.movePlayerToWatch=function(L){var Z=this,N,S;return _.b(function(u){N=SI(Z.pagePool,"watch");S=N.getPlayerContainer();L.appendTo(S);_.w7(u)})};
_.t.movePlayerToShorts=function(L){var Z=this,N,S,u;return _.b(function(T){N=SI(Z.pagePool,"shorts");S=N.getPlayerContainer();(u=L)==null||u.appendTo(S,void 0,!0);_.w7(T)})};
_.t.getPlayerFromWatch=function(){var L=SI(this.pagePool,"watch");return _.JS(L)};
_.t.getPlayerFromShorts=function(){var L=SI(this.pagePool,"shorts");return _.JS(L)};
_.t.startLoadingWatch=function(){var L=this,Z=SI(this.pagePool,"watch");this.renderLoadingStateJobId?(_.ro.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.c("web_watch_transition_enable_start_loading_watch_callsite")?a3v(this.viewTransitionManager,function(){L.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(Z,"watch");
if(_.c("enable_ai_companion")){var N;(N=_.GR().resolve(_.gv(_.zz)))==null||_.bhP(N,this.getPersistentPanelSurface("watch"))}};
_.t.startLoadingShorts=function(){var L=SI(this.pagePool,"shorts");this.setActivePage(L,"shorts")};
_.t.startLoadingLearningJourney=function(){var L=SI(this.pagePool,"learning_journey_watch");this.setActivePage(L,"learning_journey_watch")};
_.t.getCurrentPage=function(){return this.currentPage};
_.t.getDestinationPageType=function(){return this.destinationPageType};
_.t.getCurrentData=function(){return this.data};
_.t.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.t.isOnShorts=function(){var L;return((L=this.currentPage)==null?void 0:L.is)==="ytd-shorts"};
_.t.isWatchPage=function(L){return!!L&&(L.is==="ytd-watch-flexy"||L.is==="ytd-watch-fixie"||L.is==="ytd-watch-grid")};
_.t.preparePage=function(L,Z){var N=this,S=function(){var W=N.pagePool.preparePage(L,N.currentPage,Z);W&&N.attachPage(W)},u=function(W){_.Xv(W,Z);
_.Q7(W)};
if(_.c("kevlar_enable_mss_page_modules_client")){var T=this.getModuleNameForType(L);if(T=eXw(_.GR().resolve(_.Uc),[T])){T.then(S.bind(this)).catch(u.bind(this));return}}try{S()}catch(W){u(W)}};
_.t.lazyPrepareCriticalPages=function(L,Z){L=_.SD(Z)||L;_.c("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(L).then(this.maybePrepareWatchPage.bind(this,L)):this.maybePrepareWatchPage(L)};
_.t.maybePrepareWatchPage=function(L){L==="watch"||L==="learning_journey_watch"&&_.c("web_watch_learning_journey_disable_lazy_pages")||_.sI(_.ro,this.preparePage.bind(this,"watch"))};
_.t.downloadPageModules=function(L){L=this.getModuleNameForType(L);var Z=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);Z.delete(L);var N=_.GR().resolve(_.Uc);N.JSC$18806_loadModules(L);return N.JSC$18806_loadModules.apply(N,_.Pd(Z))};
_.t.renderPageLoadingState=function(L,Z){this.preparePage(L,Z);var N=SI(this.pagePool,L);N.loadingData&&(N.loadingData.endpoint=Z);N.loading=!0;this.setActivePage(N,L);L!=="watch"&&L!=="learning_journey_watch"||_.QT(this.hostElement,"yt-guide-close")};
_.t.prepareForNavigation=function(L,Z){var N=this;if(this.currentPage&&this.data){var S=_.SD(Z)||L;this.destinationPageType=S;qy(this.data)==S&&_.QT(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((L==="watch"||L==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.ro.cancelJob(this.renderLoadingStateJobId);_.GR().resolve(_.yk).deactivate(Z);_.SW(_.ro,function(){var T=N.viewTransitionManager,W=N.currentPage;
if(T.isLockupToWatchTransitionEnabled&&T.isLockupThumbnailRegistrationEnabled&&W)if(T.registeredLockupThumbnail)T.lockupThumbnailRegisteredFromWatchEndpoint&&_.Q7(new _.sr("Lockup thumbnail already registered from watch endpoint."));else{a:{var V=_.n(Z,_.so);if(V==null?0:V.videoId){var M="yt-lockup-view-model ."+_.BNB(V.videoId)+" yt-thumbnail-view-model";W=W.querySelectorAll(M);if(W.length===1){V=W[0];break a}W.length>1?_.Q7(new _.sr("Multiple LockupViewModel thumbnails found for videoId: "+V.videoId+
". Selector: "+M)):_.c("web_thumbnail_to_watch_transition_debug")&&_.Q7(new _.sr("No LockupViewModel thumbnail found for videoId: "+V.videoId+". Selector: "+M))}V=void 0}V&&(T.registeredLockupThumbnail=V,T.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.pWv(T,V))}});
var u=this.data;this.renderLoadingStateJobId=_.SW(_.ro,function(){a3v(N.viewTransitionManager,function(){if(N.data!=u){var T=SI(N.pagePool,L);N.setActivePage(T)}else N.renderPageLoadingState(L,Z);N.renderLoadingStateJobId=0})},150)}};
_.t.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var L=new _.ty(1);this.currentPage.pageDisposeJobs.forEach(function(Z){_.Oj(L,Z)});
this.pageDisposeJobsets.set(this.currentPage,L)}};
_.t.flushPageDisposeJobset=function(L){var Z=this.pageDisposeJobsets.get(L);Z&&(Z.flushJobs(),this.pageDisposeJobsets.delete(L))};
_.t.onYtStopOldPlayer=function(L,Z){Z=Z===void 0?!1:Z;var N,S=_.oe("kevlar_new_stop_old_player_logic_pages");if(_.c("kevlar_check_current_page_on_stop_old_player")&&(S.length===0||this.currentPage&&S.includes(this.currentPage.is)))if(this.data&&(N=qy(this.data)),qy(L)===N&&this.currentPage&&qy(this.currentPage.data)!==N)var u=_.JS(this.currentPage);else N=qy(this.data),u=SI(this.pagePool,N),u=_.JS(u);else this.data&&(N=qy(this.data),u=SI(this.pagePool,N),u=_.JS(u));if(u){S=qy(L);var T=SI(this.pagePool,
S);T=_.JS(T);if(u==T)Z&&!_.c("kevlar_disable_preemptive_player_reset")&&u.resetForNewPlayback();else if(Z=N==="watch"&&S!=="watch",!Z||S==="shorts"||_.BCN()&&!Rdg(this.data,L))L=_.GR().resolve(_.yk),Z&&L.isMiniplayerActive()&&L.pipController.getWindow()||u.stop()}};
_.t.isDifferentBrowseId=function(L,Z){L=_.n(L,_.iv);Z=_.n(Z,_.iv);return(L==null?void 0:L.browseId)!==(Z==null?void 0:Z.browseId)};
_.t.getPersistentPanelSurface=function(L){switch(L){case "watch":return"WATCH";default:return"APP"}};
_.gd.Object.defineProperties(Gv,{template:{configurable:!0,enumerable:!0,get:function(){return n7k()}}});
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Gv.prototype,"ytActionHandlerBehavior",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-page-manager"})],Gv);_.m(Gv,"ytd-page-manager",function(){return n7k()},{mode:_.Qr("kevlar_poly_si_batch_j081")?1:2});var KEm;var FS=function(){var L=_.e.apply(this,arguments)||this;L.useListItemStyles=_.c("web_list_item_style_for_menu_items");L.systemIcons=_.c("kevlar_system_icons");return L};
_.f(FS,_.e);_.t=FS.prototype;_.t.ready=function(){this.hostElement.addEventListener("tap",_.Nd(this,this.onEndpointTapExtra))};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.t.onFocus=function(){var L;(L=_.QJ(this.hostElement).querySelector("tp-yt-paper-item"))==null||L.focus()};
_.t.onEndpointTapExtra=function(L){_.QT(this.hostElement,"iron-activate");var Z=this.data.navigationEndpoint;Z&&_.n(Z,_.KsB)&&(L.stopPropagation(),_.B2(this.hostElement,[Z],this.hostElement))};
_.t.computeIcon=function(L){return L&&L.iconType?_.Bh(L.iconType):""};
_.t.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.t.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.t.forceUpdateStylesOnLegacyBrowsers=function(){_.c("kevlar_legacy_browsers")&&_.Ld(this.hostElement)};
FS.prototype.forceUpdateStylesOnLegacyBrowsers=FS.prototype.forceUpdateStylesOnLegacyBrowsers;FS.prototype.onFocus=FS.prototype.onFocus;_.r([_.y(_.W0),_.Q("design:type",Object)],FS.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.y(_.bGQ.YtConditionalRendererBehavior),_.Q("design:type",Object)],FS.prototype,"ytConditionalRendererBehavior",void 0);_.r([_.y(_.o3.YtEndpointBehavior),_.Q("design:type",Object)],FS.prototype,"ytEndpointBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],FS.prototype,"data",void 0);_.r([_.Y({computed:"computeIcon(data.icon)",value:""}),_.Q("design:type",String)],FS.prototype,"icon",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],FS.prototype,"useIcons",void 0);_.r([_.Y({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],FS.prototype,"hasSeparator",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],FS.prototype,"useListItemStyles",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],FS.prototype,"systemIcons",void 0);_.r([_.SA("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],FS.prototype,"onFocus",null);_.r([_.iA("useIcons","hasSeparator"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],FS.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.m(FS,"ytd-menu-navigation-item-renderer",function(){if(KEm===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);KEm=L}L=KEm;return L},{mode:1});var fO5;var kNs=_.s9(_.iB("DOWNLOAD",{},"Download")),y8v=_.s9(_.iB("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),weY=_.s9(_.iB("RETRY",{},"Retry")),Utv=_.s9(_.iB("PAUSE_DOWNLOADING",{},"Pause downloading")),YEs=_.s9(_.iB("RESUME_DOWNLOAD",{},"Resume download")),$q=function(){var L=_.e.apply(this,arguments)||this;L.primaryText=kNs;L.primaryIconType="OFFLINE_DOWNLOAD";L.hasSecondaryContent=!1;L.hasSeparator=!1;L.transferState="TRANSFER_STATE_UNKNOWN";L.isVideoDeletedByUser=!1;L.isHidden=!1;L.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return L};
_.f($q,_.e);_.t=$q.prototype;_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.t.onFocus=function(){this.primaryEntry.focus()};
_.t.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.t.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.t.getRemoveAction=function(){return"ACTION_REMOVE"};
_.t.sendOfflineAction=function(L){var Z=this.data.serviceEndpoint;if(Z){var N=_.n(Z,_.uj);N&&L&&(N.action=L);this.ytComponentBehavior.resolveCommand(Z)}};
_.t.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=kNs,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=kNs;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=weY;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=y8v;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=YEs;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=y8v;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
Utv;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=y8v;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=y8v;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=kNs,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.t.showHideButton=function(){var L;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((L=this.playerStateEntity)==null?void 0:L.adsState)==="ADS_STATE_PLAYING"};
_.t.isSecondaryEntryHidden=function(L,Z){return L?!0:!Z};
_.t.computeHasSeparator=function(){var L;return!((L=this.data)==null||!L.hasSeparator)};
_.t.computePlayerStateEntityKey=function(L){return L};
$q.prototype.showHideButton=$q.prototype.showHideButton;$q.prototype.onTransferStateChange=$q.prototype.onTransferStateChange;$q.prototype.onFocus=$q.prototype.onFocus;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],$q.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],$q.prototype,"ytComponentBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],$q.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],$q.prototype,"primaryText",void 0);_.r([_.Y(),_.Q("design:type",String)],$q.prototype,"primaryIconType",void 0);_.r([_.Y(),_.Q("design:type",String)],$q.prototype,"primaryAction",void 0);_.r([_.Y(),_.Q("design:type",Object)],$q.prototype,"secondaryText",void 0);_.r([_.Y(),_.Q("design:type",String)],$q.prototype,"secondaryIconType",void 0);
_.r([_.Y(),_.Q("design:type",String)],$q.prototype,"secondaryAction",void 0);_.r([_.Y(),_.Q("design:type",Object)],$q.prototype,"hasSecondaryContent",void 0);_.r([_.Y({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Q("design:type",Object)],$q.prototype,"hasSeparator",void 0);_.r([_.Y({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.Q("design:type",String)],$q.prototype,"playerStateEntityKey",void 0);
_.r([_.Y({selector:_.LV,selectorArgs:["playerStateEntityKey"]}),_.Q("design:type",Object)],$q.prototype,"playerStateEntity",void 0);_.r([_.Y({selector:_.Kk,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Q("design:type",String)],$q.prototype,"transferState",void 0);_.r([_.Y({selector:_.xN1,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Q("design:type",Object)],$q.prototype,"isVideoDeletedByUser",void 0);
_.r([_.Y(),_.Q("design:type",Object)],$q.prototype,"isHidden",void 0);_.r([_.Y({selector:_.CMH,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Q("design:type",Object)],$q.prototype,"offlineabilityState",void 0);_.r([_.TX("#primary-entry"),_.Q("design:type",Object)],$q.prototype,"primaryEntry",void 0);_.r([_.SA("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$q.prototype,"onFocus",null);
_.r([_.Vr("transferState","isVideoDeletedByUser"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$q.prototype,"onTransferStateChange",null);_.r([_.Vr("offlineabilityState","playerStateEntity"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$q.prototype,"showHideButton",null);
_.m($q,"ytd-menu-service-item-download-renderer",function(){if(fO5===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);fO5=L}L=fO5;return L},{mode:1});var ei8;var Dm=function(){var L=_.e.apply(this,arguments)||this;L.useIcons=!1;L.systemIcons=_.c("kevlar_system_icons");L.useListItemStyles=_.c("web_list_item_style_for_menu_items");return L};
_.f(Dm,_.e);_.t=Dm.prototype;_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.t.onFocus=function(){var L;(L=_.QJ(this.hostElement).querySelector("tp-yt-paper-item"))==null||L.focus()};
_.t.onTap=function(){_.Ad(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var L=this.data.serviceEndpoint,Z=this.data.command;if(L){var N,S=(N=this.data)==null?void 0:N.trackingParams;N=!!_.n(L,_.Sjt);S&&N&&_.Pv().dispatch(_.XK({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:S}}));this.ytComponentBehavior.resolveCommand(L)||_.GR().resolve(_.$s).resolveCommand(L,{form:{element:this.hostElement}})}Z&&(this.ytComponentBehavior.resolveCommand(Z)||_.B2(this.hostElement,
[Z],this.hostElement))};
_.t.computeIcon=function(L){return L&&L.iconType?_.Bh(L.iconType):""};
_.t.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.t.computeHasSeparator=function(){var L;return!((L=this.data)==null||!L.hasSeparator)};
_.t.forceUpdateStylesOnLegacyBrowsers=function(){_.c("kevlar_legacy_browsers")&&_.Ld(this.hostElement)};
_.t.computeIsSelected=function(){var L;return!((L=this.data)==null||!L.isSelected)};
Dm.prototype.forceUpdateStylesOnLegacyBrowsers=Dm.prototype.forceUpdateStylesOnLegacyBrowsers;Dm.prototype.onTap=Dm.prototype.onTap;Dm.prototype.onFocus=Dm.prototype.onFocus;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.W0),_.Q("design:type",Object)],Dm.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Dm.prototype,"ytComponentBehavior",void 0);
_.r([_.y(_.bGQ.YtConditionalRendererBehavior),_.Q("design:type",Object)],Dm.prototype,"ytConditionalRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Dm.prototype,"data",void 0);_.r([_.Y({computed:"computeIcon(data.icon)",value:""}),_.Q("design:type",String)],Dm.prototype,"icon",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Dm.prototype,"useIcons",void 0);
_.r([_.Y({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Dm.prototype,"hasSeparator",void 0);_.r([_.Y({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Dm.prototype,"isSelected",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Dm.prototype,"systemIcons",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Dm.prototype,"useListItemStyles",void 0);
_.r([_.SA("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Dm.prototype,"onFocus",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Dm.prototype,"onTap",null);_.r([_.iA("useIcons","hasSeparator"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Dm.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.m(Dm,"ytd-menu-service-item-renderer",function(){if(ei8===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);ei8=L}L=ei8;return L},{mode:2});var IOv;var lL=function(){return _.e.apply(this,arguments)||this};
_.f(lL,_.e);_.t=lL.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.onDataChanged=function(){var L=this;_.bN(this,function(){L.postbox.openDialog();L.focus();_.QT(L.hostElement,"yt-refit")})};
_.t.focus=function(){this.postbox.focus()};
_.t.closePopup=function(){_.XJ(this.hostElement,"yt-close-popup-action")};
_.t.onYtCommentboxDismiss=function(){this.closePopup()};
lL.prototype.onYtCommentboxDismiss=lL.prototype.onYtCommentboxDismiss;lL.prototype.onDataChanged=lL.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],lL.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],lL.prototype,"data",void 0);_.r([_.Y({value:function(){return _.iB("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Q("design:type",String)],lL.prototype,"closeButtonAriaLabel",void 0);_.r([_.TX("#postbox"),_.Q("design:type",Object)],lL.prototype,"postbox",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lL.prototype,"onDataChanged",null);_.r([_.SA("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lL.prototype,"onYtCommentboxDismiss",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],lL);
_.m(lL,"ytd-backstage-post-dialog-popup-renderer",function(){if(IOv!==void 0)return IOv;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return IOv=L},{mode:1});var dtP;var aOP=function(){return _.e.apply(this,arguments)||this};
_.f(aOP,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],aOP.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],aOP.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],aOP);
_.m(aOP,"ytd-sender-id-section-renderer",function(){if(dtP!==void 0)return dtP;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
return dtP=L},{mode:1});var hiy;var spY;var jp0;var vr=function(){return _.e.apply(this,arguments)||this};
_.f(vr,_.e);vr.prototype.closePopup=function(){_.XJ(this.hostElement,"yt-close-popup-action")};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],vr.prototype,"data",void 0);_.r([_.ch({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],vr);
_.m(vr,"yt-community-post-section-renderer",function(){if(jp0===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;spY===void 0&&(spY=document.createElement("template"));var S=spY;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);jp0=L}L=jp0;return L},{mode:2});var E7Q;var PVv;var peY;var ziQ;var mtq;var J8s;var CVw=function(){return _.e.apply(this,arguments)||this};
_.f(CVw,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],CVw.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],CVw.prototype,"data",void 0);_.r([_.ch({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],CVw);
_.m(CVw,"yt-share-start-time-with-context-renderer",function(){if(J8s===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;mtq===void 0&&(mtq=document.createElement("template"));var S=mtq;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);J8s=L}L=J8s;return L},{mode:2});var oc=function(){return _.e.apply(this,arguments)||this};
_.f(oc,_.e);oc.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],oc.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],oc.prototype,"data",void 0);_.r([_.ch({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],oc);
_.m(oc,"yt-share-panel-title-v15-renderer",function(){if(ziQ===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;peY===void 0&&(peY=document.createElement("template"));var S=peY;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);ziQ=L}L=ziQ;return L},{mode:2});var Rc=function(){return _.e.apply(this,arguments)||this};
_.f(Rc,_.e);Rc.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"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Rc.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Rc.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Rc.prototype,"data",void 0);_.r([_.ch({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Rc);
_.m(Rc,"yt-share-panel-header-renderer",function(){if(PVv===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;E7Q===void 0&&(E7Q=document.createElement("template"));var S=E7Q;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);PVv=L}L=PVv;return L},{mode:2});var r88;var QpY;var cr=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-open-popup-action":"onOpen"};return L};
_.f(cr,_.e);_.t=cr.prototype;_.t.attached=function(){this.onOpen()};
_.t.updateTimeSecs=function(L){this.currentTimeSecs=L};
_.t.computeTimeString=function(L){L=L.toString();var Z=Math.floor(Number(L)/3600),N=Math.floor(Number(L)%3600%60);return(Z>0?Z+":":"")+_.u3(Math.floor(Number(L)%3600/60),Z>0?2:1)+":"+_.u3(N,2)};
_.t.computeTimeStringA11y=function(L){return _.uPP({seconds:L})};
_.t.getTimeParam=function(){return aKY(this.timeString)};
_.t.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var L={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},Z;_.U$(_.tC(),(Z=this.data)==null?void 0:Z.trackingParams,L,7)};
_.t.onChangeStartAtTimestamp=function(){for(var L=this.startAtTimestamp.value.split(":"),Z=0,N=1,S=L.length-1;S>=0;S--)Z+=Number(L[S])*N,N*=60;this.updateTimeSecs(Z);this.setTimestamp()};
_.t.onOpen=function(){var L=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var Z=_.CV();Z?Z.getPlayerPromise().then(function(N){N=N.getCurrentTime();L.updateTimeSecs(N)}):iV5()&&this.updateTimeSecs(iV5())};
_.t.setTimestamp=function(){var L=Math.floor(this.currentTimeSecs);_.XJ(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!L,timestamp:L||""}])};
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],cr.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],cr.prototype,"data",void 0);_.r([_.Y({value:!1,notify:!0}),_.Q("design:type",Boolean)],cr.prototype,"isStartAtChecked",void 0);_.r([_.Y(),_.Q("design:type",Number)],cr.prototype,"currentTimeSecs",void 0);
_.r([_.Y({computed:"computeTimeString(currentTimeSecs)"}),_.Q("design:type",String)],cr.prototype,"timeString",void 0);_.r([_.Y({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.Q("design:type",String)],cr.prototype,"timeStringA11y",void 0);_.r([_.TX("#start-at-timestamp"),_.Q("design:type",Object)],cr.prototype,"startAtTimestamp",void 0);_.r([_.ch({is:"yt-start-at-renderer",disableElementRegistration:!0})],cr);
_.m(cr,"yt-start-at-renderer",function(){if(QpY===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;r88===void 0&&(r88=document.createElement("template"));var S=r88;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);QpY=L}L=QpY;return L},{mode:2});var Xes;var A8Y;var H$m=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),BUy=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),xtv=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var qEq={};qEq.YtBindingExpressionsBehavior={identity:_.sG,msg:function(L,Z){Z=Z===void 0?{}:Z;return _.iB(L,Z,L)},
msgPlural:function(L,Z){return _.uB(L,Z)},
getMusicIconFromType:function(L){if(_.c("music_web_enable_icon_wil"))L=_.Bh(L);else if(BUy.has(L))L="yt-sys-icons:"+BUy.get(L);else{var Z=H$m.get(L)||_.Bh(L).split(":")[1];Z=_.y$_(Z);var N;L=((N=xtv.get(L))!=null?N:"yt-sys-icons:")+Z}return L}};var LHy;var Zzc;var NGv;var ShY=document.head,izk=ShY.appendChild,uaY;if(NGv===void 0){var TGm=document.createElement("template");_.k(TGm,'\x3c!--css-build:shady--\x3e<iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');NGv=TGm}uaY=NGv;izk.call(ShY,uaY.content);var nC=function(){var L=_.e.apply(this,arguments)||this;L.screenLayer=7;return L};
_.f(nC,_.e);nC.prototype.getScreenLayer=function(){return this.screenLayer};
nC.prototype.onTap=function(L){L&&L.detail&&(L.detail.x||L.detail.y)&&_.QJ(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.H2(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(L=this.getScreenLayer(),_.QT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:L}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.gd.Object.defineProperties(nC.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()}}});
nC.prototype.onTap=nC.prototype.onTap;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],nC.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],nC.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],nC.prototype,"data",void 0);_.r([_.w("data.title"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],nC.prototype,"title",null);
_.r([_.w("data.serviceName"),_.Q("design:type",String),_.Q("design:paramtypes",[])],nC.prototype,"icon",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],nC.prototype,"onTap",null);_.r([_.ch({is:"yt-share-target-renderer",disableElementRegistration:!0})],nC);
_.m(nC,"yt-share-target-renderer",function(){if(Zzc===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;LHy===void 0&&(LHy=document.createElement("template"));var S=LHy;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Zzc=L}L=Zzc;return L},{mode:2});var taQ;var Oz0;var KC=function(){var L=_.e.apply(this,arguments)||this;L.SHARE_TARGET_WIDTH=70;L.SHARE_TARGET_MARGIN_RIGHT=8;L.PAGE_SCROLL_SPEED=9;L.actionMap={"yt-share-panel-reset-action":"onReset_"};return L};
_.f(KC,_.e);_.t=KC.prototype;_.t.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.t.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.QJ(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.QJ(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.t.onReset_=function(){if(_.QJ(this.hostElement).querySelector("#list")){var L=_.QJ(this.hostElement).querySelector("#list");var Z=_.QJ(this.hostElement).querySelector("#list");var N=Z.offsetLeft,S=Z.offsetParent;S||_.e2t(Z)!="fixed"||(S=_.Jj(Z).documentElement);if(S){if(_.xM&&!_.L5(58)){var u=_.PGt(S);N+=u.left}else Number(_.Z0Y)>=8&&!(Number(_.Z0Y)>=9)&&(u=_.PGt(S),N-=u.left);Z=_.jmh(S)?S.clientWidth-(N+Z.offsetWidth):N}else Z=N;Z2v(L,Z);this.updateScrollButtons_()}};
_.t.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.t.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.t.onScrollWheel_=function(L){L.stopPropagation();L.preventDefault();var Z=LCv(_.QJ(this.hostElement).querySelector("#list"));L=Math.abs(L.deltaX)>Math.abs(L.deltaY)?L.deltaX:L.deltaY;Z2v(_.QJ(this.hostElement).querySelector("#list"),Z+L);this.updateScrollButtons_()};
_.t.smoothScrollByOnePage_=function(L){var Z=_.QJ(this.hostElement).querySelector("#list"),N=(Math.floor(Z.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,S=LCv(Z),u=N*(L?1:-1),T=this.PAGE_SCROLL_SPEED,W=this.updateScrollButtons_.bind(this),V=0,M;(function D(){V+=T;M=V/N*2;Z2v(Z,S+u*(M<1?M*M:-M*M+4*M-2));V<N?window.requestAnimationFrame(D):W()})()};
_.t.updateScrollButtons_=function(){var L=LCv(_.QJ(this.hostElement).querySelector("#list")),Z=_.QJ(this.hostElement).querySelector("#list").scrollWidth-_.QJ(this.hostElement).querySelector("#list").clientWidth;_.QJ(this.hostElement).querySelector("#scroll-button-back").hidden=L<=0;_.QJ(this.hostElement).querySelector("#scroll-button-forward").hidden=L>=Z};
KC.prototype.onScrollWheel_=KC.prototype.onScrollWheel_;KC.prototype.onDataChanged_=KC.prototype.onDataChanged_;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],KC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],KC.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(qEq.YtBindingExpressionsBehavior),_.Q("design:type",Object)],KC.prototype,"ytBindingExpressionsBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],KC.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],KC.prototype,"data",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],KC.prototype,"onDataChanged_",null);_.r([_.SA("wheel"),_.Q("design:type",Function),_.Q("design:paramtypes",[WheelEvent]),_.Q("design:returntype")],KC.prototype,"onScrollWheel_",null);
_.r([_.ch({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],KC);
_.m(KC,"yt-third-party-share-target-section-renderer",function(){if(Oz0===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;taQ===void 0&&(taQ=document.createElement("template"));var S=taQ;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Oz0=L}L=Oz0;return L},{mode:2});var fC=function(){return _.e.apply(this,arguments)||this};
_.f(fC,_.e);fC.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"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],fC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],fC.prototype,"data",void 0);_.r([_.ch({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],fC);
_.m(fC,"yt-third-party-network-section-renderer",function(){if(A8Y===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Xes===void 0&&(Xes=document.createElement("template"));var S=Xes;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);A8Y=L}L=A8Y;return L},{mode:2});_.CY(_.p(function(L){return _.g("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.g("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.g(_.bj,{data:function(){return L.data().firstPartyItems}},{listItemViewModel:_.QO})))},"Yi"),"first-party-network-section-view-model",{props:{data:_.LK}});var WHk=(0,_.d2m)(_.pR.share,{parentClickTrackingParamsSelector:function(L){return L.parentClickTrackingParams}});var Vaq=_.sc(["data:image/svg+xml;charset=UTF-8;base64,",""]),kq=function(){var L=_.e.apply(this,arguments)||this;L.screenLayer=7;L.qrCodeEnabled=_.c("web_enable_sharing_qr_code");L.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return L};
_.f(kq,_.e);_.t=kq.prototype;_.t.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.t.attached=function(){this.JSC$20334_scroller&&(this.JSC$20334_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20334_scroller.attached&&typeof this.JSC$20334_scroller.attached==="function"&&this.JSC$20334_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.t.onDataChanged=function(){var L=this,Z;(Z=this.data)!=null&&Z.contents&&(this.hostElement.setAttribute("links-only","true"),_.xe(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.bN(this,function(){_.QT(L.hostElement,"yt-refit");L.focusSharePanelHeader()}))};
_.t.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.t.handleSetTimestamp=function(L){var Z=this.shortUrl();L.isSet&&(Z=_.JY(Z,"t",L.timestamp));this.maybeRenderQrCode(Z)};
_.t.shortUrl=function(){var L,Z=(L=this.data)==null?void 0:L.contents;if(Z)for(L=0;L<Z.length;L++){var N=void 0,S=void 0;if((N=Z[L])==null?0:(S=N.thirdPartyNetworkSection)==null?0:S.copyLinkContainer){var u=S=N=void 0;return(u=_.n((N=Z[L])==null?void 0:(S=N.thirdPartyNetworkSection)==null?void 0:S.copyLinkContainer,D18))==null?void 0:u.shortUrl}}};
_.t.maybeRenderQrCode=function(L){var Z=this,N,S,u,T,W,V,M,G,D;return _.b(function(l){if(l.nextAddress==1){N=_.QJ(Z.hostElement).querySelector("#qr-code");if(!Z.qrCodeEnabled||!L)return N&&(N.style.display="none"),l.return();S=_.Erx(_.GR().resolve(_.xD),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});u=document.createElement("div");return typeof S==="function"?(S(u),l.jumpTo(2)):l.yield(S,3)}l.nextAddress!=2&&(T=l.yieldResult,T(u));M=(W=u)==null?void 0:(V=W.firstChild)==null?void 0:V.firstChild;
G=document.createElement("img");D=_.Osx(Vaq,btoa(M.outerHTML));G.onload=function(){var v={canvas:N,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:G},R=new o9s;kqv(R,L);yu0(R,!1,wTq(R));var K=R.modules,U=Object.assign({},xUs,v);K=structuredClone(K);v=K.length;var d,h=(d=U.canvas)!=null?d:document.createElement("canvas");d=U.cellSize;R=U.logo;var E,A=(E=U.logoSize)!=null?E:Math.floor(v/4);v%2!==A%2&&A++;var J=U.logoPadding,C=U.backgroundColor;E=v*d;var X=
U.width,L1=0;X&&(L1=U.padding,L1=Math.ceil(L1*E/(X-L1*2)),h.style.width=X+"px",h.style.height=X+"px");h.width!==E+L1*2&&(h.width=E+L1*2);h.height!==E+L1*2&&(h.height=E+L1*2);E=h.getContext("2d");U.autoClear&&E.clearRect(0,0,h.width,h.height);E.fillStyle=C;E.beginPath();E.roundRect(0,0,h.width,h.height,U.borderRadius);E.fill();E.save();E.translate(L1,L1);if(R)for(h=Math.floor(v-A)/2-J,J=Math.floor(v+A)/2+J,C=h;C<J;C++)for(X=h;X<J;X++)K[C][X]=!1;for(h=0;h<v;h++)for(J=0;J<v;J++)(h<7&&J<7||h<7&&J>=v-
7||h>=v-7&&J<7)&&(K[h][J]=!1);var Fw;h=(Fw=U.markerColor)!=null?Fw:U.color;YSg(E,0,0,d,h);YSg(E,d*(v-7),0,d,h);YSg(E,0,d*(v-7),d,h);switch(U.cellStyle){case 0:Fw=K;K=Fw.length;h=U.cellSize;E.beginPath();for(J=0;J<K;J++)for(C=0;C<K;C++)Fw[J][C]&&E.rect(J*h,C*h,h,h);E.fillStyle=U.color;E.fill();break;case 1:Fw=K;K=Fw.length;h=U.cellSize;J=h*U.relativeCircleSize;E.fillStyle=U.color;E.beginPath();for(U=0;U<K;U++)for(C=0;C<K;C++)Fw[U][C]&&(E.beginPath(),E.ellipse((U+.5)*h,(C+.5)*h,J/2,J/2,0,0,2*Math.PI),
E.fill());E.fill();break;case 2:Fw=K;K=Fw.length;h=U.cellSize;E.fillStyle=U.color;U=[[1,1],[-1,1],[-1,-1],[1,-1]];E.beginPath();for(J=0;J<K;J++)for(C=0;C<K;C++)if(Fw[J][C])E.roundRect(J*h,C*h,h,h,h/2),J+1<K&&Fw[J+1][C]&&E.rect(J*h+h/2,C*h,h,h),C+1<K&&Fw[J][C+1]&&E.rect(J*h,C*h+h/2,h,h);else{X=J*h+h/2;L1=C*h+h/2;for(var GB=0;GB<4;GB++){var Yt=_.O(U[GB]),lH=Yt.next().value;Yt=Yt.next().value;J+lH>=0&&J+lH<K&&C+Yt>=0&&C+Yt<K&&Fw[J+lH][C]&&Fw[J][C+Yt]&&Fw[J+lH][C+Yt]&&(lH=GB*Math.PI/2,Yt=h/2,E.moveTo(X+
Yt*Math.cos(lH),L1+Yt*Math.sin(lH)),E.arc(X,L1,h/2,lH,lH+Math.PI/2,!1),E.lineTo(X+Yt*(Math.cos(lH)-Math.sin(lH)),L1+Yt*(Math.cos(lH)+Math.sin(lH))),E.lineTo(X+Yt*Math.cos(lH),L1+Yt*Math.sin(lH)))}}E.fill()}R&&E.drawImage(R,(v-A)*d/2,(v-A)*d/2,A*d,A*d);E.restore();N.style.removeProperty("display")};
G.src=_.jn(D);_.w7(l)})};
_.t.hasCommunityPostRenderer=function(){var L,Z,N,S;return!!((L=this.data)==null?0:(Z=L.header)==null?0:(N=Z.sharePanelHeaderRenderer)==null?0:(S=N.communityPost)==null?0:S.communityPostSectionRenderer)};
_.t.onTapClose=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.t.getScreenLayer=function(){return this.screenLayer};
_.t.logSharePanelPage=function(){if(!_.c("enable_share_panel_navigation_logging_fix_on_web")){var L;if((L=this.data)!=null&&L.trackingParams){L=this.data.trackingParams;var Z=this.parentClickTrackingParams;Z=Z?_.Mg(Z):void 0;var N=_.tC();_.fF(N,21760,Z,{layer:7,parentLayer:0});N.graftServerVe(L,void 0,7);_.Pv().dispatch(_.XK({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
kq.prototype.onDataChanged=kq.prototype.onDataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],kq.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],kq.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],kq.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],kq.prototype,"data",void 0);_.r([_.Y({value:_.iB("SBOX_INAPPROPRIATE_CANCEL")}),_.Q("design:type",String)],kq.prototype,"closeButtonAriaLabel",void 0);_.r([_.TX("yt-share-panel-header-renderer"),_.Q("design:type",HTMLElement)],kq.prototype,"header",void 0);_.r([_.Y({selector:WHk.parentClickTrackingParamsSelector}),_.Q("design:type",String)],kq.prototype,"parentClickTrackingParams",void 0);_.r([_.Y(),_.Q("design:type",Object)],kq.prototype,"qrCodeEnabled",void 0);
_.r([_.TX("#scroller"),_.Q("design:type",Object)],kq.prototype,"JSC$20334_scroller",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],kq.prototype,"onDataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],kq);
_.m(kq,"ytd-unified-share-panel-renderer",function(){if(hiy!==void 0)return hiy;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return hiy=L},{mode:1});var bz8;var yy=function(){var L=_.e.apply(this,arguments)||this;L.modernModal=!0;return L};
_.f(yy,_.e);yy.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
yy.prototype.computeShouldHideOldButtons=function(){var L;return!((L=this.data)==null?0:L.button)};
_.gd.Object.defineProperties(yy.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var L,Z;return(L=this.data)==null?void 0:(Z=L.button)==null?void 0:Z.buttonRenderer}}});
_.r([_.Y(),_.Q("design:type",Object)],yy.prototype,"data",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],yy.prototype,"ytEventForwardingBehavior",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],yy.prototype,"modernModal",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],yy.prototype,"buttonRendererData",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],yy);
_.m(yy,"ytd-modal-with-title-and-button-renderer",function(){if(bz8!==void 0)return bz8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return bz8=L},{mode:1});var Mav;var wh=function(){return _.e.apply(this,arguments)||this};
_.f(wh,_.e);wh.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("page-changed",this.page))};
wh.prototype.pageChangedForBinding=wh.prototype.pageChangedForBinding;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],wh.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],wh.prototype,"page",void 0);_.r([_.iA("page"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wh.prototype,"pageChangedForBinding",null);
_.r([_.P({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],wh);
_.m(wh,"ytd-account-item-section-header-renderer",function(){if(Mav!==void 0)return Mav;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Mav=L},{mode:1});var g4s;var UH=function(){return _.e.apply(this,arguments)||this};
_.f(UH,_.e);UH.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"}}}};
UH.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],UH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Sq),_.Q("design:type",Object)],UH.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],UH.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!1}),_.Q("design:type",Function)],UH.prototype,"onAccountItemTap",void 0);
_.r([_.P({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],UH);
_.m(UH,"ytd-account-item-section-renderer",function(){if(g4s!==void 0)return g4s;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return g4s=L},{mode:1});var GUP;var FHv;var $0g=function(){return _.e.apply(this,arguments)||this};
_.f($0g,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],$0g.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],$0g.prototype,"data",void 0);_.r([_.P({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],$0g);
_.m($0g,"ytd-accounts-dialog-header-renderer",function(){if(FHv!==void 0)return FHv;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return FHv=L},{mode:1});var D0y;var Yq=function(){return _.e.apply(this,arguments)||this};
_.f(Yq,_.e);Yq.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Yq.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yq.prototype,"data",void 0);_.r([_.P({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Yq);
_.m(Yq,"ytd-google-account-header-renderer",function(){if(D0y!==void 0)return D0y;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return D0y=L},{mode:1});var eI=function(){return _.e.apply(this,arguments)||this};
_.f(eI,_.e);eI.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"}}}};
eI.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("page-changed",this.page))};
eI.prototype.pageChangedForBinding=eI.prototype.pageChangedForBinding;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],eI.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],eI.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],eI.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],eI.prototype,"page",void 0);
_.r([_.iA("page"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],eI.prototype,"pageChangedForBinding",null);_.r([_.P({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],eI);
_.rD()(eI,"ytd-account-section-list-renderer",function(){if(GUP===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);GUP=L}L=GUP;return L},{allowedProps:["data"],
mode:1});var ltg;var Ic=function(){var L=_.e.apply(this,arguments)||this;L.enableHandlesAccountMenuSwitcher=_.c("enable_handles_account_menu_switcher");return L};
_.f(Ic,_.e);Ic.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
Ic.prototype.dataChanged=Ic.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ic.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Ic.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.r([_.TX("#avatar"),_.Q("design:type",Object)],Ic.prototype,"avatar",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ic.prototype,"dataChanged",null);_.r([_.P({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Ic);
_.rD()(Ic,"ytd-active-account-header-renderer",function(){if(ltg===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);ltg=L}L=ltg;return L},{allowedProps:["data"],
mode:1});var v4q;var o4k;var dh=function(){return _.e.apply(this,arguments)||this};
_.f(dh,_.e);dh.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
dh.prototype.onBackTap=function(){_.QT(this.hostElement,"yt-menu-back-tapped")};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],dh.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],dh.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],dh.prototype,"data",void 0);_.r([_.P({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],dh);
_.rD()(dh,"ytd-simple-menu-header-renderer",function(){if(o4k===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);o4k=L}L=o4k;return L},{allowedProps:["data"],
mode:2});var RL8;var cbw=function(){return _.e.apply(this,arguments)||this};
_.f(cbw,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],cbw.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],cbw.prototype,"data",void 0);_.r([_.P({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],cbw);
_.m(cbw,"ytd-comment-video-thumbnail-header-renderer",function(){if(RL8!==void 0)return RL8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return RL8=L},{mode:1});var n48;var KHk=function(){return _.e.apply(this,arguments)||this};
_.f(KHk,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],KHk.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],KHk.prototype,"data",void 0);_.r([_.P({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],KHk);
_.m(KHk,"ytd-abuse-type-selector-renderer",function(){if(n48!==void 0)return n48;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return n48=L},{mode:1});var ftw;var kU0=(0,_.d2m)(_.pR.reportChannelAbuse,{isVideoIdSelectedSelector:function(L,Z){return Z in L.selectedVideoIds},
additionalContextSelector:function(L){return L.additionalContext},
impersonatedChannelUrlSelector:function(L){return L.impersonatedChannelUrl},
reportChannelAbuseSelector:function(L){return L}});var ac=function(){return _.e.apply(this,arguments)||this};
_.f(ac,_.e);ac.prototype.attached=function(){var L=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){L.additionalContextInput.focusTextInput()})};
ac.prototype.handleAdditionalContextChanged=function(){var L=this;_.YD(this,"ytd-report-channel-additional-context-update",function(){L.ytdReduxBehavior.dispatch(_.XK({type:"ADDITIONAL_CONTEXT_UPDATED",payload:L.additionalContext}))},300)};
ac.prototype.updateAdditionalContextFromBinding=function(L){this.additionalContext=L.detail.value};
ac.prototype.handleAdditionalContextChanged=ac.prototype.handleAdditionalContextChanged;_.r([_.y(_.CD),_.Q("design:type",Object)],ac.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",String)],ac.prototype,"additionalContext",void 0);_.r([_.Y({selector:kU0.additionalContextSelector}),_.Q("design:type",String)],ac.prototype,"additionalContextRedux",void 0);_.r([_.Y(),_.Q("design:type",Object)],ac.prototype,"data",void 0);
_.r([_.TX("yt-text-input-form-field-renderer"),_.Q("design:type",Object)],ac.prototype,"additionalContextInput",void 0);_.r([_.iA("additionalContext"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ac.prototype,"handleAdditionalContextChanged",null);_.r([_.P({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],ac);
_.m(ac,"ytd-report-channel-modal-additional-context-renderer",function(){if(ftw!==void 0)return ftw;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return ftw=L},{mode:1});var ybv;var h7=function(){var L=_.e.apply(this,arguments)||this;L.nextButtonDisabled=null;L.submitEndpoint=null;L.navigationEndpoint=null;L.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return L};
_.f(h7,_.e);_.t=h7.prototype;_.t.computeNextButtonData=function(L,Z,N){var S={};Z&&(S.navigationEndpoint=Z);N&&(S.serviceEndpoint=N);L&&L.buttonRenderer&&_.Py.extend(S,L.buttonRenderer);return S};
_.t.handleReportChannelModalDisableNextButtonAction=function(L){this.setNextButtonIsDisabled(L)};
_.t.handleReportFormEndpointUpdateAction=function(L){this.setNextButtonIsDisabled(!!L.disableSubmitButton);this.resetEndpointData();L.submitEndpoint?this.submitEndpoint=L.submitEndpoint:L.submitNavigationEndpoint&&(this.navigationEndpoint=L.submitNavigationEndpoint)};
_.t.handleSignalActionSubmitForm=function(){var L,Z=Object.keys(((L=this.reportChannelAbuseForm)==null?void 0:L.selectedVideoIds)||{}),N;L=((N=this.reportChannelAbuseForm)==null?void 0:N.additionalContext)||"";var S;N=((S=this.reportChannelAbuseForm)==null?void 0:S.impersonatedChannelUrl)||"";var u;if((u=this.data)==null?0:u.submitEndpoint){Z={impersonated_channel_url:N,text:L,video_ids:Z};var T;_.GR().resolve(_.$s).resolveCommand((T=this.data)==null?void 0:T.submitEndpoint,{form:Object.assign({},
Z,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.t.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.t.onYtServiceRequestError=function(L){this.setNextButtonIsDisabled(!1);_.Ib(this.hostElement,L.detail.error.message)};
_.t.setNextButtonIsDisabled=function(L){this.set("data.nextButton.buttonRenderer.isDisabled",L)};
_.t.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
h7.prototype.onYtServiceRequestError=h7.prototype.onYtServiceRequestError;h7.prototype.onYtServiceRequestCompleted=h7.prototype.onYtServiceRequestCompleted;_.r([_.Y(),_.Q("design:type",Object)],h7.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],h7.prototype,"nextButtonDisabled",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],h7.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],h7.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],h7.prototype,"submitEndpoint",void 0);_.r([_.Y(),_.Q("design:type",Object)],h7.prototype,"navigationEndpoint",void 0);_.r([_.Y({selector:kU0.reportChannelAbuseSelector}),_.Q("design:type",Object)],h7.prototype,"reportChannelAbuseForm",void 0);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],h7.prototype,"onYtServiceRequestCompleted",null);_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],h7.prototype,"onYtServiceRequestError",null);_.r([_.P({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],h7);
_.m(h7,"ytd-report-channel-modal-footer-renderer",function(){if(ybv!==void 0)return ybv;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return ybv=L},{mode:1});var wUv;var sH=function(){var L=_.e.apply(this,arguments)||this;L.boundOnTapDismissButton=function(){L.closePopup()};
return L};
_.f(sH,_.e);sH.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
sH.prototype.handleDataChanged=function(){_.tV(this.hostElement)};
sH.prototype.closePopup=function(){_.XJ(this.hostElement,"yt-close-popup-action")};
sH.prototype.handleDataChanged=sH.prototype.handleDataChanged;_.r([_.Y(),_.Q("design:type",Object)],sH.prototype,"boundOnTapDismissButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],sH.prototype,"data",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],sH.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sH.prototype,"handleDataChanged",null);_.r([_.P({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],sH);
_.m(sH,"ytd-report-channel-modal-header-renderer",function(){if(wUv!==void 0)return wUv;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return wUv=L},{mode:1});var U0w;var jI=function(){var L=_.e.apply(this,arguments)||this;L.autoValidate=!1;L.invalid=!1;L.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return L};
_.f(jI,_.e);_.t=jI.prototype;_.t.attached=function(){var L=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){L.channelUrlInput.focusTextInput()})};
_.t.disableNextButton=function(L){_.XJ(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[L])};
_.t.handleImpersonatedChannelUrlChanged=function(){var L=this;this.disableNextButton(!0);this.invalid=!1;_.YD(this,"ytd-report-channel-impersonated-channel-update",function(){var Z=L.impersonatedChannelUrl.trim();L.ytdReduxBehavior.dispatch(_.XK({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:Z}));var N;((N=L.data)==null?0:N.submitEndpoint)&&Z&&_.GR().resolve(_.$s).resolveCommand(L.data.submitEndpoint,{form:{impersonated_channel_url:Z,element:L.hostElement}})},500)};
_.t.handleModifyReportFormCommand=function(L){this.invalid=this.get("modifyReportFormCommand.action",L)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.t.updateInvalidFromBinding=function(L){this.invalid=L.detail.value};
_.t.updateImpersonatedChannelUrlFromBinding=function(L){this.impersonatedChannelUrl=L.detail.value};
jI.prototype.handleImpersonatedChannelUrlChanged=jI.prototype.handleImpersonatedChannelUrlChanged;_.r([_.y(_.CD),_.Q("design:type",Object)],jI.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],jI.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],jI.prototype,"autoValidate",void 0);_.r([_.Y(),_.Q("design:type",Object)],jI.prototype,"invalid",void 0);
_.r([_.Y(),_.Q("design:type",String)],jI.prototype,"impersonatedChannelUrl",void 0);_.r([_.Y({selector:kU0.impersonatedChannelUrlSelector}),_.Q("design:type",String)],jI.prototype,"impersonatedChannelUrlRedux",void 0);_.r([_.Y(),_.Q("design:type",Object)],jI.prototype,"data",void 0);_.r([_.TX("#text-input"),_.Q("design:type",Object)],jI.prototype,"channelUrlInput",void 0);
_.r([_.iA("impersonatedChannelUrl"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],jI.prototype,"handleImpersonatedChannelUrlChanged",null);_.r([_.P({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],jI);
_.m(jI,"ytd-report-channel-modal-impersonation-renderer",function(){if(U0w!==void 0)return U0w;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return U0w=L},{mode:1});var Yhc;var eLm;var EH=function(){return _.e.apply(this,arguments)||this};
_.f(EH,_.e);EH.prototype.onCheckboxToggled=function(L){var Z,N,S=(N=_.n((Z=this.data)==null?void 0:Z.video,_.LF))==null?void 0:N.videoId;S&&this.ytdReduxBehavior.dispatch(L.target.checked?_.XK({type:"VIDEO_SELECTED",payload:S}):_.XK({type:"VIDEO_UNSELECTED",payload:S}))};
EH.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.gd.Object.defineProperties(EH.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var L,Z=(L=this.data)==null?void 0:L.video;if(!Z)return{};var N;L=(N=_.n(Z,_.LF))==null?void 0:N.navigationEndpoint;if(!L)return Z;_.n(L==null?void 0:L.commandMetadata,_.Nj)&&(_.n(L.commandMetadata,_.Nj).ignoreNavigation=!0);return Z}}});
_.r([_.Y({reflectToAttribute:!0,selector:kU0.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.Q("design:type",Boolean)],EH.prototype,"checked",void 0);_.r([_.Y(),_.Q("design:type",Object)],EH.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],EH.prototype,"video",null);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],EH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],EH.prototype,"ytdReduxBehavior",void 0);_.r([_.P({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],EH);
_.m(EH,"ytd-selectable-video-renderer",function(){if(eLm!==void 0)return eLm;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return eLm=L},{mode:1});var Pr=function(){var L=_.e.apply(this,arguments)||this;L.monitorScroll=!0;return L};
_.f(Pr,_.e);Pr.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Pr.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Pr.prototype,"data",void 0);_.r([_.P({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Pr);
_.m(Pr,"ytd-selectable-video-list-renderer",function(){if(Yhc!==void 0)return Yhc;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Yhc=L},{mode:1});var Itc;_.l4("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var pC=function(){return _.e.apply(this,arguments)||this};
_.f(pC,_.e);pC.prototype.onChange=function(L){if(L=_.jD(L).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.c("kevlar_command_handler_migration_killswitch"))_.B2(this.hostElement,L,this.hostElement);else{L=_.O(L);for(var Z=L.next();!Z.done;Z=L.next())this.ytComponentBehavior.resolveCommand(Z.value)}};
pC.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
pC.prototype.updateDataToggledFromBinding=function(L){this.set("data.toggled",L.detail.value)};
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],pC.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],pC.prototype,"data",void 0);_.r([_.Y({computed:"isEnabled(data)"}),_.Q("design:type",Boolean)],pC.prototype,"enabled",void 0);_.r([_.P({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],pC);
_.m(pC,"ytd-toggle-item-renderer",function(){if(Itc!==void 0)return Itc;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Itc=L},{mode:1});var d0g;var at8;var hLw;var zv=function(){var L=_.e.apply(this,arguments)||this;L.setVisible=!1;L.boundOnSubmitButtonClick=function(){L.onSubmitButtonClick()};
L.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return L};
_.f(zv,_.e);zv.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}}}}}};
zv.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
zv.prototype.onSubmitButtonClick=function(){var L;((L=this.data)==null?0:L.submitEndpoint)&&!_.c("enable_ytc_refunds_submit_form_signal_action")&&_.H2(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
zv.prototype.handleSignalActionSubmitForm=function(){var L;((L=this.data)==null?0:L.submitEndpoint)&&_.H2(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.gd.Object.defineProperties(zv.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.hiddenByDefault)&&!this.setVisible}}});
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],zv.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],zv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],zv.prototype,"setVisible",void 0);_.r([_.Y(),_.Q("design:type",Object)],zv.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Object)],zv.prototype,"surveyFeedbackData",void 0);_.r([_.Y(),_.Q("design:type",Object)],zv.prototype,"boundOnSubmitButtonClick",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data","setVisible"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],zv.prototype,"visibilityHidden",null);_.r([_.ch({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],zv);
_.m(zv,"yt-flow-footer-renderer",function(){if(hLw===void 0){var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;at8===void 0&&(at8=document.createElement("template"));var S=at8;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);hLw=L}L=hLw;return L},{mode:2});var sr5=(0,_.d2m)(_.pR.ypc,{surveyFeedbackDataSelector:function(L){return L.surveyFeedbackData}});var m9=function(){return _.e.apply(this,arguments)||this};
_.f(m9,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],m9.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],m9.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],m9.prototype,"data",void 0);_.r([_.Y({selector:sr5.surveyFeedbackDataSelector}),_.Q("design:type",Object)],m9.prototype,"surveyFeedbackData",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],m9);
_.m(m9,"ytd-flow-footer-renderer",function(){if(d0g!==void 0)return d0g;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return d0g=L},{mode:_.Qr("kevlar_poly_si_batch_j025")?1:2});var jr5;var E4g;var J7=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return L};
_.f(J7,_.e);_.t=J7.prototype;_.t.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.vQ("multiPageMenuSectionItems")}}};
_.t.handleHideEnclosingAction_=function(L){if(this.data&&this.data.items)for(var Z=0;Z<this.data.items.length;Z++){var N=this.data.items[Z].notificationRenderer;if(N&&N.notificationId==L.hideEnclosingAction.notificationId){this.splice("data.items",Z,1);_.XJ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.t.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.xe(this.hostElement,"hidden",!0)};
_.t.updateMenu_=function(L){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&L&&!L.doNotRefreshInbox){L=this.data.continuations;for(var Z=0;Z<L.length;Z++)if(L[Z].invalidationContinuationData){var N=void 0;var S=(N=L[Z].invalidationContinuationData)==null?void 0:N.continuation;break}L=_.Py.clone(this.data.continuationUpdateEndpoint||null);L.continuation=S;L.click_tracking_params=this.data.trackingParams;_.H2(this.hostElement,[L])}};
_.t.onServiceRequestCompleted_=function(L,Z){if(this.data&&(L=Z.actions)){Z=0;for(var N=L.length;Z<N;Z++){var S=_.n(L[Z],_.wLt);if(!S)break;if((S.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||S.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&S.continuationItems&&this.data.items){var u=this.data.items.length-1;this.data.items[u].continuationItemRenderer&&(S=["data.items",u,1].concat(S.continuationItems),this.splice.apply(this,S))}}}};
J7.prototype.onServiceRequestCompleted_=J7.prototype.onServiceRequestCompleted_;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],J7.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],J7.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],J7.prototype,"data",void 0);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],J7.prototype,"onServiceRequestCompleted_",null);_.r([_.ch({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],J7);
_.rD()(J7,"yt-multi-page-menu-section-renderer",function(){if(E4g===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;jr5===void 0&&(jr5=document.createElement("template"));var S=jr5;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);E4g=L}L=E4g;return L},{allowedProps:["data"],
mode:2});var PPP;var pUs;var CC=function(){return _.e.apply(this,arguments)||this};
_.f(CC,_.e);CC.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.gd.Object.defineProperties(CC.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.progress)==null?0:this.data.progress*100}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],CC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],CC.prototype,"data",void 0);_.r([_.w("data.progress"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],CC.prototype,"showProgressBar",null);
_.r([_.w("data.progress"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],CC.prototype,"progress",null);_.r([_.ch({is:"yt-flow-header-renderer",disableElementRegistration:!0})],CC);
_.m(CC,"yt-flow-header-renderer",function(){if(pUs===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;PPP===void 0&&(PPP=document.createElement("template"));var S=PPP;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);pUs=L}L=pUs;return L},{mode:2});var zLw;var m0v;var rh=function(){return _.e.apply(this,arguments)||this};
_.f(rh,_.e);rh.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],rh.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],rh.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],rh.prototype,"data",void 0);_.r([_.ch({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],rh);
_.m(rh,"yt-post-confirmation-flow-step-renderer",function(){if(m0v===void 0){var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;zLw===void 0&&(zLw=document.createElement("template"));var S=zLw;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);m0v=L}L=m0v;return L},{mode:2});var Jbq;var CPv;var Qy=function(){return _.e.apply(this,arguments)||this};
_.f(Qy,_.e);
Qy.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"}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Qy.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Qy.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Qy.prototype,"data",void 0);_.r([_.ch({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Qy);
_.m(Qy,"yt-refund-confirmation-flow-step-renderer",function(){if(CPv===void 0){var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Jbq===void 0&&(Jbq=document.createElement("template"));var S=Jbq;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);CPv=L}L=CPv;return L},{mode:2});var rbc=_.p(function(L){var Z=L.data;return _.g("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.g("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.g(_.ji,{data:function(){return{thumbnails:[{url:Z().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.g("div",{class:"profileBadgeViewModelContent"},_.g("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return Z().badgeDesc}),_.g(_.F,{cond:function(){return Z().badgeSubtitle},
then:function(){return _.g("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return Z().badgeSubtitle})}})))},"Zi");
rbc.idomCompat=!0;var Qrm=_.p(function(L){var Z=L.data;return _.g("yt-comment-interaction-view-model",{el:_.P9(_.cT(function(){return Z().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.g("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return Z().onTapA11yLabel},
"on:keydown":_.pjs(),tabindex:0},_.g("div",{class:"ytCommentInteractionViewModelHeader"},_.g("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return Z().headerPrefix},' "',function(){return Z().videoTitle}),_.g("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.g("div",{class:"ytCommentInteractionViewModelContent"},_.g("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return Z().commentContent}),_.g("div",{class:"ytCommentInteractionViewModelChevron"},
_.g(_.ji,{data:function(){return{thumbnails:[{url:Z().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"$i");
Qrm.idomCompat=!0;var XUk=_.p(function(L){var Z=L.data;return _.g("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.g(_.bj,{data:function(){return Z().avatar}},{avatarViewModel:_.JO}),_.g("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return Z().channelName}))},"aj");
XUk.idomCompat=!0;var qhk=_.p(function(L){var Z=L.data;L={};return _.g("yt-profile-info-view-model",{class:_.qg("ytProfileInfoViewModelHost",(L.ytProfileInfoViewModelWithVideoShelf=function(){return Z().videosHorizontalShelf},L))},_.g(Abk,{profileInfo:Z}),_.g(_.bj,{data:function(){return Z().videosHorizontalShelf}},{horizontalShelfViewModel:function(N){return _.g("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.g(_.x7,{data:N.data}))}}),_.g(_.F,{cond:function(){return Z().comments},
then:function(){return _.g(Hz0,{profileInfo:Z})}}),_.g(_.F,{cond:function(){return Z().sharedSubscriptionsTitle},
then:function(){return _.g(_.F,{cond:function(){return Z().subscriptionsAccessButtonCommand},
then:function(){return _.g(BGv,{profileInfo:Z})},
else:function(){return _.g(x0Q,{profileInfo:Z})}})}}))},"bj");
qhk.idomCompat=!0;var Hz0=_.p(function(L){var Z=L.profileInfo;return _.g("div",{class:"ytProfileInfoViewModelActivity"},_.g("div",{class:"ytProfileInfoViewModelHeader"},_.g("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return Z().commentsInteractionTitle})),_.g(_.bj,{data:function(){return Z().comments}},{commentInteractionViewModel:function(N){return _.g("div",{class:"ytProfileInfoViewModelActivity"},_.g(Qrm,{data:N.data}))}}))},"cj"),BGv=_.p(function(L){var Z=L.profileInfo;
return _.g("div",{class:"ytProfileInfoViewModelSubSection"},_.g("div",{class:"ytProfileInfoViewModelSubHeader"},_.g(_.bM,{command:function(){return Z().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.g("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return Z().sharedSubscriptionsTitle}),_.g("div",null,_.g(_.bj,{data:function(){return Z().subscriptionsAccessButton}},{buttonViewModel:_.$X})))),_.g(LGP,{sharedSubscriptions:function(){var N;
return((N=Z().sharedSubscriptions)==null?void 0:N.slice(0,5))||[]}}))},"dj"),x0Q=_.p(function(L){var Z=L.profileInfo;
return _.g("div",{class:"ytProfileInfoViewModelSubSection"},_.g("div",{class:"ytProfileInfoViewModelSubHeader"},_.g("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return Z().sharedSubscriptionsTitle})),_.g(LGP,{sharedSubscriptions:function(){var N;
return((N=Z().sharedSubscriptions)==null?void 0:N.slice(0,5))||[]}}))},"ej"),LGP=_.p(function(L){return _.g("div",{class:"ytProfileInfoViewModelSubs"},_.g(_.bj,{data:L.sharedSubscriptions},{sharedSubscriptionViewModel:function(Z){return _.g("div",{class:"ytProfileInfoViewModelSub"},_.g(XUk,{data:Z.data}))}}))},"fj"),Abk=_.p(function(L){var Z=L.profileInfo;
return _.g("div",{class:"ytProfileInfoViewModelActivity"},_.g(_.ju,{each:function(){return[Z().profileBadgeInfoYtWide,Z().profileBadgeInfoChannelWide].filter(function(N){return!!N})},
keyBy:"INDEX"},function(N){return _.g(_.F7,null,_.g("div",{class:"ytProfileInfoViewModelHeader"},_.g("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return N().profileSectionTitle}),_.g("div",{class:"ytProfileInfoViewModelSectionDesc"},_.g("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var S;
return(S=N().commentBadge)==null?void 0:S.commentDesc}),_.g(_.F,{cond:function(){var S;
return(S=N().commentBadge)==null?void 0:S.blackHeartDesc},
then:function(){return _.g("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.g("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.g(_.ji,{data:function(){var S;
return{thumbnails:[{url:(S=N().commentBadge)==null?void 0:S.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.g("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var S;return(S=N().commentBadge)==null?void 0:S.blackHeartDesc}))),_.g("div",{class:"ytProfileInfoViewModelBadge"},_.g(_.ju,{each:function(){return N().badges||[]}},function(S){return _.g(rbc,{data:S})})))}))},"gj");var Ztw=_.p(function(L){var Z=L.data;var N=function(){return Z().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.g("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.g(_.bj,{data:function(){return Z().profileIdentityInfo}},{profileIdentityInfoViewModel:function(S){return _.g(_.Jdg,{data:S.data,
hideDivider:N,isChannelInfoCard:N})},
profileInfoViewModel:qhk}),_.g(_.bj,{data:function(){return Z().profileInfo}},{profileIdentityInfoViewModel:_.Jdg,
profileInfoViewModel:qhk}))},"hj");
Ztw.idomCompat=!0;_.CY(Ztw,"yt-profile-card-view-model",{props:{data:_.LK}});var XS=function(){var L=_.e.apply(this,arguments)||this;L.enableFocusFix=_.c("music_web_enable_focus_on_setting_menu_fix")&&_.Ah("IS_MOBILE_WEB",!1);L.covered=!1;L.hideMenu=!1;L.isCommentNotificationOnProfileCard=!1;L.scrolledByTouch=!1;L.disableBackdropFilter=_.c("web_disable_backdrop_filter");L.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return L};
_.f(XS,_.e);_.t=XS.prototype;
_.t.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"}}}};
_.t.ready=function(){var L=this;this.JSC$20435_containerElement.addEventListener("scroll",function(){L.ytRendererBehavior.markDirty()})};
_.t.attributeChanged=function(L,Z){L==="menu-style"&&_.XJ(this.hostElement,"yt-multi-page-menu-closed-action",[Z])};
_.t.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Nd(this,this.focusOnStampFinished))};
_.t.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Nd(this,this.focusOnStampFinished))};
_.t.reset=function(){this.closeJobId&&(_.ro.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.t.focusOnStampFinished=function(L){L.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Nd(this,this.focusOnStampFinished)),this.doFocus())};
_.t.doFocus=function(){var L=_.YyI(this.sectionsElement);L.length&&L[0].focus()};
_.t.computeMenuStyle=function(L){return L?L.toLowerCase().replace(/_/g,"-"):""};
_.t.computeIsCommentNotificationOnProfileCard=function(L){return _.c("enable_profile_cards_on_comments")&&L.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.t.computeHideMenu=function(L,Z){return L||!(!Z||!Z.showLoadingSpinner)};
_.t.onPopupClosed=function(){this.isPopUpOpen=!1;_.XJ(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.t.onPopupOpened=function(L,Z){this.isPopUpOpen=!0;Z.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.QT(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.XK({type:"CHANNEL_REPORT_RESET"})))};
_.t.onYtNavigate=function(L,Z){this.shouldCloseOnNavigateEvent(Z.endpoint)&&_.XJ(this.hostElement,"yt-close-all-popups-action")};
_.t.handleEndpoint=function(L){L=_.n(L,_.XN);!this.isCommentNotificationOnProfileCard&&L&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20435_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.t.handleActions=function(L){for(var Z=0,N=L.length;Z<N;Z++){var S=_.n(L[Z],og5);S&&this.handleGetMultiPageMenuAction(S);(S=_.n(L[Z],_.wLt))&&this.handleAppendContinuationItemsAction(S)}};
_.t.onServiceRequestSentOrCompleted=function(L,Z){L.detail&&L.detail.endpoint&&this.handleEndpoint(L.detail.endpoint);Z.actions&&this.handleActions(Z.actions)};
_.t.handleGetMultiPageMenuAction=function(L){var Z=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.QJ(this.submenuElement).appendChild(Z);(L=L.menu.multiPageMenuRenderer)&&this.logSubmenu(L);Z.data=L;Z.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.t.handleAppendContinuationItemsAction=function(L){if(this.data&&L.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&L.continuationItems&&this.data.sections){var Z=this.data.sections.length-1;this.data.sections[Z].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),Z--);if(this.data.sections[Z].multiPageMenuNotificationSectionRenderer&&L.continuationItems){L=_.O(L==null?void 0:L.continuationItems);for(var N=L.next();!N.done;N=L.next())if(N=N.value,_.n(N,Q9g)){var S=
void 0,u=void 0,T=void 0,W=void 0,V=void 0;((S=this)==null?0:(u=S.data)==null?0:(T=u.sections)==null?0:(W=T[Z])==null?0:(V=W.multiPageMenuNotificationSectionRenderer)==null?0:V.items)&&this.push("data.sections."+Z+".multiPageMenuNotificationSectionRenderer.items",N)}else if(_.n(N,_.lc5)||_.n(N,_.Ei))this.push("data.sections",N),Z++}}};
_.t.logSubmenu=function(L){if(!_.c("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var Z=this.ytRendererBehavior.getScreenLayer(),N=_.RH(Z),S=_.oH(Z);if((L=L.trackingParams)&&N&&S){var u=_.Mg(L);_.c("combine_ve_grafts")?_.tC().graftServerVe(L,S,Z):_.ez(N,S,u)}}};
_.t.emptySubmenuContainer=function(){for(var L=_.QJ(this.submenuElement);L.firstChild;)L.removeChild(L.firstChild)};
_.t.onMenuBackTap=function(L){_.QT(this.hostElement,"yt-submenu-closed");L.stopPropagation()};
_.t.onSubmenuClosed=function(L){_.jD(L)!==this.hostElement&&(this.covered=!1,_.QT(this.hostElement,"yt-refit"),L.stopPropagation())};
_.t.onRetrieveLocation=function(L,Z){Z.hasComments&&(Z.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),L.stopPropagation())};
_.t.shouldCloseOnNavigateEvent=function(L){if(!L)return!0;if(_.n(L,_.Hft)||_.n(L,_.BHh)||_.n(L,_.Ae0)||_.n(L,_.Lo))return!1;var Z;return((Z=_.n(L==null?void 0:L.commandMetadata,_.Nj))==null?0:Z.ignoreNavigation)?!1:!0};
_.t.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.t.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.t.refitAfterRender=function(){var L=this;_.bN(this,function(){_.QT(L.hostElement,"yt-refit")})};
XS.prototype.refitAfterRender=XS.prototype.refitAfterRender;XS.prototype.onRetrieveLocation=XS.prototype.onRetrieveLocation;XS.prototype.onSubmenuClosed=XS.prototype.onSubmenuClosed;XS.prototype.onMenuBackTap=XS.prototype.onMenuBackTap;XS.prototype.onServiceRequestSentOrCompleted=XS.prototype.onServiceRequestSentOrCompleted;XS.prototype.onYtNavigate=XS.prototype.onYtNavigate;XS.prototype.onPopupOpened=XS.prototype.onPopupOpened;XS.prototype.onPopupClosed=XS.prototype.onPopupClosed;
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],XS.prototype,"ytEventForwardingBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],XS.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],XS.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Object)],XS.prototype,"enableFocusFix",void 0);_.r([_.Y(),_.Q("design:type",Object)],XS.prototype,"covered",void 0);_.r([_.Y({computed:"computeHideMenu(covered, data)"}),_.Q("design:type",Object)],XS.prototype,"hideMenu",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.Q("design:type",String)],XS.prototype,"menuStyle",void 0);
_.r([_.Y({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.Q("design:type",Object)],XS.prototype,"isCommentNotificationOnProfileCard",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],XS.prototype,"isPopUpOpen",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],XS.prototype,"scrolledByTouch",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],XS.prototype,"disableBackdropFilter",void 0);
_.r([_.TX("#sections"),_.Q("design:type",HTMLElement)],XS.prototype,"sectionsElement",void 0);_.r([_.TX("#spinner"),_.Q("design:type",HTMLElement)],XS.prototype,"spinnerElement",void 0);_.r([_.TX("#header"),_.Q("design:type",HTMLElement)],XS.prototype,"headerElement",void 0);_.r([_.TX("#container"),_.Q("design:type",HTMLElement)],XS.prototype,"JSC$20435_containerElement",void 0);_.r([_.TX("#submenu"),_.Q("design:type",HTMLElement)],XS.prototype,"submenuElement",void 0);
_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],XS.prototype,"onPopupClosed",null);_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],XS.prototype,"onPopupOpened",null);_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],XS.prototype,"onYtNavigate",null);
_.r([_.SA("yt-service-request-completed"),_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],XS.prototype,"onServiceRequestSentOrCompleted",null);_.r([_.SA("yt-menu-back-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],XS.prototype,"onMenuBackTap",null);
_.r([_.SA("yt-submenu-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],XS.prototype,"onSubmenuClosed",null);_.r([_.SA("yt-retrieve-location"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],XS.prototype,"onRetrieveLocation",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],XS.prototype,"refitAfterRender",null);
_.r([_.P({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],XS);
_.m(XS,"ytd-multi-page-menu-renderer",function(){if(v4q!==void 0)return v4q;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return v4q=L},{mode:1});var NQ0;var A7=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return L};
_.f(A7,_.e);_.t=A7.prototype;_.t.created=function(){this.showTooltips=!0};
_.t.computeAccessibility_=function(L){return this.get("accessibility.accessibilityData",L)||null};
_.t.onTap=function(){var L=_.Ad(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(L&&L.length===1&&L[0])_.XJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var Z;if((Z=this.data)==null?0:Z.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var N;((N=this.data)==null?0:N.menuRequest)&&_.H2(this.hostElement,[this.data.menuRequest])}}};
_.t.handleTopbarMenuClosedAction=function(L){var Z,N;(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(L)===((Z=this.data)==null?void 0:(N=Z.icon)==null?void 0:N.iconType)&&this.toggleIconState(!1)};
_.t.toggleIconState=function(L){_.c("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=L)};
_.t.handleUpdateTopbarAvatarAction=function(L){var Z;L=(Z=_.n(L,ggP))==null?void 0:Z.avatarUrl;var N,S;Z=(N=this.data)==null?void 0:(S=N.avatar)==null?void 0:S.thumbnails;L&&Z&&(N={thumbnails:[Object.assign({},Z[0],{url:L})]},this.set("data.avatar",N))};
_.gd.Object.defineProperties(A7.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.QJ(this.hostElement).querySelector("#button")}}});
A7.prototype.onTap=A7.prototype.onTap;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],A7.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.W0),_.Q("design:type",Object)],A7.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.y(_.MpO.YtButtonBehavior),_.Q("design:type",Object)],A7.prototype,"ytButtonBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],A7.prototype,"data",void 0);
_.r([_.TX("yt-icon-button#button"),_.Q("design:type",Object)],A7.prototype,"iconButton",void 0);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],A7.prototype,"onTap",null);_.r([_.P({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],A7);
_.rD()(A7,"ytd-topbar-menu-button-renderer",function(){if(NQ0===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);NQ0=L}L=NQ0;return L},{allowedProps:["data"],
mode:1});var Smv;var Hr=function(){return _.e.apply(this,arguments)||this};
_.f(Hr,_.e);Hr.prototype.getSelected=function(){return this.reasons.selected};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Hr.prototype,"data",void 0);_.r([_.TX("#reasons"),_.Q("design:type",Object)],Hr.prototype,"reasons",void 0);_.r([_.P({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Hr);
_.m(Hr,"ytd-ad-feedback-content",function(){if(Smv!==void 0)return Smv;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Smv=L},{mode:1});var itq;var Br=function(){return _.e.apply(this,arguments)||this};
_.f(Br,_.e);_.t=Br.prototype;_.t.onPopupOpened=function(){_.XJ(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.t.computeConfirmButton=function(L){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:L.confirmLabel}};
_.t.computeCancelButton=function(L){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:L.cancelLabel}};
_.t.onConfirmTap=function(){var L=this.content.getSelected();L!==void 0&&(L=this.data.reasons[L].endpoint)&&(_.GR().resolve(_.$s).resolveCommand(L,{form:{element:this.hostElement}}),_.XJ(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.t.sendFeedbackSubmitToastAction=function(){var L;(L=this.data)!=null&&L.completionMessage&&(L=_.za(this.data.completionMessage),_.XJ(this.hostElement,"yt-open-popup-action",[L,this]))};
_.t.onCancelTap=function(){_.XJ(this.hostElement,"yt-close-popup-action")};
Br.prototype.onPopupOpened=Br.prototype.onPopupOpened;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Br.prototype,"data",void 0);_.r([_.TX("#content"),_.Q("design:type",Object)],Br.prototype,"content",void 0);_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Br.prototype,"onPopupOpened",null);
_.r([_.P({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Br);
_.m(Br,"ytd-ad-feedback-renderer",function(){if(itq!==void 0)return itq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return itq=L},{mode:1});var ujq;var TQv=function(){return _.e.apply(this,arguments)||this};
_.f(TQv,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],TQv.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],TQv.prototype,"data",void 0);_.r([_.P({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],TQv);
_.m(TQv,"ytd-ad-info-dialog-content",function(){if(ujq!==void 0)return ujq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ujq=L},{mode:1});var tHm;var xq=function(){return _.e.apply(this,arguments)||this};
_.f(xq,_.e);xq.prototype.computeConfirmButton=function(L){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:L.confirmLabel}};
xq.prototype.onConfirmTap=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
xq.prototype.computeShouldShowTitle=function(){var L;return!((L=this.data)==null||!L.title)};
xq.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.GR().resolve(_.$s).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
xq.prototype.onPopupClosed=xq.prototype.onPopupClosed;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],xq.prototype,"data",void 0);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],xq.prototype,"onPopupClosed",null);_.r([_.P({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],xq);
_.m(xq,"ytd-ad-info-dialog-renderer",function(){if(tHm!==void 0)return tHm;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return tHm=L},{mode:1});var Otc;var q5=function(){var L=_.e.apply(this,arguments)||this;L.actionButtonClass="action-button";L.dismissButtonId="dismiss-button";L.dialogDismiss=!0;return L};
_.f(q5,_.e);_.t=q5.prototype;_.t.computeInPlayer=function(L){return(L==null?void 0:L.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.t.computedLogo=function(){var L,Z;return this.isDarkTheme()?(L=this.data)==null?void 0:L.logoDark:(Z=this.data)==null?void 0:Z.logo};
_.t.computedHeaderImage=function(){var L,Z;return this.isDarkTheme()?(L=this.data)==null?void 0:L.headerImageDark:(Z=this.data)==null?void 0:Z.headerImage};
_.t.computeLogoIconId=function(){var L,Z,N,S=(L=this.computedLogo())==null?void 0:(Z=L.sources)==null?void 0:(N=Z[0])==null?void 0:N.height;return S&&S%31===0?"logo-icon-with-padding":"logo-icon"};
_.t.computeLogoIconHeight=function(){var L,Z,N,S=(L=this.computedLogo())==null?void 0:(Z=L.sources)==null?void 0:(N=Z[0])==null?void 0:N.height;return S&&S%31===0?"31":"24"};
_.t.onPopupClosed=function(){_.GR().resolve(_.eH).dispose()};
_.t.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.t.onShow=function(){this.inPlayer&&_.NJ(6);this.titleElement.focus()};
_.t.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var L=0;L<this.data.impressionEndpoints.length;L++){var Z=_.n(this.data.impressionEndpoints[L],_.nY);Z&&this.ytComponentBehavior.resolveCommand(Z)}};
_.t.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.XJ(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.gd.Object.defineProperties(q5.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!((L=this.data)==null||!L.headerImageDark)&&!((Z=this.data)==null||!Z.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.secondaryButton)}}});
q5.prototype.onPopupClosed=q5.prototype.onPopupClosed;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],q5.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.Ae.YtVisibilityBehavior),_.Q("design:type",Object)],q5.prototype,"ytVisibilityBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],q5.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Object)],q5.prototype,"actionButtonClass",void 0);_.r([_.Y(),_.Q("design:type",Object)],q5.prototype,"dismissButtonId",void 0);_.r([_.Y(),_.Q("design:type",Object)],q5.prototype,"dialogDismiss",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],q5.prototype,"hasHeaderImage",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],q5.prototype,"hasPremiumButton",null);
_.r([_.Y({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.Q("design:type",Boolean)],q5.prototype,"inPlayer",void 0);_.r([_.TX("#dismiss-button"),_.Q("design:type",HTMLElement)],q5.prototype,"dismissButton",void 0);_.r([_.TX("#title"),_.Q("design:type",HTMLElement)],q5.prototype,"titleElement",void 0);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],q5.prototype,"onPopupClosed",null);
_.r([_.P({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],q5);
_.m(q5,"ytd-enforcement-message-view-model",function(){if(Otc!==void 0)return Otc;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Otc=L},{mode:1});var WG0;var VHq;var Lj=function(){var L=_.e.apply(this,arguments)||this;L.TEST_ONLY={immediateValidation:function(){L.immediateValidation()},
onValidationResponse:function(Z){L.onValidationResponse(Z)},
onGenerateHandleFromNameResponse:function(Z){L.onGenerateHandleFromNameResponse(Z)}};
return L};
_.f(Lj,_.e);_.t=Lj.prototype;_.t.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.t.validate=function(){this.immediateValidation()};
_.t.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.t.setHandleInputValue=function(L){this.handleDir=this.getHandleDir(L);this.handleInput.value=L;this.validationState={status:"PENDING"};this.immediateValidation()};
_.t.getHandleDir=function(L){var Z=L===""&&!1;return(Z=_.X25.test.call(_.X25,L))?"rtl":"ltr"};
_.t.onDataChanged=function(){var L,Z;this.handleDir=this.getHandleDir((Z=(L=this.data)==null?void 0:L.handle)!=null?Z:"");var N;this.validationState=((N=this.data)==null?0:N.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var S;((S=this.data)==null?0:S.validateOnInit)&&this.immediateValidation()};
_.t.stopPropagation=function(L){L.stopPropagation()};
_.t.onInput=function(){var L;this.handleDir=this.getHandleDir((L=this.handleInput.value)!=null?L:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.t.onFocusout=function(L){this.handleInput.contains(L.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.t.delayedValidation=function(){var L,Z;this.debouncedValidation((Z=(L=this.data)==null?void 0:L.validationDelayMs)!=null?Z:1E3)};
_.t.immediateValidation=function(){this.debouncedValidation(0)};
_.t.debouncedValidation=function(L){var Z=this;_.YD(this,"debouncedValidation",function(){var N,S=Z.staticValidation((N=Z.handleInput.value)!=null?N:"");if(S!==void 0)Z.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:S};else{var u;if((u=Z.data)!=null&&u.validateChannelHandleCommand){Z.validationState={status:"LOADING"};var T;Z.ytComponentBehavior.resolveCommand(Z.data.validateChannelHandleCommand,{form:{handle:(T=Z.handleInput.value)!=null?T:""},commandController:{onSuccess:function(W,
V){Z.onValidationResponse(V)},
onServerError:function(W,V){Z.onValidationServerError(V)}}})}else Z.handleUnexpectedValidationError(new _.sr("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",Z.data))}},L)};
_.t.staticValidation=function(L){var Z;if(((Z=this.data)==null?void 0:Z.channelHandleStaticValidationParams)!==void 0){Z=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(L)&&Z.validValueRegexpErrorMessage!==void 0)return Z.validValueRegexpErrorMessage;if(Z.minLength!==void 0&&L.length<Z.minLength&&Z.minLengthErrorMessage!==void 0)return Z.minLengthErrorMessage;if(Z.maxLength!==void 0&&L.length>Z.maxLength&&Z.maxLengthErrorMessage!==void 0)return Z.maxLengthErrorMessage}};
_.t.onValidationResponse=function(L){var Z=_.n(L.result,G9v);Z===void 0?this.handleUnexpectedValidationError(new _.sr("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",L)):this.handleValidationResultRenderer(Z)};
_.t.onValidationServerError=function(L){this.handleUnexpectedValidationError(new _.sr("ValidateChannelHandle request failed.",L))};
_.t.handleValidationResultRenderer=function(L){if(L.handle===void 0)this.handleUnexpectedValidationError(new _.sr("ChannelHandleValidationResultRenderer does not contain handle.",L));else if(L.handle===this.handleInput.value)switch(L.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:L.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:L.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.sr("Unrecognized ChannelHandleValidationResult",L));break;default:_.Xh(L.result)}};
_.t.handleUnexpectedValidationError=function(L){var Z;this.validationState={status:"UNKNOWN",handle:(Z=this.handleInput.value)!=null?Z:""};_.Q7(L)};
_.t.stopEventPropagation=function(L){L.stopPropagation()};
_.t.updateHandleOnChannelNameInputChange=function(L){if(!this.wasEdited){var Z,N;this.debouncedGenerateHandleFromName(L,(N=(Z=this.data)==null?void 0:Z.validationDelayMs)!=null?N:1E3)}};
_.t.debouncedGenerateHandleFromName=function(L,Z){var N=this;_.YD(this,"debouncedGenerateHandleFromName",function(){var S;(S=N.data)!=null&&S.validateChannelHandleCommand?N.ytComponentBehavior.resolveCommand(N.data.validateChannelHandleCommand,{form:{name:L},commandController:{onSuccess:function(u,T){N.onGenerateHandleFromNameResponse(T)},
onServerError:function(u,T){_.Q7(new _.sr("Error calling GenerateHandleFromName",T))}}}):_.Q7(new _.sr("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",N.data))},Z)};
_.t.onGenerateHandleFromNameResponse=function(L){this.wasEdited||((L=_.n(L.result,Fbg))?this.setHandleInputValue(L.handle):_.Q7(new _.sr("Invalid results when generate handle from name")))};
_.gd.Object.defineProperties(Lj.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var L;if(L=this.validationState)L=this.validationState,L=L.status==="OK"||L.status==="UNKNOWN";if(L)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var L;if(((L=this.validationState)==null?void 0:L.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 L,Z=(L=this.channelHandleEntity)==null?void 0:L.handleEdit;this.handleDir=this.getHandleDir(Z!=null?Z:"");return Z}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var L,Z;if(((L=this.data)==null?void 0:(Z=L.channelHandleStaticValidationParams)==null?void 0:Z.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Lj.prototype.stopEventPropagation=Lj.prototype.stopEventPropagation;Lj.prototype.onDataChanged=Lj.prototype.onDataChanged;Lj.prototype.applyHandleEdit=Lj.prototype.applyHandleEdit;Lj.prototype.onValueChanged=Lj.prototype.onValueChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Lj.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Lj.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Lj.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],Lj.prototype,"wasEdited",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],Lj.prototype,"handleDir",void 0);_.r([_.TX("#handle-input"),_.Q("design:type",Object)],Lj.prototype,"handleInput",void 0);_.r([_.Y(),_.w("validationState"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Lj.prototype,"value",null);
_.r([_.iA("value"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Lj.prototype,"onValueChanged",null);_.r([_.w("validationState"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Lj.prototype,"errorIndicator",null);_.r([_.Y({reflectToAttribute:!0}),_.w("errorIndicator"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Lj.prototype,"borderErrorIndicator",null);
_.r([_.Y({selectorArgs:["data.channelHandleEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"channelHandle",Z)}}),
_.Q("design:type",Object)],Lj.prototype,"channelHandleEntity",void 0);_.r([_.w("channelHandleEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Lj.prototype,"handleEdit",null);_.r([_.iA("handleEdit"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Lj.prototype,"applyHandleEdit",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Lj.prototype,"onDataChanged",null);
_.r([_.w("data.channelHandleStaticValidationParams.validValueRegexp"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Lj.prototype,"validValueRegexp",null);_.r([_.SA("yt-service-request-sent"),_.SA("yt-service-request-completed"),_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Lj.prototype,"stopEventPropagation",null);_.r([_.P({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Lj);
_.m(Lj,"ytd-channel-handle-input-renderer",function(){if(VHq!==void 0)return VHq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return VHq=L},{mode:_.Qr("kevlar_poly_si_batch_j025")?1:2});var Zd=function(){var L=_.e.apply(this,arguments)||this;L.data=null;L.errorMessage=null;L.isLoading=!0;L.hideContainer=!1;L.enableNewChannelCreationOnIdForAll=_.c("enable_new_channel_creation_for_id4all");L.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"};L.testOnly={setErrorMessage:function(Z){L.resetErrorState();
L.setErrorState(Z)}};
return L};
_.f(Zd,_.e);_.t=Zd.prototype;_.t.created=function(){this.logScreenVe()};
_.t.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")};
_.t.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var L;((L=this.zeroStepErrorMessageEntity)==null?0:L.value)&&this.set("errorMessage",_.s9(this.zeroStepErrorMessageEntity.value))};
_.t.onCreateTap=function(){var L=this;if(this.data&&this.data.channelCreationEndpoint){var Z,N;if(!((Z=this.data.createChannelButton)==null?0:(N=Z.buttonRenderer)==null?0:N.isDisabled)){var S;if((S=this.nameInput)!=null&&S.value){this.setLoadingState();var u,T;Z=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(u=this.handleInput)==null?void 0:u.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((T=this.handleInput)==null?void 0:T.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:Z,commandController:{onSuccess:function(W,V){L.onChannelCreationEndpointSuccess(V);L.obakeImageSource&&_.mS("channelCreatedWithObakeImage",{imageSourceType:L.obakeImageSource})},
onServerError:function(){L.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.t.endpointRequiresServiceRequestAction=function(L){return!!_.n(L,_.oj)||!!_.n(L,ggP)};
_.t.isNavigateAction=function(L){var Z;return!!_.n(L,_.yf)||!!_.n((Z=_.n(L,lHm))==null?void 0:Z.command,_.yf)};
_.t.isPlaylistAction=function(L){return!!_.n(L,_.Ac)||!!_.n(L,_.Zj)};
_.t.onChannelCreationEndpointSuccess=function(L){if(L.createChannelError){var Z;this.setErrorState((Z=L.createChannelError)==null?void 0:Z.errorMessage);this.handleInput&&this.handleInput.validate()}else{L.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(L.navigationEndpoint);if(L.actions){Z=_.O(L.actions);for(var N=Z.next();!N.done;N=Z.next())if(N=N.value,this.endpointRequiresServiceRequestAction(N)&&this.ytComponentBehavior.resolveCommand(N),this.isNavigateAction(N)){var S=void 0;N=_.n((S=
_.n(N,lHm))==null?void 0:S.command,_.yf);S=void 0;this.isPlaylistAction((S=N)==null?void 0:S.endpoint)&&(_.XJ(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),S=void 0,this.ytComponentBehavior.resolveCommand((S=N)==null?void 0:S.endpoint))}}L.actions&&L.actions.some(function(u){var T;return _.n(u,_.yf)||_.n((T=_.n(u,lHm))==null?void 0:T.command,_.yf)})||_.XJ(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.t.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.t.onCancelTap=function(){var L,Z,N;if(!((L=this.data)==null?0:(Z=L.cancelButton)==null?0:(N=Z.buttonRenderer)==null?0:N.isDisabled)){var S,u,T;L=(S=this.data)==null?void 0:(u=S.cancelButton)==null?void 0:(T=u.buttonRenderer)==null?void 0:T.command;if(!L||!_.n(L,_.nyG)){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=_.n(this.data.channelHandleInput,$1Q));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.t.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.t.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.t.onClearProfilePhotoTap=function(){var L,Z,N;((L=this.data)==null?0:(Z=L.clearProfilePhotoButton)==null?0:(N=Z.buttonRenderer)==null?0:N.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.t.onEditAvatarTap=function(){var L,Z,N;((L=this.data)==null?0:(Z=L.editAvatarButton)==null?0:(N=Z.buttonRenderer)==null?0:N.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.t.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)};
_.t.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var L;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((L=this.data)==null?0:L.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.t.setErrorState=function(L){this.resetErrorState();if(L)this.set("errorMessage",L);else{var Z;if((Z=this.zeroStepErrorMessageEntity)==null?0:Z.value)this.set("errorMessage",_.s9(this.zeroStepErrorMessageEntity.value));else{var N;((N=this.data)==null?0:N.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.t.fetchImageBlobWithAlr=function(L,Z){Z=Z===void 0?5:Z;var N=this,S,u,T,W,V;return _.b(function(M){switch(M.nextAddress){case 1:return M.yield(fetch(L,{method:"GET",mode:"cors"}),2);case 2:S=M.yieldResult;if(S.ok){M.jumpTo(3);break}if(Z===0)throw Error();u=N.addJitter(Math.pow(2,5-Z));return M.yield(new Promise(function(G){setTimeout(G,u*1E3)}),4);
case 4:return M.return(N.fetchImageBlobWithAlr(L,Z-1));case 3:if(!S.headers.get("content-type").split(";").some(function(G){return G.trim()==="text/plain"})){M.jumpTo(5);
break}T=N;W=T.fetchImageBlobWithAlr;return M.yield(S.text(),6);case 6:return M.return(W.call(T,M.yieldResult,Z-1));case 5:return M.yield(S.blob(),7);case 7:return V=M.yieldResult,M.return(V)}})};
_.t.addJitter=function(L){var Z=L*.3*Math.random();Math.random()>.5&&(Z*=-1);return L+Z};
_.t.openProfilePicturePicker=function(){var L=this,Z,N,S,u,T,W;return _.b(function(V){if(V.nextAddress==1){Z=L.data.scottyUploadUrl;if(!Z)return V.return();N=document.documentElement.hasAttribute("dark");S=document.body.style.colorScheme;N&&(document.body.style.colorScheme="dark");u=OFQ(Wiw(thv(LiY(N?"dark":"light")),function(M){var G,D,l,v,R;return _.b(function(K){if(K.nextAddress==1)return G=_.JY(kWP(new Ro(M.photoUrl,!1)).build(),"alr","yes"),L.obakeImageSource=L.pictureChangeSourceToObakeImageSourceType(M.photoSource),
_.RS(K,2),L.setLoadingState(),K.yield(L.fetchImageBlobWithAlr(G),4);if(K.nextAddress!=2)return D=K.yieldResult,l=new FileReader,l.addEventListener("load",function(){var U,d,h,E,A,J;return _.b(function(C){if(C.nextAddress==1){if(D.size>15728640)return L.setErrorState((U=L.data)==null?void 0:U.imageSizeErrorMessage),_.Q7(Error("Fl")),C.return();if(!l.result)return L.setErrorState((d=L.data)==null?void 0:d.genericImageLoadErrorMessage),_.Q7(Error("Gl")),C.return();h=l.result;_.RS(C,2);return C.yield(hxv(D,
Z),4)}if(C.nextAddress!=2)return E=C.yieldResult,L.handleImageUpdatedAction(h,E),L.resetErrorState(),_.SX(C,0);A=_.yd(C);L.setErrorState((J=L.data)==null?void 0:J.uploadErrorMessage);if(A instanceof Error)_.CA(A);else{var X=new _.sr(JSON.stringify(A));_.CA(X)}_.w7(C)})}),l.readAsDataURL(D),_.SX(K,0);
v=_.yd(K);L.setErrorState((R=L.data)==null?void 0:R.genericImageLoadErrorMessage);v instanceof Error?_.CA(v):_.rY(new _.sr(JSON.stringify(v)));_.w7(K)})}),function(){L.hideContainer=!1;
document.body.style.colorScheme=S});
_.RS(V,2);return((T=L.data)==null?0:T.shouldViewChannelCreationFormForSupex)?V.yield(u.openPicker("profile-picture/art-selection"),5):V.yield(u.openPicker(),5)}if(V.nextAddress!=2)return _.SX(V,0);_.yd(V);L.setErrorState((W=L.data)==null?void 0:W.selectImageErrorMessage);_.w7(V)})};
_.t.pictureChangeSourceToObakeImageSourceType=function(L){switch(L){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.t.logScreenVe=function(){_.fF(_.tC(),124448)};
_.t.graftServerVe=function(){var L=_.oH(),Z,N,S=(Z=this.data)==null?void 0:(N=Z.loggingDirectives)==null?void 0:N.trackingParams;S&&L&&(this.channelCreationFormVe=_.tC().graftServerVe(S,L),L={visualElement:this.channelCreationFormVe},_.Ng().reportShown(L))};
_.t.isNameChanged=function(L){var Z;return((Z=this.data)==null?void 0:Z.name)!==L};
_.t.isHandleChanged=function(L){var Z,N=_.n((Z=this.data)==null?void 0:Z.channelHandleInput,$1Q);return N&&L?N.handle!==L:!1};
_.t.handleImageUpdatedAction=function(L,Z){this.hideContainer=!1;this.previewDataUrl=L;this.encryptedBlobId=Z};
_.t.handleImageSelectionErrorAction=function(L){this.hideContainer=!1;this.setErrorState(L)};
_.t.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.t.showContainer=function(){this.hideContainer=!1};
_.t.maybeWipeZeroStepErrorMessage=function(){var L,Z=(L=this.data)==null?void 0:L.zeroStepErrorMessageEntityKey,N;Z&&((N=this.zeroStepErrorMessageEntity)==null?0:N.value)&&this.ytdReduxBehavior.dispatch(_.Mr("stringEntity",Z,{key:Z,value:""}))};
_.gd.Object.defineProperties(Zd.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 L;return((L=this.photoThumbnail)==null?0:L.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 L;return!((L=this.data)==null||!L.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.descriptionInfo}}});
Zd.prototype.dataChanged=Zd.prototype.dataChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Zd.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Zd.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Zd.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Zd.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Zd.prototype,"errorMessage",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Zd.prototype,"isLoading",void 0);_.r([_.Y(),_.Q("design:type",String)],Zd.prototype,"previewDataUrl",void 0);_.r([_.Y(),_.Q("design:type",Number)],Zd.prototype,"obakeImageSource",void 0);_.r([_.Y(),_.Q("design:type",Object)],Zd.prototype,"hideContainer",void 0);_.r([_.TX("#title-input"),_.Q("design:type",Object)],Zd.prototype,"nameInput",void 0);_.r([_.TX("#handle-input"),_.Q("design:type",Object)],Zd.prototype,"handleInput",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],Zd.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.r([_.Y({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.T_F}),_.Q("design:type",Object)],Zd.prototype,"zeroStepErrorMessageEntity",void 0);_.r([_.w("data","data.isDefaultProfilePhoto","previewDataUrl"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Zd.prototype,"photoThumbnail",null);
_.r([_.w("data","data.isDefaultProfilePhoto","photoThumbnail"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Zd.prototype,"userSetPhotoThumbnailUrl",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Zd.prototype,"hideProfilePhotoButtonLayer",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Zd.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.r([_.Vr("data","zeroStepErrorMessageEntity"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Zd.prototype,"dataChanged",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.descriptionInfo","zeroStepErrorMessageEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Zd.prototype,"description",null);_.r([_.P({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Zd);
_.m(Zd,"ytd-channel-creation-dialog-renderer",function(){if(WG0!==void 0)return WG0;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return WG0=L},{mode:1});var btk;var Np=function(){var L=_.e.apply(this,arguments)||this;L.isLoading=!1;L.isDisabled=!1;return L};
_.f(Np,_.e);Np.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Np.prototype.updateDisabled=function(){var L;this.isDisabled=this.isLoading||((L=this.handleInput)==null?void 0:L.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Np.prototype.onSaveClick=function(){var L=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var Z;((Z=this.data)==null?void 0:Z.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 N;if((N=L.data)==null?0:N.nextEndpoint){var S;L.ytComponentBehavior.resolveCommand((S=L.data)==null?void 0:S.nextEndpoint)}else L.isLoading=
!1,L.closeDialog()},
onServerError:function(){L.isLoading=!1;L.handleInput.validate();var N;L.errorMessage=(N=L.data)==null?void 0:N.errorMessage}}}))}};
Np.prototype.closeDialog=function(){_.XJ(this.hostElement,"yt-close-popup-action",[this.is])};
Np.prototype.updateDisabled=Np.prototype.updateDisabled;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Np.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Np.prototype,"data",void 0);_.r([_.TX("#handle-input"),_.Q("design:type",Object)],Np.prototype,"handleInput",void 0);_.r([_.iA("isLoading"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Np.prototype,"updateDisabled",null);
_.r([_.P({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Np);
_.m(Np,"ytd-channel-handle-edit-dialog-renderer",function(){if(btk!==void 0)return btk;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return btk=L},{mode:1});var MHw;var Sx=function(){return _.e.apply(this,arguments)||this};
_.f(Sx,_.e);Sx.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Sx.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Sx.prototype,"data",void 0);_.r([_.P({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Sx);
_.m(Sx,"ytd-channel-switcher-footer-renderer",function(){if(MHw!==void 0)return MHw;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return MHw=L},{mode:1});var gYw;var GZq;var i8=function(){return _.e.apply(this,arguments)||this};
_.f(i8,_.e);i8.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
i8.prototype.onIronChange=i8.prototype.onIronChange;_.r([_.Y(),_.Q("design:type",Object)],i8.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!1}),_.Q("design:type",Function)],i8.prototype,"onDontAskAgainChanged",void 0);_.r([_.TX("#checkbox"),_.Q("design:type",Object)],i8.prototype,"checkbox",void 0);_.r([_.SA("iron-change"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],i8.prototype,"onIronChange",null);
_.r([_.P({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],i8);
_.m(i8,"ytd-identity-prompt-footer-renderer",function(){if(GZq!==void 0)return GZq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return GZq=L},{mode:1});var u8=function(){var L=_.e.apply(this,arguments)||this;L.dontAskAgain=!1;L.showPopup=!1;L.boundDontAskAgainChanged=function(Z){L.dontAskAgainChanged(Z)};
L.boundOnAccountItemTap=function(Z){L.onAccountItemTap(Z)};
return L};
_.f(u8,_.e);_.t=u8.prototype;
_.t.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]]"}}}}}};
_.t.ready=function(){var L=this;_.QJ(this.hostElement).querySelector("#container").addEventListener("scroll",function(){L.ytRendererBehavior.markDirty()})};
_.t.dontAskAgainChanged=function(L){this.dontAskAgain=L};
_.t.onAccountItemTap=function(L){if(L){var Z={};this.dontAskAgain&&(Z={dont_ask_again:this.dontAskAgain});_.ke(L,Z)}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.t.redirectOnlyAccount=function(L){L.sections&&L.sections.length>0&&(L=_.n(L.sections[0],_.FCI),(L==null?0:L.contents)&&(L==null?void 0:L.contents.length)<=1?(L=_.uQ(window.location.href),(L==null?0:L.next)&&_.QHw(L.next)?_.ke(L.next):_.ke("/")):this.showPopup=!0)};
u8.prototype.dataChanged=u8.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],u8.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],u8.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!1}),_.Q("design:type",Object)],u8.prototype,"dontAskAgain",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],u8.prototype,"showPopup",void 0);_.r([_.Y({reflectToAttribute:!1}),_.Q("design:type",Object)],u8.prototype,"boundDontAskAgainChanged",void 0);_.r([_.Y({reflectToAttribute:!1}),_.Q("design:type",Object)],u8.prototype,"boundOnAccountItemTap",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],u8.prototype,"dataChanged",null);
_.r([_.P({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],u8);
_.m(u8,"ytd-channel-switcher-renderer",function(){if(gYw!==void 0)return gYw;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return gYw=L},{mode:1});var FGq;var Tf=function(){return _.e.apply(this,arguments)||this};
_.f(Tf,_.e);_.gd.Object.defineProperties(Tf.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.r([_.Y(),_.Q("design:type",Object)],Tf.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],Tf.prototype,"steps",null);_.r([_.P({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Tf);
_.m(Tf,"ytd-channel-transfer-stepper-renderer",function(){if(FGq!==void 0)return FGq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return FGq=L},{mode:1});var $xm;var tF=function(){var L=_.e.apply(this,arguments)||this;L.data=null;L.isError=!1;L.isLoading=!1;return L};
_.f(tF,_.e);_.t=tF.prototype;_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.t.computeProfileName=function(L){return L?L.givenNameValue+" "+L.familyNameValue:""};
_.t.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)};
_.t.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)};
tF.prototype.onYtServiceRequestError=tF.prototype.onYtServiceRequestError;tF.prototype.onYtServiceRequestSent=tF.prototype.onYtServiceRequestSent;tF.prototype.dataChanged=tF.prototype.dataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],tF.prototype,"data",void 0);
_.r([_.Y({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.Q("design:type",String)],tF.prototype,"profileName",void 0);_.r([_.Y(),_.Q("design:type",Object)],tF.prototype,"isError",void 0);_.r([_.Y(),_.Q("design:type",Object)],tF.prototype,"isLoading",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tF.prototype,"dataChanged",null);
_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],tF.prototype,"onYtServiceRequestSent",null);_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],tF.prototype,"onYtServiceRequestError",null);_.r([_.P({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],tF);
_.m(tF,"ytd-channel-warm-welcome-cont-renderer",function(){if($xm!==void 0)return $xm;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return $xm=L},{mode:1});var Dxk;var OJ=function(){var L=_.e.apply(this,arguments)||this;L.data=null;return L};
_.f(OJ,_.e);OJ.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
OJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],OJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],OJ.prototype,"data",void 0);_.r([_.P({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],OJ);
_.m(OJ,"ytd-channel-warm-welcome-renderer",function(){if(Dxk!==void 0)return Dxk;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Dxk=L},{mode:1});var lJ5;var WO=function(){return _.e.apply(this,arguments)||this};
_.f(WO,_.e);_.gd.Object.defineProperties(WO.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.authorThumbnail)||{}}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],WO.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],WO.prototype,"thumbnailDetails",null);_.r([_.P({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],WO);
_.m(WO,"ytd-comment-preview-renderer",function(){if(lJ5!==void 0)return lJ5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return lJ5=L},{mode:1});var vYs;var V2=function(){return _.e.apply(this,arguments)||this};
_.f(V2,_.e);V2.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.gd.Object.defineProperties(V2.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.submitButton}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],V2.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],V2.prototype,"submitButton",null);_.r([_.P({is:"ytd-notice-renderer",disableElementRegistration:!0})],V2);
_.m(V2,"ytd-notice-renderer",function(){if(vYs!==void 0)return vYs;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return vYs=L},{mode:1});var oYv;var b8=function(){return _.e.apply(this,arguments)||this};
_.f(b8,_.e);b8.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],b8.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],b8.prototype,"data",void 0);_.r([_.P({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],b8);
_.m(b8,"ytd-preview-comment-dialog-content",function(){if(oYv!==void 0)return oYv;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return oYv=L},{mode:1});var RNg;var Mp=function(){return _.e.apply(this,arguments)||this};
_.f(Mp,_.e);Mp.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Mp.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Mp.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Mp.prototype,"data",void 0);_.r([_.P({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Mp);
_.m(Mp,"ytd-preview-comment-dialog-renderer",function(){if(RNg!==void 0)return RNg;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return RNg=L},{mode:1});var c$8;var nYQ=_.c("web_button_rework")&&_.Ah("BUTTON_REWORK")||_.c("web_button_rework_with_live"),gl=function(){var L=_.e.apply(this,arguments)||this;L.closeLabel=_.iB("CLOSE");L.selectedAmountIndex=1;L.privacyCheckboxValue=!1;L.useAmsterdamStyle=nYQ;L.amountPlaceholderIndex=-1;return L};
_.f(gl,_.e);_.t=gl.prototype;_.t.onAmountClick=function(L){this.selectedAmountIndex=_.QJ(this.hostElement).querySelector("#amounts").indexForElement(L.currentTarget)};
_.t.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.XJ(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.t.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.XJ(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.XJ(this.hostElement,"yt-close-popup-action",[this.is]);var L;(L=_.CV())==null||L.getPlayerPromise().then(function(Z){Z.pauseVideo()})}};
_.t.donationCallback=function(L){L.success?(this.hostElement.hasAttribute("live-chat")&&L.response&&L.response.data&&L.response.data.actions&&_.XJ(this.hostElement,"yt-live-chat-open-popup",[L.response.data.actions[0]]),_.XJ(this.hostElement,"yt-close-popup-action",[this.is]),_.XJ(this.hostElement,"yt-live-chat-close-buy-flow")):L.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(L.errorMessageRenderer)};
_.t.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.QJ(this.hostElement).querySelector("#custom-amount-input").focus()};
_.t.updateConfirmationDialogTextWithAmount=function(L){var Z=this.getConfirmDialogRuns();Z&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(Z),"text"],this.getFormattedAmount(L))};
_.t.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.t.getAmountPlaceholderIndex=function(L){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=L.findIndex(function(Z){return Z.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.t.getFormattedAmount=function(L){var Z;return(new _.eM(4,((Z=this.data)==null?void 0:Z.currencyCode)||"")).format(L)};
_.t.isAmountValid=function(L){if(L==="")return!1;L=Number(L)*1E6;var Z=this.get("minAmountMicros",this.data),N=this.get("maxAmountMicros",this.data);return Z&&L<Z||N&&L>N?!1:!0};
_.t.setInputError=function(){this.shouldShowValidationError?_.QJ(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.QJ(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.t.setInitialCheckboxValue=function(){var L;this.privacyCheckboxValue=!((L=this.data)==null||!L.privacyCheckboxInitialState)};
_.t.updateCustomAmountInputFromBinding=function(L){this.customAmountInput=L.detail.value};
_.t.updatePrivacyCheckboxValueFromBinding=function(L){this.privacyCheckboxValue=L.detail.value};
_.gd.Object.defineProperties(gl.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var L=this,Z,N;return((Z=this.data)==null?void 0:(N=Z.suggestedAmounts)==null?void 0:N.map(function(S,u){return{buttonRenderer:{style:L.selectedAmountIndex===u?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:S.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 L;return!((L=this.data)==null||!L.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 L=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(L&&this.amountMicros!==null)return Object.assign({},L,{ypcGetCartEndpoint:Object.assign({},L.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 L=this.get("confirmLargeAmount",this.data);if(L&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),L}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var L=this.get("donateButton.buttonRenderer",this.data);if(L)return Object.assign({},L,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
gl.prototype.setInitialCheckboxValue=gl.prototype.setInitialCheckboxValue;gl.prototype.setInputError=gl.prototype.setInputError;gl.prototype.setFocusOnCustomAmountInput=gl.prototype.setFocusOnCustomAmountInput;_.r([_.y(f$y),_.Q("design:type",Object)],gl.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],gl.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],gl.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],gl.prototype,"closeLabel",void 0);_.r([_.Y(),_.Q("design:type",Object)],gl.prototype,"selectedAmountIndex",void 0);_.r([_.Y(),_.Q("design:type",String)],gl.prototype,"customAmountInput",void 0);_.r([_.Y(),_.Q("design:type",Object)],gl.prototype,"privacyCheckboxValue",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],gl.prototype,"useAmsterdamStyle",void 0);_.r([_.iA("customAmount"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gl.prototype,"setFocusOnCustomAmountInput",null);_.r([_.w("data","selectedAmountIndex"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],gl.prototype,"suggestedAmountButtons",null);
_.r([_.w("data","selectedAmountIndex"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],gl.prototype,"isCustomAmountSelected",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],gl.prototype,"showPrivacyCheckbox",null);_.r([_.w("data","selectedAmountIndex","customAmount"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],gl.prototype,"amountMicros",null);
_.r([_.w("isCustomAmountSelected","customAmountInput"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],gl.prototype,"customAmount",null);_.r([_.w("customAmount"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],gl.prototype,"shouldShowValidationError",null);_.r([_.w("customAmount"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],gl.prototype,"isDonateButtonEnabled",null);
_.r([_.w("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],gl.prototype,"donateCommand",null);_.r([_.w("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],gl.prototype,"donateCommandWithConfirmation",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],gl.prototype,"largeDonationThreshold",null);
_.r([_.w("customAmount","donateCommand","amountMicros"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],gl.prototype,"confirmLargeAmountCommand",null);_.r([_.w("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],gl.prototype,"donateButtonRenderer",null);_.r([_.iA("shouldShowValidationError"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gl.prototype,"setInputError",null);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gl.prototype,"setInitialCheckboxValue",null);_.r([_.P({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],gl);
_.m(gl,"ytd-donation-amount-picker-renderer",function(){if(c$8!==void 0)return c$8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return c$8=L},{mode:1});var KG8;var fJY=function(){return _.e.apply(this,arguments)||this};
_.f(fJY,_.e);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],fJY.prototype,"ytComponentBehavior",void 0);_.r([_.Y({}),_.Q("design:type",Object)],fJY.prototype,"data",void 0);_.r([_.P({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],fJY);
_.m(fJY,"ytd-donation-post-transaction-content",function(){if(KG8!==void 0)return KG8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return KG8=L},{mode:1});var kZs;var Gf=function(){return _.e.apply(this,arguments)||this};
_.f(Gf,_.e);Gf.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Gf.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.r([_.Y({}),_.Q("design:type",Object)],Gf.prototype,"data",void 0);_.r([_.P({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Gf);
_.m(Gf,"ytd-donation-post-transaction-renderer",function(){if(kZs!==void 0)return kZs;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return kZs=L},{mode:1});var y$s;var wZQ;var Fk=function(){return _.e.apply(this,arguments)||this};
_.f(Fk,_.e);Fk.prototype.computeIsStreamingProvider=function(L){return!!L.isStreamingShelf};
Fk.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Fk.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Fk.prototype,"data",void 0);_.r([_.Y({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Fk.prototype,"isStreamingProvider",void 0);
_.r([_.P({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],Fk);
_.m(Fk,"ytd-media-provider-renderer",function(){if(wZQ!==void 0)return wZQ;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return wZQ=L},{mode:1});var Uxs;var $z=function(){return _.e.apply(this,arguments)||this};
_.f($z,_.e);$z.prototype.observeLightsourcePalette=function(){var L,Z=(L=this.data)==null?void 0:L.vibrantsourceColorPaletteData;Z&&_.$0(this.hostElement,Z)};
$z.prototype.observeLightsourcePalette=$z.prototype.observeLightsourcePalette;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],$z.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],$z.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],$z.prototype,"data",void 0);
_.r([_.iA("data.vibrantsourceColorPaletteData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$z.prototype,"observeLightsourcePalette",null);_.r([_.P({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],$z);
_.m($z,"ytd-streaming-pop-up-dialog",function(){if(Uxs!==void 0)return Uxs;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Uxs=L},{mode:1});var Dd=function(){return _.e.apply(this,arguments)||this};
_.f(Dd,_.e);Dd.prototype.onPopupOpened_=function(){var L;((L=this.data)==null?0:L.serviceEndpoint)&&_.GR().resolve(_.$s).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Dd.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Dd.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"}}}}};
Dd.prototype.onPopupOpened_=Dd.prototype.onPopupOpened_;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Dd.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Sq),_.Q("design:type",Object)],Dd.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Dd.prototype,"data",void 0);
_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Dd.prototype,"onPopupOpened_",null);_.r([_.P({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Dd);
_.m(Dd,"ytd-brandconnect-popup-renderer",function(){if(y$s!==void 0)return y$s;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return y$s=L},{mode:1});var YmQ;var l8=function(){return _.e.apply(this,arguments)||this};
_.f(l8,_.e);_.t=l8.prototype;_.t.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(){for(var L=0;L<this.getOptionRenderers().length;L++)this.notifyPath("data.options."+L+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+L+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.t.updateSubmitButton=function(L){this.set("data.submitButton.buttonRenderer.isDisabled",!L)};
_.t.computeAlt=function(L){return _.jM(L)};
_.t.onDismissTap=function(){_.XJ(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.GR().resolve(_.$s).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.t.getOptionRenderers=function(L){return(L=L||this.data)&&L.options?L.options.reduce(function(Z,N){N.checkboxSurveyOptionRenderer&&Z.push(N.checkboxSurveyOptionRenderer);return Z},[]):[]};
_.t.onOptionChange=function(L){var Z=this,N=!1;if(L.detail.checked)for(var S=this.getOptionRenderers().find(function(V){return V.value===L.detail.value}),u=this.getOptionRenderers(),T=0;T<u.length;T++){var W=u[T];
this.notifyPath("data.options."+T+".checkboxSurveyOptionRenderer.checked");W.checked&&((S==null?0:S.isExclusiveOption)?!W.isExclusiveOption:W.isExclusiveOption)?this.set("data.options."+T+".checkboxSurveyOptionRenderer.checked",!1):W.checked&&(N=!0)}else N=this.getOptionRenderers().some(function(V,M){Z.notifyPath("data.options."+M+".checkboxSurveyOptionRenderer.checked");return V.checked});
this.updateSubmitButton(N)};
_.t.onSubmitTap=function(){var L=this.getOptionRenderers().filter(function(T){return T.checked});
if(L.length!==0){var Z=L.map(function(T){return T.responseEndpoint});
L=[];for(var N=1;N<Z.length;N++){var S=void 0,u=(S=_.n(Z[N],_.Rj))==null?void 0:S.feedbackToken;u&&L.push(u)}Z=[Z[0]];L.length&&Z.push({extra_feedback_tokens:L});_.H2(this.hostElement,Z);_.XJ(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);L=this.data&&this.data.submitActions||[];if(_.c("kevlar_command_handler_migration_killswitch"))_.B2(this.hostElement,L,this.hostElement);else for(L=_.O(L),Z=L.next();!Z.done;Z=L.next())this.ytComponentBehavior.resolveCommand(Z.value)}};
l8.prototype.onOptionChange=l8.prototype.onOptionChange;l8.prototype.dataChanged=l8.prototype.dataChanged;_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],l8.prototype,"ytEventForwardingBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],l8.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],l8.prototype,"ytComponentBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.r([_.y(JPv),_.Q("design:type",Object)],l8.prototype,"ytdHatsSurveyBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],l8.prototype,"data",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],l8.prototype,"dataChanged",null);
_.r([_.SA("ytd-checkbox-survey-option-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],l8.prototype,"onOptionChange",null);_.r([_.P({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],l8);
_.m(l8,"ytd-checkbox-survey-renderer",function(){if(YmQ!==void 0)return YmQ;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return YmQ=L},{mode:1});var eN8;var IJY;var vO=function(){return _.e.apply(this,arguments)||this};
_.f(vO,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.r([_.y(mwy),_.Q("design:type",Object)],vO.prototype,"ytdDismissalReasonBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],vO.prototype,"data",void 0);_.r([_.P({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],vO);
_.m(vO,"ytd-dismissal-reason-text-renderer",function(){if(IJY!==void 0)return IJY;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return IJY=L},{mode:1});var dxc;var oE=function(){return _.e.apply(this,arguments)||this};
_.f(oE,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.r([_.y(mwy),_.Q("design:type",Object)],oE.prototype,"ytdDismissalReasonBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],oE.prototype,"data",void 0);_.r([_.P({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],oE);
_.m(oE,"ytd-dismissal-reason-video-renderer",function(){if(dxc!==void 0)return dxc;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return dxc=L},{mode:1});var RE=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(RE,_.e);_.t=RE.prototype;_.t.created=function(){this.selectedFeedbackTokens=new yo};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.t.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.t.onDismissalReasonSelected=function(L,Z){_.QT(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(Z);this.hasReasonsSelected=!0};
_.t.onDismissalReasonDeselected=function(L,Z){_.QT(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(Z);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.t.onCancelTap=function(){_.XJ(this.hostElement,"yt-close-popup-action")};
_.t.onSubmitTap=function(){var L=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(L={feedback_tokens:L},_.GR().resolve(_.$s).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},L,{element:this.hostElement})}));_.XJ(this.hostElement,"yt-close-popup-action")};
RE.prototype.onDismissalReasonDeselected=RE.prototype.onDismissalReasonDeselected;RE.prototype.onDismissalReasonSelected=RE.prototype.onDismissalReasonSelected;RE.prototype.dataChanged=RE.prototype.dataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],RE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],RE.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],RE.prototype,"hasReasonsSelected",void 0);_.r([_.Y(),_.Q("design:type",yo)],RE.prototype,"selectedFeedbackTokens",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],RE.prototype,"darkerDarkTheme",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RE.prototype,"dataChanged",null);
_.r([_.SA("yt-dismissal-reason-selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,String]),_.Q("design:returntype")],RE.prototype,"onDismissalReasonSelected",null);_.r([_.SA("yt-dismissal-reason-deselected"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,String]),_.Q("design:returntype")],RE.prototype,"onDismissalReasonDeselected",null);_.r([_.P({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],RE);
_.m(RE,"ytd-dismissal-follow-up-renderer",function(){if(eN8!==void 0)return eN8;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return eN8=L},{mode:1});var aJv;var cO=function(){return _.e.apply(this,arguments)||this};
_.f(cO,_.e);_.t=cO.prototype;_.t.onCheckedChange=function(){this.multiselect||_.QT(this.hostElement,"yt-feedback-single-select-changed");_.QJ(this.hostElement).querySelector("#freeform").focus();_.QT(this.hostElement,"yt-refit")};
_.t.showTextBox=function(L,Z){return L&&Z};
_.t.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))};
_.t.updateDataCheckedFromBinding=function(L){this.set("data.checked",L.detail.value)};
_.t.updateDataResultTextFromBinding=function(L){this.set("data.resultText",L.detail.value)};
cO.prototype.dataChanged=cO.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],cO.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],cO.prototype,"multiselect",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cO.prototype,"dataChanged",null);
_.r([_.P({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],cO);
_.m(cO,"ytd-feedback-option-renderer",function(){if(aJv!==void 0)return aJv;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return aJv=L},{mode:1});var hN8;var nj=function(){return _.e.apply(this,arguments)||this};
_.f(nj,_.e);nj.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
nj.prototype.onSingleSelectCheckedChanged=function(L){L=_.jD(L);for(var Z=0;Z<this.data.options.length;Z++)if(L.data!==_.n(this.data.options[Z],Nag)){var N="data.options."+Z+".feedbackOptionRenderer.checked";this.notifyPath(N);this.set(N,!1)}};
nj.prototype.onSingleSelectCheckedChanged=nj.prototype.onSingleSelectCheckedChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],nj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],nj.prototype,"data",void 0);
_.r([_.SA("yt-feedback-single-select-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],nj.prototype,"onSingleSelectCheckedChanged",null);_.r([_.P({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],nj);
_.m(nj,"ytd-feedback-question-renderer",function(){if(hN8!==void 0)return hN8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return hN8=L},{mode:1});var szk;var Kj=function(){return _.e.apply(this,arguments)||this};
_.f(Kj,_.e);Kj.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Kj.prototype.getSelectedFeedbackResults=function(){for(var L={},Z=0;Z<this.data.questions.length;Z++)for(var N=_.n(this.data.questions[Z],ZJc),S=0;S<N.options.length;S++){var u=_.n(N.options[S],Nag);u&&u.checked&&(L[u.optionKey]=u.resultText)}return L};
Kj.prototype.onKeyUp=function(){var L=this;_.H9(_.ro,function(){_.QT(L.hostElement,"yt-refit")});
_.ro.start()};
Kj.prototype.submitSurvey=function(){var L=this.getSelectedFeedbackResults();Object.keys(L).length>0&&this.data.submitFeedbackEndpoint&&(L={survey_results:L,is_feedback_token_unencrypted:!0},_.GR().resolve(_.$s).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},L,{element:this.hostElement})}))};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Kj.prototype,"data",void 0);_.r([_.P({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Kj);
_.m(Kj,"ytd-feedback-survey-renderer",function(){if(szk!==void 0)return szk;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return szk=L},{mode:1});var jzw;var EYP;var fj=function(){return _.e.apply(this,arguments)||this};
_.f(fj,_.e);fj.prototype.computeAlt=function(L){return _.jM(L)};
fj.prototype.submitResponse=function(){var L,Z;(L=this.data)!=null&&L.feedbackToken&&((Z=this.data)==null?void 0:Z.nextStageIndex)!==void 0&&(_.Ad(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Ad(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
fj.prototype.onClick=function(){this.submitResponse()};
fj.prototype.onClick=fj.prototype.onClick;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],fj.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],fj.prototype,"vertical",void 0);_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fj.prototype,"onClick",null);
_.r([_.P({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],fj);
_.m(fj,"ytd-single-select-answer-option-renderer",function(){if(EYP!==void 0)return EYP;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return EYP=L},{mode:1});var PZm;var kz=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");L.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return L};
_.f(kz,_.e);kz.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
kz.prototype.dataChanged=function(){var L,Z;this.vertical=((Z=(L=this.data)==null?void 0:L.answerOrientation)!=null?Z:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
kz.prototype.submitFeedback=function(L){var Z;((Z=this.data)==null?0:Z.responseEndpoint)&&L&&_.H2(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[L]}])};
kz.prototype.dataChanged=kz.prototype.dataChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],kz.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],kz.prototype,"eventForwardingBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],kz.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],kz.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],kz.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],kz.prototype,"vertical",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],kz.prototype,"darkerDarkTheme",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],kz.prototype,"dataChanged",null);_.r([_.P({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],kz);
_.m(kz,"ytd-single-select-question-renderer",function(){if(PZm!==void 0)return PZm;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return PZm=L},{mode:1});var y2=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return L};
_.f(y2,_.e);_.t=y2.prototype;_.t.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"}}}};
_.t.dataChanged=function(){this.jumpToStage(0)};
_.t.jumpToStage=function(L){var Z,N;if((Z=this.data)==null?0:(N=Z.stages)==null?0:N[L])this.currentStage=this.data.stages[L],this.refitAfterRender()};
_.t.computeAlt=function(L){return _.jM(L)};
_.t.computeSimpleMessage=function(L){var Z;return(Z=_.n(L,u3q))==null?void 0:Z.messageText};
_.t.computeHideDismiss=function(L){var Z;return(Z=_.n(L,eB8))==null?void 0:Z.hideParentDismissButton};
_.t.onDismissTap=function(){_.XJ(this.hostElement,"yt-close-popup-action");_.n(this.currentStage,u3q)||this.data.dismissalEndpoint&&_.GR().resolve(_.$s).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.t.refitAfterRender=function(){var L=this;_.bN(this,function(){_.QT(L.hostElement,"yt-refit")})};
y2.prototype.dataChanged=y2.prototype.dataChanged;_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],y2.prototype,"eventForwardingBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],y2.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.y(JPv),_.Q("design:type",Object)],y2.prototype,"ytdHatsSurveyBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],y2.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],y2.prototype,"currentStage",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],y2.prototype,"dataChanged",null);_.r([_.P({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],y2);
_.m(y2,"ytd-multi-stage-survey-renderer",function(){if(jzw!==void 0)return jzw;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return jzw=L},{mode:1});var pZv;var ex=function(){return _.e.apply(this,arguments)||this};
_.f(ex,_.e);ex.prototype.computeAlt=function(L){return _.jM(L)};
ex.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.GR().resolve(_.$s).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.XJ(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.mJg(!1)))};
ex.prototype.onTap=function(){this.vertical&&this.submitResponse()};
ex.prototype.onTap=ex.prototype.onTap;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],ex.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ex.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],ex.prototype,"vertical",void 0);
_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ex.prototype,"onTap",null);_.r([_.P({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],ex);
_.m(ex,"ytd-single-option-survey-option-renderer",function(){if(pZv!==void 0)return pZv;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return pZv=L},{mode:1});var zNg;var IE=function(){return _.e.apply(this,arguments)||this};
_.f(IE,_.e);_.t=IE.prototype;_.t.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(){var L,Z;this.vertical=(((L=this.data)==null?void 0:(Z=L.surveyOrientation)==null?void 0:Z.type)||"HORIZONTAL")==="VERTICAL"};
_.t.computeAlt=function(L){return _.jM(L)};
_.t.onDismissTap=function(){_.XJ(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.GR().resolve(_.$s).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.mJg(!1))};
IE.prototype.dataChanged=IE.prototype.dataChanged;_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],IE.prototype,"eventForwardingBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],IE.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],IE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(JPv),_.Q("design:type",Object)],IE.prototype,"ytdHatsSurveyBehavior",void 0);
_.r([_.y(_.CD),_.Q("design:type",Object)],IE.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],IE.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],IE.prototype,"vertical",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],IE.prototype,"dataChanged",null);_.r([_.P({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],IE);
_.m(IE,"ytd-single-option-survey-renderer",function(){if(zNg!==void 0)return zNg;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return zNg=L},{mode:1});var mxs;var dl=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(dl,_.e);dl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
dl.prototype.onDismissTap=function(){_.XJ(this.hostElement,"yt-close-popup-action")};
dl.prototype.onNavigate=function(){_.XJ(this.hostElement,"yt-close-popup-action")};
dl.prototype.onNavigate=dl.prototype.onNavigate;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],dl.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],dl.prototype,"ytEventForwardingBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],dl.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],dl.prototype,"darkerDarkTheme",void 0);
_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dl.prototype,"onNavigate",null);_.r([_.P({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],dl);
_.m(dl,"ytd-survey-follow-up-renderer",function(){if(mxs!==void 0)return mxs;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return mxs=L},{mode:1});var J$Y;var CZm;var r$q;var aE=function(){var L=_.e.apply(this,arguments)||this;L.polymer2="Element"in Polymer;return L};
_.f(aE,_.e);_.t=aE.prototype;_.t.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.t.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.t.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.t.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("minutes-changed",this.minutes))};
_.t.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("seconds-changed",this.seconds))};
_.t.updateMinutesFromBinding=function(L){this.minutes=L.detail.value};
_.t.updateSecondsFromBinding=function(L){this.seconds=L.detail.value};
aE.prototype.secondsChangedForBinding=aE.prototype.secondsChangedForBinding;aE.prototype.minutesChangedForBinding=aE.prototype.minutesChangedForBinding;aE.prototype.secondsChanged=aE.prototype.secondsChanged;_.r([_.Y(),_.Q("design:type",String)],aE.prototype,"minutes",void 0);_.r([_.Y(),_.Q("design:type",String)],aE.prototype,"seconds",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],aE.prototype,"polymer2",void 0);
_.r([_.TX("#seconds"),_.Q("design:type",Object)],aE.prototype,"secondsEl",void 0);_.r([_.iA("seconds"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aE.prototype,"secondsChanged",null);_.r([_.iA("minutes"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aE.prototype,"minutesChangedForBinding",null);
_.r([_.iA("seconds"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aE.prototype,"secondsChangedForBinding",null);_.r([_.ch({is:"yt-timestamp-input",disableElementRegistration:!0})],aE);
_.m(aE,"yt-timestamp-input",function(){if(r$q===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;CZm===void 0&&(CZm=document.createElement("template"));var S=CZm;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);r$q=L}L=r$q;return L},{mode:2});var hF=function(){return _.e.apply(this,arguments)||this};
_.f(hF,_.e);_.t=hF.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20607_scroller.dialogElement=this.hostElement.parentNode};
_.t.dataChanged=function(){var L=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.r9().getPlayerPromise().then(function(Z){Z=Z.getCurrentTime();L.minutes=Math.floor(Z/60).toString();L.seconds=(Math.floor(Z)%60).toString()})};
_.t.onTapSubmit=function(L){L.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(L={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(L.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(L.minutes=this.minutes,L.seconds=this.seconds),_.GR().resolve(_.$s).resolveCommand(this.serviceEndpoint,{form:Object.assign({},L,{element:this.hostElement})}))};
_.t.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.t.onYtServiceRequestCompleted=function(L,Z){Z=Z.actions;if(Array.isArray(Z))for(var N=0,S=Z.length;N<S;N++)_.n(Z[N],_.aw)&&(L.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(Z[N]))};
_.t.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.t.toggleSubmitButton=function(L){this.set("submitButton.isDisabled",!L)};
_.t.handleInput=function(){var L=this.issueType,Z=this.affiliation,N=this.minutes,S=this.seconds;N=!this.showTimestamp||!!N&&!!S;this.toggleSubmitButton(!!this.descriptionText&&!!L&&!!Z&&N)};
_.t.computeServiceEndpoint=function(L){return this.get("submitButton.buttonRenderer.serviceEndpoint",L)};
_.t.computeSubmitButton=function(L){(L=this.get("submitButton.buttonRenderer",L))&&(L=Object.assign({},L,{serviceEndpoint:void 0}));return L};
_.t.computeShowTimestamp=function(L){return!!L};
_.t.onValueChangedForIssueType=function(L){this.issueType=L.detail.value};
_.t.onValueChangedForAffiliation=function(L){this.affiliation=L.detail.value};
_.t.updateDescriptionTextFromBinding=function(L){this.descriptionText=L.detail.value};
_.t.updateFullNameTextFromBinding=function(L){this.fullNameText=L.detail.value};
_.t.updateMinutesFromBinding=function(L){this.minutes=L.detail.value};
_.t.updateSecondsFromBinding=function(L){this.seconds=L.detail.value};
hF.prototype.handleInput=hF.prototype.handleInput;hF.prototype.onYtServiceRequestError=hF.prototype.onYtServiceRequestError;hF.prototype.onYtServiceRequestCompleted=hF.prototype.onYtServiceRequestCompleted;hF.prototype.onYtServiceRequestSent=hF.prototype.onYtServiceRequestSent;hF.prototype.dataChanged=hF.prototype.dataChanged;_.r([_.y(_.vS.YtOpenPopupBehavior),_.Q("design:type",Object)],hF.prototype,"ytOpenPopupBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.r([_.TX("#scroller"),_.Q("design:type",Object)],hF.prototype,"JSC$20607_scroller",void 0);_.r([_.TX("#description"),_.Q("design:type",HTMLInputElement)],hF.prototype,"description",void 0);_.r([_.TX("#full-name"),_.Q("design:type",Object)],hF.prototype,"fullName",void 0);_.r([_.Y(),_.Q("design:type",Object)],hF.prototype,"data",void 0);
_.r([_.Y({computed:"computeShowTimestamp(data.timestampLabel)"}),_.Q("design:type",Boolean)],hF.prototype,"showTimestamp",void 0);_.r([_.Y({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.Q("design:type",Object)],hF.prototype,"serviceEndpoint",void 0);_.r([_.Y({computed:"computeSubmitButton(data)"}),_.Q("design:type",Object)],hF.prototype,"submitButton",void 0);_.r([_.Y(),_.Q("design:type",String)],hF.prototype,"descriptionText",void 0);
_.r([_.Y(),_.Q("design:type",Number)],hF.prototype,"issueType",void 0);_.r([_.Y(),_.Q("design:type",Number)],hF.prototype,"affiliation",void 0);_.r([_.Y(),_.Q("design:type",String)],hF.prototype,"fullNameText",void 0);_.r([_.Y(),_.Q("design:type",String)],hF.prototype,"minutes",void 0);_.r([_.Y(),_.Q("design:type",String)],hF.prototype,"seconds",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hF.prototype,"dataChanged",null);
_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],hF.prototype,"onYtServiceRequestSent",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],hF.prototype,"onYtServiceRequestCompleted",null);
_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],hF.prototype,"onYtServiceRequestError",null);_.r([_.iA("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hF.prototype,"handleInput",null);_.r([_.P({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],hF);
_.m(hF,"ytd-legal-report-details-form-renderer",function(){if(J$Y!==void 0)return J$Y;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return J$Y=L},{mode:1});var QzP;var sJ=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return L};
_.f(sJ,_.e);sJ.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
sJ.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var L=this.formRenderer.getForm();L&&this.data.submitEndpoint&&(_.GR().resolve(_.$s).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},L,{element:this.hostElement})}),_.XJ(this.hostElement,"yt-close-popup-action"))}};
sJ.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.XJ(this.hostElement,"yt-close-popup-action"))};
sJ.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
sJ.prototype.onPopupClosed=sJ.prototype.onPopupClosed;_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],sJ.prototype,"ytEventForwardingBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],sJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],sJ.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);
_.r([_.TX("yt-form-renderer"),_.Q("design:type",Object)],sJ.prototype,"formRenderer",void 0);_.r([_.Y(),_.Q("design:type",Object)],sJ.prototype,"data",void 0);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sJ.prototype,"onPopupClosed",null);_.r([_.P({is:"ytd-form-popup-content",disableElementRegistration:!0})],sJ);
_.m(sJ,"ytd-form-popup-content",function(){if(QzP!==void 0)return QzP;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return QzP=L},{mode:1});var XZq;var jx=function(){return _.e.apply(this,arguments)||this};
_.f(jx,_.e);jx.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
jx.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jx.prototype.onPopupOpened=function(){_.QT(this.hostElement,"yt-invalidate-popup-tabbables")};
jx.prototype.onYtServiceRequestCompleted=function(L,Z){Z.data&&Z.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.QT(this.hostElement,"yt-invalidate-popup-tabbables"))};
jx.prototype.onYtServiceRequestCompleted=jx.prototype.onYtServiceRequestCompleted;jx.prototype.onPopupOpened=jx.prototype.onPopupOpened;_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],jx.prototype,"ytEventForwardingBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],jx.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],jx.prototype,"data",void 0);_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],jx.prototype,"onPopupOpened",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],jx.prototype,"onYtServiceRequestCompleted",null);_.r([_.P({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],jx);
_.m(jx,"ytd-form-popup-renderer",function(){if(XZq!==void 0)return XZq;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return XZq=L},{mode:1});var A$c;var EJ=function(){var L=_.e.apply(this,arguments)||this;L.isLoading=!1;return L};
_.f(EJ,_.e);_.t=EJ.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");LW5(this.hostElement)};
_.t.onYtServiceRequestSent=function(){this.isLoading=!0};
_.t.onYtServiceRequestCompleted=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.t.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.B2(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.t.closePopupHandler=function(){this.fireOnCloseActions()};
_.t.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var L=this.get("data.headerImage.thumbnails");L&&(L=_.r$(L,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+L+")")}};
_.t.onYtNavigate=function(L){(L=_.jD(L))&&L.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
EJ.prototype.onYtNavigate=EJ.prototype.onYtNavigate;EJ.prototype.onHeaderImageChanged=EJ.prototype.onHeaderImageChanged;EJ.prototype.closePopupHandler=EJ.prototype.closePopupHandler;EJ.prototype.onYtServiceRequestCompleted=EJ.prototype.onYtServiceRequestCompleted;EJ.prototype.onYtServiceRequestSent=EJ.prototype.onYtServiceRequestSent;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],EJ.prototype,"ytEventForwardingBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],EJ.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],EJ.prototype,"isLoading",void 0);_.r([_.TX("#header"),_.Q("design:type",HTMLDivElement)],EJ.prototype,"header",void 0);_.r([_.TX("#confirm-button"),_.Q("design:type",_.eK)],EJ.prototype,"confirmButton",void 0);
_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],EJ.prototype,"onYtServiceRequestSent",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],EJ.prototype,"onYtServiceRequestCompleted",null);
_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],EJ.prototype,"closePopupHandler",null);_.r([_.iA("data.headerImage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EJ.prototype,"onHeaderImageChanged",null);_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],EJ.prototype,"onYtNavigate",null);
_.r([_.P({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],EJ);
_.m(EJ,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(A$c!==void 0)return A$c;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return A$c=L},{mode:1});var HtY;var PO=function(){var L=_.e.apply(this,arguments)||this;L.isLoading=!1;return L};
_.f(PO,_.e);_.t=PO.prototype;_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);LW5(this.hostElement)};
_.t.onYtServiceRequestCompleted=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.t.onYtServiceRequestError=function(L){_.Ib(this.hostElement,L.detail.error.message)};
_.t.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.t.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.XJ(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.t.onDataChanged=function(){this.isLoading=!1;var L=this.get("data.headerImage.thumbnails");L&&(L=_.r$(L,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+L+")");L=_.RH();var Z=_.oH(),N=this.get("data.trackingParams");N&&Z&&L&&_.ez(L,Z,_.Mg(N))};
_.gd.Object.defineProperties(PO.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
PO.prototype.onDataChanged=PO.prototype.onDataChanged;PO.prototype.onDomChange=PO.prototype.onDomChange;PO.prototype.onYtServiceRequestError=PO.prototype.onYtServiceRequestError;PO.prototype.onYtServiceRequestCompleted=PO.prototype.onYtServiceRequestCompleted;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],PO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],PO.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],PO.prototype,"isLoading",void 0);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],PO.prototype,"hasDescription",null);_.r([_.TX("tp-yt-paper-dialog-scrollable"),_.Q("design:type",Object)],PO.prototype,"scrollable",void 0);_.r([_.TX("#header"),_.Q("design:type",HTMLElement)],PO.prototype,"header",void 0);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],PO.prototype,"onYtServiceRequestCompleted",null);_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],PO.prototype,"onYtServiceRequestError",null);
_.r([_.SA("dom-change"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],PO.prototype,"onDomChange",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PO.prototype,"onDataChanged",null);_.r([_.P({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],PO);
_.m(PO,"ytd-gaming-account-link-setting-renderer",function(){if(HtY!==void 0)return HtY;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return HtY=L},{mode:1});var BQv;var xxs;var pj=function(){var L=_.e.apply(this,arguments)||this;L.isHeader=!1;L.getEndpointForm=function(){return zxk(L.data)};
return L};
_.f(pj,_.e);_.t=pj.prototype;_.t.triggerHintActions=function(){var L=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var Z=_.Ad(L.hostElement,"yt-get-opened-popups-action");!(Z&&Z.length===1?Z[0]:[]).some(function(N){N=N.openPopupAction.popupType;return N==="SURVEY"||N==="MEALBAR"||N==="HINT"})&&L.data.hintActions&&L.guideOpened&&(_.B2(L.hostElement,L.data.hintActions,L.hostElement),L.data.hintActions=void 0)})};
_.t.getBadgeIconType=function(L){return L&&L.liveBroadcasting?"live":null};
_.t.onDown=function(){this.interaction.triggerDown()};
_.t.onUp=function(){this.interaction.triggerUp()};
_.t.onTap=function(L){if(this.data.serviceEndpoint){var Z;_.c("shorts_controller_retrieve_seedless_sequence_v2")&&((Z=_.n(this.data.serviceEndpoint,_.Ox))==null?void 0:Z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):pVv(this.data.serviceEndpoint,this);L.preventDefault()}else this.data.navigationEndpoint&&!_.PQ(_.sx(L),this.hostElement,["A".toString()])&&_.QT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.t.computeActive=function(L,Z){if(!L)return!1;var N=L.navigationEndpoint;L=L.serviceEndpoint;if(!N&&!L||!Z)return!1;if(N){L=(L=_.SD(Z))&&["subscriptions","filteredsubscriptions"].includes(L);if(_.n(N,_.iv)&&_.n(Z,_.iv)&&!L){var S=_.n(N,_.iv).browseId;Z=_.n(Z,_.iv).browseId;return S!==void 0&&Z!==void 0&&(S===Z||S==="VLWL"&&Z==="FEwatch_later"||S==="FEwatch_later"&&Z==="VLWL")}var u;N=(u=_.n(N.commandMetadata,_.Nj))==null?void 0:u.url;Z=(S=_.n(Z.commandMetadata,_.Nj))==null?void 0:S.url;return!(!N||
!Z||N!==Z&&N!==_.ks(Z))}return this.isActiveShortsTab(L,Z)};
_.t.isActiveShortsTab=function(L,Z){Z=!!_.n(Z,_.Ox)||!!_.n(Z,_.Hb);return(!!_.n(L,_.Ox)||!!_.n(L,_.Hb))&&Z};
_.t.computeIsPrimary=function(L){return!!L};
_.gd.Object.defineProperties(pj.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 L=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&L)return L}}});
pj.prototype.onTap=pj.prototype.onTap;pj.prototype.onUp=pj.prototype.onUp;pj.prototype.onDown=pj.prototype.onDown;pj.prototype.triggerHintActions=pj.prototype.triggerHintActions;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],pj.prototype,"componentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],pj.prototype,"rendererBehavior",void 0);_.r([_.y(_.uM.YtTaskEmitterBehavior),_.Q("design:type",Object)],pj.prototype,"taskEmitterBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],pj.prototype,"activeEndpoint",void 0);_.r([_.Y(),_.Q("design:type",Object)],pj.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],pj.prototype,"guideOpened",void 0);_.r([_.Y(),_.Q("design:type",String)],pj.prototype,"type",void 0);_.r([_.TX("yt-interaction"),_.Q("design:type",Object)],pj.prototype,"interaction",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],pj.prototype,"isHeader",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("data","activeEndpoint"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pj.prototype,"active",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pj.prototype,"isPrimary",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.count","data.presentationStyle","data.badges.*"),_.Q("design:type",String),_.Q("design:paramtypes",[])],pj.prototype,"lineEndStyle",null);
_.r([_.w("lineEndStyle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],pj.prototype,"ariaLabel",null);_.r([_.iA("data.hintActions","guideOpened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pj.prototype,"triggerHintActions",null);_.r([_.SA("down"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pj.prototype,"onDown",null);
_.r([_.SA("up"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pj.prototype,"onUp",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],pj.prototype,"onTap",null);_.r([_.P({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],pj);
_.m(pj,"ytd-guide-entry-renderer",function(){if(xxs!==void 0)return xxs;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return xxs=L},{mode:1});var zf=function(){var L=_.e.apply(this,arguments)||this;L.userToggled=!1;return L};
_.f(zf,_.e);_.t=zf.prototype;_.t.getItemsPath=function(){return"data.expandableItems"};
_.t.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.t.onExpanderItemTapped=function(L){var Z=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.c("kevlar_guide_expandable_items_killswitch")&&_.bN(this,function(){_.OI(Z.expandableItems)});
L.preventDefault()};
_.t.onCollapserItemTapped=function(L){var Z=this;this._setExpanded(!1);this.userToggled=!0;L.preventDefault();this.expandableItems&&!_.c("kevlar_guide_collapsible_items_killswitch")&&_.bN(this,function(){_.tV(Z.hostElement)})};
_.t.observeActiveEndpoint=function(){for(var L=this.activeEndpoint,Z=this.data,N=this.expandableItems.children,S=0,u=N.length;S<u;S++)N[S].activeEndpoint=L;Z&&Z.autoExpandCommand&&L&&!this.userToggled&&(N=this.data.autoExpandCommand,Z=!(!_.n(N,_.iv)||!_.n(L,_.iv)||_.n(N,_.iv).browseId!==_.n(L,_.iv).browseId),L=this.get("commandMetadata.webCommandMetadata.url",L),N=this.get("commandMetadata.webCommandMetadata.url",N),Z=Z||!!(L&&N&&L.includes(N)),this._setExpanded(Z),Z&&this.ytLazyListBehavior.fillRemainingListItems())};
zf.prototype.observeActiveEndpoint=zf.prototype.observeActiveEndpoint;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.bz.YtLazyListBehavior),_.Q("design:type",Object)],zf.prototype,"ytLazyListBehavior",void 0);_.r([_.TX("#expandable-items"),_.Q("design:type",HTMLElement)],zf.prototype,"expandableItems",void 0);
_.r([_.Y(),_.Q("design:type",Object)],zf.prototype,"data",void 0);_.r([_.Y({readOnly:!0,reflectToAttribute:!0}),_.Q("design:type",Boolean)],zf.prototype,"expanded",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],zf.prototype,"initialCount",void 0);_.r([_.Y(),_.Q("design:type",Object)],zf.prototype,"activeEndpoint",void 0);_.r([_.iA("data","activeEndpoint","canShowMore"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zf.prototype,"observeActiveEndpoint",null);
_.r([_.P({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],zf);
_.m(zf,"ytd-guide-collapsible-entry-renderer",function(){if(BQv!==void 0)return BQv;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return BQv=L},{mode:_.Qr("kevlar_poly_si_batch_j079")?1:2});var qms;var LNQ;var mq=function(){var L=_.e.apply(this,arguments)||this;L.allVideosCount=0;L.renderGuideEntry=!1;return L};
_.f(mq,_.e);mq.prototype.observeRenderEntry=function(){var L;this.renderGuideEntry=!((L=this.data)==null||!L.alwaysShow)||!!this.allVideosCount};
mq.prototype.observeRenderEntry=mq.prototype.observeRenderEntry;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],mq.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],mq.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],mq.prototype,"activeEndpoint",void 0);_.r([_.Y({selector:_.PM_}),_.Q("design:type",Object)],mq.prototype,"allVideosCount",void 0);
_.r([_.Y(),_.Q("design:type",Object)],mq.prototype,"renderGuideEntry",void 0);_.r([_.Vr("allVideosCount","data.alwaysShow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mq.prototype,"observeRenderEntry",null);_.r([_.P({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],mq);
_.m(mq,"ytd-guide-downloads-entry-renderer",function(){if(LNQ===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);LNQ=L}L=LNQ;return L},{mode:1});var JF=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return L};
_.f(JF,_.e);_.t=JF.prototype;_.t.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]]"}}}}}};
_.t.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var L=this.sectionItems.children,Z=0,N=L.length;Z<N;Z++)L[Z].activeEndpoint=this.activeEndpoint}};
_.t.handleAddToGuideSectionAction=function(L){var Z=_.n(L,RBg);if(Z&&this.data&&(L=Z.items,Z=Z.handlerData,L&&Z&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(Z)>-1)){Z=0;for(var N=L.length;Z<N;Z++)L[Z].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,L[Z])}};
_.t.handleRemoveFromGuideSectionAction=function(L){var Z=_.n(L,cIs);Z&&this.data&&(L=Z.guideEntryId,Z=Z.handlerData,L&&Z&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(Z)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(L,this.data.sectionItems),this.removeFromCollapsedSection(L,this.data.sectionItems)))};
_.t.removeFromExpandedSection=function(L,Z){L=this.getEntryIndexMatchingId(L,Z);L!==-1&&this.splice("data.sectionItems",L,1)};
_.t.removeFromCollapsedSection=function(L,Z){var N=Z.findIndex(function(S){return!!_.n(S,Egg)});
N&&N!==-1&&Z[N]&&_.n(Z[N],Egg)&&(Z=_.n(Z[N],Egg).expandableItems)&&(L=this.getEntryIndexMatchingId(L,Z),L!==-1&&this.splice("data.sectionItems."+N+".guideCollapsibleEntryRenderer.expandableItems",L,1))};
_.t.getEntryIndexMatchingId=function(L,Z){var N=this;return Z.findIndex(function(S){return N.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",S)===L})};
JF.prototype.activeEndpointChanged=JF.prototype.activeEndpointChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],JF.prototype,"actionHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],JF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.TX("#section-items"),_.Q("design:type",HTMLDivElement)],JF.prototype,"sectionItems",void 0);
_.r([_.TX("#header-entry"),_.Q("design:type",Object)],JF.prototype,"headerEntry",void 0);_.r([_.Y(),_.Q("design:type",Object)],JF.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],JF.prototype,"activeEndpoint",void 0);_.r([_.iA("activeEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JF.prototype,"activeEndpointChanged",null);_.r([_.P({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],JF);
_.m(JF,"ytd-guide-collapsible-section-entry-renderer",function(){if(qms===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);qms=L}L=qms;return L},{mode:1});var ZIw;var N4m;var Cj=function(){var L=_.e.apply(this,arguments)||this;L.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 L};
_.f(Cj,_.e);_.t=Cj.prototype;
_.t.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}}}}};
_.t.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var L=_.Ad(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);L&&L.length===1&&L[0]&&_.Ad(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.t.handleResetChannelUnreadCountCommand=function(L){var Z;(L=(Z=_.n(L,Kbv))==null?void 0:Z.channelId)&&this.data&&this.data.items&&(Z=this.getPathToEntryMatchingId(L))&&(this.set(Z+".guideEntryRenderer.count",0),this.set(Z+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.t.handleResetSubscriptionsUnreadDotCommand=function(L){var Z,N=(Z=_.n(L,fHg))==null?void 0:Z.targetId,S;N&&(S=this.data)!=null&&S.items&&(L=this.data.items.findIndex(function(u){var T;return((T=u.guideEntryRenderer)==null?void 0:T.targetId)===N}),L<0||this.set("data.items."+L+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.t.getPathToEntryMatchingId=function(L){if(this.data&&this.data.items){var Z=this.getEntryIndexMatchingId(L,this.data.items);if(Z>-1)return"data.items."+Z;for(var N=0;N<this.data.items.length;N++)if(Z=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[N]))if(Z=this.getEntryIndexMatchingId(L,Z),Z>-1)return"data.items."+N+".guideCollapsibleEntryRenderer.expandableItems."+Z}};
_.t.handleAddToGuideSectionAction=function(L){var Z=this;if(_.n(L,RBg)){var N=_.n(L,RBg).items;L=_.n(L,RBg).handlerData;var S,u;if(N&&L&&((S=this.data)==null?void 0:(u=S.handlerDatas)==null?void 0:u.indexOf(L))>-1){N=N.filter(function(W){return(W=Z.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",W))&&!Z.isGuideItemPresent(W)});
var T;if(L==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((T=this.data)==null?0:T.items)&&(S=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),S>-1)){this.splice.apply(this,["data.items",S+1,0].concat(_.Pd(N)));return}this.unshift.apply(this,["data.items"].concat(_.Pd(N)))}}};
_.t.isGuideItemPresent=function(L){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(L,this.data.items)!==-1)return!0;var Z=this.data.items.find(function(N){return!!N.guideCollapsibleEntryRenderer});
if((Z==null?0:Z.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(L,Z.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.t.getEntryIndexMatchingId=function(L,Z){var N=this;return Z.findIndex(function(S){return N.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",S)===L})};
_.t.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(L,Z){var N=this;return Z.findIndex(function(S){return N.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",S)===L})};
_.t.handleRemoveFromGuideSectionAction=function(L){if(_.n(L,cIs)){var Z=_.n(L,cIs).guideEntryId;L=_.n(L,cIs).handlerData;var N,S;Z&&L&&((N=this.data)==null?void 0:(S=N.handlerDatas)==null?void 0:S.indexOf(L))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(Z,this.data.items),this.removeFromCollapsedSection(Z,this.data.items))}};
_.t.removeFromExpandedSection=function(L,Z){L=this.getEntryIndexMatchingId(L,Z);L!==-1&&this.splice("data.items",L,1)};
_.t.removeFromCollapsedSection=function(L,Z){var N=Z.findIndex(function(S){return!!S.guideCollapsibleEntryRenderer});
N!==-1&&(Z=Z[N].guideCollapsibleEntryRenderer.expandableItems)&&(L=this.getEntryIndexMatchingId(L,Z),L!==-1&&this.splice("data.items."+N+".guideCollapsibleEntryRenderer.expandableItems",L,1))};
_.t.activeEndpointChanged=function(){for(var L=_.QJ(this.hostElement).querySelector("#items").children,Z=0,N=L.length;Z<N;Z++)L[Z].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.t.guideOpenedChanged=function(){for(var L=_.QJ(this.hostElement).querySelector("#items").children,Z=0,N=L.length;Z<N;Z++)L[Z].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Cj.prototype.guideOpenedChanged=Cj.prototype.guideOpenedChanged;Cj.prototype.activeEndpointChanged=Cj.prototype.activeEndpointChanged;Cj.prototype.persistentGuideChanged=Cj.prototype.persistentGuideChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Cj.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.bz.YtLazyListBehavior),_.Q("design:type",Object)],Cj.prototype,"ytLazyListBehavior",void 0);_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],Cj.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Cj.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Cj.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",String)],Cj.prototype,"type",void 0);_.r([_.Y({value:20}),_.Q("design:type",Number)],Cj.prototype,"initialCount",void 0);_.r([_.Y({value:10}),_.Q("design:type",Number)],Cj.prototype,"targetFramerate",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],Cj.prototype,"autoFill",void 0);_.r([_.Y({value:50}),_.Q("design:type",Number)],Cj.prototype,"renderDelay",void 0);
_.r([_.iA("guidePersistentAndVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Cj.prototype,"persistentGuideChanged",null);_.r([_.Vr("activeEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Cj.prototype,"activeEndpointChanged",null);_.r([_.Vr("guideOpened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Cj.prototype,"guideOpenedChanged",null);
_.r([_.P({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Cj);
_.m(Cj,"ytd-guide-section-renderer",function(){if(N4m!==void 0)return N4m;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return N4m=L},{mode:_.Qr("kevlar_poly_si_batch_j073")?1:2});var SXv;var rl=function(){return _.e.apply(this,arguments)||this};
_.f(rl,_.e);_.gd.Object.defineProperties(rl.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],rl.prototype,"rendererBehaviors",void 0);_.r([_.Y(),_.Q("design:type",Object)],rl.prototype,"data",void 0);_.r([_.Y(),_.w("data.signInButton.buttonRenderer.style"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],rl.prototype,"alignByText",null);_.r([_.P({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],rl);
_.m(rl,"ytd-guide-signin-promo-renderer",function(){if(SXv===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);SXv=L}L=SXv;return L},{mode:1});var Q2=function(){var L=_.e.apply(this,arguments)||this;L.showFooter=!1;return L};
_.f(Q2,_.e);Q2.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}}}}};
Q2.prototype.attached=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1){Z=_.GR().resolve(_.gv(_.H0));if(!Z)return N.jumpTo(0);Z.setGuideData(L.hostElement);return N.yield(0,3)}L.ytLazyListBehavior.initialCount=2;return N.return()})};
Q2.prototype.onMouseExit=function(){_.c("web_guide_hover_expansion")&&_.Ad(this.hostElement,"yt-guide-mouseleaved",[])};
Q2.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Q2.prototype.dataChanged=Q2.prototype.dataChanged;Q2.prototype.onMouseExit=Q2.prototype.onMouseExit;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Q2.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.bz.YtLazyListBehavior),_.Q("design:type",Object)],Q2.prototype,"ytLazyListBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Q2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Q2.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Q2.prototype,"showFooter",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],Q2.prototype,"autoFill",void 0);_.r([_.SA("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Q2.prototype,"onMouseExit",null);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Q2.prototype,"dataChanged",null);_.r([_.P({is:"ytd-guide-renderer",disableElementRegistration:!0})],Q2);
_.m(Q2,"ytd-guide-renderer",function(){if(ZIw!==void 0)return ZIw;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ZIw=L},{mode:_.Qr("kevlar_poly_si_batch_j073")?1:2});var iI8;var Xk=function(){var L=_.e.apply(this,arguments)||this;L.systemIcons=_.c("kevlar_system_icons");L.frostedGlass=_.c("web_frosted_glass");L.getEndpointForm=function(){return zxk(L.data)};
return L};
_.f(Xk,_.e);_.t=Xk.prototype;_.t.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.t.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.jM(this.data.formattedTitle))};
_.t.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.t.onDown=function(){this.interaction.triggerDown()};
_.t.onUp=function(){this.interaction.triggerUp()};
_.t.onTap=function(L){if(this.data.serviceEndpoint){var Z;_.c("shorts_controller_retrieve_seedless_sequence_v2")&&((Z=_.n(this.data.serviceEndpoint,_.Ox))==null?void 0:Z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):pVv(this.data.serviceEndpoint,this);L.preventDefault()}else{var N;((N=this.data)==null?0:N.navigationEndpoint)&&!_.PQ(_.sx(L),this.hostElement,["A".toString()])&&_.QT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.t.computeActive=function(L,Z){if(!L)return!1;var N=L.navigationEndpoint;L=L.serviceEndpoint;if(!N&&!L||!Z)return!1;if(N){L=_.n(N,_.iv);var S=_.n(Z,_.iv);if(L&&S)return L.browseId===S.browseId&&L.params===S.params;var u;N=(u=_.n(N.commandMetadata,_.Nj))==null?void 0:u.url;var T;Z=(T=_.n(Z.commandMetadata,_.Nj))==null?void 0:T.url;return!(!N||!Z||N!==Z&&N!==_.ks(Z))}return this.isActiveShortsTab(L,Z)};
_.t.isActiveShortsTab=function(L,Z){Z=!!_.n(Z,_.Ox)||!!_.n(Z,_.Hb);return(!!_.n(L,_.Ox)||!!_.n(L,_.Hb))&&Z};
_.t.computeTitle=function(L,Z){return Z?"":_.jM(L)};
_.gd.Object.defineProperties(Xk.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Xk.prototype.onTap=Xk.prototype.onTap;Xk.prototype.onUp=Xk.prototype.onUp;Xk.prototype.onDown=Xk.prototype.onDown;Xk.prototype.onActiveStateChange=Xk.prototype.onActiveStateChange;Xk.prototype.dataChanged=Xk.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Xk.prototype,"ytComponentBehavior",void 0);
_.r([_.y(_.pO),_.Q("design:type",Object)],Xk.prototype,"ironButtonState",void 0);_.r([_.Y(),_.Q("design:type",Object)],Xk.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Xk.prototype,"activeEndpoint",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Xk.prototype,"noLabels",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.Q("design:type",Boolean)],Xk.prototype,"isActive",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Xk.prototype,"systemIcons",void 0);_.r([_.TX("yt-interaction"),_.Q("design:type",Object)],Xk.prototype,"interaction",void 0);_.r([_.w("isActive"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Xk.prototype,"ariaSelected",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Xk.prototype,"frostedGlass",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xk.prototype,"dataChanged",null);_.r([_.iA("isActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xk.prototype,"onActiveStateChange",null);_.r([_.SA("down"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xk.prototype,"onDown",null);
_.r([_.SA("up"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xk.prototype,"onUp",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Xk.prototype,"onTap",null);_.r([_.P({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Xk);
_.m(Xk,"ytd-mini-guide-entry-renderer",function(){if(iI8!==void 0)return iI8;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return iI8=L},{mode:_.Qr("kevlar_poly_si_batch_j063")?1:2});var ub0;var AF=function(){var L=_.e.apply(this,arguments)||this;L.allVideosCount=0;L.noLabels=_.c("kevlar_mini_guide_no_labels")||_.c("kevlar_modern_mini_guide");L.frostedGlass=_.c("web_frosted_glass");return L};
_.f(AF,_.e);_.t=AF.prototype;_.t.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.t.onMouseEnter=function(){_.c("web_guide_hover_expansion")&&_.Ad(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.t.visibleChanged=function(){if(this.visible&&!this.data){var L=_.GR().resolve(_.gv(_.H0));L&&L.setGuideData(this.hostElement)}};
_.t.dataChanged=function(){var L=_.c("kevlar_modern_mini_guide"),Z;var N=(Z=this.data)==null?void 0:Z.items;Z=this.allVideosCount;var S=[];if(N){for(var u=[],T=_.O(N),W=T.next();!W.done;W=T.next())if(W=W.value,W.guideSubscriptionsSectionRenderer){var V=void 0;u=((V=W.guideSubscriptionsSectionRenderer)==null?void 0:V.items)||[]}N=_.O(N);for(T=N.next();!T.done;T=N.next())if(T=T.value,W=void 0,(W=T.guideSectionRenderer)==null?0:W.items)for(W=void 0,T=_.O((W=T.guideSectionRenderer)==null?void 0:W.items),
W=T.next();!W.done;W=T.next()){W=W.value;var M=void 0,G=void 0;V=W.guideEntryRenderer||_.n((M=W)==null?void 0:(G=M.guideCollapsibleSectionEntryRenderer)==null?void 0:G.headerEntry,mHP);M=[];G=[];var D=void 0;if(((D=V)==null?void 0:D.targetId)==="subscriptions-guide-item")M=u;else{var l=D=void 0;if((D=W)==null?0:(l=D.guideCollapsibleSectionEntryRenderer)==null?0:l.sectionItems)G=M=W.guideCollapsibleSectionEntryRenderer.sectionItems}J9g(S,V,L?M:[]);if(G.length>0)for(W=_.O(G),V=W.next();!V.done;V=W.next())V=
V.value,G=_.n(V,P7v),M=void 0,G=G&&(G.alwaysShow||Z)?_.n((M=G)==null?void 0:M.entryRenderer,mHP):_.n(V,mHP),J9g(S,G,[])}}this.miniGuideItems=S};
_.t.activeEndpointChanged=function(){for(var L=this.items.children,Z=0;Z<L.length;Z++)L[Z].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.t.registerWithViewTransitionManager=function(){var L=this;_.sI(_.ro,function(){var Z=_.GR().resolve(_.gv(_.eB));if(Z&&Z.isAnyTransitionEnabled){var N={};Z.viewTransitionCoordinator.registerElement(L.hostElement,(N.slide="mini-guide-page-transition",N))}})};
AF.prototype.activeEndpointChanged=AF.prototype.activeEndpointChanged;AF.prototype.dataChanged=AF.prototype.dataChanged;AF.prototype.visibleChanged=AF.prototype.visibleChanged;AF.prototype.onMouseEnter=AF.prototype.onMouseEnter;_.r([_.y(_.CD),_.Q("design:type",Object)],AF.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],AF.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],AF.prototype,"ytComponentBehavior",void 0);_.r([_.TX("#items"),_.Q("design:type",Object)],AF.prototype,"items",void 0);_.r([_.Y(),_.Q("design:type",Object)],AF.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],AF.prototype,"visible",void 0);_.r([_.Y(),_.Q("design:type",Object)],AF.prototype,"miniGuideItems",void 0);_.r([_.Y({selector:_.PM_}),_.Q("design:type",Object)],AF.prototype,"allVideosCount",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],AF.prototype,"noLabels",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],AF.prototype,"frostedGlass",void 0);
_.r([_.SA("mouseenter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AF.prototype,"onMouseEnter",null);_.r([_.Vr("visible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AF.prototype,"visibleChanged",null);_.r([_.Vr("data","allVideosCount"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AF.prototype,"dataChanged",null);
_.r([_.Vr("activeEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AF.prototype,"activeEndpointChanged",null);_.r([_.P({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],AF);
_.m(AF,"ytd-mini-guide-renderer",function(){if(ub0===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);ub0=L}L=ub0;return L},{mode:1});var T45;var t6Q=/^[\x00-\x7F]+$/,HO=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(HO,_.e);_.gd.Object.defineProperties(HO.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var L,Z=_.jM((L=this.data)==null?void 0:L.handle);if(Z)return _.s9("@"+Z)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var L=_.jM(this.displayHandle),Z,N=_.jM((Z=this.data)==null?void 0:Z.handleUrl);if(L&&N)return _.s9(N+L)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var L=_.jM(this.displayHandle);if(L&&!t6Q.test(L)){var Z;return(Z=this.data)==null?void 0:Z.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var L=_.jM(this.displayHandleUrl),Z,N=_.jM((Z=this.data)==null?void 0:Z.urlInfoText);if(L&&N)return _.s9(N+" "+L)}}});
_.r([_.Y(),_.Q("design:type",Object)],HO.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],HO.prototype,"displayHandle",null);_.r([_.w("displayHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],HO.prototype,"displayHandleUrl",null);_.r([_.w("displayHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],HO.prototype,"warningText",null);
_.r([_.w("displayHandleUrl"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],HO.prototype,"urlInfoTextWithUrl",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],HO.prototype,"darkerDarkTheme",void 0);_.r([_.P({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],HO);
_.m(HO,"ytd-handles-claiming-confirm-dialog-content",function(){if(T45!==void 0)return T45;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return T45=L},{mode:1});var OIs;var BO=function(){var L=_.e.apply(this,arguments)||this;L.okButtonOverride={style:"mono",type:"outline",size:"M"};return L};
_.f(BO,_.e);BO.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
BO.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],BO.prototype,"okButtonOverride",void 0);_.r([_.Y(),_.Q("design:type",Object)],BO.prototype,"data",void 0);_.r([_.P({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],BO);
_.m(BO,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(OIs!==void 0)return OIs;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return OIs=L},{mode:1});var WNY;var V6y=/^[\x00-\x7F]+$/,xz=function(){var L=_.e.apply(this,arguments)||this;L.isLoading=!1;L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(xz,_.e);xz.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var L;this.selectedHandle=(L=this.handleInput)==null?void 0:L.value;this.onSelectedHandleChanged(this.selectedHandle);_.Ad(this.hostElement,"yt-refit-popups-action")}};
_.gd.Object.defineProperties(xz.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var L;return(L=this.data)==null?void 0:L.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.s9("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.s9(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!V6y.test(this.selectedHandle)){var L;return(L=this.data)==null?void 0:L.warningText}}}});
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],xz.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],xz.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],xz.prototype,"selectedHandle",void 0);_.r([_.Y(),_.Q("design:type",Object)],xz.prototype,"isLoading",void 0);_.r([_.Y(),_.Q("design:type",Function)],xz.prototype,"onSelectedHandleChanged",void 0);_.r([_.TX("#channel-handle-input"),_.Q("design:type",Object)],xz.prototype,"handleInput",void 0);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xz.prototype,"handleUrlPrefix",null);_.r([_.w("selectedHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xz.prototype,"displayHandle",null);_.r([_.w("selectedHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xz.prototype,"displayHandleUrl",null);_.r([_.w("selectedHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xz.prototype,"warningText",null);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xz.prototype,"darkerDarkTheme",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.r([_.P({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],xz);
_.m(xz,"ytd-handles-claiming-edit-dialog-content",function(){if(WNY!==void 0)return WNY;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return WNY=L},{mode:1});var bIY;var qp=function(){var L=_.e.apply(this,arguments)||this;L.actionButtonOverride={style:"mono",type:"filled",size:"M"};L.cancelButtonOverride={style:"mono",type:"text",size:"M"};L.selectButtonDisabled=!1;L.isLoading=!1;L.hasSelectedHandleEventListener=!1;L.selectedHandleChanged=function(Z){L.selectedHandle=Z};
return L};
_.f(qp,_.e);_.t=qp.prototype;_.t.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.t.onDataChanged=function(){var L,Z;this.selectedHandle=(Z=_.n((L=this.data)==null?void 0:L.inputField,$1Q))==null?void 0:Z.handle};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.onCancel=function(){this.selectedHandle="";_.XJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.t.onSelectHandle=function(){var L=this;if(this.selectedHandle!==void 0){var Z;((Z=this.data)==null?void 0:Z.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(N,S){if(S.newHandleUpdateStatus!==void 0&&S.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&S.newHandleUpdateStatus.errorMessage)_.Ib(L.hostElement,_.jM(S.newHandleUpdateStatus.errorMessage)),
L.isLoading=!1;else{var u;if((u=L.data)==null?0:u.onChannelUpdateSuccess){N=L.data.onChannelUpdateSuccess;var T,W;if(S=(T=_.n(N,_.aw))==null?void 0:(W=T.popup)==null?void 0:W.handlesClaimingConfirmDialogRenderer)S.handle=_.s9(L.selectedHandle);L.ytComponentBehavior.resolveCommand(N);_.XJ(L.hostElement,"yt-close-popup-action",[L.is])}else L.isLoading=!1}},
onServerError:function(){var N;L.content&&((N=L.content)==null?0:N.handleInput)&&L.content.handleInput.validate();L.isLoading=!1;_.Ib(L.hostElement,_.iB("TRY_AGAIN_LATER"))}}}))}};
_.t.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
qp.prototype.onDataChanged=qp.prototype.onDataChanged;qp.prototype.onSelectedHandleChanged=qp.prototype.onSelectedHandleChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],qp.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],qp.prototype,"actionButtonOverride",void 0);_.r([_.Y(),_.Q("design:type",Object)],qp.prototype,"cancelButtonOverride",void 0);_.r([_.Y(),_.Q("design:type",Object)],qp.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",String)],qp.prototype,"selectedHandle",void 0);_.r([_.Y(),_.Q("design:type",Object)],qp.prototype,"selectButtonDisabled",void 0);_.r([_.Y(),_.Q("design:type",Object)],qp.prototype,"isLoading",void 0);_.r([_.Y(),_.Q("design:type",Object)],qp.prototype,"hasSelectedHandleEventListener",void 0);_.r([_.Y(),_.Q("design:type",Object)],qp.prototype,"handleInput",void 0);
_.r([_.iA("selectedHandle"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qp.prototype,"onSelectedHandleChanged",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qp.prototype,"onDataChanged",null);_.r([_.TX("ytd-handles-claiming-edit-dialog-content"),_.Q("design:type",Object)],qp.prototype,"content",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],qp.prototype,"ytRendererstamperBehavior",void 0);_.r([_.P({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],qp);
_.m(qp,"ytd-handles-claiming-edit-dialog-renderer",function(){if(bIY!==void 0)return bIY;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return bIY=L},{mode:1});var M6Y;var Li=function(){return _.e.apply(this,arguments)||this};
_.f(Li,_.e);_.gd.Object.defineProperties(Li.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.data)==null?0:L.handle){var Z;return _.s9("@"+_.jM((Z=this.data)==null?void 0:Z.handle))}}}});
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Li.prototype,"formattedHandle",null);_.r([_.Y(),_.Q("design:type",Object)],Li.prototype,"data",void 0);_.r([_.P({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Li);
_.m(Li,"ytd-handles-claiming-radio-option-renderer",function(){if(M6Y!==void 0)return M6Y;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return M6Y=L},{mode:1});var g8Y;var GPv=/^[\x00-\x7F]+$/,Zz=function(){var L=_.e.apply(this,arguments)||this;L.initialRadioIndex="-1";L.isLoading=!1;L.darkerDarkTheme=_.c("web_darker_dark_theme");L.maybeSubmitFeedback=function(){L.feedbackSurveyRenderer.submitSurvey()};
return L};
_.f(Zz,_.e);Zz.prototype.updateSelectedHandleIndexFromBinding=function(L){this.selectedRadioIndex=+L.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(L)};
Zz.prototype.selectedHandleChanged=function(L){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var Z;this.selectedHandle=(Z=this.handleInput)==null?void 0:Z.value;this.onSelectedHandleChanged(L)}};
_.gd.Object.defineProperties(Zz.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var L;return(((L=this.data)==null?void 0:L.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var L;return this.ytRendererBehavior.getSimpleString((L=this.data)==null?void 0:L.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.s9("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.s9(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!GPv.test(this.selectedHandle)){var L;return(L=this.data)==null?void 0:L.warningText}}}});
_.r([_.Y(),_.Q("design:type",Object)],Zz.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Zz.prototype,"initialRadioIndex",void 0);_.r([_.Y(),_.Q("design:type",Number)],Zz.prototype,"selectedRadioIndex",void 0);_.r([_.Y(),_.Q("design:type",String)],Zz.prototype,"selectedHandle",void 0);_.r([_.Y(),_.Q("design:type",Object)],Zz.prototype,"isLoading",void 0);_.r([_.Y(),_.Q("design:type",Function)],Zz.prototype,"onSelectedHandleChanged",void 0);
_.r([_.Y(),_.Q("design:type",Function)],Zz.prototype,"onSelectedRadioIndexChanged",void 0);_.r([_.TX("#channel-handle-input"),_.Q("design:type",Object)],Zz.prototype,"handleInput",void 0);_.r([_.TX("ytd-feedback-survey-renderer"),_.Q("design:type",Object)],Zz.prototype,"feedbackSurveyRenderer",void 0);_.r([_.w("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Zz.prototype,"radioButtonLength",null);
_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Zz.prototype,"handleUrlPrefix",null);_.r([_.w("selectedHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Zz.prototype,"displayHandle",null);_.r([_.w("selectedHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Zz.prototype,"displayHandleUrl",null);_.r([_.w("selectedHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Zz.prototype,"warningText",null);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Zz.prototype,"darkerDarkTheme",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.r([_.P({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Zz);
_.m(Zz,"ytd-handles-claiming-select-dialog-content",function(){if(g8Y!==void 0)return g8Y;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return g8Y=L},{mode:1});var FNq;var NB=function(){var L=_.e.apply(this,arguments)||this;L.actionButtonOverride={style:"mono",type:"filled",size:"M"};L.cancelButtonOverride={style:"mono",type:"text",size:"M"};L.initialRadioIndex="-1";L.selectButtonDisabled=!1;L.isLoading=!1;L.selectedRadioIndexChanged=function(Z){L.selectedRadioIndex=Number(Z.detail.value)};
L.selectedHandleChanged=function(Z){L.selectedHandle=Z.detail.value};
L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(NB,_.e);_.t=NB.prototype;_.t.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.t.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.t.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Ad(this.hostElement,"yt-refit-popups-action")};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.XJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.t.onSelectHandle=function(){var L=this;if(this.selectedHandle!==void 0){var Z;((Z=this.data)==null?void 0:Z.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(N,S){if(S.newHandleUpdateStatus!==void 0&&S.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&S.newHandleUpdateStatus.errorMessage)_.Ib(L.hostElement,_.jM(S.newHandleUpdateStatus.errorMessage)),
L.isLoading=!1;else{var u;if((u=L.data)==null?0:u.onChannelUpdateSuccess){N=L.data.onChannelUpdateSuccess;S=_.n(N,_.aw);var T;if(S==null?0:(T=S.popup)==null?0:T.handlesClaimingConfirmDialogRenderer)S.popup.handlesClaimingConfirmDialogRenderer.handle=_.s9(L.selectedHandle);L.ytComponentBehavior.resolveCommand(N);_.XJ(L.hostElement,"yt-close-popup-action",[L.is])}else L.isLoading=!1}},
onServerError:function(){if(L.selectedRadioIndex===L.radioButtonLength){var N;L.content&&((N=L.content)==null?0:N.handleInput)&&L.content.handleInput.validate()}L.isLoading=!1;_.Ib(L.hostElement,_.iB("TRY_AGAIN_LATER"))}}}))}};
_.t.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var L,Z;this.selectedHandle=(L=this.content)==null?void 0:(Z=L.handleInput)==null?void 0:Z.value}else this.selectedRadioIndex>=0&&((L=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(L==null?void 0:L.handle):this.selectedHandle=void 0)};
_.t.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.t.getRadioItem=function(L){if(this.radioButtonLength>L&&L>=0)return _.n(this.data.radioButton[L],IH0)};
_.gd.Object.defineProperties(NB.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var L;return(((L=this.data)==null?void 0:L.radioButton)||[]).length}}});
NB.prototype.onSelectedHandleChanged=NB.prototype.onSelectedHandleChanged;NB.prototype.onSelectedHandleIndexChanged=NB.prototype.onSelectedHandleIndexChanged;NB.prototype.onDataChanged=NB.prototype.onDataChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],NB.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],NB.prototype,"actionButtonOverride",void 0);_.r([_.Y(),_.Q("design:type",Object)],NB.prototype,"cancelButtonOverride",void 0);
_.r([_.Y(),_.Q("design:type",Object)],NB.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],NB.prototype,"initialRadioIndex",void 0);_.r([_.Y(),_.Q("design:type",Number)],NB.prototype,"selectedRadioIndex",void 0);_.r([_.Y(),_.Q("design:type",String)],NB.prototype,"selectedHandle",void 0);_.r([_.Y(),_.Q("design:type",Object)],NB.prototype,"selectButtonDisabled",void 0);_.r([_.Y(),_.Q("design:type",Object)],NB.prototype,"isLoading",void 0);
_.r([_.w("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],NB.prototype,"radioButtonLength",null);_.r([_.TX("ytd-handles-claiming-select-dialog-content"),_.Q("design:type",Object)],NB.prototype,"content",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],NB.prototype,"onDataChanged",null);
_.r([_.iA("selectedRadioIndex"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],NB.prototype,"onSelectedHandleIndexChanged",null);_.r([_.iA("selectedHandle"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],NB.prototype,"onSelectedHandleChanged",null);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],NB.prototype,"darkerDarkTheme",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],NB.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],NB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.P({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],NB);
_.m(NB,"ytd-handles-claiming-select-dialog-renderer",function(){if(FNq!==void 0)return FNq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return FNq=L},{mode:1});var $_v;var D_v;var SO=function(){return _.e.apply(this,arguments)||this};
_.f(SO,_.e);SO.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],SO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],SO.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],SO.prototype,"data",void 0);_.r([_.P({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],SO);
_.m(SO,"ytd-hotkey-dialog-section-option-renderer",function(){if(D_v!==void 0)return D_v;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return D_v=L},{mode:1});var ln8;var ib=function(){return _.e.apply(this,arguments)||this};
_.f(ib,_.e);ib.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ib.prototype,"data",void 0);_.r([_.P({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],ib);
_.m(ib,"ytd-hotkey-dialog-section-renderer",function(){if(ln8!==void 0)return ln8;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return ln8=L},{mode:1});var ub=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(ub,_.e);ub.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ub.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ub.prototype,"darkerDarkTheme",void 0);_.r([_.P({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],ub);
_.m(ub,"ytd-hotkey-dialog-content",function(){if($_v!==void 0)return $_v;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return $_v=L},{mode:1});var v8w;var T8=function(){return _.e.apply(this,arguments)||this};
_.f(T8,_.e);T8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var L=document.querySelector("ytd-hotkey-dialog-content #scrollable");L&&(L.dialogElement=this.hostElement.parentElement)};
T8.prototype.onCloseTap=function(){_.XJ(this.hostElement,"yt-close-popup-action")};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],T8.prototype,"data",void 0);_.r([_.P({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],T8);
_.m(T8,"ytd-hotkey-dialog-renderer",function(){if(v8w!==void 0)return v8w;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return v8w=L},{mode:1});var o8q;var tR=function(){return _.e.apply(this,arguments)||this};
_.f(tR,_.e);tR.prototype.onYtServiceRequestError=function(){if(this.blocked){var L;var Z=(L=this.data)==null?void 0:L.defaultServiceEndpoint}else{var N;Z=(N=this.data)==null?void 0:N.toggledServiceEndpoint}var S;(Z=(S=_.n(Z,_.ccl))==null?void 0:S.onFailureAction)&&this.ytComponentBehavior.resolveCommand(Z);this.updateBlockState(!this.blocked)};
tR.prototype.onYtToggleButton=function(L){this.updateBlockState(L.detail.toggled)};
tR.prototype.updateBlockState=function(L){if(L!==this.blocked){var Z=this.blockedEntityKey;Z&&this.ytdReduxBehavior.dispatch(_.Mr("blockStateEntity",Z,{key:Z,blocked:L}));this.set("data.isToggled",L)}};
_.gd.Object.defineProperties(tR.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)}}});
tR.prototype.onYtToggleButton=tR.prototype.onYtToggleButton;tR.prototype.onYtServiceRequestError=tR.prototype.onYtServiceRequestError;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],tR.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],tR.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],tR.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],tR.prototype,"blockedEntityKey",void 0);
_.r([_.Y({selectorArgs:["blockedEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"blockStateEntity",Z)}}),
_.Q("design:type",Object)],tR.prototype,"blockStateEntity",void 0);_.r([_.w("data","blockStateEntity"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],tR.prototype,"blocked",null);_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],tR.prototype,"onYtServiceRequestError",null);
_.r([_.SA("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],tR.prototype,"onYtToggleButton",null);_.r([_.P({is:"ytd-block-button",disableElementRegistration:!0})],tR);
_.m(tR,"ytd-block-button",function(){if(o8q!==void 0)return o8q;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return o8q=L},
{mode:1});var Rr0;var cAY;var O7=function(){return _.e.apply(this,arguments)||this};
_.f(O7,_.e);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],O7.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],O7.prototype,"data",void 0);_.r([_.P({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],O7);
_.m(O7,"ytd-kids-blocklist-picker-item-renderer",function(){if(cAY!==void 0)return cAY;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return cAY=L},{mode:1});var Wg=function(){return _.e.apply(this,arguments)||this};
_.f(Wg,_.e);Wg.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Wg.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Wg.prototype,"data",void 0);_.r([_.P({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Wg);
_.m(Wg,"ytd-kids-blocklist-picker-content",function(){if(Rr0!==void 0)return Rr0;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Rr0=
L},{mode:_.Qr("kevlar_poly_si_batch_j025")?1:2});var n85;var Vg=function(){var L=_.e.apply(this,arguments)||this;L.hasAnyRequestSucceeded=!1;L.hasAnyRequestFailed=!1;L.numPendingRequests=0;return L};
_.f(Vg,_.e);_.t=Vg.prototype;_.t.attached=function(){this.hostElement.setAttribute("dialog","")};
_.t.onDoneButtonTap=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.t.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.t.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.t.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.t.onPopupClosed=function(L){var Z,N;if(((Z=L.detail)==null?void 0:(N=Z.popup)==null?void 0:N.is)==="tp-yt-paper-dialog"){var S;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((S=this.data)==null?0:S.successfulToastActionMessage)&&(L=_.za(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(L));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
Vg.prototype.onPopupClosed=Vg.prototype.onPopupClosed;Vg.prototype.onYtServiceRequestError=Vg.prototype.onYtServiceRequestError;Vg.prototype.onYtServiceRequestCompleted=Vg.prototype.onYtServiceRequestCompleted;Vg.prototype.onYtServiceRequestSent=Vg.prototype.onYtServiceRequestSent;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Vg.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Vg.prototype,"data",void 0);_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vg.prototype,"onYtServiceRequestSent",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vg.prototype,"onYtServiceRequestCompleted",null);
_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vg.prototype,"onYtServiceRequestError",null);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Vg.prototype,"onPopupClosed",null);_.r([_.P({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Vg);
_.m(Vg,"ytd-kids-blocklist-picker-renderer",function(){if(n85!==void 0)return n85;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return n85=L},{mode:1});var KN8;var fns;var bb=function(){return _.e.apply(this,arguments)||this};
_.f(bb,_.e);bb.prototype.setTip=function(L){var Z=this;this.data&&(this.tip=tBy(uA8.getInstance(),L,this.data),_.bN(this,function(){_.QT(Z.hostElement,"yt-refit")}))};
bb.prototype.clearTip=function(){this.tip=void 0};
bb.prototype.computeHidden=function(L){return!L};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],bb.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.Q("design:type",Boolean)],bb.prototype,"hidden",void 0);_.r([_.Y(),_.Q("design:type",Object)],bb.prototype,"tip",void 0);_.r([_.P({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],bb);
_.m(bb,"ytd-menu-popup-tip-renderer",function(){if(fns!==void 0)return fns;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);
return fns=L},{mode:1});var kPy;var MB=function(){var L=_.e.apply(this,arguments)||this;L.useIcons=!1;L.systemIcons=_.c("kevlar_system_icons");L.useListItemStyles=_.c("web_list_item_style_for_menu_items");return L};
_.f(MB,_.e);_.t=MB.prototype;_.t.onFocus=function(){var L;(L=_.QJ(this.hostElement).querySelector("tp-yt-paper-item"))==null||L.focus()};
_.t.onTap=function(){var L=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(L&&_.n(L,_.q2))this.componentBehavior.resolveCommand(L),this.updateToggledStateInEntity();else if(L){this.componentBehavior.resolveCommand(L)||_.GR().resolve(_.$s).resolveCommand(L,{form:{element:this.hostElement}});var Z;((Z=_.n(L,_.ZW))==null?void 0:Z.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.t.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.t.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.t.updateToggledStateInEntity=function(){var L=this.data.toggleMenuServiceItemEntityKey,Z=!this.data.isToggled;L&&this.ytdReduxBehavior.dispatch(_.Mr("toggleMenuServiceItemEntity",L,{key:L,isToggled:Z}))};
_.t.computeIcon=function(L,Z,N){return(L=L?N:Z)&&L.iconType?_.Bh(L.iconType):""};
_.t.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.t.isIconActive=function(L){return!_.c("toggle_menu_active_icon_killswitch")&&L};
_.gd.Object.defineProperties(MB.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return((L=this.data)==null?0:L.isToggled)?(Z=this.data)==null?void 0:Z.toggledText:(N=this.data)==null?void 0:N.defaultText}}});
MB.prototype.toggledStateEntityChanged=MB.prototype.toggledStateEntityChanged;MB.prototype.onYtServiceRequestCompleted=MB.prototype.onYtServiceRequestCompleted;MB.prototype.onTap=MB.prototype.onTap;MB.prototype.onFocus=MB.prototype.onFocus;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],MB.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],MB.prototype,"componentBehavior",void 0);
_.r([_.y(_.CD),_.Q("design:type",Object)],MB.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],MB.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],MB.prototype,"useIcons",void 0);_.r([_.Y({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Q("design:type",String)],MB.prototype,"icon",void 0);
_.r([_.Y({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.hy.toggleMenuServiceItemEntitySelector}),_.Q("design:type",Object)],MB.prototype,"toggleMenuServiceItemEntity",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],MB.prototype,"systemIcons",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],MB.prototype,"useListItemStyles",void 0);
_.r([_.SA("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],MB.prototype,"onFocus",null);_.r([_.w("data.isToggled"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],MB.prototype,"toggleButtonText",null);_.r([_.SA("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],MB.prototype,"onTap",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],MB.prototype,"onYtServiceRequestCompleted",null);_.r([_.iA("toggleMenuServiceItemEntity.isToggled","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],MB.prototype,"toggledStateEntityChanged",null);_.r([_.P({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],MB);
_.m(MB,"ytd-toggle-menu-service-item-renderer",function(){if(kPy!==void 0)return kPy;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return kPy=L},{mode:1});var yAP;var gT=function(){return _.e.apply(this,arguments)||this};
_.f(gT,_.e);gT.prototype.onFocus=function(){var L;(L=_.QJ(this.hostElement).querySelector("tp-yt-paper-item"))==null||L.focus()};
_.gd.Object.defineProperties(gT.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.mY(this.data.iconUrl)}}});
gT.prototype.onFocus=gT.prototype.onFocus;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],gT.prototype,"rendererBehavior",void 0);_.r([_.y(_.o3.YtEndpointBehavior),_.Q("design:type",Object)],gT.prototype,"ytEndpointBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],gT.prototype,"data",void 0);_.r([_.SA("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gT.prototype,"onFocus",null);
_.r([_.w("data.iconUrl"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],gT.prototype,"imageSource",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],gT);
_.m(gT,"ytd-menu-custom-icon-item-renderer",function(){if(yAP!==void 0)return yAP;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return yAP=L},{mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});_.CY(_.QO,"yt-list-item-view-model",{props:{data:_.LK,isMenuItem:_.LK,isCompact:_.LK,onTap:_.zl,trailingAccessory:_.zl,hideSelectionTextChevron:_.LK,disabled:_.LK,inPopup:_.LK,disableHorizontalPadding:_.LK,isOverlay:_.LK,isToggled:_.LK,ariaLabel:_.LK,ariaPressed:_.LK}});var G8=function(){var L=_.e.apply(this,arguments)||this;L.disableBackdropFilter=_.c("web_disable_backdrop_filter");return L};
_.f(G8,_.e);_.t=G8.prototype;
_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.t.computeAriaLabel=function(L){return L};
_.t.onPopupOpened=function(){this.items.selected=0;for(var L=_.O(_.QJ(this.items).children),Z=L.next();!Z.done;Z=L.next())Z.value.popupPositionTarget=this.positionTarget;if(L=this.popupTip||void 0)L.setTip(this.source||""),this.source=void 0;this.veData&&(L=_.RH())&&_.aq(L,[this.veData])};
_.t.onPopupClosed=function(){var L=this.popupTip||void 0;L&&L.clearTip()};
_.t.onIronActivate=function(L){this.shouldPersist(L)||_.XJ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(L=_.RH())&&_.sT(L,this.veData)};
_.t.shouldPersist=function(L){var Z,N;if(((Z=L.detail)==null?void 0:Z.selected)===void 0||(N=this.data)==null||!N.items)return!1;var S,u;return!((u=(S=this.data.items[L.detail.selected])==null?void 0:S.toggleMenuServiceItemRenderer)==null||!u.persistentOnMenuPopup)};
_.t.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(L){return L.menuNavigationItemRenderer?!!L.menuNavigationItemRenderer.icon:L.menuServiceItemRenderer?!!L.menuServiceItemRenderer.icon:L.menuConditionalServiceItemRenderer?!!L.menuConditionalServiceItemRenderer.icon:L.menuConditionalNavigationItemRenderer?!!L.menuConditionalNavigationItemRenderer.icon:L.toggleMenuServiceItemRenderer?!!L.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
G8.prototype.onPopupClosed=G8.prototype.onPopupClosed;G8.prototype.onPopupOpened=G8.prototype.onPopupOpened;_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],G8.prototype,"ytEventForwardingBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],G8.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],G8.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],G8.prototype,"veData",void 0);_.r([_.Y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.Q("design:type",String)],G8.prototype,"ariaLabel",void 0);_.r([_.Y({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],G8.prototype,"useIcons",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],G8.prototype,"disableBackdropFilter",void 0);_.r([_.TX("#items"),_.Q("design:type",Object)],G8.prototype,"items",void 0);_.r([_.TX("ytd-menu-popup-tip-renderer"),_.Q("design:type",Object)],G8.prototype,"popupTip",void 0);_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G8.prototype,"onPopupOpened",null);
_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G8.prototype,"onPopupClosed",null);_.r([_.P({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],G8);
_.m(G8,"ytd-menu-popup-renderer",function(){if(KN8!==void 0)return KN8;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return KN8=L},{mode:1});var wuq;var U_q=_.p(function(L){L=_.Ek(L,{icon:void 0});var Z=L.data;L=L.icon;var N=function(){return Z().iconBadgeText},S={},u=_.qg("yt-spec-icon-badge-shape",function(){a:switch(Z().iconBadgeType){case "notification":var T="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":T="yt-spec-icon-badge-shape--type-cart";break a;default:T=""}return T},function(){a:switch(Z().iconBadgeStyle){case "overlay":var T="yt-spec-icon-badge-shape--style-overlay";
break a;default:T=""}return T},(S["yt-spec-icon-badge-shape--text-size-small"]=function(){var T=N();
return!!((T==null?0:T.length)&&T.length>2)},S));
return _.g("yt-icon-badge-shape",null,_.g(_.F,{cond:L,then:function(T){return _.g("div",{class:u},_.g("div",{class:"yt-spec-icon-badge-shape__icon"},_.g(_.T0,{icon:T})),_.g(_.F,{cond:N,then:function(W){return _.g("div",{class:"yt-spec-icon-badge-shape__badge"},W)}}))}}))},"ij");
U_q.idomCompat=!0;_.CY(U_q,"yt-icon-badge-shape",{props:{data:_.LK,icon:_.LK}});var FC=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};L.unseenCount=0;L.isOverlay=!1;return L};
_.f(FC,_.e);_.t=FC.prototype;_.t.attached=function(){var L=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(Z){L.onServiceWorkerMessage(Z)})};
_.t.onDataChanged=function(){this.isAttached&&!this.JSC$20744_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20744_lastData=this.data};
_.t.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.t.computeIcon=function(){var L,Z;return(L=this.data)==null?void 0:(Z=L.icon)==null?void 0:Z.iconType};
_.t.onServiceWorkerMessage=function(L){L.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.t.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.n(this.data.updateUnseenCountEndpoint,_.ZW)&&_.n(this.data.updateUnseenCountEndpoint,_.ZW).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.t.handleUpdateNotificationsUnseenCountAction=function(L){var Z=this;L=_.n(L,ngm);L!=null&&L.unseenCount&&L.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(L.unseenCount),_.ro.addLowPriorityJob(function(){Z.data.updateUnseenCountEndpoint&&Z.ytComponentBehavior.resolveCommand(Z.data.updateUnseenCountEndpoint)},L.timeoutMs))};
_.t.onClick=function(){_.QT(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var L=_.Ad(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),Z=this.data.menuRequest;L&&L.length===1&&L[0]?_.XJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.t.handleTopbarMenuClosedAction=function(L){L==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.t.toggleIconState=function(L){this.iconButton&&(this.iconButton.pressed=L)};
_.t.sendUnseenCountRequest=function(L){var Z=this;_.sI(_.ro,function(){Z.ytComponentBehavior.resolveCommand(L)})};
_.t.updateCountUI=function(L){this.set("unseenCount",L<9?L:"9+")};
_.gd.Object.defineProperties(FC.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
FC.prototype.handleUpdateNotificationsUnseenCountAction=FC.prototype.handleUpdateNotificationsUnseenCountAction;FC.prototype.onDataChanged=FC.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],FC.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.W0),_.Q("design:type",Object)],FC.prototype,"ytdOpenPopupBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],FC.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],FC.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],FC.prototype,"unseenCount",void 0);_.r([_.Y(),_.Q("design:type",Object)],FC.prototype,"isOverlay",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],FC.prototype,"showTooltips",void 0);_.r([_.TX("yt-icon-button"),_.Q("design:type",Object)],FC.prototype,"iconButton",void 0);
_.r([_.w("unseenCount"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],FC.prototype,"showNotificationCount",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],FC.prototype,"onDataChanged",null);_.r([_.SA("yt-update-notifications-unseen-count-action"),_.Q("design:type",Function),_.Q("design:paramtypes",[Object]),_.Q("design:returntype")],FC.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.r([_.P({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],FC);
_.m(FC,"ytd-notification-topbar-button-renderer",function(){if(wuq!==void 0)return wuq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return wuq=L},{mode:_.Qr("kevlar_poly_si_batch_j025")?1:2});var YXv;var $n=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return L};
_.f($n,_.e);$n.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}}}}}};
$n.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
$n.prototype.onDarkModeToggled=function(L){this.dark=L};
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],$n.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],$n.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],$n.prototype,"data",void 0);_.r([_.Y({value:!0,reflectToAttribute:!0}),_.Q("design:type",Boolean)],$n.prototype,"dark",void 0);
_.r([_.P({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],$n);
_.m($n,"yt-pdg-buy-flow-header-renderer",function(){if(YXv!==void 0)return YXv;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return YXv=L},{mode:1});var erP;var InQ;var Dz=function(){var L=_.e.apply(this,arguments)||this;L.immediateValue=0;L.isDarkTheme=!1;L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return L};
_.f(Dz,_.e);_.t=Dz.prototype;_.t.created=function(){_.HD.requestAvailability()};
_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.t.dataChanged=function(){var L=_.QJ(this.hostElement).querySelector("#color-slider");L.immediateValue&&this.updateSliderKnobAndGradientStyles(L.immediateValue);this.data.notches[0].knobColorArgb&&_.Ld(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Rs(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.X7("HTML_DIR")==="rtl"&&_.QJ(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.t.onSliderImmediateChange=function(){var L=_.QJ(this.hostElement).querySelector("#color-slider");L.dragging&&(L.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(L.immediateValue),this.updateSliderKnobAndGradientStyles(L.immediateValue)),this.updateSliderAria())};
_.t.onSliderChange=function(){var L=_.QJ(this.hostElement).querySelector("#color-slider");L.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(L.immediateValue),this.updateSliderKnobAndGradientStyles(L.immediateValue));this.updateSliderAria()};
_.t.updateSliderAria=function(){var L=_.QJ(this.hostElement).querySelector("#color-slider"),Z=_.QJ(this.hostElement).querySelector("#color-slider");Z=_.jM(this.data.notches[Z.immediateValue].tierValue);_.l0w()&&_.QT(this.hostElement,"iron-announce",{text:Z});L.setAttribute("aria-valuetext",Z)};
_.t.updateSuperThanksSelectedTierEntity=function(L){if(L!==this.immediateValue){var Z,N,S=this==null?void 0:(Z=this.data)==null?void 0:(N=Z.superThanksSelectedTierEntity)==null?void 0:N.key;S&&S.length>0&&this.ytdReduxBehavior.dispatch(_.Mr("superThanksSelectedTierEntity",S,{key:S,index:L}))}};
_.t.onDarkModeToggledAction=function(L){this.isDarkTheme=L};
_.t.updateSliderKnobAndGradientStyles=function(L){this.immediateValue=L;L=this.data.notches[L];if(L==null?0:L.knobColorArgb)var Z={"--ytd-pdg-color-slider-knob-color":_.Rs(L.knobColorArgb)};(L==null?0:L.linearGradientCssStyle)&&Z!==null&&(Z=Object.assign({},Z,{"--ytd-pdg-color-slider-active-color":L==null?void 0:L.linearGradientCssStyle}));Z!==null&&_.Ld(this.hostElement,Z)};
Dz.prototype.onSliderChange=Dz.prototype.onSliderChange;Dz.prototype.onSliderImmediateChange=Dz.prototype.onSliderImmediateChange;Dz.prototype.dataChanged=Dz.prototype.dataChanged;_.r([_.Y(),_.Q("design:type",Object)],Dz.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Dz.prototype,"immediateValue",void 0);_.r([_.Y(),_.Q("design:type",Number)],Dz.prototype,"maxMarkers",void 0);
_.r([_.Y({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:twv}),_.Q("design:type",Object)],Dz.prototype,"superThanksSelectedTierEntity",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Dz.prototype,"isDarkTheme",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Dz.prototype,"ytdReduxBehavior",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Dz.prototype,"dataChanged",null);
_.r([_.SA("immediate-value-change"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Dz.prototype,"onSliderImmediateChange",null);_.r([_.SA("change"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Dz.prototype,"onSliderChange",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Dz);
_.m(Dz,"ytd-pdg-color-slider-renderer",function(){if(InQ!==void 0)return InQ;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return InQ=L},{mode:1});var d_v;var anc;var lb=null;
_.DU({is:"ytd-comment-input",_template:function(){if(anc!==void 0)return anc;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return anc=L},
behaviors:[_.q50.YtHostElementBehavior,_.Ub,_.rH.YtComponentBehavior,_.WS.YtRendererstamperBehavior,_.Xm0.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 _.qN}},
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",_.Nd(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;_.vL();this.focus()},
detached:function(){document.removeEventListener("tap",_.Nd(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(L){L=L.detail;L=L.isCustomEmoji?L.shortcuts[0]:L.emojiId;var Z=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(Z,L);this.maybeUpdateTextDirection_();_.QT(this.hostElement,"input")},
getInputRange_:function(){var L=_.HT();if(L){L=L.getBrowserRangeObject();for(var Z=L.commonAncestorContainer;Z;){if(Z===this.getEditableTextArea_())return L;Z=Z.parentNode}}L=this.getEditableTextArea_();L=_.mV(L,L.childNodes.length);L.select();return L.getBrowserRangeObject()},
insertTextWithEmojis_:function(L,Z,N){(Z=this.emojiManager.createDocumentFragment(Z,!0,!1,N===void 0?!0:N))&&Z.childNodes.length!==0&&(L.collapsed||L.deleteContents(),N=Z.lastChild,L.insertNode(Z),_.u6M(N).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var L=_.HT();if(L){var Z=L.JSC$11350_getStartNode(),N=L.JSC$11350_getEndNode();if(Cmc(Z)&&Cmc(N)){var S=L.JSC$11350_getStartOffset(),u;if(_.Zi&&Z.nodeType===Node.ELEMENT_NODE&&(u=_.urq(Z)))_.mV(u,0).select();else{u=Sv(Z)?Z:_.rF(Z,Sv);var T=Sv(N)?N:_.rF(N,Sv);if(u||T)if(L.isCollapsed()){if(Z.nodeType===Node.TEXT_NODE){L=!0;S===Z.length&&(L=!1);if(lb==="end"||lb==="right")L=!1;Z=Z.parentNode;L=[].concat(_.Pd(Z.parentNode.childNodes)).indexOf(Z)+(L?0:1);_.mV(Z.parentNode,
L).select()}}else u?u.previousSibling&&u.previousSibling.length>0?_.Jp(N,L.JSC$11350_getEndOffset(),u.previousSibling,u.previousSibling.length-1).select():(Z=document.createTextNode("\u200b"),u.parentNode.insertBefore(Z,u),_.Jp(N,L.JSC$11350_getEndOffset(),Z,0).select()):T&&(T.nextSibling&&T.nextSibling.length>0?_.Jp(Z,L.JSC$11350_getStartOffset(),T.nextSibling,1).select():(N=document.createTextNode("\u200b"),T.parentNode.insertBefore(N,T.nextSibling),_.Jp(Z,L.JSC$11350_getStartOffset(),N,N.length).select()));
lb=null}}else lb=null}else lb=null},
leftKeyPressed_:function(){lb="left"},
rightKeyPressed_:function(){lb="right"},
endKeyPressed_:function(){lb="end"},
maybeDeleteChip_:function(){var L=BcP(!0);if(L){var Z=_.HT(),N=Z.JSC$11350_getStartNode();Z=Z.JSC$11350_getStartOffset();_.jR(N,Z,L,L.childNodes.length).select()}},
maybeBackspaceChip_:function(){var L=BcP(!1);if(L){var Z=_.HT(),N=Z.JSC$11350_getStartNode();Z=Z.JSC$11350_getStartOffset();_.jR(N,Z,L,0).select()}},
maybeBackspaceChipWordMode_:function(L){var Z=_.HT();if(Z.isCollapsed()){var N=Z.JSC$11350_getStartNode();Z=Z.JSC$11350_getStartOffset();var S=xHv(N,Z,!0);S&&(_.jR(N,Z,S,0).select(),document.execCommand("delete"),L.preventDefault(),L.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(L){var Z=_.HT();if(Z.isCollapsed()){var N=Z.JSC$11350_getStartNode();Z=Z.JSC$11350_getStartOffset();var S=xHv(N,Z,!1);S&&(_.jR(N,Z,S,S.childNodes.length).select(),document.execCommand("delete"),L.preventDefault(),L.stopImmediatePropagation())}},
onContentClick:function(L){L.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(L){L.defaultPrevented||L.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Sv(L.target)&&L.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.QJ(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.QJ(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(L,Z){L=Qjw(L,this.emojiManager,Z).cloneNode(!0);for(Z=L.firstChild;Z;)if(Z.nodeType!==1)Z=Z.nextSibling;else switch(Z.tagName){case "BR":var N=_.Uy();_.ghl(N,Z);Z=N.nextSibling;break;case "DIV":(N=Z.lastChild)&&Z.nextSibling&&_.dI(_.Uy(),N);Z.previousSibling&&(Z.previousSibling.nodeType===1||Z.previousSibling.nodeType===3&&!Z.previousSibling.textContent.endsWith("\n"))&&_.In(_.Uy(),Z);N&&N.nodeName==="BR"&&_.U_(N);N=Z;Z.hasChildNodes()?(Z=Z.firstChild,
_.GFO(N)):(Z=Z.nextSibling,_.U_(N));break;default:Z=Z.nextSibling}return qcY(L)},
setTextAreaValue:function(L){L||(L="");var Z=this.getEditableFormattedString_();Z.text="";this.getEditableTextArea_().innerText="";typeof L==="string"&&(L={runs:[{text:L}]});Z.text=L},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();lb=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var L=this.getEditableTextArea_();L&&(_.mV(L,L.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.X7("HTML_DIR")==="rtl"){var L=this.getEditableTextArea_(),Z=this.getTextAreaValue()!==""?"auto":"rtl";L.setAttribute("dir",Z)}},
handleInputEvent_:function(){var L=null;if(this.isEmojiButtonDisplayed){var Z=this.getInputRange_();Z&&(L=this.emojiInput.retrieveTextBeforeRange(Z))}this.insertText_(L,!0);this.updateCharCount_();L=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=L.scrollHeight>L.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var L=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:L})},
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(L){this.isEmojiButtonDisplayed&&(L.preventDefault(),L.stopImmediatePropagation(),L=L.clipboardData.getData("text/plain"),this.insertText_(L,!1,!1),_.QT(this.hostElement,"input"))},
insertText_:function(L,Z,N){Z=Z===void 0?!1:Z;N=N===void 0?!0:N;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&L){var S=this.getInputRange_().cloneRange();this.emojiManager&&S&&(Z&&this.emojiInput.offsetStartOfRangeBy(S,L.length),this.insertTextWithEmojis_(S,L,N),r9k(this.getEditableTextArea_().lastChild)||(S=this.getInputRange_().cloneRange()),S&&(this.emojiInput.updateSuggestions(S,L),this.updateSuggestionOffset_(S)))}},
getSimpleString:_.jM,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(L){return L?"focused":"not-focused"},
computePlaceholderText_:function(L){return this.getSimpleString(L)},
computeEditableText_:function(L){return this.getSimpleString(L)},
onPrefilledContentDismissed_:function(L){L.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(L,Z){L?this.fire("yt-autonav-pause-focus"):Z!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(L){var Z=this.getEditableTextArea_();[].concat(_.Pd(L.dataTransfer.items)).forEach(function(N){N.kind==="string"&&N.type.match("^text/plain")&&N.getAsString(function(S){Z.appendChild(document.createTextNode(S))})});
L.preventDefault()},
preventDefault_:function(L){L.preventDefault()},
onSuggestionInsert_:function(L){this.insertTextWithEmojis_(L.detail.range,L.detail.text)},
onEmojiSuggestionClick_:function(L){this.emojiInput.insertSuggestion(L.detail)},
updateSuggestionOffset_:function(L){if(this.emojiInput&&_.QJ(this.emojiInput).querySelector("#dropdown")){var Z=this.getEditableTextArea_().getBoundingClientRect().bottom,N=L.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(Z-N)+5;Z=this.getEditableTextArea_().getBoundingClientRect().left;L=L.getBoundingClientRect().left-Z;_.QJ(this.emojiInput).querySelector("#dropdown").style.marginLeft=L+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Bx("yt-post"));return this.localStorage}});var vg=function(){var L=_.e.apply(this,arguments)||this;L.currentCommentOptionIndex=0;L.isEmojiPickerDisplayed=!1;L.emojiManager=_.qN;L.isUgcEmpty=!1;L.userGeneratedCommentChangedHandler=function(){_.QT(L.hostElement,"ytd-pdg-user-generated-comment-changed");L.isEmojiYtdCommentInputEnabled&&(L.isUgcEmpty=!L.ytdCommentInputEl.getTextAreaValue())};
L.pasteHandler=function(Z){Z.preventDefault();Z.stopImmediatePropagation();var N;if(Z=(N=Z.clipboardData)==null?void 0:N.getData("text/plain"))N=document.getSelection().getRangeAt(0),N.collapsed||N.deleteContents(),Z=document.createTextNode(Z),N.insertNode(Z),N.selectNodeContents(Z),N.collapse(!1),Z=window.getSelection(),Z.removeAllRanges(),Z.addRange(N)};
L.onDocumentClick=function(Z){if(L.isEmojiPickerDisplayed){var N,S,u;!(Z.target instanceof Node)||(N=Z.composedPath())!=null&&N.includes(L.editableTextEl)||(S=Z.composedPath())!=null&&S.includes(L.emojiButtonEl)||(u=Z.composedPath())!=null&&u.includes(L.emojiPickerEl)||(L.isEmojiPickerDisplayed=!1)}};
return L};
_.f(vg,_.e);_.t=vg.prototype;_.t.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.t.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.t.detached=function(){var L;(L=this.contentEl)==null||L.removeEventListener("input",this.userGeneratedCommentChangedHandler);var Z;(Z=this.contentEl)==null||Z.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.t.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.t.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var L;this.contentEl.textContent=this.rendererBehavior.getSimpleString((L=this.data)==null?void 0:L.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.t.reloadEmojis=function(){this.emojiPickerEl&&_.n(this.emojiPicker,_.S$h)&&this.emojiPickerEl.updateEmojiCategories()};
_.t.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Ld(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.t.handleBackgroundColorStyling=function(){var L;if((L=this.currentCommentOption)==null?0:L.commentBackgroundColorArgb){var Z;_.Ld(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Rs((Z=this.currentCommentOption)==null?void 0:Z.commentBackgroundColorArgb)})}else _.Ld(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.t.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var L;(L=this.contentEl)==null||L.focus()}};
_.t.onEditButtonClick=function(L){var Z=document.getSelection();Z&&this.contentEl&&(L.stopPropagation(),L.preventDefault(),Z.selectAllChildren(this.contentEl),Z.collapseToEnd())};
_.t.onContentDrop=function(L){var Z=this;if(L.dataTransfer){L=_.O(L.dataTransfer.items);for(var N=L.next();!N.done;N=L.next())N=N.value,N.kind==="string"&&N.type.match("^text/plain")&&N.getAsString(function(S){var u;(u=Z.contentEl)==null||u.appendChild(document.createTextNode(S))})}};
_.t.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.t.getUserGeneratedCommentText=function(){var L,Z=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(L=this.contentEl)==null?void 0:L.textContent;return Z?Z.trim():""};
_.t.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.t.onEmojiSelect=function(L){this.ytdCommentInputEl.onEmojiSelect(L)};
_.gd.Object.defineProperties(vg.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.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 L;return!((L=this.currentCommentOption)==null||!L.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var L;if(_.n((L=this.currentCommentOption)==null?void 0:L.chipRenderer,_.fA0)){var Z;return _.n((Z=this.currentCommentOption)==null?void 0:Z.chipRenderer,_.fA0)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var L,Z;return((L=this.data)==null?0:L.commentOptionRenderers)?_.n((Z=this.data)==null?void 0:Z.commentOptionRenderers[this.superThanksSelectedTierEntity.index],HNw):void 0}var N,S;return((N=this.data)==null?0:N.commentOptionRenderers)?_.n((S=this.data)==null?void 0:S.commentOptionRenderers[this.currentCommentOptionIndex],HNw):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var L;return this.rendererBehavior.getSimpleString((L=this.data)==null?void 0:L.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var L;return this.rendererBehavior.getSimpleString((L=this.data)==null?void 0:L.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var L,Z;return(Z=_.n((L=this.data)==null?void 0:L.commentDialog,_.Rys))==null?void 0:Z.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var L,Z;return(Z=_.n((L=this.data)==null?void 0:L.commentDialog,_.Rys))==null?void 0:Z.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var L,Z;return(Z=_.n((L=this.data)==null?void 0:L.commentDialog,_.Rys))==null?void 0:Z.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=(Z=_.n((L=this.data)==null?void 0:L.commentDialog,_.Rys))==null?void 0:Z.emojiPicker;if(!_.n(N,_.S$h)||!_.n(N,_.S$h).categories)return!1;L=function(T){return T.emojiPickerCategoryRenderer?T.emojiPickerCategoryRenderer.emojiIds&&T.emojiPickerCategoryRenderer.emojiIds.length>0:T.emojiPickerUpsellCategoryRenderer?T.emojiPickerUpsellCategoryRenderer.emojis&&T.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var S,u;return((S=_.n(N,_.S$h))==null?0:(u=S.categories)==null?0:u.find(L))?!0:!1}}});
vg.prototype.onEmojiSelect=vg.prototype.onEmojiSelect;vg.prototype.dataChanged=vg.prototype.dataChanged;vg.prototype.currentCommentOptionChanged=vg.prototype.currentCommentOptionChanged;_.r([_.y(_.CD),_.Q("design:type",Object)],vg.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],vg.prototype,"rendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.TX("#content-dom-if"),_.Q("design:type",_.vh)],vg.prototype,"contentDomIfEl",void 0);_.r([_.TX("#content-no-emojis"),_.Q("design:type",HTMLElement)],vg.prototype,"contentEl",void 0);_.r([_.TX("#container"),_.Q("design:type",HTMLElement)],vg.prototype,"containerEl",void 0);_.r([_.TX("#comment-chip-container"),_.Q("design:type",HTMLElement)],vg.prototype,"paidCommentChipContainerEl",void 0);_.r([_.TX("#text-input"),_.Q("design:type",HTMLElement)],vg.prototype,"editableTextEl",void 0);
_.r([_.TX("#emoji-button"),_.Q("design:type",HTMLElement)],vg.prototype,"emojiButtonEl",void 0);_.r([_.TX("#emoji-picker > yt-emoji-picker-renderer"),_.Q("design:type",Object)],vg.prototype,"emojiPickerEl",void 0);_.r([_.TX("#text-input > ytd-comment-input"),_.Q("design:type",Object)],vg.prototype,"ytdCommentInputEl",void 0);_.r([_.Y(),_.Q("design:type",Object)],vg.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],vg.prototype,"currentCommentOptionIndex",void 0);
_.r([_.Y({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:twv}),_.Q("design:type",Object)],vg.prototype,"superThanksSelectedTierEntity",void 0);_.r([_.Y(),_.Q("design:type",Object)],vg.prototype,"isEmojiPickerDisplayed",void 0);_.r([_.Y(),_.Q("design:type",Object)],vg.prototype,"emojiManager",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],vg.prototype,"isUgcEmpty",void 0);
_.r([_.iA("currentCommentOption"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vg.prototype,"currentCommentOptionChanged",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vg.prototype,"dataChanged",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],vg.prototype,"isEmojiYtdCommentInputEnabled",null);
_.r([_.w("data.title"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vg.prototype,"title",null);_.r([_.w("data.authorText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vg.prototype,"channelName",null);_.r([_.w("data.commentOptionRenderers","currentCommentOption"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],vg.prototype,"shouldShowPaidCommentChipRenderer",null);
_.r([_.w("data.commentOptionRenderers","currentCommentOption"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vg.prototype,"paidCommentChipRenderer",null);_.r([_.w("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vg.prototype,"currentCommentOption",null);
_.r([_.w("data.defaultCommentText","superThanksSelectedTierEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vg.prototype,"commentText",null);_.r([_.w("data.placeholderText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vg.prototype,"placeholderText",null);_.r([_.w("data.commentDialog.commentDialogRenderer.editableText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vg.prototype,"editableText",null);
_.r([_.w("data.commentDialog.commentDialogRenderer.emojiButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vg.prototype,"emojiButton",null);_.r([_.w("data.commentDialog.commentDialogRenderer.emojiPicker"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vg.prototype,"emojiPicker",null);
_.r([_.w("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],vg.prototype,"isEmojiButtonDisplayed",null);_.r([_.SA("yt-emoji-select"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],vg.prototype,"onEmojiSelect",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],vg);
_.m(vg,"ytd-pdg-comment-preview-renderer",function(){if(d_v!==void 0)return d_v;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return d_v=L},{mode:2});var hr5;var o$=function(){var L=_.e.apply(this,arguments)||this;L.selected=!1;return L};
_.f(o$,_.e);_.t=o$.prototype;_.t.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.t.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.t.dataChanged=function(){this.data&&(_.XB(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Ld(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Rs(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Rs(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.t.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.t.onClick=function(){this.logClick()};
_.t.onKeyboardSelect=function(){_.QT(this.hostElement,"tap");this.onClick()};
_.t.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
o$.prototype.onClick=o$.prototype.onClick;o$.prototype.selectedChanged=o$.prototype.selectedChanged;o$.prototype.dataChanged=o$.prototype.dataChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],o$.prototype,"componentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Ub),_.Q("design:type",Object)],o$.prototype,"ironA11yKeysBehavior",void 0);
_.r([_.y(_.I_),_.Q("design:type",Object)],o$.prototype,"ironSelectableBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],o$.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],o$.prototype,"shownThumbnail",void 0);_.r([_.Y(),_.Q("design:type",Object)],o$.prototype,"basePriceText",void 0);_.r([_.Y(),_.Q("design:type",Object)],o$.prototype,"purchaseCommand",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],o$.prototype,"selected",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],o$.prototype,"dataChanged",null);_.r([_.iA("selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],o$.prototype,"selectedChanged",null);_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],o$.prototype,"onClick",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],o$);
_.m(o$,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(hr5!==void 0)return hr5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return hr5=L},{mode:1});var R$=function(){var L=_.e.apply(this,arguments)||this;L.selectedItemIndex=0;L.buyButtonDisabled=!1;return L};
_.f(R$,_.e);_.t=R$.prototype;
_.t.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]]"}}}}}};
_.t.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var L;var Z=(L=_.n(this.data.colorSlider,AIv))==null?void 0:L.notches[this.selectedItemIndex].purchaseCommand}else{var N;Z=(N=_.n(this.data.selectableItemButtons[this.selectedItemIndex],x1Y))==null?void 0:N.purchaseCommand}if(Z){L=_.n(Z,_.bNt);L.productData||(L.productData={});var S;L.productData={pdgData:{commentMessageText:(S=this.commentPreviewRenderer)==null?void 0:S.getUserGeneratedCommentText()}};
_.QT(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(Z)}}};
_.t.dataChanged=function(){if(this.data){_.qN.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.KsV(_.qN,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.qN.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var L;this.buyButtonDisabled=!((L=_.n(this.data.commentPreview,BLw))==null||!L.placeholderText);this.updatePriceSelectorStatus();var Z;if((Z=this.data)==null?0:Z.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;L=[];this.data.preloadImages&&(L=this.data.preloadImages);
L=L.map(function(N){return _.r$(N.thumbnails,1920)});
L=_.O(L);for(Z=L.next();!Z.done;Z=L.next())(Z=Z.value)&&_.a6G(Z).thenCatch(function(){_.Q7(Error("Hl"))})}};
_.t.superThanksSelectedTierEntityChanged=function(){var L;(this==null?void 0:(L=this.superThanksSelectedTierEntity)==null?void 0:L.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.t.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.t.updatePriceSelectorStatus=function(){this.isColorSlider?(_.QJ(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.QJ(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.QJ(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.QJ(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.t.closeBuyFlow=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.t.onUserGeneratedContentChanged=function(){var L;this.buyButtonDisabled=!((L=this.commentPreviewRenderer)==null?0:L.getUserGeneratedCommentText())};
_.t.updateSelectedItemIndexFromBinding=function(L){this.selectedItemIndex=L.detail.value};
_.gd.Object.defineProperties(R$.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var L;return!((L=this.data)==null||!L.disclaimerText)}}});
R$.prototype.onUserGeneratedContentChanged=R$.prototype.onUserGeneratedContentChanged;R$.prototype.closeBuyFlow=R$.prototype.closeBuyFlow;R$.prototype.selectedItemIndexChanged=R$.prototype.selectedItemIndexChanged;R$.prototype.superThanksSelectedTierEntityChanged=R$.prototype.superThanksSelectedTierEntityChanged;R$.prototype.dataChanged=R$.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],R$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],R$.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],R$.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],R$.prototype,"selectedItemIndex",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],R$.prototype,"isColorSlider",void 0);
_.r([_.Y(),_.Q("design:type",Object)],R$.prototype,"buyButtonDisabled",void 0);_.r([_.Y({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:twv}),_.Q("design:type",Object)],R$.prototype,"superThanksSelectedTierEntity",void 0);_.r([_.TX("ytd-pdg-comment-preview-renderer"),_.Q("design:type",Object)],R$.prototype,"commentPreviewRenderer",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],R$.prototype,"ytdReduxBehavior",void 0);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],R$.prototype,"dataChanged",null);_.r([_.iA("superThanksSelectedTierEntity"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],R$.prototype,"superThanksSelectedTierEntityChanged",null);_.r([_.iA("selectedItemIndex"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],R$.prototype,"selectedItemIndexChanged",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],R$.prototype,"closeBuyFlow",null);_.r([_.SA("ytd-pdg-user-generated-comment-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],R$.prototype,"onUserGeneratedContentChanged",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],R$.prototype,"isDisclaimerTextShown",null);
_.r([_.P({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],R$);
_.m(R$,"yt-super-vod-buy-flow-content-renderer",function(){if(erP!==void 0)return erP;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return erP=L},{mode:1});var shw;var cg=function(){var L=_.e.apply(this,arguments)||this;L.lottieAnimationRef={};return L};
_.f(cg,_.e);_.t=cg.prototype;_.t.created=function(){_.HD.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Nd(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.t.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.QT(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.t.detached=function(){this.autoCloseJobId&&_.ro.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Nd(this,this.onPopupIronOverlayOpened))};
_.t.dataChanged=function(){var L=this;this.data&&this.data.autoCloseDelay&&(_.XJ(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.H9(_.ro,function(){L.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Ld(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.t.onDOMLoadedLottie=function(){var L=this,Z,N,S=Number((Z=this.data)==null?void 0:(N=Z.autoCloseDelay)==null?void 0:N.seconds)||0;this.fadeOutJobId=_.H9(_.ro,function(){L.lottiePlayerEl.classList.add("fadeout")},(S-.25)*1E3);
this.autoCloseJobId=_.H9(_.ro,function(){L.closePopup()},S*1E3)};
_.t.openPopup=function(){this.ironOverlayBehavior.open()};
_.t.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.XJ(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.B2(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.GR().resolve(_.$s).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.ro.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.ro.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.t.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var L,Z;(L=this.lottieAnimationRef)==null||(Z=L.lottieEl)==null||Z.destroy();L=this.data.lottie;var N,S;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:L.url+"_"+Math.random(),path:L.url,autoplay:!0,loop:(S=(N=L.settings)==null?void 0:N.loop)!=null?S:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.gd.Object.defineProperties(cg.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var L,Z;return!!((L=this.data)==null?0:(Z=L.lottie)==null?0:Z.url)}}});
cg.prototype.maybeInitializeLottie=cg.prototype.maybeInitializeLottie;cg.prototype.dataChanged=cg.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],cg.prototype,"rendererBehavior",void 0);_.r([_.y(_.Zs),_.Q("design:type",Object)],cg.prototype,"ironOverlayBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],cg.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],cg.prototype,"lottiePlayerProps",void 0);
_.r([_.Y(),_.Q("design:type",Object)],cg.prototype,"lottieAnimationRef",void 0);_.r([_.TX("ytd-lottie-player"),_.Q("design:type",HTMLElement)],cg.prototype,"lottiePlayerEl",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cg.prototype,"dataChanged",null);_.r([_.w("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],cg.prototype,"hasLottieAnimation",null);
_.r([_.iA("data.lottie.url"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cg.prototype,"maybeInitializeLottie",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],cg);
_.m(cg,"ytd-desktop-image-overlay-renderer",function(){if(shw!==void 0)return shw;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return shw=L},{mode:1});var jhv;var ni=function(){return _.e.apply(this,arguments)||this};
_.f(ni,_.e);_.t=ni.prototype;_.t.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"}}}}};
_.t.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",_.Nd(this,this.closePopup))};
_.t.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Nd(this,this.closePopup))};
_.t.dataChanged=function(){_.Ad(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.n(this.data.header,XAv)&&(this.hasBackgroundBanner=!!_.n(this.data.header,XAv).backgroundBanner)};
_.t.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Nd(this,this.closePopup))};
_.t.closePopup=function(){this.data&&this.data.onCloseCommand&&_.H2(this.hostElement,[this.data.onCloseCommand])};
ni.prototype.handleBuyflowSelectionSubmitted=ni.prototype.handleBuyflowSelectionSubmitted;ni.prototype.dataChanged=ni.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ni.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ni.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ni.prototype,"data",void 0);
_.r([_.Y({value:!0,reflectToAttribute:!0}),_.Q("design:type",Boolean)],ni.prototype,"hasBackgroundBanner",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ni.prototype,"dataChanged",null);_.r([_.SA("yt-pdg-buy-flow-selection-submitted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ni.prototype,"handleBuyflowSelectionSubmitted",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],ni);
_.m(ni,"ytd-pdg-buy-flow-renderer",function(){if(jhv!==void 0)return jhv;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return jhv=L},{mode:1});var E8g;var Ki=function(){var L=_.e.apply(this,arguments)||this;L.isOpen=!1;L.isPlaylistCreated=!1;return L};
_.f(Ki,_.e);_.t=Ki.prototype;_.t.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.t.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.QT(this.hostElement,"yt-refit")};
_.t.onCreateTap=function(){var L=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.H2(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(Z,N){if(!_.c("killswitch_ep_in_create_playlist_response")&&(N==null?0:N.actions))for(Z=_.O(N.actions),N=Z.next();!N.done;N=Z.next())N=N.value,_.n(N,_.oj)&&L.ytComponentBehavior.resolveCommand(N)}}]),this.isPlaylistCreated=!0)};
_.t.onKeydown=function(L){if(L.keyCode===13)this.onCreateTap()};
_.t.onServiceRequestCompleted=function(L){L.stopPropagation();_.XJ(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.t.computePrivacyBadge=function(L){return L?[{metadataBadgeRenderer:L}]:[]};
Ki.prototype.onServiceRequestCompleted=Ki.prototype.onServiceRequestCompleted;Ki.prototype.onKeydown=Ki.prototype.onKeydown;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Ki.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ki.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ki.prototype,"isOpen",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Ki.prototype,"isPlaylistCreated",void 0);_.r([_.Y({value:{REQUIRED_LABEL:_.iB("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.iB("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Q("design:type",Object)],Ki.prototype,"addToStrings",void 0);_.r([_.Y({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.Q("design:type",Array)],Ki.prototype,"privacyBadge",void 0);
_.r([_.TX("#privacy-input"),_.Q("design:type",Object)],Ki.prototype,"privacyInput",void 0);_.r([_.TX("#name-input"),_.Q("design:type",Object)],Ki.prototype,"nameInput",void 0);_.r([_.SA("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent]),_.Q("design:returntype")],Ki.prototype,"onKeydown",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Ki.prototype,"onServiceRequestCompleted",null);
_.r([_.P({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Ki);
_.m(Ki,"ytd-add-to-playlist-create-renderer",function(){if(E8g!==void 0)return E8g;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return E8g=L},{mode:1});var P6k;var pus;var fi=function(){var L=_.e.apply(this,arguments)||this;L.transferState="TRANSFER_STATE_UNKNOWN";return L};
_.f(fi,_.e);fi.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
fi.prototype.onCheckboxChange=function(L){var Z=this;this.data&&_.YD(this,"yt-playlist-checkbox-changed",function(){var N=_.jD(L).checked?Z.data.addToPlaylistServiceEndpoint:Z.data.removeFromPlaylistServiceEndpoint;N&&_.GR().resolve(_.$s).resolveCommand(N,{form:{element:Z.hostElement}});_.c("dl_playlist_killswitch")||Z.transferState!=="TRANSFER_STATE_UNKNOWN"&&Z.transferState!=="TRANSFER_STATE_FAILED"&&Z.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:Z.data.playlistId,action:"ACTION_SYNC"}})},
100)};
fi.prototype.computeIconType=function(L){return L?"yt-icons:"+L.toLowerCase():null};
fi.prototype.dataChanged=fi.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],fi.prototype,"data",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],fi.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],fi.prototype,"ytComponentBehavior",void 0);_.r([_.TX("#checkbox"),_.Q("design:type",HTMLInputElement)],fi.prototype,"checkbox",void 0);
_.r([_.Y({selector:_.fk,selectorArgs:["data.playlistId"]}),_.Q("design:type",String)],fi.prototype,"transferState",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fi.prototype,"dataChanged",null);_.r([_.P({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],fi);
_.m(fi,"ytd-playlist-add-to-option-renderer",function(){if(pus!==void 0)return pus;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return pus=L},{mode:1});var zrm=_.p(function(L){var Z=L.data;return _.g("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.g("div",null,_.g(_.qv,{text:function(){return Z().title}})),_.g(_.F,{cond:function(){return Z().subtitle},
then:function(N){return _.g("div",{class:"ytdMenuTitleRendererSubtitle"},_.g(_.qv,{text:N}))}}))},"jj");
zrm.idomCompat=!0;_.CY(zrm,"ytd-menu-title-renderer",{props:{data:_.LK}});var kn=function(){var L=_.e.apply(this,arguments)||this;L.addToStrings={ADD_TO_DROPDOWN_LABEL:_.iB("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};L.closeButtonAriaLabel=_.iB("SBOX_INAPPROPRIATE_CANCEL");L.dialog=_.c("desktop_add_to_playlist_renderer_dialog_popup");return L};
_.f(kn,_.e);_.t=kn.prototype;_.t.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"}}}};
_.t.onPopupOpened=function(){_.Az(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.t.onPopupClosed=function(){_.Az(this.playlists,"scrollable",!1)};
_.t.computeAriaLabel=function(){var L;if(this==null?0:(L=this.data)==null?0:L.actions){L=_.O(this.data.actions);for(var Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.menuTitleRenderer)return _.jM(Z.menuTitleRenderer.title)}};
_.t.onTapClose=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.gd.Object.defineProperties(kn.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var L;if(this==null?0:(L=this.data)==null?0:L.actions){L=_.O(this.data.actions);for(var Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.menuTitleRenderer)return Z.menuTitleRenderer}return!1}}});
kn.prototype.onPopupClosed=kn.prototype.onPopupClosed;kn.prototype.onPopupOpened=kn.prototype.onPopupOpened;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],kn.prototype,"ytEventForwardingBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],kn.prototype,"ytRendererStamperBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],kn.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],kn.prototype,"addToStrings",void 0);_.r([_.Y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Q("design:type",String)],kn.prototype,"ariaLabel",void 0);_.r([_.Y(),_.Q("design:type",String)],kn.prototype,"closeButtonAriaLabel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],kn.prototype,"dialog",void 0);
_.r([_.TX("#playlists"),_.Q("design:type",HTMLElement)],kn.prototype,"playlists",void 0);_.r([_.TX("ytd-add-to-playlist-create-renderer"),_.Q("design:type",Object)],kn.prototype,"createRenderer",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],kn.prototype,"menuTitleRenderer",null);_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],kn.prototype,"onPopupOpened",null);
_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],kn.prototype,"onPopupClosed",null);_.r([_.P({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],kn);
_.m(kn,"ytd-add-to-playlist-renderer",function(){if(P6k!==void 0)return P6k;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return P6k=L},{mode:1});var m_0;var yg=function(){var L=_.e.apply(this,arguments)||this;L.isPlaylistEditComplete=!1;L.isCollabEngagementDisabled=!1;L.closeButtonAriaLabel=_.iB("SBOX_INAPPROPRIATE_CANCEL");L.saveButton={title:_.iB("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"};L.onValueChanged=function(){L.updateSaveButtonState();L.computeCollabEngagementDisabled()};
return L};
_.f(yg,_.e);_.t=yg.prototype;_.t.attached=function(){this.JSC$20798_scroller&&(this.JSC$20798_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20798_scroller.attached&&typeof this.JSC$20798_scroller.attached==="function"&&this.JSC$20798_scroller.attached())};
_.t.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.t.onPopupClosed=function(){this.reset()};
_.t.close=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.t.onClickSave=function(){var L=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var Z=[];this.nameInput.value!==null&&Z.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&Z.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var N=Number(this.privacyInput.value);isNaN(N)||Z.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:N})}this.votingInput.value!==null&&(N=this.votingInput.value)&&Z.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:N});if(Z.length>0){var S;_.n((S=this.data)==null?void 0:S.updateSettingsEndpoint,_.Ac).actions=Z;var u;if((u=this.data)==null?0:u.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){L.close()}}}),this.isPlaylistEditComplete=!0}}};
_.t.computePrivacyBadge=function(L){return L?[{metadataBadgeRenderer:L}]:[]};
_.t.computeEditorData=function(L){var Z,N;return L==null?void 0:(Z=L.sections)==null?void 0:(N=Z[0])==null?void 0:N.playlistSettingsEditorCasualSectionRenderer};
_.t.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.t.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}}}}}};
_.t.computeAriaLabel=function(){var L,Z,N,S=(L=this.data)==null?void 0:(Z=L.sections)==null?void 0:(N=Z[0])==null?void 0:N.playlistSettingsEditorCasualSectionRenderer;return _.jM(S==null?void 0:S.title)};
_.t.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"}))};
_.t.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.t.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.t.isNameChanged=function(){var L,Z,N;return(((L=this.editorData)==null?void 0:(Z=L.name)==null?void 0:(N=Z.textInputFormFieldRenderer)==null?void 0:N.value)||"")!==(this.nameInput.value||"")};
_.t.isDescriptionChanged=function(){var L,Z,N;return(((L=this.editorData)==null?void 0:(Z=L.description)==null?void 0:(N=Z.textInputFormFieldRenderer)==null?void 0:N.value)||"")!==(this.descriptionInput.value||"")};
_.t.isPrivacyChanged=function(){var L,Z,N,S,u,T,W,V;return((W=(L=this.editorData)==null?void 0:(Z=L.privacy)==null?void 0:(N=Z.dropdownFormFieldRenderer)==null?void 0:(S=N.dropdown)==null?void 0:(u=S.dropdownRenderer)==null?void 0:(T=u.entries)==null?void 0:T.find(function(M){var G;return M==null?void 0:(G=M.privacyDropdownItemRenderer)==null?void 0:G.isSelected}))==null?void 0:(V=W.privacyDropdownItemRenderer)==null?void 0:V.int32Value)!==this.privacyInput.value};
_.t.isVotingChanged=function(){var L,Z,N,S,u,T,W,V;return((W=(L=this.editorData)==null?void 0:(Z=L.voting)==null?void 0:(N=Z.dropdownFormFieldRenderer)==null?void 0:(S=N.dropdown)==null?void 0:(u=S.dropdownRenderer)==null?void 0:(T=u.entries)==null?void 0:T.find(function(M){var G;return M==null?void 0:(G=M.privacyDropdownItemRenderer)==null?void 0:G.isSelected}))==null?void 0:(V=W.privacyDropdownItemRenderer)==null?void 0:V.int32Value)!==this.votingInput.value};
yg.prototype.onPopupClosed=yg.prototype.onPopupClosed;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],yg.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],yg.prototype,"ytEventForwardingBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],yg.prototype,"ytRendererStamperBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],yg.prototype,"data",void 0);_.r([_.Y({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.Q("design:type",Array)],yg.prototype,"privacyBadge",void 0);_.r([_.Y({computed:"computeEditorData(data)"}),_.Q("design:type",Object)],yg.prototype,"editorData",void 0);_.r([_.Y(),_.Q("design:type",Object)],yg.prototype,"isPlaylistEditComplete",void 0);_.r([_.Y(),_.Q("design:type",Object)],yg.prototype,"isCollabEngagementDisabled",void 0);
_.r([_.Y({value:{REQUIRED_LABEL:_.iB("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.iB("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Q("design:type",Object)],yg.prototype,"addToStrings",void 0);_.r([_.Y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Q("design:type",String)],yg.prototype,"ariaLabel",void 0);_.r([_.Y(),_.Q("design:type",String)],yg.prototype,"closeButtonAriaLabel",void 0);
_.r([_.Y(),_.Q("design:type",Object)],yg.prototype,"saveButton",void 0);_.r([_.TX("#name-input"),_.Q("design:type",Object)],yg.prototype,"nameInput",void 0);_.r([_.TX("#description-input"),_.Q("design:type",Object)],yg.prototype,"descriptionInput",void 0);_.r([_.TX("#privacy-input"),_.Q("design:type",Object)],yg.prototype,"privacyInput",void 0);_.r([_.TX("#voting-input"),_.Q("design:type",Object)],yg.prototype,"votingInput",void 0);
_.r([_.TX("#scroller"),_.Q("design:type",Object)],yg.prototype,"JSC$20798_scroller",void 0);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yg.prototype,"onPopupClosed",null);_.r([_.Y(),_.Q("design:type",Object)],yg.prototype,"onValueChanged",void 0);_.r([_.P({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],yg);
_.m(yg,"ytd-playlist-settings-editor-renderer",function(){if(m_0===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);m_0=L}L=m_0;return L},{mode:1});var JAv;_.l4("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var wT=function(){return _.e.apply(this,arguments)||this};
_.f(wT,_.e);_.t=wT.prototype;_.t.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}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.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 L=this.get("data.nextButton.buttonRenderer.navigationEndpoint");L&&(this.nextNavigationEndpoint=L,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.t.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 L={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",L)}}};
_.t.onPopupOpened=function(L){L.detail!==this&&L.detail!==this.hostElement||!_.c("enable_premium_voluntary_pause")||_.XJ(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.t.onNextButtonTap=function(){var L=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);L&&this.ytdOpenPopupBehavior.openPopup(L)};
_.t.updateSelectedResponseIndexFromBinding=function(L){this.selectedResponseIndex=L.detail.value};
wT.prototype.onPopupOpened=wT.prototype.onPopupOpened;wT.prototype.onSelectedResponseIndexChange=wT.prototype.onSelectedResponseIndexChange;wT.prototype.dataChanged=wT.prototype.dataChanged;_.r([_.y(_.W0),_.Q("design:type",Object)],wT.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],wT.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Number)],wT.prototype,"selectedResponseIndex",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wT.prototype,"dataChanged",null);_.r([_.iA("selectedResponseIndex"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wT.prototype,"onSelectedResponseIndexChange",null);
_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],wT.prototype,"onPopupOpened",null);_.r([_.P({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],wT);
_.m(wT,"ytd-red-cancel-survey-renderer",function(){if(JAv!==void 0)return JAv;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return JAv=L},{mode:1});var C6Y;var U7=function(){var L=_.e.apply(this,arguments)||this;L.closeButtonAriaLabel=_.iB("SBOX_INAPPROPRIATE_CANCEL");return L};
_.f(U7,_.e);U7.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
U7.prototype.onClickClose=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],U7.prototype,"rendererStamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],U7.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],U7.prototype,"closeButtonAriaLabel",void 0);_.r([_.P({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],U7);
_.m(U7,"ytd-search-filter-options-dialog-renderer",function(){if(C6Y!==void 0)return C6Y;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return C6Y=L},{mode:1});var rAg;var NKq=function(){return function(L){L=L.availabilityType;return L===void 0||L==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||L==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Yn=function(){var L=_.e.apply(this,arguments)||this;L.qualityOptions=[];L.upsellOptions=[];L.showUpsellSection=!1;L.darkerDarkTheme=_.c("web_darker_dark_theme");L.rememberSettingsChecked=!1;return L};
_.f(Yn,_.e);_.t=Yn.prototype;_.t.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}}}}};
_.t.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.t.updateQualityOptions=function(){if(this.formats===void 0)_.XJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var L=[],Z=[];this.showUpsellSection=!1;for(var N=_.O(this.formats),S=N.next();!S.done;S=N.next())(S=S.value)&&(S.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?Z.push(S):L.push(S));L.length&&(this.qualityOptions=Z5Q(L));Z.length&&(this.showUpsellSection=!0,this.upsellOptions=Z5Q(Z))}};
_.t.updateRememberString=function(){if(this.downloadQualityPickerEntity)var L=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var Z;L=(Z=this.data)==null?void 0:Z.premiumRememberSettingString}else{var N;L=(N=this.data)==null?void 0:N.rememberSettingString}L=L===void 0?_.iB("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):L;this.rememberSettingsCheckboxRenderer={title:_.Cq(L),disabled:!1}};
_.t.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.gd.Object.defineProperties(Yn.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var L;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(L=this.data)==null?void 0:L.qualityFormats}}});
Yn.prototype.updateRememberString=Yn.prototype.updateRememberString;Yn.prototype.updateQualityOptions=Yn.prototype.updateQualityOptions;Yn.prototype.dataChanged=Yn.prototype.dataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Yn.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Yn.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yn.prototype,"data",void 0);
_.r([_.y(_.CD),_.Q("design:type",Object)],Yn.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Yn.prototype,"selectedUpsellQuality",void 0);_.r([_.Y({computed:"computeIcon_(data.premiumIcon)",value:""}),_.Q("design:type",String)],Yn.prototype,"premiumIcon",void 0);_.r([_.Y({selector:iYw,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Q("design:type",Object)],Yn.prototype,"downloadQualityPickerEntity",void 0);
_.r([_.Y(),_.Q("design:type",Array)],Yn.prototype,"qualityOptions",void 0);_.r([_.Y(),_.Q("design:type",Array)],Yn.prototype,"upsellOptions",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yn.prototype,"showUpsellSection",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Yn.prototype,"darkerDarkTheme",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yn.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.r([_.TX("#remember-settings"),_.Q("design:type",HTMLInputElement)],Yn.prototype,"rememberSettingsCheckbox",void 0);_.r([_.Y(),_.Q("design:type",Object)],Yn.prototype,"rememberSettingsChecked",void 0);_.r([_.Y(),_.Q("design:type",Function)],Yn.prototype,"onRememberSettingsCheckedChanged",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yn.prototype,"dataChanged",null);
_.r([_.iA("downloadQualityPickerEntity"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yn.prototype,"updateQualityOptions",null);_.r([_.iA("selectedUpsellQuality"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yn.prototype,"updateRememberString",null);_.r([_.P({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Yn);
_.m(Yn,"ytd-download-quality-selector-content",function(){if(rAg!==void 0)return rAg;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return rAg=L},{mode:1});var Qhv;var eO=function(){var L=_.e.apply(this,arguments)||this;L.selectedUpsellQuality=!1;L.qualityOptions=[];L.darkerDarkTheme=_.c("web_darker_dark_theme");L.useUpsellDismissAlternate=_.c("use_not_now_dl_upsell_dismiss_cta");L.shouldShowAlternateUpsellDimiss=!1;L.rememberSettings=!1;L.rememberSettingsChecked=!1;L.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};L.rememberSettingsCheckedChanged=function(Z){L.rememberSettingsChecked=Z};
return L};
_.f(eO,_.e);_.t=eO.prototype;
_.t.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Cq(_.iB("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Cq(_.iB("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Cq(_.iB("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Cq(_.iB("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.t.updateQualityOptions=function(){this.formats===void 0?_.XJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=Z5Q(this.formats)};
_.t.onQualityOptionsSelect=function(L){if(this.qualityOptions&&L){L!==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 Z=_.O(this.qualityOptions.entries()),N=Z.next();!N.done;N=
Z.next()){N=_.O(N.value);var S=N.next().value;N=N.next().value;var u=void 0,T=void 0;if(((u=N)==null?void 0:(T=u.settingsRadioOptionRenderer)==null?void 0:T.id)===L){this.selectedQualityIndex=S;L=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((L=this.formats[S])==null?void 0:L.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.t.onClickSubmit=function(){var L;if((L=this.downloadButtonRenderer)==null||!L.isDisabled){var Z,N;L=(N=(Z=this.data)==null?void 0:Z.onSubmitEndpoint)!=null?N:{};var S,u;if(this.formats&&(((S=_.n(L,_.uj))==null?0:S.videoId)||((u=_.n(L,_.tu))==null?0:u.playlistId))){var T,W,V,M,G,D;Z={formatType:(M=(T=this.formats)==null?void 0:(W=T[(V=this.selectedQualityIndex)!=null?V:0])==null?void 0:W.format)!=null?M:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(G=this.getOfflineEndpoint(L))==null?void 0:(D=G.actionParams)==null?void 0:D.settingsAction)};this.getOfflineEndpoint(L).actionParams=Z;this.ytComponentBehavior.resolveCommand(L)}_.XJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.t.onClickUpsell=function(){var L;if((L=this.upsellButtonRenderer)==null||!L.isDisabled){var Z,N;L=(N=(Z=this.data)==null?void 0:Z.upsellEndpoint)!=null?N:{};this.ytComponentBehavior.resolveCommand(L);_.XJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);Z="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var S,u,T,W;Z=(W=(S=this.formats)==null?void 0:(u=S[(T=this.selectedQualityIndex)!=null?T:0])==null?void 0:u.format)!=null?W:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:Z}})}};
_.t.onClickClose=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.t.getOfflineSettingsAction=function(L,Z){return L?Z===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":Z:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.t.getOfflineEndpoint=function(L){return _.n(L,_.uj)?_.n(L,_.uj):_.n(L,_.tu)};
_.gd.Object.defineProperties(eO.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Cq(_.iB("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var L;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(L=this.data)==null?void 0:L.qualityFormats}}});
eO.prototype.updateQualityOptions=eO.prototype.updateQualityOptions;eO.prototype.dataChanged=eO.prototype.dataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],eO.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],eO.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],eO.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],eO.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Number)],eO.prototype,"selectedQualityIndex",void 0);_.r([_.Y(),_.Q("design:type",Object)],eO.prototype,"selectedUpsellQuality",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],eO.prototype,"ytdReduxBehavior",void 0);
_.r([_.Y({selector:iYw,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Q("design:type",Object)],eO.prototype,"downloadQualityPickerEntity",void 0);_.r([_.Y(),_.Q("design:type",Array)],eO.prototype,"qualityOptions",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],eO.prototype,"darkerDarkTheme",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],eO.prototype,"useUpsellDismissAlternate",void 0);
_.r([_.Y(),_.Q("design:type",Object)],eO.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.r([_.Y(),_.Q("design:type",Object)],eO.prototype,"downloadButtonRenderer",void 0);_.r([_.Y(),_.Q("design:type",Object)],eO.prototype,"upsellButtonRenderer",void 0);_.r([_.Y(),_.Q("design:type",Object)],eO.prototype,"cancelButtonRenderer",void 0);_.r([_.Y(),_.Q("design:type",Object)],eO.prototype,"upsellCancelButtonRenderer",void 0);_.r([_.Y(),_.Q("design:type",Object)],eO.prototype,"rememberSettings",void 0);
_.r([_.Y(),_.Q("design:type",Object)],eO.prototype,"rememberSettingsChecked",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],eO.prototype,"dataChanged",null);_.r([_.iA("downloadQualityPickerEntity"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],eO.prototype,"updateQualityOptions",null);_.r([_.P({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],eO);
_.m(eO,"ytd-download-quality-selector-renderer",function(){if(Qhv!==void 0)return Qhv;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Qhv=L},{mode:1});var Xus;var I$=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(I$,_.e);I$.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
I$.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"}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],I$.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],I$.prototype,"darkerDarkTheme",void 0);_.r([_.Y({computed:"computeIcon_(data.infoIcon)"}),_.Q("design:type",Object)],I$.prototype,"infoIcon",void 0);
_.r([_.Y({computed:"computeIcon_(data.warningIcon)"}),_.Q("design:type",Object)],I$.prototype,"warningIcon",void 0);_.r([_.P({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],I$);
_.m(I$,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(Xus!==void 0)return Xus;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Xus=L},{mode:1});var AAk;var dT=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(dT,_.e);dT.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
dT.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"}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],dT.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],dT.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],dT.prototype,"darkerDarkTheme",void 0);_.r([_.P({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],dT);
_.m(dT,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(AAk!==void 0)return AAk;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return AAk=L},{mode:1});var HIk;var a$=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(a$,_.e);a$.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
a$.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"}}}}};
a$.prototype.onServiceRequestSentOrCompleted=function(L,Z){Z&&Z.actions&&Z.actions.length>0&&_.XJ(this.hostElement,"yt-close-popup-action",[this.is])};
a$.prototype.onServiceRequestSentOrCompleted=a$.prototype.onServiceRequestSentOrCompleted;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],a$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],a$.prototype,"darkerDarkTheme",void 0);_.r([_.Y(),_.Q("design:type",Object)],a$.prototype,"data",void 0);
_.r([_.SA("yt-service-request-completed"),_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],a$.prototype,"onServiceRequestSentOrCompleted",null);_.r([_.P({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],a$);
_.m(a$,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(HIk!==void 0)return HIk;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return HIk=L},{mode:1});var B4Y;var hR=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");L.submitButtonDisabled=!0;return L};
_.f(hR,_.e);_.t=hR.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.t.onDataChanged=function(){var L,Z,N;if(((L=this.data)==null?void 0:(Z=L.confirmButton)==null?void 0:(N=Z.buttonRenderer)==null?void 0:N.isDisabled)!==void 0){var S,u,T;this.submitButtonDisabled=(S=this.data)==null?void 0:(u=S.confirmButton)==null?void 0:(T=u.buttonRenderer)==null?void 0:T.isDisabled}};
_.t.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.t.updateSubmitButtonDisabledFromBinding=function(L){this.submitButtonDisabled=L.detail.value};
_.t.updateSubmitButtonDisabledFromConfirmCheckbox=function(L){this.submitButtonDisabled=!L.detail.value};
hR.prototype.onDataChanged=hR.prototype.onDataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],hR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],hR.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],hR.prototype,"darkerDarkTheme",void 0);
_.r([_.Y(),_.Q("design:type",Object)],hR.prototype,"submitButtonDisabled",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hR.prototype,"onDataChanged",null);_.r([_.P({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],hR);
_.m(hR,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(B4Y!==void 0)return B4Y;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return B4Y=L},{mode:1});var x_Q;var s7=function(){return _.e.apply(this,arguments)||this};
_.f(s7,_.e);_.gd.Object.defineProperties(s7.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;return((L=this.data)==null?void 0:L.title)+" "+((Z=this.data)==null?void 0:Z.metadataPrimary)+" "+((N=this.data)==null?void 0:N.metadataSecondary)}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],s7.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],s7.prototype,"data",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],s7.prototype,"ariaLabel",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],s7);
_.m(s7,"ytd-compact-product-list-item-renderer",function(){if(x_Q!==void 0)return x_Q;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return x_Q=L},{mode:1});var qXk;var jO=function(){return _.e.apply(this,arguments)||this};
_.f(jO,_.e);jO.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]]"}}}}}};
_.gd.Object.defineProperties(jO.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],jO.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],jO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],jO.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],jO);
_.m(jO,"ytd-compact-product-list-renderer",function(){if(qXk!==void 0)return qXk;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return qXk=L},{mode:1});var LIQ;var E7=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(E7,_.e);_.t=E7.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.t.getBackgroundUrl=function(){var L=this.get("data.headerImage.thumbnails");return L?"url("+_.r$(L,this.hostElement.clientWidth)+")":""};
_.t.onDataChanged=function(){var L=this.getBackgroundUrl();L&&(this.header.style.backgroundImage=L);L=_.RH();var Z=_.oH(),N=this.get("data.trackingParams");N&&Z&&L&&_.ez(L,Z,_.Mg(N));L=_.O(this.hostElement.querySelectorAll("yt-img-shadow"));for(Z=L.next();!Z.done;Z=L.next())Z.value.onShow()};
_.t.onPopupClosed=function(L){_.jD(L).localName==="ytd-membership-post-cancel-renderer"&&_.XJ(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
E7.prototype.onPopupClosed=E7.prototype.onPopupClosed;E7.prototype.onDataChanged=E7.prototype.onDataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],E7.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],E7.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],E7.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],E7.prototype,"darkerDarkTheme",void 0);
_.r([_.TX("#header"),_.Q("design:type",HTMLDivElement)],E7.prototype,"header",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],E7.prototype,"onDataChanged",null);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],E7.prototype,"onPopupClosed",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],E7);
_.m(E7,"ytd-membership-post-cancel-renderer",function(){if(LIQ!==void 0)return LIQ;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return LIQ=L},{mode:1});var Z30;var Pg=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(Pg,_.e);Pg.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
Pg.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Pg.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Pg.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Pg.prototype,"darkerDarkTheme",void 0);_.r([_.TX("ytd-feedback-survey-renderer"),_.Q("design:type",Object)],Pg.prototype,"feedbackSurveyRenderer",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Pg);
_.m(Pg,"ytd-sponsorship-confirm-cancel-content",function(){if(Z30!==void 0)return Z30;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Z30=L},{mode:1});var NO5;var pi=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");L.maybeSubmitFeedback=function(){L.content&&L.content.maybeSubmitFeedback()};
return L};
_.f(pi,_.e);_.t=pi.prototype;_.t.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.t.onYtPopupOpened=function(L,Z){Z===this&&this.data&&this.data.onOpenCommands&&_.B2(this.hostElement,this.data.onOpenCommands,this.hostElement);_.XJ(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.t.onYtPopupClosed=function(L,Z){(Z&&Z.canceled===!0||Z&&Z.canceled===!1&&Z.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.B2(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.t.onYtServiceRequestCompleted=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.t.onYtServiceRequestError=function(L){_.Ib(this.hostElement,L.detail.error.message)};
_.t.onDataChanged=function(){if(this.isAttached){var L=this.backgroundUrl;L&&(_.QJ(this.hostElement).querySelector("#header").style.backgroundImage=L)}};
_.gd.Object.defineProperties(pi.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var L=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return L?"url("+_.r$(L,this.hostElement.clientWidth)+")":""}}});
pi.prototype.onDataChanged=pi.prototype.onDataChanged;pi.prototype.onYtServiceRequestError=pi.prototype.onYtServiceRequestError;pi.prototype.onYtServiceRequestCompleted=pi.prototype.onYtServiceRequestCompleted;pi.prototype.onYtPopupClosed=pi.prototype.onYtPopupClosed;pi.prototype.onYtPopupOpened=pi.prototype.onYtPopupOpened;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],pi.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],pi.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],pi.prototype,"data",void 0);_.r([_.Y({value:function(){return _.iB("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Q("design:type",String)],pi.prototype,"closeButtonAriaLabel",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],pi.prototype,"darkerDarkTheme",void 0);_.r([_.TX("#scrollable"),_.Q("design:type",Object)],pi.prototype,"scrollable",void 0);_.r([_.TX("ytd-sponsorship-confirm-cancel-content"),_.Q("design:type",Object)],pi.prototype,"content",void 0);
_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],pi.prototype,"onYtPopupOpened",null);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],pi.prototype,"onYtPopupClosed",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],pi.prototype,"onYtServiceRequestCompleted",null);_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],pi.prototype,"onYtServiceRequestError",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pi.prototype,"onDataChanged",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],pi);
_.m(pi,"ytd-sponsorship-confirm-cancel-renderer",function(){if(NO5!==void 0)return NO5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return NO5=L},{mode:_.Qr("kevlar_poly_si_batch_j081")?1:2});var Sfs;var z8=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(z8,_.e);z8.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],z8.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],z8.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],z8.prototype,"darkerDarkTheme",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],z8);
_.m(z8,"ytd-sponsorships-celebration-content",function(){if(Sfs!==void 0)return Sfs;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return Sfs=
L},{mode:1});var i3w;var uYq=_.sc(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),m7=function(){var L=_.e.apply(this,arguments)||this;L.scriptsAppended=!1;L.useFullWidthPrimaryButton=!1;L.buttonOverrides={type:"tonal",style:"overlay-dark"};return L};
_.f(m7,_.e);_.t=m7.prototype;_.t.dataChanged=function(){var L;this.useFullWidthPrimaryButton=!((L=this.data)==null||!L.useFullWidthPrimaryButton)};
_.t.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:_.c("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.onDataChanged=function(){var L;(L=this.header)==null||L.style.setProperty("background-color",this.backgroundColor);if(L=this.headerImageUrl){var Z;(Z=this.header)==null||Z.style.setProperty("background-image",L)}Z=_.RH(4);L=_.oH(4);var N=this.get("data.trackingParams");if(N&&L&&Z){var S=_.Mg(N);_.ez(Z,L,S);_.c("combine_ve_grafts")?_.tC().graftServerVe(N,L,4):_.ez(Z,L,S)}Z=_.O(this.hostElement.querySelectorAll("yt-img-shadow"));for(L=Z.next();!L.done;L=Z.next())L.value.onShow();if(Z=this.get("data.gtmId"))_.dH(Z,
_.X7("GL","")),this.setupConversionTracking()};
_.t.setupConversionTracking=function(){if(!this.scriptsAppended){var L=document.createElement("script");_.ug(L,_.So(uYq.join("")));document.head.appendChild(L);L=document.createElement("noscript");L.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(L);this.scriptsAppended=!0}};
_.t.onPopupClosed=function(L){if(_.jD(L).localName==="ytd-sponsorships-celebration-renderer"){_.XJ(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var Z;this.data&&((Z=this.data)==null?0:Z.dismissCommand)&&_.qd.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.gd.Object.defineProperties(m7.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var L=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Rs(L)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var L=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return L?"url("+_.r$(L,this.hostElement.getBoundingClientRect().width)+")":""}}});
m7.prototype.onPopupClosed=m7.prototype.onPopupClosed;m7.prototype.onDataChanged=m7.prototype.onDataChanged;m7.prototype.dataChanged=m7.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],m7.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],m7.prototype,"data",void 0);
_.r([_.TX("#header"),_.Q("design:type",HTMLElement)],m7.prototype,"header",void 0);_.r([_.Y(),_.Q("design:type",Object)],m7.prototype,"scriptsAppended",void 0);_.r([_.Y({type:Boolean,reflectToAttribute:!0}),_.Q("design:type",Object)],m7.prototype,"useFullWidthPrimaryButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],m7.prototype,"buttonOverrides",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],m7.prototype,"dataChanged",null);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],m7.prototype,"onDataChanged",null);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],m7.prototype,"onPopupClosed",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],m7);
_.m(m7,"ytd-sponsorships-celebration-renderer",function(){if(i3w!==void 0)return i3w;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return i3w=L},{mode:1});var TOv;var JR=function(){var L=_.e.apply(this,arguments)||this;L.isToggleChecked=!1;return L};
_.f(JR,_.e);JR.prototype.onDataChanged=function(){var L;this.isToggleChecked=((L=this.data)==null?void 0:L.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
JR.prototype.close=function(){var L;((L=this.data)==null?0:L.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
JR.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var L,Z=_.n((L=this.data)==null?void 0:L.switchButton,qqw);Z&&(this.isToggleChecked&&Z.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(Z.switchOnInnertubeCommand),!this.isToggleChecked&&Z.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(Z.switchOffInnertubeCommand))};
JR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
JR.prototype.onDataChanged=JR.prototype.onDataChanged;_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],JR.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],JR.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],JR.prototype,"isToggleChecked",void 0);_.r([_.Y({value:_.iB("CLOSE")}),_.Q("design:type",String)],JR.prototype,"closeButtonAriaLabel",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JR.prototype,"onDataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],JR);
_.m(JR,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(TOv!==void 0)return TOv;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return TOv=L},{mode:1});var tgm;var Ci=function(){return _.e.apply(this,arguments)||this};
_.f(Ci,_.e);_.t=Ci.prototype;_.t.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"}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.detached=function(){this.playerElement.stop()};
_.t.onYtServiceRequestCompleted=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.t.onYtServiceRequestError=function(L){_.Ib(this.hostElement,L.detail.error.message)};
_.t.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.t.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.t.getTier=function(L,Z){return!L||!L.tiers||Z<0?null:_.n(L.tiers[Z],SLs)};
_.t.moreThanOne=function(L){return!!(L&&L.length>1)};
_.t.tierOverviewTap=function(L){var Z=this;this.selectedTier=L.model.index;_.bN(this,function(){_.QT(Z.hostElement,"yt-refit")})};
_.t.computeSelectedClass=function(L,Z){return this.isSelected(L,Z)?"selected":""};
_.t.computeButtonAriaPressed=function(L,Z){return this.isSelected(L,Z)?"true":"false"};
_.t.isSelected=function(L,Z){return L===Z};
_.t.onDataChanged=function(){_.QJ(this.hostElement).querySelector("#header-overlay").style.visibility="";_.QJ(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 L=_.O(this.hostElement.querySelectorAll("yt-img-shadow")),
Z=L.next();!Z.done;Z=L.next())Z.value.onShow();var N;this.set("selectedTier",(N=this.get("data.targetTierIndex"))!=null?N:0);var S;(L=(S=this.data)==null?void 0:S.onVisible)&&this.ytComponentBehavior.resolveCommand(L)};
_.t.initializeVe=function(L){var Z=_.RH(),N=_.oH(),S=this.get("data.trackingParams");N&&Z&&(this.screenLayer=4,Z=_.B8(_.TMF)(void 0,69877,{clientScreenNonce:Z,visualElement:N},void 0,void 0,void 0),_.Kv(Z,69877,4),N=_.oH(4),S&&N&&(S=_.Mg(S),_.ez(Z,N,S),L&&(this.offerVideoVe=_.Ll(74659),_.ez(Z,S,this.offerVideoVe))))};
_.t.setHeaderBackground=function(){var L=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.QJ(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Rs(L);if(L=this.getHeaderImage())L=_.r$(L,screen.width),_.QJ(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+L+")"};
_.t.getHeaderImage=function(){var L=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&L?L:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.t.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.t.setupVideoPlayer=function(L){var Z=this,N,S,u,T;return _.b(function(W){if(W.nextAddress==1)return N=Z.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),S=Z.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.c("kevlar_player_update_killswitch")?Z.playerElement.update({args:{autoplay:N,video_id:L,player_params:S}}):Z.playerElement.loadVideoWithPlayerVars({autoplay:N,video_id:L,player_params:S}),
W.yield(Z.playerElement.getPlayerPromise(),2);u=W.yieldResult;u.addEventListener("onStateChange",function(V){Z.onPlayerStateChange(V)});
u.setScreenLayer(Z.screenLayer);(T=_.RH(4))&&Z.offerVideoVe&&_.dR(T,Z.offerVideoVe);N&&(Z.pauseOtherPlayers(),Z.playerElement.focusOnPlayer(),Z.playerElement.getPlayer().hideControls(),_.sI(_.ro,function(){Z.fadeOutHeaderOverlay()},4E3));
_.w7(W)})};
_.t.onPlayerStateChange=function(L){L===1?this.backgroundPlayerElement&&(L=this.backgroundPlayerElement.player_.getPlayerState(),L!==1&&L!==3||this.backgroundPlayerElement.pause()):L===0&&(_.QJ(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.QJ(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.t.fadeOutHeaderOverlay=function(){_.QJ(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.t.onHeaderTap=function(){if(this.offerVideo){_.QJ(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var L;((L=this.playerElement.player_)==null?void 0:L.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(L=_.RH(4))&&this.offerVideoVe&&_.sT(L,this.offerVideoVe)}};
_.t.getBackgroundImageLayerClass=function(L){return L?"background-image-layer-with-video":""};
_.t.getHeaderClass=function(L){return L?"header-with-video":""};
_.t.getHeaderOverlayClass=function(L){return L?"header-overlay-with-video":""};
_.t.getTitleContainerClass=function(L,Z){return L?"title-container-with-video":Z?"title-container-without-video-flexible":"title-container-without-video"};
_.t.tierTitleDisplayStatus=function(L){return this.moreThanOne(L)?"hide":"show"};
_.t.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.GR().resolve(_.yk).getPlayerElement():this.backgroundPlayerElement=_.CV();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var L=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=L===1||L===3;this.backgroundPlayerElement.pause()}};
_.t.isMiniplayerActive=function(){return _.GR().resolve(_.yk).isMiniplayerActive()};
_.t.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("selected-tier-changed",this.selectedTier))};
Ci.prototype.selectedTierChangedForBinding=Ci.prototype.selectedTierChangedForBinding;Ci.prototype.onDataChanged=Ci.prototype.onDataChanged;Ci.prototype.onYtPopupClosed=Ci.prototype.onYtPopupClosed;Ci.prototype.onYtPopupOpened=Ci.prototype.onYtPopupOpened;Ci.prototype.onYtServiceRequestError=Ci.prototype.onYtServiceRequestError;Ci.prototype.onYtServiceRequestCompleted=Ci.prototype.onYtServiceRequestCompleted;
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ci.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Ci.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Ci.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ci.prototype,"data",void 0);_.r([_.Y({value:0}),_.Q("design:type",Number)],Ci.prototype,"selectedTier",void 0);
_.r([_.Y({value:""}),_.Q("design:type",String)],Ci.prototype,"offerVideo",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Ci.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.r([_.Y({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Hs(this)}}),
_.Q("design:type",String)],Ci.prototype,"playerId",void 0);_.r([_.TX("tp-yt-paper-dialog-scrollable"),_.Q("design:type",Object)],Ci.prototype,"scrollable",void 0);_.r([_.TX("ytd-sponsorships-tier-renderer"),_.Q("design:type",Object)],Ci.prototype,"tierRenderer",void 0);_.r([_.TX("#player"),_.Q("design:type",Object)],Ci.prototype,"playerElement",void 0);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Ci.prototype,"onYtServiceRequestCompleted",null);_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Ci.prototype,"onYtServiceRequestError",null);
_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ci.prototype,"onYtPopupOpened",null);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ci.prototype,"onYtPopupClosed",null);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ci.prototype,"onDataChanged",null);
_.r([_.iA("selectedTier"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ci.prototype,"selectedTierChangedForBinding",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Ci);
_.m(Ci,"ytd-sponsorships-offer-renderer",function(){if(tgm!==void 0)return tgm;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return tgm=L},{mode:_.Qr("kevlar_poly_si_batch_j077")?1:2});var O3v;var rT=function(){var L=_.e.apply(this,arguments)||this;L.buttonOverrides={type:"filled",style:"mono"};return L};
_.f(rT,_.e);rT.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}}}}}};
rT.prototype.backgroundColorChanged=function(){var L,Z,N,S=(Z=_.n((L=this.data)==null?void 0:L.content,iJQ))==null?void 0:(N=Z.backgroundColor)==null?void 0:N.backgroundColor;S&&(L=_.vq(S),_.QJ(this.hostElement).querySelector("#banner").style.backgroundColor=L,_.QJ(this.hostElement).querySelector("#abstract-art").style.backgroundColor=L)};
rT.prototype.attached=function(){this.JSC$20884_scroller&&(this.JSC$20884_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20884_scroller.attached&&typeof this.JSC$20884_scroller.attached==="function"&&this.JSC$20884_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
rT.prototype.backgroundColorChanged=rT.prototype.backgroundColorChanged;_.r([_.Y(),_.Q("design:type",Object)],rT.prototype,"data",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],rT.prototype,"ytRendererstamperBehavior",void 0);_.r([_.TX("#scroller"),_.Q("design:type",Object)],rT.prototype,"JSC$20884_scroller",void 0);_.r([_.Y(),_.Q("design:type",Object)],rT.prototype,"buttonOverrides",void 0);
_.r([_.iA("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],rT.prototype,"backgroundColorChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],rT);
_.m(rT,"ytd-sponsorships-promotion-celebration-renderer",function(){if(O3v!==void 0)return O3v;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return O3v=L},{mode:_.Qr("kevlar_poly_si_batch_j077")?1:2});var WIv;var Vgc;var Qg=function(){return _.e.apply(this,arguments)||this};
_.f(Qg,_.e);Qg.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Qg.prototype.computeIsInitiallyChecked=function(L){return L===1};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Qg.prototype,"data",void 0);_.r([_.TX("#checkbox"),_.Q("design:type",Object)],Qg.prototype,"checkbox",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Qg);
_.m(Qg,"ytd-subscription-toggle-option-renderer",function(){if(Vgc!==void 0)return Vgc;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Vgc=L},{mode:1});var XC=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");L.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return L};
_.f(XC,_.e);XC.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"}}}};
XC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
XC.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var L=_.QJ(this.hostElement).querySelector("#options").selected;L=this.data.options[L].subscriptionRadioOptionRenderer.serviceEndpoint;var Z=_.QJ(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");Z&&L&&L.modifyChannelNotificationPreferenceEndpoint&&(Z=Z.getValue())&&(L.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[Z]);_.GR().resolve(_.$s).resolveCommand(L,{form:{element:this.hostElement}});
_.XJ(this.hostElement,"yt-close-popup-action")};
_.gd.Object.defineProperties(XC.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var L=this.data.options,Z=0;Z<L.length;Z++){var N=L[Z].subscriptionRadioOptionRenderer;if(N&&N.selected)return Z}return null}}});
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],XC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],XC.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],XC.prototype,"eventForwardingBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],XC.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],XC.prototype,"darkerDarkTheme",void 0);_.r([_.w("data.options"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],XC.prototype,"initialIndex",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],XC);
_.m(XC,"ytd-subscription-notification-options-renderer",function(){if(WIv!==void 0)return WIv;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return WIv=L},{mode:1});var b3v;var Mgv=function(){return _.e.apply(this,arguments)||this};
_.f(Mgv,_.e);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Mgv.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Mgv.prototype,"data",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],Mgv);
_.m(Mgv,"ytd-tvfilm-offer-groups-renderer",function(){if(b3v!==void 0)return b3v;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return b3v=L},{mode:1});var gAc;var AR=function(){var L=_.e.apply(this,arguments)||this;L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(AR,_.e);_.t=AR.prototype;_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.t.computeThumbnailClass=function(L){return L.thumbnailOverlays?L.isShow?"thumbnail-show":"thumbnail-movie":L.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.t.computeCommerceSectionClass=function(L){return L.offers&&L.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.t.computeTitleClass=function(L){return L.offers&&L.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.t.onDataChanged=function(){[].concat(_.Pd(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(L){L.onShow()})};
AR.prototype.onDataChanged=AR.prototype.onDataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],AR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],AR.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],AR.prototype,"darkerDarkTheme",void 0);
_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AR.prototype,"onDataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],AR);
_.m(AR,"ytd-ypc-offers-overlay-renderer",function(){if(gAc!==void 0)return gAc;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return gAc=L},{mode:_.Qr("kevlar_poly_si_batch_j028")?1:2});var Gdw;var FIP=function(){this.usedMethods=new Set};
FIP.prototype.add=function(L){this.usedMethods.add(L)};
FIP.prototype.reset=function(){this.usedMethods.clear()};var l15=function(L,Z){this.query=L;this.previousSearchQuery=Z;this.id=$ay++;if(!Day){Z=_.X7("SBOX_SETTINGS");L="https://"+((Z==null?void 0:Z.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var N=Z==null?void 0:Z.REQUEST_LANGUAGE;N&&(L+="&hl="+N);(N=Z==null?void 0:Z.REQUEST_DOMAIN)&&(L+="&gl="+N);L+="&client=youtube&gs_ri=youtube";(N=Z==null?void 0:Z.SUGG_EXP_ID)&&(L+="&sugexp="+encodeURIComponent(N));(N=Z==null?void 0:Z.PSUGGEST_TOKEN)&&(L+="&tok="+N);(Z=
Z==null?void 0:Z.SESSION_INDEX)&&(L+="&authuser="+Z);_.c("desktop_enable_visual_suggest")&&(L+="&h=180&w=320&ytvs=1");Day=L}},vAs=function(L){var Z="q="+encodeURIComponent(L.query);
L.previousSearchQuery&&(Z+="&pq="+encodeURIComponent(L.previousSearchQuery));return Z},oA8=function(){var L=_.X7("SBOX_SETTINGS"),Z={};
if(L==null?0:L.SEND_VISITOR_DATA)Z["X-Goog-Visitor-Id"]=L==null?void 0:L.VISITOR_DATA;return Z},RJQ=function(L){var Z=Day;
Z+="&gs_id="+L.id.toString(36);Z+="&q="+encodeURIComponent(L.query);Z+="&cp="+L.query.length;L.previousSearchQuery&&(Z+="&pq="+encodeURIComponent(L.previousSearchQuery));(L=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(Z+="&video_id="+L);return Z},$ay=0,Day="";var cGv=_.cm.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,nAq=_.cm.SEARCH_ENTITY_SUGGESTION_MOVIE,KIP=_.cm.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,f1k=_.cm.SEARCH_ENTITY_SUGGESTION_TV_SHOW,kdY=function(L,Z){this.text=L;this.bold=Z},yGQ=function(L,Z,N){this.input=Z;
this.index=N;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=L[0];this.type=L[1];this.subtypes=L[2];var S;this.displayText=Tr((S=L[3])==null?void 0:S.b);var u;this.ignoredPrefix=Tr((u=L[3])==null?void 0:u.a);var T,W;this.hasNewVideo=((T=L[3])==null?void 0:(W=T.zam)==null?void 0:W.toString())==="true"?!0:!1;var V;this.visualSuggestUrl=(V=L[3])==null?void 0:V.zai;var M;this.entityType=Tr((M=L[3])==null?void 0:M.zap);var G;this.entityName=Tr((G=L[3])==null?void 0:G.zao);var D;Z=Tr((D=
L[3])==null?void 0:D.zaf);var l;this.entityMid=(l=L[3])==null?void 0:l.zae;D=i5m(this.subtypes,this.entityMid);if(Z&&D){if(Z){l="";switch(D){case "YOUTUBE_ENTITY_TYPE_SONG":l=KIP;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":l=cGv;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":l=f1k;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":l=nAq}D=D==="YOUTUBE_ENTITY_TYPE_SONG"||D==="YOUTUBE_ENTITY_TYPE_ALBUM"?l+" \u2022  \u2022 "+Z:Z}else D="";this.entitySubtitle=D}var v;this.externalChannelId=(v=L[3])==null?void 0:v.zav;var R;
this.entityThumbnailAttributionUrl=(R=L[3])==null?void 0:R.zaq},Uam=function(L,Z){var N=[],S,u=(S=L.displayText)!=null?S:L.text;
(Z==null?0:Z.useEntityName)&&w1k(L)&&L.entityName&&(u=L.entityName);if(L.type===33)return N.push(new kdY(u,!1)),N;if(u.length>=L.input.length&&u.substring(0,L.input.length)===L.input)N.push(new kdY(L.input,!1)),N.push(new kdY(u.substring(L.input.length),!0));else{var T=new Set(L.input.split(/\s/)),W=u.split(/\s/);N=W.map(function(V,M){return new kdY(V.trim()+(M===W.length-1?"":" "),!T.has(V))})}return N},w1k=function(L){var Z=!!i5m(L.subtypes);
L=!!L.entityMid;return Z||L};var Yf0=function(L){this.rawResponse=["",[],{}];this.suggestions=[];try{var Z=JSON.parse(uEv(L));if(typeof Z==="object"&&Z!==null)this.rawResponse=Z;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(S){console.log("Suggest: Failed to parse SuggestResponse!");return}var N=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(S,u){return new yGQ(S,N,u)})};var eJm=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new FIP;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20921_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},I10,da8=function(){I10||(I10=new eJm);
return I10};
eJm.prototype.updateSuggestions=function(L){var Z=this;this.availableSuggestions.forEach(function(N){Z.previousSuggestions[N]=!0});
this.availableSuggestions=L.map(function(N){var S=N.type.toString();N.subtypes.length>0&&(S+="i"+N.subtypes.join("i"),S+="k"+N.suggestionSources.COMPLETE_SERVER.toString());return S})};
var a1Y=function(L,Z){var N=Date.now();L.firstEditTime<0&&(L.firstEditTime=N);Z&&(L.lastQueryBuildTime=N);L.lastEditTime=N};
eJm.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20921_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var hJ8=function(L){var Z="";L.availableSuggestions.forEach(function(u){delete L.previousSuggestions[u]});
for(var N=_.O(Object.keys(L.previousSuggestions)),S=N.next();!S.done;S=N.next())S=S.value,L.previousSuggestions[S]&&(Z+=(Z?"j":"")+S);return Z},sK0=function(L,Z){var N=[];
Z&&(N[1]=Z.toString());N[0]="youtube";N[7]=Date.now()-L.startTime;N[6]=L.sessionNumber;L.zeroPrefixSuggestionCount>=0&&(N[33]=L.zeroPrefixSuggestionCount);N[13]=L.outOfSyncResponseCount;if(L.availableSuggestions.length>0){for(var S=Z="",u=0,T=_.O(L.availableSuggestions),W=T.next();!W.done;W=T.next())W=W.value,W!==S&&(u>1&&(Z+="l"+u),Z+=(S?"j":"")+W,u=0,S=W),u+=1;u>1&&(Z+="l"+u);N[3]=Z}N[35]=hJ8(L);L.selectedSuggestionIndex>=0&&(N[2]=L.selectedSuggestionIndex);var V;if(Z=(V=_.X7("SBOX_SETTINGS"))==
null?void 0:V.SUGG_EXP_ID)N[19]=L.normalize(Z),V=0,L.experimentTriggeredBeforeFinal&&(V|=1),L.experimentTriggeredFinal&&(V|=2),N[20]=V;N[26]=Array.from(L.inputMethodsTracker.usedMethods).join("j");if(L.JSC$20921_totalRoundTripTime>0){N[15]=L.JSC$20921_totalRoundTripTime;N[14]=L.maxRoundTripTime;V=[];for(u=Z=0;u<10;u++)S=L.roundTripTimeHistogram[u],S===0?Z++:(Z>1?V.push(u+"-"+S):Z===1?V.push("0j"+S):V.push(S.toString()),Z=0);V=V.join("j");N[16]=V}L.zeroPrefixRoundTripTime>0&&(N[36]=L.zeroPrefixRoundTripTime);
L.lastQueryBuildTime>0&&(N[18]=L.lastQueryBuildTime-L.startTime);L.firstEditTime>0&&(N[4]=L.firstEditTime-L.startTime);L.lastEditTime>0&&(N[5]=L.lastEditTime-L.startTime);return N.join(".")};
eJm.prototype.normalize=function(L){return L.replaceAll(".","-")};
var jKP=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Hg=function(){var L=_.e.apply(this,arguments)||this;L.microphoneSpinnerActive=!1;L.noAnimations=!1;L.boundExitClick=function(){L.onExitButtonClick()};
L.speechOverlayClassName="";L.isLevelAnimating=!1;L.playCloseDialogAudioFeedback=!0;L.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return L};
_.f(Hg,_.e);_.t=Hg.prototype;_.t.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.t.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=g7q()};
_.t.dataChanged=function(){this.logDialog()};
_.t.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var L;(L=this.manager.audioPlayer)!=null&&(L.JSC$20236_audioEnabled=!1)}this.manager.stop();(L=this.manager.audioPlayer)!=null&&(L.JSC$20236_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.t.handleSpeechQueryCompleteAction=function(L){var Z=L.navigationAction;Z&&(L.trackingParams&&_.tC().graftServerVe(L.trackingParams,this.dialogVe,5),_.QT(this.hostElement,"yt-navigate",{endpoint:Z,tempData:this.getNavigationParams(Z),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.t.onExitButtonClick=function(){this.closeDialog()};
_.t.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var L;if((L=this.manager)!=null){var Z;(Z=L.audioPlayer)==null||OH(Z,"failure");L.setState("microphone-off");L.stop()}}else(L=this.manager)==null||L.start()};
_.t.transcriptionChanged=function(){var L,Z;(((L=this.transcription)==null?0:L.low)||((Z=this.transcription)==null?0:Z.high))&&this.setState("transcribing",this.transcription)};
_.t.stateChanged=function(){this.setState(this.state,this.transcription)};
_.t.logDialog=function(){var L;(L=this.data)!=null&&L.trackingParams&&(L=_.tC(),_.fF(L,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=L.graftServerVe(this.data.trackingParams,void 0,5))};
_.t.getNavigationParams=function(L){var Z={};if(_.c("web_yt_searchbox")){var N=da8();N.inputMethodsTracker.add(6);N=sK0(N,15);Z.gs_l=N;var S;Z.oq=((S=_.n(L,_.uv))==null?void 0:S.query)||""}else if(L=window.ytvoicesearchloggingparams){if(L=L())Z.oq=L.oq,Z.gs_l=L.gs_l}else _.Zx(Error("Il"));return Z};
_.t.closeDialog=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.t.setState=function(L,Z){if(this.data){var N=this.data,S={};switch(L){case "listening":S={headerText:N.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:N.microphoneButtonAriaLabel};break;case "timeout":S={headerText:N.promptHeader,microphoneState:"try-again",microphoneLabel:N.promptMicrophoneLabel,microphoneAriaLabel:N.promptMicrophoneLabel};break;case "microphone-off":S={headerText:N.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:N.promptMicrophoneLabel,
microphoneAriaLabel:N.promptMicrophoneLabel};break;case "transcribing":(Z==null?0:Z.low)||(Z==null?0:Z.high)?S={transcriptionLow:Z==null?void 0:Z.low,transcriptionHigh:Z==null?void 0:Z.high,microphoneState:"speaking",microphoneAriaLabel:N.microphoneButtonAriaLabel}:S={headerText:N.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:N.microphoneButtonAriaLabel};break;case "processing":S={headerText:N.loadingHeader,microphoneState:"processing",microphoneAriaLabel:N.microphoneButtonAriaLabel};
break;case "offline":S={headerText:N.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:N.connectionErrorMicrophoneLabel,microphoneAriaLabel:N.connectionErrorMicrophoneLabel};break;case "permission":S={headerText:N.permissionsHeader,bodyLine1:N.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:N.permissionsSubtext};break;case "permission-denied":S={headerText:N.disabledHeader,bodyLine1:N.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:N.disabledSubtext}}S.className=
L;this.speechOverlayState=S;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.t.setMicrophoneState=function(L){var Z=this.isLevelAnimating;this.isLevelAnimating=L==="speaking";!Z&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=L==="processing"&&!this.noAnimations};
_.t.setClass=function(L){this.speechOverlayClassName&&_.Az(this.hostElement,this.speechOverlayClassName,!1);L&&(this.speechOverlayClassName=L,_.Az(this.hostElement,L,!0))};
_.t.runLevelAnimation=function(){var L=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var Z=1+Math.random()*.75,N=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+N/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+Z+")");_.ro.addJob(function(){L.runLevelAnimation()},3,N)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Hg.prototype.stateChanged=Hg.prototype.stateChanged;Hg.prototype.transcriptionChanged=Hg.prototype.transcriptionChanged;Hg.prototype.onPopupClosed=Hg.prototype.onPopupClosed;Hg.prototype.dataChanged=Hg.prototype.dataChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Hg.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Hg.prototype,"rendererStamperBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],Hg.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],Hg.prototype,"eventForwardingBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Hg.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Hg.prototype,"speechOverlayState",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Hg.prototype,"microphoneSpinnerActive",void 0);_.r([_.Y({type:_.c("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.Q("design:type",Object)],Hg.prototype,"noAnimations",void 0);_.r([_.Y({selector:function(L){var Z;return(Z=L.voiceSearch)==null?void 0:Z.transcription}}),
_.Q("design:type",Object)],Hg.prototype,"transcription",void 0);_.r([_.Y({selector:function(L){var Z;return(Z=L.voiceSearch)==null?void 0:Z.overlay}}),
_.Q("design:type",String)],Hg.prototype,"state",void 0);_.r([_.Y(),_.Q("design:type",Object)],Hg.prototype,"boundExitClick",void 0);_.r([_.TX("#microphone-levels"),_.Q("design:type",HTMLElement)],Hg.prototype,"level",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Hg.prototype,"dataChanged",null);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Hg.prototype,"onPopupClosed",null);
_.r([_.Vr("transcription"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Hg.prototype,"transcriptionChanged",null);_.r([_.Vr("state"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Hg.prototype,"stateChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Hg);
_.m(Hg,"ytd-voice-search-dialog-renderer",function(){if(Gdw!==void 0)return Gdw;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return Gdw=L},{mode:1});var EAQ;var Bg=function(){var L=_.e.apply(this,arguments)||this;L.isOverlay=!1;L.hidden=!1;return L};
_.f(Bg,_.e);_.t=Bg.prototype;_.t.onPopupClosed=function(){this.toggleIconState(!1)};
_.t.computeIcon=function(){var L,Z,N;return(Z=_.n((L=this.data)==null?void 0:L.icon,WUw))==null?void 0:(N=Z.icon)==null?void 0:N.iconType};
_.t.computeIconBadgeShape=function(){var L;return{iconBadgeType:"cart",iconBadgeText:(L=this.iconBadgeEntity)==null?void 0:L.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.t.onClick=function(){var L;(L=this.data)!=null&&L.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.t.computeHidden=function(L){return!L};
_.t.toggleIconState=function(L){this.iconButton&&(this.iconButton.pressed=L)};
Bg.prototype.onPopupClosed=Bg.prototype.onPopupClosed;_.r([_.y(_.CD),_.Q("design:type",Object)],Bg.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],Bg.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Bg.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Bg.prototype,"isOverlay",void 0);
_.r([_.Y({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.Q("design:type",Object)],Bg.prototype,"hidden",void 0);_.r([_.Y({selectorArgs:["data.iconBadgeEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"iconBadgeEntity",Z)}}),
_.Q("design:type",Object)],Bg.prototype,"iconBadgeEntity",void 0);_.r([_.TX("yt-icon-button"),_.Q("design:type",HTMLButtonElement)],Bg.prototype,"iconButton",void 0);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bg.prototype,"onPopupClosed",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Bg);
_.m(Bg,"ytd-icon-badge-topbar-button-renderer",function(){if(EAQ!==void 0)return EAQ;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return EAQ=L},{mode:1});var P5q;var xn=function(){var L=_.e.apply(this,arguments)||this;L.premiumOptions=[];L.darkerDarkTheme=_.c("web_darker_dark_theme");return L};
_.f(xn,_.e);xn.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.gd.Object.defineProperties(xn.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],xn.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],xn.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Array)],xn.prototype,"premiumOptions",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],xn.prototype,"darkerDarkTheme",void 0);_.r([_.w("premiumOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xn.prototype,"hasPremiumOptions",null);
_.r([_.P({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],xn);
_.m(xn,"ytd-offline-promo-content",function(){if(P5q!==void 0)return P5q;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return P5q=L},{mode:1});var p1c;var qB=function(){var L=_.e.apply(this,arguments)||this;L.premiumOptions=[];return L};
_.f(qB,_.e);qB.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var L;this.premiumOptions=SWm((L=this.data)==null?void 0:L.formats)};
qB.prototype.onClickSubmit=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var L;(L=_.CV())==null||L.pause()};
qB.prototype.attached=function(){this.JSC$20941_scroller&&(this.JSC$20941_scroller.dialogElement=this.hostElement.parentNode)};
_.gd.Object.defineProperties(qB.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
qB.prototype.dataChanged=qB.prototype.dataChanged;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],qB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],qB.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],qB.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],qB.prototype,"data",void 0);
_.r([_.Y({computed:"computeIcon_(data.headersIcon)",value:""}),_.Q("design:type",String)],qB.prototype,"headersIcon",void 0);_.r([_.Y(),_.Q("design:type",Array)],qB.prototype,"premiumOptions",void 0);_.r([_.TX("#scroller"),_.Q("design:type",Object)],qB.prototype,"JSC$20941_scroller",void 0);_.r([_.w("headersIcon"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],qB.prototype,"showIcon",null);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qB.prototype,"dataChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],qB);
_.m(qB,"ytd-offline-promo-renderer",function(){if(p1c!==void 0)return p1c;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return p1c=L},{mode:1});var zJg;var LB=function(){var L=_.e.apply(this,arguments)||this;L.playbackPauseInterval=NaN;L.isLoading=!1;L.hasError=!1;L.dialogClass="";L.youtubeLabel=_.iB("LOGO_ALT_LABEL",{},"YouTube Home");L.logoName="yt-logos-ext:yt-logo-updated";L.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return L};
_.f(LB,_.e);_.t=LB.prototype;_.t.onDataChange=function(){var L;if(this.showEOMV1Text=!((L=this.data)==null||!L.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.t.attached=function(){this.pausePlayer()};
_.t.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.t.handleLangSelect=function(L){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[L.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.t.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.t.handleSaveConsent=function(L){var Z=this;this.showLoadingSpinner();this.showLoadingSpinner();Q_P(_.n(L,Vrk)).catch(function(N){_.Q7(new _.sr("Something went wrong when save consent "+(N.message?N.message:N)+"."));Z.hideLoadingSpinner();Z.showErrorMessage()})};
_.t.handleDisablePersonalization=function(L){var Z=this;this.showLoadingSpinner();Xhk(_.n(L,Wbv)).then(function(){Z.dialog.close();Z.resumePlayer()}).catch(function(N){_.Q7(new _.sr("Something went wrong when disable personalization "+(N.message?N.message:N)+"."));
Z.hideLoadingSpinner();Z.showErrorMessage()})};
_.t.showLoadingSpinner=function(){var L=this;this.showSpinnerJobId=_.ro.addLowPriorityJob(function(){L.isLoading=!0},500)};
_.t.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.ro.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.t.showErrorMessage=function(){var L=this;this.hasError=!0;_.ro.addLowPriorityJob(function(){L.hasError=!1},2E3)};
_.t.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.nZ(function(){try{var L=_.CV();L&&L.pause()}catch(Z){}},100))};
_.t.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var L=_.CV();L&&L.play()}catch(Z){}};
_.gd.Object.defineProperties(LB.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.data)==null||!L.eomV1Text)return[];L=[];for(var Z=["SHIELD","WARNING","BAR_CHART"],N=this.data.eomV1Text.essentialCookieMsg.items,S=0;S<Z.length&&S<N.length;S++)L.push({icon:Z[S],text:N[S]});return L}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var L;if((L=this.data)==null||!L.eomV1Text)return[];L=[];for(var Z=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],N=this.data.eomV1Text.nonEssentialCookieMsg.items,S=0;S<Z.length&&S<N.length;S++)L.push({icon:Z[S],text:N[S]});return L}}});
LB.prototype.onDataChange=LB.prototype.onDataChange;_.r([_.Y(),_.Q("design:type",Object)],LB.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],LB.prototype,"showEOMV1Text",void 0);_.r([_.Y(),_.Q("design:type",Object)],LB.prototype,"isLoading",void 0);_.r([_.Y(),_.Q("design:type",Object)],LB.prototype,"hasError",void 0);_.r([_.Y(),_.Q("design:type",Number)],LB.prototype,"showSpinnerJobId",void 0);_.r([_.Y(),_.Q("design:type",Object)],LB.prototype,"dialogClass",void 0);
_.r([_.TX("#dialog"),_.Q("design:type",Object)],LB.prototype,"dialog",void 0);_.r([_.TX("#cb-header"),_.Q("design:type",HTMLElement)],LB.prototype,"header",void 0);_.r([_.TX("#lang-select"),_.Q("design:type",HTMLElement)],LB.prototype,"langSelect",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],LB.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],LB.prototype,"ytComponentBehavior",void 0);
_.r([_.Y(),_.Q("design:type",String)],LB.prototype,"youtubeLabel",void 0);_.r([_.Y(),_.Q("design:type",Object)],LB.prototype,"logoName",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],LB.prototype,"onDataChange",null);_.r([_.w("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],LB.prototype,"eomEssentialCookieMsgItems",null);
_.r([_.w("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],LB.prototype,"eomNonEssentialCookieMsgItems",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],LB);
_.m(LB,"ytd-consent-bump-v2-lightbox",function(){if(zJg!==void 0)return zJg;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return zJg=L},{mode:1});var maY;var ZY=function(){return _.e.apply(this,arguments)||this};
_.f(ZY,_.e);ZY.prototype.ready=function(){if(!_.dv()||uDq)var L=!0;else uDq=!0,L=!1;L||(L=document.querySelector("ytd-app"),L||(L=document.body),this.internalLightBox=_.QJ(L).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.r([_.Y(),_.Q("design:type",Object)],ZY.prototype,"data",void 0);_.r([_.TX("#lightbox"),_.Q("design:type",Object)],ZY.prototype,"lightBox",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],ZY);
_.m(ZY,"ytd-consent-bump-v2-renderer",function(){if(maY!==void 0)return maY;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return maY=L},{mode:1});var JGq;var C5y;var rG5;var Nz=function(){return _.e.apply(this,arguments)||this};
_.f(Nz,_.e);_.t=Nz.prototype;_.t.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&oW5(this.toastManager,this.toastType)};
_.t.open=function(L){this.toast&&(this.ephemeralAction&&_.GR().resolve(_.LR).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=L!=null?L:0,this.toastManager.enqueue(this.toast,L)):this.toast.open())};
_.t.close=function(L){var Z;(Z=this.toast)==null||Z.close();this.toastManager&&L===1&&oW5(this.toastManager,L)};
_.t.refit=function(){var L;(L=this.toast)==null||L.refit()};
_.t.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var L;(L=this.toast)==null||L.close()}};
_.t.setVerticalOffset=function(L){this.toast&&(this.toast.verticalOffset=L,this.toast.fit())};
_.t.computeButtonClass_=function(L){return L?"toast-button":""};
_.t.computeText_=function(L){return _.jM(L)};
_.t.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Sk("toast-opened-changed",this.toastOpened))};
_.t.updateToastOpenedFromBinding=function(L){this.toastOpened=L.detail.value};
_.gd.Object.defineProperties(Nz.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var L,Z,N=(L=this.data)==null?void 0:(Z=L.actionButton)==null?void 0:Z.buttonRenderer;return(N==null?void 0:N.command)||(N==null?void 0:N.serviceEndpoint)||(N==null?void 0:N.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 L=[],Z;((Z=this.data)==null?0:Z.responseText)&&L.push(_.jM(this.data.responseText));var N;((N=this.data)==null?0:N.subText)&&L.push(_.jM(this.data.subText));var S,u;if((S=this.data)==null?0:(u=S.actionButton)==null?0:u.buttonRenderer){var T,W;L.push(((T=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(W=T.accessibilityData)==null?void 0:W.label)||_.jM(this.data.actionButton.buttonRenderer.text))}return L.filter(function(V){return V}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var L,Z;return(Z=(L=this.toast)==null?void 0:L.opened)!=null?Z:!1}}});
Nz.prototype.toastOpenedChangedForBinding=Nz.prototype.toastOpenedChangedForBinding;Nz.prototype.toastOpenedChanged=Nz.prototype.toastOpenedChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Nz.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],Nz.prototype,"ytEventForwardingBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Nz.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],Nz.prototype,"duration",void 0);
_.r([_.Y(),_.Q("design:type",Number)],Nz.prototype,"toastType",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Nz.prototype,"useCloseButton",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],Nz.prototype,"closeToastOnActionButtonClick",void 0);_.r([_.Y({value:function(){return _.iB("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Q("design:type",String)],Nz.prototype,"closeButtonAriaLabel",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Nz.prototype,"toastOpened",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Nz.prototype,"hasOpened",void 0);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Nz.prototype,"command",null);_.r([_.w("labelText","command","duration"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Nz.prototype,"ephemeralAction",null);
_.r([_.w("ephemeralAction"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Nz.prototype,"hasEphemeralAction",null);_.r([_.TX("#toast"),_.Q("design:type",Object)],Nz.prototype,"toast",void 0);_.r([_.Y({value:function(){return{style:"call-to-action-inverse"}}}),
_.Q("design:type",Object)],Nz.prototype,"buttonOverrides",void 0);_.r([_.Y({value:{style:"mono-inverse"}}),_.Q("design:type",Object)],Nz.prototype,"closeButtonOverrides",void 0);_.r([_.Y({value:function(){return _.GR().resolve(_.gv(_.AM))}}),
_.Q("design:type",Object)],Nz.prototype,"toastManager",void 0);_.r([_.w("data.responseText","data.subText","data.actionButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Nz.prototype,"labelText",null);_.r([_.iA("toastOpened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Nz.prototype,"toastOpenedChanged",null);
_.r([_.iA("toastOpened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Nz.prototype,"toastOpenedChangedForBinding",null);_.r([_.ch({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Nz);
_.m(Nz,"yt-notification-action-renderer",function(){if(rG5===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;C5y===void 0&&(C5y=document.createElement("template"));var S=C5y;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);rG5=L}L=rG5;return L},{mode:2});var SL=function(){var L=_.e.apply(this,arguments)||this;L.duration=4E3;L.downloadingCount=0;L.downloadedCount=0;L.downloadingOnlySmartDownloads=!1;L.sessionTotalDownloads=0;L.sessionDownloaded=0;L.previousSessionsDownloaded=0;L.totalDownloadPercentage=0;L.currentDownloadProgress=0;L.currentDownloadPercentage=0;L.isLeaderTab=!0;L.isFullScreen=!1;L.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};L.boundBeforeUnload=function(Z){L.isLeaderTab&&L.downloadingCount>0&&(Z.preventDefault(),
Z.returnValue=!0)};
return L};
_.f(SL,_.e);_.t=SL.prototype;
_.t.open=function(){this.updateDownloadState();if(this.data){var L=this.sessionDownloaded+1,Z=this.sessionTotalDownloads>1?_.iB("VIDEOS_DOWNLOADING_RATIO",{downloaded:L.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+L+"/"+this.sessionTotalDownloads):_.iB("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(Z=this.sessionTotalDownloads>1?_.iB("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:L.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
L+"/"+this.sessionTotalDownloads):_.iB("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));L=this.isLeaderTab?_.iB("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.jM(this.data.responseText)!==Z||_.jM(this.data.subText)!==L)this.set("data.responseText",_.s9(Z)),this.set("data.subText",_.s9(L)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.t.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.t.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.t.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.t.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var L=this.downloadedCount-this.previousSessionsDownloaded;L<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-L);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.t.handleFullscreenChange=function(L){(this.isFullScreen=L)||this.updatePopup()};
SL.prototype.updateCurrentDownloadProgress=SL.prototype.updateCurrentDownloadProgress;SL.prototype.updatePopup=SL.prototype.updatePopup;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],SL.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],SL.prototype,"ytEventForwardingBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],SL.prototype,"actionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],SL.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],SL.prototype,"duration",void 0);_.r([_.Y({selector:function(L){return _.EvF(L.entities).length}}),
_.Q("design:type",Object)],SL.prototype,"downloadingCount",void 0);_.r([_.Y({selector:SR8}),_.Q("design:type",Object)],SL.prototype,"downloadedCount",void 0);_.r([_.Y({selector:function(L){var Z=_.EvF(L.entities);return N$v(L.entities,Z)}}),
_.Q("design:type",Object)],SL.prototype,"downloadingOnlySmartDownloads",void 0);_.r([_.Y(),_.Q("design:type",Object)],SL.prototype,"sessionTotalDownloads",void 0);_.r([_.Y(),_.Q("design:type",Object)],SL.prototype,"sessionDownloaded",void 0);_.r([_.Y(),_.Q("design:type",Object)],SL.prototype,"previousSessionsDownloaded",void 0);_.r([_.Y(),_.Q("design:type",Object)],SL.prototype,"totalDownloadPercentage",void 0);
_.r([_.Y({selector:function(L){var Z;L=(Z=_.EvF(L.entities))!=null?Z:[];return L.length>0?_.yex(L.slice(-1)):0}}),
_.Q("design:type",Object)],SL.prototype,"currentDownloadProgress",void 0);_.r([_.Y(),_.Q("design:type",Object)],SL.prototype,"currentDownloadPercentage",void 0);_.r([_.Y({selector:_.JyL}),_.Q("design:type",Object)],SL.prototype,"isLeaderTab",void 0);_.r([_.TX("yt-notification-action-renderer"),_.Q("design:type",Object)],SL.prototype,"notificationActionRenderer",void 0);
_.r([_.Vr("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],SL.prototype,"updatePopup",null);_.r([_.Vr("currentDownloadProgress"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],SL.prototype,"updateCurrentDownloadProgress",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],SL);
_.m(SL,"ytd-video-download-toast-renderer",function(){if(JGq!==void 0)return JGq;var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return JGq=L},{mode:1});var QKq;var X1c;var is=function(){return _.e.apply(this,arguments)||this};
_.f(is,_.e);is.prototype.computeIsRedLogo=function(L,Z){!L&&Z&&(L=Z);return L==="YOUTUBE_RED_LOGO"||L==="YOUTUBE_PREMIUM_LOGO"};
is.prototype.computeLogoName=function(L){L=this.componentBehavior.computeIcon_(L);return L===""?"yt-logos-ext:yt-logo-updated":L};
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],is.prototype,"componentBehavior",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.Q("design:type",Boolean)],is.prototype,"isRedLogo",void 0);_.r([_.Y({computed:"computeLogoName(data)"}),_.Q("design:type",String)],is.prototype,"logoName",void 0);_.r([_.Y({value:{}}),_.Q("design:type",Object)],is.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Object)],is.prototype,"logoType",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-logo"})],is);
_.m(is,"ytd-logo",function(){if(X1c!==void 0)return X1c;var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return X1c=L},{mode:_.Qr("kevlar_poly_si_batch_j074")?1:2});var us=function(){var L=_.e.apply(this,arguments)||this;L.animationRef={};return L};
_.f(us,_.e);_.t=us.prototype;_.t.attached=function(){document.addEventListener("yt-navigate-finish",_.Nd(this,this.logYoodle))};
_.t.detached=function(){document.removeEventListener("yt-navigate-finish",_.Nd(this,this.logYoodle))};
_.t.logYoodle=function(){var L,Z;if((L=this.data)==null?0:(Z=L.loggingDirectives)==null?0:Z.trackingParams)this.ytRendererBehavior.markDirty(),_.tC().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.t.computeHideImg=function(L,Z){return!!L||!!Z};
_.t.computeHideYtdLogo=function(L,Z){return!L||!!Z};
_.t.computeHideLottie=function(L){return!L};
_.t.computeIsRedLogo=function(L){return L==="YOUTUBE_RED_LOGO"||L==="YOUTUBE_PREMIUM_LOGO"};
_.t.renderLogoEntity=function(){var L=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),Z=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),N=this.getLogoTitleText(this.data),S=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==L&&(this.url=L);this.animatedUrl!==Z&&(this.animatedUrl=Z);this.logoTitleText!==N&&(this.logoTitleText=N);this.lottieUrl!==S&&(this.lottieUrl=S,this.lottiePlayerProps=this.computeLottiePlayerProps(S))};
_.t.getSanitizedThumbnail=function(L){return L&&L.thumbnails?_.C5P(L.thumbnails,122)||"":""};
_.t.getThumbnailUrl=function(L,Z){if(!Z)return"";var N,S;L=L?(N=Z.darkThemeLogo)==null?void 0:N.thumbnail:(S=Z.lightThemeLogo)==null?void 0:S.thumbnail;return this.getSanitizedThumbnail(L)};
_.t.getAnimatedThumbnailUrl=function(L,Z){return Z?this.getSanitizedThumbnail(L?Z.darkThemeAnimatedLogo:Z.lightThemeAnimatedLogo):""};
_.t.getLogoTitleText=function(L){if(L)return _.jM(L.tooltipText)};
_.t.computeLogoIcon=function(L,Z){if(Z){var N,S;return L?(N=Z.darkThemeLogo)==null?void 0:N.icon:(S=Z.lightThemeLogo)==null?void 0:S.icon}};
_.t.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.t.getLottieUrl=function(L,Z){var N,S,u,T;return L?Z==null?void 0:(N=Z.darkThemeLogo)==null?void 0:(S=N.lottieAnimation)==null?void 0:S.url:Z==null?void 0:(u=Z.lightThemeLogo)==null?void 0:(T=u.lottieAnimation)==null?void 0:T.url};
_.t.computeLottiePlayerProps=function(L){if(L){var Z;if((Z=this.animationRef)==null?0:Z.lottieEl){var N;(N=this.animationRef)==null||N.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:L,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.t.onLottieError=function(){this.data&&this.lottieUrl&&_.QT(this.hostElement,"yoodle-error")};
_.t.onImgError=function(){this.data&&!this.lottieUrl&&_.QT(this.hostElement,"yoodle-error")};
us.prototype.playAnimation=us.prototype.playAnimation;us.prototype.renderLogoEntity=us.prototype.renderLogoEntity;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],us.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],us.prototype,"data",void 0);_.r([_.Y({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.Q("design:type",Boolean)],us.prototype,"hideImg",void 0);
_.r([_.Y({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.Q("design:type",Boolean)],us.prototype,"hideYtdLogo",void 0);_.r([_.Y({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.Q("design:type",Boolean)],us.prototype,"hideLottie",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.Q("design:type",Boolean)],us.prototype,"isRedLogo",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],us.prototype,"useDarkThemeYoodle",void 0);_.r([_.Y(),_.Q("design:type",String)],us.prototype,"url",void 0);_.r([_.Y(),_.Q("design:type",String)],us.prototype,"animatedUrl",void 0);_.r([_.Y(),_.Q("design:type",String)],us.prototype,"logoTitleText",void 0);_.r([_.Y({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.Q("design:type",Object)],us.prototype,"logoIcon",void 0);_.r([_.Y(),_.Q("design:type",Object)],us.prototype,"logoType",void 0);
_.r([_.Y(),_.Q("design:type",String)],us.prototype,"lottieUrl",void 0);_.r([_.Y(),_.Q("design:type",Object)],us.prototype,"lottiePlayerProps",void 0);_.r([_.Y(),_.Q("design:type",Object)],us.prototype,"animationRef",void 0);_.r([_.iA("data"),_.iA("useDarkThemeYoodle"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],us.prototype,"renderLogoEntity",null);
_.r([_.SA("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],us.prototype,"playAnimation",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],us);
_.m(us,"ytd-yoodle-renderer",function(){if(QKq!==void 0)return QKq;var L=document.createElement("template");_.k(L,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return QKq=L},{mode:_.Qr("kevlar_poly_si_batch_j074")?1:2});var AGm;var H3Q;var BOy=_.Y9.currentPageTypeSelector,xa0=_.Y9.currentPageSubTypeSelector,T4=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return L};
_.f(T4,_.e);_.t=T4.prototype;_.t.onYoodleError=function(){_.c("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.t.computeLogoName=function(L){L=this.componentBehavior.computeIcon_(L);return L===""?"yt-logos-ext:yt-logo-updated":L};
_.t.computeTitle=function(L,Z,N){return N&&(Z==null?0:Z.tooltipText)?_.jM(Z.tooltipText):_.jM(L)};
_.t.computeAriaLabel=function(L,Z,N){return N&&(Z==null?0:Z.tooltipText)?_.jM(L):""};
_.t.computeShowYoodle=function(L,Z,N){return!L||!Z&&!!N&&!_.Py.isEmpty(N)};
_.t.onNavigateHomeAction=function(){if(_.c("kevlar_miniplayer_navigate_home_from_app_killswitch")){var L;(L=_.QJ(this.hostElement).querySelector(".yt-simple-endpoint"))==null||L.click()}};
_.t.computeLogoHref=function(L,Z,N){var S;(N==null?0:N.onTapCommand)?S=this.componentBehavior.computeHref_(N.onTapCommand):L&&(S=this.componentBehavior.computeHref_(L));return S?S:Z};
_.t.computeCommand=function(L,Z){return(Z==null?void 0:Z.onTapCommand)||L};
_.t.getEndpointForm=function(){if(_.c("kevlar_topbar_disable_cache_only_home")){var L=_.GR().resolve(_.mc),Z=BOy(L.getState())||"";L=xa0(L.getState())||"";return{disableCache:Z==="ytd-browse"&&L==="home"}}return{disableCache:!0}};
T4.prototype.onYoodleError=T4.prototype.onYoodleError;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],T4.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],T4.prototype,"componentBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],T4.prototype,"ytdReduxBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],T4.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],T4.prototype,"countryCode",void 0);_.r([_.Y({selectorArgs:["data.overrideEntityKey"],selector:function(L,Z){return _.Lk(L.entities,"logoEntity",Z)}}),
_.Q("design:type",Object)],T4.prototype,"logoEntity",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.Q("design:type",Boolean)],T4.prototype,"showYoodle",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],T4.prototype,"yoodleError",void 0);_.r([_.Y({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.Q("design:type",String)],T4.prototype,"titleText",void 0);
_.r([_.Y({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.Q("design:type",String)],T4.prototype,"ariaLabelText",void 0);_.r([_.Y({value:"/"}),_.Q("design:type",String)],T4.prototype,"defaultEndpointUrl",void 0);_.r([_.Y({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.Q("design:type",String)],T4.prototype,"endpointUrl",void 0);
_.r([_.Y({computed:"computeCommand(data.endpoint, logoEntity)"}),_.Q("design:type",String)],T4.prototype,"command",void 0);_.r([_.Y(),_.Q("design:type",Object)],T4.prototype,"logoType",void 0);_.r([_.Y({}),_.Q("design:type",Boolean)],T4.prototype,"useDarkThemeYoodle",void 0);_.r([_.SA("yoodle-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],T4.prototype,"onYoodleError",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],T4);
_.m(T4,"ytd-topbar-logo-renderer",function(){if(H3Q!==void 0)return H3Q;var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return H3Q=L},{mode:_.Qr("kevlar_poly_si_batch_j027")?1:2});var qfk=0;var L6v=_.cm.SEARCH_APPEND_LABEL,Zu8=_.cm.SUGGESTION_NEW_VIDEOS_TEXT,NBm=_.cm.SUGGESTION_THUMBNAIL_LABEL,SAP=_.cm.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,iug=_.p(function(L){function Z(vl){var oQ,H6;return _.b(function(IQ){if(IQ.nextAddress==1)return oQ=new Request(vl),_.RS(IQ,2),IQ.yield(fetch(oQ,{credentials:"include"}),4);if(IQ.nextAddress!=2)return n8(!0),_.SX(IQ,0);H6=_.yd(IQ);_.Q7(H6);_.w7(IQ)})}
var N=L.isHighlighted;var S=L.suggestion;var u=L.onClickCallback;var T=L.onHoverUpdateCallback;var W=L.labels;var V=L.queryBuilderFunction;var M=L.onRemoveCallback;var G=L.suggestionIndex;var D=L.generateUniqueId;var l=L.highlightedId;var v=L.useScrollMargin;var R=L.isKeyboardMode;var K=null,U=null,d=_.t2("div"),h=_.t2("span");L=_.O(_.nh(!1,void 0,"mxSc0e"));var E=L.next().value,A=L.next().value,J=_.OV("a",function(vl){vl&&_.bF(237477,vl,U,function(oQ){U=oQ})}),C=_.OV("button",function(vl){vl&&_.bF(237477,
vl,U,function(oQ){U=oQ})}),X=_.Z9(function(vl){if((vl==null?void 0:vl.button)===2)return vl.preventDefault(),!1;
var oQ=_.RH();oQ&&K&&_.jz(oQ,K,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var H6;u(vl,S().text,S().index,S().entityMid,vl==null?void 0:(H6=vl.detail)==null?void 0:H6.wasSelectedByKeyboard);return!1}),L1=function(){return S().type===35},Fw=function(){return _.c("desktop_enable_single_suggestion_highlight")},GB=function(){return _.lQ("desktop_suggestions_panel_row_height")||0},Yt=function(){var vl;
return _.c("desktop_enable_new_video_metadata")&&((vl=S())==null?void 0:vl.hasNewVideo)===!0},lH=function(){return _.c("desktop_enable_visual_suggest")},RF=function(){return _.c("desktop_enable_entity_suggest")&&w1k(S())},jf=function(){return S().entitySubtitle},f1=function(){return Fw()?(N==null?void 0:N())||ut()&&!(R==null?0:R()):(N==null?void 0:N())||ut()},n0=function(){var vl=_.X7("SBOX_SETTINGS");
return L1()&&!(vl==null?0:vl.HIDE_REMOVE_LINK)},r5=function(){return Uam(S(),{useEntityName:RF()})},yq,ZN=!((yq=_.GR().resolve(_.gv(_.d$)))==null||!yq()),GV=function(){return L1()?_.c("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},IO=function(){return W==null?void 0:W().SUGGESTION_DISMISS_LABEL},d5=function(){return W==null?void 0:W().SUGGESTION_DISMISSED_LABEL};
L=_.O(_.nh(!1,void 0,"WMms1e"));yq=L.next().value;var n8=L.next().value;L=_.O(_.nh(!1,void 0,"PyL0t"));var lq=L.next().value,tx=L.next().value,ut=lq,oO=_.Z9(function(){V(h.value.innerText);return!1}),uq=_.Z9(function(vl){vl.preventDefault();
return!1}),RO=_.Z9(function(vl){var oQ=S().text,H6=_.X7("SBOX_SETTINGS"),IQ="https://"+(H6.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
IQ+="&delq="+encodeURIComponent(oQ);(oQ=H6==null?void 0:H6.PSUGGEST_TOKEN)&&(IQ+="&tok="+oQ);(H6=H6==null?void 0:H6.SESSION_INDEX)&&(IQ+="&authuser="+H6);Z(IQ);vl.preventDefault();(vl=_.RH())&&U&&_.jz(vl,U,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");M(G==null?void 0:G());return!1}),iq=_.Z9(function(){if(Fw()&&(R==null?0:R()))return!1;
tx(!0);T(!0);return!1}),hU=_.Z9(function(){tx(!1);
T(!1);return!1}),Qq=_.Z9(function(){A(!0);
return!1}),Fh=_.Z9(function(){A(!1);
return!1}),g5=_.Z9(function(vl){vl.preventDefault();
if(S().entityThumbnailAttributionUrl){var oQ=S().entityThumbnailAttributionUrl;vl=S().entityName;var H6={dismissDialogEndpoint:{}};oQ={commandExecutorCommand:{commands:[H6,{urlEndpoint:{url:oQ,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:oQ}}}]}};H6={buttonViewModel:{title:_.iB("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:H6}}};oQ={buttonViewModel:{title:_.iB("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:oQ}}};vl={dialogHeaderViewModel:{headline:{content:vl!=null?vl:_.iB("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var IQ={basicContentViewModel:{paragraphs:[{text:{content:_.iB("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};vl={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:vl,footer:{panelFooterViewModel:{primaryButton:oQ,
secondaryButton:H6,shouldHideDivider:!0}},content:IQ}}}}};_.GR().resolve(_.$s).resolveCommand(vl)}return!1});
L=_.O(_.nh("",void 0,"yG5Sx"));var SY=L.next().value,Xw=L.next().value;_.zp(function(){n0()&&Xw(D==null?void 0:D(G==null?void 0:G()));d.value&&_.bF(12453,d.value,K,function(vl){K=vl})});
return _.g(_.F,{cond:yq,then:function(){var vl={};return _.g("div",{class:_.qg("ytSuggestionComponentRemovedText",(vl.ytSuggestionComponentLargerRemovedText=function(){return lH()},vl)),
style:function(){return GB()>0?"height: "+GB()+"px;":""},
role:"button"},d5)},
else:function(){var vl={},oQ={};return _.g("div",{class:_.qg("ytSuggestionComponentSuggestion",(vl.ytSuggestionComponentSuggestionHover=function(){return!Fw()},vl.ytSuggestionComponentHighlighted=f1,vl.ytSuggestionComponentPersonalizedSuggestion=L1,vl.ytSuggestionComponentMweb=!1,vl.ytSuggestionComponentLargerSuggestion=function(){return Yt()||lH()},vl.ytSuggestionComponentThumbnailSuggestion=function(){return lH()},vl.ytSuggestionComponentRoundedSuggestion=function(){return _.c("desktop_enable_scrollable_suggestions_panel")&&
_.c("desktop_enable_suggestions_panel_padding")},vl.ytSuggestionComponentThumbnailPadding=function(){return lH()&&!L1()},vl)),
style:function(){return GB()>0?"height: "+GB()+"px;":""},
role:"presentation","on:mousedown":X,"on:mouseover":iq,"on:mouseout":hU,el:d},_.g("div",{class:_.qg("ytSuggestionComponentText",(oQ.ytSuggestionComponentScrollMargin=v,oQ)),"aria-label":function(){return Yt()?S().text+" "+Zu8:S().text},
id:function(){return D==null?void 0:D(G==null?void 0:G())},
"on:mousedown":X,role:"option"},_.g(_.F,{cond:function(){return S().type!==33},
then:function(){return _.g(_.T0,{icon:GV,className:"ytSuggestionComponentIcon"})}}),_.g("div",{class:"ytSuggestionComponentLeftContainer"},_.g("span",{el:h,
role:"button",tabindex:0},_.g(_.ju,{each:r5},function(H6){return H6.bold?_.g("span",{class:"ytSuggestionComponentBold"},H6.text):_.g("span",null,H6.text)})),_.g(_.F,{cond:function(){return RF()&&!!S().entitySubtitle||Yt()},
then:function(){return _.g("div",{class:"ytSuggestionComponentMetadataContainer"},_.g(_.F,{cond:function(){return RF()&&!!S().entitySubtitle},
then:function(){return _.g("div",{class:"ytSuggestionComponentEntitySubtitle"},jf)}}),_.g(_.F,{cond:function(){return Yt()},
then:function(){return _.g("div",{class:"ytSuggestionComponentNewVideoContainer"},_.g("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.g("div",{class:"ytSuggestionComponentNewVideoText"},Zu8))}}))}}))),_.g("div",{class:"ytSuggestionComponentRightContainer"},_.g(_.F,{cond:function(){return lH()&&S().visualSuggestUrl!==void 0},
then:function(){var H6={};return _.g("div",{class:"ytSuggestionComponentThumbnailContainer"},_.g("img",{"aria-label":NBm,class:_.qg("ytSuggestionComponentVisualSuggestThumbnail",(H6.ytSuggestionComponentCircularFrame=function(){return RF()&&S().subtypes.includes(790)},H6.ytSuggestionComponentEntitySuggestThumbnail=function(){return RF()},H6)),
src:function(){return S().visualSuggestUrl}}),_.g(_.F,{cond:function(){return RF()&&!!S().entityThumbnailAttributionUrl},
then:function(){var IQ={};return _.g("span",{title:SAP,role:"tooltip"},_.g("div",{"on:mouseover":Qq,"on:mouseout":Fh,"on:mousedown":g5,class:_.qg("ytSuggestionComponentThumbnailOverlay",(IQ.ytSuggestionComponentThumbnailOverlayHidden=function(){return!E()},IQ))},_.g(_.T0,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.g(_.EM,null,_.g(_.hh,{when:function(){return lH()&&n0()}},function(){var H6={};
return _.g("button",{class:_.qg("ytSuggestionComponentRemoveLinkClearButton",(H6.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return SY()&&SY()===(l==null?void 0:l())},H6.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!f1()},H6)),
el:C,"on:mousedown":RO,"aria-label":IO,id:function(){return SY()}},_.g(_.T0,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.g(_.hh,{when:function(){return!(lH()&&S().visualSuggestUrl!==void 0)&&n0()}},function(){var H6={};
return _.g("a",{class:_.qg("ytSuggestionComponentRemoveLink",(H6.ytSuggestionComponentRemoveLinkDark=ZN,H6.ytSuggestionComponentRemoveLinkSelected=function(){return SY()&&SY()===(l==null?void 0:l())},H6)),
el:J,"on:mousedown":RO,"aria-label":IO,tabindex:0,role:"button",id:function(){return SY()}},IO)}),_.g(_.hh,{when:function(){return!1}},function(){return _.g("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":oO,"on:mousedown":uq,role:"button","aria-label":L6v},_.g(_.T0,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"lj");var u9Y=_.sc(["//www.google.com/textinputassistant/","/","_tia.js"]),TBq=_.p(function(){return _.g("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.g("button",{class:"ytdTextInputAssistantButton","on:click":_.Z9(function(){da8().inputMethodsTracker.add(3);var L,Z=(L=_.X7("SBOX_SETTINGS"))==null?void 0:L.REQUEST_LANGUAGE;if(Z)return _.Uo(_.vy(u9Y,14,Z)),!1})},_.g("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"mj");var tpg=function(){this.cache=new Map},Ouy=function(L){for(var Z=_.O(L.cache.entries()),N=Z.next();!N.done;N=Z.next()){var S=_.O(N.value);
N=S.next().value;S=S.next().value;S.suggestions.some(function(u){return u.type===35})&&L.cache.delete(N)}};var W68=_.cm.SEARCH,VpQ=_.cm.SEARCH_CLEAR_LABEL,bus=new _.iY("FAKE_SUGGEST_RESPONSE");_.CY(_.p(function(L){function Z(){Qq||(Qq=setTimeout(function(){g5()},1E3))}
function N(kL,f0,Pw){if(kL.trim()){hU=kL;_.Qc("REFINEMENTS_TUPLE",void 0);RO=!0;var o7;f0=sK0(lq,f0);var lt=(o7=L.searchEndpoint)==null?void 0:o7.call(L);_.tds(kL,f0,lt,GV.value.value,Pw,window.location.pathname.startsWith("/shorts"));g5();GV.value.value=kL;GV.value.blur();lq.reset()}}
function S(kL){return _.b(function(f0){return f0.return(new Promise(function(Pw){var o7=new XMLHttpRequest;o7.open("GET",RJQ(kL),!0);o7.withCredentials=!0;var lt=_.X7("SBOX_SETTINGS");(lt==null?0:lt.SEND_VISITOR_DATA)&&o7.setRequestHeader("X-Goog-Visitor-Id",lt==null?void 0:lt.VISITOR_DATA);o7.onload=function(){Pw(o7.responseText)};
o7.onerror=function(){_.Q7(Error("Kl"));Pw(null)};
setTimeout(function(){o7.abort()},1E4);
o7.send(null)}))})}
function u(kL){var f0,Pw,o7,lt;return _.b(function(Yh){switch(Yh.nextAddress){case 1:return f0={credentials:"include",headers:oA8()},window.AbortController&&(Pw=new AbortController,setTimeout(function(){Pw.abort("ytsbox-suggest-timeout")},1E4),f0.signal=Pw.signal),_.RS(Yh,2),Yh.yield(fetch(RJQ(kL),f0),4);
case 4:o7=Yh.yieldResult.text();_.SX(Yh,3);break;case 2:return lt=_.yd(Yh),lt!=="ytsbox-abort-last"&&lt!=="ytsbox-suggest-timeout"&&_.Q7(lt),Yh.return(null);case 3:return Yh.return(o7)}})}
function T(kL){var f0,Pw,o7;return _.b(function(lt){switch(lt.nextAddress){case 1:if(f0=_.GR().resolve(_.gv(bus)))return lt.return(f0);Pw=Date.now();Z();return _.c("yt_searchbox_xhr")?lt.yield(S(kL),5):lt.yield(u(kL),4);case 4:o7=lt.yieldResult;lt.jumpTo(3);break;case 5:o7=lt.yieldResult;case 3:if(o7){Qq&&(clearTimeout(Qq),Qq=null);var Yh=lq,SU=Pw,pG=kL.query.length===0;SU=Date.now()-SU;pG?Yh.zeroPrefixRoundTripTime=SU:(Yh.JSC$20921_totalRoundTripTime+=SU,Yh.maxRoundTripTime=Math.max(Yh.maxRoundTripTime,
SU),pG=Math.floor(SU/100),pG>=jKP.length?++Yh.roundTripTimeHistogram[9]:++Yh.roundTripTimeHistogram[jKP[pG]])}return lt.return(o7)}})}
function W(kL){var f0,Pw,o7;return _.b(function(lt){if(lt.nextAddress==1)return(f0=n8.cache.get(vAs(kL)))?lt.return(f0):lt.yield(T(kL),2);Pw=lt.yieldResult;if(Pw===null)return lt.return(null);o7=new Yf0(Pw);kL.query.length===0&&o7.suggestions.length===0||n8.cache.set(vAs(kL),o7);return lt.return(o7)})}
function V(kL){var f0,Pw;return _.b(function(o7){if(o7.nextAddress==1){iq=!1;var lt=hU;lt=_.Rtw()==="search"?(_.B4(location.href,"search_query")||_.B4(location.href,"q"))===lt:!1;f0=new l15(kL,lt?hU:null);return o7.yield(W(f0),2)}Pw=o7.yieldResult;if(Pw===null)return o7.return();f0.query.length===0&&(lq.zeroPrefixSuggestionCount=Pw.suggestions.length);if(f0.id<=Fh)return lq.outOfSyncResponseCount++,o7.return();if(document.activeElement!==GV.value)return o7.return();Fh=f0.id;var Yh=lq,SU=Pw.rawResponse[2]||
{};Yh.experimentTriggeredBeforeFinal||(Yh.experimentTriggeredBeforeFinal=Yh.experimentTriggeredFinal);Yh.experimentTriggeredFinal=!!SU.e;lq.updateSuggestions(Pw.suggestions);d(-1);n0([]);Pw.suggestions!==R()&&EK(Pw.suggestions.length);K(Pw.suggestions);Fw(Pw.suggestions.length>0&&Pw.suggestions[0].type===33);d5&&(d5.hidden=Pw.suggestions.length===0,L1()?(d5.style.minWidth="",Yh=d5.style,SU=(lt=R()[0])==null?void 0:lt.ignoredPrefix,Yh.marginLeft=(SU?Math.min(SU.length*6,IO.value.offsetWidth):0).toString()+
"px"):(d5.style.minWidth=IO.value.offsetWidth+"px",d5.style.marginLeft="0"),ZD());_.w7(o7)})}
function M(){if(!RO)return!1;var kL=_.X7("REFINEMENTS_TUPLE");return kL?(kL=kL[1].map(function(f0,Pw){return new yGQ([f0,0,[71]],GV.value.value,Pw)}),R()!==kL&&EK(kL.length),n0([]),K(kL),lq.updateSuggestions(kL),RO=!1,d5.hidden=kL.length===0,iq=kL.length>0,!0):!1}
function G(){var kL=GV.value.value;(typeof kL==="string"||kL instanceof String)&&kL!==""?J(!0):J(!1)}
function D(){if(_.Rtw()==="search"){var kL=window.location.href;try{var f0=_.B4(kL,"search_query")||_.B4(kL,"q")||""}catch(Pw){f0=""}f0&&(GV.value.value=f0,J(!0))}}
var l=_.O(_.nh([],void 0,"YqWjzb")),v=l.next().value;l=l.next().value;var R=v,K=l;v=_.O(_.nh(-1,void 0,"hiyF4d"));var U=v.next().value,d=v.next().value;v=_.O(_.nh(-1,void 0,"SUGY4b"));var h=v.next().value,E=v.next().value;v=_.O(_.nh(!1,void 0,"ozgCGe"));var A=v.next().value,J=v.next().value;v=_.O(_.nh(!1,void 0,"fb0dKe"));var C=v.next().value,X=v.next().value;l=_.O(_.nh(!1,void 0,"KkbNee"));v=l.next().value;l=l.next().value;var L1=v,Fw=l;l=_.O(_.nh(!1,void 0,"b5D7E"));v=l.next().value;var GB=l.next().value;
l=_.O(_.nh(!1,void 0,"UrhqVc"));var Yt=l.next().value,lH=l.next().value;l=_.O(_.nh(1,void 0,"zwJX4d"));var RF=l.next().value,jf=l.next().value;l=_.O(_.nh([],void 0,"HryHu"));var f1=l.next().value,n0=l.next().value;l=_.O(_.nh(!1,void 0,"Imfa3e"));var r5=l.next().value,yq=l.next().value;l=_.c("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var ZN=_.t2("yt-searchbox"),GV=_.t2("input"),IO=_.t2("div"),d5,n8=
new tpg,lq=da8(),tx=_.GR().resolve(_.gv(_.d$)),ut=function(){var kL;return((kL=L.forceDarkMode)==null?void 0:kL.call(L))||!(tx==null||!tx())},oO=function(){return _.c("desktop_enable_scrollable_suggestions_panel")},uq="i"+qfk++,RO=!1,iq=!1,hU="",Qq=null,Fh=-1,g5=function(){n0([]);
K([]);Fw(!1);d5&&(d5.hidden=!0);Qq&&(clearTimeout(Qq),Qq=null);d(-1)},SY=function(kL,f0){kL.preventDefault();
yq(!0);d5&&(d5.hidden=!1);var Pw=U();kL=R();var o7=f1();f0=O58(f0);Pw+=f0;for(Pw>=kL.length?Pw=-1:Pw<-1&&(Pw=kL.length-1);Pw!==-1&&(o7.includes(Pw)||Pw>=kL.length||Pw<0);)Pw+=f0,Pw>=kL.length&&(Pw=-1);d(Pw);U()>=0&&(GV.value.value=R()[U()].text,E(0),G(),kL=U(),o7=h(),(o7=document.getElementById(c4[kL][o7]))&&oO()&&(kL===R().length-1?d5.scrollTop=d5.scrollHeight:o7.scrollIntoView({block:"nearest",inline:"start"})))},Xw=_.Z9(function(kL){if(!(kL.relatedTarget instanceof Element&&kL.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){X(!0);
var f0;(f0=L.focusCallback)==null||f0.call(L,!0);M()||(iq?d5.hidden=!1:(_.QT(ZN.value,"yt-autonav-pause-focus",{}),V(kL.target.value)))}}),vl=_.Z9(function(kL){if(!(kL.relatedTarget instanceof Element&&kL.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){X(!1);
var f0;(f0=L.focusCallback)==null||f0.call(L,!1);d5.scrollTop=0;d5.hidden=!0;_.QT(ZN.value,"yt-autonav-pause-blur",{})}}),oQ=function(kL){kL=O58(kL);
var f0;((f0=c4[U()])==null?0:f0[h()+kL])&&E(h()+kL)},H6=_.Z9(function(kL){var f0=kL.target;
switch(kL.keyCode){case 13:kL.preventDefault();var Pw;if((Pw=c4[U()])==null?0:Pw[h()]){var o7;(o7=document.getElementById(c4[U()][h()]))==null||o7.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}kL=kL.shiftKey?4:3;Pw=lq;o7=U();Pw.selectedSuggestionIndex=o7;N(f0.value,kL);break;case 27:d5&&(d5.hidden=!0);break;case 40:SY(kL,40);break;case 38:SY(kL,38);break;case 39:oQ(39);break;case 37:oQ(37);break;case 229:lq.inputMethodsTracker.add(4);break;default:lq.inputMethodsTracker.add(1),
a1Y(lq)}return!1}),IQ=_.Z9(function(kL){V(kL.target.value);
G();oO()&&d5&&(d5.scrollTop=0);return!1}),JU=_.Z9(function(){lq.inputMethodsTracker.add(2);
a1Y(lq);return!1});
_.zp(function(){if(d5){lq.reset();if(window.ResizeObserver){var kL=new ResizeObserver(function(){L1()||(d5.style.minWidth=IO.value.offsetWidth+"px")});
kL.observe(IO.value);(new ResizeObserver(function(){ZD()})).observe(d5);
_.zs(function(){kL.disconnect()})}D();
window.addEventListener("yt-navigate-finish",D);window.addEventListener("yt-focus-searchbox",function(){GV.value.focus()});
var f0;GB((f0=_.X7("SBOX_SETTINGS"))==null?void 0:f0.HAS_ON_SCREEN_KEYBOARD)}else _.CA(new _.sr("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var Zb=_.Z9(function(kL){kL.preventDefault();N(GV.value.value,12);return!1}),bG=_.Z9(function(kL){kL.preventDefault();
var f0,Pw;(f0=GV)==null||(Pw=f0.value)==null||Pw.focus();var o7,lt;((o7=GV)==null?void 0:(lt=o7.value)==null?void 0:lt.value)!==""&&(GV.value.value="",GV.value.dispatchEvent(new Event("input")));return!1}),Hl=_.Z9(function(){var kL=OVq(GV.value.value,R().filter(function(f0){return f0.type!==35}).map(function(f0){return{label:f0.text}}));
_.XJ(ZN.value,"yt-open-popup-action",[{openPopupAction:kL},document.body]);return!1}),k5=_.Z9(function(){GV.value.focus();
return!1}),Tg=function(kL,f0,Pw,o7,lt){lq.selectedSuggestionIndex=Pw;
N(f0,lt?3:1,o7)},Aj=function(kL){GV.value.value=kL;
GV.value.dispatchEvent(new Event("input"));lq.inputMethodsTracker.add(5);a1Y(lq,!0)},c4=[[]],Hy=function(kL){var f0="searchbox-suggestion"+_.st(_.C$);
c4[kL].push(f0);return f0},EK=function(kL){if(R()){c4=[[]];
for(var f0=0;f0<kL;f0++)c4.push([])}},ZD=function(){if(oO()){var kL=d5,f0=kL.scrollTop;
kL=kL.scrollHeight-kL.clientHeight;lH(f0>=kL);f0=Math.abs(kL-f0);f0<=40?jf(1-(40-f0)/40):jf(1)}},un=function(){return"opacity: "+RF()*100+"%"},wP=_.Z9(function(){ZD();
return!1}),Ps=_.Z9(function(){yq(!1);
return!1}),rP,K0={},RQ={},I7={},dy={};
return _.g("yt-searchbox",{class:_.qg("ytSearchboxComponentHost",(K0.ytSearchboxComponentMweb=!1,K0.ytSearchboxComponentDesktop=!0,K0["yt-searchbox-filled-query"]=function(){return A()},K0["ytd-masthead"]=function(){return!C()},K0.ytSearchboxComponentHostDark=ut,K0)),
role:"search",el:ZN,"client-ve-type":10349},_.g("div",{el:IO,"on:click":k5,class:_.qg("ytSearchboxComponentInputBox",(RQ.ytSearchboxComponentInputBoxDark=ut,RQ.ytSearchboxComponentInputBoxHasFocus=C,RQ))},_.g("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":Zb},_.g(_.F,{cond:C,then:function(){return _.g("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.g(_.T0,{icon:"SEARCH"}))}}),_.g("input",{el:GV,
class:_.qg("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":uq,"aria-expanded":!((rP=d5)==null?0:rP.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":vl,"on:focus":Xw,"on:input":IQ,"on:keydown":H6,"on:paste":JU,placeholder:L.placeholderText,"aria-activedescendant":function(){var kL;return(kL=c4[U()])==null?void 0:kL[h()]},
"aria-autocomplete":"list",role:"combobox"})),_.g(_.F,{cond:v,then:function(){return _.g("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.g(TBq,null))}}),_.g(_.F,{cond:A,
then:function(){return _.g("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.g("button",{class:"ytSearchboxComponentClearButton","on:click":bG,"aria-label":L.clearButtonAriaLabel||VpQ},_.g(_.T0,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.g(_.MN,{model:{}})))}})),_.g("button",{class:_.qg("ytSearchboxComponentSearchButton",(I7.ytSearchboxComponentSearchButtonDark=ut,I7)),
"on:click":Zb,"aria-label":W68,title:L.placeholderText},_.g(_.T0,{icon:"SEARCH"})),_.g(_.F,{cond:function(){if(dHs()&&_.c("mweb_voice_search")&&L.voiceSearchButton)return L.voiceSearchButton()},
then:function(kL){var f0={};return _.g("div",{class:_.qg("ytSearchboxComponentVoiceSearchWrapper",(f0.ytSearchboxComponentHideVoiceSearchButton=function(){return A()},f0))},_.g(_.bj,{data:kL},{buttonRenderer:function(Pw){return _.g(_.T9,{data:Pw.data,
onButtonClickCallback:function(){}})}}))}}),_.g("div",{el:_.P9(function(kL){return void(d5=kL)}),
id:uq,class:_.qg("ytSearchboxComponentSuggestionsContainer",(dy.ytSearchboxComponentSuggestionsContainerDark=ut,dy["yt-searchbox-suggestions-container"]=!1,dy.ytSearchboxComponentSuggestionsContainerScrollable=oO(),dy.ytSearchboxComponentSuggestionsContainerAnimated=l,dy)),"on:scroll":wP,"on:mousemove":Ps,role:"listbox",hidden:!0},_.g(_.ju,{each:R},function(kL,f0){return _.g(iug,{suggestion:kL,isHighlighted:function(){return f0()===U()},
onClickCallback:Tg,onHoverUpdateCallback:function(Pw){if(_.c("desktop_enable_single_suggestion_highlight")){var o7=f0();Pw&&(E(0),d(o7))}},
onRemoveCallback:function(Pw){Ouy(n8);Pw===void 0||Pw<0||f1().includes(Pw)||n0([].concat(_.Pd(f1()),[Pw]))},
labels:L.labels,queryBuilderFunction:Aj,suggestionIndex:f0,generateUniqueId:Hy,highlightedId:function(){var Pw;return(Pw=c4[U()])==null?void 0:Pw[h()]},
useScrollMargin:oO(),isKeyboardMode:r5})}),_.g(_.F,{cond:function(){return!L1()&&R().find(function(kL){return kL.type!==35})&&_.c("searchbox_reporting")},
then:function(){return _.g("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Hl},_.iB("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.g(_.F,{cond:function(){return!Yt()&&oO()},
then:function(){return _.g("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.g("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:un}))}})))},"oj"),"yt-searchbox",{props:{searchEndpoint:_.LK,
placeholderText:_.LK,labels:_.LK,voiceSearchButton:_.LK,focusCallback:_.zl,clearButtonAriaLabel:_.LK,forceDarkMode:_.LK}});var ti=function(){var L=_.e.apply(this,arguments)||this;L.menuButtonTargetId="topbar-guide-menu";L.narrow=!1;L.menuStrings={BACK_ALT_LABEL:_.iB("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.iB("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.iB("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.iB("SBOX_PLACEHOLDER",void 0,"Search")};L.pageDarkTheme=document.documentElement.hasAttribute("dark");L.watchPageScrollTop=0;L.theater=!1;L.fullscreen=!1;L.disableFrostedGlassDuringViewTransition=
!1;L.desktopUnifiedSearchPanelMode=_.c("desktop_enable_unified_search_panel");L.cinematicTheaterMode=_.c("web_cinematic_theater_mode");L.aiCompanionEnabled=_.c("enable_ai_companion");L.ytSearchboxFocused=!1;L.searchboxLabels=_.X7("SBOX_LABELS");L.topbarIsAboveChipbar=!1;L.isDarkThemeForced=!1;L.areGhostCardsHidden=!1;L.guideKeyboardToggle=!1;L.voiceSearchManager=g7q();L.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};L.setYtSearchboxFocused=
function(Z){L.ytSearchboxFocused=Z};
L.toggleFrostedGlassDuringViewTransition=function(Z){L.disableFrostedGlassDuringViewTransition=Z};
return L};
_.f(ti,_.e);_.t=ti.prototype;_.t.computeSimpleText=function(L){return _.jM(L)};
_.t.onDarkChanged=function(){for(var L=_.O(this.buttons||[]),Z=L.next();!Z.done;Z=L.next())Z.value.isOverlay=!!this.dark;L=_.O(this.buttonRenderers||[]);for(Z=L.next();!Z.done;Z=L.next())Z.value.overrides=this.computeButtonOverride()};
_.t.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var L=_.uh(_.ih(),"aa");_.Az(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||L||(this.isDarkThemeForced=this.dark=!0);this.logoType?(L=this.hostElement.querySelector("#masthead-logo"))&&(_.c("polymer_on_demand_shady_dom")?L.setAttribute("slot","masthead-logo-old"):_.U_(L)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Nd(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Nd(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.t.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Nd(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Nd(this,this.onSetTheaterModeEnabled))};
_.t.dataChanged=function(){var L=this.data;L&&(this.voiceEnabled=L.voiceSearchButton?g7q().isSupported():!1,_.RL0(_.yx(),this.menuButtonTargetId,this.guideButton),L.onReceivedActions&&L.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.B2(this.hostElement,L.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&L&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Az(this.hostElement,"dark",!1),_.Az(this.hostElement,"theater",!1),
(L=this.hostElement.querySelector("#masthead-logo"))&&(_.c("polymer_on_demand_shady_dom")?L.setAttribute("slot","masthead-logo-old"):_.U_(L))))};
_.t.computeCenterHidden=function(){var L;return this.data&&!((L=this.data.searchbox)==null?0:L.fusionSearchboxRenderer)};
_.t.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Az(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.t.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.t.onWatchScroll=function(L){this.watchPageScrollTop=L.detail||0;this.updateMastheadBackgroundOpacity()};
_.t.onFullscreenChangeAction=function(L){L||(this.watchPageScrollTop=0);this.fullscreen=L;this.updateMastheadBackgroundOpacity()};
_.t.onSetTheaterModeEnabled=function(L){this.theater=L.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.t.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.t.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.t.setBackgroundOpacity=function(L){L=this.calculateBackgroundOpacity(L);this.background.style.opacity=""+L};
_.t.calculateBackgroundOpacity=function(L){var Z=this.theater&&this.cinematicTheaterMode?.6:0,N=this.hostElement.clientHeight/2;return Math.min(Math.max(L,0),N)/N*(1-Z)+Z};
_.t.shouldShowCinematicMastHead=function(){var L=_.c("kevlar_watch_grid")&&!_.c("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(L||this.pageDarkTheme)};
_.t.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.t.focusGuide=function(){this.guideButton.focus()};
_.t.onGuideToggleTap=function(){_.QT(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.t.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.t.onGuideToggleHover=function(){_.QT(this.hostElement,"yt-guide-hover")};
_.t.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.t.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.t.closeOnOutsideClickCondition=function(L){for(L=_.sx(L);L[0];){var Z=L.shift();if(Z instanceof Element&&Z.id==="kbd")return!1}return!0};
_.t.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.t.pausePlayer=function(){var L;(L=_.CV())==null||L.pause();this.pauseMiniplayer()};
_.t.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var L;(L=_.GR().resolve(_.yk).getPlayerElement())==null||L.pause()}};
_.t.isMiniplayerActive=function(){return _.GR().resolve(_.yk).isMiniplayerActive()};
_.t.updateNarrowFromBinding=function(L){this.narrow=L.detail.value};
_.t.onYtSendFeedbackAction=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.t.registerWithViewTransitionManager=function(){I3y(_.GR().resolve(_.eB),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.gd.Object.defineProperties(ti.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.c("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 L;return!!(this.aiCompanionEnabled&&((L=this.data)==null?0:L.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var L;return(L=this.data)==null?void 0:L.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
ti.prototype.narrowChanged=ti.prototype.narrowChanged;ti.prototype.onWatchPageChange=ti.prototype.onWatchPageChange;ti.prototype.onRendererStamperFinished=ti.prototype.onRendererStamperFinished;ti.prototype.dataChanged=ti.prototype.dataChanged;ti.prototype.onDarkChanged=ti.prototype.onDarkChanged;_.r([_.y(_.Eb),_.Q("design:type",Object)],ti.prototype,"ironResizableBehavior",void 0);_.r([_.y(_.wqq),_.Q("design:type",Object)],ti.prototype,"ytdExpandableInputBehavior",void 0);
_.r([_.y(_.B0.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],ti.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ti.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],ti.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],ti.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.CD),_.Q("design:type",Object)],ti.prototype,"ytdReduxBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ti.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],ti.prototype,"narrow",void 0);_.r([_.Y(),_.Q("design:type",Object)],ti.prototype,"logoType",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],ti.prototype,"voiceEnabled",void 0);
_.r([_.Y(),_.Q("design:type",Object)],ti.prototype,"menuStrings",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],ti.prototype,"dark",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ti.prototype,"pageDarkTheme",void 0);_.r([_.Y(),_.Q("design:type",Object)],ti.prototype,"watchPageScrollTop",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.eut}),_.Q("design:type",Boolean)],ti.prototype,"isWatchPage",void 0);
_.r([_.Y({reflectToAttribute:!0,selector:_.IAw}),_.Q("design:type",Boolean)],ti.prototype,"isShortsPage",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ti.prototype,"theater",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ti.prototype,"fullscreen",void 0);_.r([_.Y({reflectToAttribute:!0,selector:_.s31}),_.Q("design:type",String)],ti.prototype,"frostedGlassMode",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ti.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],ti.prototype,"aiCompanionEnabled",void 0);_.r([_.Y(),_.Q("design:type",Object)],ti.prototype,"ytSearchboxFocused",void 0);_.r([_.tJ("#buttons > *"),_.Q("design:type",Array)],ti.prototype,"buttons",void 0);_.r([_.tJ("ytd-button-renderer"),_.Q("design:type",Array)],ti.prototype,"buttonRenderers",void 0);
_.r([_.TX("#background"),_.Q("design:type",HTMLDivElement)],ti.prototype,"background",void 0);_.r([_.TX("#guide-button"),_.Q("design:type",Object)],ti.prototype,"guideButton",void 0);_.r([_.TX("#logo"),_.Q("design:type",Object)],ti.prototype,"logo",void 0);_.r([_.Y({computed:"computeButtonOverride(dark)"}),_.Q("design:type",Object)],ti.prototype,"buttonOverrides",void 0);
_.r([_.Vr("dark"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ti.prototype,"onDarkChanged",null);_.r([_.Y({value:function(){return this.onVoiceTap.bind(this)}}),
_.Q("design:type",Function)],ti.prototype,"boundOnTapVoiceButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],ti.prototype,"topbarIsAboveChipbar",void 0);_.r([_.Y(),_.Q("design:type",String),_.Q("design:paramtypes",[])],ti.prototype,"guideIcon",null);_.r([_.w("voiceEnabled"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ti.prototype,"shouldShowVoiceSearchButton",null);
_.r([_.w("data.aiCompanionButton","aiCompanionEnabled"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ti.prototype,"shouldShowAiCompanionButton",null);_.r([_.w("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ti.prototype,"voiceSearchButton",null);_.r([_.w("aiCompanionEnabled"),_.Q("design:type",String),_.Q("design:paramtypes",[])],ti.prototype,"narrowQuery",null);
_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ti.prototype,"dataChanged",null);_.r([_.SA("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ti.prototype,"onRendererStamperFinished",null);_.r([_.Vr("isWatchPage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ti.prototype,"onWatchPageChange",null);
_.r([_.Vr("narrow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ti.prototype,"narrowChanged",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-masthead"})],ti);
_.m(ti,"ytd-masthead",function(){if(AGm!==void 0)return AGm;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return AGm=L},{mode:_.Qr("kevlar_poly_si_batch_j036")?1:2});var MpQ;var gI5={},GSv={},F6m={},$K5={},DKs=($K5.OFFLINE=(gI5["publicytnetworkstatus-online"]="BACK_ONLINE",gI5),$K5.ONLINE=(GSv["publicytnetworkstatus-offline"]="OFFLINE",GSv),$K5.BACK_ONLINE=(F6m["publicytnetworkstatus-offline"]="OFFLINE",F6m.TIMER_TRIGGER="ONLINE",F6m),$K5),Od=function(){var L=_.e.apply(this,arguments)||this;L.currentState="ONLINE";L.scheduledJobId=0;L.bannerString="";L.bannerVe=null;L.networkStatusManagerInstance=new _.iR;return L};
_.f(Od,_.e);_.t=Od.prototype;_.t.attached=function(){var L=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){L.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){L.stateChangeHandler("publicytnetworkstatus-offline")})};
_.t.detached=function(){var L=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){L.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){L.stateChangeHandler("publicytnetworkstatus-offline")})};
_.t.enterState=function(L){var Z=this;this.scheduledJobId&&_.ro.cancelJob(this.scheduledJobId);L==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):L==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.iB("NO_INTERNET_CONNECTION",void 0,"No internet connection")):L==="BACK_ONLINE"&&(this.bannerString=_.iB("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.sI(_.ro,function(){Z.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=L};
_.t.stateChangeHandler=function(L){(L=DKs[this.currentState][L])&&this.enterState(L)};
_.t.logVisibility=function(L){var Z=_.RH();this.createBannerVe(L);Z&&this.bannerVe&&(L?_.aq(Z,[this.bannerVe]):_.hq(Z,[this.bannerVe]))};
_.t.createBannerVe=function(L){!this.bannerVe&&L&&(this.bannerVe=_.Ll(37929),_.yn(_.tC(),this.bannerVe))};
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",String)],Od.prototype,"currentState",void 0);_.r([_.Y(),_.Q("design:type",Object)],Od.prototype,"scheduledJobId",void 0);_.r([_.Y(),_.Q("design:type",Object)],Od.prototype,"bannerString",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Od);
_.m(Od,"ytd-network-status-banner",function(){if(MpQ!==void 0)return MpQ;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return MpQ=
L},{mode:1});var ly5;var W5=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};L.hidden=!0;L.frostedGlass=_.c("web_frosted_glass");return L};
_.f(W5,_.e);W5.prototype.computeHidden=function(L){return L&&L.status?!1:!0};
W5.prototype.handleUpdatePermissionRoleCommand=function(L){if(L=_.n(L,_.yyt))if(L=_.n(L.renderer,_.kxh))this.data=L};
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],W5.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],W5.prototype,"componentBehavior",void 0);_.r([_.Y({value:!0,computed:"computeHidden(data)"}),_.Q("design:type",Object)],W5.prototype,"hidden",void 0);_.r([_.Y(),_.Q("design:type",Object)],W5.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],W5.prototype,"frostedGlass",void 0);
_.r([_.P({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],W5);
_.m(W5,"ytd-permission-role-bottom-bar-renderer",function(){if(ly5!==void 0)return ly5;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return ly5=L},{mode:1});var vIg;var oIq;var Wav={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var V9=function(){return _.e.apply(this,arguments)||this};
_.f(V9,_.e);_.t=V9.prototype;_.t.attached=function(){this.JSC$21038_scroller&&(this.JSC$21038_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21038_scroller.attached&&typeof this.JSC$21038_scroller.attached==="function"&&this.JSC$21038_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(N){N.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var L=_.QJ(this.hostElement);L.querySelector("tp-yt-paper-radio-group").selected="";var Z=L.querySelector("#reason-text");Z&&(Z.value="");L.querySelector("#description-text").value=""}};
_.t.canSubmit=function(L,Z){_.QT(this.hostElement,"yt-invalidate-popup-tabbables");return!(L&&Z)};
_.t.onCancel=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.t.onSubmit=function(){var L=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(T){return T.active}).map(function(T){return T.innerText.trim()}),Z=this.hostElement.querySelector("tp-yt-paper-radio-group"),N=Z.selectedItem,S=N.name;
N=N.innerText.trim();var u=Z.querySelector("#reason-text");Z=void 0;u&&(Z=u.value);(u=this.descriptionText.value)&&(u=u.trim());Vd8(this.data.searchQuery,L,S,N,u,Z);_.XJ(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.t.sendFormSubmitToast=function(){var L=_.m3(_.iB("SBOX_INAPPROPRIATE_TOAST"));_.XJ(this.hostElement,"yt-open-popup-action",[L,this])};
_.t.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(L){return L.active})};
_.t.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
V9.prototype.onIronSelect=V9.prototype.onIronSelect;V9.prototype.onIronChange=V9.prototype.onIronChange;V9.prototype.dataChanged=V9.prototype.dataChanged;_.r([_.Y(),_.Q("design:type",Object)],V9.prototype,"data",void 0);_.r([_.Y({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.Q("design:type",Boolean)],V9.prototype,"submitDisabled",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],V9.prototype,"suggestionSelected",void 0);
_.r([_.Y(),_.Q("design:type",Boolean)],V9.prototype,"catagorySelected",void 0);_.r([_.TX("#scroller"),_.Q("design:type",Object)],V9.prototype,"JSC$21038_scroller",void 0);_.r([_.TX("#description-text"),_.Q("design:type",Object)],V9.prototype,"descriptionText",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],V9.prototype,"dataChanged",null);
_.r([_.SA("iron-change"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],V9.prototype,"onIronChange",null);_.r([_.SA("iron-select"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],V9.prototype,"onIronSelect",null);_.r([_.P({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],V9);
_.m(V9,"ytd-search-suggestion-report-dialog",function(){if(oIq!==void 0)return oIq;var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);return oIq=L},{mode:1});var bs=function(L){var Z=L.openPopupAction;var N=L.target;var S=L.container;var u=L.popupContainerConfig;var T=L.getElement;L=L.removeWhenClosed===void 0?!1:L.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=Z;this.target=N;this.container=S;this.popupContainerConfig=u;this.getElement=T;this.JSC$21044_popupConfig=this.popupContainerConfig.JSC$20170_popupConfig[this.openPopupAction.popupType];this.rendererName=(Z=this.getName())?_.TmP(Z,Cuv(this.popupContainerConfig,
Z)):"";_.c("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=L);this.createPopup()};
bs.prototype.updatePopup=function(L){this.openPopupAction=L;this.JSC$21044_popupConfig=this.popupContainerConfig.JSC$20170_popupConfig[this.openPopupAction.popupType];Rn0(this);_.c("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
bs.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var K6m=function(L,Z,N){(Z=Z&&L.JSC$21044_popupConfig.narrowProperties?L.JSC$21044_popupConfig.narrowProperties:L.JSC$21044_popupConfig.properties)&&N!==void 0&&(Z.isAriaModal=N);cXQ(L,Z);L.isRtl()&&cXQ(L,L.JSC$21044_popupConfig.rtlProperties);nIY(L)};
bs.prototype.createPopup=function(){var L=this.JSC$21044_popupConfig.component;if(this.popupContent=fyY(this,this.rendererName)){if(L){this.popup=fyY(this,L);var Z=this.popupContent;_.c("web_enable_wrapper_for_cow_component_in_popup")&&(Z=document.createElement("div"),Z.appendChild(this.popupContent));_.c("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21044_popupConfig.slotName&&Z.setAttribute("slot",this.JSC$21044_popupConfig.slotName);L=this.popup;var N=this.container.tagName.toLowerCase(),
S=_.Ex(Z);_.ZP_(_.pX(L),_.Jz(Z,N,S));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.c("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.QJ(this.container).appendChild(this.popup)}};
var Rn0=function(L){var Z,N,S=(Z=L.openPopupAction.accessibilityData)==null?void 0:(N=Z.accessibilityData)==null?void 0:N.label;S&&(L.popup.ariaLabel=S);var u;((u=L.popupContent.polymerController)!=null?u:L.popupContent).data=(0,_.Py.unsafeClone)(L.openPopupAction.popup[L.getName()]);L.popupContent.duration=kSs(L);L.popupContent.positionType=L.openPopupAction.position;var T=L.openPopupAction.properties;T&&Object.keys(T).forEach(function(W){L.popupContent[W]=T[W]})},cXQ=function(L,Z){if(Z)for(var N=
_.O(Object.keys(Z)),S=N.next();!S.done;S=N.next())S=S.value,L.popup[S]=Z[S]},nIY=function(L){if(L.openPopupAction.position){var Z=L.JSC$21044_popupConfig.positionalProperties&&L.JSC$21044_popupConfig.positionalProperties[L.openPopupAction.position],N=L.JSC$21044_popupConfig.rtlPositionalProperties&&L.JSC$21044_popupConfig.rtlPositionalProperties[L.openPopupAction.position];
Z=L.isRtl()&&N?N:Z;Z.shiftedHorizontalOffset&&(N=L.popup.style.display,L.popup.style.display="block",L.popupContent&&L.popup.positionTarget&&L.popupContent.clientWidth>L.popup.positionTarget.clientWidth&&(Z.horizontalOffset=L.popup.positionTarget.clientWidth/2-Z.shiftedHorizontalOffset),L.popup.style.display=N);cXQ(L,Z)}},yXv=function(L,Z){if(Z)for(var N=_.O(Object.keys(Z)),S=N.next();!S.done;S=N.next())S=S.value,L.popup.style[S]=Z[S]};
bs.prototype.getName=function(){return _.Cn(this.openPopupAction.popup,"renderer")||_.Cn(this.openPopupAction.popup,"dialog")||_.Cn(this.openPopupAction.popup,"model")||void 0};
var kSs=function(L){L=L.openPopupAction.durationHintMs;return L===0?L:Math.max(4E3,L||4E3)};
bs.prototype.isRtl=function(){return _.X7("HTML_DIR")==="rtl"};
var fyY=function(L,Z){L=L.getElement(Z,L.target);L==null&&_.Q7(new _.sr("popup getElement returned null",Z));return L};var wIP={};
wIP.YtPopupContainerBehavior=[_.rH.YtComponentBehavior,_.nK.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.Cv(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.r0(this.hostElement)},
closePopup:function(L){var Z=this.createCacheKey(void 0,L);this.popups_[Z]&&this.handleClosePopupAction_(void 0,L)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.ro.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.ro.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(L){L.opened&&L.keepBelowPlayer&&this.ensurePopupBelowPlayer(L)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var L in this.popups_){var Z=this.popups_[L];if(Z.popup.scrollAction==="refit"){var N=Z.popup.positionTarget.getBoundingClientRect(),S=Z.popup;N=N.top;var u=Z;if(!u.naturalHeight){u.popup.hidden=!1;u.popup.style.position="fixed";u.popup.style.top="0px";u.popup.style.left="0px";var T=u.popup.getBoundingClientRect();u.naturalHeight=T.bottom-T.top;u.popup.refit()}S.hidden=!(N>=u.naturalHeight+60);Z.popupContent.clientHeight===0&&Z.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(L){this.popupContainerConfig=L},
handleOpenPopupAction:function(L,Z){var N=L.openPopupAction,S=_.GR().resolve(_.gv(_.AM))&&N.popupType==="TOAST";S&&!N.uniqueId&&(N.uniqueId=_.Kr());if(!_.c("popup_container_parent_target_killswitch")){var u;Z=(u=this.getParentTarget(Z))!=null?u:Z}var T=this.ensurePopup_(N,Z);return new _.kE(function(W){T.then(function(V){if(!V)return W();this.maybeCreateNarrowMediaQuery_();var M=this.createCacheKey(V.rendererName,V.openPopupAction.uniqueId);if(N.showOncePerUniqueId){if(this.shownPopupKeys_.has(M))return W();
this.shownPopupKeys_.add(M)}M=this.popups_[M];var G=!(!M||!M.openPopupAction.beReused);G=!!N.reusePopup||G;if(V.popup.opened&&!G){S&&!V.openPopupAction.replacePopup||this.handleClosePopupAction_(V.rendererName,V.openPopupAction.uniqueId);G=N.popupType==="DIALOG"&&!_.c("popup_container_dialog_reopen_killswitch");if(!S&&!G&&M&&M.target==Z&&!V.openPopupAction.replacePopup)return W();_.bN(V.popup,function(){this.completeOpenPopupAction_(N,Z,V);W()}.bind(this))}else V.popup.opened?V.updatePopup(N):this.completeOpenPopupAction_(N,
Z,V),W()}.bind(this))}.bind(this))},
getParentTarget:function(L){if(L&&L instanceof HTMLElement)for(var Z=_.O(Object.entries(this.popups_)),N=Z.next();!N.done;N=Z.next())if(N=_.O(N.value),N.next(),N=N.next().value,this.popupClosesOnClick(N)&&N.popup.contains(L))return N.target},
popupClosesOnClick:function(L){return L.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(L.rendererName.toUpperCase())},
completeOpenPopupAction_:function(L,Z,N){N.updatePopup(L);L=this.narrowMediaQuery_.queryMatches;var S=this.isAriaModal;N.target=Z;var u;Z=((u=N.target.polymerController)!=null?u:N.target).popupPositionTarget||N.target;N.JSC$21044_popupConfig.targetContainer&&(Z=N.container);N.popup.positionTarget=Z;N.popupContent.positionTarget=Z;nIY(N);N.JSC$21044_popupConfig.forceFocus&&(N.popupContent.style.outline="none");N.popupContent.tabIndex=-1;N.JSC$21044_popupConfig.narrowProperties&&(N.popup.style.position=
"static");N.JSC$21044_popupConfig.preventAutonav&&N.popup.setAttribute("prevent-autonav",!0);N.JSC$21044_popupConfig.forceCloseOnOutsideClick&&N.popup.setAttribute("force-close-on-outside-click",!0);K6m(N,L,S);yXv(N,N.JSC$21044_popupConfig.styles);N.isRtl()&&yXv(N,N.JSC$21044_popupConfig.rtlStyles);if(!N.openPopupAction.shouldStopParentSignal){var T;u=(T=N.target.polymerController)!=null?T:N.target;(N.popupContent.startForwardingEvents||N.popupContainerConfig.forwardingEnabledPopups.has(N.rendererName))&&
u.parentComponent!==N.popupContent&&N.popupContent!==N.target&&N.target!==document.body&&(N.popupContent.startForwardingEvents?N.popupContent.startForwardingEvents(N.popupContainerConfig.forwardedEvents,N.target):(N.JSC$21044_eventForwarder||(N.JSC$21044_eventForwarder=new _.Bt(N.popupContent)),N.JSC$21044_eventForwarder.start(N.popupContainerConfig.forwardedEvents,N.target)))}N=N.popup;N.addEventListener("iron-overlay-opened",_.Nd(this,this.onPopupIronOverlayOpened_));N.addEventListener("iron-overlay-closed",
_.Nd(this,this.onPopupIronOverlayClosed_));N.addEventListener("iron-overlay-canceled",_.Nd(this,this.onPopupIronOverlayCanceled_));N.addEventListener("yt-refit",_.Nd(this,this.refitPopup_));N.addEventListener("yt-invalidate-popup-tabbables",_.Nd(this,this.handleInvalidatePopupTabbables_));N.open()},
getPopupDurationMs_:function(L){return L.durationHintMs===0?L.durationHintMs:Math.max(4E3,L.durationHintMs||4E3)},
handleClosePopupAction_:function(L,Z){var N=_.c("web_popup_cache_key_killswitch")||!!Z;if(L||N){var S=this.createCacheKey(L,Z);L=(L=this.popups_[S])&&L.popup}else L=_.dYQ(_.qR);if(L&&L.close){if(Z=_.GR().resolve(_.gv(_.VG)))L.restoreFocusOnClose=Z.isKeyBoardInUse();L.close();this.removePopup_(L,S)}},
handleClosePopupCommand_:function(L){L.closePopupCommand&&L.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,L.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(L){var Z={},N;for(N in this.popups_)if(Z={key$jscomp$1222:Z.key$jscomp$1222},Z.key$jscomp$1222=N,!L||!L.some(function(T){return function(W){return W==T.key$jscomp$1222}}(Z))){var S=this.popups_[Z.key$jscomp$1222],u=S.popup;
_.GR().resolve(_.gv(_.AM))&&S.openPopupAction.popupType==="TOAST"||(u&&u.close&&u.close(),this.removePopup_(u,Z.key$jscomp$1222))}},
handleClosePopupsAction_:function(L){L.forEach(function(Z){var N=this.popups_[Z];N&&((N=N.popup)&&N.close&&N.close(),this.removePopup_(N,Z))}.bind(this))},
handleGetPopupOpenedAction_:function(L,Z){return(Z=this.createCacheKey(L,Z))&&this.popups_[Z]?this.popups_[L].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var L=[],Z;for(Z in this.popups_){var N=this.popups_[Z];N.popup.opened&&L.push(N)}return L},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(L,Z){_.c("ytpopup_disable_default_html_caching")&&L&&L.removeWhenClosed&&(_.QJ(this.hostElement).removeChild(L),Z&&this.popups_[Z]&&delete this.popups_[Z])},
shouldReusePopup_:function(L){return!(!L||!L.reusePopup)||!(!L||!L.beReused)},
ensurePopup_:function(L,Z){this.maybeCreateNarrowMediaQuery_();var N=_.Cn(L.popup,"renderer")||_.Cn(L.popup,"dialog")||_.Cn(L.popup,"model");if(!N)return _.xP();N=_.TmP(N,Cuv(this.popupContainerConfig,N));return _.xP(this.getAndMaybeCreatePopup_(L,N,Z))},
getAndMaybeCreatePopup_:function(L,Z,N){var S=this.createCacheKey(Z,L.uniqueId);if(this.popups_[S])return this.popups_[S];L=new bs({openPopupAction:L,target:N,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(Z)});return this.popups_[S]=L},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(L){return _.c("ytpopup_disable_default_html_caching")?L&&L.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",_.Nd(this,this.openPopupQueryMatchesChanged_)),_.QJ(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(L){L=L.detail.value;for(var Z in this.popups_)K6m(this.popups_[Z],L)},
onPopupIronOverlayClosed_:function(L){var Z=L.currentTarget,N=_.R4L(Z);N=N.length>0?N[0]:Z;if(N.is!=="ytd-reel-watch-while-dialog-renderer"||L.target.is!=="tp-yt-iron-dropdown"){L.detail.popup=Z;L.detail.popupRenderer=N;var S,u={context:{openingElement:((S=this.popups_[(N==null?void 0:N.is)||""])==null?void 0:S.target)||void 0}};Object.assign(u,L.detail);var T;_.QT((T=N.hostElement)!=null?T:N,"yt-popup-closed",u);Z.removeEventListener("yt-refit",_.Nd(this,this.refitPopup_));Z.removeEventListener("yt-invalidate-popup-tabbables",
_.Nd(this,this.handleInvalidatePopupTabbables_));Z.removeEventListener("iron-overlay-canceled",_.Nd(this,this.onPopupIronOverlayCanceled_));Z.removeEventListener("iron-overlay-closed",_.Nd(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(Z)}},
onPopupIronOverlayCanceled_:function(L,Z){var N=L.currentTarget,S=_.R4L(N);S=S.length>0?S[0]:N;if(S.is!=="ytd-reel-watch-while-dialog-renderer"||L.target.is!=="tp-yt-iron-dropdown"){var u;_.QT((u=S.hostElement)!=null?u:S,"yt-popup-canceled",L.detail);u=Z?_.sx(Z):null;(!Z||["click","tap"].includes(Z.type))&&!N.hasAttribute("force-close-on-outside-click")&&N.positionTarget&&u&&u.includes(N.positionTarget)&&L.preventDefault();N.restoreFocusOnClose=_.Ub.keyboardEventMatchesKeys(Z,"esc")}},
onPopupIronOverlayOpened_:function(L){L=L.currentTarget;var Z=_.R4L(L);Z=Z.length>0?Z[0]:L;var N,S;_.QT((N=Z.hostElement)!=null?N:Z,"yt-popup-opened",(S=Z.hostElement)!=null?S:Z);L.keepBelowPlayer&&(this.ensurePopupBelowPlayer(L,!0),this.dynamicallyPositionedElements_.add(L));N=_.GR().resolve(_.gv(_.VG));S=!!Z.querySelector("#toast");N&&N.isKeyBoardInUse()&&!S&&(typeof Z.focusFirstItem==="function"?Z.focusFirstItem():(Z=_.YyI(L),Z.length&&Z[0].focus()));L.removeEventListener("iron-overlay-opened",
_.Nd(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(L){L=L.currentTarget;L.refit&&L.refit()},
refitPopups_:function(){for(var L in this.popups_)this.popups_[L].refit()},
handleInvalidatePopupTabbables_:function(L){L=L.currentTarget;L.invalidateTabbables&&L.invalidateTabbables()},
createCacheKey:function(L,Z){return _.c("web_popup_cache_key_killswitch")?Z?L+"#"+Z:L:Z?"#"+Z:L},
openSheet:function(L,Z){var N=L==null?void 0:L.openPopupActionCommand;if(!N&&(L==null?0:L.viewModel)){if(L.sheetPosition)a:switch(L.sheetPosition){case "SHEET_POSITION_RIGHT":N="OPEN_POPUP_POSITION_RIGHT";break a;default:N="OPEN_POPUP_POSITION_UNKNOWN"}else N=void 0;N={openPopupAction:{popup:{sheetViewModel:L.viewModel},popupType:"CONTEXTUAL_SHEET",position:N}}}N&&this.handleOpenPopupAction(N,Z)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var L=this;return _.b(function(Z){return Z.return(L.handleGetOpenedPopupsAction_().filter(function(N){var S;return((S=N.openPopupAction)==null?void 0:S.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(L,Z,N){if(_.c("web_dialog_utils_killswitch")){var S=L==null?void 0:L.openPopupActionCommand,u=(N==null?0:N.ariaLabel)?{accessibilityData:{accessibilityData:{label:N.ariaLabel}}}:void 0;!S&&(L==null?0:L.viewModel)&&(S={openPopupAction:Object.assign({},{popup:{dialogViewModel:L.viewModel},popupType:(N==null?0:N.isModal)?"MODAL":"DIALOG"},u&&u)});S&&this.handleOpenPopupAction(S,Z)}else{if(u=L==null?void 0:L.viewModel){var T=N=N===void 0?{}:N;N=T.ariaLabel;u={popup:{dialogViewModel:u},
popupType:T.isModal?"MODAL":"DIALOG"};T={accessibilityData:{label:N}};N&&(u.accessibilityData=T);u={openPopupAction:u}}else u=void 0;if(u=(S=u)!=null?S:L==null?void 0:L.openPopupActionCommand)this.isAriaModal=_.c("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(u,Z)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var L=this;return _.b(function(Z){return Z.return(L.handleGetOpenedPopupsAction_().filter(function(N){var S;return((S=N.openPopupAction)==null?void 0:S.popupType)==="DIALOG"}).length>0)})}}];var UKq;var YAP;var en0=_.sc(["about:blank"]),Mz=function(){var L=_.e.apply(this,arguments)||this;L.isMuted=!1;L.pageLoadTimeoutId=void 0;return L};
_.f(Mz,_.e);_.t=Mz.prototype;_.t.dataChanged=function(){var L=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var Z=this.data.url,N=_.QH(Z);_.c("enable_yt_ata_iframe_authuser")?(N=_.QH(Z),_.qq(this.iframe,b58(N))):_.qq(this.iframe,N);this.pageLoadTimeoutId=_.sI(_.DK(),function(){return void L.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.NY({destination:window,iframe:this.iframe,origin:_.qNl(N.toString()),channelName:"ataiframe",onMessage:_.TwI(bNY,function(S){Mrc(S.data)?(S=_.Bw(S.data,1,_.t0,_.gZ()),S.length!==1?_.Q7(Error("Ll")):(S=S[0],S===3?(L.isMuted=!0,L.logStateChanged({adMuteRequested:!0})):S===1&&L.close())):_.Q7(Error("Ml"))}),
onEstablished:function(){L.cancelPageLoadTimeout();L.logStateChanged({pageLoadSucceeded:!0})}})}};
_.t.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.DK().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.t.logStateChanged=function(L){var Z;if((Z=this.data)==null?0:Z.trackingParams)L={adsClientData:{aboutThisAdData:L}},_.tC().stateChanged(this.data.trackingParams,L)};
_.t.close=function(){_.XJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.t.handlesPopupClosed=function(L,Z){var N=this,S,u;return _.b(function(T){if(T.nextAddress==1)return _.X7("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.XJ(N.hostElement,"on-about-this-ad-popup-closed",[N.isMuted,Z]),T.jumpTo(0)):L&&Mds(L)?T.yield(gTQ(L),4):(N.isMuted&&_.XJ(N.hostElement,"yt-mute-ad-action",[N.is,N]),T.jumpTo(0));if(S=T.yieldResult){var W=u=new _.PA(S),V=N.isMuted;W.getOptions().includes("onAboutThisAdPopupClosed")?_.TT5(W,"onAboutThisAdPopupClosed",{isMuted:V,layoutId:Z}):_.eC("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.w7(T)})};
_.t.onPopupClosed=function(L){var Z=this,N,S;return _.b(function(u){N=_.vy(en0);_.qq(Z.iframe,N);Z.cancelPageLoadTimeout();if(!Z.data)return u.jumpTo(0);Z.ytRendererBehavior.markDirty();S=L.detail.context.openingElement;return u.yield(Z.handlesPopupClosed(S,Z.data.layoutId),0)})};
_.t.detached=function(){this.cancelPageLoadTimeout()};
_.t.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Mz.prototype.onPopupClosed=Mz.prototype.onPopupClosed;Mz.prototype.dataChanged=Mz.prototype.dataChanged;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Mz.prototype,"ytRendererBehavior",void 0);_.r([_.TX("#iframe"),_.Q("design:type",HTMLIFrameElement)],Mz.prototype,"iframe",void 0);_.r([_.Y(),_.Q("design:type",Object)],Mz.prototype,"data",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Mz.prototype,"dataChanged",null);
_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype",Promise)],Mz.prototype,"onPopupClosed",null);_.r([_.ch({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Mz);
_.m(Mz,"yt-about-this-ad-renderer",function(){if(YAP===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;UKq===void 0&&(UKq=document.createElement("template"));var S=UKq;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);YAP=L}L=YAP;return L},{mode:2});var Iyv;var dKg;var ayw=function(L){var Z=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.maxFileSizeMB=L;Object.setPrototypeOf(this,ayw.prototype)};
_.f(ayw,Error);var hnY=function(L,Z){var N=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=N.message;"stack"in N&&(this.stack=N.stack);this.minWidth=L;this.minHeight=Z;Object.setPrototypeOf(this,hnY.prototype)};
_.f(hnY,Error);var s5Y=function(L){this.requirements=L;this.JSC$21072_maxFileSize=L.maxFileSizeMB*1024*1024},j5c=function(L,Z){if(Z.size>L.JSC$21072_maxFileSize)throw new ayw(L.requirements.maxFileSizeMB);
};var EIv=function(L,Z){this.canvas=L;this.imageEditorBuilder=Z};
EIv.prototype.addEventListeners=function(L){var Z=function(u){PiP(L,u)};
this.JSC$21078_mouseDownEvent=Z;var N=function(u){pI5(L,u)};
this.JSC$21078_mouseMoveEvent=N;var S=function(){zn8(L)};
this.JSC$21078_mouseUpEvent=S;this.canvas.addEventListener("mousedown",Z);this.canvas.addEventListener("mousemove",N);document.addEventListener("mouseup",S)};
EIv.prototype.removeEventListeners=function(){this.JSC$21078_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21078_mouseDownEvent);this.JSC$21078_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21078_mouseMoveEvent);this.JSC$21078_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21078_mouseUpEvent)};
var mKv=function(L,Z){L.removeEventListeners();return new Promise(function(N){var S=new Image;S.crossOrigin="anonymous";S.onload=function(){var u=L.imageEditorBuilder(L.canvas,S);L.addEventListeners(u);N(u)};
S.src=Z})},g6=function(L,Z,N,S,u,T,W,V){this.canvas=L;
this.image=Z;this.requiredRatio=N;this.minImageCropDimension=S;this.minOutputImageResolution=u;this.component=T;this.styleFocusedCorner=V===void 0?!0:V;this.action=2;this.focusedCorner=this.resizeCorner=0;L=this.canvas.getContext("2d");if(!L)throw Error("Nl");this.ctx=L;this.canvasMargin=W!=null?W:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;W=this.image;L=this.canvasInnerWidth/W.width;W.height*L>912&&(L=W.width/W.height*912/W.width);W=L;this.scaledImageWidth=this.canvas.width%2?
Fav(this.image.width*W):G5m(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$21081_overlayMarginBottom=this.JSC$21081_overlayMarginTop=this.canvasMargin;this.JSC$21081_overlayMarginRight=this.JSC$21081_overlayMarginLeft=this.horizontalMargin;this.JSC$21081_overlayWidth=this.scaledImageWidth;this.JSC$21081_overlayHeight=this.scaledImageHeight;
L=this.image.width/this.image.height;L>this.requiredRatio?(this.JSC$21081_overlayWidth=this.canvas.width%2?Fav(this.scaledImageHeight*this.requiredRatio):G5m(this.scaledImageHeight*this.requiredRatio),this.JSC$21081_overlayMarginRight=this.JSC$21081_overlayMarginLeft=(this.canvas.width-this.JSC$21081_overlayWidth)/2):L<this.requiredRatio&&(this.JSC$21081_overlayHeight=this.canvas.height%2?Fav(this.scaledImageWidth/this.requiredRatio):G5m(this.scaledImageWidth/this.requiredRatio),this.JSC$21081_overlayMarginBottom=
this.JSC$21081_overlayMarginTop=(this.canvas.height-this.JSC$21081_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*W,this.scaledImageWidth);JXk(this)};
g6.prototype.getContext=function(){return this.ctx};
var PiP=function(L,Z){Z={x:Math.round(Z.pageX-L.canvas.getBoundingClientRect().left),y:Math.round(Z.pageY-L.canvas.getBoundingClientRect().top)};L.dragStart=Z;Cig(L,Z)!==0?(L.action=1,rXQ(L,Z),L.resizeCorner=Cig(L,Z)):Z.x>L.JSC$21081_overlayMarginLeft&&Z.x<L.JSC$21081_overlayMarginLeft+L.JSC$21081_overlayWidth&&Z.y>L.JSC$21081_overlayMarginTop&&Z.y<L.JSC$21081_overlayMarginTop+L.JSC$21081_overlayHeight&&(L.action=0)},Q5y=function(L,Z){switch(Z){case 1:return{x:L.JSC$21081_overlayMarginLeft,
y:L.JSC$21081_overlayMarginTop};case 2:return{x:L.JSC$21081_overlayMarginLeft,y:L.JSC$21081_overlayMarginTop+L.JSC$21081_overlayHeight};case 3:return{x:L.JSC$21081_overlayMarginLeft+L.JSC$21081_overlayWidth,y:L.JSC$21081_overlayMarginTop};case 4:return{x:L.JSC$21081_overlayMarginLeft+L.JSC$21081_overlayWidth,y:L.JSC$21081_overlayMarginTop+L.JSC$21081_overlayHeight};default:throw Error("Ol");}},AXq=function(L,Z){if(L.focusedCorner!==0){L.dragStart=Q5y(L,L.focusedCorner);
L.action=1;L.resizeCorner=L.focusedCorner;var N=L.dragStart.x,S=L.dragStart.y;switch(Z){case 0:L.focusedCorner===1||L.focusedCorner===4?(N-=10,S-=10):(N-=10,S+=10);break;case 1:L.focusedCorner===1||L.focusedCorner===4?(N+=10,S+=10):(N+=10,S-=10);break;case 2:N=L.focusedCorner===1||L.focusedCorner===4?N-10:N+10;S-=10;break;case 3:N=L.focusedCorner===1||L.focusedCorner===4?N+10:N-10;S+=10;break;default:throw Error("Pl");}XIw(L,{x:N,y:S});JXk(L);L.action=2;L.dragStart=void 0}},pI5=function(L,Z){Z={x:Math.round(Z.pageX-
L.canvas.getBoundingClientRect().left),
y:Math.round(Z.pageY-L.canvas.getBoundingClientRect().top)};rXQ(L,Z);switch(L.action){case 1:XIw(L,Z);break;case 0:L.dragStart&&(L.JSC$21081_overlayMarginLeft=Math.max(L.horizontalMargin,Math.min(L.JSC$21081_overlayMarginLeft-(L.dragStart.x-Z.x),L.horizontalMargin+L.scaledImageWidth-L.JSC$21081_overlayWidth)),L.JSC$21081_overlayMarginRight=L.canvas.width-L.JSC$21081_overlayMarginLeft-L.JSC$21081_overlayWidth,L.JSC$21081_overlayMarginTop=Math.max(L.canvasMargin,Math.min(L.JSC$21081_overlayMarginTop-
(L.dragStart.y-Z.y),L.scaledImageHeight-L.JSC$21081_overlayHeight+L.canvasMargin)),L.JSC$21081_overlayMarginBottom=L.canvas.height-(L.JSC$21081_overlayMarginTop+L.JSC$21081_overlayHeight));break;default:return}JXk(L);L.dragStart=Z},zn8=function(L){L.action=2;
L.dragStart=void 0;document.body.style.cursor="auto"},rXQ=function(L,Z){switch(Cig(L,Z)){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:L.action!==1&&(document.body.style.cursor="auto")}},Cig=function(L,Z){var N=L.JSC$21081_overlayMarginLeft-5,S=L.JSC$21081_overlayMarginTop-5,u=L.JSC$21081_overlayMarginLeft+L.JSC$21081_overlayWidth-5;
L=L.JSC$21081_overlayMarginTop+L.JSC$21081_overlayHeight-5;return Hug(Z,{x:N,y:S})?1:Hug(Z,{x:u,y:S})?3:Hug(Z,{x:N,y:L})?2:Hug(Z,{x:u,y:L})?4:0},Hug=function(L,Z){return L.x>=Z.x&&L.x<=Z.x+10&&L.y>=Z.y&&L.y<=Z.y+10},XIw=function(L,Z){if(L.dragStart)switch(L.resizeCorner){case 2:Math.abs((L.JSC$21081_overlayMarginLeft+L.JSC$21081_overlayWidth-Z.x)/(Z.y-L.JSC$21081_overlayMarginTop))>=L.requiredRatio?BB8(L,Z.x):xKP(L,Z.y);
break;case 1:Math.abs((L.JSC$21081_overlayMarginLeft+L.JSC$21081_overlayWidth-Z.x)/(L.JSC$21081_overlayMarginTop+L.JSC$21081_overlayHeight-Z.y))>=L.requiredRatio?qA8(L,Z.x):xKP(L,Z.y);break;case 4:Math.abs((Z.x-L.JSC$21081_overlayMarginLeft)/(Z.y-L.JSC$21081_overlayMarginTop))>=L.requiredRatio?BB8(L,Z.x):Lsm(L,Z.y);break;case 3:Math.abs((Z.x-L.JSC$21081_overlayMarginLeft)/(L.JSC$21081_overlayMarginTop+L.JSC$21081_overlayHeight-Z.y))>=L.requiredRatio?qA8(L,Z.x):Lsm(L,Z.y);break;default:throw Error("Ql");
}},BB8=function(L,Z){var N=L.JSC$21081_overlayMarginTop;
L.JSC$21081_overlayMarginBottom=Zwg(L,Z);L.JSC$21081_overlayHeight=L.canvas.height-L.JSC$21081_overlayMarginBottom-N;L.JSC$21081_overlayWidth=Math.round(L.JSC$21081_overlayHeight*L.requiredRatio);N2k(L)},qA8=function(L,Z){var N=L.JSC$21081_overlayMarginTop+L.JSC$21081_overlayHeight;
L.JSC$21081_overlayMarginTop=Zwg(L,Z);L.JSC$21081_overlayHeight=N-L.JSC$21081_overlayMarginTop;L.JSC$21081_overlayWidth=Math.round(L.JSC$21081_overlayHeight*L.requiredRatio);N2k(L)},N2k=function(L){switch(L.resizeCorner){case 2:case 1:L.JSC$21081_overlayMarginLeft=L.canvas.width-L.JSC$21081_overlayMarginRight-L.JSC$21081_overlayWidth;
break;case 4:case 3:L.JSC$21081_overlayMarginRight=L.canvas.width-L.JSC$21081_overlayMarginLeft-L.JSC$21081_overlayWidth;break;default:throw Error("Ql");}},xKP=function(L,Z){var N=L.JSC$21081_overlayMarginLeft+L.JSC$21081_overlayWidth;
L.JSC$21081_overlayMarginLeft=Ssw(L,Z);L.JSC$21081_overlayWidth=N-L.JSC$21081_overlayMarginLeft;L.JSC$21081_overlayHeight=Math.round(L.JSC$21081_overlayWidth/L.requiredRatio);iwk(L)},Lsm=function(L,Z){var N=L.JSC$21081_overlayMarginLeft;
L.JSC$21081_overlayMarginRight=Ssw(L,Z);L.JSC$21081_overlayWidth=L.canvas.width-L.JSC$21081_overlayMarginRight-N;L.JSC$21081_overlayHeight=Math.round(L.JSC$21081_overlayWidth/L.requiredRatio);iwk(L)},iwk=function(L){switch(L.resizeCorner){case 2:case 4:L.JSC$21081_overlayMarginBottom=L.canvas.height-L.JSC$21081_overlayMarginTop-L.JSC$21081_overlayHeight;
break;case 1:case 3:L.JSC$21081_overlayMarginTop=L.canvas.height-L.JSC$21081_overlayMarginBottom-L.JSC$21081_overlayHeight;break;default:throw Error("Ql");}},Zwg=function(L,Z){switch(L.resizeCorner){case 2:Z=L.canvas.height-(L.JSC$21081_overlayMarginTop+up5(L,Z));
break;case 4:Z=L.canvas.height-(L.JSC$21081_overlayMarginTop+T2y(L,Z));break;case 1:Z=L.JSC$21081_overlayMarginTop+L.JSC$21081_overlayHeight-up5(L,Z);break;case 3:Z=L.JSC$21081_overlayMarginTop+L.JSC$21081_overlayHeight-T2y(L,Z);break;default:throw Error("Ql");}return Math.max(Z,L.canvasMargin)},up5=function(L,Z){Z=L.JSC$21081_overlayMarginLeft+L.JSC$21081_overlayWidth-Math.max(Z,L.horizontalMargin);
Z=Z<0?L.JSC$21081_overlayWidth:Math.max(Z,L.minOverlayWidth);return Math.round(Z/L.requiredRatio)},T2y=function(L,Z){Z=L.canvas.width-Math.max(L.canvas.width-Z,L.horizontalMargin)-L.JSC$21081_overlayMarginLeft;
Z=Z<0?L.JSC$21081_overlayWidth:Math.max(Z,L.minOverlayWidth);return Math.round(Z/L.requiredRatio)},Ssw=function(L,Z){switch(L.resizeCorner){case 2:Z=L.canvas.width-L.JSC$21081_overlayMarginRight-tlP(L,Z);
break;case 4:Z=L.canvas.width-L.JSC$21081_overlayMarginLeft-tlP(L,Z);break;case 1:Z=L.canvas.width-L.JSC$21081_overlayMarginRight-Owy(L,Z);break;case 3:Z=L.canvas.width-L.JSC$21081_overlayMarginLeft-Owy(L,Z);break;default:throw Error("Ql");}return Math.max(Z,L.horizontalMargin)},tlP=function(L,Z){Z=L.canvas.height-Math.max(L.canvas.height-Z,L.canvasMargin)-L.JSC$21081_overlayMarginTop;
return Z<0?L.JSC$21081_overlayWidth:Math.max(Math.round(Z*L.requiredRatio),L.minOverlayWidth)},Owy=function(L,Z){Z=L.JSC$21081_overlayMarginTop+L.JSC$21081_overlayHeight-Math.max(Z,L.canvasMargin);
return Z<0?L.JSC$21081_overlayWidth:Math.max(Math.round(Z*L.requiredRatio),L.minOverlayWidth)},JXk=function(L){L.ctx.clearRect(0,0,L.canvas.width,L.canvas.height);
L.ctx.drawImage(L.image,0,0,L.image.width,L.image.height,L.horizontalMargin,L.canvasMargin,L.canvas.width-2*L.horizontalMargin,L.scaledImageHeight);L.ctx.fillStyle="rgba(0, 0, 0, 0.7)";L.ctx.fillRect(L.horizontalMargin,L.JSC$21081_overlayMarginTop,L.JSC$21081_overlayMarginLeft-L.horizontalMargin,L.JSC$21081_overlayHeight);L.ctx.fillRect(L.JSC$21081_overlayMarginLeft+L.JSC$21081_overlayWidth,L.JSC$21081_overlayMarginTop,L.JSC$21081_overlayMarginRight-L.horizontalMargin,L.JSC$21081_overlayHeight);L.ctx.fillRect(L.horizontalMargin,
L.canvasMargin,L.scaledImageWidth,L.JSC$21081_overlayMarginTop-L.canvasMargin);L.ctx.fillRect(L.horizontalMargin,L.JSC$21081_overlayMarginTop+L.JSC$21081_overlayHeight,L.scaledImageWidth,L.JSC$21081_overlayMarginBottom-L.canvasMargin);L.drawOverlay();L.component&&_.QT(L.component,"image-updated")};
g6.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21081_overlayMarginLeft,this.JSC$21081_overlayMarginTop,this.JSC$21081_overlayWidth,this.JSC$21081_overlayHeight);Wsk(this)};
var Wsk=function(L){var Z=L.JSC$21081_overlayMarginLeft-5,N=L.JSC$21081_overlayMarginTop-5,S=L.JSC$21081_overlayMarginLeft+L.JSC$21081_overlayWidth-5,u=L.JSC$21081_overlayMarginTop+L.JSC$21081_overlayHeight-5;L.ctx.fillStyle="#FFF";L.ctx.fillRect(Z,N,10,10);L.ctx.strokeRect(Z,N,10,10);L.ctx.fillRect(S,N,10,10);L.ctx.strokeRect(S,N,10,10);L.ctx.fillRect(Z,u,10,10);L.ctx.strokeRect(Z,u,10,10);L.ctx.fillRect(S,u,10,10);L.ctx.strokeRect(S,u,10,10);if(L.focusedCorner!==0&&L.styleFocusedCorner){L.ctx.lineWidth=
4;L.ctx.strokeStyle="#3EA6FF";switch(L.focusedCorner){case 1:--Z;--N;break;case 2:--Z;N=u-1;break;case 3:Z=S-1;--N;break;case 4:Z=S-1;N=u-1;break;default:return}L.ctx.strokeRect(Z,N,12,12)}};
g6.prototype.crop=function(L,Z){Z=Z===void 0?!0:Z;var N=this.image.width/this.scaledImageWidth,S=document.createElement("canvas"),u=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],T=this.JSC$21081_overlayWidth*N,W=this.JSC$21081_overlayHeight*N;S.width=Math.max(T,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);S.height=Math.max(W,u);L&&(S.width=Math.min(S.width,S.height),S.height=Math.min(S.width,S.height));
L=S.getContext("2d");if(!L)throw Error("El");u=(this.JSC$21081_overlayMarginLeft-this.horizontalMargin)*N;N*=this.JSC$21081_overlayMarginTop-this.canvasMargin;Z||(L.fillStyle="white",L.fillRect(0,0,S.width,S.height));L.drawImage(this.image,u,N,T,W,0,0,S.width,S.height);return S};var VlY=function(L,Z,N,S,u){g6.call(this,L,Z,N,S,void 0,u,8,!1)};
_.f(VlY,g6);VlY.prototype.drawOverlay=function(){var L=this.getContext(),Z=this.JSC$21081_overlayWidth,N=this.JSC$21081_overlayHeight,S=this.JSC$21081_overlayMarginTop,u=this.JSC$21081_overlayMarginLeft;L.lineWidth=2;L.strokeStyle="#3EA6FF";L.beginPath();L.arc(u+Z/2,S+N/2,Z/2,0,2*Math.PI);L.stroke();L.strokeRect(u,S,Z,N);Wsk(this)};
var bwQ={maxFileSizeMB:15,minWidth:98,minHeight:98},Mlm=["image/png","image/jpeg","image/gif"],G4=function(){var L=_.e.apply(this,arguments)||this;L.fileSelectorFocusListener=null;L.errorMessage=null;L.isLoading=!0;L.hideContainer=!0;L.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return L};
_.f(G4,_.e);_.t=G4.prototype;_.t.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.t.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.t.computePlaylistThumbnail=function(L){return L==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.t.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.XJ(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.t.setErrorState=function(L){this.resetErrorState();L&&(this.errorMessage=L)};
_.t.showPopup=function(){var L=this;this.hideContainer=!1;_.sI(_.ro,function(){_.QT(L.hostElement,"yt-refit")});
this.isLoading=!1};
_.t.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.t.closePopup=function(){this.resetFileSelector();_.XJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.t.onCancelTap=function(){this.isPlaylistThumbnail||_.XJ(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.t.openFileSelector=function(){var L=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.sI(_.ro,function(){setTimeout(function(){if(!L.fileSelector.files||L.fileSelector.files.length===0)L.onCancelTap();L.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(Z){Z instanceof Error?_.CA(Z):_.rY(new _.sr(JSON.stringify(Z)))}};
_.t.handleFileSelection=function(){var L=this,Z,N,S,u,T,W;return _.b(function(V){switch(V.nextAddress){case 1:_.RS(V,2);if(!L.fileSelector.files||!L.imageEditorCanvas)return L.onCancelTap(),V.return();Z=L.fileSelector.files[0];j5c(L.imageChecker,Z);_.RS(V,4);return V.yield(jjq(Z),6);case 6:L.mimeType=V.yieldResult;_.SX(V,5,2);break;case 4:_.yd(V,2),_.XJ(L.hostElement,"yt-image-selection-error-action",[(N=L.data)==null?void 0:N.genericImageLoadErrorMessage]),L.onCancelTap();case 5:S=new FileReader;
S.addEventListener("load",function(){var M,G;return _.b(function(D){if(D.nextAddress==1){if(!S.result)return _.Q7(Error("Gl")),D.return();M=S.result;G=new Image;G.src=M;G.onload=function(){try{var l=L.imageChecker;if(G.width<l.requirements.minWidth||G.height<l.requirements.minHeight)throw new hnY(l.requirements.minWidth,l.requirements.minHeight);}catch(R){if(R instanceof hnY){var v;_.XJ(L.hostElement,"yt-image-selection-error-action",[(v=L.data)==null?void 0:v.imageDimensionErrorMessage]);L.logImageDimensionErrorVe()}else R instanceof
Error?_.CA(R):(l=new _.sr(JSON.stringify(R)),_.CA(l));L.onCancelTap()}L.showPopup()};
G.onerror=function(){var l;_.XJ(L.hostElement,"yt-image-selection-error-action",[(l=L.data)==null?void 0:l.genericImageLoadErrorMessage]);L.onCancelTap()};
return D.yield(mKv(L.imageEditorCanvas,M),2)}L.imageEditor=D.yieldResult;L.updatePositionOfAllCorners();L.addEventListeners(L.imageEditor);_.w7(D)})},!1);
S.readAsDataURL(Z);_.SX(V,0);break;case 2:u=_.yd(V),u instanceof ayw?_.XJ(L.hostElement,"yt-image-selection-error-action",[(T=L.data)==null?void 0:T.imageSizeErrorMessage]):(u instanceof Error?_.CA(u):_.rY(new _.sr(JSON.stringify(u))),_.XJ(L.hostElement,"yt-image-selection-error-action",[(W=L.data)==null?void 0:W.genericImageLoadErrorMessage])),L.onCancelTap(),_.w7(V)}})};
_.t.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var L=_.Si(_.tC(),{veType:232707,visualElement:_.Ll(232707)});L&&(L={visualElement:L},_.Ng().reportShown(L))}};
_.t.handleImageSelectionErrorAction=function(L){this.isPlaylistThumbnail&&_.Gvf(this.hostElement,L)};
_.t.convertToImageFormatBundle=function(L){var Z=this,N,S,u;return _.b(function(T){switch(T.nextAddress){case 1:return N=L.toDataURL(Z.outputMimeType,1),T.yield(EMv(N),2);case 2:S=T.yieldResult;_.RS(T,3);j5c(Z.imageChecker,S);_.SX(T,4);break;case 3:u=_.yd(T);if(!(u instanceof ayw))throw u;_.Q7(new _.sr("Output size is bigger than input size for image",Z.mimeType,Z.outputMimeType,S.size));N=L.toDataURL("image/jpeg",.95);return T.yield(EMv(N),6);case 6:S=T.yieldResult;case 4:return T.return({dataUrl:N,
imageFile:S})}})};
_.t.handleUploadImageToScottyCommand=function(L){var Z=this,N,S,u,T,W,V,M,G,D,l;return _.b(function(v){switch(v.nextAddress){case 1:if(!Z.imageEditor||!_.n(L,yIy))return v.return();N=_.n(L,yIy).scottyUploadUrl;if(!N){var R=new _.sr("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.CA(R);return v.return()}_.RS(v,2);Z.setLoadingState();S=Z.imageEditor.crop(!1,!1);return v.yield(Z.convertToImageFormatBundle(S),4);case 4:return u=v.yieldResult,v.yield(hxv(u.imageFile,N),5);
case 5:T=v.yieldResult;((W=Z.data)==null?0:W.onUploadEndpoint)?(V=Z.buildUploadServiceEndpoint(T),Z.ytComponentBehavior.resolveCommand(V),M=_.n(V,_.Ac),((G=M)==null?0:G.params)?Z.closePopup():Z.resetFileSelector()):(_.XJ(Z.hostElement,"yt-image-updated-action",[u.dataUrl,T]),Z.closePopup());_.SX(v,0);break;case 2:D=_.yd(v),Z.setErrorState((l=Z.data)==null?void 0:l.uploadErrorMessage),D instanceof Error?_.CA(D):(R=new _.sr(JSON.stringify(D)),_.CA(R)),_.w7(v)}})};
_.t.buildUploadServiceEndpoint=function(L){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",L),this.data.onUploadEndpoint):null};
_.t.dataChanged=function(){var L=this,Z;return _.b(function(N){if(N.nextAddress==1){if(!L.data||!L.canvasElement)return N.return();L.data.imageRatio&&L.data.minImageCropWidth||_.rY(new _.sr("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));Z=function(S,u){return L.data.imageType==="IMAGE_TYPE_AVATAR"?new VlY(S,u,L.data.imageRatio,[L.data.minImageCropWidth,L.data.minImageCropWidth/L.data.imageRatio],L.hostElement):new g6(S,u,L.data.imageRatio,[L.data.minImageCropWidth,
L.data.minImageCropWidth/L.data.imageRatio],void 0,L.hostElement,8,!1)};
L.imageEditorCanvas=new EIv(L.canvasElement,Z);return L.data.url?N.yield(mKv(L.imageEditorCanvas,L.data.url),3):(L.hideContainer=!0,L.openFileSelector(),N.jumpTo(0))}L.imageEditor=N.yieldResult;L.showPopup();L.addEventListeners(L.imageEditor);_.w7(N)})};
_.t.addEventListeners=function(L){this.removeEventListeners();var Z=function(u){PiP(L,u)};
this.JSC$21089_mouseDownEvent=Z;var N=function(u){pI5(L,u)};
this.JSC$21089_mouseMoveEvent=N;var S=function(){zn8(L)};
this.JSC$21089_mouseUpEvent=S;this.topLeftCorner.addEventListener("mousedown",Z);this.topLeftCorner.addEventListener("mousemove",N);this.topLeftCorner.addEventListener("mouseup",S);this.topRightCorner.addEventListener("mousedown",Z);this.topRightCorner.addEventListener("mousemove",N);this.topRightCorner.addEventListener("mouseup",S);this.bottomLeftCorner.addEventListener("mousedown",Z);this.bottomLeftCorner.addEventListener("mousemove",N);this.bottomLeftCorner.addEventListener("mouseup",S);this.bottomRightCorner.addEventListener("mousedown",
Z);this.bottomRightCorner.addEventListener("mousemove",N);this.bottomRightCorner.addEventListener("mouseup",S)};
_.t.removeEventListeners=function(){this.JSC$21089_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21089_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21089_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21089_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21089_mouseDownEvent));this.JSC$21089_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21089_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21089_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21089_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21089_mouseMoveEvent));this.JSC$21089_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21089_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21089_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21089_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21089_mouseUpEvent))};
_.t.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var L=document.activeElement;L&&L.shadowRoot&&L.shadowRoot.activeElement;)L=L.shadowRoot.activeElement;switch(L){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};
_.t.updatePositionOfCorner=function(L,Z){var N=L.y-Z.offsetHeight/2+4;Z.style.left=L.x-Z.offsetWidth/2+16+"px";Z.style.top=N+"px"};
_.t.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var L=_.O([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var N=Q5y(this.imageEditor,Z.corner);this.updatePositionOfCorner(N,Z.div)}};
_.t.onLeft=function(L){this.imageEditor&&this.setFocusInImageEditor()&&(AXq(this.imageEditor,0),this.updatePositionOfAllCorners(),L.preventDefault())};
_.t.onRight=function(L){this.imageEditor&&this.setFocusInImageEditor()&&(AXq(this.imageEditor,1),this.updatePositionOfAllCorners(),L.preventDefault())};
_.t.onUp=function(L){this.imageEditor&&this.setFocusInImageEditor()&&(AXq(this.imageEditor,2),this.updatePositionOfAllCorners(),L.preventDefault())};
_.t.onDown=function(L){this.imageEditor&&this.setFocusInImageEditor()&&(AXq(this.imageEditor,3),this.updatePositionOfAllCorners(),L.preventDefault())};
_.t.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.gd.Object.defineProperties(G4.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&Mlm.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var L,Z,N;((Z=this.data)==null?0:Z.imageRatio)&&((N=this.data)==null?0:N.minImageCropWidth)?L={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:L=bwQ;return new s5Y(L)}}});
G4.prototype.updatePositionOfAllCorners=G4.prototype.updatePositionOfAllCorners;G4.prototype.dataChanged=G4.prototype.dataChanged;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],G4.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],G4.prototype,"ytComponentBehavior",void 0);_.r([_.y(_.Ub),_.Q("design:type",Object)],G4.prototype,"ironA11yKeysBehavior",void 0);
_.r([_.TX("#canvas"),_.Q("design:type",HTMLCanvasElement)],G4.prototype,"canvasElement",void 0);_.r([_.TX("#file-selector"),_.Q("design:type",HTMLInputElement)],G4.prototype,"fileSelector",void 0);_.r([_.TX("#top-left-corner"),_.Q("design:type",HTMLDivElement)],G4.prototype,"topLeftCorner",void 0);_.r([_.TX("#top-right-corner"),_.Q("design:type",HTMLDivElement)],G4.prototype,"topRightCorner",void 0);
_.r([_.TX("#bottom-left-corner"),_.Q("design:type",HTMLDivElement)],G4.prototype,"bottomLeftCorner",void 0);_.r([_.TX("#bottom-right-corner"),_.Q("design:type",HTMLDivElement)],G4.prototype,"bottomRightCorner",void 0);_.r([_.Y(),_.Q("design:type",Object)],G4.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],G4.prototype,"errorMessage",void 0);_.r([_.Y(),_.Q("design:type",Object)],G4.prototype,"isLoading",void 0);_.r([_.Y(),_.Q("design:type",Object)],G4.prototype,"hideContainer",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.Q("design:type",Boolean)],G4.prototype,"isPlaylistThumbnail",void 0);_.r([_.Vr("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],G4.prototype,"dataChanged",null);_.r([_.SA("image-updated"),_.SA("yt-refit"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G4.prototype,"updatePositionOfAllCorners",null);
_.r([_.ch({is:"yt-image-editor-renderer",disableElementRegistration:!0})],G4);
_.m(G4,"yt-image-editor-renderer",function(){if(dKg===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Iyv===void 0&&(Iyv=document.createElement("template"));var S=Iyv;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);dKg=L}L=dKg;return L},{mode:2});var grQ;var Ghc;var FL=function(){return _.e.apply(this,arguments)||this};
_.f(FL,_.e);FL.prototype.updateMinutesFromBinding=function(L){this.handleMinutesChanged&&this.handleMinutesChanged(L)};
FL.prototype.updateSecondsFromBinding=function(L){this.handleSecondsChanged&&this.handleSecondsChanged(L)};
FL.prototype.updateDescriptionFromBinding=function(L){this.handleDescriptionChanged&&this.handleDescriptionChanged(L)};
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],FL.prototype,"ytComponentBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],FL.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",String)],FL.prototype,"minutes",void 0);_.r([_.Y(),_.Q("design:type",String)],FL.prototype,"seconds",void 0);_.r([_.Y(),_.Q("design:type",String)],FL.prototype,"description",void 0);_.r([_.Y(),_.Q("design:type",Function)],FL.prototype,"handleMinutesChanged",void 0);
_.r([_.Y(),_.Q("design:type",Function)],FL.prototype,"handleSecondsChanged",void 0);_.r([_.Y(),_.Q("design:type",Function)],FL.prototype,"handleDescriptionChanged",void 0);_.r([_.Y(),_.Q("design:type",Number)],FL.prototype,"characterLimit",void 0);_.r([_.Y(),_.Q("design:type",Number)],FL.prototype,"textNumRows",void 0);_.r([_.ch({is:"yt-report-details-form-content",disableElementRegistration:!0})],FL);
_.m(FL,"yt-report-details-form-content",function(){if(Ghc===void 0){var L=document.createElement("template");_.k(L,'\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>');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;grQ===void 0&&(grQ=document.createElement("template"));var S=grQ;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Ghc=L}L=Ghc;return L},{mode:2});var Fsm;var $Mg;var $J=function(){var L=_.e.apply(this,arguments)||this;L.updateMinutesFromBinding=function(Z){L.minutes=Z.detail.value};
L.updateSecondsFromBinding=function(Z){L.seconds=Z.detail.value};
L.updateDescriptionFromBinding=function(Z){L.description=Z.detail.value};
return L};
_.f($J,_.e);_.t=$J.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.t.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"}}}};
_.t.ready=function(){_.QJ(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.t.onSubmitYtAction=function(L){var Z=L.detail;Z.actionName==="yt-service-request"&&(Z=Z.args[1],Z.flagEndpoint&&(L.stopPropagation(),this.refireAction(Z)))};
_.t.refireAction=function(L){var Z={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(Z.vss_id=this.vssId);_.H2(this.hostElement,[L,Z]);this.submitDisabled=!0};
_.t.dataChanged=function(){var L=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var Z=_.CV();Z&&Z.getPlayerPromise().then(function(N){var S=N.getOption("cc","track")||N.getOption("captions","track");S&&(L.vssId=S.vss_id);N=N.getCurrentTime();L.minutes=Math.floor(N/60).toString();L.seconds=(Math.floor(N)%60).toString()})};
_.t.updateSubmitButtonState=function(){var L;((L=this.data)==null?0:L.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==="")};
_.t.onYtServiceRequestCompleted=function(){_.XJ(this.hostElement,"yt-close-popup-action")};
_.t.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.gd.Object.defineProperties($J.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var L;return((L=this.data)==null?void 0:L.textNumRows)||4}}});
$J.prototype.onYtServiceRequestError=$J.prototype.onYtServiceRequestError;$J.prototype.onYtServiceRequestCompleted=$J.prototype.onYtServiceRequestCompleted;$J.prototype.updateSubmitButtonState=$J.prototype.updateSubmitButtonState;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],$J.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);
_.r([_.Y({observer:"dataChanged"}),_.Q("design:type",Object)],$J.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],$J.prototype,"submitDisabled",void 0);_.r([_.Y(),_.Q("design:type",String)],$J.prototype,"minutes",void 0);_.r([_.Y(),_.Q("design:type",String)],$J.prototype,"seconds",void 0);_.r([_.Y(),_.Q("design:type",String)],$J.prototype,"description",void 0);_.r([_.Y(),_.Q("design:type",String)],$J.prototype,"vssId",void 0);
_.r([_.Y({value:_.X7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Q("design:type",Boolean)],$J.prototype,"isMusic",void 0);_.r([_.w("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],$J.prototype,"characterLimit",null);_.r([_.w("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],$J.prototype,"textNumRows",null);
_.r([_.Vr("minutes","seconds","description","submitDisabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$J.prototype,"updateSubmitButtonState",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$J.prototype,"onYtServiceRequestCompleted",null);
_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$J.prototype,"onYtServiceRequestError",null);_.r([_.ch({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],$J);
_.m($J,"yt-report-details-form-renderer",function(){if($Mg===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Fsm===void 0&&(Fsm=document.createElement("template"));var S=Fsm;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);$Mg=L}L=$Mg;return L});var DMy;var l_w;var vrk;var ory;var DY=function(){return _.e.apply(this,arguments)||this};
_.f(DY,_.e);
DY.prototype.onCheckedChanged_=function(){if(this.data){var L=_.QJ(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.XJ(this.hostElement,"yt-additional-detail-checkbox-update",[L]):this.data.identifier==="yt-hide-user-checkbox"?_.XJ(this.hostElement,"yt-hide-user-checkbox-update",[L]):L&&this.data.enableCommand?_.XJ(this.hostElement,"yt-modify-report-form-command",[_.n(this.data.enableCommand,aHY)]):!L&&this.data.disableCommand&&_.XJ(this.hostElement,
"yt-modify-report-form-command",[_.n(this.data.enableCommand,aHY)])}};
DY.prototype.onLabelTap_=function(L){L.target.tagName!="A"&&(_.QJ(this.hostElement).querySelector("#checkbox").checked=!_.QJ(this.hostElement).querySelector("#checkbox").checked)};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],DY.prototype,"data",void 0);_.r([_.ch({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],DY);
_.m(DY,"yt-boolean-form-field-v2-renderer",function(){if(ory===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;vrk===void 0&&(vrk=document.createElement("template"));var S=vrk;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);ory=L}L=ory;return L});var ls=function(){var L=_.e.apply(this,arguments)||this;L.canShowAdditionalDetailCheckbox=!1;L.canShowCheckbox=!1;L.keepDropdownFocusedAfterSelection=!0;return L};
_.f(ls,_.e);ls.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}}}}};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],ls.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ls.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],ls.prototype,"canShowAdditionalDetailCheckbox",void 0);_.r([_.Y(),_.Q("design:type",Object)],ls.prototype,"canShowCheckbox",void 0);_.r([_.Y(),_.Q("design:type",Object)],ls.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.r([_.ch({is:"yt-report-form-modal-content",disableElementRegistration:!0})],ls);
_.m(ls,"yt-report-form-modal-content",function(){if(l_w===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;DMy===void 0&&(DMy=document.createElement("template"));var S=DMy;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);l_w=L}L=l_w;return L},{mode:2});var R8Q;var cMP;var v5=function(){var L=_.e.apply(this,arguments)||this;L.submitting=!1;L.submitButtonDisabled=!0;L.command=null;L.canShowCheckbox=!1;L.canShowAdditionalDetailCheckbox=!1;L.canShowNextButton=!1;L.additionalDetailCheckboxChecked=!1;L.refitJob=0;L.keepDropdownFocusedAfterSelection=!0;L.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 L};
_.f(v5,_.e);_.t=v5.prototype;_.t.created=function(){this.refitJob=0};
_.t.attached=function(){this.JSC$21112_scroller&&(this.JSC$21112_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21112_scroller.attached&&typeof this.JSC$21112_scroller.attached==="function"&&this.JSC$21112_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(L){L&&(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,L.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),L.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.t.onYtPopupOpened=function(){var L=_.CV();L&&L.getPlayerPromise().then(function(Z){Z.pauseVideo()})};
_.t.onYtNavigate=function(L){_.n(L.detail.endpoint,_.H25)&&(L.stopPropagation(),this.hideReportForm=!0)};
_.t.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.t.onYtServiceRequestCompleted=function(L,Z){var N=Z.actions;if(N){if(N.length===1&&_.n(N[0],_.q2)){var S;N=((S=_.n(N[0],_.q2))==null?void 0:S.commands)||[]}S=0;for(var u=N.length;S<u;S++)_.n(N[S],_.aw)&&(L.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(N[S]))}if(Z.data&&(L=this.get("feedbackResponses",Z.data)))for(Z=0;Z<L.length;Z++)if(L[Z].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.t.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.t._onDescendantIronResize=function(L){L.stopPropagation();return!1};
_.t.handleReportFormEndpointUpdateAction=function(L){if(L.submitEndpoint){var Z=this.command=L.submitEndpoint;Z=_.n(Z,_.QNO);if(Z==null?0:Z.additionalDetailCheckboxChecked)Z.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else L.submitNavigationEndpoint?(this.command=L.submitNavigationEndpoint,this.toggleSubmitButton(!1)):L.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:L.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;L.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",L));this.refit()};
_.t.handleConfirmDialogCloseAction=function(L){L.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.t.submitButtonDisabledChanged=function(){var L=this.hostElement.parentElement;L&&L.invalidateTabbables&&L.invalidateTabbables()};
_.t.handleModifyReportFormCommand=function(L){L=this.get("action",L);L==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:L==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:L==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:L==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:L==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:L==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.t.updateDialogStyling=function(){var L,Z,N,S,u,T=((u=(L=this.data)==null?void 0:(Z=L.optionsSupportedRenderers)==null?void 0:(N=Z.optionsRenderer)==null?void 0:(S=N.items)==null?void 0:S.length)!=null?u:0)<=2?0:240;_.Ld(this.hostElement,{"--yt-report-form-modal-renderer-min-width":T+"px"})};
_.t.toggleSubmitButton=function(L){this.submitButtonDisabled=!L;this.submitButtonDisabled=L};
_.t.computeSubmitButtonData=function(L,Z){var N={};_.n(Z,_.H25)?N.navigationEndpoint=Z:N.command=Z||void 0;L&&L.buttonRenderer&&_.Py.extend(N,L.buttonRenderer);return N};
_.t.computeNextButtonData=function(L,Z){var N={};if(!L||!L.buttonRenderer)return N;_.Py.extend(N,L.buttonRenderer);if(!Z)return N;if(_.n(Z,_.H25))N.navigationEndpoint=Pxk(Z);else if(N.command=Pxk(Z),L=_.n(N.command,_.QNO))L.legalCheckboxChecked=!0;return N};
_.t.computeShowNextButton=function(L,Z,N){return!!L&&Z&&N};
_.t.refit=function(){var L=this;this.refitJob||(this.refitJob=_.ro.addLowPriorityJob(function(){_.QT(L.hostElement,"yt-refit");L.refitJob=0}))};
_.t.handleAdditionalDetailCheckboxUpdateAction=function(L){this.additionalDetailCheckboxChecked=L;_.n(this.command,_.QNO).additionalDetailCheckboxChecked=L};
_.gd.Object.defineProperties(v5,{template:{configurable:!0,enumerable:!0,get:function(){if(cMP===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;R8Q===void 0&&(R8Q=document.createElement("template"));var S=R8Q;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);cMP=L}L=cMP;return L}}});
v5.prototype.onYtServiceRequestError=v5.prototype.onYtServiceRequestError;v5.prototype.onYtServiceRequestCompleted=v5.prototype.onYtServiceRequestCompleted;v5.prototype.onYtServiceRequestSent=v5.prototype.onYtServiceRequestSent;v5.prototype.onYtNavigate=v5.prototype.onYtNavigate;v5.prototype.onYtPopupOpened=v5.prototype.onYtPopupOpened;_.r([_.y(_.vS.YtOpenPopupBehavior),_.Q("design:type",Object)],v5.prototype,"openPopupBehavior",void 0);
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],v5.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],v5.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],v5.prototype,"eventForwardingBehavior",void 0);_.r([_.y(_.Eb),_.Q("design:type",Object)],v5.prototype,"ironResizableBehavior",void 0);_.r([_.Y({observer:"dataChanged"}),_.Q("design:type",Object)],v5.prototype,"data",void 0);
_.r([_.Y(),_.Q("design:type",Object)],v5.prototype,"submitting",void 0);_.r([_.Y({observer:"submitButtonDisabledChanged"}),_.Q("design:type",Object)],v5.prototype,"submitButtonDisabled",void 0);_.r([_.Y(),_.Q("design:type",Object)],v5.prototype,"command",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],v5.prototype,"hideReportForm",void 0);_.r([_.Y(),_.Q("design:type",Object)],v5.prototype,"canShowCheckbox",void 0);
_.r([_.Y(),_.Q("design:type",Object)],v5.prototype,"canShowAdditionalDetailCheckbox",void 0);_.r([_.Y(),_.Q("design:type",Object)],v5.prototype,"canShowNextButton",void 0);_.r([_.Y(),_.Q("design:type",Object)],v5.prototype,"additionalDetailCheckboxChecked",void 0);_.r([_.Y(),_.Q("design:type",Object)],v5.prototype,"refitJob",void 0);_.r([_.Y(),_.Q("design:type",Object)],v5.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.r([_.TX("#scroller"),_.Q("design:type",Object)],v5.prototype,"JSC$21112_scroller",void 0);_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],v5.prototype,"onYtPopupOpened",null);_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],v5.prototype,"onYtNavigate",null);
_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],v5.prototype,"onYtServiceRequestSent",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],v5.prototype,"onYtServiceRequestCompleted",null);
_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],v5.prototype,"onYtServiceRequestError",null);_.r([_.ch({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],v5);var nrQ;var Ksg;var ox=function(){return _.e.apply(this,arguments)||this};
_.f(ox,_.e);_.t=ox.prototype;_.t.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.t.onVisible=function(){var L,Z;(Z=_.GR().resolve(_.gv(_.LR)))==null||Z.enqueue({label:_.jM((L=this.data)==null?void 0:L.messageTitle),elementToFocus:this.hostElement})};
_.t.onThumbnailLoaded=function(){_.QT(this.hostElement,"yt-refit")};
_.t.onDismissTap=function(){_.XJ(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.t.computeAlternateIcon=function(L){return L?L==="BACKSTAGE_ARTWORK"?"backstage:artwork":L:null};
_.t.computeFontFamily=function(L){return L==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.t.computeBackgroundStyle=function(L,Z){if(L=this.computeBackgroundImage(L,Z))if(L=_.QV(L.thumbnails))return'background-image: url("'+L+'");'};
_.t.computeHasFullHeightImage=function(L){return!(!(L&&L.thumbnails&&L.thumbnails.length>0)||this.modern)};
_.t.isModernStyle=function(L){return L.style==="STYLE_MODERN"};
_.t.computeIcon=function(L,Z){if(L&&L.icon)return Z?L.iconDark:L.icon};
_.t.computeBackgroundImage=function(L,Z){if(L&&L.backgroundImage)return Z?L.backgroundImageDark:L.backgroundImage};
_.t.computeLogo=function(L,Z){if(L&&L.logo)return Z?L.logoDark:L.logo};
_.t.computeShouldShowModernIcon=function(L,Z){return L&&!!Z};
_.t.getLogoContainerClassName=function(L){return this.logoWithPadding(L)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.t.getLogoImageId=function(L){return this.logoWithPadding(L)?"mealbar-logo-with-padding":"mealbar-logo"};
_.t.logoWithPadding=function(L){var Z,N,S;return(L=(Z=this.computeLogo(L,this.isDarkTheme))==null?void 0:(N=Z.thumbnails)==null?void 0:(S=N[0])==null?void 0:S.height)&&L%31===0?!0:!1};
ox.prototype.onThumbnailLoaded=ox.prototype.onThumbnailLoaded;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.r([_.Y({}),_.Q("design:type",Object)],ox.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.Q("design:type",Boolean)],ox.prototype,"modern",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],ox.prototype,"isDarkTheme",void 0);
_.r([_.Y({computed:"computeIcon(data, isDarkTheme)"}),_.Q("design:type",Object)],ox.prototype,"icon",void 0);_.r([_.Y({computed:"computeLogo(data, isDarkTheme)"}),_.Q("design:type",Object)],ox.prototype,"logo",void 0);_.r([_.Y({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.Q("design:type",Object)],ox.prototype,"backgroundStyle",void 0);_.r([_.Y({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.Q("design:type",Object)],ox.prototype,"alternateIcon",void 0);
_.r([_.Y({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.Q("design:type",Boolean)],ox.prototype,"hasFullHeightImage",void 0);_.r([_.Y({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.Q("design:type",Boolean)],ox.prototype,"useYoutubeSans",void 0);_.r([_.Y({computed:"computeShouldShowModernIcon(modern, icon)"}),_.Q("design:type",Boolean)],ox.prototype,"shouldShowModernIcon",void 0);
_.r([_.SA("yt-img-shadow-loaded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ox.prototype,"onThumbnailLoaded",null);_.r([_.ch({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],ox);
_.m(ox,"yt-mealbar-promo-renderer",function(){if(Ksg===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;nrQ===void 0&&(nrQ=document.createElement("template"));var S=nrQ;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Ksg=L}L=Ksg;return L},{mode:2});var f_q;var khk;var Rx=function(){return _.e.apply(this,arguments)||this};
_.f(Rx,_.e);_.t=Rx.prototype;_.t.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]]"}}}}}};
_.t.computeHasButtons_=function(L){return!(!L.dismissButton&&!L.acceptButton)};
_.t.computeStyle_=function(L){return L||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.t.observeImpressionEndpoints_=function(){var L=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(Z){Z.clickTrackingParams&&delete Z.clickTrackingParams;_.H2(L.hostElement,[Z])})};
_.t.onTap_=function(){_.XJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
Rx.prototype.observeImpressionEndpoints_=Rx.prototype.observeImpressionEndpoints_;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],Rx.prototype,"ytEventForwardingBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Rx.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Rx.prototype,"positionType",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Q("design:type",Boolean)],Rx.prototype,"hasButtons_",void 0);_.r([_.Y({value:function(){return this.onTap_.bind(this)}}),
_.Q("design:type",Function)],Rx.prototype,"boundOnTap_",void 0);_.r([_.Y({value:{style:"mono-inverse"}}),_.Q("design:type",Object)],Rx.prototype,"buttonOverride",void 0);_.r([_.iA("data.promoConfig.impressionEndpoints"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Rx.prototype,"observeImpressionEndpoints_",null);_.r([_.ch({is:"yt-tooltip-renderer",disableElementRegistration:!0})],Rx);
_.m(Rx,"yt-tooltip-renderer",function(){if(khk===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;f_q===void 0&&(f_q=document.createElement("template"));var S=f_q;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);khk=L}L=khk;return L},{mode:2});var yMk;var wC0;var UMv={},Ysv=(UMv.WEB_REMIX="music.youtube.com",UMv),c5=function(){var L=_.e.apply(this,arguments)||this;L.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return L};
_.f(c5,_.e);_.t=c5.prototype;_.t.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.created=function(){this.embedHost_=Ysv[_.X7("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.t.ready=function(){_.QJ(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.t.computeEmbedCode_=function(L,Z,N,S,u){if(!L)return"";var T=L.videoId,W=L.fullListId,V=[];L.attributionId&&V.push("si="+L.attributionId);S||V.push("controls=0");N&&Number(Z)>0&&V.push("start="+Z);W&&(T="videoseries",V.push("list="+W));N="https://"+(u?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+T;L.clipId&&(V.push("clip="+L.clipId),V.push("clipt="+L.clipTiming));Z=V.length>0?N+"?"+V.join("&amp;"):N;L.encryptedEmbedConfig&&V.push("embed_config="+JSON.stringify({enc:L.encryptedEmbedConfig}));
V=V.length>0?N+"?"+V.join("&amp;"):N;_.c("web_sharing_embed_preview_killswitch")?_.QJ(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(V,L.previewWidth||854,L.previewHeight||480):(_.es(this.videoPreviewContainer),_.QJ(this.videoPreviewContainer).appendChild(this.buildIframeElement(V)));return this.getEmbedCode_(Z,L.width||560,L.height||315)};
_.t.buildIframeElement=function(L){var Z=document.createElement("iframe"),N,S;Z.width=""+((S=(N=this.data)==null?void 0:N.previewWidth)!=null?S:854);var u,T;Z.height=""+((T=(u=this.data)==null?void 0:u.previewHeight)!=null?T:480);_.GEt(Z,2,L);Z.title="YouTube video player";Z.frameBorder="0";Z.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";Z.referrerPolicy="strict-origin-when-cross-origin";Z.allowFullscreen=!0;return Z};
_.t.computeIsSquareAspectRatio_=function(L){return L.previewHeight&&L.previewWidth?L.previewHeight==L.previewWidth:!1};
_.t.computeShowEmbedOptions_=function(L){return!!L.enablePrivacyModeOptionLabel||!!L.showPlayerControlsOptionLabel};
_.t.getEmbedCode_=function(L,Z,N){return'<iframe width="'+Z+'" height="'+N+'" src="'+L+'" 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>'};
_.t.handleSignalActionCopyShareEmbedUrl_=function(){_.QJ(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.t.handleSetTimestamp_=function(L){this.startAtTimeStamp_=(this.startAtChecked_=L.isSet)?L.timestamp:0};
_.t.closePanel_=function(){_.XJ(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.t.onEmbedCode_=function(){_.QJ(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.t.onYtPopupClosed_=function(){_.es(_.QJ(this.hostElement).querySelector("#video-preview"))};
_.t.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.n(this.data.actionButtons[0],_.xZ)&&this.ytRendererBehavior.logExplicitClick(_.n(this.data.actionButtons[0],_.xZ))};
c5.prototype.onYtPopupClosed_=c5.prototype.onYtPopupClosed_;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],c5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],c5.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],c5.prototype,"data",void 0);
_.r([_.Y({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.Q("design:type",String)],c5.prototype,"embedCode_",void 0);_.r([_.Y({value:!0}),_.Q("design:type",Boolean)],c5.prototype,"isPlayerControlsOptionChecked_",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],c5.prototype,"isPrivacyModeOptionChecked_",void 0);_.r([_.Y({value:!1,notify:!0}),_.Q("design:type",Boolean)],c5.prototype,"startAtChecked_",void 0);
_.r([_.Y({value:0}),_.Q("design:type",Number)],c5.prototype,"startAtTimeStamp_",void 0);_.r([_.Y({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],c5.prototype,"isSquareAspectRatio_",void 0);_.r([_.TX("#video-preview"),_.Q("design:type",HTMLElement)],c5.prototype,"videoPreviewContainer",void 0);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],c5.prototype,"onYtPopupClosed_",null);
_.r([_.ch({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],c5);
_.m(c5,"yt-sharing-embed-renderer",function(){if(wC0===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;yMk===void 0&&(yMk=document.createElement("template"));var S=yMk;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);wC0=L}L=wC0;return L},{mode:2});var e8v={};
e8v.YtUnlimitedFamilyInterstitialBehavior=[_.vS.YtOpenPopupBehavior,_.nK.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(L){L=_.wyh(_.jD(L),"yt-button-renderer");return L?L.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(L){this.dialogHistory_.push(L)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var L=this.popFromHistory();if(L){var Z={openPopupAction:{popupType:"DIALOG",popup:{}}};Z.openPopupAction.popup[L.renderer]=L.data;this.showingPreviousDialog_=!0;this.openPopup(Z)}},
handleOpenPopupAction_:function(L){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var Z=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(S){return!!L.openPopupAction.popup[S]}),N=this.getElementName_();
Z&&this.data&&(this.pushToHistory({renderer:N,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(L){if(L=_.n(L,OJ5))this.loading=!0,_.XJ(this.hostElement,"yt-open-create-family-dialog",[L,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var L=this.hostElement.nodeName.split("-").slice(1).map(function(Z){return""+Z[0].toUpperCase()+Z.slice(1).toLowerCase()}).join("");
return L[0].toLowerCase()+L.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var I_v;var dM8;var nB=function(){return _.e.apply(this,arguments)||this};
_.f(nB,_.e);_.t=nB.prototype;_.t.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}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.XJ(this.hostElement,"yt-register-create-family-dialog");_.QJ(this.hostElement).querySelector("#thumbnail").onShow()};
_.t.fireOnCloseCommand_=function(){var L;((L=this.data)==null?0:L.onCloseCommand)&&_.B2(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.t.onYtServiceRequestSent_=function(L,Z){Z&&Z.endpoint&&_.n(Z.endpoint,_.ZW)||(this.loading=!0)};
_.t.onYtServiceRequestCompleted_=function(){var L=this.hostElement.parentElement;L.close&&L.close();this.loading=!1};
_.t.openPopupHandler_=function(L){if(L.detail==this){var Z;((Z=this.data)==null?0:Z.onOpenCommands)&&_.B2(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.t.closePopupHandler_=function(L,Z){this.fireOnCloseCommand_();if(Z&&Z.canceled===!0||Z&&Z.canceled===!1&&Z.confirmed===!1){var N;((N=this.data)==null?0:N.onDismissCommands)&&_.B2(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.t.dataChanged_=function(){this.loading=!1};
nB.prototype.dataChanged_=nB.prototype.dataChanged_;nB.prototype.closePopupHandler_=nB.prototype.closePopupHandler_;nB.prototype.openPopupHandler_=nB.prototype.openPopupHandler_;nB.prototype.onYtServiceRequestCompleted_=nB.prototype.onYtServiceRequestCompleted_;nB.prototype.onYtServiceRequestSent_=nB.prototype.onYtServiceRequestSent_;_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],nB.prototype,"ytEventForwardingBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],nB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(e8v.YtUnlimitedFamilyInterstitialBehavior),_.Q("design:type",Object)],nB.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],nB.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],nB.prototype,"loading",void 0);_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],nB.prototype,"onYtServiceRequestSent_",null);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],nB.prototype,"onYtServiceRequestCompleted_",null);
_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],nB.prototype,"openPopupHandler_",null);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],nB.prototype,"closePopupHandler_",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nB.prototype,"dataChanged_",null);
_.r([_.ch({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],nB);
_.m(nB,"yt-unlimited-family-message-interstitial-renderer",function(){if(dM8===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;I_v===void 0&&(I_v=document.createElement("template"));var S=I_v;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);dM8=L}L=dM8;return L},{mode:2});var a_s;var h8v;var KB=function(){return _.e.apply(this,arguments)||this};
_.f(KB,_.e);KB.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"}}}};
KB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.QJ(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(L){L.onShow()});
_.QJ(this.hostElement).querySelector("#main-thumbnail").onShow()};
KB.prototype.onButtonTap_=function(L){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(L)};
KB.prototype.computeMainThumbnailWidth_=function(L){return L&&L.length!==0?72:96};
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.r([_.y(e8v.YtUnlimitedFamilyInterstitialBehavior),_.Q("design:type",Object)],KB.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],KB.prototype,"data",void 0);
_.r([_.Y({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.Q("design:type",Number)],KB.prototype,"mainThumbnailWidth_",void 0);_.r([_.Y({value:function(){return this.onButtonTap_.bind(this)}}),
_.Q("design:type",Function)],KB.prototype,"boundButtonTap_",void 0);_.r([_.ch({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],KB);
_.m(KB,"yt-unlimited-family-profile-interstitial-renderer",function(){if(h8v===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;a_s===void 0&&(a_s=document.createElement("template"));var S=a_s;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);h8v=L}L=h8v;return L},{mode:2});var s0y;var j0q;var fB=function(){var L=_.e.apply(this,arguments)||this;L.sliderAriaValueText_=null;L.selectedIndex_=0;L.messages={PAUSE_SLIDER:_.iB("PAUSE_SLIDER",void 0,"Pause Duration")};return L};
_.f(fB,_.e);_.t=fB.prototype;_.t.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_]]"}}}}}};
_.t.onPopupOpened_=function(L){L.detail==this&&_.c("enable_premium_voluntary_pause")&&(_.XJ(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.setDialogData=function(L){this.data=L;this.resetSlider_()};
_.t.dataChanged_=function(){this.data&&this.resetSlider_()};
_.t.onSubmitTap_=function(){if(this.data.confirmCommand){var L=this.data.confirmCommand;_.n(L,_.HSO)&&_.H2(this.hostElement,[L,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.t.onExitButtonTap_=function(){_.XJ(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.t.closePopupHandler_=function(L,Z){(Z&&Z.canceled===!0||Z.canceled===!1&&Z.confirmed===!1)&&this.handleOnDismissCommands_()};
_.t.onSliderChange_=function(){this.selectedIndex_=_.QJ(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.t.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.t.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.t.resetSlider_=function(){if(this.data){var L=this.data.defaultEndOptionIndex||0,Z=_.QJ(this.hostElement).querySelector("#id-pause-slider");if(Z.immediateValue<L)for(;Z.immediateValue!=L;)Z.increment();else if(L<Z.immediateValue)for(;Z.immediateValue!=L;)Z.decrement();this.selectedIndex_=L;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.t.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.B2(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.t.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.B2(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.t.onYtServiceRequestSent=function(){this.loading=!0};
_.t.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
fB.prototype.onYtServiceRequestCompleted=fB.prototype.onYtServiceRequestCompleted;fB.prototype.onYtServiceRequestSent=fB.prototype.onYtServiceRequestSent;fB.prototype.closePopupHandler_=fB.prototype.closePopupHandler_;fB.prototype.dataChanged_=fB.prototype.dataChanged_;fB.prototype.onPopupOpened_=fB.prototype.onPopupOpened_;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],fB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],fB.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],fB.prototype,"loading",void 0);_.r([_.Y(),_.Q("design:type",Number)],fB.prototype,"selectIndexMax_",void 0);_.r([_.Y(),_.Q("design:type",Object)],fB.prototype,"selectedData_",void 0);
_.r([_.Y(),_.Q("design:type",Object)],fB.prototype,"sliderAriaValueText_",void 0);_.r([_.Y({value:function(){return this.onSubmitTap_.bind(this)}}),
_.Q("design:type",Function)],fB.prototype,"onButtonTap_",void 0);_.r([_.Y({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.Q("design:type",Function)],fB.prototype,"onSecondaryTap_",void 0);_.r([_.Y(),_.Q("design:type",Object)],fB.prototype,"messages",void 0);_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],fB.prototype,"onPopupOpened_",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fB.prototype,"dataChanged_",null);
_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],fB.prototype,"closePopupHandler_",null);_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],fB.prototype,"onYtServiceRequestSent",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],fB.prototype,"onYtServiceRequestCompleted",null);_.r([_.ch({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],fB);
_.m(fB,"yt-unplugged-pause-membership-dialog-renderer",function(){if(j0q===void 0){var L=document.createElement("template");_.k(L,'\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>');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;s0y===void 0&&(s0y=document.createElement("template"));var S=s0y;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);j0q=L}L=j0q;return L},{mode:2});var Er0;var Pr0;var kJ=function(){return _.e.apply(this,arguments)||this};
_.f(kJ,_.e);kJ.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.vQ("vcBalanceRenderer")}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],kJ.prototype,"data",void 0);_.r([_.ch({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],kJ);
_.m(kJ,"yt-vc-offer-layout-header-renderer",function(){if(Pr0===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Er0===void 0&&(Er0=document.createElement("template"));var S=Er0;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Pr0=L}L=Pr0;return L},{mode:2});var pCg;var z85;var mM0;var JM5;var y9=function(){return _.e.apply(this,arguments)||this};
_.f(y9,_.e);y9.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.gd.Object.defineProperties(y9.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)}}});
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.Vtc.YtTappableItemBehavior),_.Q("design:type",Object)],y9.prototype,"ytTappableItemBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],y9.prototype,"data",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.w("data.accessibilityText"),_.Q("design:type",String),_.Q("design:paramtypes",[])],y9.prototype,"ariaLabel",null);_.r([_.Y({reflectToAttribute:!0}),_.w("data.style"),_.Q("design:type",String),_.Q("design:paramtypes",[])],y9.prototype,"vcOfferStyle",null);_.r([_.w("data.style","data.titleText"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],y9.prototype,"showTitleText",null);_.r([_.ch({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],y9);
_.m(y9,"yt-vc-offer-renderer",function(){if(JM5===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;mM0===void 0&&(mM0=document.createElement("template"));var S=mM0;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);JM5=L}L=JM5;return L},{mode:2});var w6=function(){return _.e.apply(this,arguments)||this};
_.f(w6,_.e);w6.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}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],w6.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],w6.prototype,"data",void 0);_.r([_.ch({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],w6);
_.m(w6,"yt-vc-offer-layout-renderer",function(){if(z85===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;pCg===void 0&&(pCg=document.createElement("template"));var S=pCg;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);z85=L}L=z85;return L},{mode:2});var Crg;var rMP;var Q0k;var XCk;var Ud=function(){return _.e.apply(this,arguments)||this};
_.f(Ud,_.e);Ud.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}}}}}};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ud.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Ud.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ud.prototype,"data",void 0);_.r([_.ch({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],Ud);
_.m(Ud,"yt-ypc-offers-modal-top-bar-renderer",function(){if(XCk===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Q0k===void 0&&(Q0k=document.createElement("template"));var S=Q0k;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);XCk=L}L=XCk;return L},{mode:2});var YJ=function(){return _.e.apply(this,arguments)||this};
_.f(YJ,_.e);YJ.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"}}}}};
YJ.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
YJ.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var L=this.scrollable;L.attached&&typeof L.attached==="function"&&L.attached()};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.TX("#scrollable"),_.Q("design:type",Object)],YJ.prototype,"scrollable",void 0);_.r([_.Y(),_.Q("design:type",Object)],YJ.prototype,"data",void 0);_.r([_.ch({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],YJ);
_.m(YJ,"yt-ypc-offers-modal-renderer",function(){if(rMP===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Crg===void 0&&(Crg=document.createElement("template"));var S=Crg;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);rMP=L}L=rMP;return L},{mode:2});var AMq;var Hwg;var eL=function(){return _.e.apply(this,arguments)||this};
_.f(eL,_.e);_.t=eL.prototype;_.t.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}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.QJ(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.t.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.XJ(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.t.onYtPopupOpened_=function(L,Z){(Z==null?void 0:Z.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.B2(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.t.onYtPopupClosed_=function(L,Z){this.continueButtonTapped||Z&&(Z.canceled===!0||Z.canceled===!1&&Z.confirmed===!1)&&this.data.onDismissCommands&&_.B2(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.t.onYtServiceRequestError_=function(L){this.set("showSpinner",!1);_.Ib(this.hostElement,L.detail.error.message)};
_.t.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.c("enable_ypc_spinners")?_.XJ(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
eL.prototype.onYtServiceRequestError_=eL.prototype.onYtServiceRequestError_;eL.prototype.onYtPopupClosed_=eL.prototype.onYtPopupClosed_;eL.prototype.onYtPopupOpened_=eL.prototype.onYtPopupOpened_;eL.prototype.onYtServiceRequestCompleted_=eL.prototype.onYtServiceRequestCompleted_;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],eL.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Y(),_.Q("design:type",Object)],eL.prototype,"data",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],eL.prototype,"showSpinner",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],eL.prototype,"continueButtonTapped",void 0);_.r([_.Y({value:function(){return this.onContinueTapped_.bind(this)}}),
_.Q("design:type",Function)],eL.prototype,"bindOnContinueTapped_",void 0);_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],eL.prototype,"onYtServiceRequestCompleted_",null);_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],eL.prototype,"onYtPopupOpened_",null);
_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],eL.prototype,"onYtPopupClosed_",null);_.r([_.SA("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],eL.prototype,"onYtServiceRequestError_",null);_.r([_.ch({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],eL);
_.m(eL,"yt-ypc-upgrade-dialog-renderer",function(){if(Hwg===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;AMq===void 0&&(AMq=document.createElement("template"));var S=AMq;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Hwg=L}L=Hwg;return L},{mode:2});var B2s;var xMY;var Ix=function(){return _.e.apply(this,arguments)||this};
_.f(Ix,_.e);Ix.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ix.prototype.computeHasButtons_=function(L){return!(!L.dismissButton&&!L.confirmButton)};
Ix.prototype.computeStyle_=function(L){return L||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],Ix.prototype,"ytEventForwardingBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],Ix.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ix.prototype,"data",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],Ix.prototype,"positionType",void 0);
_.r([_.Y({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Q("design:type",Boolean)],Ix.prototype,"hasButtons_",void 0);_.r([_.Y({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Ix.prototype,"style_",void 0);_.r([_.ch({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Ix);
_.m(Ix,"yt-bubble-hint-renderer",function(){if(xMY===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;B2s===void 0&&(B2s=document.createElement("template"));var S=B2s;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);xMY=L}L=xMY;return L},{mode:2});var qsY;var Lps;var d6=function(){var L=_.Gc.apply(this,arguments)||this;L.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return L};
_.f(d6,_.Gc);_.t=d6.prototype;_.t.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.t.attached=function(){var L=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){L.$.thumbnail.onShow();L.$["header-image"].onShow()})};
_.t.handleCheckBoxUpdateAction_=function(L){this.canShowCheckboxEnabledConfirmButton=L};
_.t.computeUseOverlayForSpinner_=function(L,Z){return!!L&&Z};
_.t.computeShowSpinner_=function(L,Z){return L||!!Z};
_.t.fireOnCloseActions_=function(){var L,Z=_.O(((L=this.data)==null?void 0:L.onClosedActions)||[]);for(L=Z.next();!L.done;L=Z.next())this.ytRendererBehavior.resolveCommand(L.value)};
_.t.fireOnOpenCommands_=function(L){var Z,N=(Z=this.data)==null?void 0:Z.onOpenCommands;if(N)for(L.stopImmediatePropagation(),L=_.O(N),Z=L.next();!Z.done;Z=L.next())this.ytRendererBehavior.resolveCommand(Z.value)};
_.t.fireOnDismissCommands_=function(L){var Z,N=(Z=this.data)==null?void 0:Z.onDismissCommands;if(N)for(L.stopImmediatePropagation(),L=_.O(N),Z=L.next();!Z.done;Z=L.next())this.ytRendererBehavior.resolveCommand(Z.value)};
_.t.openPopupHandler_=function(L){L.detail==this&&this.fireOnOpenCommands_(L)};
_.t.closePopupHandler_=function(L,Z){_.Ad(this,"yt-confirm-dialog-close-action",[Z]);this.fireOnCloseActions_();(Z&&Z.canceled===!0||Z&&Z.canceled===!1&&Z.confirmed===!1)&&this.fireOnDismissCommands_(L)};
_.t.onHeaderImageChanged_=function(){var L;((L=this.data)==null?0:L.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.t.computeHasHeaderImageWidth_=function(L){return L!=void 0};
_.t.computeHasLoadingMessage=function(L){return!!L};
_.t.onHeaderImageWidthChanged_=function(){var L,Z=(L=this.data)==null?void 0:L.headerImageWidth;if(Z){if(L=1.25*Z*2+Z,this.$.main.style.width=L+"px",Z=this.$.scroller.firstElementChild)Z.style.minWidth=L+"px"}else this.$.main.style.width="100%"};
_.t.onThumbnailChanged_=function(){var L;((L=this.data)==null?0:L.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")};
_.t.onYtNavigate_=function(L){L=_.jD(L);L instanceof Node&&_.XB(this.$["confirm-button"]).contains(L)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.t.computePrimaryIsCancel_=function(L){return L};
_.t.computeIsCancelButtonHidden_=function(L){return L.skipCancelButton||!L.cancelButton};
_.t.computeIsCheckboxHidden_=function(L){return!L.checkbox};
_.t.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.t.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.t.onYtServiceRequestCompleted_=function(){var L;((L=this.data)==null?0:L.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.gd.Object.defineProperties(d6,{template:{configurable:!0,enumerable:!0,get:function(){if(Lps===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;qsY===void 0&&(qsY=document.createElement("template"));var S=qsY;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Lps=L}L=Lps;return L}}});
d6.prototype.onYtServiceRequestCompleted_=d6.prototype.onYtServiceRequestCompleted_;d6.prototype.onYtServiceRequestSent_=d6.prototype.onYtServiceRequestSent_;d6.prototype.onThumbnailLoaded_=d6.prototype.onThumbnailLoaded_;d6.prototype.onYtNavigate_=d6.prototype.onYtNavigate_;d6.prototype.onThumbnailChanged_=d6.prototype.onThumbnailChanged_;d6.prototype.onHeaderImageWidthChanged_=d6.prototype.onHeaderImageWidthChanged_;d6.prototype.onHeaderImageChanged_=d6.prototype.onHeaderImageChanged_;
d6.prototype.closePopupHandler_=d6.prototype.closePopupHandler_;d6.prototype.openPopupHandler_=d6.prototype.openPopupHandler_;_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],d6.prototype,"ytActionHandlerBehavior",void 0);_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],d6.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);
_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],d6.prototype,"ytEventForwardingBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],d6.prototype,"data",void 0);_.r([_.Y({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.Q("design:type",Boolean)],d6.prototype,"primaryIsCancel",void 0);_.r([_.Y({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.Q("design:type",Boolean)],d6.prototype,"isCancelButtonHidden",void 0);
_.r([_.Y({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.Q("design:type",Boolean)],d6.prototype,"isCheckboxHidden",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],d6.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.r([_.Y({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],d6.prototype,"useOverlayForSpinner_",void 0);
_.r([_.Y({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.Q("design:type",Boolean)],d6.prototype,"showSpinner_",void 0);_.r([_.Y({value:!1}),_.Q("design:type",Boolean)],d6.prototype,"isActionInProgress_",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.Q("design:type",Boolean)],d6.prototype,"hasHeaderImageWidth_",void 0);
_.r([_.Y({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.Q("design:type",Boolean)],d6.prototype,"hasLoadingMessage",void 0);_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],d6.prototype,"openPopupHandler_",null);_.r([_.SA("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],d6.prototype,"closePopupHandler_",null);
_.r([_.iA("data.headerImage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],d6.prototype,"onHeaderImageChanged_",null);_.r([_.iA("data.headerImageWidth"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],d6.prototype,"onHeaderImageWidthChanged_",null);_.r([_.iA("data.thumbnail"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],d6.prototype,"onThumbnailChanged_",null);
_.r([_.SA("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],d6.prototype,"onYtNavigate_",null);_.r([_.SA("yt-img-shadow-loaded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],d6.prototype,"onThumbnailLoaded_",null);_.r([_.SA("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Y0]),_.Q("design:returntype")],d6.prototype,"onYtServiceRequestSent_",null);
_.r([_.SA("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.EC]),_.Q("design:returntype")],d6.prototype,"onYtServiceRequestCompleted_",null);_.r([_.ch({is:"yt-confirm-dialog-renderer",noInjection:!0})],d6);var ZRq;var N_m;var ax=function(){return _.e.apply(this,arguments)||this};
_.f(ax,_.e);ax.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.QJ(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
ax.prototype.computeConfirmButton_=function(L){var Z={text:L.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};L.confirmNavigationEndpoint?Z.navigationEndpoint=L.confirmNavigationEndpoint:L.confirmServiceEndpoint&&(Z.serviceEndpoint=L.confirmServiceEndpoint);return Z};
ax.prototype.computeShowTitle_=function(L){return!(L==null||!L.title)};
_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],ax.prototype,"data",void 0);_.r([_.Y({computed:"computeShowTitle_(data)"}),_.Q("design:type",Boolean)],ax.prototype,"showTitle",void 0);_.r([_.ch({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],ax);
_.m(ax,"yt-fancy-dismissible-dialog-renderer",function(){if(N_m===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;ZRq===void 0&&(ZRq=document.createElement("template"));var S=ZRq;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);N_m=L}L=N_m;return L});var Sg5;var iRw;var hi=function(){var L=_.e.apply(this,arguments)||this;L.spinnerActive=!1;return L};
_.f(hi,_.e);hi.prototype.created=function(){Ocg(2201)};
hi.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
hi.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
hi.prototype.onIronOverlayClosed=hi.prototype.onIronOverlayClosed;hi.prototype.onIronOverlayOpened=hi.prototype.onIronOverlayOpened;_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],hi.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.Zs),_.Q("design:type",Object)],hi.prototype,"tpYtIronOverlayBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],hi.prototype,"data",void 0);_.r([_.Y(),_.Q("design:type",Object)],hi.prototype,"spinnerActive",void 0);
_.r([_.SA("iron-overlay-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hi.prototype,"onIronOverlayOpened",null);_.r([_.SA("iron-overlay-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hi.prototype,"onIronOverlayClosed",null);_.r([_.ch({is:"yt-loading-renderer",disableElementRegistration:!0})],hi);
_.m(hi,"yt-loading-renderer",function(){if(iRw===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Sg5===void 0&&(Sg5=document.createElement("template"));var S=Sg5;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);iRw=L}L=iRw;return L},{mode:2});var ueQ;var T_Q;var sd=function(){var L=_.e.apply(this,arguments)||this;L.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);L.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);L.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";L.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return L};
_.f(sd,_.e);_.t=sd.prototype;_.t.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.t.onDarkModeToggledAction=function(L){this.isDarkTheme=L};
_.t.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.t.openPopupHandler_=function(L){L.detail===this.hostElement&&this.hostElement.hidden&&_.XJ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.t.onDismissButtonTap_=function(){var L;this.closeOnDismissButton_.has(((L=this.data)==null?void 0:L.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.XJ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.t.onAcceptButtonTap_=function(){var L;this.closeOnAcceptButton_.has(((L=this.data)==null?void 0:L.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.XJ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.t.computeHasHeader_=function(L){return!!L.headerBackgroundImage};
_.t.computeLayoutStyle_=function(L){return L};
_.t.computePopupSize_=function(L){return L};
_.t.computeIconType_=function(L){return L.dialogIcon&&L.dialogIcon.iconType?L.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":L.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":L.dialogIcon.iconType:""};
_.t.computeIsLogo_=function(L){return!!L.dialogIcon&&!!L.dialogIcon.iconType&&(L.dialogIcon.iconType==="YOUTUBE_LOGO"||L.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||L.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.t.computeHasCustomLogo=function(L){return!(L==null||!L.headerForegroundImage)};
_.t.computeCustomLogo=function(L,Z){if(L!=null&&L.headerForegroundImage)return L.headerForegroundImageDark?Z?L.headerForegroundImageDark:L.headerForegroundImage:L.headerForegroundImage};
_.t.computeHeaderBackgroundImage=function(L,Z){if(L!=null&&L.headerBackgroundImage)return Z&&(L==null?0:L.headerBackgroundImageDark)?L.headerBackgroundImageDark:L.headerBackgroundImage};
_.t.shouldShowIconContainer=function(L,Z){return L&&!Z};
_.t.shouldShowNonYouTubeIcon=function(L,Z){return!L&&!Z};
_.t.getLogoImageId=function(L){var Z,N,S;return(L=(Z=this.computeCustomLogo(L,this.isDarkTheme))==null?void 0:(N=Z.thumbnails)==null?void 0:(S=N[0])==null?void 0:S.height)&&L%31===0?"custom-logo-with-padding":"custom-logo"};
sd.prototype.openPopupHandler_=sd.prototype.openPopupHandler_;sd.prototype.dataChanged_=sd.prototype.dataChanged_;_.r([_.y(_.WS.YtRendererstamperBehavior),_.Q("design:type",Object)],sd.prototype,"ytRendererstamperBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],sd.prototype,"isDarkTheme",void 0);
_.r([_.Y({computed:"computeCustomLogo(data, isDarkTheme)"}),_.Q("design:type",Object)],sd.prototype,"customLogo",void 0);_.r([_.Y({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.Q("design:type",Object)],sd.prototype,"headerBackgroundImage",void 0);_.r([_.Y(),_.Q("design:type",Object)],sd.prototype,"data",void 0);_.r([_.Y({computed:"computeHasHeader_(data)"}),_.Q("design:type",Boolean)],sd.prototype,"hasHeader",void 0);
_.r([_.Y({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.Q("design:type",Object)],sd.prototype,"layoutStyle",void 0);_.r([_.Y({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.Q("design:type",Object)],sd.prototype,"popupSize",void 0);_.r([_.Y({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],sd.prototype,"hasLogo",void 0);
_.r([_.Y({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],sd.prototype,"hasCustomLogo",void 0);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sd.prototype,"dataChanged_",null);_.r([_.SA("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],sd.prototype,"openPopupHandler_",null);
_.r([_.ch({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],sd);
_.m(sd,"yt-upsell-dialog-renderer",function(){if(T_Q===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;ueQ===void 0&&(ueQ=document.createElement("template"));var S=ueQ;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);T_Q=L}L=T_Q;return L},{mode:2});var t_m=_.p(function(L){return _.g("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.g(_.F,{cond:L.title,then:function(Z){return _.g("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},Z)}}))},"pj"),ORY=_.p(function(L){return _.g("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.g(_.bj,{data:L.closeButton},{buttonViewModel:function(Z){return _.g("div",null,_.g(_.$X,{data:Z.data}))}}))},"qj"),Wpq=_.p(function(L){var Z=L.data;
return _.g(_.F7,null,_.g("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.g("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.g(_.F,{cond:function(){return!!Z().image&&!!Z().title},
then:function(){return _.g(_.ji,{data:function(){return Z().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.g("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.g(_.F,{cond:function(){return Z().title},
then:function(N){return _.g("h3",{class:"miniAppGameInfoDialogViewModelTitle"},N)}}),_.g(_.F,{cond:function(){return Z().primaryGenre},
then:function(N){return _.g("span",{class:"miniAppGameInfoDialogViewModelGenre"},N)}}))),_.g(_.F,{cond:function(){var N=Z().description;
return N&&N.length<=150},
then:function(){return _.g("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.g("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return Z().description}))}}))},"rj"),V_5=_.p(function(L){L=L.infoRows;
var Z=_.GR().resolve(_.iZ),N=_.c("enable_displaying_ppn");return _.g("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.g(_.ju,{each:L},function(S){return _.g("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.g(_.F,{cond:function(){return S.label},
then:function(u){return _.g("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},u)}}),_.g(_.F,{cond:function(){return S.attributedLabel},
then:function(u){return _.g("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.g(_.qv,{text:u,noPreWrap:!0}))}}),_.g(_.F,{cond:function(){return S.value},
then:function(u){return _.g("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},u)}}),_.g(_.F,{cond:function(){return S.attributedValue},
then:function(u){return _.g("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.g(_.qv,{text:u,noPreWrap:!0}))}}))}),_.g(_.F,{cond:function(){return N&&Z.clientData.has("post_play_nonce")},
then:function(){return _.g("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.g("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.g("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},Z.getData("post_play_nonce")))}}))},"sj"),bRv=_.p(function(L){var Z=L.data;
return _.g("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.g(t_m,{title:function(){return Z().dialogTitle}}),_.g(Wpq,{data:Z}),_.g(_.F,{cond:function(){return Z().infoRow},
then:function(N){return _.g(V_5,{infoRows:N})}}),_.g(ORY,{closeButton:function(){return Z().closeButton}}))},"tj");
bRv.idomCompat=!0;_.CY(bRv,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){var Z=L.data;return _.g("yt-gulp-triggering-dialog-view-model",{class:_.qg("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.g(_.ji,{data:function(){return Z().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.g("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.g("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.g(_.F,{cond:function(){var N=Z().ytLogo;return N?N.iconType:null},
then:function(N){return _.g(_.T0,{icon:N,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.g("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.g("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.g(_.qv,{text:function(){return Z().title}})),_.g("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.g(_.qv,{text:function(){return Z().body}})),_.g("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.g(_.qv,{text:function(){return Z().verifyStateText}}))),
_.g("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.g("div",null,_.g(_.bj,{data:function(){return Z().dismissButton}},{buttonViewModel:_.$X})),_.g("div",null,_.g(_.bj,{data:function(){return Z().linkParentButton}},{buttonViewModel:_.$X})))))},"uj"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.LK}});var M_v=_.p(function(L){var Z=L.data;L=_.jA(function(){return Z().agreements},[]);
return _.g("installment-agreements-view-model",{class:_.qg("ytInstallmentAgreementsViewModelHost")},_.g(_.ju,{each:L},function(N){return _.g("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.g("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.g(_.qv,{text:N.label})),_.g("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.g(_.bj,{data:function(){return N.openButton}},{buttonViewModel:_.$X})))}))},"vj");
M_v.idomCompat=!0;var gyP=_.p(function(L){var Z=_.O(_.i4(function(){var X,L1;return((X=L.data().createPlaylistDialogFormSchema)==null?0:(L1=X.initialValues)==null?0:L1.title)?L.data().createPlaylistDialogFormSchema.initialValues.title:""})),N=Z.next().value,S=Z.next().value;
Z=_.O(_.i4(function(){L.data();return!1}));
var u=Z.next().value,T=Z.next().value;Z=_.O(_.i4(function(){L.data();return!1}));
var W=Z.next().value,V=Z.next().value;Z=_.O(_.i4(function(){var X,L1;return(X=L.data().createPlaylistDialogFormSchema)==null?void 0:(L1=X.initialValues)==null?void 0:L1.visibility}));
var M=Z.next().value,G=Z.next().value;Z=_.O(_.i4(function(){L.data();return!1}));
var D=Z.next().value,l=Z.next().value;Z=_.O(_.i4(function(){var X,L1;return(X=L.data().createPlaylistDialogFormSchema)==null?void 0:(L1=X.initialValues)==null?void 0:L1.isCollaborative}));
var v=Z.next().value,R=Z.next().value,K=_.t2("div");_.ph(function(){var X=K.value.querySelector("textarea");X&&(X.value=N())},"axFRaf");
_.m0(function(){var X;_.ulQ((X=L.data().createPlaylistDialogFormSchema)==null?void 0:X.id,{onSubmit:function(){var L1=N();var Fw=M(),GB=v(),Yt=L.data();L1={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:L1,privacyStatus:Fw,videoIds:Yt.videoIds,sourcePlaylistId:Yt.sourcePlaylistId,params:GB?Yt.createPlaylistParamsCollaborationEnabled:Yt.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.GR().resolve(_.$s).resolveCommand(L1)},
isValid:function(){return u()&&!W()&&!D()}})});
var U=function(X){if(X!==void 0&&(S(X),!u()&&X.length>0&&T(!0),u())){var L1=$Qq(L.data());if(L1){var Fw=L1.minLength;L1=L1.maxLength;Fw&&X.length<Fw?V(!0):L1&&X.length>L1?V(!0):V(!1)}}},d=function(){var X=!(!v()||M()!=="PRIVATE");
l(X)},h=function(X){X!==void 0&&(G(X),d())},E=function(){if(D())return liw(L.data())},A=function(){R(!v());
d()},J=function(){return{validate:function(X){if(u()){var L1=$Qq(L.data());
if(L1){var Fw=L1.minLength;L1=L1.translations;if(Fw&&X.length<Fw)return L1==null?void 0:L1.minLengthErrorMessage}}}}},C=function(){var X=$Qq(L.data()),L1=X==null?void 0:X.maxLength,Fw;
X=X==null?void 0:(Fw=X.translations)==null?void 0:Fw.maxLengthErrorMessage;if(L1&&X)return{maxChars:L1,errorMessage:X}};
return _.g("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.g("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:K},_.g(_.bj,{data:function(){return L.data().playlistTitle}},{textFormFieldViewModel:function(X){return _.g(_.Deg,{data:X.data,
text:N,onInput:U,validation:J,characterLimit:C})},
textFieldViewModel:function(X){return _.g(_.$eY,{data:X.data,text:N,onInput:U,validation:J,characterLimit:C})}})),_.g("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.g(_.bj,{data:function(){return L.data().playlistVisibility}},{dropdownViewModel:function(X){return _.g(_.wvm,{data:X.data,
onSelected:h,error:E})}})),_.g(_.F,{cond:function(){return!!L.data().playlistCollaborate},
then:function(){return _.g("div",null,_.g(_.bj,{data:function(){return L.data().playlistCollaborate}},{switchListItemViewModel:function(X){return _.g(_.TbI,{data:X.data,
onTap:A})}}))}}))},"xj");var GC5=_.p(function(L){var Z=L.data;return _.g("upsell-offer-table-cell-content-view-model",null,_.g("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.g(_.EM,null,_.g(_.hh,{when:function(){return Z().iconType}},function(){return _.g("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.g(_.T0,{icon:function(){return Z().iconType.toString()}}))}),_.g(_.hh,{when:function(){return Z().title}},function(){return _.g(_.qv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return Z().title}})}),_.g(_.hh,{when:function(){return Z().subtitle}},function(){return _.g(_.qv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return Z().subtitle}})}),_.g(_.hh,{when:function(){return Z().infoText}},function(){return _.g(_.qv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return Z().infoText}})}),_.g(_.hh,{when:function(){return Z().featureDescription}},function(){return _.g(_.qv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return Z().featureDescription}})}),_.g(_.hh,{when:function(){return Z().note}},function(){return _.g(_.qv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return Z().note}})}))))},"yj");
GC5.idomCompat=!0;var Fpm=_.p(function(L){var Z=L.data;return _.g("upsell-offer-table-cell-view-model",null,_.g("div",{class:_.qg("ytUpsellOfferTableCellViewModelCellWrapper",function(){return Z().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.g(_.bj,{data:function(){return Z().contents}},{upsellOfferTableCellContentViewModel:GC5})))},"zj");
Fpm.idomCompat=!0;var $A8=_.p(function(L){var Z=L.data;var N=L.upsellTableIsFirstRow;var S=function(){return(N==null?0:N())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},u=function(){return(N==null?0:N())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.g("ytm-upsell-offer-table-row-view-model",null,_.g("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.g(_.bj,{data:function(){return Z().rowHeaderCell}},{upsellOfferTableCellViewModel:function(T){return _.g("div",{class:S},_.g(Fpm,{data:T.data}))}}),_.g(_.bj,{data:function(){return Z().contentCells}},{upsellOfferTableCellViewModel:function(T){return _.g("div",{class:u},_.g(Fpm,{data:T.data}))}})))},"Aj");
$A8.idomCompat=!0;var DAP=_.p(function(L){var Z=L.data;return _.g("ytm-upsell-offer-table-view-model",null,_.g("div",{class:"ytUpsellOfferTableViewModelHost"},_.g("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.g(_.bj,{data:function(){return Z().rows}},{upsellOfferTableRowViewModel:function(N,S){return _.g($A8,{data:N.data,
upsellTableIsFirstRow:function(){return S()===0}})}}))))},"Bj");
DAP.idomCompat=!0;var l6Q=_.p(function(L){var Z=function(){return L.data()},N=_.jA(L.noPadding,!1),S=function(){var T,W;
return(W=(T=Z().logo.accessibilityData)==null?void 0:T.label)!=null?W:""},u={};
return _.g("upsell-view-model",{class:_.qg("ytUpsellViewModelHost",(u.ytUpsellViewModelHostNoPadding=function(){return N()},u.ytUpsellViewModelHostWide=function(){return Z().offerTable!==void 0},u))},_.g("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.g(_.F,{cond:function(){return _.US(Z().logo)},
then:function(T){return _.g(_.ji,{data:T,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:S})}})),_.g("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.g(_.qv,{text:function(){return Z().title}})),_.g("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.g(_.ju,{each:function(){var T;
return(T=Z().subtitles)!=null?T:[]},
keyBy:"INDEX"},function(T){var W={};return _.g("div",{class:_.qg("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(W.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return Z().offerTable!==void 0},W))},_.g(_.qv,{text:T}))})),_.g("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.g(_.ju,{each:function(){var T;
return(T=Z().benefitInfos)!=null?T:[]},
keyBy:"INDEX"},function(T){return _.g(_.F,{cond:function(){return T().info},
then:function(W){return _.g("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.g(_.T0,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.g(_.qv,{text:W}))}})})),_.g(_.F,{cond:function(){return Z().offerTable!==void 0},
then:function(){return _.g("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.g(_.bj,{data:function(){return Z().offerTable}},{upsellOfferTableViewModel:function(T){return _.g(DAP,{data:T.data})}}))}}),_.g("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.g(_.ju,{each:function(){var T;
return(T=Z().legalInfos)!=null?T:[]},
keyBy:"INDEX"},function(T){var W={};return _.g("div",{class:_.qg("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(W.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return Z().offerTable!==void 0},W))},_.g(_.qv,{text:T}))})))},"Cj");var vyv=_.p(function(L){var Z=L.data;L={};L=(L.ytMiniAppScoreChallengeViewModelScoreRadial=!0,L.ytMiniAppScoreChallengeViewModelDarkScoreRadial=vTw(),L);return _.g("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.g("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return Z().title}),_.g("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return Z().subtitle}),_.g("div",{class:_.D7(L)},_.g("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return Z().score})),_.g("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return Z().prompt}))},"Dj");var oym=function(){this.store=_.hJ();this.formId=""};
oym.prototype.onInit=function(L){L.formId&&(this.formId=L.formId,this.store.dispatch(_.XK({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var RSQ=_.p(function(L){function Z(V){if(V&&(V=_.n(V,_.gm)))return Object.assign({},V,{isSelected:T()})}
var N=_.O(_.i4(function(){var V,M;return(M=(V=_.n(L.data().option,_.gm))==null?void 0:V.isSelected)!=null?M:!1})),S=N.next().value,u=N.next().value,T=S;
_.m0(function(){var V;_.ulQ((V=L.data().formSchema)==null?void 0:V.id,{onSubmit:function(){var M=_.GR().resolve(_.$s),G=!!L.data().selectedCommand,D=!!L.data().unselectedCommand;if(T()){if(G)var l=L.data().selectedCommand}else D&&(l=L.data().unselectedCommand);l=_.KY(l);Z(L.data().option)&&!l?(M="",!G&&D?M="selected ":G&&!D&&(M="unselected "),G=new _.sr("No "+M+"command found for SelectionListItemFormViewModel"),_.CA(G)):l&&M.resolveCommand(l)},
isValid:function(){return!0}})});
var W=function(){u(!T())};
_.zs(function(){var V,M,G=(V=L.data())==null?void 0:(M=V.formSchema)==null?void 0:M.id;G&&_.WT()().delete(G)});
return _.g("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.g("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.g(_.qv,{text:function(){return L.data().paragraph}})),_.g(_.F,{cond:function(){return Z(L.data().option)},
then:function(V){return _.g(_.QO,{data:V,isCompact:!0,hideSelectionTextChevron:!0,onTap:W,disableHorizontalPadding:!0})}}))},"Ej");var cT5=_.p(function(L){var Z=L.data;var N=L.disablePadding;var S=L.className;var u=_.t2("yt-dialog-header-view-model"),T=function(){var V=Z().imageBanner;a:switch(Z().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var M="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:M="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:V,style:M,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},W=function(){return Z().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.m0(function(){var V=function(){_.XJ(u.value,"yt-refit-popups-action")},M;
(M=u.value)==null||M.addEventListener("image-loaded",V);_.zs(function(){var G;(G=u.value)==null||G.removeEventListener("image-loaded",V)})});
L={};return _.g("yt-dialog-header-view-model",{el:u,class:_.qg(S,(L.ytDialogHeaderViewModelHost=!0,L.ytDialogHeaderViewModelHostDisablePadding=N,L))},_.g(_.F,{cond:function(){return Z().imageBanner},
then:function(){var V={};return _.g("div",{class:_.qg(S,(V.ytDialogHeaderViewModelBanner=!0,V.ytDialogHeaderViewModelBannerFullBleed=W,V)),style:_.u4({"max-height":function(){return Z().assetContainerMaxHeight!==void 0?Z().assetContainerMaxHeight+"px":void 0}})},_.g(_.$g,{data:T,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.g(_.F,{cond:function(){return Z().headerBlock},
then:function(){return _.g("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.g(_.bj,{data:function(){return Z().headerBlock}},{contentPreviewImageViewModel:function(V){return _.g(_.$g,{data:V.data,
notifyOnLoaded:!0})}}))}}),_.g(_.F,{cond:function(){return Z().customBanner},
then:function(V){return _.g("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.g(_.bj,{data:V},{avatarStackViewModel:_.ri}))}}),_.g(_.F,{cond:function(){return Z().headline},
then:function(V){return _.g("h2",null,_.g(_.qv,{text:V,className:"ytDialogHeaderViewModelText"}))}}))},"Fj");
cT5.idomCompat=!0;var nyv=_.p(function(L){var Z=_.bE0(function(){return L.data().formId}),N=Z.submitForm,S=Z.isValid;
return _.g("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.g(_.bj,{data:function(){return L.data().panelFooter}},{panelFooterViewModel:function(u){return _.g(_.F1,{data:u.data,
disablePadding:!0,disablePrimaryButton:function(){return!S()},
onClickPrimaryButton:function(){N()}})}}))},"Gj");var Kp0=_.p(function(L){var Z=function(){var N,S;return(S=(N=_.n(L.data().rendererContext,_.Oi))==null?void 0:N.label)!=null?S:""};
return _.g("yt-dialog-image-content-view-model",{class:_.qg("ytDialogImageContentViewModelHost",L.className)},_.g(_.F,{cond:function(){return _.US(L.data().image)},
then:function(N){var S={};return _.g("div",{style:_.u4((S.width=(0,_.Wt)(function(){var u;return(u=L.data().imageMaxWidth)!=null?u:""}),S)),
class:"ytDialogImageContentViewModelImage"},_.g(_.ji,{data:N,alt:Z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.g(_.qv,{text:function(){return L.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Hj");var yT5=_.p(function(L){var Z=_.Ek(L,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),N=Z.elRefCallback;L=Z.iconWiz;var S=Z.assetWiz,u=Z.assetType,T=Z.titleWiz,W=Z.leadingActionHeaderWiz,V=Z.trailingActionHeaderWiz,M=Z.headerPosition,G=Z.contentWiz,D=Z.buttonLayout,l=Z.buttonStyle,v=Z.primaryButtonWiz,R=Z.secondaryButtonWiz,K=Z.contentAlignment,U=Z.isFullscreen,d=Z.width,h=Z.maxHeight,E=Z.isHeaderWizDefined,
A=Z.headerWiz,J=Z.isFooterWizDefined,C=Z.footerWiz;Z=_.t2("dialog-layout",function(f1){N==null||N(f1)});
var X=S?function(){return S({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,L1=v?function(){var f1={};
return v({buttonOverrides:function(){return{style:(l==null?void 0:l())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.qg((f1["yt-spec-dialog-layout__dialog-layout-button"]=!0,f1["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(D==null?void 0:D())===0||(D==null?void 0:D())===2},f1))})}:void 0,Fw=R?function(){var f1={};
return R({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.qg((f1["yt-spec-dialog-layout__dialog-layout-button"]=!0,f1["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(D==null?void 0:D())===0||(D==null?void 0:D())===2},f1))})}:void 0,GB=function(){return(!!T||!!W||!!V)&&M()===0},Yt={},lH={},RF={},jf={};
return _.g("dialog-layout",{el:Z,class:_.qg((Yt["yt-spec-dialog-layout"]=!0,Yt["yt-spec-dialog-layout--dialog-layout-fullscreen"]=U,Yt["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!U()},Yt["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return h()===1},Yt["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(u==null?void 0:u())===1},Yt)),
style:function(){return(d==null?void 0:d())!==void 0?"width: "+d+"px;":""}},L?_.g("div",{class:_.qg((lH["yt-spec-dialog-layout__dialog-layout-icon"]=!0,lH["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!S&&M()===1},lH["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return K()===1},lH))},_.g(L,null)):null,_.g(_.F,{cond:E,
then:function(){return A?_.g("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.g(A,null)):null},
else:function(){return _.g(_.F7,null,_.g(_.F,{cond:GB,then:function(){return _.g(f6m,{contentAlignment:K,LeadingActionHeader:W,TrailingActionHeader:V,Title:T,isAboveAsset:!!X})}}),X?_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.g(X,null)):null)}}),_.g("div",{class:_.qg((RF["yt-spec-dialog-layout__dialog-layout-container"]=!0,RF["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(K==null?void 0:K())===1},RF["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!T&&!(A&&E())||!!X&&(M==null?void 0:M())===0},RF))},_.g(_.F,{cond:function(){return T&&!A&&(M==null?void 0:M())===1},
then:function(){return _.g(f6m,{contentAlignment:K,LeadingActionHeader:W,TrailingActionHeader:V,Title:T,isAboveAsset:!1})}}),G?_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.g(G,null))):null,_.g(_.F,{cond:J,
then:function(){return C?_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.g(C,null)):null}}),L1||Fw?_.g(kCq,{footerClasses:_.qg((jf["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,jf["yt-spec-dialog-layout__dialog-layout-footer"]=!0,jf["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(D==null?void 0:D())===2},jf["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(D==null?void 0:D())===1},jf)),
PrimaryButton:L1,SecondaryButton:Fw}):null))},"Ij"),f6m=_.p(function(L){var Z=_.Ek(L,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),N=Z.contentAlignment,S=Z.LeadingActionHeader;L=Z.Title;var u=Z.TrailingActionHeader,T=Z.isAboveAsset,W=Z.enableLeadingActionHeader;Z={};return _.g("div",{class:_.qg((Z["yt-spec-dialog-layout__dialog-header-container"]=!0,Z["yt-spec-dialog-layout__dialog-header"]=!0,Z["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=T,Z["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(N==null?void 0:N())===1&&W()},Z))},_.g(_.F,{cond:function(){return W()},
then:function(){return S?_.g("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.g(S,null)):null}}),L?_.g("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.g(L,null)):null,u?_.g("div",null,_.g(u,null)):null)},"Jj"),kCq=_.p(function(L){var Z=L.footerClasses;
var N=L.PrimaryButton;L=L.SecondaryButton;return _.g("div",{class:Z},L?_.g(L,null):null,N?_.g(N,null):null)},"Kj");var wJq=_.p(function(L){var Z=L.data;return _.g("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.g("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.g(_.bj,{data:function(){return Z().avatar}},{avatarViewModel:_.JO})),_.g("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.g(_.qv,{text:function(){return Z().title}})),_.g(_.qv,{text:function(){return Z().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Lj");var UAm=_.p(function(L){return _.g("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.g(_.qv,{text:function(){return L.data().inviteMessage}})),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.g(_.qv,{text:function(){return L.data().attributedAccountSectionHeaderText}})),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.g(_.bj,{data:function(){return L.data().accountAvatar}},{avatarViewModel:_.JO}),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.g(_.qv,{text:function(){return L.data().accountName}}),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.g(_.qv,{text:function(){return L.data().handle}}))),_.g(_.bj,{data:function(){return L.data().trailingButton}},{buttonViewModel:_.$X})),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.g(_.qv,{text:function(){return L.data().termsOfService}})))},"Mj");var Ygs=_.p(function(L){var Z=L.data;return _.g("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.g("div",{class:"ytAccessConfirmationViewModelContent"},_.g(_.bj,{data:function(){var N;return(N=Z().avatar)!=null?N:Z().dualAvatar}},{dualAvatarViewModel:function(N){return _.g(_.A0s,{data:N.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(N){return _.g(_.CS,{data:N.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.g("h2",{class:"ytAccessConfirmationViewModelTitle"},_.g(_.qv,{text:function(){return Z().title}})),_.g(_.qv,{text:function(){return Z().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Nj");var eSs=_.p(function(L){var Z=L.data;var N=void 0;L=_.O(_.i4(function(){var G;return((G=_.n(Z().content,_.Eg))==null?void 0:G.defaultSelectedKey)||""}));
var S=L.next().value,u=L.next().value,T,W=function(){u("");var G;(G=N)!=null&&G.store.dispatch(_.XK({type:"RESET_COMMAND_MAP"}))};
_.m0(function(){N=new oym;window.addEventListener("yt-popup-closed",W)});
_.ph(function(){if(N&&T!==Z().formId&&(N.onInit(Z()),(T=Z().formId)&&S())){var G=N,D={key:S()};D.command&&G.store.dispatch(T1w(T,D.command))}},"c2n8Gf");
_.zs(function(){window.removeEventListener("yt-popup-closed",W)});
var V=function(G,D,l){D.key&&l&&D.key!==S()&&(u(D.key),N&&D.command&&N.store.dispatch(T1w(l,D.command)))},M=function(){if(_.n(Z().content,_.Eg))return!(S==null?0:S())};
return _.g("yt-dialog-view-model",{class:_.qg("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.g(yT5,{headerWiz:function(){return _.g("span",{skip:!0},_.g(_.bj,{data:function(){return Z().header}},{dialogHeaderViewModel:function(G){return _.g(cT5,{data:G.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!Z().header},
contentWiz:function(){return _.g("span",{skip:!0},_.g(_.bj,{data:function(){return Z().customContent?Z().customContent:Z().content}},{basicContentViewModel:_.Hps,
createPlaylistDialogFormViewModel:gyP,collaborativePlaylistInviteMessageViewModel:UAm,miniAppScoreChallengeViewModel:vyv,radioButtonGroupViewModel:function(G){var D=G.data;return _.g(_.MMy,{data:D,selectedKey:S,onSelected:V,groupName:function(){return D().formId}})},
selectionListItemFormViewModel:RSQ,upsellViewModel:function(G){return _.g(l6Q,{data:G.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:wJq,installmentAgreementsViewModel:M_v,accessConfirmationViewModel:Ygs,listViewModel:function(G){return _.g(_.GM0,{data:G.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:Kp0}))},
footerWiz:function(){return _.g("span",{skip:!0},_.g(_.bj,{data:function(){return Z().footer}},{panelFooterViewModel:function(G){return _.g(_.F1,{data:G.data,
disablePadding:!0,disablePrimaryButton:M})},
formPanelFooterViewModel:nyv,formFooterViewModel:function(G){return _.g(_.L3q,{data:G.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!Z().footer}}))},"Pj");
eSs.idomCompat=!0;_.CY(eSs,"yt-dialog-view-model",{props:{data:_.LK},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var I6w=_.p(function(L){var Z=L.data;var N=_.mBB(function(){return Z().rendererContext});
L={};return _.g("yt-panel-header-view-model",{class:_.qg("ytPanelHeaderViewModelHost",(L.ytPanelHeaderViewModelHostHideDivider=function(){return!!Z().shouldHideDivider},L.ytPanelHeaderViewModelHostCompact=function(){return!!Z().subtitle},L)),
"aria-label":function(){var S;return(S=N())==null?void 0:S.label}},_.g("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.g(_.F,{cond:function(){return Z().title},
then:function(S){return _.g("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.g(_.qv,{text:S,className:"ytPanelHeaderViewModelTitle"}))}}),_.g(_.F,{cond:function(){return Z().subtitle},
then:function(S){return _.g(_.qv,{text:S,className:"ytPanelHeaderViewModelSubtitle"})}})),_.g("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.g(_.bj,{data:function(){return Z().trailingButtons}},{buttonViewModel:function(S){return _.g(_.$X,{data:S.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Qj");
I6w.idomCompat=!0;var dAm=_.p(function(L){var Z=_.Z9(function(T){var W;if((W=L.skipContentClick)==null?0:W.call(L))return!1;L.onContentWrapperClick(T);return!0}),N,S,u;
return _.g("div",{class:_.qg("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return L.isAnimating()?"transform: translateY("+L.currentY()+"px);transition: 0.2s":""}},(N=L.header)==null?void 0:N.call(L),_.g("div",{id:L.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.u4({"max-height":(0,_.Wt)(L.maxHeightForContentWrapper)}),"on:scroll":nTv(L.onScroll),"on:touchmove":nTv(function(T){return void T.stopPropagation()})},_.g("div",{el:{onRender:L.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":Z},(S=L.body)==null?void 0:S.call(L))),(u=L.footer)==null?void 0:u.call(L))},"Rj");
dAm.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var a6v=_.p(function(L){var Z=_.jA(L.leadingLabel),N=_.jA(L.trailingLabel),S=_.jA(L.footerButtonType),u=function(){return Z()||N()||L.hasPrimaryButton()||L.hasSecondaryButton()},T={},W=_.qg("yt-spec-bottom-sheet-layout__primary-button",(T["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return S()===0&&L.hasPrimaryButton()},T["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return S()===1&&L.hasPrimaryButton()},T["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return S()===2&&L.hasPrimaryButton()},T["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return S()===3&&L.hasPrimaryButton()},T));
T={};var V=_.qg("yt-spec-bottom-sheet-layout__secondary-button",(T["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return S()===1&&L.hasSecondaryButton()},T["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return S()===2&&L.hasSecondaryButton()},T["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return S()===3&&L.hasPrimaryButton()},T));
return _.g(_.F,{cond:L.hasFooterOverride,then:function(){var M;return _.g(_.F7,null,(M=L.footerOverride)==null?void 0:M.call(L))},
else:function(){return _.g(_.F,{cond:u,then:function(){return _.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.g(_.F,{cond:function(){return Z()||N()},
then:function(){var M={};return _.g("div",{class:_.qg("yt-spec-bottom-sheet-layout__footer-label-wrapper",(M["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!L.hasPrimaryButton()},M))},_.g(_.F,{cond:Z,
then:function(){return _.g("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},Z)}}),_.g(_.F,{cond:N,
then:function(){return _.g("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},N)}}))}}),_.g(_.F,{cond:function(){return L.hasPrimaryButton()||L.hasSecondaryButton()},
then:function(){var M={};return _.g("div",{class:_.qg("yt-spec-bottom-sheet-layout__footer-button-wrapper",(M["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.HIM,M))},_.g(_.F,{cond:function(){return L.hasSecondaryButton()&&S()!==0},
then:function(){var G;return _.g("div",{class:V},(G=L.secondaryButton)==null?void 0:G.call(L))}}),_.g(_.F,{cond:L.hasPrimaryButton,
then:function(){var G;return _.g("div",{class:W},(G=L.primaryButton)==null?void 0:G.call(L))}}))}}))}})}})},"Sj");
a6v.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var hSP=_.p(function(L){var Z=_.jA(L.title),N=_.jA(L.subtitle);return _.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:L.headerId,"on:touchstart":_.Z9(function(S){var u;(u=L.touchstart)==null||u.call(L,S);return!1}),
"on:touchmove":_.Z9(function(S){var u;(u=L.touchmove)==null||u.call(L,S);return!1}),
"on:touchend":_.Z9(function(S){var u;(u=L.touchend)==null||u.call(L,S);return!1})},_.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.g(_.F,{cond:L.hasHeaderOverride,
then:function(){var S;return _.g(_.F7,null,(S=L.headerOverride)==null?void 0:S.call(L))},
else:function(){var S={};return _.g("div",{class:_.qg((S["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,S["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=Z,S))},_.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.g(_.F,{cond:Z,then:function(){return _.g(_.F7,null,_.g("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},Z),_.g(_.F,{cond:N,then:function(){return _.g("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
N)}}))}})),_.g(_.F,{cond:function(){return Z()&&L.hasActionHeader()},
then:function(){var u;return _.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(u=L.actionHeader)==null?void 0:u.call(L))}}))}}))},"Tj");
hSP.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.p(function(L){function Z(X){if(!h&&typeof MutationObserver!=="undefined"){var L1={childList:!0};"MutationObserver"in window&&(h=new MutationObserver(N.bind(void 0,X)),h.observe(X,L1))}}
function N(X){typeof h!=="undefined"&&(E["content-wrapper"]===void 0&&(E["content-wrapper"]=X.children[0].clientHeight),R(E["content-wrapper"]),v()>K()||U(v()))}
function S(){l(window.innerHeight);v()>K()||U(v());A.isFullScreen[0]()&&v()>K()?J().dispatch("Snap To Full Screen",{maxHeight:d()}):J().dispatch("Snap To Neutral Position",{maxHeight:K()})}
function u(X){document.body.style.overscrollBehavior="none";X.preventDefault();J().dispatch("Touch Start",{event:X})}
function T(X){X.preventDefault();J().dispatch("Touch Move",{event:X,contentScrollable:v()>K(),fullContentWrapperHeight:d(),contentWrapperHeight:K(),contentHeightMap:E,contentWrapperId:"content-wrapper",header:fiq(L),footer:fiq(L)})}
function W(){document.body.style.overscrollBehavior="";A.isFullScreen[0]()?A.currentY[0]()>=60?J().dispatch("Snap To Neutral Position",{maxHeight:K()}):J().dispatch("Snap To Full Screen",{maxHeight:d()}):A.currentY[0]()>=60?V():A.currentY[0]()<=-60&&v()>K()?J().dispatch("Snap To Full Screen",{maxHeight:d()}):J().dispatch("Snap To Neutral Position",{maxHeight:K()})}
function V(){J().dispatch("Close Sheet",{clientHeight:D(),maxHeight:0});setTimeout(function(){Ka5()},250)}
var M=_.O(_.nh(window.innerHeight,void 0,"Q6Nekc")),G=M.next().value;M=M.next().value;var D=G,l=M;M=_.O(_.nh(0,void 0,"vjnlmb"));G=M.next().value;M=M.next().value;var v=G,R=M;M=_.O(_.i4(function(){var X=fiq(L);return.6*D()-oTs(X)-RH0(X)}));
G=M.next().value;M=M.next().value;var K=G,U=M,d=function(){var X=fiq(L);return D()-oTs(X)-RH0(X)-24-24},h=null,E={},A={initialY:_.nh(0,void 0,"B0aY2c"),
currentY:_.nh(0,void 0,"nLPMcf"),isAnimating:_.nh(!1,void 0,"lXnnZ"),isFullScreen:_.nh(!1,void 0,"rZZoFe"),maxHeightForContentWrapper:_.i4(K)},J=function(){var X=null;return function(){if(!X){var L1={initialY:A.initialY[0](),currentY:A.currentY[0](),isAnimating:A.isAnimating[0](),isFullScreen:A.isFullScreen[0](),maxHeightForContentWrapper:A.maxHeightForContentWrapper[0]()};X=c5w(L1)}return X}}();
_.m0(function(){window.addEventListener("resize",S);J().subscribe(function(X){A.initialY[1](X.initialY);A.currentY[1](X.currentY);A.isAnimating[1](X.isAnimating);A.isFullScreen[1](X.isFullScreen);A.maxHeightForContentWrapper[1](X.maxHeightForContentWrapper)})});
_.zs(function(){window.removeEventListener("resize",S);h&&(h.disconnect(),h=null)});
var C=_.qg({"bottom-sheet-content-without-icon":function(){var X;return!((X=L.shouldShowIcons)==null?0:X.call(L))}});
return _.g("bottom-sheet-layout",null,_.g(dAm,{contentWrapperId:"content-wrapper",isAnimating:function(){return A.isAnimating[0]()},
currentY:function(){return A.currentY[0]()},
maxHeightForContentWrapper:function(){return A.maxHeightForContentWrapper[0]()},
shouldShowIcons:L.shouldShowIcons,skipContentClick:L.skipContentClick,onScroll:function(){var X=document.getElementById("header-wrapper"),L1=document.getElementById("content-wrapper");if(X&&L1){var Fw={};Fw=(Fw["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Fw["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Fw);X.className=L1.scrollTop>1?_.D7(Fw):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:Ka5,contentWrapperEl:function(X){Z(X);requestAnimationFrame(function(){N(X)})},
header:function(){return _.g(hSP,{touchstart:u,touchmove:T,touchend:W,title:L.headerTitle,subtitle:L.headerSubtitle,headerId:"header-wrapper",headerOverride:L.headerFn,hasHeaderOverride:L.hasHeaderFn,actionHeader:L.headerActionHeader,hasActionHeader:L.hasHeaderActionHeader})},
footer:function(){return _.g(a6v,{footerButtonType:L.footerButtonType,leadingLabel:L.footerLeadingLabel,trailingLabel:L.footerTrailingLabel,primaryButton:L.footerPrimaryButton,hasPrimaryButton:L.hasFooterPrimaryButton,secondaryButton:L.footerSecondaryButton,hasSecondaryButton:L.hasFooterSecondaryButton,footerOverride:L.footerFn,hasFooterOverride:L.hasFooterFn})},
body:function(){return _.g(_.F,{cond:L.hasContentFn,then:function(){var X;return _.g("div",{class:C},(X=L.contentFn)==null?void 0:X.call(L))}})}}))},"Uj").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var sRY=_.p(function(L){var Z=_.GR().resolve(_.Po);return _.g("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.Z9(function(){return void Z.closeSheet()})},_.g(_.F,{cond:function(){return!!L.header},
then:function(){return _.g("div",{class:"ytContextualSheetLayoutHeaderContainer"},L.header())}}),_.g(_.F,{cond:function(){return!!L.content},
then:function(){return _.g("div",{class:"ytContextualSheetLayoutContentContainer"},L.content())}}),_.g(_.F,{cond:function(){return!!L.footer},
then:function(){return _.g("div",{class:"ytContextualSheetLayoutFooterContainer"},L.footer())}}))},"Vj");
sRY.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var jRw=_.p(function(L){L=L.data;var Z=_.t2("yt-sheet-view-model",function(S){if(_.c("web_focus_first_element_sheet")||!_.c("sheet_focus_first_killswitch"))return S.addEventListener("focus",function(){cJw(S)}),function(){S.removeEventListener("focus",function(){cJw(S)})}}),N={};
return _.g("yt-sheet-view-model",{"on:mousedown":_.Z9(function(S){_.c("sheet_focus_first_killswitch")||S.currentTarget!==S.target&&S.preventDefault()}),
"on:focus":_.Z9(function(){_.c("sheet_focus_first_killswitch")||cJw(Z.value)}),
class:_.qg("ytSheetViewModelHost",(N.ytSheetViewModelContextual=!0,N.ytSheetViewModelDisableBackdropFilter=_.c("web_disable_backdrop_filter"),N)),el:Z,tabindex:-1},_.g(_.F,{cond:L,then:function(S){return _.g(sRY,{header:function(){return _.g(_.bj,{data:function(){return S().header}},{panelHeaderViewModel:I6w})},
content:function(){return _.g(_.bj,{data:function(){return S().content}},{listViewModel:function(u){return _.g(_.GM0,{data:u.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:l6Q,miniAppScoreChallengeViewModel:vyv})},
footer:function(){return _.g(_.bj,{data:function(){return S().footer}},{panelFooterViewModel:_.F1})}})}}))},"Wj");
jRw.idomCompat=!0;_.CY(jRw,"yt-sheet-view-model",{props:{data:_.LK}});var P1q=_.p(function(L){var Z=function(){var N;return(N=L.data().enableDebuggingFeatures)!=null?N:!1};
return _.g("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.g(_.ju,{each:function(){var N;return(N=L.data().stickers)!=null?N:[]}},function(N){return _.g(Ey5,{data:function(){return N},
debugMode:Z})}))},"Xj"),Ey5=_.p(function(L){var Z=_.Ek(L,{debugMode:!1}).debugMode,N=_.jA(function(){var M;
return(M=L.data().region)==null?void 0:M.w},0),S=_.jA(function(){var M;
return(M=L.data().region)==null?void 0:M.h},0),u=_.jA(function(){var M;
return(M=L.data().region)==null?void 0:M.x},0),T=_.jA(function(){var M;
return(M=L.data().region)==null?void 0:M.y},0),W=_.Z9(function(){var M=L.data().onTap;
M&&_.w$(M)}),V={};
return _.g("div",{class:_.qg("ytStoriesStickerLayerViewModelSticker",(V.ytStoriesStickerLayerViewModelDebugMode=Z,V)),style:_.u4({width:function(){return 100*N()+"%"},
height:function(){return 100*S()+"%"},
left:function(){return 100*u()+"%"},
top:function(){return 100*T()+"%"},
"flex-direction":function(){return k5w(L.data().flexDirection)},
"justify-content":function(){return y58(L.data().justifyContent)},
"align-items":function(){return wak(L.data().alignItems)}}),
"on:click":W},_.g(_.bj,{data:function(){return L.data().button||L.data().toggleButton}},{buttonViewModel:function(M){return _.g(_.$X,{data:M.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(M){return _.g(_.sj,{data:M.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Yj");var zS5=_.p(function(L){var Z=function(){return L.data()},N={},S=_.O(_.nh(!1,void 0,"Adcqrf")),u=S.next().value,T=S.next().value,W=_.jA(function(){return Z().backgroundColor},0);
S=_.jA(function(){return Z().actionButtons},[]);
var V=_.jA(function(){return Z().stickerLayer},{}),M=function(){var D,l;
return{animationRef:N,animationConfig:{autoplay:!1,loop:!1,path:(l=(D=Z().foregroundAnimation)==null?void 0:D.url)!=null?l:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){T(!0)},
complete:function(){L.navigateToNextItemOnLottieComplete()}}}},G=function(){var D,l,v,R,K,U,d,h;
return{animationConfig:{autoplay:(U=(D=Z().backgroundAnimation)==null?void 0:(l=D.settings)==null?void 0:l.autoplay)!=null?U:!1,loop:(d=(v=Z().backgroundAnimation)==null?void 0:(R=v.settings)==null?void 0:R.loop)!=null?d:!1,path:(h=(K=Z().backgroundAnimation)==null?void 0:K.url)!=null?h:"",name:"stories_item_background_animation"}}};
_.ph(function(){if(L.isVisible()&&u()){var D;(D=N.lottieEl)==null||D.play();L.animationRef()&&(L.animationRef().lottieEl=N.lottieEl)}else{var l;(l=N.lottieEl)==null||l.stop()}},"yCE6kf");
return _.g("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.u4({"background-color":function(){return _.Rs(W())+";"}})},_.g("div",{class:"ytStoriesItemViewModelAssetContent"},_.g(_.F,{cond:function(){return!!Z().backgroundAnimation},
then:function(){return _.g(_.KK,{data:G,animationName:function(){return G().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.g(_.F,{cond:function(){return!!Z().backgroundImage},
then:function(){return _.g(_.ji,{data:function(){return Z().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.g(_.F,{cond:function(){return!!Z().foregroundAnimation},
then:function(){return _.g(_.KK,{data:M,animationName:function(){return M().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.g(_.F,{cond:function(){return!!Z().foregroundImage},
then:function(){return _.g(_.ji,{data:function(){return Z().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.g("div",{class:"ytStoriesItemViewModelTopShadow"}),_.g(_.bj,{data:function(){return V()}},{storiesStickerLayerViewModel:P1q})),_.g("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.u4({"background-color":function(){return _.Rs(W())}})},_.g("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.g(_.ju,{each:S},function(D){return _.g(pJg,{data:function(){return D},
pauseAutoNavigation:L.pauseAutoNavigation})}))))},"$j"),mAk={style:"overlay",
type:"outline"},pJg=_.p(function(L){var Z={};return _.g("div",{class:_.qg("ytStoriesItemViewModelActionButton",(Z.ytStoriesItemViewModelStretchedActionButton=function(){return L.data().size==="STORIES_BUTTON_SIZE_STRETCH"},Z)),
"on:click":_.Z9(L.pauseAutoNavigation)},_.g(_.bj,{data:function(){return L.data().button}},{buttonViewModel:function(N){return _.g(_.$X,{data:N.data,
buttonOverrides:mAk})}}))},"ak");var JTq={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.CY(_.p(function(L){var Z=function(){var lH;return(lH=L.data().startIndex)!=null?lH:0},N=_.O(_.i4(Z)),S=N.next().value,u=N.next().value;
N=_.O(_.nh(!1,void 0,"hu8VSd"));var T=N.next().value,W=N.next().value,V=function(){var lH;return(lH=L.data().storyItems)!=null?lH:[]},M={},G=_.t2("yt-stories-viewer-view-model"),D=function(){return L.data().dismissButton},l=function(){var lH;
return _.KY((lH=_.n(D(),_.NU))==null?void 0:lH.onTap)},v=_.t2("div"),R,K,U=!1,d=function(){var lH;
(lH=R)==null||lH.cancel();R=h(S()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});R.onfinish=function(){var RF=_.n(V()[S()],m1Y),jf,f1;RF!=null&&RF.foregroundAnimation&&((RF==null?0:(jf=RF.foregroundAnimation)==null?0:jf.url)||(RF==null?0:(f1=RF.foregroundAnimation)==null?0:f1.payload))||(S()!==V().length-1?(u(S()+1),d()):l()&&_.fY(l()))}},h=function(lH){return v.value.children[lH].children[0]},E=function(){for(var lH=0;lH<S();lH++)h(lH).style.transform=
"scaleX(1)"},A=function(){U||(T()?W(!1):(S()===V().length-1&&l()&&_.fY(l()),h(S()).style.transform="scaleX(1)",S()!==V().length-1&&(u(S()+1),d())))},J=function(){U||(T()?W(!1):(h(S()).style.transform="scaleX(0)",S()!==0&&u(S()-1),d()))},C=function(){W(!0)},X=function(){h(S()).style.transform="scaleX(1)";
S()!==V().length-1?(u(S()+1),d()):l()&&_.fY(l())};
N=function(){U=!1;K=setTimeout(function(){W(!0);U=!0},300)};
var L1=function(){clearTimeout(K);U&&T()&&W(!1)};
_.ph(function(){if(T()){var lH;(lH=R)==null||lH.pause();var RF;(RF=M.lottieEl)==null||RF.pause()}else{var jf;(jf=R)==null||jf.play();var f1;(f1=M.lottieEl)==null||f1.play()}},"iO2i3d");
_.ph(function(){E();S()===Z()&&d()},"lE01H");
var Fw=function(lH){lH.key==="ArrowLeft"?J():lH.key==="ArrowRight"&&A()},GB=function(lH){if(lH.target===G.value){(lH=l())&&_.fY(lH);
clearTimeout(K);var RF;(RF=R)==null||RF.cancel();window.removeEventListener("keydown",Fw);window.removeEventListener("yt-popup-closed",GB)}},Yt=function(lH){lH.target===G.value&&(window.addEventListener("keydown",Fw),window.addEventListener("yt-popup-closed",GB))};
_.m0(function(){E();d();window.addEventListener("yt-popup-opened",Yt)});
return _.g("yt-stories-viewer-view-model",{el:G,class:_.qg("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.g("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.g("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.Z9(J),"on:mousedown":_.Z9(N),"on:mouseup":_.Z9(L1),"on:mouseleave":_.Z9(L1)}),_.g("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.Z9(A),"on:mousedown":_.Z9(N),"on:mouseup":_.Z9(L1),"on:mouseleave":_.Z9(L1)})),
_.g("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.g(_.bj,{data:V},{storiesItemViewModel:function(lH,RF){var jf=lH.data;return _.g(_.F,{cond:function(){return Math.abs(RF()-S())<=1},
then:function(){var f1={};return _.g("div",{class:_.qg("ytStoriesViewerViewModelStoryItem",(f1.ytStoriesViewerViewModelActiveStoryItem=function(){return RF()===S()},f1))},_.g(zS5,{data:jf,
pauseAutoNavigation:C,navigateToNextItemOnLottieComplete:X,isVisible:function(){return RF()===S()},
animationRef:M}))}})}})),_.g("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:v},_.g(_.ju,{each:V},function(){return _.g("div",{class:"ytStoriesViewerViewModelProgressBar"},_.g("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.g("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.g(_.ji,{data:JTq,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.g("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.g(_.bj,{data:D},{buttonViewModel:_.$X}))))},"dk"),"yt-stories-viewer-view-model",{props:{data:_.LK}});_.CY(_.p(function(L){var Z=L.data;var N=_.t2("yt-gen-ai-feedback-form-view-model"),S=[];return _.g("yt-gen-ai-feedback-form-view-model",{el:N,class:"ytGenAiFeedbackFormViewModelHost"},_.g(_.qv,{text:function(){return Z().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.g("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.g(_.bj,{data:function(){return Z().feedbackChips}},{toggleButtonViewModel:function(u){var T=u.data;
return _.g(_.sj,{data:T,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(W){var V=T();V=_.n(V,_.iD);V=_.n(V==null?void 0:V.defaultButtonViewModel,_.NU).trackingParams;W?S.push(V):(W=S.indexOf(V),W>-1&&S.splice(W,1))}})}})),_.g(_.qv,{text:function(){return Z().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.g("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.g(_.bj,{data:function(){return Z().submitButton}},{buttonViewModel:function(u){return _.g(_.$X,{data:u.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){UQc(N.value,S,Z().uniqueId)}})}}),_.g(_.bj,{data:function(){return Z().moreFeedbackButton}},{buttonViewModel:function(u){return _.g(_.$X,{data:u.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ek"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.LK},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var jL=function(){return _.e.apply(this,arguments)||this};
_.f(jL,_.e);jL.prototype.created=function(){Ocg(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(Qaq);var L=_.GR().resolve(_.tUm);L&&(L.container=this.ytPopupContainerBehavior);if(L=_.GR().resolve(_.Po))L.container=this.ytPopupContainerBehavior;if(L=_.GR().resolve(_.pb)){var Z=this.ytPopupContainerBehavior;L.containerWasInjected?_.Q7(Error("qj")):L.container=Z}};
jL.prototype.ensurePopupBelowPlayer=function(L,Z){var N=_.GR().resolve(_.gv(_.mR));if(!N||!N.isOnWatch()||!_.CV())return!1;N=N.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.tz().height>N+this.getPopupHeight(L,Z)?(L.style.top="auto",L.style.bottom="0px"):(L.style.top=N+"px",L.style.bottom="auto");return!0};
jL.prototype.getPopupHeight=function(L,Z){Z&&(L.cachedPopupHeight=0);if(!L.cachedPopupHeight){Z=0;var N=L.clientHeight,S=window.getComputedStyle(L);Z+=parseInt(S.marginTop,10);Z+=parseInt(S.marginBottom,10);L.cachedPopupHeight=N+Z}return L.cachedPopupHeight};
jL.prototype.getElement=function(L){return document.createElement(L)};
_.r([_.y(wIP.YtPopupContainerBehavior),_.Q("design:type",Object)],jL.prototype,"ytPopupContainerBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],jL.prototype,"ytComponentBehavior",void 0);_.r([_.P({disableElementRegistration:!0,is:"ytd-popup-container"})],jL);
_.m(jL,"ytd-popup-container",function(){if(vIg!==void 0)return vIg;var L=document.createElement("template");_.k(L,"\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");L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);return vIg=L},{mode:1});var C1w;var rTs={};rTs.YtLogYpcFlowCommandsBehavior=[_.nK.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(L){_.n(L,tq8)&&(L=_.n(L,tq8))&&(L.serializedTransactionFlowLoggingParams?_.Rcx(L.serializedTransactionFlowLoggingParams):L.serializedYpcCancelFlowLoggingParams?(L=L.serializedYpcCancelFlowLoggingParams)&&_.Fe("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",L):L.serializedYpcResumeFlowLoggingParams?(L=L.serializedYpcResumeFlowLoggingParams)&&_.Fe("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",L):L.serializedYpcPauseFlowLoggingParams?(L=L.serializedYpcPauseFlowLoggingParams)&&
_.Fe("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",L):L.serializedYpcRefundFlowLoggingParams?(L=L.serializedYpcRefundFlowLoggingParams)&&qRy("YPC_EVENT_TYPE_START",L):L.serializedYpcDeactivateFlowLoggingParams?(L=L.serializedYpcDeactivateFlowLoggingParams)&&_.Fe("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",L):L.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(L=L.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Fe("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",L))},
handleLogYpcFlowDismiss_:function(L){_.n(L,Taq)&&(L=_.n(L,Taq),L.serializedTransactionFlowLoggingParams?_.ck_(L.serializedTransactionFlowLoggingParams):L.serializedYpcCancelFlowLoggingParams?(L=L.serializedYpcCancelFlowLoggingParams)&&_.Fe("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",L):L.serializedYpcResumeFlowLoggingParams?(L=L.serializedYpcResumeFlowLoggingParams)&&_.Fe("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",L):L.serializedYpcPauseFlowLoggingParams?(L=
L.serializedYpcPauseFlowLoggingParams)&&_.Fe("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",L):L.serializedYpcRefundFlowLoggingParams&&(L=L.serializedYpcRefundFlowLoggingParams)&&qRy("YPC_EVENT_TYPE_CANCEL",L))}}];var QRv={};QRv.YtCancelRecurrenceBehavior=[_.rH.YtComponentBehavior,_.rMN,{attached:function(){var L=this;ClP(this,function(Z,N){return L.ypcCancelRecurrenceHandler(Z,N)})},
ypcCancelRecurrenceHandler:function(L,Z){var N=this;if(!Z||!Z.ypcCancelRecurrenceEndpoint)return!1;if(!Z.ypcCancelRecurrenceEndpoint.params)return _.H8(Error("Rl")),!0;_.y6(this.hostElement);var S=_.IV.instance,u=_.GR().resolve(_.gv(_.VJ));S&&_.d9(S,Z)?_.aV(S,Z).then(function(T){N.ypcCancelRecurrenceSuccess_(L,Z,{data:T})},function(T){N.ypcCancelRecurrenceFailure_(L,Z,T)}).thenCatch(function(){_.H8(Error("Sl"))}):u?u.requestDataForServiceEndpoint(Z).then(function(T){N.ypcCancelRecurrenceSuccess_(L,
Z,T)},function(T){N.ypcCancelRecurrenceFailure_(L,Z,T)}).thenCatch(function(){_.H8(Error("Sl"))}):_.H8(Error("Tl"));
return!0},
ypcCancelRecurrenceSuccess_:function(L,Z,N){_.w3(this.hostElement);N.data||(N={data:N});N.data&&N.data.actions&&_.B2(this.hostElement,N.data.actions,this.hostElement);N.data.messageRenderer?ZV0(Z.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(Z=Z.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Fe("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",Z);_.QT(L,"yt-service-request-completed",N)},
ypcCancelRecurrenceFailure_:function(L,Z,N){_.w3(this.hostElement);ZV0(Z.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.QT(L,"yt-service-request-error",{error:N,params:[L,Z]})}}];var XJ0=function(L,Z){_.NL.call(this,Z)};
_.f(XJ0,lQm);var ATw={};ATw.YtCompleteTransactionBehavior=[_.rH.YtComponentBehavior,_.rMN,{attached:function(){var L=this;ClP(this,function(Z,N){return L.ypcCompleteTransactionHandler(Z,N)})},
completeTransaction:function(L,Z){var N=this;Z={payments_payload:window.btoa(Z.integratorData),buybucket_params:L.data.buybucketParams,offer_params:L.data.offerParams};var S=_.GR().resolve(_.VJ),u=L.data.completeTransactionEndpoint,T=this.get("ypcCompleteTransactionEndpoint.actions",u);T&&_.B2(this.hostElement,T,this.hostElement);return(T=_.IV.instance)&&_.d9(T,u)?_.aV(T,u,Z).then(function(W){return!W||(W==null?0:W.error)?(W=N.get("data.serializedTransactionFlowLoggingParams",L),_.$N(new to("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
W))):{data:W}}).then(function(W){return N.handleCompleteTransactionSuccess_(W,L)},function(){return N.handleCompleteTransactionFailure_(L)}):S.requestDataForServiceEndpoint(u,Z).then(function(W){return N.handleCompleteTransactionSuccess_(W,L)},function(){return N.handleCompleteTransactionFailure_(L)})},
handleCompleteTransactionSuccess_:function(L,Z){L.data||(L={data:L});if(L.data.messageRenderer)return _.$N(new XJ0(L.data.messageRenderer));if(L.data.trackingParams){var N=_.RH(),S=_.oH();N&&S&&_.ez(N,S,_.Mg(L.data.trackingParams))}Z=this.get("data.serializedTransactionFlowLoggingParams",Z);LR5(Z);return _.xP(L)},
handleCompleteTransactionFailure_:function(L){L=this.get("data.serializedTransactionFlowLoggingParams",L);_.as("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",L);return _.$N(new to("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",L))},
ypcCompleteTransactionHandler:function(L,Z){var N=this;if(!Z.ypcCompleteTransactionEndpoint)return!1;if(!Z.ypcCompleteTransactionEndpoint.transactionParams)return _.H8(Error("Ul")),!0;Z.ypcCompleteTransactionEndpoint&&Z.ypcCompleteTransactionEndpoint.gtmData&&_.au(Z.ypcCompleteTransactionEndpoint.gtmData);var S=_.GR().resolve(_.gv(_.VJ));if(S){_.y6(this.hostElement);var u=_.IV.instance;u&&_.d9(u,Z)?_.aV(u,Z).then(function(T){return!T||(T==null?0:T.error)?(T=N.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
Z),_.$N(new to("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",T))):{data:T}}).then(function(T){_.QT(L,"yt-service-request-completed");
N.ypcCompleteTransactionSuccess_(Z,T)},function(){return N.ypcCompleteTransactionFailure_(Z)}):S.requestDataForServiceEndpoint(Z).then(function(T){_.QT(L,"yt-service-request-completed");
N.ypcCompleteTransactionSuccess_(Z,T)},function(){return N.ypcCompleteTransactionFailure_(Z)})}return!0},
ypcCompleteTransactionSuccess_:function(L,Z){_.w3(this.hostElement);Z.data||(Z={data:Z});_.XJ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);Z.data.messageRenderer||Z.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(L):(_.au('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",L));Z.data.actions&&(L=Rxs(Z.data.actions),Z=c9v(Z.data.actions),L.length&&_.H2(this.hostElement,
L),Z.length&&_.B2(this.hostElement,Z,this.hostElement))},
ypcCompleteTransactionFailure_:function(L){_.w3(this.hostElement);_.XJ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",L,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(L,Z,N){if(Z=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",Z))Z={serializedTransactionFlowLoggingParams:Z},N&&(Z.errorType=N),_.mS(L,Z),_.JV()}}];var HRy={};HRy.YtEndpointHandlerWithYpcBehavior=[_.rMN,_.nK.YtActionHandlerBehavior,[{openWalletDialog:function(L,Z,N,S,u,T,W){var V=this,M=_.hS();Z=Z.replace(/-/g,"+").replace(/_/g,"/");var G=_.tq().get("hl");_.sDx(_.pm(_.hz),Z,M.resolve,u,function(D){T&&T();M.reject(D)},G,function(D){return V.onServerBackendAnalyticEvent_(L,N,D)},this.onDialogClose_.bind(this),S,W);
return M.promise},
openFixFlowDialog:function(L,Z,N,S){L=L.replace(/-/g,"+").replace(/_/g,"/");_.pm(_.hz).openFixFlowDialog(L,Z,N,S)},
onDialogClose_:function(){_.XJ(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(L,Z,N){_.QT(L,"yt-commerce-action-init-done");Z&&_.H2(this.hostElement,[Z,{backend_analytics:N}])}}],
_.vS.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(L,Z){L=this.get("data.nativeFlowEndpoint",Z);Z=this.get("data.fallbackEndpoint",Z);L?_.H2(this.hostElement,[L]):Z&&_.QT(this.hostElement,"yt-navigate",{endpoint:Z})}}],
QRv.YtCancelRecurrenceBehavior,ATw.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 L=this;ClP(this,function(Z,N,S){return L.handleYPCEndpoint(Z,N,S)});
this.ypcRegisterActionMapJobId_=_.sI(_.ro,function(){L.registerActionMap(L.buyFlowActionMap_)})},
detached:function(){var L=this;_.ro.cancelJob(this.ypcRegisterActionMapJobId_);_.sI(_.ro,function(){L.unregisterActionMap(L.buyFlowActionMap_)})},
handleYPCEndpoint:function(L,Z,N){var S=Z.ypcGetCartEndpoint;if(S){_.oq("commerce_transaction");var u=S.gtmId;u&&_.dH(u);(S=S.gtmData)&&_.au(S)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",Z)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(L,Z),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",Z)!=null?(this.handleYPCFixInstrumentEndpoint_(L,Z),!0):Z.ypcPauseSubscriptionCommand?(ETs(this.hostElement,L,Z,N),
!0):Z.ypcResumeSubscriptionCommand?(zH0(this.hostElement,L,Z),!0):Z.getPaymentInstrumentsParamsCommand?(hHk(this.hostElement,L,Z),!0):Z.ypcHandleTransactionEndpoint?(dQw(this.hostElement,L,Z,N),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(L,Z){var N=this;_.Rq("ttcr",void 0,"commerce_transaction");Z=Z.ypcGetCartEndpoint;var S=Z.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,u=S.encryptedPurchaseParams,T=S.serializedTransactionFlowLoggingParams,W=S.serializedPaymentsClientParams,V=this.createGetCartResponseFromParams_(S,Z.offerParams,T);this.changeButtonState(L,!0);_.wg(this.openWalletDialog(L,u,S.ypcLogWalletAnalyticDataEndpoint,T,function(){N.changeButtonState(L,!1)},function(){N.changeButtonState(L,
!1)},W).then(function(M){return N.handleBuyFlowCompleteCallback_(L,V,M)},function(){return N.handleOnLoadError(V)}).then(function(M){return void N.handlePostPurchaseSuccess_(L,V,M)},function(M){return void N.handlePostPurchaseError_(M)}),function(){N.changeButtonState(L,!1);
L instanceof Element&&_.QT(L,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(L,Z,N){var S=L.completeTransactionEndpoint,u=L.handleTransactionEndpoint;Z={data:{offerParams:window.btoa(Z),serializedTransactionFlowLoggingParams:N}};u?Z.data.handleTransactionEndpoint=u:Z.data.completeTransactionEndpoint=S;L.onCartDismissCommand&&(Z.data.onCartDismissCommand=L.onCartDismissCommand);return Z},
onGetCartServiceRequestCompleted_:function(L,Z){var N=this,S=L.target;if(Z&&Z.data&&Z.data.messageRenderer)_.w3(this.hostElement),this.handleMessageRenderer_(Z.data.messageRenderer),this.changeButtonState(S,!1);else{var u=this.get("data.encryptedPurchaseParams",Z),T=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",Z),W=this.get("data.ypcLogWalletAnalyticDataEndpoint",Z),V=this.get("data.serializedPaymentsClientParams",Z),M=this.getLoggingParams_(Z);if(M||u||T)L.stopPropagation(),_.Rq("ttcr",
void 0,"commerce_transaction"),u||_.w3(this.hostElement),this.changeButtonState(S,!1),T?_.XJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.X7("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:T}}},this]):u&&(this.changeButtonState(S,!0),L=null,L=this.openWalletDialog(S,u,W,M,function(){_.w3(N.hostElement);N.changeButtonState(S,!1)},function(){_.w3(N.hostElement);
N.changeButtonState(S,!1)},V),_.wg(L.then(function(G){return N.handleBuyFlowCompleteCallback_(S,Z,G)},function(){return N.handleOnLoadError(Z)}).then(function(G){return N.handlePostPurchaseSuccess_(S,Z,G)},function(G){return N.handlePostPurchaseError_(G)}),function(){N.changeButtonState(S,!1);
_.QT(S,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(L,Z){Z&&Z.endpoint&&Z.endpoint.ypcGetCartEndpoint&&!Z.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",Z.endpoint.ypcGetCartEndpoint)&&_.B2(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",Z.endpoint.ypcGetCartEndpoint)],L.target),_.y6(this.hostElement),this.changeButtonState(L.target,!0))},
onServiceRequestError_:function(L,Z){if(Z&&Z.params&&Z.params.length){Z=_.O(Z.params);for(var N=Z.next();!N.done;N=Z.next())if((N=N.value)&&N.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",N.ypcGetCartEndpoint)&&_.B2(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",N.ypcGetCartEndpoint)],L.target);_.w3(this.hostElement);this.changeButtonState(L.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(L,Z,N){var S=N.integratorData;return S==null||S===""||N.error!=null?(S=this.getLoggingParams_(Z),String(N.error)==="-1"?(Z.data.onCartDismissCommand&&_.B2(this.hostElement,[Z.data.onCartDismissCommand],L),_.$N(new to("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",S,!0))):_.$N(new to("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",S))):Z.data.handleTransactionEndpoint?aiv(this.hostElement,Z.data.handleTransactionEndpoint,{payments_payload:S,funds_guarantee_callback_client_data:N.integratorClientCallbackData}):
this.completeTransaction(Z,N)},
handlePostPurchaseSuccess_:function(L,Z,N){Z=N.data;var S=!1,u,T;if(Z&&((u=Z.command)==null?0:(T=u.commandExecutorCommand)==null?0:T.commands)){var W,V;u=(W=Z.command)==null?void 0:(V=W.commandExecutorCommand)==null?void 0:V.commands;for(W=0;W<u.length;W++)if(_.n(u[W],_.Xph)){S=!0;break}}S||(Z&&Z.gtmDatas&&Z.gtmDatas.length?_.au(Z.gtmDatas[0]):_.au('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));N.data&&N.data.actions&&(Z=Rxs(N.data.actions),N=c9v(N.data.actions),Z.length&&
_.H2(this.hostElement,Z),N.length&&_.B2(this.hostElement,N,L))},
handlePostPurchaseError_:function(L){L&&L.payload&&L.payload.isUserDismiss||_.CA(Error("Wl"))},
handleOnLoadError:function(L){L=this.getLoggingParams_(L);return _.$N(new to("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",L))},
getLoggingParams_:function(L){return this.get("data.serializedTransactionFlowLoggingParams",L)},
handleMessageRenderer_:function(L){var Z=_.Cn(L,"renderer"),N=_.X7("openPopupConfig");Z==="confirmDialogRenderer"&&N&&_.XJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:N.popupTypeMap[Z],popup:L}},this])},
handleYPCFixInstrumentEndpoint_:function(L,Z){var N=this,S=Z.ypcFixInstrumentEndpoint;Z=S.encryptedFixInstrumentParameters;this.logFixFopEvent_(S,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(L,!0);this.openFixFlowDialog(Z,function(u,T){N.onFixFlowCompleteCallback_(S,u,T)},function(){return N.changeButtonState(L,!1)},function(){N.changeButtonState(L,!1);
N.logFixFopEvent_(S,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(L,Z,N){var S=_.LZ("payments.business.integration.scenario.FixInstrument");if(Z==S.IntegratorCallbackType.ON_COMPLETE){Z="FIX_FOP_EVENT_TYPE_CANCEL";var u=null;N.error!=null?N.error!=S.OnCompleteCallbackError.USER_CANCELLED&&(_.B2(this.hostElement,[L.errorAction],this.hostElement),Z="FIX_FOP_EVENT_TYPE_FAILURE",u="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.B2(this.hostElement,[L.successAction],this.hostElement),Z="FIX_FOP_EVENT_TYPE_SUCCESS");_.B2(this.hostElement,[L.onFinishAction],
this.hostElement);this.logFixFopEvent_(L,Z,u)}},
logFixFopEvent_:function(L,Z,N){(L=L.serializedFixFopLoggingParams)?(Z={eventType:Z,serializedFixFopLoggingParams:L},N!=null&&(Z.errorType=N),_.mS("fixFopFlow",Z),_.JV()):_.CA(Error("Xl"))},
changeButtonState:function(L,Z){_.c("enable_ypc_spinners")&&L&&(L.is==="yt-button-renderer"||L.is==="ytd-button-renderer")&&(L.disabled=Z)}}];var B_Q=function(L){this.JSC$32672_clientRoot=L;this.feedbackCollectorActionMap={"yt-help-dialog-requested":J5g,"yt-feedback-dialog-requested":mQk,"yt-signal-action-help":Cyw,"yt-signal-action-send-feedback":r5q,"yt-send-feedback-action":Xak,"yt-user-feedback-endpoint":A5q};_.ie(_.SS.getInstance(),this.feedbackCollectorActionMap,this.JSC$32672_clientRoot)},xA0;var qgv=function(L){this.JSC$32677_clientRoot=L;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":H5q.bind(null,this.JSC$32677_clientRoot),"yt-signal-action-delete-all-downloads":xQv,"yt-signal-action-delete-download":qWY,"yt-signal-action-delete-playlist-download":Z7Y,"yt-signal-action-install-pwa":tsv,"yt-signal-action-refresh-downloads":uis,"yt-offline-video-endpoint":WQP,"yt-offline-playlist-endpoint":b7c,"yt-update-local-app-setting-command":gpv,"yt-offline-orchestration-action-command":FQg,
"yt-signal-action-undo-delete-download":Syy,"yt-local-watch-history-command":lIg};_.ie(_.SS.getInstance(),this.downloadManagerActionMap,this.JSC$32677_clientRoot);_.Ye.instance=new _.Ye},LeY;var Ed=function(){var L=_.e.apply(this,arguments)||this;L.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_"};L.remoteApi_=null;return L};
_.f(Ed,_.e);_.t=Ed.prototype;
_.t.ready=function(){_.c("polymer_enable_mdx")&&(LXy({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.c("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.c("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.c("enable_cast_short_lived_lounge_token")}),_.vK("yt-remote-connection-change",this.handleConnectionChange_,this),_.vK("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=OMs())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.t.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.t.handleConnectionChange_=function(L){(this.mdxConnected=L)?(L=Sc8(),!L&&pt5()&&zUm()&&(L={key:"cast-selector-receiver",name:zUm()}),L=L.name):L=null;this.receiverName=L;_.W4(this.remoteApi_);(this.remoteApi_=OMs())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.t.handleReceiverAvailabilityChange_=function(){var L=Ncv();pt5()&&_.G7("yt-remote-cast-available")&&L.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=L.length>0};
_.t.handleRemoteQueueChange_=function(){var L=this.currentVideoId_,Z=this.currentListId_,N=p_(this.remoteApi_);this.currentVideoId_=N.videoId;this.currentListId_=N.listId;this.currentVideoId_&&_.XJ(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.c("polymer_enable_mdx_queue")?this.currentListId_:null,L,Z])};
_.t.handleAddToQueueAction_=function(L){L=_.n(L,JIg);this.remoteApi_&&(L.videoId?this.remoteApi_.addVideo(L.videoId):L.playlistId&&this.remoteApi_.addPlaylist(L.playlistId))};
_.t.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.t.handleInsertInQueueAction_=function(L){L=_.n(L,C7v);this.remoteApi_&&L.videoId&&this.remoteApi_.JSC$20075_insertVideo(L.videoId)};
_.t.handleRemoveFromQueueAction_=function(L){L=_.n(L,rIP);this.remoteApi_&&L.videoId&&this.remoteApi_.JSC$20075_removeVideo(L.videoId)};
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],Ed.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ed.prototype,"appId",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Ed.prototype,"mdxConnected",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],Ed.prototype,"receiverAvailable",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ed.prototype,"receiverName",void 0);_.r([_.Y(),_.Q("design:type",Object)],Ed.prototype,"currentVideoId_",void 0);
_.r([_.Y(),_.Q("design:type",Object)],Ed.prototype,"currentListId_",void 0);_.r([_.ch({is:"yt-mdx-manager",disableElementRegistration:!0})],Ed);_.m(Ed,"yt-mdx-manager",void 0,{mode:2});var Zrk;var Nzy;var P5=function(){var L=_.e.apply(this,arguments)||this;L.APP_IDS={ytr:3,ytm:5};L.JSC$21303_timeoutId_=0;L.actionMap={"yt-open-create-family-dialog":"open"};return L};
_.f(P5,_.e);_.t=P5.prototype;_.t.created=function(){Ocg(2200)};
_.t.detached=function(){this.observer_&&this.observer_.disconnect()};
_.t.open=function(L,Z){var N=this,S=L.serializedYpcFamilyCreateLoggingParams;this.JSC$21303_timeoutId_=setTimeout(this.abort_.bind(this,L.postFlowErrorEndpoint,S),3E4);Z&&(this.onReadyCallback_=Z);var u=_.QJ(this.hostElement).querySelector("#unicorn-iframe");S&&S&&xgw("ypcFamilyCreateFlowStarted",S);_.TfF("family_creation",function(){var T=_.LZ("gapi.family_creation.render");_.LZ("gapi.config.update")("iframes/family_creation/url",N.getFamilyCreationUrlWithUnicornParams_());var W=3;L.appId&&L.appId in
N.APP_IDS&&(W=N.APP_IDS[L.appId]);W={authUser:_.X7("SESSION_INDEX")||0,clientId:W,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.X7("HL"),initialflow:[4,5,6,7],m:N.isMobile?1:0,onFlowComplete:N.onUnicornFlowComplete_.bind(N,L.postFlowSuccessEndpoint,S),onError:N.onUnicornFlowError_.bind(N,L.postFlowErrorEndpoint,S),onReady:N.onUnicornFlowReady_.bind(N,L.referencePcidParams)};T(u,W)})};
_.t.close=function(){_.QJ(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.t.onUnicornFlowComplete_=function(L,Z){this.close();Z&&Z&&xgw("ypcFamilyCreateFlowSucceeded",Z);_.QT(this.hostElement,"yt-navigate",{endpoint:L})};
_.t.onUnicornFlowError_=function(L,Z){this.close();Z&&xgw("ypcFamilyCreateFlowCancelled",Z);_.QT(this.hostElement,"yt-navigate",{endpoint:L})};
_.t.onUnicornFlowReady_=function(L){var Z=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();L&&_.LZ("gapi.family_creation.setConfig")(0,L);this.observer_=new MutationObserver(function(){_.QJ(Z.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.QJ(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.QJ(this.hostElement).querySelector("#dialog").open()};
_.t.getFamilyCreationUrlWithUnicornParams_=function(){return _.X7("YTR_FAMILY_CREATION_URL")};
_.t.getCurrentUrl_=function(){return document.location.href};
_.t.abort_=function(L,Z){this.clearTimeout_();this.onUnicornFlowError_(L,Z)};
_.t.clearTimeout_=function(){clearTimeout(this.JSC$21303_timeoutId_)};
_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],P5.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],P5.prototype,"isMobile",void 0);_.r([_.Y(),_.Q("design:type",Object)],P5.prototype,"onReadyCallback_",void 0);_.r([_.Y(),_.Q("design:type",Object)],P5.prototype,"observer_",void 0);_.r([_.ch({is:"yt-create-family-dialog",disableElementRegistration:!0})],P5);
_.m(P5,"yt-create-family-dialog",function(){if(Nzy===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);var Z=L.content,N=Z.insertBefore;Zrk===void 0&&(Zrk=document.createElement("template"));var S=Zrk;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);Nzy=L}L=Nzy;return L},{mode:2});var Suq;var irY;var pB=function(){var L=_.e.apply(this,arguments)||this;L.STEP=1;L.BLOCK_ON=80;L.MIN_PROGESS=0;L.MAX_PROGESS=100;return L};
_.f(pB,_.e);_.t=pB.prototype;_.t.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.t.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));_.GR().addProvider({provide:Y0Y,useValue:this})};
_.t.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.t.finish=function(){var L=this;this.progress=this.MAX_PROGESS;vps(function(){L.progress==L.MAX_PROGESS&&(L.hostElement.hidden=!0)})};
_.t.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.gd.Object.defineProperties(pB.prototype,{progress:{configurable:!0,enumerable:!0,set:function(L){this.progress_=L;var Z="scaleX("+L/this.MAX_PROGESS+")",N=_.QJ(this.hostElement).querySelector("#progress").style;N.transform=Z;N.webkitTransform=Z;this.hostElement.setAttribute("aria-valuenow",String(L))},
get:function(){return this.progress_}}});
_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],pB.prototype,"ytComponentBehavior",void 0);_.r([_.ch({is:"yt-page-navigation-progress",disableElementRegistration:!0})],pB);
_.m(pB,"yt-page-navigation-progress",function(){if(irY===void 0){var L=document.createElement("template");_.k(L,'\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');L.content.insertBefore(_.H().content.cloneNode(!0),
L.content.firstChild);var Z=L.content,N=Z.insertBefore;Suq===void 0&&(Suq=document.createElement("template"));var S=Suq;N.call(Z,S.content.cloneNode(!0),L.content.firstChild);irY=L}L=irY;return L},{mode:2});var u1y={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"},Tzy={"font-size":"12px","font-style":"italic"},tFq={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.np5=function(){return _.b(function(L){_.w7(L)})};var Orq=_.p(function(L){var Z=function(){return L.data().subtext},N={};
return _.g("snackbar-view-model",{class:_.qg("snackbarViewModelHost",L.className)},_.g("div",{class:_.qg("snackbarViewModelEngagementBarWrapper",L.className)},_.g(_.F,{cond:function(){return L.data().image},
then:function(S){return _.g(_.ji,{data:S,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.g(_.F,{cond:function(){return L.data().imageContent},
then:function(){return _.g("div",{class:"snackbarViewModelAvatarContainer"},_.g(_.bj,{data:function(){return L.data().imageContent}},{decoratedAvatarViewModel:_.CS}))}}),_.g("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.g("div",{class:_.qg((N.snackbarViewModelTitle=!0,N.snackbarViewModelTitleWithSubtext=Z,N))},_.g(_.qv,{text:function(){return L.data().text}})),_.g(_.F,{cond:Z,
then:function(){return _.g("div",{class:"snackbarViewModelSubtext"},_.g(_.qv,{text:function(){return Z()}}))}})),_.g(_.F,{cond:function(){return L.data().buttons},
then:function(){return _.g("div",{class:"snackbarViewModelButtonClassWrapper"},_.g(_.bj,{data:function(){return L.data().buttons}},{buttonViewModel:function(S){return _.g(_.$X,{data:S.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:L.target})}}))}})))},"fk");_.CY(_.p(function(){function L(E,A,J){K(E);d(J);v("in");D(!0);Z(E,A);W=setTimeout(function(){N()},A)}
function Z(E,A){var J,C=(J=E.text)==null?void 0:J.content;E=_.ob(E.rendererContext);C&&(A={label:C,command:E,durationMs:A},_.GR().resolve(_.LR).enqueue(A))}
function N(E){v("out");E&&clearTimeout(W)}
function S(){N(!0)}
function u(E){if(E){var A=E.snackbarViewModel,J=E.durationMs,C=E.target;J||(J=3E3);A&&(E=_.GR().resolve(_.gv(_.AM)))&&E.enqueue({isOpened:G,open:function(){L(A,J,C)},
close:N},0)}}
var T=_.OV("snackbar-container"),W=void 0,V=_.O(_.nh(!1,void 0,"mDc5N")),M=V.next().value;V=V.next().value;var G=M,D=V;M=_.O(_.nh("out",void 0,"FpOs5e"));var l=M.next().value,v=M.next().value;M=_.O(_.nh(void 0,void 0,"jIDRob"));var R=M.next().value,K=M.next().value;M=_.O(_.nh(void 0,void 0,"kOA3Mb"));var U=M.next().value,d=M.next().value,h=_.Z9(function(){if(l()==="out"){D(!1);K(void 0);d(void 0);var E=_.GR().resolve(_.gv(_.AM));E&&oW5(E,0)}});
_.m0(function(){var E=_.GR().resolve(_.gv(_.tNs));E&&(E.showSnackbarFn=u,E.closeSnackbarFn=S)});
return _.g("snackbar-container",{class:"ytSnackbarContainerHost",el:T},_.g(_.F,{cond:function(){return G()&&!!R()},
then:function(){var E={};return _.g("div",{class:_.qg("ytSnackbarContainerSnackbarContainer",(E.ytSnackbarContainerMobile=!1,E.ytSnackbarContainerPivotBar=function(){var A;return!((A=_.GR().resolve(_.gv(_.Oxg)))==null||!A())},E.ytSnackbarContainerOpened=function(){return G()&&l()==="in"},E.ytSnackbarContainerClosed=function(){return G()&&l()==="out"},E)),
"on:animationend":h},_.g(Orq,{data:function(){return R()},
target:function(){return U()}}))}}))},"gk"),"snackbar-container");_.CY(_.zJV,"yt-tooltip");var WeP=_.rrw.ephemeralActionSelector;_.CY(_.p(function(){var L=_.VB(WeP);return _.g("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var Z;return(Z=L())==null?void 0:Z.announcement})},"hk"),"yt-ephemeral-actions");var zmy=new Map;var IUv=function(L,Z){var N=this;this.handleError=L;this.logEventInternal=Z;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){N.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
IUv.prototype.logError=function(L){this.handleError(L)};
IUv.prototype.logEvent=function(L,Z){switch(L){case "IDB_DATA_CORRUPTED":_.c("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",Z);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",Z);break;case "IS_SUPPORTED_COMPLETED":_.c("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",Z);break;case "QUOTA_EXCEEDED":VFk(this,Z);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",Z);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":L=Object.assign({},Z,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",L)}};
var VFk=function(L,Z){_.NA.getInstance().estimate().then(function(N){N=Object.assign({},Z,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:JYg(N==null?void 0:N.usage),deviceStorageQuotaMbytes:JYg(N==null?void 0:N.quota)});L.logEventInternal("idbQuotaExceeded",N)})};var brv=_.p(function(L){var Z=_.t2("yt-draggable"),N=L.onDrag,S=L.onDragStart,u=L.onDragEnd,T=_.Ek(L,{allowClicks:!1,dragThreshold:5}),W=T.dragThreshold,V=T.allowClicks;L=T.children;T=T.className;var M=void 0,G=void 0,D=new _.zF(0,0),l=!1;_.m0(function(){M=new _.pL(Z.value);G=new _.$d(R);v(M,G);if(V()){_.kch(M,W());var U;(U=Z.value)==null||U.addEventListener("click",K,{capture:!0})}_.zs(function(){var d;(d=M)==null||d.dispose();if(V()){var h;(h=Z.value)==null||h.removeEventListener("click",K,{capture:!0})}})});
var v=function(U,d){_.Gl(U,"earlycancel",function(){V()&&(l=!1)});
_.Gl(U,"start",function(h){S==null||S(h);h.defaultPrevented||V()&&(l=!0)});
_.Gl(U,"beforedrag",function(h){M&&G&&(h.preventDefault(),D=new _.zF(h.clientX-M.startX,h.clientY-M.startY),G.start())});
_.Gl(U,"end",function(){d.stop();u==null||u();D=new _.zF(0,0)})},R=function(){D&&N(D)},K=function(U){l&&(l=!1,U.stopPropagation(),U.preventDefault())};
return _.g("yt-draggable",{el:Z,class:_.qg("ytDraggableComponentHost",T)},L)},"ik");var MFq=_.p(function(L){var Z=_.O(_.nh(0,void 0,"Qf0tbc")),N=Z.next().value,S=Z.next().value;Z=function(u){var T={},W={};return _.g(brv,{className:_.qg("ytdMiniplayerComponentResizer",(T.ytdMiniplayerComponentResizerDisabled=function(){return u===L.horizontalAlignment()||u===L.verticalAlignment()},T.ytdMiniplayerComponentResizerNorth=u==="north",T.ytdMiniplayerComponentResizerEast=u==="east",T.ytdMiniplayerComponentResizerSouth=u==="south",T.ytdMiniplayerComponentResizerWest=u==="west",T)),
onDragStart:function(){S(L.currentMiniplayerSize());if(L.onResizeStart)L.onResizeStart()},
onDrag:function(V){u!=="north"&&u!=="west"||V.scale(-1);var M;V=(M=u==="north"||u==="south")?V.y:V.x;var G=L.currentAspectRatio();M&&G>=1?V*=G:!M&&G<1&&(V/=G);M=V;L.onResize(N()+M)}},_.g("div",{class:_.qg("ytdMiniplayerComponentResizerCorner",(W.ytdMiniplayerComponentResizerNorthCorner=u==="north",W.ytdMiniplayerComponentResizerEastCorner=u==="east",W.ytdMiniplayerComponentResizerSouthCorner=u==="south",W.ytdMiniplayerComponentResizerWestCorner=u==="west",W))}))};
return _.g("div",{class:"ytdMiniplayerComponentResizers"},Z("north"),Z("east"),Z("south"),Z("west"))},"jk");var gc8=16/9;_.CY(_.p(function(){var L=_.t2("ytd-miniplayer"),Z=_.O(_.nh(new _.wF(NaN,NaN),void 0,"NHaFyc")),N=Z.next().value,S=Z.next().value;Z=_.O(_.nh(!1,void 0,"a0rwG"));var u=Z.next().value,T=Z.next().value;Z=_.O(_.nh(!1,void 0,"f1jSeb"));var W=Z.next().value,V=Z.next().value;Z=_.O(_.nh(!1,void 0,"JojXKc"));var M=Z.next().value,G=Z.next().value;Z=_.O(_.nh(!1,void 0,"FjS8Db"));var D=Z.next().value,l=Z.next().value;Z=_.O(_.nh(!1,void 0,"z5WG9e"));var v=Z.next().value,R=Z.next().value;Z=_.O(_.nh(!1,void 0,"eUzZd"));
var K=Z.next().value,U=Z.next().value;Z=_.O(_.nh(gc8,void 0,"XsBIy"));var d=Z.next().value,h=Z.next().value,E=_.O(_.nh(!1,void 0,"FJSvse"));Z=E.next().value;var A=E.next().value;E=_.O(_.nh(!1,void 0,"VDUFL"));var J=E.next().value,C=E.next().value;E=_.O(_.nh(void 0,void 0,"nFeh4b"));var X=E.next().value,L1=E.next().value;E=_.O(_.nh(gt()?"west":"east",void 0,"T7co7c"));var Fw=E.next().value,GB=E.next().value;E=_.O(_.nh("south",void 0,"QDUsLb"));var Yt=E.next().value,lH=E.next().value;E=_.O(_.nh(400,
void 0,"F7Vdze"));var RF=E.next().value,jf=E.next().value,f1=_.GR().resolve(_.yk).miniplayerPropSignalMap[0],n0=f1.data,r5=f1.externalPlaylistData;E=f1.toastData;var yq=f1.playabilityStatus,ZN=f1.isReadyToResume,GV=f1.isDisabled,IO=f1.watchWhile,d5=f1.playerVe,n8=f1.expandVe,lq=f1.closeVe,tx=f1.readyToResumeVe,ut=f1.readyToResumeCloseVe,oO=f1.repositionVe,uq=f1.resizeVe;f1=_.O(_.i4(ZN));var RO=f1.next().value,iq=f1.next().value,hU=_.VB(_.Y9.persistentPanelVisibleSelector),Qq=!1,Fh=!1,g5;_.m0(function(){S(_.tz());
L.value.addEventListener("animationend",function(Hl){Hl.target===L.value&&(R(!1),U(!1))});
H7s(L.value)});
_.TD("yt-window-resized",function(Hl){Hl&&S(Hl)});
var SY=function(){g5&&h(g5.getVideoAspectRatio())},Xw=function(){if(g5){var Hl=g5.getPlayerState()===1;
RO()&&Hl&&iq(!1)}},vl=function(){var Hl=n8();
if(Hl){var k5=_.RH(3);k5&&_.sT(k5,Hl)}},oQ=function(){var Hl=lq(),k5=ut();
Hl&&_.sT(_.RH(3),Hl);ZN()&&k5&&_.sT(_.RH(3),k5)};
_.TD("yt-activate-miniplayer",function(Hl){var k5;return _.b(function(Tg){if(Tg.nextAddress==1)return u()?Tg.return():Tg.yield((k5=_.GR().resolve(_.yk).getPlayerElement())==null?void 0:k5.getPlayerPromise(),2);g5=Tg.yieldResult;if(!g5)return Tg.return();!J()&&_.c("kevlar_watch_while_v2")&&(lH(Hl&&!_.c("kevlar_watch_while_bottom_align")?"north":"south"),GB(gt()?"west":"east"));var Aj=g5;Aj.addEventListener("onVideoDataChange",SY);Aj.addEventListener("onStateChange",Xw);Aj.addEventListener("onExpandMiniplayer",
vl);Aj.addEventListener("onCloseMiniplayer",oQ);h(g5.getVideoAspectRatio());T(!0);AYq()||R(!0);_.w7(Tg)})});
_.TD("yt-deactivate-miniplayer",function(Hl,k5){return _.b(function(Tg){if(!u())return Tg.return();T(!1);iq(!1);U(Hl);l(!1);V(!1);if(g5){var Aj=g5;Aj.removeEventListener("onVideoDataChange",SY);Aj.removeEventListener("onStateChange",Xw);Aj.removeEventListener("onExpandMiniplayer",vl);Aj.removeEventListener("onCloseMiniplayer",oQ)}AYq()||k5?k5&&R(!1):R(!0);_.w7(Tg)})});
var H6=function(){return!(IO()&&_.c("kevlar_watch_while_modern"))},IQ=function(){var Hl;
return!((Hl=r5())==null||!Hl.contents)},JU=function(){var Hl=RF();
var k5=N();k5=Math.min(Math.min(k5.width,k5.height)-32,720);var Tg=d(),Aj=H6(),c4=IQ()&&W(),Hy=Math.min(Hl,k5);Hl=new _.wF(192,Aj?116:192);Tg=new _.wF(c4?gc8:Tg,1);Hy=new _.wF(Hy,Aj?Hy-76:Hy);Hy=Tg.aspectRatio()>Hy.aspectRatio()?Hy.width/Tg.width:Hy.height/Tg.height;Tg=Tg.scale(Hy);Hl.width<=Tg.width&&Hl.height<=Tg.height||(Hl=Tg.aspectRatio()<=Hl.aspectRatio()?Hl.width/Tg.width:Hl.height/Tg.height,Tg.scale(Hl),Tg.width=Math.min(Tg.width,k5),Tg.height=Math.min(Tg.height,k5));return new _.wF(Tg.width,
_.nM(192,Tg.height+LFc(Aj,c4),720))},Zb=function(){var Hl=JU(),k5=H6(),Tg=IQ()&&W();
return new _.wF(Hl.width,Hl.height-LFc(k5,Tg))},bG=function(){var Hl=function(k5){k5.target===L.value&&D()&&(l(!1),L.value.removeEventListener("transitionend",Hl))};
AYq()||(L.value.addEventListener("transitionend",Hl),l(!0));V(!W())};
_.ph(function(){var Hl=d5(),k5=_.RH(3),Tg=_.oH(3);if(k5&&Tg&&Hl){_.ez(k5,Tg,Hl);Tg=oO();var Aj=uq(),c4=n8(),Hy=lq(),EK=ut();c4&&Hy&&EK&&(_.Iq(k5,Hl,[c4,Hy,EK]),_.aq(k5,[c4,Hy]));Tg&&Aj&&_.Iq(k5,Hl,[Tg,Aj])}},"UBpUDd");
_.ph(function(){var Hl=tx();if(Hl){var k5=_.RH(0),Tg=_.oH(0);k5&&Tg&&(_.ez(k5,Tg,Hl),_.aq(k5,[Hl]))}},"fQpBzb");
f1={};return _.g("ytd-miniplayer",{el:L,class:_.qg("ytdMiniplayerComponentHost",(f1.ytdMiniplayerComponentVisible=function(){return(u()||v())&&!(IO()&&_.c("kevlar_watch_while_counterfactual"))},f1.ytdMiniplayerComponentAnimatingSnap=M,f1.ytdMiniplayerComponentAnimatingPlaylistExpand=D,f1.ytdMiniplayerComponentAnimatingFade=v,f1),function(){if(v()){var Hl=Yt();
var k5=u(),Tg=K();Hl=k5?Hl==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Tg?Hl==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Hl==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Hl="";return Hl}),
style:_.u4({top:function(){return Yt()==="north"?"16px":""},
right:function(){var Hl=Fw(),k5=hU();k5=(k5===void 0?0:k5)&&!gt()?400:0;return Hl==="east"?16+k5+"px":""},
bottom:function(){return Yt()==="south"?"16px":""},
left:function(){var Hl=Fw(),k5=hU();k5=(k5===void 0?0:k5)&&gt()?400:0;return Hl==="west"?16+k5+"px":""},
width:function(){return JU().width+"px"},
height:function(){return JU().height+"px"},
transform:function(){var Hl=X();return Hl?"translate("+Hl.x+"px, "+Hl.y+"px)":""}})},_.g("div",{class:"ytdMiniplayerComponentContent"},_.g(brv,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Hl){var k5=qys(Fw(),Yt(),N(),JU(),X()),Tg=Zb();Math.abs(Hl.clientY-(k5.y+Tg.height))>15?(A(!0),Hl=_.RH(3),k5=oO(),Qq||(Qq=!0,Hl&&k5&&_.aq(Hl,[k5])),Hl&&k5&&_.sT(Hl,k5)):Hl.preventDefault()},
onDrag:function(Hl){L1(Hl)},
onDragEnd:function(){var Hl=BIs(qys(Fw(),Yt(),N(),JU(),X()),N(),JU()),k5=xYg(Fw(),Yt(),N(),JU(),hU()),Tg=xYg(Hl.horizontalAlignment,Hl.verticalAlignment,N(),JU(),hU());Tg=new _.zF(Tg.x-k5.x,Tg.y-k5.y);var Aj;k5=k5.y+(((Aj=X())==null?void 0:Aj.y)||0)+JU().height/2;var c4=function(){Fw()===Hl.horizontalAlignment&&Yt()===Hl.verticalAlignment||C(!0);GB(Hl.horizontalAlignment);lH(Hl.verticalAlignment);L1(void 0)},Hy=function(EK){EK.target===L.value&&M()&&(G(!1),c4(),L.value.removeEventListener("transitionend",
Hy))};
A(!1);Yt()==="south"&&k5>N().height?(c4(),_.GR().resolve(_.yk).close()):(L.value.addEventListener("transitionend",Hy),G(!0),L1(Tg))}},_.g(_.F,{cond:u,
then:function(){return _.g(_.CQQ,{isDisabled:GV,playabilityStatus:yq,size:Zb})}}),_.g(_.F,{cond:H6,
then:function(){return _.g(_.muQ,{isReadyToResume:RO,data:n0,expanded:W,onExpandClick:bG,playlistData:r5})}}),_.g(_.F,{cond:Z,
then:function(){return _.g("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.g(_.F,{cond:function(){return IQ()&&W()||D()},
then:function(){return _.g(_.OGq,{className:"ytdMiniplayerComponentPlaylistPanel",data:r5,hideHeaderText:!0,withinMiniplayer:!0})}}),_.g("div",{class:"ytdMiniplayerComponentToast"},_.g(_.r3w,{toastData:E}))),_.g(MFq,{onResize:function(Hl){jf(_.nM(192,Hl,720))},
onResizeStart:function(){var Hl=_.RH(3),k5=uq();Fh||(Fh=!0,Hl&&k5&&_.aq(Hl,[k5]));Hl&&k5&&_.sT(Hl,k5)},
currentAspectRatio:d,currentMiniplayerSize:RF,horizontalAlignment:Fw,verticalAlignment:Yt}))},"mk"),"ytd-miniplayer",{});var GOg=_.Y9.persistentPanelVisibleSelector,z4=function(){var L=_.e.apply(this,arguments)||this;L.tabGesturesIsActive=!1;L.persistentPanelEnabled=_.c("enable_ai_companion");L.hasDelegation=!1;L.darkerDarkTheme=_.c("web_darker_dark_theme");L.isFrostedGlassInitialized=!1;L.frostedGlassExp=_.c("web_frosted_glass");L.hasPendingWatchNavigation=!1;L.mastheadHiddenFocusWithinKillswitch=_.c("web_masthead_hidden_focus_within_killswitch");L.clientOnlyWizTooltipsEnabled=_.c("enable_client_only_wiz_tooltips")&&
HTMLElement.prototype.hasOwnProperty("popover");L.scrollAtTop=!0;L.guideScrollTop=0;L.isTheaterModeSession=_.Ah("START_IN_THEATER_MODE");L.iMaxTheaterMode=_.c("web_watch_imax_theater_mode");L.isFullWindowSession=_.Ah("START_IN_FULL_WINDOW_MODE");L.hasCreateFamilyDialog=!1;L.mastheadHeight=56;L.networkStatusManager=new _.iR;L.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"};L.dynamicActionMap={"yt-run-attestation-command":function(Z){var N=
_.Afk.instance,S=_.n(Z,_.b2s);return S?_.c("use_rta_manager_for_async")&&lUy()?Bgy(N,S,Z.clickTrackingParams):Hc8(N,S,Z.clickTrackingParams):_.$N(Error("pi"))}};
L.isFrostedGlassDisabled=!1;L.isChannelOrPlaylistPage=!1;return L};
_.f(z4,_.e);_.t=z4.prototype;_.t.created=function(){var L=_.GR();_.c("kevlar_clear_duplicate_pref_cookie")&&_.sI(_.ro,function(){var Z=_.eZ.get("PREF");Z&&!/f\d=/.test(Z)&&(Z=_.vW("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=Z?"PREF=null;domain="+Z+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.c("gzip_gel_with_worker")&&_.NDh();_.c("jspb_serialize_with_worker")&&mdv();_.c("web_worker_availability_check")&&mYv();_.c("nwl_init_killswitch")||ph8().then(function(){_.ro.addLowPriorityJob(gMq)});
this.pageManagerAttachedPromise=_.hS();this.ytdAppBehavior.loadDepsPromise=_.yz([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Sw(this.onThrottledScroll,200,this);_.c("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);ddk();DX5=!!_.LZ("ytappsettings.initialized");WP=_.LZ("ytappsettings.previousValue");Ihk=_.LZ("ytappsettings.previousSnapshotTime");DX5||(DX5=!0,dgv());vMk();oMm();_.Qc("DEFERRED_DETACH",
_.c("kevlar_tuner_should_defer_detach"));_.Qc("REUSE_COMPONENTS",!0);_.Qc("STAMPER_STABLE_LIST",!0);_.Qc("SCHEDULED_LAZY_LIST",!0);_.Qc("openPopupConfig",rPm);_.Qc("useClickHandler",!0);_.c("kevlar_shell_cleanup")&&_.ro.addLowPriorityJob(RE0.bind(this,_.iH.caches));_.Ah("IS_SHELL_LOAD")&&_.lB({shellStartupDurationMs:Math.round((0,_.GT)()-_.gR())});yYP(this.networkStatusManager);_.c("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",opY(u1y)),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!",
opY(Tzy)),console.log("%cVisit http://go/join-youtube-web to apply today.",opY(tFq)));_.Sok(L.resolve(_.xr),1E3)};
_.t.ready=function(){var L=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var Z=qky();Z&&!_.c("external_fullscreen_killswitch")&&document.addEventListener(Z,this.setFullscreen.bind(this));(Z=window.matchMedia("(prefers-color-scheme: dark)"))&&Z.addEventListener&&Z.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(Z=_.GR().resolve(_.gv(_.uV5)))Z.subscribe("navigation-start",
function(N){N.destinationPageSubtype==="watch"&&(L.hasPendingWatchNavigation=!0)}),Z.subscribe("navigation-end",function(N){N.destinationPageSubtype==="watch"&&(L.hasPendingWatchNavigation=!1)})};
_.t.attached=function(){var L=this;_.ih().processSignal("ci");_.c("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.LYL?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.ZK(_.k_x(),"SUCCESS");this.updateIconSet();_.Cv(this.guideInnerContent,!1);_.yx().initVisibilityObserver();this.guideService.guideElement=this.guide;var Z=document.createElement("ytd-miniplayer"),N=_.QJ(this.hostElement).querySelector("#content");
_.QJ(this.hostElement).insertBefore(Z,N);_.ih().processSignal("ma");_.GR().resolve(_.yk).init(Z);this.persistentPanelEnabled&&_.Wl8(_.GR().resolve(_.zz),this.persistentPanelContainer,"APP");_.Ah("IS_SHELL_LOAD")&&(N=document.createElement("ytd-network-status-banner"),_.QJ(this.hostElement).insertBefore(N,Z));_.c("kevlar_right_click_on_lockups")&&_.qR._onCaptureClick&&document.addEventListener("contextmenu",_.qR._onCaptureClick.bind(_.qR),!0);var S=function(){var u=_.Tx("yt-page-navigation-progress");
_.QJ(L.hostElement).appendChild(u)};
setTimeout(function(){_.ih().parkOrScheduleJob(S,0,"eocs",16)},0);
_.c("service_worker_push_enabled")&&_.sI(_.ro,B$q);_.ie(_.SS.getInstance(),this.dynamicActionMap,this.hostElement);_.QT(this.hostElement,"ytd-app-attached");_.ih().processSignal("aa");Mic(this.hostElement);_.bp("gapi.load",_.TfF);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.sI(_.ro,
function(){var u=document.createElement("ytd-video-preview");_.QJ(_.QJ(L.hostElement).querySelector("#video-preview")).appendChild(u)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.sI(_.ro,function(){KQ5();L.registerWithViewTransitionManager()});
if(_.Ux()&&this.isAppDarkTheme()!==_.yJ())this.onDarkModeToggledAction();else Z=_.wr()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==Z&&(_.c("enable_dark_theme_only_on_shorts")?_.ke(_.c("enable_dark_theme_only_on_shorts_control")?window.location.href:_.TR(window.location.href,{theme:"dark"})):_.Q7(new _.sr("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(HW8=new AP5(this.hostElement)),LeY=new qgv(this.hostElement),xA0=new B_Q(this.hostElement),FEw=new GNm(this.hostElement)};
_.t.getThemeSettingsToLog=function(){var L=_.wr()==="USER_INTERFACE_THEME_DARK";L=_.Ux()?_.yJ()?"os-dark":"os-light":L?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:L,cookiesEnabled:_.dv()}};
_.t.detached=function(){_.r0(this.guideInnerContent);_.ro.cancelJob(iE);iE=0;_.ro.cancelJob(TH);TH=0;_.FWs(bYy);bYy.length=0;OYs=_.ONf=null;_.yx().dispose();_.c("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.ue(_.SS.getInstance(),HW8.playlistHandlerActionMap,HW8.JSC$32386_clientRoot);_.ue(_.SS.getInstance(),LeY.downloadManagerActionMap,LeY.JSC$32677_clientRoot);_.ue(_.SS.getInstance(),xA0.feedbackCollectorActionMap,xA0.JSC$32672_clientRoot);
for(var L=_.O(FEw.eventListeners),Z=L.next();!Z.done;Z=L.next()){var N=_.O(Z.value);Z=N.next().value;N=N.next().value;N=_.O(N);for(var S=N.next();!S.done;S=N.next()){var u=_.O(S.value);S=u.next().value;u=u.next().value;Z.removeEventListener(S,u)}}_.ue(_.SS.getInstance(),FEw.autonavPauseActionMap,FEw.JSC$20258_clientRoot)};
_.t.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.tq().getFlag(186)};
_.t.computeIsInlinePreviewEnabled=function(L,Z,N){return!N&&_.XXm({miniplayerIsActive:L,miniplayerPlaybackState:Z})};
_.t.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.XK({type:"SET_FROSTED_GLASS_MODE",payload:!_.c("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"}))};
_.t.computeIsFrostedGlassDisabled=function(L,Z,N,S){return L||Z||N||S&&_.c("web_frosted_glass_disable_watch")};
_.t.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.c("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.t.computeIsHomePage=function(L,Z){if(!L||Z==null||!Z.endpoint)return!1;var N;return((N=_.n(Z.endpoint,_.iv))==null?void 0:N.browseId)==="FEwhat_to_watch"};
_.t.updateIsChannelOrPlaylistPage=function(){if(_.c("web_frosted_glass")){var L,Z,N=(Z=(L=_.GR().resolve(_.gv(_.mR)))==null?void 0:L.getCurrentPage())==null?void 0:Z.pageSubtype;this.isChannelOrPlaylistPage=N?["channel","channels","playlist"].includes(N):!1}};
_.t.scheduleFrostedGlassInitialization=function(){var L=this;_.c("web_frosted_glass")&&_.ih().parkOrScheduleJob(function(){L.isFrostedGlassInitialized=!0},0,_.$y(["eocs",
"cr"]),300)};
_.t.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.Qat(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.XK({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.XK({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.t.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(O28(!0))};
_.t.onYtSignalActionRequestPersistentStorage=function(){if(!_.c("request_persistent_storage_killswitch")){var L=_.GR().resolve(_.K8v);L.cachedPersistStatePromise||(L.cachedPersistStatePromise=Yty())}};
_.t.handleYtChannelCreationFormEndpoints=function(L){L&&this.ytComponentBehavior.resolveCommand(L)};
_.t.handleShowEngagementPanelEndpoint=function(L){L&&this.ytComponentBehavior.resolveCommand(L)};
_.t.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(O28(!1))};
_.t.initIconDefs=function(L,Z){var N=document.createElement("iron-iconset-svg");N.name=L;L=document.createElementNS("http://www.w3.org/2000/svg","svg");N.appendChild(L);L.appendChild(Z);document.body.appendChild(N);return N};
_.t.onWindowResized=function(){_.XJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var L=_.ou.getInstance();L.documentWidth_=document.body.clientWidth;nBQ(L)};
_.t.onWindowScrolled=function(){var L=_.GR().resolve(_.mR).getCurrentPage();if(L!=null&&L.getScrollTop){var Z=this.ytdReduxBehavior,N=Z.dispatch;L=L.getScrollTop()<=0;N.call(Z,_.XK({type:"SET_SCROLL_AT_TOP",payload:L}))}};
_.t.guideIsVisibleButNotPersistentSelectorChanged=function(){var L=_.GR().resolve(_.mR).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=L.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"),
L.setScrollTop(this.guideScrollTop));_.Ad(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.t.getCurrentPageScrollableElementType=function(){var L=_.GR().resolve(_.mR).getCurrentPage();if(L&&L.getPageScrollingElement())return L.getPageScrollingElement().nodeName};
_.t.observeGuideVisibility=function(){var L=_.ou.getInstance(),Z=this.miniGuideVisible;L.guidePersistentAndVisible_=this.guidePersistentAndVisible;L.miniGuideVisible_=Z;nBQ(L)};
_.t.observePersistentPanelVisibility=function(){var L=_.ou.getInstance();L.persistentPanelVisible_=this.persistentPanelVisible;nBQ(L)};
_.t.handleEduDismissAction=function(L){L&&L.eduDismissAction&&(_.XJ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.BU5.getInstance(),_.lh.set(L.eduDismissAction.key+"-dismissed",!0))};
_.t.handleEduImpressionAction=function(L){if(L&&L.eduImpressionAction){var Z=_.BU5.getInstance();L=L.eduImpressionAction.key;Z.JSC$13181_eduDisplayedThisLoad_[_.H$h[L].setKey||L]=!0;_.lh.set(L+"-impression",parseInt(_.lh.get(L+"-impression")||0,10)+1)}};
_.t.onYtSignalActionConfirmMentionsEdu=function(){_.XJ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.c3.getInstance();_.Ru.set("edu-dismissed",!0)};
_.t.onYtSignalActionRecordMentionsEduImpression=function(){_.c3.getInstance();var L=_.Ru.set,Z=parseInt(_.Ru.get("edu-impressions"),10);L.call(_.Ru,"edu-impressions",(isFinite(Z)?Z:0)+1)};
_.t.onYtPageManagerAttached=function(L){var Z;((Z=_.jD(L))==null?void 0:Z.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.t.onInvokeInstrumentManagerAction=function(L,Z){Xzm(Z,L)};
_.t.updateIconSet=function(){var L=this.hostElement.querySelector("#masthead");if(L){var Z=_.XB(L),N=Z.querySelector("g#yt-logo-updated");N&&(L=document.createElementNS("http://www.w3.org/2000/svg","defs"),L.appendChild(N.cloneNode(!0)),(Z=Z.querySelector("g#yt-logo-red-updated"))&&L.appendChild(Z.cloneNode(!0)),this.initIconDefs("yt-logos-ext",L))}};
_.t.updateMastheadData=function(){var L=this,Z,N,S,u,T;return _.b(function(W){if(W.nextAddress==1){Z=L.data;N=L.hostElement.querySelector("#masthead");if(!N)return W.return();_.bN(L,function(){N.data=L.topbarData});
if(!L.get("response.topbar",Z)||L.get("response.topbar.responseContext.maxAgeSeconds",Z)===0)return W.jumpTo(0);if(S=_.GR().resolve(_.el))return W.yield(S(),6);u=_.GR().resolve(_.R2);return W.yield(u.put("service:topbar:fallback",new _.co({innertubeResponse:L.get("response.topbar",Z)})),0)}return(T=W.yieldResult)?W.yield(T.put("service:topbar:fallback",new _.co({innertubeResponse:L.get("response.topbar",Z)})),0):W.jumpTo(0)})};
_.t.computeTopbarData=function(L){if(!L)return null;var Z;return this.isShortsPage&&this.topbarData&&!_.n((Z=L.response)==null?void 0:Z.topbar,Yqs)?this.topbarData:L.response&&"topbar"in L.response?_.n(L.response.topbar,Yqs)||null:null};
_.t.onSetTheaterModeEnabled=function(L,Z){this.isTheaterModeSession=Z.enabled;this.setTheaterModeStyles(Z.enabled)};
_.t.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.t.onDarkModeToggledAction=function(){var L=_.ks(window.location.href);if(!_.bJ_(L)){(L=!!_.uQ(window.location.href).themeRefresh)&&_.Q7(new _.sr("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!L){dgv();L={themeRefresh:1};var Z=_.GR().resolve(_.mR);if(Z.isOnWatch()){var N,S;Z=((N=Z.getPlayerFromWatch())==null?void 0:(S=N.getPlayer())==null?void 0:S.getCurrentTime())||0;Z>=1&&(L.time_continue=Math.floor(Z))}_.dv()||_.wr()!=="USER_INTERFACE_THEME_DARK"||(L.theme="dark");_.ke(_.TR(window.location.href,
L))}_.c("web_appshell_refresh_trigger")&&_.iH.caches&&this.refreshAppShellResponse();N=_.e9(window.location.href);_.fb(_.GR().resolve(_.ku),_.zo(N,"theme"))}};
_.t.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.t.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.t.onPlayerFullscreen=function(L){_.mg();this.playerFullscreen=L};
_.t.setRestrictedMode=function(L){var Z=_.tq();_.OT(0,58,L);Z.save();_.GR().resolve(_.kv).reload()};
_.t.onPageChanged=function(L){L.detail.newPageType==="ytd-watch-flexy"||L.detail.newPageType==="ytd-watch-fixie"||L.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.lm("WEB_PAGE_TYPE_WATCH")):L.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.lm("WEB_PAGE_TYPE_SHORTS")):L.detail.newPageType==="ytd-browse"&&L.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.lm("WEB_PAGE_TYPE_MINI_APP")):_.c("web_frosted_glass")&&L.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.lm("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.lm("WEB_PAGE_TYPE_UNKNOWN"));L.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.t.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.t.onGuideToggleTap=function(){_.QT(this.hostElement,"yt-guide-toggle")};
_.t.onGuideToggleHover=function(){_.QT(this.hostElement,"yt-guide-hover")};
_.t.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.t.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.t.setMastheadTheme=function(){var L=_.XB(this.hostElement).querySelector("#masthead");L&&(L.dark=L.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),L.isDarkThemeForced=!1)};
_.t.onRequestPanelModeChange=function(L,Z){this.hideHeaderShadow=Z.mode!=="seamed"};
_.t.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.t.onDrawerIronSelect=function(L){_.jD(L).id==="guide"&&this.processDrawerIronSelect()};
_.t.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var L="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(L="opened"));_.QT(this.hostElement,"yt-autonav-pause-guide-"+L)};
_.t.onAddElementToApp=function(L){_.QJ(this.hostElement).appendChild(L.detail)};
_.t.onThrottledScroll=function(){var L=_.GR().resolve(_.mR).getCurrentPage();L&&(this.scrollAtTop=L.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.t.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.t.setFullscreen=function(){if(_.c("external_fullscreen")||!this.isWatchPage){var L=_.c("kevlar_fullerscreen_root_only_killswitch")?!!_.mg():!!_.mg()&&_.mg()===document.documentElement;L=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(L||this.isFullWindowSession);this.fullscreen!==L&&((this.fullscreen=L)&&_.Ad(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Pv().dispatch(_.hj0(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.XJ(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.t.setFullscreenLoggingForShorts=function(L){var Z,N,S;return _.b(function(u){if(u.nextAddress==1)return u.yield((Z=_.CV())==null?void 0:Z.getPlayerPromise(),2);N=u.yieldResult;(S=N)==null||S.setAppFullscreen(L);_.w7(u)})};
_.t.updateMastheadCssHeight=function(){var L=this.mastheadHeight;this.fullscreen&&(L=0);_.Ld(this.hostElement,{"--ytd-masthead-height":L+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.t.updateNetworkStatusBannerDisplayStatus=function(){var L="unset";this.fullscreen&&(L="none");_.Ld(this.hostElement,{"--ytd-network-status-banner-display":L})};
_.t.updateNetworkStatusBannerCssHeight=function(){var L="unset";this.fullscreen&&(L="0px");_.Ld(this.hostElement,{"--ytd-network-status-banner-max-height":L})};
_.t.updateScrollAndMasthead=function(L,Z,N,S){this.iMaxTheaterMode||(S=!1);var u=_.GR().resolve(_.mR).getCurrentPage();L||Z||S?(document.body.classList.add("no-scroll"),u.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Nd(this,this.onScroll)),u.setScrollTop(0),_.Ld(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.fr()+"px"})):N?_.QT(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.QT(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
u.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Nd(this,this.onScroll)));this.mastheadHidden=L||Z||N;this.updateMastheadCssHeight();_.c("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.t.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.t.onYtNavigateAction=function(L){L=this.get("navigateAction.endpoint",L);_.QT(this.hostElement,"yt-navigate",{endpoint:L})};
_.t.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var L=document.createElement("yt-create-family-dialog");_.QJ(this.hostElement).appendChild(L);this.hasCreateFamilyDialog=!0}};
_.t.onSetPushNotificationsEnabledCommand=function(L){var Z=this,N=_.n(L,U1c);N&&typeof N.enabled==="boolean"&&(Notification.permission!=="granted"?rCk().then(function(){Notification.permission==="granted"?(w9s(!N.enabled).then(eEc),N.successAction&&_.H2(Z.hostElement,[N.successAction])):N.failureAction&&_.H2(Z.hostElement,[N.failureAction])}):(w9s(!N.enabled).then(eEc),N.successAction&&_.H2(this.hostElement,[N.successAction])))};
_.t.onYtSignalActionEnableChromeNotifications=function(){QXk(!0)};
_.t.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.n(this.topbarData.hotkeyDialog,d15)}}})};
_.t.onYtSignalActionShowKeyboardShortcutDialog=function(){_.XJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.t.onYtEndpointChangeHandler=function(L,Z){var N=_.pm(_.ff);N.pendingPrefetchJob_&&(Z=!(!Z||Z.autonav!="1"),N.pendingPrefetchJob_.resolve(L&&_.WbA(L)?_.Vrh(L,Z):""),N.pendingPrefetchJob_=null);_.XJ(this.hostElement,"yt-pause-active-page-context");_.XJ(this.hostElement,"ytd-log-youthere-nav");_.XJ(this.hostElement,"yt-prepare-page-dispose")};
_.t.handleCommandWithCommandHandler=function(L,Z){_.qd.instance.resolveCommand(L,{form:{element:Z}})};
_.t.onYtTimedCommand=function(L){var Z=this;L=_.n(L,lHm);var N=L.command;N&&_.SW(_.ro,function(){var S=_.n(N,_.VkY);S?(_.qd.instance.resolveCommand(N),Z.maybeLogGetAnswerRequestTick(S)):_.B2(Z.hostElement,[N],Z.hostElement)},L.timeoutMs||0)};
_.t.maybeLogGetAnswerRequestTick=function(L){L&&L.isFirstRequest&&(_.oq("search_overview_answer"),_.Rq("so_rq",void 0,"search_overview_answer"))};
_.t.onYtSignalActionSkipNavigation=function(){var L=_.GR().resolve(_.mR).getCurrentPage();_.OI(L)};
_.t.onYtSignalActionCopyDebugData=function(){T9v()};
_.t.handleEntityUpdateCommand=function(L){_.u2(_.n(L,_.Wus).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.t.logFlowLoggingEventCommand=function(L){if(L=_.n(L,_.r$H))if(L.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var Z=L.flowEventNamespace,N=L.flowEventType,S=L.flowType;S&&Z&&N&&_.ZNf(_.LX(Z,N,L.flowEventMetadata),S)}else{Z=_.ZC();N=L.flowEventNamespace;S=L.flowEventType;var u=L.flowType;u&&N&&S&&Z.logFlowEvent(_.LX(N,S,L.flowEventMetadata),u,L.flowNonce)}};
_.t.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.t.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.t.onTouchStart=function(){var L=_.wH();_.RH()&&_.ew(L.JSC$13303_screenManager,{visualElement:L.ve})};
_.t.handleSelectLanguageCommand=function(L){if(L=_.n(L,k90).hl){var Z=_.tq();Z.set("hl",L);Z.save();_.GR().resolve(_.kv).reload()}};
_.t.handleConfirmDialogEndpoint=function(L){(L=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(L))&&this.ytOpenPopupBehavior.openPopup(L)};
_.t.handleOpenPopupNavigationEndpoints=function(L,Z){_.c("web_button_rework")&&(L=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(L))&&this.ytOpenPopupBehavior.openPopup(L,Z)};
_.t.handleSaveCommandToSessionStorage=function(L){if(L=_.n(L,_.DXL)){var Z=L.key;Z&&L.command&&window.sessionStorage.setItem(Z,JSON.stringify(L.command))}};
_.t.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(L){L&&L.active&&L.active.postMessage({type:"refresh_shell"})}).catch(function(L){L.name!=="SecurityError"&&_.CA(L)})};
_.t.onDeviceThemeChanged=function(){var L=_.yJ();_.OT(_.tq(),185,L);_.tq().save()};
_.t.handleYtRegisterPromoCommand=function(L){if(_.n(L,wAc)){var Z=_.GR().resolve(_.mR).getCurrentPage()||this.hostElement;KOw().registerPromoCommand(_.n(L,wAc),Z)}};
_.t.onYtNavigateHomeAction=function(){if(!_.c("kevlar_miniplayer_navigate_home_from_app_killswitch")){var L,Z,N,S,u=(S=(L=this.topbarData)==null?void 0:(Z=L.logo)==null?void 0:(N=Z.topbarLogoRenderer)==null?void 0:N.endpoint)!=null?S:_.aB;this.ytComponentBehavior.resolveCommand(u)}};
_.t.onYtLocationCollectionCommand=function(L){cYc(_.n(L,zB8))};
_.t.onYtGetLocationCommand=function(L){KXw(_.n(L,pA8),this)};
_.t.updateRenderGuideFromBinding=function(L){this.renderGuide=L.detail.value};
_.t.updateGuidePersistentAndVisibleFromBinding=function(L){this.guidePersistentAndVisible=L.detail.value};
_.t.updateMiniGuideVisibleFromBinding=function(L){this.miniGuideVisible=L.detail.value};
_.t.onThemeSelected=function(L,Z){var N=_.tq(),S=L||Z?L:_.yJ(),u=(S&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!S&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.bJ_(_.ks(window.location.href));_.OT(0,165,L);_.OT(0,174,Z);N.save();u&&_.XJ(this.hostElement,"yt-dark-mode-toggled-action",[S]);_.XJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.t.getCurrentTheme=function(){return _.Ux()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.wr()};
_.t.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.t.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.t.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.t.handleShowConsentPrimitive=function(L){var Z=this,N,S;return _.b(function(u){if(u.nextAddress==1){try{N=(S=_.CV())==null?void 0:S.getPlayerPromise()}catch(T){}return u.yield(pzm(L,N),2)}_.XJ(Z.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.w7(u)})};
_.t.handleSelectActiveIdentityEndpointInternal=function(L){_.KX();L=_.n(L,_.kLO);if(L!=null&&L.supportedTokens){L=_.O(L.supportedTokens);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.accountSigninToken&&_.ke(Z.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.t.handleUpdatePermissionRoleCommand=function(L){if(L=_.n(L,_.yyt)){var Z;this.hasDelegation=!((Z=_.n(L.renderer,_.kxh))==null||!Z.status)}};
_.t.registerWithViewTransitionManager=function(){var L=_.GR().resolve(_.gv(_.eB));if(L){var Z,N=(Z=this.guide)==null?void 0:Z.querySelector("#scrim"),S;Z=(S=this.guide)==null?void 0:S.querySelector("#contentContainer");N&&Z&&L.isAnyTransitionEnabled&&(S={},L.viewTransitionCoordinator.registerElement(N,(S.slide="app-drawer-scrim-page-transition",S["lockup-to-watch"]="app-drawer-scrim-page-transition",S["learning-journey"]="app-drawer-scrim-page-transition",S)),N={},L.viewTransitionCoordinator.registerElement(Z,
(N.slide="app-drawer-container-page-transition",N["lockup-to-watch"]="app-drawer-container-page-transition",N["learning-journey"]="app-drawer-container-page-transition",N)))}};
_.gd.Object.defineProperties(z4.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.c("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.gd.Object.defineProperties(z4,{template:{configurable:!0,enumerable:!0,get:function(){if(C1w===void 0){var L=document.createElement("template");_.k(L,'\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');
L.content.insertBefore(_.H().content.cloneNode(!0),L.content.firstChild);C1w=L}L=C1w;return L}}});
z4.prototype.onOpenHotkeyDialog=z4.prototype.onOpenHotkeyDialog;z4.prototype.setFullscreen=z4.prototype.setFullscreen;z4.prototype.onAddElementToApp=z4.prototype.onAddElementToApp;z4.prototype.onDrawerIronSelect=z4.prototype.onDrawerIronSelect;z4.prototype.onGuideOpenButtonHover=z4.prototype.onGuideOpenButtonHover;z4.prototype.onRequestPanelModeChange=z4.prototype.onRequestPanelModeChange;z4.prototype.onPageDataUpdated=z4.prototype.onPageDataUpdated;z4.prototype.onPageChanged=z4.prototype.onPageChanged;
z4.prototype.onSetTheaterModeEnabled=z4.prototype.onSetTheaterModeEnabled;z4.prototype.updateMastheadData=z4.prototype.updateMastheadData;z4.prototype.onYtPageManagerAttached=z4.prototype.onYtPageManagerAttached;z4.prototype.observePersistentPanelVisibility=z4.prototype.observePersistentPanelVisibility;z4.prototype.observeGuideVisibility=z4.prototype.observeGuideVisibility;z4.prototype.guideIsVisibleButNotPersistentSelectorChanged=z4.prototype.guideIsVisibleButNotPersistentSelectorChanged;
z4.prototype.isInlinePreviewEnabledChanged=z4.prototype.isInlinePreviewEnabledChanged;z4.prototype.isWatchPageChanged=z4.prototype.isWatchPageChanged;z4.prototype.dispatchFrostedGlassMode=z4.prototype.dispatchFrostedGlassMode;_.r([_.y(_.CD),_.Q("design:type",Object)],z4.prototype,"ytdReduxBehavior",void 0);_.r([_.y(_.af.YtEventForwardingBehavior),_.Q("design:type",Object)],z4.prototype,"ytEventForwardingBehavior",void 0);
_.r([_.y(_.vS.YtOpenPopupBehavior),_.Q("design:type",Object)],z4.prototype,"ytOpenPopupBehavior",void 0);_.r([_.y(_.nK.YtActionHandlerBehavior),_.Q("design:type",Object)],z4.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.y({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.SS.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.c("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var L;((L=this.actionRouterNode.hostElement)!=null?L:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var L;((L=this.actionRouterNode.hostElement)!=null?L:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(L){this.actionRouter_.handleAction(L.detail)}}),
_.Q("design:type",Object)],z4.prototype,"ytActionRouterBehavior",void 0);_.r([_.y(ejv.YtdAppBehavior),_.Q("design:type",Object)],z4.prototype,"ytdAppBehavior",void 0);_.r([_.y(_.o3.YtEndpointBehavior),_.Q("design:type",Object)],z4.prototype,"ytEndpointBehavior",void 0);_.r([_.y(HRy.YtEndpointHandlerWithYpcBehavior),_.Q("design:type",Object)],z4.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.r([_.y(rTs.YtLogYpcFlowCommandsBehavior),_.Q("design:type",Object)],z4.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.r([_.y(_.B.YtRendererBehavior),_.Q("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);_.r([_.y(_.rH.YtComponentBehavior),_.Q("design:type",Object)],z4.prototype,"ytComponentBehavior",void 0);_.r([_.Y({selector:_.Flq}),_.Q("design:type",Object)],z4.prototype,"tabGesturesIsActive",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],z4.prototype,"renderGuide",void 0);
_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],z4.prototype,"guidePersistentAndVisible",void 0);_.r([_.Y({selector:_.G7Y}),_.Q("design:type",Boolean)],z4.prototype,"guideIsVisibleButNotPersistent",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],z4.prototype,"standalone",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],z4.prototype,"miniGuideVisible",void 0);
_.r([_.Y(),_.Q("design:type",Object)],z4.prototype,"persistentPanelEnabled",void 0);_.r([_.Y({selector:GOg,reflectToAttribute:!0}),_.Q("design:type",Boolean)],z4.prototype,"persistentPanelVisible",void 0);_.r([_.Y({selector:_.huG}),_.Q("design:type",Number)],z4.prototype,"miniplayerPlaybackState",void 0);_.r([_.Y({selector:_.Ri,reflectToAttribute:!0}),_.Q("design:type",Boolean)],z4.prototype,"miniplayerIsActive",void 0);
_.r([_.Y({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Q("design:type",Boolean)],z4.prototype,"isInlinePreviewEnabled",void 0);_.r([_.Y(),_.Q("design:type",Boolean)],z4.prototype,"isInlinePreviewDisabled",void 0);_.r([_.Y({reflectToAttribute:!0,value:function(){return _.Ah("START_IN_FULL_WINDOW_MODE")}}),
_.Q("design:type",Boolean)],z4.prototype,"mastheadHidden",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],z4.prototype,"playerFullscreen",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],z4.prototype,"fullscreen",void 0);_.r([_.Y({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],z4.prototype,"hideHeaderShadow",void 0);
_.r([_.Y({value:{GUIDE_ALT_LABEL:_.iB("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.Q("design:type",Object)],z4.prototype,"menuStrings",void 0);_.r([_.Y({computed:"computeTopbarData(data)"}),_.Q("design:type",Object)],z4.prototype,"topbarData",void 0);_.r([_.Y({selector:_.eut,reflectToAttribute:!0}),_.Q("design:type",Boolean)],z4.prototype,"isWatchPage",void 0);_.r([_.Y({selector:_.IAw,reflectToAttribute:!0}),_.Q("design:type",Boolean)],z4.prototype,"isShortsPage",void 0);
_.r([_.Y({selector:function(L){return _.cv(L)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.Q("design:type",Boolean)],z4.prototype,"isMiniAppPage",void 0);_.r([_.Y({selector:function(L){return _.cv(L)==="WEB_PAGE_TYPE_BROWSE"}}),
_.Q("design:type",Boolean)],z4.prototype,"isBrowsePage",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Boolean)],z4.prototype,"scrolling",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],z4.prototype,"hasDelegation",void 0);_.r([_.Y({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],z4.prototype,"guideScrolledByTouch",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],z4.prototype,"darkerDarkTheme",void 0);
_.r([_.Y(),_.Q("design:type",Object)],z4.prototype,"isFrostedGlassInitialized",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],z4.prototype,"frostedGlassExp",void 0);_.r([_.Y({selector:function(L){return L.ui.chipBarIsSticky}}),
_.Q("design:type",Boolean)],z4.prototype,"chipBarIsSticky",void 0);_.r([_.Y({computed:"computeIsHomePage(isBrowsePage, data)"}),_.Q("design:type",Boolean)],z4.prototype,"isHomePage",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],z4.prototype,"hasPendingWatchNavigation",void 0);_.r([_.Y({reflectToAttribute:!0}),_.Q("design:type",Object)],z4.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.r([_.Y(),_.Q("design:type",Object)],z4.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.r([_.pr("guide"),_.Q("design:type",Object)],z4.prototype,"guide",void 0);_.r([_.pr("guide-service"),_.Q("design:type",v7Y)],z4.prototype,"guideService",void 0);_.r([_.pr("guide-inner-content"),_.Q("design:type",HTMLDivElement)],z4.prototype,"guideInnerContent",void 0);_.r([_.TX("#persistent-panel-container"),_.Q("design:type",HTMLElement)],z4.prototype,"persistentPanelContainer",void 0);
_.r([_.Y({selector:_.s31}),_.Q("design:type",String)],z4.prototype,"frostedGlassMode",void 0);_.r([_.iA("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z4.prototype,"dispatchFrostedGlassMode",null);_.r([_.Y({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.Q("design:type",Object)],z4.prototype,"isFrostedGlassDisabled",void 0);
_.r([_.iA("isWatchPage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z4.prototype,"isWatchPageChanged",null);_.r([_.w("isHomePage","chipBarIsSticky"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],z4.prototype,"applyFrostedGlassToChipBar",null);_.r([_.Y(),_.Q("design:type",Object)],z4.prototype,"isChannelOrPlaylistPage",void 0);
_.r([_.Vr("isInlinePreviewEnabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z4.prototype,"isInlinePreviewEnabledChanged",null);_.r([_.iA("guideIsVisibleButNotPersistent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z4.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.r([_.iA("guidePersistentAndVisible","miniGuideVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z4.prototype,"observeGuideVisibility",null);_.r([_.iA("persistentPanelVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z4.prototype,"observePersistentPanelVisibility",null);
_.r([_.SA("attached"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],z4.prototype,"onYtPageManagerAttached",null);_.r([_.iA("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],z4.prototype,"updateMastheadData",null);_.r([_.SA("yt-set-theater-mode-enabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],z4.prototype,"onSetTheaterModeEnabled",null);
_.r([_.SA("yt-page-type-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],z4.prototype,"onPageChanged",null);_.r([_.SA("yt-page-data-updated"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z4.prototype,"onPageDataUpdated",null);_.r([_.SA("yt-request-panel-mode-change"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event,Object]),_.Q("design:returntype")],z4.prototype,"onRequestPanelModeChange",null);
_.r([_.SA("yt-guide-hover"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z4.prototype,"onGuideOpenButtonHover",null);_.r([_.SA("app-drawer-transitioned"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],z4.prototype,"onDrawerIronSelect",null);_.r([_.SA("yt-add-element-to-app"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],z4.prototype,"onAddElementToApp",null);
_.r([_.SA("yt-set-fullerscreen-styles"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z4.prototype,"setFullscreen",null);_.r([_.SA("yt-open-hotkey-dialog"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z4.prototype,"onOpenHotkeyDialog",null);_.r([_.P({is:"ytd-app"})],z4);_.ih().processSignal("eor");
_.mm();
}catch(e){_._DumpException(e)}
try{
_.z3("NSzT5");
var id8;_.Qf=function(L){var Z=document.createElement("link");_.Wd(Z,L,"stylesheet");document.head.appendChild(Z)};
_.X1=function(L,Z){var N,S;return _.b(function(u){N=document.createElement("div");N.id=L.id;L.className&&(N.className=L.className);S=L.element;if(!S)throw Error("fk");if(L.location==="prepend")S.prepend(N);else if(L.location==="appendChild")S.appendChild(N);else if(L.location==="after")S.after(N);else throw Error("gk");return u.return(_.pn(N,Z,"Qi"))})};
_.A6=function(L){var Z;return _.b(function(N){(Z=document.getElementById(L))&&Z.remove();_.w7(N)})};
_.Hm=function(L,Z){var N=document.querySelector(L);N?Z(N):setTimeout(function(){_.Hm(L,Z)},1E3)};
_.u4g=function(L,Z,N){var S;_.b(function(u){if(u.nextAddress==1)return(S=document.getElementById(L))?u.jumpTo(2):u.yield(id8(L,Z,N),2);if(S=document.getElementById(L))S.style.display="block";_.w7(u)})};
id8=function(L,Z,N){return _.b(function(S){return S.return(new Promise(function(u){_.Hm("div #panels",function(T){_.X1({element:T,location:"appendChild",id:L,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+N},Z);u()})}))})};
_.WLy=function(L){L=L===void 0?"":L;_.A6("creator_chatbots-entry-point");_.A6("creator_chatbots-panel");_.Qf(TDP);_.Hm("ytd-watch-metadata #top-level-buttons-computed",function(Z){document.getElementById("creator_chatbots-entry-point")||(_.X1({element:Z,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.g(tAQ,{creatorChannelId:L})}),_.u4g("creator_chatbots-panel",function(){return _.g(OdP,{usePlayerHeight:!0,
creatorChannelId:L})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};_.Bm=_.p(function(L){var Z=L.text;var N=L.onClick;var S=L.color;var u=L.backgroundColor;var T=L.buttonSize;var W=L.disabled;var V=L.iconName;var M=L.iconSize;L=L.className;var G=_.Z9(function(l){N(l)}),D={};
return _.g("button",{class:_.qg("ytpStandardButtonsHost",(D.ytpStandardButtonsLarge=function(){return(T==null?void 0:T())==="large"},D),L),
"on:click":G,style:_.u4({color:S,"background-color":u}),disabled:W}," ",_.g(_.F,{cond:V,then:function(){return _.g(_.T0,{className:"ytpStandardButtonsIconContainer",icon:V,size:M})}}),Z)},"Pi");_.VAk=_.p(function(L){var Z;return _.g("div",{class:_.qg("ytprototypesEngagementPanelComponentHost",L.className),id:L.id},_.g("div",{class:_.qg("ytprototypesEngagementPanelComponentEngagementPanelHeader",L.headerClassName)},_.g("div",null,L.header()),_.g("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.g("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(Z=L.HeaderButton)==null?void 0:Z.call(L)),_.g(_.Bm,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var N;(N=L.onHide)==null||N.call(L);N=L.id();if(N=document.getElementById(N))N.style.display="none"}}))),_.g("div",{class:_.qg("ytprototypesEngagementPanelComponentEngagementPanelContent",L.contentClassName),
style:function(){var N;return"height: "+(((N=L.height)==null?void 0:N.call(L))||"800px")+";"}},L.content()))},"Ri");var bds=_.sc(["https://portraits.google.com"]),MAv=_.sc(["https://labs-characters.teams.x20web.corp.google.com"]),gDq=_.sc(["https://portraits.google.com/gallery?ytChannelId=",""]),GXY=_.vy(bds),xc=_.vy(MAv),OdP=_.p(function(L){function Z(v){var R;if(v=(R=v.detail)==null?void 0:R.endpoint){R=_.n(v,_.iv);var K;R&&((K=R.browseId)==null?0:K.startsWith("UC"))&&R.browseId!==u()&&(_.A6("creator_chatbots-panel-persistent"),D.removeEventListener("yt-navigate-start",Z))}}
var N=L.usePlayerHeight;var S=L.isPersistentPanel;var u=L.creatorChannelId;var T=_.c("enable_creator_chatbots_extension_dev_server"),W=document.createElement("iframe"),V=T?xc:GXY;_.zp(function(){var v=u();v=T?xc:_.vy(gDq,v);_.GEt(W,1,v)});
W.className="ytprotoCreatorChatbotsAppLabsIframe";W.allow="microphone; clipboard-read; clipboard-write self "+V;var M=function(){var v;return _.b(function(R){if(R.nextAddress==1)return R.yield(_.GR().resolve(_.HQ),2);(v=R.yieldResult)&&v.pauseVideo();_.w7(R)})},G=function(){var v,R,K;
return _.b(function(U){return U.nextAddress==1?U.yield(_.GR().resolve(_.HQ),2):(v=U.yieldResult)?U.return({video_id:(K=(R=v.getVideoData())==null?void 0:R.video_id)!=null?K:"",timestamp_sec:v.getCurrentTime().toString()}):U.return({})})};
window.addEventListener("message",function(v){var R,K,U,d,h,E;return _.b(function(A){if(A.nextAddress==1){R=T?xc.toString():GXY.toString();if(v.origin!==R)return console.warn("Received message from untrusted origin:",v.origin),A.return();K=v.data;if(typeof K!=="object"||K===null||!K.action)return A.return();if(K.action==="pause")return A.yield(M(),0);if(K.action!=="getYouTubeContext"||!v.source)return A.jumpTo(0);U=v.source;d=U.postMessage;h=JSON;E=h.stringify;return A.yield(G(),7)}d.call(U,E.call(h,
{youTubeContext:A.yieldResult}),{targetOrigin:v.origin});return A.jumpTo(0)})});
_.GD("yt-page-type-changed",function(){if(S==null?0:S()){var v;((v=_.GR().resolve(_.mR).getCurrentPage())==null?void 0:v.pageSubtype)!=="channels"&&(v=document.getElementById("creator_chatbots-panel-persistent"))&&(v.style.display="none")}});
var D=_.GR().resolve(_.kv),l;(l=D)==null||l.addEventListener("yt-navigate-start",Z);_.zs(function(){var v;(v=D)==null||v.removeEventListener("yt-navigate-start",Z)});
return _.g("div",{class:"ytprotoCreatorChatbotsAppHost",style:function(){return(N==null?0:N())?"height: var(--ytd-watch-flexy-panel-max-height);":"height: 100%;"}},_.g(_.VAk,{id:function(){return(S==null?0:S())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var v=T?xc.toString():GXY.toString(),R;(R=W.contentWindow)==null||R.postMessage("ep_closed",v)},
header:function(){return _.g("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.g("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.g(_.Ho,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.g(_.Bm,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.Ls(window,_.P6(T?xc.toString():V.toString()+"/gallery?ytChannelId="+u()),"_blank")}})},
content:function(){return W}}))},"Ti");var FLY,TDP,tAQ;FLY=_.sc(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);TDP=_.vy(FLY);tAQ=_.p(function(L){var Z=L.creatorChannelId;var N=function(){_.u4g("creator_chatbots-panel",function(){return _.g(OdP,{usePlayerHeight:!0,creatorChannelId:Z})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.g("div",{class:"ytd-menu-renderer"},_.g(_.Ff,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:N}},
icon:function(){return _.g(_.T0,{icon:"SPARK"})}}))},"Ui");
_.F50=function(L){L=L===void 0?"":L;var Z;return _.b(function(N){return(Z=document.getElementById("creator_chatbots-panel-persistent"))?(Z.style.display==="none"&&(Z.style.display="block"),N.jumpTo(0)):N.yield(new Promise(function(S){_.Hm("ytd-app",function(u){_.X1({element:u,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.g(OdP,{isPersistentPanel:!0,
creatorChannelId:L})});
S()})}),0)})};
_.mm();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
